@tailor-platform/sdk 1.37.0 → 1.39.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 +66 -0
- package/dist/application-C1ipG5Q6.mjs +4 -0
- package/dist/{application-qRGMV8Tr.mjs → application-DhQrXEld.mjs} +13 -5
- package/dist/{application-qRGMV8Tr.mjs.map → application-DhQrXEld.mjs.map} +1 -1
- package/dist/cli/index.mjs +364 -123
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +6 -6
- package/dist/cli/lib.mjs +3 -3
- package/dist/{client-424n_3T9.mjs → client-BWAbbA1C.mjs} +1 -1
- package/dist/{client-DllDLYmZ.mjs → client-xzPXtc_e.mjs} +9 -3
- package/dist/{client-DllDLYmZ.mjs.map → client-xzPXtc_e.mjs.map} +1 -1
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +4 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{crash-report-aHnky_xH.mjs → crash-report-BEAiCSCl.mjs} +1 -1
- package/dist/{crash-report-CDQ2JvgR.mjs → crash-report-DXhPL8Ue.mjs} +3 -3
- package/dist/{crash-report-CDQ2JvgR.mjs.map → crash-report-DXhPL8Ue.mjs.map} +1 -1
- package/dist/{env-04IQXqsl.d.mts → env-CgI46oPS.d.mts} +2 -2
- package/dist/errors-D9f2UJpT.mjs +43 -0
- package/dist/errors-D9f2UJpT.mjs.map +1 -0
- package/dist/{index-BVJQLjyN.d.mts → index-31hm0Fq7.d.mts} +23 -6
- package/dist/{index-DnIg_LfT.d.mts → index-B2tsEXdh.d.mts} +2 -2
- package/dist/{index-C3kcXHXJ.d.mts → index-DbzopC7M.d.mts} +2 -2
- package/dist/{index-CeS4FA9o.d.mts → index-DeBFa7oc.d.mts} +2 -2
- package/dist/{index-BUT18Kak.d.mts → index-y5790SX_.d.mts} +2 -2
- package/dist/{interceptor-dSNiQq71.mjs → interceptor-CzaH2Ur6.mjs} +1 -1
- package/dist/{interceptor-dSNiQq71.mjs.map → interceptor-CzaH2Ur6.mjs.map} +1 -1
- package/dist/{logger-C8qBDCKO.mjs → logger-5_JMzHmw.mjs} +42 -3
- package/dist/logger-5_JMzHmw.mjs.map +1 -0
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/index.d.mts +2 -2
- package/dist/{plugin-D6P4g_2L.d.mts → plugin-_K3ZfP8B.d.mts} +18 -3
- package/dist/{runtime-D9ejnCm6.mjs → runtime-DtSOnOHh.mjs} +32 -54
- package/dist/runtime-DtSOnOHh.mjs.map +1 -0
- package/dist/service-Bcp6JB3w.mjs +132 -0
- package/dist/service-Bcp6JB3w.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/utils/test/index.mjs +6 -2
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/{workflow.generated-Bj_DVqGh.d.mts → workflow.generated-BxbnuzAE.d.mts} +2 -2
- package/docs/cli/function.md +42 -16
- package/docs/cli/upgrade.md +51 -0
- package/docs/cli/user.md +1 -1
- package/docs/cli/workflow.md +10 -10
- package/docs/cli-reference.md +24 -14
- package/docs/configuration.md +9 -7
- package/docs/generator/index.md +10 -0
- package/docs/services/executor.md +39 -0
- package/docs/services/tailordb.md +20 -0
- package/package.json +7 -7
- package/dist/application-ILhZq_oW.mjs +0 -4
- package/dist/logger-C8qBDCKO.mjs.map +0 -1
- package/dist/runtime-D9ejnCm6.mjs.map +0 -1
package/dist/cli/lib.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { C as TailorDBType,
|
|
3
|
-
import { n as AppConfig } from "../workflow.generated-
|
|
4
|
-
import { n as kyselyTypePlugin } from "../index-
|
|
5
|
-
import { n as enumConstantsPlugin } from "../index-
|
|
6
|
-
import { n as fileUtilsPlugin } from "../index-
|
|
7
|
-
import { n as seedPlugin } from "../index-
|
|
2
|
+
import { C as TailorDBType, Dt as IncomingWebhookTrigger, It as IdProvider, Lt as OAuth2ClientInput, St as Executor, kt as ScheduleTriggerInput, n as Plugin, r as PluginAttachment, vt as Resolver, w as TypeSourceInfoEntry } from "../plugin-_K3ZfP8B.mjs";
|
|
3
|
+
import { n as AppConfig } from "../workflow.generated-BxbnuzAE.mjs";
|
|
4
|
+
import { n as kyselyTypePlugin } from "../index-y5790SX_.mjs";
|
|
5
|
+
import { n as enumConstantsPlugin } from "../index-DeBFa7oc.mjs";
|
|
6
|
+
import { n as fileUtilsPlugin } from "../index-DbzopC7M.mjs";
|
|
7
|
+
import { n as seedPlugin } from "../index-B2tsEXdh.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { OAuth2Client } from "@badgateway/oauth2-client";
|
|
10
10
|
import { Duration, FieldMask, Timestamp, Value } from "@bufbuild/protobuf/wkt";
|
package/dist/cli/lib.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { u as initOperatorClient } from "../client-
|
|
3
|
-
import {
|
|
4
|
-
import { a as loadConfig, b as loadAccessToken, g as getDistDir, x as loadWorkspaceId } from "../application-
|
|
2
|
+
import { u as initOperatorClient } from "../client-xzPXtc_e.mjs";
|
|
3
|
+
import { A as truncate, B as updateOrganization, Bt as DIFF_FILE_NAME, Ct as startWorkflow, D as resumeWorkflow, Dt as getWorkflowExecution, Ft as waitForExecution, Gt as compareSnapshots, Ht as MIGRATE_FILE_NAME, It as MIGRATION_LABEL_KEY, J as updateFolder, Jt as getLatestMigrationNumber, K as getOrganization, Kt as createSnapshotFromLocalTypes, L as remove, M as generate$1, Mt as getExecutor, Nt as apply, Ot as listWorkflowExecutions, P as show, Pt as executeScript, Q as getFolder, Qt as getNextMigrationNumber, Rt as bundleMigrationScript, S as listApps, Tt as getWorkflow, Ut as SCHEMA_FILE_NAME, V as organizationTree, Vt as INITIAL_SCHEMA_NUMBER, W as listOrganizations, Wt as compareLocalTypesWithSnapshot, X as listFolders, Xt as getMigrationFilePath, Yt as getMigrationDirPath, Zt as getMigrationFiles, _ as getWorkspace, _t as listExecutors, a as updateUser, an as getNamespacesWithMigrations, bt as listExecutorJobs, d as inviteUser, dt as generate, et as deleteFolder, ft as listWebhookExecutors, h as listWorkspaces, ht as triggerExecutor, in as hasChanges, it as listOAuth2Clients, k as listWorkflows, l as listUsers, ln as generateUserTypes, n as query, nn as formatDiffSummary, nt as createFolder, ot as getOAuth2Client, p as restoreWorkspace, rn as formatMigrationDiff, s as removeUser, st as getMachineUserToken, t as isNativeTypeScriptRuntime, tn as reconstructSnapshotFromMigrations, un as apiCall, ut as listMachineUsers, vt as getExecutorJob, w as getAppHealth, x as createWorkspace, xt as watchExecutorJob, y as deleteWorkspace, zt as DB_TYPES_FILE_NAME } from "../runtime-DtSOnOHh.mjs";
|
|
4
|
+
import { a as loadConfig, b as loadAccessToken, g as getDistDir, x as loadWorkspaceId } from "../application-DhQrXEld.mjs";
|
|
5
5
|
import { n as seedPlugin } from "../seed-DrbB1VXd.mjs";
|
|
6
6
|
import { n as enumConstantsPlugin } from "../enum-constants-Dx82rSjf.mjs";
|
|
7
7
|
import { n as fileUtilsPlugin } from "../file-utils-DeWpvq3T.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as fetchMachineUserToken, c as formatRequestParams, d as parseMethodName, f as platformBaseUrl, i as fetchAll, l as initOAuth2Client, m as userAgent, n as closeConnectionPool, o as fetchPlatformMachineUserToken, p as resolveStaticWebsiteUrls, r as createTransport, s as fetchUserInfo, t as MAX_PAGE_SIZE, u as initOperatorClient } from "./client-
|
|
2
|
+
import { a as fetchMachineUserToken, c as formatRequestParams, d as parseMethodName, f as platformBaseUrl, i as fetchAll, l as initOAuth2Client, m as userAgent, n as closeConnectionPool, o as fetchPlatformMachineUserToken, p as resolveStaticWebsiteUrls, r as createTransport, s as fetchUserInfo, t as MAX_PAGE_SIZE, u as initOperatorClient } from "./client-xzPXtc_e.mjs";
|
|
3
3
|
|
|
4
4
|
export { userAgent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as logger } from "./logger-
|
|
2
|
+
import { n as logger } from "./logger-5_JMzHmw.mjs";
|
|
3
3
|
import { t as readPackageJson } from "./package-json-BHViVisJ.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -4241,6 +4241,12 @@ var require_util$6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4241
4241
|
if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) return "no-referrer";
|
|
4242
4242
|
return referrerOrigin;
|
|
4243
4243
|
}
|
|
4244
|
+
/**
|
|
4245
|
+
* 1. If referrerURL is a potentially trustworthy URL and
|
|
4246
|
+
* request’s current URL is not a potentially trustworthy URL,
|
|
4247
|
+
* then return no referrer.
|
|
4248
|
+
* 2. Return referrerOrigin
|
|
4249
|
+
*/
|
|
4244
4250
|
default: return isNonPotentiallyTrustWorthy ? "no-referrer" : referrerOrigin;
|
|
4245
4251
|
}
|
|
4246
4252
|
}
|
|
@@ -16113,7 +16119,7 @@ function initOAuth2Client() {
|
|
|
16113
16119
|
* @returns Configured Operator client
|
|
16114
16120
|
*/
|
|
16115
16121
|
async function initOperatorClient(accessToken) {
|
|
16116
|
-
const { createTracingInterceptor } = await import("./interceptor-
|
|
16122
|
+
const { createTracingInterceptor } = await import("./interceptor-CzaH2Ur6.mjs");
|
|
16117
16123
|
return createClient(OperatorService, await createTransport(platformBaseUrl, [
|
|
16118
16124
|
await userAgentInterceptor(),
|
|
16119
16125
|
await bearerTokenInterceptor(accessToken),
|
|
@@ -16393,4 +16399,4 @@ async function closeConnectionPool() {
|
|
|
16393
16399
|
|
|
16394
16400
|
//#endregion
|
|
16395
16401
|
export { ExecutorJobStatus as A, AuthSCIMAttribute_Type as B, TailorDBType_PermitAction as C, IdPPermissionPermit as D, IdPPermissionOperator as E, AuthIDPConfig_AuthType as F, UserProfileProviderConfig_UserProfileProviderType as G, AuthSCIMConfig_AuthorizationType as H, AuthInvokerSchema as I, Condition_Operator as J, GetApplicationSchemaHealthResponse_ApplicationSchemaHealthStatus as K, AuthOAuth2Client_ClientType as L, ExecutorTriggerType as M, AuthConnection_Type as N, FunctionExecution_Status as O, AuthHookPoint as P, Subgraph_ServiceType as Q, AuthOAuth2Client_GrantType as R, TailorDBType_Permission_Permit as S, IdPLang as T, PATScope as U, AuthSCIMAttribute_Uniqueness as V, TenantProviderConfig_TenantProviderType as W, PageDirection as X, FilterSchema as Y, ApplicationSchemaUpdateAttemptStatus as Z, WorkflowJobExecution_Status as _, fetchMachineUserToken as a, TailorDBGQLPermission_Permit as b, formatRequestParams as c, parseMethodName as d, platformBaseUrl as f, WorkflowExecution_Status as g, WorkspacePlatformUserRole as h, fetchAll as i, ExecutorTargetType as j, FunctionExecution_Type as k, initOAuth2Client as l, userAgent as m, closeConnectionPool as n, fetchPlatformMachineUserToken as o, resolveStaticWebsiteUrls as p, ConditionSchema as q, createTransport as r, fetchUserInfo as s, MAX_PAGE_SIZE as t, initOperatorClient as u, TailorDBGQLPermission_Action as v, PipelineResolver_OperationType as w, TailorDBType_Permission_Operator as x, TailorDBGQLPermission_Operator as y, AuthSCIMAttribute_Mutability as z };
|
|
16396
|
-
//# sourceMappingURL=client-
|
|
16402
|
+
//# sourceMappingURL=client-xzPXtc_e.mjs.map
|