@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.
- package/dist/api/client/client.gen.js +104 -123
- package/dist/api/client/index.d.ts +2 -0
- package/dist/api/client/types.gen.d.ts +6 -3
- package/dist/api/client/utils.gen.d.ts +8 -4
- package/dist/api/client/utils.gen.js +3 -3
- package/dist/api/client.gen.d.ts +2 -2
- package/dist/api/client.gen.js +1 -2
- package/dist/api/core/auth.gen.d.ts +7 -0
- package/dist/api/core/params.gen.d.ts +2 -2
- package/dist/api/core/params.gen.js +23 -14
- package/dist/api/core/queryKeySerializer.gen.d.ts +1 -1
- package/dist/api/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/api/core/serverSentEvents.gen.js +3 -4
- package/dist/api/core/types.gen.d.ts +5 -0
- package/dist/api/index.d.ts +2 -3
- package/dist/api/index.js +1 -2
- package/dist/api/sdk.gen.d.ts +23 -27
- package/dist/api/sdk.gen.js +82 -114
- package/dist/api/types.gen.d.ts +113 -124
- package/dist/index.js +9 -1
- package/dist/pipeline/components/background.element.js +23 -23
- package/dist/pipeline/components/pipeline-list.element.js +28 -28
- package/dist/pipeline/components/pipeline-table.element.d.ts +2 -1
- package/dist/pipeline/components/pipeline-table.element.js +3 -1
- package/dist/pipeline/components/process-error.element.js +39 -39
- package/dist/pipeline/components/progress.element.js +122 -122
- package/dist/pipeline/components/progress.step.element.js +5 -5
- package/dist/pipeline/modal/errors/error-modal.element.js +87 -87
- package/dist/pipeline/modal/pipeline-modal.element.js +34 -34
- package/dist/pipeline/pipeline.context.d.ts +2 -2
- package/dist/pipeline/pipeline.context.js +1 -1
- package/dist/pipeline/pipeline.element.js +30 -30
- package/dist/pipeline/pipeline.repository.d.ts +8 -8
- package/dist/pipeline/pipeline.source.d.ts +72 -27
- package/dist/pipeline/pipeline.source.js +10 -10
- package/dist/pipeline/pipelines.context.d.ts +1 -1
- package/dist/pipeline/workspace/views/default-pipeline-view.js +18 -18
- package/dist/queue/components/queue-list.element.js +17 -17
- package/dist/queue/components/queue-table.element.js +15 -15
- package/dist/queue/queue.context.d.ts +1 -1
- package/dist/queue/queue.repository.d.ts +3 -3
- package/dist/queue/queue.repository.js +5 -5
- package/package.json +11 -10
package/dist/api/types.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
|
-
baseUrl: '
|
|
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
|
|
14
|
+
results?: ProcessingResults;
|
|
15
15
|
};
|
|
16
16
|
export type PipelineBackgroundState = {
|
|
17
17
|
isBackgroundRequest: boolean;
|
|
18
|
-
backgroundElement?:
|
|
19
|
-
completedElement?:
|
|
20
|
-
failedElement?:
|
|
21
|
-
clientId?:
|
|
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?:
|
|
27
|
-
clientId?:
|
|
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
|
-
|
|
36
|
-
|
|
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?:
|
|
50
|
-
title?:
|
|
51
|
-
status?:
|
|
52
|
-
detail?:
|
|
53
|
-
instance?:
|
|
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?:
|
|
60
|
+
step?: null | string;
|
|
74
61
|
page: number;
|
|
75
|
-
subStep?:
|
|
62
|
+
subStep?: null | string;
|
|
76
63
|
key: string;
|
|
77
|
-
className?:
|
|
78
|
-
methodName?:
|
|
79
|
-
stackTrace?:
|
|
64
|
+
className?: null | string;
|
|
65
|
+
methodName?: null | string;
|
|
66
|
+
stackTrace?: null | string;
|
|
80
67
|
};
|
|
81
68
|
export type ProcessingOptions = {
|
|
82
|
-
|
|
69
|
+
extensions: {
|
|
70
|
+
[key: string]: unknown;
|
|
71
|
+
};
|
|
83
72
|
};
|
|
84
73
|
export type ProcessingOptionsResults = {
|
|
85
|
-
options?:
|
|
74
|
+
options?: null | ProcessingOptions;
|
|
86
75
|
};
|
|
87
76
|
export type ProcessingRequest = {
|
|
88
77
|
id: string;
|
|
89
|
-
clientId?:
|
|
78
|
+
clientId?: null | string;
|
|
90
79
|
isBackgroundRequest: boolean;
|
|
91
80
|
strategy: string;
|
|
92
|
-
action?:
|
|
93
|
-
user?:
|
|
94
|
-
title?:
|
|
95
|
-
source?:
|
|
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?:
|
|
91
|
+
stepAlias?: null | string;
|
|
103
92
|
page: number;
|
|
104
93
|
pageSize: number;
|
|
105
|
-
subStep?:
|
|
106
|
-
element?:
|
|
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
|
|
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?:
|
|
118
|
+
data?: null | string;
|
|
130
119
|
attempts: number;
|
|
131
|
-
userKey?:
|
|
132
|
-
userName?:
|
|
133
|
-
clientId?:
|
|
134
|
-
note?:
|
|
135
|
-
claimedBy?:
|
|
136
|
-
claimedUntil?:
|
|
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
|
|
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
|
|
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
|
|
168
|
-
export type
|
|
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
|
|
175
|
-
body
|
|
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
|
|
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
|
|
195
|
-
export type
|
|
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
|
|
202
|
-
export type
|
|
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
|
|
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
|
|
225
|
-
export type
|
|
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
|
|
232
|
-
export type
|
|
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
|
|
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
|
|
249
|
-
export type
|
|
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
|
|
256
|
-
export type
|
|
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
|
|
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
|
|
275
|
-
export type
|
|
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
|
|
282
|
-
export type
|
|
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
|
|
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
|
|
305
|
-
export type
|
|
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
|
|
312
|
-
export type
|
|
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
|
|
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
|
|
336
|
-
export type
|
|
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
|
|
343
|
-
export type
|
|
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
|
|
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
|
|
364
|
-
export type
|
|
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
|
|
371
|
-
export type
|
|
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
|
|
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
|
|
396
|
-
export type
|
|
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
|
|
403
|
-
export type
|
|
404
|
-
body
|
|
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
|
|
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
|
|
422
|
-
export type
|
|
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
|
|
429
|
-
export type
|
|
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
|
|
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
|
|
452
|
-
export type
|
|
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
|
|
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
|
|
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
|
|
481
|
-
export type
|
|
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
|
|
488
|
-
export type
|
|
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
|
|
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
|
|
511
|
-
export type
|
|
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
|
|
518
|
-
export type
|
|
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
|
|
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
|
|
541
|
-
export type
|
|
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
|
|
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 = (
|
|
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
|
};
|
|
@@ -19,35 +19,35 @@ let JumooPipelineBackgroundElement = class JumooPipelineBackgroundElement extend
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
renderBackgroundBanner() {
|
|
22
|
-
return html `<uui-box class="banner">
|
|
23
|
-
<umb-localize key="jumooProcBackground_running"></umb-localize>
|
|
22
|
+
return html `<uui-box class="banner">
|
|
23
|
+
<umb-localize key="jumooProcBackground_running"></umb-localize>
|
|
24
24
|
</uui-box>`;
|
|
25
25
|
}
|
|
26
26
|
renderProgress() {
|
|
27
|
-
return html `<jumoo-pipeline-progress
|
|
28
|
-
.progress=${this.state?.progress}
|
|
27
|
+
return html `<jumoo-pipeline-progress
|
|
28
|
+
.progress=${this.state?.progress}
|
|
29
29
|
.message=${this.message}></jumoo-pipeline-progress>`;
|
|
30
30
|
}
|
|
31
31
|
renderComplete() {
|
|
32
32
|
return !this.background?.completedElement
|
|
33
|
-
? html `<uui-box
|
|
34
|
-
><umb-localize key="jumooProcBackground_completed"></umb-localize
|
|
35
|
-
></uui-box>
|
|
33
|
+
? html `<uui-box
|
|
34
|
+
><umb-localize key="jumooProcBackground_completed"></umb-localize
|
|
35
|
+
></uui-box>
|
|
36
36
|
<pre>${JSON.stringify(this.state, null, 1)}</pre>`
|
|
37
37
|
: html `${this.renderElement(this.background.completedElement)}`;
|
|
38
38
|
}
|
|
39
39
|
renderError() {
|
|
40
40
|
return !this.background?.failedElement
|
|
41
|
-
? html `<uui-box
|
|
42
|
-
><umb-localize key="jumooProcBackground_error"></umb-localize
|
|
43
|
-
></uui-box>
|
|
41
|
+
? html `<uui-box
|
|
42
|
+
><umb-localize key="jumooProcBackground_error"></umb-localize
|
|
43
|
+
></uui-box>
|
|
44
44
|
<pre>${JSON.stringify(this.state, null, 1)}</pre>`
|
|
45
45
|
: html `${this.renderElement(this.background.failedElement)}`;
|
|
46
46
|
}
|
|
47
47
|
renderElement(element) {
|
|
48
|
-
return html `<umb-extension-slot
|
|
49
|
-
type="jumoo-process-step"
|
|
50
|
-
.filter=${(ext) => ext.elementName === element}
|
|
48
|
+
return html `<umb-extension-slot
|
|
49
|
+
type="jumoo-process-step"
|
|
50
|
+
.filter=${(ext) => ext.elementName === element}
|
|
51
51
|
.props=${{
|
|
52
52
|
pipelineId: this.pipelineId,
|
|
53
53
|
state: this.state,
|
|
@@ -55,16 +55,16 @@ let JumooPipelineBackgroundElement = class JumooPipelineBackgroundElement extend
|
|
|
55
55
|
}}></umb-extension-slot>`;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
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
|
-
}
|
|
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
|
+
}
|
|
68
68
|
`;
|
|
69
69
|
__decorate([
|
|
70
70
|
property({ type: String })
|