@jumoo/usync-expansions 17.6.0 → 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 (64) hide show
  1. package/dist/api/client/client.gen.js +104 -123
  2. package/dist/api/client/index.d.ts +2 -0
  3. package/dist/api/client/types.gen.d.ts +6 -3
  4. package/dist/api/client/utils.gen.d.ts +8 -4
  5. package/dist/api/client/utils.gen.js +3 -3
  6. package/dist/api/client.gen.d.ts +2 -2
  7. package/dist/api/client.gen.js +1 -2
  8. package/dist/api/core/auth.gen.d.ts +7 -0
  9. package/dist/api/core/params.gen.d.ts +2 -2
  10. package/dist/api/core/params.gen.js +23 -14
  11. package/dist/api/core/queryKeySerializer.gen.d.ts +1 -1
  12. package/dist/api/core/serverSentEvents.gen.d.ts +1 -1
  13. package/dist/api/core/serverSentEvents.gen.js +3 -4
  14. package/dist/api/core/types.gen.d.ts +5 -0
  15. package/dist/api/index.d.ts +1 -2
  16. package/dist/api/index.js +1 -2
  17. package/dist/api/sdk.gen.d.ts +16 -16
  18. package/dist/api/sdk.gen.js +2 -2
  19. package/dist/api/types.gen.d.ts +102 -833
  20. package/dist/api/types.gen.js +16 -197
  21. package/dist/background/background-pipeline.repository.d.ts +8 -3
  22. package/dist/background/background-pipeline.repository.js +2 -2
  23. package/dist/background/workspace/background-workspace-element.d.ts +1 -0
  24. package/dist/background/workspace/background-workspace-element.js +3 -0
  25. package/dist/components/report-summary-view.d.ts +1 -1
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +12 -4
  28. package/dist/items/sync-item.context.d.ts +1 -1
  29. package/dist/items/sync-item.context.js +1 -1
  30. package/dist/items/sync-item.repository.d.ts +9 -4
  31. package/dist/items/sync-item.repository.js +1 -1
  32. package/dist/licence/components/index.d.ts +2 -2
  33. package/dist/licence/components/index.js +2 -2
  34. package/dist/licence/components/licence-notice.d.ts +1 -1
  35. package/dist/licence/components/licence-notice.js +1 -1
  36. package/dist/licence/licence.context.js +1 -1
  37. package/dist/licence/licence.element.js +1 -1
  38. package/dist/licence/licence.repository.d.ts +3 -3
  39. package/dist/licence/licence.repository.js +1 -1
  40. package/dist/licence/manifest.d.ts +0 -1
  41. package/dist/licence/manifest.js +0 -1
  42. package/dist/restore/components/restore-point-table.element.js +1 -1
  43. package/dist/restore/index.d.ts +1 -7
  44. package/dist/restore/index.js +8 -7
  45. package/dist/restore/manifest.js +1 -1
  46. package/dist/restore/restore.context.d.ts +1 -1
  47. package/dist/restore/restore.context.js +1 -1
  48. package/dist/restore/restore.repository.d.ts +5 -5
  49. package/dist/restore/steps/manifest.js +1 -1
  50. package/dist/restore/steps/restore-create-complete.js +1 -1
  51. package/dist/restore/steps/restore-create-element.js +2 -2
  52. package/dist/restore/steps/restore-report-config-element.d.ts +1 -1
  53. package/dist/restore/steps/restore-report-config-element.js +2 -2
  54. package/dist/restore/steps/restore-report-element.js +1 -1
  55. package/dist/restore/workspace/restore.workspace-view.element.js +4 -1
  56. package/dist/restore/workspace/restore.workspace.context.js +2 -2
  57. package/dist/restore/workspace/restore.workspace.element.js +1 -1
  58. package/package.json +8 -10
  59. package/dist/exports.d.ts +0 -6
  60. package/dist/exports.js +0 -6
  61. package/dist/hey-api.d.ts +0 -11
  62. package/dist/hey-api.js +0 -14
  63. package/dist/licence/index.d.ts +0 -5
  64. package/dist/licence/index.js +0 -5
@@ -1,12 +1,4 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export var CallingConventions;
3
- (function (CallingConventions) {
4
- CallingConventions["STANDARD"] = "Standard";
5
- CallingConventions["VAR_ARGS"] = "VarArgs";
6
- CallingConventions["ANY"] = "Any";
7
- CallingConventions["HAS_THIS"] = "HasThis";
8
- CallingConventions["EXPLICIT_THIS"] = "ExplicitThis";
9
- })(CallingConventions || (CallingConventions = {}));
10
2
  export var ChangeDetailType;
11
3
  (function (ChangeDetailType) {
12
4
  ChangeDetailType["NO_CHANGE"] = "NoChange";
@@ -35,69 +27,6 @@ export var ChangeType;
35
27
  ChangeType["CLEAN"] = "Clean";
36
28
  ChangeType["REMOVED"] = "Removed";
37
29
  })(ChangeType || (ChangeType = {}));
