@tailor-platform/sdk 1.19.0 → 1.21.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 +44 -0
- package/dist/{application-A6PZjujv.mjs → application-CEv5c7TU.mjs} +97929 -97634
- package/dist/application-CEv5c7TU.mjs.map +1 -0
- package/dist/{application-nPS5veK6.mjs → application-DiCzM9b0.mjs} +3 -3
- package/dist/cli/index.mjs +118 -63
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +117 -58
- package/dist/cli/lib.mjs +7 -7
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/skills.mjs +1 -1
- package/dist/cli/skills.mjs.map +1 -1
- package/dist/configure/index.d.mts +4 -4
- package/dist/configure/index.mjs +5 -0
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-B91ZpOcd.d.mts → index-BWVAwea4.d.mts} +2 -2
- package/dist/{index-ClLZCbcm.d.mts → index-CnHd6BNg.d.mts} +9 -43
- package/dist/{index-DDqKNFh4.d.mts → index-Dn61THJK.d.mts} +2 -2
- package/dist/{index-B6pvy1MK.d.mts → index-DxlmLUag.d.mts} +2 -2
- package/dist/{index-CPzbMghQ.d.mts → index-oZXVKyfX.d.mts} +2 -2
- package/dist/{package-json-DUY2kB6z.mjs → package-json-3H5gfhA4.mjs} +2 -2
- package/dist/package-json-3H5gfhA4.mjs.map +1 -0
- package/dist/package-json-DTDAqRRJ.mjs +3 -0
- package/dist/plugin/builtin/enum-constants/index.d.mts +2 -2
- package/dist/plugin/builtin/file-utils/index.d.mts +2 -2
- package/dist/plugin/builtin/kysely-type/index.d.mts +2 -2
- package/dist/plugin/builtin/seed/index.d.mts +2 -2
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.d.mts +1 -1
- package/dist/{seed-CeUEANfQ.mjs → seed-D-rYCN5F.mjs} +2 -2
- package/dist/{seed-CeUEANfQ.mjs.map → seed-D-rYCN5F.mjs.map} +1 -1
- package/dist/telemetry-Dhzj9Ncm.mjs +3 -0
- package/dist/{telemetry-rFq0QdvJ.mjs → telemetry-DuBhnd0X.mjs} +2 -2
- package/dist/telemetry-DuBhnd0X.mjs.map +1 -0
- package/dist/{types-CJF3Y1x8.d.mts → types-C0o90Cmb.d.mts} +87 -3
- package/dist/types-ClK_HJ0G.mjs.map +1 -1
- package/dist/{types-CblXasFV.d.mts → types-QKq1usl7.d.mts} +20 -9
- package/dist/{update-Cr5c7h1r.mjs → update-9MTRN1UA.mjs} +456 -244
- package/dist/update-9MTRN1UA.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +3 -3
- package/docs/cli/application.md +2 -0
- package/docs/services/resolver.md +61 -0
- package/docs/services/tailordb.md +55 -0
- package/package.json +1 -1
- package/dist/application-A6PZjujv.mjs.map +0 -1
- package/dist/package-json-DUY2kB6z.mjs.map +0 -1
- package/dist/package-json-Dd1AnA5F.mjs +0 -3
- package/dist/telemetry-9A1BZqbl.mjs +0 -3
- package/dist/telemetry-rFq0QdvJ.mjs.map +0 -1
- package/dist/update-Cr5c7h1r.mjs.map +0 -1
|
@@ -35,6 +35,7 @@ declare const TailorDBTypeSettingsSchema: z.ZodObject<{
|
|
|
35
35
|
delete?: boolean | undefined;
|
|
36
36
|
read?: boolean | undefined;
|
|
37
37
|
}>>>;
|
|
38
|
+
publishEvents: z.ZodOptional<z.ZodBoolean>;
|
|
38
39
|
}, z.core.$strip>;
|
|
39
40
|
declare const RawPermissionsSchema: z.ZodObject<{
|
|
40
41
|
record: z.ZodOptional<z.ZodObject<{
|
|
@@ -534,11 +535,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
534
535
|
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>], null>>>>;
|
|
535
536
|
actions: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
536
537
|
create: "create";
|
|
537
|
-
update: "update";
|
|
538
538
|
delete: "delete";
|
|
539
|
+
update: "update";
|
|
540
|
+
read: "read";
|
|
539
541
|
aggregate: "aggregate";
|
|
540
542
|
bulkUpsert: "bulkUpsert";
|
|
541
|
-
read: "read";
|
|
542
543
|
}>>>]>;
|
|
543
544
|
permit: z.ZodOptional<z.ZodBoolean>;
|
|
544
545
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -677,12 +678,12 @@ declare const TailorFieldSchema: z.ZodObject<{
|
|
|
677
678
|
type: z.ZodEnum<{
|
|
678
679
|
string: "string";
|
|
679
680
|
boolean: "boolean";
|
|
681
|
+
date: "date";
|
|
682
|
+
enum: "enum";
|
|
680
683
|
uuid: "uuid";
|
|
681
684
|
integer: "integer";
|
|
682
685
|
float: "float";
|
|
683
686
|
decimal: "decimal";
|
|
684
|
-
enum: "enum";
|
|
685
|
-
date: "date";
|
|
686
687
|
datetime: "datetime";
|
|
687
688
|
time: "time";
|
|
688
689
|
nested: "nested";
|
|
@@ -711,12 +712,12 @@ declare const ResolverSchema: z.ZodObject<{
|
|
|
711
712
|
type: z.ZodEnum<{
|
|
712
713
|
string: "string";
|
|
713
714
|
boolean: "boolean";
|
|
715
|
+
date: "date";
|
|
716
|
+
enum: "enum";
|
|
714
717
|
uuid: "uuid";
|
|
715
718
|
integer: "integer";
|
|
716
719
|
float: "float";
|
|
717
720
|
decimal: "decimal";
|
|
718
|
-
enum: "enum";
|
|
719
|
-
date: "date";
|
|
720
721
|
datetime: "datetime";
|
|
721
722
|
time: "time";
|
|
722
723
|
nested: "nested";
|
|
@@ -742,12 +743,12 @@ declare const ResolverSchema: z.ZodObject<{
|
|
|
742
743
|
type: z.ZodEnum<{
|
|
743
744
|
string: "string";
|
|
744
745
|
boolean: "boolean";
|
|
746
|
+
date: "date";
|
|
747
|
+
enum: "enum";
|
|
745
748
|
uuid: "uuid";
|
|
746
749
|
integer: "integer";
|
|
747
750
|
float: "float";
|
|
748
751
|
decimal: "decimal";
|
|
749
|
-
enum: "enum";
|
|
750
|
-
date: "date";
|
|
751
752
|
datetime: "datetime";
|
|
752
753
|
time: "time";
|
|
753
754
|
nested: "nested";
|
|
@@ -768,6 +769,7 @@ declare const ResolverSchema: z.ZodObject<{
|
|
|
768
769
|
}, z.core.$strip>;
|
|
769
770
|
fields: z.ZodRecord<z.ZodString, z.ZodObject< /*elided*/any, z.core.$strip>>;
|
|
770
771
|
}, z.core.$strip>;
|
|
772
|
+
publishEvents: z.ZodOptional<z.ZodBoolean>;
|
|
771
773
|
}, z.core.$strip>;
|
|
772
774
|
//#endregion
|
|
773
775
|
//#region src/parser/service/resolver/types.d.ts
|
|
@@ -1148,6 +1150,14 @@ interface TypeFeatures {
|
|
|
1148
1150
|
bulkUpsert?: true;
|
|
1149
1151
|
/** Configure GraphQL operations for this type. Use "query" for read-only mode, or an object for granular control. */
|
|
1150
1152
|
gqlOperations?: GqlOperationsConfig;
|
|
1153
|
+
/**
|
|
1154
|
+
* Enable publishing events for this type.
|
|
1155
|
+
* When enabled, record creation/update/deletion events are published.
|
|
1156
|
+
* If not specified, this is automatically set to true when an executor uses this type
|
|
1157
|
+
* with recordCreated/recordUpdated/recordDeleted triggers. If explicitly set to false
|
|
1158
|
+
* while an executor uses this type, an error will be thrown during apply.
|
|
1159
|
+
*/
|
|
1160
|
+
publishEvents?: boolean;
|
|
1151
1161
|
}
|
|
1152
1162
|
//#endregion
|
|
1153
1163
|
//#region src/parser/generator-config/types.d.ts
|
|
@@ -2749,6 +2759,7 @@ interface TailorDBTypeMetadata {
|
|
|
2749
2759
|
aggregation?: boolean;
|
|
2750
2760
|
bulkUpsert?: boolean;
|
|
2751
2761
|
gqlOperations?: GqlOperationsConfig;
|
|
2762
|
+
publishEvents?: boolean;
|
|
2752
2763
|
};
|
|
2753
2764
|
permissions: RawPermissions;
|
|
2754
2765
|
files: Record<string, string>;
|
|
@@ -2799,4 +2810,4 @@ interface TailorDBType {
|
|
|
2799
2810
|
}
|
|
2800
2811
|
//#endregion
|
|
2801
2812
|
export { OAuth2ClientGrantType as $, AuthAccessTokenTrigger as A, Resolver as At, ResolverExecutedTrigger as B, TailorActor as Bt, TypePluginOutput as C, FieldMetadata as Ct, ResolverReadyContext as D, TailorAnyField as Dt, ResolverNamespaceData as E, TailorFieldType as Et, FunctionOperation as F, InferFieldsOutput as Ft, AuthExternalConfig as G, AllowedValues as Gt, WebhookOperation as H, AttributeMap as Ht, GqlOperation as I, JsonCompatible as It, AuthServiceInput as J, AuthInvoker as K, AllowedValuesOutput as Kt, IdpUserTrigger as L, output as Lt, ExecutorInput as M, ResolverInput as Mt, ExecutorServiceConfig as N, ResolverServiceConfig as Nt, TailorDBNamespaceData as O, TailorField as Ot, ExecutorServiceInput as P, ResolverServiceInput as Pt, IdProviderConfig as Q, IncomingWebhookTrigger as R, Env as Rt, TailorDBTypeForPlugin as S, DefinedFieldMetadata as St, GeneratorResult as T, FieldOutput$1 as Tt, WorkflowOperation as U, TailorUser as Ut, ScheduleTriggerInput as V, AttributeList as Vt, AuthConfig as W, unauthenticatedTailorUser as Wt, DefinedAuth as X, BuiltinIdP as Y, IDToken as Z, PluginGeneratedResolver as _, TailorTypeGqlPermission as _t, TailorDBField as a, SCIMAttributeType as at, PluginOutput as b, unsafeAllowAllTypePermission as bt, db as c, SCIMResource as ct, PluginAttachment as d, UserAttributeListKey as dt, OAuth2ClientInput as et, PluginConfigs as f, UserAttributeMap as ft, PluginGeneratedExecutorWithFile as g, PermissionCondition as gt, PluginGeneratedExecutor as h, GeneratorConfig as ht, TailorAnyDBType as i, SCIMAttributeMapping as it, Executor as j, ResolverExternalConfig as jt, TailorDBReadyContext as k, QueryType as kt, NamespacePluginOutput as l, TenantProviderConfig as lt, PluginExecutorContextBase as m, ValueOperand as mt, TypeSourceInfoEntry as n, SAML as nt, TailorDBInstance as o, SCIMAuthorization as ot, PluginExecutorContext as p, UsernameFieldKey as pt, AuthOwnConfig as q, TailorDBServiceInput as qt, TailorAnyDBField as r, SCIMAttribute as rt, TailorDBType$1 as s, SCIMConfig as st, TailorDBType as t, OIDC as tt, Plugin as u, UserAttributeKey as ut, PluginGeneratedType as v, TailorTypePermission as vt, ExecutorReadyContext as w, FieldOptions as wt, PluginProcessContext as x, ArrayFieldOutput as xt, PluginNamespaceProcessContext as y, unsafeAllowAllGqlPermission as yt, RecordTrigger as z, TailorEnv as zt };
|
|
2802
|
-
//# sourceMappingURL=types-
|
|
2813
|
+
//# sourceMappingURL=types-QKq1usl7.d.mts.map
|