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