@trigger.dev/sdk 0.0.0-prerelease-20241218195631 → 0.0.0-prerelease-20241219092418
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/runs.d.ts +14 -14
- package/dist/esm/v3/runs.d.ts +58 -58
- package/package.json +2 -2
|
@@ -27,10 +27,22 @@ export type PollOptions = {
|
|
|
27
27
|
declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: RunId<TRunId>, options?: {
|
|
28
28
|
pollIntervalMs?: number;
|
|
29
29
|
}, requestOptions?: ApiRequestOptions): Promise<{
|
|
30
|
-
id: string;
|
|
31
|
-
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
32
30
|
tags: string[];
|
|
31
|
+
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
33
32
|
taskIdentifier: string;
|
|
33
|
+
version?: string | undefined;
|
|
34
|
+
schedule?: {
|
|
35
|
+
id: string;
|
|
36
|
+
generator: {
|
|
37
|
+
type: "CRON";
|
|
38
|
+
expression: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
externalId?: string | undefined;
|
|
42
|
+
deduplicationKey?: string | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
isTest: boolean;
|
|
45
|
+
id: string;
|
|
34
46
|
relatedRuns: {
|
|
35
47
|
root?: {
|
|
36
48
|
id: string;
|
|
@@ -128,7 +140,6 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
128
140
|
isSuccess: boolean;
|
|
129
141
|
isFailed: boolean;
|
|
130
142
|
isCancelled: boolean;
|
|
131
|
-
isTest: boolean;
|
|
132
143
|
createdAt: Date;
|
|
133
144
|
updatedAt: Date;
|
|
134
145
|
costInCents: number;
|
|
@@ -158,18 +169,7 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
158
169
|
name?: string | undefined;
|
|
159
170
|
stackTrace?: string | undefined;
|
|
160
171
|
} | undefined;
|
|
161
|
-
schedule?: {
|
|
162
|
-
id: string;
|
|
163
|
-
generator: {
|
|
164
|
-
type: "CRON";
|
|
165
|
-
expression: string;
|
|
166
|
-
description: string;
|
|
167
|
-
};
|
|
168
|
-
externalId?: string | undefined;
|
|
169
|
-
deduplicationKey?: string | undefined;
|
|
170
|
-
} | undefined;
|
|
171
172
|
batchId?: string | undefined;
|
|
172
|
-
version?: string | undefined;
|
|
173
173
|
startedAt?: Date | undefined;
|
|
174
174
|
finishedAt?: Date | undefined;
|
|
175
175
|
delayedUntil?: Date | undefined;
|
package/dist/esm/v3/runs.d.ts
CHANGED
|
@@ -27,31 +27,57 @@ export type PollOptions = {
|
|
|
27
27
|
declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: RunId<TRunId>, options?: {
|
|
28
28
|
pollIntervalMs?: number;
|
|
29
29
|
}, requestOptions?: ApiRequestOptions): Promise<{
|
|
30
|
-
payloadPresignedUrl?: string | undefined;
|
|
31
|
-
outputPresignedUrl?: string | undefined;
|
|
32
30
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
31
|
+
version?: string | undefined;
|
|
33
32
|
error?: {
|
|
34
33
|
message: string;
|
|
35
34
|
name?: string | undefined;
|
|
36
35
|
stackTrace?: string | undefined;
|
|
37
36
|
} | undefined;
|
|
38
37
|
id: string;
|
|
38
|
+
startedAt?: Date | undefined;
|
|
39
|
+
tags: string[];
|
|
40
|
+
isTest: boolean;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
idempotencyKey?: string | undefined;
|
|
43
|
+
durationMs: number;
|
|
44
|
+
costInCents: number;
|
|
45
|
+
baseCostInCents: number;
|
|
46
|
+
metadata?: Record<string, any> | undefined;
|
|
47
|
+
taskIdentifier: string;
|
|
48
|
+
isQueued: boolean;
|
|
49
|
+
isExecuting: boolean;
|
|
50
|
+
isCompleted: boolean;
|
|
51
|
+
isSuccess: boolean;
|
|
52
|
+
isFailed: boolean;
|
|
53
|
+
isCancelled: boolean;
|
|
54
|
+
updatedAt: Date;
|
|
55
|
+
finishedAt?: Date | undefined;
|
|
56
|
+
delayedUntil?: Date | undefined;
|
|
57
|
+
ttl?: string | undefined;
|
|
58
|
+
expiredAt?: Date | undefined;
|
|
39
59
|
schedule?: {
|
|
40
60
|
id: string;
|
|
41
61
|
generator: {
|
|
42
|
-
description: string;
|
|
43
62
|
type: "CRON";
|
|
44
63
|
expression: string;
|
|
64
|
+
description: string;
|
|
45
65
|
};
|
|
46
66
|
externalId?: string | undefined;
|
|
47
67
|
deduplicationKey?: string | undefined;
|
|
48
68
|
} | undefined;
|
|
69
|
+
payloadPresignedUrl?: string | undefined;
|
|
70
|
+
outputPresignedUrl?: string | undefined;
|
|
49
71
|
relatedRuns: {
|
|
50
72
|
root?: {
|
|
51
73
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
52
74
|
id: string;
|
|
53
|
-
|
|
54
|
-
|
|
75
|
+
tags: string[];
|
|
76
|
+
isTest: boolean;
|
|
77
|
+
createdAt: Date;
|
|
78
|
+
durationMs: number;
|
|
79
|
+
costInCents: number;
|
|
80
|
+
baseCostInCents: number;
|
|
55
81
|
taskIdentifier: string;
|
|
56
82
|
isQueued: boolean;
|
|
57
83
|
isExecuting: boolean;
|
|
@@ -59,28 +85,28 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
59
85
|
isSuccess: boolean;
|
|
60
86
|
isFailed: boolean;
|
|
61
87
|
isCancelled: boolean;
|
|
62
|
-
isTest: boolean;
|
|
63
|
-
createdAt: Date;
|
|
64
88
|
updatedAt: Date;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
baseCostInCents: number;
|
|
68
|
-
durationMs: number;
|
|
69
|
-
batchId?: string | undefined;
|
|
70
|
-
idempotencyKey?: string | undefined;
|
|
89
|
+
depth: number;
|
|
90
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
71
91
|
version?: string | undefined;
|
|
72
92
|
startedAt?: Date | undefined;
|
|
93
|
+
idempotencyKey?: string | undefined;
|
|
94
|
+
metadata?: Record<string, any> | undefined;
|
|
73
95
|
finishedAt?: Date | undefined;
|
|
74
96
|
delayedUntil?: Date | undefined;
|
|
75
97
|
ttl?: string | undefined;
|
|
76
98
|
expiredAt?: Date | undefined;
|
|
77
|
-
|
|
99
|
+
batchId?: string | undefined;
|
|
78
100
|
} | undefined;
|
|
79
101
|
parent?: {
|
|
80
102
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
81
103
|
id: string;
|
|
82
|
-
|
|
83
|
-
|
|
104
|
+
tags: string[];
|
|
105
|
+
isTest: boolean;
|
|
106
|
+
createdAt: Date;
|
|
107
|
+
durationMs: number;
|
|
108
|
+
costInCents: number;
|
|
109
|
+
baseCostInCents: number;
|
|
84
110
|
taskIdentifier: string;
|
|
85
111
|
isQueued: boolean;
|
|
86
112
|
isExecuting: boolean;
|
|
@@ -88,28 +114,28 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
88
114
|
isSuccess: boolean;
|
|
89
115
|
isFailed: boolean;
|
|
90
116
|
isCancelled: boolean;
|
|
91
|
-
isTest: boolean;
|
|
92
|
-
createdAt: Date;
|
|
93
117
|
updatedAt: Date;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
baseCostInCents: number;
|
|
97
|
-
durationMs: number;
|
|
98
|
-
batchId?: string | undefined;
|
|
99
|
-
idempotencyKey?: string | undefined;
|
|
118
|
+
depth: number;
|
|
119
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
100
120
|
version?: string | undefined;
|
|
101
121
|
startedAt?: Date | undefined;
|
|
122
|
+
idempotencyKey?: string | undefined;
|
|
123
|
+
metadata?: Record<string, any> | undefined;
|
|
102
124
|
finishedAt?: Date | undefined;
|
|
103
125
|
delayedUntil?: Date | undefined;
|
|
104
126
|
ttl?: string | undefined;
|
|
105
127
|
expiredAt?: Date | undefined;
|
|
106
|
-
|
|
128
|
+
batchId?: string | undefined;
|
|
107
129
|
} | undefined;
|
|
108
130
|
children?: {
|
|
109
131
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
110
132
|
id: string;
|
|
111
|
-
|
|
112
|
-
|
|
133
|
+
tags: string[];
|
|
134
|
+
isTest: boolean;
|
|
135
|
+
createdAt: Date;
|
|
136
|
+
durationMs: number;
|
|
137
|
+
costInCents: number;
|
|
138
|
+
baseCostInCents: number;
|
|
113
139
|
taskIdentifier: string;
|
|
114
140
|
isQueued: boolean;
|
|
115
141
|
isExecuting: boolean;
|
|
@@ -117,49 +143,23 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
117
143
|
isSuccess: boolean;
|
|
118
144
|
isFailed: boolean;
|
|
119
145
|
isCancelled: boolean;
|
|
120
|
-
isTest: boolean;
|
|
121
|
-
createdAt: Date;
|
|
122
146
|
updatedAt: Date;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
baseCostInCents: number;
|
|
126
|
-
durationMs: number;
|
|
127
|
-
batchId?: string | undefined;
|
|
128
|
-
idempotencyKey?: string | undefined;
|
|
147
|
+
depth: number;
|
|
148
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
129
149
|
version?: string | undefined;
|
|
130
150
|
startedAt?: Date | undefined;
|
|
151
|
+
idempotencyKey?: string | undefined;
|
|
152
|
+
metadata?: Record<string, any> | undefined;
|
|
131
153
|
finishedAt?: Date | undefined;
|
|
132
154
|
delayedUntil?: Date | undefined;
|
|
133
155
|
ttl?: string | undefined;
|
|
134
156
|
expiredAt?: Date | undefined;
|
|
135
|
-
|
|
157
|
+
batchId?: string | undefined;
|
|
136
158
|
}[] | undefined;
|
|
137
159
|
};
|
|
138
160
|
depth: number;
|
|
139
161
|
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
140
162
|
batchId?: string | undefined;
|
|
141
|
-
taskIdentifier: string;
|
|
142
|
-
idempotencyKey?: string | undefined;
|
|
143
|
-
version?: string | undefined;
|
|
144
|
-
isQueued: boolean;
|
|
145
|
-
isExecuting: boolean;
|
|
146
|
-
isCompleted: boolean;
|
|
147
|
-
isSuccess: boolean;
|
|
148
|
-
isFailed: boolean;
|
|
149
|
-
isCancelled: boolean;
|
|
150
|
-
isTest: boolean;
|
|
151
|
-
createdAt: Date;
|
|
152
|
-
updatedAt: Date;
|
|
153
|
-
startedAt?: Date | undefined;
|
|
154
|
-
finishedAt?: Date | undefined;
|
|
155
|
-
delayedUntil?: Date | undefined;
|
|
156
|
-
ttl?: string | undefined;
|
|
157
|
-
expiredAt?: Date | undefined;
|
|
158
|
-
tags: string[];
|
|
159
|
-
costInCents: number;
|
|
160
|
-
baseCostInCents: number;
|
|
161
|
-
durationMs: number;
|
|
162
|
-
metadata?: Record<string, any> | undefined;
|
|
163
163
|
attempts: ({
|
|
164
164
|
status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
|
|
165
165
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trigger.dev/sdk",
|
|
3
|
-
"version": "0.0.0-prerelease-
|
|
3
|
+
"version": "0.0.0-prerelease-20241219092418",
|
|
4
4
|
"description": "trigger.dev Node.JS SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@opentelemetry/api": "1.9.0",
|
|
41
41
|
"@opentelemetry/api-logs": "0.52.1",
|
|
42
42
|
"@opentelemetry/semantic-conventions": "1.25.1",
|
|
43
|
-
"@trigger.dev/core": "0.0.0-prerelease-
|
|
43
|
+
"@trigger.dev/core": "0.0.0-prerelease-20241219092418",
|
|
44
44
|
"chalk": "^5.2.0",
|
|
45
45
|
"cronstrue": "^2.21.0",
|
|
46
46
|
"debug": "^4.3.4",
|