@constructive-sdk/cli 0.14.10 → 0.14.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1572,13 +1572,18 @@ export interface NotificationsModule {
1572
1572
  schemaId?: string | null;
1573
1573
  privateSchemaId?: string | null;
1574
1574
  notificationsTableId?: string | null;
1575
- eventsTableId?: string | null;
1575
+ readStateTableId?: string | null;
1576
1576
  preferencesTableId?: string | null;
1577
1577
  channelsTableId?: string | null;
1578
1578
  deliveryLogTableId?: string | null;
1579
1579
  ownerTableId?: string | null;
1580
1580
  userSettingsTableId?: string | null;
1581
1581
  organizationSettingsTableId?: string | null;
1582
+ hasChannels?: boolean | null;
1583
+ hasPreferences?: boolean | null;
1584
+ hasSettingsExtension?: boolean | null;
1585
+ hasDigestMetadata?: boolean | null;
1586
+ hasSubscriptions?: boolean | null;
1582
1587
  }
1583
1588
  /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */
1584
1589
  export interface DatabaseProvisionModule {
@@ -2798,12 +2803,12 @@ export interface NotificationsModuleRelations {
2798
2803
  channelsTableByChannelsTableId?: Table | null;
2799
2804
  database?: Database | null;
2800
2805
  deliveryLogTableByDeliveryLogTableId?: Table | null;
2801
- eventsTableByEventsTableId?: Table | null;
2802
2806
  notificationsTableByNotificationsTableId?: Table | null;
2803
2807
  organizationSettingsTableByOrganizationSettingsTableId?: Table | null;
2804
2808
  ownerTable?: Table | null;
2805
2809
  preferencesTableByPreferencesTableId?: Table | null;
2806
2810
  privateSchema?: Schema | null;
2811
+ readStateTableByReadStateTableId?: Table | null;
2807
2812
  schema?: Schema | null;
2808
2813
  userSettingsTableByUserSettingsTableId?: Table | null;
2809
2814
  }
@@ -5439,13 +5444,18 @@ export type NotificationsModuleSelect = {
5439
5444
  schemaId?: boolean;
5440
5445
  privateSchemaId?: boolean;
5441
5446
  notificationsTableId?: boolean;
5442
- eventsTableId?: boolean;
5447
+ readStateTableId?: boolean;
5443
5448
  preferencesTableId?: boolean;
5444
5449
  channelsTableId?: boolean;
5445
5450
  deliveryLogTableId?: boolean;
5446
5451
  ownerTableId?: boolean;
5447
5452
  userSettingsTableId?: boolean;
5448
5453
  organizationSettingsTableId?: boolean;
5454
+ hasChannels?: boolean;
5455
+ hasPreferences?: boolean;
5456
+ hasSettingsExtension?: boolean;
5457
+ hasDigestMetadata?: boolean;
5458
+ hasSubscriptions?: boolean;
5449
5459
  channelsTableByChannelsTableId?: {
5450
5460
  select: TableSelect;
5451
5461
  };
@@ -5455,9 +5465,6 @@ export type NotificationsModuleSelect = {
5455
5465
  deliveryLogTableByDeliveryLogTableId?: {
5456
5466
  select: TableSelect;
5457
5467
  };
5458
- eventsTableByEventsTableId?: {
5459
- select: TableSelect;
5460
- };
5461
5468
  notificationsTableByNotificationsTableId?: {
5462
5469
  select: TableSelect;
5463
5470
  };
@@ -5473,6 +5480,9 @@ export type NotificationsModuleSelect = {
5473
5480
  privateSchema?: {
5474
5481
  select: SchemaSelect;
5475
5482
  };
5483
+ readStateTableByReadStateTableId?: {
5484
+ select: TableSelect;
5485
+ };
5476
5486
  schema?: {
5477
5487
  select: SchemaSelect;
5478
5488
  };
@@ -9600,8 +9610,8 @@ export interface NotificationsModuleFilter {
9600
9610
  privateSchemaId?: UUIDFilter;
9601
9611
  /** Filter by the object’s `notificationsTableId` field. */
9602
9612
  notificationsTableId?: UUIDFilter;
9603
- /** Filter by the object’s `eventsTableId` field. */
9604
- eventsTableId?: UUIDFilter;
9613
+ /** Filter by the object’s `readStateTableId` field. */
9614
+ readStateTableId?: UUIDFilter;
9605
9615
  /** Filter by the object’s `preferencesTableId` field. */
9606
9616
  preferencesTableId?: UUIDFilter;
9607
9617
  /** Filter by the object’s `channelsTableId` field. */
@@ -9614,6 +9624,16 @@ export interface NotificationsModuleFilter {
9614
9624
  userSettingsTableId?: UUIDFilter;
9615
9625
  /** Filter by the object’s `organizationSettingsTableId` field. */
9616
9626
  organizationSettingsTableId?: UUIDFilter;
9627
+ /** Filter by the object’s `hasChannels` field. */
9628
+ hasChannels?: BooleanFilter;
9629
+ /** Filter by the object’s `hasPreferences` field. */
9630
+ hasPreferences?: BooleanFilter;
9631
+ /** Filter by the object’s `hasSettingsExtension` field. */
9632
+ hasSettingsExtension?: BooleanFilter;
9633
+ /** Filter by the object’s `hasDigestMetadata` field. */
9634
+ hasDigestMetadata?: BooleanFilter;
9635
+ /** Filter by the object’s `hasSubscriptions` field. */
9636
+ hasSubscriptions?: BooleanFilter;
9617
9637
  /** Checks for all expressions in this list. */
9618
9638
  and?: NotificationsModuleFilter[];
9619
9639
  /** Checks for any expressions in this list. */
@@ -9622,12 +9642,14 @@ export interface NotificationsModuleFilter {
9622
9642
  not?: NotificationsModuleFilter;
9623
9643
  /** Filter by the object’s `channelsTableByChannelsTableId` relation. */
9624
9644
  channelsTableByChannelsTableId?: TableFilter;
9645
+ /** A related `channelsTableByChannelsTableId` exists. */
9646
+ channelsTableByChannelsTableIdExists?: boolean;
9625
9647
  /** Filter by the object’s `database` relation. */
9626
9648
  database?: DatabaseFilter;
9627
9649
  /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */
9628
9650
  deliveryLogTableByDeliveryLogTableId?: TableFilter;
9629
- /** Filter by the object’s `eventsTableByEventsTableId` relation. */
9630
- eventsTableByEventsTableId?: TableFilter;
9651
+ /** A related `deliveryLogTableByDeliveryLogTableId` exists. */
9652
+ deliveryLogTableByDeliveryLogTableIdExists?: boolean;
9631
9653
  /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */
9632
9654
  notificationsTableByNotificationsTableId?: TableFilter;
9633
9655
  /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */
@@ -9638,8 +9660,12 @@ export interface NotificationsModuleFilter {
9638
9660
  ownerTable?: TableFilter;
9639
9661
  /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */
9640
9662
  preferencesTableByPreferencesTableId?: TableFilter;
9663
+ /** A related `preferencesTableByPreferencesTableId` exists. */
9664
+ preferencesTableByPreferencesTableIdExists?: boolean;
9641
9665
  /** Filter by the object’s `privateSchema` relation. */
9642
9666
  privateSchema?: SchemaFilter;
9667
+ /** Filter by the object’s `readStateTableByReadStateTableId` relation. */
9668
+ readStateTableByReadStateTableId?: TableFilter;
9643
9669
  /** Filter by the object’s `schema` relation. */
9644
9670
  schema?: SchemaFilter;
9645
9671
  /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */
@@ -11314,7 +11340,7 @@ export type StorageModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_
11314
11340
  export type EntityTypeProvisionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'PARENT_ENTITY_ASC' | 'PARENT_ENTITY_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'IS_VISIBLE_ASC' | 'IS_VISIBLE_DESC' | 'HAS_LIMITS_ASC' | 'HAS_LIMITS_DESC' | 'HAS_PROFILES_ASC' | 'HAS_PROFILES_DESC' | 'HAS_LEVELS_ASC' | 'HAS_LEVELS_DESC' | 'HAS_STORAGE_ASC' | 'HAS_STORAGE_DESC' | 'STORAGE_CONFIG_ASC' | 'STORAGE_CONFIG_DESC' | 'SKIP_ENTITY_POLICIES_ASC' | 'SKIP_ENTITY_POLICIES_DESC' | 'TABLE_PROVISION_ASC' | 'TABLE_PROVISION_DESC' | 'OUT_MEMBERSHIP_TYPE_ASC' | 'OUT_MEMBERSHIP_TYPE_DESC' | 'OUT_ENTITY_TABLE_ID_ASC' | 'OUT_ENTITY_TABLE_ID_DESC' | 'OUT_ENTITY_TABLE_NAME_ASC' | 'OUT_ENTITY_TABLE_NAME_DESC' | 'OUT_INSTALLED_MODULES_ASC' | 'OUT_INSTALLED_MODULES_DESC' | 'OUT_STORAGE_MODULE_ID_ASC' | 'OUT_STORAGE_MODULE_ID_DESC' | 'OUT_BUCKETS_TABLE_ID_ASC' | 'OUT_BUCKETS_TABLE_ID_DESC' | 'OUT_FILES_TABLE_ID_ASC' | 'OUT_FILES_TABLE_ID_DESC';
11315
11341
  export type WebauthnCredentialsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC';
11316
11342
  export type WebauthnAuthModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'CREDENTIALS_TABLE_ID_ASC' | 'CREDENTIALS_TABLE_ID_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' | 'SESSION_SECRETS_TABLE_ID_ASC' | 'SESSION_SECRETS_TABLE_ID_DESC' | 'AUTH_SETTINGS_TABLE_ID_ASC' | 'AUTH_SETTINGS_TABLE_ID_DESC' | 'RP_ID_ASC' | 'RP_ID_DESC' | 'RP_NAME_ASC' | 'RP_NAME_DESC' | 'ORIGIN_ALLOWLIST_ASC' | 'ORIGIN_ALLOWLIST_DESC' | 'ATTESTATION_TYPE_ASC' | 'ATTESTATION_TYPE_DESC' | 'REQUIRE_USER_VERIFICATION_ASC' | 'REQUIRE_USER_VERIFICATION_DESC' | 'RESIDENT_KEY_ASC' | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC';
11317
- export type NotificationsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_TABLE_ID_DESC' | 'EVENTS_TABLE_ID_ASC' | 'EVENTS_TABLE_ID_DESC' | 'PREFERENCES_TABLE_ID_ASC' | 'PREFERENCES_TABLE_ID_DESC' | 'CHANNELS_TABLE_ID_ASC' | 'CHANNELS_TABLE_ID_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC' | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC';
11343
+ export type NotificationsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_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' | 'CHANNELS_TABLE_ID_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | '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';
11318
11344
  export type DatabaseProvisionModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_NAME_ASC' | 'DATABASE_NAME_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'SUBDOMAIN_ASC' | 'SUBDOMAIN_DESC' | 'DOMAIN_ASC' | 'DOMAIN_DESC' | 'MODULES_ASC' | 'MODULES_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'BOOTSTRAP_USER_ASC' | 'BOOTSTRAP_USER_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'ERROR_MESSAGE_ASC' | 'ERROR_MESSAGE_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC';
11319
11345
  export type AppAdminGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
11320
11346
  export type AppOwnerGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
@@ -13849,13 +13875,18 @@ export interface CreateNotificationsModuleInput {
13849
13875
  schemaId?: string;
13850
13876
  privateSchemaId?: string;
13851
13877
  notificationsTableId?: string;
13852
- eventsTableId?: string;
13878
+ readStateTableId?: string;
13853
13879
  preferencesTableId?: string;
13854
13880
  channelsTableId?: string;
13855
13881
  deliveryLogTableId?: string;
13856
13882
  ownerTableId?: string;
13857
13883
  userSettingsTableId?: string;
13858
13884
  organizationSettingsTableId?: string;
13885
+ hasChannels?: boolean;
13886
+ hasPreferences?: boolean;
13887
+ hasSettingsExtension?: boolean;
13888
+ hasDigestMetadata?: boolean;
13889
+ hasSubscriptions?: boolean;
13859
13890
  };
13860
13891
  }
13861
13892
  export interface NotificationsModulePatch {
@@ -13863,13 +13894,18 @@ export interface NotificationsModulePatch {
13863
13894
  schemaId?: string | null;
13864
13895
  privateSchemaId?: string | null;
13865
13896
  notificationsTableId?: string | null;
13866
- eventsTableId?: string | null;
13897
+ readStateTableId?: string | null;
13867
13898
  preferencesTableId?: string | null;
13868
13899
  channelsTableId?: string | null;
13869
13900
  deliveryLogTableId?: string | null;
13870
13901
  ownerTableId?: string | null;
13871
13902
  userSettingsTableId?: string | null;
13872
13903
  organizationSettingsTableId?: string | null;
13904
+ hasChannels?: boolean | null;
13905
+ hasPreferences?: boolean | null;
13906
+ hasSettingsExtension?: boolean | null;
13907
+ hasDigestMetadata?: boolean | null;
13908
+ hasSubscriptions?: boolean | null;
13873
13909
  }
13874
13910
  export interface UpdateNotificationsModuleInput {
13875
13911
  clientMutationId?: string;
@@ -20073,8 +20109,8 @@ export interface NotificationsModuleFilter {
20073
20109
  privateSchemaId?: UUIDFilter;
20074
20110
  /** Filter by the object’s `notificationsTableId` field. */
20075
20111
  notificationsTableId?: UUIDFilter;
20076
- /** Filter by the object’s `eventsTableId` field. */
20077
- eventsTableId?: UUIDFilter;
20112
+ /** Filter by the object’s `readStateTableId` field. */
20113
+ readStateTableId?: UUIDFilter;
20078
20114
  /** Filter by the object’s `preferencesTableId` field. */
20079
20115
  preferencesTableId?: UUIDFilter;
20080
20116
  /** Filter by the object’s `channelsTableId` field. */
@@ -20087,6 +20123,16 @@ export interface NotificationsModuleFilter {
20087
20123
  userSettingsTableId?: UUIDFilter;
20088
20124
  /** Filter by the object’s `organizationSettingsTableId` field. */
20089
20125
  organizationSettingsTableId?: UUIDFilter;
20126
+ /** Filter by the object’s `hasChannels` field. */
20127
+ hasChannels?: BooleanFilter;
20128
+ /** Filter by the object’s `hasPreferences` field. */
20129
+ hasPreferences?: BooleanFilter;
20130
+ /** Filter by the object’s `hasSettingsExtension` field. */
20131
+ hasSettingsExtension?: BooleanFilter;
20132
+ /** Filter by the object’s `hasDigestMetadata` field. */
20133
+ hasDigestMetadata?: BooleanFilter;
20134
+ /** Filter by the object’s `hasSubscriptions` field. */
20135
+ hasSubscriptions?: BooleanFilter;
20090
20136
  /** Checks for all expressions in this list. */
20091
20137
  and?: NotificationsModuleFilter[];
20092
20138
  /** Checks for any expressions in this list. */
@@ -20095,12 +20141,14 @@ export interface NotificationsModuleFilter {
20095
20141
  not?: NotificationsModuleFilter;
20096
20142
  /** Filter by the object’s `channelsTableByChannelsTableId` relation. */
20097
20143
  channelsTableByChannelsTableId?: TableFilter;
20144
+ /** A related `channelsTableByChannelsTableId` exists. */
20145
+ channelsTableByChannelsTableIdExists?: boolean;
20098
20146
  /** Filter by the object’s `database` relation. */
20099
20147
  database?: DatabaseFilter;
20100
20148
  /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */
20101
20149
  deliveryLogTableByDeliveryLogTableId?: TableFilter;
20102
- /** Filter by the object’s `eventsTableByEventsTableId` relation. */
20103
- eventsTableByEventsTableId?: TableFilter;
20150
+ /** A related `deliveryLogTableByDeliveryLogTableId` exists. */
20151
+ deliveryLogTableByDeliveryLogTableIdExists?: boolean;
20104
20152
  /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */
20105
20153
  notificationsTableByNotificationsTableId?: TableFilter;
20106
20154
  /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */
@@ -20111,8 +20159,12 @@ export interface NotificationsModuleFilter {
20111
20159
  ownerTable?: TableFilter;
20112
20160
  /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */
20113
20161
  preferencesTableByPreferencesTableId?: TableFilter;
20162
+ /** A related `preferencesTableByPreferencesTableId` exists. */
20163
+ preferencesTableByPreferencesTableIdExists?: boolean;
20114
20164
  /** Filter by the object’s `privateSchema` relation. */
20115
20165
  privateSchema?: SchemaFilter;
20166
+ /** Filter by the object’s `readStateTableByReadStateTableId` relation. */
20167
+ readStateTableByReadStateTableId?: TableFilter;
20116
20168
  /** Filter by the object’s `schema` relation. */
20117
20169
  schema?: SchemaFilter;
20118
20170
  /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */
@@ -3,7 +3,7 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { parseType, print } from '@0no-co/graphql.web';
6
+ import { parseType, print } from '@constructive-io/graphql-query/runtime';
7
7
  import * as t from 'gql-ast';
8
8
  import { GraphQLRequestError } from './client';
9
9
  export class QueryBuilder {
@@ -3,8 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
8
8
  /**
9
9
  * Default adapter that uses fetch for HTTP requests.
10
10
  * This is used when no custom adapter is provided.
@@ -50,7 +50,7 @@ exports.buildCustomDocument = buildCustomDocument;
50
50
  * @generated by @constructive-io/graphql-codegen
51
51
  * DO NOT EDIT - changes will be overwritten
52
52
  */
53
- const graphql_web_1 = require("@0no-co/graphql.web");
53
+ const runtime_1 = require("@constructive-io/graphql-query/runtime");
54
54
  const t = __importStar(require("gql-ast"));
55
55
  const client_1 = require("./client");
56
56
  class QueryBuilder {
@@ -221,7 +221,7 @@ function buildFindManyDocument(operationName, queryField, select, args, filterTy
221
221
  }),
222
222
  ],
223
223
  });
224
- return { document: (0, graphql_web_1.print)(document), variables };
224
+ return { document: (0, runtime_1.print)(document), variables };
225
225
  }
226
226
  function buildFindFirstDocument(operationName, queryField, select, args, filterTypeName, connectionFieldsMap) {
227
227
  const selections = select
@@ -262,7 +262,7 @@ function buildFindFirstDocument(operationName, queryField, select, args, filterT
262
262
  }),
263
263
  ],
264
264
  });
265
- return { document: (0, graphql_web_1.print)(document), variables };
265
+ return { document: (0, runtime_1.print)(document), variables };
266
266
  }
267
267
  function buildCreateDocument(operationName, mutationField, entityField, select, data, inputTypeName, connectionFieldsMap) {
268
268
  const selections = select
@@ -342,7 +342,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
342
342
  const variableDefinitions = [
343
343
  t.variableDefinition({
344
344
  variable: t.variable({ name: idArgName }),
345
- type: (0, graphql_web_1.parseType)(idTypeName),
345
+ type: (0, runtime_1.parseType)(idTypeName),
346
346
  }),
347
347
  ];
348
348
  const queryArgs = [
@@ -370,7 +370,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
370
370
  ],
371
371
  });
372
372
  return {
373
- document: (0, graphql_web_1.print)(document),
373
+ document: (0, runtime_1.print)(document),
374
374
  variables: { [idArgName]: id },
375
375
  };
376
376
  }
@@ -445,7 +445,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
445
445
  : [];
446
446
  const variableDefs = variableDefinitions.map((definition) => t.variableDefinition({
447
447
  variable: t.variable({ name: definition.name }),
448
- type: (0, graphql_web_1.parseType)(definition.type),
448
+ type: (0, runtime_1.parseType)(definition.type),
449
449
  }));
450
450
  const fieldArgs = variableDefinitions.map((definition) => t.argument({
451
451
  name: definition.name,
@@ -473,7 +473,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
473
473
  ],
474
474
  });
475
475
  return {
476
- document: (0, graphql_web_1.print)(document),
476
+ document: (0, runtime_1.print)(document),
477
477
  variables: (args ?? {}),
478
478
  };
479
479
  }
@@ -551,7 +551,7 @@ function buildInputMutationDocument(config) {
551
551
  variableDefinitions: [
552
552
  t.variableDefinition({
553
553
  variable: t.variable({ name: 'input' }),
554
- type: (0, graphql_web_1.parseType)(config.inputTypeName + '!'),
554
+ type: (0, runtime_1.parseType)(config.inputTypeName + '!'),
555
555
  }),
556
556
  ],
557
557
  selectionSet: t.selectionSet({
@@ -573,14 +573,14 @@ function buildInputMutationDocument(config) {
573
573
  }),
574
574
  ],
575
575
  });
576
- return (0, graphql_web_1.print)(document);
576
+ return (0, runtime_1.print)(document);
577
577
  }
578
578
  function addVariable(spec, definitions, args, variables) {
579
579
  if (spec.value === undefined || !spec.typeName)
580
580
  return;
581
581
  definitions.push(t.variableDefinition({
582
582
  variable: t.variable({ name: spec.varName }),
583
- type: (0, graphql_web_1.parseType)(spec.typeName),
583
+ type: (0, runtime_1.parseType)(spec.typeName),
584
584
  }));
585
585
  args.push(t.argument({
586
586
  name: spec.argName ?? spec.varName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-sdk/cli",
3
- "version": "0.14.10",
3
+ "version": "0.14.12",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive CLI SDK - Auto-generated GraphQL CLI with ORM client, context management, and interactive prompts",
6
6
  "main": "index.js",
@@ -46,6 +46,7 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "@0no-co/graphql.web": "^1.1.2",
49
+ "@constructive-io/graphql-query": "^3.15.1",
49
50
  "@constructive-io/graphql-types": "^3.5.1",
50
51
  "appstash": "^0.7.0",
51
52
  "gql-ast": "^3.5.0",
@@ -55,11 +56,11 @@
55
56
  "yanse": "^0.2.1"
56
57
  },
57
58
  "devDependencies": {
58
- "@constructive-io/graphql-codegen": "^4.30.9",
59
+ "@constructive-io/graphql-codegen": "^4.31.1",
59
60
  "@types/node": "^22.19.11",
60
61
  "makage": "^0.3.0",
61
62
  "tsx": "^4.19.0",
62
63
  "typescript": "^5.9.3"
63
64
  },
64
- "gitHead": "a6424a875afd997535ca6b1636542a5158991003"
65
+ "gitHead": "90b15540015a927e45846923843fc1af36f5bed7"
65
66
  }
@@ -14,13 +14,18 @@ const fieldSchema = {
14
14
  schemaId: 'uuid',
15
15
  privateSchemaId: 'uuid',
16
16
  notificationsTableId: 'uuid',
17
- eventsTableId: 'uuid',
17
+ readStateTableId: 'uuid',
18
18
  preferencesTableId: 'uuid',
19
19
  channelsTableId: 'uuid',
20
20
  deliveryLogTableId: 'uuid',
21
21
  ownerTableId: 'uuid',
22
22
  userSettingsTableId: 'uuid',
23
23
  organizationSettingsTableId: 'uuid',
24
+ hasChannels: 'boolean',
25
+ hasPreferences: 'boolean',
26
+ hasSettingsExtension: 'boolean',
27
+ hasDigestMetadata: 'boolean',
28
+ hasSubscriptions: 'boolean',
24
29
  };
25
30
  const usage = '\nnotifications-module <command>\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 <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
26
31
  exports.default = async (argv, prompter, _options) => {
@@ -69,13 +74,18 @@ async function handleList(argv, _prompter) {
69
74
  schemaId: true,
70
75
  privateSchemaId: true,
71
76
  notificationsTableId: true,
72
- eventsTableId: true,
77
+ readStateTableId: true,
73
78
  preferencesTableId: true,
74
79
  channelsTableId: true,
75
80
  deliveryLogTableId: true,
76
81
  ownerTableId: true,
77
82
  userSettingsTableId: true,
78
83
  organizationSettingsTableId: true,
84
+ hasChannels: true,
85
+ hasPreferences: true,
86
+ hasSettingsExtension: true,
87
+ hasDigestMetadata: true,
88
+ hasSubscriptions: true,
79
89
  };
80
90
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
81
91
  const client = (0, executor_1.getClient)();
@@ -98,13 +108,18 @@ async function handleFindFirst(argv, _prompter) {
98
108
  schemaId: true,
99
109
  privateSchemaId: true,
100
110
  notificationsTableId: true,
101
- eventsTableId: true,
111
+ readStateTableId: true,
102
112
  preferencesTableId: true,
103
113
  channelsTableId: true,
104
114
  deliveryLogTableId: true,
105
115
  ownerTableId: true,
106
116
  userSettingsTableId: true,
107
117
  organizationSettingsTableId: true,
118
+ hasChannels: true,
119
+ hasPreferences: true,
120
+ hasSettingsExtension: true,
121
+ hasDigestMetadata: true,
122
+ hasSubscriptions: true,
108
123
  };
109
124
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
110
125
  const client = (0, executor_1.getClient)();
@@ -139,13 +154,18 @@ async function handleGet(argv, prompter) {
139
154
  schemaId: true,
140
155
  privateSchemaId: true,
141
156
  notificationsTableId: true,
142
- eventsTableId: true,
157
+ readStateTableId: true,
143
158
  preferencesTableId: true,
144
159
  channelsTableId: true,
145
160
  deliveryLogTableId: true,
146
161
  ownerTableId: true,
147
162
  userSettingsTableId: true,
148
163
  organizationSettingsTableId: true,
164
+ hasChannels: true,
165
+ hasPreferences: true,
166
+ hasSettingsExtension: true,
167
+ hasDigestMetadata: true,
168
+ hasSubscriptions: true,
149
169
  },
150
170
  })
151
171
  .execute();
@@ -191,8 +211,8 @@ async function handleCreate(argv, prompter) {
191
211
  },
192
212
  {
193
213
  type: 'text',
194
- name: 'eventsTableId',
195
- message: 'eventsTableId',
214
+ name: 'readStateTableId',
215
+ message: 'readStateTableId',
196
216
  required: false,
197
217
  skipPrompt: true,
198
218
  },
@@ -238,6 +258,41 @@ async function handleCreate(argv, prompter) {
238
258
  required: false,
239
259
  skipPrompt: true,
240
260
  },
261
+ {
262
+ type: 'boolean',
263
+ name: 'hasChannels',
264
+ message: 'hasChannels',
265
+ required: false,
266
+ skipPrompt: true,
267
+ },
268
+ {
269
+ type: 'boolean',
270
+ name: 'hasPreferences',
271
+ message: 'hasPreferences',
272
+ required: false,
273
+ skipPrompt: true,
274
+ },
275
+ {
276
+ type: 'boolean',
277
+ name: 'hasSettingsExtension',
278
+ message: 'hasSettingsExtension',
279
+ required: false,
280
+ skipPrompt: true,
281
+ },
282
+ {
283
+ type: 'boolean',
284
+ name: 'hasDigestMetadata',
285
+ message: 'hasDigestMetadata',
286
+ required: false,
287
+ skipPrompt: true,
288
+ },
289
+ {
290
+ type: 'boolean',
291
+ name: 'hasSubscriptions',
292
+ message: 'hasSubscriptions',
293
+ required: false,
294
+ skipPrompt: true,
295
+ },
241
296
  ]);
