@sequenceholdings/orm 2.6.1 → 2.6.2

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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { AuthoringContext, AuthoringRegistration, COLUMN_BRAND, COLUMN_DEFAULT_FNS, CatalogFolders, CheckInput, ColumnBuilder, ColumnDefaultFn, ColumnDefaultLiteral, ColumnTypeSpec, Comparator, CowMutationInput, DrizzleRelation, DurationInput, ENUM_BRAND, EnumRef, EtlSourceInput, ExternalObjectRef, ForeignKeyInput, FunctionRef, IndexInput, LINK_BRAND, LinkKind, LoadNamespaceOptions, LoadedNamespaceV2, ManualSourceInput, NAMESPACE_CONFIG_BRAND, NAMESPACE_CONFIG_FILE, NamespaceCapabilitiesInput, NamespaceCatalog, NamespaceConfigInput, ORM_TO_PIPELINE_TYPE, OrmContractColumnMap, OrmContractPipelineColumn, OrmSyncedTableContract, OrmToPipelineType, OverlayTableRef, OverlayWinsUnionInput, OverrideRowMutationInput, PolicyInput, PolicyVariantInput, PolicyWithVariantsInput, PrefetchSourceInput, ReferentialAction, RelationRef, ResolvedSourceInput, ResolvedTableConfig, ResolvedTablePoliciesInput, RevertOverlayMutationInput, SCHEMA_DIR, SYNCED_CONTRACT_HASH_DOMAIN, SeqLink, SeqNamespaceConfig, SeqTable, SeqView, SerializeNamespaceInput, SyncedTableConfig, SyncedTablePoliciesInput, TABLE_BRAND, TableConfig, TablePoliciesInput, TableRef, ToManyOptions, ToOneOptions, ToPlatformUserOptions, TypedSyncedTableConfig, VIEW_BRAND, ViewConfig, ViewPoliciesInput, ViewQueryContext, ViewSelectQuery, activeAuthoringContext, beginAuthoringContext, computeCanonicalHash, computeSyncedContractHash, custom, defineEnum, defineNamespace, defineResolvedTable, defineSyncedTable, defineTable, defineView, deriveColumnName, endAuthoringContext, etlSource, extractOrmSyncedTableContract, highest, isColumnBuilder, isEnumRef, isSeqLink, isSeqNamespaceConfig, isSeqTable, isSeqView, latest, loadNamespaceFromDir, lowest, managedFn, manualSource, nonNullFirst, objectRef, overlayWinsUnion, overrideRowMutation, prefetchSource, priority, revertOverlayMutation, serializeNamespace, syncedContractSurface, t, toMany, toOne, toPlatformUser, validateNamespaceCatalog } from './authoring.js';
2
- export { S as SqlOperationDefinition, d as defineOperation } from './definition-B99BsOAO.js';
2
+ export { S as SqlOperationDefinition, d as defineOperation } from './definition-DjfC7Lll.js';
3
3
  import { CanonicalDefinition } from './canonical.js';
4
4
  export { CANONICAL_FORMAT, CanonicalColumn, CanonicalEnum, CanonicalLink, CanonicalTable, CanonicalView, IDENTIFIER_RE, OntologyContract, canonicalActionSchema, canonicalColumnSchema, canonicalDefinitionSchema, canonicalEnumSchema, canonicalIndexSchema, canonicalLinkSchema, canonicalPoliciesSchema, canonicalRelations, canonicalTableSchema, canonicalViewSchema, normalizeCanonical, ontologyContractSchema, readOntologyContract } from './canonical.js';
5
5
  import { CustomRolesBlock } from '@sequenceholdings/custom-roles-manifest';
@@ -53,13 +53,13 @@ declare const actionParamSchema: z.ZodObject<{
53
53
  bigint: "bigint";
54
54
  boolean: "boolean";
55
55
  date: "date";
56
- uuid: "uuid";
57
56
  text: "text";
57
+ timestamptz: "timestamptz";
58
+ jsonb: "jsonb";
59
+ uuid: "uuid";
58
60
  integer: "integer";
59
61
  numeric: "numeric";
60
62
  double: "double";
61
- timestamptz: "timestamptz";
62
- jsonb: "jsonb";
63
63
  }>;
64
64
  optional: z.ZodOptional<z.ZodBoolean>;
65
65
  description: z.ZodOptional<z.ZodString>;
