@jumoo/processing 17.4.2 → 18.2.0

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 (43) hide show
  1. package/dist/api/client/client.gen.js +104 -123
  2. package/dist/api/client/index.d.ts +2 -0
  3. package/dist/api/client/types.gen.d.ts +6 -3
  4. package/dist/api/client/utils.gen.d.ts +8 -4
  5. package/dist/api/client/utils.gen.js +3 -3
  6. package/dist/api/client.gen.d.ts +2 -2
  7. package/dist/api/client.gen.js +1 -2
  8. package/dist/api/core/auth.gen.d.ts +7 -0
  9. package/dist/api/core/params.gen.d.ts +2 -2
  10. package/dist/api/core/params.gen.js +23 -14
  11. package/dist/api/core/queryKeySerializer.gen.d.ts +1 -1
  12. package/dist/api/core/serverSentEvents.gen.d.ts +1 -1
  13. package/dist/api/core/serverSentEvents.gen.js +3 -4
  14. package/dist/api/core/types.gen.d.ts +5 -0
  15. package/dist/api/index.d.ts +2 -3
  16. package/dist/api/index.js +1 -2
  17. package/dist/api/sdk.gen.d.ts +23 -27
  18. package/dist/api/sdk.gen.js +82 -114
  19. package/dist/api/types.gen.d.ts +113 -124
  20. package/dist/index.js +9 -1
  21. package/dist/pipeline/components/background.element.js +23 -23
  22. package/dist/pipeline/components/pipeline-list.element.js +28 -28
  23. package/dist/pipeline/components/pipeline-table.element.d.ts +2 -1
  24. package/dist/pipeline/components/pipeline-table.element.js +3 -1
  25. package/dist/pipeline/components/process-error.element.js +39 -39
  26. package/dist/pipeline/components/progress.element.js +122 -122
  27. package/dist/pipeline/components/progress.step.element.js +5 -5
  28. package/dist/pipeline/modal/errors/error-modal.element.js +87 -87
  29. package/dist/pipeline/modal/pipeline-modal.element.js +34 -34
  30. package/dist/pipeline/pipeline.context.d.ts +2 -2
  31. package/dist/pipeline/pipeline.context.js +1 -1
  32. package/dist/pipeline/pipeline.element.js +30 -30
  33. package/dist/pipeline/pipeline.repository.d.ts +8 -8
  34. package/dist/pipeline/pipeline.source.d.ts +72 -27
  35. package/dist/pipeline/pipeline.source.js +10 -10
  36. package/dist/pipeline/pipelines.context.d.ts +1 -1
  37. package/dist/pipeline/workspace/views/default-pipeline-view.js +18 -18
  38. package/dist/queue/components/queue-list.element.js +17 -17
  39. package/dist/queue/components/queue-table.element.js +15 -15
  40. package/dist/queue/queue.context.d.ts +1 -1
  41. package/dist/queue/queue.repository.d.ts +3 -3
  42. package/dist/queue/queue.repository.js +5 -5
  43. package/package.json +11 -10
@@ -20,65 +20,65 @@ let JumooProcessingErrorModal = class JumooProcessingErrorModal extends UmbModal
20
20
  }
