@jumoo/processing 17.4.2 → 17.4.3-prerelease.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.
Files changed (32) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/api/index.js +1 -1
  3. package/dist/api/sdk.gen.d.ts +4 -1
  4. package/dist/api/sdk.gen.js +25 -0
  5. package/dist/api/types.gen.d.ts +197 -1
  6. package/dist/api/types.gen.js +17 -0
  7. package/dist/lang/files/en.d.ts +26 -0
  8. package/dist/lang/files/en.js +26 -0
  9. package/dist/pipeline/components/background.element.js +24 -23
  10. package/dist/pipeline/components/pipeline-list.element.js +29 -28
  11. package/dist/pipeline/components/pipeline-table.element.js +23 -23
  12. package/dist/pipeline/components/process-error.element.js +39 -39
  13. package/dist/pipeline/components/progress.element.js +122 -122
  14. package/dist/pipeline/components/progress.step.element.js +5 -5
  15. package/dist/pipeline/index.d.ts +1 -0
  16. package/dist/pipeline/index.js +1 -0
  17. package/dist/pipeline/modal/errors/error-modal.element.js +87 -87
  18. package/dist/pipeline/modal/pipeline-modal.element.js +34 -34
  19. package/dist/pipeline/pipeline-conflict.d.ts +31 -0
  20. package/dist/pipeline/pipeline-conflict.js +42 -0
  21. package/dist/pipeline/pipeline.context.d.ts +6 -1
  22. package/dist/pipeline/pipeline.context.js +43 -8
  23. package/dist/pipeline/pipeline.element.d.ts +11 -0
  24. package/dist/pipeline/pipeline.element.js +157 -27
  25. package/dist/pipeline/pipeline.repository.d.ts +26 -0
  26. package/dist/pipeline/pipeline.repository.js +22 -0
  27. package/dist/pipeline/pipeline.source.d.ts +19 -1
  28. package/dist/pipeline/pipeline.source.js +23 -4
  29. package/dist/pipeline/workspace/views/default-pipeline-view.js +18 -18
  30. package/dist/queue/components/queue-list.element.js +17 -17
  31. package/dist/queue/components/queue-table.element.js +15 -15
  32. package/package.json +58 -51
@@ -1,3 +1,3 @@
1
1
  export { client, type CreateClientConfig } from './client.gen';
2
2
  export { type Options, PipelinesService, QueuesService } from './sdk.gen';
