diff --git a/.agents/skills/cli-public/references/notifications-module.md b/.agents/skills/cli-public/references/notifications-module.md index cc473c191..ccff3cf14 100644 --- a/.agents/skills/cli-public/references/notifications-module.md +++ b/.agents/skills/cli-public/references/notifications-module.md @@ -12,8 +12,8 @@ csdk notifications-module list --where.. --orderBy csdk notifications-module list --limit 10 --after csdk notifications-module find-first --where.. csdk notifications-module get --id -csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--eventsTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] -csdk notifications-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--eventsTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] +csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] +csdk notifications-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] csdk notifications-module delete --id ``` @@ -58,7 +58,7 @@ csdk notifications-module list --where.id.equalTo --orderBy ID_ASC ### Create a notificationsModule ```bash -csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--eventsTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] +csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] ``` ### Get a notificationsModule by id diff --git a/.agents/skills/hooks-public/references/notifications-module.md b/.agents/skills/hooks-public/references/notifications-module.md index 0ac45165c..d2d04828b 100644 --- a/.agents/skills/hooks-public/references/notifications-module.md +++ b/.agents/skills/hooks-public/references/notifications-module.md @@ -7,8 +7,8 @@ React Query hooks for NotificationsModule data operations ## Usage ```typescript -useNotificationsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } } }) -useNotificationsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } } }) +useNotificationsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } } }) +useNotificationsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } } }) useCreateNotificationsModuleMutation({ selection: { fields: { id: true } } }) useUpdateNotificationsModuleMutation({ selection: { fields: { id: true } } }) useDeleteNotificationsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteNotificationsModuleMutation({}) ```typescript const { data, isLoading } = useNotificationsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useNotificationsModulesQuery({ const { mutate } = useCreateNotificationsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', eventsTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }); ``` diff --git a/.agents/skills/orm-public/references/notifications-module.md b/.agents/skills/orm-public/references/notifications-module.md index c20958eca..83fc18807 100644 --- a/.agents/skills/orm-public/references/notifications-module.md +++ b/.agents/skills/orm-public/references/notifications-module.md @@ -9,7 +9,7 @@ ORM operations for NotificationsModule records ```typescript db.notificationsModule.findMany({ select: { id: true } }).execute() db.notificationsModule.findOne({ id: '', select: { id: true } }).execute() -db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', eventsTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '' }, select: { id: true } }).execute() +db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }, select: { id: true } }).execute() db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.notificationsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.notificationsModule.findMany({ ```typescript const item = await db.notificationsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', eventsTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }, 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 e5034ba33..bd441e0d3 100644 --- a/sdk/constructive-cli/src/public/cli/README.md +++ b/sdk/constructive-cli/src/public/cli/README.md @@ -2554,16 +2554,21 @@ CRUD operations for NotificationsModule records. | `schemaId` | UUID | | `privateSchemaId` | UUID | | `notificationsTableId` | UUID | -| `eventsTableId` | UUID | +| `readStateTableId` | UUID | | `preferencesTableId` | UUID | | `channelsTableId` | UUID | | `deliveryLogTableId` | UUID | | `ownerTableId` | UUID | | `userSettingsTableId` | UUID | | `organizationSettingsTableId` | UUID | +| `hasChannels` | Boolean | +| `hasPreferences` | Boolean | +| `hasSettingsExtension` | Boolean | +| `hasDigestMetadata` | Boolean | +| `hasSubscriptions` | Boolean | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `notificationsTableId`, `eventsTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `notificationsTableId`, `readStateTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId`, `hasChannels`, `hasPreferences`, `hasSettingsExtension`, `hasDigestMetadata`, `hasSubscriptions` ### `database-provision-module` diff --git a/sdk/constructive-cli/src/public/cli/commands/notifications-module.ts b/sdk/constructive-cli/src/public/cli/commands/notifications-module.ts index f2d8b3575..ad2c236e9 100644 --- a/sdk/constructive-cli/src/public/cli/commands/notifications-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/notifications-module.ts @@ -21,13 +21,18 @@ const fieldSchema: FieldSchema = { schemaId: 'uuid', privateSchemaId: 'uuid', notificationsTableId: 'uuid', - eventsTableId: 'uuid', + readStateTableId: 'uuid', preferencesTableId: 'uuid', channelsTableId: 'uuid', deliveryLogTableId: 'uuid', ownerTableId: 'uuid', userSettingsTableId: 'uuid', organizationSettingsTableId: 'uuid', + hasChannels: 'boolean', + hasPreferences: 'boolean', + hasSettingsExtension: 'boolean', + hasDigestMetadata: 'boolean', + hasSubscriptions: 'boolean', }; const usage = '\nnotifications-module \n\nCommands:\n list List notificationsModule records\n find-first Find first matching notificationsModule record\n get Get a notificationsModule by ID\n create Create a new notificationsModule\n update Update an existing notificationsModule\n delete Delete a notificationsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; @@ -85,13 +90,18 @@ async function handleList(argv: Partial>, _prompter: Inq schemaId: true, privateSchemaId: true, notificationsTableId: true, - eventsTableId: true, + readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, + hasChannels: true, + hasPreferences: true, + hasSettingsExtension: true, + hasDigestMetadata: true, + hasSubscriptions: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -121,13 +131,18 @@ async function handleFindFirst(argv: Partial>, _prompter schemaId: true, privateSchemaId: true, notificationsTableId: true, - eventsTableId: true, + readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, + hasChannels: true, + hasPreferences: true, + hasSettingsExtension: true, + hasDigestMetadata: true, + hasSubscriptions: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -165,13 +180,18 @@ async function handleGet(argv: Partial>, prompter: Inqui schemaId: true, privateSchemaId: true, notificationsTableId: true, - eventsTableId: true, + readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, + hasChannels: true, + hasPreferences: true, + hasSettingsExtension: true, + hasDigestMetadata: true, + hasSubscriptions: true, }, }) .execute(); @@ -216,8 +236,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'eventsTableId', - message: 'eventsTableId', + name: 'readStateTableId', + message: 'readStateTableId', required: false, skipPrompt: true, }, @@ -263,6 +283,41 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasChannels', + message: 'hasChannels', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasPreferences', + message: 'hasPreferences', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasSettingsExtension', + message: 'hasSettingsExtension', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasDigestMetadata', + message: 'hasDigestMetadata', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasSubscriptions', + message: 'hasSubscriptions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -277,13 +332,18 @@ async function handleCreate(argv: Partial>, prompter: In schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, notificationsTableId: cleanedData.notificationsTableId, - eventsTableId: cleanedData.eventsTableId, + readStateTableId: cleanedData.readStateTableId, preferencesTableId: cleanedData.preferencesTableId, channelsTableId: cleanedData.channelsTableId, deliveryLogTableId: cleanedData.deliveryLogTableId, ownerTableId: cleanedData.ownerTableId, userSettingsTableId: cleanedData.userSettingsTableId, organizationSettingsTableId: cleanedData.organizationSettingsTableId, + hasChannels: cleanedData.hasChannels, + hasPreferences: cleanedData.hasPreferences, + hasSettingsExtension: cleanedData.hasSettingsExtension, + hasDigestMetadata: cleanedData.hasDigestMetadata, + hasSubscriptions: cleanedData.hasSubscriptions, }, select: { id: true, @@ -291,13 +351,18 @@ async function handleCreate(argv: Partial>, prompter: In schemaId: true, privateSchemaId: true, notificationsTableId: true, - eventsTableId: true, + readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, + hasChannels: true, + hasPreferences: true, + hasSettingsExtension: true, + hasDigestMetadata: true, + hasSubscriptions: true, }, }) .execute(); @@ -348,8 +413,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'eventsTableId', - message: 'eventsTableId', + name: 'readStateTableId', + message: 'readStateTableId', required: false, skipPrompt: true, }, @@ -395,6 +460,41 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'hasChannels', + message: 'hasChannels', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasPreferences', + message: 'hasPreferences', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasSettingsExtension', + message: 'hasSettingsExtension', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasDigestMetadata', + message: 'hasDigestMetadata', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'hasSubscriptions', + message: 'hasSubscriptions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as NotificationsModulePatch; @@ -409,13 +509,18 @@ async function handleUpdate(argv: Partial>, prompter: In schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, notificationsTableId: cleanedData.notificationsTableId, - eventsTableId: cleanedData.eventsTableId, + readStateTableId: cleanedData.readStateTableId, preferencesTableId: cleanedData.preferencesTableId, channelsTableId: cleanedData.channelsTableId, deliveryLogTableId: cleanedData.deliveryLogTableId, ownerTableId: cleanedData.ownerTableId, userSettingsTableId: cleanedData.userSettingsTableId, organizationSettingsTableId: cleanedData.organizationSettingsTableId, + hasChannels: cleanedData.hasChannels, + hasPreferences: cleanedData.hasPreferences, + hasSettingsExtension: cleanedData.hasSettingsExtension, + hasDigestMetadata: cleanedData.hasDigestMetadata, + hasSubscriptions: cleanedData.hasSubscriptions, }, select: { id: true, @@ -423,13 +528,18 @@ async function handleUpdate(argv: Partial>, prompter: In schemaId: true, privateSchemaId: true, notificationsTableId: true, - eventsTableId: true, + readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, + hasChannels: true, + hasPreferences: true, + hasSettingsExtension: true, + hasDigestMetadata: true, + hasSubscriptions: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/orm/README.md b/sdk/constructive-cli/src/public/orm/README.md index 619a9905b..74e83c23e 100644 --- a/sdk/constructive-cli/src/public/orm/README.md +++ b/sdk/constructive-cli/src/public/orm/README.md @@ -2906,25 +2906,30 @@ CRUD operations for NotificationsModule records. | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `notificationsTableId` | UUID | Yes | -| `eventsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | | `preferencesTableId` | UUID | Yes | | `channelsTableId` | UUID | Yes | | `deliveryLogTableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `userSettingsTableId` | UUID | Yes | | `organizationSettingsTableId` | UUID | Yes | +| `hasChannels` | Boolean | Yes | +| `hasPreferences` | Boolean | Yes | +| `hasSettingsExtension` | Boolean | Yes | +| `hasDigestMetadata` | Boolean | Yes | +| `hasSubscriptions` | Boolean | Yes | **Operations:** ```typescript // List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } }).execute(); +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', eventsTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }, select: { id: true } }).execute(); // Update const updated = await db.notificationsModule.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 d0c3f338e..888d00b99 100644 --- a/sdk/constructive-cli/src/public/orm/input-types.ts +++ b/sdk/constructive-cli/src/public/orm/input-types.ts @@ -1576,13 +1576,18 @@ export interface NotificationsModule { schemaId?: string | null; privateSchemaId?: string | null; notificationsTableId?: string | null; - eventsTableId?: string | null; + readStateTableId?: string | null; preferencesTableId?: string | null; channelsTableId?: string | null; deliveryLogTableId?: string | null; ownerTableId?: string | null; userSettingsTableId?: string | null; organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; } /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { @@ -2797,12 +2802,12 @@ export interface NotificationsModuleRelations { channelsTableByChannelsTableId?: Table | null; database?: Database | null; deliveryLogTableByDeliveryLogTableId?: Table | null; - eventsTableByEventsTableId?: Table | null; notificationsTableByNotificationsTableId?: Table | null; organizationSettingsTableByOrganizationSettingsTableId?: Table | null; ownerTable?: Table | null; preferencesTableByPreferencesTableId?: Table | null; privateSchema?: Schema | null; + readStateTableByReadStateTableId?: Table | null; schema?: Schema | null; userSettingsTableByUserSettingsTableId?: Table | null; } @@ -5447,13 +5452,18 @@ export type NotificationsModuleSelect = { schemaId?: boolean; privateSchemaId?: boolean; notificationsTableId?: boolean; - eventsTableId?: boolean; + readStateTableId?: boolean; preferencesTableId?: boolean; channelsTableId?: boolean; deliveryLogTableId?: boolean; ownerTableId?: boolean; userSettingsTableId?: boolean; organizationSettingsTableId?: boolean; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; channelsTableByChannelsTableId?: { select: TableSelect; }; @@ -5463,9 +5473,6 @@ export type NotificationsModuleSelect = { deliveryLogTableByDeliveryLogTableId?: { select: TableSelect; }; - eventsTableByEventsTableId?: { - select: TableSelect; - }; notificationsTableByNotificationsTableId?: { select: TableSelect; }; @@ -5481,6 +5488,9 @@ export type NotificationsModuleSelect = { privateSchema?: { select: SchemaSelect; }; + readStateTableByReadStateTableId?: { + select: TableSelect; + }; schema?: { select: SchemaSelect; }; @@ -9609,8 +9619,8 @@ export interface NotificationsModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `notificationsTableId` field. */ notificationsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; /** Filter by the object’s `preferencesTableId` field. */ preferencesTableId?: UUIDFilter; /** Filter by the object’s `channelsTableId` field. */ @@ -9623,6 +9633,16 @@ export interface NotificationsModuleFilter { userSettingsTableId?: UUIDFilter; /** Filter by the object’s `organizationSettingsTableId` field. */ organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; /** Checks for all expressions in this list. */ and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ @@ -9631,12 +9651,14 @@ export interface NotificationsModuleFilter { not?: NotificationsModuleFilter; /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ channelsTableByChannelsTableId?: TableFilter; + /** A related `channelsTableByChannelsTableId` exists. */ + channelsTableByChannelsTableIdExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** Filter by the object’s `eventsTableByEventsTableId` relation. */ - eventsTableByEventsTableId?: TableFilter; + /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ + deliveryLogTableByDeliveryLogTableIdExists?: boolean; /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ notificationsTableByNotificationsTableId?: TableFilter; /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ @@ -9647,8 +9669,12 @@ export interface NotificationsModuleFilter { ownerTable?: TableFilter; /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ preferencesTableByPreferencesTableId?: TableFilter; + /** A related `preferencesTableByPreferencesTableId` exists. */ + preferencesTableByPreferencesTableIdExists?: boolean; /** Filter by the object’s `privateSchema` relation. */ privateSchema?: SchemaFilter; + /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ + readStateTableByReadStateTableId?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ @@ -13124,8 +13150,8 @@ export type NotificationsModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_TABLE_ID_DESC' - | 'EVENTS_TABLE_ID_ASC' - | 'EVENTS_TABLE_ID_DESC' + | 'READ_STATE_TABLE_ID_ASC' + | 'READ_STATE_TABLE_ID_DESC' | 'PREFERENCES_TABLE_ID_ASC' | 'PREFERENCES_TABLE_ID_DESC' | 'CHANNELS_TABLE_ID_ASC' @@ -13137,7 +13163,17 @@ export type NotificationsModuleOrderBy = | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC' | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC'; + | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' + | 'HAS_CHANNELS_ASC' + | 'HAS_CHANNELS_DESC' + | 'HAS_PREFERENCES_ASC' + | 'HAS_PREFERENCES_DESC' + | 'HAS_SETTINGS_EXTENSION_ASC' + | 'HAS_SETTINGS_EXTENSION_DESC' + | 'HAS_DIGEST_METADATA_ASC' + | 'HAS_DIGEST_METADATA_DESC' + | 'HAS_SUBSCRIPTIONS_ASC' + | 'HAS_SUBSCRIPTIONS_DESC'; export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -16614,13 +16650,18 @@ export interface CreateNotificationsModuleInput { schemaId?: string; privateSchemaId?: string; notificationsTableId?: string; - eventsTableId?: string; + readStateTableId?: string; preferencesTableId?: string; channelsTableId?: string; deliveryLogTableId?: string; ownerTableId?: string; userSettingsTableId?: string; organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; }; } export interface NotificationsModulePatch { @@ -16628,13 +16669,18 @@ export interface NotificationsModulePatch { schemaId?: string | null; privateSchemaId?: string | null; notificationsTableId?: string | null; - eventsTableId?: string | null; + readStateTableId?: string | null; preferencesTableId?: string | null; channelsTableId?: string | null; deliveryLogTableId?: string | null; ownerTableId?: string | null; userSettingsTableId?: string | null; organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; } export interface UpdateNotificationsModuleInput { clientMutationId?: string; @@ -23019,8 +23065,8 @@ export interface NotificationsModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `notificationsTableId` field. */ notificationsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; /** Filter by the object’s `preferencesTableId` field. */ preferencesTableId?: UUIDFilter; /** Filter by the object’s `channelsTableId` field. */ @@ -23033,6 +23079,16 @@ export interface NotificationsModuleFilter { userSettingsTableId?: UUIDFilter; /** Filter by the object’s `organizationSettingsTableId` field. */ organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; /** Checks for all expressions in this list. */ and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ @@ -23041,12 +23097,14 @@ export interface NotificationsModuleFilter { not?: NotificationsModuleFilter; /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ channelsTableByChannelsTableId?: TableFilter; + /** A related `channelsTableByChannelsTableId` exists. */ + channelsTableByChannelsTableIdExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** Filter by the object’s `eventsTableByEventsTableId` relation. */ - eventsTableByEventsTableId?: TableFilter; + /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ + deliveryLogTableByDeliveryLogTableIdExists?: boolean; /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ notificationsTableByNotificationsTableId?: TableFilter; /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ @@ -23057,8 +23115,12 @@ export interface NotificationsModuleFilter { ownerTable?: TableFilter; /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ preferencesTableByPreferencesTableId?: TableFilter; + /** A related `preferencesTableByPreferencesTableId` exists. */ + preferencesTableByPreferencesTableIdExists?: boolean; /** Filter by the object’s `privateSchema` relation. */ privateSchema?: SchemaFilter; + /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ + readStateTableByReadStateTableId?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index 17643c846..9c1a3e829 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -2246,20 +2246,20 @@ create({ databaseId: '', schemaId: '', usersTableId: '', crede ```typescript // List all notificationsModules const { data, isLoading } = useNotificationsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }, }); // Get one notificationsModule const { data: item } = useNotificationsModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }, }); // Create a notificationsModule const { mutate: create } = useCreateNotificationsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', eventsTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }); ``` ### DatabaseProvisionModule diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md index 619a9905b..74e83c23e 100644 --- a/sdk/constructive-react/src/public/orm/README.md +++ b/sdk/constructive-react/src/public/orm/README.md @@ -2906,25 +2906,30 @@ CRUD operations for NotificationsModule records. | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `notificationsTableId` | UUID | Yes | -| `eventsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | | `preferencesTableId` | UUID | Yes | | `channelsTableId` | UUID | Yes | | `deliveryLogTableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `userSettingsTableId` | UUID | Yes | | `organizationSettingsTableId` | UUID | Yes | +| `hasChannels` | Boolean | Yes | +| `hasPreferences` | Boolean | Yes | +| `hasSettingsExtension` | Boolean | Yes | +| `hasDigestMetadata` | Boolean | Yes | +| `hasSubscriptions` | Boolean | Yes | **Operations:** ```typescript // List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } }).execute(); +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', eventsTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }, select: { id: true } }).execute(); // Update const updated = await db.notificationsModule.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 d0c3f338e..888d00b99 100644 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -1576,13 +1576,18 @@ export interface NotificationsModule { schemaId?: string | null; privateSchemaId?: string | null; notificationsTableId?: string | null; - eventsTableId?: string | null; + readStateTableId?: string | null; preferencesTableId?: string | null; channelsTableId?: string | null; deliveryLogTableId?: string | null; ownerTableId?: string | null; userSettingsTableId?: string | null; organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; } /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { @@ -2797,12 +2802,12 @@ export interface NotificationsModuleRelations { channelsTableByChannelsTableId?: Table | null; database?: Database | null; deliveryLogTableByDeliveryLogTableId?: Table | null; - eventsTableByEventsTableId?: Table | null; notificationsTableByNotificationsTableId?: Table | null; organizationSettingsTableByOrganizationSettingsTableId?: Table | null; ownerTable?: Table | null; preferencesTableByPreferencesTableId?: Table | null; privateSchema?: Schema | null; + readStateTableByReadStateTableId?: Table | null; schema?: Schema | null; userSettingsTableByUserSettingsTableId?: Table | null; } @@ -5447,13 +5452,18 @@ export type NotificationsModuleSelect = { schemaId?: boolean; privateSchemaId?: boolean; notificationsTableId?: boolean; - eventsTableId?: boolean; + readStateTableId?: boolean; preferencesTableId?: boolean; channelsTableId?: boolean; deliveryLogTableId?: boolean; ownerTableId?: boolean; userSettingsTableId?: boolean; organizationSettingsTableId?: boolean; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; channelsTableByChannelsTableId?: { select: TableSelect; }; @@ -5463,9 +5473,6 @@ export type NotificationsModuleSelect = { deliveryLogTableByDeliveryLogTableId?: { select: TableSelect; }; - eventsTableByEventsTableId?: { - select: TableSelect; - }; notificationsTableByNotificationsTableId?: { select: TableSelect; }; @@ -5481,6 +5488,9 @@ export type NotificationsModuleSelect = { privateSchema?: { select: SchemaSelect; }; + readStateTableByReadStateTableId?: { + select: TableSelect; + }; schema?: { select: SchemaSelect; }; @@ -9609,8 +9619,8 @@ export interface NotificationsModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `notificationsTableId` field. */ notificationsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; /** Filter by the object’s `preferencesTableId` field. */ preferencesTableId?: UUIDFilter; /** Filter by the object’s `channelsTableId` field. */ @@ -9623,6 +9633,16 @@ export interface NotificationsModuleFilter { userSettingsTableId?: UUIDFilter; /** Filter by the object’s `organizationSettingsTableId` field. */ organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; /** Checks for all expressions in this list. */ and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ @@ -9631,12 +9651,14 @@ export interface NotificationsModuleFilter { not?: NotificationsModuleFilter; /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ channelsTableByChannelsTableId?: TableFilter; + /** A related `channelsTableByChannelsTableId` exists. */ + channelsTableByChannelsTableIdExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** Filter by the object’s `eventsTableByEventsTableId` relation. */ - eventsTableByEventsTableId?: TableFilter; + /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ + deliveryLogTableByDeliveryLogTableIdExists?: boolean; /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ notificationsTableByNotificationsTableId?: TableFilter; /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ @@ -9647,8 +9669,12 @@ export interface NotificationsModuleFilter { ownerTable?: TableFilter; /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ preferencesTableByPreferencesTableId?: TableFilter; + /** A related `preferencesTableByPreferencesTableId` exists. */ + preferencesTableByPreferencesTableIdExists?: boolean; /** Filter by the object’s `privateSchema` relation. */ privateSchema?: SchemaFilter; + /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ + readStateTableByReadStateTableId?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ @@ -13124,8 +13150,8 @@ export type NotificationsModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_TABLE_ID_DESC' - | 'EVENTS_TABLE_ID_ASC' - | 'EVENTS_TABLE_ID_DESC' + | 'READ_STATE_TABLE_ID_ASC' + | 'READ_STATE_TABLE_ID_DESC' | 'PREFERENCES_TABLE_ID_ASC' | 'PREFERENCES_TABLE_ID_DESC' | 'CHANNELS_TABLE_ID_ASC' @@ -13137,7 +13163,17 @@ export type NotificationsModuleOrderBy = | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC' | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC'; + | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' + | 'HAS_CHANNELS_ASC' + | 'HAS_CHANNELS_DESC' + | 'HAS_PREFERENCES_ASC' + | 'HAS_PREFERENCES_DESC' + | 'HAS_SETTINGS_EXTENSION_ASC' + | 'HAS_SETTINGS_EXTENSION_DESC' + | 'HAS_DIGEST_METADATA_ASC' + | 'HAS_DIGEST_METADATA_DESC' + | 'HAS_SUBSCRIPTIONS_ASC' + | 'HAS_SUBSCRIPTIONS_DESC'; export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -16614,13 +16650,18 @@ export interface CreateNotificationsModuleInput { schemaId?: string; privateSchemaId?: string; notificationsTableId?: string; - eventsTableId?: string; + readStateTableId?: string; preferencesTableId?: string; channelsTableId?: string; deliveryLogTableId?: string; ownerTableId?: string; userSettingsTableId?: string; organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; }; } export interface NotificationsModulePatch { @@ -16628,13 +16669,18 @@ export interface NotificationsModulePatch { schemaId?: string | null; privateSchemaId?: string | null; notificationsTableId?: string | null; - eventsTableId?: string | null; + readStateTableId?: string | null; preferencesTableId?: string | null; channelsTableId?: string | null; deliveryLogTableId?: string | null; ownerTableId?: string | null; userSettingsTableId?: string | null; organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; } export interface UpdateNotificationsModuleInput { clientMutationId?: string; @@ -23019,8 +23065,8 @@ export interface NotificationsModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `notificationsTableId` field. */ notificationsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; /** Filter by the object’s `preferencesTableId` field. */ preferencesTableId?: UUIDFilter; /** Filter by the object’s `channelsTableId` field. */ @@ -23033,6 +23079,16 @@ export interface NotificationsModuleFilter { userSettingsTableId?: UUIDFilter; /** Filter by the object’s `organizationSettingsTableId` field. */ organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; /** Checks for all expressions in this list. */ and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ @@ -23041,12 +23097,14 @@ export interface NotificationsModuleFilter { not?: NotificationsModuleFilter; /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ channelsTableByChannelsTableId?: TableFilter; + /** A related `channelsTableByChannelsTableId` exists. */ + channelsTableByChannelsTableIdExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** Filter by the object’s `eventsTableByEventsTableId` relation. */ - eventsTableByEventsTableId?: TableFilter; + /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ + deliveryLogTableByDeliveryLogTableIdExists?: boolean; /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ notificationsTableByNotificationsTableId?: TableFilter; /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ @@ -23057,8 +23115,12 @@ export interface NotificationsModuleFilter { ownerTable?: TableFilter; /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ preferencesTableByPreferencesTableId?: TableFilter; + /** A related `preferencesTableByPreferencesTableId` exists. */ + preferencesTableByPreferencesTableIdExists?: boolean; /** Filter by the object’s `privateSchema` relation. */ privateSchema?: SchemaFilter; + /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ + readStateTableByReadStateTableId?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts index 643cc11d3..fe153da77 100644 --- a/sdk/constructive-react/src/public/schema-types.ts +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -1975,8 +1975,8 @@ export type NotificationsModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_TABLE_ID_DESC' - | 'EVENTS_TABLE_ID_ASC' - | 'EVENTS_TABLE_ID_DESC' + | 'READ_STATE_TABLE_ID_ASC' + | 'READ_STATE_TABLE_ID_DESC' | 'PREFERENCES_TABLE_ID_ASC' | 'PREFERENCES_TABLE_ID_DESC' | 'CHANNELS_TABLE_ID_ASC' @@ -1988,7 +1988,17 @@ export type NotificationsModuleOrderBy = | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC' | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC'; + | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' + | 'HAS_CHANNELS_ASC' + | 'HAS_CHANNELS_DESC' + | 'HAS_PREFERENCES_ASC' + | 'HAS_PREFERENCES_DESC' + | 'HAS_SETTINGS_EXTENSION_ASC' + | 'HAS_SETTINGS_EXTENSION_DESC' + | 'HAS_DIGEST_METADATA_ASC' + | 'HAS_DIGEST_METADATA_DESC' + | 'HAS_SUBSCRIPTIONS_ASC' + | 'HAS_SUBSCRIPTIONS_DESC'; /** Methods to use when ordering `DatabaseProvisionModule`. */ export type DatabaseProvisionModuleOrderBy = | 'NATURAL' @@ -9265,8 +9275,8 @@ export interface NotificationsModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `notificationsTableId` field. */ notificationsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; /** Filter by the object’s `preferencesTableId` field. */ preferencesTableId?: UUIDFilter; /** Filter by the object’s `channelsTableId` field. */ @@ -9279,6 +9289,16 @@ export interface NotificationsModuleFilter { userSettingsTableId?: UUIDFilter; /** Filter by the object’s `organizationSettingsTableId` field. */ organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; /** Checks for all expressions in this list. */ and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ @@ -9287,12 +9307,14 @@ export interface NotificationsModuleFilter { not?: NotificationsModuleFilter; /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ channelsTableByChannelsTableId?: TableFilter; + /** A related `channelsTableByChannelsTableId` exists. */ + channelsTableByChannelsTableIdExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** Filter by the object’s `eventsTableByEventsTableId` relation. */ - eventsTableByEventsTableId?: TableFilter; + /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ + deliveryLogTableByDeliveryLogTableIdExists?: boolean; /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ notificationsTableByNotificationsTableId?: TableFilter; /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ @@ -9303,8 +9325,12 @@ export interface NotificationsModuleFilter { ownerTable?: TableFilter; /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ preferencesTableByPreferencesTableId?: TableFilter; + /** A related `preferencesTableByPreferencesTableId` exists. */ + preferencesTableByPreferencesTableIdExists?: boolean; /** Filter by the object’s `privateSchema` relation. */ privateSchema?: SchemaFilter; + /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ + readStateTableByReadStateTableId?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ @@ -11288,26 +11314,6 @@ export interface DenormalizedTableFieldInput { funcName?: string; funcOrder?: number; } -export interface CreateNotificationsModuleInput { - clientMutationId?: string; - /** The `NotificationsModule` to be created by this mutation. */ - notificationsModule: NotificationsModuleInput; -} -/** An input for mutations affecting `NotificationsModule` */ -export interface NotificationsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - notificationsTableId?: string; - eventsTableId?: string; - preferencesTableId?: string; - channelsTableId?: string; - deliveryLogTableId?: string; - ownerTableId?: string; - userSettingsTableId?: string; - organizationSettingsTableId?: string; -} export interface CreateEmailInput { clientMutationId?: string; /** The `Email` to be created by this mutation. */ @@ -11820,6 +11826,31 @@ export interface PolicyInput { createdAt?: string; updatedAt?: string; } +export interface CreateNotificationsModuleInput { + clientMutationId?: string; + /** The `NotificationsModule` to be created by this mutation. */ + notificationsModule: NotificationsModuleInput; +} +/** An input for mutations affecting `NotificationsModule` */ +export interface NotificationsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; +} export interface CreatePermissionsModuleInput { clientMutationId?: string; /** The `PermissionsModule` to be created by this mutation. */ @@ -14005,27 +14036,6 @@ export interface DenormalizedTableFieldPatch { funcName?: string; funcOrder?: number; } -export interface UpdateNotificationsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `NotificationsModule` being updated. */ - notificationsModulePatch: NotificationsModulePatch; -} -/** Represents an update to a `NotificationsModule`. Fields that are set will be updated. */ -export interface NotificationsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - notificationsTableId?: string; - eventsTableId?: string; - preferencesTableId?: string; - channelsTableId?: string; - deliveryLogTableId?: string; - ownerTableId?: string; - userSettingsTableId?: string; - organizationSettingsTableId?: string; -} export interface UpdateEmailInput { clientMutationId?: string; id: string; @@ -14533,6 +14543,32 @@ export interface PolicyPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateNotificationsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `NotificationsModule` being updated. */ + notificationsModulePatch: NotificationsModulePatch; +} +/** Represents an update to a `NotificationsModule`. Fields that are set will be updated. */ +export interface NotificationsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; +} export interface UpdatePermissionsModuleInput { clientMutationId?: string; id: string; @@ -15764,10 +15800,6 @@ export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } -export interface DeleteNotificationsModuleInput { - clientMutationId?: string; - id: string; -} export interface DeleteEmailInput { clientMutationId?: string; id: string; @@ -15851,6 +15883,10 @@ export interface DeletePolicyInput { clientMutationId?: string; id: string; } +export interface DeleteNotificationsModuleInput { + clientMutationId?: string; + id: string; +} export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; @@ -16499,13 +16535,6 @@ export interface DenormalizedTableFieldConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `NotificationsModule` values. */ -export interface NotificationsModuleConnection { - nodes: NotificationsModule[]; - edges: NotificationsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Email` values. */ export interface EmailConnection { nodes: Email[]; @@ -16660,6 +16689,13 @@ export interface PolicyConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `NotificationsModule` values. */ +export interface NotificationsModuleConnection { + nodes: NotificationsModule[]; + edges: NotificationsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PermissionsModule` values. */ export interface PermissionsModuleConnection { nodes: PermissionsModule[]; @@ -17427,12 +17463,6 @@ export interface CreateDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export interface CreateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was created by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} export interface CreateEmailPayload { clientMutationId?: string | null; /** The `Email` that was created by this mutation. */ @@ -17563,6 +17593,12 @@ export interface CreatePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } +export interface CreateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was created by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} export interface CreatePermissionsModulePayload { clientMutationId?: string | null; /** The `PermissionsModule` that was created by this mutation. */ @@ -18109,12 +18145,6 @@ export interface UpdateDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export interface UpdateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was updated by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} export interface UpdateEmailPayload { clientMutationId?: string | null; /** The `Email` that was updated by this mutation. */ @@ -18235,6 +18265,12 @@ export interface UpdatePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } +export interface UpdateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was updated by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; /** The `PermissionsModule` that was updated by this mutation. */ @@ -18781,12 +18817,6 @@ export interface DeleteDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export interface DeleteNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was deleted by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} export interface DeleteEmailPayload { clientMutationId?: string | null; /** The `Email` that was deleted by this mutation. */ @@ -18907,6 +18937,12 @@ export interface DeletePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } +export interface DeleteNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was deleted by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} export interface DeletePermissionsModulePayload { clientMutationId?: string | null; /** The `PermissionsModule` that was deleted by this mutation. */ @@ -19534,12 +19570,6 @@ export interface DenormalizedTableFieldEdge { /** The `DenormalizedTableField` at the end of the edge. */ node?: DenormalizedTableField | null; } -/** A `NotificationsModule` edge in the connection. */ -export interface NotificationsModuleEdge { - cursor?: string | null; - /** The `NotificationsModule` at the end of the edge. */ - node?: NotificationsModule | null; -} /** A `Email` edge in the connection. */ export interface EmailEdge { cursor?: string | null; @@ -19672,6 +19702,12 @@ export interface PolicyEdge { /** The `Policy` at the end of the edge. */ node?: Policy | null; } +/** A `NotificationsModule` edge in the connection. */ +export interface NotificationsModuleEdge { + cursor?: string | null; + /** The `NotificationsModule` at the end of the edge. */ + node?: NotificationsModule | null; +} /** A `PermissionsModule` edge in the connection. */ export interface PermissionsModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts index 7f7589654..f687bd63c 100644 --- a/sdk/constructive-react/src/public/types.ts +++ b/sdk/constructive-react/src/public/types.ts @@ -947,13 +947,18 @@ export interface NotificationsModule { schemaId: string | null; privateSchemaId: string | null; notificationsTableId: string | null; - eventsTableId: string | null; + readStateTableId: string | null; preferencesTableId: string | null; channelsTableId: string | null; deliveryLogTableId: string | null; ownerTableId: string | null; userSettingsTableId: string | null; organizationSettingsTableId: string | null; + hasChannels: boolean | null; + hasPreferences: boolean | null; + hasSettingsExtension: boolean | null; + hasDigestMetadata: boolean | null; + hasSubscriptions: boolean | null; } export interface DatabaseProvisionModule { id: string | null; diff --git a/sdk/constructive-sdk/schemas/public.graphql b/sdk/constructive-sdk/schemas/public.graphql index ff5bd6097..d7c13332e 100644 --- a/sdk/constructive-sdk/schemas/public.graphql +++ b/sdk/constructive-sdk/schemas/public.graphql @@ -14913,8 +14913,8 @@ input NotificationsModuleFilter { """Filter by the object’s `notificationsTableId` field.""" notificationsTableId: UUIDFilter - """Filter by the object’s `eventsTableId` field.""" - eventsTableId: UUIDFilter + """Filter by the object’s `readStateTableId` field.""" + readStateTableId: UUIDFilter """Filter by the object’s `preferencesTableId` field.""" preferencesTableId: UUIDFilter @@ -14934,6 +14934,21 @@ input NotificationsModuleFilter { """Filter by the object’s `organizationSettingsTableId` field.""" organizationSettingsTableId: UUIDFilter + """Filter by the object’s `hasChannels` field.""" + hasChannels: BooleanFilter + + """Filter by the object’s `hasPreferences` field.""" + hasPreferences: BooleanFilter + + """Filter by the object’s `hasSettingsExtension` field.""" + hasSettingsExtension: BooleanFilter + + """Filter by the object’s `hasDigestMetadata` field.""" + hasDigestMetadata: BooleanFilter + + """Filter by the object’s `hasSubscriptions` field.""" + hasSubscriptions: BooleanFilter + """Checks for all expressions in this list.""" and: [NotificationsModuleFilter!] @@ -14946,6 +14961,9 @@ input NotificationsModuleFilter { """Filter by the object’s `channelsTableByChannelsTableId` relation.""" channelsTableByChannelsTableId: TableFilter + """A related `channelsTableByChannelsTableId` exists.""" + channelsTableByChannelsTableIdExists: Boolean + """Filter by the object’s `database` relation.""" database: DatabaseFilter @@ -14954,8 +14972,8 @@ input NotificationsModuleFilter { """ deliveryLogTableByDeliveryLogTableId: TableFilter - """Filter by the object’s `eventsTableByEventsTableId` relation.""" - eventsTableByEventsTableId: TableFilter + """A related `deliveryLogTableByDeliveryLogTableId` exists.""" + deliveryLogTableByDeliveryLogTableIdExists: Boolean """ Filter by the object’s `notificationsTableByNotificationsTableId` relation. @@ -14980,9 +14998,15 @@ input NotificationsModuleFilter { """ preferencesTableByPreferencesTableId: TableFilter + """A related `preferencesTableByPreferencesTableId` exists.""" + preferencesTableByPreferencesTableIdExists: Boolean + """Filter by the object’s `privateSchema` relation.""" privateSchema: SchemaFilter + """Filter by the object’s `readStateTableByReadStateTableId` relation.""" + readStateTableByReadStateTableId: TableFilter + """Filter by the object’s `schema` relation.""" schema: SchemaFilter @@ -21523,13 +21547,18 @@ type NotificationsModule { schemaId: UUID! privateSchemaId: UUID! notificationsTableId: UUID! - eventsTableId: UUID! - preferencesTableId: UUID! - channelsTableId: UUID! - deliveryLogTableId: UUID! + readStateTableId: UUID! + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID ownerTableId: UUID! userSettingsTableId: UUID organizationSettingsTableId: UUID + hasChannels: Boolean! + hasPreferences: Boolean! + hasSettingsExtension: Boolean! + hasDigestMetadata: Boolean! + hasSubscriptions: Boolean! """Reads a single `Table` that is related to this `NotificationsModule`.""" channelsTableByChannelsTableId: Table @@ -21542,9 +21571,6 @@ type NotificationsModule { """Reads a single `Table` that is related to this `NotificationsModule`.""" deliveryLogTableByDeliveryLogTableId: Table - """Reads a single `Table` that is related to this `NotificationsModule`.""" - eventsTableByEventsTableId: Table - """Reads a single `Table` that is related to this `NotificationsModule`.""" notificationsTableByNotificationsTableId: Table @@ -21560,6 +21586,9 @@ type NotificationsModule { """Reads a single `Schema` that is related to this `NotificationsModule`.""" privateSchema: Schema + """Reads a single `Table` that is related to this `NotificationsModule`.""" + readStateTableByReadStateTableId: Table + """Reads a single `Schema` that is related to this `NotificationsModule`.""" schema: Schema @@ -21591,8 +21620,8 @@ enum NotificationsModuleOrderBy { PRIVATE_SCHEMA_ID_DESC NOTIFICATIONS_TABLE_ID_ASC NOTIFICATIONS_TABLE_ID_DESC - EVENTS_TABLE_ID_ASC - EVENTS_TABLE_ID_DESC + READ_STATE_TABLE_ID_ASC + READ_STATE_TABLE_ID_DESC PREFERENCES_TABLE_ID_ASC PREFERENCES_TABLE_ID_DESC CHANNELS_TABLE_ID_ASC @@ -21605,6 +21634,16 @@ enum NotificationsModuleOrderBy { USER_SETTINGS_TABLE_ID_DESC ORGANIZATION_SETTINGS_TABLE_ID_ASC ORGANIZATION_SETTINGS_TABLE_ID_DESC + HAS_CHANNELS_ASC + HAS_CHANNELS_DESC + HAS_PREFERENCES_ASC + HAS_PREFERENCES_DESC + HAS_SETTINGS_EXTENSION_ASC + HAS_SETTINGS_EXTENSION_DESC + HAS_DIGEST_METADATA_ASC + HAS_DIGEST_METADATA_DESC + HAS_SUBSCRIPTIONS_ASC + HAS_SUBSCRIPTIONS_DESC } """A connection to a list of `DatabaseProvisionModule` values.""" @@ -31101,57 +31140,6 @@ input DenormalizedTableFieldInput { funcOrder: Int } -"""The output of our create `NotificationsModule` mutation.""" -type CreateNotificationsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `NotificationsModule` that was created by this mutation.""" - notificationsModule: NotificationsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `NotificationsModule`. May be used by Relay 1.""" - notificationsModuleEdge( - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NotificationsModuleEdge -} - -"""All input for the create `NotificationsModule` mutation.""" -input CreateNotificationsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `NotificationsModule` to be created by this mutation.""" - notificationsModule: NotificationsModuleInput! -} - -"""An input for mutations affecting `NotificationsModule`""" -input NotificationsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - notificationsTableId: UUID - eventsTableId: UUID - preferencesTableId: UUID - channelsTableId: UUID - deliveryLogTableId: UUID - ownerTableId: UUID - userSettingsTableId: UUID - organizationSettingsTableId: UUID -} - """The output of our create `Email` mutation.""" type CreateEmailPayload { """ @@ -32426,6 +32414,62 @@ input PolicyInput { updatedAt: Datetime } +"""The output of our create `NotificationsModule` mutation.""" +type CreateNotificationsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NotificationsModule` that was created by this mutation.""" + notificationsModule: NotificationsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NotificationsModule`. May be used by Relay 1.""" + notificationsModuleEdge( + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NotificationsModuleEdge +} + +"""All input for the create `NotificationsModule` mutation.""" +input CreateNotificationsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `NotificationsModule` to be created by this mutation.""" + notificationsModule: NotificationsModuleInput! +} + +"""An input for mutations affecting `NotificationsModule`""" +input NotificationsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + notificationsTableId: UUID + readStateTableId: UUID + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + ownerTableId: UUID + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean + hasPreferences: Boolean + hasSettingsExtension: Boolean + hasDigestMetadata: Boolean + hasSubscriptions: Boolean +} + """The output of our create `PermissionsModule` mutation.""" type CreatePermissionsModulePayload { """ @@ -38154,62 +38198,6 @@ input DenormalizedTableFieldPatch { funcOrder: Int } -"""The output of our update `NotificationsModule` mutation.""" -type UpdateNotificationsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `NotificationsModule` that was updated by this mutation.""" - notificationsModule: NotificationsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `NotificationsModule`. May be used by Relay 1.""" - notificationsModuleEdge( - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NotificationsModuleEdge -} - -"""All input for the `updateNotificationsModule` mutation.""" -input UpdateNotificationsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `NotificationsModule` being updated. - """ - notificationsModulePatch: NotificationsModulePatch! -} - -""" -Represents an update to a `NotificationsModule`. Fields that are set will be updated. -""" -input NotificationsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - notificationsTableId: UUID - eventsTableId: UUID - preferencesTableId: UUID - channelsTableId: UUID - deliveryLogTableId: UUID - ownerTableId: UUID - userSettingsTableId: UUID - organizationSettingsTableId: UUID -} - """The output of our update `Email` mutation.""" type UpdateEmailPayload { """ @@ -39509,6 +39497,67 @@ input PolicyPatch { updatedAt: Datetime } +"""The output of our update `NotificationsModule` mutation.""" +type UpdateNotificationsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NotificationsModule` that was updated by this mutation.""" + notificationsModule: NotificationsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NotificationsModule`. May be used by Relay 1.""" + notificationsModuleEdge( + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NotificationsModuleEdge +} + +"""All input for the `updateNotificationsModule` mutation.""" +input UpdateNotificationsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `NotificationsModule` being updated. + """ + notificationsModulePatch: NotificationsModulePatch! +} + +""" +Represents an update to a `NotificationsModule`. Fields that are set will be updated. +""" +input NotificationsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + notificationsTableId: UUID + readStateTableId: UUID + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + ownerTableId: UUID + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean + hasPreferences: Boolean + hasSettingsExtension: Boolean + hasDigestMetadata: Boolean + hasSubscriptions: Boolean +} + """The output of our update `PermissionsModule` mutation.""" type UpdatePermissionsModulePayload { """ @@ -43735,39 +43784,6 @@ input DeleteDenormalizedTableFieldInput { id: UUID! } -"""The output of our delete `NotificationsModule` mutation.""" -type DeleteNotificationsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `NotificationsModule` that was deleted by this mutation.""" - notificationsModule: NotificationsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `NotificationsModule`. May be used by Relay 1.""" - notificationsModuleEdge( - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NotificationsModuleEdge -} - -"""All input for the `deleteNotificationsModule` mutation.""" -input DeleteNotificationsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `Email` mutation.""" type DeleteEmailPayload { """ @@ -44434,6 +44450,39 @@ input DeletePolicyInput { id: UUID! } +"""The output of our delete `NotificationsModule` mutation.""" +type DeleteNotificationsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NotificationsModule` that was deleted by this mutation.""" + notificationsModule: NotificationsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NotificationsModule`. May be used by Relay 1.""" + notificationsModuleEdge( + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NotificationsModuleEdge +} + +"""All input for the `deleteNotificationsModule` mutation.""" +input DeleteNotificationsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `PermissionsModule` mutation.""" type DeletePermissionsModulePayload { """ @@ -47498,35 +47547,6 @@ type Query { orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] ): DenormalizedTableFieldConnection - """Reads and enables pagination through a set of `NotificationsModule`.""" - notificationsModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: NotificationsModuleFilter - - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): NotificationsModuleConnection - """Reads and enables pagination through a set of `Email`.""" emails( """Only read the first `n` values of the set.""" @@ -48167,6 +48187,35 @@ type Query { orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] ): PolicyConnection + """Reads and enables pagination through a set of `NotificationsModule`.""" + notificationsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: NotificationsModuleFilter + + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): NotificationsModuleConnection + """Reads and enables pagination through a set of `PermissionsModule`.""" permissionsModules( """Only read the first `n` values of the set.""" @@ -49708,14 +49757,6 @@ type Mutation { input: CreateDenormalizedTableFieldInput! ): CreateDenormalizedTableFieldPayload - """Creates a single `NotificationsModule`.""" - createNotificationsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateNotificationsModuleInput! - ): CreateNotificationsModulePayload - """Creates a single `Email`.""" createEmail( """ @@ -49892,6 +49933,14 @@ type Mutation { input: CreatePolicyInput! ): CreatePolicyPayload + """Creates a single `NotificationsModule`.""" + createNotificationsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateNotificationsModuleInput! + ): CreateNotificationsModulePayload + """Creates a single `PermissionsModule`.""" createPermissionsModule( """ @@ -50646,14 +50695,6 @@ type Mutation { input: UpdateDenormalizedTableFieldInput! ): UpdateDenormalizedTableFieldPayload - """Updates a single `NotificationsModule` using a unique key and a patch.""" - updateNotificationsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateNotificationsModuleInput! - ): UpdateNotificationsModulePayload - """Updates a single `Email` using a unique key and a patch.""" updateEmail( """ @@ -50822,6 +50863,14 @@ type Mutation { input: UpdatePolicyInput! ): UpdatePolicyPayload + """Updates a single `NotificationsModule` using a unique key and a patch.""" + updateNotificationsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNotificationsModuleInput! + ): UpdateNotificationsModulePayload + """Updates a single `PermissionsModule` using a unique key and a patch.""" updatePermissionsModule( """ @@ -51552,14 +51601,6 @@ type Mutation { input: DeleteDenormalizedTableFieldInput! ): DeleteDenormalizedTableFieldPayload - """Deletes a single `NotificationsModule` using a unique key.""" - deleteNotificationsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteNotificationsModuleInput! - ): DeleteNotificationsModulePayload - """Deletes a single `Email` using a unique key.""" deleteEmail( """ @@ -51720,6 +51761,14 @@ type Mutation { input: DeletePolicyInput! ): DeletePolicyPayload + """Deletes a single `NotificationsModule` using a unique key.""" + deleteNotificationsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteNotificationsModuleInput! + ): DeleteNotificationsModulePayload + """Deletes a single `PermissionsModule` using a unique key.""" deletePermissionsModule( """ diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md index 619a9905b..74e83c23e 100644 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -2906,25 +2906,30 @@ CRUD operations for NotificationsModule records. | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `notificationsTableId` | UUID | Yes | -| `eventsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | | `preferencesTableId` | UUID | Yes | | `channelsTableId` | UUID | Yes | | `deliveryLogTableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `userSettingsTableId` | UUID | Yes | | `organizationSettingsTableId` | UUID | Yes | +| `hasChannels` | Boolean | Yes | +| `hasPreferences` | Boolean | Yes | +| `hasSettingsExtension` | Boolean | Yes | +| `hasDigestMetadata` | Boolean | Yes | +| `hasSubscriptions` | Boolean | Yes | **Operations:** ```typescript // List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } }).execute(); +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', eventsTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }, select: { id: true } }).execute(); // Update const updated = await db.notificationsModule.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 d0c3f338e..888d00b99 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -1576,13 +1576,18 @@ export interface NotificationsModule { schemaId?: string | null; privateSchemaId?: string | null; notificationsTableId?: string | null; - eventsTableId?: string | null; + readStateTableId?: string | null; preferencesTableId?: string | null; channelsTableId?: string | null; deliveryLogTableId?: string | null; ownerTableId?: string | null; userSettingsTableId?: string | null; organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; } /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { @@ -2797,12 +2802,12 @@ export interface NotificationsModuleRelations { channelsTableByChannelsTableId?: Table | null; database?: Database | null; deliveryLogTableByDeliveryLogTableId?: Table | null; - eventsTableByEventsTableId?: Table | null; notificationsTableByNotificationsTableId?: Table | null; organizationSettingsTableByOrganizationSettingsTableId?: Table | null; ownerTable?: Table | null; preferencesTableByPreferencesTableId?: Table | null; privateSchema?: Schema | null; + readStateTableByReadStateTableId?: Table | null; schema?: Schema | null; userSettingsTableByUserSettingsTableId?: Table | null; } @@ -5447,13 +5452,18 @@ export type NotificationsModuleSelect = { schemaId?: boolean; privateSchemaId?: boolean; notificationsTableId?: boolean; - eventsTableId?: boolean; + readStateTableId?: boolean; preferencesTableId?: boolean; channelsTableId?: boolean; deliveryLogTableId?: boolean; ownerTableId?: boolean; userSettingsTableId?: boolean; organizationSettingsTableId?: boolean; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; channelsTableByChannelsTableId?: { select: TableSelect; }; @@ -5463,9 +5473,6 @@ export type NotificationsModuleSelect = { deliveryLogTableByDeliveryLogTableId?: { select: TableSelect; }; - eventsTableByEventsTableId?: { - select: TableSelect; - }; notificationsTableByNotificationsTableId?: { select: TableSelect; }; @@ -5481,6 +5488,9 @@ export type NotificationsModuleSelect = { privateSchema?: { select: SchemaSelect; }; + readStateTableByReadStateTableId?: { + select: TableSelect; + }; schema?: { select: SchemaSelect; }; @@ -9609,8 +9619,8 @@ export interface NotificationsModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `notificationsTableId` field. */ notificationsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; /** Filter by the object’s `preferencesTableId` field. */ preferencesTableId?: UUIDFilter; /** Filter by the object’s `channelsTableId` field. */ @@ -9623,6 +9633,16 @@ export interface NotificationsModuleFilter { userSettingsTableId?: UUIDFilter; /** Filter by the object’s `organizationSettingsTableId` field. */ organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; /** Checks for all expressions in this list. */ and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ @@ -9631,12 +9651,14 @@ export interface NotificationsModuleFilter { not?: NotificationsModuleFilter; /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ channelsTableByChannelsTableId?: TableFilter; + /** A related `channelsTableByChannelsTableId` exists. */ + channelsTableByChannelsTableIdExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** Filter by the object’s `eventsTableByEventsTableId` relation. */ - eventsTableByEventsTableId?: TableFilter; + /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ + deliveryLogTableByDeliveryLogTableIdExists?: boolean; /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ notificationsTableByNotificationsTableId?: TableFilter; /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ @@ -9647,8 +9669,12 @@ export interface NotificationsModuleFilter { ownerTable?: TableFilter; /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ preferencesTableByPreferencesTableId?: TableFilter; + /** A related `preferencesTableByPreferencesTableId` exists. */ + preferencesTableByPreferencesTableIdExists?: boolean; /** Filter by the object’s `privateSchema` relation. */ privateSchema?: SchemaFilter; + /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ + readStateTableByReadStateTableId?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */ @@ -13124,8 +13150,8 @@ export type NotificationsModuleOrderBy = | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_TABLE_ID_DESC' - | 'EVENTS_TABLE_ID_ASC' - | 'EVENTS_TABLE_ID_DESC' + | 'READ_STATE_TABLE_ID_ASC' + | 'READ_STATE_TABLE_ID_DESC' | 'PREFERENCES_TABLE_ID_ASC' | 'PREFERENCES_TABLE_ID_DESC' | 'CHANNELS_TABLE_ID_ASC' @@ -13137,7 +13163,17 @@ export type NotificationsModuleOrderBy = | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC' | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC'; + | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' + | 'HAS_CHANNELS_ASC' + | 'HAS_CHANNELS_DESC' + | 'HAS_PREFERENCES_ASC' + | 'HAS_PREFERENCES_DESC' + | 'HAS_SETTINGS_EXTENSION_ASC' + | 'HAS_SETTINGS_EXTENSION_DESC' + | 'HAS_DIGEST_METADATA_ASC' + | 'HAS_DIGEST_METADATA_DESC' + | 'HAS_SUBSCRIPTIONS_ASC' + | 'HAS_SUBSCRIPTIONS_DESC'; export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -16614,13 +16650,18 @@ export interface CreateNotificationsModuleInput { schemaId?: string; privateSchemaId?: string; notificationsTableId?: string; - eventsTableId?: string; + readStateTableId?: string; preferencesTableId?: string; channelsTableId?: string; deliveryLogTableId?: string; ownerTableId?: string; userSettingsTableId?: string; organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; }; } export interface NotificationsModulePatch { @@ -16628,13 +16669,18 @@ export interface NotificationsModulePatch { schemaId?: string | null; privateSchemaId?: string | null; notificationsTableId?: string | null; - eventsTableId?: string | null; + readStateTableId?: string | null; preferencesTableId?: string | null; channelsTableId?: string | null; deliveryLogTableId?: string | null; ownerTableId?: string | null; userSettingsTableId?: string | null; organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; } export interface UpdateNotificationsModuleInput { clientMutationId?: string; @@ -23019,8 +23065,8 @@ export interface NotificationsModuleFilter { privateSchemaId?: UUIDFilter; /** Filter by the object’s `notificationsTableId` field. */ notificationsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; /** Filter by the object’s `preferencesTableId` field. */ preferencesTableId?: UUIDFilter; /** Filter by the object’s `channelsTableId` field. */ @@ -23033,6 +23079,16 @@ export interface NotificationsModuleFilter { userSettingsTableId?: UUIDFilter; /** Filter by the object’s `organizationSettingsTableId` field. */ organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; /** Checks for all expressions in this list. */ and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ @@ -23041,12 +23097,14 @@ export interface NotificationsModuleFilter { not?: NotificationsModuleFilter; /** Filter by the object’s `channelsTableByChannelsTableId` relation. */ channelsTableByChannelsTableId?: TableFilter; + /** A related `channelsTableByChannelsTableId` exists. */ + channelsTableByChannelsTableIdExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */ deliveryLogTableByDeliveryLogTableId?: TableFilter; - /** Filter by the object’s `eventsTableByEventsTableId` relation. */ - eventsTableByEventsTableId?: TableFilter; + /** A related `deliveryLogTableByDeliveryLogTableId` exists. */ + deliveryLogTableByDeliveryLogTableIdExists?: boolean; /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */ notificationsTableByNotificationsTableId?: TableFilter; /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */ @@ -23057,8 +23115,12 @@ export interface NotificationsModuleFilter { ownerTable?: TableFilter; /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */ preferencesTableByPreferencesTableId?: TableFilter; + /** A related `preferencesTableByPreferencesTableId` exists. */ + preferencesTableByPreferencesTableIdExists?: boolean; /** Filter by the object’s `privateSchema` relation. */ privateSchema?: SchemaFilter; + /** Filter by the object’s `readStateTableByReadStateTableId` relation. */ + readStateTableByReadStateTableId?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */