@sequenceholdings/orm 2.9.0 → 2.11.0
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/README.md +71 -0
- package/dist/authoring.cjs +796 -7
- package/dist/authoring.cjs.map +1 -1
- package/dist/authoring.d.cts +11 -2
- package/dist/authoring.d.ts +11 -2
- package/dist/authoring.js +796 -7
- package/dist/authoring.js.map +1 -1
- package/dist/canonical.cjs +777 -6
- package/dist/canonical.cjs.map +1 -1
- package/dist/canonical.d.cts +43 -43
- package/dist/canonical.d.ts +43 -43
- package/dist/canonical.js +777 -6
- package/dist/canonical.js.map +1 -1
- package/dist/cli.cjs +7585 -7512
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +10 -1
- package/dist/cli.d.ts +10 -1
- package/dist/cli.js +7584 -7513
- package/dist/cli.js.map +1 -1
- package/dist/compiler.cjs +1059 -50
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +182 -2
- package/dist/compiler.d.ts +182 -2
- package/dist/compiler.js +1054 -51
- package/dist/compiler.js.map +1 -1
- package/dist/index.cjs +3720 -3447
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +96 -31
- package/dist/index.d.ts +96 -31
- package/dist/index.js +3714 -3446
- package/dist/index.js.map +1 -1
- package/dist/ir.cjs +787 -14
- package/dist/ir.cjs.map +1 -1
- package/dist/ir.d.cts +70 -59
- package/dist/ir.d.ts +70 -59
- package/dist/ir.js +787 -15
- package/dist/ir.js.map +1 -1
- package/dist/predicate-v2.cjs +802 -30
- package/dist/predicate-v2.cjs.map +1 -1
- package/dist/predicate-v2.d.cts +2 -0
- package/dist/predicate-v2.d.ts +2 -0
- package/dist/predicate-v2.js +802 -30
- package/dist/predicate-v2.js.map +1 -1
- package/dist/sdl.cjs +794 -24
- package/dist/sdl.cjs.map +1 -1
- package/dist/sdl.js +794 -24
- package/dist/sdl.js.map +1 -1
- package/package.json +1 -1
- package/dist/{definition-B99BsOAO.d.cts → definition-CevES7lM.d.cts} +2 -2
- package/dist/{definition-B99BsOAO.d.ts → definition-CevES7lM.d.ts} +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
2
|
+
export { S as SqlOperationDefinition, d as defineOperation } from './definition-CevES7lM.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';
|
|
6
6
|
export { CustomRolesBlock, capabilityPinsSchema, customRolesBlockSchema, customRolesDeclared, parseCapabilityPin, validateCapabilityPins } from '@sequenceholdings/custom-roles-manifest';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { PredIr, TableMetaIr } from './ir.js';
|
|
9
|
-
export { CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, CellSelectionIr, ClaimKey, CmpOp, CompiledArtifact, CompiledOperation, DATE_BUCKETS, DateBucket, EXTERNAL_POLICY_CLAIM_KEYS, ExternalPolicyClaimKey, GUARDED_IR_VERSION, GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, InputRefKind, IrVersionError, LEGACY_IR_VERSION, LimitIr, OrderIr, PrefetchPlanIr, RUNTIME_SQL_IR_VERSION, ResolvedMetaIr, ResolvedSourceIr, RootIr, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, SelectionIr, ValueIr, VariableDefaultIr, VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema } from './ir.js';
|
|
9
|
+
export { CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, CellSelectionIr, ClaimKey, CmpOp, CompiledArtifact, CompiledOperation, DATE_BUCKETS, DateBucket, EXTERNAL_POLICY_CLAIM_KEYS, ExternalPolicyClaimKey, GUARDED_IR_VERSION, GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, InputRefKind, IrVersionError, LEGACY_IR_VERSION, LimitIr, OrderIr, PrefetchPlanIr, RUNTIME_SQL_IR_VERSION, ResolvedMetaIr, ResolvedSourceIr, RootIr, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, SelectionIr, ValueIr, VariableDefaultIr, VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, sqlObjectIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema } from './ir.js';
|
|
10
10
|
export { e as CAPABILITY_KEY_PATTERN, C as CELLS_FIELD, a as CELL_PARTS, f as CELL_PART_SUFFIX, g as CLAIM_KEY_PATTERN, h as COLUMN_IDENTIFIER_PATTERN, i as CONSUMER_ROLE_SUFFIX, b as CellPart, D as DEFINITION_FILE_EXTENSIONS, H as HASH_DOMAIN, I as IDENTIFIER_PATTERN, M as MATERIALIZE_ACTOR, j as MATERIALIZE_CLAIMS_JSON, k as MAX_DEFINITION_FILE_BYTES, l as MAX_GENERATED_SDL_BYTES, m as MAX_IDENTIFIER_LENGTH, n as MAX_PERSISTED_READ_ROWS, o as MAX_TRACKED_COLUMN_NAME, p as NAMESPACE_CONFIG_FILENAMES, N as NAMESPACE_PATTERN, q as OPERATION_DOCUMENTS_FILE, r as OPERATION_DOCUMENTS_VERSION, O as ORM_DATA_TOKEN_HEADER, s as ORM_REGISTRATION_MAX_BYTES, t as ORM_SCHEMA_PREFIX, d as ORM_SERVICE_DATA_TOKEN_HEADER, Q as QUALIFIED_TABLE_PATTERN, R as RESERVED_COLUMN_NAMES, u as RESERVED_TABLE_NAMES, S as SYNCED_SOURCE_PATTERN, c as cellColumnName, v as consumerRoleName, w as materializeLockKey, x as materializedRefreshFunctionName, y as ormSchemaName } from './constants-D2o0vK6U.js';
|
|
11
11
|
import { generateDrizzleJson } from 'drizzle-kit/api';
|
|
12
12
|
import { PgTableWithColumns } from 'drizzle-orm/pg-core';
|
|
@@ -53,8 +53,8 @@ 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
|
+
uuid: "uuid";
|
|
58
58
|
integer: "integer";
|
|
59
59
|
numeric: "numeric";
|
|
60
60
|
double: "double";
|
|
@@ -78,8 +78,8 @@ 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
|
+
uuid: "uuid";
|
|
83
83
|
integer: "integer";
|
|
84
84
|
numeric: "numeric";
|
|
85
85
|
double: "double";
|
|
@@ -95,8 +95,8 @@ 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
|
+
uuid: "uuid";
|
|
100
100
|
integer: "integer";
|
|
101
101
|
numeric: "numeric";
|
|
102
102
|
double: "double";
|
|
@@ -105,9 +105,9 @@ declare const actionSchema: z.ZodObject<{
|
|
|
105
105
|
}>>>;
|
|
106
106
|
audit: z.ZodOptional<z.ZodObject<{
|
|
107
107
|
action: z.ZodEnum<{
|
|
108
|
+
create: "create";
|
|
108
109
|
update: "update";
|
|
109
110
|
delete: "delete";
|
|
110
|
-
create: "create";
|
|
111
111
|
}>;
|
|
112
112
|
resource: z.ZodOptional<z.ZodString>;
|
|
113
113
|
}, z.core.$strict>>;
|
|
@@ -130,8 +130,8 @@ 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
|
+
uuid: "uuid";
|
|
135
135
|
integer: "integer";
|
|
136
136
|
numeric: "numeric";
|
|
137
137
|
double: "double";
|
|
@@ -162,8 +162,8 @@ 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
|
+
uuid: "uuid";
|
|
167
167
|
integer: "integer";
|
|
168
168
|
numeric: "numeric";
|
|
169
169
|
double: "double";
|
|
@@ -212,8 +212,8 @@ 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
|
+
uuid: "uuid";
|
|
217
217
|
integer: "integer";
|
|
218
218
|
numeric: "numeric";
|
|
219
219
|
double: "double";
|
|
@@ -263,8 +263,8 @@ 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
|
+
uuid: "uuid";
|
|
268
268
|
integer: "integer";
|
|
269
269
|
numeric: "numeric";
|
|
270
270
|
double: "double";
|
|
@@ -280,8 +280,8 @@ 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
|
+
uuid: "uuid";
|
|
285
285
|
integer: "integer";
|
|
286
286
|
numeric: "numeric";
|
|
287
287
|
double: "double";
|
|
@@ -290,9 +290,9 @@ declare const tableFileSchema: z.ZodObject<{
|
|
|
290
290
|
}>>>;
|
|
291
291
|
audit: z.ZodOptional<z.ZodObject<{
|
|
292
292
|
action: z.ZodEnum<{
|
|
293
|
+
create: "create";
|
|
293
294
|
update: "update";
|
|
294
295
|
delete: "delete";
|
|
295
|
-
create: "create";
|
|
296
296
|
}>;
|
|
297
297
|
resource: z.ZodOptional<z.ZodString>;
|
|
298
298
|
}, z.core.$strict>>;
|
|
@@ -468,6 +468,52 @@ interface MigrationHints {
|
|
|
468
468
|
*/
|
|
469
469
|
declare function applyMigrationHints(previous: NamespaceSnapshot, definition: NamespaceDefinition): MigrationHints;
|
|
470
470
|
|
|
471
|
+
interface DeclaredSyncedIndex {
|
|
472
|
+
readonly namespace: string;
|
|
473
|
+
readonly table: string;
|
|
474
|
+
readonly name: string;
|
|
475
|
+
/** Physical column names, in key order. */
|
|
476
|
+
readonly columns: readonly string[];
|
|
477
|
+
}
|
|
478
|
+
/** The synced table → physical relation binding apply resolved for this environment. */
|
|
479
|
+
interface SyncedIndexBacking {
|
|
480
|
+
readonly table: string;
|
|
481
|
+
readonly physicalRelation: string;
|
|
482
|
+
}
|
|
483
|
+
/** Every secondary index the definition declares on a synced table. */
|
|
484
|
+
declare function declaredSyncedIndexes(canonical: CanonicalDefinition): DeclaredSyncedIndex[];
|
|
485
|
+
/** Whether apply emitted this statement to manage a synced-table index (it must start as the applying identity). */
|
|
486
|
+
declare function isSyncedIndexStatement(sql: string): boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Idempotent statements that converge the bound physical relations onto the
|
|
489
|
+
* declared synced indexes: first an idempotent create of the ownership ledger;
|
|
490
|
+
* then guarded drops for indexes `previous` declared that are gone, changed or
|
|
491
|
+
* rebound, on the relation they previously lived on; per declared index, a
|
|
492
|
+
* guarded drop of an owned stale copy on the same relation (invalid build,
|
|
493
|
+
* different keys or access method) and then a create-if-absent that records
|
|
494
|
+
* the new index's OID in the ledger; finally, per declared index, a check that
|
|
495
|
+
* it is the owned, declared btree on its relation (a same-named index
|
|
496
|
+
* elsewhere or one the ORM did not create fails it). The check raises 55000,
|
|
497
|
+
* which apply's idempotent-heal path never skips. Tables without a backing are
|
|
498
|
+
* skipped; apply fails earlier when a declared synced table has none.
|
|
499
|
+
*/
|
|
500
|
+
declare function syncedIndexStatements({ canonical, previous, backings, previousBackings, }: {
|
|
501
|
+
/** Undefined when the target definition has no synced tables left. */
|
|
502
|
+
canonical: CanonicalDefinition | undefined;
|
|
503
|
+
/** The definition the environment last applied; its removed or changed indexes are dropped. */
|
|
504
|
+
previous?: CanonicalDefinition;
|
|
505
|
+
backings: readonly SyncedIndexBacking[];
|
|
506
|
+
/** Where a table no longer bound (removed or rebound) previously lived — lets its indexes be dropped. */
|
|
507
|
+
previousBackings?: readonly SyncedIndexBacking[];
|
|
508
|
+
}): string[];
|
|
509
|
+
/** A declared synced index on the physical relation its table is bound to. */
|
|
510
|
+
interface PlacedSyncedIndex extends DeclaredSyncedIndex {
|
|
511
|
+
readonly relation: {
|
|
512
|
+
readonly schema: string;
|
|
513
|
+
readonly table: string;
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
|
|
471
517
|
/**
|
|
472
518
|
* Whether a kit-emitted statement is one the security pass owns (and so is
|
|
473
519
|
* excluded from the convergence verdict). Exported for direct testing of the
|
|
@@ -494,6 +540,25 @@ declare function pendingKitStatementsV2({ canonical, db, }: {
|
|
|
494
540
|
/** A drizzle PgDatabase over the target — typed loose because pushSchema's own parameter is `PgDatabase<any>`. */
|
|
495
541
|
db: unknown;
|
|
496
542
|
}): Promise<string[]>;
|
|
543
|
+
/**
|
|
544
|
+
* Synced-index drift: the `CREATE INDEX` statements a re-apply would need
|
|
545
|
+
* because a declared index is missing from its bound physical relation (for
|
|
546
|
+
* example after the pipeline dropped and recreated the synced table), is
|
|
547
|
+
* invalid, is not a btree, was not created by the ORM for this table (no
|
|
548
|
+
* ledger row records its current OID), or no longer matches the declared key
|
|
549
|
+
* columns. Empty means every declared synced index is in place. Drizzle-kit
|
|
550
|
+
* never sees these relations, so pendingKitStatementsV2 cannot report them.
|
|
551
|
+
*
|
|
552
|
+
* Runs in one transaction: the catalog is read as the caller, then the ledger
|
|
553
|
+
* as the namespace schema's owner (a transaction-local role switch, the same
|
|
554
|
+
* one apply's statements make).
|
|
555
|
+
*/
|
|
556
|
+
declare function pendingSyncedIndexStatements({ canonical, backings, db, }: {
|
|
557
|
+
canonical: CanonicalDefinition;
|
|
558
|
+
backings: readonly SyncedIndexBacking[];
|
|
559
|
+
/** A drizzle PgDatabase over the target. */
|
|
560
|
+
db: unknown;
|
|
561
|
+
}): Promise<string[]>;
|
|
497
562
|
|
|
498
563
|
interface DrizzleEntities {
|
|
499
564
|
/** The in-memory schema bag drizzle-kit snapshots (`generateDrizzleJson(imports)`). */
|
|
@@ -802,8 +867,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
802
867
|
bigint: "bigint";
|
|
803
868
|
boolean: "boolean";
|
|
804
869
|
date: "date";
|
|
805
|
-
uuid: "uuid";
|
|
806
870
|
text: "text";
|
|
871
|
+
uuid: "uuid";
|
|
807
872
|
integer: "integer";
|
|
808
873
|
numeric: "numeric";
|
|
809
874
|
double: "double";
|
|
@@ -830,10 +895,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
830
895
|
of: z.ZodString;
|
|
831
896
|
part: z.ZodEnum<{
|
|
832
897
|
at: "at";
|
|
833
|
-
source: "source";
|
|
834
898
|
by: "by";
|
|
835
|
-
conflicts: "conflicts";
|
|
836
899
|
rev: "rev";
|
|
900
|
+
source: "source";
|
|
901
|
+
conflicts: "conflicts";
|
|
837
902
|
}>;
|
|
838
903
|
}, z.core.$strict>>;
|
|
839
904
|
}, z.core.$strip>>>;
|
|
@@ -917,8 +982,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
917
982
|
bigint: "bigint";
|
|
918
983
|
boolean: "boolean";
|
|
919
984
|
date: "date";
|
|
920
|
-
uuid: "uuid";
|
|
921
985
|
text: "text";
|
|
986
|
+
uuid: "uuid";
|
|
922
987
|
integer: "integer";
|
|
923
988
|
numeric: "numeric";
|
|
924
989
|
double: "double";
|
|
@@ -930,8 +995,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
930
995
|
executes: z.ZodString;
|
|
931
996
|
returns: z.ZodDefault<z.ZodEnum<{
|
|
932
997
|
rows: "rows";
|
|
933
|
-
scalar: "scalar";
|
|
934
998
|
rowsAffected: "rowsAffected";
|
|
999
|
+
scalar: "scalar";
|
|
935
1000
|
}>>;
|
|
936
1001
|
audit: z.ZodOptional<z.ZodObject<{
|
|
937
1002
|
action: z.ZodString;
|
|
@@ -987,8 +1052,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
987
1052
|
bigint: "bigint";
|
|
988
1053
|
boolean: "boolean";
|
|
989
1054
|
date: "date";
|
|
990
|
-
uuid: "uuid";
|
|
991
1055
|
text: "text";
|
|
1056
|
+
uuid: "uuid";
|
|
992
1057
|
integer: "integer";
|
|
993
1058
|
numeric: "numeric";
|
|
994
1059
|
double: "double";
|
|
@@ -1015,10 +1080,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1015
1080
|
of: z.ZodString;
|
|
1016
1081
|
part: z.ZodEnum<{
|
|
1017
1082
|
at: "at";
|
|
1018
|
-
source: "source";
|
|
1019
1083
|
by: "by";
|
|
1020
|
-
conflicts: "conflicts";
|
|
1021
1084
|
rev: "rev";
|
|
1085
|
+
source: "source";
|
|
1086
|
+
conflicts: "conflicts";
|
|
1022
1087
|
}>;
|
|
1023
1088
|
}, z.core.$strict>>;
|
|
1024
1089
|
}, z.core.$strip>>;
|
|
@@ -1067,9 +1132,9 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1067
1132
|
sources: z.ZodArray<z.ZodObject<{
|
|
1068
1133
|
name: z.ZodString;
|
|
1069
1134
|
kind: z.ZodEnum<{
|
|
1070
|
-
prefetch: "prefetch";
|
|
1071
1135
|
manual: "manual";
|
|
1072
1136
|
etl: "etl";
|
|
1137
|
+
prefetch: "prefetch";
|
|
1073
1138
|
}>;
|
|
1074
1139
|
table: z.ZodString;
|
|
1075
1140
|
columns: z.ZodArray<z.ZodString>;
|
|
@@ -1191,8 +1256,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1191
1256
|
bigint: "bigint";
|
|
1192
1257
|
boolean: "boolean";
|
|
1193
1258
|
date: "date";
|
|
1194
|
-
uuid: "uuid";
|
|
1195
1259
|
text: "text";
|
|
1260
|
+
uuid: "uuid";
|
|
1196
1261
|
integer: "integer";
|
|
1197
1262
|
numeric: "numeric";
|
|
1198
1263
|
double: "double";
|
|
@@ -1219,10 +1284,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1219
1284
|
of: z.ZodString;
|
|
1220
1285
|
part: z.ZodEnum<{
|
|
1221
1286
|
at: "at";
|
|
1222
|
-
source: "source";
|
|
1223
1287
|
by: "by";
|
|
1224
|
-
conflicts: "conflicts";
|
|
1225
1288
|
rev: "rev";
|
|
1289
|
+
source: "source";
|
|
1290
|
+
conflicts: "conflicts";
|
|
1226
1291
|
}>;
|
|
1227
1292
|
}, z.core.$strict>>;
|
|
1228
1293
|
}, z.core.$strip>>>;
|
|
@@ -1306,8 +1371,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1306
1371
|
bigint: "bigint";
|
|
1307
1372
|
boolean: "boolean";
|
|
1308
1373
|
date: "date";
|
|
1309
|
-
uuid: "uuid";
|
|
1310
1374
|
text: "text";
|
|
1375
|
+
uuid: "uuid";
|
|
1311
1376
|
integer: "integer";
|
|
1312
1377
|
numeric: "numeric";
|
|
1313
1378
|
double: "double";
|
|
@@ -1319,8 +1384,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1319
1384
|
executes: z.ZodString;
|
|
1320
1385
|
returns: z.ZodDefault<z.ZodEnum<{
|
|
1321
1386
|
rows: "rows";
|
|
1322
|
-
scalar: "scalar";
|
|
1323
1387
|
rowsAffected: "rowsAffected";
|
|
1388
|
+
scalar: "scalar";
|
|
1324
1389
|
}>>;
|
|
1325
1390
|
audit: z.ZodOptional<z.ZodObject<{
|
|
1326
1391
|
action: z.ZodString;
|
|
@@ -1376,8 +1441,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1376
1441
|
bigint: "bigint";
|
|
1377
1442
|
boolean: "boolean";
|
|
1378
1443
|
date: "date";
|
|
1379
|
-
uuid: "uuid";
|
|
1380
1444
|
text: "text";
|
|
1445
|
+
uuid: "uuid";
|
|
1381
1446
|
integer: "integer";
|
|
1382
1447
|
numeric: "numeric";
|
|
1383
1448
|
double: "double";
|
|
@@ -1404,10 +1469,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1404
1469
|
of: z.ZodString;
|
|
1405
1470
|
part: z.ZodEnum<{
|
|
1406
1471
|
at: "at";
|
|
1407
|
-
source: "source";
|
|
1408
1472
|
by: "by";
|
|
1409
|
-
conflicts: "conflicts";
|
|
1410
1473
|
rev: "rev";
|
|
1474
|
+
source: "source";
|
|
1475
|
+
conflicts: "conflicts";
|
|
1411
1476
|
}>;
|
|
1412
1477
|
}, z.core.$strict>>;
|
|
1413
1478
|
}, z.core.$strip>>;
|
|
@@ -1456,9 +1521,9 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1456
1521
|
sources: z.ZodArray<z.ZodObject<{
|
|
1457
1522
|
name: z.ZodString;
|
|
1458
1523
|
kind: z.ZodEnum<{
|
|
1459
|
-
prefetch: "prefetch";
|
|
1460
1524
|
manual: "manual";
|
|
1461
1525
|
etl: "etl";
|
|
1526
|
+
prefetch: "prefetch";
|
|
1462
1527
|
}>;
|
|
1463
1528
|
table: z.ZodString;
|
|
1464
1529
|
columns: z.ZodArray<z.ZodString>;
|
|
@@ -1880,4 +1945,4 @@ declare function planTableImport({ definition, spec, after, }: {
|
|
|
1880
1945
|
after?: string;
|
|
1881
1946
|
}): ImportPlanResult;
|
|
1882
1947
|
|
|
1883
|
-
export { ACTION_REQUIRES_DENIED_SQLSTATE, ACTION_VALIDATES_FAILED_SQLSTATE, AUDIT_ACTIONS, type ActionDefinition, CAPABILITIES_CLAIM_KEY, CLAIMS_SETTING, COLUMN_TYPES, COMPARE_OPS, CanonicalDefinition, type ColumnDefault, type ColumnDefinition, type ColumnType, type CommittedChainEntry, type CommittedMigration, type CompareOp, type CompilePredIrToSqlOptions, type CompiledStatement, type DefinitionFile, type DefinitionSource, type DestructiveStatement, type DiffOptions, type DrizzleEntities, IMPORT_CONFLICT_MODES, type ImportConflictMode, type ImportPlan, type ImportPlanResult, type ImportSpec, type IndexDefinition, type JournalEntry, type LinkDefinition, type LoadedNamespace, MIGRATIONS_DIRNAME, type MigrationJournal, type MigrationWorkspace, type NamespaceCapabilities, type NamespaceConfig, type NamespaceDefinition, type NamespaceSnapshot, ORM_MIGRATION_EXPORT_FILE, ORM_MIGRATION_EXPORT_MAX_BYTES, type Operand, OrmDefinitionError, type OrmMigrationExport, type ParsedPredicate, type PlannedMigration, PredIr, type Predicate, type PredicateColumnTypes, PredicateParseError, ROLES_CLAIM_KEY, type RebaseEntry, type RebaseEntryInput, type RebaseNoopOptions, STATEMENT_KINDS, SYNCED_VIEW_EXECUTION_OWNER_ROLE, type StatementKind, type SyncedBacking, type SyncedColumnType, type SyncedPredicateColumnTypes, type TableFile, TableMetaIr, type ValidatesEntry, type WrittenMigration, actionFunctionName, actionFunctionStatements, actionParamArg, actionParamOrder, actionParamSchema, actionPrepareChecks, actionSchema, actionWriteTargets, actionsInterfaceName, applyMigrationHints, applyMigrationHintsV2, assertSyncedViewDefinitionMatches, buildActionParamsSchema, buildDrizzleEntities, buildDrizzleEntitiesV2, buildNamespaceDefinition, buildRebaseJournalEntry, canonicalizeDefinition, capabilityExpression, castParts, checksumOf, claimExpression, classifyDestructive, columnSchema, columnTypeSchema, compileActionRequires, compileActionStatements, compileNamespace, compilePredIrToSql, compilePredicate, computeDefinitionHash, convertV1DefinitionToCanonical, createOrmMigrationExport, declaredCapabilityKeys, diffCommand, diffStatements, emptyJournal, emptySnapshot, extractNamedParams, generateNamespaceTypes, generateSnapshot, generateSnapshotV2, identifierSchema, importSpecSchema, isFunctionDefault, isOwnedStatement, isOwnedStatementV2, isQualifiedReference, loadCommittedMigrations, loadCommittedTipMigration, loadNamespaceDefinition, migrationName, namespaceConfigSchema, namespaceSchema, normalizeSnapshot, ormMigrationExportSchema, parseCanonicalDefinition, parseDefinitionSources, parseOrmMigrationExport, parsePredicate, parseTableFile, parsedPredicateSchema, pendingKitStatements, pendingKitStatementsV2, planCommittedMigrationV2, planMigration, planMigrationV2, planTableImport, predicateOperands, quoteIdentifier, quoteLiteral, readMigrationSql, readMigrationWorkspace, readSnapshot, rebaseViolations, referencedCapabilities, referencedColumns, renderMigrationSql, renderOrmMigrationExport, rewriteSyncedSourceRelationsInViewQuery, roleExpression, securityStatements, sqlTypeName, stableJson, syncedBackingRevokeStatements, syncedTables, syncedViewDropStatements, syncedViewStatements, tableFileSchema, tableReferenceSchema, typesInterfaceName, validateViewCatalogStatement, verifyRebaseIsNoop, walkPredicate, writeMigration };
|
|
1948
|
+
export { ACTION_REQUIRES_DENIED_SQLSTATE, ACTION_VALIDATES_FAILED_SQLSTATE, AUDIT_ACTIONS, type ActionDefinition, CAPABILITIES_CLAIM_KEY, CLAIMS_SETTING, COLUMN_TYPES, COMPARE_OPS, CanonicalDefinition, type ColumnDefault, type ColumnDefinition, type ColumnType, type CommittedChainEntry, type CommittedMigration, type CompareOp, type CompilePredIrToSqlOptions, type CompiledStatement, type DeclaredSyncedIndex, type DefinitionFile, type DefinitionSource, type DestructiveStatement, type DiffOptions, type DrizzleEntities, IMPORT_CONFLICT_MODES, type ImportConflictMode, type ImportPlan, type ImportPlanResult, type ImportSpec, type IndexDefinition, type JournalEntry, type LinkDefinition, type LoadedNamespace, MIGRATIONS_DIRNAME, type MigrationJournal, type MigrationWorkspace, type NamespaceCapabilities, type NamespaceConfig, type NamespaceDefinition, type NamespaceSnapshot, ORM_MIGRATION_EXPORT_FILE, ORM_MIGRATION_EXPORT_MAX_BYTES, type Operand, OrmDefinitionError, type OrmMigrationExport, type ParsedPredicate, type PlacedSyncedIndex, type PlannedMigration, PredIr, type Predicate, type PredicateColumnTypes, PredicateParseError, ROLES_CLAIM_KEY, type RebaseEntry, type RebaseEntryInput, type RebaseNoopOptions, STATEMENT_KINDS, SYNCED_VIEW_EXECUTION_OWNER_ROLE, type StatementKind, type SyncedBacking, type SyncedColumnType, type SyncedIndexBacking, type SyncedPredicateColumnTypes, type TableFile, TableMetaIr, type ValidatesEntry, type WrittenMigration, actionFunctionName, actionFunctionStatements, actionParamArg, actionParamOrder, actionParamSchema, actionPrepareChecks, actionSchema, actionWriteTargets, actionsInterfaceName, applyMigrationHints, applyMigrationHintsV2, assertSyncedViewDefinitionMatches, buildActionParamsSchema, buildDrizzleEntities, buildDrizzleEntitiesV2, buildNamespaceDefinition, buildRebaseJournalEntry, canonicalizeDefinition, capabilityExpression, castParts, checksumOf, claimExpression, classifyDestructive, columnSchema, columnTypeSchema, compileActionRequires, compileActionStatements, compileNamespace, compilePredIrToSql, compilePredicate, computeDefinitionHash, convertV1DefinitionToCanonical, createOrmMigrationExport, declaredCapabilityKeys, declaredSyncedIndexes, diffCommand, diffStatements, emptyJournal, emptySnapshot, extractNamedParams, generateNamespaceTypes, generateSnapshot, generateSnapshotV2, identifierSchema, importSpecSchema, isFunctionDefault, isOwnedStatement, isOwnedStatementV2, isQualifiedReference, isSyncedIndexStatement, loadCommittedMigrations, loadCommittedTipMigration, loadNamespaceDefinition, migrationName, namespaceConfigSchema, namespaceSchema, normalizeSnapshot, ormMigrationExportSchema, parseCanonicalDefinition, parseDefinitionSources, parseOrmMigrationExport, parsePredicate, parseTableFile, parsedPredicateSchema, pendingKitStatements, pendingKitStatementsV2, pendingSyncedIndexStatements, planCommittedMigrationV2, planMigration, planMigrationV2, planTableImport, predicateOperands, quoteIdentifier, quoteLiteral, readMigrationSql, readMigrationWorkspace, readSnapshot, rebaseViolations, referencedCapabilities, referencedColumns, renderMigrationSql, renderOrmMigrationExport, rewriteSyncedSourceRelationsInViewQuery, roleExpression, securityStatements, sqlTypeName, stableJson, syncedBackingRevokeStatements, syncedIndexStatements, syncedTables, syncedViewDropStatements, syncedViewStatements, tableFileSchema, tableReferenceSchema, typesInterfaceName, validateViewCatalogStatement, verifyRebaseIsNoop, walkPredicate, writeMigration };
|