3
- export { type ClearPipelineData, type ClearPipelineError, type ClearPipelineErrors, type ClearPipelineResponses, type ClientOptions, type CreatePipelineData, type CreatePipelineError, type CreatePipelineErrors, type CreatePipelineResponse, type CreatePipelineResponses, type DeleteData, type DeleteError, type DeleteErrors, type DeleteResponses, type GetPipelineData, type GetPipelineError, type GetPipelineErrors, type GetPipelineResponse, type GetPipelineResponses, type GetProcessorsData, type GetProcessorsError, type GetProcessorsErrors, type GetProcessorsResponse, type GetProcessorsResponses, type GetResultsData, type GetResultsError, type GetResultsErrors, type GetResultsResponse, type GetResultsResponses, type ListPipelinesByStrategyData, type ListPipelinesByStrategyError, type ListPipelinesByStrategyErrors, type ListPipelinesByStrategyResponse, type ListPipelinesByStrategyResponses, type ListPipelinesData, type ListPipelinesError, type ListPipelinesErrors, type ListPipelinesResponse, type ListPipelinesResponses, type ListQueueData, type ListQueueError, type ListQueueErrors, type ListQueueResponse, type ListQueueResponses, type PagedModelQueuedItemModel, type PeekItemData, type PeekItemError, type PeekItemErrors, type PeekItemResponse, type PeekItemResponses, type Pipeline, type PipelineBackgroundState, type PipelineCreateRequest, type PipelineState, PipelineStatus, type ProblemDetails, type ProcessData, type ProcessError, type ProcessErrors, type ProcessingChildRequestAction, type ProcessingErrorDetails, type ProcessingOptions, type ProcessingOptionsResults, type ProcessingRequest, type ProcessingRequestAction, type ProcessingResults, type ProcessPipelineData, type ProcessPipelineError, type ProcessPipelineErrors, type ProcessPipelineResponse, type ProcessPipelineResponses, type ProcessResponse, type ProcessResponses, type ProgressInformation, type QueuedItem, type ReattachPipelineData, type ReattachPipelineError, type ReattachPipelineErrors, type ReattachPipelineResponse, type ReattachPipelineResponses, type StepInfo, StepStatus, type UpdatePipelineData, type UpdatePipelineError, type UpdatePipelineErrors, type UpdatePipelineResponse, type UpdatePipelineResponses } from './types.gen';
3
+ export { type CancelPipelineData, type CancelPipelineError, type CancelPipelineErrors, type CancelPipelineResponses, type ClearPipelineData, type ClearPipelineError, type ClearPipelineErrors, type ClearPipelineResponses, type ClientOptions, type CreatePipelineData, type CreatePipelineError, type CreatePipelineErrors, type CreatePipelineResponse, type CreatePipelineResponses, type DeleteData, type DeleteError, type DeleteErrors, type DeleteResponses, type GetPipelineData, type GetPipelineError, type GetPipelineErrors, type GetPipelineResponse, type GetPipelineResponses, type GetProcessorsData, type GetProcessorsError, type GetProcessorsErrors, type GetProcessorsResponse, type GetProcessorsResponses, type GetResultsData, type GetResultsError, type GetResultsErrors, type GetResultsResponse, type GetResultsResponses, type ListPipelinesByStrategyData, type ListPipelinesByStrategyError, type ListPipelinesByStrategyErrors, type ListPipelinesByStrategyResponse, type ListPipelinesByStrategyResponses, type ListPipelinesData, type ListPipelinesError, type ListPipelinesErrors, type ListPipelinesResponse, type ListPipelinesResponses, type ListQueueData, type ListQueueError, type ListQueueErrors, type ListQueueResponse, type ListQueueResponses, type PagedModelQueuedItemModel, type PeekItemData, type PeekItemError, type PeekItemErrors, type PeekItemResponse, type PeekItemResponses, 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 PipelineStatusData, type PipelineStatusError, type PipelineStatusErrors, type PipelineStatusResponse, type PipelineStatusResponses, type ProblemDetails, type ProcessData, type ProcessError, type ProcessErrors, type ProcessingChildRequestAction, type ProcessingErrorDetails, type ProcessingOptions, type ProcessingOptionsResults, type ProcessingRequest, type ProcessingRequestAction, type ProcessingResults, type ProcessPipelineData, type ProcessPipelineError, type ProcessPipelineErrors, type ProcessPipelineResponse, type ProcessPipelineResponses, type ProcessResponse, type ProcessResponses, type ProgressInformation, type QueuedItem, type ReattachPipelineData, type ReattachPipelineError, type ReattachPipelineErrors, type ReattachPipelineResponse, type ReattachPipelineResponses, type StartPipelineData, type StartPipelineError, type StartPipelineErrors, type StartPipelineResponse, type StartPipelineResponses, type StepInfo, StepStatus, type UpdatePipelineData, type UpdatePipelineError, type UpdatePipelineErrors, type UpdatePipelineResponse, type UpdatePipelineResponses } from './types.gen';
package/dist/api/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  export { client } from './client.gen';
3
3
  export { PipelinesService, QueuesService } from './sdk.gen';
4
- export { PipelineStatus, StepStatus } from './types.gen';
4
+ export { PipelineRunRejectedReason, PipelineRunState, PipelineStatus, StepStatus } from './types.gen';
@@ -1,5 +1,5 @@
1
1
  import type { Client, Options as Options2, TDataShape } from './client';
2
- import type { ClearPipelineData, ClearPipelineErrors, ClearPipelineResponses, CreatePipelineData, CreatePipelineErrors, CreatePipelineResponses, DeleteData, DeleteErrors, DeleteResponses, GetPipelineData, GetPipelineErrors, GetPipelineResponses, GetProcessorsData, GetProcessorsErrors, GetProcessorsResponses, GetResultsData, GetResultsErrors, GetResultsResponses, ListPipelinesByStrategyData, ListPipelinesByStrategyErrors, ListPipelinesByStrategyResponses, ListPipelinesData, ListPipelinesErrors, ListPipelinesResponses, ListQueueData, ListQueueErrors, ListQueueResponses, PeekItemData, PeekItemErrors, PeekItemResponses, ProcessData, ProcessErrors, ProcessPipelineData, ProcessPipelineErrors, ProcessPipelineResponses, ProcessResponses, ReattachPipelineData, ReattachPipelineErrors, ReattachPipelineResponses, UpdatePipelineData, UpdatePipelineErrors, UpdatePipelineResponses } from './types.gen';
2
+ import type { CancelPipelineData, CancelPipelineErrors, CancelPipelineResponses, ClearPipelineData, ClearPipelineErrors, ClearPipelineResponses, CreatePipelineData, CreatePipelineErrors, CreatePipelineResponses, DeleteData, DeleteErrors, DeleteResponses, GetPipelineData, GetPipelineErrors, GetPipelineResponses, GetProcessorsData, GetProcessorsErrors, GetProcessorsResponses, GetResultsData, GetResultsErrors, GetResultsResponses, ListPipelinesByStrategyData, ListPipelinesByStrategyErrors, ListPipelinesByStrategyResponses, ListPipelinesData, ListPipelinesErrors, ListPipelinesResponses, ListQueueData, ListQueueErrors, ListQueueResponses, PeekItemData, PeekItemErrors, PeekItemResponses, PipelineStatusData, PipelineStatusErrors, PipelineStatusResponses, ProcessData, ProcessErrors, ProcessPipelineData, ProcessPipelineErrors, ProcessPipelineResponses, ProcessResponses, ReattachPipelineData, ReattachPipelineErrors, ReattachPipelineResponses, StartPipelineData, StartPipelineErrors, StartPipelineResponses, UpdatePipelineData, UpdatePipelineErrors, UpdatePipelineResponses } from './types.gen';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -14,6 +14,7 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
14
14
  meta?: Record<string, unknown>;
