@trigger.dev/core 0.0.0-v3-prerelease-20240916161707 → 0.0.0-v3-prerelease-20240916162259
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/commonjs/v3/apiClient/index.d.ts +44 -44
- package/dist/commonjs/v3/schemas/api.d.ts +178 -178
- package/dist/commonjs/v3/schemas/build.d.ts +126 -126
- package/dist/commonjs/v3/schemas/fetch.d.ts +14 -14
- package/dist/commonjs/v3/schemas/messages.d.ts +3125 -3125
- package/dist/commonjs/v3/schemas/resources.d.ts +30 -30
- package/dist/commonjs/v3/schemas/schemas.d.ts +466 -466
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +44 -44
- package/dist/esm/v3/schemas/api.d.ts +178 -178
- package/dist/esm/v3/schemas/build.d.ts +126 -126
- package/dist/esm/v3/schemas/fetch.d.ts +14 -14
- package/dist/esm/v3/schemas/messages.d.ts +3125 -3125
- package/dist/esm/v3/schemas/resources.d.ts +30 -30
- package/dist/esm/v3/schemas/schemas.d.ts +466 -466
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -23,8 +23,8 @@ export declare class ApiClient {
|
|
|
23
23
|
id: string;
|
|
24
24
|
}>;
|
|
25
25
|
batchTriggerTask(taskId: string, body: BatchTriggerTaskRequestBody, options?: TriggerOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
26
|
-
batchId: string;
|
|
27
26
|
runs: string[];
|
|
27
|
+
batchId: string;
|
|
28
28
|
}>;
|
|
29
29
|
createUploadPayloadUrl(filename: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
30
30
|
presignedUrl: string;
|
|
@@ -33,15 +33,13 @@ export declare class ApiClient {
|
|
|
33
33
|
presignedUrl: string;
|
|
34
34
|
}>;
|
|
35
35
|
retrieveRun(runId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
36
|
-
status: "
|
|
36
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
37
37
|
id: string;
|
|
38
|
-
createdAt: Date;
|
|
39
|
-
tags: string[];
|
|
40
38
|
attempts: ({
|
|
41
|
-
status: "PENDING" | "
|
|
39
|
+
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
42
40
|
id: string;
|
|
43
|
-
createdAt: Date;
|
|
44
41
|
updatedAt: Date;
|
|
42
|
+
createdAt: Date;
|
|
45
43
|
startedAt?: Date | undefined;
|
|
46
44
|
completedAt?: Date | undefined;
|
|
47
45
|
error?: {
|
|
@@ -51,6 +49,12 @@ export declare class ApiClient {
|
|
|
51
49
|
} | undefined;
|
|
52
50
|
} | undefined)[];
|
|
53
51
|
updatedAt: Date;
|
|
52
|
+
isTest: boolean;
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
tags: string[];
|
|
55
|
+
durationMs: number;
|
|
56
|
+
costInCents: number;
|
|
57
|
+
baseCostInCents: number;
|
|
54
58
|
taskIdentifier: string;
|
|
55
59
|
isQueued: boolean;
|
|
56
60
|
isExecuting: boolean;
|
|
@@ -58,10 +62,6 @@ export declare class ApiClient {
|
|
|
58
62
|
isSuccess: boolean;
|
|
59
63
|
isFailed: boolean;
|
|
60
64
|
isCancelled: boolean;
|
|
61
|
-
isTest: boolean;
|
|
62
|
-
costInCents: number;
|
|
63
|
-
baseCostInCents: number;
|
|
64
|
-
durationMs: number;
|
|
65
65
|
payload?: any;
|
|
66
66
|
payloadPresignedUrl?: string | undefined;
|
|
67
67
|
output?: any;
|
|
@@ -70,8 +70,8 @@ export declare class ApiClient {
|
|
|
70
70
|
id: string;
|
|
71
71
|
generator: {
|
|
72
72
|
type: "CRON";
|
|
73
|
-
expression: string;
|
|
74
73
|
description: string;
|
|
74
|
+
expression: string;
|
|
75
75
|
};
|
|
76
76
|
externalId?: string | undefined;
|
|
77
77
|
deduplicationKey?: string | undefined;
|
|
@@ -93,15 +93,13 @@ export declare class ApiClient {
|
|
|
93
93
|
id: string;
|
|
94
94
|
}>;
|
|
95
95
|
rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
96
|
-
status: "
|
|
96
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
97
97
|
id: string;
|
|
98
|
-
createdAt: Date;
|
|
99
|
-
tags: string[];
|
|
100
98
|
attempts: ({
|
|
101
|
-
status: "PENDING" | "
|
|
99
|
+
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
102
100
|
id: string;
|
|
103
|
-
createdAt: Date;
|
|
104
101
|
updatedAt: Date;
|
|
102
|
+
createdAt: Date;
|
|
105
103
|
startedAt?: Date | undefined;
|
|
106
104
|
completedAt?: Date | undefined;
|
|
107
105
|
error?: {
|
|
@@ -111,6 +109,12 @@ export declare class ApiClient {
|
|
|
111
109
|
} | undefined;
|
|
112
110
|
} | undefined)[];
|
|
113
111
|
updatedAt: Date;
|
|
112
|
+
isTest: boolean;
|
|
113
|
+
createdAt: Date;
|
|
114
|
+
tags: string[];
|
|
115
|
+
durationMs: number;
|
|
116
|
+
costInCents: number;
|
|
117
|
+
baseCostInCents: number;
|
|
114
118
|
taskIdentifier: string;
|
|
115
119
|
isQueued: boolean;
|
|
116
120
|
isExecuting: boolean;
|
|
@@ -118,10 +122,6 @@ export declare class ApiClient {
|
|
|
118
122
|
isSuccess: boolean;
|
|
119
123
|
isFailed: boolean;
|
|
120
124
|
isCancelled: boolean;
|
|
121
|
-
isTest: boolean;
|
|
122
|
-
costInCents: number;
|
|
123
|
-
baseCostInCents: number;
|
|
124
|
-
durationMs: number;
|
|
125
125
|
payload?: any;
|
|
126
126
|
payloadPresignedUrl?: string | undefined;
|
|
127
127
|
output?: any;
|
|
@@ -130,8 +130,8 @@ export declare class ApiClient {
|
|
|
130
130
|
id: string;
|
|
131
131
|
generator: {
|
|
132
132
|
type: "CRON";
|
|
133
|
-
expression: string;
|
|
134
133
|
description: string;
|
|
134
|
+
expression: string;
|
|
135
135
|
};
|
|
136
136
|
externalId?: string | undefined;
|
|
137
137
|
deduplicationKey?: string | undefined;
|
|
@@ -150,13 +150,13 @@ export declare class ApiClient {
|
|
|
150
150
|
createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
151
151
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
152
152
|
id: string;
|
|
153
|
-
timezone: string;
|
|
154
|
-
task: string;
|
|
155
153
|
active: boolean;
|
|
154
|
+
task: string;
|
|
155
|
+
timezone: string;
|
|
156
156
|
generator: {
|
|
157
157
|
type: "CRON";
|
|
158
|
-
expression: string;
|
|
159
158
|
description: string;
|
|
159
|
+
expression: string;
|
|
160
160
|
};
|
|
161
161
|
environments: {
|
|
162
162
|
type: string;
|
|
@@ -180,12 +180,12 @@ export declare class ApiClient {
|
|
|
180
180
|
description: z.ZodString;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
182
|
type: "CRON";
|
|
183
|
-
expression: string;
|
|
184
183
|
description: string;
|
|
184
|
+
expression: string;
|
|
185
185
|
}, {
|
|
186
186
|
type: "CRON";
|
|
187
|
-
expression: string;
|
|
188
187
|
description: string;
|
|
188
|
+
expression: string;
|
|
189
189
|
}>;
|
|
190
190
|
timezone: z.ZodString;
|
|
191
191
|
nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -205,13 +205,13 @@ export declare class ApiClient {
|
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
206
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
207
207
|
id: string;
|
|
208
|
-
timezone: string;
|
|
209
|
-
task: string;
|
|
210
208
|
active: boolean;
|
|
209
|
+
task: string;
|
|
210
|
+
timezone: string;
|
|
211
211
|
generator: {
|
|
212
212
|
type: "CRON";
|
|
213
|
-
expression: string;
|
|
214
213
|
description: string;
|
|
214
|
+
expression: string;
|
|
215
215
|
};
|
|
216
216
|
environments: {
|
|
217
217
|
type: string;
|
|
@@ -224,13 +224,13 @@ export declare class ApiClient {
|
|
|
224
224
|
}, {
|
|
225
225
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
226
226
|
id: string;
|
|
227
|
-
timezone: string;
|
|
228
|
-
task: string;
|
|
229
227
|
active: boolean;
|
|
228
|
+
task: string;
|
|
229
|
+
timezone: string;
|
|
230
230
|
generator: {
|
|
231
231
|
type: "CRON";
|
|
232
|
-
expression: string;
|
|
233
232
|
description: string;
|
|
233
|
+
expression: string;
|
|
234
234
|
};
|
|
235
235
|
environments: {
|
|
236
236
|
type: string;
|
|
@@ -244,13 +244,13 @@ export declare class ApiClient {
|
|
|
244
244
|
retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
245
245
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
246
246
|
id: string;
|
|
247
|
-
timezone: string;
|
|
248
|
-
task: string;
|
|
249
247
|
active: boolean;
|
|
248
|
+
task: string;
|
|
249
|
+
timezone: string;
|
|
250
250
|
generator: {
|
|
251
251
|
type: "CRON";
|
|
252
|
-
expression: string;
|
|
253
252
|
description: string;
|
|
253
|
+
expression: string;
|
|
254
254
|
};
|
|
255
255
|
environments: {
|
|
256
256
|
type: string;
|
|
@@ -264,13 +264,13 @@ export declare class ApiClient {
|
|
|
264
264
|
updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
265
265
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
266
266
|
id: string;
|
|
267
|
-
timezone: string;
|
|
268
|
-
task: string;
|
|
269
267
|
active: boolean;
|
|
268
|
+
task: string;
|
|
269
|
+
timezone: string;
|
|
270
270
|
generator: {
|
|
271
271
|
type: "CRON";
|
|
272
|
-
expression: string;
|
|
273
272
|
description: string;
|
|
273
|
+
expression: string;
|
|
274
274
|
};
|
|
275
275
|
environments: {
|
|
276
276
|
type: string;
|
|
@@ -284,13 +284,13 @@ export declare class ApiClient {
|
|
|
284
284
|
deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
285
285
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
286
286
|
id: string;
|
|
287
|
-
timezone: string;
|
|
288
|
-
task: string;
|
|
289
287
|
active: boolean;
|
|
288
|
+
task: string;
|
|
289
|
+
timezone: string;
|
|
290
290
|
generator: {
|
|
291
291
|
type: "CRON";
|
|
292
|
-
expression: string;
|
|
293
292
|
description: string;
|
|
293
|
+
expression: string;
|
|
294
294
|
};
|
|
295
295
|
environments: {
|
|
296
296
|
type: string;
|
|
@@ -304,13 +304,13 @@ export declare class ApiClient {
|
|
|
304
304
|
activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
305
305
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
306
306
|
id: string;
|
|
307
|
-
timezone: string;
|
|
308
|
-
task: string;
|
|
309
307
|
active: boolean;
|
|
308
|
+
task: string;
|
|
309
|
+
timezone: string;
|
|
310
310
|
generator: {
|
|
311
311
|
type: "CRON";
|
|
312
|
-
expression: string;
|
|
313
312
|
description: string;
|
|
313
|
+
expression: string;
|
|
314
314
|
};
|
|
315
315
|
environments: {
|
|
316
316
|
type: string;
|