@tailor-platform/sdk 0.11.2 → 0.12.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/api.d.mts +16 -7
- package/dist/cli/api.mjs +8 -2
- package/dist/cli/api.mjs.map +1 -0
- package/dist/cli/index.mjs +1 -1
- package/dist/configure/index.d.mts +2 -2
- package/dist/{index-Bx9tHHe8.d.mts → index-CvaR3wBO.d.mts} +2 -2
- package/dist/job-CSwByDTq.mjs.map +1 -1
- package/dist/{token-BJq9rpG5.mjs → token-C2dypdqc.mjs} +223 -108
- package/dist/token-C2dypdqc.mjs.map +1 -0
- package/dist/{types-C5oBGPO0.d.mts → types-CWvnDV8C.d.mts} +3 -2
- package/dist/utils/test/index.d.mts +2 -2
- package/docs/core-concepts.md +7 -7
- package/package.json +8 -6
- package/dist/token-BJq9rpG5.mjs.map +0 -1
|
@@ -205,7 +205,8 @@ type TailorUser = {
|
|
|
205
205
|
* For unauthenticated users, this will be null.
|
|
206
206
|
*/
|
|
207
207
|
attributes: InferredAttributeMap | null;
|
|
208
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* A list of the user's attributes.
|
|
209
210
|
* For unauthenticated users, this will be an empty array.
|
|
210
211
|
*/
|
|
211
212
|
attributeList: InferredAttributeList;
|
|
@@ -1429,4 +1430,4 @@ type Executor = z.infer<typeof ExecutorSchema>;
|
|
|
1429
1430
|
type ExecutorInput = z.input<typeof ExecutorSchema>;
|
|
1430
1431
|
//#endregion
|
|
1431
1432
|
export { AllowedValues, AllowedValuesOutput, AppConfig, ArrayFieldOutput, AuthConfig, AuthExternalConfig, AuthOwnConfig, type AuthServiceInput, type BuiltinIdP, CodeGeneratorBase, Executor, ExecutorInput, ExecutorServiceConfig, ExecutorServiceInput, FieldMetadata, FieldOptions, FieldOutput, FunctionOperation, Generator, GqlOperation, type IDToken, IdPConfig, IdPExternalConfig, type IdProviderConfig, IncomingWebhookTrigger, InferFieldsOutput, type OAuth2Client, type OAuth2ClientGrantType, type OIDC, PermissionCondition, QueryType, RecordTrigger, Resolver, ResolverExecutedTrigger, ResolverExternalConfig, ResolverInput, ResolverServiceConfig, ResolverServiceInput, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleTriggerInput, StaticWebsiteConfig, TailorDBField, TailorDBInstance, TailorDBType, TailorDBTypeConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, type TenantProviderConfig, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WebhookOperation, WorkflowServiceConfig, WorkflowServiceInput, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, output, unauthenticatedTailorUser };
|
|
1432
|
-
//# sourceMappingURL=types-
|
|
1433
|
+
//# sourceMappingURL=types-CWvnDV8C.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="./../../plugin-generated.d.ts" />
|
|
2
2
|
|
|
3
|
-
import { TailorDBType, TailorField, TailorUser } from "../../types-
|
|
4
|
-
import { output } from "../../index-
|
|
3
|
+
import { TailorDBType, TailorField, TailorUser } from "../../types-CWvnDV8C.mjs";
|
|
4
|
+
import { output } from "../../index-CvaR3wBO.mjs";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
|
|
7
7
|
//#region src/utils/test/index.d.ts
|
package/docs/core-concepts.md
CHANGED
|
@@ -511,13 +511,13 @@ Define Workflows in files matching glob patterns specified in `tailor.config.ts`
|
|
|
511
511
|
|
|
512
512
|
**Important**: All workflow components must follow these rules:
|
|
513
513
|
|
|
514
|
-
| Rule |
|
|
515
|
-
| ---------------------------------------------- |
|
|
516
|
-
| `createWorkflow` result must be default export |
|
|
517
|
-
| All jobs must be named exports |
|
|
518
|
-
| Job names must be unique |
|
|
519
|
-
| `mainJob` is required |
|
|
520
|
-
| Jobs in `deps` must be job objects |
|
|
514
|
+
| Rule | Description |
|
|
515
|
+
| ---------------------------------------------- | --------------------------------------------------- |
|
|
516
|
+
| `createWorkflow` result must be default export | Workflow files must export the workflow as default |
|
|
517
|
+
| All jobs must be named exports | Every job used in a workflow must be a named export |
|
|
518
|
+
| Job names must be unique | Job names must be unique across the entire project |
|
|
519
|
+
| `mainJob` is required | Every workflow must specify a `mainJob` |
|
|
520
|
+
| Jobs in `deps` must be job objects | Pass job objects, not strings |
|
|
521
521
|
|
|
522
522
|
#### Workflow Job Definition
|
|
523
523
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.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",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@badgateway/oauth2-client": "3.3.1",
|
|
43
43
|
"@bufbuild/protobuf": "2.10.1",
|
|
44
|
-
"@connectrpc/connect": "2.1.
|
|
45
|
-
"@connectrpc/connect-node": "2.1.
|
|
44
|
+
"@connectrpc/connect": "2.1.1",
|
|
45
|
+
"@connectrpc/connect-node": "2.1.1",
|
|
46
46
|
"@standard-schema/spec": "1.0.0",
|
|
47
47
|
"@urql/core": "5.2.0",
|
|
48
48
|
"chalk": "5.6.2",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"citty": "0.1.6",
|
|
51
51
|
"confbox": "0.2.2",
|
|
52
52
|
"consola": "3.4.2",
|
|
53
|
-
"es-toolkit": "1.
|
|
53
|
+
"es-toolkit": "1.42.0",
|
|
54
54
|
"inflection": "3.0.2",
|
|
55
55
|
"madge": "8.0.0",
|
|
56
56
|
"multiline-ts": "4.0.1",
|
|
@@ -72,17 +72,19 @@
|
|
|
72
72
|
"@tailor-platform/function-types": "0.7.2",
|
|
73
73
|
"@types/madge": "5.0.3",
|
|
74
74
|
"@types/node": "22.19.1",
|
|
75
|
+
"cross-env": "10.1.0",
|
|
75
76
|
"eslint": "9.39.1",
|
|
77
|
+
"eslint-plugin-jsdoc": "61.4.1",
|
|
76
78
|
"globals": "16.5.0",
|
|
77
79
|
"sonda": "0.10.0",
|
|
78
80
|
"tsdown": "0.15.6",
|
|
79
81
|
"typescript": "5.9.3",
|
|
80
|
-
"typescript-eslint": "8.
|
|
82
|
+
"typescript-eslint": "8.48.0",
|
|
81
83
|
"vitest": "4.0.13"
|
|
82
84
|
},
|
|
83
85
|
"scripts": {
|
|
84
86
|
"test": "vitest",
|
|
85
|
-
"build": "tsdown && FORCE_CREATE=1 node postinstall.mjs",
|
|
87
|
+
"build": "tsdown && cross-env FORCE_CREATE=1 node postinstall.mjs",
|
|
86
88
|
"lint": "eslint --cache .",
|
|
87
89
|
"lint:fix": "eslint --cache . --fix",
|
|
88
90
|
"typecheck": "tsc --noEmit",
|