@tailor-platform/sdk 2.0.0-next.5 → 2.0.0-next.6
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 +38 -0
- package/dist/{application-Bf8wxOi6.mjs → application-BJXRpQj5.mjs} +190 -1258
- package/dist/application-BJXRpQj5.mjs.map +1 -0
- package/dist/application-BV-AXawv.mjs +3 -0
- package/dist/cli/commands/deploy/deploy.d.mts +8 -3
- package/dist/cli/commands/generate/options.d.mts +0 -1
- package/dist/cli/commands/generate/service.d.mts +1 -1
- package/dist/cli/commands/staticwebsite/deploy.d.mts +19 -0
- package/dist/cli/commands/workspace/create.d.mts +3 -0
- package/dist/cli/commands/workspace/list.d.mts +1 -0
- package/dist/cli/commands/workspace/transform.d.mts +2 -0
- package/dist/cli/index.mjs +776 -1551
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +7 -3
- package/dist/cli/lib.mjs +49 -3
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/shared/config-loader.d.mts +1 -1
- package/dist/cli/shared/readonly-guard.d.mts +25 -0
- package/dist/cli/shared/tailordb-namespaces.d.mts +37 -0
- package/dist/cli/shared/workspace-name.d.mts +1 -0
- package/dist/completion/zsh-worker.zsh +15 -303
- package/dist/configure/index.mjs +7 -6
- package/dist/configure/index.mjs.map +1 -1
- package/dist/configure/services/executor/executor.d.mts +2 -13
- package/dist/configure/services/executor/operation.d.mts +7 -2
- package/dist/configure/services/tailordb/schema.d.mts +1 -7
- package/dist/configure/services/tailordb/types.d.mts +1 -1
- package/dist/configure/services/workflow/execution-policy.d.mts +2 -2
- package/dist/configure/types/type.d.mts +1 -9
- package/dist/{crashreport-D3RjuSYb.mjs → crashreport-0ioNRZ4K.mjs} +1 -1
- package/dist/{crashreport-Cg-pqRJV.mjs → crashreport-CxHne11E.mjs} +4 -3
- package/dist/{crashreport-Cg-pqRJV.mjs.map → crashreport-CxHne11E.mjs.map} +1 -1
- package/dist/errors-DfnF4ibq.mjs +100 -0
- package/dist/errors-DfnF4ibq.mjs.map +1 -0
- package/dist/{globals-BjhJJ2dN.mjs → globals-D-YbJKW-.mjs} +16 -10
- package/dist/globals-D-YbJKW-.mjs.map +1 -0
- package/dist/{logger-BEiZZ3qT.mjs → logger-BwS4ppwO.mjs} +3 -3
- package/dist/logger-BwS4ppwO.mjs.map +1 -0
- package/dist/parser/service/tailordb/type-source.d.mts +10 -0
- package/dist/{register-ts-hook-BhzVkej0.mjs → register-ts-hook-DL31O2W9.mjs} +2623 -1645
- package/dist/register-ts-hook-DL31O2W9.mjs.map +1 -0
- package/dist/{registry-BSbq6SPo.mjs → registry-CC3CbQiF.mjs} +3 -3
- package/dist/registry-CC3CbQiF.mjs.map +1 -0
- package/dist/runtime/field-parse.d.mts +10 -0
- package/dist/runtime/globals.d.mts +5 -2
- package/dist/runtime/index.mjs +1 -1
- package/dist/runtime/workflow.d.mts +70 -10
- package/dist/runtime/workflow.mjs +1 -1
- package/dist/{schema-iCd1ugGp.mjs → schema--xYWRGfe.mjs} +42 -24
- package/dist/schema--xYWRGfe.mjs.map +1 -0
- package/dist/{secret-file-aoNXJmKa.mjs → secret-file-C3J4Gy8r.mjs} +2 -27
- package/dist/secret-file-C3J4Gy8r.mjs.map +1 -0
- package/dist/{secretmanager-Bd45j7an.mjs → secretmanager-IY4UvinW.mjs} +42 -9
- package/dist/secretmanager-IY4UvinW.mjs.map +1 -0
- package/dist/{service-CzZEVrp9.mjs → service-CnHz9rwz.mjs} +34 -12
- package/dist/service-CnHz9rwz.mjs.map +1 -0
- package/dist/{service-DeZeYa06.mjs → service-DaeJlBoH.mjs} +3 -3
- package/dist/{service-DeZeYa06.mjs.map → service-DaeJlBoH.mjs.map} +1 -1
- package/dist/service-nU6ITOHL.mjs +3 -0
- package/dist/service_pb-BoLM0X4K.mjs +167 -0
- package/dist/service_pb-BoLM0X4K.mjs.map +1 -0
- package/dist/{service_pb-DZkfjB_6.mjs → service_pb-r1T7kpJc.mjs} +1 -1
- package/dist/types/executor.generated.d.mts +60 -42
- package/dist/user-agent-Bgsszb5I.mjs +28 -0
- package/dist/user-agent-Bgsszb5I.mjs.map +1 -0
- package/dist/vitest/environment.mjs +1 -1
- package/dist/vitest/index.d.mts +8 -8
- package/dist/vitest/index.mjs +591 -173
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/mock.d.mts +8 -8
- package/dist/vitest/mocks/aigateway.d.mts +14 -4
- package/dist/vitest/mocks/authconnection.d.mts +14 -4
- package/dist/vitest/mocks/file.d.mts +23 -6
- package/dist/vitest/mocks/iconv.d.mts +28 -4
- package/dist/vitest/mocks/idp.d.mts +25 -9
- package/dist/vitest/mocks/secretmanager.d.mts +13 -4
- package/dist/vitest/mocks/tailordb.d.mts +48 -7
- package/dist/vitest/mocks/workflow.d.mts +68 -22
- package/dist/vitest/setup.mjs +2 -2
- package/dist/workflow-9kHGKxF2.mjs +64 -0
- package/dist/workflow-9kHGKxF2.mjs.map +1 -0
- package/dist/{service_pb-Bk7dL-yT.mjs → workspace_resource_pb-Db3fv68L.mjs} +47 -165
- package/dist/workspace_resource_pb-Db3fv68L.mjs.map +1 -0
- package/docs/cli/application.md +61 -15
- package/docs/cli/tailordb.md +8 -140
- package/docs/cli/workspace.md +6 -4
- package/docs/cli-reference.md +11 -8
- package/docs/github-actions.md +8 -0
- package/docs/migration/v2.md +41 -0
- package/docs/runtime.md +5 -6
- package/docs/services/executor.md +5 -0
- package/docs/services/tailordb.md +44 -0
- package/docs/services/workflow.md +2 -2
- package/docs/testing.md +105 -89
- package/package.json +2 -5
- package/dist/application-Bf8wxOi6.mjs.map +0 -1
- package/dist/application-CUkjzfij.mjs +0 -3
- package/dist/cli/erd-viewer-assets/app.js +0 -1424
- package/dist/cli/erd-viewer-assets/index.html +0 -77
- package/dist/cli/erd-viewer-assets/serve.json +0 -13
- package/dist/cli/erd-viewer-assets/styles.css +0 -1036
- package/dist/configure/types/field-runtime.d.mts +0 -16
- package/dist/errors-118wUDRr.mjs +0 -42
- package/dist/errors-118wUDRr.mjs.map +0 -1
- package/dist/globals-BjhJJ2dN.mjs.map +0 -1
- package/dist/logger-BEiZZ3qT.mjs.map +0 -1
- package/dist/register-ts-hook-BhzVkej0.mjs.map +0 -1
- package/dist/registry-BSbq6SPo.mjs.map +0 -1
- package/dist/resource_pb-BRv7AMXK.mjs +0 -49
- package/dist/resource_pb-BRv7AMXK.mjs.map +0 -1
- package/dist/schema-iCd1ugGp.mjs.map +0 -1
- package/dist/secret-file-aoNXJmKa.mjs.map +0 -1
- package/dist/secretmanager-Bd45j7an.mjs.map +0 -1
- package/dist/service-BT0GPd01.mjs +0 -3
- package/dist/service-CzZEVrp9.mjs.map +0 -1
- package/dist/service_pb-Bk7dL-yT.mjs.map +0 -1
- package/dist/workflow-GNuSnsTx.mjs +0 -22
- package/dist/workflow-GNuSnsTx.mjs.map +0 -1
|
@@ -15,12 +15,17 @@ interface DeployOptions {
|
|
|
15
15
|
noValidate?: boolean;
|
|
16
16
|
noCache?: boolean;
|
|
17
17
|
cleanCache?: boolean;
|
|
18
|
+
createWorkspace?: boolean;
|
|
19
|
+
workspaceName?: string;
|
|
20
|
+
workspaceRegion?: string;
|
|
21
|
+
organizationId?: string;
|
|
22
|
+
folderId?: string;
|
|
18
23
|
buildOnly?: boolean;
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
|
-
* Deploy the
|
|
22
|
-
* @param options -
|
|
23
|
-
* @returns
|
|
26
|
+
* Deploy using the programmatic CLI API.
|
|
27
|
+
* @param options - Deploy execution options
|
|
28
|
+
* @returns Deploy result
|
|
24
29
|
*/
|
|
25
30
|
declare function deploy(options?: DeployOptions): Promise<{
|
|
26
31
|
bundledScripts: BundledScripts;
|
|
@@ -8,7 +8,7 @@ import { GenerateOptions } from "./options.mjs";
|
|
|
8
8
|
/**
|
|
9
9
|
* Run code generation using the Tailor configuration.
|
|
10
10
|
* @param options - Generation options
|
|
11
|
-
* @returns Promise that resolves when generation
|
|
11
|
+
* @returns Promise that resolves when generation completes
|
|
12
12
|
*/
|
|
13
13
|
declare function generate(options?: GenerateOptions): Promise<void>;
|
|
14
14
|
//#endregion
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OperatorClient } from "../../shared/client.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/cli/commands/staticwebsite/deploy.d.ts
|
|
4
|
+
type DeployResult = {
|
|
5
|
+
url: string;
|
|
6
|
+
skippedFiles: string[];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Deploy a static website by creating a deployment, uploading files, and publishing it.
|
|
10
|
+
* @param client - Operator client instance
|
|
11
|
+
* @param workspaceId - Workspace ID
|
|
12
|
+
* @param name - Static website name
|
|
13
|
+
* @param distDir - Directory containing static site files
|
|
14
|
+
* @param showProgress - Whether to show upload progress
|
|
15
|
+
* @returns Deployment result with URL and skipped files
|
|
16
|
+
*/
|
|
17
|
+
declare function deployStaticWebsite(client: OperatorClient, workspaceId: string, name: string, distDir: string, showProgress?: boolean): Promise<DeployResult>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { DeployResult, deployStaticWebsite };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import "../../shared/client.mjs";
|
|
1
2
|
import { WorkspaceInfo } from "./transform.mjs";
|
|
3
|
+
import "../../shared/workspace-name.mjs";
|
|
2
4
|
import { z } from "zod";
|
|
3
5
|
//#region src/cli/commands/workspace/create.d.ts
|
|
4
6
|
/**
|
|
@@ -12,6 +14,7 @@ declare const createWorkspaceOptionsSchema: z.ZodObject<{
|
|
|
12
14
|
deleteProtection: z.ZodOptional<z.ZodBoolean>;
|
|
13
15
|
organizationId: z.ZodOptional<z.ZodUUID>;
|
|
14
16
|
folderId: z.ZodOptional<z.ZodUUID>;
|
|
17
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
15
18
|
}, z.core.$strip>;
|
|
16
19
|
type CreateWorkspaceOptions = z.input<typeof createWorkspaceOptionsSchema>;
|
|
17
20
|
/**
|