38
- export var DependencyFlags;
39
- (function (DependencyFlags) {
40
- DependencyFlags["NONE"] = "None";
41
- DependencyFlags["INCLUDE_CHILDREN"] = "IncludeChildren";
42
- DependencyFlags["INCLUDE_ANCESTORS"] = "IncludeAncestors";
43
- DependencyFlags["INCLUDE_DEPENDENCIES"] = "IncludeDependencies";
44
- DependencyFlags["INCLUDE_VIEWS"] = "IncludeViews";
45
- DependencyFlags["INCLUDE_MEDIA"] = "IncludeMedia";
46
- DependencyFlags["INCLUDE_LINKED"] = "IncludeLinked";
47
- DependencyFlags["INCLUDE_MEDIA_FILES"] = "IncludeMediaFiles";
48
- DependencyFlags["INCLUDE_CONFIG"] = "IncludeConfig";
49
- DependencyFlags["ADJACENT_ONLY"] = "AdjacentOnly";
50
- DependencyFlags["ROOT_SYNC"] = "RootSync";
51
- DependencyFlags["INCLUDE_CONTENTS"] = "IncludeContents";
52
- DependencyFlags["PUBLISHED_DEPENDENCIES"] = "PublishedDependencies";
53
- })(DependencyFlags || (DependencyFlags = {}));
54
- export var EventAttributes;
55
- (function (EventAttributes) {
56
- EventAttributes["NONE"] = "None";
57
- EventAttributes["SPECIAL_NAME"] = "SpecialName";
58
- EventAttributes["RT_SPECIAL_NAME"] = "RTSpecialName";
59
- EventAttributes["RESERVED_MASK"] = "ReservedMask";
60
- })(EventAttributes || (EventAttributes = {}));
61
- export var FieldAttributes;
62
- (function (FieldAttributes) {
63
- FieldAttributes["PRIVATE_SCOPE"] = "PrivateScope";
64
- FieldAttributes["PRIVATE"] = "Private";
65
- FieldAttributes["FAM_AND_ASSEM"] = "FamANDAssem";
66
- FieldAttributes["ASSEMBLY"] = "Assembly";
67
- FieldAttributes["FAMILY"] = "Family";
68
- FieldAttributes["FAM_OR_ASSEM"] = "FamORAssem";
69
- FieldAttributes["PUBLIC"] = "Public";
70
- FieldAttributes["FIELD_ACCESS_MASK"] = "FieldAccessMask";
71
- FieldAttributes["STATIC"] = "Static";
72
- FieldAttributes["INIT_ONLY"] = "InitOnly";
73
- FieldAttributes["LITERAL"] = "Literal";
74
- FieldAttributes["NOT_SERIALIZED"] = "NotSerialized";
75
- FieldAttributes["HAS_FIELD_RVA"] = "HasFieldRVA";
76
- FieldAttributes["SPECIAL_NAME"] = "SpecialName";
77
- FieldAttributes["RT_SPECIAL_NAME"] = "RTSpecialName";
78
- FieldAttributes["HAS_FIELD_MARSHAL"] = "HasFieldMarshal";
79
- FieldAttributes["PINVOKE_IMPL"] = "PinvokeImpl";
80
- FieldAttributes["HAS_DEFAULT"] = "HasDefault";
81
- FieldAttributes["RESERVED_MASK"] = "ReservedMask";
82
- })(FieldAttributes || (FieldAttributes = {}));
83
- export var GenericParameterAttributes;
84
- (function (GenericParameterAttributes) {
85
- GenericParameterAttributes["NONE"] = "None";
86
- GenericParameterAttributes["COVARIANT"] = "Covariant";
87
- GenericParameterAttributes["CONTRAVARIANT"] = "Contravariant";
88
- GenericParameterAttributes["VARIANCE_MASK"] = "VarianceMask";
89
- GenericParameterAttributes["REFERENCE_TYPE_CONSTRAINT"] = "ReferenceTypeConstraint";
90
- GenericParameterAttributes["NOT_NULLABLE_VALUE_TYPE_CONSTRAINT"] = "NotNullableValueTypeConstraint";
91
- GenericParameterAttributes["DEFAULT_CONSTRUCTOR_CONSTRAINT"] = "DefaultConstructorConstraint";
92
- GenericParameterAttributes["SPECIAL_CONSTRAINT_MASK"] = "SpecialConstraintMask";
93
- GenericParameterAttributes["ALLOW_BY_REF_LIKE"] = "AllowByRefLike";
94
- })(GenericParameterAttributes || (GenericParameterAttributes = {}));
95
- export var LayoutKind;
96
- (function (LayoutKind) {
97
- LayoutKind["SEQUENTIAL"] = "Sequential";
98
- LayoutKind["EXPLICIT"] = "Explicit";
99
- LayoutKind["AUTO"] = "Auto";
100
- })(LayoutKind || (LayoutKind = {}));
101
30
  export var LicenceStatus;
