diff --git a/.agents/skills/cli-public/references/storage-module.md b/.agents/skills/cli-public/references/storage-module.md index 37d284d9d..4aea34241 100644 --- a/.agents/skills/cli-public/references/storage-module.md +++ b/.agents/skills/cli-public/references/storage-module.md @@ -12,8 +12,8 @@ csdk storage-module list --where.. --orderBy csdk storage-module list --limit 10 --after csdk storage-module find-first --where.. csdk storage-module get --id -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--fileEventsTableId ] -csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--fileEventsTableId ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] +csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] csdk storage-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageModule ```bash -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--fileEventsTableId ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] ``` ### Get a storageModule by id diff --git a/.agents/skills/hooks-public/references/storage-module.md b/.agents/skills/hooks-public/references/storage-module.md index 34ce43ac8..36f889c71 100644 --- a/.agents/skills/hooks-public/references/storage-module.md +++ b/.agents/skills/hooks-public/references/storage-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageModule data operations ## Usage ```typescript -useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } } }) +useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageModuleMutation({}) ```typescript const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageModulesQuery({ const { mutate } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', fileEventsTableId: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); ``` diff --git a/.agents/skills/orm-public/references/storage-module.md b/.agents/skills/orm-public/references/storage-module.md index 2e6e916c7..77f049496 100644 --- a/.agents/skills/orm-public/references/storage-module.md +++ b/.agents/skills/orm-public/references/storage-module.md @@ -9,7 +9,7 @@ ORM operations for StorageModule records ```typescript db.storageModule.findMany({ select: { id: true } }).execute() db.storageModule.findOne({ id: '', select: { id: true } }).execute() -db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', fileEventsTableId: '' }, select: { id: true } }).execute() +db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute() db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.storageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageModule.findMany({ ```typescript const item = await db.storageModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', fileEventsTableId: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-cli/src/public/cli/README.md b/sdk/constructive-cli/src/public/cli/README.md index e2953388e..7382d6e62 100644 --- a/sdk/constructive-cli/src/public/cli/README.md +++ b/sdk/constructive-cli/src/public/cli/README.md @@ -2617,10 +2617,12 @@ CRUD operations for StorageModule records. | `hasContentHash` | Boolean | | `hasCustomKeys` | Boolean | | `hasAuditLog` | Boolean | +| `hasConfirmUpload` | Boolean | +| `confirmUploadDelay` | Interval | | `fileEventsTableId` | UUID | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `membershipType`, `policies`, `skipDefaultPolicyTables`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `fileEventsTableId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `membershipType`, `policies`, `skipDefaultPolicyTables`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `hasConfirmUpload`, `confirmUploadDelay`, `fileEventsTableId` ### `entity-type-provision` diff --git a/sdk/constructive-cli/src/public/cli/commands/storage-module.ts b/sdk/constructive-cli/src/public/cli/commands/storage-module.ts index 79a637a58..8ecc2453f 100644 --- a/sdk/constructive-cli/src/public/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/storage-module.ts @@ -46,6 +46,8 @@ const fieldSchema: FieldSchema = { hasContentHash: 'boolean', hasCustomKeys: 'boolean', hasAuditLog: 'boolean', + hasConfirmUpload: 'boolean', + confirmUploadDelay: 'string', fileEventsTableId: 'uuid', }; const usage = @@ -129,6 +131,8 @@ async function handleList(argv: Partial>, _prompter: Inq hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, + hasConfirmUpload: true, + confirmUploadDelay: true, fileEventsTableId: true, }; const findManyArgs = parseFindManyArgs< @@ -180,6 +184,8 @@ async function handleFindFirst(argv: Partial>, _prompter hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, + hasConfirmUpload: true, + confirmUploadDelay: true, fileEventsTableId: true, }; const findFirstArgs = parseFindFirstArgs< @@ -243,6 +249,8 @@ async function handleGet(argv: Partial>, prompter: Inqui hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, + hasConfirmUpload: true, + confirmUploadDelay: true, fileEventsTableId: true, }, }) @@ -461,6 +469,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasConfirmUpload', + message: 'hasConfirmUpload', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'confirmUploadDelay', + message: 'confirmUploadDelay', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'fileEventsTableId', @@ -507,6 +529,8 @@ async function handleCreate(argv: Partial>, prompter: In hasContentHash: cleanedData.hasContentHash, hasCustomKeys: cleanedData.hasCustomKeys, hasAuditLog: cleanedData.hasAuditLog, + hasConfirmUpload: cleanedData.hasConfirmUpload, + confirmUploadDelay: cleanedData.confirmUploadDelay, fileEventsTableId: cleanedData.fileEventsTableId, }, select: { @@ -540,6 +564,8 @@ async function handleCreate(argv: Partial>, prompter: In hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, + hasConfirmUpload: true, + confirmUploadDelay: true, fileEventsTableId: true, }, }) @@ -764,6 +790,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasConfirmUpload', + message: 'hasConfirmUpload', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'confirmUploadDelay', + message: 'confirmUploadDelay', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'fileEventsTableId', @@ -810,6 +850,8 @@ async function handleUpdate(argv: Partial>, prompter: In hasContentHash: cleanedData.hasContentHash, hasCustomKeys: cleanedData.hasCustomKeys, hasAuditLog: cleanedData.hasAuditLog, + hasConfirmUpload: cleanedData.hasConfirmUpload, + confirmUploadDelay: cleanedData.confirmUploadDelay, fileEventsTableId: cleanedData.fileEventsTableId, }, select: { @@ -843,6 +885,8 @@ async function handleUpdate(argv: Partial>, prompter: In hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, + hasConfirmUpload: true, + confirmUploadDelay: true, fileEventsTableId: true, }, }) diff --git a/sdk/constructive-cli/src/public/orm/README.md b/sdk/constructive-cli/src/public/orm/README.md index ef7613521..014bb0a7d 100644 --- a/sdk/constructive-cli/src/public/orm/README.md +++ b/sdk/constructive-cli/src/public/orm/README.md @@ -2983,19 +2983,21 @@ CRUD operations for StorageModule records. | `hasContentHash` | Boolean | Yes | | `hasCustomKeys` | Boolean | Yes | | `hasAuditLog` | Boolean | Yes | +| `hasConfirmUpload` | Boolean | Yes | +| `confirmUploadDelay` | Interval | Yes | | `fileEventsTableId` | UUID | Yes | **Operations:** ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', fileEventsTableId: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/public/orm/input-types.ts b/sdk/constructive-cli/src/public/orm/input-types.ts index 90de6fac1..1dff4696a 100644 --- a/sdk/constructive-cli/src/public/orm/input-types.ts +++ b/sdk/constructive-cli/src/public/orm/input-types.ts @@ -1473,6 +1473,8 @@ export interface StorageModule { hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: string | null; fileEventsTableId?: string | null; } /** @@ -6386,6 +6388,8 @@ export type StorageModuleSelect = { hasContentHash?: boolean; hasCustomKeys?: boolean; hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: boolean; fileEventsTableId?: boolean; bucketsTable?: { select: TableSelect; @@ -11402,6 +11406,10 @@ export interface StorageModuleFilter { hasCustomKeys?: BooleanFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -16065,6 +16073,10 @@ export type StorageModuleOrderBy = | 'HAS_CUSTOM_KEYS_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' + | 'HAS_CONFIRM_UPLOAD_ASC' + | 'HAS_CONFIRM_UPLOAD_DESC' + | 'CONFIRM_UPLOAD_DELAY_ASC' + | 'CONFIRM_UPLOAD_DELAY_DESC' | 'FILE_EVENTS_TABLE_ID_ASC' | 'FILE_EVENTS_TABLE_ID_DESC'; export type EntityTypeProvisionOrderBy = @@ -20260,6 +20272,8 @@ export interface CreateStorageModuleInput { hasContentHash?: boolean; hasCustomKeys?: boolean; hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; fileEventsTableId?: string; }; } @@ -20293,6 +20307,8 @@ export interface StorageModulePatch { hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: IntervalInput | null; fileEventsTableId?: string | null; } export interface UpdateStorageModuleInput { @@ -27873,6 +27889,10 @@ export interface StorageModuleFilter { hasCustomKeys?: BooleanFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; /** Checks for all expressions in this list. */ diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index f50e6e47a..e620121cf 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -2400,20 +2400,20 @@ create({ blueprintId: '', databaseId: '', schemaId: '', status ```typescript // List all storageModules const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, }); // Get one storageModule const { data: item } = useStorageModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, }); // Create a storageModule const { mutate: create } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', fileEventsTableId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); ``` ### EntityTypeProvision diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md index ef7613521..014bb0a7d 100644 --- a/sdk/constructive-react/src/public/orm/README.md +++ b/sdk/constructive-react/src/public/orm/README.md @@ -2983,19 +2983,21 @@ CRUD operations for StorageModule records. | `hasContentHash` | Boolean | Yes | | `hasCustomKeys` | Boolean | Yes | | `hasAuditLog` | Boolean | Yes | +| `hasConfirmUpload` | Boolean | Yes | +| `confirmUploadDelay` | Interval | Yes | | `fileEventsTableId` | UUID | Yes | **Operations:** ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', fileEventsTableId: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/public/orm/input-types.ts b/sdk/constructive-react/src/public/orm/input-types.ts index 90de6fac1..1dff4696a 100644 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -1473,6 +1473,8 @@ export interface StorageModule { hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: string | null; fileEventsTableId?: string | null; } /** @@ -6386,6 +6388,8 @@ export type StorageModuleSelect = { hasContentHash?: boolean; hasCustomKeys?: boolean; hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: boolean; fileEventsTableId?: boolean; bucketsTable?: { select: TableSelect; @@ -11402,6 +11406,10 @@ export interface StorageModuleFilter { hasCustomKeys?: BooleanFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -16065,6 +16073,10 @@ export type StorageModuleOrderBy = | 'HAS_CUSTOM_KEYS_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' + | 'HAS_CONFIRM_UPLOAD_ASC' + | 'HAS_CONFIRM_UPLOAD_DESC' + | 'CONFIRM_UPLOAD_DELAY_ASC' + | 'CONFIRM_UPLOAD_DELAY_DESC' | 'FILE_EVENTS_TABLE_ID_ASC' | 'FILE_EVENTS_TABLE_ID_DESC'; export type EntityTypeProvisionOrderBy = @@ -20260,6 +20272,8 @@ export interface CreateStorageModuleInput { hasContentHash?: boolean; hasCustomKeys?: boolean; hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; fileEventsTableId?: string; }; } @@ -20293,6 +20307,8 @@ export interface StorageModulePatch { hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: IntervalInput | null; fileEventsTableId?: string | null; } export interface UpdateStorageModuleInput { @@ -27873,6 +27889,10 @@ export interface StorageModuleFilter { hasCustomKeys?: BooleanFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; /** Checks for all expressions in this list. */ diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts index 60e2ce8f6..e8cf6203e 100644 --- a/sdk/constructive-react/src/public/schema-types.ts +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -2049,6 +2049,10 @@ export type StorageModuleOrderBy = | 'HAS_CUSTOM_KEYS_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' + | 'HAS_CONFIRM_UPLOAD_ASC' + | 'HAS_CONFIRM_UPLOAD_DESC' + | 'CONFIRM_UPLOAD_DELAY_ASC' + | 'CONFIRM_UPLOAD_DELAY_DESC' | 'FILE_EVENTS_TABLE_ID_ASC' | 'FILE_EVENTS_TABLE_ID_DESC'; /** Methods to use when ordering `EntityTypeProvision`. */ @@ -10882,6 +10886,10 @@ export interface StorageModuleFilter { hasCustomKeys?: BooleanFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -15711,6 +15719,8 @@ export interface StorageModuleInput { hasContentHash?: boolean; hasCustomKeys?: boolean; hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; fileEventsTableId?: string; } export interface CreateMembershipsModuleInput { @@ -19172,6 +19182,8 @@ export interface StorageModulePatch { hasContentHash?: boolean; hasCustomKeys?: boolean; hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; fileEventsTableId?: string; } export interface UpdateMembershipsModuleInput { diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts index 61264269c..9357b68d2 100644 --- a/sdk/constructive-react/src/public/types.ts +++ b/sdk/constructive-react/src/public/types.ts @@ -969,6 +969,8 @@ export interface StorageModule { hasContentHash: boolean | null; hasCustomKeys: boolean | null; hasAuditLog: boolean | null; + hasConfirmUpload: boolean | null; + confirmUploadDelay: string | null; fileEventsTableId: string | null; } export interface EntityTypeProvision { diff --git a/sdk/constructive-sdk/schemas/public.graphql b/sdk/constructive-sdk/schemas/public.graphql index 63e555221..d31dc2ed4 100644 --- a/sdk/constructive-sdk/schemas/public.graphql +++ b/sdk/constructive-sdk/schemas/public.graphql @@ -21226,6 +21226,12 @@ input StorageModuleFilter { """Filter by the object’s `hasAuditLog` field.""" hasAuditLog: BooleanFilter + """Filter by the object’s `hasConfirmUpload` field.""" + hasConfirmUpload: BooleanFilter + + """Filter by the object’s `confirmUploadDelay` field.""" + confirmUploadDelay: IntervalFilter + """Filter by the object’s `fileEventsTableId` field.""" fileEventsTableId: UUIDFilter @@ -28826,6 +28832,8 @@ type StorageModule { hasContentHash: Boolean! hasCustomKeys: Boolean! hasAuditLog: Boolean! + hasConfirmUpload: Boolean! + confirmUploadDelay: Interval! fileEventsTableId: UUID """Reads a single `Table` that is related to this `StorageModule`.""" @@ -28927,6 +28935,10 @@ enum StorageModuleOrderBy { HAS_CUSTOM_KEYS_DESC HAS_AUDIT_LOG_ASC HAS_AUDIT_LOG_DESC + HAS_CONFIRM_UPLOAD_ASC + HAS_CONFIRM_UPLOAD_DESC + CONFIRM_UPLOAD_DELAY_ASC + CONFIRM_UPLOAD_DELAY_DESC FILE_EVENTS_TABLE_ID_ASC FILE_EVENTS_TABLE_ID_DESC } @@ -50347,6 +50359,8 @@ input StorageModuleInput { hasContentHash: Boolean hasCustomKeys: Boolean hasAuditLog: Boolean + hasConfirmUpload: Boolean + confirmUploadDelay: IntervalInput fileEventsTableId: UUID } @@ -59526,6 +59540,8 @@ input StorageModulePatch { hasContentHash: Boolean hasCustomKeys: Boolean hasAuditLog: Boolean + hasConfirmUpload: Boolean + confirmUploadDelay: IntervalInput fileEventsTableId: UUID } diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md index ef7613521..014bb0a7d 100644 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -2983,19 +2983,21 @@ CRUD operations for StorageModule records. | `hasContentHash` | Boolean | Yes | | `hasCustomKeys` | Boolean | Yes | | `hasAuditLog` | Boolean | Yes | +| `hasConfirmUpload` | Boolean | Yes | +| `confirmUploadDelay` | Interval | Yes | | `fileEventsTableId` | UUID | Yes | **Operations:** ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, fileEventsTableId: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', fileEventsTableId: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index 90de6fac1..1dff4696a 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -1473,6 +1473,8 @@ export interface StorageModule { hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: string | null; fileEventsTableId?: string | null; } /** @@ -6386,6 +6388,8 @@ export type StorageModuleSelect = { hasContentHash?: boolean; hasCustomKeys?: boolean; hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: boolean; fileEventsTableId?: boolean; bucketsTable?: { select: TableSelect; @@ -11402,6 +11406,10 @@ export interface StorageModuleFilter { hasCustomKeys?: BooleanFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -16065,6 +16073,10 @@ export type StorageModuleOrderBy = | 'HAS_CUSTOM_KEYS_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' + | 'HAS_CONFIRM_UPLOAD_ASC' + | 'HAS_CONFIRM_UPLOAD_DESC' + | 'CONFIRM_UPLOAD_DELAY_ASC' + | 'CONFIRM_UPLOAD_DELAY_DESC' | 'FILE_EVENTS_TABLE_ID_ASC' | 'FILE_EVENTS_TABLE_ID_DESC'; export type EntityTypeProvisionOrderBy = @@ -20260,6 +20272,8 @@ export interface CreateStorageModuleInput { hasContentHash?: boolean; hasCustomKeys?: boolean; hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; fileEventsTableId?: string; }; } @@ -20293,6 +20307,8 @@ export interface StorageModulePatch { hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: IntervalInput | null; fileEventsTableId?: string | null; } export interface UpdateStorageModuleInput { @@ -27873,6 +27889,10 @@ export interface StorageModuleFilter { hasCustomKeys?: BooleanFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; + /** Filter by the object’s `hasConfirmUpload` field. */ + hasConfirmUpload?: BooleanFilter; + /** Filter by the object’s `confirmUploadDelay` field. */ + confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; /** Checks for all expressions in this list. */