@tailor-platform/sdk 1.31.0 → 1.32.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 +12 -0
- package/dist/{application-CASjzt3W.mjs → application-B8vok3w2.mjs} +5 -8
- package/dist/{application-CASjzt3W.mjs.map → application-B8vok3w2.mjs.map} +1 -1
- package/dist/{application-B2-PymMz.mjs → application-DHifc-oA.mjs} +1 -1
- package/dist/cli/index.mjs +6 -9
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.mjs +2 -2
- package/dist/configure/index.d.mts +1 -1
- package/dist/{index-RXv15__b.d.mts → index-BAud4CE7.d.mts} +12 -12
- package/dist/{runtime-Ofe7nHEG.mjs → runtime-DbX_UxlC.mjs} +3 -3
- package/dist/{runtime-Ofe7nHEG.mjs.map → runtime-DbX_UxlC.mjs.map} +1 -1
- package/dist/utils/test/index.d.mts +7 -2
- package/dist/utils/test/index.mjs +15 -1
- package/dist/utils/test/index.mjs.map +1 -1
- package/docs/services/resolver.md +13 -0
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import "./brand-GZnI4eYb.mjs";
|
|
|
3
3
|
import "./logger-CqezTedh.mjs";
|
|
4
4
|
import "./client-DfdgRZlQ.mjs";
|
|
5
5
|
import "./package-json-D3x2nBPB.mjs";
|
|
6
|
-
import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-
|
|
6
|
+
import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-B8vok3w2.mjs";
|
|
7
7
|
import "./seed-CWkIDWMb.mjs";
|
|
8
8
|
import "./file-utils-Bctuzn3x.mjs";
|
|
9
9
|
import "./kysely-type-B_IecdK9.mjs";
|
package/dist/cli/index.mjs
CHANGED
|
@@ -3,10 +3,10 @@ import "../chunk-DEt8GZDa.mjs";
|
|
|
3
3
|
import "../schema-CNWt2FKQ.mjs";
|
|
4
4
|
import "../brand-GZnI4eYb.mjs";
|
|
5
5
|
import { n as logger, r as styles } from "../logger-CqezTedh.mjs";
|
|
6
|
-
import { At as functionExecutionStatusToString, B as updateCommand$3, Ct as startCommand, D as resumeCommand, Dt as executionsCommand, E as healthCommand, Ft as executeScript, I as showCommand, J as updateCommand$2, Jt as formatMigrationNumber, K as getCommand$4, L as logBetaWarning, M as truncateCommand, Mt as getCommand$1, P as generateCommand$1, Pt as apply, Q as getCommand$3, Qt as getMigrationFiles, Rt as parseMigrationLabelNumber, Tt as getCommand$5, U as treeCommand, W as listCommand$10, X as listCommand$9, Zt as getMigrationFilePath, _ as getCommand$6, _n as isVerbose, _t as listCommand$6, a as updateCommand$4, bt as jobsCommand, cn as sdkNameLabelKey, d as inviteCommand, en as isValidMigrationNumber, et as deleteCommand$3, fn as apiCommand, ft as generate, gn as deploymentArgs, h as listCommand$14, hn as confirmationArgs, ht as triggerCommand, i as isCLIError, it as listCommand$8, jt as formatKeyValueTable, k as listCommand$11, l as listCommand$13, ln as trnPrefix, lt as tokenCommand, mn as commonArgs, mt as webhookCommand, nt as createCommand$3, on as getNamespacesWithMigrations, ot as getCommand$2, p as restoreCommand, pn as defineAppCommand, r as queryCommand, s as removeCommand, sn as prompt, t as isNativeTypeScriptRuntime, tn as loadDiff, ut as listCommand$7, vn as workspaceArgs, w as listCommand$12, x as createCommand$4, y as deleteCommand$4, z as removeCommand$1 } from "../runtime-
|
|
6
|
+
import { At as functionExecutionStatusToString, B as updateCommand$3, Ct as startCommand, D as resumeCommand, Dt as executionsCommand, E as healthCommand, Ft as executeScript, I as showCommand, J as updateCommand$2, Jt as formatMigrationNumber, K as getCommand$4, L as logBetaWarning, M as truncateCommand, Mt as getCommand$1, P as generateCommand$1, Pt as apply, Q as getCommand$3, Qt as getMigrationFiles, Rt as parseMigrationLabelNumber, Tt as getCommand$5, U as treeCommand, W as listCommand$10, X as listCommand$9, Zt as getMigrationFilePath, _ as getCommand$6, _n as isVerbose, _t as listCommand$6, a as updateCommand$4, bt as jobsCommand, cn as sdkNameLabelKey, d as inviteCommand, en as isValidMigrationNumber, et as deleteCommand$3, fn as apiCommand, ft as generate, gn as deploymentArgs, h as listCommand$14, hn as confirmationArgs, ht as triggerCommand, i as isCLIError, it as listCommand$8, jt as formatKeyValueTable, k as listCommand$11, l as listCommand$13, ln as trnPrefix, lt as tokenCommand, mn as commonArgs, mt as webhookCommand, nt as createCommand$3, on as getNamespacesWithMigrations, ot as getCommand$2, p as restoreCommand, pn as defineAppCommand, r as queryCommand, s as removeCommand, sn as prompt, t as isNativeTypeScriptRuntime, tn as loadDiff, ut as listCommand$7, vn as workspaceArgs, w as listCommand$12, x as createCommand$4, y as deleteCommand$4, z as removeCommand$1 } from "../runtime-DbX_UxlC.mjs";
|
|
7
7
|
import { B as PATScope, D as FunctionExecution_Type, N as AuthInvokerSchema, i as fetchAll, l as initOAuth2Client, m as userAgent, n as closeConnectionPool, o as fetchPlatformMachineUserToken, s as fetchUserInfo, u as initOperatorClient } from "../client-DfdgRZlQ.mjs";
|
|
8
8
|
import { t as readPackageJson } from "../package-json-D3x2nBPB.mjs";
|
|
9
|
-
import { C as resolveTokens, S as readPlatformConfig, T as writePlatformConfig, a as loadConfig, b as loadAccessToken, c as ExecutorSchema, g as getDistDir, i as resolveInlineSourcemap, o as WorkflowJobSchema, u as ResolverSchema, v as deleteUserTokens, w as saveUserTokens, x as loadWorkspaceId, y as fetchLatestToken } from "../application-
|
|
9
|
+
import { C as resolveTokens, S as readPlatformConfig, T as writePlatformConfig, a as loadConfig, b as loadAccessToken, c as ExecutorSchema, g as getDistDir, i as resolveInlineSourcemap, o as WorkflowJobSchema, u as ResolverSchema, v as deleteUserTokens, w as saveUserTokens, x as loadWorkspaceId, y as fetchLatestToken } from "../application-B8vok3w2.mjs";
|
|
10
10
|
import "../seed-CWkIDWMb.mjs";
|
|
11
11
|
import "../file-utils-Bctuzn3x.mjs";
|
|
12
12
|
import "../kysely-type-B_IecdK9.mjs";
|
|
@@ -393,13 +393,10 @@ function generateEntry(detected, sourceFile, env, machineUser, workspaceId) {
|
|
|
393
393
|
});
|
|
394
394
|
|
|
395
395
|
if (result.issues) {
|
|
396
|
-
|
|
397
|
-
.
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
})
|
|
401
|
-
.join('\\n');
|
|
402
|
-
throw new Error(\`Failed to input validation:\\n\${errorMessages}\`);
|
|
396
|
+
throw new TailorErrors(result.issues.map(issue => ({
|
|
397
|
+
message: issue.message,
|
|
398
|
+
path: issue.path ?? [],
|
|
399
|
+
})));
|
|
403
400
|
}
|
|
404
401
|
}
|
|
405
402
|
|