@jumoo/usync 17.5.3-prerelease.16 → 18.2.1
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.gen.js +1 -1
- package/dist/api/index.d.ts +2 -3
- package/dist/api/index.js +1 -2
- package/dist/api/sdk.gen.d.ts +18 -31
- package/dist/api/sdk.gen.js +93 -152
- package/dist/api/types.gen.d.ts +113 -152
- package/dist/components/usync-action-box.js +15 -5
- package/dist/components/usync-progress-box.js +13 -5
- package/dist/components/usync-result-row.js +4 -0
- package/dist/components/usync-results-group-view.js +11 -3
- package/dist/components/usync-results-view.js +6 -13
- package/dist/constants.js +1 -1
- package/dist/dialogs/details-modal-element.d.ts +0 -15
- package/dist/dialogs/details-modal-element.js +19 -219
- package/dist/dialogs/details-modal-token.d.ts +1 -10
- package/dist/dialogs/error-modal-element.js +1 -0
- package/dist/dialogs/single-import-modal.element.js +2 -1
- package/dist/exports.d.ts +0 -1
- package/dist/exports.js +0 -1
- package/dist/lang/files/da-dk.d.ts +0 -37
- package/dist/lang/files/da-dk.js +0 -37
- package/dist/lang/files/de-de.d.ts +0 -37
- package/dist/lang/files/de-de.js +0 -37
- package/dist/lang/files/en-us.d.ts +1 -50
- package/dist/lang/files/en-us.js +1 -50
- package/dist/lang/files/es-es.d.ts +0 -37
- package/dist/lang/files/es-es.js +0 -37
- package/dist/lang/files/fr-fr.d.ts +0 -37
- package/dist/lang/files/fr-fr.js +0 -37
- package/dist/lang/files/nl-nl.d.ts +0 -37
- package/dist/lang/files/nl-nl.js +0 -37
- package/dist/manifests.js +0 -2
- package/dist/repository/SyncAction.respositoy.d.ts +34 -22
- package/dist/repository/SyncAction.respositoy.js +0 -6
- package/dist/repository/sources/SyncAction.source.d.ts +33 -18
- package/dist/repository/sources/SyncAction.source.js +9 -14
- package/dist/repository/sources/SyncMigration.source.js +4 -4
- package/dist/repository/sources/SyncSettings.source.d.ts +16 -6
- package/dist/repository/sources/SyncSettings.source.js +5 -5
- package/dist/workspace/components/usync-action-button.d.ts +3 -2
- package/dist/workspace/components/usync-action-button.js +35 -27
- package/dist/workspace/views/default/default.element.js +2 -2
- package/dist/workspace/workspace.context.d.ts +10 -5
- package/package.json +10 -3
- package/dist/components/usync-content-preview.d.ts +0 -27
- package/dist/components/usync-content-preview.js +0 -532
- package/dist/components/usync-content-type-preview.d.ts +0 -25
- package/dist/components/usync-content-type-preview.js +0 -530
- package/dist/components/usync-data-type-preview.d.ts +0 -21
- package/dist/components/usync-data-type-preview.js +0 -295
- package/dist/preview/index.d.ts +0 -1
- package/dist/preview/index.js +0 -1
- package/dist/preview/manifest.d.ts +0 -2
- package/dist/preview/manifest.js +0 -22
- package/dist/preview/types.d.ts +0 -72
- package/dist/preview/types.js +0 -2
- package/dist/utils/preview/content-type-diff.d.ts +0 -18
- package/dist/utils/preview/content-type-diff.js +0 -72
- package/dist/utils/preview/content-type-layout.d.ts +0 -39
- package/dist/utils/preview/content-type-layout.js +0 -100
package/dist/api/types.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
|
-
baseUrl: '
|
|
2
|
+
baseUrl: 'https://localhost:44304/' | (string & {});
|
|
3
3
|
};
|
|
4
4
|
export declare enum ChangeDetailType {
|
|
5
5
|
NO_CHANGE = "NoChange",
|
|
@@ -27,6 +27,18 @@ export declare enum ChangeType {
|
|
|
27
27
|
CLEAN = "Clean",
|
|
28
28
|
REMOVED = "Removed"
|
|
29
29
|
}
|
|
30
|
+
export type EntityTagHeaderValue = {
|
|
31
|
+
tag: StringSegment;
|
|
32
|
+
isWeak: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type FileContentResult = {
|
|
35
|
+
fileContents: string;
|
|
36
|
+
contentType: null | string;
|
|
37
|
+
fileDownloadName: null | string;
|
|
38
|
+
lastModified?: null | string;
|
|
39
|
+
entityTag?: null | EntityTagHeaderValue;
|
|
40
|
+
enableRangeProcessing: boolean;
|
|
41
|
+
};
|
|
30
42
|
export type HandlerSettings = {
|
|
31
43
|
enabled: boolean;
|
|
32
44
|
actions: Array<string>;
|
|
@@ -49,18 +61,25 @@ export declare enum HandlerStatus {
|
|
|
49
61
|
export type PerformActionRequest = {
|
|
50
62
|
requestId: string;
|
|
51
63
|
action: string;
|
|
52
|
-
stepNumber: number;
|
|
53
|
-
options?:
|
|
54
|
-
username?:
|
|
64
|
+
stepNumber: number | string;
|
|
65
|
+
options?: null | USyncOptions;
|
|
66
|
+
username?: null | string;
|
|
55
67
|
};
|
|
56
68
|
export type PerformActionResponse = {
|
|
57
69
|
requestId: string;
|
|
58
|
-
status?: Array<SyncHandlerSummary
|
|
59
|
-
actions?: Array<USyncActionView
|
|
70
|
+
status?: null | Array<SyncHandlerSummary>;
|
|
71
|
+
actions?: null | Array<USyncActionView>;
|
|
60
72
|
complete: boolean;
|
|
61
73
|
inBackground: boolean;
|
|
62
|
-
operationId?:
|
|
63
|
-
message?:
|
|
74
|
+
operationId?: null | string;
|
|
75
|
+
message?: null | string;
|
|
76
|
+
};
|
|
77
|
+
export type StringSegment = {
|
|
78
|
+
buffer?: null | string;
|
|
79
|
+
offset: number | string;
|
|
80
|
+
length: number | string;
|
|
81
|
+
value?: null | string;
|
|
82
|
+
hasValue: boolean;
|
|
64
83
|
};
|
|
65
84
|
export type SyncActionButton = {
|
|
66
85
|
key: string;
|
|
@@ -77,11 +96,11 @@ export type SyncActionGroup = {
|
|
|
77
96
|
icon: string;
|
|
78
97
|
groupName: string;
|
|
79
98
|
buttons: Array<SyncActionButton>;
|
|
80
|
-
lastSync?:
|
|
99
|
+
lastSync?: null | string;
|
|
81
100
|
};
|
|
82
101
|
export type SyncFileVersionCheckResult = {
|
|
83
102
|
isCurrent: boolean;
|
|
84
|
-
formatVersion?:
|
|
103
|
+
formatVersion?: null | string;
|
|
85
104
|
hmacMatch: boolean;
|
|
86
105
|
};
|
|
87
106
|
export declare enum SyncFolderMode {
|
|
@@ -93,45 +112,34 @@ export type SyncHandlerSummary = {
|
|
|
93
112
|
icon: string;
|
|
94
113
|
name: string;
|
|
95
114
|
status: HandlerStatus;
|
|
96
|
-
changes: number;
|
|
115
|
+
changes: number | string;
|
|
97
116
|
inError: boolean;
|
|
98
117
|
};
|
|
99
|
-
export type SyncItemPreviewResponse = {
|
|
100
|
-
key: string;
|
|
101
|
-
handler: string;
|
|
102
|
-
itemType: string;
|
|
103
|
-
entityType: string;
|
|
104
|
-
isDelete: boolean;
|
|
105
|
-
success: boolean;
|
|
106
|
-
message?: string | null;
|
|
107
|
-
preview?: unknown;
|
|
108
|
-
details: Array<USyncChange>;
|
|
109
|
-
};
|
|
110
118
|
export type SyncLegacyCheckResponse = {
|
|
111
119
|
hasLegacy: boolean;
|
|
112
|
-
legacyFolder?:
|
|
120
|
+
legacyFolder?: null | string;
|
|
113
121
|
legacyTypes: Array<string>;
|
|
114
122
|
latestFolder: string;
|
|
115
123
|
latestVersion: string;
|
|
116
124
|
};
|
|
117
125
|
export type SyncOperationStatusResponse = {
|
|
118
126
|
operationId: string;
|
|
119
|
-
requestId?:
|
|
120
|
-
action?:
|
|
127
|
+
requestId?: null | string;
|
|
128
|
+
action?: null | string;
|
|
121
129
|
operationStatus: string;
|
|
122
130
|
complete: boolean;
|
|
123
|
-
status?: Array<SyncHandlerSummary
|
|
124
|
-
actions?: Array<USyncActionView
|
|
125
|
-
message?:
|
|
131
|
+
status?: null | Array<SyncHandlerSummary>;
|
|
132
|
+
actions?: null | Array<USyncActionView>;
|
|
133
|
+
message?: null | string;
|
|
126
134
|
};
|
|
127
135
|
export declare enum SyncProcessingMode {
|
|
128
136
|
NORMAL = "Normal",
|
|
129
137
|
BACKGROUND = "Background"
|
|
130
138
|
}
|
|
131
139
|
export type SyncRunningOperationResponse = {
|
|
132
|
-
operationId?:
|
|
133
|
-
requestId?:
|
|
134
|
-
action?:
|
|
140
|
+
operationId?: null | string;
|
|
141
|
+
requestId?: null | string;
|
|
142
|
+
action?: null | string;
|
|
135
143
|
};
|
|
136
144
|
export type SyncSelectableSet = {
|
|
137
145
|
name: string;
|
|
@@ -149,13 +157,13 @@ export type USyncActionView = {
|
|
|
149
157
|
change: ChangeType;
|
|
150
158
|
success: boolean;
|
|
151
159
|
details: Array<USyncChange>;
|
|
152
|
-
message?:
|
|
160
|
+
message?: null | string;
|
|
153
161
|
};
|
|
154
162
|
export type USyncAddonInfo = {
|
|
155
163
|
version: string;
|
|
156
164
|
};
|
|
157
165
|
export type USyncAddonSplash = {
|
|
158
|
-
[key: string]:
|
|
166
|
+
[key: string]: unknown;
|
|
159
167
|
};
|
|
160
168
|
export type USyncChange = {
|
|
161
169
|
success: boolean;
|
|
@@ -205,17 +213,15 @@ export type USyncSettings = {
|
|
|
205
213
|
failOnMissingParent: boolean;
|
|
206
214
|
failOnDuplicates: boolean;
|
|
207
215
|
cacheFolderKeys: boolean;
|
|
216
|
+
cacheImportState: boolean;
|
|
208
217
|
showVersionCheckWarning: boolean;
|
|
209
|
-
customMappings: {
|
|
210
|
-
[key: string]: string;
|
|
211
|
-
};
|
|
212
218
|
enableHistory: boolean;
|
|
213
219
|
defaultExtension: string;
|
|
214
220
|
importOnFirstBoot: boolean;
|
|
215
221
|
firstBootGroup: string;
|
|
216
222
|
disableDashboard: boolean;
|
|
217
223
|
summaryDashboard: boolean;
|
|
218
|
-
summaryLimit: number;
|
|
224
|
+
summaryLimit: number | string;
|
|
219
225
|
hideAddOns: string;
|
|
220
226
|
disableNotificationSuppression: boolean;
|
|
221
227
|
backgroundNotifications: boolean;
|
|
@@ -226,25 +232,6 @@ export type USyncSettings = {
|
|
|
226
232
|
additionalBadNames: Array<string>;
|
|
227
233
|
includeWindowsReservedNames: boolean;
|
|
228
234
|
};
|
|
229
|
-
export type GetActionsData = {
|
|
230
|
-
body?: never;
|
|
231
|
-
path?: never;
|
|
232
|
-
query?: never;
|
|
233
|
-
url: '/umbraco/usync/api/v1/Actions';
|
|
234
|
-
};
|
|
235
|
-
export type GetActionsErrors = {
|
|
236
|
-
/**
|
|
237
|
-
* The resource is protected and requires an authentication token
|
|
238
|
-
*/
|
|
239
|
-
401: unknown;
|
|
240
|
-
};
|
|
241
|
-
export type GetActionsResponses = {
|
|
242
|
-
/**
|
|
243
|
-
* OK
|
|
244
|
-
*/
|
|
245
|
-
200: Array<SyncActionGroup>;
|
|
246
|
-
};
|
|
247
|
-
export type GetActionsResponse = GetActionsResponses[keyof GetActionsResponses];
|
|
248
235
|
export type GetActionsBySetData = {
|
|
249
236
|
body?: never;
|
|
250
237
|
path?: never;
|
|
@@ -266,245 +253,219 @@ export type GetActionsBySetResponses = {
|
|
|
266
253
|
200: Array<SyncActionGroup>;
|
|
267
254
|
};
|
|
268
255
|
export type GetActionsBySetResponse = GetActionsBySetResponses[keyof GetActionsBySetResponses];
|
|
269
|
-
export type
|
|
256
|
+
export type PostDownloadData = {
|
|
270
257
|
body?: never;
|
|
271
258
|
path?: never;
|
|
272
259
|
query?: never;
|
|
273
260
|
url: '/umbraco/usync/api/v1/Download';
|
|
274
261
|
};
|
|
275
|
-
export type
|
|
262
|
+
export type PostDownloadErrors = {
|
|
276
263
|
/**
|
|
277
264
|
* The resource is protected and requires an authentication token
|
|
278
265
|
*/
|
|
279
266
|
401: unknown;
|
|
280
267
|
};
|
|
281
|
-
export type
|
|
268
|
+
export type PostDownloadResponses = {
|
|
282
269
|
/**
|
|
283
270
|
* OK
|
|
284
271
|
*/
|
|
285
|
-
200:
|
|
272
|
+
200: FileContentResult;
|
|
286
273
|
};
|
|
287
|
-
export type
|
|
288
|
-
export type
|
|
289
|
-
body
|
|
290
|
-
path?: never;
|
|
291
|
-
query?: never;
|
|
292
|
-
url: '/umbraco/usync/api/v1/GetSyncFileInfo';
|
|
293
|
-
};
|
|
294
|
-
export type GetSyncFileInfoErrors = {
|
|
295
|
-
/**
|
|
296
|
-
* The resource is protected and requires an authentication token
|
|
297
|
-
*/
|
|
298
|
-
401: unknown;
|
|
299
|
-
};
|
|
300
|
-
export type GetSyncFileInfoResponses = {
|
|
301
|
-
/**
|
|
302
|
-
* OK
|
|
303
|
-
*/
|
|
304
|
-
200: SyncFileVersionCheckResult;
|
|
305
|
-
};
|
|
306
|
-
export type GetSyncFileInfoResponse = GetSyncFileInfoResponses[keyof GetSyncFileInfoResponses];
|
|
307
|
-
export type ImportSingleData = {
|
|
308
|
-
body?: USyncActionView;
|
|
274
|
+
export type PostDownloadResponse = PostDownloadResponses[keyof PostDownloadResponses];
|
|
275
|
+
export type PostImportData = {
|
|
276
|
+
body: USyncActionView;
|
|
309
277
|
path?: never;
|
|
310
278
|
query?: never;
|
|
311
279
|
url: '/umbraco/usync/api/v1/Import';
|
|
312
280
|
};
|
|
313
|
-
export type
|
|
281
|
+
export type PostImportErrors = {
|
|
314
282
|
/**
|
|
315
283
|
* The resource is protected and requires an authentication token
|
|
316
284
|
*/
|
|
317
285
|
401: unknown;
|
|
318
286
|
};
|
|
319
|
-
export type
|
|
287
|
+
export type PostImportResponses = {
|
|
320
288
|
/**
|
|
321
289
|
* OK
|
|
322
290
|
*/
|
|
323
291
|
200: USyncActionView;
|
|
324
292
|
};
|
|
325
|
-
export type
|
|
326
|
-
export type
|
|
327
|
-
body
|
|
293
|
+
export type PostImportResponse = PostImportResponses[keyof PostImportResponses];
|
|
294
|
+
export type PostPerformData = {
|
|
295
|
+
body: PerformActionRequest;
|
|
328
296
|
path?: never;
|
|
329
297
|
query?: never;
|
|
330
298
|
url: '/umbraco/usync/api/v1/Perform';
|
|
331
299
|
};
|
|
332
|
-
export type
|
|
300
|
+
export type PostPerformErrors = {
|
|
333
301
|
/**
|
|
334
302
|
* The resource is protected and requires an authentication token
|
|
335
303
|
*/
|
|
336
304
|
401: unknown;
|
|
337
305
|
};
|
|
338
|
-
export type
|
|
306
|
+
export type PostPerformResponses = {
|
|
339
307
|
/**
|
|
340
308
|
* OK
|
|
341
309
|
*/
|
|
342
310
|
200: PerformActionResponse;
|
|
343
311
|
};
|
|
344
|
-
export type
|
|
345
|
-
export type
|
|
312
|
+
export type PostPerformResponse = PostPerformResponses[keyof PostPerformResponses];
|
|
313
|
+
export type PostProcessUploadData = {
|
|
346
314
|
body?: never;
|
|
347
315
|
path?: never;
|
|
348
316
|
query?: {
|
|
349
|
-
|
|
350
|
-
key?: string;
|
|
317
|
+
tempKey?: string;
|
|
351
318
|
};
|
|
352
|
-
url: '/umbraco/usync/api/v1/
|
|
319
|
+
url: '/umbraco/usync/api/v1/ProcessUpload';
|
|
353
320
|
};
|
|
354
|
-
export type
|
|
321
|
+
export type PostProcessUploadErrors = {
|
|
355
322
|
/**
|
|
356
323
|
* The resource is protected and requires an authentication token
|
|
357
324
|
*/
|
|
358
325
|
401: unknown;
|
|
359
|
-
/**
|
|
360
|
-
* Not Found
|
|
361
|
-
*/
|
|
362
|
-
404: unknown;
|
|
363
326
|
};
|
|
364
|
-
export type
|
|
327
|
+
export type PostProcessUploadResponses = {
|
|
365
328
|
/**
|
|
366
329
|
* OK
|
|
367
330
|
*/
|
|
368
|
-
200:
|
|
331
|
+
200: UploadImportResult;
|
|
369
332
|
};
|
|
370
|
-
export type
|
|
371
|
-
export type
|
|
333
|
+
export type PostProcessUploadResponse = PostProcessUploadResponses[keyof PostProcessUploadResponses];
|
|
334
|
+
export type GetRunningData = {
|
|
372
335
|
body?: never;
|
|
373
336
|
path?: never;
|
|
374
|
-
query?:
|
|
375
|
-
|
|
376
|
-
};
|
|
377
|
-
url: '/umbraco/usync/api/v1/ProcessUpload';
|
|
337
|
+
query?: never;
|
|
338
|
+
url: '/umbraco/usync/api/v1/Running';
|
|
378
339
|
};
|
|
379
|
-
export type
|
|
340
|
+
export type GetRunningErrors = {
|
|
380
341
|
/**
|
|
381
342
|
* The resource is protected and requires an authentication token
|
|
382
343
|
*/
|
|
383
344
|
401: unknown;
|
|
384
345
|
};
|
|
385
|
-
export type
|
|
346
|
+
export type GetRunningResponses = {
|
|
386
347
|
/**
|
|
387
348
|
* OK
|
|
388
349
|
*/
|
|
389
|
-
200:
|
|
350
|
+
200: SyncRunningOperationResponse;
|
|
390
351
|
};
|
|
391
|
-
export type
|
|
392
|
-
export type
|
|
352
|
+
export type GetRunningResponse = GetRunningResponses[keyof GetRunningResponses];
|
|
353
|
+
export type GetStatusData = {
|
|
393
354
|
body?: never;
|
|
394
355
|
path?: never;
|
|
395
|
-
query?:
|
|
396
|
-
|
|
356
|
+
query?: {
|
|
357
|
+
operationId?: string;
|
|
358
|
+
};
|
|
359
|
+
url: '/umbraco/usync/api/v1/Status';
|
|
397
360
|
};
|
|
398
|
-
export type
|
|
361
|
+
export type GetStatusErrors = {
|
|
399
362
|
/**
|
|
400
363
|
* The resource is protected and requires an authentication token
|
|
401
364
|
*/
|
|
402
365
|
401: unknown;
|
|
403
366
|
};
|
|
404
|
-
export type
|
|
367
|
+
export type GetStatusResponses = {
|
|
405
368
|
/**
|
|
406
369
|
* OK
|
|
407
370
|
*/
|
|
408
|
-
200:
|
|
371
|
+
200: SyncOperationStatusResponse;
|
|
409
372
|
};
|
|
410
|
-
export type
|
|
411
|
-
export type
|
|
373
|
+
export type GetStatusResponse = GetStatusResponses[keyof GetStatusResponses];
|
|
374
|
+
export type GetSyncFileInfoData = {
|
|
412
375
|
body?: never;
|
|
413
376
|
path?: never;
|
|
414
|
-
query?:
|
|
415
|
-
|
|
416
|
-
};
|
|
417
|
-
url: '/umbraco/usync/api/v1/Status';
|
|
377
|
+
query?: never;
|
|
378
|
+
url: '/umbraco/usync/api/v1/SyncFileInfo';
|
|
418
379
|
};
|
|
419
|
-
export type
|
|
380
|
+
export type GetSyncFileInfoErrors = {
|
|
420
381
|
/**
|
|
421
382
|
* The resource is protected and requires an authentication token
|
|
422
383
|
*/
|
|
423
384
|
401: unknown;
|
|
424
385
|
};
|
|
425
|
-
export type
|
|
386
|
+
export type GetSyncFileInfoResponses = {
|
|
426
387
|
/**
|
|
427
388
|
* OK
|
|
428
389
|
*/
|
|
429
|
-
200:
|
|
390
|
+
200: SyncFileVersionCheckResult;
|
|
430
391
|
};
|
|
431
|
-
export type
|
|
432
|
-
export type
|
|
392
|
+
export type GetSyncFileInfoResponse = GetSyncFileInfoResponses[keyof GetSyncFileInfoResponses];
|
|
393
|
+
export type PostMergeExportData = {
|
|
433
394
|
body?: never;
|
|
434
395
|
path?: never;
|
|
435
396
|
query?: never;
|
|
436
397
|
url: '/umbraco/usync/api/v1/MergeExport';
|
|
437
398
|
};
|
|
438
|
-
export type
|
|
399
|
+
export type PostMergeExportErrors = {
|
|
439
400
|
/**
|
|
440
401
|
* The resource is protected and requires an authentication token
|
|
441
402
|
*/
|
|
442
403
|
401: unknown;
|
|
443
404
|
};
|
|
444
|
-
export type
|
|
405
|
+
export type PostMergeExportResponses = {
|
|
445
406
|
/**
|
|
446
407
|
* OK
|
|
447
408
|
*/
|
|
448
|
-
200: number;
|
|
409
|
+
200: number | string;
|
|
449
410
|
};
|
|
450
|
-
export type
|
|
451
|
-
export type
|
|
411
|
+
export type PostMergeExportResponse = PostMergeExportResponses[keyof PostMergeExportResponses];
|
|
412
|
+
export type GetCheckLegacyData = {
|
|
452
413
|
body?: never;
|
|
453
414
|
path?: never;
|
|
454
415
|
query?: never;
|
|
455
416
|
url: '/umbraco/usync/api/v1/CheckLegacy';
|
|
456
417
|
};
|
|
457
|
-
export type
|
|
418
|
+
export type GetCheckLegacyErrors = {
|
|
458
419
|
/**
|
|
459
420
|
* The resource is protected and requires an authentication token
|
|
460
421
|
*/
|
|
461
422
|
401: unknown;
|
|
462
423
|
};
|
|
463
|
-
export type
|
|
424
|
+
export type GetCheckLegacyResponses = {
|
|
464
425
|
/**
|
|
465
426
|
* OK
|
|
466
427
|
*/
|
|
467
428
|
200: SyncLegacyCheckResponse;
|
|
468
429
|
};
|
|
469
|
-
export type
|
|
470
|
-
export type
|
|
430
|
+
export type GetCheckLegacyResponse = GetCheckLegacyResponses[keyof GetCheckLegacyResponses];
|
|
431
|
+
export type PostCopyLegacyData = {
|
|
471
432
|
body?: never;
|
|
472
433
|
path?: never;
|
|
473
434
|
query?: never;
|
|
474
435
|
url: '/umbraco/usync/api/v1/CopyLegacy';
|
|
475
436
|
};
|
|
476
|
-
export type
|
|
437
|
+
export type PostCopyLegacyErrors = {
|
|
477
438
|
/**
|
|
478
439
|
* The resource is protected and requires an authentication token
|
|
479
440
|
*/
|
|
480
441
|
401: unknown;
|
|
481
442
|
};
|
|
482
|
-
export type
|
|
443
|
+
export type PostCopyLegacyResponses = {
|
|
483
444
|
/**
|
|
484
445
|
* OK
|
|
485
446
|
*/
|
|
486
447
|
200: boolean;
|
|
487
448
|
};
|
|
488
|
-
export type
|
|
489
|
-
export type
|
|
449
|
+
export type PostCopyLegacyResponse = PostCopyLegacyResponses[keyof PostCopyLegacyResponses];
|
|
450
|
+
export type PostIgnoreLegacyData = {
|
|
490
451
|
body?: never;
|
|
491
452
|
path?: never;
|
|
492
453
|
query?: never;
|
|
493
454
|
url: '/umbraco/usync/api/v1/IgnoreLegacy';
|
|
494
455
|
};
|
|
495
|
-
export type
|
|
456
|
+
export type PostIgnoreLegacyErrors = {
|
|
496
457
|
/**
|
|
497
458
|
* The resource is protected and requires an authentication token
|
|
498
459
|
*/
|
|
499
460
|
401: unknown;
|
|
500
461
|
};
|
|
501
|
-
export type
|
|
462
|
+
export type PostIgnoreLegacyResponses = {
|
|
502
463
|
/**
|
|
503
464
|
* OK
|
|
504
465
|
*/
|
|
505
466
|
200: boolean;
|
|
506
467
|
};
|
|
507
|
-
export type
|
|
468
|
+
export type PostIgnoreLegacyResponse = PostIgnoreLegacyResponses[keyof PostIgnoreLegacyResponses];
|
|
508
469
|
export type GetAddOnsData = {
|
|
509
470
|
body?: never;
|
|
510
471
|
path?: never;
|
|
@@ -524,26 +485,26 @@ export type GetAddOnsResponses = {
|
|
|
524
485
|
200: USyncAddonInfo;
|
|
525
486
|
};
|
|
526
487
|
export type GetAddOnsResponse = GetAddOnsResponses[keyof GetAddOnsResponses];
|
|
527
|
-
export type
|
|
488
|
+
export type GetAddOnSplashData = {
|
|
528
489
|
body?: never;
|
|
529
490
|
path?: never;
|
|
530
491
|
query?: never;
|
|
531
492
|
url: '/umbraco/usync/api/v1/AddOnSplash';
|
|
532
493
|
};
|
|
533
|
-
export type
|
|
494
|
+
export type GetAddOnSplashErrors = {
|
|
534
495
|
/**
|
|
535
496
|
* The resource is protected and requires an authentication token
|
|
536
497
|
*/
|
|
537
498
|
401: unknown;
|
|
538
499
|
};
|
|
539
|
-
export type
|
|
500
|
+
export type GetAddOnSplashResponses = {
|
|
540
501
|
/**
|
|
541
502
|
* OK
|
|
542
503
|
*/
|
|
543
504
|
200: USyncAddonSplash;
|
|
544
505
|
};
|
|
545
|
-
export type
|
|
546
|
-
export type
|
|
506
|
+
export type GetAddOnSplashResponse = GetAddOnSplashResponses[keyof GetAddOnSplashResponses];
|
|
507
|
+
export type GetHandlerSettingsData = {
|
|
547
508
|
body?: never;
|
|
548
509
|
path?: never;
|
|
549
510
|
query?: {
|
|
@@ -551,19 +512,19 @@ export type GetHandlerSetSettingsData = {
|
|
|
551
512
|
};
|
|
552
513
|
url: '/umbraco/usync/api/v1/HandlerSettings';
|
|
553
514
|
};
|
|
554
|
-
export type
|
|
515
|
+
export type GetHandlerSettingsErrors = {
|
|
555
516
|
/**
|
|
556
517
|
* The resource is protected and requires an authentication token
|
|
557
518
|
*/
|
|
558
519
|
401: unknown;
|
|
559
520
|
};
|
|
560
|
-
export type
|
|
521
|
+
export type GetHandlerSettingsResponses = {
|
|
561
522
|
/**
|
|
562
523
|
* OK
|
|
563
524
|
*/
|
|
564
525
|
200: USyncHandlerSetSettings;
|
|
565
526
|
};
|
|
566
|
-
export type
|
|
527
|
+
export type GetHandlerSettingsResponse = GetHandlerSettingsResponses[keyof GetHandlerSettingsResponses];
|
|
567
528
|
export type GetSetsData = {
|
|
568
529
|
body?: never;
|
|
569
530
|
path?: never;
|
|
@@ -36,10 +36,12 @@ let uSyncActionBox = class uSyncActionBox extends UmbLitElement {
|
|
|
36
36
|
return html `
|
|
37
37
|
<uui-box class="action-box ${this.disabled ? 'disabled' : ''}">
|
|
38
38
|
<div class="box-content">
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
<div class="box-heading">
|
|
40
|
+
<h2 class="box-heading" title=${this.getLastSyncDate()}>
|
|
41
|
+
${this.localize.termOrDefault(`uSync_group${this.group?.groupName}`, this.group?.groupName ?? '')}
|
|
42
|
+
</h2>
|
|
43
|
+
<umb-icon name=${this.group?.icon}></umb-icon>
|
|
44
|
+
</div>
|
|
43
45
|
<div class="box-buttons">${dropdownButtons}</div>
|
|
44
46
|
</div>
|
|
45
47
|
</uui-box>
|
|
@@ -64,6 +66,7 @@ uSyncActionBox.styles = css `
|
|
|
64
66
|
|
|
65
67
|
.action-box {
|
|
66
68
|
transition: opacity 0.2s ease-in-out;
|
|
69
|
+
--uui-box-default-padding: var(--uui-size-space-4) 0;
|
|
67
70
|
}
|
|
68
71
|
|
|
69
72
|
.box-content {
|
|
@@ -79,7 +82,7 @@ uSyncActionBox.styles = css `
|
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
umb-icon {
|
|
82
|
-
margin: var(--uui-size-
|
|
85
|
+
margin: var(--uui-size-4) 0 var(--uui-size-4);
|
|
83
86
|
font-size: var(--uui-type-h2-size);
|
|
84
87
|
color: var(--uui-color-text-alt);
|
|
85
88
|
}
|
|
@@ -102,6 +105,13 @@ uSyncActionBox.styles = css `
|
|
|
102
105
|
font-style: italic;
|
|
103
106
|
font-size: var(--uui-size-5);
|
|
104
107
|
}
|
|
108
|
+
|
|
109
|
+
.box-heading {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: row-reverse;
|
|
112
|
+
gap: var(--uui-size-2);
|
|
113
|
+
align-items: center;
|
|
114
|
+
}
|
|
105
115
|
`;
|
|
106
116
|
__decorate([
|
|
107
117
|
property({ type: Object })
|
|
@@ -12,7 +12,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
var _uSyncProcessBox_instances, _uSyncProcessBox_hideProgress, _uSyncProcessBox_camelize;
|
|
13
13
|
import { customElement, LitElement, css, html, property, nothing, state, classMap, } from '@umbraco-cms/backoffice/external/lit';
|
|
14
14
|
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
|
|
15
|
-
import {
|
|
15
|
+
import { HandlerStatus } from '@jumoo/uSync';
|
|
16
|
+
import { USYNC_SIGNALR_CONTEXT_TOKEN, } from '@jumoo/uSync';
|
|
16
17
|
/**
|
|
17
18
|
* Provides the progress box while things happen.
|
|
18
19
|
*/
|
|
@@ -74,7 +75,9 @@ let uSyncProcessBox = class uSyncProcessBox extends UmbElementMixin(LitElement)
|
|
|
74
75
|
const progressClass = { hidden: !this.showProgress };
|
|
75
76
|
return html `
|
|
76
77
|
<uui-box>
|
|
77
|
-
<
|
|
78
|
+
<div class="header">
|
|
79
|
+
<h2>${this.localize.termOrDefault(`uSync_group${this.title}`, this.title)}</h2>
|
|
80
|
+
</div>
|
|
78
81
|
<div class="action-list">${actionHtml}</div>
|
|
79
82
|
<div class="update-box">${this.updateMsg?.message}</div>
|
|
80
83
|
<uui-progress-bar
|
|
@@ -120,8 +123,13 @@ uSyncProcessBox.styles = css `
|
|
|
120
123
|
display: block;
|
|
121
124
|
}
|
|
122
125
|
|
|
126
|
+
.header {
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
padding: var(uui-size-space-3);
|
|
130
|
+
}
|
|
131
|
+
|
|
123
132
|
h2 {
|
|
124
|
-
text-align: center;
|
|
125
133
|
margin: 0;
|
|
126
134
|
}
|
|
127
135
|
|
|
@@ -140,11 +148,11 @@ uSyncProcessBox.styles = css `
|
|
|
140
148
|
min-width: var(--uui-size-layout-5);
|
|
141
149
|
color: var(--uui-color-text-alt);
|
|
142
150
|
opacity: 0.67;
|
|
143
|
-
margin: var(--uui-size-space-
|
|
151
|
+
margin: var(--uui-size-space-2) 0;
|
|
144
152
|
}
|
|
145
153
|
|
|
146
154
|
.action h4 {
|
|
147
|
-
margin: var(--uui-size-space-
|
|
155
|
+
margin: var(--uui-size-space-2) 0;
|
|
148
156
|
}
|
|
149
157
|
|
|
150
158
|
.icon-holder {
|
|
@@ -38,9 +38,8 @@ let uSyncResultGroupView = class uSyncResultGroupView extends UmbLitElement {
|
|
|
38
38
|
class=${classMap({ expanded: this.expanded })}></uui-icon>
|
|
39
39
|
</div>
|
|
40
40
|
</div>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</uui-table>
|
|
41
|
+
|
|
42
|
+
${when(this.expanded == true, () => html `<uui-table>${this.renderGroupedRows(this.results)}</uui-table>`)}
|
|
44
43
|
</uui-box>
|
|
45
44
|
`;
|
|
46
45
|
}
|
|
@@ -59,6 +58,15 @@ uSyncResultGroupView.styles = css `
|
|
|
59
58
|
--uui-box-default-padding: 0;
|
|
60
59
|
}
|
|
61
60
|
|
|
61
|
+
uui-table {
|
|
62
|
+
border-top-left-radius: 0;
|
|
63
|
+
border-top-right-radius: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
usync-result-row:last-child row {
|
|
67
|
+
border-bottom: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
62
70
|
.expanded {
|
|
63
71
|
border-bottom: 1px solid var(--uui-color-border);
|
|
64
72
|
}
|