@tailor-platform/sdk 1.55.1 → 1.56.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/application-C9-t0qQb.mjs +4 -0
  3. package/dist/{application-DzUlASfA.mjs → application-YHZIkjdy.mjs} +160 -71
  4. package/dist/application-YHZIkjdy.mjs.map +1 -0
  5. package/dist/cli/index.mjs +5 -7
  6. package/dist/cli/index.mjs.map +1 -1
  7. package/dist/cli/lib.d.mts +10 -10
  8. package/dist/cli/lib.mjs +3 -3
  9. package/dist/configure/index.d.mts +3 -3
  10. package/dist/configure/index.mjs +2 -8
  11. package/dist/configure/index.mjs.map +1 -1
  12. package/dist/{index-BLsnrEtc.d.mts → index-BW3v5XYC.d.mts} +3 -3
  13. package/dist/{index-BE-fpxIo.d.mts → index-CPRnOjjt.d.mts} +2 -2
  14. package/dist/{index-S6-FtUpA.d.mts → index-CQZVJ5SX.d.mts} +2 -2
  15. package/dist/{index-D9xG-a6Y.d.mts → index-CfRFkXIO.d.mts} +2 -2
  16. package/dist/{index-cHqh66cF.d.mts → index-DUupuPhZ.d.mts} +2 -2
  17. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
  18. package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
  19. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
  20. package/dist/plugin/builtin/seed/index.d.mts +1 -1
  21. package/dist/plugin/builtin/seed/index.mjs +1 -1
  22. package/dist/{plugin-BuE5ZOnW.d.mts → plugin-C_FyVSdl.d.mts} +3 -3
  23. package/dist/{runtime-CgGeIoxi.mjs → runtime-B8F1nklz.mjs} +70 -30
  24. package/dist/runtime-B8F1nklz.mjs.map +1 -0
  25. package/dist/{seed-DfLyRh63.mjs → seed-C0fE2sJB.mjs} +5 -5
  26. package/dist/seed-C0fE2sJB.mjs.map +1 -0
  27. package/dist/utils/test/index.d.mts +2 -2
  28. package/dist/{workflow.generated-CQg1_Ami.d.mts → workflow.generated-BHdBzgx6.d.mts} +12 -2
  29. package/docs/configuration.md +12 -0
  30. package/docs/services/auth.md +11 -0
  31. package/package.json +1 -1
  32. package/dist/application-DM8q9GDI.mjs +0 -4
  33. package/dist/application-DzUlASfA.mjs.map +0 -1
  34. package/dist/runtime-CgGeIoxi.mjs.map +0 -1
  35. package/dist/seed-DfLyRh63.mjs.map +0 -1
@@ -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-CgGeIoxi.mjs";
6
- import { C as loadAccessToken, D as resolveTokens, E as readPlatformConfig, O as saveUserTokens, S as fetchLatestToken, T as loadWorkspaceId, a as WorkflowJobSchema, b as loadConfig, i as resolveInlineSourcemap, k as writePlatformConfig, l as ExecutorSchema, o as ResolverSchema, u as INVOKER_EXPR, v as getDistDir, x as deleteUserTokens } from "../application-DzUlASfA.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-B8F1nklz.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-YHZIkjdy.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
@@ -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
  }));