@hatchet-dev/typescript-sdk 1.3.2 → 1.3.3
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.
|
@@ -9,7 +9,7 @@ import { ClientConfig } from '../client-config';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const CreateCronTriggerSchema: z.ZodObject<{
|
|
11
11
|
name: z.ZodString;
|
|
12
|
-
expression: z.
|
|
12
|
+
expression: z.ZodString;
|
|
13
13
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
14
14
|
additionalMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15
15
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
@@ -17,11 +17,7 @@ const axios_1 = require("axios");
|
|
|
17
17
|
*/
|
|
18
18
|
exports.CreateCronTriggerSchema = zod_1.z.object({
|
|
19
19
|
name: zod_1.z.string(),
|
|
20
|
-
expression: zod_1.z.string()
|
|
21
|
-
// Basic cron validation regex
|
|
22
|
-
const cronRegex = /^(\*|([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])|\*\/([0-9]|1[0-9]|2[0-3])) (\*|([0-9]|1[0-9]|2[0-3])|\*\/([0-9]|1[0-9]|2[0-3])) (\*|([1-9]|1[0-9]|2[0-9]|3[0-1])|\*\/([1-9]|1[0-9]|2[0-9]|3[0-1])) (\*|([1-9]|1[0-2])|\*\/([1-9]|1[0-2])) (\*|([0-6])|\*\/([0-6]))$/;
|
|
23
|
-
return cronRegex.test(val);
|
|
24
|
-
}, 'Invalid cron expression'),
|
|
20
|
+
expression: zod_1.z.string(),
|
|
25
21
|
input: zod_1.z.record(zod_1.z.any()).optional(),
|
|
26
22
|
additionalMetadata: zod_1.z.record(zod_1.z.string()).optional(),
|
|
27
23
|
priority: zod_1.z.number().optional(),
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HATCHET_VERSION = "1.3.
|
|
1
|
+
export declare const HATCHET_VERSION = "1.3.3";
|
package/version.js
CHANGED