@jumoo/usync-expansions 0.0.0-stage → 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 (134) hide show
  1. package/dist/api/client/client.gen.d.ts +2 -0
  2. package/dist/api/client/client.gen.js +216 -0
  3. package/dist/api/client/index.d.ts +10 -0
  4. package/dist/api/client/index.js +6 -0
  5. package/dist/api/client/types.gen.d.ts +120 -0
  6. package/dist/api/client/types.gen.js +2 -0
  7. package/dist/api/client/utils.gen.d.ts +37 -0
  8. package/dist/api/client/utils.gen.js +230 -0
  9. package/dist/api/client.gen.d.ts +12 -0
  10. package/dist/api/client.gen.js +3 -0
  11. package/dist/api/core/auth.gen.d.ts +25 -0
  12. package/dist/api/core/auth.gen.js +14 -0
  13. package/dist/api/core/bodySerializer.gen.d.ts +25 -0
  14. package/dist/api/core/bodySerializer.gen.js +57 -0
  15. package/dist/api/core/params.gen.d.ts +43 -0
  16. package/dist/api/core/params.gen.js +109 -0
  17. package/dist/api/core/pathSerializer.gen.d.ts +33 -0
  18. package/dist/api/core/pathSerializer.gen.js +106 -0
  19. package/dist/api/core/queryKeySerializer.gen.d.ts +18 -0
  20. package/dist/api/core/queryKeySerializer.gen.js +92 -0
  21. package/dist/api/core/serverSentEvents.gen.d.ts +71 -0
  22. package/dist/api/core/serverSentEvents.gen.js +132 -0
  23. package/dist/api/core/types.gen.d.ts +83 -0
  24. package/dist/api/core/types.gen.js +2 -0
  25. package/dist/api/core/utils.gen.d.ts +19 -0
  26. package/dist/api/core/utils.gen.js +87 -0
  27. package/dist/api/index.d.ts +2 -0
  28. package/dist/api/index.js +3 -0
  29. package/dist/api/sdk.gen.d.ts +37 -0
  30. package/dist/api/sdk.gen.js +112 -0
  31. package/dist/api/types.gen.d.ts +520 -0
  32. package/dist/api/types.gen.js +74 -0
  33. package/dist/background/background-cancel.controller.d.ts +16 -0
  34. package/dist/background/background-cancel.controller.js +83 -0
  35. package/dist/background/background-pipeline.repository.d.ts +23 -0
  36. package/dist/background/background-pipeline.repository.js +33 -0
  37. package/dist/background/components/constants.d.ts +5 -0
  38. package/dist/background/components/constants.js +5 -0
  39. package/dist/background/components/index.d.ts +5 -0
  40. package/dist/background/components/index.js +5 -0
  41. package/dist/background/components/pending-list.element.d.ts +18 -0
  42. package/dist/background/components/pending-list.element.js +69 -0
  43. package/dist/background/components/pipelines-table.element.d.ts +15 -0
  44. package/dist/background/components/pipelines-table.element.js +60 -0
  45. package/dist/background/components/process-list.element.d.ts +10 -0
  46. package/dist/background/components/process-list.element.js +69 -0
  47. package/dist/background/components/queue-table.element.d.ts +15 -0
  48. package/dist/background/components/queue-table.element.js +50 -0
  49. package/dist/background/index.d.ts +1 -0
  50. package/dist/background/index.js +1 -0
  51. package/dist/background/manifest.d.ts +1 -0
  52. package/dist/background/manifest.js +24 -0
  53. package/dist/background/workspace/background-workspace-element.d.ts +11 -0
  54. package/dist/background/workspace/background-workspace-element.js +74 -0
  55. package/dist/components/index.d.ts +2 -0
  56. package/dist/components/index.js +2 -0
  57. package/dist/components/report-summary-view.d.ts +23 -0
  58. package/dist/components/report-summary-view.js +199 -0
  59. package/dist/components/usync-property-layout.d.ts +17 -0
  60. package/dist/components/usync-property-layout.js +159 -0
  61. package/dist/index.d.ts +5 -0
  62. package/dist/index.js +27 -0
  63. package/dist/items/index.d.ts +2 -0
  64. package/dist/items/index.js +2 -0
  65. package/dist/items/manifests.d.ts +1 -0
  66. package/dist/items/manifests.js +7 -0
  67. package/dist/items/sync-item.context.d.ts +10 -0
  68. package/dist/items/sync-item.context.js +29 -0
  69. package/dist/items/sync-item.repository.d.ts +22 -0
  70. package/dist/items/sync-item.repository.js +37 -0
  71. package/dist/lang/en.d.ts +30 -0
  72. package/dist/lang/en.js +29 -0
  73. package/dist/lang/manifest.d.ts +1 -0
  74. package/dist/lang/manifest.js +11 -0
  75. package/dist/licence/components/index.d.ts +2 -0
  76. package/dist/licence/components/index.js +2 -0
  77. package/dist/licence/components/licence-notice.d.ts +10 -0
  78. package/dist/licence/components/licence-notice.js +55 -0
  79. package/dist/licence/components/licence-status.view.d.ts +14 -0
  80. package/dist/licence/components/licence-status.view.js +50 -0
  81. package/dist/licence/components/styles.d.ts +1 -0
  82. package/dist/licence/components/styles.js +41 -0
  83. package/dist/licence/lang/en.d.ts +17 -0
  84. package/dist/licence/lang/en.js +17 -0
  85. package/dist/licence/lang/manifests.d.ts +1 -0
  86. package/dist/licence/lang/manifests.js +13 -0
  87. package/dist/licence/licence.context.d.ts +17 -0
  88. package/dist/licence/licence.context.js +66 -0
  89. package/dist/licence/licence.element.d.ts +19 -0
  90. package/dist/licence/licence.element.js +270 -0
  91. package/dist/licence/licence.repository.d.ts +15 -0
  92. package/dist/licence/licence.repository.js +42 -0
  93. package/dist/licence/manifest.d.ts +1 -0
  94. package/dist/licence/manifest.js +30 -0
  95. package/dist/licence/source/licence.source.d.ts +15 -0
  96. package/dist/licence/source/licence.source.js +39 -0
  97. package/dist/menu/manifest.d.ts +1 -0
  98. package/dist/menu/manifest.js +12 -0
  99. package/dist/restore/components/index.d.ts +1 -0
  100. package/dist/restore/components/index.js +1 -0
  101. package/dist/restore/components/restore-point-table.element.d.ts +21 -0
  102. package/dist/restore/components/restore-point-table.element.js +126 -0
  103. package/dist/restore/constants.d.ts +23 -0
  104. package/dist/restore/constants.js +30 -0
  105. package/dist/restore/index.d.ts +1 -0
  106. package/dist/restore/index.js +8 -0
  107. package/dist/restore/lang/en.d.ts +23 -0
  108. package/dist/restore/lang/en.js +33 -0
  109. package/dist/restore/lang/manifest.d.ts +1 -0
  110. package/dist/restore/lang/manifest.js +11 -0
  111. package/dist/restore/manifest.d.ts +1 -0
  112. package/dist/restore/manifest.js +63 -0
  113. package/dist/restore/restore.context.d.ts +10 -0
  114. package/dist/restore/restore.context.js +29 -0
  115. package/dist/restore/restore.repository.d.ts +15 -0
  116. package/dist/restore/restore.repository.js +43 -0
  117. package/dist/restore/steps/manifest.d.ts +1 -0
  118. package/dist/restore/steps/manifest.js +36 -0
  119. package/dist/restore/steps/restore-create-complete.d.ts +6 -0
  120. package/dist/restore/steps/restore-create-complete.js +33 -0
  121. package/dist/restore/steps/restore-create-element.d.ts +9 -0
  122. package/dist/restore/steps/restore-create-element.js +97 -0
  123. package/dist/restore/steps/restore-report-config-element.d.ts +14 -0
  124. package/dist/restore/steps/restore-report-config-element.js +105 -0
  125. package/dist/restore/steps/restore-report-element.d.ts +6 -0
  126. package/dist/restore/steps/restore-report-element.js +39 -0
  127. package/dist/restore/workspace/restore.workspace-view.element.d.ts +24 -0
  128. package/dist/restore/workspace/restore.workspace-view.element.js +198 -0
  129. package/dist/restore/workspace/restore.workspace.context.d.ts +17 -0
  130. package/dist/restore/workspace/restore.workspace.context.js +52 -0
  131. package/dist/restore/workspace/restore.workspace.element.d.ts +12 -0
  132. package/dist/restore/workspace/restore.workspace.element.js +91 -0
  133. package/package.json +52 -6
  134. package/README.md +0 -3
