@tailor-platform/sdk 1.6.3 → 1.7.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 +14 -0
- package/dist/{application-4cO5Zvfo.mjs → application-Ba2B5A-w.mjs} +71 -36
- package/dist/application-Ba2B5A-w.mjs.map +1 -0
- package/dist/application-C_MQabII.mjs +5 -0
- package/dist/{auth-0Zh4xp4z.mjs → auth-Co6vu1MY.mjs} +9 -2
- package/dist/{auth-0Zh4xp4z.mjs.map → auth-Co6vu1MY.mjs.map} +1 -1
- package/dist/cli/index.mjs +23 -10
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +128 -20
- package/dist/cli/lib.mjs +4 -4
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/configure/index.mjs +1 -1
- package/dist/{index-DRFnAgt_.d.mts → index-BSrVjiPg.d.mts} +3 -3
- package/dist/{index-BqMqXRal.d.mts → index-DraFftyF.d.mts} +12 -12
- package/dist/{list-DFvkudMF.mjs → list-DArHhlnw.mjs} +3012 -2338
- package/dist/list-DArHhlnw.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/docs/cli/executor.md +117 -0
- package/docs/cli-reference.md +9 -0
- package/package.json +1 -1
- package/dist/application-3rIUD7cq.mjs +0 -5
- package/dist/application-4cO5Zvfo.mjs.map +0 -1
- package/dist/list-DFvkudMF.mjs.map +0 -1
package/dist/cli/lib.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference path="./../user-defined.d.ts" />
|
|
2
|
-
import { L as IdProviderConfig, N as ParsedTailorDBType, _t as Resolver, h as Executor, r as AppConfig, t as Generator, z as OAuth2ClientInput } from "../index-
|
|
2
|
+
import { L as IdProviderConfig, N as ParsedTailorDBType, _t as Resolver, h as Executor, r as AppConfig, t as Generator, z as OAuth2ClientInput } from "../index-DraFftyF.mjs";
|
|
3
3
|
import "politty";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { OAuth2Client } from "@badgateway/oauth2-client";
|
|
6
6
|
import "@bufbuild/protobuf/wkt";
|
|
7
7
|
import "@connectrpc/connect";
|
|
8
8
|
import "@bufbuild/protobuf/codegenv2";
|
|
9
|
-
import "@bufbuild/protobuf";
|
|
9
|
+
import { JsonObject } from "@bufbuild/protobuf";
|
|
10
10
|
import { Jsonifiable } from "type-fest";
|
|
11
11
|
|
|
12
12
|
//#region src/cli/config-loader.d.ts
|
|
@@ -194,6 +194,11 @@ interface ShowOptions {
|
|
|
194
194
|
profile?: string;
|
|
195
195
|
configPath?: string;
|
|
196
196
|
}
|
|
197
|
+
interface WorkspaceInfo$1 {
|
|
198
|
+
workspaceId: string;
|
|
199
|
+
workspaceName: string;
|
|
200
|
+
workspaceRegion?: string;
|
|
201
|
+
}
|
|
197
202
|
interface ApplicationInfo {
|
|
198
203
|
name: string;
|
|
199
204
|
domain: string;
|
|
@@ -202,15 +207,16 @@ interface ApplicationInfo {
|
|
|
202
207
|
cors: string[];
|
|
203
208
|
allowedIpAddresses: string[];
|
|
204
209
|
disableIntrospection: boolean;
|
|
205
|
-
createdAt:
|
|
206
|
-
updatedAt:
|
|
210
|
+
createdAt: Date | null;
|
|
211
|
+
updatedAt: Date | null;
|
|
207
212
|
}
|
|
213
|
+
interface ShowInfo extends ApplicationInfo, WorkspaceInfo$1 {}
|
|
208
214
|
/**
|
|
209
215
|
* Show applied application information for the current workspace.
|
|
210
216
|
* @param options - Show options
|
|
211
217
|
* @returns Application information
|
|
212
218
|
*/
|
|
213
|
-
declare function show(options?: ShowOptions): Promise<
|
|
219
|
+
declare function show(options?: ShowOptions): Promise<ShowInfo>;
|
|
214
220
|
//#endregion
|
|
215
221
|
//#region src/cli/remove.d.ts
|
|
216
222
|
interface RemoveOptions {
|
|
@@ -230,8 +236,8 @@ interface WorkspaceInfo {
|
|
|
230
236
|
id: string;
|
|
231
237
|
name: string;
|
|
232
238
|
region: string;
|
|
233
|
-
createdAt:
|
|
234
|
-
updatedAt:
|
|
239
|
+
createdAt: Date | null;
|
|
240
|
+
updatedAt: Date | null;
|
|
235
241
|
}
|
|
236
242
|
//#endregion
|
|
237
243
|
//#region src/cli/workspace/create.d.ts
|
|
@@ -288,8 +294,8 @@ interface MachineUserInfo {
|
|
|
288
294
|
name: string;
|
|
289
295
|
clientId: string;
|
|
290
296
|
clientSecret: string;
|
|
291
|
-
createdAt:
|
|
292
|
-
updatedAt:
|
|
297
|
+
createdAt: Date | null;
|
|
298
|
+
updatedAt: Date | null;
|
|
293
299
|
}
|
|
294
300
|
/**
|
|
295
301
|
* List machine users for the current application.
|
|
@@ -324,7 +330,7 @@ interface OAuth2ClientInfo {
|
|
|
324
330
|
clientId: string;
|
|
325
331
|
grantTypes: string[];
|
|
326
332
|
redirectUris: string[];
|
|
327
|
-
createdAt:
|
|
333
|
+
createdAt: Date | null;
|
|
328
334
|
}
|
|
329
335
|
interface OAuth2ClientCredentials {
|
|
330
336
|
name: string;
|
|
@@ -333,7 +339,7 @@ interface OAuth2ClientCredentials {
|
|
|
333
339
|
clientSecret: string;
|
|
334
340
|
grantTypes: string[];
|
|
335
341
|
redirectUris: string[];
|
|
336
|
-
createdAt:
|
|
342
|
+
createdAt: Date | null;
|
|
337
343
|
}
|
|
338
344
|
//#endregion
|
|
339
345
|
//#region src/cli/oauth2client/get.d.ts
|
|
@@ -368,31 +374,31 @@ interface WorkflowListInfo {
|
|
|
368
374
|
name: string;
|
|
369
375
|
mainJob: string;
|
|
370
376
|
jobFunctions: number;
|
|
371
|
-
updatedAt:
|
|
377
|
+
updatedAt: Date | null;
|
|
372
378
|
}
|
|
373
379
|
interface WorkflowInfo {
|
|
374
380
|
name: string;
|
|
375
381
|
id: string;
|
|
376
382
|
mainJob: string;
|
|
377
|
-
jobFunctions: string
|
|
378
|
-
createdAt:
|
|
379
|
-
updatedAt:
|
|
383
|
+
jobFunctions: Record<string, string>;
|
|
384
|
+
createdAt: Date | null;
|
|
385
|
+
updatedAt: Date | null;
|
|
380
386
|
}
|
|
381
387
|
interface WorkflowJobExecutionInfo {
|
|
382
388
|
id: string;
|
|
383
389
|
stackedJobName: string;
|
|
384
390
|
status: string;
|
|
385
391
|
executionId: string;
|
|
386
|
-
startedAt:
|
|
387
|
-
finishedAt:
|
|
392
|
+
startedAt: Date | null;
|
|
393
|
+
finishedAt: Date | null;
|
|
388
394
|
}
|
|
389
395
|
interface WorkflowExecutionInfo {
|
|
390
396
|
id: string;
|
|
391
397
|
workflowName: string;
|
|
392
398
|
status: string;
|
|
393
399
|
jobExecutions: number;
|
|
394
|
-
startedAt:
|
|
395
|
-
finishedAt:
|
|
400
|
+
startedAt: Date | null;
|
|
401
|
+
finishedAt: Date | null;
|
|
396
402
|
}
|
|
397
403
|
//#endregion
|
|
398
404
|
//#region src/cli/workflow/list.d.ts
|
|
@@ -499,6 +505,108 @@ interface ResumeWorkflowResultWithWait {
|
|
|
499
505
|
*/
|
|
500
506
|
declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
|
|
501
507
|
//#endregion
|
|
508
|
+
//#region src/cli/executor/trigger.d.ts
|
|
509
|
+
interface TriggerExecutorOptions {
|
|
510
|
+
executorName: string;
|
|
511
|
+
payload?: JsonObject;
|
|
512
|
+
workspaceId?: string;
|
|
513
|
+
profile?: string;
|
|
514
|
+
}
|
|
515
|
+
interface TriggerExecutorResult {
|
|
516
|
+
jobId?: string;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Trigger an executor and return the job ID.
|
|
520
|
+
* @param options - Options for triggering executor
|
|
521
|
+
* @returns Result containing the job ID if available
|
|
522
|
+
*/
|
|
523
|
+
declare function triggerExecutor(options: TriggerExecutorOptions): Promise<TriggerExecutorResult>;
|
|
524
|
+
//#endregion
|
|
525
|
+
//#region src/cli/executor/transform.d.ts
|
|
526
|
+
interface ExecutorJobListInfo {
|
|
527
|
+
id: string;
|
|
528
|
+
executorName: string;
|
|
529
|
+
status: string;
|
|
530
|
+
createdAt: string;
|
|
531
|
+
}
|
|
532
|
+
interface ExecutorJobInfo {
|
|
533
|
+
id: string;
|
|
534
|
+
executorName: string;
|
|
535
|
+
status: string;
|
|
536
|
+
scheduledAt: string;
|
|
537
|
+
createdAt: string;
|
|
538
|
+
updatedAt: string;
|
|
539
|
+
}
|
|
540
|
+
interface ExecutorJobAttemptInfo {
|
|
541
|
+
id: string;
|
|
542
|
+
jobId: string;
|
|
543
|
+
status: string;
|
|
544
|
+
error: string;
|
|
545
|
+
startedAt: string;
|
|
546
|
+
finishedAt: string;
|
|
547
|
+
operationReference: string;
|
|
548
|
+
}
|
|
549
|
+
//#endregion
|
|
550
|
+
//#region src/cli/executor/jobs.d.ts
|
|
551
|
+
interface ListExecutorJobsOptions {
|
|
552
|
+
executorName: string;
|
|
553
|
+
status?: string;
|
|
554
|
+
limit?: number;
|
|
555
|
+
workspaceId?: string;
|
|
556
|
+
profile?: string;
|
|
557
|
+
}
|
|
558
|
+
interface GetExecutorJobOptions {
|
|
559
|
+
executorName: string;
|
|
560
|
+
jobId: string;
|
|
561
|
+
attempts?: boolean;
|
|
562
|
+
workspaceId?: string;
|
|
563
|
+
profile?: string;
|
|
564
|
+
}
|
|
565
|
+
interface WatchExecutorJobOptions {
|
|
566
|
+
executorName: string;
|
|
567
|
+
jobId: string;
|
|
568
|
+
workspaceId?: string;
|
|
569
|
+
profile?: string;
|
|
570
|
+
interval?: number;
|
|
571
|
+
logs?: boolean;
|
|
572
|
+
}
|
|
573
|
+
interface ExecutorJobDetailInfo extends ExecutorJobInfo {
|
|
574
|
+
attempts?: ExecutorJobAttemptInfo[];
|
|
575
|
+
}
|
|
576
|
+
interface WorkflowJobLog {
|
|
577
|
+
jobName: string;
|
|
578
|
+
logs?: string;
|
|
579
|
+
result?: string;
|
|
580
|
+
}
|
|
581
|
+
interface WatchExecutorJobResult {
|
|
582
|
+
job: ExecutorJobDetailInfo;
|
|
583
|
+
targetType: string;
|
|
584
|
+
workflowExecutionId?: string;
|
|
585
|
+
workflowStatus?: string;
|
|
586
|
+
workflowJobLogs?: WorkflowJobLog[];
|
|
587
|
+
functionExecutionId?: string;
|
|
588
|
+
functionStatus?: string;
|
|
589
|
+
functionLogs?: string;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* List executor jobs for a given executor.
|
|
593
|
+
* @param options - Options for listing executor jobs
|
|
594
|
+
* @returns List of executor job information
|
|
595
|
+
*/
|
|
596
|
+
declare function listExecutorJobs(options: ListExecutorJobsOptions): Promise<ExecutorJobListInfo[]>;
|
|
597
|
+
/**
|
|
598
|
+
* Get details of a specific executor job.
|
|
599
|
+
* @param options - Options for getting executor job details
|
|
600
|
+
* @returns Executor job detail information
|
|
601
|
+
*/
|
|
602
|
+
declare function getExecutorJob(options: GetExecutorJobOptions): Promise<ExecutorJobDetailInfo>;
|
|
603
|
+
/**
|
|
604
|
+
* Watch an executor job until completion, including downstream executions.
|
|
605
|
+
* @param options - Options for watching executor job
|
|
606
|
+
* @returns Result including job details and downstream execution info
|
|
607
|
+
*/
|
|
608
|
+
declare function watchExecutorJob(options: WatchExecutorJobOptions): Promise<WatchExecutorJobResult>;
|
|
609
|
+
//#endregion
|
|
502
610
|
//#region src/cli/context.d.ts
|
|
503
611
|
type LoadWorkspaceIdOptions = {
|
|
504
612
|
workspaceId?: string;
|
|
@@ -821,5 +929,5 @@ interface NamespaceWithMigrations {
|
|
|
821
929
|
*/
|
|
822
930
|
declare function getNamespacesWithMigrations(config: AppConfig, configDir: string): NamespaceWithMigrations[];
|
|
823
931
|
//#endregion
|
|
824
|
-
export { type AggregateArgs, type ApiCallOptions, type ApiCallResult, type ApplicationInfo, type ApplyOptions, type BreakingChangeInfo, type CodeGenerator, type CreateWorkspaceOptions, DB_TYPES_FILE_NAME, DIFF_FILE_NAME, type DeleteWorkspaceOptions, type DependencyKind, type Executor, type ExecutorGenerator, type ExecutorInput, type FullCodeGenerator, type FullInput, type GenerateOptions, type GeneratorResult, type GetMachineUserTokenOptions, type GetOAuth2ClientOptions, type GetWorkflowExecutionOptions, type GetWorkflowExecutionResult, type GetWorkflowOptions, INITIAL_SCHEMA_NUMBER, type ListMachineUsersOptions, type ListOAuth2ClientsOptions, type ListWorkflowExecutionsOptions, type ListWorkflowsOptions, type ListWorkspacesOptions, type LoadedConfig, MIGRATE_FILE_NAME, MIGRATION_LABEL_KEY, type MachineUserInfo, type MachineUserTokenInfo, type GenerateOptions$1 as MigrateGenerateOptions, type MigrationDiff, type MigrationInfo, type NamespaceWithMigrations, type OAuth2ClientCredentials, type OAuth2ClientInfo, type RemoveOptions, type Resolver, type ResolverGenerator, type ResolverInput, type ResumeWorkflowOptions, type ResumeWorkflowResultWithWait, SCHEMA_FILE_NAME, type SchemaSnapshot, type ShowOptions, type SnapshotFieldConfig, type SnapshotType, type StartWorkflowOptions, type StartWorkflowResultWithWait, type TailorDBGenerator, type TailorDBInput, type TailorDBResolverGenerator, type ParsedTailorDBType as TailorDBType, type TruncateOptions, type WaitOptions, type WorkflowExecutionInfo, type WorkflowInfo, type WorkflowJobExecutionInfo, type WorkflowListInfo, type WorkspaceInfo, apiCall, apply, compareLocalTypesWithSnapshot, compareSnapshots, createSnapshotFromLocalTypes, createWorkspace, deleteWorkspace, formatDiffSummary, formatMigrationDiff, generate, generateUserTypes, getLatestMigrationNumber, getMachineUserToken, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNamespacesWithMigrations, getNextMigrationNumber, getOAuth2Client, getWorkflow, getWorkflowExecution, hasChanges, listMachineUsers, listOAuth2Clients, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadWorkspaceId, generate$1 as migrateGenerate, reconstructSnapshotFromMigrations, remove, resumeWorkflow, show, startWorkflow, truncate };
|
|
932
|
+
export { type AggregateArgs, type ApiCallOptions, type ApiCallResult, type ApplicationInfo, type ApplyOptions, type BreakingChangeInfo, type CodeGenerator, type CreateWorkspaceOptions, DB_TYPES_FILE_NAME, DIFF_FILE_NAME, type DeleteWorkspaceOptions, type DependencyKind, type Executor, type ExecutorGenerator, type ExecutorInput, type ExecutorJobAttemptInfo, type ExecutorJobDetailInfo, type ExecutorJobInfo, type ExecutorJobListInfo, type FullCodeGenerator, type FullInput, type GenerateOptions, type GeneratorResult, type GetExecutorJobOptions, type GetMachineUserTokenOptions, type GetOAuth2ClientOptions, type GetWorkflowExecutionOptions, type GetWorkflowExecutionResult, type GetWorkflowOptions, INITIAL_SCHEMA_NUMBER, type ListExecutorJobsOptions, type ListMachineUsersOptions, type ListOAuth2ClientsOptions, type ListWorkflowExecutionsOptions, type ListWorkflowsOptions, type ListWorkspacesOptions, type LoadedConfig, MIGRATE_FILE_NAME, MIGRATION_LABEL_KEY, type MachineUserInfo, type MachineUserTokenInfo, type GenerateOptions$1 as MigrateGenerateOptions, type MigrationDiff, type MigrationInfo, type NamespaceWithMigrations, type OAuth2ClientCredentials, type OAuth2ClientInfo, type RemoveOptions, type Resolver, type ResolverGenerator, type ResolverInput, type ResumeWorkflowOptions, type ResumeWorkflowResultWithWait, SCHEMA_FILE_NAME, type SchemaSnapshot, type ShowOptions, type SnapshotFieldConfig, type SnapshotType, type StartWorkflowOptions, type StartWorkflowResultWithWait, type TailorDBGenerator, type TailorDBInput, type TailorDBResolverGenerator, type ParsedTailorDBType as TailorDBType, type TriggerExecutorOptions, type TriggerExecutorResult, type TruncateOptions, type WaitOptions, type WatchExecutorJobOptions, type WatchExecutorJobResult, type WorkflowExecutionInfo, type WorkflowInfo, type WorkflowJobExecutionInfo, type WorkflowListInfo, type WorkspaceInfo, apiCall, apply, compareLocalTypesWithSnapshot, compareSnapshots, createSnapshotFromLocalTypes, createWorkspace, deleteWorkspace, formatDiffSummary, formatMigrationDiff, generate, generateUserTypes, getExecutorJob, getLatestMigrationNumber, getMachineUserToken, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNamespacesWithMigrations, getNextMigrationNumber, getOAuth2Client, getWorkflow, getWorkflowExecution, hasChanges, listExecutorJobs, listMachineUsers, listOAuth2Clients, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadWorkspaceId, generate$1 as migrateGenerate, reconstructSnapshotFromMigrations, remove, resumeWorkflow, show, startWorkflow, triggerExecutor, truncate, watchExecutorJob };
|
|
825
933
|
//# sourceMappingURL=lib.d.mts.map
|
package/dist/cli/lib.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-CIV_ash9.mjs";
|
|
2
|
-
import "../auth-
|
|
3
|
-
import { $ as
|
|
4
|
-
import "../application-
|
|
2
|
+
import "../auth-Co6vu1MY.mjs";
|
|
3
|
+
import { $ as compareSnapshots, C as getOAuth2Client, D as listMachineUsers, F as watchExecutorJob, G as MIGRATION_LABEL_KEY, H as listWorkflowExecutions, J as DIFF_FILE_NAME, L as startWorkflow, M as getExecutorJob, O as generate, P as listExecutorJobs, Q as compareLocalTypesWithSnapshot, U as apply, V as getWorkflowExecution, X as MIGRATE_FILE_NAME, Y as INITIAL_SCHEMA_NUMBER, Z as SCHEMA_FILE_NAME, _t as apiCall, at as getMigrationFiles, bt as loadAccessToken, c as resumeWorkflow, d as truncate, dt as formatMigrationDiff, et as createSnapshotFromLocalTypes, ft as hasChanges, g as show, gt as loadConfig, ht as generateUserTypes, i as deleteWorkspace, it as getMigrationFilePath, j as triggerExecutor, lt as reconstructSnapshotFromMigrations, n as listWorkspaces, nt as getLatestMigrationNumber, o as createWorkspace, ot as getNextMigrationNumber, p as generate$1, pt as getNamespacesWithMigrations, q as DB_TYPES_FILE_NAME, rt as getMigrationDirPath, u as listWorkflows, ut as formatDiffSummary, v as remove, w as getMachineUserToken, x as listOAuth2Clients, xt as loadWorkspaceId, z as getWorkflow } from "../list-DArHhlnw.mjs";
|
|
4
|
+
import "../application-Ba2B5A-w.mjs";
|
|
5
5
|
import { register } from "node:module";
|
|
6
6
|
|
|
7
7
|
//#region src/cli/lib.ts
|
|
8
8
|
register("tsx", import.meta.url, { data: {} });
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
|
-
export { DB_TYPES_FILE_NAME, DIFF_FILE_NAME, INITIAL_SCHEMA_NUMBER, MIGRATE_FILE_NAME, MIGRATION_LABEL_KEY, SCHEMA_FILE_NAME, apiCall, apply, compareLocalTypesWithSnapshot, compareSnapshots, createSnapshotFromLocalTypes, createWorkspace, deleteWorkspace, formatDiffSummary, formatMigrationDiff, generate, generateUserTypes, getLatestMigrationNumber, getMachineUserToken, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNamespacesWithMigrations, getNextMigrationNumber, getOAuth2Client, getWorkflow, getWorkflowExecution, hasChanges, listMachineUsers, listOAuth2Clients, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadWorkspaceId, generate$1 as migrateGenerate, reconstructSnapshotFromMigrations, remove, resumeWorkflow, show, startWorkflow, truncate };
|
|
11
|
+
export { DB_TYPES_FILE_NAME, DIFF_FILE_NAME, INITIAL_SCHEMA_NUMBER, MIGRATE_FILE_NAME, MIGRATION_LABEL_KEY, SCHEMA_FILE_NAME, apiCall, apply, compareLocalTypesWithSnapshot, compareSnapshots, createSnapshotFromLocalTypes, createWorkspace, deleteWorkspace, formatDiffSummary, formatMigrationDiff, generate, generateUserTypes, getExecutorJob, getLatestMigrationNumber, getMachineUserToken, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNamespacesWithMigrations, getNextMigrationNumber, getOAuth2Client, getWorkflow, getWorkflowExecution, hasChanges, listExecutorJobs, listMachineUsers, listOAuth2Clients, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadWorkspaceId, generate$1 as migrateGenerate, reconstructSnapshotFromMigrations, remove, resumeWorkflow, show, startWorkflow, triggerExecutor, truncate, watchExecutorJob };
|
|
12
12
|
//# sourceMappingURL=lib.mjs.map
|
package/dist/cli/lib.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.mjs","names":[],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { register } from \"node:module\";\n\n// Register tsx to handle TypeScript files when using CLI API programmatically\nregister(\"tsx\", import.meta.url, { data: {} });\n\nexport { apply } from \"./apply/index\";\nexport type { ApplyOptions } from \"./apply/index\";\nexport { generate } from \"./generator/index\";\nexport type { GenerateOptions } from \"./generator/options\";\nexport { loadConfig, type LoadedConfig } from \"./config-loader\";\nexport { generateUserTypes } from \"./type-generator\";\nexport type {\n CodeGenerator,\n TailorDBGenerator,\n ResolverGenerator,\n ExecutorGenerator,\n TailorDBResolverGenerator,\n FullCodeGenerator,\n TailorDBInput,\n ResolverInput,\n ExecutorInput,\n FullInput,\n AggregateArgs,\n GeneratorResult,\n DependencyKind,\n} from \"./generator/types\";\nexport type { ParsedTailorDBType as TailorDBType } from \"@/parser/service/tailordb/types\";\nexport type { Resolver } from \"@/parser/service/resolver\";\nexport type { Executor } from \"@/parser/service/executor\";\n\nexport { show, type ShowOptions, type ApplicationInfo } from \"./show\";\nexport { remove, type RemoveOptions } from \"./remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./workspace/delete\";\nexport type { WorkspaceInfo } from \"./workspace/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./workflow/list\";\nexport { getWorkflow, type GetWorkflowOptions } from \"./workflow/get\";\nexport {\n startWorkflow,\n type StartWorkflowOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n} from \"./workflow/executions\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./workflow/transform\";\nexport { loadAccessToken, loadWorkspaceId } from \"./context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./api\";\nexport { truncate, type TruncateOptions } from \"./tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n DB_TYPES_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type SnapshotType,\n type SnapshotFieldConfig,\n type MigrationInfo,\n} from \"./tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./tailordb/migrate/types\";\n"],"mappings":";;;;;;;AAIA,SAAS,OAAO,OAAO,KAAK,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"lib.mjs","names":[],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { register } from \"node:module\";\n\n// Register tsx to handle TypeScript files when using CLI API programmatically\nregister(\"tsx\", import.meta.url, { data: {} });\n\nexport { apply } from \"./apply/index\";\nexport type { ApplyOptions } from \"./apply/index\";\nexport { generate } from \"./generator/index\";\nexport type { GenerateOptions } from \"./generator/options\";\nexport { loadConfig, type LoadedConfig } from \"./config-loader\";\nexport { generateUserTypes } from \"./type-generator\";\nexport type {\n CodeGenerator,\n TailorDBGenerator,\n ResolverGenerator,\n ExecutorGenerator,\n TailorDBResolverGenerator,\n FullCodeGenerator,\n TailorDBInput,\n ResolverInput,\n ExecutorInput,\n FullInput,\n AggregateArgs,\n GeneratorResult,\n DependencyKind,\n} from \"./generator/types\";\nexport type { ParsedTailorDBType as TailorDBType } from \"@/parser/service/tailordb/types\";\nexport type { Resolver } from \"@/parser/service/resolver\";\nexport type { Executor } from \"@/parser/service/executor\";\n\nexport { show, type ShowOptions, type ApplicationInfo } from \"./show\";\nexport { remove, type RemoveOptions } from \"./remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./workspace/delete\";\nexport type { WorkspaceInfo } from \"./workspace/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./workflow/list\";\nexport { getWorkflow, type GetWorkflowOptions } from \"./workflow/get\";\nexport {\n startWorkflow,\n type StartWorkflowOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n} from \"./workflow/executions\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./workflow/transform\";\nexport {\n triggerExecutor,\n type TriggerExecutorOptions,\n type TriggerExecutorResult,\n} from \"./executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n watchExecutorJob,\n type ListExecutorJobsOptions,\n type GetExecutorJobOptions,\n type WatchExecutorJobOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./executor/jobs\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n} from \"./executor/transform\";\nexport { loadAccessToken, loadWorkspaceId } from \"./context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./api\";\nexport { truncate, type TruncateOptions } from \"./tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n DB_TYPES_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type SnapshotType,\n type SnapshotFieldConfig,\n type MigrationInfo,\n} from \"./tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./tailordb/migrate/types\";\n"],"mappings":";;;;;;;AAIA,SAAS,OAAO,OAAO,KAAK,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference path="./../user-defined.d.ts" />
|
|
2
|
-
import { $ as ValueOperand, A as AuthInvoker, B as OIDC, Ct as AttributeMap, Dt as unauthenticatedTailorUser, Et as TailorUser, F as BuiltinIdP, G as SCIMAuthorization, H as SCIMAttribute, I as IDToken, J as TenantProviderConfig, K as SCIMConfig, L as IdProviderConfig, M as defineAuth, O as AuthConfig, P as AuthServiceInput, Q as UsernameFieldKey, R as OAuth2ClientGrantType, St as AttributeList, U as SCIMAttributeMapping, V as SAML, W as SCIMAttributeType, X as UserAttributeListKey, Y as UserAttributeKey, Z as UserAttributeMap, _ as ExecutorServiceConfig, _t as Resolver, a as WorkflowServiceInput, at as TailorTypeGqlPermission, c as IdPConfig, ct as unsafeAllowAllTypePermission, d as ResolverExternalConfig, et as TailorDBField, f as ResolverServiceConfig, gt as QueryType, ht as TailorField, i as WorkflowServiceConfig, it as PermissionCondition, j as AuthOwnConfig, k as AuthExternalConfig, l as IdPExternalConfig, nt as TailorDBType, o as StaticWebsiteConfig, ot as TailorTypePermission, p as ResolverServiceInput, q as SCIMResource, rt as db, s as defineStaticWebSite, st as unsafeAllowAllGqlPermission, tt as TailorDBInstance, u as defineIdp, v as ExecutorServiceInput, z as OAuth2ClientInput } from "../index-
|
|
3
|
-
import { A as idpUserUpdatedTrigger, B as Workflow, C as ResolverExecutedArgs, D as authAccessTokenRevokedTrigger, E as authAccessTokenRefreshedTrigger, F as FunctionOperation, G as WorkflowJobContext, H as createWorkflow, I as GqlOperation, J as createWorkflowJob, K as WorkflowJobInput, L as Operation, M as recordDeletedTrigger, N as recordUpdatedTrigger, O as idpUserCreatedTrigger, P as resolverExecutedTrigger, R as WebhookOperation, S as RecordUpdatedArgs, T as authAccessTokenIssuedTrigger, U as WORKFLOW_TEST_ENV_KEY, V as WorkflowConfig, W as WorkflowJob, X as Env, Y as createResolver, _ as IdpUserArgs, a as defineGenerators, b as RecordDeletedArgs, c as IncomingWebhookArgs, d as incomingWebhookTrigger, f as ScheduleArgs, g as AuthAccessTokenTrigger, h as AuthAccessTokenArgs, i as defineConfig, j as recordCreatedTrigger, k as idpUserDeletedTrigger, l as IncomingWebhookRequest, m as scheduleTrigger, n as output, o as createExecutor, p as ScheduleTrigger, q as WorkflowJobOutput, r as t, s as Trigger, t as infer, u as IncomingWebhookTrigger, v as IdpUserTrigger, w as ResolverExecutedTrigger, x as RecordTrigger, y as RecordCreatedArgs, z as WorkflowOperation } from "../index-
|
|
2
|
+
import { $ as ValueOperand, A as AuthInvoker, B as OIDC, Ct as AttributeMap, Dt as unauthenticatedTailorUser, Et as TailorUser, F as BuiltinIdP, G as SCIMAuthorization, H as SCIMAttribute, I as IDToken, J as TenantProviderConfig, K as SCIMConfig, L as IdProviderConfig, M as defineAuth, O as AuthConfig, P as AuthServiceInput, Q as UsernameFieldKey, R as OAuth2ClientGrantType, St as AttributeList, U as SCIMAttributeMapping, V as SAML, W as SCIMAttributeType, X as UserAttributeListKey, Y as UserAttributeKey, Z as UserAttributeMap, _ as ExecutorServiceConfig, _t as Resolver, a as WorkflowServiceInput, at as TailorTypeGqlPermission, c as IdPConfig, ct as unsafeAllowAllTypePermission, d as ResolverExternalConfig, et as TailorDBField, f as ResolverServiceConfig, gt as QueryType, ht as TailorField, i as WorkflowServiceConfig, it as PermissionCondition, j as AuthOwnConfig, k as AuthExternalConfig, l as IdPExternalConfig, nt as TailorDBType, o as StaticWebsiteConfig, ot as TailorTypePermission, p as ResolverServiceInput, q as SCIMResource, rt as db, s as defineStaticWebSite, st as unsafeAllowAllGqlPermission, tt as TailorDBInstance, u as defineIdp, v as ExecutorServiceInput, z as OAuth2ClientInput } from "../index-DraFftyF.mjs";
|
|
3
|
+
import { A as idpUserUpdatedTrigger, B as Workflow, C as ResolverExecutedArgs, D as authAccessTokenRevokedTrigger, E as authAccessTokenRefreshedTrigger, F as FunctionOperation, G as WorkflowJobContext, H as createWorkflow, I as GqlOperation, J as createWorkflowJob, K as WorkflowJobInput, L as Operation, M as recordDeletedTrigger, N as recordUpdatedTrigger, O as idpUserCreatedTrigger, P as resolverExecutedTrigger, R as WebhookOperation, S as RecordUpdatedArgs, T as authAccessTokenIssuedTrigger, U as WORKFLOW_TEST_ENV_KEY, V as WorkflowConfig, W as WorkflowJob, X as Env, Y as createResolver, _ as IdpUserArgs, a as defineGenerators, b as RecordDeletedArgs, c as IncomingWebhookArgs, d as incomingWebhookTrigger, f as ScheduleArgs, g as AuthAccessTokenTrigger, h as AuthAccessTokenArgs, i as defineConfig, j as recordCreatedTrigger, k as idpUserDeletedTrigger, l as IncomingWebhookRequest, m as scheduleTrigger, n as output, o as createExecutor, p as ScheduleTrigger, q as WorkflowJobOutput, r as t, s as Trigger, t as infer, u as IncomingWebhookTrigger, v as IdpUserTrigger, w as ResolverExecutedTrigger, x as RecordTrigger, y as RecordCreatedArgs, z as WorkflowOperation } from "../index-BSrVjiPg.mjs";
|
|
4
4
|
export { AttributeList, AttributeMap, AuthAccessTokenArgs, AuthAccessTokenTrigger, AuthConfig, AuthExternalConfig, AuthInvoker, AuthOwnConfig, AuthServiceInput, BuiltinIdP, Env, ExecutorServiceConfig, ExecutorServiceInput, FunctionOperation, GqlOperation, IDToken, IdPConfig, IdPExternalConfig, IdProviderConfig, IdpUserArgs, IdpUserTrigger, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookTrigger, OAuth2ClientInput as OAuth2Client, OAuth2ClientGrantType, OIDC, Operation, PermissionCondition, QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordTrigger, RecordUpdatedArgs, Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, ResolverExternalConfig, ResolverServiceConfig, ResolverServiceInput, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAttributeType, SCIMAuthorization, SCIMConfig, SCIMResource, ScheduleArgs, ScheduleTrigger, StaticWebsiteConfig, TailorDBField, TailorDBInstance, TailorDBType, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, TenantProviderConfig, Trigger, UserAttributeKey, UserAttributeListKey, UserAttributeMap, UsernameFieldKey, ValueOperand, WORKFLOW_TEST_ENV_KEY, WebhookOperation, Workflow, WorkflowConfig, WorkflowJob, WorkflowJobContext, WorkflowJobInput, WorkflowJobOutput, WorkflowOperation, WorkflowServiceConfig, WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, createExecutor, createResolver, createWorkflow, createWorkflowJob, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllTypePermission };
|
package/dist/configure/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as t$1, i as unsafeAllowAllTypePermission, n as db, r as unsafeAllowAllGqlPermission, t as defineAuth } from "../auth-
|
|
1
|
+
import { a as t$1, i as unsafeAllowAllTypePermission, n as db, r as unsafeAllowAllGqlPermission, t as defineAuth } from "../auth-Co6vu1MY.mjs";
|
|
2
2
|
import { n as createWorkflowJob, t as WORKFLOW_TEST_ENV_KEY } from "../job-8XfvLyxH.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/configure/types/user.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./user-defined.d.ts" />
|
|
2
|
-
import { A as AuthInvoker, C as RecordTrigger$1, D as WorkflowOperation$1, E as WebhookOperation$1, Et as TailorUser, Ot as AllowedValues, S as IncomingWebhookTrigger$1, T as ScheduleTriggerInput, Tt as InferredAttributeMap, b as GqlOperation$1, bt as JsonCompatible, dt as FieldOptions, ft as FieldOutput, g as ExecutorInput, ht as TailorField, kt as AllowedValuesOutput, lt as ArrayFieldOutput, m as AuthAccessTokenTrigger$1, mt as TailorAnyField, n as GeneratorConfig, nt as TailorDBType, pt as TailorFieldType, r as AppConfig, ut as FieldMetadata, vt as ResolverInput, w as ResolverExecutedTrigger$1, wt as InferredAttributeList, x as IdpUserTrigger$1, xt as output$1, y as FunctionOperation$1, yt as InferFieldsOutput } from "./index-
|
|
2
|
+
import { A as AuthInvoker, C as RecordTrigger$1, D as WorkflowOperation$1, E as WebhookOperation$1, Et as TailorUser, Ot as AllowedValues, S as IncomingWebhookTrigger$1, T as ScheduleTriggerInput, Tt as InferredAttributeMap, b as GqlOperation$1, bt as JsonCompatible, dt as FieldOptions, ft as FieldOutput, g as ExecutorInput, ht as TailorField, kt as AllowedValuesOutput, lt as ArrayFieldOutput, m as AuthAccessTokenTrigger$1, mt as TailorAnyField, n as GeneratorConfig, nt as TailorDBType, pt as TailorFieldType, r as AppConfig, ut as FieldMetadata, vt as ResolverInput, w as ResolverExecutedTrigger$1, wt as InferredAttributeList, x as IdpUserTrigger$1, xt as output$1, y as FunctionOperation$1, yt as InferFieldsOutput } from "./index-DraFftyF.mjs";
|
|
3
3
|
import * as zod38 from "zod";
|
|
4
4
|
import { JsonPrimitive, Jsonifiable, Jsonify } from "type-fest";
|
|
5
5
|
import * as zod_v4_core33 from "zod/v4/core";
|
|
@@ -453,7 +453,7 @@ declare function defineGenerators(...configs: GeneratorConfig[]): (["@tailor-pla
|
|
|
453
453
|
}] | {
|
|
454
454
|
id: string;
|
|
455
455
|
description: string;
|
|
456
|
-
dependencies: ("
|
|
456
|
+
dependencies: ("executor" | "tailordb" | "resolver")[];
|
|
457
457
|
aggregate: zod_v4_core33.$InferInnerFunctionType<zod_v4_core33.$ZodFunctionArgs, zod38.ZodAny>;
|
|
458
458
|
processType?: zod_v4_core33.$InferInnerFunctionType<zod_v4_core33.$ZodFunctionArgs, zod_v4_core33.$ZodFunctionOut> | undefined;
|
|
459
459
|
processResolver?: zod_v4_core33.$InferInnerFunctionType<zod_v4_core33.$ZodFunctionArgs, zod_v4_core33.$ZodFunctionOut> | undefined;
|
|
@@ -534,4 +534,4 @@ declare namespace t {
|
|
|
534
534
|
}
|
|
535
535
|
//#endregion
|
|
536
536
|
export { idpUserUpdatedTrigger as A, Workflow as B, ResolverExecutedArgs as C, authAccessTokenRevokedTrigger as D, authAccessTokenRefreshedTrigger as E, FunctionOperation as F, WorkflowJobContext as G, createWorkflow as H, GqlOperation as I, createWorkflowJob as J, WorkflowJobInput as K, Operation as L, recordDeletedTrigger as M, recordUpdatedTrigger as N, idpUserCreatedTrigger as O, resolverExecutedTrigger as P, WebhookOperation as R, RecordUpdatedArgs as S, authAccessTokenIssuedTrigger as T, WORKFLOW_TEST_ENV_KEY as U, WorkflowConfig as V, WorkflowJob as W, Env as X, createResolver as Y, IdpUserArgs as _, defineGenerators as a, RecordDeletedArgs as b, IncomingWebhookArgs as c, incomingWebhookTrigger as d, ScheduleArgs as f, AuthAccessTokenTrigger as g, AuthAccessTokenArgs as h, defineConfig as i, recordCreatedTrigger as j, idpUserDeletedTrigger as k, IncomingWebhookRequest as l, scheduleTrigger as m, output as n, createExecutor as o, ScheduleTrigger as p, WorkflowJobOutput as q, t as r, Trigger as s, infer as t, IncomingWebhookTrigger as u, IdpUserTrigger as v, ResolverExecutedTrigger as w, RecordTrigger as x, RecordCreatedArgs as y, WorkflowOperation as z };
|
|
537
|
-
//# sourceMappingURL=index-
|
|
537
|
+
//# sourceMappingURL=index-BSrVjiPg.d.mts.map
|
|
@@ -83,11 +83,11 @@ declare const TailorFieldSchema: z.ZodObject<{
|
|
|
83
83
|
type: z.ZodEnum<{
|
|
84
84
|
string: "string";
|
|
85
85
|
boolean: "boolean";
|
|
86
|
-
date: "date";
|
|
87
|
-
enum: "enum";
|
|
88
86
|
uuid: "uuid";
|
|
89
87
|
integer: "integer";
|
|
90
88
|
float: "float";
|
|
89
|
+
enum: "enum";
|
|
90
|
+
date: "date";
|
|
91
91
|
datetime: "datetime";
|
|
92
92
|
time: "time";
|
|
93
93
|
nested: "nested";
|
|
@@ -116,11 +116,11 @@ declare const ResolverSchema: z.ZodObject<{
|
|
|
116
116
|
type: z.ZodEnum<{
|
|
117
117
|
string: "string";
|
|
118
118
|
boolean: "boolean";
|
|
119
|
-
date: "date";
|
|
120
|
-
enum: "enum";
|
|
121
119
|
uuid: "uuid";
|
|
122
120
|
integer: "integer";
|
|
123
121
|
float: "float";
|
|
122
|
+
enum: "enum";
|
|
123
|
+
date: "date";
|
|
124
124
|
datetime: "datetime";
|
|
125
125
|
time: "time";
|
|
126
126
|
nested: "nested";
|
|
@@ -146,11 +146,11 @@ declare const ResolverSchema: z.ZodObject<{
|
|
|
146
146
|
type: z.ZodEnum<{
|
|
147
147
|
string: "string";
|
|
148
148
|
boolean: "boolean";
|
|
149
|
-
date: "date";
|
|
150
|
-
enum: "enum";
|
|
151
149
|
uuid: "uuid";
|
|
152
150
|
integer: "integer";
|
|
153
151
|
float: "float";
|
|
152
|
+
enum: "enum";
|
|
153
|
+
date: "date";
|
|
154
154
|
datetime: "datetime";
|
|
155
155
|
time: "time";
|
|
156
156
|
nested: "nested";
|
|
@@ -1644,18 +1644,18 @@ type CodeGeneratorBase = Omit<z.output<typeof CodeGeneratorSchema>, "dependencie
|
|
|
1644
1644
|
//#endregion
|
|
1645
1645
|
//#region src/parser/generator-config/index.d.ts
|
|
1646
1646
|
declare const DependencyKindSchema: z.ZodEnum<{
|
|
1647
|
+
executor: "executor";
|
|
1647
1648
|
tailordb: "tailordb";
|
|
1648
1649
|
resolver: "resolver";
|
|
1649
|
-
executor: "executor";
|
|
1650
1650
|
}>;
|
|
1651
1651
|
type DependencyKind = z.infer<typeof DependencyKindSchema>;
|
|
1652
1652
|
declare const CodeGeneratorSchema: z.ZodObject<{
|
|
1653
1653
|
id: z.ZodString;
|
|
1654
1654
|
description: z.ZodString;
|
|
1655
1655
|
dependencies: z.ZodArray<z.ZodEnum<{
|
|
1656
|
+
executor: "executor";
|
|
1656
1657
|
tailordb: "tailordb";
|
|
1657
1658
|
resolver: "resolver";
|
|
1658
|
-
executor: "executor";
|
|
1659
1659
|
}>>;
|
|
1660
1660
|
processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1661
1661
|
processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
@@ -1677,9 +1677,9 @@ declare const BaseGeneratorConfigSchema: z.ZodUnion<readonly [z.ZodTuple<[z.ZodL
|
|
|
1677
1677
|
id: z.ZodString;
|
|
1678
1678
|
description: z.ZodString;
|
|
1679
1679
|
dependencies: z.ZodArray<z.ZodEnum<{
|
|
1680
|
+
executor: "executor";
|
|
1680
1681
|
tailordb: "tailordb";
|
|
1681
1682
|
resolver: "resolver";
|
|
1682
|
-
executor: "executor";
|
|
1683
1683
|
}>>;
|
|
1684
1684
|
processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1685
1685
|
processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
@@ -1706,9 +1706,9 @@ declare function createGeneratorConfigSchema(builtinGenerators: Map<string, (opt
|
|
|
1706
1706
|
id: z.ZodString;
|
|
1707
1707
|
description: z.ZodString;
|
|
1708
1708
|
dependencies: z.ZodArray<z.ZodEnum<{
|
|
1709
|
+
executor: "executor";
|
|
1709
1710
|
tailordb: "tailordb";
|
|
1710
1711
|
resolver: "resolver";
|
|
1711
|
-
executor: "executor";
|
|
1712
1712
|
}>>;
|
|
1713
1713
|
processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1714
1714
|
processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
@@ -1728,7 +1728,7 @@ declare function createGeneratorConfigSchema(builtinGenerators: Map<string, (opt
|
|
|
1728
1728
|
}] | {
|
|
1729
1729
|
id: string;
|
|
1730
1730
|
description: string;
|
|
1731
|
-
dependencies: ("
|
|
1731
|
+
dependencies: ("executor" | "tailordb" | "resolver")[];
|
|
1732
1732
|
aggregate: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
1733
1733
|
processType?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
1734
1734
|
processResolver?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
@@ -1740,4 +1740,4 @@ type GeneratorConfigSchemaType = ReturnType<typeof createGeneratorConfigSchema>;
|
|
|
1740
1740
|
type Generator = z.output<GeneratorConfigSchemaType>;
|
|
1741
1741
|
//#endregion
|
|
1742
1742
|
export { ValueOperand as $, AuthInvoker as A, OIDC as B, RecordTrigger as C, AttributeMap as Ct, WorkflowOperation as D, unauthenticatedTailorUser as Dt, WebhookOperation as E, TailorUser as Et, BuiltinIdP as F, SCIMAuthorization as G, SCIMAttribute as H, IDToken as I, TenantProviderConfig as J, SCIMConfig as K, IdProviderConfig as L, defineAuth as M, ParsedTailorDBType as N, AuthConfig as O, AllowedValues as Ot, AuthServiceInput as P, UsernameFieldKey as Q, OAuth2ClientGrantType as R, IncomingWebhookTrigger as S, AttributeList as St, ScheduleTriggerInput as T, InferredAttributeMap as Tt, SCIMAttributeMapping as U, SAML as V, SCIMAttributeType as W, UserAttributeListKey as X, UserAttributeKey as Y, UserAttributeMap as Z, ExecutorServiceConfig as _, Resolver as _t, WorkflowServiceInput as a, TailorTypeGqlPermission as at, GqlOperation as b, JsonCompatible as bt, IdPConfig as c, unsafeAllowAllTypePermission as ct, ResolverExternalConfig as d, FieldOptions as dt, TailorDBField as et, ResolverServiceConfig as f, FieldOutput$1 as ft, ExecutorInput as g, QueryType as gt, Executor as h, TailorField as ht, WorkflowServiceConfig as i, PermissionCondition as it, AuthOwnConfig as j, AuthExternalConfig as k, AllowedValuesOutput as kt, IdPExternalConfig as l, ArrayFieldOutput as lt, AuthAccessTokenTrigger as m, TailorAnyField as mt, GeneratorConfig as n, TailorDBType as nt, StaticWebsiteConfig as o, TailorTypePermission as ot, ResolverServiceInput as p, TailorFieldType as pt, SCIMResource as q, AppConfig as r, db as rt, defineStaticWebSite as s, unsafeAllowAllGqlPermission as st, Generator as t, TailorDBInstance as tt, defineIdp as u, FieldMetadata as ut, ExecutorServiceInput as v, ResolverInput as vt, ResolverExecutedTrigger as w, InferredAttributeList as wt, IdpUserTrigger as x, output as xt, FunctionOperation as y, InferFieldsOutput as yt, OAuth2ClientInput as z };
|
|
1743
|
-
//# sourceMappingURL=index-
|
|
1743
|
+
//# sourceMappingURL=index-DraFftyF.d.mts.map
|