242
297
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
243
298
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -249,13 +304,18 @@ async function handleCreate(argv, prompter) {
249
304
  schemaId: cleanedData.schemaId,
250
305
  privateSchemaId: cleanedData.privateSchemaId,
251
306
  notificationsTableId: cleanedData.notificationsTableId,
252
- eventsTableId: cleanedData.eventsTableId,
307
+ readStateTableId: cleanedData.readStateTableId,
253
308
  preferencesTableId: cleanedData.preferencesTableId,
254
309
  channelsTableId: cleanedData.channelsTableId,
255
310
  deliveryLogTableId: cleanedData.deliveryLogTableId,
256
311
  ownerTableId: cleanedData.ownerTableId,
257
312
  userSettingsTableId: cleanedData.userSettingsTableId,
258
313
  organizationSettingsTableId: cleanedData.organizationSettingsTableId,
314
+ hasChannels: cleanedData.hasChannels,
315
+ hasPreferences: cleanedData.hasPreferences,
316
+ hasSettingsExtension: cleanedData.hasSettingsExtension,
317
+ hasDigestMetadata: cleanedData.hasDigestMetadata,
318
+ hasSubscriptions: cleanedData.hasSubscriptions,
259
319
  },
260
320
  select: {
261
321
  id: true,
@@ -263,13 +323,18 @@ async function handleCreate(argv, prompter) {
263
323
  schemaId: true,
264
324
  privateSchemaId: true,
265
325
  notificationsTableId: true,
266
- eventsTableId: true,
326
+ readStateTableId: true,
267
327
  preferencesTableId: true,
268
328
  channelsTableId: true,
269
329
  deliveryLogTableId: true,
270
330
  ownerTableId: true,
271
331
  userSettingsTableId: true,
272
332
  organizationSettingsTableId: true,
333
+ hasChannels: true,
334
+ hasPreferences: true,
335
+ hasSettingsExtension: true,
336
+ hasDigestMetadata: true,
337
+ hasSubscriptions: true,
273
338
  },
274
339
  })