@@ -0,0 +1,520 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://localhost:44385/' | (string & {});
3
+ };
4
+ export declare enum ChangeDetailType {
5
+ NO_CHANGE = "NoChange",
6
+ CREATE = "Create",
7
+ UPDATE = "Update",
8
+ DELETE = "Delete",
9
+ ERROR = "Error",
10
+ WARNING = "Warning"
11
+ }
12
+ export declare enum ChangeType {
13
+ NO_CHANGE = "NoChange",
14
+ CREATE = "Create",
15
+ IMPORT = "Import",
16
+ EXPORT = "Export",
17
+ UPDATE = "Update",
18
+ DELETE = "Delete",
19
+ WILL_CHANGE = "WillChange",
20
+ INFORMATION = "Information",
21
+ ROLLEDBACK = "Rolledback",
22
+ FAIL = "Fail",
23
+ IMPORT_FAIL = "ImportFail",
24
+ MISMATCH = "Mismatch",
25
+ PARENT_MISSING = "ParentMissing",
26
+ HIDDEN = "Hidden",
27
+ CLEAN = "Clean",
28
+ REMOVED = "Removed"
29
+ }
30
+ export type Exception = {
31
+ targetSite?: MethodBase;
32
+ message: null | string;
33
+ data: null | {
34
+ [key: string]: unknown;
35
+ };
36
+ innerException?: Exception;
37
+ helpLink?: null | string;
38
+ source?: null | string;
39
+ hResult: number | string;
40
+ stackTrace?: null | string;
41
+ };
42
+ export type Licence = {
43
+ key: string;
44
+ domains: string;
45
+ expiry: string;
46
+ licenceType: LicenceType;
47
+ lastCheck: string;
48
+ autoRenews: boolean;
49
+ products: null | Array<LicencedProduct>;
50
+ message?: null | string;
51
+ checkedDomain?: null | string;
52
+ };
53
+ export type LicencedProduct = {
54
+ name?: null | string;
55
+ version?: null | string;
56
+ valid: boolean;
57
+ };
58
+ export type LicenceInfo = {
59
+ domains: string;
60
+ key: string;
61
+ };
62
+ export declare enum LicenceStatus {
63
+ LOADED = "Loaded",
64
+ BAD_FORMAT = "BadFormat",
65
+ INVALID = "Invalid",
66
+ BAD_HOST = "BadHost",
67
+ EXPIRED = "Expired",
68
+ TRIAL_EXPIRED = "TrialExpired",
69
+ UNVERIFIED = "Unverified",
70
+ MISSING = "Missing",
71
+ VALID = "Valid",
72
+ TRIAL = "Trial"
73
+ }
74
+ export type LicenceStatusView = {
75
+ show: boolean;
76
+ type?: null | string;
77
+ message?: null | string;
78
+ link?: null | string;
79
+ linkTitle?: null | string;
80
+ expires: string;
81
+ status: LicenceStatus;
82
+ licenceType: LicenceType;
83
+ checkedDomain?: null | string;
84
+ hasExpiry: boolean;
85
+ autoRenews: boolean;
86
+ };
87
+ export declare enum LicenceType {
88
+ NONE = "None",
89
+ DOMAIN = "Domain",
90
+ SUBSCRIPTION = "Subscription",
91
+ TRIAL = "Trial",
92
+ LIMITED_EXPIRY = "LimitedExpiry",
93
+ AGENCY = "Agency",
94
+ PARTNER = "Partner"
95
+ }
96
+ export type MethodBase = unknown;
97
+ export type RestorePoint = {
98
+ id: number | string;
99
+ key: string;
100
+ machineId: string;
101
+ machineName: string;
102
+ name: string;
103
+ action: string;
104
+ user: string;
105
+ created: string;
106
+ status: RestorePointStatus;
107
+ };
108
+ export type RestorePointProcessingOptions = {
109
+ source?: null | string;
110
+ title?: null | string;
111
+ user?: null | string;
112
+ key: string;
113
+ includeMedia: boolean;
114
+ isInline: boolean;
115
+ items: Array<{
116
+ flags: string;
117
+ change: 'NoChange' | 'Create' | 'Import' | 'Export' | 'Update' | 'Delete' | 'WillChange' | 'Information' | 'Rolledback' | 'Fail' | 'ImportFail' | 'Mismatch' | 'ParentMissing' | 'Hidden' | 'Clean' | 'Removed';
118
+ name: string;
119
+ icon?: null | string;
120
+ udi: {
121
+ uriValue: null | string;
122
+ entityType: null | string;
123
+ isRoot: boolean;
124
+ };
125
+ entityType: null | string;
126
+ }>;
127
+ options?: {
128
+ primaryType?: null | string;
129
+ removeOrphans: boolean;
130
+ includeFiles: boolean;
131
+ includeFileHash: boolean;
132
+ includeContent: boolean;
133
+ includeSystemFileHash: boolean;
134
+ includeSystemFiles: boolean;
135
+ includeMediaFiles: boolean;
136
+ cultures: Array<string>;
137
+ custom: {
138
+ [key: string]: string;
139
+ };
140
+ enableRollback: boolean;
141
+ createRestorePoint: boolean;
142
+ skipReport: boolean;
143
+ };
144
+ attributes?: {
145
+ orphanTypes: Array<string>;
146
+ folders: Array<string>;
147
+ systemFolders: Array<string>;
148
+ systemExclusions: Array<string>;
149
+ fileReplacements: Array<string>;
150
+ };
151
+ includeDisabledHandlers?: null | boolean;
152
+ handlerSet?: null | string;
153
+ handlerGroup?: null | string;
154
+ isBackgroundRequest?: null | boolean;
155
+ persistResults: boolean;
156
+ additionalData?: null | {
157
+ [key: string]: unknown;
158
+ };
159
+ };
160
+ export declare enum RestorePointStatus {
161
+ COMPLETE = "Complete",
162
+ PENDING = "Pending",
163
+ FAILED = "Failed"
164
+ }
165
+ export declare enum SyncDependencyFlags {
166
+ NONE = "None",
167
+ INCLUDE_CHILDREN = "IncludeChildren",
168
+ INCLUDE_ANCESTORS = "IncludeAncestors",
169
+ INCLUDE_DEPENDENCIES = "IncludeDependencies",
170
+ INCLUDE_VIEWS = "IncludeViews",
171
+ INCLUDE_MEDIA = "IncludeMedia",
172
+ INCLUDE_LINKED = "IncludeLinked",
173
+ INCLUDE_MEDIA_FILES = "IncludeMediaFiles",
174
+ INCLUDE_CONFIG = "IncludeConfig",
175
+ ADJACENT_ONLY = "AdjacentOnly",
176
+ ROOT_SYNC = "RootSync",
177
+ INCLUDE_CONTENTS = "IncludeContents",
178
+ PUBLISHED_DEPENDENCIES = "PublishedDependencies"
179
+ }
180
+ export type SyncEntity = {
181
+ name: string;
182
+ icon?: null | string;
183
+ udi: UdiModel;
184
+ entityType: null | string;
185
+ };
186
+ export type UdiModel = {
187
+ uriValue: null | string;
188
+ entityType: null | string;
189
+ isRoot: boolean;
190
+ };
191
+ export type USyncAction = {
192
+ handlerAlias?: null | string;
193
+ success: boolean;
194
+ itemType: string;
195
+ message?: null | string;
196
+ exception?: null | Exception;
197
+ change: ChangeType;
198
+ fileName?: null | string;
199
+ name: string;
200
+ path?: null | string;
201
+ requiresPostProcessing: boolean;
202
+ detailMessage?: null | string;
203
+ details?: null | Array<USyncChange>;
204
+ key: string;
205
+ };
206
+ export type USyncActionView = {
207
+ key: string;
208
+ name: string;
209
+ handler: string;
210
+ itemType: string;
211
+ change: ChangeType;
212
+ success: boolean;
213
+ details: Array<USyncChange>;
214
+ message?: null | string;
215
+ };
216
+ export type USyncChange = {
217
+ success: boolean;
218
+ name: string;
219
+ path: string;
220
+ oldValue: string;
221
+ newValue: string;
222
+ change: ChangeDetailType;
223
+ };
224
+ export type HasRootFilesData = {
225
+ body?: never;
226
+ path?: never;
227
+ query?: never;
228
+ url: '/umbraco/usync/api/v1/Complete/HasRootFiles';
229
+ };
230
+ export type HasRootFilesErrors = {
231
+ /**
232
+ * The resource is protected and requires an authentication token
233
+ */
234
+ 401: unknown;
235
+ };
236
+ export type HasRootFilesResponses = {
237
+ /**
238
+ * OK
239
+ */
240
+ 200: boolean;
241
+ };
242
+ export type HasRootFilesResponse = HasRootFilesResponses[keyof HasRootFilesResponses];
243
+ export type GetActionViewData = {
244
+ body?: never;
245
+ path?: never;
246
+ query?: never;
247
+ url: '/umbraco/usync/api/v1/Complete/GetActionViewModel';
248
+ };
249
+ export type GetActionViewErrors = {
250
+ /**
251
+ * The resource is protected and requires an authentication token
252
+ */
253
+ 401: unknown;
254
+ /**
255
+ * Not Found
256
+ */
257
+ 404: unknown;
258
+ };
259
+ export type GetActionViewResponses = {
260
+ /**
261
+ * OK
262
+ */
263
+ 200: USyncActionView;
264
+ };
265
+ export type GetActionViewResponse = GetActionViewResponses[keyof GetActionViewResponses];
266
+ export type GetSyncItemData = {
267
+ body?: never;
268
+ path?: never;
269
+ query?: {
270
+ entityType?: string;
271
+ id?: string;
272
+ };
273
+ url: '/umbraco/usync/api/v1/Complete/GetSyncItem';
274
+ };
275
+ export type GetSyncItemErrors = {
276
+ /**
277
+ * The resource is protected and requires an authentication token
278
+ */
279
+ 401: unknown;
280
+ };
281
+ export type GetSyncItemResponses = {
282
+ /**
283
+ * OK
284
+ */
285
+ 200: SyncEntity;
286
+ };
287
+ export type GetSyncItemResponse = GetSyncItemResponses[keyof GetSyncItemResponses];
288
+ export type CheckLegacyData = {
289
+ body?: never;
290
+ path?: never;
291
+ query?: {
292
+ product?: string;
293
+ version?: string;
294
+ };
295
+ url: '/umbraco/usync/api/v1/Complete/CheckLegacy';
296
+ };
297
+ export type CheckLegacyErrors = {
298
+ /**
299
+ * The resource is protected and requires an authentication token
300
+ */
301
+ 401: unknown;
302
+ };
303
+ export type CheckLegacyResponses = {
304
+ /**
305
+ * OK
306
+ */
307
+ 200: string;
308
+ };
309
+ export type CheckLegacyResponse = CheckLegacyResponses[keyof CheckLegacyResponses];
310
+ export type GetLicenceData = {
311
+ body?: never;
312
+ path?: never;
313
+ query?: {
314
+ product?: string;
315
+ version?: string;
316
+ };
317
+ url: '/umbraco/usync/api/v1/Complete/GetLicence';
318
+ };
319
+ export type GetLicenceErrors = {
320
+ /**
321
+ * The resource is protected and requires an authentication token
322
+ */
323
+ 401: unknown;
324
+ };
325
+ export type GetLicenceResponses = {
326
+ /**
327
+ * OK
328
+ */
329
+ 200: Licence;
330
+ };
331
+ export type GetLicenceResponse = GetLicenceResponses[keyof GetLicenceResponses];
332
+ export type GetLicenceStatusData = {
333
+ body?: never;
334
+ path?: never;
335
+ query?: {
336
+ product?: string;
337
+ version?: string;
338
+ };
339
+ url: '/umbraco/usync/api/v1/Complete/GetLicenceStatus';
340
+ };
341
+ export type GetLicenceStatusErrors = {
342
+ /**
343
+ * The resource is protected and requires an authentication token
344
+ */
345
+ 401: unknown;
346
+ };
347
+ export type GetLicenceStatusResponses = {
348
+ /**
349
+ * OK
350
+ */
351
+ 200: LicenceStatusView;
352
+ };
353
+ export type GetLicenceStatusResponse = GetLicenceStatusResponses[keyof GetLicenceStatusResponses];
354
+ export type IsLicencedData = {
355
+ body?: never;
356
+ path?: never;
357
+ query?: {
358
+ product?: string;
359
+ version?: string;
360
+ };
361
+ url: '/umbraco/usync/api/v1/Complete/IsLicenced';
362
+ };
363
+ export type IsLicencedErrors = {
364
+ /**
365
+ * The resource is protected and requires an authentication token
366
+ */
367
+ 401: unknown;
368
+ };
369
+ export type IsLicencedResponses = {
370
+ /**
371
+ * OK
372
+ */
373
+ 200: boolean;
374
+ };
375
+ export type IsLicencedResponse = IsLicencedResponses[keyof IsLicencedResponses];
376
+ export type SaveLicenceData = {
377
+ body: LicenceInfo;
378
+ path?: never;
379
+ query?: never;
380
+ url: '/umbraco/usync/api/v1/Complete/SaveLicence';
381
+ };
382
+ export type SaveLicenceErrors = {
383
+ /**
384
+ * The resource is protected and requires an authentication token
385
+ */
386
+ 401: unknown;
387
+ };
388
+ export type SaveLicenceResponses = {
389
+ /**
390
+ * OK
391
+ */
392
+ 200: boolean;
393
+ };
394
+ export type SaveLicenceResponse = SaveLicenceResponses[keyof SaveLicenceResponses];
395
+ export type CleanData = {
396
+ body?: never;
397
+ path?: never;
398
+ query?: {
399
+ id?: string;
400
+ };
401
+ url: '/umbraco/usync/api/v1/Complete/Clean';
402
+ };
403
+ export type CleanErrors = {
404
+ /**
405
+ * The resource is protected and requires an authentication token
406
+ */
407
+ 401: unknown;
408
+ };
409
+ export type CleanResponses = {
410
+ /**
411
+ * OK
412
+ */
413
+ 200: unknown;
414
+ };
415
+ export type GetRestorePointData = {
416
+ body?: never;
417
+ path?: never;
418
+ query?: {
419
+ key?: string;
420
+ };
421
+ url: '/umbraco/usync/api/v1/Complete/Get';
422
+ };
423
+ export type GetRestorePointErrors = {
424
+ /**
425
+ * The resource is protected and requires an authentication token
426
+ */
427
+ 401: unknown;
428
+ /**
429
+ * Not Found
430
+ */
431
+ 404: unknown;
432
+ };
433
+ export type GetRestorePointResponses = {
434
+ /**
435
+ * OK
436
+ */
437
+ 200: RestorePoint;
438
+ };
439
+ export type GetRestorePointResponse = GetRestorePointResponses[keyof GetRestorePointResponses];
440
+ export type GetAllData = {
441
+ body?: never;
442
+ path?: never;
443
+ query?: never;
444
+ url: '/umbraco/usync/api/v1/Complete/GetAll';
445
+ };
446
+ export type GetAllErrors = {
447
+ /**
448
+ * The resource is protected and requires an authentication token
449
+ */
450
+ 401: unknown;
451
+ };
452
+ export type GetAllResponses = {
453
+ /**
454
+ * OK
455
+ */
456
+ 200: Array<RestorePoint>;
457
+ };
458
+ export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
459
+ export type GetReportData = {
460
+ body?: never;
461
+ path?: never;
462
+ query?: {
463
+ id?: string;
464
+ };
465
+ url: '/umbraco/usync/api/v1/Complete/GetReport';
466
+ };
467
+ export type GetReportErrors = {
468
+ /**
469
+ * The resource is protected and requires an authentication token
470
+ */
471
+ 401: unknown;
472
+ };
473
+ export type GetReportResponses = {
474
+ /**
475
+ * OK
476
+ */
477
+ 200: Array<USyncAction>;
478
+ };
479
+ export type GetReportResponse = GetReportResponses[keyof GetReportResponses];
480
+ export type RemoveData = {
481
+ body?: never;
482
+ path?: never;
483
+ query?: {
484
+ id?: string;
485
+ };
486
+ url: '/umbraco/usync/api/v1/Complete/Remove';
487
+ };
488
+ export type RemoveErrors = {
489
+ /**
490
+ * The resource is protected and requires an authentication token
491
+ */
492
+ 401: unknown;
493
+ };
494
+ export type RemoveResponses = {
495
+ /**
496
+ * OK
497
+ */
498
+ 200: unknown;
499
+ };
500
+ export type ScanData = {
501
+ body?: never;
502
+ path?: never;
503
+ query?: never;
504
+ url: '/umbraco/usync/api/v1/Complete/Scan';
505
+ };
506
+ export type ScanErrors = {
507
+ /**
508
+ * The resource is protected and requires an authentication token
509
+ */
510
+ 401: unknown;
511
+ };
512
+ export type ScanResponses = {
513
+ /**
514
+ * OK
515
+ */
516
+ 200: {
517
+ [key: string]: number | string;
518
+ };
519
+ };
520
+ export type ScanResponse = ScanResponses[keyof ScanResponses];
@@ -0,0 +1,74 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export var ChangeDetailType;
3
+ (function (ChangeDetailType) {
4
+ ChangeDetailType["NO_CHANGE"] = "NoChange";
5
+ ChangeDetailType["CREATE"] = "Create";
6
+ ChangeDetailType["UPDATE"] = "Update";
7
+ ChangeDetailType["DELETE"] = "Delete";
8
+ ChangeDetailType["ERROR"] = "Error";
9
+ ChangeDetailType["WARNING"] = "Warning";
10
+ })(ChangeDetailType || (ChangeDetailType = {}));
11
+ export var ChangeType;
12
+ (function (ChangeType) {
13
+ ChangeType["NO_CHANGE"] = "NoChange";
14
+ ChangeType["CREATE"] = "Create";
15
+ ChangeType["IMPORT"] = "Import";
16
+ ChangeType["EXPORT"] = "Export";
17
+ ChangeType["UPDATE"] = "Update";
18
+ ChangeType["DELETE"] = "Delete";
19
+ ChangeType["WILL_CHANGE"] = "WillChange";
20
+ ChangeType["INFORMATION"] = "Information";
21
+ ChangeType["ROLLEDBACK"] = "Rolledback";
22
+ ChangeType["FAIL"] = "Fail";
23
+ ChangeType["IMPORT_FAIL"] = "ImportFail";
24
+ ChangeType["MISMATCH"] = "Mismatch";
25
+ ChangeType["PARENT_MISSING"] = "ParentMissing";
26
+ ChangeType["HIDDEN"] = "Hidden";
27
+ ChangeType["CLEAN"] = "Clean";
28
+ ChangeType["REMOVED"] = "Removed";
29
+ })(ChangeType || (ChangeType = {}));
30
+ export var LicenceStatus;
31
+ (function (LicenceStatus) {
32
+ LicenceStatus["LOADED"] = "Loaded";
33
+ LicenceStatus["BAD_FORMAT"] = "BadFormat";
34
+ LicenceStatus["INVALID"] = "Invalid";
35
+ LicenceStatus["BAD_HOST"] = "BadHost";
36
+ LicenceStatus["EXPIRED"] = "Expired";
37
+ LicenceStatus["TRIAL_EXPIRED"] = "TrialExpired";
38
+ LicenceStatus["UNVERIFIED"] = "Unverified";
39
+ LicenceStatus["MISSING"] = "Missing";
40
+ LicenceStatus["VALID"] = "Valid";
41
+ LicenceStatus["TRIAL"] = "Trial";
42
+ })(LicenceStatus || (LicenceStatus = {}));
43
+ export var LicenceType;
44
+ (function (LicenceType) {
45
+ LicenceType["NONE"] = "None";
46
+ LicenceType["DOMAIN"] = "Domain";
47
+ LicenceType["SUBSCRIPTION"] = "Subscription";
48
+ LicenceType["TRIAL"] = "Trial";
49
+ LicenceType["LIMITED_EXPIRY"] = "LimitedExpiry";
50
+ LicenceType["AGENCY"] = "Agency";
51
+ LicenceType["PARTNER"] = "Partner";
52
+ })(LicenceType || (LicenceType = {}));
53
+ export var RestorePointStatus;
54
+ (function (RestorePointStatus) {
55
+ RestorePointStatus["COMPLETE"] = "Complete";
56
+ RestorePointStatus["PENDING"] = "Pending";
57
+ RestorePointStatus["FAILED"] = "Failed";
58
+ })(RestorePointStatus || (RestorePointStatus = {}));
59
+ export var SyncDependencyFlags;
60
+ (function (SyncDependencyFlags) {
61
+ SyncDependencyFlags["NONE"] = "None";
62
+ SyncDependencyFlags["INCLUDE_CHILDREN"] = "IncludeChildren";
63
+ SyncDependencyFlags["INCLUDE_ANCESTORS"] = "IncludeAncestors";
64
+ SyncDependencyFlags["INCLUDE_DEPENDENCIES"] = "IncludeDependencies";
65
+ SyncDependencyFlags["INCLUDE_VIEWS"] = "IncludeViews";
66
+ SyncDependencyFlags["INCLUDE_MEDIA"] = "IncludeMedia";
67
+ SyncDependencyFlags["INCLUDE_LINKED"] = "IncludeLinked";
68
+ SyncDependencyFlags["INCLUDE_MEDIA_FILES"] = "IncludeMediaFiles";
69
+ SyncDependencyFlags["INCLUDE_CONFIG"] = "IncludeConfig";
70
+ SyncDependencyFlags["ADJACENT_ONLY"] = "AdjacentOnly";
71
+ SyncDependencyFlags["ROOT_SYNC"] = "RootSync";
72
+ SyncDependencyFlags["INCLUDE_CONTENTS"] = "IncludeContents";
73
+ SyncDependencyFlags["PUBLISHED_DEPENDENCIES"] = "PublishedDependencies";
74
+ })(SyncDependencyFlags || (SyncDependencyFlags = {}));
@@ -0,0 +1,16 @@
1
+ import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
2
+ import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
3
+ /**
4
+ * @description confirm, cancel and report - shared by the process and queue lists.
5
+ */
6
+ export declare class uSyncBackgroundCancelController extends UmbControllerBase {
7
+ #private;
8
+ constructor(host: UmbControllerHost);
9
+ /**
10
+ * @param id the pipeline id
11
+ * @param name what to call it in the confirm dialog (alias, note, etc.)
12
+ * @returns true if the cancel was accepted (the lists should be refreshed).
13
+ */
14
+ cancel(id: string, name?: string | null): Promise<boolean>;
15
+ }
16
+ export default uSyncBackgroundCancelController;
@@ -0,0 +1,83 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _uSyncBackgroundCancelController_instances, _uSyncBackgroundCancelController_repository, _uSyncBackgroundCancelController_localize, _uSyncBackgroundCancelController_errorMessage;
13
+ import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
14
+ import { UmbLocalizationController } from '@umbraco-cms/backoffice/localization-api';
15
+ import { umbConfirmModal } from '@umbraco-cms/backoffice/modal';
16
+ import { UMB_NOTIFICATION_CONTEXT } from '@umbraco-cms/backoffice/notification';
17
+ import { UmbApiError } from '@umbraco-cms/backoffice/resources';
18
+ import { uSyncBackgroundPipelineRepository } from './background-pipeline.repository.js';
19
+ /**
20
+ * @description confirm, cancel and report - shared by the process and queue lists.
21
+ */
22
+ export class uSyncBackgroundCancelController extends UmbControllerBase {
23
+ constructor(host) {
24
+ super(host);
25
+ _uSyncBackgroundCancelController_instances.add(this);
26
+ _uSyncBackgroundCancelController_repository.set(this, void 0);
27
+ _uSyncBackgroundCancelController_localize.set(this, void 0);
28
+ __classPrivateFieldSet(this, _uSyncBackgroundCancelController_repository, new uSyncBackgroundPipelineRepository(host), "f");
29
+ __classPrivateFieldSet(this, _uSyncBackgroundCancelController_localize, new UmbLocalizationController(host), "f");
30
+ }
31
+ /**
32
+ * @param id the pipeline id
33
+ * @param name what to call it in the confirm dialog (alias, note, etc.)
34
+ * @returns true if the cancel was accepted (the lists should be refreshed).
35
+ */
36
+ async cancel(id, name) {
37
+ try {
38
+ await umbConfirmModal(this, {
39
+ headline: __classPrivateFieldGet(this, _uSyncBackgroundCancelController_localize, "f").term('uSyncBackground_cancelHeadline'),
40
+ content: __classPrivateFieldGet(this, _uSyncBackgroundCancelController_localize, "f").term('uSyncBackground_cancelConfirm', name || id),
41
+ color: 'danger',
42
+ confirmLabel: __classPrivateFieldGet(this, _uSyncBackgroundCancelController_localize, "f").term('uSyncBackground_cancelRun'),
43
+ cancelLabel: __classPrivateFieldGet(this, _uSyncBackgroundCancelController_localize, "f").term('uSyncBackground_keepRun'),
44
+ });
45
+ }
46
+ catch {
47
+ return false; // closed the dialog.
48
+ }
49
+ const { error } = await __classPrivateFieldGet(this, _uSyncBackgroundCancelController_repository, "f").cancelPipeline(id);
50
+ const notifications = await this.getContext(UMB_NOTIFICATION_CONTEXT);
51
+ if (!error) {
52
+ notifications?.peek('positive', {
53
+ data: {
54
+ headline: __classPrivateFieldGet(this, _uSyncBackgroundCancelController_localize, "f").term('uSyncBackground_cancelledHeadline'),
55
+ message: __classPrivateFieldGet(this, _uSyncBackgroundCancelController_localize, "f").term('uSyncBackground_cancelledMessage'),
56
+ },
57
+ });
58
+ return true;
59
+ }
60
+ notifications?.peek('danger', {
61
+ data: {
62
+ headline: __classPrivateFieldGet(this, _uSyncBackgroundCancelController_localize, "f").term('uSyncBackground_cancelFailedHeadline'),
63
+ message: __classPrivateFieldGet(this, _uSyncBackgroundCancelController_instances, "m", _uSyncBackgroundCancelController_errorMessage).call(this, error),
64
+ },
65
+ });
66
+ return false;
67
+ }
68
+ }
69
+ _uSyncBackgroundCancelController_repository = new WeakMap(), _uSyncBackgroundCancelController_localize = new WeakMap(), _uSyncBackgroundCancelController_instances = new WeakSet(), _uSyncBackgroundCancelController_errorMessage = function _uSyncBackgroundCancelController_errorMessage(error) {
70
+ if (UmbApiError.isUmbApiError(error)) {
71
+ switch (error.status) {
72
+ case 403:
73
+ return __classPrivateFieldGet(this, _uSyncBackgroundCancelController_localize, "f").term('uSyncBackground_cancelForbidden');
74
+ case 404:
75
+ return __classPrivateFieldGet(this, _uSyncBackgroundCancelController_localize, "f").term('uSyncBackground_cancelNotFound');
76
+ case 409:
77
+ return __classPrivateFieldGet(this, _uSyncBackgroundCancelController_localize, "f").term('uSyncBackground_cancelFinished');
78
+ }
79
+ return error.problemDetails?.detail ?? error.message;
80
+ }
81
+ return error instanceof Error ? error.message : String(error);
82
+ };
83
+ export default uSyncBackgroundCancelController;