Comparing version 3.0.1-pr-338.0 to 3.0.1-pr-344.0
@@ -14,3 +14,3 @@ import { z } from "zod"; | ||
export type ErrorResponse = z.infer<typeof errorSchema>; | ||
export declare const stepsSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{ | ||
export declare const stepsSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ | ||
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"data">>>; | ||
@@ -63,3 +63,6 @@ data: z.ZodEffects<z.ZodAny, any, any>; | ||
type?: "error" | undefined; | ||
}>]>>>; | ||
}>]>, z.ZodEffects<z.ZodNull, { | ||
type: "data"; | ||
data: null; | ||
}, null>]>>>; | ||
export type StepsResponse = z.infer<typeof stepsSchema>; | ||
@@ -66,0 +69,0 @@ export declare const batchSchema: z.ZodArray<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, EventPayload, Record<string, any>>, "many">; |
@@ -21,5 +21,6 @@ "use strict"; | ||
error: types_1.failureEventErrorSchema, | ||
}))) | ||
})) | ||
.or(zod_1.z.null().transform(() => ({ type: "data", data: null })))) | ||
.default({}); | ||
exports.batchSchema = zod_1.z.array(zod_1.z.record(zod_1.z.any()).transform((v) => v)); | ||
//# sourceMappingURL=schema.js.map |
@@ -54,2 +54,5 @@ import { z } from "zod"; | ||
}; | ||
} | { | ||
type: "data"; | ||
data: null; | ||
}>; | ||
@@ -56,0 +59,0 @@ readonly event: Record<string, any>; |
{ | ||
"name": "inngest", | ||
"version": "3.0.1-pr-338.0", | ||
"version": "3.0.1-pr-344.0", | ||
"description": "Official SDK for Inngest.com", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -635,30 +635,2 @@ import { z } from "zod"; | ||
}; | ||
/** | ||
* Debounce delays functions for the `period` specified. If an event is sent, | ||
* the function will not run until at least `period` has elapsed. | ||
* | ||
* If any new events are received that match the same debounce `key`, the | ||
* function is reshceduled for another `period` delay, and the triggering | ||
* event is replaced with the latest event received. | ||
* | ||
* See the [Debounce documentation](https://innge.st/debounce) for more | ||
* information. | ||
*/ | ||
debounce?: { | ||
/** | ||
* An optional key to use for debouncing. | ||
* | ||
* See [Debounce documentation](https://innge.st/debounce) for more | ||
* information on how to use `key` expressions. | ||
*/ | ||
key?: string; | ||
/** | ||
* The period of time to after receiving the last trigger to run the | ||
* function. | ||
* | ||
* See [Debounce documentation](https://innge.st/debounce) for more | ||
* information. | ||
*/ | ||
period: TimeStr; | ||
}; | ||
cancelOn?: Cancellation<Events, Event>[]; | ||
@@ -665,0 +637,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare const version = "3.0.1-pr-338.0"; | ||
export declare const version = "3.0.1-pr-344.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// Generated by genversion. | ||
exports.version = "3.0.1-pr-338.0"; | ||
exports.version = "3.0.1-pr-344.0"; | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
616519
8861