275
340
  .execute();
@@ -321,8 +386,8 @@ async function handleUpdate(argv, prompter) {
321
386
  },
322
387
  {
323
388
  type: 'text',
324
- name: 'eventsTableId',
325
- message: 'eventsTableId',
389
+ name: 'readStateTableId',
390
+ message: 'readStateTableId',
326
391
  required: false,
327
392
  skipPrompt: true,
328
393
  },
@@ -368,6 +433,41 @@ async function handleUpdate(argv, prompter) {
368
433
  required: false,
369
434
  skipPrompt: true,
370
435
  },
436
+ {
437
+ type: 'boolean',
438
+ name: 'hasChannels',
439
+ message: 'hasChannels',
440
+ required: false,
441
+ skipPrompt: true,
442
+ },
443
+ {
444
+ type: 'boolean',
445
+ name: 'hasPreferences',
446
+ message: 'hasPreferences',
447
+ required: false,
448
+ skipPrompt: true,
449
+ },
450
+ {
451
+ type: 'boolean',
452
+ name: 'hasSettingsExtension',
453
+ message: 'hasSettingsExtension',
454
+ required: false,
455
+ skipPrompt: true,
456
+ },
457
+ {
458
+ type: 'boolean',
459
+ name: 'hasDigestMetadata',
460
+ message: 'hasDigestMetadata',
461
+ required: false,
462
+ skipPrompt: true,
463
+ },
464
+ {
465
+ type: 'boolean',
466
+ name: 'hasSubscriptions',
467
+ message: 'hasSubscriptions',
468
+ required: false,
469
+ skipPrompt: true,
470
+ },
371
471
  ]);
