inngest 3.0.3-pr-350.4 → 3.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/api/schema.d.ts +3 -3
- package/components/EventSchemas.d.ts +2 -2
- package/components/EventSchemas.d.ts.map +1 -1
- package/helpers/functions.d.ts +1 -1
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/helpers/validators/zod.d.ts +0 -31
- package/helpers/validators/zod.d.ts.map +0 -1
- package/helpers/validators/zod.js +0 -3
- package/helpers/validators/zod.js.map +0 -1
package/api/schema.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export declare const errorSchema: z.ZodObject<{
|
|
|
5
5
|
error: z.ZodString;
|
|
6
6
|
status: z.ZodNumber;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
error: string;
|
|
9
8
|
status: number;
|
|
10
|
-
}, {
|
|
11
9
|
error: string;
|
|
10
|
+
}, {
|
|
12
11
|
status: number;
|
|
12
|
+
error: string;
|
|
13
13
|
}>;
|
|
14
14
|
export type ErrorResponse = z.infer<typeof errorSchema>;
|
|
15
15
|
export declare const stepsSchemas: {
|
|
@@ -45,6 +45,7 @@ export declare const stepsSchemas: {
|
|
|
45
45
|
status?: number | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
}, "strict", z.ZodTypeAny, {
|
|
48
|
+
type: "error";
|
|
48
49
|
error: {
|
|
49
50
|
name: string;
|
|
50
51
|
message: string;
|
|
@@ -52,7 +53,6 @@ export declare const stepsSchemas: {
|
|
|
52
53
|
cause?: string | undefined;
|
|
53
54
|
status?: number | undefined;
|
|
54
55
|
};
|
|
55
|
-
type: "error";
|
|
56
56
|
}, {
|
|
57
57
|
error: {
|
|
58
58
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Simplify } from "type-fest";
|
|
2
|
+
import { type z } from "zod";
|
|
2
3
|
import { type IsEmptyObject, type IsStringLiteral } from "../helpers/types";
|
|
3
|
-
import type * as z from "../helpers/validators/zod";
|
|
4
4
|
import { type EventPayload } from "../types";
|
|
5
5
|
/**
|
|
6
6
|
* Declares the shape of an event schema we expect from the user. This may be
|
|
@@ -84,7 +84,7 @@ export type PickLiterals<T> = {
|
|
|
84
84
|
*
|
|
85
85
|
* @public
|
|
86
86
|
*/
|
|
87
|
-
export type GetName<T> = T extends z.ZodObject<infer U> ? U extends {
|
|
87
|
+
export type GetName<T> = T extends z.ZodObject<infer U extends z.ZodRawShape> ? U extends {
|
|
88
88
|
name: z.ZodLiteral<infer S extends string>;
|
|
89
89
|
} ? S : never : never;
|
|
90
90
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventSchemas.d.ts","sourceRoot":"","sources":["../../src/components/EventSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"EventSchemas.d.ts","sourceRoot":"","sources":["../../src/components/EventSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE3B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACI,SAAS,CAAC,CAAC,SAAS;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,mBAAmB;;;IAWjE;;;;;;;;;;;;;;;;;;OAkBG;IACI,OAAO,CAAC,CAAC,SAAS,eAAe,GAAG,sBAAsB,EAE/D,OAAO,EAAE,CAAC;CAWb"}
|
package/helpers/functions.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export declare const parseFnData: (data: unknown) => {
|
|
|
45
45
|
type: "data";
|
|
46
46
|
data?: any;
|
|
47
47
|
} | {
|
|
48
|
+
type: "error";
|
|
48
49
|
error: {
|
|
49
50
|
name: string;
|
|
50
51
|
message: string;
|
|
@@ -52,7 +53,6 @@ export declare const parseFnData: (data: unknown) => {
|
|
|
52
53
|
cause?: string | undefined;
|
|
53
54
|
status?: number | undefined;
|
|
54
55
|
};
|
|
55
|
-
type: "error";
|
|
56
56
|
} | {
|
|
57
57
|
type: "data";
|
|
58
58
|
data: any;
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "3.0
|
|
1
|
+
export declare const version = "3.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shim for Zod types to ensure hopeful compatibility between minor versions to
|
|
3
|
-
* ensure that users can utilize the latest version of Zod without having to
|
|
4
|
-
* wait for Inngest to update.
|
|
5
|
-
*/
|
|
6
|
-
export type ZodLiteral<TValue = any> = {
|
|
7
|
-
get value(): TValue;
|
|
8
|
-
_def: {
|
|
9
|
-
typeName: "ZodLiteral";
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export type ZodTypeAny = {
|
|
13
|
-
_type: any;
|
|
14
|
-
_output: any;
|
|
15
|
-
_input: any;
|
|
16
|
-
_def: any;
|
|
17
|
-
};
|
|
18
|
-
export type ZodObject<TShape = {
|
|
19
|
-
[k: string]: ZodTypeAny;
|
|
20
|
-
}> = {
|
|
21
|
-
get shape(): TShape;
|
|
22
|
-
_def: {
|
|
23
|
-
typeName: "ZodObject";
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export type AnyZodObject = ZodObject<any>;
|
|
27
|
-
export type ZodAny = {
|
|
28
|
-
_any: true;
|
|
29
|
-
};
|
|
30
|
-
export type infer<T extends ZodTypeAny> = T["_output"];
|
|
31
|
-
//# sourceMappingURL=zod.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../src/helpers/validators/zod.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,MAAM,MAAM,UAAU,CAAC,MAAM,GAAG,GAAG,IAAI;IACrC,IAAI,KAAK,IAAI,MAAM,CAAC;IACpB,IAAI,EAAE;QACJ,QAAQ,EAAE,YAAY,CAAC;KACxB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,GAAG,CAAC;IACb,MAAM,EAAE,GAAG,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,MAAM,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,IAAI;IAC5D,IAAI,KAAK,IAAI,MAAM,CAAC;IACpB,IAAI,EAAE;QACJ,QAAQ,EAAE,WAAW,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AAE1C,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zod.js","sourceRoot":"","sources":["../../../src/helpers/validators/zod.ts"],"names":[],"mappings":""}
|