@workflow/world-postgres 4.0.1-beta.2 → 4.1.0-beta.10
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.md +201 -21
- package/README.md +33 -0
- package/bin/setup.js +12 -0
- package/dist/boss.d.ts +15 -0
- package/dist/boss.d.ts.map +1 -0
- package/dist/boss.js +18 -0
- package/dist/boss.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +44 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +2 -0
- package/dist/config.js.map +1 -0
- package/dist/drizzle/index.d.ts +8 -0
- package/dist/drizzle/index.d.ts.map +1 -0
- package/dist/drizzle/index.js +7 -0
- package/dist/drizzle/index.js.map +1 -0
- package/dist/drizzle/schema.d.ts +843 -0
- package/dist/drizzle/schema.d.ts.map +1 -0
- package/dist/drizzle/schema.js +88 -0
- package/dist/drizzle/schema.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/queue.d.ts +17 -0
- package/dist/queue.d.ts.map +1 -0
- package/dist/queue.js +103 -0
- package/dist/queue.js.map +1 -0
- package/dist/storage.d.ts +7 -0
- package/dist/storage.d.ts.map +1 -0
- package/dist/storage.js +585 -0
- package/dist/storage.js.map +1 -0
- package/dist/streamer.d.ts +5 -0
- package/dist/streamer.d.ts.map +1 -0
- package/dist/streamer.js +157 -0
- package/dist/streamer.js.map +1 -0
- package/dist/util.d.ts +6 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/util.js +20 -0
- package/dist/util.js.map +1 -0
- package/dist/zod.d.ts +3 -0
- package/dist/zod.d.ts.map +1 -0
- package/dist/zod.js +10 -0
- package/dist/zod.js.map +1 -0
- package/package.json +32 -17
- package/src/drizzle/migrations/0000_cultured_the_anarchist.sql +84 -0
- package/src/drizzle/migrations/0001_update_error_schema.sql +7 -0
- package/src/drizzle/migrations/meta/0000_snapshot.json +499 -0
- package/src/drizzle/migrations/meta/_journal.json +13 -0
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "fbf17a09-4b7e-4939-9ee9-89ada6e197b1",
|
|
3
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"workflow.workflow_events": {
|
|
8
|
+
"name": "workflow_events",
|
|
9
|
+
"schema": "workflow",
|
|
10
|
+
"columns": {
|
|
11
|
+
"id": {
|
|
12
|
+
"name": "id",
|
|
13
|
+
"type": "varchar",
|
|
14
|
+
"primaryKey": true,
|
|
15
|
+
"notNull": true
|
|
16
|
+
},
|
|
17
|
+
"type": {
|
|
18
|
+
"name": "type",
|
|
19
|
+
"type": "varchar",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true
|
|
22
|
+
},
|
|
23
|
+
"correlation_id": {
|
|
24
|
+
"name": "correlation_id",
|
|
25
|
+
"type": "varchar",
|
|
26
|
+
"primaryKey": false,
|
|
27
|
+
"notNull": false
|
|
28
|
+
},
|
|
29
|
+
"created_at": {
|
|
30
|
+
"name": "created_at",
|
|
31
|
+
"type": "timestamp",
|
|
32
|
+
"primaryKey": false,
|
|
33
|
+
"notNull": true,
|
|
34
|
+
"default": "now()"
|
|
35
|
+
},
|
|
36
|
+
"run_id": {
|
|
37
|
+
"name": "run_id",
|
|
38
|
+
"type": "varchar",
|
|
39
|
+
"primaryKey": false,
|
|
40
|
+
"notNull": true
|
|
41
|
+
},
|
|
42
|
+
"payload": {
|
|
43
|
+
"name": "payload",
|
|
44
|
+
"type": "jsonb",
|
|
45
|
+
"primaryKey": false,
|
|
46
|
+
"notNull": false
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"indexes": {
|
|
50
|
+
"workflow_events_run_id_index": {
|
|
51
|
+
"name": "workflow_events_run_id_index",
|
|
52
|
+
"columns": [
|
|
53
|
+
{
|
|
54
|
+
"expression": "run_id",
|
|
55
|
+
"isExpression": false,
|
|
56
|
+
"asc": true,
|
|
57
|
+
"nulls": "last"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"isUnique": false,
|
|
61
|
+
"concurrently": false,
|
|
62
|
+
"method": "btree",
|
|
63
|
+
"with": {}
|
|
64
|
+
},
|
|
65
|
+
"workflow_events_correlation_id_index": {
|
|
66
|
+
"name": "workflow_events_correlation_id_index",
|
|
67
|
+
"columns": [
|
|
68
|
+
{
|
|
69
|
+
"expression": "correlation_id",
|
|
70
|
+
"isExpression": false,
|
|
71
|
+
"asc": true,
|
|
72
|
+
"nulls": "last"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"isUnique": false,
|
|
76
|
+
"concurrently": false,
|
|
77
|
+
"method": "btree",
|
|
78
|
+
"with": {}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"foreignKeys": {},
|
|
82
|
+
"compositePrimaryKeys": {},
|
|
83
|
+
"uniqueConstraints": {}
|
|
84
|
+
},
|
|
85
|
+
"workflow.workflow_hooks": {
|
|
86
|
+
"name": "workflow_hooks",
|
|
87
|
+
"schema": "workflow",
|
|
88
|
+
"columns": {
|
|
89
|
+
"run_id": {
|
|
90
|
+
"name": "run_id",
|
|
91
|
+
"type": "varchar",
|
|
92
|
+
"primaryKey": false,
|
|
93
|
+
"notNull": true
|
|
94
|
+
},
|
|
95
|
+
"hook_id": {
|
|
96
|
+
"name": "hook_id",
|
|
97
|
+
"type": "varchar",
|
|
98
|
+
"primaryKey": true,
|
|
99
|
+
"notNull": true
|
|
100
|
+
},
|
|
101
|
+
"token": {
|
|
102
|
+
"name": "token",
|
|
103
|
+
"type": "varchar",
|
|
104
|
+
"primaryKey": false,
|
|
105
|
+
"notNull": true
|
|
106
|
+
},
|
|
107
|
+
"owner_id": {
|
|
108
|
+
"name": "owner_id",
|
|
109
|
+
"type": "varchar",
|
|
110
|
+
"primaryKey": false,
|
|
111
|
+
"notNull": true
|
|
112
|
+
},
|
|
113
|
+
"project_id": {
|
|
114
|
+
"name": "project_id",
|
|
115
|
+
"type": "varchar",
|
|
116
|
+
"primaryKey": false,
|
|
117
|
+
"notNull": true
|
|
118
|
+
},
|
|
119
|
+
"environment": {
|
|
120
|
+
"name": "environment",
|
|
121
|
+
"type": "varchar",
|
|
122
|
+
"primaryKey": false,
|
|
123
|
+
"notNull": true
|
|
124
|
+
},
|
|
125
|
+
"created_at": {
|
|
126
|
+
"name": "created_at",
|
|
127
|
+
"type": "timestamp",
|
|
128
|
+
"primaryKey": false,
|
|
129
|
+
"notNull": true,
|
|
130
|
+
"default": "now()"
|
|
131
|
+
},
|
|
132
|
+
"metadata": {
|
|
133
|
+
"name": "metadata",
|
|
134
|
+
"type": "jsonb",
|
|
135
|
+
"primaryKey": false,
|
|
136
|
+
"notNull": false
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"indexes": {
|
|
140
|
+
"workflow_hooks_run_id_index": {
|
|
141
|
+
"name": "workflow_hooks_run_id_index",
|
|
142
|
+
"columns": [
|
|
143
|
+
{
|
|
144
|
+
"expression": "run_id",
|
|
145
|
+
"isExpression": false,
|
|
146
|
+
"asc": true,
|
|
147
|
+
"nulls": "last"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"isUnique": false,
|
|
151
|
+
"concurrently": false,
|
|
152
|
+
"method": "btree",
|
|
153
|
+
"with": {}
|
|
154
|
+
},
|
|
155
|
+
"workflow_hooks_token_index": {
|
|
156
|
+
"name": "workflow_hooks_token_index",
|
|
157
|
+
"columns": [
|
|
158
|
+
{
|
|
159
|
+
"expression": "token",
|
|
160
|
+
"isExpression": false,
|
|
161
|
+
"asc": true,
|
|
162
|
+
"nulls": "last"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"isUnique": false,
|
|
166
|
+
"concurrently": false,
|
|
167
|
+
"method": "btree",
|
|
168
|
+
"with": {}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"foreignKeys": {},
|
|
172
|
+
"compositePrimaryKeys": {},
|
|
173
|
+
"uniqueConstraints": {}
|
|
174
|
+
},
|
|
175
|
+
"workflow.workflow_runs": {
|
|
176
|
+
"name": "workflow_runs",
|
|
177
|
+
"schema": "workflow",
|
|
178
|
+
"columns": {
|
|
179
|
+
"id": {
|
|
180
|
+
"name": "id",
|
|
181
|
+
"type": "varchar",
|
|
182
|
+
"primaryKey": true,
|
|
183
|
+
"notNull": true
|
|
184
|
+
},
|
|
185
|
+
"output": {
|
|
186
|
+
"name": "output",
|
|
187
|
+
"type": "jsonb",
|
|
188
|
+
"primaryKey": false,
|
|
189
|
+
"notNull": false
|
|
190
|
+
},
|
|
191
|
+
"deployment_id": {
|
|
192
|
+
"name": "deployment_id",
|
|
193
|
+
"type": "varchar",
|
|
194
|
+
"primaryKey": false,
|
|
195
|
+
"notNull": true
|
|
196
|
+
},
|
|
197
|
+
"status": {
|
|
198
|
+
"name": "status",
|
|
199
|
+
"type": "status",
|
|
200
|
+
"typeSchema": "public",
|
|
201
|
+
"primaryKey": false,
|
|
202
|
+
"notNull": true
|
|
203
|
+
},
|
|
204
|
+
"name": {
|
|
205
|
+
"name": "name",
|
|
206
|
+
"type": "varchar",
|
|
207
|
+
"primaryKey": false,
|
|
208
|
+
"notNull": true
|
|
209
|
+
},
|
|
210
|
+
"execution_context": {
|
|
211
|
+
"name": "execution_context",
|
|
212
|
+
"type": "jsonb",
|
|
213
|
+
"primaryKey": false,
|
|
214
|
+
"notNull": false
|
|
215
|
+
},
|
|
216
|
+
"input": {
|
|
217
|
+
"name": "input",
|
|
218
|
+
"type": "jsonb",
|
|
219
|
+
"primaryKey": false,
|
|
220
|
+
"notNull": true
|
|
221
|
+
},
|
|
222
|
+
"error": {
|
|
223
|
+
"name": "error",
|
|
224
|
+
"type": "text",
|
|
225
|
+
"primaryKey": false,
|
|
226
|
+
"notNull": false
|
|
227
|
+
},
|
|
228
|
+
"error_code": {
|
|
229
|
+
"name": "error_code",
|
|
230
|
+
"type": "varchar",
|
|
231
|
+
"primaryKey": false,
|
|
232
|
+
"notNull": false
|
|
233
|
+
},
|
|
234
|
+
"created_at": {
|
|
235
|
+
"name": "created_at",
|
|
236
|
+
"type": "timestamp",
|
|
237
|
+
"primaryKey": false,
|
|
238
|
+
"notNull": true,
|
|
239
|
+
"default": "now()"
|
|
240
|
+
},
|
|
241
|
+
"updated_at": {
|
|
242
|
+
"name": "updated_at",
|
|
243
|
+
"type": "timestamp",
|
|
244
|
+
"primaryKey": false,
|
|
245
|
+
"notNull": true,
|
|
246
|
+
"default": "now()"
|
|
247
|
+
},
|
|
248
|
+
"completed_at": {
|
|
249
|
+
"name": "completed_at",
|
|
250
|
+
"type": "timestamp",
|
|
251
|
+
"primaryKey": false,
|
|
252
|
+
"notNull": false
|
|
253
|
+
},
|
|
254
|
+
"started_at": {
|
|
255
|
+
"name": "started_at",
|
|
256
|
+
"type": "timestamp",
|
|
257
|
+
"primaryKey": false,
|
|
258
|
+
"notNull": false
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"indexes": {
|
|
262
|
+
"workflow_runs_name_index": {
|
|
263
|
+
"name": "workflow_runs_name_index",
|
|
264
|
+
"columns": [
|
|
265
|
+
{
|
|
266
|
+
"expression": "name",
|
|
267
|
+
"isExpression": false,
|
|
268
|
+
"asc": true,
|
|
269
|
+
"nulls": "last"
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
"isUnique": false,
|
|
273
|
+
"concurrently": false,
|
|
274
|
+
"method": "btree",
|
|
275
|
+
"with": {}
|
|
276
|
+
},
|
|
277
|
+
"workflow_runs_status_index": {
|
|
278
|
+
"name": "workflow_runs_status_index",
|
|
279
|
+
"columns": [
|
|
280
|
+
{
|
|
281
|
+
"expression": "status",
|
|
282
|
+
"isExpression": false,
|
|
283
|
+
"asc": true,
|
|
284
|
+
"nulls": "last"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"isUnique": false,
|
|
288
|
+
"concurrently": false,
|
|
289
|
+
"method": "btree",
|
|
290
|
+
"with": {}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"foreignKeys": {},
|
|
294
|
+
"compositePrimaryKeys": {},
|
|
295
|
+
"uniqueConstraints": {}
|
|
296
|
+
},
|
|
297
|
+
"workflow.workflow_steps": {
|
|
298
|
+
"name": "workflow_steps",
|
|
299
|
+
"schema": "workflow",
|
|
300
|
+
"columns": {
|
|
301
|
+
"run_id": {
|
|
302
|
+
"name": "run_id",
|
|
303
|
+
"type": "varchar",
|
|
304
|
+
"primaryKey": false,
|
|
305
|
+
"notNull": true
|
|
306
|
+
},
|
|
307
|
+
"step_id": {
|
|
308
|
+
"name": "step_id",
|
|
309
|
+
"type": "varchar",
|
|
310
|
+
"primaryKey": true,
|
|
311
|
+
"notNull": true
|
|
312
|
+
},
|
|
313
|
+
"step_name": {
|
|
314
|
+
"name": "step_name",
|
|
315
|
+
"type": "varchar",
|
|
316
|
+
"primaryKey": false,
|
|
317
|
+
"notNull": true
|
|
318
|
+
},
|
|
319
|
+
"status": {
|
|
320
|
+
"name": "status",
|
|
321
|
+
"type": "step_status",
|
|
322
|
+
"typeSchema": "public",
|
|
323
|
+
"primaryKey": false,
|
|
324
|
+
"notNull": true
|
|
325
|
+
},
|
|
326
|
+
"input": {
|
|
327
|
+
"name": "input",
|
|
328
|
+
"type": "jsonb",
|
|
329
|
+
"primaryKey": false,
|
|
330
|
+
"notNull": true
|
|
331
|
+
},
|
|
332
|
+
"output": {
|
|
333
|
+
"name": "output",
|
|
334
|
+
"type": "jsonb",
|
|
335
|
+
"primaryKey": false,
|
|
336
|
+
"notNull": false
|
|
337
|
+
},
|
|
338
|
+
"error": {
|
|
339
|
+
"name": "error",
|
|
340
|
+
"type": "text",
|
|
341
|
+
"primaryKey": false,
|
|
342
|
+
"notNull": false
|
|
343
|
+
},
|
|
344
|
+
"error_code": {
|
|
345
|
+
"name": "error_code",
|
|
346
|
+
"type": "varchar",
|
|
347
|
+
"primaryKey": false,
|
|
348
|
+
"notNull": false
|
|
349
|
+
},
|
|
350
|
+
"attempt": {
|
|
351
|
+
"name": "attempt",
|
|
352
|
+
"type": "integer",
|
|
353
|
+
"primaryKey": false,
|
|
354
|
+
"notNull": true
|
|
355
|
+
},
|
|
356
|
+
"started_at": {
|
|
357
|
+
"name": "started_at",
|
|
358
|
+
"type": "timestamp",
|
|
359
|
+
"primaryKey": false,
|
|
360
|
+
"notNull": false
|
|
361
|
+
},
|
|
362
|
+
"completed_at": {
|
|
363
|
+
"name": "completed_at",
|
|
364
|
+
"type": "timestamp",
|
|
365
|
+
"primaryKey": false,
|
|
366
|
+
"notNull": false
|
|
367
|
+
},
|
|
368
|
+
"created_at": {
|
|
369
|
+
"name": "created_at",
|
|
370
|
+
"type": "timestamp",
|
|
371
|
+
"primaryKey": false,
|
|
372
|
+
"notNull": true,
|
|
373
|
+
"default": "now()"
|
|
374
|
+
},
|
|
375
|
+
"updated_at": {
|
|
376
|
+
"name": "updated_at",
|
|
377
|
+
"type": "timestamp",
|
|
378
|
+
"primaryKey": false,
|
|
379
|
+
"notNull": true,
|
|
380
|
+
"default": "now()"
|
|
381
|
+
},
|
|
382
|
+
"retry_after": {
|
|
383
|
+
"name": "retry_after",
|
|
384
|
+
"type": "timestamp",
|
|
385
|
+
"primaryKey": false,
|
|
386
|
+
"notNull": false
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"indexes": {
|
|
390
|
+
"workflow_steps_run_id_index": {
|
|
391
|
+
"name": "workflow_steps_run_id_index",
|
|
392
|
+
"columns": [
|
|
393
|
+
{
|
|
394
|
+
"expression": "run_id",
|
|
395
|
+
"isExpression": false,
|
|
396
|
+
"asc": true,
|
|
397
|
+
"nulls": "last"
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"isUnique": false,
|
|
401
|
+
"concurrently": false,
|
|
402
|
+
"method": "btree",
|
|
403
|
+
"with": {}
|
|
404
|
+
},
|
|
405
|
+
"workflow_steps_status_index": {
|
|
406
|
+
"name": "workflow_steps_status_index",
|
|
407
|
+
"columns": [
|
|
408
|
+
{
|
|
409
|
+
"expression": "status",
|
|
410
|
+
"isExpression": false,
|
|
411
|
+
"asc": true,
|
|
412
|
+
"nulls": "last"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"isUnique": false,
|
|
416
|
+
"concurrently": false,
|
|
417
|
+
"method": "btree",
|
|
418
|
+
"with": {}
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"foreignKeys": {},
|
|
422
|
+
"compositePrimaryKeys": {},
|
|
423
|
+
"uniqueConstraints": {}
|
|
424
|
+
},
|
|
425
|
+
"workflow.workflow_stream_chunks": {
|
|
426
|
+
"name": "workflow_stream_chunks",
|
|
427
|
+
"schema": "workflow",
|
|
428
|
+
"columns": {
|
|
429
|
+
"id": {
|
|
430
|
+
"name": "id",
|
|
431
|
+
"type": "varchar",
|
|
432
|
+
"primaryKey": false,
|
|
433
|
+
"notNull": true
|
|
434
|
+
},
|
|
435
|
+
"stream_id": {
|
|
436
|
+
"name": "stream_id",
|
|
437
|
+
"type": "varchar",
|
|
438
|
+
"primaryKey": false,
|
|
439
|
+
"notNull": true
|
|
440
|
+
},
|
|
441
|
+
"data": {
|
|
442
|
+
"name": "data",
|
|
443
|
+
"type": "bytea",
|
|
444
|
+
"primaryKey": false,
|
|
445
|
+
"notNull": true
|
|
446
|
+
},
|
|
447
|
+
"created_at": {
|
|
448
|
+
"name": "created_at",
|
|
449
|
+
"type": "timestamp",
|
|
450
|
+
"primaryKey": false,
|
|
451
|
+
"notNull": true,
|
|
452
|
+
"default": "now()"
|
|
453
|
+
},
|
|
454
|
+
"eof": {
|
|
455
|
+
"name": "eof",
|
|
456
|
+
"type": "boolean",
|
|
457
|
+
"primaryKey": false,
|
|
458
|
+
"notNull": true
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"indexes": {},
|
|
462
|
+
"foreignKeys": {},
|
|
463
|
+
"compositePrimaryKeys": {
|
|
464
|
+
"workflow_stream_chunks_stream_id_id_pk": {
|
|
465
|
+
"name": "workflow_stream_chunks_stream_id_id_pk",
|
|
466
|
+
"columns": ["stream_id", "id"]
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"uniqueConstraints": {}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"enums": {
|
|
473
|
+
"public.step_status": {
|
|
474
|
+
"name": "step_status",
|
|
475
|
+
"schema": "public",
|
|
476
|
+
"values": ["pending", "running", "completed", "failed", "cancelled"]
|
|
477
|
+
},
|
|
478
|
+
"public.status": {
|
|
479
|
+
"name": "status",
|
|
480
|
+
"schema": "public",
|
|
481
|
+
"values": [
|
|
482
|
+
"pending",
|
|
483
|
+
"running",
|
|
484
|
+
"completed",
|
|
485
|
+
"failed",
|
|
486
|
+
"paused",
|
|
487
|
+
"cancelled"
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"schemas": {
|
|
492
|
+
"workflow": "workflow"
|
|
493
|
+
},
|
|
494
|
+
"_meta": {
|
|
495
|
+
"columns": {},
|
|
496
|
+
"schemas": {},
|
|
497
|
+
"tables": {}
|
|
498
|
+
}
|
|
499
|
+
}
|