@sequenceholdings/orm 0.1.0 → 0.1.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.
Files changed (63) hide show
  1. package/README.md +1 -1
  2. package/dist/authoring.cjs +794 -0
  3. package/dist/authoring.cjs.map +1 -0
  4. package/dist/authoring.d.cts +274 -0
  5. package/dist/authoring.d.ts +274 -0
  6. package/dist/authoring.js +763 -0
  7. package/dist/authoring.js.map +1 -0
  8. package/dist/canonical.cjs +146 -0
  9. package/dist/canonical.cjs.map +1 -0
  10. package/dist/canonical.d.cts +369 -0
  11. package/dist/canonical.d.ts +369 -0
  12. package/dist/canonical.js +131 -0
  13. package/dist/canonical.js.map +1 -0
  14. package/dist/cli.cjs +6208 -1693
  15. package/dist/cli.cjs.map +1 -1
  16. package/dist/cli.d.cts +8 -1
  17. package/dist/cli.d.ts +8 -1
  18. package/dist/cli.js +6262 -1749
  19. package/dist/cli.js.map +1 -1
  20. package/dist/client.cjs +120 -0
  21. package/dist/client.cjs.map +1 -1
  22. package/dist/client.d.cts +74 -2
  23. package/dist/client.d.ts +74 -2
  24. package/dist/client.js +116 -1
  25. package/dist/client.js.map +1 -1
  26. package/dist/compiler.cjs +3001 -0
  27. package/dist/compiler.cjs.map +1 -0
  28. package/dist/compiler.d.cts +581 -0
  29. package/dist/compiler.d.ts +581 -0
  30. package/dist/compiler.js +2947 -0
  31. package/dist/compiler.js.map +1 -0
  32. package/dist/index.cjs +1730 -327
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.d.cts +126 -56
  35. package/dist/index.d.ts +126 -56
  36. package/dist/index.js +1643 -324
  37. package/dist/index.js.map +1 -1
  38. package/dist/ir.cjs +407 -0
  39. package/dist/ir.cjs.map +1 -0
  40. package/dist/ir.d.cts +1179 -0
  41. package/dist/ir.d.ts +1179 -0
  42. package/dist/ir.js +388 -0
  43. package/dist/ir.js.map +1 -0
  44. package/dist/naming-CTvWSRTf.d.ts +79 -0
  45. package/dist/naming-DRyinU4u.d.cts +79 -0
  46. package/dist/sdl.cjs +833 -0
  47. package/dist/sdl.cjs.map +1 -0
  48. package/dist/sdl.d.cts +96 -0
  49. package/dist/sdl.d.ts +96 -0
  50. package/dist/sdl.js +809 -0
  51. package/dist/sdl.js.map +1 -0
  52. package/package.json +36 -3
  53. package/src/codegen-gql/apollo-hooks.cjs +98 -0
  54. package/src/codegen-gql/server-fns.cjs +101 -0
  55. package/templates/README.md +13 -0
  56. package/templates/orm-namespace/CLAUDE.md +81 -0
  57. package/templates/orm-namespace/codegen.ts +22 -0
  58. package/templates/orm-namespace/gitignore +5 -0
  59. package/templates/orm-namespace/graphql/example/queries.ts +56 -0
  60. package/templates/orm-namespace/package.json +24 -0
  61. package/templates/orm-namespace/schema/tables.ts +71 -0
  62. package/templates/orm-namespace/sequence.config.ts +32 -0
  63. package/templates/orm-namespace/tsconfig.json +15 -0
package/dist/cli.d.cts CHANGED
@@ -1,9 +1,16 @@
1
1
  /** Set by the seq-studio delegate; direct users export them. */
2
2
  declare const BASE_URL_ENV = "SEQUENCE_ORM_BASE_URL";
3
3
  declare const TOKEN_ENV = "SEQUENCE_ORM_TOKEN";
4
+ /**
5
+ * Test/dev hook mirroring `LoadNamespaceOptions.ormModulePath`: when set, bare
6
+ * `'@sequenceholdings/orm'` imports in consumer files resolve to this path
7
+ * (jiti alias). Production leaves it unset — the consumer's own installed
8
+ * package resolves naturally.
9
+ */
10
+ declare const ORM_MODULE_PATH_ENV = "SEQUENCE_ORM_MODULE_PATH";
4
11
  type TokenProvider = () => Promise<string | null>;
5
12
  /** Hand the CLI a refreshing token source (used by the seq-studio delegate). */
6
13
  declare function setTokenProvider(provider: TokenProvider): void;
7
14
  declare function runCli(argv: readonly string[]): Promise<number>;
8
15
 
9
- export { BASE_URL_ENV, TOKEN_ENV, runCli, setTokenProvider };
16
+ export { BASE_URL_ENV, ORM_MODULE_PATH_ENV, TOKEN_ENV, runCli, setTokenProvider };
package/dist/cli.d.ts CHANGED
@@ -1,9 +1,16 @@
1
1
  /** Set by the seq-studio delegate; direct users export them. */
2
2
  declare const BASE_URL_ENV = "SEQUENCE_ORM_BASE_URL";
3
3
  declare const TOKEN_ENV = "SEQUENCE_ORM_TOKEN";
4
+ /**
5
+ * Test/dev hook mirroring `LoadNamespaceOptions.ormModulePath`: when set, bare
6
+ * `'@sequenceholdings/orm'` imports in consumer files resolve to this path
7
+ * (jiti alias). Production leaves it unset — the consumer's own installed
8
+ * package resolves naturally.
9
+ */
10
+ declare const ORM_MODULE_PATH_ENV = "SEQUENCE_ORM_MODULE_PATH";
4
11
  type TokenProvider = () => Promise<string | null>;
5
12
  /** Hand the CLI a refreshing token source (used by the seq-studio delegate). */
6
13
  declare function setTokenProvider(provider: TokenProvider): void;
7
14
  declare function runCli(argv: readonly string[]): Promise<number>;
8
15
 
9
- export { BASE_URL_ENV, TOKEN_ENV, runCli, setTokenProvider };
16
+ export { BASE_URL_ENV, ORM_MODULE_PATH_ENV, TOKEN_ENV, runCli, setTokenProvider };