@tailor-platform/sdk 1.23.0 → 1.25.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 +79 -0
- package/dist/app-config-QzNOFnEy.d.mts +197 -0
- package/dist/{application-CTQe2HSB.mjs → application-CxDvCZts.mjs} +226 -220
- package/dist/application-CxDvCZts.mjs.map +1 -0
- package/dist/application-EQCsho6Z.mjs +8 -0
- package/dist/{brand-DyPrAzpM.mjs → brand-j6C6_sGq.mjs} +1 -1
- package/dist/{brand-DyPrAzpM.mjs.map → brand-j6C6_sGq.mjs.map} +1 -1
- package/dist/cli/index.mjs +9 -9
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +7 -7
- package/dist/cli/lib.mjs +10 -10
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/configure/index.d.mts +5 -4
- package/dist/configure/index.mjs +30 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{enum-constants-B5Nl-yzx.mjs → enum-constants-BxdLbhsW.mjs} +1 -1
- package/dist/enum-constants-BxdLbhsW.mjs.map +1 -0
- package/dist/env-jndw86T4.d.mts +32 -0
- package/dist/{file-utils-sEOwAdJ4.mjs → file-utils-C2r3AVbI.mjs} +1 -1
- package/dist/{file-utils-sEOwAdJ4.mjs.map → file-utils-C2r3AVbI.mjs.map} +1 -1
- package/dist/{index-CU2kZzKa.d.mts → index-BUnLWUKQ.d.mts} +66 -15
- package/dist/{index-BSXclved.d.mts → index-DZRZdh71.d.mts} +2 -2
- package/dist/{index-lIALNMi_.d.mts → index-Do7zo7z-.d.mts} +2 -2
- package/dist/{index-CO-jsOMb.d.mts → index-DoxGF8-i.d.mts} +2 -2
- package/dist/{index-DQlsfhpg.d.mts → index-VZq4IAEK.d.mts} +2 -2
- package/dist/{interceptor-DiARwPfw.mjs → interceptor-DVy32eIG.mjs} +1 -1
- package/dist/{interceptor-DiARwPfw.mjs.map → interceptor-DVy32eIG.mjs.map} +1 -1
- package/dist/{job-CRavYLLk.mjs → job-CnLRQFrk.mjs} +2 -2
- package/dist/{job-CRavYLLk.mjs.map → job-CnLRQFrk.mjs.map} +1 -1
- package/dist/{kysely-type-CSlcwNFH.mjs → kysely-type-DzLBuVp6.mjs} +1 -1
- package/dist/kysely-type-DzLBuVp6.mjs.map +1 -0
- package/dist/package-json-BKA36WTo.mjs +3 -0
- package/dist/{package-json-iVBhE5Ef.mjs → package-json-DnbGCOkg.mjs} +1 -1
- package/dist/{package-json-iVBhE5Ef.mjs.map → package-json-DnbGCOkg.mjs.map} +1 -1
- package/dist/plugin/builtin/enum-constants/index.d.mts +2 -2
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +2 -2
- package/dist/plugin/builtin/file-utils/index.mjs +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +2 -2
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +2 -2
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.d.mts +2 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/{types--G4ilVmx.d.mts → plugin-3sT6Tcq0.d.mts} +1068 -1761
- package/dist/{query-BLQBOaAM.mjs → query-c9RCJduH.mjs} +451 -60
- package/dist/query-c9RCJduH.mjs.map +1 -0
- package/dist/{schema-Cjm-OvPF.mjs → schema-DOx_W_s2.mjs} +2 -2
- package/dist/schema-DOx_W_s2.mjs.map +1 -0
- package/dist/seed/index.d.mts +29 -0
- package/dist/seed/index.mjs +89 -0
- package/dist/seed/index.mjs.map +1 -0
- package/dist/{seed-CXvCW3Xc.mjs → seed-DkKAheSe.mjs} +76 -9
- package/dist/seed-DkKAheSe.mjs.map +1 -0
- package/dist/telemetry-J6dpByo2.mjs +3 -0
- package/dist/{telemetry-C46fds1l.mjs → telemetry-d_lgTL33.mjs} +2 -2
- package/dist/{telemetry-C46fds1l.mjs.map → telemetry-d_lgTL33.mjs.map} +1 -1
- package/dist/utils/test/index.d.mts +3 -3
- package/dist/utils/test/index.mjs +2 -2
- package/docs/cli/tailordb.md +1 -1
- package/docs/cli-reference.md +8 -8
- package/package.json +31 -24
- package/dist/application-CTQe2HSB.mjs.map +0 -1
- package/dist/application-DdSu3baZ.mjs +0 -8
- package/dist/enum-constants-B5Nl-yzx.mjs.map +0 -1
- package/dist/kysely-type-CSlcwNFH.mjs.map +0 -1
- package/dist/package-json-BI0ng3_5.mjs +0 -3
- package/dist/query-BLQBOaAM.mjs.map +0 -1
- package/dist/schema-Cjm-OvPF.mjs.map +0 -1
- package/dist/seed-CXvCW3Xc.mjs.map +0 -1
- package/dist/telemetry-BAxP8-PR.mjs +0 -3
- package/dist/types-CBTSg-LK.mjs +0 -13
- package/dist/types-CBTSg-LK.mjs.map +0 -1
- package/dist/types-IR-hw0-y.d.mts +0 -245
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./brand-j6C6_sGq.mjs";
|
|
2
|
+
import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-CxDvCZts.mjs";
|
|
3
|
+
import "./package-json-DnbGCOkg.mjs";
|
|
4
|
+
import "./seed-DkKAheSe.mjs";
|
|
5
|
+
import "./file-utils-C2r3AVbI.mjs";
|
|
6
|
+
import "./kysely-type-DzLBuVp6.mjs";
|
|
7
|
+
|
|
8
|
+
export { defineApplication };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-
|
|
1
|
+
{"version":3,"file":"brand-j6C6_sGq.mjs","names":[],"sources":["../src/utils/brand.ts"],"sourcesContent":["// Symbol.for ensures the same symbol is returned across different ESM module instances,\n// avoiding identity mismatches when multiple copies of the SDK are loaded.\nexport const SDK_BRAND: unique symbol = Symbol.for(\"tailor-platform/sdk\");\n\n/**\n * Adds a non-enumerable SDK brand symbol to the given object (in-place).\n * @param value - The object to brand\n * @returns The same object with the brand applied\n */\nexport function brandValue<T extends object>(value: T): T {\n Object.defineProperty(value, SDK_BRAND, {\n value: true,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n return value;\n}\n\n/**\n * Checks whether the given value has been branded by the SDK.\n * @param value - The value to check\n * @returns True if the value has the SDK brand symbol\n */\nexport function isSdkBranded(value: unknown): boolean {\n return value !== null && typeof value === \"object\" && SDK_BRAND in value;\n}\n"],"mappings":";AAEA,MAAa,YAA2B,OAAO,IAAI,sBAAsB;;;;;;AAOzE,SAAgB,WAA6B,OAAa;AACxD,QAAO,eAAe,OAAO,WAAW;EACtC,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;EACX,CAAC;AACF,QAAO;;;;;;;AAQT,SAAgB,aAAa,OAAyB;AACpD,QAAO,UAAU,QAAQ,OAAO,UAAU,YAAY,aAAa"}
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "../schema-
|
|
3
|
-
import "../brand-
|
|
4
|
-
import { A as truncateCommand, B as getCommand$2, Bt as getNamespacesWithMigrations, D as listCommand$8, F as showCommand, Ft as loadDiff, Gt as commonArgs, J as webhookCommand, Jt as jsonArgs, K as generate, Kt as confirmationArgs, L as removeCommand$1, M as generateCommand$1, Mt as getMigrationFiles, N as logBetaWarning, Ot as formatMigrationNumber, Pt as isValidMigrationNumber, R as listCommand$7, S as listCommand$9, T as resumeCommand, U as tokenCommand, Vt as trnPrefix, W as listCommand$6, Wt as apiCommand, Xt as workspaceArgs, Y as triggerCommand, Yt as withCommonArgs, Z as listCommand$5, _ as deleteCommand$3, a as removeCommand, at as getCommand$3, d as restoreCommand, dt as formatKeyValueTable, et as jobsCommand, ft as getCommand$1, h as getCommand$4, ht as executeScript, jt as getMigrationFilePath, l as inviteCommand, mt as apply, n as queryCommand, p as listCommand$11, qt as deploymentArgs, r as updateCommand$2, rt as startCommand, s as listCommand$10, st as executionsCommand, ut as functionExecutionStatusToString, vt as parseMigrationLabelNumber, w as healthCommand, y as createCommand$3 } from "../query-
|
|
5
|
-
import { C as readPlatformConfig, D as fetchUserInfo, G as FunctionExecution_Type, O as initOAuth2Client, S as loadWorkspaceId, T as fetchAll, X as AuthInvokerSchema, a as loadConfig, c as ExecutorSchema, g as getDistDir, i as resolveInlineSourcemap, k as initOperatorClient, mt as styles, o as WorkflowJobSchema, pt as logger, rt as PATScope, u as ResolverSchema, v as fetchLatestToken, w as writePlatformConfig, y as loadAccessToken } from "../application-
|
|
6
|
-
import { t as readPackageJson } from "../package-json-
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../telemetry-
|
|
2
|
+
import "../schema-DOx_W_s2.mjs";
|
|
3
|
+
import "../brand-j6C6_sGq.mjs";
|
|
4
|
+
import { A as truncateCommand, B as getCommand$2, Bt as getNamespacesWithMigrations, D as listCommand$8, F as showCommand, Ft as loadDiff, Gt as commonArgs, J as webhookCommand, Jt as jsonArgs, K as generate, Kt as confirmationArgs, L as removeCommand$1, M as generateCommand$1, Mt as getMigrationFiles, N as logBetaWarning, Ot as formatMigrationNumber, Pt as isValidMigrationNumber, R as listCommand$7, S as listCommand$9, T as resumeCommand, U as tokenCommand, Vt as trnPrefix, W as listCommand$6, Wt as apiCommand, Xt as workspaceArgs, Y as triggerCommand, Yt as withCommonArgs, Z as listCommand$5, _ as deleteCommand$3, a as removeCommand, at as getCommand$3, d as restoreCommand, dt as formatKeyValueTable, et as jobsCommand, ft as getCommand$1, h as getCommand$4, ht as executeScript, jt as getMigrationFilePath, l as inviteCommand, mt as apply, n as queryCommand, p as listCommand$11, qt as deploymentArgs, r as updateCommand$2, rt as startCommand, s as listCommand$10, st as executionsCommand, ut as functionExecutionStatusToString, vt as parseMigrationLabelNumber, w as healthCommand, y as createCommand$3 } from "../query-c9RCJduH.mjs";
|
|
5
|
+
import { C as readPlatformConfig, D as fetchUserInfo, G as FunctionExecution_Type, O as initOAuth2Client, S as loadWorkspaceId, T as fetchAll, X as AuthInvokerSchema, a as loadConfig, c as ExecutorSchema, g as getDistDir, i as resolveInlineSourcemap, k as initOperatorClient, mt as styles, o as WorkflowJobSchema, pt as logger, rt as PATScope, u as ResolverSchema, v as fetchLatestToken, w as writePlatformConfig, y as loadAccessToken } from "../application-CxDvCZts.mjs";
|
|
6
|
+
import { t as readPackageJson } from "../package-json-DnbGCOkg.mjs";
|
|
7
|
+
import "../seed-DkKAheSe.mjs";
|
|
8
|
+
import "../file-utils-C2r3AVbI.mjs";
|
|
9
|
+
import "../kysely-type-DzLBuVp6.mjs";
|
|
10
|
+
import "../telemetry-d_lgTL33.mjs";
|
|
11
11
|
import { createRequire, register } from "node:module";
|
|
12
12
|
import { arg, defineCommand, runCommand, runMain } from "politty";
|
|
13
13
|
import { withCompletionCommand } from "politty/completion";
|