@tailor-platform/sdk 2.32.0 → 2.33.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/{application-D0xNJbag.mjs → application-B9_NHiUC.mjs} +40 -32
  3. package/dist/application-B9_NHiUC.mjs.map +1 -0
  4. package/dist/application-Bet1K5C4.mjs +1 -0
  5. package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -0
  6. package/dist/cli/lib.mjs +1 -1
  7. package/dist/cli/main.mjs +44 -33
  8. package/dist/cli/main.mjs.map +1 -1
  9. package/dist/cli/services/resolver/service.d.mts +1 -0
  10. package/dist/cli/shared/client.d.mts +52 -1
  11. package/dist/cli/ts-hook.d.mts +0 -2
  12. package/dist/cli/ts-hook.mjs +0 -113
  13. package/dist/completion/zsh-worker.zsh +25 -5
  14. package/dist/configure/services/staticwebsite/index.d.mts +6 -1
  15. package/dist/{kysely-type-CBwsdx16.mjs → kysely-type-DxyIWXc6.mjs} +3 -3
  16. package/dist/kysely-type-DxyIWXc6.mjs.map +1 -0
  17. package/dist/manager-DTRhIupk.mjs +2 -0
  18. package/dist/manager-DTRhIupk.mjs.map +1 -0
  19. package/dist/plugin/builtin/enum-constants/index.mjs +2 -2
  20. package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -1
  21. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  22. package/dist/plugin/index.mjs +1 -1
  23. package/dist/plugin/types.d.mts +3 -0
  24. package/dist/register-ts-hook-Dp9reSRG.mjs +1053 -0
  25. package/dist/register-ts-hook-Dp9reSRG.mjs.map +1 -0
  26. package/dist/repl-editor-DkrCZmmg.mjs +2 -0
  27. package/dist/repl-editor-DkrCZmmg.mjs.map +1 -0
  28. package/dist/service_pb-6EkMfdOb.mjs +2 -0
  29. package/dist/service_pb-6EkMfdOb.mjs.map +1 -0
  30. package/dist/service_pb-CsJKokDl.mjs +1 -0
  31. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +5 -2
  32. package/dist/tailor-proto/src/tailor/v1/security_pb.d.mts +213 -0
  33. package/dist/tailor-proto/src/tailor/v1/security_resource_pb.d.mts +301 -0
  34. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +200 -8
  35. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +201 -1
  36. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +88 -1
  37. package/dist/types/staticwebsite.generated.d.mts +9 -1
  38. package/dist/vitest/index.d.mts +2 -2
  39. package/dist/vitest/index.mjs +1 -1
  40. package/dist/vitest/index.mjs.map +1 -1
  41. package/dist/vitest/pglite-kysely.d.mts +19 -0
  42. package/dist/{workspace_resource_pb-CaoM2npP.mjs → workspace_resource_pb-C4CkoYww.mjs} +2 -2
  43. package/dist/workspace_resource_pb-C4CkoYww.mjs.map +1 -0
  44. package/docs/plugin/custom.md +34 -0
  45. package/docs/plugin/index.md +1 -0
  46. package/docs/services/staticwebsite.md +31 -1
  47. package/docs/services/tailordb/migration.md +33 -10
  48. package/package.json +5 -5
  49. package/dist/application-C2bPmmbh.mjs +0 -1
  50. package/dist/application-D0xNJbag.mjs.map +0 -1
  51. package/dist/kysely-type-CBwsdx16.mjs.map +0 -1
  52. package/dist/manager-Bk-7vkwd.mjs +0 -2
  53. package/dist/manager-Bk-7vkwd.mjs.map +0 -1
  54. package/dist/register-ts-hook-_dHIREtU.mjs +0 -1050
  55. package/dist/register-ts-hook-_dHIREtU.mjs.map +0 -1
  56. package/dist/repl-editor-DGJBfIt1.mjs +0 -2
  57. package/dist/repl-editor-DGJBfIt1.mjs.map +0 -1
  58. package/dist/service_pb-Bbu2QSIr.mjs +0 -2
  59. package/dist/service_pb-Bbu2QSIr.mjs.map +0 -1
  60. package/dist/service_pb-urxAIYHT.mjs +0 -1
  61. package/dist/workspace_resource_pb-CaoM2npP.mjs.map +0 -1
@@ -82,5 +82,24 @@ export interface CreateKyselyPGliteOptions {
82
82
  * ```
83
83
  */
84
84
  export declare function createKyselyPGlite<DB = Record<string, never>>(client: PGliteClient, options?: CreateKyselyPGliteOptions): Kysely<DB>;
85
+ /**
86
+ * Run `prepare` with relations unchecked, so a test can stage rows that predate a relation (for
87
+ * example rows whose parent does not exist, which the migration under test repairs). The setting
88
+ * from before the first call is restored when the last `prepareFixtures` on the client returns or
89
+ * throws, so the script under test still runs against checked relations, and calls that are nested
90
+ * or overlap keep relations unchecked until all of them are done. NOT NULL, UNIQUE, and CHECK
91
+ * constraints stay enforced.
92
+ * @param client - The PGlite instance the rows are written to
93
+ * @param prepare - Writes the rows, for example with the Kysely instance of the same client
94
+ * @returns Whatever `prepare` returns
95
+ * @example
96
+ * ```typescript
97
+ * await prepareFixtures(pglite, async () => {
98
+ * await db.insertInto("Order").values([{ ownerID: crypto.randomUUID() }]).execute();
99
+ * });
100
+ * await db.transaction().execute((trx) => main(trx));
101
+ * ```
102
+ */
103
+ export declare function prepareFixtures<T>(client: PGliteClient, prepare: () => Promise<T>): Promise<T>;
85
104
  //#endregion
86
105
  export {};