duron 0.1.0
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/LICENSE +7 -0
- package/README.md +140 -0
- package/dist/action-job.d.ts +24 -0
- package/dist/action-job.d.ts.map +1 -0
- package/dist/action-job.js +108 -0
- package/dist/action-manager.d.ts +21 -0
- package/dist/action-manager.d.ts.map +1 -0
- package/dist/action-manager.js +78 -0
- package/dist/action.d.ts +129 -0
- package/dist/action.d.ts.map +1 -0
- package/dist/action.js +87 -0
- package/dist/adapters/adapter.d.ts +92 -0
- package/dist/adapters/adapter.d.ts.map +1 -0
- package/dist/adapters/adapter.js +424 -0
- package/dist/adapters/postgres/drizzle.config.d.ts +3 -0
- package/dist/adapters/postgres/drizzle.config.d.ts.map +1 -0
- package/dist/adapters/postgres/drizzle.config.js +10 -0
- package/dist/adapters/postgres/pglite.d.ts +13 -0
- package/dist/adapters/postgres/pglite.d.ts.map +1 -0
- package/dist/adapters/postgres/pglite.js +36 -0
- package/dist/adapters/postgres/postgres.d.ts +51 -0
- package/dist/adapters/postgres/postgres.d.ts.map +1 -0
- package/dist/adapters/postgres/postgres.js +867 -0
- package/dist/adapters/postgres/schema.d.ts +581 -0
- package/dist/adapters/postgres/schema.d.ts.map +1 -0
- package/dist/adapters/postgres/schema.default.d.ts +577 -0
- package/dist/adapters/postgres/schema.default.d.ts.map +1 -0
- package/dist/adapters/postgres/schema.default.js +3 -0
- package/dist/adapters/postgres/schema.js +87 -0
- package/dist/adapters/schemas.d.ts +516 -0
- package/dist/adapters/schemas.d.ts.map +1 -0
- package/dist/adapters/schemas.js +184 -0
- package/dist/client.d.ts +85 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +416 -0
- package/dist/constants.d.ts +14 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +22 -0
- package/dist/errors.d.ts +43 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +75 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/server.d.ts +1193 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +516 -0
- package/dist/step-manager.d.ts +46 -0
- package/dist/step-manager.d.ts.map +1 -0
- package/dist/step-manager.js +216 -0
- package/dist/utils/checksum.d.ts +2 -0
- package/dist/utils/checksum.d.ts.map +1 -0
- package/dist/utils/checksum.js +6 -0
- package/dist/utils/p-retry.d.ts +19 -0
- package/dist/utils/p-retry.d.ts.map +1 -0
- package/dist/utils/p-retry.js +130 -0
- package/dist/utils/wait-for-abort.d.ts +5 -0
- package/dist/utils/wait-for-abort.d.ts.map +1 -0
- package/dist/utils/wait-for-abort.js +32 -0
- package/migrations/postgres/0000_lethal_speed_demon.sql +64 -0
- package/migrations/postgres/meta/0000_snapshot.json +606 -0
- package/migrations/postgres/meta/_journal.json +13 -0
- package/package.json +88 -0
- package/src/action-job.ts +201 -0
- package/src/action-manager.ts +166 -0
- package/src/action.ts +247 -0
- package/src/adapters/adapter.ts +969 -0
- package/src/adapters/postgres/drizzle.config.ts +11 -0
- package/src/adapters/postgres/pglite.ts +86 -0
- package/src/adapters/postgres/postgres.ts +1346 -0
- package/src/adapters/postgres/schema.default.ts +5 -0
- package/src/adapters/postgres/schema.ts +119 -0
- package/src/adapters/schemas.ts +320 -0
- package/src/client.ts +859 -0
- package/src/constants.ts +37 -0
- package/src/errors.ts +205 -0
- package/src/index.ts +14 -0
- package/src/server.ts +718 -0
- package/src/step-manager.ts +471 -0
- package/src/utils/checksum.ts +7 -0
- package/src/utils/p-retry.ts +213 -0
- package/src/utils/wait-for-abort.ts +40 -0
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const JobStatusSchema: z.ZodEnum<{
|
|
3
|
+
created: "created";
|
|
4
|
+
active: "active";
|
|
5
|
+
completed: "completed";
|
|
6
|
+
failed: "failed";
|
|
7
|
+
cancelled: "cancelled";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const StepStatusSchema: z.ZodEnum<{
|
|
10
|
+
active: "active";
|
|
11
|
+
completed: "completed";
|
|
12
|
+
failed: "failed";
|
|
13
|
+
cancelled: "cancelled";
|
|
14
|
+
}>;
|
|
15
|
+
export declare const SerializableErrorSchema: z.ZodObject<{
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
message: z.ZodString;
|
|
18
|
+
cause: z.ZodOptional<z.ZodAny>;
|
|
19
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const JobSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
actionName: z.ZodString;
|
|
24
|
+
groupKey: z.ZodString;
|
|
25
|
+
input: z.ZodAny;
|
|
26
|
+
output: z.ZodNullable<z.ZodAny>;
|
|
27
|
+
error: z.ZodNullable<z.ZodAny>;
|
|
28
|
+
status: z.ZodEnum<{
|
|
29
|
+
created: "created";
|
|
30
|
+
active: "active";
|
|
31
|
+
completed: "completed";
|
|
32
|
+
failed: "failed";
|
|
33
|
+
cancelled: "cancelled";
|
|
34
|
+
}>;
|
|
35
|
+
timeoutMs: z.ZodCoercedNumber<unknown>;
|
|
36
|
+
expiresAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>;
|
|
37
|
+
startedAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
38
|
+
finishedAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
39
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
40
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
41
|
+
concurrencyLimit: z.ZodCoercedNumber<unknown>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const JobStepSchema: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
jobId: z.ZodString;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
output: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
|
|
48
|
+
status: z.ZodEnum<{
|
|
49
|
+
active: "active";
|
|
50
|
+
completed: "completed";
|
|
51
|
+
failed: "failed";
|
|
52
|
+
cancelled: "cancelled";
|
|
53
|
+
}>;
|
|
54
|
+
error: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
|
|
55
|
+
startedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
56
|
+
finishedAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
57
|
+
timeoutMs: z.ZodCoercedNumber<unknown>;
|
|
58
|
+
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
59
|
+
retriesLimit: z.ZodCoercedNumber<unknown>;
|
|
60
|
+
retriesCount: z.ZodCoercedNumber<unknown>;
|
|
61
|
+
delayedMs: z.ZodDefault<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
62
|
+
historyFailedAttempts: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
63
|
+
failedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
64
|
+
error: z.ZodObject<{
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
message: z.ZodString;
|
|
67
|
+
cause: z.ZodOptional<z.ZodAny>;
|
|
68
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
delayedMs: z.ZodCoercedNumber<unknown>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
73
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export declare const JobStepWithoutOutputSchema: z.ZodObject<{
|
|
76
|
+
error: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
status: z.ZodEnum<{
|
|
79
|
+
active: "active";
|
|
80
|
+
completed: "completed";
|
|
81
|
+
failed: "failed";
|
|
82
|
+
cancelled: "cancelled";
|
|
83
|
+
}>;
|
|
84
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
85
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
timeoutMs: z.ZodCoercedNumber<unknown>;
|
|
88
|
+
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
89
|
+
startedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
90
|
+
finishedAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
91
|
+
jobId: z.ZodString;
|
|
92
|
+
retriesLimit: z.ZodCoercedNumber<unknown>;
|
|
93
|
+
retriesCount: z.ZodCoercedNumber<unknown>;
|
|
94
|
+
delayedMs: z.ZodDefault<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
95
|
+
historyFailedAttempts: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
96
|
+
failedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
97
|
+
error: z.ZodObject<{
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
message: z.ZodString;
|
|
100
|
+
cause: z.ZodOptional<z.ZodAny>;
|
|
101
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
delayedMs: z.ZodCoercedNumber<unknown>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
export declare const SortOrderSchema: z.ZodEnum<{
|
|
107
|
+
asc: "asc";
|
|
108
|
+
desc: "desc";
|
|
109
|
+
}>;
|
|
110
|
+
export declare const JobSortFieldSchema: z.ZodEnum<{
|
|
111
|
+
status: "status";
|
|
112
|
+
createdAt: "createdAt";
|
|
113
|
+
actionName: "actionName";
|
|
114
|
+
expiresAt: "expiresAt";
|
|
115
|
+
startedAt: "startedAt";
|
|
116
|
+
finishedAt: "finishedAt";
|
|
117
|
+
}>;
|
|
118
|
+
export declare const JobSortSchema: z.ZodObject<{
|
|
119
|
+
field: z.ZodEnum<{
|
|
120
|
+
status: "status";
|
|
121
|
+
createdAt: "createdAt";
|
|
122
|
+
actionName: "actionName";
|
|
123
|
+
expiresAt: "expiresAt";
|
|
124
|
+
startedAt: "startedAt";
|
|
125
|
+
finishedAt: "finishedAt";
|
|
126
|
+
}>;
|
|
127
|
+
order: z.ZodEnum<{
|
|
128
|
+
asc: "asc";
|
|
129
|
+
desc: "desc";
|
|
130
|
+
}>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
export declare const JobFiltersSchema: z.ZodObject<{
|
|
133
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
134
|
+
created: "created";
|
|
135
|
+
active: "active";
|
|
136
|
+
completed: "completed";
|
|
137
|
+
failed: "failed";
|
|
138
|
+
cancelled: "cancelled";
|
|
139
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
140
|
+
created: "created";
|
|
141
|
+
active: "active";
|
|
142
|
+
completed: "completed";
|
|
143
|
+
failed: "failed";
|
|
144
|
+
cancelled: "cancelled";
|
|
145
|
+
}>>]>>;
|
|
146
|
+
actionName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
147
|
+
groupKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
148
|
+
ownerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
149
|
+
createdAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>]>>;
|
|
150
|
+
startedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>]>>;
|
|
151
|
+
finishedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>]>>;
|
|
152
|
+
updatedAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>;
|
|
153
|
+
inputFilter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
154
|
+
outputFilter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
155
|
+
search: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export declare const GetJobsOptionsSchema: z.ZodObject<{
|
|
158
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
162
|
+
created: "created";
|
|
163
|
+
active: "active";
|
|
164
|
+
completed: "completed";
|
|
165
|
+
failed: "failed";
|
|
166
|
+
cancelled: "cancelled";
|
|
167
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
168
|
+
created: "created";
|
|
169
|
+
active: "active";
|
|
170
|
+
completed: "completed";
|
|
171
|
+
failed: "failed";
|
|
172
|
+
cancelled: "cancelled";
|
|
173
|
+
}>>]>>;
|
|
174
|
+
actionName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
175
|
+
groupKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
176
|
+
ownerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
177
|
+
createdAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>]>>;
|
|
178
|
+
startedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>]>>;
|
|
179
|
+
finishedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>]>>;
|
|
180
|
+
updatedAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>;
|
|
181
|
+
inputFilter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
182
|
+
outputFilter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
183
|
+
search: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
sort: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
186
|
+
field: z.ZodEnum<{
|
|
187
|
+
status: "status";
|
|
188
|
+
createdAt: "createdAt";
|
|
189
|
+
actionName: "actionName";
|
|
190
|
+
expiresAt: "expiresAt";
|
|
191
|
+
startedAt: "startedAt";
|
|
192
|
+
finishedAt: "finishedAt";
|
|
193
|
+
}>;
|
|
194
|
+
order: z.ZodEnum<{
|
|
195
|
+
asc: "asc";
|
|
196
|
+
desc: "desc";
|
|
197
|
+
}>;
|
|
198
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
199
|
+
field: z.ZodEnum<{
|
|
200
|
+
status: "status";
|
|
201
|
+
createdAt: "createdAt";
|
|
202
|
+
actionName: "actionName";
|
|
203
|
+
expiresAt: "expiresAt";
|
|
204
|
+
startedAt: "startedAt";
|
|
205
|
+
finishedAt: "finishedAt";
|
|
206
|
+
}>;
|
|
207
|
+
order: z.ZodEnum<{
|
|
208
|
+
asc: "asc";
|
|
209
|
+
desc: "desc";
|
|
210
|
+
}>;
|
|
211
|
+
}, z.core.$strip>>]>>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
export declare const GetJobStepsOptionsSchema: z.ZodObject<{
|
|
214
|
+
jobId: z.ZodString;
|
|
215
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
search: z.ZodOptional<z.ZodString>;
|
|
218
|
+
updatedAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
export declare const CreateJobOptionsSchema: z.ZodObject<{
|
|
221
|
+
queue: z.ZodString;
|
|
222
|
+
groupKey: z.ZodString;
|
|
223
|
+
checksum: z.ZodString;
|
|
224
|
+
input: z.ZodAny;
|
|
225
|
+
timeoutMs: z.ZodNumber;
|
|
226
|
+
concurrencyLimit: z.ZodNumber;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
export declare const RecoverJobsOptionsSchema: z.ZodObject<{
|
|
229
|
+
checksums: z.ZodArray<z.ZodString>;
|
|
230
|
+
multiProcessMode: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
processTimeout: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
export declare const FetchOptionsSchema: z.ZodObject<{
|
|
234
|
+
batch: z.ZodNumber;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
export declare const CompleteJobOptionsSchema: z.ZodObject<{
|
|
237
|
+
jobId: z.ZodString;
|
|
238
|
+
output: z.ZodAny;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
export declare const FailJobOptionsSchema: z.ZodObject<{
|
|
241
|
+
jobId: z.ZodString;
|
|
242
|
+
error: z.ZodAny;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
export declare const CancelJobOptionsSchema: z.ZodObject<{
|
|
245
|
+
jobId: z.ZodString;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
export declare const RetryJobOptionsSchema: z.ZodObject<{
|
|
248
|
+
jobId: z.ZodString;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
export declare const DeleteJobOptionsSchema: z.ZodObject<{
|
|
251
|
+
jobId: z.ZodString;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
export declare const DeleteJobsOptionsSchema: z.ZodOptional<z.ZodObject<{
|
|
254
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
256
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
258
|
+
created: "created";
|
|
259
|
+
active: "active";
|
|
260
|
+
completed: "completed";
|
|
261
|
+
failed: "failed";
|
|
262
|
+
cancelled: "cancelled";
|
|
263
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
264
|
+
created: "created";
|
|
265
|
+
active: "active";
|
|
266
|
+
completed: "completed";
|
|
267
|
+
failed: "failed";
|
|
268
|
+
cancelled: "cancelled";
|
|
269
|
+
}>>]>>;
|
|
270
|
+
actionName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
271
|
+
groupKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
272
|
+
ownerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
273
|
+
createdAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>]>>;
|
|
274
|
+
startedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>]>>;
|
|
275
|
+
finishedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>]>>;
|
|
276
|
+
updatedAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>;
|
|
277
|
+
inputFilter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
278
|
+
outputFilter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
279
|
+
search: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
sort: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
282
|
+
field: z.ZodEnum<{
|
|
283
|
+
status: "status";
|
|
284
|
+
createdAt: "createdAt";
|
|
285
|
+
actionName: "actionName";
|
|
286
|
+
expiresAt: "expiresAt";
|
|
287
|
+
startedAt: "startedAt";
|
|
288
|
+
finishedAt: "finishedAt";
|
|
289
|
+
}>;
|
|
290
|
+
order: z.ZodEnum<{
|
|
291
|
+
asc: "asc";
|
|
292
|
+
desc: "desc";
|
|
293
|
+
}>;
|
|
294
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
295
|
+
field: z.ZodEnum<{
|
|
296
|
+
status: "status";
|
|
297
|
+
createdAt: "createdAt";
|
|
298
|
+
actionName: "actionName";
|
|
299
|
+
expiresAt: "expiresAt";
|
|
300
|
+
startedAt: "startedAt";
|
|
301
|
+
finishedAt: "finishedAt";
|
|
302
|
+
}>;
|
|
303
|
+
order: z.ZodEnum<{
|
|
304
|
+
asc: "asc";
|
|
305
|
+
desc: "desc";
|
|
306
|
+
}>;
|
|
307
|
+
}, z.core.$strip>>]>>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
309
|
+
export declare const CreateOrRecoverJobStepOptionsSchema: z.ZodObject<{
|
|
310
|
+
jobId: z.ZodString;
|
|
311
|
+
name: z.ZodString;
|
|
312
|
+
timeoutMs: z.ZodNumber;
|
|
313
|
+
retriesLimit: z.ZodNumber;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
export declare const CompleteJobStepOptionsSchema: z.ZodObject<{
|
|
316
|
+
stepId: z.ZodString;
|
|
317
|
+
output: z.ZodAny;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
export declare const FailJobStepOptionsSchema: z.ZodObject<{
|
|
320
|
+
stepId: z.ZodString;
|
|
321
|
+
error: z.ZodAny;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
export declare const DelayJobStepOptionsSchema: z.ZodObject<{
|
|
324
|
+
stepId: z.ZodString;
|
|
325
|
+
delayMs: z.ZodNumber;
|
|
326
|
+
error: z.ZodAny;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
export declare const CancelJobStepOptionsSchema: z.ZodObject<{
|
|
329
|
+
stepId: z.ZodString;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
export declare const CreateOrRecoverJobStepResultSchema: z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
status: z.ZodEnum<{
|
|
334
|
+
active: "active";
|
|
335
|
+
completed: "completed";
|
|
336
|
+
failed: "failed";
|
|
337
|
+
cancelled: "cancelled";
|
|
338
|
+
}>;
|
|
339
|
+
retriesLimit: z.ZodNumber;
|
|
340
|
+
retriesCount: z.ZodNumber;
|
|
341
|
+
timeoutMs: z.ZodNumber;
|
|
342
|
+
error: z.ZodNullable<z.ZodAny>;
|
|
343
|
+
output: z.ZodNullable<z.ZodAny>;
|
|
344
|
+
isNew: z.ZodBoolean;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
export declare const JobIdResultSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
347
|
+
export declare const BooleanResultSchema: z.ZodBoolean;
|
|
348
|
+
export declare const NumberResultSchema: z.ZodNumber;
|
|
349
|
+
export declare const JobsArrayResultSchema: z.ZodArray<z.ZodObject<{
|
|
350
|
+
id: z.ZodString;
|
|
351
|
+
actionName: z.ZodString;
|
|
352
|
+
groupKey: z.ZodString;
|
|
353
|
+
input: z.ZodAny;
|
|
354
|
+
output: z.ZodNullable<z.ZodAny>;
|
|
355
|
+
error: z.ZodNullable<z.ZodAny>;
|
|
356
|
+
status: z.ZodEnum<{
|
|
357
|
+
created: "created";
|
|
358
|
+
active: "active";
|
|
359
|
+
completed: "completed";
|
|
360
|
+
failed: "failed";
|
|
361
|
+
cancelled: "cancelled";
|
|
362
|
+
}>;
|
|
363
|
+
timeoutMs: z.ZodCoercedNumber<unknown>;
|
|
364
|
+
expiresAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>;
|
|
365
|
+
startedAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
366
|
+
finishedAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
367
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
368
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
369
|
+
concurrencyLimit: z.ZodCoercedNumber<unknown>;
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
|
+
export declare const CreateOrRecoverJobStepResultNullableSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
372
|
+
id: z.ZodString;
|
|
373
|
+
status: z.ZodEnum<{
|
|
374
|
+
active: "active";
|
|
375
|
+
completed: "completed";
|
|
376
|
+
failed: "failed";
|
|
377
|
+
cancelled: "cancelled";
|
|
378
|
+
}>;
|
|
379
|
+
retriesLimit: z.ZodNumber;
|
|
380
|
+
retriesCount: z.ZodNumber;
|
|
381
|
+
timeoutMs: z.ZodNumber;
|
|
382
|
+
error: z.ZodNullable<z.ZodAny>;
|
|
383
|
+
output: z.ZodNullable<z.ZodAny>;
|
|
384
|
+
isNew: z.ZodBoolean;
|
|
385
|
+
}, z.core.$strip>, z.ZodNull]>;
|
|
386
|
+
export declare const GetJobsResultSchema: z.ZodObject<{
|
|
387
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
388
|
+
id: z.ZodString;
|
|
389
|
+
actionName: z.ZodString;
|
|
390
|
+
groupKey: z.ZodString;
|
|
391
|
+
input: z.ZodAny;
|
|
392
|
+
output: z.ZodNullable<z.ZodAny>;
|
|
393
|
+
error: z.ZodNullable<z.ZodAny>;
|
|
394
|
+
status: z.ZodEnum<{
|
|
395
|
+
created: "created";
|
|
396
|
+
active: "active";
|
|
397
|
+
completed: "completed";
|
|
398
|
+
failed: "failed";
|
|
399
|
+
cancelled: "cancelled";
|
|
400
|
+
}>;
|
|
401
|
+
timeoutMs: z.ZodCoercedNumber<unknown>;
|
|
402
|
+
expiresAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>;
|
|
403
|
+
startedAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
404
|
+
finishedAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
405
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
406
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
407
|
+
concurrencyLimit: z.ZodCoercedNumber<unknown>;
|
|
408
|
+
}, z.core.$strip>>;
|
|
409
|
+
total: z.ZodNumber;
|
|
410
|
+
page: z.ZodNumber;
|
|
411
|
+
pageSize: z.ZodNumber;
|
|
412
|
+
}, z.core.$strip>;
|
|
413
|
+
export declare const GetJobStepsResultSchema: z.ZodObject<{
|
|
414
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
415
|
+
error: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
|
|
416
|
+
name: z.ZodString;
|
|
417
|
+
status: z.ZodEnum<{
|
|
418
|
+
active: "active";
|
|
419
|
+
completed: "completed";
|
|
420
|
+
failed: "failed";
|
|
421
|
+
cancelled: "cancelled";
|
|
422
|
+
}>;
|
|
423
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
424
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
425
|
+
id: z.ZodString;
|
|
426
|
+
timeoutMs: z.ZodCoercedNumber<unknown>;
|
|
427
|
+
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
428
|
+
startedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
429
|
+
finishedAt: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>>;
|
|
430
|
+
jobId: z.ZodString;
|
|
431
|
+
retriesLimit: z.ZodCoercedNumber<unknown>;
|
|
432
|
+
retriesCount: z.ZodCoercedNumber<unknown>;
|
|
433
|
+
delayedMs: z.ZodDefault<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
434
|
+
historyFailedAttempts: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
435
|
+
failedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
436
|
+
error: z.ZodObject<{
|
|
437
|
+
name: z.ZodString;
|
|
438
|
+
message: z.ZodString;
|
|
439
|
+
cause: z.ZodOptional<z.ZodAny>;
|
|
440
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
delayedMs: z.ZodCoercedNumber<unknown>;
|
|
443
|
+
}, z.core.$strip>>;
|
|
444
|
+
}, z.core.$strip>>;
|
|
445
|
+
total: z.ZodNumber;
|
|
446
|
+
page: z.ZodNumber;
|
|
447
|
+
pageSize: z.ZodNumber;
|
|
448
|
+
}, z.core.$strip>;
|
|
449
|
+
export declare const ActionStatsSchema: z.ZodObject<{
|
|
450
|
+
name: z.ZodString;
|
|
451
|
+
lastJobCreated: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>;
|
|
452
|
+
active: z.ZodNumber;
|
|
453
|
+
completed: z.ZodNumber;
|
|
454
|
+
failed: z.ZodNumber;
|
|
455
|
+
cancelled: z.ZodNumber;
|
|
456
|
+
}, z.core.$strip>;
|
|
457
|
+
export declare const GetActionsResultSchema: z.ZodObject<{
|
|
458
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
459
|
+
name: z.ZodString;
|
|
460
|
+
lastJobCreated: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>>;
|
|
461
|
+
active: z.ZodNumber;
|
|
462
|
+
completed: z.ZodNumber;
|
|
463
|
+
failed: z.ZodNumber;
|
|
464
|
+
cancelled: z.ZodNumber;
|
|
465
|
+
}, z.core.$strip>>;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
export declare const JobStatusResultSchema: z.ZodObject<{
|
|
468
|
+
status: z.ZodEnum<{
|
|
469
|
+
created: "created";
|
|
470
|
+
active: "active";
|
|
471
|
+
completed: "completed";
|
|
472
|
+
failed: "failed";
|
|
473
|
+
cancelled: "cancelled";
|
|
474
|
+
}>;
|
|
475
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
476
|
+
}, z.core.$strip>;
|
|
477
|
+
export declare const JobStepStatusResultSchema: z.ZodObject<{
|
|
478
|
+
status: z.ZodEnum<{
|
|
479
|
+
active: "active";
|
|
480
|
+
completed: "completed";
|
|
481
|
+
failed: "failed";
|
|
482
|
+
cancelled: "cancelled";
|
|
483
|
+
}>;
|
|
484
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>]>;
|
|
485
|
+
}, z.core.$strip>;
|
|
486
|
+
export type Job = z.infer<typeof JobSchema>;
|
|
487
|
+
export type JobStep = z.infer<typeof JobStepSchema>;
|
|
488
|
+
export type JobStepWithoutOutput = z.infer<typeof JobStepWithoutOutputSchema>;
|
|
489
|
+
export type SortOrder = z.infer<typeof SortOrderSchema>;
|
|
490
|
+
export type JobSortField = z.infer<typeof JobSortFieldSchema>;
|
|
491
|
+
export type JobSort = z.infer<typeof JobSortSchema>;
|
|
492
|
+
export type JobFilters = z.infer<typeof JobFiltersSchema>;
|
|
493
|
+
export type GetJobsOptions = z.infer<typeof GetJobsOptionsSchema>;
|
|
494
|
+
export type GetJobStepsOptions = z.infer<typeof GetJobStepsOptionsSchema>;
|
|
495
|
+
export type GetJobsResult = z.infer<typeof GetJobsResultSchema>;
|
|
496
|
+
export type GetJobStepsResult = z.infer<typeof GetJobStepsResultSchema>;
|
|
497
|
+
export type ActionStats = z.infer<typeof ActionStatsSchema>;
|
|
498
|
+
export type GetActionsResult = z.infer<typeof GetActionsResultSchema>;
|
|
499
|
+
export type JobStatusResult = z.infer<typeof JobStatusResultSchema>;
|
|
500
|
+
export type JobStepStatusResult = z.infer<typeof JobStepStatusResultSchema>;
|
|
501
|
+
export type CreateJobOptions = z.infer<typeof CreateJobOptionsSchema>;
|
|
502
|
+
export type RecoverJobsOptions = z.infer<typeof RecoverJobsOptionsSchema>;
|
|
503
|
+
export type FetchOptions = z.infer<typeof FetchOptionsSchema>;
|
|
504
|
+
export type CompleteJobOptions = z.infer<typeof CompleteJobOptionsSchema>;
|
|
505
|
+
export type FailJobOptions = z.infer<typeof FailJobOptionsSchema>;
|
|
506
|
+
export type CancelJobOptions = z.infer<typeof CancelJobOptionsSchema>;
|
|
507
|
+
export type RetryJobOptions = z.infer<typeof RetryJobOptionsSchema>;
|
|
508
|
+
export type DeleteJobOptions = z.infer<typeof DeleteJobOptionsSchema>;
|
|
509
|
+
export type DeleteJobsOptions = z.infer<typeof DeleteJobsOptionsSchema>;
|
|
510
|
+
export type CreateOrRecoverJobStepOptions = z.infer<typeof CreateOrRecoverJobStepOptionsSchema>;
|
|
511
|
+
export type CompleteJobStepOptions = z.infer<typeof CompleteJobStepOptionsSchema>;
|
|
512
|
+
export type FailJobStepOptions = z.infer<typeof FailJobStepOptionsSchema>;
|
|
513
|
+
export type DelayJobStepOptions = z.infer<typeof DelayJobStepOptionsSchema>;
|
|
514
|
+
export type CancelJobStepOptions = z.infer<typeof CancelJobStepOptionsSchema>;
|
|
515
|
+
export type CreateOrRecoverJobStepResult = z.infer<typeof CreateOrRecoverJobStepResultSchema>;
|
|
516
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/adapters/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,eAAO,MAAM,eAAe;;;;;;EAAuB,CAAA;AACnD,eAAO,MAAM,gBAAgB;;;;;EAAwB,CAAA;AAYrD,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAA;AAMF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;iBAepB,C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