@tailor-platform/sdk 0.21.3 → 0.21.4
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 +19 -0
- package/dist/cli/api.d.mts +1 -1
- package/dist/cli/api.mjs +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{index-DwAZDk6O.d.mts → index-CEJUQFNe.d.mts} +2 -2
- package/dist/{list-ksRvpsz1.mjs → list-CQ-V5Ddn.mjs} +3466 -3299
- package/dist/{list-ksRvpsz1.mjs.map → list-CQ-V5Ddn.mjs.map} +1 -1
- package/dist/{types-EKga-JDM.d.mts → types-oYFwjNuW.d.mts} +9 -9
- package/dist/utils/test/index.d.mts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 0.21.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#245](https://github.com/tailor-platform/sdk/pull/245) [`f4d4c8e`](https://github.com/tailor-platform/sdk/commit/f4d4c8e5f0df6161376c4e02af90f76aecb5ec01) Thanks [@toiroakr](https://github.com/toiroakr)! - fix: throw error for prompts in CI environments
|
|
8
|
+
|
|
9
|
+
In CI environments, interactive prompts cause the CLI to hang indefinitely. This change detects CI environments using `std-env` and throws a `CIPromptError` when `logger.prompt` is called, instructing users to use the `--yes` flag to skip confirmation prompts.
|
|
10
|
+
|
|
11
|
+
- [#243](https://github.com/tailor-platform/sdk/pull/243) [`2084c68`](https://github.com/tailor-platform/sdk/commit/2084c68be83fe5693b3df838e5c780d79d7d06fa) Thanks [@toiroakr](https://github.com/toiroakr)! - Fix deletion of resolvers that conflict with system-generated ones
|
|
12
|
+
|
|
13
|
+
When a TailorDB type is created (e.g., `User`), the system auto-generates resolvers like `deleteUser`, `createUser`, etc. If a user created a custom resolver with the same name, it could not be deleted because the Application update (SDL composition) failed before the deletion phase.
|
|
14
|
+
|
|
15
|
+
This fix reorders the apply phases to delete subgraph services before updating the Application:
|
|
16
|
+
1. Create/Update services that Application depends on (subgraphs + StaticWebsite)
|
|
17
|
+
2. Delete subgraph services (before Application update to avoid SDL conflicts)
|
|
18
|
+
3. Create/Update Application
|
|
19
|
+
4. Create/Update services that depend on Application (Executor, Workflow)
|
|
20
|
+
5. Delete services that depend on Application, then Application itself
|
|
21
|
+
|
|
3
22
|
## 0.21.3
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/cli/api.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./../user-defined.d.ts" />
|
|
2
2
|
|
|
3
|
-
import { Ct as Resolver, J as OAuth2ClientInput, K as IdProviderConfig, M as TailorDBTypeConfig, d as AppConfig, h as Generator, m as CodeGeneratorBase, t as Executor } from "../types-
|
|
3
|
+
import { Ct as Resolver, J as OAuth2ClientInput, K as IdProviderConfig, M as TailorDBTypeConfig, d as AppConfig, h as Generator, m as CodeGeneratorBase, t as Executor } from "../types-oYFwjNuW.mjs";
|
|
4
4
|
import "citty";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { OAuth2Client } from "@badgateway/oauth2-client";
|
package/dist/cli/api.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as listOAuth2Clients, E as getMachineUserToken, G as loadWorkspaceId, H as loadConfig, N as apply, T as getOAuth2Client, V as generateUserTypes, W as loadAccessToken, _ as listWorkflowExecutions, b as remove, c as resumeWorkflow, f as listWorkflows, g as getWorkflowExecution, i as deleteWorkspace, j as generate, k as listMachineUsers, m as getWorkflow, n as listWorkspaces, o as createWorkspace, u as startWorkflow, v as show } from "../list-
|
|
1
|
+
import { C as listOAuth2Clients, E as getMachineUserToken, G as loadWorkspaceId, H as loadConfig, N as apply, T as getOAuth2Client, V as generateUserTypes, W as loadAccessToken, _ as listWorkflowExecutions, b as remove, c as resumeWorkflow, f as listWorkflows, g as getWorkflowExecution, i as deleteWorkspace, j as generate, k as listMachineUsers, m as getWorkflow, n as listWorkspaces, o as createWorkspace, u as startWorkflow, v as show } from "../list-CQ-V5Ddn.mjs";
|
|
2
2
|
import "../config-BGY8v5d7.mjs";
|
|
3
3
|
import { register } from "node:module";
|
|
4
4
|
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as PATScope, A as printData, B as workspaceArgs, D as tokenCommand, F as commonArgs, G as loadWorkspaceId, H as loadConfig, I as confirmationArgs, J as fetchAll, K as readPlatformConfig, L as deploymentArgs, M as generateCommand, O as listCommand$8, P as applyCommand, Q as readPackageJson, R as jsonArgs, S as listCommand$7, U as fetchLatestToken, W as loadAccessToken, X as initOAuth2Client, Y as fetchUserInfo, Z as initOperatorClient, a as createCommand, d as listCommand$1, et as logger, h as executionsCommand, l as startCommand, p as getCommand, q as writePlatformConfig, r as deleteCommand, s as resumeCommand, t as listCommand, w as getCommand$2, x as removeCommand, y as showCommand, z as withCommonArgs } from "../list-
|
|
2
|
+
import { $ as PATScope, A as printData, B as workspaceArgs, D as tokenCommand, F as commonArgs, G as loadWorkspaceId, H as loadConfig, I as confirmationArgs, J as fetchAll, K as readPlatformConfig, L as deploymentArgs, M as generateCommand, O as listCommand$8, P as applyCommand, Q as readPackageJson, R as jsonArgs, S as listCommand$7, U as fetchLatestToken, W as loadAccessToken, X as initOAuth2Client, Y as fetchUserInfo, Z as initOperatorClient, a as createCommand, d as listCommand$1, et as logger, h as executionsCommand, l as startCommand, p as getCommand, q as writePlatformConfig, r as deleteCommand, s as resumeCommand, t as listCommand, w as getCommand$2, x as removeCommand, y as showCommand, z as withCommonArgs } from "../list-CQ-V5Ddn.mjs";
|
|
3
3
|
import "../config-BGY8v5d7.mjs";
|
|
4
4
|
import { register } from "node:module";
|
|
5
5
|
import { defineCommand, runCommand, runMain } from "citty";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./../user-defined.d.ts" />
|
|
2
2
|
|
|
3
|
-
import { $ as SCIMAttributeType, A as TailorDBType, B as AuthInvoker, C as ResolverExternalConfig, Ct as Resolver, D as ExecutorServiceInput, E as ExecutorServiceConfig, F as TailorTypePermission, G as IDToken, H as defineAuth, I as unsafeAllowAllGqlPermission, J as OAuth2ClientInput, K as IdProviderConfig, L as unsafeAllowAllTypePermission, N as PermissionCondition, O as TailorDBField, P as TailorTypeGqlPermission, Q as SCIMAttributeMapping, R as AuthConfig, S as defineIdp, St as QueryType, T as ResolverServiceInput, U as AuthServiceInput, V as AuthOwnConfig, W as BuiltinIdP, X as SAML, Y as OIDC, Z as SCIMAttribute, _ as WorkflowServiceInput, _t as AttributeList, at as UserAttributeListKey, b as IdPConfig, bt as unauthenticatedTailorUser, ct as ValueOperand, et as SCIMAuthorization, f as defineConfig, g as WorkflowServiceConfig, ht as Env, it as UserAttributeKey, j as db, k as TailorDBInstance, nt as SCIMResource, ot as UserAttributeMap, p as defineGenerators, q as OAuth2ClientGrantType, rt as TenantProviderConfig, st as UsernameFieldKey, tt as SCIMConfig, v as StaticWebsiteConfig, vt as AttributeMap, w as ResolverServiceConfig, x as IdPExternalConfig, xt as TailorField, y as defineStaticWebSite, yt as TailorUser, z as AuthExternalConfig } from "../types-
|
|
4
|
-
import { A as WORKFLOW_JOB_BRAND, C as GqlOperation, D as Workflow, E as WorkflowOperation, F as createWorkflowJob, I as createResolver, M as WorkflowJobContext, N as WorkflowJobInput, O as WorkflowConfig, P as WorkflowJobOutput, S as FunctionOperation, T as WebhookOperation, _ as ResolverExecutedTrigger, a as Trigger, b as recordUpdatedTrigger, c as IncomingWebhookTrigger, d as scheduleTrigger, f as RecordCreatedArgs, g as ResolverExecutedArgs, h as RecordUpdatedArgs, i as createExecutor, j as WorkflowJob, k as createWorkflow, l as incomingWebhookTrigger, m as RecordTrigger, n as output, o as IncomingWebhookArgs, p as RecordDeletedArgs, r as t, s as IncomingWebhookRequest, t as infer, u as ScheduleTrigger, v as recordCreatedTrigger, w as Operation, x as resolverExecutedTrigger, y as recordDeletedTrigger } from "../index-
|
|
3
|
+
import { $ as SCIMAttributeType, A as TailorDBType, B as AuthInvoker, C as ResolverExternalConfig, Ct as Resolver, D as ExecutorServiceInput, E as ExecutorServiceConfig, F as TailorTypePermission, G as IDToken, H as defineAuth, I as unsafeAllowAllGqlPermission, J as OAuth2ClientInput, K as IdProviderConfig, L as unsafeAllowAllTypePermission, N as PermissionCondition, O as TailorDBField, P as TailorTypeGqlPermission, Q as SCIMAttributeMapping, R as AuthConfig, S as defineIdp, St as QueryType, T as ResolverServiceInput, U as AuthServiceInput, V as AuthOwnConfig, W as BuiltinIdP, X as SAML, Y as OIDC, Z as SCIMAttribute, _ as WorkflowServiceInput, _t as AttributeList, at as UserAttributeListKey, b as IdPConfig, bt as unauthenticatedTailorUser, ct as ValueOperand, et as SCIMAuthorization, f as defineConfig, g as WorkflowServiceConfig, ht as Env, it as UserAttributeKey, j as db, k as TailorDBInstance, nt as SCIMResource, ot as UserAttributeMap, p as defineGenerators, q as OAuth2ClientGrantType, rt as TenantProviderConfig, st as UsernameFieldKey, tt as SCIMConfig, v as StaticWebsiteConfig, vt as AttributeMap, w as ResolverServiceConfig, x as IdPExternalConfig, xt as TailorField, y as defineStaticWebSite, yt as TailorUser, z as AuthExternalConfig } from "../types-oYFwjNuW.mjs";
|
|
4
|
+
import { A as WORKFLOW_JOB_BRAND, C as GqlOperation, D as Workflow, E as WorkflowOperation, F as createWorkflowJob, I as createResolver, M as WorkflowJobContext, N as WorkflowJobInput, O as WorkflowConfig, P as WorkflowJobOutput, S as FunctionOperation, T as WebhookOperation, _ as ResolverExecutedTrigger, a as Trigger, b as recordUpdatedTrigger, c as IncomingWebhookTrigger, d as scheduleTrigger, f as RecordCreatedArgs, g as ResolverExecutedArgs, h as RecordUpdatedArgs, i as createExecutor, j as WorkflowJob, k as createWorkflow, l as incomingWebhookTrigger, m as RecordTrigger, n as output, o as IncomingWebhookArgs, p as RecordDeletedArgs, r as t, s as IncomingWebhookRequest, t as infer, u as ScheduleTrigger, v as recordCreatedTrigger, w as Operation, x as resolverExecutedTrigger, y as recordDeletedTrigger } from "../index-CEJUQFNe.mjs";
|
|
5
5
|
export { AttributeList, AttributeMap, AuthConfig, AuthExternalConfig, AuthInvoker, AuthOwnConfig, AuthServiceInput, BuiltinIdP, Env, ExecutorServiceConfig, ExecutorServiceInput, FunctionOperation, GqlOperation, IDToken, IdPConfig, IdPExternalConfig, IdProviderConfig, 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, ScheduleTrigger, StaticWebsiteConfig, TailorDBField, TailorDBInstance, TailorDBType, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, TenantProviderConfig, Trigger, UserAttributeKey, UserAttributeListKey, UserAttributeMap, UsernameFieldKey, ValueOperand, WORKFLOW_JOB_BRAND, WebhookOperation, Workflow, WorkflowConfig, WorkflowJob, WorkflowJobContext, WorkflowJobInput, WorkflowJobOutput, WorkflowOperation, WorkflowServiceConfig, WorkflowServiceInput, createExecutor, createResolver, createWorkflow, createWorkflowJob, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllTypePermission };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./user-defined.d.ts" />
|
|
2
2
|
|
|
3
|
-
import { A as TailorDBType, B as AuthInvoker, Dt as output$1, Et as JsonCompatible, Tt as InferFieldsOutput, a as IncomingWebhookTrigger$1, c as ScheduleTriggerInput, dt as ArrayFieldOutput, ft as FieldMetadata, gt as TailorEnv, i as GqlOperation, l as WebhookOperation, lt as AllowedValues, mt as FieldOutput, n as ExecutorInput, o as RecordTrigger$1, pt as FieldOptions, r as FunctionOperation, s as ResolverExecutedTrigger$1, u as WorkflowOperation, ut as AllowedValuesOutput, wt as ResolverInput, xt as TailorField, yt as TailorUser } from "./types-
|
|
3
|
+
import { A as TailorDBType, B as AuthInvoker, Dt as output$1, Et as JsonCompatible, Tt as InferFieldsOutput, a as IncomingWebhookTrigger$1, c as ScheduleTriggerInput, dt as ArrayFieldOutput, ft as FieldMetadata, gt as TailorEnv, i as GqlOperation, l as WebhookOperation, lt as AllowedValues, mt as FieldOutput, n as ExecutorInput, o as RecordTrigger$1, pt as FieldOptions, r as FunctionOperation, s as ResolverExecutedTrigger$1, u as WorkflowOperation, ut as AllowedValuesOutput, wt as ResolverInput, xt as TailorField, yt as TailorUser } from "./types-oYFwjNuW.mjs";
|
|
4
4
|
import { EmptyObject, JsonPrimitive, Jsonifiable, Jsonify } from "type-fest";
|
|
5
5
|
import { Client } from "@urql/core";
|
|
6
6
|
import { StandardCRON } from "ts-cron-validator";
|
|
@@ -351,4 +351,4 @@ declare namespace t {
|
|
|
351
351
|
}
|
|
352
352
|
//#endregion
|
|
353
353
|
export { WORKFLOW_JOB_BRAND as A, GqlOperation$1 as C, Workflow as D, WorkflowOperation$1 as E, createWorkflowJob as F, createResolver as I, WorkflowJobContext as M, WorkflowJobInput as N, WorkflowConfig as O, WorkflowJobOutput as P, FunctionOperation$1 as S, WebhookOperation$1 as T, ResolverExecutedTrigger as _, Trigger as a, recordUpdatedTrigger as b, IncomingWebhookTrigger as c, scheduleTrigger as d, RecordCreatedArgs as f, ResolverExecutedArgs as g, RecordUpdatedArgs as h, createExecutor as i, WorkflowJob as j, createWorkflow as k, incomingWebhookTrigger as l, RecordTrigger as m, output as n, IncomingWebhookArgs as o, RecordDeletedArgs as p, t as r, IncomingWebhookRequest as s, infer as t, ScheduleTrigger as u, recordCreatedTrigger as v, Operation as w, resolverExecutedTrigger as x, recordDeletedTrigger as y };
|
|
354
|
-
//# sourceMappingURL=index-
|
|
354
|
+
//# sourceMappingURL=index-CEJUQFNe.d.mts.map
|