@jumoo/processing 17.5.0 → 18.3.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 (39) 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 +26 -30
  18. package/dist/api/sdk.gen.js +103 -141
  19. package/dist/api/types.gen.d.ts +292 -168
  20. package/dist/api/types.gen.js +1 -0
  21. package/dist/index.js +9 -1
  22. package/dist/pipeline/components/pipeline-table.element.d.ts +2 -1
  23. package/dist/pipeline/components/pipeline-table.element.js +3 -1
  24. package/dist/pipeline/modal/errors/error-modal.element.js +1 -1
  25. package/dist/pipeline/modal/pipeline-modal.element.js +1 -1
  26. package/dist/pipeline/pipeline.context.d.ts +2 -2
  27. package/dist/pipeline/pipeline.context.js +1 -1
  28. package/dist/pipeline/pipeline.element.js +4 -4
  29. package/dist/pipeline/pipeline.repository.d.ts +33 -18
  30. package/dist/pipeline/pipeline.source.d.ts +80 -30
  31. package/dist/pipeline/pipeline.source.js +11 -11
  32. package/dist/pipeline/pipelines.context.d.ts +1 -1
  33. package/dist/pipeline/workspace/views/default-pipeline-view.js +1 -1
  34. package/dist/queue/queue.context.d.ts +1 -1
  35. package/dist/queue/queue.repository.d.ts +3 -3
  36. package/dist/queue/queue.repository.js +5 -5
  37. package/package.json +9 -8
  38. package/dist/hey-api.d.ts +0 -11
  39. package/dist/hey-api.js +0 -14
@@ -4,6 +4,7 @@ export var PipelineRunRejectedReason;
4
4
  PipelineRunRejectedReason["NOT_FOUND"] = "NotFound";
5
5
  PipelineRunRejectedReason["ALREADY_RUNNING"] = "AlreadyRunning";
6
6
  PipelineRunRejectedReason["INVALID"] = "Invalid";
7
+ PipelineRunRejectedReason["NOT_WAITING"] = "NotWaiting";
7
8
  })(PipelineRunRejectedReason || (PipelineRunRejectedReason = {}));
8
9
  export var PipelineRunState;