21
21
  render() {
22
22
  const headline = __classPrivateFieldGet(this, _JumooProcessingErrorModal_instances, "m", _JumooProcessingErrorModal_truncate).call(this, 'Error: ' + this.data?.error.message, 75);
23
- return html `<umb-body-layout .headline=${headline}>
24
- <uui-box .headline=${this.localize.term('jumooProcError_headline')}>
25
- <h2>${this.data?.error.message}</h2>
26
- <div class="more-box">
27
- <div class="more">
28
- <div class="label">
29
- <umb-localize key="jumooProcError_source"></umb-localize>
30
- </div>
31
- <div class="detail">
32
- ${this.data?.error.strategy} / ${this.data?.error.source}
33
- </div>
34
- </div>
35
- <div class="more">
36
- <div class="label">
37
- <umb-localize key="jumooProcError_action"></umb-localize>
38
- </div>
39
- <div class="detail">${this.data?.error.action}</div>
40
- </div>
41
- <div class="more">
42
- <div class="label"></div>
43
- <div class="detail">
44
- ${this.data?.error.step}
45
- ${when(this.data?.error.subStep, () => html `(${this.data?.error.subStep})`)}
46
- </div>
47
- </div>
48
- <div class="more">
49
- <div class="label">
50
- <umb-localize key="jumooProcError_page"></umb-localize>
51
- </div>
52
- <div class="detail">${this.data?.error.page}</div>
53
- </div>
54
- <div class="more">
55
- <div class="label">
56
- <umb-localize key="jumooProcError_class"></umb-localize>
57
- </div>
58
- <div class="detail">${this.data?.error.className}</div>
59
- </div>
60
- <div class="more">
61
- <div class="label">
62
- <umb-localize key="jumooProcError_method"></umb-localize>
63
- </div>
64
- <div class="detail">${this.data?.error.methodName}</div>
65
- </div>
66
- <div class="more">
67
- <div class="label">
68
- <umb-localize key="jumooProcError_stack"></umb-localize>
69
- </div>
70
- <div class="detail fixed">${this.data?.error.stackTrace}</div>
71
- </div>
72
- </div>
73
- </uui-box>
74
-
75
- <div slot="actions">
76
- <uui-button
77
- @click=${__classPrivateFieldGet(this, _JumooProcessingErrorModal_instances, "m", _JumooProcessingErrorModal_onClose)}
78
- color="default"
79
- look="default"
80
- .label=${this.localize.term('general_close')}></uui-button>
81
- </div>
23
+ return html `<umb-body-layout .headline=${headline}>
24
+ <uui-box .headline=${this.localize.term('jumooProcError_headline')}>
25
+ <h2>${this.data?.error.message}</h2>
26
+ <div class="more-box">
27
+ <div class="more">
28
+ <div class="label">
29
+ <umb-localize key="jumooProcError_source"></umb-localize>
30
+ </div>
31
+ <div class="detail">
32
+ ${this.data?.error.strategy} / ${this.data?.error.source}
33
+ </div>
34
+ </div>
35
+ <div class="more">
36
+ <div class="label">
37
+ <umb-localize key="jumooProcError_action"></umb-localize>
38
+ </div>
39
+ <div class="detail">${this.data?.error.action}</div>
40
+ </div>
41
+ <div class="more">
42
+ <div class="label"></div>
43
+ <div class="detail">
44
+ ${this.data?.error.step}
45
+ ${when(this.data?.error.subStep, () => html `(${this.data?.error.subStep})`)}
46
+ </div>
47
+ </div>
48
+ <div class="more">
49
+ <div class="label">
50
+ <umb-localize key="jumooProcError_page"></umb-localize>
51
+ </div>
52
+ <div class="detail">${this.data?.error.page}</div>
53
+ </div>
54
+ <div class="more">
55
+ <div class="label">
56
+ <umb-localize key="jumooProcError_class"></umb-localize>
57
+ </div>
58
+ <div class="detail">${this.data?.error.className}</div>
59
+ </div>
60
+ <div class="more">
61
+ <div class="label">
62
+ <umb-localize key="jumooProcError_method"></umb-localize>
63
+ </div>
64
+ <div class="detail">${this.data?.error.methodName}</div>
65
+ </div>
66
+ <div class="more">
67
+ <div class="label">
68
+ <umb-localize key="jumooProcError_stack"></umb-localize>
69
+ </div>
70
+ <div class="detail fixed">${this.data?.error.stackTrace}</div>
71
+ </div>
72
+ </div>
73
+ </uui-box>
74
+
75
+ <div slot="actions">
76
+ <uui-button
77
+ @click=${__classPrivateFieldGet(this, _JumooProcessingErrorModal_instances, "m", _JumooProcessingErrorModal_onClose)}
78
+ color="default"
79
+ look="outline"
80
+ .label=${this.localize.term('general_close')}></uui-button>
81
+ </div>
82
82
  </umb-body-layout>`;
83
83
  }
84
84
  };
@@ -93,34 +93,34 @@ _JumooProcessingErrorModal_truncate = function _JumooProcessingErrorModal_trunca
93
93
  const charsToShow = length - separatorLength;
94
94
  return input.substring(0, charsToShow) + separator;
95
95
  };
96
- JumooProcessingErrorModal.styles = css `
97
- .more {
98
- display: flex;
99
- gap: var(--uui-size-space-4);
100
- margin-bottom: var(--uui-size-space-4);
101
- }
102
-
103
- h2 {
104
- overflow: auto;
105
- padding: var(--uui-size-space-2);
106
- background-color: var(--uui-color-danger);
107
- color: var(--uui-color-default-contrast);
108
- }
109
-
110
- .label {
111
- font-weight: bold;
112
- min-width: var(--uui-size-layout-5);
113
- text-align: right;
114
- }
115
-
116
- .label::after {
117
- content: ' :';
118
- }
119
-
120
- .more .fixed {
121
- overflow: overlay;
122
- font-family: monospace;
123
- }
96
+ JumooProcessingErrorModal.styles = css `
97
+ .more {
98
+ display: flex;
99
+ gap: var(--uui-size-space-4);
100
+ margin-bottom: var(--uui-size-space-4);
101
+ }
102
+
103
+ h2 {
104
+ overflow: auto;
105
+ padding: var(--uui-size-space-2);
106
+ background-color: var(--uui-color-danger);
107
+ color: var(--uui-color-default-contrast);
108
+ }
109
+
110
+ .label {
111
+ font-weight: bold;
112
+ min-width: var(--uui-size-layout-5);
113
+ text-align: right;
114
+ }
115
+
116
+ .label::after {
117
+ content: ' :';
118
+ }
119
+
120
+ .more .fixed {
121
+ overflow: overlay;
122
+ font-family: monospace;
123
+ }
124
124
  `;
125
125
  JumooProcessingErrorModal = __decorate([
126
126
  customElement(JUMOO_PROCESSING_ERROR_MODAL_ALIAS)
@@ -38,41 +38,41 @@ let uSyncProcessingModal = class uSyncProcessingModal extends UmbModalBaseElemen
38
38
  this.closeLabel = this.data?.closeLabel ?? 'Close';
39
39
  }
40
40
  render() {
41
- return html ` ${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_getDialogStyles).call(this)}
42
- <umb-body-layout id="jumoo-processing-modal">
43
- <div slot="header" id="header">
44
- <h3>${this.headline}</h3>
45
- ${this.data?.description}
46
- </div>
47
- ${this.renderProcess()}
48
- <div slot="actions">${this.renderActions()}</div>
41
+ return html ` ${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_getDialogStyles).call(this)}
42
+ <umb-body-layout id="jumoo-processing-modal">
43
+ <div slot="header" id="header">
44
+ <h3>${this.headline}</h3>
45
+ ${this.data?.description}
46
+ </div>
47
+ ${this.renderProcess()}
48
+ <div slot="actions">${this.renderActions()}</div>
49
49
  </umb-body-layout>`;
50
50
  }
51
51
  renderProcess() {
52
52
  if (!this.data)
53
53
  return;
54
- return html `<jumoo-pipeline
55
- .processor=${this.data.processor}
56
- .strategy=${this.data.strategy}
57
- .setup=${this.data.options}
58
- .debug=${this.data.debug ?? false}
59
- @pipeline-status=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onStatusChange)}
60
- @pipeline-valid=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onSetValid)}
61
- @pipeline-complete=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onComplete)}
54
+ return html `<jumoo-pipeline
55
+ .processor=${this.data.processor}
56
+ .strategy=${this.data.strategy}
57
+ .setup=${this.data.options}
58
+ .debug=${this.data.debug ?? false}
59
+ @pipeline-status=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onStatusChange)}
60
+ @pipeline-valid=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onSetValid)}
61
+ @pipeline-complete=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onComplete)}
62
62
  @pipeline-modal-update=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onUpdateModal)}></jumoo-pipeline>`;
