@jumoo/processing 18.3.1 → 18.3.2
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/api/client.gen.js +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/sdk.gen.d.ts +17 -17
- package/dist/api/types.gen.d.ts +0 -135
- package/dist/pipeline/pipeline.context.d.ts +2 -2
- package/dist/pipeline/pipeline.repository.d.ts +18 -33
- package/dist/pipeline/pipeline.source.d.ts +30 -80
- package/dist/pipeline/pipelines.context.d.ts +1 -1
- package/dist/queue/queue.context.d.ts +1 -1
- package/dist/queue/queue.context.js +3 -1
- package/dist/queue/queue.repository.d.ts +3 -3
- package/dist/queue/queue.repository.js +8 -7
- package/package.json +3 -3
package/dist/api/client.gen.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { createClient, createConfig } from './client';
|
|
3
|
-
export const client = createClient(createConfig({ baseUrl: 'https://localhost:44348/' }));
|
|
3
|
+
export const client = createClient(createConfig({ baseUrl: 'https://localhost:44348/', throwOnError: true }));
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { deleteProcessingDeleteQueueByKey, getProcessingGetPipelineById, getProcessingGetProcessors, getProcessingGetResultsById, getProcessingListPipelinesByStatus, getProcessingListPipelinesByStrategyByStrategyByStatus, getProcessingListQueue, getProcessingPeekItem, getProcessingPipelineStatusById, type Options, postProcessingCancelPipelineById, postProcessingClearPipelineById, postProcessingCreatePipeline, postProcessingProcessPipelineById, postProcessingProcessQueueByKey, postProcessingReattachPipelineById, postProcessingStartPipeline, postProcessingUpdatePipelineById } from './sdk.gen';
|
|
2
|
-
export { type ClientOptions, type DeleteProcessingDeleteQueueByKeyData, type DeleteProcessingDeleteQueueByKeyError, type DeleteProcessingDeleteQueueByKeyErrors, type DeleteProcessingDeleteQueueByKeyResponses, type GetProcessingGetPipelineByIdData, type GetProcessingGetPipelineByIdError, type GetProcessingGetPipelineByIdErrors, type GetProcessingGetPipelineByIdResponse, type GetProcessingGetPipelineByIdResponses, type GetProcessingGetProcessorsData, type GetProcessingGetProcessorsError, type GetProcessingGetProcessorsErrors, type GetProcessingGetProcessorsResponse, type GetProcessingGetProcessorsResponses, type GetProcessingGetResultsByIdData, type GetProcessingGetResultsByIdError, type GetProcessingGetResultsByIdErrors, type GetProcessingGetResultsByIdResponse, type GetProcessingGetResultsByIdResponses, type GetProcessingListPipelinesByStatusData, type GetProcessingListPipelinesByStatusError, type GetProcessingListPipelinesByStatusErrors, type GetProcessingListPipelinesByStatusResponse, type GetProcessingListPipelinesByStatusResponses, type GetProcessingListPipelinesByStrategyByStrategyByStatusData, type GetProcessingListPipelinesByStrategyByStrategyByStatusError, type GetProcessingListPipelinesByStrategyByStrategyByStatusErrors, type GetProcessingListPipelinesByStrategyByStrategyByStatusResponse, type GetProcessingListPipelinesByStrategyByStrategyByStatusResponses, type GetProcessingListQueueData, type GetProcessingListQueueError, type GetProcessingListQueueErrors, type GetProcessingListQueueResponse, type GetProcessingListQueueResponses, type GetProcessingPeekItemData, type GetProcessingPeekItemError, type GetProcessingPeekItemErrors, type GetProcessingPeekItemResponse, type GetProcessingPeekItemResponses, type GetProcessingPipelineStatusByIdData, type GetProcessingPipelineStatusByIdError, type GetProcessingPipelineStatusByIdErrors, type GetProcessingPipelineStatusByIdResponse, type GetProcessingPipelineStatusByIdResponses, type PagedModelQueuedItemModel, type Pipeline, type PipelineBackgroundState, type PipelineConflictProblemDetails, type PipelineCreateRequest, type PipelineRunError, type PipelineRunProgress, type PipelineRunRejected, PipelineRunRejectedReason, type PipelineRunRequest, type PipelineRunStarted, PipelineRunState, type PipelineRunStatus, type PipelineRunSummary, type PipelineState, PipelineStatus, type PostProcessingCancelPipelineByIdData, type PostProcessingCancelPipelineByIdError, type PostProcessingCancelPipelineByIdErrors, type PostProcessingCancelPipelineByIdResponses, type PostProcessingClearPipelineByIdData, type PostProcessingClearPipelineByIdError, type PostProcessingClearPipelineByIdErrors, type PostProcessingClearPipelineByIdResponses, type PostProcessingCreatePipelineData, type PostProcessingCreatePipelineError, type PostProcessingCreatePipelineErrors, type PostProcessingCreatePipelineResponse, type PostProcessingCreatePipelineResponses, type PostProcessingProcessPipelineByIdData, type PostProcessingProcessPipelineByIdError, type PostProcessingProcessPipelineByIdErrors, type PostProcessingProcessPipelineByIdResponse, type PostProcessingProcessPipelineByIdResponses, type PostProcessingProcessQueueByKeyData, type PostProcessingProcessQueueByKeyError, type PostProcessingProcessQueueByKeyErrors, type PostProcessingProcessQueueByKeyResponse, type PostProcessingProcessQueueByKeyResponses, type PostProcessingReattachPipelineByIdData, type PostProcessingReattachPipelineByIdError, type PostProcessingReattachPipelineByIdErrors, type PostProcessingReattachPipelineByIdResponse, type PostProcessingReattachPipelineByIdResponses, type PostProcessingStartPipelineData, type PostProcessingStartPipelineError, type PostProcessingStartPipelineErrors, type PostProcessingStartPipelineResponse, type PostProcessingStartPipelineResponses, type PostProcessingUpdatePipelineByIdData, type PostProcessingUpdatePipelineByIdError, type PostProcessingUpdatePipelineByIdErrors, type PostProcessingUpdatePipelineByIdResponse, type PostProcessingUpdatePipelineByIdResponses, type ProblemDetails, type ProcessingErrorDetails, type ProcessingOptions, type ProcessingOptionsResults, type ProcessingRequest, type ProcessingRequestAction, type ProcessingResults, type ProgressInformation, type QueuedItem, type
|
|
2
|
+
export { type ClientOptions, type DeleteProcessingDeleteQueueByKeyData, type DeleteProcessingDeleteQueueByKeyError, type DeleteProcessingDeleteQueueByKeyErrors, type DeleteProcessingDeleteQueueByKeyResponses, type GetProcessingGetPipelineByIdData, type GetProcessingGetPipelineByIdError, type GetProcessingGetPipelineByIdErrors, type GetProcessingGetPipelineByIdResponse, type GetProcessingGetPipelineByIdResponses, type GetProcessingGetProcessorsData, type GetProcessingGetProcessorsError, type GetProcessingGetProcessorsErrors, type GetProcessingGetProcessorsResponse, type GetProcessingGetProcessorsResponses, type GetProcessingGetResultsByIdData, type GetProcessingGetResultsByIdError, type GetProcessingGetResultsByIdErrors, type GetProcessingGetResultsByIdResponse, type GetProcessingGetResultsByIdResponses, type GetProcessingListPipelinesByStatusData, type GetProcessingListPipelinesByStatusError, type GetProcessingListPipelinesByStatusErrors, type GetProcessingListPipelinesByStatusResponse, type GetProcessingListPipelinesByStatusResponses, type GetProcessingListPipelinesByStrategyByStrategyByStatusData, type GetProcessingListPipelinesByStrategyByStrategyByStatusError, type GetProcessingListPipelinesByStrategyByStrategyByStatusErrors, type GetProcessingListPipelinesByStrategyByStrategyByStatusResponse, type GetProcessingListPipelinesByStrategyByStrategyByStatusResponses, type GetProcessingListQueueData, type GetProcessingListQueueError, type GetProcessingListQueueErrors, type GetProcessingListQueueResponse, type GetProcessingListQueueResponses, type GetProcessingPeekItemData, type GetProcessingPeekItemError, type GetProcessingPeekItemErrors, type GetProcessingPeekItemResponse, type GetProcessingPeekItemResponses, type GetProcessingPipelineStatusByIdData, type GetProcessingPipelineStatusByIdError, type GetProcessingPipelineStatusByIdErrors, type GetProcessingPipelineStatusByIdResponse, type GetProcessingPipelineStatusByIdResponses, type PagedModelQueuedItemModel, type Pipeline, type PipelineBackgroundState, type PipelineConflictProblemDetails, type PipelineCreateRequest, type PipelineRunError, type PipelineRunProgress, type PipelineRunRejected, PipelineRunRejectedReason, type PipelineRunRequest, type PipelineRunStarted, PipelineRunState, type PipelineRunStatus, type PipelineRunSummary, type PipelineState, PipelineStatus, type PostProcessingCancelPipelineByIdData, type PostProcessingCancelPipelineByIdError, type PostProcessingCancelPipelineByIdErrors, type PostProcessingCancelPipelineByIdResponses, type PostProcessingClearPipelineByIdData, type PostProcessingClearPipelineByIdError, type PostProcessingClearPipelineByIdErrors, type PostProcessingClearPipelineByIdResponses, type PostProcessingCreatePipelineData, type PostProcessingCreatePipelineError, type PostProcessingCreatePipelineErrors, type PostProcessingCreatePipelineResponse, type PostProcessingCreatePipelineResponses, type PostProcessingProcessPipelineByIdData, type PostProcessingProcessPipelineByIdError, type PostProcessingProcessPipelineByIdErrors, type PostProcessingProcessPipelineByIdResponse, type PostProcessingProcessPipelineByIdResponses, type PostProcessingProcessQueueByKeyData, type PostProcessingProcessQueueByKeyError, type PostProcessingProcessQueueByKeyErrors, type PostProcessingProcessQueueByKeyResponse, type PostProcessingProcessQueueByKeyResponses, type PostProcessingReattachPipelineByIdData, type PostProcessingReattachPipelineByIdError, type PostProcessingReattachPipelineByIdErrors, type PostProcessingReattachPipelineByIdResponse, type PostProcessingReattachPipelineByIdResponses, type PostProcessingStartPipelineData, type PostProcessingStartPipelineError, type PostProcessingStartPipelineErrors, type PostProcessingStartPipelineResponse, type PostProcessingStartPipelineResponses, type PostProcessingUpdatePipelineByIdData, type PostProcessingUpdatePipelineByIdError, type PostProcessingUpdatePipelineByIdErrors, type PostProcessingUpdatePipelineByIdResponse, type PostProcessingUpdatePipelineByIdResponses, type ProblemDetails, type ProcessingErrorDetails, type ProcessingOptions, type ProcessingOptionsResults, type ProcessingRequest, type ProcessingRequestAction, type ProcessingResults, type ProgressInformation, type QueuedItem, type StepInfo, StepStatus } from './types.gen';
|
package/dist/api/sdk.gen.d.ts
CHANGED
|
@@ -13,26 +13,26 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
13
13
|
*/
|
|
14
14
|
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
15
|
};
|
|
16
|
-
export declare const postProcessingCancelPipelineById: <ThrowOnError extends boolean =
|
|
17
|
-
export declare const postProcessingClearPipelineById: <ThrowOnError extends boolean =
|
|
18
|
-
export declare const postProcessingCreatePipeline: <ThrowOnError extends boolean =
|
|
19
|
-
export declare const getProcessingGetPipelineById: <ThrowOnError extends boolean =
|
|
20
|
-
export declare const getProcessingGetProcessors: <ThrowOnError extends boolean =
|
|
21
|
-
export declare const getProcessingGetResultsById: <ThrowOnError extends boolean =
|
|
22
|
-
export declare const getProcessingListPipelinesByStatus: <ThrowOnError extends boolean =
|
|
23
|
-
export declare const getProcessingListPipelinesByStrategyByStrategyByStatus: <ThrowOnError extends boolean =
|
|
24
|
-
export declare const getProcessingPipelineStatusById: <ThrowOnError extends boolean =
|
|
25
|
-
export declare const postProcessingProcessPipelineById: <ThrowOnError extends boolean =
|
|
26
|
-
export declare const postProcessingReattachPipelineById: <ThrowOnError extends boolean =
|
|
27
|
-
export declare const postProcessingStartPipeline: <ThrowOnError extends boolean =
|
|
28
|
-
export declare const postProcessingUpdatePipelineById: <ThrowOnError extends boolean =
|
|
29
|
-
export declare const deleteProcessingDeleteQueueByKey: <ThrowOnError extends boolean =
|
|
30
|
-
export declare const getProcessingListQueue: <ThrowOnError extends boolean =
|
|
16
|
+
export declare const postProcessingCancelPipelineById: <ThrowOnError extends boolean = true>(options: Options<PostProcessingCancelPipelineByIdData, ThrowOnError>) => RequestResult<PostProcessingCancelPipelineByIdResponses, PostProcessingCancelPipelineByIdErrors, ThrowOnError>;
|
|
17
|
+
export declare const postProcessingClearPipelineById: <ThrowOnError extends boolean = true>(options: Options<PostProcessingClearPipelineByIdData, ThrowOnError>) => RequestResult<PostProcessingClearPipelineByIdResponses, PostProcessingClearPipelineByIdErrors, ThrowOnError>;
|
|
18
|
+
export declare const postProcessingCreatePipeline: <ThrowOnError extends boolean = true>(options: Options<PostProcessingCreatePipelineData, ThrowOnError>) => RequestResult<PostProcessingCreatePipelineResponses, PostProcessingCreatePipelineErrors, ThrowOnError>;
|
|
19
|
+
export declare const getProcessingGetPipelineById: <ThrowOnError extends boolean = true>(options: Options<GetProcessingGetPipelineByIdData, ThrowOnError>) => RequestResult<GetProcessingGetPipelineByIdResponses, GetProcessingGetPipelineByIdErrors, ThrowOnError>;
|
|
20
|
+
export declare const getProcessingGetProcessors: <ThrowOnError extends boolean = true>(options?: Options<GetProcessingGetProcessorsData, ThrowOnError>) => RequestResult<GetProcessingGetProcessorsResponses, GetProcessingGetProcessorsErrors, ThrowOnError>;
|
|
21
|
+
export declare const getProcessingGetResultsById: <ThrowOnError extends boolean = true>(options: Options<GetProcessingGetResultsByIdData, ThrowOnError>) => RequestResult<GetProcessingGetResultsByIdResponses, GetProcessingGetResultsByIdErrors, ThrowOnError>;
|
|
22
|
+
export declare const getProcessingListPipelinesByStatus: <ThrowOnError extends boolean = true>(options: Options<GetProcessingListPipelinesByStatusData, ThrowOnError>) => RequestResult<GetProcessingListPipelinesByStatusResponses, GetProcessingListPipelinesByStatusErrors, ThrowOnError>;
|
|
23
|
+
export declare const getProcessingListPipelinesByStrategyByStrategyByStatus: <ThrowOnError extends boolean = true>(options: Options<GetProcessingListPipelinesByStrategyByStrategyByStatusData, ThrowOnError>) => RequestResult<GetProcessingListPipelinesByStrategyByStrategyByStatusResponses, GetProcessingListPipelinesByStrategyByStrategyByStatusErrors, ThrowOnError>;
|
|
24
|
+
export declare const getProcessingPipelineStatusById: <ThrowOnError extends boolean = true>(options: Options<GetProcessingPipelineStatusByIdData, ThrowOnError>) => RequestResult<GetProcessingPipelineStatusByIdResponses, GetProcessingPipelineStatusByIdErrors, ThrowOnError>;
|
|
25
|
+
export declare const postProcessingProcessPipelineById: <ThrowOnError extends boolean = true>(options: Options<PostProcessingProcessPipelineByIdData, ThrowOnError>) => RequestResult<PostProcessingProcessPipelineByIdResponses, PostProcessingProcessPipelineByIdErrors, ThrowOnError>;
|
|
26
|
+
export declare const postProcessingReattachPipelineById: <ThrowOnError extends boolean = true>(options: Options<PostProcessingReattachPipelineByIdData, ThrowOnError>) => RequestResult<PostProcessingReattachPipelineByIdResponses, PostProcessingReattachPipelineByIdErrors, ThrowOnError>;
|
|
27
|
+
export declare const postProcessingStartPipeline: <ThrowOnError extends boolean = true>(options: Options<PostProcessingStartPipelineData, ThrowOnError>) => RequestResult<PostProcessingStartPipelineResponses, PostProcessingStartPipelineErrors, ThrowOnError>;
|
|
28
|
+
export declare const postProcessingUpdatePipelineById: <ThrowOnError extends boolean = true>(options: Options<PostProcessingUpdatePipelineByIdData, ThrowOnError>) => RequestResult<PostProcessingUpdatePipelineByIdResponses, PostProcessingUpdatePipelineByIdErrors, ThrowOnError>;
|
|
29
|
+
export declare const deleteProcessingDeleteQueueByKey: <ThrowOnError extends boolean = true>(options: Options<DeleteProcessingDeleteQueueByKeyData, ThrowOnError>) => RequestResult<DeleteProcessingDeleteQueueByKeyResponses, DeleteProcessingDeleteQueueByKeyErrors, ThrowOnError>;
|
|
30
|
+
export declare const getProcessingListQueue: <ThrowOnError extends boolean = true>(options?: Options<GetProcessingListQueueData, ThrowOnError>) => RequestResult<GetProcessingListQueueResponses, GetProcessingListQueueErrors, ThrowOnError>;
|
|
31
31
|
/**
|
|
32
32
|
* Peek an item from the queue
|
|
33
33
|
*/
|
|
34
|
-
export declare const getProcessingPeekItem: <ThrowOnError extends boolean =
|
|
34
|
+
export declare const getProcessingPeekItem: <ThrowOnError extends boolean = true>(options?: Options<GetProcessingPeekItemData, ThrowOnError>) => RequestResult<GetProcessingPeekItemResponses, GetProcessingPeekItemErrors, ThrowOnError>;
|
|
35
35
|
/**
|
|
36
36
|
* Takes an item off the queue, removes the schedule date and puts it back
|
|
37
37
|
*/
|
|
38
|
-
export declare const postProcessingProcessQueueByKey: <ThrowOnError extends boolean =
|
|
38
|
+
export declare const postProcessingProcessQueueByKey: <ThrowOnError extends boolean = true>(options: Options<PostProcessingProcessQueueByKeyData, ThrowOnError>) => RequestResult<PostProcessingProcessQueueByKeyResponses, PostProcessingProcessQueueByKeyErrors, ThrowOnError>;
|
package/dist/api/types.gen.d.ts
CHANGED
|
@@ -205,141 +205,6 @@ export type QueuedItem = {
|
|
|
205
205
|
ownerNode?: null | string;
|
|
206
206
|
ownerHeartbeat?: null | string;
|
|
207
207
|
};
|
|
208
|
-
export type SamplePipeline = {
|
|
209
|
-
sampleCounter: number;
|
|
210
|
-
requires: Array<string>;
|
|
211
|
-
id: string;
|
|
212
|
-
alias: string;
|
|
213
|
-
strategy: string;
|
|
214
|
-
state: {
|
|
215
|
-
childPipeline?: null | string;
|
|
216
|
-
elementName?: null | string;
|
|
217
|
-
status: 'NotStarted' | 'Running' | 'Background' | 'Waiting' | 'Scheduled' | 'Completed' | 'Failed' | 'Cancelled';
|
|
218
|
-
progress: {
|
|
219
|
-
isLastAction: boolean;
|
|
220
|
-
steps: Array<{
|
|
221
|
-
icon: string;
|
|
222
|
-
name: string;
|
|
223
|
-
status: 'None' | 'Running' | 'Complete' | 'Error';
|
|
224
|
-
}>;
|
|
225
|
-
progress: number;
|
|
226
|
-
};
|
|
227
|
-
currentRequest?: {
|
|
228
|
-
id: string;
|
|
229
|
-
clientId?: null | string;
|
|
230
|
-
isBackgroundRequest: boolean;
|
|
231
|
-
strategy: string;
|
|
232
|
-
action?: {
|
|
233
|
-
alias: string;
|
|
234
|
-
stepAlias?: null | string;
|
|
235
|
-
page: number;
|
|
236
|
-
pageSize: number;
|
|
237
|
-
subStep?: null | string;
|
|
238
|
-
element?: null | string;
|
|
239
|
-
waitOnAction: boolean;
|
|
240
|
-
};
|
|
241
|
-
user?: null | string;
|
|
242
|
-
title?: null | string;
|
|
243
|
-
source?: null | string;
|
|
244
|
-
options: {
|
|
245
|
-
[key: string]: unknown;
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
schedule?: null | string;
|
|
249
|
-
backgroundState?: {
|
|
250
|
-
isBackgroundRequest: boolean;
|
|
251
|
-
backgroundElement?: null | string;
|
|
252
|
-
completedElement?: null | string;
|
|
253
|
-
failedElement?: null | string;
|
|
254
|
-
clientId?: null | string;
|
|
255
|
-
};
|
|
256
|
-
isChildPipeline: boolean;
|
|
257
|
-
cancelRequested: boolean;
|
|
258
|
-
concurrencyKey?: null | string;
|
|
259
|
-
userKey?: null | string;
|
|
260
|
-
created?: null | string;
|
|
261
|
-
modified?: null | string;
|
|
262
|
-
};
|
|
263
|
-
options: {
|
|
264
|
-
extensions: {
|
|
265
|
-
[key: string]: unknown;
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
results?: {
|
|
269
|
-
results: {
|
|
270
|
-
[key: string]: unknown;
|
|
271
|
-
};
|
|
272
|
-
error?: {
|
|
273
|
-
source: string;
|
|
274
|
-
strategy: string;
|
|
275
|
-
message: string;
|
|
276
|
-
action: string;
|
|
277
|
-
step?: null | string;
|
|
278
|
-
page: number;
|
|
279
|
-
subStep?: null | string;
|
|
280
|
-
key: string;
|
|
281
|
-
className?: null | string;
|
|
282
|
-
methodName?: null | string;
|
|
283
|
-
stackTrace?: null | string;
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
|
-
export type SamplePipelineOptions = {
|
|
288
|
-
sampleOptionCounter: number;
|
|
289
|
-
something?: null | string;
|
|
290
|
-
};
|
|
291
|
-
export type SamplePipelineState = {
|
|
292
|
-
results: {
|
|
293
|
-
[key: string]: unknown;
|
|
294
|
-
};
|
|
295
|
-
status: 'NotStarted' | 'Running' | 'Background' | 'Waiting' | 'Scheduled' | 'Completed' | 'Failed' | 'Cancelled';
|
|
296
|
-
childPipeline?: null | string;
|
|
297
|
-
elementName?: null | string;
|
|
298
|
-
currentRequest?: {
|
|
299
|
-
id: string;
|
|
300
|
-
clientId?: null | string;
|
|
301
|
-
isBackgroundRequest: boolean;
|
|
302
|
-
strategy: string;
|
|
303
|
-
action?: {
|
|
304
|
-
alias: string;
|
|
305
|
-
stepAlias?: null | string;
|
|
306
|
-
page: number;
|
|
307
|
-
pageSize: number;
|
|
308
|
-
subStep?: null | string;
|
|
309
|
-
element?: null | string;
|
|
310
|
-
waitOnAction: boolean;
|
|
311
|
-
};
|
|
312
|
-
user?: null | string;
|
|
313
|
-
title?: null | string;
|
|
314
|
-
source?: null | string;
|
|
315
|
-
options: {
|
|
316
|
-
[key: string]: unknown;
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
progress: {
|
|
320
|
-
isLastAction: boolean;
|
|
321
|
-
steps: Array<{
|
|
322
|
-
icon: string;
|
|
323
|
-
name: string;
|
|
324
|
-
status: 'None' | 'Running' | 'Complete' | 'Error';
|
|
325
|
-
}>;
|
|
326
|
-
progress: number;
|
|
327
|
-
};
|
|
328
|
-
schedule?: null | string;
|
|
329
|
-
backgroundState?: {
|
|
330
|
-
isBackgroundRequest: boolean;
|
|
331
|
-
backgroundElement?: null | string;
|
|
332
|
-
completedElement?: null | string;
|
|
333
|
-
failedElement?: null | string;
|
|
334
|
-
clientId?: null | string;
|
|
335
|
-
};
|
|
336
|
-
isChildPipeline: boolean;
|
|
337
|
-
cancelRequested: boolean;
|
|
338
|
-
concurrencyKey?: null | string;
|
|
339
|
-
userKey?: null | string;
|
|
340
|
-
created?: null | string;
|
|
341
|
-
modified?: null | string;
|
|
342
|
-
};
|
|
343
208
|
export type StepInfo = {
|
|
344
209
|
icon: string;
|
|
345
210
|
name: string;
|
|
@@ -23,8 +23,8 @@ export declare class PipelineContext extends UmbControllerBase {
|
|
|
23
23
|
private isState;
|
|
24
24
|
createPipeline(processor: string, strategy: string, options: ProcessingOptions | undefined): Promise<void>;
|
|
25
25
|
loadPipeline(id: string): Promise<void>;
|
|
26
|
-
getPipeline(id: string): Promise<import("@jumoo/processing").Pipeline
|
|
27
|
-
fetchPipeline(id: string): Promise<import("@jumoo/processing").Pipeline
|
|
26
|
+
getPipeline(id: string): Promise<import("@jumoo/processing").Pipeline>;
|
|
27
|
+
fetchPipeline(id: string): Promise<import("@jumoo/processing").Pipeline>;
|
|
28
28
|
process(): Promise<import("@jumoo/processing").Pipeline | undefined>;
|
|
29
29
|
updateOptions(options: ProcessingOptions): Promise<void>;
|
|
30
30
|
setOption(value: Record<string, unknown>): Promise<void>;
|
|
@@ -8,54 +8,39 @@ export declare class PipelineRepository extends UmbControllerBase {
|
|
|
8
8
|
private readonly source;
|
|
9
9
|
constructor(host: UmbControllerHost);
|
|
10
10
|
clear(id: string): Promise<unknown>;
|
|
11
|
-
process(id: string, clientId: string | null): Promise<import("@jumoo/processing").Pipeline
|
|
12
|
-
reattach(id: string, clientId: string | null): Promise<import("@jumoo/processing").Pipeline
|
|
13
|
-
update(id: string, body: any): Promise<import("@jumoo/processing").ProcessingOptionsResults
|
|
14
|
-
getProcessors(): Promise<string[]
|
|
15
|
-
Get(id: string): Promise<import("@jumoo/processing").Pipeline
|
|
16
|
-
create(processor: string, strategy: string, options: ProcessingOptions | undefined): Promise<string
|
|
11
|
+
process(id: string, clientId: string | null): Promise<import("@jumoo/processing").Pipeline>;
|
|
12
|
+
reattach(id: string, clientId: string | null): Promise<import("@jumoo/processing").Pipeline>;
|
|
13
|
+
update(id: string, body: any): Promise<import("@jumoo/processing").ProcessingOptionsResults>;
|
|
14
|
+
getProcessors(): Promise<string[]>;
|
|
15
|
+
Get(id: string): Promise<import("@jumoo/processing").Pipeline>;
|
|
16
|
+
create(processor: string, strategy: string, options: ProcessingOptions | undefined): Promise<string>;
|
|
17
17
|
/**
|
|
18
18
|
* @description create, returning the whole response rather than just the id, so the caller
|
|
19
19
|
* can tell a 409 "already running" (see getPipelineConflict) from any other failure.
|
|
20
20
|
*/
|
|
21
|
-
tryCreate(processor: string, strategy: string, options: ProcessingOptions | undefined): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
21
|
+
tryCreate(processor: string, strategy: string, options: ProcessingOptions | undefined): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
22
22
|
data: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
data: undefined;
|
|
26
|
-
error: unknown;
|
|
27
|
-
}) & {
|
|
28
|
-
request?: Request;
|
|
29
|
-
response?: Response;
|
|
23
|
+
request: Request;
|
|
24
|
+
response: Response;
|
|
30
25
|
}>>;
|
|
31
26
|
/**
|
|
32
27
|
* @description process, returning the whole response - see tryCreate.
|
|
33
28
|
*/
|
|
34
|
-
tryProcess(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
29
|
+
tryProcess(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
35
30
|
data: import("@jumoo/processing").Pipeline;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
data: undefined;
|
|
39
|
-
error: unknown;
|
|
40
|
-
}) & {
|
|
41
|
-
request?: Request;
|
|
42
|
-
response?: Response;
|
|
31
|
+
request: Request;
|
|
32
|
+
response: Response;
|
|
43
33
|
}>>;
|
|
44
34
|
/**
|
|
45
35
|
* @description update, returning the whole response - see tryCreate.
|
|
46
36
|
*/
|
|
47
|
-
tryUpdate(id: string, body: ProcessingOptions | undefined): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
37
|
+
tryUpdate(id: string, body: ProcessingOptions | undefined): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
48
38
|
data: import("@jumoo/processing").ProcessingOptionsResults;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
data: undefined;
|
|
52
|
-
error: unknown;
|
|
53
|
-
}) & {
|
|
54
|
-
request?: Request;
|
|
55
|
-
response?: Response;
|
|
39
|
+
request: Request;
|
|
40
|
+
response: Response;
|
|
56
41
|
}>>;
|
|
57
|
-
getRunStatus(id: string): Promise<import("@jumoo/processing").PipelineRunStatus
|
|
42
|
+
getRunStatus(id: string): Promise<import("@jumoo/processing").PipelineRunStatus>;
|
|
58
43
|
complete(id: string): Promise<void>;
|
|
59
|
-
getResults(id: string): Promise<import("@jumoo/processing").ProcessingResults
|
|
60
|
-
listPipelines(status: PipelineStatus): Promise<import("@jumoo/processing").Pipeline[]
|
|
44
|
+
getResults(id: string): Promise<import("@jumoo/processing").ProcessingResults>;
|
|
45
|
+
listPipelines(status: PipelineStatus): Promise<import("@jumoo/processing").Pipeline[]>;
|
|
61
46
|
}
|
|
@@ -7,15 +7,10 @@ export declare class PipelineSource {
|
|
|
7
7
|
* @description a 409 (another pipeline holds this one's concurrency key, so it can't resume)
|
|
8
8
|
* is returned as the error without a notification - see getPipelineConflict.
|
|
9
9
|
*/
|
|
10
|
-
process(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
10
|
+
process(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
11
11
|
data: import("..").Pipeline;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
data: undefined;
|
|
15
|
-
error: unknown;
|
|
16
|
-
}) & {
|
|
17
|
-
request?: Request;
|
|
18
|
-
response?: Response;
|
|
12
|
+
request: Request;
|
|
13
|
+
response: Response;
|
|
19
14
|
}>>;
|
|
20
15
|
/**
|
|
21
16
|
* @description re-registers a client id against a pipeline already running in the
|
|
@@ -23,54 +18,34 @@ export declare class PipelineSource {
|
|
|
23
18
|
* returns the full, current pipeline so the caller can resync rather than trust whatever it
|
|
24
19
|
* last saw down the old, now-dead connection.
|
|
25
20
|
*/
|
|
26
|
-
reattach(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
21
|
+
reattach(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
27
22
|
data: import("..").Pipeline;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
data: undefined;
|
|
31
|
-
error: unknown;
|
|
32
|
-
}) & {
|
|
33
|
-
request?: Request;
|
|
34
|
-
response?: Response;
|
|
23
|
+
request: Request;
|
|
24
|
+
response: Response;
|
|
35
25
|
}>>;
|
|
36
26
|
/**
|
|
37
27
|
* @description a 409 (the new options' concurrency key is held) is returned as the error
|
|
38
28
|
* without a notification - see getPipelineConflict.
|
|
39
29
|
*/
|
|
40
|
-
update(id: string, body: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
30
|
+
update(id: string, body: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
41
31
|
data: import("..").ProcessingOptionsResults;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
data: undefined;
|
|
45
|
-
error: unknown;
|
|
46
|
-
}) & {
|
|
47
|
-
request?: Request;
|
|
48
|
-
response?: Response;
|
|
32
|
+
request: Request;
|
|
33
|
+
response: Response;
|
|
49
34
|
}>>;
|
|
50
|
-
getProcessors(): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
35
|
+
getProcessors(): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
51
36
|
data: string[];
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
data: undefined;
|
|
55
|
-
error: unknown;
|
|
56
|
-
}) & {
|
|
57
|
-
request?: Request;
|
|
58
|
-
response?: Response;
|
|
37
|
+
request: Request;
|
|
38
|
+
response: Response;
|
|
59
39
|
}>>;
|
|
60
40
|
/**
|
|
61
41
|
*
|
|
62
42
|
* @param id guid id of the pipeline to retrieve
|
|
63
43
|
* @returns pipeline
|
|
64
44
|
*/
|
|
65
|
-
Get(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
45
|
+
Get(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
66
46
|
data: import("..").Pipeline;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
data: undefined;
|
|
70
|
-
error: unknown;
|
|
71
|
-
}) & {
|
|
72
|
-
request?: Request;
|
|
73
|
-
response?: Response;
|
|
47
|
+
request: Request;
|
|
48
|
+
response: Response;
|
|
74
49
|
}>>;
|
|
75
50
|
/**
|
|
76
51
|
*
|
|
@@ -78,67 +53,42 @@ export declare class PipelineSource {
|
|
|
78
53
|
* @returns the new pipeline's id. A 409 (another pipeline holds its concurrency key) is
|
|
79
54
|
* returned as the error without a notification - see getPipelineConflict.
|
|
80
55
|
*/
|
|
81
|
-
create(processor: string, strategy: string, options: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
56
|
+
create(processor: string, strategy: string, options: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
82
57
|
data: string;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
data: undefined;
|
|
86
|
-
error: unknown;
|
|
87
|
-
}) & {
|
|
88
|
-
request?: Request;
|
|
89
|
-
response?: Response;
|
|
58
|
+
request: Request;
|
|
59
|
+
response: Response;
|
|
90
60
|
}>>;
|
|
91
61
|
/**
|
|
92
62
|
*
|
|
93
63
|
* @param id guid id of the pipeline to remove
|
|
94
64
|
* @returns nothing.
|
|
95
65
|
*/
|
|
96
|
-
clear(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
66
|
+
clear(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
97
67
|
data: unknown;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
data: undefined;
|
|
101
|
-
error: unknown;
|
|
102
|
-
}) & {
|
|
103
|
-
request?: Request;
|
|
104
|
-
response?: Response;
|
|
68
|
+
request: Request;
|
|
69
|
+
response: Response;
|
|
105
70
|
}>>;
|
|
106
71
|
/**
|
|
107
72
|
* @param id guid id of the pipeline to retrieve results for
|
|
108
73
|
* @returns results (if there are any) for the pipeline
|
|
109
74
|
*/
|
|
110
|
-
getResults(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
75
|
+
getResults(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
111
76
|
data: import("..").ProcessingResults;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
data: undefined;
|
|
115
|
-
error: unknown;
|
|
116
|
-
}) & {
|
|
117
|
-
request?: Request;
|
|
118
|
-
response?: Response;
|
|
77
|
+
request: Request;
|
|
78
|
+
response: Response;
|
|
119
79
|
}>>;
|
|
120
80
|
/**
|
|
121
81
|
* @param id guid id of the pipeline
|
|
122
82
|
* @returns its run status, or an error (without a notification) if the user can't see it.
|
|
123
83
|
*/
|
|
124
|
-
getRunStatus(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
84
|
+
getRunStatus(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
125
85
|
data: import("..").PipelineRunStatus;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
data: undefined;
|
|
129
|
-
error: unknown;
|
|
130
|
-
}) & {
|
|
131
|
-
request?: Request;
|
|
132
|
-
response?: Response;
|
|
86
|
+
request: Request;
|
|
87
|
+
response: Response;
|
|
133
88
|
}>>;
|
|
134
|
-
listPiplelines(status: PipelineStatus): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<
|
|
89
|
+
listPiplelines(status: PipelineStatus): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
|
|
135
90
|
data: import("..").Pipeline[];
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
data: undefined;
|
|
139
|
-
error: unknown;
|
|
140
|
-
}) & {
|
|
141
|
-
request?: Request;
|
|
142
|
-
response?: Response;
|
|
91
|
+
request: Request;
|
|
92
|
+
response: Response;
|
|
143
93
|
}>>;
|
|
144
94
|
}
|
|
@@ -5,7 +5,7 @@ import { PipelineStatus } from '../api';
|
|
|
5
5
|
export declare class PipelinesContext extends UmbControllerBase {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(host: UmbControllerHost);
|
|
8
|
-
listPipelines(status: PipelineStatus): Promise<import("..").Pipeline[]
|
|
8
|
+
listPipelines(status: PipelineStatus): Promise<import("..").Pipeline[]>;
|
|
9
9
|
clear(id: string): Promise<unknown>;
|
|
10
10
|
}
|
|
11
11
|
export default PipelinesContext;
|
|
@@ -6,7 +6,7 @@ export declare class QueueContext extends UmbControllerBase {
|
|
|
6
6
|
#private;
|
|
7
7
|
constructor(host: UmbControllerHost);
|
|
8
8
|
readonly queue: import("rxjs").Observable<PagedModelQueuedItemModel | undefined>;
|
|
9
|
-
loadQueue(): Promise<PagedModelQueuedItemModel
|
|
9
|
+
loadQueue(): Promise<PagedModelQueuedItemModel>;
|
|
10
10
|
process(key: string): Promise<void>;
|
|
11
11
|
}
|
|
12
12
|
export default QueueContext;
|
|
@@ -24,7 +24,9 @@ export class QueueContext extends UmbControllerBase {
|
|
|
24
24
|
}
|
|
25
25
|
async loadQueue() {
|
|
26
26
|
const queue = await __classPrivateFieldGet(this, _QueueContext_repository, "f").list();
|
|
27
|
-
|
|
27
|
+
// undefined means the request failed, so keep the last list rather than clearing it.
|
|
28
|
+
if (queue)
|
|
29
|
+
__classPrivateFieldGet(this, _QueueContext_queue, "f").setValue(queue);
|
|
28
30
|
return queue;
|
|
29
31
|
}
|
|
30
32
|
async process(key) {
|
|
@@ -2,9 +2,9 @@ import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
|
|
2
2
|
import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
|
3
3
|
export declare class QueueRepository extends UmbControllerBase {
|
|
4
4
|
constructor(host: UmbControllerHost);
|
|
5
|
-
list(): Promise<import("..").PagedModelQueuedItemModel
|
|
6
|
-
peek(key: string): Promise<import("..").PagedModelQueuedItemModel
|
|
5
|
+
list(): Promise<import("..").PagedModelQueuedItemModel>;
|
|
6
|
+
peek(key: string): Promise<import("..").PagedModelQueuedItemModel>;
|
|
7
7
|
delete(key: string): Promise<unknown>;
|
|
8
|
-
process(key: string): Promise<import("..").QueuedItem
|
|
8
|
+
process(key: string): Promise<import("..").QueuedItem>;
|
|
9
9
|
}
|
|
10
10
|
export default QueueRepository;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
|
2
|
+
import { tryExecute } from '@umbraco-cms/backoffice/resources';
|
|
2
3
|
import { deleteProcessingDeleteQueueByKey, getProcessingListQueue, getProcessingPeekItem, postProcessingProcessQueueByKey, } from '../api';
|
|
3
4
|
export class QueueRepository extends UmbControllerBase {
|
|
4
5
|
constructor(host) {
|
|
5
6
|
super(host);
|
|
6
7
|
}
|
|
7
8
|
async list() {
|
|
8
|
-
return (await getProcessingListQueue()).data;
|
|
9
|
+
return (await tryExecute(this, getProcessingListQueue())).data;
|
|
9
10
|
}
|
|
10
11
|
async peek(key) {
|
|
11
|
-
return (await getProcessingPeekItem({
|
|
12
|
+
return (await tryExecute(this, getProcessingPeekItem({
|
|
12
13
|
query: {
|
|
13
14
|
key: key,
|
|
14
15
|
},
|
|
15
|
-
})).data;
|
|
16
|
+
}))).data;
|
|
16
17
|
}
|
|
17
18
|
async delete(key) {
|
|
18
|
-
return (await deleteProcessingDeleteQueueByKey({
|
|
19
|
+
return (await tryExecute(this, deleteProcessingDeleteQueueByKey({
|
|
19
20
|
path: {
|
|
20
21
|
key: key,
|
|
21
22
|
},
|
|
22
|
-
})).data;
|
|
23
|
+
}))).data;
|
|
23
24
|
}
|
|
24
25
|
async process(key) {
|
|
25
|
-
return (await postProcessingProcessQueueByKey({
|
|
26
|
+
return (await tryExecute(this, postProcessingProcessQueueByKey({
|
|
26
27
|
path: {
|
|
27
28
|
key: key,
|
|
28
29
|
},
|
|
29
|
-
})).data;
|
|
30
|
+
}))).data;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
export default QueueRepository;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jumoo/processing",
|
|
3
3
|
"licence": "custom",
|
|
4
|
-
"version": "18.3.
|
|
4
|
+
"version": "18.3.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Jumoo processing library",
|
|
7
7
|
"exports": {
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
42
42
|
"@microsoft/signalr": "^10.0.0",
|
|
43
43
|
"@umbraco-cms/backoffice": "18.0.1",
|
|
44
|
-
"chalk": "^
|
|
44
|
+
"chalk": "^6.0.1",
|
|
45
45
|
"cross-env": "^10.1.0",
|
|
46
46
|
"eslint": "^10.13.0",
|
|
47
47
|
"globals": "^17.13.0",
|
|
48
48
|
"node-fetch": "^3.3.2",
|
|
49
49
|
"prettier": "^3.9.10",
|
|
50
50
|
"typescript": "^6.0.3",
|
|
51
|
-
"typescript-eslint": "^8.72.
|
|
51
|
+
"typescript-eslint": "^8.72.1",
|
|
52
52
|
"vite": "^8.3.5"
|
|
53
53
|
},
|
|
54
54
|
"repository": {
|