@tailor-platform/sdk 2.11.0 → 2.13.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 +36 -0
- package/dist/application-BFTkaW6X.mjs +1 -0
- package/dist/{application-CcrP-v7z.mjs → application-D3HlhR3i.mjs} +2 -2
- package/dist/{application-CcrP-v7z.mjs.map → application-D3HlhR3i.mjs.map} +1 -1
- package/dist/cli/commands/generate/seed/bundler.d.mts +2 -2
- package/dist/cli/commands/tailordb/migrate/bundler.d.mts +1 -1
- package/dist/cli/commands/workspace/user/remove.d.mts +1 -1
- package/dist/cli/commands/workspace/user/update.d.mts +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/main.mjs +41 -42
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/shared/script-executor.d.mts +2 -2
- package/dist/completion/zsh-worker.zsh +32 -2
- package/dist/kysely-type-B-BOlXH7.mjs +43 -0
- package/dist/kysely-type-B-BOlXH7.mjs.map +1 -0
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/{register-ts-hook-YqgUg8P7.mjs → register-ts-hook-CoZS-8Mx.mjs} +14 -14
- package/dist/register-ts-hook-CoZS-8Mx.mjs.map +1 -0
- package/dist/seed-CMkupmX8.mjs.map +1 -1
- package/dist/service_pb-CFVlGYdr.mjs +1 -0
- package/dist/{service_pb-BNxUPfP3.mjs → service_pb-CxHztLk1.mjs} +2 -2
- package/dist/{service_pb-BNxUPfP3.mjs.map → service_pb-CxHztLk1.mjs.map} +1 -1
- package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +10 -0
- package/dist/workflow-Cs9ISw6j.mjs.map +1 -1
- package/dist/workspace_resource_pb-u9bj6p3i.mjs +2 -0
- package/dist/workspace_resource_pb-u9bj6p3i.mjs.map +1 -0
- package/docs/cli/user.md +84 -21
- package/docs/cli-reference.md +1 -0
- package/package.json +6 -6
- package/dist/application-B4tCGHiQ.mjs +0 -1
- package/dist/kysely-type-CmvAz1Xj.mjs +0 -43
- package/dist/kysely-type-CmvAz1Xj.mjs.map +0 -1
- package/dist/register-ts-hook-YqgUg8P7.mjs.map +0 -1
- package/dist/service_pb-D-xFu9Ub.mjs +0 -1
- package/dist/workspace_resource_pb-B7S-zx4Z.mjs +0 -2
- package/dist/workspace_resource_pb-B7S-zx4Z.mjs.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Seed script bundler for TailorDB seed data
|
|
4
4
|
*
|
|
5
|
-
* Bundles seed scripts
|
|
5
|
+
* Bundles seed scripts for server-side execution
|
|
6
6
|
*/
|
|
7
7
|
type SeedBundleResult = {
|
|
8
8
|
namespace: string;
|
|
@@ -16,7 +16,7 @@ type SeedBundleResult = {
|
|
|
16
16
|
* 1. Defines getDB() function inline
|
|
17
17
|
* 2. Processes data in batches using Kysely
|
|
18
18
|
* 3. Reports progress via console.log
|
|
19
|
-
* 4. Exports
|
|
19
|
+
* 4. Exports main() as the server-side entry point
|
|
20
20
|
* @param namespace - TailorDB namespace
|
|
21
21
|
* @param tableNames - List of table names to include in the seed
|
|
22
22
|
* @param baseDir - Directory whose dependencies and tsconfig the generated entry uses
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
declare const removeUserOptionsSchema: z.ZodObject<{
|
|
4
4
|
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
5
5
|
profile: z.ZodOptional<z.ZodString>;
|
|
6
|
-
email: z.
|
|
6
|
+
email: z.ZodEmail;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
type RemoveUserOptions = z.input<typeof removeUserOptionsSchema>;
|
|
9
9
|
/**
|
package/dist/cli/lib.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as ee,r as e}from"../logger-CCjs1DuH.mjs";import{A as t,
|
|
1
|
+
import{n as ee,r as e}from"../logger-CCjs1DuH.mjs";import{A as t,Ar as n,At as r,B as i,Bn as a,Bt as o,Cn as s,Cr as c,D as l,Et as u,F as d,Fn as f,G as p,Gr as m,Gt as h,H as g,Hn as _,It as v,J as y,Jn as b,Jr as x,Jt as S,Kn as C,Lr as w,Lt as T,M as E,N as D,Ot as O,P as k,Pt as A,Q as j,Qn as M,Qr as N,Qt as P,Rn as F,Rt as I,S as L,St as R,T as z,Tr as B,Tt as V,U as H,Un as U,Ut as W,Vn as G,Vt as K,Xn as q,Xr as J,Y,Yn as X,Yr as Z,Zn as Q,Zr as te,Zt as ne,_ as $,b as re,ct as ie,d as ae,dn as oe,et as se,fr as ce,ft as le,h as ue,ht as de,i as fe,ii as pe,it as me,jt as he,k as ge,kn as _e,l as ve,mr as ye,mt as be,n as xe,nr as Se,nt as Ce,on as we,or as Te,ot as Ee,p as De,pn as Oe,pr as ke,qt as Ae,r as je,rn as Me,s as Ne,sr as Pe,t as Fe,un as Ie,ut as Le,vt as Re,wr as ze,wt as Be,xr as Ve,y as He,yt as Ue,zn as We}from"../register-ts-hook-CoZS-8Mx.mjs";import{Q as Ge}from"../application-D3HlhR3i.mjs";import{t as Ke}from"../type-source--ZNcV8RJ.mjs";import{arg as qe,defineCommand as Je,runCommand as Ye,runMain as Xe}from"politty";await Fe(new URL(`./ts-hook.mjs`,import.meta.url));export{We as DB_TYPES_FILE_NAME,a as DIFF_FILE_NAME,G as INITIAL_SCHEMA_NUMBER,_ as MIGRATE_FILE_NAME,U as MIGRATE_TEST_FILE_NAME,Se as MIGRATION_LABEL_KEY,C as SCHEMA_FILE_NAME,c as apiCall,P as apply,P as deploy,qe as arg,ze as assertWritable,s as bundleMigrationScript,k as bundleSeedScript,D as chunkSeedData,Te as compareLocalTypesWithSnapshot,Pe as compareSnapshots,x as configArg,Z as confirmationArgs,J as createCommonArgs,Le as createFolder,f as createSnapshotFromLocalTypes,we as createWorkspace,m as defineAppCommand,Je as defineCommand,ie as deleteFolder,He as deleteWorkspace,g as deployStaticWebsite,te as deploymentArgs,oe as ensureConfigId,xe as errorToJson,V as executeScript,Be as extractOwnedNamespaces,ce as formatDiffSummary,ke as formatMigrationDiff,Ue as generate,Oe as generateUserTypes,L as getAppHealth,ne as getExecutor,T as getExecutorJob,I as getExecutorWaitFailureMessage,Ee as getFolder,r as getFunctionRegistry,b as getLatestMigrationNumber,de as getMachineUserToken,X as getMigrationDirPath,q as getMigrationFilePath,Q as getMigrationFiles,_e as getNamespacesWithMigrations,M as getNextMigrationNumber,be as getOAuth2Client,se as getOrganization,h as getWorkflow,Ae as getWorkflowExecution,$ as getWorkspace,ye as hasChanges,Ge as initOperatorClient,De as inviteUser,Ke as isPluginGeneratedTable,re as listApps,o as listExecutorJobs,v as listExecutors,me as listFolders,O as listFunctionRegistries,Re as listMachineUsers,le as listOAuth2Clients,j as listOrganizations,ae as listUsers,he as listWebhookExecutors,S as listWorkflowExecutions,ge as listWorkflows,Me as listWorkspaces,n as loadAccessToken,B as loadConfig,N as loadEnvFiles,E as loadSeedContext,R as loadTailorDBNamespaces,w as loadWorkspaceId,i as logBetaWarning,ee as logger,d as migrateGenerate,Y as organizationTree,Ve as prompt,fe as query,F as reconstructSnapshotFromMigrations,p as remove,ve as removeUser,ue as restoreWorkspace,l as resumeWorkflow,Ye as runCommand,Xe as runMain,je as serializeError,H as show,W as startWorkflow,e as styles,A as triggerExecutor,t as truncate,Ce as updateFolder,y as updateOrganization,Ne as updateUser,u as waitForExecution,z as waitWorkflowExecution,K as watchExecutorJob,pe as workspaceArgs,Ie as workspaceNameSchema};
|
|
2
2
|
//# sourceMappingURL=lib.mjs.map
|