@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.
Files changed (47) hide show
  1. package/README.md +18 -4
  2. package/dist/authoring.cjs +21 -0
  3. package/dist/authoring.cjs.map +1 -1
  4. package/dist/authoring.d.cts +1 -1
  5. package/dist/authoring.d.ts +1 -1
  6. package/dist/authoring.js +21 -0
  7. package/dist/authoring.js.map +1 -1
  8. package/dist/canonical.d.cts +71 -71
  9. package/dist/canonical.d.ts +71 -71
  10. package/dist/cli.cjs +3460 -3337
  11. package/dist/cli.cjs.map +1 -1
  12. package/dist/cli.d.cts +13 -1
  13. package/dist/cli.d.ts +13 -1
  14. package/dist/cli.js +3459 -3338
  15. package/dist/cli.js.map +1 -1
  16. package/dist/client.cjs +24 -6
  17. package/dist/client.cjs.map +1 -1
  18. package/dist/client.d.cts +12 -3
  19. package/dist/client.d.ts +12 -3
  20. package/dist/client.js +24 -6
  21. package/dist/client.js.map +1 -1
  22. package/dist/compiler.cjs +844 -15
  23. package/dist/compiler.cjs.map +1 -1
  24. package/dist/compiler.d.cts +12 -2
  25. package/dist/compiler.d.ts +12 -2
  26. package/dist/compiler.js +844 -17
  27. package/dist/compiler.js.map +1 -1
  28. package/dist/index.cjs +21 -0
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.cts +57 -57
  31. package/dist/index.d.ts +57 -57
  32. package/dist/index.js +21 -0
  33. package/dist/index.js.map +1 -1
  34. package/dist/ir.d.cts +72 -72
  35. package/dist/ir.d.ts +72 -72
  36. package/dist/sdl.cjs +3 -3
  37. package/dist/sdl.cjs.map +1 -1
  38. package/dist/sdl.d.cts +2 -0
  39. package/dist/sdl.d.ts +2 -0
  40. package/dist/sdl.js +3 -3
  41. package/dist/sdl.js.map +1 -1
  42. package/package.json +1 -1
  43. package/templates/orm-namespace/graphql/example/queries.ts +52 -5
  44. package/templates/orm-namespace/schema/tables.ts +5 -2
  45. package/templates/orm-namespace/sequence.config.ts +6 -4
  46. package/dist/{definition-DjfC7Lll.d.cts → definition-B99BsOAO.d.cts} +4 -4
  47. package/dist/{definition-DjfC7Lll.d.ts → definition-B99BsOAO.d.ts} +4 -4
package/dist/cli.d.cts CHANGED
@@ -12,5 +12,17 @@ type TokenProvider = () => Promise<string | null>;
12
12
  /** Hand the CLI a refreshing token source (used by the seq-studio delegate). */
13
13
  declare function setTokenProvider(provider: TokenProvider): void;
14
14
  declare function runCli(argv: readonly string[]): Promise<number>;
15
+ interface ApplyWait {
16
+ wait: boolean;
17
+ timeoutMs: number;
18
+ }
19
+ /** `--no-wait` and `--timeout <n>[s|m|h]` (bare numbers are seconds). */
20
+ declare function parseApplyWait(rest: readonly string[]): ApplyWait;
21
+ /**
22
+ * Control-plane routes answer `{detail}`; the data plane answers a GraphQL
23
+ * envelope `{errors: [{message, extensions: {code, details?}}]}`, whose
24
+ * details name the variable, column, constraint, or requirement at fault.
25
+ */
26
+ declare function errorDetail(payload: unknown): string | null;
15
27
 
16
- export { BASE_URL_ENV, ORM_MODULE_PATH_ENV, TOKEN_ENV, runCli, setTokenProvider };
28
+ export { BASE_URL_ENV, ORM_MODULE_PATH_ENV, TOKEN_ENV, errorDetail, parseApplyWait, runCli, setTokenProvider };
package/dist/cli.d.ts CHANGED
@@ -12,5 +12,17 @@ type TokenProvider = () => Promise<string | null>;
12
12
  /** Hand the CLI a refreshing token source (used by the seq-studio delegate). */
13
13
  declare function setTokenProvider(provider: TokenProvider): void;
14
14
  declare function runCli(argv: readonly string[]): Promise<number>;
15
+ interface ApplyWait {
16
+ wait: boolean;
17
+ timeoutMs: number;
18
+ }
19
+ /** `--no-wait` and `--timeout <n>[s|m|h]` (bare numbers are seconds). */
20
+ declare function parseApplyWait(rest: readonly string[]): ApplyWait;
21
+ /**
22
+ * Control-plane routes answer `{detail}`; the data plane answers a GraphQL
23
+ * envelope `{errors: [{message, extensions: {code, details?}}]}`, whose
24
+ * details name the variable, column, constraint, or requirement at fault.
25
+ */
26
+ declare function errorDetail(payload: unknown): string | null;
15
27
 
16
- export { BASE_URL_ENV, ORM_MODULE_PATH_ENV, TOKEN_ENV, runCli, setTokenProvider };
28
+ export { BASE_URL_ENV, ORM_MODULE_PATH_ENV, TOKEN_ENV, errorDetail, parseApplyWait, runCli, setTokenProvider };