@constructive-sdk/cli 0.12.1 → 0.12.4

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.
Files changed (41) hide show
  1. package/esm/public/cli/commands/{field-module.d.ts → migrate-file.d.ts} +1 -1
  2. package/esm/public/cli/commands/migrate-file.js +110 -0
  3. package/{public/cli/commands/field-module.d.ts → esm/public/cli/commands/sql-action.d.ts} +1 -1
  4. package/esm/public/cli/commands/{sql-migration.js → sql-action.js} +4 -4
  5. package/esm/public/cli/commands.js +5 -5
  6. package/esm/public/cli/executor.d.ts +2 -2
  7. package/esm/public/orm/index.d.ts +4 -4
  8. package/esm/public/orm/index.js +4 -4
  9. package/esm/public/orm/input-types.d.ts +118 -247
  10. package/esm/public/orm/input-types.js +0 -1
  11. package/esm/public/orm/models/index.d.ts +2 -2
  12. package/esm/public/orm/models/index.js +2 -2
  13. package/esm/public/orm/models/migrateFile.d.ts +38 -0
  14. package/esm/public/orm/models/migrateFile.js +72 -0
  15. package/esm/public/orm/models/sqlAction.d.ts +38 -0
  16. package/esm/public/orm/models/{sqlMigration.js → sqlAction.js} +17 -17
  17. package/package.json +5 -5
  18. package/{esm/public/cli/commands/sql-migration.d.ts → public/cli/commands/migrate-file.d.ts} +1 -1
  19. package/public/cli/commands/migrate-file.js +112 -0
  20. package/public/cli/commands/{sql-migration.d.ts → sql-action.d.ts} +1 -1
  21. package/public/cli/commands/{sql-migration.js → sql-action.js} +4 -4
  22. package/public/cli/commands.js +5 -5
  23. package/public/cli/executor.d.ts +2 -2
  24. package/public/orm/index.d.ts +4 -4
  25. package/public/orm/index.js +4 -4
  26. package/public/orm/input-types.d.ts +118 -247
  27. package/public/orm/input-types.js +0 -1
  28. package/public/orm/models/index.d.ts +2 -2
  29. package/public/orm/models/index.js +7 -7
  30. package/public/orm/models/migrateFile.d.ts +38 -0
  31. package/public/orm/models/{sqlMigration.js → migrateFile.js} +19 -19
  32. package/public/orm/models/sqlAction.d.ts +38 -0
  33. package/public/orm/models/sqlAction.js +76 -0
  34. package/esm/public/cli/commands/field-module.js +0 -354
  35. package/esm/public/orm/models/fieldModule.d.ts +0 -56
  36. package/esm/public/orm/models/fieldModule.js +0 -96
  37. package/esm/public/orm/models/sqlMigration.d.ts +0 -38
  38. package/public/cli/commands/field-module.js +0 -356
  39. package/public/orm/models/fieldModule.d.ts +0 -56
  40. package/public/orm/models/fieldModule.js +0 -100
  41. package/public/orm/models/sqlMigration.d.ts +0 -38
@@ -235,6 +235,7 @@ export type ConstructiveInternalTypeEmail = unknown;
235
235
  export type ConstructiveInternalTypeHostname = unknown;
236
236
  export type ConstructiveInternalTypeImage = unknown;
237
237
  export type ConstructiveInternalTypeOrigin = unknown;
238
+ export type ConstructiveInternalTypeUpload = unknown;
238
239
  export type ConstructiveInternalTypeUrl = unknown;
