@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.
- package/CHANGELOG.md +44 -0
- package/dist/{application-D0xNJbag.mjs → application-B9_NHiUC.mjs} +40 -32
- package/dist/application-B9_NHiUC.mjs.map +1 -0
- package/dist/application-Bet1K5C4.mjs +1 -0
- package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -0
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/main.mjs +44 -33
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/services/resolver/service.d.mts +1 -0
- package/dist/cli/shared/client.d.mts +52 -1
- package/dist/cli/ts-hook.d.mts +0 -2
- package/dist/cli/ts-hook.mjs +0 -113
- package/dist/completion/zsh-worker.zsh +25 -5
- package/dist/configure/services/staticwebsite/index.d.mts +6 -1
- package/dist/{kysely-type-CBwsdx16.mjs → kysely-type-DxyIWXc6.mjs} +3 -3
- package/dist/kysely-type-DxyIWXc6.mjs.map +1 -0
- package/dist/manager-DTRhIupk.mjs +2 -0
- package/dist/manager-DTRhIupk.mjs.map +1 -0
- package/dist/plugin/builtin/enum-constants/index.mjs +2 -2
- package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/index.mjs +1 -1
- package/dist/plugin/types.d.mts +3 -0
- package/dist/register-ts-hook-Dp9reSRG.mjs +1053 -0
- package/dist/register-ts-hook-Dp9reSRG.mjs.map +1 -0
- package/dist/repl-editor-DkrCZmmg.mjs +2 -0
- package/dist/repl-editor-DkrCZmmg.mjs.map +1 -0
- package/dist/service_pb-6EkMfdOb.mjs +2 -0
- package/dist/service_pb-6EkMfdOb.mjs.map +1 -0
- package/dist/service_pb-CsJKokDl.mjs +1 -0
- package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +5 -2
- package/dist/tailor-proto/src/tailor/v1/security_pb.d.mts +213 -0
- package/dist/tailor-proto/src/tailor/v1/security_resource_pb.d.mts +301 -0
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +200 -8
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +201 -1
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +88 -1
- package/dist/types/staticwebsite.generated.d.mts +9 -1
- package/dist/vitest/index.d.mts +2 -2
- package/dist/vitest/index.mjs +1 -1
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/pglite-kysely.d.mts +19 -0
- package/dist/{workspace_resource_pb-CaoM2npP.mjs → workspace_resource_pb-C4CkoYww.mjs} +2 -2
- package/dist/workspace_resource_pb-C4CkoYww.mjs.map +1 -0
- package/docs/plugin/custom.md +34 -0
- package/docs/plugin/index.md +1 -0
- package/docs/services/staticwebsite.md +31 -1
- package/docs/services/tailordb/migration.md +33 -10
- package/package.json +5 -5
- package/dist/application-C2bPmmbh.mjs +0 -1
- package/dist/application-D0xNJbag.mjs.map +0 -1
- package/dist/kysely-type-CBwsdx16.mjs.map +0 -1
- package/dist/manager-Bk-7vkwd.mjs +0 -2
- package/dist/manager-Bk-7vkwd.mjs.map +0 -1
- package/dist/register-ts-hook-_dHIREtU.mjs +0 -1050
- package/dist/register-ts-hook-_dHIREtU.mjs.map +0 -1
- package/dist/repl-editor-DGJBfIt1.mjs +0 -2
- package/dist/repl-editor-DGJBfIt1.mjs.map +0 -1
- package/dist/service_pb-Bbu2QSIr.mjs +0 -2
- package/dist/service_pb-Bbu2QSIr.mjs.map +0 -1
- package/dist/service_pb-urxAIYHT.mjs +0 -1
- 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 {};
|