102
31
  (function (LicenceStatus) {
103
32
  LicenceStatus["LOADED"] = "Loaded";
@@ -121,135 +50,25 @@ export var LicenceType;
121
50
  LicenceType["AGENCY"] = "Agency";
122
51
  LicenceType["PARTNER"] = "Partner";
123
52
  })(LicenceType || (LicenceType = {}));
124
- export var MemberTypes;
125
- (function (MemberTypes) {
126
- MemberTypes["CONSTRUCTOR"] = "Constructor";
127
- MemberTypes["EVENT"] = "Event";
128
- MemberTypes["FIELD"] = "Field";
129
- MemberTypes["METHOD"] = "Method";
130
- MemberTypes["PROPERTY"] = "Property";
131
- MemberTypes["TYPE_INFO"] = "TypeInfo";
132
- MemberTypes["CUSTOM"] = "Custom";
133
- MemberTypes["NESTED_TYPE"] = "NestedType";
134
- MemberTypes["ALL"] = "All";
135
- })(MemberTypes || (MemberTypes = {}));
136
- export var MethodAttributes;
137
- (function (MethodAttributes) {
138
- MethodAttributes["PRIVATE_SCOPE"] = "PrivateScope";
139
- MethodAttributes["REUSE_SLOT"] = "ReuseSlot";
140
- MethodAttributes["PRIVATE"] = "Private";
141
- MethodAttributes["FAM_AND_ASSEM"] = "FamANDAssem";
142
- MethodAttributes["ASSEMBLY"] = "Assembly";
143
- MethodAttributes["FAMILY"] = "Family";
144
- MethodAttributes["FAM_OR_ASSEM"] = "FamORAssem";
145
- MethodAttributes["PUBLIC"] = "Public";
146
- MethodAttributes["MEMBER_ACCESS_MASK"] = "MemberAccessMask";
147
- MethodAttributes["UNMANAGED_EXPORT"] = "UnmanagedExport";
148
- MethodAttributes["STATIC"] = "Static";
149
- MethodAttributes["FINAL"] = "Final";
150
- MethodAttributes["VIRTUAL"] = "Virtual";
151
- MethodAttributes["HIDE_BY_SIG"] = "HideBySig";
152
- MethodAttributes["NEW_SLOT"] = "NewSlot";
153
- MethodAttributes["VTABLE_LAYOUT_MASK"] = "VtableLayoutMask";
154
- MethodAttributes["CHECK_ACCESS_ON_OVERRIDE"] = "CheckAccessOnOverride";
155
- MethodAttributes["ABSTRACT"] = "Abstract";
156
- MethodAttributes["SPECIAL_NAME"] = "SpecialName";
157
- MethodAttributes["RT_SPECIAL_NAME"] = "RTSpecialName";
158
- MethodAttributes["PINVOKE_IMPL"] = "PinvokeImpl";
159
- MethodAttributes["HAS_SECURITY"] = "HasSecurity";
160
- MethodAttributes["REQUIRE_SEC_OBJECT"] = "RequireSecObject";
161
- MethodAttributes["RESERVED_MASK"] = "ReservedMask";
162
- })(MethodAttributes || (MethodAttributes = {}));
163
- export var MethodImplAttributes;
164
- (function (MethodImplAttributes) {
165
- MethodImplAttributes["IL"] = "IL";
166
- MethodImplAttributes["MANAGED"] = "Managed";
167
- MethodImplAttributes["NATIVE"] = "Native";
168
- MethodImplAttributes["OPTIL"] = "OPTIL";
169
- MethodImplAttributes["CODE_TYPE_MASK"] = "CodeTypeMask";
170
- MethodImplAttributes["RUNTIME"] = "Runtime";
171
- MethodImplAttributes["MANAGED_MASK"] = "ManagedMask";
172
- MethodImplAttributes["UNMANAGED"] = "Unmanaged";
173
- MethodImplAttributes["NO_INLINING"] = "NoInlining";
174
- MethodImplAttributes["FORWARD_REF"] = "ForwardRef";
175
- MethodImplAttributes["SYNCHRONIZED"] = "Synchronized";
176
- MethodImplAttributes["NO_OPTIMIZATION"] = "NoOptimization";
177
- MethodImplAttributes["PRESERVE_SIG"] = "PreserveSig";
178
- MethodImplAttributes["AGGRESSIVE_INLINING"] = "AggressiveInlining";
179
- MethodImplAttributes["AGGRESSIVE_OPTIMIZATION"] = "AggressiveOptimization";
180
- MethodImplAttributes["INTERNAL_CALL"] = "InternalCall";
181
- MethodImplAttributes["ASYNC"] = "Async";
182
- MethodImplAttributes["MAX_METHOD_IMPL_VAL"] = "MaxMethodImplVal";
183
- })(MethodImplAttributes || (MethodImplAttributes = {}));
184
- export var ParameterAttributes;
185
- (function (ParameterAttributes) {
186
- ParameterAttributes["NONE"] = "None";
187
- ParameterAttributes["IN"] = "In";
188
- ParameterAttributes["OUT"] = "Out";
189
- ParameterAttributes["LCID"] = "Lcid";
190
- ParameterAttributes["RETVAL"] = "Retval";
191
- ParameterAttributes["OPTIONAL"] = "Optional";
192
- ParameterAttributes["HAS_DEFAULT"] = "HasDefault";
193
- ParameterAttributes["HAS_FIELD_MARSHAL"] = "HasFieldMarshal";
194
- ParameterAttributes["RESERVED3"] = "Reserved3";
195
- ParameterAttributes["RESERVED4"] = "Reserved4";
196
- ParameterAttributes["RESERVED_MASK"] = "ReservedMask";
197
- })(ParameterAttributes || (ParameterAttributes = {}));
198
- export var PropertyAttributes;
199
- (function (PropertyAttributes) {
200
- PropertyAttributes["NONE"] = "None";
201
- PropertyAttributes["SPECIAL_NAME"] = "SpecialName";
202
- PropertyAttributes["RT_SPECIAL_NAME"] = "RTSpecialName";
203
- PropertyAttributes["HAS_DEFAULT"] = "HasDefault";
204
- PropertyAttributes["RESERVED2"] = "Reserved2";
205
- PropertyAttributes["RESERVED3"] = "Reserved3";
206
- PropertyAttributes["RESERVED4"] = "Reserved4";
207
- PropertyAttributes["RESERVED_MASK"] = "ReservedMask";
208
- })(PropertyAttributes || (PropertyAttributes = {}));
209
53
  export var RestorePointStatus;
