@sequenceholdings/orm 2.7.1 → 2.8.1
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 +18 -4
- package/dist/authoring.cjs +21 -0
- package/dist/authoring.cjs.map +1 -1
- package/dist/authoring.d.cts +1 -1
- package/dist/authoring.d.ts +1 -1
- package/dist/authoring.js +21 -0
- package/dist/authoring.js.map +1 -1
- package/dist/canonical.d.cts +71 -71
- package/dist/canonical.d.ts +71 -71
- package/dist/cli.cjs +3460 -3337
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +13 -1
- package/dist/cli.d.ts +13 -1
- package/dist/cli.js +3459 -3338
- package/dist/cli.js.map +1 -1
- package/dist/client.cjs +24 -6
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +12 -3
- package/dist/client.d.ts +12 -3
- package/dist/client.js +24 -6
- package/dist/client.js.map +1 -1
- package/dist/compiler.cjs +844 -15
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +12 -2
- package/dist/compiler.d.ts +12 -2
- package/dist/compiler.js +844 -17
- package/dist/compiler.js.map +1 -1
- package/dist/index.cjs +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +57 -57
- package/dist/index.d.ts +57 -57
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/ir.d.cts +72 -72
- package/dist/ir.d.ts +72 -72
- package/dist/sdl.cjs +3 -3
- package/dist/sdl.cjs.map +1 -1
- package/dist/sdl.d.cts +2 -0
- package/dist/sdl.d.ts +2 -0
- package/dist/sdl.js +3 -3
- package/dist/sdl.js.map +1 -1
- package/package.json +1 -1
- package/templates/orm-namespace/graphql/example/queries.ts +52 -5
- package/templates/orm-namespace/schema/tables.ts +5 -2
- package/templates/orm-namespace/sequence.config.ts +6 -4
- package/dist/{definition-DjfC7Lll.d.cts → definition-B99BsOAO.d.cts} +4 -4
- package/dist/{definition-DjfC7Lll.d.ts → definition-B99BsOAO.d.ts} +4 -4
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ seq-studio orm apply . -e <environment-name>
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
`generate` writes `schema.graphql`, `operations.manifest.json`, cache policies,
|
|
41
|
-
|
|
41
|
+
typed operation modules. Generated SDL may contain up to 16 MiB of UTF-8
|
|
42
42
|
text for the complete namespace; individual authored files retain a 1 MiB cap.
|
|
43
43
|
Registration and reviewed migration exports are bounded to 64 MiB including
|
|
44
44
|
canonical metadata, snapshots, documents, and migration statements.
|
|
@@ -127,9 +127,12 @@ seq-studio orm execute GetOpenDeals . \
|
|
|
127
127
|
`variables.json` must contain a JSON object. The platform validates variables,
|
|
128
128
|
operation requirements, and row policies as the signed-in caller.
|
|
129
129
|
|
|
130
|
-
Execute
|
|
131
|
-
`
|
|
132
|
-
|
|
130
|
+
Execute posts to Atlas's `/api/data/v2` endpoint. The hash comes from this
|
|
131
|
+
checkout's `operations.manifest.json`, so when the deployed version hashes the
|
|
132
|
+
operation differently the server answers 404. Execute then reports the local
|
|
133
|
+
and deployed hashes and the deployed version. `seq-studio orm execute
|
|
134
|
+
<namespace> <operation>` runs the deployed version's operation by name without a
|
|
135
|
+
checkout.
|
|
133
136
|
|
|
134
137
|
## Internal synced dependencies
|
|
135
138
|
|
|
@@ -282,3 +285,14 @@ provider to wire a generated client.
|
|
|
282
285
|
Affected namespaces require IR v6, including namespaces that only declare a write policy and have no operations. `orm apply` first checks the authenticated target's `/api/orm/runtime-capabilities` response; a missing or older endpoint blocks registration. The compiler and executor also reject an incompatible IR version. Publish the matching ORM and deploy its runtime before activating these policies. Service identity does not grant namespace access, operation capability, declared data scope or row access by itself.
|
|
283
286
|
|
|
284
287
|
ORM 2.7.0 and downstream Artifact Studio 0.10.0, Managed Functions 0.4.4, Pipeline Spec 0.2.6 and Studio CLI 0.6.6 remain prepared for the separate chain-release workflow and awaiting publication. Their workspace dependencies are pinned to this ORM version when packed; no candidate build constitutes registry evidence.
|
|
288
|
+
|
|
289
|
+
## Default object operations
|
|
290
|
+
|
|
291
|
+
Discover object-specific `GetCustomer`, `ListCustomers`, `CreateCustomer`,
|
|
292
|
+
`UpdateCustomer`, and `DeleteCustomer` contracts through the ORM catalog, then
|
|
293
|
+
execute their current hashes through the existing Data API. Read-only objects
|
|
294
|
+
expose reads; writes retain the existing schema and policy requirements.
|
|
295
|
+
Authored operations with matching names take precedence. No default count or
|
|
296
|
+
link-traversal operation is added. TypeScript wrappers remain deferred.
|
|
297
|
+
|
|
298
|
+
See [default object operations](../../../docs/platform/orm-default-operations.md).
|
package/dist/authoring.cjs
CHANGED
|
@@ -281,6 +281,22 @@ function toPlatformUser(options) {
|
|
|
281
281
|
function isSeqLink(value) {
|
|
282
282
|
return typeof value === "object" && value !== null && value.kind === LINK_BRAND;
|
|
283
283
|
}
|
|
284
|
+
var TABLE_CONFIG_KEYS = /* @__PURE__ */ new Set([
|
|
285
|
+
"displayName",
|
|
286
|
+
"description",
|
|
287
|
+
"renamedFrom",
|
|
288
|
+
"primaryKey",
|
|
289
|
+
"indexes",
|
|
290
|
+
"checks",
|
|
291
|
+
"foreignKeys",
|
|
292
|
+
"links",
|
|
293
|
+
"policies",
|
|
294
|
+
"cowMutations",
|
|
295
|
+
"cellMetadata",
|
|
296
|
+
"cellRevisions",
|
|
297
|
+
"materializes",
|
|
298
|
+
"internal"
|
|
299
|
+
]);
|
|
284
300
|
function isSeqTable(value) {
|
|
285
301
|
return typeof value === "object" && value !== null && value.kind === TABLE_BRAND;
|
|
286
302
|
}
|
|
@@ -295,6 +311,11 @@ function assertIdentifier({ value, what, file, pattern = IDENTIFIER_PATTERN }) {
|
|
|
295
311
|
function defineTable(name2, columns, config = {}) {
|
|
296
312
|
const file = activeAuthoringContext()?.currentFile;
|
|
297
313
|
assertIdentifier({ value: name2, what: "table name", file });
|
|
314
|
+
for (const key of Object.keys(config)) {
|
|
315
|
+
if (!TABLE_CONFIG_KEYS.has(key)) {
|
|
316
|
+
throw new OrmDefinitionError(`table "${name2}": unknown defineTable option "${key}"`, file);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
298
319
|
const entries = Object.entries(columns);
|
|
299
320
|
if (entries.length === 0) {
|
|
300
321
|
throw new OrmDefinitionError(`table "${name2}" declares no columns`, file);
|