@@ -78,13 +78,13 @@ declare const actionSchema: z.ZodObject<{
78
78
  bigint: "bigint";
79
79
  boolean: "boolean";
80
80
  date: "date";
81
- uuid: "uuid";
82
81
  text: "text";
82
+ timestamptz: "timestamptz";
83
+ jsonb: "jsonb";
84
+ uuid: "uuid";
83
85
  integer: "integer";
84
86
  numeric: "numeric";
85
87
  double: "double";
86
- timestamptz: "timestamptz";
87
- jsonb: "jsonb";
88
88
  }>;
89
89
  optional: z.ZodOptional<z.ZodBoolean>;
90
90
  description: z.ZodOptional<z.ZodString>;
@@ -95,19 +95,19 @@ declare const actionSchema: z.ZodObject<{
95
95
  bigint: "bigint";
96
96
  boolean: "boolean";
97
97
  date: "date";
98
- uuid: "uuid";
99
98
  text: "text";
99
+ timestamptz: "timestamptz";
100
+ jsonb: "jsonb";
101
+ uuid: "uuid";
100
102
  integer: "integer";
101
103
  numeric: "numeric";
102
104
  double: "double";
103
- timestamptz: "timestamptz";
104
- jsonb: "jsonb";
105
105
  }>>>;
106
106
  audit: z.ZodOptional<z.ZodObject<{
107
107
  action: z.ZodEnum<{
108
108
  update: "update";
109
- delete: "delete";
110
109
  create: "create";
110
+ delete: "delete";
111
111
  }>;
112
112
  resource: z.ZodOptional<z.ZodString>;
113
113
  }, z.core.$strict>>;
@@ -130,13 +130,13 @@ declare const columnTypeSchema: z.ZodEnum<{
130
130
  bigint: "bigint";
131
131
  boolean: "boolean";
132
132
  date: "date";
133
- uuid: "uuid";
134
133
  text: "text";
134
+ timestamptz: "timestamptz";
135
+ jsonb: "jsonb";
136
+ uuid: "uuid";
135
137
  integer: "integer";
136
138
  numeric: "numeric";
137
139
  double: "double";
138
- timestamptz: "timestamptz";
139
- jsonb: "jsonb";
140
140
  }>;
