@tailor-platform/sdk 1.0.0 → 1.1.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 +21 -0
- package/dist/cli/index.mjs +1 -1
- package/dist/cli/lib.d.mts +74 -16
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{index-BkfOioTo.d.mts → index-2JVUi0to.d.mts} +2 -2
- package/dist/{list-D1V0haDR.mjs → list-C0wNbdbP.mjs} +98 -59
- package/dist/list-C0wNbdbP.mjs.map +1 -0
- package/dist/{types-CGvgLrme.d.mts → types-UefR8mZn.d.mts} +44 -28
- package/dist/utils/test/index.d.mts +2 -2
- package/package.json +3 -2
- package/dist/list-D1V0haDR.mjs.map +0 -1
|
@@ -1303,12 +1303,23 @@ type WorkflowServiceConfig = {
|
|
|
1303
1303
|
type WorkflowServiceInput = WorkflowServiceConfig;
|
|
1304
1304
|
//#endregion
|
|
1305
1305
|
//#region src/parser/generator-config/index.d.ts
|
|
1306
|
+
declare const DependencyKindSchema: z.ZodEnum<{
|
|
1307
|
+
tailordb: "tailordb";
|
|
1308
|
+
resolver: "resolver";
|
|
1309
|
+
executor: "executor";
|
|
1310
|
+
}>;
|
|
1311
|
+
type DependencyKind = z.infer<typeof DependencyKindSchema>;
|
|
1306
1312
|
declare const CodeGeneratorSchema: z.ZodObject<{
|
|
1307
1313
|
id: z.ZodString;
|
|
1308
1314
|
description: z.ZodString;
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1315
|
+
dependencies: z.ZodArray<z.ZodEnum<{
|
|
1316
|
+
tailordb: "tailordb";
|
|
1317
|
+
resolver: "resolver";
|
|
1318
|
+
executor: "executor";
|
|
1319
|
+
}>>;
|
|
1320
|
+
processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1321
|
+
processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1322
|
+
processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1312
1323
|
processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1313
1324
|
processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1314
1325
|
aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
@@ -1325,9 +1336,14 @@ declare const BaseGeneratorConfigSchema: z.ZodUnion<readonly [z.ZodTuple<[z.ZodL
|
|
|
1325
1336
|
}, z.core.$strip>], null>, z.ZodObject<{
|
|
1326
1337
|
id: z.ZodString;
|
|
1327
1338
|
description: z.ZodString;
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1339
|
+
dependencies: z.ZodArray<z.ZodEnum<{
|
|
1340
|
+
tailordb: "tailordb";
|
|
1341
|
+
resolver: "resolver";
|
|
1342
|
+
executor: "executor";
|
|
1343
|
+
}>>;
|
|
1344
|
+
processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1345
|
+
processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1346
|
+
processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1331
1347
|
processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1332
1348
|
processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1333
1349
|
aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
@@ -1348,22 +1364,18 @@ declare function createGeneratorConfigSchema(builtinGenerators: Map<string, (opt
|
|
|
1348
1364
|
}, z.core.$strip>], null>, z.ZodObject<{
|
|
1349
1365
|
id: z.ZodString;
|
|
1350
1366
|
description: z.ZodString;
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1367
|
+
dependencies: z.ZodArray<z.ZodEnum<{
|
|
1368
|
+
tailordb: "tailordb";
|
|
1369
|
+
resolver: "resolver";
|
|
1370
|
+
executor: "executor";
|
|
1371
|
+
}>>;
|
|
1372
|
+
processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1373
|
+
processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1374
|
+
processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1354
1375
|
processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1355
1376
|
processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
1356
1377
|
aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
1357
|
-
}, z.core.$strip>]>, z.ZodTransform<{
|
|
1358
|
-
id: string;
|
|
1359
|
-
description: string;
|
|
1360
|
-
processType: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
|
|
1361
|
-
processResolver: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
|
|
1362
|
-
processExecutor: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
|
|
1363
|
-
aggregate: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
1364
|
-
processTailorDBNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
1365
|
-
processResolverNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
1366
|
-
}, ["@tailor-platform/kysely-type", {
|
|
1378
|
+
}, z.core.$strip>]>, z.ZodTransform<CodeGeneratorBase, ["@tailor-platform/kysely-type", {
|
|
1367
1379
|
distPath: string;
|
|
1368
1380
|
}] | ["@tailor-platform/seed", {
|
|
1369
1381
|
distPath: string;
|
|
@@ -1375,10 +1387,11 @@ declare function createGeneratorConfigSchema(builtinGenerators: Map<string, (opt
|
|
|
1375
1387
|
}] | {
|
|
1376
1388
|
id: string;
|
|
1377
1389
|
description: string;
|
|
1378
|
-
|
|
1379
|
-
processResolver: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
|
|
1380
|
-
processExecutor: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
|
|
1390
|
+
dependencies: ("tailordb" | "resolver" | "executor")[];
|
|
1381
1391
|
aggregate: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
1392
|
+
processType?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
1393
|
+
processResolver?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
1394
|
+
processExecutor?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
1382
1395
|
processTailorDBNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
1383
1396
|
processResolverNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
1384
1397
|
}>>, "CodeGenerator">;
|
|
@@ -1387,7 +1400,9 @@ type Generator = z.output<GeneratorConfigSchemaType>;
|
|
|
1387
1400
|
//#endregion
|
|
1388
1401
|
//#region src/parser/generator-config/types.d.ts
|
|
1389
1402
|
type GeneratorConfig = z.input<typeof BaseGeneratorConfigSchema>;
|
|
1390
|
-
type CodeGeneratorBase = z.output<typeof CodeGeneratorSchema
|
|
1403
|
+
type CodeGeneratorBase = Omit<z.output<typeof CodeGeneratorSchema>, "dependencies"> & {
|
|
1404
|
+
dependencies: readonly DependencyKind[];
|
|
1405
|
+
};
|
|
1391
1406
|
//#endregion
|
|
1392
1407
|
//#region src/configure/config.d.ts
|
|
1393
1408
|
interface AppConfig<Auth extends AuthConfig = AuthConfig, Idp extends IdPConfig[] = IdPConfig[], StaticWebsites extends StaticWebsiteConfig[] = StaticWebsiteConfig[], Env extends Record<string, string | number | boolean> = Record<string, string | number | boolean>> {
|
|
@@ -1417,10 +1432,11 @@ declare function defineGenerators(...configs: GeneratorConfig[]): (["@tailor-pla
|
|
|
1417
1432
|
}] | {
|
|
1418
1433
|
id: string;
|
|
1419
1434
|
description: string;
|
|
1420
|
-
|
|
1421
|
-
processResolver: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut>;
|
|
1422
|
-
processExecutor: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut>;
|
|
1435
|
+
dependencies: ("tailordb" | "resolver" | "executor")[];
|
|
1423
1436
|
aggregate: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod0.ZodAny>;
|
|
1437
|
+
processType?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
|
|
1438
|
+
processResolver?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
|
|
1439
|
+
processExecutor?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
|
|
1424
1440
|
processTailorDBNamespace?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
|
|
1425
1441
|
processResolverNamespace?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
|
|
1426
1442
|
})[];
|
|
@@ -1560,5 +1576,5 @@ type WorkflowOperation = z.infer<typeof WorkflowOperationSchema>;
|
|
|
1560
1576
|
type Executor = z.infer<typeof ExecutorSchema>;
|
|
1561
1577
|
type ExecutorInput = z.input<typeof ExecutorSchema>;
|
|
1562
1578
|
//#endregion
|
|
1563
|
-
export {
|
|
1564
|
-
//# sourceMappingURL=types-
|
|
1579
|
+
export { SCIMAttributeMapping as $, db as A, AuthExternalConfig as B, ResolverServiceConfig as C, JsonCompatible as Ct, TailorDBField as D, ExecutorServiceInput as E, TailorTypeGqlPermission as F, BuiltinIdP as G, AuthOwnConfig as H, TailorTypePermission as I, OAuth2ClientGrantType as J, IDToken as K, unsafeAllowAllGqlPermission as L, AllowedValuesOutput as M, ParsedTailorDBType as N, TailorDBInstance as O, PermissionCondition as P, SCIMAttribute as Q, unsafeAllowAllTypePermission as R, ResolverExternalConfig as S, InferFieldsOutput as St, ExecutorServiceConfig as T, defineAuth as U, AuthInvoker as V, AuthServiceInput as W, OIDC as X, OAuth2ClientInput as Y, SAML as Z, StaticWebsiteConfig as _, ResolverInput as _t, IncomingWebhookTrigger as a, UserAttributeKey as at, IdPExternalConfig as b, FieldOptions as bt, ScheduleTriggerInput as c, UsernameFieldKey as ct, AppConfig as d, AttributeMap as dt, SCIMAttributeType as et, defineConfig as f, TailorUser as ft, WorkflowServiceInput as g, Resolver as gt, WorkflowServiceConfig as h, QueryType as ht, GqlOperation as i, TenantProviderConfig as it, AllowedValues as j, TailorDBType as k, WebhookOperation as l, ValueOperand as lt, Generator as m, TailorField as mt, ExecutorInput as n, SCIMConfig as nt, RecordTrigger as o, UserAttributeListKey as ot, defineGenerators as p, unauthenticatedTailorUser as pt, IdProviderConfig as q, FunctionOperation as r, SCIMResource as rt, ResolverExecutedTrigger as s, UserAttributeMap as st, Executor as t, SCIMAuthorization as tt, WorkflowOperation as u, AttributeList as ut, defineStaticWebSite as v, ArrayFieldOutput as vt, ResolverServiceInput as w, output as wt, defineIdp as x, FieldOutput$1 as xt, IdPConfig as y, FieldMetadata as yt, AuthConfig as z };
|
|
1580
|
+
//# sourceMappingURL=types-UefR8mZn.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./../../user-defined.d.ts" />
|
|
2
|
-
import {
|
|
3
|
-
import { n as output } from "../../index-
|
|
2
|
+
import { k as TailorDBType, mt as TailorField } from "../../types-UefR8mZn.mjs";
|
|
3
|
+
import { n as output } from "../../index-2JVUi0to.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/test/index.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/configure/index.mjs",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"oxc-parser": "0.104.0",
|
|
63
63
|
"p-limit": "7.2.0",
|
|
64
64
|
"pkg-types": "2.3.0",
|
|
65
|
-
"rolldown": "1.0.0-beta.
|
|
65
|
+
"rolldown": "1.0.0-beta.56",
|
|
66
66
|
"table": "6.9.0",
|
|
67
67
|
"ts-cron-validator": "1.1.5",
|
|
68
68
|
"tsx": "4.21.0",
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"lint:fix": "eslint --cache . --fix",
|
|
99
99
|
"typecheck": "tsc --noEmit",
|
|
100
100
|
"perf:typecheck": "bash scripts/perf/exec.sh",
|
|
101
|
+
"perf:runtime": "bash scripts/perf/runtime-perf.sh",
|
|
101
102
|
"prepublish": "pnpm run build",
|
|
102
103
|
"postinstall": "node postinstall.mjs",
|
|
103
104
|
"measure:bundle": "node ../../scripts/measure-bundle-size-sonda.js"
|