@jumoo/processing 17.4.3-prerelease.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 (36) 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/pipeline-table.element.d.ts +2 -1
  22. package/dist/pipeline/components/pipeline-table.element.js +26 -24
  23. package/dist/pipeline/modal/errors/error-modal.element.js +1 -1
  24. package/dist/pipeline/modal/pipeline-modal.element.js +1 -1
  25. package/dist/pipeline/pipeline.context.d.ts +2 -2
  26. package/dist/pipeline/pipeline.context.js +1 -1
  27. package/dist/pipeline/pipeline.element.js +4 -4
  28. package/dist/pipeline/pipeline.repository.d.ts +8 -8
  29. package/dist/pipeline/pipeline.source.d.ts +72 -27
  30. package/dist/pipeline/pipeline.source.js +10 -10
  31. package/dist/pipeline/pipelines.context.d.ts +1 -1
  32. package/dist/pipeline/workspace/views/default-pipeline-view.js +1 -1
  33. package/dist/queue/queue.context.d.ts +1 -1
  34. package/dist/queue/queue.repository.d.ts +3 -3
  35. package/dist/queue/queue.repository.js +5 -5
  36. package/package.json +52 -58
@@ -1,5 +1,5 @@
1
1
  export type ClientOptions = {
2
- baseUrl: 'http://localhost:41839' | (string & {});
2
+ baseUrl: 'https://localhost:44348/' | (string & {});
3
3
  };
