@tailor-platform/sdk 1.55.2 → 1.56.1
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 +20 -0
- package/dist/application-CC3oaSay.mjs +4 -0
- package/dist/{application-MY7YJJ-C.mjs → application-DuT_ae02.mjs} +179 -56
- package/dist/application-DuT_ae02.mjs.map +1 -0
- package/dist/cli/index.mjs +6 -8
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +1 -1
- package/dist/cli/lib.mjs +3 -3
- package/dist/configure/index.d.mts +2 -2
- package/dist/configure/index.mjs +1 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-1APcOP9X.d.mts → index-B61gFI9a.d.mts} +7 -2
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/{runtime-DH5F_z8A.mjs → runtime-745lvg7i.mjs} +24 -3
- package/dist/runtime-745lvg7i.mjs.map +1 -0
- package/dist/{seed-DfLyRh63.mjs → seed-C0fE2sJB.mjs} +5 -5
- package/dist/seed-C0fE2sJB.mjs.map +1 -0
- package/dist/{types-BinLwXM9.mjs → types-BwGth3a1.mjs} +57 -28
- package/dist/types-BwGth3a1.mjs.map +1 -0
- package/dist/{types-UeXbHFXW.mjs → types-Ccwchyj5.mjs} +1 -1
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/{workflow.generated-BGLDYJOq.d.mts → workflow.generated-Kz-nQrTf.d.mts} +20 -1
- package/docs/configuration.md +12 -0
- package/package.json +1 -1
- package/dist/application-D6znmyMd.mjs +0 -4
- package/dist/application-MY7YJJ-C.mjs.map +0 -1
- package/dist/runtime-DH5F_z8A.mjs.map +0 -1
- package/dist/seed-DfLyRh63.mjs.map +0 -1
- package/dist/types-BinLwXM9.mjs.map +0 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { G as PATScope, R as AuthInvokerSchema, c as fetchUserInfo, d as initOperatorClient, h as userAgent, i as fetchAll, j as FunctionExecution_Type, n as closeConnectionPool, o as fetchPaged, s as fetchPlatformMachineUserToken, u as initOAuth2Client } from "../client-DLPEPJ_s.mjs";
|
|
4
4
|
import { n as logger, r as styles } from "../logger-DpJyJvNz.mjs";
|
|
5
|
-
import { $ as listCommand$10, An as workspaceArgs, At as startCommand, B as logBetaWarning, C as listCommand$13, Cn as configArg, Dn as pagedLogArgs, Dt as jobsCommand, E as resumeCommand, En as isVerbose, F as writeDbTypesFile, Gt as parseMigrationLabelNumber, H as removeCommand$1, Ht as executeScript, I as getConfiguredEditorCommand, K as treeCommand, L as openInConfiguredEditor, Lt as functionExecutionStatusToString, Mt as getCommand$6, N as generateCommand$1, O as listCommand$12, On as paginationArgs, P as generateMigrationScript, Pt as executionsCommand, Rt as formatKeyValueTable, Sn as commonArgs, St as triggerCommand, T as healthCommand, Tn as deploymentArgs, U as updateCommand$3, Vt as deploy, Y as getCommand$5, Yt as INITIAL_SCHEMA_NUMBER, Z as updateCommand$2, _n as prompt, at as createCommand$3, b as createCommand$4, bn as assertWritable, c as listCommand$14, cn as reconstructSnapshotFromMigrations, f as restoreCommand, ft as tokenCommand, g as getCommand$7, gt as listCommand$7, hn as trnPrefix, ht as generate, i as updateCommand$4, in as getMigrationFiles, j as truncateCommand, kn as toPageDirection, ln as formatMigrationNumber, lt as getCommand$3, m as listCommand$15, mn as sdkNameLabelKey, o as removeCommand, on as isValidMigrationNumber, pn as getNamespacesWithMigrations, pt as listCommand$8, q as listCommand$11, r as queryCommand, rn as getMigrationFilePath, rt as deleteCommand$3, sn as loadDiff, st as listCommand$9, t as isNativeTypeScriptRuntime, tt as getCommand$4, u as inviteCommand, v as deleteCommand$4, vn as apiCommand, vt as getCommand$2, wn as confirmationArgs, wt as listCommand$6, xn as defineAppCommand, xt as webhookCommand, z as showCommand, zt as getCommand$1 } from "../runtime-
|
|
6
|
-
import {
|
|
5
|
+
import { $ as listCommand$10, An as workspaceArgs, At as startCommand, B as logBetaWarning, C as listCommand$13, Cn as configArg, Dn as pagedLogArgs, Dt as jobsCommand, E as resumeCommand, En as isVerbose, F as writeDbTypesFile, Gt as parseMigrationLabelNumber, H as removeCommand$1, Ht as executeScript, I as getConfiguredEditorCommand, K as treeCommand, L as openInConfiguredEditor, Lt as functionExecutionStatusToString, Mt as getCommand$6, N as generateCommand$1, O as listCommand$12, On as paginationArgs, P as generateMigrationScript, Pt as executionsCommand, Rt as formatKeyValueTable, Sn as commonArgs, St as triggerCommand, T as healthCommand, Tn as deploymentArgs, U as updateCommand$3, Vt as deploy, Y as getCommand$5, Yt as INITIAL_SCHEMA_NUMBER, Z as updateCommand$2, _n as prompt, at as createCommand$3, b as createCommand$4, bn as assertWritable, c as listCommand$14, cn as reconstructSnapshotFromMigrations, f as restoreCommand, ft as tokenCommand, g as getCommand$7, gt as listCommand$7, hn as trnPrefix, ht as generate, i as updateCommand$4, in as getMigrationFiles, j as truncateCommand, kn as toPageDirection, ln as formatMigrationNumber, lt as getCommand$3, m as listCommand$15, mn as sdkNameLabelKey, o as removeCommand, on as isValidMigrationNumber, pn as getNamespacesWithMigrations, pt as listCommand$8, q as listCommand$11, r as queryCommand, rn as getMigrationFilePath, rt as deleteCommand$3, sn as loadDiff, st as listCommand$9, t as isNativeTypeScriptRuntime, tt as getCommand$4, u as inviteCommand, v as deleteCommand$4, vn as apiCommand, vt as getCommand$2, wn as confirmationArgs, wt as listCommand$6, xn as defineAppCommand, xt as webhookCommand, z as showCommand, zt as getCommand$1 } from "../runtime-745lvg7i.mjs";
|
|
6
|
+
import { A as saveUserTokens, C as deleteUserTokens, D as loadWorkspaceId, O as readPlatformConfig, S as loadConfig, T as loadAccessToken, _ as createLogLevelTreeshakeOptions, a as WorkflowJobSchema, b as getDistDir, g as composeFunctionTreeshakeOptions, i as resolveInlineSourcemap, j as writePlatformConfig, k as resolveTokens, l as ExecutorSchema, o as ResolverSchema, u as INVOKER_EXPR, v as resolveBundleLogLevel, w as fetchLatestToken } from "../application-DuT_ae02.mjs";
|
|
7
7
|
import { t as multiline } from "../multiline-Cf9ODpr1.mjs";
|
|
8
8
|
import { t as readPackageJson } from "../package-json-DcQApfPQ.mjs";
|
|
9
9
|
import { n as isCLIError } from "../errors-EsY4XO6O.mjs";
|
|
@@ -1039,6 +1039,7 @@ The download is pinned to the bundle that actually ran using the execution's con
|
|
|
1039
1039
|
async function bundleForTestRun(options) {
|
|
1040
1040
|
const { detected, sourceFile, env = {}, machineUser, workspaceId } = options;
|
|
1041
1041
|
const inlineSourcemap = resolveInlineSourcemap(options.inlineSourcemap);
|
|
1042
|
+
const bundleLogLevel = resolveBundleLogLevel(options.logLevel);
|
|
1042
1043
|
const outputDir = path.resolve(getDistDir(), "test-run");
|
|
1043
1044
|
fs$1.mkdirSync(outputDir, { recursive: true });
|
|
1044
1045
|
const baseName = `test-run--${detected.name}`;
|
|
@@ -1064,11 +1065,7 @@ async function bundleForTestRun(options) {
|
|
|
1064
1065
|
dir: process.cwd()
|
|
1065
1066
|
},
|
|
1066
1067
|
tsconfig,
|
|
1067
|
-
treeshake:
|
|
1068
|
-
moduleSideEffects: false,
|
|
1069
|
-
annotations: true,
|
|
1070
|
-
unknownGlobalSideEffects: false
|
|
1071
|
-
},
|
|
1068
|
+
treeshake: composeFunctionTreeshakeOptions([createLogLevelTreeshakeOptions(bundleLogLevel)]),
|
|
1072
1069
|
logLevel: "silent"
|
|
1073
1070
|
})).output[0].code,
|
|
1074
1071
|
scriptName
|
|
@@ -1210,7 +1207,7 @@ async function detectFunctionType(options) {
|
|
|
1210
1207
|
const rawInput = module.default.input;
|
|
1211
1208
|
let inputSchema;
|
|
1212
1209
|
if (rawInput) {
|
|
1213
|
-
const { t } = await import("../types-
|
|
1210
|
+
const { t } = await import("../types-Ccwchyj5.mjs");
|
|
1214
1211
|
inputSchema = t.object(rawInput);
|
|
1215
1212
|
}
|
|
1216
1213
|
return {
|
|
@@ -1403,6 +1400,7 @@ When a \`.js\` file is provided, detection and bundling are skipped and the file
|
|
|
1403
1400
|
sourceFile: filePath,
|
|
1404
1401
|
env: config.env ?? {},
|
|
1405
1402
|
inlineSourcemap: config.inlineSourcemap,
|
|
1403
|
+
logLevel: config.logLevel,
|
|
1406
1404
|
machineUser,
|
|
1407
1405
|
workspaceId
|
|
1408
1406
|
}));
|