@tailor-platform/sdk 1.56.0 → 1.57.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 +20 -0
- package/README.md +0 -23
- package/dist/{application-YHZIkjdy.mjs → application-CdkoGX27.mjs} +37 -4
- package/dist/application-CdkoGX27.mjs.map +1 -0
- package/dist/application-x_mURdR0.mjs +4 -0
- package/dist/cli/erd-viewer-assets/app.js +1181 -0
- package/dist/cli/erd-viewer-assets/index.html +73 -0
- package/dist/cli/erd-viewer-assets/serve.json +13 -0
- package/dist/cli/erd-viewer-assets/styles.css +789 -0
- package/dist/cli/index.mjs +686 -345
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +7 -2
- package/dist/cli/lib.mjs +2 -2
- package/dist/client-DLPEPJ_s.mjs.map +1 -1
- 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-BW3v5XYC.d.mts → index-B61gFI9a.d.mts} +7 -2
- package/dist/{runtime-B8F1nklz.mjs → runtime-1YuaoNr8.mjs} +57 -63
- package/dist/runtime-1YuaoNr8.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-BHdBzgx6.d.mts → workflow.generated-Kz-nQrTf.d.mts} +10 -1
- package/docs/cli/tailordb.md +31 -26
- package/docs/cli-reference.md +2 -2
- package/package.json +1 -3
- package/dist/application-C9-t0qQb.mjs +0 -4
- package/dist/application-YHZIkjdy.mjs.map +0 -1
- package/dist/runtime-B8F1nklz.mjs.map +0 -1
- package/dist/types-BinLwXM9.mjs.map +0 -1
package/dist/cli/lib.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as PluginAttachment, a as TypeSourceInfoEntry, i as TailorDBType } from "../tailordb-BlBGmQK-.mjs";
|
|
2
|
-
import { i as AppConfig } from "../workflow.generated-
|
|
2
|
+
import { i as AppConfig } from "../workflow.generated-Kz-nQrTf.mjs";
|
|
3
3
|
import { B as IdProvider, E as Executor, N as ScheduleTriggerInput, V as OAuth2Client$1, j as IncomingWebhookTrigger, n as Plugin, x as Resolver } from "../plugin-C_FyVSdl.mjs";
|
|
4
4
|
import { n as kyselyTypePlugin } from "../index-CQZVJ5SX.mjs";
|
|
5
5
|
import { n as enumConstantsPlugin } from "../index-CPRnOjjt.mjs";
|
|
@@ -18598,6 +18598,10 @@ declare function initOperatorClient(accessToken: string): Promise<Client<import(
|
|
|
18598
18598
|
type LoadedConfig = AppConfig & {
|
|
18599
18599
|
path: string;
|
|
18600
18600
|
};
|
|
18601
|
+
interface LoadConfigOptions {
|
|
18602
|
+
/** Import cache-busting value for watch-mode reloads. */
|
|
18603
|
+
importNonce?: string;
|
|
18604
|
+
}
|
|
18601
18605
|
declare const GeneratorConfigSchema: z.core.$ZodBranded<z.ZodObject<{
|
|
18602
18606
|
id: z.ZodString;
|
|
18603
18607
|
description: z.ZodString;
|
|
@@ -18617,9 +18621,10 @@ type Generator = z.output<typeof GeneratorConfigSchema>;
|
|
|
18617
18621
|
/**
|
|
18618
18622
|
* Load Tailor configuration file and associated generators and plugins.
|
|
18619
18623
|
* @param configPath - Optional explicit config path
|
|
18624
|
+
* @param options - Optional module import behavior.
|
|
18620
18625
|
* @returns Loaded config, generators, plugins, and config path
|
|
18621
18626
|
*/
|
|
18622
|
-
declare function loadConfig(configPath?: string): Promise<{
|
|
18627
|
+
declare function loadConfig(configPath?: string, options?: LoadConfigOptions): Promise<{
|
|
18623
18628
|
config: LoadedConfig;
|
|
18624
18629
|
generators: Generator[];
|
|
18625
18630
|
plugins: Plugin[];
|
package/dist/cli/lib.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { d as initOperatorClient } from "../client-DLPEPJ_s.mjs";
|
|
3
|
-
import { $t as compareSnapshots, A as truncate, Bt as getExecutor, Ct as triggerExecutor, D as resumeWorkflow, Et as getExecutorJob, Ft as getWorkflowExecution, G as organizationTree, Ht as executeScript, It as listWorkflowExecutions, J as listOrganizations, Jt as DIFF_FILE_NAME, Kt as bundleMigrationScript, M as generate$1, Nt as getWorkflow, Ot as listExecutorJobs, Q as updateFolder, Qt as compareLocalTypesWithSnapshot, R as show, S as listApps, Tt as listExecutors, Ut as waitForExecution, V as remove, Vt as deploy, W as updateOrganization, Wt as MIGRATION_LABEL_KEY, X as getOrganization, Xt as MIGRATE_FILE_NAME, Yt as INITIAL_SCHEMA_NUMBER, Zt as SCHEMA_FILE_NAME, _ as getWorkspace, _t as listFunctionRegistries, a as updateUser, an as getNextMigrationNumber, bt as listWebhookExecutors, cn as reconstructSnapshotFromMigrations, ct as listOAuth2Clients, d as inviteUser, dn as formatMigrationDiff, dt as getMachineUserToken, en as createSnapshotFromLocalTypes, et as listFolders, fn as hasChanges,
|
|
4
|
-
import {
|
|
3
|
+
import { $t as compareSnapshots, A as truncate, Bt as getExecutor, Ct as triggerExecutor, D as resumeWorkflow, Et as getExecutorJob, Ft as getWorkflowExecution, G as organizationTree, Ht as executeScript, It as listWorkflowExecutions, J as listOrganizations, Jt as DIFF_FILE_NAME, Kt as bundleMigrationScript, M as generate$1, Nt as getWorkflow, Ot as listExecutorJobs, Q as updateFolder, Qt as compareLocalTypesWithSnapshot, R as show, S as listApps, Tt as listExecutors, Ut as waitForExecution, V as remove, Vt as deploy, W as updateOrganization, Wt as MIGRATION_LABEL_KEY, X as getOrganization, Xt as MIGRATE_FILE_NAME, Yt as INITIAL_SCHEMA_NUMBER, Zt as SCHEMA_FILE_NAME, _ as getWorkspace, _n as generateUserTypes, _t as listFunctionRegistries, a as updateUser, an as getNextMigrationNumber, bn as apiCall, bt as listWebhookExecutors, cn as reconstructSnapshotFromMigrations, ct as listOAuth2Clients, d as inviteUser, dn as formatMigrationDiff, dt as getMachineUserToken, en as createSnapshotFromLocalTypes, et as listFolders, fn as hasChanges, h as listWorkspaces, ht as generate, in as getMigrationFiles, it as deleteFolder, jt as startWorkflow, k as listWorkflows, kt as watchExecutorJob, l as listUsers, mt as listMachineUsers, n as query, nn as getMigrationDirPath, nt as getFolder, ot as createFolder, p as restoreWorkspace, pn as getNamespacesWithMigrations, qt as DB_TYPES_FILE_NAME, rn as getMigrationFilePath, s as removeUser, t as isNativeTypeScriptRuntime, tn as getLatestMigrationNumber, un as formatDiffSummary, ut as getOAuth2Client, w as getAppHealth, x as createWorkspace, y as deleteWorkspace, yt as getFunctionRegistry } from "../runtime-1YuaoNr8.mjs";
|
|
4
|
+
import { C as loadConfig, E as loadAccessToken, O as loadWorkspaceId, b as getDistDir } from "../application-CdkoGX27.mjs";
|
|
5
5
|
import { n as enumConstantsPlugin } from "../enum-constants-C7DaWeQo.mjs";
|
|
6
6
|
import { t as multiline } from "../multiline-Cf9ODpr1.mjs";
|
|
7
7
|
import { n as fileUtilsPlugin } from "../file-utils-BHPxPXmn.mjs";
|