141
141
  /**
142
142
  * True when the default is one of the allowlisted SQL function calls for its
@@ -162,13 +162,13 @@ declare const columnSchema: z.ZodObject<{
162
162
  bigint: "bigint";
163
163
  boolean: "boolean";
164
164
  date: "date";
165
- uuid: "uuid";
166
165
  text: "text";
166
+ timestamptz: "timestamptz";
167
+ jsonb: "jsonb";
168
+ uuid: "uuid";
167
169
  integer: "integer";
168
170
  numeric: "numeric";
169
171
  double: "double";
170
- timestamptz: "timestamptz";
171
- jsonb: "jsonb";
172
172
  }>;
173
173
  primary_key: z.ZodOptional<z.ZodBoolean>;
174
174
  nullable: z.ZodOptional<z.ZodBoolean>;
@@ -212,13 +212,13 @@ declare const tableFileSchema: z.ZodObject<{
212
212
  bigint: "bigint";
213
213
  boolean: "boolean";
214
214
  date: "date";
215
- uuid: "uuid";
216
215
  text: "text";
216
+ timestamptz: "timestamptz";
217
+ jsonb: "jsonb";
218
+ uuid: "uuid";
217
219
  integer: "integer";
218
220
  numeric: "numeric";
219
221
  double: "double";
220
- timestamptz: "timestamptz";
221
- jsonb: "jsonb";
222
222
  }>;
223
223
  primary_key: z.ZodOptional<z.ZodBoolean>;
224
224
  nullable: z.ZodOptional<z.ZodBoolean>;
@@ -263,13 +263,13 @@ declare const tableFileSchema: z.ZodObject<{
263
263
  bigint: "bigint";
264
264
  boolean: "boolean";
265
265
  date: "date";
266
- uuid: "uuid";
267
266
  text: "text";
267
+ timestamptz: "timestamptz";
268
+ jsonb: "jsonb";
269
+ uuid: "uuid";
268
270
  integer: "integer";
269
271
  numeric: "numeric";
270
272
  double: "double";
271
- timestamptz: "timestamptz";
272
- jsonb: "jsonb";
273
273
  }>;
274
274
  optional: z.ZodOptional<z.ZodBoolean>;
275
275
  description: z.ZodOptional<z.ZodString>;
@@ -280,19 +280,19 @@ declare const tableFileSchema: z.ZodObject<{
280
280
  bigint: "bigint";
281
281
  boolean: "boolean";
282
282
  date: "date";
283
- uuid: "uuid";
284
283
  text: "text";
284
+ timestamptz: "timestamptz";
285
+ jsonb: "jsonb";
286
+ uuid: "uuid";
285
287
  integer: "integer";
286
288
  numeric: "numeric";
287
289
  double: "double";
288
- timestamptz: "timestamptz";
289
- jsonb: "jsonb";
290
290
  }>>>;
291
291
  audit: z.ZodOptional<z.ZodObject<{
292
292
  action: z.ZodEnum<{
293
293
  update: "update";
294
- delete: "delete";
295
294
  create: "create";
295
+ delete: "delete";
296
296
  }>;
297
297
  resource: z.ZodOptional<z.ZodString>;
298
298
  }, z.core.$strict>>;
@@ -802,13 +802,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
802
802
  bigint: "bigint";
803
803
  boolean: "boolean";
804
804
  date: "date";
805
- uuid: "uuid";
806
805
  text: "text";
806
+ timestamptz: "timestamptz";
807
+ jsonb: "jsonb";
808
+ uuid: "uuid";
807
809
  integer: "integer";
808
810
  numeric: "numeric";
809
811
  double: "double";
810
- timestamptz: "timestamptz";
811
- jsonb: "jsonb";
812
812
  }>, z.ZodObject<{
813
813
  enum: z.ZodString;
814
814
  }, z.core.$strip>]>;
@@ -830,10 +830,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
830
830
  of: z.ZodString;
831
831
  part: z.ZodEnum<{
832
832
  at: "at";
833
- source: "source";
834
833
  by: "by";
835
- conflicts: "conflicts";
836
834
  rev: "rev";
835
+ source: "source";
836
+ conflicts: "conflicts";
837
837
  }>;
838
838
  }, z.core.$strict>>;
839
839
  }, z.core.$strip>>>;
@@ -917,21 +917,21 @@ declare const ormMigrationExportSchema: z.ZodObject<{
917
917
  bigint: "bigint";
918
918
  boolean: "boolean";
919
919
  date: "date";
920
- uuid: "uuid";
921
920
  text: "text";
921
+ timestamptz: "timestamptz";
922
+ jsonb: "jsonb";
923
+ uuid: "uuid";
922
924
  integer: "integer";
923
925
  numeric: "numeric";
924
926
  double: "double";
925
- timestamptz: "timestamptz";
926
- jsonb: "jsonb";
927
927
  }>;
928
928
  nullable: z.ZodDefault<z.ZodBoolean>;
929
929
  }, z.core.$strip>>>;
930
930
  executes: z.ZodString;
931
931
  returns: z.ZodDefault<z.ZodEnum<{
932
932
  rows: "rows";
933
- scalar: "scalar";
934
933
  rowsAffected: "rowsAffected";
934
+ scalar: "scalar";
935
935
  }>>;
936
936
  audit: z.ZodOptional<z.ZodObject<{
937
937
  action: z.ZodString;
@@ -987,13 +987,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
987
987
  bigint: "bigint";
988
988
  boolean: "boolean";
989
989
  date: "date";
990
- uuid: "uuid";
991
990
  text: "text";
991
+ timestamptz: "timestamptz";
992
+ jsonb: "jsonb";
993
+ uuid: "uuid";
992
994
  integer: "integer";
993
995
  numeric: "numeric";
994
996
  double: "double";
995
- timestamptz: "timestamptz";
996
- jsonb: "jsonb";
997
997
  }>, z.ZodObject<{
998
998
  enum: z.ZodString;
999
999
  }, z.core.$strip>]>;
@@ -1015,10 +1015,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1015
1015
  of: z.ZodString;
1016
1016
  part: z.ZodEnum<{
1017
1017
  at: "at";
1018
- source: "source";
1019
1018
  by: "by";
1020
- conflicts: "conflicts";
1021
1019
  rev: "rev";
1020
+ source: "source";
1021
+ conflicts: "conflicts";
1022
1022
  }>;
1023
1023
  }, z.core.$strict>>;
1024
1024
  }, z.core.$strip>>;
@@ -1067,8 +1067,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1067
1067
  sources: z.ZodArray<z.ZodObject<{
1068
1068
  name: z.ZodString;
1069
1069
  kind: z.ZodEnum<{
1070
- prefetch: "prefetch";
1071
1070
  manual: "manual";
1071
+ prefetch: "prefetch";
1072
1072
  etl: "etl";
1073
1073
  }>;
1074
1074
  table: z.ZodString;
@@ -1190,13 +1190,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1190
1190
  bigint: "bigint";
1191
1191
  boolean: "boolean";
1192
1192
  date: "date";
1193
- uuid: "uuid";
1194
1193
  text: "text";
1194
+ timestamptz: "timestamptz";
1195
+ jsonb: "jsonb";
1196
+ uuid: "uuid";
1195
1197
  integer: "integer";
1196
1198
  numeric: "numeric";
1197
1199
  double: "double";
1198
- timestamptz: "timestamptz";
1199
- jsonb: "jsonb";
1200
1200
  }>, z.ZodObject<{
1201
1201
  enum: z.ZodString;
1202
1202
  }, z.core.$strip>]>;
@@ -1218,10 +1218,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1218
1218
  of: z.ZodString;
1219
1219
  part: z.ZodEnum<{
1220
1220
  at: "at";
1221
- source: "source";
1222
1221
  by: "by";
1223
- conflicts: "conflicts";
1224
1222
  rev: "rev";
1223
+ source: "source";
1224
+ conflicts: "conflicts";
1225
1225
  }>;
1226
1226
  }, z.core.$strict>>;
1227
1227
  }, z.core.$strip>>>;
@@ -1305,21 +1305,21 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1305
1305
  bigint: "bigint";
1306
1306
  boolean: "boolean";
1307
1307
  date: "date";
1308
- uuid: "uuid";
1309
1308
  text: "text";
1309
+ timestamptz: "timestamptz";
1310
+ jsonb: "jsonb";
1311
+ uuid: "uuid";
1310
1312
  integer: "integer";
1311
1313
  numeric: "numeric";
1312
1314
  double: "double";
1313
- timestamptz: "timestamptz";
1314
- jsonb: "jsonb";
1315
1315
  }>;
1316
1316
  nullable: z.ZodDefault<z.ZodBoolean>;
1317
1317
  }, z.core.$strip>>>;
1318
1318
  executes: z.ZodString;
1319
1319
  returns: z.ZodDefault<z.ZodEnum<{
1320
1320
  rows: "rows";
1321
- scalar: "scalar";
1322
1321
  rowsAffected: "rowsAffected";
1322
+ scalar: "scalar";
1323
1323
  }>>;
1324
1324
  audit: z.ZodOptional<z.ZodObject<{
1325
1325
  action: z.ZodString;
@@ -1375,13 +1375,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1375
1375
  bigint: "bigint";
1376
1376
  boolean: "boolean";
1377
1377
  date: "date";
1378
- uuid: "uuid";
1379
1378
  text: "text";
1379
+ timestamptz: "timestamptz";
1380
+ jsonb: "jsonb";
1381
+ uuid: "uuid";
1380
1382
  integer: "integer";
1381
1383
  numeric: "numeric";
1382
1384
  double: "double";
1383
- timestamptz: "timestamptz";
1384
- jsonb: "jsonb";
1385
1385
  }>, z.ZodObject<{
1386
1386
  enum: z.ZodString;
1387
1387
  }, z.core.$strip>]>;
@@ -1403,10 +1403,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1403
1403
  of: z.ZodString;
1404
1404
  part: z.ZodEnum<{
1405
1405
  at: "at";
1406
- source: "source";
1407
1406
  by: "by";
1408
- conflicts: "conflicts";
1409
1407
  rev: "rev";
1408
+ source: "source";
1409
+ conflicts: "conflicts";
1410
1410
  }>;
1411
1411
  }, z.core.$strict>>;
1412
1412
  }, z.core.$strip>>;
@@ -1455,8 +1455,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1455
1455
  sources: z.ZodArray<z.ZodObject<{
1456
1456
  name: z.ZodString;
1457
1457
  kind: z.ZodEnum<{
1458
- prefetch: "prefetch";
1459
1458
  manual: "manual";
1459
+ prefetch: "prefetch";
1460
1460
  etl: "etl";
1461
1461
  }>;
1462
1462
  table: z.ZodString;