@jumoo/usync 0.0.0-stage → 17.5.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 (199) hide show
  1. package/LICENCE +373 -0
  2. package/README.md +10 -3
  3. package/dist/api/client/client.gen.d.ts +2 -0
  4. package/dist/api/client/client.gen.js +216 -0
  5. package/dist/api/client/index.d.ts +10 -0
  6. package/dist/api/client/index.js +6 -0
  7. package/dist/api/client/types.gen.d.ts +120 -0
  8. package/dist/api/client/types.gen.js +2 -0
  9. package/dist/api/client/utils.gen.d.ts +37 -0
  10. package/dist/api/client/utils.gen.js +230 -0
  11. package/dist/api/client.gen.d.ts +12 -0
  12. package/dist/api/client.gen.js +4 -0
  13. package/dist/api/core/auth.gen.d.ts +25 -0
  14. package/dist/api/core/auth.gen.js +14 -0
  15. package/dist/api/core/bodySerializer.gen.d.ts +25 -0
  16. package/dist/api/core/bodySerializer.gen.js +57 -0
  17. package/dist/api/core/params.gen.d.ts +43 -0
  18. package/dist/api/core/params.gen.js +109 -0
  19. package/dist/api/core/pathSerializer.gen.d.ts +33 -0
  20. package/dist/api/core/pathSerializer.gen.js +106 -0
  21. package/dist/api/core/queryKeySerializer.gen.d.ts +18 -0
  22. package/dist/api/core/queryKeySerializer.gen.js +92 -0
  23. package/dist/api/core/serverSentEvents.gen.d.ts +71 -0
  24. package/dist/api/core/serverSentEvents.gen.js +132 -0
  25. package/dist/api/core/types.gen.d.ts +83 -0
  26. package/dist/api/core/types.gen.js +2 -0
  27. package/dist/api/core/utils.gen.d.ts +19 -0
  28. package/dist/api/core/utils.gen.js +87 -0
  29. package/dist/api/index.d.ts +3 -0
  30. package/dist/api/index.js +4 -0
  31. package/dist/api/sdk.gen.d.ts +44 -0
  32. package/dist/api/sdk.gen.js +147 -0
  33. package/dist/api/types.gen.d.ts +567 -0
  34. package/dist/api/types.gen.js +47 -0
  35. package/dist/components/events.d.ts +11 -0
  36. package/dist/components/events.js +11 -0
  37. package/dist/components/index.d.ts +8 -0
  38. package/dist/components/index.js +9 -0
  39. package/dist/components/usync-action-box.d.ts +22 -0
  40. package/dist/components/usync-action-box.js +119 -0
  41. package/dist/components/usync-change-detail.d.ts +31 -0
  42. package/dist/components/usync-change-detail.js +709 -0
  43. package/dist/components/usync-change-view.d.ts +22 -0
  44. package/dist/components/usync-change-view.js +125 -0
  45. package/dist/components/usync-progress-box.d.ts +20 -0
  46. package/dist/components/usync-progress-box.js +223 -0
  47. package/dist/components/usync-result-row.d.ts +15 -0
  48. package/dist/components/usync-result-row.js +133 -0
  49. package/dist/components/usync-results-group-view.d.ts +19 -0
  50. package/dist/components/usync-results-group-view.js +110 -0
  51. package/dist/components/usync-results-view.d.ts +17 -0
  52. package/dist/components/usync-results-view.js +176 -0
  53. package/dist/components/usync-sync-file-info-view.d.ts +15 -0
  54. package/dist/components/usync-sync-file-info-view.js +62 -0
  55. package/dist/conditions/constants.d.ts +1 -0
  56. package/dist/conditions/constants.js +1 -0
  57. package/dist/conditions/index.d.ts +2 -0
  58. package/dist/conditions/index.js +2 -0
  59. package/dist/conditions/legacy-files.condition.d.ts +10 -0
  60. package/dist/conditions/legacy-files.condition.js +16 -0
  61. package/dist/conditions/manifest.d.ts +1 -0
  62. package/dist/conditions/manifest.js +18 -0
  63. package/dist/conditions/new-section.condition.d.ts +8 -0
  64. package/dist/conditions/new-section.condition.js +48 -0
  65. package/dist/constants.d.ts +30 -0
  66. package/dist/constants.js +38 -0
  67. package/dist/dialogs/details-modal-element.d.ts +18 -0
  68. package/dist/dialogs/details-modal-element.js +98 -0
  69. package/dist/dialogs/details-modal-token.d.ts +10 -0
  70. package/dist/dialogs/details-modal-token.js +7 -0
  71. package/dist/dialogs/error-modal-element.d.ts +7 -0
  72. package/dist/dialogs/error-modal-element.js +54 -0
  73. package/dist/dialogs/error-modal-token.d.ts +9 -0
  74. package/dist/dialogs/error-modal-token.js +6 -0
  75. package/dist/dialogs/index.d.ts +6 -0
  76. package/dist/dialogs/index.js +6 -0
  77. package/dist/dialogs/legacy-modal-element.d.ts +13 -0
  78. package/dist/dialogs/legacy-modal-element.js +78 -0
  79. package/dist/dialogs/manifest.d.ts +1 -0
  80. package/dist/dialogs/manifest.js +25 -0
  81. package/dist/dialogs/single-import-modal.element.d.ts +13 -0
  82. package/dist/dialogs/single-import-modal.element.js +105 -0
  83. package/dist/dialogs/single-import-modal.token.d.ts +9 -0
  84. package/dist/dialogs/single-import-modal.token.js +6 -0
  85. package/dist/exports.d.ts +10 -0
  86. package/dist/exports.js +10 -0
  87. package/dist/external/signalr/index.d.ts +1 -0
  88. package/dist/external/signalr/index.js +1 -0
  89. package/dist/hey-api.d.ts +11 -0
  90. package/dist/hey-api.js +14 -0
  91. package/dist/icons/icons.d.ts +5 -0
  92. package/dist/icons/icons.js +6 -0
  93. package/dist/icons/manifest.d.ts +1 -0
  94. package/dist/icons/manifest.js +7 -0
  95. package/dist/icons/svg/logo.d.ts +2 -0
  96. package/dist/icons/svg/logo.js +21 -0
  97. package/dist/index.d.ts +8 -0
  98. package/dist/index.js +11 -0
  99. package/dist/lang/files/da-dk.d.ts +130 -0
  100. package/dist/lang/files/da-dk.js +141 -0
  101. package/dist/lang/files/de-de.d.ts +130 -0
  102. package/dist/lang/files/de-de.js +141 -0
  103. package/dist/lang/files/en-us.d.ts +161 -0
  104. package/dist/lang/files/en-us.js +172 -0
  105. package/dist/lang/files/es-es.d.ts +130 -0
  106. package/dist/lang/files/es-es.js +141 -0
  107. package/dist/lang/files/fr-fr.d.ts +130 -0
  108. package/dist/lang/files/fr-fr.js +141 -0
  109. package/dist/lang/files/nl-nl.d.ts +130 -0
  110. package/dist/lang/files/nl-nl.js +141 -0
  111. package/dist/lang/manifest.d.ts +1 -0
  112. package/dist/lang/manifest.js +63 -0
  113. package/dist/manifests.d.ts +1 -0
  114. package/dist/manifests.js +14 -0
  115. package/dist/repository/SyncAction.respositoy.d.ts +101 -0
  116. package/dist/repository/SyncAction.respositoy.js +125 -0
  117. package/dist/repository/index.d.ts +4 -0
  118. package/dist/repository/index.js +4 -0
  119. package/dist/repository/sources/SyncAction.source.d.ts +37 -0
  120. package/dist/repository/sources/SyncAction.source.js +57 -0
  121. package/dist/repository/sources/SyncMigration.source.d.ts +13 -0
  122. package/dist/repository/sources/SyncMigration.source.js +30 -0
  123. package/dist/repository/sources/SyncSettings.source.d.ts +23 -0
  124. package/dist/repository/sources/SyncSettings.source.js +33 -0
  125. package/dist/signalr/index.d.ts +3 -0
  126. package/dist/signalr/index.js +3 -0
  127. package/dist/signalr/signalr-reconnect-policy.d.ts +11 -0
  128. package/dist/signalr/signalr-reconnect-policy.js +14 -0
  129. package/dist/signalr/signalr.context.d.ts +34 -0
  130. package/dist/signalr/signalr.context.js +110 -0
  131. package/dist/signalr/signalr.context.token.d.ts +3 -0
  132. package/dist/signalr/signalr.context.token.js +2 -0
  133. package/dist/signalr/types.d.ts +21 -0
  134. package/dist/signalr/types.js +1 -0
  135. package/dist/tree/constants.d.ts +1 -0
  136. package/dist/tree/constants.js +1 -0
  137. package/dist/tree/index.d.ts +2 -0
  138. package/dist/tree/index.js +2 -0
  139. package/dist/tree/manifest.d.ts +1 -0
  140. package/dist/tree/manifest.js +92 -0
  141. package/dist/tree/types.d.ts +14 -0
  142. package/dist/tree/types.js +1 -0
  143. package/dist/tree/usync.menu-element.d.ts +13 -0
  144. package/dist/tree/usync.menu-element.js +74 -0
  145. package/dist/utils/diff/change-name.d.ts +13 -0
  146. package/dist/utils/diff/change-name.js +30 -0
  147. package/dist/utils/diff/classify-change.d.ts +21 -0
  148. package/dist/utils/diff/classify-change.js +111 -0
  149. package/dist/utils/diff/deep-equal.d.ts +13 -0
  150. package/dist/utils/diff/deep-equal.js +57 -0
  151. package/dist/utils/diff/format-value.d.ts +36 -0
  152. package/dist/utils/diff/format-value.js +88 -0
  153. package/dist/utils/diff/index.d.ts +7 -0
  154. package/dist/utils/diff/index.js +7 -0
  155. package/dist/utils/diff/json-diff.d.ts +34 -0
  156. package/dist/utils/diff/json-diff.js +300 -0
  157. package/dist/utils/diff/line-diff.d.ts +16 -0
  158. package/dist/utils/diff/line-diff.js +199 -0
  159. package/dist/utils/diff/types.d.ts +62 -0
  160. package/dist/utils/diff/types.js +12 -0
  161. package/dist/workspace/components/events.d.ts +31 -0
  162. package/dist/workspace/components/events.js +54 -0
  163. package/dist/workspace/components/index.d.ts +3 -0
  164. package/dist/workspace/components/index.js +3 -0
  165. package/dist/workspace/components/usync-action-button.d.ts +19 -0
  166. package/dist/workspace/components/usync-action-button.js +113 -0
  167. package/dist/workspace/components/usync-file-picker.element.d.ts +23 -0
  168. package/dist/workspace/components/usync-file-picker.element.js +106 -0
  169. package/dist/workspace/components/usync-file-upload.element.d.ts +21 -0
  170. package/dist/workspace/components/usync-file-upload.element.js +121 -0
  171. package/dist/workspace/dialogs/import-modal.element.d.ts +11 -0
  172. package/dist/workspace/dialogs/import-modal.element.js +75 -0
  173. package/dist/workspace/dialogs/import-modal.token.d.ts +6 -0
  174. package/dist/workspace/dialogs/import-modal.token.js +6 -0
  175. package/dist/workspace/dialogs/index.d.ts +2 -0
  176. package/dist/workspace/dialogs/index.js +2 -0
  177. package/dist/workspace/dialogs/manifest.d.ts +1 -0
  178. package/dist/workspace/dialogs/manifest.js +7 -0
  179. package/dist/workspace/index.d.ts +3 -0
  180. package/dist/workspace/index.js +3 -0
  181. package/dist/workspace/manifest.d.ts +3 -0
  182. package/dist/workspace/manifest.js +112 -0
  183. package/dist/workspace/types.d.ts +12 -0
  184. package/dist/workspace/types.js +1 -0
  185. package/dist/workspace/views/addons/addons.element.d.ts +7 -0
  186. package/dist/workspace/views/addons/addons.element.js +117 -0
  187. package/dist/workspace/views/default/default.element.d.ts +31 -0
  188. package/dist/workspace/views/default/default.element.js +466 -0
  189. package/dist/workspace/views/legacy/legacy.element.d.ts +14 -0
  190. package/dist/workspace/views/legacy/legacy.element.js +187 -0
  191. package/dist/workspace/views/settings/components/usyncSettingItem.element.d.ts +15 -0
  192. package/dist/workspace/views/settings/components/usyncSettingItem.element.js +96 -0
  193. package/dist/workspace/views/settings/settings.element.d.ts +17 -0
  194. package/dist/workspace/views/settings/settings.element.js +174 -0
  195. package/dist/workspace/workspace.context.d.ts +74 -0
  196. package/dist/workspace/workspace.context.js +448 -0
  197. package/dist/workspace/workspace.element.d.ts +17 -0
  198. package/dist/workspace/workspace.element.js +69 -0
  199. package/package.json +70 -6
