@jumoo/processing 17.4.2 → 17.4.3-prerelease.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.
@@ -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 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' }],
@@ -26,6 +26,68 @@ export type PipelineCreateRequest = {
26
26
  options?: ProcessingOptions | null;
27
27
  clientId?: string | null;
28
28
  };
29
+ export type PipelineRunError = {
30
+ message: string;
31
+ action?: string | null;
32
+ step?: string | null;
33
+ };
34
+ export type PipelineRunProgress = {
35
+ percentage: number;
36
+ action?: string | null;
37
+ step?: string | null;
38
+ page: number;
39
+ };
40
+ export type PipelineRunRejected = {
41
+ reason: PipelineRunRejectedReason;
42
+ message: string;
43
+ runningPipelineId?: string | null;
44
+ concurrencyKey?: string | null;
45
+ };
46
+ export declare enum PipelineRunRejectedReason {
47
+ NOT_FOUND = "NotFound",
48
+ ALREADY_RUNNING = "AlreadyRunning",
49
+ INVALID = "Invalid"
50
+ }
51
+ export type PipelineRunRequest = {
52
+ processor: string;
53
+ strategy: string;
54
+ options?: ProcessingOptions | null;
55
+ startAtUtc?: string | null;
56
+ clientId?: string | null;
57
+ };
58
+ export type PipelineRunStarted = {
59
+ pipelineId: string;
60
+ status: PipelineRunState;
61
+ statusUrl: string;
62
+ };
63
+ export declare enum PipelineRunState {
64
+ QUEUED = "Queued",
65
+ RUNNING = "Running",
66
+ SCHEDULED = "Scheduled",
67
+ WAITING = "Waiting",
68
+ COMPLETED = "Completed",
69
+ FAILED = "Failed",
70
+ CANCELLED = "Cancelled"
71
+ }
72
+ export type PipelineRunStatus = {
73
+ pipelineId: string;
74
+ processor: string;
75
+ strategy: string;
76
+ status: PipelineRunState;
77
+ complete: boolean;
78
+ succeeded: boolean;
79
+ cancelRequested: boolean;
80
+ progress: PipelineRunProgress;
81
+ startedBy?: string | null;
82
+ created?: string | null;
83
+ modified?: string | null;
84
+ scheduledFor?: string | null;
85
+ error?: PipelineRunError | null;
86
+ summary?: PipelineRunSummary | null;
87
+ };
88
+ export type PipelineRunSummary = {
89
+ [key: string]: unknown;
90
+ };
29
91
  export type PipelineState = {
30
92
  status: PipelineStatus;
31
93
  childPipeline?: string | null;
@@ -35,6 +97,11 @@ export type PipelineState = {
35
97
  schedule?: string | null;
36
98
  backgroundState?: PipelineBackgroundState | null;
37
99
  isChildPipeline: boolean;
100
+ cancelRequested: boolean;
101
+ concurrencyKey?: string | null;
102
+ userKey?: string | null;
103
+ created?: string | null;
104
+ modified?: string | null;
38
105
  };
39
106
  export declare enum PipelineStatus {
40
107
  NOT_STARTED = "NotStarted",
@@ -43,7 +110,8 @@ export declare enum PipelineStatus {
43
110
  WAITING = "Waiting",
44
111
  SCHEDULED = "Scheduled",
45
112
  COMPLETED = "Completed",
46
- FAILED = "Failed"
113
+ FAILED = "Failed",
114
+ CANCELLED = "Cancelled"
47
115
  }
48
116
  export type ProblemDetails = {
49
117
  type?: string | null;
@@ -146,6 +214,43 @@ export declare enum StepStatus {
146
214
  COMPLETE = "Complete",
147
215
  ERROR = "Error"
148
216
  }
217
+ export type CancelPipelineData = {
218
+ body?: never;
219
+ path: {
220
+ id: string;
221
+ };
222
+ query?: never;
223
+ url: '/umbraco/jumoo/api/v1/processing/CancelPipeline/{id}';
224
+ };
225
+ export type CancelPipelineErrors = {
226
+ /**
227
+ * Bad Request
228
+ */
229
+ 400: ProblemDetails;
230
+ /**
231
+ * The resource is protected and requires an authentication token
232
+ */
233
+ 401: unknown;
234
+ /**
235
+ * Forbidden
236
+ */
237
+ 403: ProblemDetails;
238
+ /**
239
+ * Not Found
240
+ */
241
+ 404: unknown;
242
+ /**
243
+ * Conflict
244
+ */
245
+ 409: ProblemDetails;
246
+ };
247
+ export type CancelPipelineError = CancelPipelineErrors[keyof CancelPipelineErrors];
248
+ export type CancelPipelineResponses = {
249
+ /**
250
+ * Accepted
251
+ */
252
+ 202: unknown;
253
+ };
149
254
  export type ClearPipelineData = {
150
255
  body?: never;
151
256
  path: {
@@ -340,6 +445,40 @@ export type ListPipelinesByStrategyResponses = {
340
445
  200: Array<Pipeline>;
341
446
  };
342
447
  export type ListPipelinesByStrategyResponse = ListPipelinesByStrategyResponses[keyof ListPipelinesByStrategyResponses];
448
+ export type PipelineStatusData = {
449
+ body?: never;
450
+ path: {
451
+ id: string;
452
+ };
453
+ query?: never;
454
+ url: '/umbraco/jumoo/api/v1/processing/PipelineStatus/{id}';
455
+ };
456
+ export type PipelineStatusErrors = {
457
+ /**
458
+ * Bad Request
459
+ */
460
+ 400: ProblemDetails;
461
+ /**
462
+ * The resource is protected and requires an authentication token
463
+ */
464
+ 401: unknown;
465
+ /**
466
+ * Forbidden
467
+ */
468
+ 403: ProblemDetails;
469
+ /**
470
+ * Not Found
471
+ */
472
+ 404: unknown;
473
+ };
474
+ export type PipelineStatusError = PipelineStatusErrors[keyof PipelineStatusErrors];
475
+ export type PipelineStatusResponses = {
476
+ /**
477
+ * OK
478
+ */
479
+ 200: PipelineRunStatus;
480
+ };
481
+ export type PipelineStatusResponse = PipelineStatusResponses[keyof PipelineStatusResponses];
343
482
  export type ProcessPipelineData = {
344
483
  body?: never;
345
484
  path: {
@@ -400,6 +539,38 @@ export type ReattachPipelineResponses = {
400
539
  200: Pipeline;
401
540
  };
402
541
  export type ReattachPipelineResponse = ReattachPipelineResponses[keyof ReattachPipelineResponses];
542
+ export type StartPipelineData = {
543
+ body?: PipelineRunRequest;
544
+ path?: never;
545
+ query?: never;
546
+ url: '/umbraco/jumoo/api/v1/processing/StartPipeline';
547
+ };
548
+ export type StartPipelineErrors = {
549
+ /**
550
+ * Bad Request
551
+ */
552
+ 400: ProblemDetails;
553
+ /**
554
+ * The resource is protected and requires an authentication token
555
+ */
556
+ 401: unknown;
557
+ /**
558
+ * Not Found
559
+ */
560
+ 404: PipelineRunRejected;
561
+ /**
562
+ * Conflict
563
+ */
564
+ 409: PipelineRunRejected;
565
+ };
566
+ export type StartPipelineError = StartPipelineErrors[keyof StartPipelineErrors];
567
+ export type StartPipelineResponses = {
568
+ /**
569
+ * Accepted
570
+ */
571
+ 202: PipelineRunStarted;
572
+ };
573
+ export type StartPipelineResponse = StartPipelineResponses[keyof StartPipelineResponses];
403
574
  export type UpdatePipelineData = {
404
575
  body?: ProcessingOptions;
405
576
  path: {
@@ -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,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 })
@@ -60,7 +60,7 @@ let JumooPipelinesTableElement = class JumooPipelinesTableElement extends UmbLit
60
60
  },
61
61
  {
62
62
  columnAlias: 'background',
63
- value: html `<umb-icon
63
+ value: html `<umb-icon
64
64
  .name=${when((pipeline.state.backgroundState?.isBackgroundRequest ?? false) == true, () => 'icon-check', () => 'icon-close')}></umb-icon>`,
65
65
  },
66
66
  {
@@ -77,33 +77,33 @@ let JumooPipelinesTableElement = class JumooPipelinesTableElement extends UmbLit
77
77
  };
78
78
  })
79
79
  .filter((item) => item !== undefined);
80
- return html `
81
- <umb-table
82
- .config=${this._tableConfig}
83
- .columns=${this.tableColumns}
84
- .items=${items}
85
- .filter=${this.filter}></umb-table>
80
+ return html `
81
+ <umb-table
82
+ .config=${this._tableConfig}
83
+ .columns=${this.tableColumns}
84
+ .items=${items}
85
+ .filter=${this.filter}></umb-table>
86
86
  `;
87
87
  }
88
88
  renderActions(pipeline) {
89
- return html `<uui-button-group
90
- ><uui-button
91
- .id=${pipeline.id}
92
- label="View"
93
- color="positive"
94
- look="outline"
95
- @click=${__classPrivateFieldGet(this, _JumooPipelinesTableElement_instances, "m", _JumooPipelinesTableElement_onViewPipeline)}
96
- >View</uui-button
97
- >
89
+ return html `<uui-button-group
90
+ ><uui-button
91
+ .id=${pipeline.id}
92
+ label="View"
93
+ color="positive"
94
+ look="outline"
95
+ @click=${__classPrivateFieldGet(this, _JumooPipelinesTableElement_instances, "m", _JumooPipelinesTableElement_onViewPipeline)}
96
+ >View</uui-button
97
+ >
98
98
  ${this.hideDelete
99
99
  ? ''
100
- : html `<uui-button
101
- label="Delete"
102
- color="danger"
103
- look="outline"
104
- @click=${() => __classPrivateFieldGet(this, _JumooPipelinesTableElement_instances, "m", _JumooPipelinesTableElement_onDeletePipeline).call(this, pipeline.id)}
105
- >Delete</uui-button
106
- >`}</uui-button-group
100
+ : html `<uui-button
101
+ label="Delete"
102
+ color="danger"
103
+ look="outline"
104
+ @click=${() => __classPrivateFieldGet(this, _JumooPipelinesTableElement_instances, "m", _JumooPipelinesTableElement_onDeletePipeline).call(this, pipeline.id)}
105
+ >Delete</uui-button
106
+ >`}</uui-button-group
107
107
  >`;
108
108
  }
109
109
  };
@@ -23,16 +23,16 @@ let JumooProcessingErrorElement = class JumooProcessingErrorElement extends UmbL
23
23
  return !this.error ? nothing : this.renderError(this.error);
24
24
  }
25
25
  renderError(error) {
26
- return html `<div class="error">
27
- <div class="header">
28
- <uui-icon name="icon-wrong"></uui-icon>
29
- <h3>${error.message}</h3>
30
- </div>
31
- <div class="more">
32
- <uui-button @click=${__classPrivateFieldGet(this, _JumooProcessingErrorElement_instances, "m", _JumooProcessingErrorElement_openErrorModal)} look="primary" color="danger"
33
- ><umb-localize key="jumooProcError_details"></umb-localize
34
- ></uui-button>
35
- </div>
26
+ return html `<div class="error">
27
+ <div class="header">
28
+ <uui-icon name="icon-wrong"></uui-icon>
29
+ <h3>${error.message}</h3>
30
+ </div>
31
+ <div class="more">
32
+ <uui-button @click=${__classPrivateFieldGet(this, _JumooProcessingErrorElement_instances, "m", _JumooProcessingErrorElement_openErrorModal)} look="primary" color="danger"
33
+ ><umb-localize key="jumooProcError_details"></umb-localize
34
+ ></uui-button>
35
+ </div>
36
36
  </div>`;
37
37
  }
38
38
  };
@@ -53,35 +53,35 @@ _JumooProcessingErrorElement_openErrorModal = async function _JumooProcessingErr
53
53
  });
54
54
  return result;
55
55
  };
56
- JumooProcessingErrorElement.styles = css `
57
- .error {
58
- padding: 0;
59
- background-color: var(--uui-color-danger);
60
- color: var(--uui-color-default-contrast);
61
- }
62
-
63
- .error .header {
64
- display: flex;
65
- gap: var(--uui-size-space-2);
66
- align-items: center;
67
- padding: var(--uui-size-space-2);
68
- border-bottom: 1px solid var(--uui-color-default-contrast);
69
- }
70
-
71
- h3 {
72
- padding: 0;
73
- margin: 0;
74
- overflow: auto;
75
- }
76
-
77
- uui-icon {
78
- font-size: var(--uui-type-h3-size);
79
- }
80
-
81
- .error .more {
82
- padding: var(--uui-size-space-3);
83
- text-align: right;
84
- }
56
+ JumooProcessingErrorElement.styles = css `
57
+ .error {
58
+ padding: 0;
59
+ background-color: var(--uui-color-danger);
60
+ color: var(--uui-color-default-contrast);
61
+ }
62
+
63
+ .error .header {
64
+ display: flex;
65
+ gap: var(--uui-size-space-2);
66
+ align-items: center;
67
+ padding: var(--uui-size-space-2);
68
+ border-bottom: 1px solid var(--uui-color-default-contrast);
69
+ }
70
+
71
+ h3 {
72
+ padding: 0;
73
+ margin: 0;
74
+ overflow: auto;
75
+ }
76
+
77
+ uui-icon {
78
+ font-size: var(--uui-type-h3-size);
79
+ }
80
+
81
+ .error .more {
82
+ padding: var(--uui-size-space-3);
83
+ text-align: right;
84
+ }
85
85
  `;
86
86
  __decorate([
87
87
  property({ type: Object })