@sequenceholdings/orm 2.1.0 → 2.2.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 +40 -1
- package/dist/authoring.cjs +1619 -121
- package/dist/authoring.cjs.map +1 -1
- package/dist/authoring.d.cts +252 -8
- package/dist/authoring.d.ts +252 -8
- package/dist/authoring.js +1607 -123
- package/dist/authoring.js.map +1 -1
- package/dist/canonical.cjs +713 -41
- package/dist/canonical.cjs.map +1 -1
- package/dist/canonical.d.cts +1520 -51
- package/dist/canonical.d.ts +1520 -51
- package/dist/canonical.js +693 -42
- package/dist/canonical.js.map +1 -1
- package/dist/cli.cjs +7103 -3901
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +7104 -3902
- package/dist/cli.js.map +1 -1
- package/dist/client.cjs +122 -40
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +85 -25
- package/dist/client.d.ts +85 -25
- package/dist/client.js +119 -41
- package/dist/client.js.map +1 -1
- package/dist/compiler.cjs +2464 -450
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +79 -4
- package/dist/compiler.d.ts +79 -4
- package/dist/compiler.js +2457 -451
- package/dist/compiler.js.map +1 -1
- package/dist/constants-C6EG6Wq7.d.cts +99 -0
- package/dist/constants-C6EG6Wq7.d.ts +99 -0
- package/dist/definition-DjfC7Lll.d.cts +91 -0
- package/dist/definition-DjfC7Lll.d.ts +91 -0
- package/dist/dynamic-input.cjs +2 -1
- package/dist/dynamic-input.cjs.map +1 -1
- package/dist/dynamic-input.d.cts +9 -1
- package/dist/dynamic-input.d.ts +9 -1
- package/dist/dynamic-input.js +2 -1
- package/dist/dynamic-input.js.map +1 -1
- package/dist/index.cjs +2656 -418
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +693 -116
- package/dist/index.d.ts +693 -116
- package/dist/index.js +2622 -420
- package/dist/index.js.map +1 -1
- package/dist/ir.cjs +811 -48
- package/dist/ir.cjs.map +1 -1
- package/dist/ir.d.cts +670 -27
- package/dist/ir.d.ts +670 -27
- package/dist/ir.js +802 -49
- package/dist/ir.js.map +1 -1
- package/dist/{naming-DCn94LJ4.d.ts → naming-CPfx7EfF.d.ts} +14 -1
- package/dist/{naming-DPglwzkB.d.cts → naming-CU9ThP_E.d.cts} +14 -1
- package/dist/policy-1iZbGnZZ.d.cts +24 -0
- package/dist/policy-1iZbGnZZ.d.ts +24 -0
- package/dist/predicate-v2.cjs +804 -51
- package/dist/predicate-v2.cjs.map +1 -1
- package/dist/predicate-v2.d.cts +2 -1
- package/dist/predicate-v2.d.ts +2 -1
- package/dist/predicate-v2.js +804 -51
- package/dist/predicate-v2.js.map +1 -1
- package/dist/sdl.cjs +1014 -75
- package/dist/sdl.cjs.map +1 -1
- package/dist/sdl.d.cts +14 -3
- package/dist/sdl.d.ts +14 -3
- package/dist/sdl.js +1012 -76
- package/dist/sdl.js.map +1 -1
- package/package.json +13 -7
- package/src/codegen-gql/server-fns.cjs +2 -2
- package/templates/orm-namespace/AGENTS.md +10 -0
- package/templates/orm-namespace/CLAUDE.md +1 -82
- package/templates/orm-namespace/codegen.preset.d.cts +7 -0
- package/templates/orm-namespace/codegen.ts +2 -1
- package/templates/orm-namespace/graphql/example/queries.ts +4 -3
- package/templates/orm-namespace/package.json +2 -1
- package/templates/orm-namespace/schema/tables.ts +3 -2
- package/templates/orm-namespace/sequence.config.ts +7 -11
package/dist/sdl.d.cts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { B as BUCKETABLE_COLUMN_TYPES, C as CUSTOM_SCALARS, D as DATE_BUCKET_ENUM, N as NUMERICISH_COLUMN_TYPES, O as ORDER_BY_ENUM,
|
|
2
|
-
import { CanonicalDefinition } from './canonical.cjs';
|
|
1
|
+
export { B as BUCKETABLE_COLUMN_TYPES, C as CELL_TYPENAMES, a as CUSTOM_SCALARS, D as DATE_BUCKET_ENUM, N as NUMERICISH_COLUMN_TYPES, O as ORDER_BY_ENUM, b as ORDER_BY_ENUM_VALUES, P as PLATFORM_USER_TYPENAME, T as TableNames, V as VARIABLE_SCALAR_NAMES, c as camelCase, d as cellsTypename, e as columnTypeForScalar, f as comparisonExpName, g as enumTypeName, h as fieldName, i as graphqlScalarFor, p as pascalCase, t as tableNames, j as typeName } from './naming-CU9ThP_E.cjs';
|
|
2
|
+
import { CanonicalDefinition, CanonicalRelation, CanonicalColumn } from './canonical.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import './constants-C6EG6Wq7.cjs';
|
|
5
|
+
import './policy-1iZbGnZZ.cjs';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* SDL generation (plan §3): pure `(canonical) → string`, offline and
|
|
@@ -28,8 +30,17 @@ interface GenerateSdlOptions {
|
|
|
28
30
|
* Postgres `columnName`.
|
|
29
31
|
*/
|
|
30
32
|
pinnedColumns?: Record<string, string[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Declare `_like`/`_ilike` on String only, as @sequenceholdings/orm 2.1.x
|
|
35
|
+
* generated it, before integer and uuid columns took pattern filters. Atlas
|
|
36
|
+
* regenerates this shape only to recognize a schema.graphql pushed by a
|
|
37
|
+
* released CLI; operations always compile against the default shape.
|
|
38
|
+
*/
|
|
39
|
+
stringOnlyPatternOperators?: boolean;
|
|
31
40
|
}
|
|
32
41
|
declare function generateSdl(canonical: CanonicalDefinition, options?: GenerateSdlOptions): string;
|
|
42
|
+
/** Columns a resolved-table mutation may write: authored data columns, never the view's system columns. */
|
|
43
|
+
declare function resolvedWritableColumns(table: CanonicalRelation): CanonicalColumn[];
|
|
33
44
|
|
|
34
45
|
declare const MANIFEST_VERSION: 1;
|
|
35
46
|
declare const manifestRequiresSchema: z.ZodNullable<z.ZodObject<{
|
|
@@ -91,4 +102,4 @@ declare function buildOperationsManifest({ schemaHash, operations, }: {
|
|
|
91
102
|
/** Returns the TypeScript SOURCE of the consumer's `typePolicies.gen.ts`. */
|
|
92
103
|
declare function generateTypePolicies(canonical: CanonicalDefinition): string;
|
|
93
104
|
|
|
94
|
-
export { type GenerateSdlOptions, MANIFEST_VERSION, type ManifestOperation, type ManifestOperationInput, type OperationsManifest, SdlGenerationError, buildOperationsManifest, generateSdl, generateTypePolicies, manifestOperationSchema, manifestRequiresSchema, operationsManifestSchema };
|
|
105
|
+
export { type GenerateSdlOptions, MANIFEST_VERSION, type ManifestOperation, type ManifestOperationInput, type OperationsManifest, SdlGenerationError, buildOperationsManifest, generateSdl, generateTypePolicies, manifestOperationSchema, manifestRequiresSchema, operationsManifestSchema, resolvedWritableColumns };
|
package/dist/sdl.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { B as BUCKETABLE_COLUMN_TYPES, C as CUSTOM_SCALARS, D as DATE_BUCKET_ENUM, N as NUMERICISH_COLUMN_TYPES, O as ORDER_BY_ENUM,
|
|
2
|
-
import { CanonicalDefinition } from './canonical.js';
|
|
1
|
+
export { B as BUCKETABLE_COLUMN_TYPES, C as CELL_TYPENAMES, a as CUSTOM_SCALARS, D as DATE_BUCKET_ENUM, N as NUMERICISH_COLUMN_TYPES, O as ORDER_BY_ENUM, b as ORDER_BY_ENUM_VALUES, P as PLATFORM_USER_TYPENAME, T as TableNames, V as VARIABLE_SCALAR_NAMES, c as camelCase, d as cellsTypename, e as columnTypeForScalar, f as comparisonExpName, g as enumTypeName, h as fieldName, i as graphqlScalarFor, p as pascalCase, t as tableNames, j as typeName } from './naming-CPfx7EfF.js';
|
|
2
|
+
import { CanonicalDefinition, CanonicalRelation, CanonicalColumn } from './canonical.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import './constants-C6EG6Wq7.js';
|
|
5
|
+
import './policy-1iZbGnZZ.js';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* SDL generation (plan §3): pure `(canonical) → string`, offline and
|
|
@@ -28,8 +30,17 @@ interface GenerateSdlOptions {
|
|
|
28
30
|
* Postgres `columnName`.
|
|
29
31
|
*/
|
|
30
32
|
pinnedColumns?: Record<string, string[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Declare `_like`/`_ilike` on String only, as @sequenceholdings/orm 2.1.x
|
|
35
|
+
* generated it, before integer and uuid columns took pattern filters. Atlas
|
|
36
|
+
* regenerates this shape only to recognize a schema.graphql pushed by a
|
|
37
|
+
* released CLI; operations always compile against the default shape.
|
|
38
|
+
*/
|
|
39
|
+
stringOnlyPatternOperators?: boolean;
|
|
31
40
|
}
|
|
32
41
|
declare function generateSdl(canonical: CanonicalDefinition, options?: GenerateSdlOptions): string;
|
|
42
|
+
/** Columns a resolved-table mutation may write: authored data columns, never the view's system columns. */
|
|
43
|
+
declare function resolvedWritableColumns(table: CanonicalRelation): CanonicalColumn[];
|
|
33
44
|
|
|
34
45
|
declare const MANIFEST_VERSION: 1;
|
|
35
46
|
declare const manifestRequiresSchema: z.ZodNullable<z.ZodObject<{
|
|
@@ -91,4 +102,4 @@ declare function buildOperationsManifest({ schemaHash, operations, }: {
|
|
|
91
102
|
/** Returns the TypeScript SOURCE of the consumer's `typePolicies.gen.ts`. */
|
|
92
103
|
declare function generateTypePolicies(canonical: CanonicalDefinition): string;
|
|
93
104
|
|
|
94
|
-
export { type GenerateSdlOptions, MANIFEST_VERSION, type ManifestOperation, type ManifestOperationInput, type OperationsManifest, SdlGenerationError, buildOperationsManifest, generateSdl, generateTypePolicies, manifestOperationSchema, manifestRequiresSchema, operationsManifestSchema };
|
|
105
|
+
export { type GenerateSdlOptions, MANIFEST_VERSION, type ManifestOperation, type ManifestOperationInput, type OperationsManifest, SdlGenerationError, buildOperationsManifest, generateSdl, generateTypePolicies, manifestOperationSchema, manifestRequiresSchema, operationsManifestSchema, resolvedWritableColumns };
|