210
54
  (function (RestorePointStatus) {
211
55
  RestorePointStatus["COMPLETE"] = "Complete";
212
56
  RestorePointStatus["PENDING"] = "Pending";
213
57
  RestorePointStatus["FAILED"] = "Failed";
214
58
  })(RestorePointStatus || (RestorePointStatus = {}));
215
- export var SecurityRuleSet;
216
- (function (SecurityRuleSet) {
217
- SecurityRuleSet["NONE"] = "None";
218
- SecurityRuleSet["LEVEL1"] = "Level1";
219
- SecurityRuleSet["LEVEL2"] = "Level2";
220
- })(SecurityRuleSet || (SecurityRuleSet = {}));
221
- export var TypeAttributes;
222
- (function (TypeAttributes) {
223
- TypeAttributes["NOT_PUBLIC"] = "NotPublic";
224
- TypeAttributes["AUTO_LAYOUT"] = "AutoLayout";
225
- TypeAttributes["ANSI_CLASS"] = "AnsiClass";
226
- TypeAttributes["CLASS"] = "Class";
227
- TypeAttributes["PUBLIC"] = "Public";
228
- TypeAttributes["NESTED_PUBLIC"] = "NestedPublic";
229
- TypeAttributes["NESTED_PRIVATE"] = "NestedPrivate";
230
- TypeAttributes["NESTED_FAMILY"] = "NestedFamily";
231
- TypeAttributes["NESTED_ASSEMBLY"] = "NestedAssembly";
232
- TypeAttributes["NESTED_FAM_AND_ASSEM"] = "NestedFamANDAssem";
233
- TypeAttributes["VISIBILITY_MASK"] = "VisibilityMask";
234
- TypeAttributes["NESTED_FAM_OR_ASSEM"] = "NestedFamORAssem";
235
- TypeAttributes["SEQUENTIAL_LAYOUT"] = "SequentialLayout";
236
- TypeAttributes["EXPLICIT_LAYOUT"] = "ExplicitLayout";
237
- TypeAttributes["LAYOUT_MASK"] = "LayoutMask";
238
- TypeAttributes["INTERFACE"] = "Interface";
239
- TypeAttributes["CLASS_SEMANTICS_MASK"] = "ClassSemanticsMask";
240
- TypeAttributes["ABSTRACT"] = "Abstract";
241
- TypeAttributes["SEALED"] = "Sealed";
242
- TypeAttributes["SPECIAL_NAME"] = "SpecialName";
243
- TypeAttributes["RT_SPECIAL_NAME"] = "RTSpecialName";
244
- TypeAttributes["IMPORT"] = "Import";
245
- TypeAttributes["SERIALIZABLE"] = "Serializable";
246
- TypeAttributes["WINDOWS_RUNTIME"] = "WindowsRuntime";
247
- TypeAttributes["UNICODE_CLASS"] = "UnicodeClass";
248
- TypeAttributes["AUTO_CLASS"] = "AutoClass";
249
- TypeAttributes["STRING_FORMAT_MASK"] = "StringFormatMask";
250
- TypeAttributes["CUSTOM_FORMAT_CLASS"] = "CustomFormatClass";
251
- TypeAttributes["HAS_SECURITY"] = "HasSecurity";
252
- TypeAttributes["RESERVED_MASK"] = "ReservedMask";
253
- TypeAttributes["BEFORE_FIELD_INIT"] = "BeforeFieldInit";
254
- TypeAttributes["CUSTOM_FORMAT_MASK"] = "CustomFormatMask";
255
- })(TypeAttributes || (TypeAttributes = {}));
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 = {}));
@@ -9,10 +9,15 @@ export declare class uSyncBackgroundPipelineRepository extends UmbControllerBase
9
9
  * step. Errors come back without a notification so the caller can explain them.