4
4
  export type PagedModelQueuedItemModel = {
5
5
  items: Array<QueuedItem>;
@@ -11,29 +11,29 @@ export type Pipeline = {
11
11
  strategy: string;
12
12
  state: PipelineState;
13
13
  options: ProcessingOptions;
14
- results?: ProcessingResults | null;
14
+ results?: ProcessingResults;
15
15
  };
16
16
  export type PipelineBackgroundState = {
17
17
  isBackgroundRequest: boolean;
18
- backgroundElement?: string | null;
19
- completedElement?: string | null;
20
- failedElement?: string | null;
21
- clientId?: string | null;
18
+ backgroundElement?: null | string;
19
+ completedElement?: null | string;
20
+ failedElement?: null | string;
21
+ clientId?: null | string;
22
22
  };
23
23
  export type PipelineCreateRequest = {
24
24
  alias: string;
25
25
  strategy: string;
26
- options?: ProcessingOptions | null;
27
- clientId?: string | null;
26
+ options?: null | ProcessingOptions;
27
+ clientId?: null | string;
28
28
  };
29
29
  export type PipelineState = {
30
+ childPipeline?: null | string;
31
+ elementName?: null | string;
30
32
  status: PipelineStatus;
31
- childPipeline?: string | null;
32
- elementName?: string | null;
33
- currentRequest?: ProcessingRequest | null;
34
33
  progress: ProgressInformation;
35
- schedule?: string | null;
36
- backgroundState?: PipelineBackgroundState | null;
34
+ currentRequest?: ProcessingRequest;
35
+ schedule?: null | string;
36
+ backgroundState?: PipelineBackgroundState;
37
37
  isChildPipeline: boolean;
38
38
  };
39
39
  export declare enum PipelineStatus {
@@ -46,71 +46,60 @@ export declare enum PipelineStatus {
46
46
  FAILED = "Failed"
47
47
  }
48
48
  export type ProblemDetails = {
49
- type?: string | null;
50
- title?: string | null;
51
- status?: number | null;
52
- detail?: string | null;
53
- instance?: string | null;
54
- [key: string]: unknown;
55
- };
56
- export type ProcessingChildRequestAction = {
57
- alias: string;
58
- stepAlias?: string | null;
59
- page: number;
60
- pageSize: number;
61
- subStep?: string | null;
62
- element?: string | null;
63
- waitOnAction: boolean;
64
- strategy: string;
65
- processor: string;
66
- options?: ProcessingOptions | null;
49
+ type?: null | string;
50
+ title?: null | string;
51
+ status?: null | number;
52
+ detail?: null | string;
53
+ instance?: null | string;
67
54
  };
68
55
  export type ProcessingErrorDetails = {
69
56
  source: string;
70
57
  strategy: string;
71
58
  message: string;
72
59
  action: string;
73
- step?: string | null;
60
+ step?: null | string;
74
61
  page: number;
75
- subStep?: string | null;
62
+ subStep?: null | string;
76
63
  key: string;
77
- className?: string | null;
78
- methodName?: string | null;
79
- stackTrace?: string | null;
64
+ className?: null | string;
65
+ methodName?: null | string;
66
+ stackTrace?: null | string;
80
67
  };
81
68
  export type ProcessingOptions = {
82
- [key: string]: unknown;
69
+ extensions: {
70
+ [key: string]: unknown;
71
+ };
83
72
  };
84
73
  export type ProcessingOptionsResults = {
85
- options?: ProcessingOptions | null;
74
+ options?: null | ProcessingOptions;
86
75
  };
87
76
  export type ProcessingRequest = {
88
77
  id: string;
89
- clientId?: string | null;
78
+ clientId?: null | string;
90
79
  isBackgroundRequest: boolean;
91
80
  strategy: string;
92
- action?: ProcessingChildRequestAction | ProcessingRequestAction | null;
93
- user?: string | null;
94
- title?: string | null;
95
- source?: string | null;
81
+ action?: ProcessingRequestAction;
82
+ user?: null | string;
83
+ title?: null | string;
84
+ source?: null | string;
96
85
  options: {
97
86
  [key: string]: unknown;
98
87
  };
99
88
  };
100
89
  export type ProcessingRequestAction = {
101
90
  alias: string;
102
- stepAlias?: string | null;
91
+ stepAlias?: null | string;
103
92
  page: number;
104
93
  pageSize: number;
105
- subStep?: string | null;
106
- element?: string | null;
94
+ subStep?: null | string;
95
+ element?: null | string;
107
96
  waitOnAction: boolean;
108
97
  };
109
98
  export type ProcessingResults = {
110
99
  results: {
111
100
  [key: string]: unknown;
112
101
  };
113
- error?: ProcessingErrorDetails | null;
102
+ error?: ProcessingErrorDetails;
114
103
  };
115
104
  export type ProgressInformation = {
116
105
  isLastAction: boolean;
@@ -126,14 +115,14 @@ export type QueuedItem = {
126
115
  submitted: string;
127
116
  scheduled: string;
128
117
  priority: number;
129
- data?: string | null;
118
+ data?: null | string;
130
119
  attempts: number;
131
- userKey?: string | null;
132
- userName?: string | null;
133
- clientId?: string | null;
134
- note?: string | null;
135
- claimedBy?: string | null;
136
- claimedUntil?: string | null;
120
+ userKey?: null | string;
121
+ userName?: null | string;
122
+ clientId?: null | string;
123
+ note?: null | string;
124
+ claimedBy?: null | string;
125
+ claimedUntil?: null | string;
137
126
  };
138
127
  export type StepInfo = {
139
128
  icon: string;
@@ -146,7 +135,7 @@ export declare enum StepStatus {
146
135
  COMPLETE = "Complete",
147
136
  ERROR = "Error"
148
137
  }
149
- export type ClearPipelineData = {
138
+ export type PostProcessingClearPipelineByIdData = {
150
139
  body?: never;
151
140
  path: {
152
141
  id: string;
@@ -154,7 +143,7 @@ export type ClearPipelineData = {
154
143
  query?: never;
155
144
  url: '/umbraco/jumoo/api/v1/processing/ClearPipeline/{id}';
156
145
  };
157
- export type ClearPipelineErrors = {
146
+ export type PostProcessingClearPipelineByIdErrors = {
158
147
  /**
159
148
  * Bad Request
160
149
  */
@@ -164,20 +153,20 @@ export type ClearPipelineErrors = {
164
153
  */
165
154
  401: unknown;
166
155
  };
167
- export type ClearPipelineError = ClearPipelineErrors[keyof ClearPipelineErrors];
168
- export type ClearPipelineResponses = {
156
+ export type PostProcessingClearPipelineByIdError = PostProcessingClearPipelineByIdErrors[keyof PostProcessingClearPipelineByIdErrors];
157
+ export type PostProcessingClearPipelineByIdResponses = {
169
158
  /**
170
159
  * OK
171
160
  */
172
161
  200: unknown;
173
162
  };
174
- export type CreatePipelineData = {
175
- body?: PipelineCreateRequest;
163
+ export type PostProcessingCreatePipelineData = {
164
+ body: PipelineCreateRequest;
176
165
  path?: never;
177
166
  query?: never;
178
167
  url: '/umbraco/jumoo/api/v1/processing/CreatePipeline';
179
168
  };
180
- export type CreatePipelineErrors = {
169
+ export type PostProcessingCreatePipelineErrors = {
181
170
  /**
182
171
  * Bad Request
183
172
  */
@@ -191,15 +180,15 @@ export type CreatePipelineErrors = {
191
180
  */
192
181
  404: unknown;
193
182
  };
194
- export type CreatePipelineError = CreatePipelineErrors[keyof CreatePipelineErrors];
195
- export type CreatePipelineResponses = {
183
+ export type PostProcessingCreatePipelineError = PostProcessingCreatePipelineErrors[keyof PostProcessingCreatePipelineErrors];
184
+ export type PostProcessingCreatePipelineResponses = {
196
185
  /**
197
186
  * OK
198
187
  */
199
188
  200: string;
200
189
  };
201
- export type CreatePipelineResponse = CreatePipelineResponses[keyof CreatePipelineResponses];
202
- export type GetPipelineData = {
190
+ export type PostProcessingCreatePipelineResponse = PostProcessingCreatePipelineResponses[keyof PostProcessingCreatePipelineResponses];
191
+ export type GetProcessingGetPipelineByIdData = {
203
192
  body?: never;
204
193
  path: {
205
194
  id: string;
@@ -207,7 +196,7 @@ export type GetPipelineData = {
207
196
  query?: never;
208
197
  url: '/umbraco/jumoo/api/v1/processing/GetPipeline/{id}';
209
198
  };
210
- export type GetPipelineErrors = {
199
+ export type GetProcessingGetPipelineByIdErrors = {
211
200
  /**
212
201
  * Bad Request
213
202
  */
@@ -221,21 +210,21 @@ export type GetPipelineErrors = {
221
210
  */
222
211
  404: unknown;
223
212
  };
224
- export type GetPipelineError = GetPipelineErrors[keyof GetPipelineErrors];
225
- export type GetPipelineResponses = {
213
+ export type GetProcessingGetPipelineByIdError = GetProcessingGetPipelineByIdErrors[keyof GetProcessingGetPipelineByIdErrors];
214
+ export type GetProcessingGetPipelineByIdResponses = {
226
215
  /**
227
216
  * OK
228
217
  */
229
218
  200: Pipeline;
230
219
  };
231
- export type GetPipelineResponse = GetPipelineResponses[keyof GetPipelineResponses];
232
- export type GetProcessorsData = {
220
+ export type GetProcessingGetPipelineByIdResponse = GetProcessingGetPipelineByIdResponses[keyof GetProcessingGetPipelineByIdResponses];
221
+ export type GetProcessingGetProcessorsData = {
233
222
  body?: never;
234
223
  path?: never;
235
224
  query?: never;
236
225
  url: '/umbraco/jumoo/api/v1/processing/GetProcessors';
237
226
  };
238
- export type GetProcessorsErrors = {
227
+ export type GetProcessingGetProcessorsErrors = {
239
228
  /**
240
229
  * Bad Request
241
230
  */
@@ -245,15 +234,15 @@ export type GetProcessorsErrors = {
245
234
  */
246
235
  401: unknown;
247
236
  };
248
- export type GetProcessorsError = GetProcessorsErrors[keyof GetProcessorsErrors];
249
- export type GetProcessorsResponses = {
237
+ export type GetProcessingGetProcessorsError = GetProcessingGetProcessorsErrors[keyof GetProcessingGetProcessorsErrors];
238
+ export type GetProcessingGetProcessorsResponses = {
250
239
  /**
251
240
  * OK
252
241
  */
253
242
  200: Array<string>;
254
243
  };
255
- export type GetProcessorsResponse = GetProcessorsResponses[keyof GetProcessorsResponses];
256
- export type GetResultsData = {
244
+ export type GetProcessingGetProcessorsResponse = GetProcessingGetProcessorsResponses[keyof GetProcessingGetProcessorsResponses];
245
+ export type GetProcessingGetResultsByIdData = {
257
246
  body?: never;
258
247
  path: {
259
248
  id: string;
@@ -261,7 +250,7 @@ export type GetResultsData = {
261
250
  query?: never;
262
251
  url: '/umbraco/jumoo/api/v1/processing/GetResults/{id}';
263
252
  };
264
- export type GetResultsErrors = {
253
+ export type GetProcessingGetResultsByIdErrors = {
265
254
  /**
266
255
  * Bad Request
267
256
  */
@@ -271,15 +260,15 @@ export type GetResultsErrors = {
271
260
  */
272
261
  401: unknown;
273
262
  };
274
- export type GetResultsError = GetResultsErrors[keyof GetResultsErrors];
275
- export type GetResultsResponses = {
263
+ export type GetProcessingGetResultsByIdError = GetProcessingGetResultsByIdErrors[keyof GetProcessingGetResultsByIdErrors];
264
+ export type GetProcessingGetResultsByIdResponses = {
276
265
  /**
277
266
  * OK
278
267
  */
279
268
  200: ProcessingResults;
280
269
  };
281
- export type GetResultsResponse = GetResultsResponses[keyof GetResultsResponses];
282
- export type ListPipelinesData = {
270
+ export type GetProcessingGetResultsByIdResponse = GetProcessingGetResultsByIdResponses[keyof GetProcessingGetResultsByIdResponses];
271
+ export type GetProcessingListPipelinesByStatusData = {
283
272
  body?: never;
284
273
  path: {
285
274
  status: PipelineStatus;
@@ -287,7 +276,7 @@ export type ListPipelinesData = {
287
276
  query?: never;
288
277
  url: '/umbraco/jumoo/api/v1/processing/ListPipelines/{status}';
289
278
  };
290
- export type ListPipelinesErrors = {
279
+ export type GetProcessingListPipelinesByStatusErrors = {
291
280
  /**
292
281
  * Bad Request
293
282
  */
@@ -301,15 +290,15 @@ export type ListPipelinesErrors = {
301
290
  */
302
291
  404: unknown;
303
292
  };
304
- export type ListPipelinesError = ListPipelinesErrors[keyof ListPipelinesErrors];
305
- export type ListPipelinesResponses = {
293
+ export type GetProcessingListPipelinesByStatusError = GetProcessingListPipelinesByStatusErrors[keyof GetProcessingListPipelinesByStatusErrors];
294
+ export type GetProcessingListPipelinesByStatusResponses = {
306
295
  /**
307
296
  * OK
308
297
  */
309
298
  200: Array<Pipeline>;
310
299
  };
311
- export type ListPipelinesResponse = ListPipelinesResponses[keyof ListPipelinesResponses];
312
- export type ListPipelinesByStrategyData = {
300
+ export type GetProcessingListPipelinesByStatusResponse = GetProcessingListPipelinesByStatusResponses[keyof GetProcessingListPipelinesByStatusResponses];
301
+ export type GetProcessingListPipelinesByStrategyByStrategyByStatusData = {
313
302
  body?: never;
314
303
  path: {
315
304
  strategy: string;
@@ -318,7 +307,7 @@ export type ListPipelinesByStrategyData = {
318
307
  query?: never;
319
308
  url: '/umbraco/jumoo/api/v1/processing/ListPipelinesByStrategy/{strategy}/{status}';
320
309
  };
321
- export type ListPipelinesByStrategyErrors = {
310
+ export type GetProcessingListPipelinesByStrategyByStrategyByStatusErrors = {
322
311
  /**
323
312
  * Bad Request
324
313
  */
@@ -332,15 +321,15 @@ export type ListPipelinesByStrategyErrors = {
332
321
  */
333
322
  404: unknown;
334
323
  };
335
- export type ListPipelinesByStrategyError = ListPipelinesByStrategyErrors[keyof ListPipelinesByStrategyErrors];
336
- export type ListPipelinesByStrategyResponses = {
324
+ export type GetProcessingListPipelinesByStrategyByStrategyByStatusError = GetProcessingListPipelinesByStrategyByStrategyByStatusErrors[keyof GetProcessingListPipelinesByStrategyByStrategyByStatusErrors];
325
+ export type GetProcessingListPipelinesByStrategyByStrategyByStatusResponses = {
337
326
  /**
338
327
  * OK
339
328
  */
340
329
  200: Array<Pipeline>;
341
330
  };
342
- export type ListPipelinesByStrategyResponse = ListPipelinesByStrategyResponses[keyof ListPipelinesByStrategyResponses];
343
- export type ProcessPipelineData = {
331
+ export type GetProcessingListPipelinesByStrategyByStrategyByStatusResponse = GetProcessingListPipelinesByStrategyByStrategyByStatusResponses[keyof GetProcessingListPipelinesByStrategyByStrategyByStatusResponses];
332
+ export type PostProcessingProcessPipelineByIdData = {
344
333
  body?: never;
345
334
  path: {
346
335
  id: string;
@@ -350,7 +339,7 @@ export type ProcessPipelineData = {
350
339
  };
351
340
  url: '/umbraco/jumoo/api/v1/processing/ProcessPipeline/{id}';
352
341
  };
353
- export type ProcessPipelineErrors = {
342
+ export type PostProcessingProcessPipelineByIdErrors = {
354
343
  /**
355
344
  * Bad Request
356
345
  */
@@ -360,15 +349,15 @@ export type ProcessPipelineErrors = {
360
349
  */
361
350
  401: unknown;
362
351
  };
363
- export type ProcessPipelineError = ProcessPipelineErrors[keyof ProcessPipelineErrors];
364
- export type ProcessPipelineResponses = {
352
+ export type PostProcessingProcessPipelineByIdError = PostProcessingProcessPipelineByIdErrors[keyof PostProcessingProcessPipelineByIdErrors];
353
+ export type PostProcessingProcessPipelineByIdResponses = {
365
354
  /**
366
355
  * OK
367
356
  */
368
357
  200: Pipeline;
369
358
  };
370
- export type ProcessPipelineResponse = ProcessPipelineResponses[keyof ProcessPipelineResponses];
371
- export type ReattachPipelineData = {
359
+ export type PostProcessingProcessPipelineByIdResponse = PostProcessingProcessPipelineByIdResponses[keyof PostProcessingProcessPipelineByIdResponses];
360
+ export type PostProcessingReattachPipelineByIdData = {
372
361
  body?: never;
373
362
  path: {
374
363
  id: string;
@@ -378,7 +367,7 @@ export type ReattachPipelineData = {
378
367
  };
379
368
  url: '/umbraco/jumoo/api/v1/processing/ReattachPipeline/{id}';
380
369
  };
381
- export type ReattachPipelineErrors = {
370
+ export type PostProcessingReattachPipelineByIdErrors = {
382
371
  /**
383
372
  * Bad Request
384
373
  */
@@ -392,23 +381,23 @@ export type ReattachPipelineErrors = {
392
381
  */
393
382
  404: unknown;
394
383
  };
395
- export type ReattachPipelineError = ReattachPipelineErrors[keyof ReattachPipelineErrors];
396
- export type ReattachPipelineResponses = {
384
+ export type PostProcessingReattachPipelineByIdError = PostProcessingReattachPipelineByIdErrors[keyof PostProcessingReattachPipelineByIdErrors];
385
+ export type PostProcessingReattachPipelineByIdResponses = {
397
386
  /**
398
387
  * OK
399
388
  */
400
389
  200: Pipeline;
401
390
  };
402
- export type ReattachPipelineResponse = ReattachPipelineResponses[keyof ReattachPipelineResponses];
403
- export type UpdatePipelineData = {
404
- body?: ProcessingOptions;
391
+ export type PostProcessingReattachPipelineByIdResponse = PostProcessingReattachPipelineByIdResponses[keyof PostProcessingReattachPipelineByIdResponses];
392
+ export type PostProcessingUpdatePipelineByIdData = {
393
+ body: ProcessingOptions;
405
394
  path: {
406
395
  id: string;
407
396
  };
408
397
  query?: never;
409
398
  url: '/umbraco/jumoo/api/v1/processing/UpdatePipeline/{id}';
410
399
  };
411
- export type UpdatePipelineErrors = {
400
+ export type PostProcessingUpdatePipelineByIdErrors = {
412
401
  /**
413
402
  * Bad Request
414
403
  */
@@ -418,15 +407,15 @@ export type UpdatePipelineErrors = {
418
407
  */
419
408
  401: unknown;
420
409
  };
421
- export type UpdatePipelineError = UpdatePipelineErrors[keyof UpdatePipelineErrors];
422
- export type UpdatePipelineResponses = {
410
+ export type PostProcessingUpdatePipelineByIdError = PostProcessingUpdatePipelineByIdErrors[keyof PostProcessingUpdatePipelineByIdErrors];
411
+ export type PostProcessingUpdatePipelineByIdResponses = {
423
412
  /**
424
413
  * OK
425
414
  */
426
415
  200: ProcessingOptionsResults;
427
416
  };
428
- export type UpdatePipelineResponse = UpdatePipelineResponses[keyof UpdatePipelineResponses];
429
- export type DeleteData = {
417
+ export type PostProcessingUpdatePipelineByIdResponse = PostProcessingUpdatePipelineByIdResponses[keyof PostProcessingUpdatePipelineByIdResponses];
418
+ export type DeleteProcessingDeleteQueueByKeyData = {
430
419
  body?: never;
431
420
  path: {
432
421
  key: string;
@@ -434,7 +423,7 @@ export type DeleteData = {
434
423
  query?: never;
435
424
  url: '/umbraco/jumoo/api/v1/processing/DeleteQueue/{key}';
436
425
  };
437
- export type DeleteErrors = {
426
+ export type DeleteProcessingDeleteQueueByKeyErrors = {
438
427
  /**
439
428
  * Bad Request
440
429
  */
@@ -448,14 +437,14 @@ export type DeleteErrors = {
448
437
  */
449
438
  404: unknown;
450
439
  };
451
- export type DeleteError = DeleteErrors[keyof DeleteErrors];
452
- export type DeleteResponses = {
440
+ export type DeleteProcessingDeleteQueueByKeyError = DeleteProcessingDeleteQueueByKeyErrors[keyof DeleteProcessingDeleteQueueByKeyErrors];
441
+ export type DeleteProcessingDeleteQueueByKeyResponses = {
453
442
  /**
454
443
  * OK
455
444
  */
456
445
  200: unknown;
457
446
  };
458
- export type ListQueueData = {
447
+ export type GetProcessingListQueueData = {
459
448
  body?: never;
460
449
  path?: never;
461
450
  query?: {
@@ -463,7 +452,7 @@ export type ListQueueData = {
463
452
  };
464
453
  url: '/umbraco/jumoo/api/v1/processing/ListQueue';
465
454
  };
466
- export type ListQueueErrors = {
455
+ export type GetProcessingListQueueErrors = {
467
456
  /**
468
457
  * Bad Request
469
458
  */
@@ -477,15 +466,15 @@ export type ListQueueErrors = {
477
466
  */
478
467
  404: unknown;
479
468
  };
480
- export type ListQueueError = ListQueueErrors[keyof ListQueueErrors];
481
- export type ListQueueResponses = {
469
+ export type GetProcessingListQueueError = GetProcessingListQueueErrors[keyof GetProcessingListQueueErrors];
470
+ export type GetProcessingListQueueResponses = {
482
471
  /**
483
472
  * OK
484
473
  */
485
474
  200: PagedModelQueuedItemModel;
486
475
  };
487
- export type ListQueueResponse = ListQueueResponses[keyof ListQueueResponses];
488
- export type PeekItemData = {
476
+ export type GetProcessingListQueueResponse = GetProcessingListQueueResponses[keyof GetProcessingListQueueResponses];
477
+ export type GetProcessingPeekItemData = {
489
478
  body?: never;
490
479
  path?: never;
491
480
  query?: {
@@ -493,7 +482,7 @@ export type PeekItemData = {
493
482
  };
494
483
  url: '/umbraco/jumoo/api/v1/processing/PeekItem';
495
484
  };
496
- export type PeekItemErrors = {
485
+ export type GetProcessingPeekItemErrors = {
497
486
  /**
498
487
  * Bad Request
499
488
  */
@@ -507,15 +496,15 @@ export type PeekItemErrors = {
507
496
  */
508
497
  404: unknown;
509
498
  };
510
- export type PeekItemError = PeekItemErrors[keyof PeekItemErrors];
511
- export type PeekItemResponses = {
499
+ export type GetProcessingPeekItemError = GetProcessingPeekItemErrors[keyof GetProcessingPeekItemErrors];
500
+ export type GetProcessingPeekItemResponses = {
512
501
  /**
513
502
  * OK
514
503
  */
515
504
  200: PagedModelQueuedItemModel;
516
505
  };
517
- export type PeekItemResponse = PeekItemResponses[keyof PeekItemResponses];
518
- export type ProcessData = {
506
+ export type GetProcessingPeekItemResponse = GetProcessingPeekItemResponses[keyof GetProcessingPeekItemResponses];
507
+ export type PostProcessingProcessQueueByKeyData = {
519
508
  body?: never;
520
509
  path: {
521
510
  key: string;
@@ -523,7 +512,7 @@ export type ProcessData = {
523
512
  query?: never;
524
513
  url: '/umbraco/jumoo/api/v1/processing/ProcessQueue/{key}';
525
514
  };
526
- export type ProcessErrors = {
515
+ export type PostProcessingProcessQueueByKeyErrors = {
527
516
  /**
528
517
  * Bad Request
529
518
  */
@@ -537,11 +526,11 @@ export type ProcessErrors = {
537
526
  */
538
527
  404: unknown;
539
528
  };
540
- export type ProcessError = ProcessErrors[keyof ProcessErrors];
541
- export type ProcessResponses = {
529
+ export type PostProcessingProcessQueueByKeyError = PostProcessingProcessQueueByKeyErrors[keyof PostProcessingProcessQueueByKeyErrors];
530
+ export type PostProcessingProcessQueueByKeyResponses = {
542
531
  /**
543
532
  * OK
544
533
  */
545
534
  200: QueuedItem;
546
535
  };
547
- export type ProcessResponse = ProcessResponses[keyof ProcessResponses];
536
+ export type PostProcessingProcessQueueByKeyResponse = PostProcessingProcessQueueByKeyResponses[keyof PostProcessingProcessQueueByKeyResponses];
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() {
@@ -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,35 @@ 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
+ if (!pipeline.id)
90
+ return nothing;
91
+ return html `<uui-button-group
92
+ ><uui-button
93
+ .id=${pipeline.id}
94
+ label="View"
95
+ color="positive"
96
+ look="outline"
97
+ @click=${__classPrivateFieldGet(this, _JumooPipelinesTableElement_instances, "m", _JumooPipelinesTableElement_onViewPipeline)}
98
+ >View</uui-button
99
+ >
98
100
  ${this.hideDelete
99
101
  ? ''
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
102
+ : html `<uui-button
103
+ label="Delete"
104
+ color="danger"
105
+ look="outline"
106
+ @click=${() => __classPrivateFieldGet(this, _JumooPipelinesTableElement_instances, "m", _JumooPipelinesTableElement_onDeletePipeline).call(this, pipeline.id)}
107
+ >Delete</uui-button
108
+ >`}</uui-button-group
107
109
  >`;
108
110
  }
109
111
  };