@trigger.dev/core 0.0.0-v3-prerelease-20241012123509 → 0.0.0-v3-prerelease-20241014153026
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 +85 -85
- package/dist/commonjs/v3/runtime/prodRuntimeManager.js +4 -0
- package/dist/commonjs/v3/runtime/prodRuntimeManager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +248 -248
- package/dist/commonjs/v3/schemas/build.d.ts +112 -112
- package/dist/commonjs/v3/schemas/common.d.ts +100 -100
- package/dist/commonjs/v3/schemas/fetch.d.ts +14 -14
- package/dist/commonjs/v3/schemas/messages.d.ts +3137 -3137
- package/dist/commonjs/v3/schemas/resources.d.ts +12 -12
- package/dist/commonjs/v3/schemas/schemas.d.ts +394 -394
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +85 -85
- package/dist/esm/v3/runtime/prodRuntimeManager.js +4 -0
- package/dist/esm/v3/runtime/prodRuntimeManager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +248 -248
- package/dist/esm/v3/schemas/build.d.ts +112 -112
- package/dist/esm/v3/schemas/common.d.ts +100 -100
- package/dist/esm/v3/schemas/fetch.d.ts +14 -14
- package/dist/esm/v3/schemas/messages.d.ts +3137 -3137
- package/dist/esm/v3/schemas/resources.d.ts +12 -12
- package/dist/esm/v3/schemas/schemas.d.ts +394 -394
- 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,16 +33,30 @@ 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" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
37
37
|
id: string;
|
|
38
|
+
attempts: ({
|
|
39
|
+
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
40
|
+
id: string;
|
|
41
|
+
updatedAt: Date;
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
startedAt?: Date | undefined;
|
|
44
|
+
completedAt?: Date | undefined;
|
|
45
|
+
error?: {
|
|
46
|
+
message: string;
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
stackTrace?: string | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
} | undefined)[];
|
|
51
|
+
updatedAt: Date;
|
|
38
52
|
isTest: boolean;
|
|
39
|
-
durationMs: number;
|
|
40
|
-
tags: string[];
|
|
41
53
|
createdAt: Date;
|
|
54
|
+
tags: string[];
|
|
55
|
+
durationMs: number;
|
|
42
56
|
costInCents: number;
|
|
43
57
|
baseCostInCents: number;
|
|
44
58
|
depth: number;
|
|
45
|
-
triggerFunction: "
|
|
59
|
+
triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
|
|
46
60
|
taskIdentifier: string;
|
|
47
61
|
isQueued: boolean;
|
|
48
62
|
isExecuting: boolean;
|
|
@@ -50,19 +64,19 @@ export declare class ApiClient {
|
|
|
50
64
|
isSuccess: boolean;
|
|
51
65
|
isFailed: boolean;
|
|
52
66
|
isCancelled: boolean;
|
|
53
|
-
updatedAt: Date;
|
|
54
67
|
relatedRuns: {
|
|
55
68
|
root?: {
|
|
56
|
-
status: "
|
|
69
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
57
70
|
id: string;
|
|
71
|
+
updatedAt: Date;
|
|
58
72
|
isTest: boolean;
|
|
59
|
-
durationMs: number;
|
|
60
|
-
tags: string[];
|
|
61
73
|
createdAt: Date;
|
|
74
|
+
tags: string[];
|
|
75
|
+
durationMs: number;
|
|
62
76
|
costInCents: number;
|
|
63
77
|
baseCostInCents: number;
|
|
64
78
|
depth: number;
|
|
65
|
-
triggerFunction: "
|
|
79
|
+
triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
|
|
66
80
|
taskIdentifier: string;
|
|
67
81
|
isQueued: boolean;
|
|
68
82
|
isExecuting: boolean;
|
|
@@ -70,7 +84,6 @@ export declare class ApiClient {
|
|
|
70
84
|
isSuccess: boolean;
|
|
71
85
|
isFailed: boolean;
|
|
72
86
|
isCancelled: boolean;
|
|
73
|
-
updatedAt: Date;
|
|
74
87
|
batchId?: string | undefined;
|
|
75
88
|
idempotencyKey?: string | undefined;
|
|
76
89
|
version?: string | undefined;
|
|
@@ -82,16 +95,17 @@ export declare class ApiClient {
|
|
|
82
95
|
metadata?: Record<string, any> | undefined;
|
|
83
96
|
} | undefined;
|
|
84
97
|
parent?: {
|
|
85
|
-
status: "
|
|
98
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
86
99
|
id: string;
|
|
100
|
+
updatedAt: Date;
|
|
87
101
|
isTest: boolean;
|
|
88
|
-
durationMs: number;
|
|
89
|
-
tags: string[];
|
|
90
102
|
createdAt: Date;
|
|
103
|
+
tags: string[];
|
|
104
|
+
durationMs: number;
|
|
91
105
|
costInCents: number;
|
|
92
106
|
baseCostInCents: number;
|
|
93
107
|
depth: number;
|
|
94
|
-
triggerFunction: "
|
|
108
|
+
triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
|
|
95
109
|
taskIdentifier: string;
|
|
96
110
|
isQueued: boolean;
|
|
97
111
|
isExecuting: boolean;
|
|
@@ -99,7 +113,6 @@ export declare class ApiClient {
|
|
|
99
113
|
isSuccess: boolean;
|
|
100
114
|
isFailed: boolean;
|
|
101
115
|
isCancelled: boolean;
|
|
102
|
-
updatedAt: Date;
|
|
103
116
|
batchId?: string | undefined;
|
|
104
117
|
idempotencyKey?: string | undefined;
|
|
105
118
|
version?: string | undefined;
|
|
@@ -111,16 +124,17 @@ export declare class ApiClient {
|
|
|
111
124
|
metadata?: Record<string, any> | undefined;
|
|
112
125
|
} | undefined;
|
|
113
126
|
children?: {
|
|
114
|
-
status: "
|
|
127
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
115
128
|
id: string;
|
|
129
|
+
updatedAt: Date;
|
|
116
130
|
isTest: boolean;
|
|
117
|
-
durationMs: number;
|
|
118
|
-
tags: string[];
|
|
119
131
|
createdAt: Date;
|
|
132
|
+
tags: string[];
|
|
133
|
+
durationMs: number;
|
|
120
134
|
costInCents: number;
|
|
121
135
|
baseCostInCents: number;
|
|
122
136
|
depth: number;
|
|
123
|
-
triggerFunction: "
|
|
137
|
+
triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
|
|
124
138
|
taskIdentifier: string;
|
|
125
139
|
isQueued: boolean;
|
|
126
140
|
isExecuting: boolean;
|
|
@@ -128,7 +142,6 @@ export declare class ApiClient {
|
|
|
128
142
|
isSuccess: boolean;
|
|
129
143
|
isFailed: boolean;
|
|
130
144
|
isCancelled: boolean;
|
|
131
|
-
updatedAt: Date;
|
|
132
145
|
batchId?: string | undefined;
|
|
133
146
|
idempotencyKey?: string | undefined;
|
|
134
147
|
version?: string | undefined;
|
|
@@ -140,19 +153,6 @@ export declare class ApiClient {
|
|
|
140
153
|
metadata?: Record<string, any> | undefined;
|
|
141
154
|
}[] | undefined;
|
|
142
155
|
};
|
|
143
|
-
attempts: ({
|
|
144
|
-
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
145
|
-
id: string;
|
|
146
|
-
createdAt: Date;
|
|
147
|
-
updatedAt: Date;
|
|
148
|
-
startedAt?: Date | undefined;
|
|
149
|
-
completedAt?: Date | undefined;
|
|
150
|
-
error?: {
|
|
151
|
-
message: string;
|
|
152
|
-
name?: string | undefined;
|
|
153
|
-
stackTrace?: string | undefined;
|
|
154
|
-
} | undefined;
|
|
155
|
-
} | undefined)[];
|
|
156
156
|
payload?: any;
|
|
157
157
|
payloadPresignedUrl?: string | undefined;
|
|
158
158
|
output?: any;
|
|
@@ -161,8 +161,8 @@ export declare class ApiClient {
|
|
|
161
161
|
id: string;
|
|
162
162
|
generator: {
|
|
163
163
|
type: "CRON";
|
|
164
|
-
expression: string;
|
|
165
164
|
description: string;
|
|
165
|
+
expression: string;
|
|
166
166
|
};
|
|
167
167
|
externalId?: string | undefined;
|
|
168
168
|
deduplicationKey?: string | undefined;
|
|
@@ -186,16 +186,30 @@ export declare class ApiClient {
|
|
|
186
186
|
id: string;
|
|
187
187
|
}>;
|
|
188
188
|
rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
189
|
-
status: "
|
|
189
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
190
190
|
id: string;
|
|
191
|
+
attempts: ({
|
|
192
|
+
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
193
|
+
id: string;
|
|
194
|
+
updatedAt: Date;
|
|
195
|
+
createdAt: Date;
|
|
196
|
+
startedAt?: Date | undefined;
|
|
197
|
+
completedAt?: Date | undefined;
|
|
198
|
+
error?: {
|
|
199
|
+
message: string;
|
|
200
|
+
name?: string | undefined;
|
|
201
|
+
stackTrace?: string | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
} | undefined)[];
|
|
204
|
+
updatedAt: Date;
|
|
191
205
|
isTest: boolean;
|
|
192
|
-
durationMs: number;
|
|
193
|
-
tags: string[];
|
|
194
206
|
createdAt: Date;
|
|
207
|
+
tags: string[];
|
|
208
|
+
durationMs: number;
|
|
195
209
|
costInCents: number;
|
|
196
210
|
baseCostInCents: number;
|
|
197
211
|
depth: number;
|
|
198
|
-
triggerFunction: "
|
|
212
|
+
triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
|
|
199
213
|
taskIdentifier: string;
|
|
200
214
|
isQueued: boolean;
|
|
201
215
|
isExecuting: boolean;
|
|
@@ -203,19 +217,19 @@ export declare class ApiClient {
|
|
|
203
217
|
isSuccess: boolean;
|
|
204
218
|
isFailed: boolean;
|
|
205
219
|
isCancelled: boolean;
|
|
206
|
-
updatedAt: Date;
|
|
207
220
|
relatedRuns: {
|
|
208
221
|
root?: {
|
|
209
|
-
status: "
|
|
222
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
210
223
|
id: string;
|
|
224
|
+
updatedAt: Date;
|
|
211
225
|
isTest: boolean;
|
|
212
|
-
durationMs: number;
|
|
213
|
-
tags: string[];
|
|
214
226
|
createdAt: Date;
|
|
227
|
+
tags: string[];
|
|
228
|
+
durationMs: number;
|
|
215
229
|
costInCents: number;
|
|
216
230
|
baseCostInCents: number;
|
|
217
231
|
depth: number;
|
|
218
|
-
triggerFunction: "
|
|
232
|
+
triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
|
|
219
233
|
taskIdentifier: string;
|
|
220
234
|
isQueued: boolean;
|
|
221
235
|
isExecuting: boolean;
|
|
@@ -223,7 +237,6 @@ export declare class ApiClient {
|
|
|
223
237
|
isSuccess: boolean;
|
|
224
238
|
isFailed: boolean;
|
|
225
239
|
isCancelled: boolean;
|
|
226
|
-
updatedAt: Date;
|
|
227
240
|
batchId?: string | undefined;
|
|
228
241
|
idempotencyKey?: string | undefined;
|
|
229
242
|
version?: string | undefined;
|
|
@@ -235,16 +248,17 @@ export declare class ApiClient {
|
|
|
235
248
|
metadata?: Record<string, any> | undefined;
|
|
236
249
|
} | undefined;
|
|
237
250
|
parent?: {
|
|
238
|
-
status: "
|
|
251
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
239
252
|
id: string;
|
|
253
|
+
updatedAt: Date;
|
|
240
254
|
isTest: boolean;
|
|
241
|
-
durationMs: number;
|
|
242
|
-
tags: string[];
|
|
243
255
|
createdAt: Date;
|
|
256
|
+
tags: string[];
|
|
257
|
+
durationMs: number;
|
|
244
258
|
costInCents: number;
|
|
245
259
|
baseCostInCents: number;
|
|
246
260
|
depth: number;
|
|
247
|
-
triggerFunction: "
|
|
261
|
+
triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
|
|
248
262
|
taskIdentifier: string;
|
|
249
263
|
isQueued: boolean;
|
|
250
264
|
isExecuting: boolean;
|
|
@@ -252,7 +266,6 @@ export declare class ApiClient {
|
|
|
252
266
|
isSuccess: boolean;
|
|
253
267
|
isFailed: boolean;
|
|
254
268
|
isCancelled: boolean;
|
|
255
|
-
updatedAt: Date;
|
|
256
269
|
batchId?: string | undefined;
|
|
257
270
|
idempotencyKey?: string | undefined;
|
|
258
271
|
version?: string | undefined;
|
|
@@ -264,16 +277,17 @@ export declare class ApiClient {
|
|
|
264
277
|
metadata?: Record<string, any> | undefined;
|
|
265
278
|
} | undefined;
|
|
266
279
|
children?: {
|
|
267
|
-
status: "
|
|
280
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
268
281
|
id: string;
|
|
282
|
+
updatedAt: Date;
|
|
269
283
|
isTest: boolean;
|
|
270
|
-
durationMs: number;
|
|
271
|
-
tags: string[];
|
|
272
284
|
createdAt: Date;
|
|
285
|
+
tags: string[];
|
|
286
|
+
durationMs: number;
|
|
273
287
|
costInCents: number;
|
|
274
288
|
baseCostInCents: number;
|
|
275
289
|
depth: number;
|
|
276
|
-
triggerFunction: "
|
|
290
|
+
triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
|
|
277
291
|
taskIdentifier: string;
|
|
278
292
|
isQueued: boolean;
|
|
279
293
|
isExecuting: boolean;
|
|
@@ -281,7 +295,6 @@ export declare class ApiClient {
|
|
|
281
295
|
isSuccess: boolean;
|
|
282
296
|
isFailed: boolean;
|
|
283
297
|
isCancelled: boolean;
|
|
284
|
-
updatedAt: Date;
|
|
285
298
|
batchId?: string | undefined;
|
|
286
299
|
idempotencyKey?: string | undefined;
|
|
287
300
|
version?: string | undefined;
|
|
@@ -293,19 +306,6 @@ export declare class ApiClient {
|
|
|
293
306
|
metadata?: Record<string, any> | undefined;
|
|
294
307
|
}[] | undefined;
|
|
295
308
|
};
|
|
296
|
-
attempts: ({
|
|
297
|
-
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
298
|
-
id: string;
|
|
299
|
-
createdAt: Date;
|
|
300
|
-
updatedAt: Date;
|
|
301
|
-
startedAt?: Date | undefined;
|
|
302
|
-
completedAt?: Date | undefined;
|
|
303
|
-
error?: {
|
|
304
|
-
message: string;
|
|
305
|
-
name?: string | undefined;
|
|
306
|
-
stackTrace?: string | undefined;
|
|
307
|
-
} | undefined;
|
|
308
|
-
} | undefined)[];
|
|
309
309
|
payload?: any;
|
|
310
310
|
payloadPresignedUrl?: string | undefined;
|
|
311
311
|
output?: any;
|
|
@@ -314,8 +314,8 @@ export declare class ApiClient {
|
|
|
314
314
|
id: string;
|
|
315
315
|
generator: {
|
|
316
316
|
type: "CRON";
|
|
317
|
-
expression: string;
|
|
318
317
|
description: string;
|
|
318
|
+
expression: string;
|
|
319
319
|
};
|
|
320
320
|
externalId?: string | undefined;
|
|
321
321
|
deduplicationKey?: string | undefined;
|
|
@@ -336,13 +336,13 @@ export declare class ApiClient {
|
|
|
336
336
|
createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
337
337
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
338
338
|
id: string;
|
|
339
|
+
active: boolean;
|
|
339
340
|
task: string;
|
|
340
341
|
timezone: string;
|
|
341
|
-
active: boolean;
|
|
342
342
|
generator: {
|
|
343
343
|
type: "CRON";
|
|
344
|
-
expression: string;
|
|
345
344
|
description: string;
|
|
345
|
+
expression: string;
|
|
346
346
|
};
|
|
347
347
|
environments: {
|
|
348
348
|
type: string;
|
|
@@ -366,12 +366,12 @@ export declare class ApiClient {
|
|
|
366
366
|
description: z.ZodString;
|
|
367
367
|
}, "strip", z.ZodTypeAny, {
|
|
368
368
|
type: "CRON";
|
|
369
|
-
expression: string;
|
|
370
369
|
description: string;
|
|
370
|
+
expression: string;
|
|
371
371
|
}, {
|
|
372
372
|
type: "CRON";
|
|
373
|
-
expression: string;
|
|
374
373
|
description: string;
|
|
374
|
+
expression: string;
|
|
375
375
|
}>;
|
|
376
376
|
timezone: z.ZodString;
|
|
377
377
|
nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -391,13 +391,13 @@ export declare class ApiClient {
|
|
|
391
391
|
}, "strip", z.ZodTypeAny, {
|
|
392
392
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
393
393
|
id: string;
|
|
394
|
+
active: boolean;
|
|
394
395
|
task: string;
|
|
395
396
|
timezone: string;
|
|
396
|
-
active: boolean;
|
|
397
397
|
generator: {
|
|
398
398
|
type: "CRON";
|
|
399
|
-
expression: string;
|
|
400
399
|
description: string;
|
|
400
|
+
expression: string;
|
|
401
401
|
};
|
|
402
402
|
environments: {
|
|
403
403
|
type: string;
|
|
@@ -410,13 +410,13 @@ export declare class ApiClient {
|
|
|
410
410
|
}, {
|
|
411
411
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
412
412
|
id: string;
|
|
413
|
+
active: boolean;
|
|
413
414
|
task: string;
|
|
414
415
|
timezone: string;
|
|
415
|
-
active: boolean;
|
|
416
416
|
generator: {
|
|
417
417
|
type: "CRON";
|
|
418
|
-
expression: string;
|
|
419
418
|
description: string;
|
|
419
|
+
expression: string;
|
|
420
420
|
};
|
|
421
421
|
environments: {
|
|
422
422
|
type: string;
|
|
@@ -430,13 +430,13 @@ export declare class ApiClient {
|
|
|
430
430
|
retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
431
431
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
432
432
|
id: string;
|
|
433
|
+
active: boolean;
|
|
433
434
|
task: string;
|
|
434
435
|
timezone: string;
|
|
435
|
-
active: boolean;
|
|
436
436
|
generator: {
|
|
437
437
|
type: "CRON";
|
|
438
|
-
expression: string;
|
|
439
438
|
description: string;
|
|
439
|
+
expression: string;
|
|
440
440
|
};
|
|
441
441
|
environments: {
|
|
442
442
|
type: string;
|
|
@@ -450,13 +450,13 @@ export declare class ApiClient {
|
|
|
450
450
|
updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
451
451
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
452
452
|
id: string;
|
|
453
|
+
active: boolean;
|
|
453
454
|
task: string;
|
|
454
455
|
timezone: string;
|
|
455
|
-
active: boolean;
|
|
456
456
|
generator: {
|
|
457
457
|
type: "CRON";
|
|
458
|
-
expression: string;
|
|
459
458
|
description: string;
|
|
459
|
+
expression: string;
|
|
460
460
|
};
|
|
461
461
|
environments: {
|
|
462
462
|
type: string;
|
|
@@ -470,13 +470,13 @@ export declare class ApiClient {
|
|
|
470
470
|
deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
471
471
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
472
472
|
id: string;
|
|
473
|
+
active: boolean;
|
|
473
474
|
task: string;
|
|
474
475
|
timezone: string;
|
|
475
|
-
active: boolean;
|
|
476
476
|
generator: {
|
|
477
477
|
type: "CRON";
|
|
478
|
-
expression: string;
|
|
479
478
|
description: string;
|
|
479
|
+
expression: string;
|
|
480
480
|
};
|
|
481
481
|
environments: {
|
|
482
482
|
type: string;
|
|
@@ -490,13 +490,13 @@ export declare class ApiClient {
|
|
|
490
490
|
activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
491
491
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
492
492
|
id: string;
|
|
493
|
+
active: boolean;
|
|
493
494
|
task: string;
|
|
494
495
|
timezone: string;
|
|
495
|
-
active: boolean;
|
|
496
496
|
generator: {
|
|
497
497
|
type: "CRON";
|
|
498
|
-
expression: string;
|
|
499
498
|
description: string;
|
|
499
|
+
expression: string;
|
|
500
500
|
};
|
|
501
501
|
environments: {
|
|
502
502
|
type: string;
|
|
@@ -40,6 +40,7 @@ class ProdRuntimeManager {
|
|
|
40
40
|
return this.waitForDuration(date.getTime() - Date.now());
|
|
41
41
|
}
|
|
42
42
|
async waitForTask(params) {
|
|
43
|
+
console.log("waitForTask", params);
|
|
43
44
|
const promise = new Promise((resolve) => {
|
|
44
45
|
this._taskWaits.set(params.id, { resolve });
|
|
45
46
|
});
|
|
@@ -47,6 +48,7 @@ class ProdRuntimeManager {
|
|
|
47
48
|
friendlyId: params.id,
|
|
48
49
|
});
|
|
49
50
|
const result = await promise;
|
|
51
|
+
console.log("waitForTask result", result);
|
|
50
52
|
clock_api_js_1.clock.reset();
|
|
51
53
|
return result;
|
|
52
54
|
}
|
|
@@ -71,8 +73,10 @@ class ProdRuntimeManager {
|
|
|
71
73
|
};
|
|
72
74
|
}
|
|
73
75
|
resumeTask(completion) {
|
|
76
|
+
console.log("resumeTask", completion);
|
|
74
77
|
const wait = this._taskWaits.get(completion.id);
|
|
75
78
|
if (!wait) {
|
|
79
|
+
console.error("No wait found for task", completion.id);
|
|
76
80
|
return;
|
|
77
81
|
}
|
|
78
82
|
wait.resolve(completion);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prodRuntimeManager.js","sourceRoot":"","sources":["../../../../src/v3/runtime/prodRuntimeManager.ts"],"names":[],"mappings":";;;AAAA,kDAAwC;AAaxC,MAAa,kBAAkB;IAWnB;IACA;IAXV,UAAU,GAAsE,IAAI,GAAG,EAAE,CAAC;IAE1F,WAAW,GAGP,IAAI,GAAG,EAA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