@sixb/server 0.1.2 → 0.1.3
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/auth/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1891 -1337
- package/dist/index.js.map +17 -14
- package/dist/openapi/tags.d.ts +6 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +6 -6
- package/dist/routes/actions.d.ts +3 -3
- package/dist/routes/agents.d.ts +149 -77
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts +31 -0
- package/dist/routes/ai-accounting.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +110 -53
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +56 -56
- package/dist/routes/connector-connections.d.ts +14 -14
- package/dist/routes/datasets.d.ts +12 -12
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/files.d.ts +8 -8
- package/dist/routes/links.d.ts +9 -9
- package/dist/routes/logs.d.ts +2 -2
- package/dist/routes/objects.d.ts +3 -3
- package/dist/routes/pipelines.d.ts +10 -10
- package/dist/routes/projections.d.ts +62 -50
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +6 -6
- package/dist/routes/telemetry.d.ts +7 -7
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +142 -57
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/actions.d.ts +16 -16
- package/dist/schemas/agents.d.ts +459 -142
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +2393 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +96 -96
- package/dist/schemas/connectors.d.ts +24 -24
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +18 -18
- package/dist/schemas/pipelines.d.ts +20 -20
- package/dist/schemas/projections.d.ts +400 -288
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +10 -10
- package/dist/schemas/webhook-runs.d.ts +12 -12
- package/dist/schemas/workflows.d.ts +833 -162
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth/experience.ts +190 -0
- package/src/auth/public-routes.ts +7 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +4 -0
- package/src/registerRoutes.ts +2 -0
- package/src/routes/agents.ts +1 -0
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +188 -32
- package/src/routes/projections.ts +18 -4
- package/src/routes/workflows.ts +16 -0
- package/src/schemas/agents.ts +4 -9
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/projections.ts +6 -0
- package/src/schemas/workflows.ts +8 -3
- package/src/server.ts +10 -0
package/dist/routes/links.d.ts
CHANGED
|
@@ -35,19 +35,19 @@ export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): El
|
|
|
35
35
|
response: {
|
|
36
36
|
200: {
|
|
37
37
|
projectId: string;
|
|
38
|
+
sourceId: string;
|
|
38
39
|
createdAt: string;
|
|
39
40
|
updatedAt: string;
|
|
40
41
|
sourceTypeId: string;
|
|
41
|
-
sourceId: string;
|
|
42
42
|
linkId: string;
|
|
43
43
|
targetTypeId: string;
|
|
44
44
|
targetId: string;
|
|
45
45
|
properties?: Record<string, unknown> | undefined;
|
|
46
46
|
}[];
|
|
47
|
-
|
|
47
|
+
404: {
|
|
48
48
|
error: string;
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
400: {
|
|
51
51
|
error: string;
|
|
52
52
|
};
|
|
53
53
|
422: {
|
|
@@ -90,13 +90,13 @@ export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): El
|
|
|
90
90
|
200: {
|
|
91
91
|
success: boolean;
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
404: {
|
|
94
94
|
error: string;
|
|
95
95
|
};
|
|
96
|
-
|
|
96
|
+
403: {
|
|
97
97
|
error: string;
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
400: {
|
|
100
100
|
error: string;
|
|
101
101
|
};
|
|
102
102
|
422: {
|
|
@@ -139,13 +139,13 @@ export declare function registerLinkRoutes(app: Elysia, _host: SixbHostView): El
|
|
|
139
139
|
200: {
|
|
140
140
|
success: boolean;
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
404: {
|
|
143
143
|
error: string;
|
|
144
144
|
};
|
|
145
|
-
|
|
145
|
+
403: {
|
|
146
146
|
error: string;
|
|
147
147
|
};
|
|
148
|
-
|
|
148
|
+
400: {
|
|
149
149
|
error: string;
|
|
150
150
|
};
|
|
151
151
|
422: {
|
package/dist/routes/logs.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare function registerLogRoutes(app: Elysia, _host: SixbHostView): Ely
|
|
|
22
22
|
body: unknown;
|
|
23
23
|
params: {};
|
|
24
24
|
query: {
|
|
25
|
-
kind?: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action" |
|
|
25
|
+
kind?: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action" | undefined;
|
|
26
26
|
runId?: string | undefined;
|
|
27
27
|
limit?: number | undefined;
|
|
28
28
|
afterCursor?: string | undefined;
|
|
@@ -41,7 +41,7 @@ export declare function registerLogRoutes(app: Elysia, _host: SixbHostView): Ely
|
|
|
41
41
|
context: {
|
|
42
42
|
run: {
|
|
43
43
|
id: string;
|
|
44
|
-
kind: "workflow" | "webhook" | "sync" | "pipeline" | "projection" | "action"
|
|
44
|
+
kind: "workflow" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "action";
|
|
45
45
|
};
|
|
46
46
|
phase?: string | undefined;
|
|
47
47
|
attempt?: number | undefined;
|
package/dist/routes/objects.d.ts
CHANGED
|
@@ -412,13 +412,13 @@ export declare function registerObjectRoutes(app: Elysia, host: SixbHostView): E
|
|
|
412
412
|
createdAt: string;
|
|
413
413
|
updatedAt: string;
|
|
414
414
|
};
|
|
415
|
-
|
|
415
|
+
404: {
|
|
416
416
|
error: string;
|
|
417
417
|
};
|
|
418
|
-
|
|
418
|
+
403: {
|
|
419
419
|
error: string;
|
|
420
420
|
};
|
|
421
|
-
|
|
421
|
+
400: {
|
|
422
422
|
error: string;
|
|
423
423
|
};
|
|
424
424
|
422: {
|
|
@@ -76,9 +76,9 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
76
76
|
}[];
|
|
77
77
|
};
|
|
78
78
|
latestRun: {
|
|
79
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
79
80
|
projectId: string;
|
|
80
81
|
id: string;
|
|
81
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
82
82
|
queuedAt: string;
|
|
83
83
|
pipelineId: string;
|
|
84
84
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
@@ -167,9 +167,9 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
167
167
|
}[];
|
|
168
168
|
};
|
|
169
169
|
latestRun: {
|
|
170
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
170
171
|
projectId: string;
|
|
171
172
|
id: string;
|
|
172
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
173
173
|
queuedAt: string;
|
|
174
174
|
pipelineId: string;
|
|
175
175
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
@@ -217,9 +217,9 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
217
217
|
response: {
|
|
218
218
|
200: {
|
|
219
219
|
runs: {
|
|
220
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
220
221
|
projectId: string;
|
|
221
222
|
id: string;
|
|
222
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
223
223
|
queuedAt: string;
|
|
224
224
|
pipelineId: string;
|
|
225
225
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
@@ -266,9 +266,9 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
266
266
|
response: {
|
|
267
267
|
200: {
|
|
268
268
|
run: {
|
|
269
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
269
270
|
projectId: string;
|
|
270
271
|
id: string;
|
|
271
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
272
272
|
queuedAt: string;
|
|
273
273
|
pipelineId: string;
|
|
274
274
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "pipeline.step_failed" | "runtime.cancelled"> | undefined;
|
|
@@ -280,9 +280,9 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
280
280
|
} | undefined;
|
|
281
281
|
};
|
|
282
282
|
steps: {
|
|
283
|
+
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
283
284
|
projectId: string;
|
|
284
285
|
id: string;
|
|
285
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
286
286
|
mode: "append" | "snapshot";
|
|
287
287
|
startedAt: string;
|
|
288
288
|
datasetId: string;
|
|
@@ -302,10 +302,10 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
302
302
|
rowsWritten?: number | undefined;
|
|
303
303
|
}[];
|
|
304
304
|
};
|
|
305
|
-
|
|
305
|
+
404: {
|
|
306
306
|
error: string;
|
|
307
307
|
};
|
|
308
|
-
|
|
308
|
+
400: {
|
|
309
309
|
error: string;
|
|
310
310
|
};
|
|
311
311
|
501: {
|
|
@@ -347,13 +347,13 @@ export declare function registerPipelineRoutes(app: Elysia, host: SixbHostView):
|
|
|
347
347
|
pipelineId: string;
|
|
348
348
|
queuedAt: string;
|
|
349
349
|
};
|
|
350
|
-
|
|
350
|
+
404: {
|
|
351
351
|
error: string;
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
403: {
|
|
354
354
|
error: string;
|
|
355
355
|
};
|
|
356
|
-
|
|
356
|
+
400: {
|
|
357
357
|
error: string;
|
|
358
358
|
};
|
|
359
359
|
202: {
|
|
@@ -37,12 +37,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
37
37
|
objectTypeId: string;
|
|
38
38
|
datasetId: string;
|
|
39
39
|
latestRun: {
|
|
40
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
40
41
|
projectId: string;
|
|
41
42
|
id: string;
|
|
42
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
43
43
|
queuedAt: string;
|
|
44
|
-
attempt: number;
|
|
45
44
|
executionId: string;
|
|
45
|
+
attempt: number;
|
|
46
46
|
progress: {
|
|
47
47
|
sourceRowsRead: number;
|
|
48
48
|
sourceRowsSkipped: number;
|
|
@@ -67,12 +67,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
67
67
|
startedAt?: string | undefined;
|
|
68
68
|
finishedAt?: string | undefined;
|
|
69
69
|
} | {
|
|
70
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
70
71
|
projectId: string;
|
|
71
72
|
id: string;
|
|
72
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
73
73
|
queuedAt: string;
|
|
74
|
-
attempt: number;
|
|
75
74
|
executionId: string;
|
|
75
|
+
attempt: number;
|
|
76
76
|
progress: {
|
|
77
77
|
sourceRowsRead: number;
|
|
78
78
|
sourceRowsSkipped: number;
|
|
@@ -98,12 +98,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
98
98
|
startedAt?: string | undefined;
|
|
99
99
|
finishedAt?: string | undefined;
|
|
100
100
|
} | {
|
|
101
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
101
102
|
projectId: string;
|
|
102
103
|
id: string;
|
|
103
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
104
104
|
queuedAt: string;
|
|
105
|
-
attempt: number;
|
|
106
105
|
executionId: string;
|
|
106
|
+
attempt: number;
|
|
107
107
|
progress: {
|
|
108
108
|
sourceRowsRead: number;
|
|
109
109
|
sourceRowsSkipped: number;
|
|
@@ -129,6 +129,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
129
129
|
finishedAt?: string | undefined;
|
|
130
130
|
} | null;
|
|
131
131
|
_tag: "ObjectProjectionDefinition";
|
|
132
|
+
conflictResolution: {
|
|
133
|
+
strategy: "editsWin";
|
|
134
|
+
} | {
|
|
135
|
+
strategy: "mostRecent";
|
|
136
|
+
sourceTimestamp: string;
|
|
137
|
+
};
|
|
132
138
|
}[];
|
|
133
139
|
linkProjections: {
|
|
134
140
|
id: string;
|
|
@@ -137,12 +143,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
137
143
|
linkId: string;
|
|
138
144
|
sourceObjectTypeId: string;
|
|
139
145
|
latestRun: {
|
|
146
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
140
147
|
projectId: string;
|
|
141
148
|
id: string;
|
|
142
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
143
149
|
queuedAt: string;
|
|
144
|
-
attempt: number;
|
|
145
150
|
executionId: string;
|
|
151
|
+
attempt: number;
|
|
146
152
|
progress: {
|
|
147
153
|
sourceRowsRead: number;
|
|
148
154
|
sourceRowsSkipped: number;
|
|
@@ -167,12 +173,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
167
173
|
startedAt?: string | undefined;
|
|
168
174
|
finishedAt?: string | undefined;
|
|
169
175
|
} | {
|
|
176
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
170
177
|
projectId: string;
|
|
171
178
|
id: string;
|
|
172
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
173
179
|
queuedAt: string;
|
|
174
|
-
attempt: number;
|
|
175
180
|
executionId: string;
|
|
181
|
+
attempt: number;
|
|
176
182
|
progress: {
|
|
177
183
|
sourceRowsRead: number;
|
|
178
184
|
sourceRowsSkipped: number;
|
|
@@ -198,12 +204,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
198
204
|
startedAt?: string | undefined;
|
|
199
205
|
finishedAt?: string | undefined;
|
|
200
206
|
} | {
|
|
207
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
201
208
|
projectId: string;
|
|
202
209
|
id: string;
|
|
203
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
204
210
|
queuedAt: string;
|
|
205
|
-
attempt: number;
|
|
206
211
|
executionId: string;
|
|
212
|
+
attempt: number;
|
|
207
213
|
progress: {
|
|
208
214
|
sourceRowsRead: number;
|
|
209
215
|
sourceRowsSkipped: number;
|
|
@@ -238,12 +244,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
238
244
|
datasetId: string;
|
|
239
245
|
propertyId: string;
|
|
240
246
|
latestRun: {
|
|
247
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
241
248
|
projectId: string;
|
|
242
249
|
id: string;
|
|
243
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
244
250
|
queuedAt: string;
|
|
245
|
-
attempt: number;
|
|
246
251
|
executionId: string;
|
|
252
|
+
attempt: number;
|
|
247
253
|
progress: {
|
|
248
254
|
sourceRowsRead: number;
|
|
249
255
|
sourceRowsSkipped: number;
|
|
@@ -268,12 +274,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
268
274
|
startedAt?: string | undefined;
|
|
269
275
|
finishedAt?: string | undefined;
|
|
270
276
|
} | {
|
|
277
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
271
278
|
projectId: string;
|
|
272
279
|
id: string;
|
|
273
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
274
280
|
queuedAt: string;
|
|
275
|
-
attempt: number;
|
|
276
281
|
executionId: string;
|
|
282
|
+
attempt: number;
|
|
277
283
|
progress: {
|
|
278
284
|
sourceRowsRead: number;
|
|
279
285
|
sourceRowsSkipped: number;
|
|
@@ -299,12 +305,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
299
305
|
startedAt?: string | undefined;
|
|
300
306
|
finishedAt?: string | undefined;
|
|
301
307
|
} | {
|
|
308
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
302
309
|
projectId: string;
|
|
303
310
|
id: string;
|
|
304
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
305
311
|
queuedAt: string;
|
|
306
|
-
attempt: number;
|
|
307
312
|
executionId: string;
|
|
313
|
+
attempt: number;
|
|
308
314
|
progress: {
|
|
309
315
|
sourceRowsRead: number;
|
|
310
316
|
sourceRowsSkipped: number;
|
|
@@ -373,12 +379,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
373
379
|
objectTypeId: string;
|
|
374
380
|
datasetId: string;
|
|
375
381
|
latestRun: {
|
|
382
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
376
383
|
projectId: string;
|
|
377
384
|
id: string;
|
|
378
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
379
385
|
queuedAt: string;
|
|
380
|
-
attempt: number;
|
|
381
386
|
executionId: string;
|
|
387
|
+
attempt: number;
|
|
382
388
|
progress: {
|
|
383
389
|
sourceRowsRead: number;
|
|
384
390
|
sourceRowsSkipped: number;
|
|
@@ -403,12 +409,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
403
409
|
startedAt?: string | undefined;
|
|
404
410
|
finishedAt?: string | undefined;
|
|
405
411
|
} | {
|
|
412
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
406
413
|
projectId: string;
|
|
407
414
|
id: string;
|
|
408
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
409
415
|
queuedAt: string;
|
|
410
|
-
attempt: number;
|
|
411
416
|
executionId: string;
|
|
417
|
+
attempt: number;
|
|
412
418
|
progress: {
|
|
413
419
|
sourceRowsRead: number;
|
|
414
420
|
sourceRowsSkipped: number;
|
|
@@ -434,12 +440,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
434
440
|
startedAt?: string | undefined;
|
|
435
441
|
finishedAt?: string | undefined;
|
|
436
442
|
} | {
|
|
443
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
437
444
|
projectId: string;
|
|
438
445
|
id: string;
|
|
439
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
440
446
|
queuedAt: string;
|
|
441
|
-
attempt: number;
|
|
442
447
|
executionId: string;
|
|
448
|
+
attempt: number;
|
|
443
449
|
progress: {
|
|
444
450
|
sourceRowsRead: number;
|
|
445
451
|
sourceRowsSkipped: number;
|
|
@@ -465,6 +471,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
465
471
|
finishedAt?: string | undefined;
|
|
466
472
|
} | null;
|
|
467
473
|
_tag: "ObjectProjectionDefinition";
|
|
474
|
+
conflictResolution: {
|
|
475
|
+
strategy: "editsWin";
|
|
476
|
+
} | {
|
|
477
|
+
strategy: "mostRecent";
|
|
478
|
+
sourceTimestamp: string;
|
|
479
|
+
};
|
|
468
480
|
} | {
|
|
469
481
|
id: string;
|
|
470
482
|
targetObjectTypeId: string;
|
|
@@ -472,12 +484,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
472
484
|
linkId: string;
|
|
473
485
|
sourceObjectTypeId: string;
|
|
474
486
|
latestRun: {
|
|
487
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
475
488
|
projectId: string;
|
|
476
489
|
id: string;
|
|
477
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
478
490
|
queuedAt: string;
|
|
479
|
-
attempt: number;
|
|
480
491
|
executionId: string;
|
|
492
|
+
attempt: number;
|
|
481
493
|
progress: {
|
|
482
494
|
sourceRowsRead: number;
|
|
483
495
|
sourceRowsSkipped: number;
|
|
@@ -502,12 +514,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
502
514
|
startedAt?: string | undefined;
|
|
503
515
|
finishedAt?: string | undefined;
|
|
504
516
|
} | {
|
|
517
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
505
518
|
projectId: string;
|
|
506
519
|
id: string;
|
|
507
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
508
520
|
queuedAt: string;
|
|
509
|
-
attempt: number;
|
|
510
521
|
executionId: string;
|
|
522
|
+
attempt: number;
|
|
511
523
|
progress: {
|
|
512
524
|
sourceRowsRead: number;
|
|
513
525
|
sourceRowsSkipped: number;
|
|
@@ -533,12 +545,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
533
545
|
startedAt?: string | undefined;
|
|
534
546
|
finishedAt?: string | undefined;
|
|
535
547
|
} | {
|
|
548
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
536
549
|
projectId: string;
|
|
537
550
|
id: string;
|
|
538
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
539
551
|
queuedAt: string;
|
|
540
|
-
attempt: number;
|
|
541
552
|
executionId: string;
|
|
553
|
+
attempt: number;
|
|
542
554
|
progress: {
|
|
543
555
|
sourceRowsRead: number;
|
|
544
556
|
sourceRowsSkipped: number;
|
|
@@ -572,12 +584,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
572
584
|
datasetId: string;
|
|
573
585
|
propertyId: string;
|
|
574
586
|
latestRun: {
|
|
587
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
575
588
|
projectId: string;
|
|
576
589
|
id: string;
|
|
577
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
578
590
|
queuedAt: string;
|
|
579
|
-
attempt: number;
|
|
580
591
|
executionId: string;
|
|
592
|
+
attempt: number;
|
|
581
593
|
progress: {
|
|
582
594
|
sourceRowsRead: number;
|
|
583
595
|
sourceRowsSkipped: number;
|
|
@@ -602,12 +614,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
602
614
|
startedAt?: string | undefined;
|
|
603
615
|
finishedAt?: string | undefined;
|
|
604
616
|
} | {
|
|
617
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
605
618
|
projectId: string;
|
|
606
619
|
id: string;
|
|
607
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
608
620
|
queuedAt: string;
|
|
609
|
-
attempt: number;
|
|
610
621
|
executionId: string;
|
|
622
|
+
attempt: number;
|
|
611
623
|
progress: {
|
|
612
624
|
sourceRowsRead: number;
|
|
613
625
|
sourceRowsSkipped: number;
|
|
@@ -633,12 +645,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
633
645
|
startedAt?: string | undefined;
|
|
634
646
|
finishedAt?: string | undefined;
|
|
635
647
|
} | {
|
|
648
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
636
649
|
projectId: string;
|
|
637
650
|
id: string;
|
|
638
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
639
651
|
queuedAt: string;
|
|
640
|
-
attempt: number;
|
|
641
652
|
executionId: string;
|
|
653
|
+
attempt: number;
|
|
642
654
|
progress: {
|
|
643
655
|
sourceRowsRead: number;
|
|
644
656
|
sourceRowsSkipped: number;
|
|
@@ -708,12 +720,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
708
720
|
response: {
|
|
709
721
|
200: {
|
|
710
722
|
runs: ({
|
|
723
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
711
724
|
projectId: string;
|
|
712
725
|
id: string;
|
|
713
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
714
726
|
queuedAt: string;
|
|
715
|
-
attempt: number;
|
|
716
727
|
executionId: string;
|
|
728
|
+
attempt: number;
|
|
717
729
|
progress: {
|
|
718
730
|
sourceRowsRead: number;
|
|
719
731
|
sourceRowsSkipped: number;
|
|
@@ -738,12 +750,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
738
750
|
startedAt?: string | undefined;
|
|
739
751
|
finishedAt?: string | undefined;
|
|
740
752
|
} | {
|
|
753
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
741
754
|
projectId: string;
|
|
742
755
|
id: string;
|
|
743
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
744
756
|
queuedAt: string;
|
|
745
|
-
attempt: number;
|
|
746
757
|
executionId: string;
|
|
758
|
+
attempt: number;
|
|
747
759
|
progress: {
|
|
748
760
|
sourceRowsRead: number;
|
|
749
761
|
sourceRowsSkipped: number;
|
|
@@ -769,12 +781,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
769
781
|
startedAt?: string | undefined;
|
|
770
782
|
finishedAt?: string | undefined;
|
|
771
783
|
} | {
|
|
784
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
772
785
|
projectId: string;
|
|
773
786
|
id: string;
|
|
774
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
775
787
|
queuedAt: string;
|
|
776
|
-
attempt: number;
|
|
777
788
|
executionId: string;
|
|
789
|
+
attempt: number;
|
|
778
790
|
progress: {
|
|
779
791
|
sourceRowsRead: number;
|
|
780
792
|
sourceRowsSkipped: number;
|
|
@@ -834,12 +846,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
834
846
|
headers: unknown;
|
|
835
847
|
response: {
|
|
836
848
|
200: {
|
|
849
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
837
850
|
projectId: string;
|
|
838
851
|
id: string;
|
|
839
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
840
852
|
queuedAt: string;
|
|
841
|
-
attempt: number;
|
|
842
853
|
executionId: string;
|
|
854
|
+
attempt: number;
|
|
843
855
|
progress: {
|
|
844
856
|
sourceRowsRead: number;
|
|
845
857
|
sourceRowsSkipped: number;
|
|
@@ -864,12 +876,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
864
876
|
startedAt?: string | undefined;
|
|
865
877
|
finishedAt?: string | undefined;
|
|
866
878
|
} | {
|
|
879
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
867
880
|
projectId: string;
|
|
868
881
|
id: string;
|
|
869
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
870
882
|
queuedAt: string;
|
|
871
|
-
attempt: number;
|
|
872
883
|
executionId: string;
|
|
884
|
+
attempt: number;
|
|
873
885
|
progress: {
|
|
874
886
|
sourceRowsRead: number;
|
|
875
887
|
sourceRowsSkipped: number;
|
|
@@ -895,12 +907,12 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
895
907
|
startedAt?: string | undefined;
|
|
896
908
|
finishedAt?: string | undefined;
|
|
897
909
|
} | {
|
|
910
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
898
911
|
projectId: string;
|
|
899
912
|
id: string;
|
|
900
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
901
913
|
queuedAt: string;
|
|
902
|
-
attempt: number;
|
|
903
914
|
executionId: string;
|
|
915
|
+
attempt: number;
|
|
904
916
|
progress: {
|
|
905
917
|
sourceRowsRead: number;
|
|
906
918
|
sourceRowsSkipped: number;
|
|
@@ -925,10 +937,10 @@ export declare function registerProjectionRoutes(app: Elysia, host: SixbHostView
|
|
|
925
937
|
startedAt?: string | undefined;
|
|
926
938
|
finishedAt?: string | undefined;
|
|
927
939
|
};
|
|
928
|
-
|
|
940
|
+
404: {
|
|
929
941
|
error: string;
|
|
930
942
|
};
|
|
931
|
-
|
|
943
|
+
400: {
|
|
932
944
|
error: string;
|
|
933
945
|
};
|
|
934
946
|
501: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../src/routes/projections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,YAAY,
|
|
1
|
+
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../src/routes/projections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,YAAY,EAGb,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmHpC,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgIvE"}
|
package/dist/routes/syncs.d.ts
CHANGED
|
@@ -32,9 +32,9 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
32
32
|
scheduleId: string;
|
|
33
33
|
}[];
|
|
34
34
|
latestRun: {
|
|
35
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
35
36
|
projectId: string;
|
|
36
37
|
id: string;
|
|
37
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
38
38
|
mode: "append" | "snapshot" | "merge";
|
|
39
39
|
queuedAt: string;
|
|
40
40
|
datasetId: string;
|
|
@@ -104,9 +104,9 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
104
104
|
scheduleId: string;
|
|
105
105
|
}[];
|
|
106
106
|
latestRun: {
|
|
107
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
107
108
|
projectId: string;
|
|
108
109
|
id: string;
|
|
109
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
110
110
|
mode: "append" | "snapshot" | "merge";
|
|
111
111
|
queuedAt: string;
|
|
112
112
|
datasetId: string;
|
|
@@ -180,9 +180,9 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
180
180
|
response: {
|
|
181
181
|
200: {
|
|
182
182
|
runs: {
|
|
183
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
183
184
|
projectId: string;
|
|
184
185
|
id: string;
|
|
185
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
186
186
|
mode: "append" | "snapshot" | "merge";
|
|
187
187
|
queuedAt: string;
|
|
188
188
|
datasetId: string;
|
|
@@ -245,13 +245,13 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
245
245
|
syncId: string;
|
|
246
246
|
queuedAt: string;
|
|
247
247
|
};
|
|
248
|
-
|
|
248
|
+
404: {
|
|
249
249
|
error: string;
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
403: {
|
|
252
252
|
error: string;
|
|
253
253
|
};
|
|
254
|
-
|
|
254
|
+
400: {
|
|
255
255
|
error: string;
|
|
256
256
|
};
|
|
257
257
|
202: {
|