63
63
  }
64
64
  renderActions() {
65
65
  const actionButton = this._status === PipelineStatus.WAITING && this._isValid && !this._isLastAction
66
- ? html `<uui-button
67
- @click=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onProcess)}
68
- color="positive"
69
- look="primary"
66
+ ? html `<uui-button
67
+ @click=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onProcess)}
68
+ color="positive"
69
+ look="primary"
70
70
  .label=${this.progressLabel}></uui-button>`
71
71
  : nothing;
72
- const closeButton = html `<uui-button
73
- @click=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onClose)}
74
- color="default"
75
- look="default"
72
+ const closeButton = html `<uui-button
73
+ @click=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onClose)}
74
+ color="default"
75
+ look="outline"
76
76
  label=${this.closeLabel}></uui-button>`;
77
77
  return html `${closeButton} ${actionButton}`;
78
78
  }
@@ -110,18 +110,18 @@ _uSyncProcessingModal_onProcess = function _uSyncProcessingModal_onProcess() {
110
110
  };
111
111
  _uSyncProcessingModal_getDialogStyles = function _uSyncProcessingModal_getDialogStyles() {
112
112
  const width = (this.data?.width ?? this.modalType === 'dialog') ? 600 : 0;
113
- return html `<style>
114
- #jumoo-processing-modal {
115
- min-width: ${width > 0 ? width + 'px' : 'auto'};
116
- min-height: ${this.data?.height ? this.data.height + 'px' : 'auto'};
117
- }
113
+ return html `<style>
114
+ #jumoo-processing-modal {
115
+ min-width: ${width > 0 ? width + 'px' : 'auto'};
116
+ min-height: ${this.data?.height ? this.data.height + 'px' : 'auto'};
117
+ }
118
118
  </style>`;
119
119
  };
120
- uSyncProcessingModal.styles = css `
121
- #header h3 {
122
- display: block;
123
- margin: 0;
124
- }
120
+ uSyncProcessingModal.styles = css `
121
+ #header h3 {
122
+ display: block;
123
+ margin: 0;
124
+ }
125
125
  `;
