@tailor-platform/sdk 2.0.0-next.8 → 2.0.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 +631 -0
- package/dist/{application-GzW98_Xr.mjs → application-CM6hKnSK.mjs} +489 -118
- package/dist/application-CM6hKnSK.mjs.map +1 -0
- package/dist/application-CXNaUNhv.mjs +3 -0
- package/dist/cli/commands/deploy/aigateway.d.mts +2 -2
- package/dist/cli/commands/deploy/application.d.mts +2 -2
- package/dist/cli/commands/deploy/auth.d.mts +2 -2
- package/dist/cli/commands/deploy/deploy.d.mts +1 -0
- package/dist/cli/commands/deploy/executor.d.mts +2 -2
- package/dist/cli/commands/deploy/function-registry.d.mts +1 -2
- package/dist/cli/commands/deploy/idp.d.mts +2 -2
- package/dist/cli/commands/deploy/label.d.mts +2 -0
- package/dist/cli/commands/deploy/resolver.d.mts +2 -2
- package/dist/cli/commands/deploy/secret-manager.d.mts +1 -1
- package/dist/cli/commands/deploy/staticwebsite.d.mts +2 -2
- package/dist/cli/commands/deploy/tailordb/index.d.mts +4 -2
- package/dist/cli/commands/deploy/types.d.mts +2 -1
- package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +1 -2
- package/dist/cli/commands/deploy/workflow.d.mts +2 -2
- package/dist/cli/commands/executor/get.d.mts +1 -10
- package/dist/cli/commands/executor/jobs.d.mts +1 -38
- package/dist/cli/commands/executor/trigger.d.mts +1 -11
- package/dist/cli/commands/generate/seed/bundler.d.mts +2 -1
- package/dist/cli/commands/tailordb/migrate/bundler.d.mts +3 -2
- package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +11 -1
- package/dist/cli/commands/tailordb/migrate/schema-checks.d.mts +5 -0
- package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +1 -1
- package/dist/cli/commands/workflow/executions.d.mts +1 -13
- package/dist/cli/commands/workflow/get.d.mts +1 -10
- package/dist/cli/commands/workflow/start.d.mts +2 -14
- package/dist/cli/index.mjs +12 -6552
- package/dist/cli/lib.d.mts +14 -15
- package/dist/cli/lib.mjs +203 -46
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/{index.d.mts → main.d.mts} +1 -1
- package/dist/cli/main.mjs +6777 -0
- package/dist/cli/main.mjs.map +1 -0
- package/dist/cli/services/http-adapter/bundler.d.mts +1 -0
- package/dist/cli/services/workflow/bundler.d.mts +2 -1
- package/dist/cli/shared/client.d.mts +28 -3
- package/dist/cli/shared/config-loader.d.mts +11 -4
- package/dist/cli/shared/error-json.d.mts +23 -0
- package/dist/cli/shared/script-executor.d.mts +6 -3
- package/dist/cli/shared/seed-chunker.d.mts +2 -7
- package/dist/cli/shared/seed-context.d.mts +49 -0
- package/dist/cli/shared/tailordb-namespaces.d.mts +7 -4
- package/dist/cli/shared/tsconfig-paths-plugin.d.mts +2 -0
- package/dist/cli/shared/type-generator.d.mts +4 -3
- package/dist/completion/zsh-worker.zsh +85 -22
- package/dist/configure/config/types.d.mts +29 -4
- package/dist/configure/index.d.mts +4 -3
- package/dist/configure/index.mjs +183 -6
- package/dist/configure/index.mjs.map +1 -1
- package/dist/configure/services/executor/index.d.mts +2 -2
- package/dist/configure/services/executor/trigger/event.d.mts +245 -2
- package/dist/configure/services/executor/trigger/index.d.mts +3 -3
- package/dist/configure/services/idp/index.d.mts +2 -2
- package/dist/configure/services/idp/permission.d.mts +1 -16
- package/dist/configure/services/idp/types.d.mts +5 -1
- package/dist/configure/services/index.d.mts +4 -3
- package/dist/configure/services/resolver/index.d.mts +2 -1
- package/dist/configure/services/resolver/permission.d.mts +64 -0
- package/dist/configure/services/resolver/resolver.d.mts +14 -2
- package/dist/configure/services/tailordb/index.d.mts +0 -1
- package/dist/configure/services/tailordb/permission.d.mts +1 -16
- package/dist/configure/services/workflow/execution-policy.d.mts +3 -3
- package/dist/configure/services/workflow/execution-policy.types.d.mts +1 -1
- package/dist/configure/services/workflow/job.d.mts +11 -2
- package/dist/configure/services/workflow/workflow.d.mts +10 -0
- package/dist/configure/types/permission-operand.types.d.mts +20 -0
- package/dist/{crashreport-CxHne11E.mjs → crashreport-B5LqCTfF.mjs} +2 -2
- package/dist/{crashreport-CxHne11E.mjs.map → crashreport-B5LqCTfF.mjs.map} +1 -1
- package/dist/{crashreport-0ioNRZ4K.mjs → crashreport-eI7ty7ok.mjs} +1 -1
- package/dist/{errors-DfnF4ibq.mjs → errors-D7583Zz7.mjs} +2 -44
- package/dist/errors-D7583Zz7.mjs.map +1 -0
- package/dist/{globals-CBZ0egXT.mjs → globals-TfAVItuK.mjs} +21 -5
- package/dist/globals-TfAVItuK.mjs.map +1 -0
- package/dist/logger-BtX0suGY.mjs +48 -0
- package/dist/logger-BtX0suGY.mjs.map +1 -0
- package/dist/{logger-BwS4ppwO.mjs → logger-CXQq9YIp.mjs} +110 -13
- package/dist/logger-CXQq9YIp.mjs.map +1 -0
- package/dist/node-builtins-CmaL2Cbq.mjs +36 -0
- package/dist/node-builtins-CmaL2Cbq.mjs.map +1 -0
- package/dist/plugin/builtin/enum-constants/index.mjs +115 -2
- package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -0
- package/dist/plugin/builtin/file-utils/index.mjs +149 -2
- package/dist/plugin/builtin/file-utils/index.mjs.map +1 -0
- package/dist/plugin/builtin/kysely-type/index.mjs +274 -2
- package/dist/plugin/builtin/kysely-type/index.mjs.map +1 -0
- package/dist/plugin/builtin/seed/index.d.mts +3 -2
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/builtin/seed/seed-type-processor.d.mts +21 -0
- package/dist/plugin/builtin/seed/types.d.mts +2 -0
- package/dist/{register-ts-hook-DvEs6YsL.mjs → register-ts-hook-LYV7zH-e.mjs} +2953 -996
- package/dist/register-ts-hook-LYV7zH-e.mjs.map +1 -0
- package/dist/{registry-i7EdJ-D5.mjs → registry-BIGVUrMB.mjs} +3 -3
- package/dist/registry-BIGVUrMB.mjs.map +1 -0
- package/dist/runtime/globals.d.mts +7 -0
- package/dist/runtime/index.d.mts +3 -1
- package/dist/runtime/index.mjs +3 -2
- package/dist/runtime/logger.d.mts +98 -0
- package/dist/runtime/logger.mjs +3 -0
- package/dist/runtime/workflow.d.mts +15 -7
- package/dist/runtime/workflow.mjs +1 -1
- package/dist/seed-B-yckgQY.mjs +483 -0
- package/dist/seed-B-yckgQY.mjs.map +1 -0
- package/dist/{service-DaeJlBoH.mjs → service-B5WynBHQ.mjs} +3 -3
- package/dist/{service-DaeJlBoH.mjs.map → service-B5WynBHQ.mjs.map} +1 -1
- package/dist/service-M7OYziQP.mjs +3 -0
- package/dist/{service-Dmxa2I4i.mjs → service-k1xy_A5G.mjs} +30 -4
- package/dist/service-k1xy_A5G.mjs.map +1 -0
- package/dist/{service_pb-BoLM0X4K.mjs → service_pb-D5--My_M.mjs} +5 -5
- package/dist/service_pb-D5--My_M.mjs.map +1 -0
- package/dist/{service_pb-r1T7kpJc.mjs → service_pb-i8CmnQP4.mjs} +1 -1
- package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +106 -1
- package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +6 -1
- package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +24 -1
- package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +49 -1
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +89 -6
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +26 -1
- package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +101 -1
- package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +22 -1
- package/dist/types/auth.generated.d.mts +14 -2
- package/dist/types/executor.generated.d.mts +45 -3
- package/dist/types/http-adapter.generated.d.mts +5 -0
- package/dist/types/idp.generated.d.mts +31 -1
- package/dist/types/resolver.generated.d.mts +30 -2
- package/dist/types/tailordb.generated.d.mts +15 -3
- package/dist/utils/test/index.d.mts +1 -2
- package/dist/utils/test/index.mjs +1 -169
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/vitest/environment.mjs +1 -1
- package/dist/vitest/index.d.mts +6 -4
- package/dist/vitest/index.mjs +112 -62
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/mock.d.mts +2 -1
- package/dist/vitest/mocks/logger.d.mts +45 -0
- package/dist/vitest/mocks/workflow.d.mts +8 -8
- package/dist/vitest/setup.mjs +1 -1
- package/dist/{workflow-CsBvRE3g.mjs → workflow-Bamae_Yc.mjs} +5 -5
- package/dist/workflow-Bamae_Yc.mjs.map +1 -0
- package/dist/{workspace_resource_pb-Db3fv68L.mjs → workspace_resource_pb-DXnO2AT-.mjs} +13 -8
- package/dist/workspace_resource_pb-DXnO2AT-.mjs.map +1 -0
- package/docs/cli/application.md +5 -1
- package/docs/cli/tailordb.md +47 -13
- package/docs/cli-reference.md +38 -30
- package/docs/configuration.md +54 -2
- package/docs/github-actions.md +2 -2
- package/docs/migration/v2.md +408 -5
- package/docs/runtime.md +5 -1
- package/docs/services/executor.md +83 -3
- package/docs/services/idp.md +8 -6
- package/docs/services/resolver.md +60 -4
- package/docs/services/tailordb-migration.md +31 -7
- package/docs/services/tailordb.md +7 -5
- package/docs/services/workflow.md +33 -3
- package/docs/testing.md +34 -7
- package/package.json +31 -24
- package/dist/application-GzW98_Xr.mjs.map +0 -1
- package/dist/application-OM0taSPn.mjs +0 -3
- package/dist/cli/index.mjs.map +0 -1
- package/dist/enum-constants-j9QBF0cB.mjs +0 -116
- package/dist/enum-constants-j9QBF0cB.mjs.map +0 -1
- package/dist/errors-DfnF4ibq.mjs.map +0 -1
- package/dist/file-utils-yEiIS4nJ.mjs +0 -150
- package/dist/file-utils-yEiIS4nJ.mjs.map +0 -1
- package/dist/globals-CBZ0egXT.mjs.map +0 -1
- package/dist/kysely-type-DqIRgDYR.mjs +0 -275
- package/dist/kysely-type-DqIRgDYR.mjs.map +0 -1
- package/dist/logger-BwS4ppwO.mjs.map +0 -1
- package/dist/register-ts-hook-DvEs6YsL.mjs.map +0 -1
- package/dist/registry-i7EdJ-D5.mjs.map +0 -1
- package/dist/seed-CRSQJI_z.mjs +0 -1170
- package/dist/seed-CRSQJI_z.mjs.map +0 -1
- package/dist/service-BJAQ70e5.mjs +0 -3
- package/dist/service-Dmxa2I4i.mjs.map +0 -1
- package/dist/service_pb-BoLM0X4K.mjs.map +0 -1
- package/dist/utils/test/mock.d.mts +0 -86
- package/dist/workflow-CsBvRE3g.mjs.map +0 -1
- package/dist/workspace_resource_pb-Db3fv68L.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/aigateway_pb.mjs";
|
|
2
|
-
import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
3
2
|
import "../../shared/client.mjs";
|
|
3
|
+
import "./label.mjs";
|
|
4
4
|
import "./types.mjs";
|
|
5
|
-
import "@bufbuild/protobuf";
|
|
5
|
+
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../services/http-adapter/bundler.mjs";
|
|
2
2
|
import "../../../tailor-proto/src/tailor/v1/http_adapter_resource_pb.mjs";
|
|
3
3
|
import "../../../tailor-proto/src/tailor/v1/application_pb.mjs";
|
|
4
|
-
import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
5
4
|
import "../../shared/client.mjs";
|
|
5
|
+
import "./label.mjs";
|
|
6
6
|
import "./types.mjs";
|
|
7
|
-
import "@bufbuild/protobuf";
|
|
7
|
+
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/auth_pb.mjs";
|
|
2
|
-
import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
3
2
|
import "../../shared/client.mjs";
|
|
3
|
+
import "./label.mjs";
|
|
4
4
|
import "./types.mjs";
|
|
5
|
-
import "@bufbuild/protobuf";
|
|
5
|
+
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
@@ -2,6 +2,7 @@ import { BundledScripts } from "./function-registry-types.mjs";
|
|
|
2
2
|
import "../../shared/config-loader.mjs";
|
|
3
3
|
import "../../services/application.mjs";
|
|
4
4
|
import "../../shared/client.mjs";
|
|
5
|
+
import "./label.mjs";
|
|
5
6
|
import "./types.mjs";
|
|
6
7
|
import "./apply-phases.mjs";
|
|
7
8
|
//#region src/cli/commands/deploy/deploy.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../services/application.mjs";
|
|
2
2
|
import "../../../tailor-proto/src/tailor/v1/executor_resource_pb.mjs";
|
|
3
3
|
import "../../../tailor-proto/src/tailor/v1/executor_pb.mjs";
|
|
4
|
-
import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
5
4
|
import "../../shared/client.mjs";
|
|
5
|
+
import "./label.mjs";
|
|
6
6
|
import "./types.mjs";
|
|
7
|
-
import "@bufbuild/protobuf";
|
|
7
|
+
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BundledScripts } from "./function-registry-types.mjs";
|
|
2
2
|
import "../../services/workflow/service.mjs";
|
|
3
3
|
import "../../services/application.mjs";
|
|
4
|
-
import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
5
4
|
import "../../shared/client.mjs";
|
|
6
|
-
import "
|
|
5
|
+
import "./label.mjs";
|
|
7
6
|
export type { BundledScripts };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/idp_pb.mjs";
|
|
2
|
-
import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
3
2
|
import "../../shared/client.mjs";
|
|
3
|
+
import "./label.mjs";
|
|
4
4
|
import "./types.mjs";
|
|
5
|
-
import "@bufbuild/protobuf";
|
|
5
|
+
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/pipeline_pb.mjs";
|
|
2
|
-
import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
3
2
|
import "../../shared/client.mjs";
|
|
3
|
+
import "./label.mjs";
|
|
4
4
|
import "./types.mjs";
|
|
5
|
-
import "@bufbuild/protobuf";
|
|
5
|
+
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/staticwebsite_pb.mjs";
|
|
2
|
-
import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
3
2
|
import "../../shared/client.mjs";
|
|
3
|
+
import "./label.mjs";
|
|
4
4
|
import "./types.mjs";
|
|
5
|
-
import "@bufbuild/protobuf";
|
|
5
|
+
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import "../../../shared/config-loader.mjs";
|
|
2
2
|
import "../../../services/application.mjs";
|
|
3
3
|
import "../../../../tailor-proto/src/tailor/v1/tailordb_pb.mjs";
|
|
4
|
-
import "../../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
5
4
|
import "../../../shared/client.mjs";
|
|
5
|
+
import "../label.mjs";
|
|
6
6
|
import "../types.mjs";
|
|
7
|
+
import "../../tailordb/migrate/config.mjs";
|
|
7
8
|
import "../../tailordb/migrate/snapshot.mjs";
|
|
8
|
-
import "
|
|
9
|
+
import "../../tailordb/migrate/schema-checks.mjs";
|
|
10
|
+
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/workflow_pb.mjs";
|
|
2
|
-
import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
|
|
3
2
|
import "../../shared/client.mjs";
|
|
4
|
-
import "
|
|
3
|
+
import "./label.mjs";
|
|
4
|
+
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
@@ -9,20 +9,11 @@ type GetExecutorTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
|
9
9
|
workspaceId?: string;
|
|
10
10
|
profile?: string;
|
|
11
11
|
};
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Use GetExecutorTypedOptions instead.
|
|
14
|
-
*/
|
|
15
|
-
interface GetExecutorOptions {
|
|
16
|
-
name: string;
|
|
17
|
-
workspaceId?: string;
|
|
18
|
-
profile?: string;
|
|
19
|
-
}
|
|
20
12
|
/**
|
|
21
13
|
* Get an executor by name and return CLI-friendly info.
|
|
22
14
|
* @param options - Executor lookup options
|
|
23
15
|
* @returns Executor information
|
|
24
16
|
*/
|
|
25
17
|
declare function getExecutor<E extends ExecutorLike>(options: GetExecutorTypedOptions<E>): Promise<ExecutorInfo>;
|
|
26
|
-
declare function getExecutor(options: GetExecutorOptions): Promise<ExecutorInfo>;
|
|
27
18
|
//#endregion
|
|
28
|
-
export {
|
|
19
|
+
export { GetExecutorTypedOptions, getExecutor };
|
|
@@ -30,40 +30,6 @@ type WatchExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
|
30
30
|
logs?: boolean;
|
|
31
31
|
showProgress?: boolean;
|
|
32
32
|
};
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use ListExecutorJobsTypedOptions instead.
|
|
35
|
-
*/
|
|
36
|
-
interface ListExecutorJobsOptions {
|
|
37
|
-
executorName: string;
|
|
38
|
-
status?: string;
|
|
39
|
-
order?: Order;
|
|
40
|
-
limit?: number;
|
|
41
|
-
workspaceId?: string;
|
|
42
|
-
profile?: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated Use GetExecutorJobTypedOptions instead.
|
|
46
|
-
*/
|
|
47
|
-
interface GetExecutorJobOptions {
|
|
48
|
-
executorName: string;
|
|
49
|
-
jobId: string;
|
|
50
|
-
attempts?: boolean;
|
|
51
|
-
workspaceId?: string;
|
|
52
|
-
profile?: string;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated Use WatchExecutorJobTypedOptions instead.
|
|
56
|
-
*/
|
|
57
|
-
interface WatchExecutorJobOptions {
|
|
58
|
-
executorName: string;
|
|
59
|
-
jobId: string;
|
|
60
|
-
workspaceId?: string;
|
|
61
|
-
profile?: string;
|
|
62
|
-
interval?: number;
|
|
63
|
-
timeout?: number;
|
|
64
|
-
logs?: boolean;
|
|
65
|
-
showProgress?: boolean;
|
|
66
|
-
}
|
|
67
33
|
interface ExecutorJobDetailInfo extends ExecutorJobInfo {
|
|
68
34
|
attempts?: ExecutorJobAttemptInfo[];
|
|
69
35
|
}
|
|
@@ -97,21 +63,18 @@ interface WatchExecutorJobResult {
|
|
|
97
63
|
* @returns List of executor job information
|
|
98
64
|
*/
|
|
99
65
|
declare function listExecutorJobs<E extends ExecutorLike>(options: ListExecutorJobsTypedOptions<E>): Promise<ExecutorJobListInfo[]>;
|
|
100
|
-
declare function listExecutorJobs(options: ListExecutorJobsOptions): Promise<ExecutorJobListInfo[]>;
|
|
101
66
|
/**
|
|
102
67
|
* Get details of a specific executor job.
|
|
103
68
|
* @param options - Options for getting executor job details
|
|
104
69
|
* @returns Executor job detail information
|
|
105
70
|
*/
|
|
106
71
|
declare function getExecutorJob<E extends ExecutorLike>(options: GetExecutorJobTypedOptions<E>): Promise<ExecutorJobDetailInfo>;
|
|
107
|
-
declare function getExecutorJob(options: GetExecutorJobOptions): Promise<ExecutorJobDetailInfo>;
|
|
108
72
|
/**
|
|
109
73
|
* Watch an executor job until completion, including downstream executions.
|
|
110
74
|
* @param options - Options for watching executor job
|
|
111
75
|
* @returns Result including job details and downstream execution info
|
|
112
76
|
*/
|
|
113
77
|
declare function watchExecutorJob<E extends ExecutorLike>(options: WatchExecutorJobTypedOptions<E>): Promise<WatchExecutorJobResult>;
|
|
114
|
-
declare function watchExecutorJob(options: WatchExecutorJobOptions): Promise<WatchExecutorJobResult>;
|
|
115
78
|
/**
|
|
116
79
|
* Build a user-facing failure message for an executor job wait result.
|
|
117
80
|
* @param result - Executor job wait result
|
|
@@ -119,4 +82,4 @@ declare function watchExecutorJob(options: WatchExecutorJobOptions): Promise<Wat
|
|
|
119
82
|
*/
|
|
120
83
|
declare function getExecutorWaitFailureMessage(result: WatchExecutorJobResult): string | undefined;
|
|
121
84
|
//#endregion
|
|
122
|
-
export { ExecutorJobDetailInfo,
|
|
85
|
+
export { ExecutorJobDetailInfo, GetExecutorJobTypedOptions, ListExecutorJobsTypedOptions, WatchExecutorJobResult, WatchExecutorJobTypedOptions, WorkflowJobLog, getExecutorJob, getExecutorWaitFailureMessage, listExecutorJobs, watchExecutorJob };
|
|
@@ -12,15 +12,6 @@ type TriggerExecutorBaseOptions<E extends ManualTriggerExecutor> = {
|
|
|
12
12
|
workspaceId?: string;
|
|
13
13
|
profile?: string;
|
|
14
14
|
};
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use TriggerExecutorTypedOptions instead.
|
|
17
|
-
*/
|
|
18
|
-
interface TriggerExecutorOptions {
|
|
19
|
-
executorName: string;
|
|
20
|
-
payload?: JsonObject;
|
|
21
|
-
workspaceId?: string;
|
|
22
|
-
profile?: string;
|
|
23
|
-
}
|
|
24
15
|
type TriggerExecutorTypedOptions<E extends ManualTriggerExecutor = ManualTriggerExecutor> = E extends ManualTriggerExecutor<IncomingWebhookTrigger> ? TriggerExecutorBaseOptions<E> & {
|
|
25
16
|
payload?: JsonObject;
|
|
26
17
|
} : TriggerExecutorBaseOptions<E> & {
|
|
@@ -35,6 +26,5 @@ interface TriggerExecutorResult {
|
|
|
35
26
|
* @returns Result containing the job ID if available
|
|
36
27
|
*/
|
|
37
28
|
declare function triggerExecutor<E extends ManualTriggerExecutor>(options: TriggerExecutorTypedOptions<E>): Promise<TriggerExecutorResult>;
|
|
38
|
-
declare function triggerExecutor(options: TriggerExecutorOptions): Promise<TriggerExecutorResult>;
|
|
39
29
|
//#endregion
|
|
40
|
-
export {
|
|
30
|
+
export { TriggerExecutorResult, TriggerExecutorTypedOptions, triggerExecutor };
|
|
@@ -19,8 +19,9 @@ type SeedBundleResult = {
|
|
|
19
19
|
* 4. Exports as main() for TestExecScript
|
|
20
20
|
* @param namespace - TailorDB namespace
|
|
21
21
|
* @param typeNames - List of type names to include in the seed
|
|
22
|
+
* @param baseDir - Directory whose dependencies and tsconfig the generated entry uses
|
|
22
23
|
* @returns Bundled seed script result
|
|
23
24
|
*/
|
|
24
|
-
declare function bundleSeedScript(namespace: string, typeNames: string[]): Promise<SeedBundleResult>;
|
|
25
|
+
declare function bundleSeedScript(namespace: string, typeNames: string[], baseDir?: string): Promise<SeedBundleResult>;
|
|
25
26
|
//#endregion
|
|
26
27
|
export { SeedBundleResult, bundleSeedScript };
|
|
@@ -16,13 +16,14 @@ interface MigrationBundleResult {
|
|
|
16
16
|
* 1. Imports the migration script's main function
|
|
17
17
|
* 2. Defines getDB() function inline
|
|
18
18
|
* 3. Wraps migration in a transaction using getDB()
|
|
19
|
-
* 4. Exports as main() for
|
|
19
|
+
* 4. Exports as main() for server-side execution
|
|
20
20
|
* @param {string} sourceFile - Path to the migration script file
|
|
21
21
|
* @param {string} namespace - TailorDB namespace
|
|
22
22
|
* @param {number} migrationNumber - Migration number
|
|
23
23
|
* @param {Record<string, string | number | boolean>} env - Environment variables to inject into the migration context
|
|
24
|
+
* @param {string} [baseDir] - Directory to resolve the bundler's tsconfig against; defaults to the migration script's directory
|
|
24
25
|
* @returns {Promise<MigrationBundleResult>} Bundled migration result
|
|
25
26
|
*/
|
|
26
|
-
declare function bundleMigrationScript(sourceFile: string, namespace: string, migrationNumber: number, env?: Record<string, string | number | boolean
|
|
27
|
+
declare function bundleMigrationScript(sourceFile: string, namespace: string, migrationNumber: number, env?: Record<string, string | number | boolean>, baseDir?: string): Promise<MigrationBundleResult>;
|
|
27
28
|
//#endregion
|
|
28
29
|
export { MigrationBundleResult, bundleMigrationScript };
|
|
@@ -188,6 +188,16 @@ interface MigrationDiff {
|
|
|
188
188
|
warnings: WarningChangeInfo[];
|
|
189
189
|
/** Whether a migration script is required to handle data migration */
|
|
190
190
|
requiresMigrationScript: boolean;
|
|
191
|
+
/** Explicit acknowledgment that this migration needs no script despite breaking changes */
|
|
192
|
+
scriptSkipped?: ScriptSkippedInfo;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Acknowledgment that a migration requiring a script intentionally has none.
|
|
196
|
+
* Recorded by `tailordb migration script <n> --no-script --reason "..."`.
|
|
197
|
+
*/
|
|
198
|
+
interface ScriptSkippedInfo {
|
|
199
|
+
reason: string;
|
|
200
|
+
acknowledgedAt: string;
|
|
191
201
|
}
|
|
192
202
|
/**
|
|
193
203
|
* Breaking change information in migration diff
|
|
@@ -233,4 +243,4 @@ declare function formatMigrationDiff(diff: MigrationDiff): string;
|
|
|
233
243
|
*/
|
|
234
244
|
declare function formatDiffSummary(diff: MigrationDiff): string;
|
|
235
245
|
//#endregion
|
|
236
|
-
export { BreakingChangeInfo, DiffChange, FieldAddedChange, FieldModifiedChange, FieldRemovedChange, FileAddedChange, FileModifiedChange, FileRemovedChange, IndexAddedChange, IndexModifiedChange, IndexRemovedChange, MigrationDiff, PermissionModifiedChange, RelationshipAddedChange, RelationshipModifiedChange, RelationshipRemovedChange, SnapshotPermissionState, SnapshotTypeSettingsState, TypeAddedChange, TypeModifiedChange, TypeRemovedChange, TypeScriptsModifiedChange, TypeScriptsState, TypeSettingsModifiedChange, TypeSettingsPatch, WarningChangeInfo, formatDiffSummary, formatMigrationDiff, hasChanges };
|
|
246
|
+
export { BreakingChangeInfo, DiffChange, FieldAddedChange, FieldModifiedChange, FieldRemovedChange, FileAddedChange, FileModifiedChange, FileRemovedChange, IndexAddedChange, IndexModifiedChange, IndexRemovedChange, MigrationDiff, PermissionModifiedChange, RelationshipAddedChange, RelationshipModifiedChange, RelationshipRemovedChange, ScriptSkippedInfo, SnapshotPermissionState, SnapshotTypeSettingsState, TypeAddedChange, TypeModifiedChange, TypeRemovedChange, TypeScriptsModifiedChange, TypeScriptsState, TypeSettingsModifiedChange, TypeSettingsPatch, WarningChangeInfo, formatDiffSummary, formatMigrationDiff, hasChanges };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TailorDBType } from "../../../../parser/service/tailordb/types.mjs";
|
|
2
2
|
import "../../../../tailor-proto/src/tailor/v1/tailordb_resource_pb.mjs";
|
|
3
|
-
import { NormalizedSchemaSnapshot, SchemaSnapshot, SnapshotActionPermission, SnapshotEnumValue, SnapshotFieldConfig,
|
|
3
|
+
import { NormalizedSchemaSnapshot, SchemaSnapshot, SnapshotActionPermission, SnapshotEnumValue, SnapshotFieldConfig, SnapshotGqlPermission, SnapshotGqlPermissionPolicy, SnapshotIndexConfig, SnapshotPermissionCondition, SnapshotPermissionOperand, SnapshotRecordPermission, SnapshotRelationship, TailorDBSnapshotType } from "./snapshot-types.mjs";
|
|
4
4
|
import { MigrationDiff } from "./diff-calculator.mjs";
|
|
5
5
|
//#region src/cli/commands/tailordb/migrate/snapshot.d.ts
|
|
6
6
|
/**
|
|
@@ -15,17 +15,6 @@ type ListWorkflowExecutionsTypedOptions<W extends WorkflowLike = WorkflowLike> =
|
|
|
15
15
|
order?: Order;
|
|
16
16
|
limit?: number;
|
|
17
17
|
};
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use ListWorkflowExecutionsTypedOptions instead.
|
|
20
|
-
*/
|
|
21
|
-
interface ListWorkflowExecutionsOptions {
|
|
22
|
-
workspaceId?: string;
|
|
23
|
-
profile?: string;
|
|
24
|
-
workflowName?: string;
|
|
25
|
-
status?: string;
|
|
26
|
-
order?: Order;
|
|
27
|
-
limit?: number;
|
|
28
|
-
}
|
|
29
18
|
interface GetWorkflowExecutionOptions {
|
|
30
19
|
executionId: string;
|
|
31
20
|
workspaceId?: string;
|
|
@@ -63,7 +52,6 @@ interface GetWorkflowExecutionResult {
|
|
|
63
52
|
* @returns List of workflow executions
|
|
64
53
|
*/
|
|
65
54
|
declare function listWorkflowExecutions<W extends WorkflowLike>(options?: ListWorkflowExecutionsTypedOptions<W>): Promise<WorkflowExecutionInfo[]>;
|
|
66
|
-
declare function listWorkflowExecutions(options?: ListWorkflowExecutionsOptions): Promise<WorkflowExecutionInfo[]>;
|
|
67
55
|
/**
|
|
68
56
|
* Get a single workflow execution with optional logs.
|
|
69
57
|
* @param options - Workflow execution lookup options
|
|
@@ -71,4 +59,4 @@ declare function listWorkflowExecutions(options?: ListWorkflowExecutionsOptions)
|
|
|
71
59
|
*/
|
|
72
60
|
declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
|
|
73
61
|
//#endregion
|
|
74
|
-
export { GetWorkflowExecutionOptions, GetWorkflowExecutionResult,
|
|
62
|
+
export { GetWorkflowExecutionOptions, GetWorkflowExecutionResult, ListWorkflowExecutionsTypedOptions, WorkflowExecutionDetailInfo, WorkflowExecutionWaitInfo, getWorkflowExecution, listWorkflowExecutions };
|
|
@@ -11,20 +11,11 @@ type GetWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = {
|
|
|
11
11
|
workspaceId?: string;
|
|
12
12
|
profile?: string;
|
|
13
13
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use GetWorkflowTypedOptions instead.
|
|
16
|
-
*/
|
|
17
|
-
interface GetWorkflowOptions {
|
|
18
|
-
name: string;
|
|
19
|
-
workspaceId?: string;
|
|
20
|
-
profile?: string;
|
|
21
|
-
}
|
|
22
14
|
/**
|
|
23
15
|
* Get a workflow by name and return CLI-friendly info.
|
|
24
16
|
* @param options - Workflow lookup options
|
|
25
17
|
* @returns Workflow information
|
|
26
18
|
*/
|
|
27
19
|
declare function getWorkflow<W extends WorkflowLike>(options: GetWorkflowTypedOptions<W>): Promise<WorkflowInfo>;
|
|
28
|
-
declare function getWorkflow(options: GetWorkflowOptions): Promise<WorkflowInfo>;
|
|
29
20
|
//#endregion
|
|
30
|
-
export {
|
|
21
|
+
export { GetWorkflowTypedOptions, getWorkflow };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "../../shared/args.mjs";
|
|
1
2
|
import { WorkflowWaitUntil } from "./status.mjs";
|
|
2
3
|
import { WorkflowWaitResult } from "./waiter.mjs";
|
|
3
4
|
import { Jsonifiable } from "type-fest";
|
|
@@ -19,18 +20,6 @@ type StartWorkflowArgOptionForSingleWorkflow<W extends WorkflowLike> = WorkflowL
|
|
|
19
20
|
arg: WorkflowInput<W>;
|
|
20
21
|
};
|
|
21
22
|
type StartWorkflowArgOption<W extends WorkflowLike> = W extends WorkflowLike ? StartWorkflowArgOptionForSingleWorkflow<W> : never;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated Use StartWorkflowTypedOptions instead.
|
|
24
|
-
*/
|
|
25
|
-
interface StartWorkflowOptions {
|
|
26
|
-
name: string;
|
|
27
|
-
machineUser?: string;
|
|
28
|
-
arg?: Jsonifiable;
|
|
29
|
-
workspaceId?: string;
|
|
30
|
-
profile?: string;
|
|
31
|
-
configPath?: string;
|
|
32
|
-
interval?: number;
|
|
33
|
-
}
|
|
34
23
|
type StartWorkflowTypedBaseOptions<W extends WorkflowLike> = {
|
|
35
24
|
workflow: W;
|
|
36
25
|
invoker: MachineUserName;
|
|
@@ -55,6 +44,5 @@ interface StartWorkflowResultWithWait {
|
|
|
55
44
|
* @returns Start result with wait helper
|
|
56
45
|
*/
|
|
57
46
|
declare function startWorkflow<W extends WorkflowLike>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
|
|
58
|
-
declare function startWorkflow(options: StartWorkflowOptions): Promise<StartWorkflowResultWithWait>;
|
|
59
47
|
//#endregion
|
|
60
|
-
export {
|
|
48
|
+
export { StartWorkflowResultWithWait, StartWorkflowTypedOptions, WaitOptions, startWorkflow };
|