372
472
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
373
473
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -382,13 +482,18 @@ async function handleUpdate(argv, prompter) {
382
482
  schemaId: cleanedData.schemaId,
383
483
  privateSchemaId: cleanedData.privateSchemaId,
384
484
  notificationsTableId: cleanedData.notificationsTableId,
385
- eventsTableId: cleanedData.eventsTableId,
485
+ readStateTableId: cleanedData.readStateTableId,
386
486
  preferencesTableId: cleanedData.preferencesTableId,
387
487
  channelsTableId: cleanedData.channelsTableId,
388
488
  deliveryLogTableId: cleanedData.deliveryLogTableId,
389
489
  ownerTableId: cleanedData.ownerTableId,
390
490
  userSettingsTableId: cleanedData.userSettingsTableId,
391
491
  organizationSettingsTableId: cleanedData.organizationSettingsTableId,
492
+ hasChannels: cleanedData.hasChannels,
493
+ hasPreferences: cleanedData.hasPreferences,
494
+ hasSettingsExtension: cleanedData.hasSettingsExtension,
495
+ hasDigestMetadata: cleanedData.hasDigestMetadata,
496
+ hasSubscriptions: cleanedData.hasSubscriptions,
392
497
  },
393
498
  select: {
394
499
  id: true,
@@ -396,13 +501,18 @@ async function handleUpdate(argv, prompter) {
396
501
  schemaId: true,
397
502
  privateSchemaId: true,
398
503
  notificationsTableId: true,
399
- eventsTableId: true,
504
+ readStateTableId: true,
400
505
  preferencesTableId: true,
401
506
  channelsTableId: true,
402
507
  deliveryLogTableId: true,
403
508
  ownerTableId: true,
404
509
  userSettingsTableId: true,
405
510
  organizationSettingsTableId: true,
511
+ hasChannels: true,
512
+ hasPreferences: true,
513
+ hasSettingsExtension: true,
514
+ hasDigestMetadata: true,
515
+ hasSubscriptions: true,
406
516
  },
407
517
  })
408
518
  .execute();
@@ -3,8 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
8
8
  /**
9
9
  * Default adapter that uses fetch for HTTP requests.
10
10
  * This is used when no custom adapter is provided.