126
126
  __decorate([
127
127
  state()
@@ -18,8 +18,8 @@ export declare class PipelineContext extends UmbControllerBase {
18
18
  private isState;
19
19
  createPipeline(processor: string, strategy: string, options: ProcessingOptions | undefined): Promise<void>;
20
20
  loadPipeline(id: string): Promise<void>;
21
- getPipeline(id: string): Promise<import("@jumoo/processing").Pipeline>;
22
- fetchPipeline(id: string): Promise<import("@jumoo/processing").Pipeline>;
21
+ getPipeline(id: string): Promise<import("@jumoo/processing").Pipeline | undefined>;
22
+ fetchPipeline(id: string): Promise<import("@jumoo/processing").Pipeline | undefined>;
23
23
  process(): Promise<import("@jumoo/processing").Pipeline | undefined>;
24
24
  updateOptions(options: ProcessingOptions): Promise<void>;
25
25
  setOption(value: Record<string, unknown>): Promise<void>;
@@ -194,7 +194,7 @@ export class PipelineContext extends UmbControllerBase {
194
194
  __classPrivateFieldGet(this, _PipelineContext_trigger, "f").setValue(false);
195
195
  }
196
196
  async triggerClose() {
197
- if (__classPrivateFieldGet(this, _PipelineContext_state, "f").value?.progress.isLastAction === true ||
197
+ if (__classPrivateFieldGet(this, _PipelineContext_state, "f").value?.progress?.isLastAction === true ||
198
198
  __classPrivateFieldGet(this, _PipelineContext_state, "f").value?.backgroundState?.isBackgroundRequest !== true) {
199
199
  await this.clearPipeline();
200
200
  }
@@ -53,11 +53,11 @@ let JumooPipelineElement = class JumooPipelineElement extends UmbLitElement {
53
53
  composed: true,
54
54
  detail: {
55
55
  status: this.state?.status,
56
- isLastAction: this.state?.progress.isLastAction,
56
+ isLastAction: this.state?.progress?.isLastAction,
57
57
  },
58
58
  }));
59
59
  }
60
- if (this.state?.progress.isLastAction === true) {
60
+ if (this.state?.progress?.isLastAction === true) {
61
61
  this.onLastAction();
62
62
  }
63
63
  });
@@ -89,9 +89,9 @@ let JumooPipelineElement = class JumooPipelineElement extends UmbLitElement {
89
89
  let result;
90
90
  do {
91
91
  result = await this.context?.process();
92
- } while (result?.state.status == PipelineStatus.RUNNING);
92
+ } while (result?.state?.status == PipelineStatus.RUNNING);
93
93
  // either complete, or waiting for user.
94
- switch (result?.state.status) {
94
+ switch (result?.state?.status) {
95
95
  case PipelineStatus.COMPLETED:
96
96
  this.onComplete();
97
97
  break;
@@ -164,11 +164,11 @@ let JumooPipelineElement = class JumooPipelineElement extends UmbLitElement {
164
164
  }
165
165
  renderBackground() {
166
166
  return !this.state?.backgroundState?.backgroundElement
167
- ? html `<jumoo-pipeline-background
168
- .message=${this.message}
169
- .state=${this.backgroundState ?? this.state}
170
- .pipelineId=${this._pipelineId}
171
- .background=${this.state?.backgroundState}
167
+ ? html `<jumoo-pipeline-background
168
+ .message=${this.message}
169
+ .state=${this.backgroundState ?? this.state}
170
+ .pipelineId=${this._pipelineId}
171
+ .background=${this.state?.backgroundState}
172
172
  .options=${this.options}></jumoo-pipeline-background>`
173
173
  : this.renderElement(this.state?.backgroundState?.backgroundElement);
174
174
  }
@@ -177,48 +177,48 @@ let JumooPipelineElement = class JumooPipelineElement extends UmbLitElement {
177
177
  ? !this.state?.currentRequest?.action?.element
178
178
  ? html `<div>complete</div>`
179
179
  : this.renderElement(this.state?.currentRequest?.action?.element)
180
- : html `<jumoo-pipeline-background
181
- .message=${this.message}
182
- .state=${this.backgroundState ?? this.state}
183
- .pipelineId=${this._pipelineId}
184
- .background=${this.state?.backgroundState}
180
+ : html `<jumoo-pipeline-background
181
+ .message=${this.message}
182
+ .state=${this.backgroundState ?? this.state}
183
+ .pipelineId=${this._pipelineId}
184
+ .background=${this.state?.backgroundState}
185
185
  .options=${this.options}></jumoo-pipeline-background>`;
186
186
  }
187
187
  renderSteps() {
188
188
  if (!this.state?.progress)
189
189
  return nothing;
190
- return html `<jumoo-pipeline-progress
191
- .progress=${this.state?.progress}
190
+ return html `<jumoo-pipeline-progress
191
+ .progress=${this.state?.progress}
192
192
  .message=${this.message}></jumoo-pipeline-progress>`;
193
193
  }
194
194
  renderElement(element) {
195
195
  return !element
196
196
  ? nothing
197
- : html `
198
- <div class="wrapper">
199
- <umb-extension-slot
200
- type="jumoo-process-step"
201
- .filter=${(ext) => ext.elementName === element}
197
+ : html `
198
+ <div class="wrapper">
199
+ <umb-extension-slot
200
+ type="jumoo-process-step"
201
+ .filter=${(ext) => ext.elementName === element}
202
202
  .props=${{
203
203
  pipelineId: this._pipelineId,
204
204
  state: this.state,
205
205
  options: this.options,
206
206
  results: this.results,
207
- }}></umb-extension-slot>
208
- </div>
207
+ }}></umb-extension-slot>
208
+ </div>
209
209
  `;
210
210
  }
211
211
  renderFail() {
212
- return html `
213
- <jumoo-processing-error .error=${this.results?.error}></jumoo-processing-error>
212
+ return html `
213
+ <jumoo-processing-error .error=${this.results?.error}></jumoo-processing-error>
214
214
  `;
215
215
  }
216
216
  };
217
- JumooPipelineElement.styles = css `
218
- .wrapper,
219
- umb-extension-slot {
220
- height: 100%;
221
- }
217
+ JumooPipelineElement.styles = css `
218
+ .wrapper,
219
+ umb-extension-slot {
220
+ height: 100%;
221
+ }
222
222
  `;
223
223
  __decorate([
224
224
  property({ type: String })
@@ -8,13 +8,13 @@ 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 | undefined>;
12
+ reattach(id: string, clientId: string | null): Promise<import("@jumoo/processing").Pipeline | undefined>;
13
+ update(id: string, body: any): Promise<import("@jumoo/processing").ProcessingOptionsResults | undefined>;
14
+ getProcessors(): Promise<string[] | undefined>;
15
+ Get(id: string): Promise<import("@jumoo/processing").Pipeline | undefined>;
16
+ create(processor: string, strategy: string, options: ProcessingOptions | undefined): Promise<string | undefined>;
17
17
  complete(id: string): Promise<void>;
18
- getResults(id: string): Promise<import("@jumoo/processing").ProcessingResults>;
19
- listPipelines(status: PipelineStatus): Promise<import("@jumoo/processing").Pipeline[]>;
18
+ getResults(id: string): Promise<import("@jumoo/processing").ProcessingResults | undefined>;
19
+ listPipelines(status: PipelineStatus): Promise<import("@jumoo/processing").Pipeline[] | undefined>;
20
20
  }
@@ -3,10 +3,15 @@ import { PipelineStatus } from '../api';
3
3
  export declare class PipelineSource {
4
4
  private readonly host;
5
5
  constructor(host: UmbControllerHost);
6
- process(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
6
+ process(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
7
7
  data: import("..").Pipeline;
8
- request: Request;
9
- response: Response;
8
+ error: undefined;
9
+ } | {
10
+ data: undefined;
11
+ error: unknown;
12
+ }) & {
13
+ request?: Request;
14
+ response?: Response;
10
15
  }>>;
11
16
  /**
12
17
  * @description re-registers a client id against a pipeline already running in the
@@ -14,63 +19,103 @@ export declare class PipelineSource {
14
19
  * returns the full, current pipeline so the caller can resync rather than trust whatever it
15
20
  * last saw down the old, now-dead connection.
16
21
  */
17
- reattach(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
22
+ reattach(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
18
23
  data: import("..").Pipeline;
19
- request: Request;
20
- response: Response;
24
+ error: undefined;
25
+ } | {
26
+ data: undefined;
27
+ error: unknown;
28
+ }) & {
29
+ request?: Request;
30
+ response?: Response;
21
31
  }>>;
22
- update(id: string, body: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
32
+ update(id: string, body: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
23
33
  data: import("..").ProcessingOptionsResults;
24
- request: Request;
25
- response: Response;
34
+ error: undefined;
35
+ } | {
36
+ data: undefined;
37
+ error: unknown;
38
+ }) & {
39
+ request?: Request;
40
+ response?: Response;
26
41
  }>>;
27
- getProcessors(): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
42
+ getProcessors(): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
28
43
  data: string[];
29
- request: Request;
30
- response: Response;
44
+ error: undefined;
45
+ } | {
46
+ data: undefined;
47
+ error: unknown;
48
+ }) & {
49
+ request?: Request;
50
+ response?: Response;
31
51
  }>>;
32
52
  /**
33
53
  *
34
54
  * @param id guid id of the pipeline to retrieve
35
55
  * @returns pipeline
36
56
  */
37
- Get(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
57
+ Get(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
38
58
  data: import("..").Pipeline;
39
- request: Request;
40
- response: Response;
59
+ error: undefined;
60
+ } | {
61
+ data: undefined;
62
+ error: unknown;
63
+ }) & {
64
+ request?: Request;
65
+ response?: Response;
41
66
  }>>;
42
67
  /**
43
68
  *
44
69
  * @param strategy alias of the strategy to use for the pipeline
45
70
  * @returns
46
71
  */
47
- create(processor: string, strategy: string, options: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
72
+ create(processor: string, strategy: string, options: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
48
73
  data: string;
49
- request: Request;
50
- response: Response;
74
+ error: undefined;
75
+ } | {
76
+ data: undefined;
77
+ error: unknown;
78
+ }) & {
79
+ request?: Request;
80
+ response?: Response;
51
81
  }>>;
52
82
  /**
53
83
  *
54
84
  * @param id guid id of the pipeline to remove
55
85
  * @returns nothing.
56
86
  */
57
- clear(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
87
+ clear(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
58
88
  data: unknown;
59
- request: Request;
60
- response: Response;
89
+ error: undefined;
90
+ } | {
91
+ data: undefined;
92
+ error: unknown;
93
+ }) & {
94
+ request?: Request;
95
+ response?: Response;
61
96
  }>>;
62
97
  /**
63
98
  * @param id guid id of the pipeline to retrieve results for
64
99
  * @returns results (if there are any) for the pipeline
65
100
  */
66
- getResults(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
101
+ getResults(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
67
102
  data: import("..").ProcessingResults;
68
- request: Request;
69
- response: Response;
103
+ error: undefined;
104
+ } | {
105
+ data: undefined;
106
+ error: unknown;
107
+ }) & {
108
+ request?: Request;
109
+ response?: Response;
70
110
  }>>;
71
- listPiplelines(status: PipelineStatus): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
111
+ listPiplelines(status: PipelineStatus): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
72
112
  data: import("..").Pipeline[];
73
- request: Request;
74
- response: Response;
113
+ error: undefined;
114
+ } | {
115
+ data: undefined;
116
+ error: unknown;
117
+ }) & {
118
+ request?: Request;
119
+ response?: Response;
75
120
  }>>;
76
121
  }