15
15
  };
16
16
  export declare class PipelinesService {
17
+ static cancelPipeline<ThrowOnError extends boolean = true>(options: Options<CancelPipelineData, ThrowOnError>): import("./client").RequestResult<CancelPipelineResponses, CancelPipelineErrors, ThrowOnError, "fields">;
17
18
  static clearPipeline<ThrowOnError extends boolean = true>(options: Options<ClearPipelineData, ThrowOnError>): import("./client").RequestResult<ClearPipelineResponses, ClearPipelineErrors, ThrowOnError, "fields">;
18
19
  static createPipeline<ThrowOnError extends boolean = true>(options?: Options<CreatePipelineData, ThrowOnError>): import("./client").RequestResult<CreatePipelineResponses, CreatePipelineErrors, ThrowOnError, "fields">;
19
20
  static getPipeline<ThrowOnError extends boolean = true>(options: Options<GetPipelineData, ThrowOnError>): import("./client").RequestResult<GetPipelineResponses, GetPipelineErrors, ThrowOnError, "fields">;
@@ -21,8 +22,10 @@ export declare class PipelinesService {
21
22
  static getResults<ThrowOnError extends boolean = true>(options: Options<GetResultsData, ThrowOnError>): import("./client").RequestResult<GetResultsResponses, GetResultsErrors, ThrowOnError, "fields">;
22
23
  static listPipelines<ThrowOnError extends boolean = true>(options: Options<ListPipelinesData, ThrowOnError>): import("./client").RequestResult<ListPipelinesResponses, ListPipelinesErrors, ThrowOnError, "fields">;
23
24
  static listPipelinesByStrategy<ThrowOnError extends boolean = true>(options: Options<ListPipelinesByStrategyData, ThrowOnError>): import("./client").RequestResult<ListPipelinesByStrategyResponses, ListPipelinesByStrategyErrors, ThrowOnError, "fields">;
25
+ static pipelineStatus<ThrowOnError extends boolean = true>(options: Options<PipelineStatusData, ThrowOnError>): import("./client").RequestResult<PipelineStatusResponses, PipelineStatusErrors, ThrowOnError, "fields">;
24
26
  static processPipeline<ThrowOnError extends boolean = true>(options: Options<ProcessPipelineData, ThrowOnError>): import("./client").RequestResult<ProcessPipelineResponses, ProcessPipelineErrors, ThrowOnError, "fields">;
25
27
  static reattachPipeline<ThrowOnError extends boolean = true>(options: Options<ReattachPipelineData, ThrowOnError>): import("./client").RequestResult<ReattachPipelineResponses, ReattachPipelineErrors, ThrowOnError, "fields">;
28
+ static startPipeline<ThrowOnError extends boolean = true>(options?: Options<StartPipelineData, ThrowOnError>): import("./client").RequestResult<StartPipelineResponses, StartPipelineErrors, ThrowOnError, "fields">;
26
29
  static updatePipeline<ThrowOnError extends boolean = true>(options: Options<UpdatePipelineData, ThrowOnError>): import("./client").RequestResult<UpdatePipelineResponses, UpdatePipelineErrors, ThrowOnError, "fields">;
27
30
  }
28
31
  export declare class QueuesService {
@@ -1,6 +1,13 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { client } from './client.gen';
3
3
  export class PipelinesService {
4
+ static cancelPipeline(options) {
5
+ return (options.client ?? client).post({
6
+ security: [{ scheme: 'bearer', type: 'http' }],
7
+ url: '/umbraco/jumoo/api/v1/processing/CancelPipeline/{id}',
8
+ ...options
9
+ });
10
+ }
4
11
  static clearPipeline(options) {
5
12
  return (options.client ?? client).post({
6
13
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -54,6 +61,13 @@ export class PipelinesService {
54
61
  ...options
55
62
  });
56
63
  }
64
+ static pipelineStatus(options) {
65
+ return (options.client ?? client).get({
66
+ security: [{ scheme: 'bearer', type: 'http' }],
67
+ url: '/umbraco/jumoo/api/v1/processing/PipelineStatus/{id}',
68
+ ...options
69
+ });
70
+ }
57
71
  static processPipeline(options) {
58
72
  return (options.client ?? client).post({
59
73
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -68,6 +82,17 @@ export class PipelinesService {
68
82
  ...options
69
83
  });
70
84
  }
85
+ static startPipeline(options) {
86
+ return (options?.client ?? client).post({
87
+ security: [{ scheme: 'bearer', type: 'http' }],
88
+ url: '/umbraco/jumoo/api/v1/processing/StartPipeline',
89
+ ...options,
90
+ headers: {
91
+ 'Content-Type': 'application/json',
92
+ ...options?.headers
93
+ }
94
+ });
95
+ }
71
96
  static updatePipeline(options) {
72
97
  return (options.client ?? client).post({
73
98
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -20,12 +20,85 @@ export type PipelineBackgroundState = {
20
20
  failedElement?: string | null;
21
21
  clientId?: string | null;
22
22
  };
23
+ export type PipelineConflictProblemDetails = {
24
+ type?: string | null;
25
+ title?: string | null;
26
+ status?: number | null;
27
+ detail?: string | null;
28
+ instance?: string | null;
29
+ runningPipelineId: string;
30
+ concurrencyKey: string;
31
+ [key: string]: unknown;
32
+ };
23
33
  export type PipelineCreateRequest = {
24
34
  alias: string;
25
35
  strategy: string;
26
36
  options?: ProcessingOptions | null;
27
37
  clientId?: string | null;
28
38
  };
39
+ export type PipelineRunError = {
40
+ message: string;
41
+ action?: string | null;
42
+ step?: string | null;
43
+ };
44
+ export type PipelineRunProgress = {
45
+ percentage: number;
46
+ action?: string | null;
47
+ step?: string | null;
48
+ page: number;
49
+ };
50
+ export type PipelineRunRejected = {
51
+ reason: PipelineRunRejectedReason;
52
+ message: string;
53
+ runningPipelineId?: string | null;
54
+ concurrencyKey?: string | null;
55
+ };
56
+ export declare enum PipelineRunRejectedReason {
57
+ NOT_FOUND = "NotFound",
58
+ ALREADY_RUNNING = "AlreadyRunning",
59
+ INVALID = "Invalid"
60
+ }
61
+ export type PipelineRunRequest = {
62
+ processor: string;
63
+ strategy: string;
64
+ options?: ProcessingOptions | null;
65
+ startAtUtc?: string | null;
66
+ clientId?: string | null;
67
+ };
68
+ export type PipelineRunStarted = {
69
+ pipelineId: string;
70
+ status: PipelineRunState;
71
+ statusUrl: string;
72
+ };
73
+ export declare enum PipelineRunState {
74
+ QUEUED = "Queued",
75
+ RUNNING = "Running",
76
+ SCHEDULED = "Scheduled",
77
+ WAITING = "Waiting",
78
+ COMPLETED = "Completed",
79
+ FAILED = "Failed",
80
+ CANCELLED = "Cancelled"
81
+ }
82
+ export type PipelineRunStatus = {
83
+ pipelineId: string;
84
+ processor: string;
85
+ strategy: string;
86
+ status: PipelineRunState;
87
+ complete: boolean;
88
+ succeeded: boolean;
89
+ cancelRequested: boolean;
90
+ progress: PipelineRunProgress;
91
+ startedBy?: string | null;
92
+ startedByName?: string | null;
93
+ created?: string | null;
94
+ modified?: string | null;
95
+ scheduledFor?: string | null;
96
+ error?: PipelineRunError | null;
97
+ summary?: PipelineRunSummary | null;
98
+ };
99
+ export type PipelineRunSummary = {
100
+ [key: string]: unknown;
101
+ };
29
102
  export type PipelineState = {
30
103
  status: PipelineStatus;
31
104
  childPipeline?: string | null;
@@ -35,6 +108,11 @@ export type PipelineState = {
35
108
  schedule?: string | null;
36
109
  backgroundState?: PipelineBackgroundState | null;
37
110
  isChildPipeline: boolean;
111
+ cancelRequested: boolean;
112
+ concurrencyKey?: string | null;
113
+ userKey?: string | null;
114
+ created?: string | null;
115
+ modified?: string | null;
38
116
  };
39
117
  export declare enum PipelineStatus {
40
118
  NOT_STARTED = "NotStarted",
@@ -43,7 +121,8 @@ export declare enum PipelineStatus {
43
121
  WAITING = "Waiting",
44
122
  SCHEDULED = "Scheduled",
45
123
  COMPLETED = "Completed",
46
- FAILED = "Failed"
124
+ FAILED = "Failed",
125
+ CANCELLED = "Cancelled"
47
126
  }
48
127
  export type ProblemDetails = {
49
128
  type?: string | null;
@@ -134,6 +213,8 @@ export type QueuedItem = {
134
213
  note?: string | null;
135
214
  claimedBy?: string | null;
136
215
  claimedUntil?: string | null;
216
+ ownerNode?: string | null;
217
+ ownerHeartbeat?: string | null;
137
218
  };
138
219
  export type StepInfo = {
139
220
  icon: string;
@@ -146,6 +227,43 @@ export declare enum StepStatus {
146
227
  COMPLETE = "Complete",
147
228
  ERROR = "Error"
148
229
  }
230
+ export type CancelPipelineData = {
231
+ body?: never;
232
+ path: {
233
+ id: string;
234
+ };
235
+ query?: never;
236
+ url: '/umbraco/jumoo/api/v1/processing/CancelPipeline/{id}';
237
+ };
238
+ export type CancelPipelineErrors = {
239
+ /**
240
+ * Bad Request
241
+ */
242
+ 400: ProblemDetails;
243
+ /**
244
+ * The resource is protected and requires an authentication token
245
+ */
246
+ 401: unknown;
247
+ /**
248
+ * Forbidden
249
+ */
250
+ 403: ProblemDetails;
251
+ /**
252
+ * Not Found
253
+ */
254
+ 404: unknown;
255
+ /**
256
+ * Conflict
257
+ */
258
+ 409: ProblemDetails;
259
+ };
260
+ export type CancelPipelineError = CancelPipelineErrors[keyof CancelPipelineErrors];
261
+ export type CancelPipelineResponses = {
262
+ /**
263
+ * Accepted
264
+ */
265
+ 202: unknown;
266
+ };
149
267
  export type ClearPipelineData = {
150
268
  body?: never;
151
269
  path: {
@@ -190,6 +308,10 @@ export type CreatePipelineErrors = {
190
308
  * Not Found
191
309
  */
192
310
  404: unknown;
311
+ /**
312
+ * Conflict
313
+ */
314
+ 409: PipelineConflictProblemDetails;
193
315
  };
194
316
  export type CreatePipelineError = CreatePipelineErrors[keyof CreatePipelineErrors];
195
317
  export type CreatePipelineResponses = {
@@ -340,6 +462,40 @@ export type ListPipelinesByStrategyResponses = {
340
462
  200: Array<Pipeline>;
341
463
  };
342
464
  export type ListPipelinesByStrategyResponse = ListPipelinesByStrategyResponses[keyof ListPipelinesByStrategyResponses];
465
+ export type PipelineStatusData = {
466
+ body?: never;
467
+ path: {
468
+ id: string;
469
+ };
470
+ query?: never;
471
+ url: '/umbraco/jumoo/api/v1/processing/PipelineStatus/{id}';
472
+ };
473
+ export type PipelineStatusErrors = {
474
+ /**
475
+ * Bad Request
476
+ */
477
+ 400: ProblemDetails;
478
+ /**
479
+ * The resource is protected and requires an authentication token
480
+ */
481
+ 401: unknown;
482
+ /**
483
+ * Forbidden
484
+ */
485
+ 403: ProblemDetails;
486
+ /**
487
+ * Not Found
488
+ */
489
+ 404: unknown;
490
+ };
491
+ export type PipelineStatusError = PipelineStatusErrors[keyof PipelineStatusErrors];
492
+ export type PipelineStatusResponses = {
493
+ /**
494
+ * OK
495
+ */
496
+ 200: PipelineRunStatus;
497
+ };
498
+ export type PipelineStatusResponse = PipelineStatusResponses[keyof PipelineStatusResponses];
343
499
  export type ProcessPipelineData = {
344
500
  body?: never;
345
501
  path: {
@@ -359,6 +515,10 @@ export type ProcessPipelineErrors = {
359
515
  * The resource is protected and requires an authentication token
360
516
  */
361
517
  401: unknown;
518
+ /**
519
+ * Conflict
520
+ */
521
+ 409: PipelineConflictProblemDetails;
362
522
  };
363
523
  export type ProcessPipelineError = ProcessPipelineErrors[keyof ProcessPipelineErrors];
364
524
  export type ProcessPipelineResponses = {
@@ -400,6 +560,38 @@ export type ReattachPipelineResponses = {
400
560
  200: Pipeline;
401
561
  };
402
562
  export type ReattachPipelineResponse = ReattachPipelineResponses[keyof ReattachPipelineResponses];
563
+ export type StartPipelineData = {
564
+ body?: PipelineRunRequest;
565
+ path?: never;
566
+ query?: never;
567
+ url: '/umbraco/jumoo/api/v1/processing/StartPipeline';
568
+ };
569
+ export type StartPipelineErrors = {
570
+ /**
571
+ * Bad Request
572
+ */
573
+ 400: ProblemDetails;
574
+ /**
575
+ * The resource is protected and requires an authentication token
576
+ */
577
+ 401: unknown;
578
+ /**
579
+ * Not Found
580
+ */
581
+ 404: PipelineRunRejected;
582
+ /**
583
+ * Conflict
584
+ */
585
+ 409: PipelineRunRejected;
586
+ };
587
+ export type StartPipelineError = StartPipelineErrors[keyof StartPipelineErrors];
588
+ export type StartPipelineResponses = {
589
+ /**
590
+ * Accepted
591
+ */
592
+ 202: PipelineRunStarted;
593
+ };
594
+ export type StartPipelineResponse = StartPipelineResponses[keyof StartPipelineResponses];
403
595
  export type UpdatePipelineData = {
404
596
  body?: ProcessingOptions;
405
597
  path: {
@@ -417,6 +609,10 @@ export type UpdatePipelineErrors = {
417
609
  * The resource is protected and requires an authentication token
418
610
  */
419
611
  401: unknown;
612
+ /**
613
+ * Conflict
614
+ */
615
+ 409: PipelineConflictProblemDetails;
420
616
  };
421
617
  export type UpdatePipelineError = UpdatePipelineErrors[keyof UpdatePipelineErrors];
422
618
  export type UpdatePipelineResponses = {
@@ -1,4 +1,20 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
+ export var PipelineRunRejectedReason;
3
+ (function (PipelineRunRejectedReason) {
4
+ PipelineRunRejectedReason["NOT_FOUND"] = "NotFound";
5
+ PipelineRunRejectedReason["ALREADY_RUNNING"] = "AlreadyRunning";
6
+ PipelineRunRejectedReason["INVALID"] = "Invalid";
7
+ })(PipelineRunRejectedReason || (PipelineRunRejectedReason = {}));
8
+ export var PipelineRunState;
9
+ (function (PipelineRunState) {
10
+ PipelineRunState["QUEUED"] = "Queued";
11
+ PipelineRunState["RUNNING"] = "Running";
12
+ PipelineRunState["SCHEDULED"] = "Scheduled";
13
+ PipelineRunState["WAITING"] = "Waiting";
14
+ PipelineRunState["COMPLETED"] = "Completed";
15
+ PipelineRunState["FAILED"] = "Failed";
16
+ PipelineRunState["CANCELLED"] = "Cancelled";
17
+ })(PipelineRunState || (PipelineRunState = {}));
2
18
  export var PipelineStatus;
3
19
  (function (PipelineStatus) {
4
20
  PipelineStatus["NOT_STARTED"] = "NotStarted";
@@ -8,6 +24,7 @@ export var PipelineStatus;
8
24
  PipelineStatus["SCHEDULED"] = "Scheduled";
9
25
  PipelineStatus["COMPLETED"] = "Completed";
10
26
  PipelineStatus["FAILED"] = "Failed";
27
+ PipelineStatus["CANCELLED"] = "Cancelled";
11
28
  })(PipelineStatus || (PipelineStatus = {}));
12
29
  export var StepStatus;
13
30
  (function (StepStatus) {
@@ -13,6 +13,32 @@ declare const _default: {
13
13
  method: string;
14
14
  stack: string;
15
15
  };
16
+ jumooProcConflict: {
17
+ headline: string;
18
+ message: string;
19
+ headlineRunning: string;
20
+ messageRunning: string;
21
+ headlineQueued: string;
22
+ messageQueued: string;
23
+ headlineWaiting: string;
24
+ messageWaiting: string;
25
+ headlineScheduled: string;
26
+ messageScheduled: string;
27
+ status: string;
28
+ startedBy: string;
29
+ queued: string;
30
+ lastActivity: string;
31
+ waitingSince: string;
32
+ scheduledFor: string;
33
+ progress: string;
34
+ stateQueued: string;
35
+ stateRunning: string;
36
+ stateScheduled: string;
37
+ stateWaiting: string;
38
+ stateCompleted: string;
39
+ stateFailed: string;
40
+ stateCancelled: string;
41
+ };
16
42
  jumooProcBackground: {
17
43
  completed: string;
18
44
  error: string;
@@ -13,6 +13,32 @@ export default {
13
13
  method: 'Method',
14
14
  stack: 'Stack',
15
15
  },
16
+ jumooProcConflict: {
17
+ headline: 'Already in progress',
18
+ message: 'Another process is already in progress for this target. Wait for it to finish, or cancel it, then try again.',
19
+ headlineRunning: 'Already running',
20
+ messageRunning: 'Another process is already running for this target. Wait for it to finish, or cancel it, then try again.',
21
+ headlineQueued: 'Already queued',
22
+ messageQueued: 'Another process for this target is queued and will start shortly. Wait for it to finish, or cancel it, then try again.',
23
+ headlineWaiting: 'Waiting to continue',
24
+ messageWaiting: 'Another process for this target is paused and waiting to continue. Finish or cancel it, then try again.',
25
+ headlineScheduled: 'Already scheduled',
26
+ messageScheduled: 'Another process for this target is scheduled. Cancel it, or wait for it to run, then try again.',
27
+ status: 'Status',
28
+ startedBy: 'Started by',
29
+ queued: 'Queued',
30
+ lastActivity: 'Last activity',
31
+ waitingSince: 'Waiting since',
32
+ scheduledFor: 'Scheduled for',
33
+ progress: 'Progress',
34
+ stateQueued: 'Queued',
35
+ stateRunning: 'Running',
36
+ stateScheduled: 'Scheduled',
37
+ stateWaiting: 'Waiting',
38
+ stateCompleted: 'Completed',
39
+ stateFailed: 'Failed',
40
+ stateCancelled: 'Cancelled',
41
+ },
16
42
  jumooProcBackground: {
17
43
  completed: 'This process has completed in the background',
18
44
  error: 'This process has errored in the background',
@@ -13,41 +13,42 @@ let JumooPipelineBackgroundElement = class JumooPipelineBackgroundElement extend
13
13
  case PipelineStatus.COMPLETED:
14
14
  return this.renderComplete();
15
15
  case PipelineStatus.FAILED:
16
+ case PipelineStatus.CANCELLED:
16
17
  return this.renderError();
17
18
  default:
18
19
  return html `${this.renderBackgroundBanner()} ${this.renderProgress()}`;
19
20
  }
20
21
  }
21
22
  renderBackgroundBanner() {
22
- return html `<uui-box class="banner">
23
- <umb-localize key="jumooProcBackground_running"></umb-localize>
23
+ return html `<uui-box class="banner">
24
+ <umb-localize key="jumooProcBackground_running"></umb-localize>
24
25
  </uui-box>`;
25
26
  }
26
27
  renderProgress() {
27
- return html `<jumoo-pipeline-progress
28
- .progress=${this.state?.progress}
28
+ return html `<jumoo-pipeline-progress
29
+ .progress=${this.state?.progress}
29
30
  .message=${this.message}></jumoo-pipeline-progress>`;
30
31
  }
31
32
  renderComplete() {
32
33
  return !this.background?.completedElement
33
- ? html `<uui-box
34
- ><umb-localize key="jumooProcBackground_completed"></umb-localize
35
- ></uui-box>
34
+ ? html `<uui-box
35
+ ><umb-localize key="jumooProcBackground_completed"></umb-localize
36
+ ></uui-box>
36
37
  <pre>${JSON.stringify(this.state, null, 1)}</pre>`
37
38
  : html `${this.renderElement(this.background.completedElement)}`;
38
39
  }
39
40
  renderError() {
40
41
  return !this.background?.failedElement
41
- ? html `<uui-box
42
- ><umb-localize key="jumooProcBackground_error"></umb-localize
43
- ></uui-box>
42
+ ? html `<uui-box
43
+ ><umb-localize key="jumooProcBackground_error"></umb-localize
44
+ ></uui-box>
44
45
  <pre>${JSON.stringify(this.state, null, 1)}</pre>`
45
46
  : html `${this.renderElement(this.background.failedElement)}`;
46
47
  }
47
48
  renderElement(element) {
48
- return html `<umb-extension-slot
49
- type="jumoo-process-step"
50
- .filter=${(ext) => ext.elementName === element}
49
+ return html `<umb-extension-slot
50
+ type="jumoo-process-step"
51
+ .filter=${(ext) => ext.elementName === element}
51
52
  .props=${{
52
53
  pipelineId: this.pipelineId,
53
54
  state: this.state,
@@ -55,16 +56,16 @@ let JumooPipelineBackgroundElement = class JumooPipelineBackgroundElement extend
55
56
  }}></umb-extension-slot>`;
56
57
  }
57
58
  };
58
- JumooPipelineBackgroundElement.styles = css `
59
- :host {
60
- display: flex;
61
- flex-direction: column;
62
- height: 100%;
63
- }
64
-
65
- .banner {
66
- background-color: var(--uui-color-current);
67
- }
59
+ JumooPipelineBackgroundElement.styles = css `
60
+ :host {
61
+ display: flex;
62
+ flex-direction: column;
63
+ height: 100%;
64
+ }
65
+
66
+ .banner {
67
+ background-color: var(--uui-color-current);
68
+ }
68
69
  `;
69
70
  __decorate([
70
71
  property({ type: String })
@@ -35,6 +35,7 @@ let JumooProcessingPipelineList = class JumooProcessingPipelineList extends UmbL
35
35
  PipelineStatus.RUNNING,
36
36
  PipelineStatus.COMPLETED,
37
37
  PipelineStatus.FAILED,
38
+ PipelineStatus.CANCELLED,
38
39
  ];
39
40
  this._modalPath = '';
40
41
  this.status = PipelineStatus.WAITING;
@@ -90,18 +91,18 @@ let JumooProcessingPipelineList = class JumooProcessingPipelineList extends UmbL
90
91
  await this.getPipelines();
91
92
  }
92
93
  render() {
93
- return html `<uui-box style="--uui-box-default-padding: 0;" .headline=${this.headline}>
94
- <div slot="header-actions">
95
- Status: ${this.renderDropdown()} ${this.renderRefresh()}
96
- </div>
97
- ${when(this.loading, () => html `<uui-loader-bar
98
- animationDuration="1.5"
99
- style="color: black"></uui-loader-bar>`, () => this.renderListPipelines())}
94
+ return html `<uui-box style="--uui-box-default-padding: 0;" .headline=${this.headline}>
95
+ <div slot="header-actions">
96
+ Status: ${this.renderDropdown()} ${this.renderRefresh()}
97
+ </div>
98
+ ${when(this.loading, () => html `<uui-loader-bar
99
+ animationDuration="1.5"
100
+ style="color: black"></uui-loader-bar>`, () => this.renderListPipelines())}
100
101
  </uui-box>`;
101
102
  }
102
103
  renderRefresh() {
103
- return html `<uui-button @click=${this.getPipelines} label="refresh" compact
104
- ><uui-icon name="icon-refresh"></uui-icon
104
+ return html `<uui-button @click=${this.getPipelines} label="refresh" compact
105
+ ><uui-icon name="icon-refresh"></uui-icon
105
106
  ></uui-button>`;
106
107
  }
107
108
  renderDropdown() {
@@ -114,38 +115,38 @@ let JumooProcessingPipelineList = class JumooProcessingPipelineList extends UmbL
114
115
  });
115
116
  return options.length <= 1
116
117
  ? html `${this.status}`
117
- : html `
118
- <uui-select
119
- .options=${options}
120
- @change=${this.onStatusChange}
121
- label="status"></uui-select>
118
+ : html `
119
+ <uui-select
120
+ .options=${options}
121
+ @change=${this.onStatusChange}
122
+ label="status"></uui-select>
122
123
  `;
123
124
  }
124
125
  renderListPipelines() {
125
126
  return !this.pipelines || this.pipelines.length === 0
126
127
  ? html `<div class="emtpy">Nothing with status ${this.status}</div>`
127
- : html `<jumoo-pipelines-table
128
- .pipelines=${this.pipelines}
129
- .hideDelete=${this.hideDelete}
130
- @view-pipeline=${this.onViewPipeline}
128
+ : html `<jumoo-pipelines-table
129
+ .pipelines=${this.pipelines}
130
+ .hideDelete=${this.hideDelete}
131
+ @view-pipeline=${this.onViewPipeline}
131
132
  @delete-pipeline=${this.onDeletePipeline}></jumoo-pipelines-table>`;
132
133
  }
133
134
  renderPipeline(pipeline) {
134
- return html `
135
- <div>${pipeline.alias}</div>
136
- <div>${pipeline.state.status}</div>
137
- <div>${pipeline.state.currentRequest?.action?.alias}</div>
135
+ return html `
136
+ <div>${pipeline.alias}</div>
137
+ <div>${pipeline.state.status}</div>
138
+ <div>${pipeline.state.currentRequest?.action?.alias}</div>
138
139
  `;
139
140
  }
140
141
  };
141
142
  _JumooProcessingPipelineList_pipelinesContext = new WeakMap();
142
143
  _JumooProcessingPipelineList_modalController = new WeakMap();
143
- JumooProcessingPipelineList.styles = css `
144
- .emtpy {
145
- display: flex;
146
- justify-content: center;
147
- padding: var(--uui-size-space-5);
148
- }
144
+ JumooProcessingPipelineList.styles = css `
145
+ .emtpy {
146
+ display: flex;
147
+ justify-content: center;
148
+ padding: var(--uui-size-space-5);
149
+ }
149
150
  `;
150
151
  __decorate([
151
152
  property({ type: String })