239
240
  export interface GetAllRecord {
240
241
  path?: string[] | null;
@@ -1053,17 +1054,6 @@ export interface EncryptedSecretsModule {
1053
1054
  tableId?: string | null;
1054
1055
  tableName?: string | null;
1055
1056
  }
1056
- export interface FieldModule {
1057
- id: string;
1058
- databaseId?: string | null;
1059
- privateSchemaId?: string | null;
1060
- tableId?: string | null;
1061
- fieldId?: string | null;
1062
- nodeType?: string | null;
1063
- data?: Record<string, unknown> | null;
1064
- triggers?: string[] | null;
1065
- functions?: string[] | null;
1066
- }
1067
1057
  export interface InvitesModule {
1068
1058
  id: string;
1069
1059
  databaseId?: string | null;
@@ -1781,6 +1771,11 @@ export interface RoleType {
1781
1771
  id: number;
1782
1772
  name?: string | null;
1783
1773
  }
1774
+ export interface MigrateFile {
1775
+ id: string;
1776
+ databaseId?: string | null;
1777
+ upload?: ConstructiveInternalTypeUpload | null;
1778
+ }
1784
1779
  /** Default maximum values for each named limit, applied when no per-actor override exists */
1785
1780
  export interface AppLimitDefault {
1786
1781
  id: string;
@@ -1799,11 +1794,11 @@ export interface OrgLimitDefault {
1799
1794
  }
1800
1795
  /** Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). */
1801
1796
  export interface NodeTypeRegistry {
1802
- /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */
1797
+ /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, DataImmutableFields) */
1803
1798
  name?: string | null;
1804
1799
  /** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */
1805
1800
  slug?: string | null;
1806
- /** Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) */
1801
+ /** Node type category: authz (authorization semantics), data (table-level behaviors), view (view query types), relation (relational structure between tables) */
1807
1802
  category?: string | null;
1808
1803
  /** Human-readable display name for UI */
1809
1804
  displayName?: string | null;
@@ -1887,7 +1882,7 @@ export interface OrgMembershipDefault {
1887
1882
  /** When a group is created, whether to auto-add existing org members as group members */
1888
1883
  createGroupsCascadeMembers?: boolean | null;
1889
1884
  }
1890
- export interface SqlMigration {
1885
+ export interface SqlAction {
1891
1886
  id: number;
1892
1887
  name?: string | null;
1893
1888
  databaseId?: string | null;
@@ -2050,7 +2045,6 @@ export interface DatabaseRelations {
2050
2045
  denormalizedTableFields?: ConnectionResult<DenormalizedTableField>;
2051
2046
  emailsModules?: ConnectionResult<EmailsModule>;
2052
2047
  encryptedSecretsModules?: ConnectionResult<EncryptedSecretsModule>;
2053
- fieldModules?: ConnectionResult<FieldModule>;
2054
2048
  invitesModules?: ConnectionResult<InvitesModule>;
2055
2049
  levelsModules?: ConnectionResult<LevelsModule>;
2056
2050
  limitsModules?: ConnectionResult<LimitsModule>;
@@ -2295,12 +2289,6 @@ export interface EncryptedSecretsModuleRelations {
2295
2289
  schema?: Schema | null;
2296
2290
  table?: Table | null;
2297
2291
  }
2298
- export interface FieldModuleRelations {
2299
- database?: Database | null;
2300
- field?: Field | null;
2301
- privateSchema?: Schema | null;
2302
- table?: Table | null;
2303
- }
2304
2292
  export interface InvitesModuleRelations {
2305
2293
  claimedInvitesTable?: Table | null;
2306
2294
  database?: Database | null;
@@ -2528,6 +2516,8 @@ export interface AppPermissionDefaultRelations {
2528
2516
  }
2529
2517
  export interface RoleTypeRelations {
2530
2518
  }
2519
+ export interface MigrateFileRelations {
2520
+ }
2531
2521
  export interface AppLimitDefaultRelations {
2532
2522
  }
2533
2523
  export interface OrgLimitDefaultRelations {
@@ -2551,7 +2541,7 @@ export interface RlsModuleRelations {
2551
2541
  export interface OrgMembershipDefaultRelations {
2552
2542
  entity?: User | null;
2553
2543
  }
2554
- export interface SqlMigrationRelations {
2544
+ export interface SqlActionRelations {
2555
2545
  }
2556
2546
  export interface UserRelations {
2557
2547
  roleType?: RoleType | null;
@@ -2670,7 +2660,6 @@ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleR
2670
2660
  export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations;
2671
2661
  export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations;
2672
2662
  export type EncryptedSecretsModuleWithRelations = EncryptedSecretsModule & EncryptedSecretsModuleRelations;
2673
- export type FieldModuleWithRelations = FieldModule & FieldModuleRelations;
2674
2663
  export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations;
2675
2664
  export type LevelsModuleWithRelations = LevelsModule & LevelsModuleRelations;
2676
2665
  export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations;
@@ -2715,6 +2704,7 @@ export type RefWithRelations = Ref & RefRelations;
2715
2704
  export type StoreWithRelations = Store & StoreRelations;
2716
2705
  export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations;
2717
2706
  export type RoleTypeWithRelations = RoleType & RoleTypeRelations;
2707
+ export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations;
2718
2708
  export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations;
2719
2709
  export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations;
2720
2710
  export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations;
@@ -2723,7 +2713,7 @@ export type CommitWithRelations = Commit & CommitRelations;
2723
2713
  export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations;
2724
2714
  export type RlsModuleWithRelations = RlsModule & RlsModuleRelations;
2725
2715
  export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations;
2726
- export type SqlMigrationWithRelations = SqlMigration & SqlMigrationRelations;
2716
+ export type SqlActionWithRelations = SqlAction & SqlActionRelations;
2727
2717
  export type UserWithRelations = User & UserRelations;
2728
2718
  export type AstMigrationWithRelations = AstMigration & AstMigrationRelations;
2729
2719
  export type AppMembershipWithRelations = AppMembership & AppMembershipRelations;
@@ -3014,12 +3004,6 @@ export type DatabaseSelect = {
3014
3004
  filter?: EncryptedSecretsModuleFilter;
3015
3005
  orderBy?: EncryptedSecretsModuleOrderBy[];
3016
3006
  };
3017
- fieldModules?: {
3018
- select: FieldModuleSelect;
3019
- first?: number;
3020
- filter?: FieldModuleFilter;
3021
- orderBy?: FieldModuleOrderBy[];
3022
- };
3023
3007
  invitesModules?: {
3024
3008
  select: InvitesModuleSelect;
3025
3009
  first?: number;
@@ -4195,29 +4179,6 @@ export type EncryptedSecretsModuleSelect = {
4195
4179
  select: TableSelect;
4196
4180
  };
4197
4181
  };
4198
- export type FieldModuleSelect = {
4199
- id?: boolean;
4200
- databaseId?: boolean;
4201
- privateSchemaId?: boolean;
4202
- tableId?: boolean;
4203
- fieldId?: boolean;
4204
- nodeType?: boolean;
4205
- data?: boolean;
4206
- triggers?: boolean;
4207
- functions?: boolean;
4208
- database?: {
4209
- select: DatabaseSelect;
4210
- };
4211
- field?: {
4212
- select: FieldSelect;
4213
- };
4214
- privateSchema?: {
4215
- select: SchemaSelect;
4216
- };
4217
- table?: {
4218
- select: TableSelect;
4219
- };
4220
- };
4221
4182
  export type InvitesModuleSelect = {
4222
4183
  id?: boolean;
4223
4184
  databaseId?: boolean;
@@ -5167,6 +5128,11 @@ export type RoleTypeSelect = {
5167
5128
  id?: boolean;
5168
5129
  name?: boolean;
5169
5130
  };
5131
+ export type MigrateFileSelect = {
5132
+ id?: boolean;
5133
+ databaseId?: boolean;
5134
+ upload?: boolean;
5135
+ };
5170
5136
  export type AppLimitDefaultSelect = {
5171
5137
  id?: boolean;
5172
5138
  name?: boolean;
@@ -5259,7 +5225,7 @@ export type OrgMembershipDefaultSelect = {
5259
5225
  select: UserSelect;
5260
5226
  };
5261
5227
  };
5262
- export type SqlMigrationSelect = {
5228
+ export type SqlActionSelect = {
5263
5229
  id?: boolean;
5264
5230
  name?: boolean;
5265
5231
  databaseId?: boolean;
@@ -5944,10 +5910,6 @@ export interface DatabaseFilter {
5944
5910
  encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter;
5945
5911
  /** `encryptedSecretsModules` exist. */
5946
5912
  encryptedSecretsModulesExist?: boolean;
5947
- /** Filter by the object’s `fieldModules` relation. */
5948
- fieldModules?: DatabaseToManyFieldModuleFilter;
5949
- /** `fieldModules` exist. */
5950
- fieldModulesExist?: boolean;
5951
5913
  /** Filter by the object’s `invitesModules` relation. */
5952
5914
  invitesModules?: DatabaseToManyInvitesModuleFilter;
5953
5915
  /** `invitesModules` exist. */
@@ -7621,40 +7583,6 @@ export interface EncryptedSecretsModuleFilter {
7621
7583
  /** Filter by the object’s `table` relation. */
7622
7584
  table?: TableFilter;
7623
7585
  }
7624
- export interface FieldModuleFilter {
7625
- /** Filter by the object’s `id` field. */
7626
- id?: UUIDFilter;
7627
- /** Filter by the object’s `databaseId` field. */
7628
- databaseId?: UUIDFilter;
7629
- /** Filter by the object’s `privateSchemaId` field. */
7630
- privateSchemaId?: UUIDFilter;
7631
- /** Filter by the object’s `tableId` field. */
7632
- tableId?: UUIDFilter;
7633
- /** Filter by the object’s `fieldId` field. */
7634
- fieldId?: UUIDFilter;
7635
- /** Filter by the object’s `nodeType` field. */
7636
- nodeType?: StringFilter;
7637
- /** Filter by the object’s `data` field. */
7638
- data?: JSONFilter;
7639
- /** Filter by the object’s `triggers` field. */
7640
- triggers?: StringListFilter;
7641
- /** Filter by the object’s `functions` field. */
7642
- functions?: StringListFilter;
7643
- /** Checks for all expressions in this list. */
7644
- and?: FieldModuleFilter[];
7645
- /** Checks for any expressions in this list. */
7646
- or?: FieldModuleFilter[];
7647
- /** Negates the expression. */
7648
- not?: FieldModuleFilter;
7649
- /** Filter by the object’s `database` relation. */
7650
- database?: DatabaseFilter;
7651
- /** Filter by the object’s `field` relation. */
7652
- field?: FieldFilter;
7653
- /** Filter by the object’s `privateSchema` relation. */
7654
- privateSchema?: SchemaFilter;
7655
- /** Filter by the object’s `table` relation. */
7656
- table?: TableFilter;
7657
- }
7658
7586
  export interface InvitesModuleFilter {
7659
7587
  /** Filter by the object’s `id` field. */
7660
7588
  id?: UUIDFilter;
@@ -9209,6 +9137,20 @@ export interface RoleTypeFilter {
9209
9137
  /** Negates the expression. */
9210
9138
  not?: RoleTypeFilter;
9211
9139
  }
9140
+ export interface MigrateFileFilter {
9141
+ /** Filter by the object’s `id` field. */
9142
+ id?: UUIDFilter;
9143
+ /** Filter by the object’s `databaseId` field. */
9144
+ databaseId?: UUIDFilter;
9145
+ /** Filter by the object’s `upload` field. */
9146
+ upload?: ConstructiveInternalTypeUploadFilter;
9147
+ /** Checks for all expressions in this list. */
9148
+ and?: MigrateFileFilter[];
9149
+ /** Checks for any expressions in this list. */
9150
+ or?: MigrateFileFilter[];
9151
+ /** Negates the expression. */
9152
+ not?: MigrateFileFilter;
9153
+ }
9212
9154
  export interface AppLimitDefaultFilter {
9213
9155
  /** Filter by the object’s `id` field. */
9214
9156
  id?: UUIDFilter;
@@ -9397,7 +9339,7 @@ export interface OrgMembershipDefaultFilter {
9397
9339
  /** Filter by the object’s `entity` relation. */
9398
9340
  entity?: UserFilter;
9399
9341
  }
9400
- export interface SqlMigrationFilter {
9342
+ export interface SqlActionFilter {
9401
9343
  /** Filter by the object’s `id` field. */
9402
9344
  id?: IntFilter;
9403
9345
  /** Filter by the object’s `name` field. */
@@ -9423,11 +9365,11 @@ export interface SqlMigrationFilter {
9423
9365
  /** Filter by the object’s `actorId` field. */
9424
9366
  actorId?: UUIDFilter;
9425
9367
  /** Checks for all expressions in this list. */
9426
- and?: SqlMigrationFilter[];
9368
+ and?: SqlActionFilter[];
9427
9369
  /** Checks for any expressions in this list. */
9428
- or?: SqlMigrationFilter[];
9370
+ or?: SqlActionFilter[];
9429
9371
  /** Negates the expression. */
9430
- not?: SqlMigrationFilter;
9372
+ not?: SqlActionFilter;
9431
9373
  }
9432
9374
  export interface UserFilter {
9433
9375
  /** Filter by the object’s `id` field. */
@@ -9855,7 +9797,6 @@ export type DefaultIdsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_K
9855
9797
  export type DenormalizedTableFieldOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
9856
9798
  export type EmailsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
9857
9799
  export type EncryptedSecretsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
9858
- export type FieldModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NODE_TYPE_ASC' | 'NODE_TYPE_DESC';
9859
9800
  export type InvitesModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
9860
9801
  export type LevelsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
9861
9802
  export type LimitsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
@@ -9900,6 +9841,7 @@ export type RefOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'I
9900
9841
  export type StoreOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
9901
9842
  export type AppPermissionDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC';
9902
9843
  export type RoleTypeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC';
9844
+ export type MigrateFileOrderBy = 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
9903
9845
  export type AppLimitDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC';
9904
9846
  export type OrgLimitDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC';
9905
9847
  export type NodeTypeRegistryOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC';
@@ -9908,7 +9850,7 @@ export type CommitOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' |
9908
9850
  export type AppMembershipDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC';
9909
9851
  export type RlsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
9910
9852
  export type OrgMembershipDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
9911
- export type SqlMigrationOrderBy = 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'REVERT_ASC' | 'REVERT_DESC' | 'VERIFY_ASC' | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ACTION_ASC' | 'ACTION_DESC' | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC';
9853
+ export type SqlActionOrderBy = 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'REVERT_ASC' | 'REVERT_DESC' | 'VERIFY_ASC' | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ACTION_ASC' | 'ACTION_DESC' | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC';
9912
9854
  export type UserOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'SEARCH_TSV_RANK_ASC' | 'SEARCH_TSV_RANK_DESC' | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
9913
9855
  export type AstMigrationOrderBy = 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DEPLOYS_ASC' | 'DEPLOYS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ACTION_ASC' | 'ACTION_DESC' | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC';
9914
9856
  export type AppMembershipOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC';
@@ -11509,38 +11451,6 @@ export interface DeleteEncryptedSecretsModuleInput {
11509
11451
  clientMutationId?: string;
11510
11452
  id: string;
11511
11453
  }
11512
- export interface CreateFieldModuleInput {
11513
- clientMutationId?: string;
11514
- fieldModule: {
11515
- databaseId: string;
11516
- privateSchemaId?: string;
11517
- tableId?: string;
11518
- fieldId?: string;
11519
- nodeType: string;
11520
- data?: Record<string, unknown>;
11521
- triggers?: string[];
11522
- functions?: string[];
11523
- };
11524
- }
11525
- export interface FieldModulePatch {
11526
- databaseId?: string | null;
11527
- privateSchemaId?: string | null;
11528
- tableId?: string | null;
11529
- fieldId?: string | null;
11530
- nodeType?: string | null;
11531
- data?: Record<string, unknown> | null;
11532
- triggers?: string[] | null;
11533
- functions?: string[] | null;
11534
- }
11535
- export interface UpdateFieldModuleInput {
11536
- clientMutationId?: string;
11537
- id: string;
11538
- fieldModulePatch: FieldModulePatch;
11539
- }
11540
- export interface DeleteFieldModuleInput {
11541
- clientMutationId?: string;
11542
- id: string;
11543
- }
11544
11454
  export interface CreateInvitesModuleInput {
11545
11455
  clientMutationId?: string;
11546
11456
  invitesModule: {
@@ -12940,6 +12850,26 @@ export interface DeleteRoleTypeInput {
12940
12850
  clientMutationId?: string;
12941
12851
  id: number;
12942
12852
  }
12853
+ export interface CreateMigrateFileInput {
12854
+ clientMutationId?: string;
12855
+ migrateFile: {
12856
+ databaseId?: string;
12857
+ upload?: ConstructiveInternalTypeUpload;
12858
+ };
12859
+ }
12860
+ export interface MigrateFilePatch {
12861
+ databaseId?: string | null;
12862
+ upload?: ConstructiveInternalTypeUpload | null;
12863
+ }
12864
+ export interface UpdateMigrateFileInput {
12865
+ clientMutationId?: string;
12866
+ id: string;
12867
+ migrateFilePatch: MigrateFilePatch;
12868
+ }
12869
+ export interface DeleteMigrateFileInput {
12870
+ clientMutationId?: string;
12871
+ id: string;
12872
+ }
12943
12873
  export interface CreateAppLimitDefaultInput {
12944
12874
  clientMutationId?: string;
12945
12875
  appLimitDefault: {
@@ -13152,9 +13082,9 @@ export interface DeleteOrgMembershipDefaultInput {
13152
13082
  clientMutationId?: string;
13153
13083
  id: string;
13154
13084
  }
13155
- export interface CreateSqlMigrationInput {
13085
+ export interface CreateSqlActionInput {
13156
13086
  clientMutationId?: string;
13157
- sqlMigration: {
13087
+ sqlAction: {
13158
13088
  name?: string;
13159
13089
  databaseId?: string;
13160
13090
  deploy?: string;
@@ -13168,7 +13098,7 @@ export interface CreateSqlMigrationInput {
13168
13098
  actorId?: string;
13169
13099
  };
13170
13100
  }
13171
- export interface SqlMigrationPatch {
13101
+ export interface SqlActionPatch {
13172
13102
  name?: string | null;
13173
13103
  databaseId?: string | null;
13174
13104
  deploy?: string | null;
@@ -13181,12 +13111,12 @@ export interface SqlMigrationPatch {
13181
13111
  actionId?: string | null;
13182
13112
  actorId?: string | null;
13183
13113
  }
13184
- export interface UpdateSqlMigrationInput {
13114
+ export interface UpdateSqlActionInput {
13185
13115
  clientMutationId?: string;
13186
13116
  id: number;
13187
- sqlMigrationPatch: SqlMigrationPatch;
13117
+ sqlActionPatch: SqlActionPatch;
13188
13118
  }
13189
- export interface DeleteSqlMigrationInput {
13119
+ export interface DeleteSqlActionInput {
13190
13120
  clientMutationId?: string;
13191
13121
  id: number;
13192
13122
  }
@@ -13894,15 +13824,6 @@ export interface DatabaseToManyEncryptedSecretsModuleFilter {
13894
13824
  /** Filters to entities where no related entity matches. */
13895
13825
  none?: EncryptedSecretsModuleFilter;
13896
13826
  }
13897
- /** A filter to be used against many `FieldModule` object types. All fields are combined with a logical ‘and.’ */
13898
- export interface DatabaseToManyFieldModuleFilter {
13899
- /** Filters to entities where at least one related entity matches. */
13900
- some?: FieldModuleFilter;
13901
- /** Filters to entities where every related entity matches. */
13902
- every?: FieldModuleFilter;
13903
- /** Filters to entities where no related entity matches. */
13904
- none?: FieldModuleFilter;
13905
- }
13906
13827
  /** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */
13907
13828
  export interface DatabaseToManyInvitesModuleFilter {
13908
13829
  /** Filters to entities where at least one related entity matches. */
@@ -14880,6 +14801,41 @@ export interface ConstructiveInternalTypeOriginFilter {
14880
14801
  /** Greater than or equal to the specified value (case-insensitive). */
14881
14802
  greaterThanOrEqualToInsensitive?: string;
14882
14803
  }
14804
+ /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */
14805
+ export interface ConstructiveInternalTypeUploadFilter {
14806
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
14807
+ isNull?: boolean;
14808
+ /** Equal to the specified value. */
14809
+ equalTo?: ConstructiveInternalTypeUpload;
14810
+ /** Not equal to the specified value. */
14811
+ notEqualTo?: ConstructiveInternalTypeUpload;
14812
+ /** Not equal to the specified value, treating null like an ordinary value. */
14813
+ distinctFrom?: ConstructiveInternalTypeUpload;
14814
+ /** Equal to the specified value, treating null like an ordinary value. */
14815
+ notDistinctFrom?: ConstructiveInternalTypeUpload;
14816
+ /** Included in the specified list. */
14817
+ in?: ConstructiveInternalTypeUpload[];
14818
+ /** Not included in the specified list. */
14819
+ notIn?: ConstructiveInternalTypeUpload[];
14820
+ /** Less than the specified value. */
14821
+ lessThan?: ConstructiveInternalTypeUpload;
14822
+ /** Less than or equal to the specified value. */
14823
+ lessThanOrEqualTo?: ConstructiveInternalTypeUpload;
14824
+ /** Greater than the specified value. */
14825
+ greaterThan?: ConstructiveInternalTypeUpload;
14826
+ /** Greater than or equal to the specified value. */
14827
+ greaterThanOrEqualTo?: ConstructiveInternalTypeUpload;
14828
+ /** Contains the specified JSON. */
14829
+ contains?: ConstructiveInternalTypeUpload;
14830
+ /** Contains the specified key. */
14831
+ containsKey?: string;
14832
+ /** Contains all of the specified keys. */
14833
+ containsAllKeys?: string[];
14834
+ /** Contains any of the specified keys. */
14835
+ containsAnyKeys?: string[];
14836
+ /** Contained by the specified JSON. */
14837
+ containedBy?: ConstructiveInternalTypeUpload;
14838
+ }
14883
14839
  /** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */
14884
14840
  export interface StringTrgmFilter {
14885
14841
  /** Is null (if `true` is specified) or is not null (if `false` is specified). */
@@ -16672,41 +16628,6 @@ export interface EncryptedSecretsModuleFilter {
16672
16628
  /** Filter by the object’s `table` relation. */
16673
16629
  table?: TableFilter;
16674
16630
  }
16675
- /** A filter to be used against `FieldModule` object types. All fields are combined with a logical ‘and.’ */
16676
- export interface FieldModuleFilter {
16677
- /** Filter by the object’s `id` field. */
16678
- id?: UUIDFilter;
16679
- /** Filter by the object’s `databaseId` field. */
16680
- databaseId?: UUIDFilter;
16681
- /** Filter by the object’s `privateSchemaId` field. */
16682
- privateSchemaId?: UUIDFilter;
16683
- /** Filter by the object’s `tableId` field. */
16684
- tableId?: UUIDFilter;
16685
- /** Filter by the object’s `fieldId` field. */
16686
- fieldId?: UUIDFilter;
16687
- /** Filter by the object’s `nodeType` field. */
16688
- nodeType?: StringFilter;
16689
- /** Filter by the object’s `data` field. */
16690
- data?: JSONFilter;
16691
- /** Filter by the object’s `triggers` field. */
16692
- triggers?: StringListFilter;
16693
- /** Filter by the object’s `functions` field. */
16694
- functions?: StringListFilter;
16695
- /** Checks for all expressions in this list. */
16696
- and?: FieldModuleFilter[];
16697
- /** Checks for any expressions in this list. */
16698
- or?: FieldModuleFilter[];
16699
- /** Negates the expression. */
16700
- not?: FieldModuleFilter;
16701
- /** Filter by the object’s `database` relation. */
16702
- database?: DatabaseFilter;
16703
- /** Filter by the object’s `field` relation. */
16704
- field?: FieldFilter;
16705
- /** Filter by the object’s `privateSchema` relation. */
16706
- privateSchema?: SchemaFilter;
16707
- /** Filter by the object’s `table` relation. */
16708
- table?: TableFilter;
16709
- }
16710
16631
  /** A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ */
16711
16632
  export interface InvitesModuleFilter {
16712
16633
  /** Filter by the object’s `id` field. */
@@ -17884,10 +17805,6 @@ export interface DatabaseFilter {
17884
17805
  encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter;
17885
17806
  /** `encryptedSecretsModules` exist. */
17886
17807
  encryptedSecretsModulesExist?: boolean;
17887
- /** Filter by the object’s `fieldModules` relation. */
17888
- fieldModules?: DatabaseToManyFieldModuleFilter;
17889
- /** `fieldModules` exist. */
17890
- fieldModulesExist?: boolean;
17891
17808
  /** Filter by the object’s `invitesModules` relation. */
17892
17809
  invitesModules?: DatabaseToManyInvitesModuleFilter;
17893
17810
  /** `invitesModules` exist. */
@@ -21945,51 +21862,6 @@ export type DeleteEncryptedSecretsModulePayloadSelect = {
21945
21862
  select: EncryptedSecretsModuleEdgeSelect;
21946
21863
  };
21947
21864
  };
21948
- export interface CreateFieldModulePayload {
21949
- clientMutationId?: string | null;
21950
- /** The `FieldModule` that was created by this mutation. */
21951
- fieldModule?: FieldModule | null;
21952
- fieldModuleEdge?: FieldModuleEdge | null;
21953
- }
21954
- export type CreateFieldModulePayloadSelect = {
21955
- clientMutationId?: boolean;
21956
- fieldModule?: {
21957
- select: FieldModuleSelect;
21958
- };
21959
- fieldModuleEdge?: {
21960
- select: FieldModuleEdgeSelect;
21961
- };
21962
- };
21963
- export interface UpdateFieldModulePayload {
21964
- clientMutationId?: string | null;
21965
- /** The `FieldModule` that was updated by this mutation. */
21966
- fieldModule?: FieldModule | null;
21967
- fieldModuleEdge?: FieldModuleEdge | null;
21968
- }
21969
- export type UpdateFieldModulePayloadSelect = {
21970
- clientMutationId?: boolean;
21971
- fieldModule?: {
21972
- select: FieldModuleSelect;
21973
- };
21974
- fieldModuleEdge?: {
21975
- select: FieldModuleEdgeSelect;
21976
- };
21977
- };
21978
- export interface DeleteFieldModulePayload {
21979
- clientMutationId?: string | null;
21980
- /** The `FieldModule` that was deleted by this mutation. */
21981
- fieldModule?: FieldModule | null;
21982
- fieldModuleEdge?: FieldModuleEdge | null;
21983
- }
21984
- export type DeleteFieldModulePayloadSelect = {
21985
- clientMutationId?: boolean;
21986
- fieldModule?: {
21987
- select: FieldModuleSelect;
21988
- };
21989
- fieldModuleEdge?: {
21990
- select: FieldModuleEdgeSelect;
21991
- };
21992
- };
21993
21865
  export interface CreateInvitesModulePayload {
21994
21866
  clientMutationId?: string | null;
21995
21867
  /** The `InvitesModule` that was created by this mutation. */
@@ -23970,6 +23842,17 @@ export type DeleteRoleTypePayloadSelect = {
23970
23842
  select: RoleTypeEdgeSelect;
23971
23843
  };
23972
23844
  };
23845
+ export interface CreateMigrateFilePayload {
23846
+ clientMutationId?: string | null;
23847
+ /** The `MigrateFile` that was created by this mutation. */
23848
+ migrateFile?: MigrateFile | null;
23849
+ }
23850
+ export type CreateMigrateFilePayloadSelect = {
23851
+ clientMutationId?: boolean;
23852
+ migrateFile?: {
23853
+ select: MigrateFileSelect;
23854
+ };
23855
+ };
23973
23856
  export interface CreateAppLimitDefaultPayload {
23974
23857
  clientMutationId?: string | null;
23975
23858
  /** The `AppLimitDefault` that was created by this mutation. */
@@ -24330,15 +24213,15 @@ export type DeleteOrgMembershipDefaultPayloadSelect = {
24330
24213
  select: OrgMembershipDefaultEdgeSelect;
24331
24214
  };
24332
24215
  };
24333
- export interface CreateSqlMigrationPayload {
24216
+ export interface CreateSqlActionPayload {
24334
24217
  clientMutationId?: string | null;
24335
- /** The `SqlMigration` that was created by this mutation. */
24336
- sqlMigration?: SqlMigration | null;
24218
+ /** The `SqlAction` that was created by this mutation. */
24219
+ sqlAction?: SqlAction | null;
24337
24220
  }
24338
- export type CreateSqlMigrationPayloadSelect = {
24221
+ export type CreateSqlActionPayloadSelect = {
24339
24222
  clientMutationId?: boolean;
24340
- sqlMigration?: {
24341
- select: SqlMigrationSelect;
24223
+ sqlAction?: {
24224
+ select: SqlActionSelect;
24342
24225
  };
24343
24226
  };
24344
24227
  export interface CreateUserPayload {
@@ -25186,18 +25069,6 @@ export type EncryptedSecretsModuleEdgeSelect = {
25186
25069
  select: EncryptedSecretsModuleSelect;
25187
25070
  };
25188
25071
  };
25189
- /** A `FieldModule` edge in the connection. */
25190
- export interface FieldModuleEdge {
25191
- cursor?: string | null;
25192
- /** The `FieldModule` at the end of the edge. */
25193
- node?: FieldModule | null;
25194
- }
25195
- export type FieldModuleEdgeSelect = {
25196
- cursor?: boolean;
25197
- node?: {
25198
- select: FieldModuleSelect;
25199
- };
25200
- };
25201
25072
  /** A `InvitesModule` edge in the connection. */
25202
25073
  export interface InvitesModuleEdge {
25203
25074
  cursor?: string | null;
@@ -38,7 +38,6 @@ export const connectionFieldsMap = {
38
38
  denormalizedTableFields: 'DenormalizedTableField',
39
39
  emailsModules: 'EmailsModule',
40
40
  encryptedSecretsModules: 'EncryptedSecretsModule',
41
- fieldModules: 'FieldModule',
42
41
  invitesModules: 'InvitesModule',
43
42
  levelsModules: 'LevelsModule',
44
43
  limitsModules: 'LimitsModule',
@@ -52,7 +52,6 @@ export { DefaultIdsModuleModel } from './defaultIdsModule';
52
52
  export { DenormalizedTableFieldModel } from './denormalizedTableField';
53
53
  export { EmailsModuleModel } from './emailsModule';
54
54
  export { EncryptedSecretsModuleModel } from './encryptedSecretsModule';
55
- export { FieldModuleModel } from './fieldModule';
56
55
  export { InvitesModuleModel } from './invitesModule';
57
56
  export { LevelsModuleModel } from './levelsModule';
58
57
  export { LimitsModuleModel } from './limitsModule';
@@ -97,6 +96,7 @@ export { RefModel } from './ref';
97
96
  export { StoreModel } from './store';
98
97
  export { AppPermissionDefaultModel } from './appPermissionDefault';
99
98
  export { RoleTypeModel } from './roleType';
99
+ export { MigrateFileModel } from './migrateFile';
100
100
  export { AppLimitDefaultModel } from './appLimitDefault';
101
101
  export { OrgLimitDefaultModel } from './orgLimitDefault';
102
102
  export { NodeTypeRegistryModel } from './nodeTypeRegistry';
@@ -105,7 +105,7 @@ export { CommitModel } from './commit';
105
105
  export { AppMembershipDefaultModel } from './appMembershipDefault';
106
106
  export { RlsModuleModel } from './rlsModule';
107
107
  export { OrgMembershipDefaultModel } from './orgMembershipDefault';
108
- export { SqlMigrationModel } from './sqlMigration';
108
+ export { SqlActionModel } from './sqlAction';
109
109
  export { UserModel } from './user';
110
110
  export { AstMigrationModel } from './astMigration';
111
111
  export { AppMembershipModel } from './appMembership';