9
10
  (function (PipelineRunState) {
package/dist/index.js CHANGED
@@ -6,7 +6,15 @@ import './api/index.js';
6
6
  import { manifests as modals } from './pipeline/modal/manifest.js';
7
7
  import { manifests as pipelines } from './pipeline/workspace/manifest.js';
8
8
  import { manifests as localizations } from './lang/manifest.js';
9
+ import { UMB_AUTH_CONTEXT } from '@umbraco-cms/backoffice/auth';
10
+ import { client } from './api/client.gen.js';
9
11
  export * from './exports.js';
10
- export const onInit = (_host, extensions) => {
12
+ export const onInit = async (host, extensions) => {
11
13
  extensions.registerMany([...modals, ...pipelines, ...localizations]);
14
+ const authContext = await host.getContext(UMB_AUTH_CONTEXT);
15
+ if (!authContext) {
16
+ console.warn('UMB_AUTH_CONTEXT not available — extension API client will not be authenticated');
17
+ return;
18
+ }
19
+ authContext.configureClient(client);
12
20
  };
@@ -1,5 +1,6 @@
1
1
  import { Pipeline } from '@jumoo/processing';
2
2
  import { UmbTableColumn, UmbTableConfig } from '@umbraco-cms/backoffice/components';
3
+ import { nothing } from '@umbraco-cms/backoffice/external/lit';
3
4
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
4
5
  export declare class JumooPipelinesTableElement extends UmbLitElement {
5
6
  #private;
@@ -9,7 +10,7 @@ export declare class JumooPipelinesTableElement extends UmbLitElement {
9
10
  tableColumns: UmbTableColumn[];
10
11
  filter: any;
11
12
  render(): import("lit-html").TemplateResult<1>;
12
- renderActions(pipeline: Pipeline): import("lit-html").TemplateResult<1>;
13
+ renderActions(pipeline: Pipeline): typeof nothing | import("lit-html").TemplateResult<1>;
13
14
  }
14
15
  export default JumooPipelinesTableElement;
15
16
  declare global {
@@ -11,7 +11,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
11
11
  };
12
12
  var _JumooPipelinesTableElement_instances, _JumooPipelinesTableElement_onViewPipeline, _JumooPipelinesTableElement_onDeletePipeline;
13
13
  import { ProcessingTimeOptions } from '@jumoo/processing';
14
- import { customElement, html, property, state, when, } from '@umbraco-cms/backoffice/external/lit';
14
+ import { customElement, html, nothing, property, state, when, } from '@umbraco-cms/backoffice/external/lit';
15
15
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
16
16
  let JumooPipelinesTableElement = class JumooPipelinesTableElement extends UmbLitElement {
17
17
  constructor() {
@@ -86,6 +86,8 @@ let JumooPipelinesTableElement = class JumooPipelinesTableElement extends UmbLit
86
86
  `;
87
87
  }
88
88
  renderActions(pipeline) {
89
+ if (!pipeline.id)
90
+ return nothing;
89
91
  return html `<uui-button-group
90
92
  ><uui-button
91
93
  .id=${pipeline.id}
@@ -76,7 +76,7 @@ let JumooProcessingErrorModal = class JumooProcessingErrorModal extends UmbModal
76
76
  <uui-button
77
77
  @click=${__classPrivateFieldGet(this, _JumooProcessingErrorModal_instances, "m", _JumooProcessingErrorModal_onClose)}
78
78
  color="default"
79
- look="default"
79
+ look="outline"
80
80
  .label=${this.localize.term('general_close')}></uui-button>
81
81
  </div>
82
82
  </umb-body-layout>`;
@@ -72,7 +72,7 @@ let uSyncProcessingModal = class uSyncProcessingModal extends UmbModalBaseElemen
72
72
  const closeButton = html `<uui-button
73
73
  @click=${__classPrivateFieldGet(this, _uSyncProcessingModal_instances, "m", _uSyncProcessingModal_onClose)}
74
74
  color="default"
75
- look="default"
75
+ look="outline"
76
76
  label=${this.closeLabel}></uui-button>`;
77
77
  return html `${closeButton} ${actionButton}`;
78
78
  }
@@ -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 | undefined>;
27
+ fetchPipeline(id: string): Promise<import("@jumoo/processing").Pipeline | undefined>;
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>;
@@ -213,7 +213,7 @@ export class PipelineContext extends UmbControllerBase {
213
213
  __classPrivateFieldGet(this, _PipelineContext_trigger, "f").setValue(false);
214
214
  }
215
215
  async triggerClose() {
216
- if (__classPrivateFieldGet(this, _PipelineContext_state, "f").value?.progress.isLastAction === true ||
216
+ if (__classPrivateFieldGet(this, _PipelineContext_state, "f").value?.progress?.isLastAction === true ||
217
217
  __classPrivateFieldGet(this, _PipelineContext_state, "f").value?.backgroundState?.isBackgroundRequest !== true) {
218
218
  await this.clearPipeline();
219
219
  }
@@ -73,11 +73,11 @@ let JumooPipelineElement = class JumooPipelineElement extends UmbLitElement {
73
73
  composed: true,
74
74
  detail: {
75
75
  status: this.state?.status,
76
- isLastAction: this.state?.progress.isLastAction,
76
+ isLastAction: this.state?.progress?.isLastAction,
77
77
  },
78
78
  }));
79
79
  }
80
- if (this.state?.progress.isLastAction === true) {
80
+ if (this.state?.progress?.isLastAction === true) {
81
81
  this.onLastAction();
82
82
  }
83
83
  });
@@ -120,9 +120,9 @@ let JumooPipelineElement = class JumooPipelineElement extends UmbLitElement {
120
120
  let result;
121
121
  do {
122
122
  result = await this.context?.process();
123
- } while (result?.state.status == PipelineStatus.RUNNING);
123
+ } while (result?.state?.status == PipelineStatus.RUNNING);
124
124
  // either complete, or waiting for user.
125
- switch (result?.state.status) {
125
+ switch (result?.state?.status) {
126
126
  case PipelineStatus.COMPLETED:
127
127
  this.onComplete();
128
128
  break;
@@ -8,39 +8,54 @@ 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
  /**
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
- request: Request;
24
- response: Response;
23
+ error: undefined;
24
+ } | {
25
+ data: undefined;
26
+ error: unknown;
27
+ }) & {
28
+ request?: Request;
29
+ response?: Response;
25
30
  }>>;
26
31
  /**
27
32
  * @description process, returning the whole response - see tryCreate.
28
33
  */
29
- tryProcess(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
34
+ tryProcess(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
30
35
  data: import("@jumoo/processing").Pipeline;
31
- request: Request;
32
- response: Response;
36
+ error: undefined;
37
+ } | {
38
+ data: undefined;
39
+ error: unknown;
40
+ }) & {
41
+ request?: Request;
42
+ response?: Response;
33
43
  }>>;
34
44
  /**
35
45
  * @description update, returning the whole response - see tryCreate.
36
46
  */
37
- tryUpdate(id: string, body: ProcessingOptions | undefined): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
47
+ tryUpdate(id: string, body: ProcessingOptions | undefined): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
38
48
  data: import("@jumoo/processing").ProcessingOptionsResults;
39
- request: Request;
40
- response: Response;
49
+ error: undefined;
50
+ } | {
51
+ data: undefined;
52
+ error: unknown;
53
+ }) & {
54
+ request?: Request;
55
+ response?: Response;
41
56
  }>>;
42
- getRunStatus(id: string): Promise<import("@jumoo/processing").PipelineRunStatus>;
57
+ getRunStatus(id: string): Promise<import("@jumoo/processing").PipelineRunStatus | undefined>;
43
58
  complete(id: string): Promise<void>;
44
- getResults(id: string): Promise<import("@jumoo/processing").ProcessingResults>;
45
- listPipelines(status: PipelineStatus): Promise<import("@jumoo/processing").Pipeline[]>;
59
+ getResults(id: string): Promise<import("@jumoo/processing").ProcessingResults | undefined>;
60
+ listPipelines(status: PipelineStatus): Promise<import("@jumoo/processing").Pipeline[] | undefined>;
46
61
  }
@@ -7,10 +7,15 @@ 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
- request: Request;
13
- response: Response;
12
+ error: undefined;
13
+ } | {
14
+ data: undefined;
15
+ error: unknown;
16
+ }) & {
17
+ request?: Request;
18
+ response?: Response;
14
19
  }>>;
15
20
  /**
16
21
  * @description re-registers a client id against a pipeline already running in the
@@ -18,34 +23,54 @@ export declare class PipelineSource {
18
23
  * returns the full, current pipeline so the caller can resync rather than trust whatever it
19
24
  * last saw down the old, now-dead connection.
20
25
  */
21
- reattach(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
26
+ reattach(id: string, clientId: string | null): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
22
27
  data: import("..").Pipeline;
23
- request: Request;
24
- response: Response;
28
+ error: undefined;
29
+ } | {
30
+ data: undefined;
31
+ error: unknown;
32
+ }) & {
33
+ request?: Request;
34
+ response?: Response;
25
35
  }>>;
26
36
  /**
27
37
  * @description a 409 (the new options' concurrency key is held) is returned as the error
28
38
  * without a notification - see getPipelineConflict.
29
39
  */
30
- update(id: string, body: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
40
+ update(id: string, body: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
31
41
  data: import("..").ProcessingOptionsResults;
32
- request: Request;
33
- response: Response;
42
+ error: undefined;
43
+ } | {
44
+ data: undefined;
45
+ error: unknown;
46
+ }) & {
47
+ request?: Request;
48
+ response?: Response;
34
49
  }>>;
35
- getProcessors(): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
50
+ getProcessors(): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
36
51
  data: string[];
37
- request: Request;
38
- response: Response;
52
+ error: undefined;
53
+ } | {
54
+ data: undefined;
55
+ error: unknown;
56
+ }) & {
57
+ request?: Request;
58
+ response?: Response;
39
59
  }>>;
40
60
  /**
41
61
  *
42
62
  * @param id guid id of the pipeline to retrieve
43
63
  * @returns pipeline
44
64
  */
45
- Get(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
65
+ Get(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
46
66
  data: import("..").Pipeline;
47
- request: Request;
48
- response: Response;
67
+ error: undefined;
68
+ } | {
69
+ data: undefined;
70
+ error: unknown;
71
+ }) & {
72
+ request?: Request;
73
+ response?: Response;
49
74
  }>>;
50
75
  /**
51
76
  *
@@ -53,42 +78,67 @@ export declare class PipelineSource {
53
78
  * @returns the new pipeline's id. A 409 (another pipeline holds its concurrency key) is
54
79
  * returned as the error without a notification - see getPipelineConflict.
55
80
  */
56
- create(processor: string, strategy: string, options: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
81
+ create(processor: string, strategy: string, options: any): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
57
82
  data: string;
58
- request: Request;
59
- response: Response;
83
+ error: undefined;
84
+ } | {
85
+ data: undefined;
86
+ error: unknown;
87
+ }) & {
88
+ request?: Request;
89
+ response?: Response;
60
90
  }>>;
61
91
  /**
62
92
  *
63
93
  * @param id guid id of the pipeline to remove
64
94
  * @returns nothing.
65
95
  */
66
- clear(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
96
+ clear(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
67
97
  data: unknown;
68
- request: Request;
69
- response: Response;
98
+ error: undefined;
99
+ } | {
100
+ data: undefined;
101
+ error: unknown;
102
+ }) & {
103
+ request?: Request;
104
+ response?: Response;
70
105
  }>>;
71
106
  /**
72
107
  * @param id guid id of the pipeline to retrieve results for
73
108
  * @returns results (if there are any) for the pipeline
74
109
  */
75
- getResults(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
110
+ getResults(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
76
111
  data: import("..").ProcessingResults;
77
- request: Request;
78
- response: Response;
112
+ error: undefined;
113
+ } | {
114
+ data: undefined;
115
+ error: unknown;
116
+ }) & {
117
+ request?: Request;
118
+ response?: Response;
79
119
  }>>;
80
120
  /**
81
121
  * @param id guid id of the pipeline
82
122
  * @returns its run status, or an error (without a notification) if the user can't see it.
83
123
  */
84
- getRunStatus(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
124
+ getRunStatus(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
85
125
  data: import("..").PipelineRunStatus;
86
- request: Request;
87
- response: Response;
126
+ error: undefined;
127
+ } | {
128
+ data: undefined;
129
+ error: unknown;
130
+ }) & {
131
+ request?: Request;
132
+ response?: Response;
88
133
  }>>;
89
- listPiplelines(status: PipelineStatus): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
134
+ listPiplelines(status: PipelineStatus): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
90
135
  data: import("..").Pipeline[];
91
- request: Request;
92
- response: Response;
136
+ error: undefined;
137
+ } | {
138
+ data: undefined;
139
+ error: unknown;
140
+ }) & {
141
+ request?: Request;
142
+ response?: Response;
93
143
  }>>;
94
144
  }
@@ -1,5 +1,5 @@
1
1
  import { tryExecute } from '@umbraco-cms/backoffice/resources';
2
- import { PipelinesService } from '../api';
2
+ import { getProcessingGetPipelineById, getProcessingGetProcessors, getProcessingGetResultsById, getProcessingListPipelinesByStatus, getProcessingPipelineStatusById, postProcessingClearPipelineById, postProcessingCreatePipeline, postProcessingProcessPipelineById, postProcessingReattachPipelineById, postProcessingUpdatePipelineById, } from '../api';
3
3
  import { tryExecuteAllowingConflict } from './pipeline-conflict.js';
4
4
  export class PipelineSource {
5
5
  constructor(host) {
@@ -10,7 +10,7 @@ export class PipelineSource {
10
10
  * is returned as the error without a notification - see getPipelineConflict.
11
11
  */
12
12
  async process(id, clientId) {
13
- const result = await tryExecuteAllowingConflict(this.host, PipelinesService.processPipeline({
13
+ const result = await tryExecuteAllowingConflict(this.host, postProcessingProcessPipelineById({
14
14
  path: { id: id },
15
15
  query: { clientId: clientId ?? undefined },
16
16
  }));
@@ -23,7 +23,7 @@ export class PipelineSource {
23
23
  * last saw down the old, now-dead connection.
24
24
  */
25
25
  async reattach(id, clientId) {
26
- const result = await tryExecute(this.host, PipelinesService.reattachPipeline({
26
+ const result = await tryExecute(this.host, postProcessingReattachPipelineById({
27
27
  path: { id: id },
28
28
  query: { clientId: clientId ?? undefined },
29
29
  }));
@@ -34,13 +34,13 @@ export class PipelineSource {
34
34
  * without a notification - see getPipelineConflict.
35
35
  */
36
36
  async update(id, body) {
37
- return await tryExecuteAllowingConflict(this.host, PipelinesService.updatePipeline({
37
+ return await tryExecuteAllowingConflict(this.host, postProcessingUpdatePipelineById({
38
38
  path: { id: id },
39
39
  body: body,
40
40
  }));
41
41
  }
42
42
  async getProcessors() {
43
- return await tryExecute(this.host, PipelinesService.getProcessors());
43
+ return await tryExecute(this.host, getProcessingGetProcessors());
44
44
  }
45
45
  /**
46
46
  *
@@ -48,7 +48,7 @@ export class PipelineSource {
48
48
  * @returns pipeline
49
49
  */
50
50
  async Get(id) {
51
- return await tryExecute(this.host, PipelinesService.getPipeline({ path: { id: id } }));
51
+ return await tryExecute(this.host, getProcessingGetPipelineById({ path: { id: id } }));
52
52
  }
53
53
  /**
54
54
  *
@@ -57,7 +57,7 @@ export class PipelineSource {
57
57
  * returned as the error without a notification - see getPipelineConflict.
58
58
  */
59
59
  async create(processor, strategy, options) {
60
- return await tryExecuteAllowingConflict(this.host, PipelinesService.createPipeline({
60
+ return await tryExecuteAllowingConflict(this.host, postProcessingCreatePipeline({
61
61
  body: {
62
62
  alias: processor,
63
63
  strategy: strategy,
@@ -72,14 +72,14 @@ export class PipelineSource {
72
72
  * @returns nothing.
73
73
  */
74
74
  async clear(id) {
75
- return await tryExecute(this.host, PipelinesService.clearPipeline({ path: { id: id } }));
75
+ return await tryExecute(this.host, postProcessingClearPipelineById({ path: { id: id } }));
76
76
  }
77
77
  /**
78
78
  * @param id guid id of the pipeline to retrieve results for
79
79
  * @returns results (if there are any) for the pipeline
80
80
  */
81
81
  async getResults(id) {
82
- return await tryExecute(this.host, PipelinesService.getResults({
82
+ return await tryExecute(this.host, getProcessingGetResultsById({
83
83
  path: { id: id },
84
84
  }));
85
85
  }
@@ -88,11 +88,11 @@ export class PipelineSource {
88
88
  * @returns its run status, or an error (without a notification) if the user can't see it.
89
89
  */
90
90
  async getRunStatus(id) {
91
- return await tryExecute(this.host, PipelinesService.pipelineStatus({ path: { id: id } }), {
91
+ return await tryExecute(this.host, getProcessingPipelineStatusById({ path: { id: id } }), {
92
92
  disableNotifications: true,
93
93
  });
94
94
  }
95
95
  async listPiplelines(status) {
96
- return await tryExecute(this.host, PipelinesService.listPipelines({ path: { status: status } }));
96
+ return await tryExecute(this.host, getProcessingListPipelinesByStatus({ path: { status: status } }));
97
97
  }
98
98
  }
@@ -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[] | undefined>;
9
9
  clear(id: string): Promise<unknown>;
10
10
  }
11
11
  export default PipelinesContext;
@@ -73,7 +73,7 @@ let JumooProcessingPipelineWorkspaceDefaultViewElement = class JumooProcessingPi
73
73
  const closeButton = html `<uui-button
74
74
  @click=${__classPrivateFieldGet(this, _JumooProcessingPipelineWorkspaceDefaultViewElement_instances, "m", _JumooProcessingPipelineWorkspaceDefaultViewElement_onClose)}
75
75
  color="default"
76
- look="default"
76
+ look="outline"
77
77
  label=${this.closeLabel}></uui-button>`;
78
78
  return html `${closeButton} ${actionButton}`;
79
79
  }
@@ -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 | undefined>;
10
10
  process(key: string): Promise<void>;
11
11
  }
12
12
  export default QueueContext;
@@ -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 | undefined>;
6
+ peek(key: string): Promise<import("..").PagedModelQueuedItemModel | undefined>;
7
7
  delete(key: string): Promise<unknown>;
8
- process(key: string): Promise<import("..").QueuedItem>;
8
+ process(key: string): Promise<import("..").QueuedItem | undefined>;
9
9
  }
10
10
  export default QueueRepository;
@@ -1,28 +1,28 @@
1
1
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
2
- import { QueuesService } from '../api';
2
+ import { deleteProcessingDeleteQueueByKey, getProcessingListQueue, getProcessingPeekItem, postProcessingProcessQueueByKey, } from '../api';
3
3
  export class QueueRepository extends UmbControllerBase {
4
4
  constructor(host) {
5
5
  super(host);
6
6
  }
7
7
  async list() {
8
- return (await QueuesService.listQueue()).data;
8
+ return (await getProcessingListQueue()).data;
9
9
  }
10
10
  async peek(key) {
11
- return (await QueuesService.peekItem({
11
+ return (await getProcessingPeekItem({
12
12
  query: {
13
13
  key: key,
14
14
  },
15
15
  })).data;
16
16
  }
17
17
  async delete(key) {
18
- return (await QueuesService.delete({
18
+ return (await deleteProcessingDeleteQueueByKey({
19
19
  path: {
20
20
  key: key,
21
21
  },
22
22
  })).data;
23
23
  }
24
24
  async process(key) {
25
- return (await QueuesService.process({
25
+ return (await postProcessingProcessQueueByKey({
26
26
  path: {
27
27
  key: key,
28
28
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jumoo/processing",
3
3
  "licence": "custom",
4
- "version": "17.5.0",
4
+ "version": "18.3.0",
5
5
  "type": "module",
6
6
  "description": "Jumoo processing library",
7
7
  "exports": {
@@ -27,28 +27,29 @@
27
27
  "client:publish": "npm publish -tag next",
28
28
  "client:make": "npm run client:build && npm run client:pack && npm run client:publish",
29
29
  "client:link": "npm link",
30
- "generate": "openapi-ts",
30
+ "generate-client": "node scripts/generate-openapi.js https://localhost:44348/umbraco/openapi/processing.json",
31
31
  "lint": "eslint .",
32
32
  "lint:fix": "eslint . --fix",
33
33
  "format:fix": "npm run format -- --write",
34
- "format": "prettier \"src/**/*.ts\" --check",
34
+ "format": "prettier \"src/**/*.ts\" \"*.ts\" \"*.js\" \"*.json\" \"scripts/**/*.js\" --check",
35
35
  "build": "tsc && vite build",
36
36
  "watch": "vite build --watch",
37
37
  "make": "npm run build && npm run client:make"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@eslint/js": "^10.0.1",
41
- "@hey-api/openapi-ts": "^0.95.0",
41
+ "@hey-api/openapi-ts": "^0.99.0",
42
42
  "@microsoft/signalr": "^10.0.0",
43
- "@umbraco-cms/backoffice": "^17.3.0",
43
+ "@umbraco-cms/backoffice": "18.0.1",
44
+ "chalk": "^5.6.2",
45
+ "cross-env": "^10.1.0",
44
46
  "eslint": "^10.13.0",
45
47
  "globals": "^17.13.0",
46
- "lit": "^3.3.2",
48
+ "node-fetch": "^3.3.2",
47
49
  "prettier": "^3.9.10",
48
50
  "typescript": "^6.0.3",
49
51
  "typescript-eslint": "^8.71.2",
50
- "vite": "^8.3.4",
51
- "vite-plugin-dts": "^5.1.2"
52
+ "vite": "^8.3.4"
52
53
  },
53
54
  "repository": {
54
55
  "type": "git",
package/dist/hey-api.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import type { CreateClientConfig } from './api/client.gen';
2
- /**
3
- * Pre-configure the generated client by copying the Umbraco HTTP client's config.
4
- *
5
- * Called automatically by the generated client during initialization (via runtimeConfigPath).
6
- * Inherits baseUrl, credentials, auth, and headers from umbHttpClient — which is already
7
- * configured by the backoffice before extensions load.
8
- *
9
- * @see https://heyapi.dev/openapi-ts/clients/fetch#configuration
10
- */
11
- export declare const createClientConfig: CreateClientConfig;
package/dist/hey-api.js DELETED
@@ -1,14 +0,0 @@
1
- import { umbHttpClient } from '@umbraco-cms/backoffice/http-client';
2
- /**
3
- * Pre-configure the generated client by copying the Umbraco HTTP client's config.
4
- *
5
- * Called automatically by the generated client during initialization (via runtimeConfigPath).
6
- * Inherits baseUrl, credentials, auth, and headers from umbHttpClient — which is already
7
- * configured by the backoffice before extensions load.
8
- *
9
- * @see https://heyapi.dev/openapi-ts/clients/fetch#configuration
10
- */
11
- export const createClientConfig = (config) => ({
12
- ...config,
13
- ...umbHttpClient.getConfig(),
14
- });