10
10
  * @param id the pipeline id (for a queued item, its key)
11
11
  */
12
- cancelPipeline(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
12
+ cancelPipeline(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
13
13
  data: unknown;
14
- request: Request;
15
- response: Response;
14
+ error: undefined;
15
+ } | {
16
+ data: undefined;
17
+ error: unknown;
18
+ }) & {
19
+ request?: Request;
20
+ response?: Response;
16
21
  }>>;
17
22
  }
18
23
  export default uSyncBackgroundPipelineRepository;
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
12
  var _uSyncBackgroundPipelineRepository_host;
13
- import { PipelinesService } from '@jumoo/processing';
13
+ import { postProcessingCancelPipelineById } from '@jumoo/processing';
14
14
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
15
15
  import { tryExecute } from '@umbraco-cms/backoffice/resources';
16
16
  export class uSyncBackgroundPipelineRepository extends UmbControllerBase {
@@ -26,7 +26,7 @@ export class uSyncBackgroundPipelineRepository extends UmbControllerBase {
26
26
  * @param id the pipeline id (for a queued item, its key)
27
27
  */
28
28
  async cancelPipeline(id) {
29
- return await tryExecute(__classPrivateFieldGet(this, _uSyncBackgroundPipelineRepository_host, "f"), PipelinesService.cancelPipeline({ path: { id: id } }), { disableNotifications: true });
29
+ return await tryExecute(__classPrivateFieldGet(this, _uSyncBackgroundPipelineRepository_host, "f"), postProcessingCancelPipelineById({ path: { id: id } }), { disableNotifications: true });
30
30
  }
31
31
  }
32
32
  _uSyncBackgroundPipelineRepository_host = new WeakMap();
@@ -1,4 +1,5 @@
1
1
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
+ import '../components/index.js';
2
3
  export declare class uSyncBackgroundWorkspaceElement extends UmbLitElement {
3
4
  #private;
4
5
  private _processList?;
@@ -19,6 +19,9 @@ var _uSyncBackgroundWorkspaceElement_pipelinesContext;
19
19
  import { PipelinesContext, PipelineStatus } from '@jumoo/processing';
20
20
  import { css, customElement, html, query } from '@umbraco-cms/backoffice/external/lit';
21
21
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
22
+ // the lists are defined here, not by the package entry point (v18's index.ts doesn't export
23
+ // background), so without this import the workspace renders them as unknown elements.
24
+ import '../components/index.js';
22
25
  let uSyncBackgroundWorkspaceElement = class uSyncBackgroundWorkspaceElement extends UmbLitElement {
23
26
  constructor() {
24
27
  super();
@@ -1,5 +1,5 @@
1
1
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
2
- import { USyncActionView } from '@jumoo/usync-expansions';
2
+ import { USyncActionView } from '@jumoo/usync';
3
3
  export declare class uSyncResportSummaryView extends UmbLitElement {
4
4
  #private;
5
5
  showAll: boolean;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { UmbEntryPointOnInit } from '@umbraco-cms/backoffice/extension-api';
2
- import './restore/index.js';
3
- import './components/index.js';
4
- export * from './exports.js';
2
+ export * from './components/usync-property-layout.js';
3
+ export * from './licence/components/index.js';
4
+ export * from './api/index.js';
5
5
  export declare const onInit: UmbEntryPointOnInit;
package/dist/index.js CHANGED
@@ -1,12 +1,14 @@
1
- import './restore/index.js';
2
- import './components/index.js';
3
1
  import { manifests as localizations } from './lang/manifest';
4
2
  import { manifests as licenceManifests } from './licence/manifest';
5
3
  import { manifests as itemManifests } from './items/manifests';
6
4
  import { manifests as restoreManifests } from './restore/manifest';
7
5
  import { manifests as backgroundManifests } from './background/manifest';
8
- export * from './exports.js';
9
- export const onInit = (_host, extensionRegistry) => {
6
+ import { UMB_AUTH_CONTEXT } from '@umbraco-cms/backoffice/auth';
7
+ import { client } from './api/client.gen.js';
8
+ export * from './components/usync-property-layout.js';
9
+ export * from './licence/components/index.js';
10
+ export * from './api/index.js';
11
+ export const onInit = async (host, extensionRegistry) => {
10
12
  extensionRegistry.registerMany([
11
13
  ...licenceManifests,
12
14
  ...itemManifests,
@@ -14,6 +16,12 @@ export const onInit = (_host, extensionRegistry) => {
14
16
  ...localizations,
15
17
  ...backgroundManifests,
16
18
  ]);
19
+ const authContext = await host.getContext(UMB_AUTH_CONTEXT);
20
+ if (!authContext) {
21
+ console.warn('UMB_AUTH_CONTEXT not available — extension API client will not be authenticated');
22
+ return;
23
+ }
24
+ authContext.configureClient(client);
17
25
  // remove the add-ons dashboard workspace, complete is now installed.
18
26
  extensionRegistry.exclude('usync.workspace.addons');
19
27
  };
@@ -4,7 +4,7 @@ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
4
4
  export declare class SyncItemContext extends UmbControllerBase {
5
5
  #private;
6
6
  constructor(host: UmbControllerHost);
7
- getSyncItem(entityType: string, id: string): Promise<import("@jumoo/usync-expansions").SyncEntity>;
7
+ getSyncItem(entityType: string, id: string): Promise<import("..").SyncEntity | undefined>;
8
8
  }
9
9
  export default SyncItemContext;
10
10
  export declare const SYNC_ITEM_CONTEXT_TOKEN: UmbContextToken<SyncItemContext, SyncItemContext>;
@@ -11,8 +11,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
11
11
  };
12
12
  var _SyncItemContext_repository;
13
13
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
14
- import { SyncItemRepository } from '@jumoo/usync-expansions';
15
14
  import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
15
+ import { SyncItemRepository } from './sync-item.repository';
16
16
  export class SyncItemContext extends UmbControllerBase {
17
17
  constructor(host) {
18
18
  super(host);
@@ -9,9 +9,14 @@ export declare class SyncItemRepository extends UmbControllerBase {
9
9
  * @param id they "key" for the item
10
10
  * @returns a SyncItem (which as the udi in it.)
11
11
  */
12
- GetSyncItem(entityType: string, id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
13
- data: import("@jumoo/usync-expansions").SyncEntity;
14
- request: Request;
15
- response: Response;
12
+ GetSyncItem(entityType: string, id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
13
+ data: import("..").SyncEntity;
14
+ error: undefined;
15
+ } | {
16
+ data: undefined;
17
+ error: unknown;
18
+ }) & {
19
+ request?: Request;
20
+ response?: Response;
16
21
  }>>;
17
22
  }
@@ -11,8 +11,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
11
11
  };
12
12
  var _SyncItemRepository_host;
13
13
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
14
- import { ItemsService } from '@jumoo/usync-expansions';
15
14
  import { tryExecute } from '@umbraco-cms/backoffice/resources';
15
+ import { ItemsService } from '../api';
16
16
  export class SyncItemRepository extends UmbControllerBase {
17
17
  constructor(host) {
18
18
  super(host);
@@ -1,2 +1,2 @@
1
- export * from './licence-status.view.js';
2
- export * from './licence-notice.js';
1
+ export * from './licence-status.view';
2
+ export * from './licence-notice';
@@ -1,2 +1,2 @@
1
- export * from './licence-status.view.js';
2
- export * from './licence-notice.js';
1
+ export * from './licence-status.view';
2
+ export * from './licence-notice';
@@ -1,6 +1,6 @@
1
- import { LicenceStatusView } from '@jumoo/usync-expansions';
2
1
  import { nothing } from '@umbraco-cms/backoffice/external/lit';
3
2
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
3
+ import { LicenceStatusView } from '../../api';
4
4
  export declare class uSyncLicenceNoticeElement extends UmbLitElement {
5
5
  licenceStatus: LicenceStatusView | undefined;
6
6
  constructor();
@@ -4,10 +4,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { USYNC_LICENCE_CONTEXT_TOKEN } from '@jumoo/usync-expansions';
8
7
  import { css, customElement, html, nothing, state, } from '@umbraco-cms/backoffice/external/lit';
9
8
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
10
9
  import { JumooLicenceStyles } from './styles';
10
+ import { USYNC_LICENCE_CONTEXT_TOKEN } from '../licence.context';
11
11
  let uSyncLicenceNoticeElement = class uSyncLicenceNoticeElement extends UmbLitElement {
12
12
  constructor() {
13
13
  super();
@@ -12,9 +12,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  var _uSyncLicenceContext_repository, _uSyncLicenceContext_notificationContext, _uSyncLicenceContext_licence, _uSyncLicenceContext_licenceStatus;
13
13
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
14
14
  import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
15
- import { uSyncLicenceRepository } from '@jumoo/usync-expansions';
16
15
  import { UmbObjectState } from '@umbraco-cms/backoffice/observable-api';
17
16
  import { UMB_NOTIFICATION_CONTEXT, } from '@umbraco-cms/backoffice/notification';
17
+ import { uSyncLicenceRepository } from './licence.repository';
18
18
  import './components/licence-notice';
19
19
  export class uSyncLicenceContext extends UmbControllerBase {
20
20
  constructor(host) {
@@ -18,9 +18,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
18
18
  var _uSyncLicenceViewElement_instances, _uSyncLicenceViewElement_licenceContext, _uSyncLicenceViewElement_saveLicence, _uSyncLicenceViewElement_updateDomains, _uSyncLicenceViewElement_updateKey, _uSyncLicenceViewElement_clearLicence;
19
19
  import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
20
20
  import { LitElement, css, customElement, html, nothing, state, when, } from '@umbraco-cms/backoffice/external/lit';
21
- import { USYNC_LICENCE_CONTEXT_TOKEN, } from '@jumoo/usync-expansions';
22
21
  import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
23
22
  import { UMB_CONFIRM_MODAL, UMB_MODAL_MANAGER_CONTEXT, } from '@umbraco-cms/backoffice/modal';
23
+ import { USYNC_LICENCE_CONTEXT_TOKEN } from './licence.context';
24
24
  let uSyncLicenceViewElement = class uSyncLicenceViewElement extends UmbElementMixin(LitElement) {
25
25
  constructor() {
26
26
  super();
@@ -1,15 +1,15 @@
1
1
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
2
2
  import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
3
- import { LicenceInfo } from '@jumoo/usync-expansions';
3
+ import { LicenceInfo } from '../api';
4
4
  export declare class uSyncLicenceRepository extends UmbControllerBase {
5
5
  #private;
6
6
  product: string;
7
7
  version: string;
8
8
  constructor(host: UmbControllerHost);
9
9
  checkLegacy(): Promise<import("@umbraco-cms/backoffice/repository").UmbDataSourceResponse<string>>;
10
- getLicence(): Promise<import("@umbraco-cms/backoffice/repository").UmbDataSourceResponse<import("@jumoo/usync-expansions").Licence>>;
10
+ getLicence(): Promise<import("@umbraco-cms/backoffice/repository").UmbDataSourceResponse<import("..").Licence>>;
11
11
  getLicenceInfo(): Promise<import("@umbraco-cms/backoffice/repository").UmbDataSourceResponse<LicenceInfo>>;
12
- getLicenceStatus(): Promise<import("@umbraco-cms/backoffice/repository").UmbDataSourceResponse<import("@jumoo/usync-expansions").LicenceStatusView>>;
12
+ getLicenceStatus(): Promise<import("@umbraco-cms/backoffice/repository").UmbDataSourceResponse<import("..").LicenceStatusView>>;
13
13
  isLicenced(): Promise<import("@umbraco-cms/backoffice/repository").UmbDataSourceResponse<boolean>>;
14
14
  saveLicence(licence: LicenceInfo): Promise<import("@umbraco-cms/backoffice/repository").UmbDataSourceResponse<boolean>>;
15
15
  }
@@ -11,7 +11,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
11
11
  };
12
12
  var _uSyncLicenceRepository_licenceDataSource;
13
13
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
14
- import { uSyncLicenceSource } from '@jumoo/usync-expansions';
14
+ import { uSyncLicenceSource } from './source/licence.source';
15
15
  export class uSyncLicenceRepository extends UmbControllerBase {
16
16
  constructor(host) {
17
17
  super(host);
@@ -1,2 +1 @@
1
- import './components/index.js';
2
1
  export declare const manifests: import("@umbraco-cms/backoffice/extension-api").ManifestBase[];
@@ -1,5 +1,4 @@
1
1
  import { manifests as localizations } from './lang/manifests.js';
2
- import './components/index.js';
3
2
  import { UMB_CURRENT_USER_IS_ADMIN_CONDITION_ALIAS } from '@umbraco-cms/backoffice/current-user';
4
3
  const licenceContext = {
5
4
  type: 'globalContext',
@@ -13,7 +13,7 @@ var _uSyncRestorePointTableElement_instances, _uSyncRestorePointTableElement_onD
13
13
  import { customElement, html, nothing, property, state, } from '@umbraco-cms/backoffice/external/lit';
14
14
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
15
15
  import { RestorePointStatus } from '@jumoo/usync-expansions';
16
- import { TimeOptions } from '@jumoo/usync-expansions';
16
+ import { TimeOptions } from '../constants';
17
17
  /**
18
18
  * @element usync-restore-point-table
19
19
  * @property {Array<RestorePoint>} restorePoints - The restore points to display
@@ -1,7 +1 @@
1
- import './components';
2
- export * from './constants.js';
3
- export * from './restore.context.js';
4
- export * from './restore.repository.js';
5
- export * from './workspace/restore.workspace.context.js';
6
- export * from './workspace/restore.workspace.element.js';
7
- export * from './workspace/restore.workspace-view.element.js';
1
+ export {};
@@ -1,7 +1,8 @@
1
- import './components';
2
- export * from './constants.js';
3
- export * from './restore.context.js';
4
- export * from './restore.repository.js';
5
- export * from './workspace/restore.workspace.context.js';
6
- export * from './workspace/restore.workspace.element.js';
7
- export * from './workspace/restore.workspace-view.element.js';
1
+ // import './components';
2
+ export {};
3
+ // export * from './constants.js';
4
+ // export * from './restore.context.js';
5
+ // export * from './restore.repository.js';
6
+ // export * from './workspace/restore.workspace.context.js';
7
+ // export * from './workspace/restore.workspace.element.js';
8
+ // export * from './workspace/restore.workspace-view.element.js';
@@ -1,6 +1,6 @@
1
- import { uSyncRestore } from '@jumoo/usync-expansions';
2
1
  import { manifests as stepManifests } from './steps/manifest';
3
2
  import { manifests as localizationManifests } from './lang/manifest';
3
+ import { uSyncRestore } from './constants';
4
4
  const workspaceAlias = uSyncRestore.workspace;
5
5
  const restoreMenuItem = {
6
6
  type: 'usync-menuItem',
@@ -4,7 +4,7 @@ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
4
4
  export declare class SyncRestoreContext extends UmbControllerBase {
5
5
  #private;
6
6
  constructor(host: UmbControllerHost);
7
- getRestorePoint(key: string): Promise<import("@jumoo/usync-expansions").RestorePoint>;
7
+ getRestorePoint(key: string): Promise<import("..").RestorePoint | undefined>;
8
8
  }
9
9
  export default SyncRestoreContext;
10
10
  export declare const USYNC_RESTORE_CONTEXT: UmbContextToken<SyncRestoreContext, SyncRestoreContext>;
@@ -11,8 +11,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
11
11
  };
12
12
  var _SyncRestoreContext_respository;
13
13
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
14
- import { SyncRestoreRepository } from '@jumoo/usync-expansions';
15
14
  import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
15
+ import SyncRestoreRepository from './restore.repository';
16
16
  export class SyncRestoreContext extends UmbControllerBase {
17
17
  constructor(host) {
18
18
  super(host);
@@ -5,11 +5,11 @@ export declare class SyncRestoreRepository extends UmbControllerBase {
5
5
  constructor(host: UmbControllerHost);
6
6
  clean(): Promise<unknown>;
7
7
  remove(id: string): Promise<unknown>;
8
- getAll(): Promise<import("..").RestorePoint[]>;
9
- get(key: string): Promise<import("..").RestorePoint>;
10
- getReport(id: string): Promise<import("..").USyncAction[]>;
8
+ getAll(): Promise<import("..").RestorePoint[] | undefined>;
9
+ get(key: string): Promise<import("..").RestorePoint | undefined>;
10
+ getReport(id: string): Promise<import("..").USyncAction[] | undefined>;
11
11
  scan(): Promise<{
12
- [key: string]: number;
13
- }>;
12
+ [key: string]: string | number;
13
+ } | undefined>;
14
14
  }
15
15
  export default SyncRestoreRepository;
@@ -1,4 +1,4 @@
1
- import { uSyncRestore } from '@jumoo/usync-expansions';
1
+ import { uSyncRestore } from '../constants';
2
2
  const restoreStepManifests = [
3
3
  {
4
4
  type: 'jumoo-process-step',
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { ProcessStepElementBase, } from '@jumoo/processing';
8
8
  import { customElement, html } from '@umbraco-cms/backoffice/external/lit';
9
- import { uSyncRestore } from '@jumoo/usync-expansions';
9
+ import { uSyncRestore } from '../constants';
10
10
  let uSyncRestoreCreateCompleteElement = class uSyncRestoreCreateCompleteElement extends ProcessStepElementBase {
11
11
  constructor() {
12
12
  super();
@@ -18,7 +18,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
18
18
  var _uSyncRestoreCreateElement_instances, _uSyncRestoreCreateElement_pipelineContext, _uSyncRestoreCreateElement_onNameChange, _uSyncRestoreCreateElement_onIncludeMedia;
19
19
  import { JUMOO_PROCESSING_CONTEXT, ProcessStepElementBase, } from '@jumoo/processing';
20
20
  import { css, customElement, html } from '@umbraco-cms/backoffice/external/lit';
21
- import { uSyncRestore } from '@jumoo/usync-expansions';
21
+ import { uSyncRestore } from '../constants';
22
22
  let uSyncRestoreCreateElement = class uSyncRestoreCreateElement extends ProcessStepElementBase {
23
23
  constructor() {
24
24
  super();
@@ -45,7 +45,7 @@ let uSyncRestoreCreateElement = class uSyncRestoreCreateElement extends ProcessS
45
45
  <uui-input
46
46
  type="text"
47
47
  label="Name"
48
- .value=${options.title}
48
+ .value=${options.title ?? ''}
49
49
  @change=${__classPrivateFieldGet(this, _uSyncRestoreCreateElement_instances, "m", _uSyncRestoreCreateElement_onNameChange)}></uui-input>
50
50
  </div>
51
51
  </umb-property-layout>