@trigger.dev/core 3.0.0-beta.49 → 3.0.0-beta.50
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/dist/{catalog-U7_q4XsM.d.mts → catalog-H7yFiZ60.d.mts} +1 -1
- package/dist/{catalog-bSnBE19I.d.ts → catalog-h79CG5Wy.d.ts} +1 -1
- package/dist/{messages-I-h-zZN9.d.mts → messages-JvHJ83wv.d.mts} +172 -0
- package/dist/{messages-I-h-zZN9.d.ts → messages-JvHJ83wv.d.ts} +172 -0
- package/dist/{schemas-WHkFakb3.d.mts → schemas-C9ssfehv.d.mts} +47 -1
- package/dist/{schemas-WHkFakb3.d.ts → schemas-C9ssfehv.d.ts} +47 -1
- package/dist/v3/index.d.mts +15 -7
- package/dist/v3/index.d.ts +15 -7
- package/dist/v3/index.js +24 -3
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +23 -4
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/otel/index.js +1 -1
- package/dist/v3/otel/index.js.map +1 -1
- package/dist/v3/otel/index.mjs +1 -1
- package/dist/v3/otel/index.mjs.map +1 -1
- package/dist/v3/prod/index.d.mts +1 -1
- package/dist/v3/prod/index.d.ts +1 -1
- package/dist/v3/schemas/index.d.mts +100 -4
- package/dist/v3/schemas/index.d.ts +100 -4
- package/dist/v3/schemas/index.js +23 -2
- package/dist/v3/schemas/index.js.map +1 -1
- package/dist/v3/schemas/index.mjs +22 -3
- package/dist/v3/schemas/index.mjs.map +1 -1
- package/dist/v3/utils/ioSerialization.js +22 -3
- package/dist/v3/utils/ioSerialization.js.map +1 -1
- package/dist/v3/utils/ioSerialization.mjs +22 -3
- package/dist/v3/utils/ioSerialization.mjs.map +1 -1
- package/dist/v3/utils/retries.d.mts +1 -1
- package/dist/v3/utils/retries.d.ts +1 -1
- package/dist/v3/workers/index.d.mts +4 -4
- package/dist/v3/workers/index.d.ts +4 -4
- package/dist/v3/workers/index.js +22 -3
- package/dist/v3/workers/index.js.map +1 -1
- package/dist/v3/workers/index.mjs +22 -3
- package/dist/v3/workers/index.mjs.map +1 -1
- package/dist/v3/zodfetch.d.mts +1 -1
- package/dist/v3/zodfetch.d.ts +1 -1
- package/package.json +1 -1
package/dist/v3/schemas/index.js
CHANGED
|
@@ -344,13 +344,18 @@ var QueueOptions = zod.z.object({
|
|
|
344
344
|
/** @deprecated This feature is coming soon */
|
|
345
345
|
rateLimit: RateLimitOptions.optional()
|
|
346
346
|
});
|
|
347
|
+
var ScheduleMetadata = zod.z.object({
|
|
348
|
+
cron: zod.z.string(),
|
|
349
|
+
timezone: zod.z.string()
|
|
350
|
+
});
|
|
347
351
|
var TaskMetadata = zod.z.object({
|
|
348
352
|
id: zod.z.string(),
|
|
349
353
|
packageVersion: zod.z.string(),
|
|
350
354
|
queue: QueueOptions.optional(),
|
|
351
355
|
retry: RetryOptions.optional(),
|
|
352
356
|
machine: MachineConfig.optional(),
|
|
353
|
-
triggerSource: zod.z.string().optional()
|
|
357
|
+
triggerSource: zod.z.string().optional(),
|
|
358
|
+
schedule: ScheduleMetadata.optional()
|
|
354
359
|
});
|
|
355
360
|
var TaskFileMetadata = zod.z.object({
|
|
356
361
|
filePath: zod.z.string(),
|
|
@@ -363,6 +368,7 @@ var TaskMetadataWithFilePath = zod.z.object({
|
|
|
363
368
|
retry: RetryOptions.optional(),
|
|
364
369
|
machine: MachineConfig.optional(),
|
|
365
370
|
triggerSource: zod.z.string().optional(),
|
|
371
|
+
schedule: ScheduleMetadata.optional(),
|
|
366
372
|
filePath: zod.z.string(),
|
|
367
373
|
exportName: zod.z.string()
|
|
368
374
|
});
|
|
@@ -424,7 +430,8 @@ var TaskResource = zod.z.object({
|
|
|
424
430
|
queue: QueueOptions.optional(),
|
|
425
431
|
retry: RetryOptions.optional(),
|
|
426
432
|
machine: MachineConfig.optional(),
|
|
427
|
-
triggerSource: zod.z.string().optional()
|
|
433
|
+
triggerSource: zod.z.string().optional(),
|
|
434
|
+
schedule: ScheduleMetadata.optional()
|
|
428
435
|
});
|
|
429
436
|
var BackgroundWorkerMetadata = zod.z.object({
|
|
430
437
|
packageVersion: zod.z.string(),
|
|
@@ -592,10 +599,21 @@ var ReplayRunResponse = zod.z.object({
|
|
|
592
599
|
var CanceledRunResponse = zod.z.object({
|
|
593
600
|
id: zod.z.string()
|
|
594
601
|
});
|
|
602
|
+
var ScheduleType = zod.z.union([
|
|
603
|
+
zod.z.literal("DECLARATIVE"),
|
|
604
|
+
zod.z.literal("IMPERATIVE")
|
|
605
|
+
]);
|
|
595
606
|
var ScheduledTaskPayload = zod.z.object({
|
|
596
607
|
/** The schedule id associated with this run (you can have many schedules for the same task).
|
|
597
608
|
You can use this to remove the schedule, update it, etc */
|
|
598
609
|
scheduleId: zod.z.string(),
|
|
610
|
+
/** The type of schedule – `"DECLARATIVE"` or `"IMPERATIVE"`.
|
|
611
|
+
*
|
|
612
|
+
* **DECLARATIVE** – defined inline on your `schedules.task` using the `cron` property. They can only be created, updated or deleted by modifying the `cron` property on your task.
|
|
613
|
+
*
|
|
614
|
+
* **IMPERATIVE** – created using the `schedules.create` functions or in the dashboard.
|
|
615
|
+
*/
|
|
616
|
+
type: ScheduleType,
|
|
599
617
|
/** When the task was scheduled to run.
|
|
600
618
|
* Note this will be slightly different from `new Date()` because it takes a few ms to run the task.
|
|
601
619
|
*
|
|
@@ -671,6 +689,7 @@ var ScheduleGenerator = zod.z.object({
|
|
|
671
689
|
});
|
|
672
690
|
var ScheduleObject = zod.z.object({
|
|
673
691
|
id: zod.z.string(),
|
|
692
|
+
type: ScheduleType,
|
|
674
693
|
task: zod.z.string(),
|
|
675
694
|
active: zod.z.boolean(),
|
|
676
695
|
deduplicationKey: zod.z.string().nullish(),
|
|
@@ -1961,7 +1980,9 @@ exports.RunEnvironmentDetails = RunEnvironmentDetails;
|
|
|
1961
1980
|
exports.RunScheduleDetails = RunScheduleDetails;
|
|
1962
1981
|
exports.RunStatus = RunStatus;
|
|
1963
1982
|
exports.ScheduleGenerator = ScheduleGenerator;
|
|
1983
|
+
exports.ScheduleMetadata = ScheduleMetadata;
|
|
1964
1984
|
exports.ScheduleObject = ScheduleObject;
|
|
1985
|
+
exports.ScheduleType = ScheduleType;
|
|
1965
1986
|
exports.ScheduledTaskPayload = ScheduledTaskPayload;
|
|
1966
1987
|
exports.SharedQueueToClientMessages = SharedQueueToClientMessages;
|
|
1967
1988
|
exports.SlidingWindowRateLimit = SlidingWindowRateLimit;
|