@tailor-platform/sdk 1.6.0 → 1.6.2
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/README.md +1 -1
- package/dist/application-3rIUD7cq.mjs +5 -0
- package/dist/{application-D9mwb5eH.mjs → application-4cO5Zvfo.mjs} +15 -3
- package/dist/{application-D9mwb5eH.mjs.map → application-4cO5Zvfo.mjs.map} +1 -1
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.mjs +281 -417
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +2 -9
- package/dist/cli/lib.mjs +2 -2
- package/dist/configure/index.d.mts +3 -3
- package/dist/configure/index.mjs +61 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-k5hWCs5L.d.mts → index-Dg8SBgrV.d.mts} +30 -2
- package/dist/{index-C_yeYBC8.d.mts → index-DjdAxcQn.d.mts} +56 -12
- package/dist/{list-C_lrs5OC.mjs → list-Cgj8IR2N.mjs} +259 -417
- package/dist/list-Cgj8IR2N.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/docs/quickstart.md +1 -1
- package/docs/testing.md +1 -1
- package/package.json +2 -2
- package/dist/application-D5kzHyuG.mjs +0 -5
- package/dist/list-C_lrs5OC.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#498](https://github.com/tailor-platform/sdk/pull/498) [`254fb04`](https://github.com/tailor-platform/sdk/commit/254fb048302668cd15298138baa9bff77a90bec5) Thanks [@dqn](https://github.com/dqn)! - Migrate CLI framework from citty to politty
|
|
8
|
+
|
|
9
|
+
## 1.6.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#499](https://github.com/tailor-platform/sdk/pull/499) [`b8c3e77`](https://github.com/tailor-platform/sdk/commit/b8c3e77400c86577cd9609924fd0ee29885fe74b) Thanks [@k1LoW](https://github.com/k1LoW)! - Add IdP and Auth event triggers for executor
|
|
14
|
+
|
|
15
|
+
New trigger functions:
|
|
16
|
+
|
|
17
|
+
- `idpUserCreatedTrigger()` - fires when an IdP user is created
|
|
18
|
+
- `idpUserUpdatedTrigger()` - fires when an IdP user is updated
|
|
19
|
+
- `idpUserDeletedTrigger()` - fires when an IdP user is deleted
|
|
20
|
+
- `authAccessTokenIssuedTrigger()` - fires when an access token is issued
|
|
21
|
+
- `authAccessTokenRefreshedTrigger()` - fires when an access token is refreshed
|
|
22
|
+
- `authAccessTokenRevokedTrigger()` - fires when an access token is revoked
|
|
23
|
+
|
|
3
24
|
## 1.6.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ pnpm add @tailor-platform/sdk
|
|
|
37
37
|
Create a new project using the CLI:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
npm create @tailor-platform/sdk
|
|
40
|
+
npm create @tailor-platform/sdk -- --template hello-world my-app
|
|
41
41
|
cd my-app
|
|
42
42
|
npm run deploy -- --workspace-id <your-workspace-id>
|
|
43
43
|
```
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-CIV_ash9.mjs";
|
|
2
2
|
import Module, { createRequire } from "node:module";
|
|
3
|
+
import { z } from "zod";
|
|
3
4
|
import * as fs$15 from "node:fs";
|
|
4
5
|
import fs from "node:fs";
|
|
5
6
|
import util, { formatWithOptions } from "node:util";
|
|
6
7
|
import * as path$20 from "pathe";
|
|
7
|
-
import { z } from "zod";
|
|
8
8
|
import chalk from "chalk";
|
|
9
9
|
import { createConsola } from "consola";
|
|
10
10
|
import { formatDistanceToNowStrict } from "date-fns";
|
|
@@ -97912,11 +97912,23 @@ const ScheduleTriggerSchema = z.object({
|
|
|
97912
97912
|
timezone: z.string().optional().default("UTC")
|
|
97913
97913
|
});
|
|
97914
97914
|
const IncomingWebhookTriggerSchema = z.object({ kind: z.literal("incomingWebhook") });
|
|
97915
|
+
const IdpUserTriggerSchema = z.object({ kind: z.enum([
|
|
97916
|
+
"idpUserCreated",
|
|
97917
|
+
"idpUserUpdated",
|
|
97918
|
+
"idpUserDeleted"
|
|
97919
|
+
]) });
|
|
97920
|
+
const AuthAccessTokenTriggerSchema = z.object({ kind: z.enum([
|
|
97921
|
+
"authAccessTokenIssued",
|
|
97922
|
+
"authAccessTokenRefreshed",
|
|
97923
|
+
"authAccessTokenRevoked"
|
|
97924
|
+
]) });
|
|
97915
97925
|
const TriggerSchema = z.discriminatedUnion("kind", [
|
|
97916
97926
|
RecordTriggerSchema,
|
|
97917
97927
|
ResolverExecutedTriggerSchema,
|
|
97918
97928
|
ScheduleTriggerSchema,
|
|
97919
|
-
IncomingWebhookTriggerSchema
|
|
97929
|
+
IncomingWebhookTriggerSchema,
|
|
97930
|
+
IdpUserTriggerSchema,
|
|
97931
|
+
AuthAccessTokenTriggerSchema
|
|
97920
97932
|
]);
|
|
97921
97933
|
const FunctionOperationSchema = z.object({
|
|
97922
97934
|
kind: z.enum(["function", "jobFunction"]),
|
|
@@ -98249,4 +98261,4 @@ function defineApplication(config) {
|
|
|
98249
98261
|
|
|
98250
98262
|
//#endregion
|
|
98251
98263
|
export { OAuth2ClientSchema as a, tailorUserMap as c, styles as d, symbols as f, ExecutorSchema as i, loadFilesWithIgnores as l, WorkflowJobSchema as n, ResolverSchema as o, WorkflowSchema as r, stringifyFunction as s, defineApplication as t, logger as u };
|
|
98252
|
-
//# sourceMappingURL=application-
|
|
98264
|
+
//# sourceMappingURL=application-4cO5Zvfo.mjs.map
|