@tailor-platform/sdk 0.14.2 → 0.14.3
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 +6 -0
- package/dist/cli/api.d.mts +12 -2
- package/dist/cli/api.mjs +2 -2
- package/dist/cli/api.mjs.map +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/{resume-Bk4u_qL4.mjs → resume-CVNNM93m.mjs} +3 -3
- package/dist/{resume-Bk4u_qL4.mjs.map → resume-CVNNM93m.mjs.map} +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 0.14.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#149](https://github.com/tailor-platform/sdk/pull/149) [`eb904c7`](https://github.com/tailor-platform/sdk/commit/eb904c7f81f2ed29f1bb5e82b05ec9f90e974a4d) Thanks [@toiroakr](https://github.com/toiroakr)! - fix: remove globalThis.main
|
|
8
|
+
|
|
3
9
|
## 0.14.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cli/api.d.mts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { AppConfig, CodeGeneratorBase, Executor, Generator, IdProviderConfig, OAuth2Client, Resolver, TailorDBTypeConfig } from "../types-CvxHveYR.mjs";
|
|
4
4
|
import "citty";
|
|
5
|
-
import "zod";
|
|
5
|
+
import { z } from "zod";
|
|
6
6
|
import "@bufbuild/protobuf/wkt";
|
|
7
7
|
import "@bufbuild/protobuf/codegenv2";
|
|
8
8
|
import "@bufbuild/protobuf";
|
|
@@ -367,5 +367,15 @@ interface WorkflowResumeOptions {
|
|
|
367
367
|
}
|
|
368
368
|
declare function workflowResume(options: WorkflowResumeOptions): Promise<WorkflowResumeResult | WorkflowExecutionInfo>;
|
|
369
369
|
//#endregion
|
|
370
|
-
|
|
370
|
+
//#region src/cli/context.d.ts
|
|
371
|
+
declare function loadWorkspaceId(opts?: {
|
|
372
|
+
workspaceId?: string;
|
|
373
|
+
profile?: string;
|
|
374
|
+
}): string;
|
|
375
|
+
declare function loadAccessToken(opts?: {
|
|
376
|
+
useProfile?: boolean;
|
|
377
|
+
profile?: string;
|
|
378
|
+
}): Promise<string>;
|
|
379
|
+
//#endregion
|
|
380
|
+
export { type ApplicationInfo, type ApplyOptions, type CodeGenerator, type Executor, type GenerateOptions, type GeneratorInput, type GeneratorResult, type MachineUserInfo, type MachineUserListOptions, type MachineUserTokenInfo, type MachineUserTokenOptions, type OAuth2ClientCredentials, type OAuth2ClientGetOptions, type OAuth2ClientInfo, type OAuth2ClientListOptions, type RemoveOptions, type Resolver, type ShowOptions, type ParsedTailorDBType as TailorDBType, type WorkflowExecutionGetOptions, type WorkflowExecutionInfo, type WorkflowExecutionsListOptions, type WorkflowGetOptions, type WorkflowInfo, type WorkflowJobExecutionInfo, type WorkflowListInfo, type WorkflowListOptions, type WorkflowResumeOptions, type WorkflowResumeResult, type WorkflowStartOptions, type WorkflowStartResult, type WorkspaceCreateOptions, type WorkspaceDeleteOptions, type WorkspaceInfo, apply, generate, generateUserTypes, loadAccessToken, loadConfig, loadWorkspaceId, machineUserList, machineUserToken, oauth2ClientGet, oauth2ClientList, remove, show, workflowExecutionGet, workflowExecutionsList, workflowGet, workflowList, workflowResume, workflowStart, workspaceCreate, workspaceDelete, workspaceList };
|
|
371
381
|
//# sourceMappingURL=api.d.mts.map
|
package/dist/cli/api.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { apply, generate, generateUserTypes, loadConfig, machineUserList, machineUserToken, oauth2ClientGet, oauth2ClientList, remove, show, workflowExecutionGet, workflowExecutionsList, workflowGet, workflowList, workflowResume, workflowStart, workspaceCreate, workspaceDelete, workspaceList } from "../resume-
|
|
1
|
+
import { apply, generate, generateUserTypes, loadAccessToken, loadConfig, loadWorkspaceId, machineUserList, machineUserToken, oauth2ClientGet, oauth2ClientList, remove, show, workflowExecutionGet, workflowExecutionsList, workflowGet, workflowList, workflowResume, workflowStart, workspaceCreate, workspaceDelete, workspaceList } from "../resume-CVNNM93m.mjs";
|
|
2
2
|
import "../job-BGBMNqRW.mjs";
|
|
3
3
|
import { register } from "node:module";
|
|
4
4
|
|
|
@@ -6,5 +6,5 @@ import { register } from "node:module";
|
|
|
6
6
|
register("tsx", import.meta.url, { data: {} });
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
|
-
export { apply, generate, generateUserTypes, loadConfig, machineUserList, machineUserToken, oauth2ClientGet, oauth2ClientList, remove, show, workflowExecutionGet, workflowExecutionsList, workflowGet, workflowList, workflowResume, workflowStart, workspaceCreate, workspaceDelete, workspaceList };
|
|
9
|
+
export { apply, generate, generateUserTypes, loadAccessToken, loadConfig, loadWorkspaceId, machineUserList, machineUserToken, oauth2ClientGet, oauth2ClientList, remove, show, workflowExecutionGet, workflowExecutionsList, workflowGet, workflowList, workflowResume, workflowStart, workspaceCreate, workspaceDelete, workspaceList };
|
|
10
10
|
//# sourceMappingURL=api.mjs.map
|
package/dist/cli/api.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","names":[],"sources":["../../src/cli/api.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { register } from \"node:module\";\n\n// Register tsx to handle TypeScript files when using CLI API programmatically\nregister(\"tsx\", import.meta.url, { data: {} });\n\nexport { apply } from \"./apply/index\";\nexport type { ApplyOptions } from \"./apply/index\";\nexport { generate } from \"./generator/index\";\nexport type { GenerateOptions } from \"./generator/options\";\nexport { loadConfig } from \"./config-loader\";\nexport { generateUserTypes } from \"./type-generator\";\nexport type {\n CodeGenerator,\n GeneratorInput,\n GeneratorResult,\n} from \"./generator/types\";\nexport type { ParsedTailorDBType as TailorDBType } from \"@/parser/service/tailordb/types\";\nexport type { Resolver } from \"@/parser/service/resolver\";\nexport type { Executor } from \"@/parser/service/executor\";\n\nexport { show, type ShowOptions, type ApplicationInfo } from \"./show\";\nexport { remove, type RemoveOptions } from \"./remove\";\nexport {\n workspaceCreate,\n type WorkspaceCreateOptions,\n} from \"./workspace/create\";\nexport { workspaceList } from \"./workspace/list\";\nexport {\n workspaceDelete,\n type WorkspaceDeleteOptions,\n} from \"./workspace/delete\";\nexport type { WorkspaceInfo } from \"./workspace/transform\";\nexport {\n machineUserList,\n type MachineUserListOptions,\n type MachineUserInfo,\n} from \"./machineuser/list\";\nexport {\n machineUserToken,\n type MachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./machineuser/token\";\nexport {\n oauth2ClientGet,\n type OAuth2ClientGetOptions,\n} from \"./oauth2client/get\";\nexport {\n oauth2ClientList,\n type OAuth2ClientListOptions,\n} from \"./oauth2client/list\";\nexport type {\n OAuth2ClientInfo,\n OAuth2ClientCredentials,\n} from \"./oauth2client/transform\";\nexport { workflowList, type WorkflowListOptions } from \"./workflow/list\";\nexport { workflowGet, type WorkflowGetOptions } from \"./workflow/get\";\nexport { workflowStart, type WorkflowStartOptions } from \"./workflow/start\";\nexport {\n workflowExecutionsList,\n workflowExecutionGet,\n type WorkflowExecutionsListOptions,\n type WorkflowExecutionGetOptions,\n} from \"./workflow/executions\";\nexport { workflowResume, type WorkflowResumeOptions } from \"./workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n WorkflowStartResult,\n WorkflowResumeResult,\n} from \"./workflow/transform\";\n"],"mappings":";;;;;AAIA,SAAS,OAAO,OAAO,KAAK,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"api.mjs","names":[],"sources":["../../src/cli/api.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { register } from \"node:module\";\n\n// Register tsx to handle TypeScript files when using CLI API programmatically\nregister(\"tsx\", import.meta.url, { data: {} });\n\nexport { apply } from \"./apply/index\";\nexport type { ApplyOptions } from \"./apply/index\";\nexport { generate } from \"./generator/index\";\nexport type { GenerateOptions } from \"./generator/options\";\nexport { loadConfig } from \"./config-loader\";\nexport { generateUserTypes } from \"./type-generator\";\nexport type {\n CodeGenerator,\n GeneratorInput,\n GeneratorResult,\n} from \"./generator/types\";\nexport type { ParsedTailorDBType as TailorDBType } from \"@/parser/service/tailordb/types\";\nexport type { Resolver } from \"@/parser/service/resolver\";\nexport type { Executor } from \"@/parser/service/executor\";\n\nexport { show, type ShowOptions, type ApplicationInfo } from \"./show\";\nexport { remove, type RemoveOptions } from \"./remove\";\nexport {\n workspaceCreate,\n type WorkspaceCreateOptions,\n} from \"./workspace/create\";\nexport { workspaceList } from \"./workspace/list\";\nexport {\n workspaceDelete,\n type WorkspaceDeleteOptions,\n} from \"./workspace/delete\";\nexport type { WorkspaceInfo } from \"./workspace/transform\";\nexport {\n machineUserList,\n type MachineUserListOptions,\n type MachineUserInfo,\n} from \"./machineuser/list\";\nexport {\n machineUserToken,\n type MachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./machineuser/token\";\nexport {\n oauth2ClientGet,\n type OAuth2ClientGetOptions,\n} from \"./oauth2client/get\";\nexport {\n oauth2ClientList,\n type OAuth2ClientListOptions,\n} from \"./oauth2client/list\";\nexport type {\n OAuth2ClientInfo,\n OAuth2ClientCredentials,\n} from \"./oauth2client/transform\";\nexport { workflowList, type WorkflowListOptions } from \"./workflow/list\";\nexport { workflowGet, type WorkflowGetOptions } from \"./workflow/get\";\nexport { workflowStart, type WorkflowStartOptions } from \"./workflow/start\";\nexport {\n workflowExecutionsList,\n workflowExecutionGet,\n type WorkflowExecutionsListOptions,\n type WorkflowExecutionGetOptions,\n} from \"./workflow/executions\";\nexport { workflowResume, type WorkflowResumeOptions } from \"./workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n WorkflowStartResult,\n WorkflowResumeResult,\n} from \"./workflow/transform\";\nexport { loadAccessToken, loadWorkspaceId } from \"./context\";\n"],"mappings":";;;;;AAIA,SAAS,OAAO,OAAO,KAAK,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC"}
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { PATScope, applyCommand, commonArgs, createCommand, deleteCommand, executionsCommand, fetchAll, fetchLatestToken, fetchUserInfo, formatArgs, generateCommand, getCommand, getCommand$1, initOAuth2Client, initOperatorClient, listCommand as listCommand$1, listCommand$1 as listCommand$6, listCommand$2 as listCommand$7, listCommand$3 as listCommand, loadAccessToken, loadConfig, loadWorkspaceId, parseFormat, printWithFormat, readPackageJson, readPlatformConfig, removeCommand, resumeCommand, showCommand, startCommand, tokenCommand, withCommonArgs, writePlatformConfig } from "../resume-
|
|
2
|
+
import { PATScope, applyCommand, commonArgs, createCommand, deleteCommand, executionsCommand, fetchAll, fetchLatestToken, fetchUserInfo, formatArgs, generateCommand, getCommand, getCommand$1, initOAuth2Client, initOperatorClient, listCommand as listCommand$1, listCommand$1 as listCommand$6, listCommand$2 as listCommand$7, listCommand$3 as listCommand, loadAccessToken, loadConfig, loadWorkspaceId, parseFormat, printWithFormat, readPackageJson, readPlatformConfig, removeCommand, resumeCommand, showCommand, startCommand, tokenCommand, withCommonArgs, writePlatformConfig } from "../resume-CVNNM93m.mjs";
|
|
3
3
|
import "../job-BGBMNqRW.mjs";
|
|
4
4
|
import { register } from "node:module";
|
|
5
5
|
import { defineCommand, runCommand, runMain } from "citty";
|
|
@@ -142588,7 +142588,7 @@ async function bundleSingleExecutor(executor, outputDir, tsconfig, triggerContex
|
|
|
142588
142588
|
|
|
142589
142589
|
const __executor_function = _internalExecutor.operation.body;
|
|
142590
142590
|
|
|
142591
|
-
|
|
142591
|
+
export { __executor_function as main };
|
|
142592
142592
|
`;
|
|
142593
142593
|
fs$1.writeFileSync(entryPath, entryContent);
|
|
142594
142594
|
const outputPath = path$1.join(outputDir, `${executor.name}.js`);
|
|
@@ -142690,7 +142690,7 @@ async function bundleSingleResolver(resolver, outputDir, tsconfig, triggerContex
|
|
|
142690
142690
|
return _internalResolver.body(context);
|
|
142691
142691
|
};
|
|
142692
142692
|
|
|
142693
|
-
|
|
142693
|
+
export { $tailor_resolver_body as main };
|
|
142694
142694
|
`;
|
|
142695
142695
|
fs$1.writeFileSync(entryPath, entryContent);
|
|
142696
142696
|
const outputPath = path$1.join(outputDir, `${resolver.name}.js`);
|
|
@@ -149926,4 +149926,4 @@ const resumeCommand = defineCommand({
|
|
|
149926
149926
|
|
|
149927
149927
|
//#endregion
|
|
149928
149928
|
export { PATScope, apply, applyCommand, commonArgs, createCommand, deleteCommand, executionsCommand, fetchAll, fetchLatestToken, fetchUserInfo, formatArgs, generate, generateCommand, generateUserTypes, getCommand, getCommand$1, initOAuth2Client, initOperatorClient, listCommand, listCommand$1, listCommand$2, listCommand$3, loadAccessToken, loadConfig, loadWorkspaceId, machineUserList, machineUserToken, oauth2ClientGet, oauth2ClientList, parseFormat, printWithFormat, readPackageJson, readPlatformConfig, remove, removeCommand, resumeCommand, show, showCommand, startCommand, tokenCommand, withCommonArgs, workflowExecutionGet, workflowExecutionsList, workflowGet, workflowList, workflowResume, workflowStart, workspaceCreate, workspaceDelete, workspaceList, writePlatformConfig };
|
|
149929
|
-
//# sourceMappingURL=resume-
|
|
149929
|
+
//# sourceMappingURL=resume-CVNNM93m.mjs.map
|