@@ -0,0 +1,567 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'http://localhost:16903' | (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 HandlerSettings = {
31
+ enabled: boolean;
32
+ actions: Array<string>;
33
+ useFlatStructure: boolean;
34
+ guidNames: boolean;
35
+ failOnMissingParent: boolean;
36
+ group: string;
37
+ createClean: boolean;
38
+ fullFileOnDifference: boolean;
39
+ settings: {
40
+ [key: string]: unknown;
41
+ };
42
+ };
43
+ export declare enum HandlerStatus {
44
+ PENDING = "Pending",
45
+ PROCESSING = "Processing",
46
+ COMPLETE = "Complete",
47
+ ERROR = "Error"
48
+ }
49
+ export type PerformActionRequest = {
50
+ requestId: string;
51
+ action: string;
52
+ stepNumber: number;
53
+ options?: USyncOptions | null;
54
+ username?: string | null;
55
+ };
56
+ export type PerformActionResponse = {
57
+ requestId: string;
58
+ status?: Array<SyncHandlerSummary> | null;
59
+ actions?: Array<USyncActionView> | null;
60
+ complete: boolean;
61
+ inBackground: boolean;
62
+ operationId?: string | null;
63
+ message?: string | null;
64
+ };
65
+ export type SyncActionButton = {
66
+ key: string;
67
+ label: string;
68
+ look: string;
69
+ color: string;
70
+ force: boolean;
71
+ clean: boolean;
72
+ file: boolean;
73
+ children: Array<SyncActionButton>;
74
+ };
75
+ export type SyncActionGroup = {
76
+ key: string;
77
+ icon: string;
78
+ groupName: string;
79
+ buttons: Array<SyncActionButton>;
80
+ lastSync?: string | null;
81
+ };
82
+ export type SyncFileVersionCheckResult = {
83
+ isCurrent: boolean;
84
+ formatVersion?: string | null;
85
+ hmacMatch: boolean;
86
+ };
87
+ export declare enum SyncFolderMode {
88
+ NORMAL = "Normal",
89
+ ROOT = "Root",
90
+ PRODUCTION = "Production"
91
+ }
92
+ export type SyncHandlerSummary = {
93
+ icon: string;
94
+ name: string;
95
+ status: HandlerStatus;
96
+ changes: number;
97
+ inError: boolean;
98
+ };
99
+ export type SyncLegacyCheckResponse = {
100
+ hasLegacy: boolean;
101
+ legacyFolder?: string | null;
102
+ legacyTypes: Array<string>;
103
+ latestFolder: string;
104
+ latestVersion: string;
105
+ };
106
+ export type SyncOperationStatusResponse = {
107
+ operationId: string;
108
+ requestId?: string | null;
109
+ action?: string | null;
110
+ operationStatus: string;
111
+ complete: boolean;
112
+ status?: Array<SyncHandlerSummary> | null;
113
+ actions?: Array<USyncActionView> | null;
114
+ message?: string | null;
115
+ };
116
+ export declare enum SyncProcessingMode {
117
+ NORMAL = "Normal",
118
+ BACKGROUND = "Background"
119
+ }
120
+ export type SyncRunningOperationResponse = {
121
+ operationId?: string | null;
122
+ requestId?: string | null;
123
+ action?: string | null;
124
+ };
125
+ export type SyncSelectableSet = {
126
+ name: string;
127
+ settings: USyncHandlerSetSettings;
128
+ };
129
+ export type UploadImportResult = {
130
+ success: boolean;
131
+ errors: Array<string>;
132
+ };
133
+ export type USyncActionView = {
134
+ key: string;
135
+ name: string;
136
+ handler: string;
137
+ itemType: string;
138
+ change: ChangeType;
139
+ success: boolean;
140
+ details: Array<USyncChange>;
141
+ message?: string | null;
142
+ };
143
+ export type USyncAddonInfo = {
144
+ version: string;
145
+ };
146
+ export type USyncAddonSplash = {
147
+ [key: string]: never;
148
+ };
149
+ export type USyncChange = {
150
+ success: boolean;
151
+ name: string;
152
+ path: string;
153
+ oldValue: string;
154
+ newValue: string;
155
+ change: ChangeDetailType;
156
+ };
157
+ export type USyncHandlerSetSettings = {
158
+ enabled: boolean;
159
+ handlerGroups: Array<string>;
160
+ disabledHandlers: Array<string>;
161
+ handlerDefaults: HandlerSettings;
162
+ handlers: {
163
+ [key: string]: HandlerSettings;
164
+ };
165
+ isSelectable: boolean;
166
+ };
167
+ export type USyncOptions = {
168
+ clientId: string;
169
+ force: boolean;
170
+ clean: boolean;
171
+ files: boolean;
172
+ group: string;
173
+ set: string;
174
+ };
175
+ export type USyncSettings = {
176
+ rootFolder: string;
177
+ folders: Array<string>;
178
+ legacyFolder: string;
179
+ isRootSite: boolean;
180
+ lockRoot: boolean;
181
+ stopFile: string;
182
+ onceFile: string;
183
+ ignoreStopIfOnceExists: boolean;
184
+ lockRootTypes: Array<string>;
185
+ backgroundStartup: boolean;
186
+ defaultSet: string;
187
+ importAtStartup: string;
188
+ exportAtStartup: string;
189
+ exportOnSave: string;
190
+ uiEnabledGroups: string;
191
+ reportDebug: boolean;
192
+ addOnPing: boolean;
193
+ rebuildCacheOnCompletion: boolean;
194
+ failOnMissingParent: boolean;
195
+ failOnDuplicates: boolean;
196
+ cacheFolderKeys: boolean;
197
+ showVersionCheckWarning: boolean;
198
+ customMappings: {
199
+ [key: string]: string;
200
+ };
201
+ enableHistory: boolean;
202
+ defaultExtension: string;
203
+ importOnFirstBoot: boolean;
204
+ firstBootGroup: string;
205
+ disableDashboard: boolean;
206
+ summaryDashboard: boolean;
207
+ summaryLimit: number;
208
+ hideAddOns: string;
209
+ disableNotificationSuppression: boolean;
210
+ backgroundNotifications: boolean;
211
+ moveToSection: boolean;
212
+ folderMode: SyncFolderMode;
213
+ processingMode: SyncProcessingMode;
214
+ productionFolder: string;
215
+ additionalBadNames: Array<string>;
216
+ includeWindowsReservedNames: boolean;
217
+ };
218
+ export type GetActionsData = {
219
+ body?: never;
220
+ path?: never;
221
+ query?: never;
222
+ url: '/umbraco/usync/api/v1/Actions';
223
+ };
224
+ export type GetActionsErrors = {
225
+ /**
226
+ * The resource is protected and requires an authentication token
227
+ */
228
+ 401: unknown;
229
+ };
230
+ export type GetActionsResponses = {
231
+ /**
232
+ * OK
233
+ */
234
+ 200: Array<SyncActionGroup>;
235
+ };
236
+ export type GetActionsResponse = GetActionsResponses[keyof GetActionsResponses];
237
+ export type GetActionsBySetData = {
238
+ body?: never;
239
+ path?: never;
240
+ query?: {
241
+ setName?: string;
242
+ };
243
+ url: '/umbraco/usync/api/v1/ActionsBySet';
244
+ };
245
+ export type GetActionsBySetErrors = {
246
+ /**
247
+ * The resource is protected and requires an authentication token
248
+ */
249
+ 401: unknown;
250
+ };
251
+ export type GetActionsBySetResponses = {
252
+ /**
253
+ * OK
254
+ */
255
+ 200: Array<SyncActionGroup>;
256
+ };
257
+ export type GetActionsBySetResponse = GetActionsBySetResponses[keyof GetActionsBySetResponses];
258
+ export type DownloadData = {
259
+ body?: never;
260
+ path?: never;
261
+ query?: never;
262
+ url: '/umbraco/usync/api/v1/Download';
263
+ };
264
+ export type DownloadErrors = {
265
+ /**
266
+ * The resource is protected and requires an authentication token
267
+ */
268
+ 401: unknown;
269
+ };
270
+ export type DownloadResponses = {
271
+ /**
272
+ * OK
273
+ */
274
+ 200: Blob | File;
275
+ };
276
+ export type DownloadResponse = DownloadResponses[keyof DownloadResponses];
277
+ export type GetSyncFileInfoData = {
278
+ body?: never;
279
+ path?: never;
280
+ query?: never;
281
+ url: '/umbraco/usync/api/v1/GetSyncFileInfo';
282
+ };
283
+ export type GetSyncFileInfoErrors = {
284
+ /**
285
+ * The resource is protected and requires an authentication token
286
+ */
287
+ 401: unknown;
288
+ };
289
+ export type GetSyncFileInfoResponses = {
290
+ /**
291
+ * OK
292
+ */
293
+ 200: SyncFileVersionCheckResult;
294
+ };
295
+ export type GetSyncFileInfoResponse = GetSyncFileInfoResponses[keyof GetSyncFileInfoResponses];
296
+ export type ImportSingleData = {
297
+ body?: USyncActionView;
298
+ path?: never;
299
+ query?: never;
300
+ url: '/umbraco/usync/api/v1/Import';
301
+ };
302
+ export type ImportSingleErrors = {
303
+ /**
304
+ * The resource is protected and requires an authentication token
305
+ */
306
+ 401: unknown;
307
+ };
308
+ export type ImportSingleResponses = {
309
+ /**
310
+ * OK
311
+ */
312
+ 200: USyncActionView;
313
+ };
314
+ export type ImportSingleResponse = ImportSingleResponses[keyof ImportSingleResponses];
315
+ export type PerformActionData = {
316
+ body?: PerformActionRequest;
317
+ path?: never;
318
+ query?: never;
319
+ url: '/umbraco/usync/api/v1/Perform';
320
+ };
321
+ export type PerformActionErrors = {
322
+ /**
323
+ * The resource is protected and requires an authentication token
324
+ */
325
+ 401: unknown;
326
+ };
327
+ export type PerformActionResponses = {
328
+ /**
329
+ * OK
330
+ */
331
+ 200: PerformActionResponse;
332
+ };
333
+ export type PerformActionResponse2 = PerformActionResponses[keyof PerformActionResponses];
334
+ export type ProcessUploadData = {
335
+ body?: never;
336
+ path?: never;
337
+ query?: {
338
+ tempKey?: string;
339
+ };
340
+ url: '/umbraco/usync/api/v1/ProcessUpload';
341
+ };
342
+ export type ProcessUploadErrors = {
343
+ /**
344
+ * The resource is protected and requires an authentication token
345
+ */
346
+ 401: unknown;
347
+ };
348
+ export type ProcessUploadResponses = {
349
+ /**
350
+ * OK
351
+ */
352
+ 200: UploadImportResult;
353
+ };
354
+ export type ProcessUploadResponse = ProcessUploadResponses[keyof ProcessUploadResponses];
355
+ export type RunningData = {
356
+ body?: never;
357
+ path?: never;
358
+ query?: never;
359
+ url: '/umbraco/usync/api/v1/Running';
360
+ };
361
+ export type RunningErrors = {
362
+ /**
363
+ * The resource is protected and requires an authentication token
364
+ */
365
+ 401: unknown;
366
+ };
367
+ export type RunningResponses = {
368
+ /**
369
+ * OK
370
+ */
371
+ 200: SyncRunningOperationResponse;
372
+ };
373
+ export type RunningResponse = RunningResponses[keyof RunningResponses];
374
+ export type StatusData = {
375
+ body?: never;
376
+ path?: never;
377
+ query?: {
378
+ operationId?: string;
379
+ };
380
+ url: '/umbraco/usync/api/v1/Status';
381
+ };
382
+ export type StatusErrors = {
383
+ /**
384
+ * The resource is protected and requires an authentication token
385
+ */
386
+ 401: unknown;
387
+ };
388
+ export type StatusResponses = {
389
+ /**
390
+ * OK
391
+ */
392
+ 200: SyncOperationStatusResponse;
393
+ };
394
+ export type StatusResponse = StatusResponses[keyof StatusResponses];
395
+ export type MergeExportFolderData = {
396
+ body?: never;
397
+ path?: never;
398
+ query?: never;
399
+ url: '/umbraco/usync/api/v1/MergeExport';
400
+ };
401
+ export type MergeExportFolderErrors = {
402
+ /**
403
+ * The resource is protected and requires an authentication token
404
+ */
405
+ 401: unknown;
406
+ };
407
+ export type MergeExportFolderResponses = {
408
+ /**
409
+ * OK
410
+ */
411
+ 200: number;
412
+ };
413
+ export type MergeExportFolderResponse = MergeExportFolderResponses[keyof MergeExportFolderResponses];
414
+ export type CheckLegacyData = {
415
+ body?: never;
416
+ path?: never;
417
+ query?: never;
418
+ url: '/umbraco/usync/api/v1/CheckLegacy';
419
+ };
420
+ export type CheckLegacyErrors = {
421
+ /**
422
+ * The resource is protected and requires an authentication token
423
+ */
424
+ 401: unknown;
425
+ };
426
+ export type CheckLegacyResponses = {
427
+ /**
428
+ * OK
429
+ */
430
+ 200: SyncLegacyCheckResponse;
431
+ };
432
+ export type CheckLegacyResponse = CheckLegacyResponses[keyof CheckLegacyResponses];
433
+ export type CopyLegacyData = {
434
+ body?: never;
435
+ path?: never;
436
+ query?: never;
437
+ url: '/umbraco/usync/api/v1/CopyLegacy';
438
+ };
439
+ export type CopyLegacyErrors = {
440
+ /**
441
+ * The resource is protected and requires an authentication token
442
+ */
443
+ 401: unknown;
444
+ };
445
+ export type CopyLegacyResponses = {
446
+ /**
447
+ * OK
448
+ */
449
+ 200: boolean;
450
+ };
451
+ export type CopyLegacyResponse = CopyLegacyResponses[keyof CopyLegacyResponses];
452
+ export type IgnoreLegacyData = {
453
+ body?: never;
454
+ path?: never;
455
+ query?: never;
456
+ url: '/umbraco/usync/api/v1/IgnoreLegacy';
457
+ };
458
+ export type IgnoreLegacyErrors = {
459
+ /**
460
+ * The resource is protected and requires an authentication token
461
+ */
462
+ 401: unknown;
463
+ };
464
+ export type IgnoreLegacyResponses = {
465
+ /**
466
+ * OK
467
+ */
468
+ 200: boolean;
469
+ };
470
+ export type IgnoreLegacyResponse = IgnoreLegacyResponses[keyof IgnoreLegacyResponses];
471
+ export type GetAddOnsData = {
472
+ body?: never;
473
+ path?: never;
474
+ query?: never;
475
+ url: '/umbraco/usync/api/v1/AddOns';
476
+ };
477
+ export type GetAddOnsErrors = {
478
+ /**
479
+ * The resource is protected and requires an authentication token
480
+ */
481
+ 401: unknown;
482
+ };
483
+ export type GetAddOnsResponses = {
484
+ /**
485
+ * OK
486
+ */
487
+ 200: USyncAddonInfo;
488
+ };
489
+ export type GetAddOnsResponse = GetAddOnsResponses[keyof GetAddOnsResponses];
490
+ export type GetAddonSplashData = {
491
+ body?: never;
492
+ path?: never;
493
+ query?: never;
494
+ url: '/umbraco/usync/api/v1/AddOnSplash';
495
+ };
496
+ export type GetAddonSplashErrors = {
497
+ /**
498
+ * The resource is protected and requires an authentication token
499
+ */
500
+ 401: unknown;
501
+ };
502
+ export type GetAddonSplashResponses = {
503
+ /**
504
+ * OK
505
+ */
506
+ 200: USyncAddonSplash;
507
+ };
508
+ export type GetAddonSplashResponse = GetAddonSplashResponses[keyof GetAddonSplashResponses];
509
+ export type GetHandlerSetSettingsData = {
510
+ body?: never;
511
+ path?: never;
512
+ query?: {
513
+ id?: string;
514
+ };
515
+ url: '/umbraco/usync/api/v1/HandlerSettings';
516
+ };
517
+ export type GetHandlerSetSettingsErrors = {
518
+ /**
519
+ * The resource is protected and requires an authentication token
520
+ */
521
+ 401: unknown;
522
+ };
523
+ export type GetHandlerSetSettingsResponses = {
524
+ /**
525
+ * OK
526
+ */
527
+ 200: USyncHandlerSetSettings;
528
+ };
529
+ export type GetHandlerSetSettingsResponse = GetHandlerSetSettingsResponses[keyof GetHandlerSetSettingsResponses];
530
+ export type GetSetsData = {
531
+ body?: never;
532
+ path?: never;
533
+ query?: never;
534
+ url: '/umbraco/usync/api/v1/Sets';
535
+ };
536
+ export type GetSetsErrors = {
537
+ /**
538
+ * The resource is protected and requires an authentication token
539
+ */
540
+ 401: unknown;
541
+ };
542
+ export type GetSetsResponses = {
543
+ /**
544
+ * OK
545
+ */
546
+ 200: Array<SyncSelectableSet>;
547
+ };
548
+ export type GetSetsResponse = GetSetsResponses[keyof GetSetsResponses];
549
+ export type GetSettingsData = {
550
+ body?: never;
551
+ path?: never;
552
+ query?: never;
553
+ url: '/umbraco/usync/api/v1/Settings';
554
+ };
555
+ export type GetSettingsErrors = {
556
+ /**
557
+ * The resource is protected and requires an authentication token
558
+ */
559
+ 401: unknown;
560
+ };
561
+ export type GetSettingsResponses = {
562
+ /**
563
+ * OK
564
+ */
565
+ 200: USyncSettings;
566
+ };
567
+ export type GetSettingsResponse = GetSettingsResponses[keyof GetSettingsResponses];
@@ -0,0 +1,47 @@
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 HandlerStatus;
31
+ (function (HandlerStatus) {
32
+ HandlerStatus["PENDING"] = "Pending";
33
+ HandlerStatus["PROCESSING"] = "Processing";
34
+ HandlerStatus["COMPLETE"] = "Complete";
35
+ HandlerStatus["ERROR"] = "Error";
36
+ })(HandlerStatus || (HandlerStatus = {}));
37
+ export var SyncFolderMode;
38
+ (function (SyncFolderMode) {
39
+ SyncFolderMode["NORMAL"] = "Normal";
40
+ SyncFolderMode["ROOT"] = "Root";
41
+ SyncFolderMode["PRODUCTION"] = "Production";
42
+ })(SyncFolderMode || (SyncFolderMode = {}));
43
+ export var SyncProcessingMode;
44
+ (function (SyncProcessingMode) {
45
+ SyncProcessingMode["NORMAL"] = "Normal";
46
+ SyncProcessingMode["BACKGROUND"] = "Background";
47
+ })(SyncProcessingMode || (SyncProcessingMode = {}));
@@ -0,0 +1,11 @@
1
+ import { USyncActionView } from '../api';
2
+ export declare const USYNC_SHOW_DETAIL_EVENT = "show-detail";
3
+ export declare class uSyncShowDetailEvent extends Event {
4
+ constructor(action: USyncActionView);
5
+ action: USyncActionView;
6
+ }
7
+ declare global {
8
+ interface GlobalEventHandlersEventMap {
9
+ [USYNC_SHOW_DETAIL_EVENT]: uSyncShowDetailEvent;
10
+ }
11
+ }
@@ -0,0 +1,11 @@
1
+ export const USYNC_SHOW_DETAIL_EVENT = 'show-detail';
2
+ export class uSyncShowDetailEvent extends Event {
3
+ constructor(action) {
4
+ super(USYNC_SHOW_DETAIL_EVENT, {
5
+ bubbles: true,
6
+ composed: true,
7
+ cancelable: false,
8
+ });
9
+ this.action = action;
10
+ }
11
+ }
@@ -0,0 +1,8 @@
1
+ export * from './usync-action-box.js';
2
+ export * from './usync-progress-box.js';
3
+ export * from './usync-results-view.js';
4
+ export * from './usync-change-view.js';
5
+ export * from './usync-change-detail.js';
6
+ export * from './usync-results-group-view.js';
7
+ export * from './usync-result-row.js';
8
+ export * from './usync-sync-file-info-view.js';
@@ -0,0 +1,9 @@
1
+ // component exports.
2
+ export * from './usync-action-box.js';
3
+ export * from './usync-progress-box.js';
4
+ export * from './usync-results-view.js';
5
+ export * from './usync-change-view.js';
6
+ export * from './usync-change-detail.js';
7
+ export * from './usync-results-group-view.js';
8
+ export * from './usync-result-row.js';
9
+ export * from './usync-sync-file-info-view.js';
@@ -0,0 +1,22 @@
1
+ import { SyncActionGroup } from '@jumoo/uSync';
2
+ import { UUIButtonState } from '@umbraco-cms/backoffice/external/uui';
3
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
4
+ /**
5
+ * displays the action buttons for a given group
6
+ */
7
+ export declare class uSyncActionBox extends UmbLitElement {
8
+ #private;
9
+ /**
10
+ * Collection of buttons to display.
11
+ */
12
+ group: SyncActionGroup;
13
+ /**
14
+ * state to display on buttons
15
+ */
16
+ state?: UUIButtonState;
17
+ disabled: boolean;
18
+ render(): import("lit-html").TemplateResult<1>;
19
+ getLastSyncDate(): string;
20
+ static styles: import("lit").CSSResult;
21
+ }
22
+ export default uSyncActionBox;