Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .agents/skills/cli-public/references/notifications-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ csdk notifications-module list --where.<field>.<op> <value> --orderBy <values>
csdk notifications-module list --limit 10 --after <cursor>
csdk notifications-module find-first --where.<field>.<op> <value>
csdk notifications-module get --id <UUID>
csdk notifications-module create --databaseId <UUID> [--schemaId <UUID>] [--privateSchemaId <UUID>] [--notificationsTableId <UUID>] [--eventsTableId <UUID>] [--preferencesTableId <UUID>] [--channelsTableId <UUID>] [--deliveryLogTableId <UUID>] [--ownerTableId <UUID>] [--userSettingsTableId <UUID>] [--organizationSettingsTableId <UUID>]
csdk notifications-module update --id <UUID> [--databaseId <UUID>] [--schemaId <UUID>] [--privateSchemaId <UUID>] [--notificationsTableId <UUID>] [--eventsTableId <UUID>] [--preferencesTableId <UUID>] [--channelsTableId <UUID>] [--deliveryLogTableId <UUID>] [--ownerTableId <UUID>] [--userSettingsTableId <UUID>] [--organizationSettingsTableId <UUID>]
csdk notifications-module create --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>]
csdk notifications-module update --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>]
csdk notifications-module delete --id <UUID>
```

Expand Down Expand Up @@ -58,7 +58,7 @@ csdk notifications-module list --where.id.equalTo <value> --orderBy ID_ASC
### Create a notificationsModule

```bash
csdk notifications-module create --databaseId <UUID> [--schemaId <UUID>] [--privateSchemaId <UUID>] [--notificationsTableId <UUID>] [--eventsTableId <UUID>] [--preferencesTableId <UUID>] [--channelsTableId <UUID>] [--deliveryLogTableId <UUID>] [--ownerTableId <UUID>] [--userSettingsTableId <UUID>] [--organizationSettingsTableId <UUID>]
csdk notifications-module create --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>]
```

### Get a notificationsModule by id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: '<UUID>', 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: '<UUID>', 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({})
Expand All @@ -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 } },
});
```

Expand All @@ -30,5 +30,5 @@ const { data, isLoading } = useNotificationsModulesQuery({
const { mutate } = useCreateNotificationsModuleMutation({
selection: { fields: { id: true } },
});
mutate({ databaseId: '<UUID>', schemaId: '<UUID>', privateSchemaId: '<UUID>', notificationsTableId: '<UUID>', eventsTableId: '<UUID>', preferencesTableId: '<UUID>', channelsTableId: '<UUID>', deliveryLogTableId: '<UUID>', ownerTableId: '<UUID>', userSettingsTableId: '<UUID>', organizationSettingsTableId: '<UUID>' });
mutate({ 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>' });
```
4 changes: 2 additions & 2 deletions .agents/skills/orm-public/references/notifications-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ORM operations for NotificationsModule records
```typescript
db.notificationsModule.findMany({ select: { id: true } }).execute()
db.notificationsModule.findOne({ id: '<UUID>', select: { id: true } }).execute()
db.notificationsModule.create({ data: { databaseId: '<UUID>', schemaId: '<UUID>', privateSchemaId: '<UUID>', notificationsTableId: '<UUID>', eventsTableId: '<UUID>', preferencesTableId: '<UUID>', channelsTableId: '<UUID>', deliveryLogTableId: '<UUID>', ownerTableId: '<UUID>', userSettingsTableId: '<UUID>', organizationSettingsTableId: '<UUID>' }, select: { id: true } }).execute()
db.notificationsModule.create({ data: { 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>' }, select: { id: true } }).execute()
db.notificationsModule.update({ where: { id: '<UUID>' }, data: { databaseId: '<UUID>' }, select: { id: true } }).execute()
db.notificationsModule.delete({ where: { id: '<UUID>' } }).execute()
```
Expand All @@ -28,7 +28,7 @@ const items = await db.notificationsModule.findMany({

```typescript
const item = await db.notificationsModule.create({
data: { databaseId: '<UUID>', schemaId: '<UUID>', privateSchemaId: '<UUID>', notificationsTableId: '<UUID>', eventsTableId: '<UUID>', preferencesTableId: '<UUID>', channelsTableId: '<UUID>', deliveryLogTableId: '<UUID>', ownerTableId: '<UUID>', userSettingsTableId: '<UUID>', organizationSettingsTableId: '<UUID>' },
data: { 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>' },
select: { id: true }
}).execute();
```
9 changes: 7 additions & 2 deletions sdk/constructive-cli/src/public/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
Loading
Loading