@umbraco-commerce/backoffice 14.0.0-rc2

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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # @umbraco-commerce/backoffice
2
+ This package contains the TypeScript type definitions for the Umbraco Commerce Backoffice.
3
+
4
+ ## Installation
5
+ ```bash
6
+ npm install -D @umbraco-commerce/backoffice
7
+ ```
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@umbraco-commerce/backoffice",
3
+ "version": "14.0.0-rc2",
4
+ "type": "module",
5
+ "types": "./types/umbraco-commerce-public.d.ts",
6
+ "files": [
7
+ "types/umbraco-commerce-public.d.ts",
8
+ "README.md"
9
+ ],
10
+ "engines": {
11
+ "node": ">=20.9 <21",
12
+ "npm": ">=10.1 < 11"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/umbraco/Umbraco.Commerce.Issues/issues"
16
+ },
17
+ "author": {
18
+ "name": "Umbraco A/S",
19
+ "email": "dxp@umbraco.com",
20
+ "url": "https://umbraco.com"
21
+ },
22
+ "peerDependencies": {
23
+ "@umbraco-cms/backoffice": ">= 14.1.0 < 15"
24
+ }
25
+ }
@@ -0,0 +1,200 @@
1
+ import { HTMLElementConstructor } from '@umbraco-cms/backoffice/extension-api';
2
+ import { LitElement } from '@umbraco-cms/backoffice/external/lit';
3
+ import { ManifestBase } from '@umbraco-cms/backoffice/extension-api';
4
+ import { ManifestElement } from '@umbraco-cms/backoffice/extension-api';
5
+ import { ManifestElementAndApi } from '@umbraco-cms/backoffice/extension-api';
6
+ import { ManifestKind } from '@umbraco-cms/backoffice/extension-api';
7
+ import { TemplateResult } from 'lit-html';
8
+ import { UmbApi } from '@umbraco-cms/backoffice/extension-api';
9
+ import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
10
+ import { UmbElement } from '@umbraco-cms/backoffice/element-api';
11
+ import { UmbExtensionElementInitializer } from '@umbraco-cms/backoffice/extension-api';
12
+ import { UmbPropertyEditorConfig } from '@umbraco-cms/backoffice/property-editor';
13
+
14
+ /** @public **/
15
+ export declare const UC_ENTITY_QUICK_ACTION_DEFAULT_KIND_MANIFEST: UcDefaultManifestEntityQuickActionKind;
16
+
17
+ /** @public **/
18
+ export declare type UcAnalyticsTimeframe = {
19
+ dateRange: UcAnalyticsTimeframeRange;
20
+ comparisonDateRange?: UcAnalyticsTimeframeRange;
21
+ };
22
+
23
+ /** @public **/
24
+ export declare type UcAnalyticsTimeframeRange = {
25
+ alias: string;
26
+ from: Date;
27
+ to: Date;
28
+ };
29
+
30
+ /** @public **/
31
+ export declare interface UcAnalyticsWidget extends UmbControllerHostElement {
32
+ storeId: string;
33
+ manifest: UcManifestAnalyticsWidget;
34
+ timeframe: UcAnalyticsTimeframe;
35
+ }
36
+
37
+ /** @public **/
38
+ export declare type UcDefaultManifestEntityQuickActionKind = ManifestKind<UcManifestEntityQuickAction> & ManifestBase;
39
+
40
+ /** @public **/
41
+ export declare interface UcEntityQuickActionApi extends UmbApi {
42
+ manifest: UcManifestEntityQuickAction;
43
+ execute(): Promise<void>;
44
+ }
45
+
46
+ /** @public **/
47
+ export declare interface UcEntityQuickActionElement extends UmbControllerHostElement {
48
+ manifest: UcManifestEntityQuickAction;
49
+ api?: UcEntityQuickActionApi;
50
+ }
51
+
52
+ /** @public **/
53
+ export declare interface UcManifestActivityLogEntry extends ManifestBase {
54
+ type: 'ucActivityLogEntry';
55
+ forEventType: string;
56
+ meta: UcMetaActivityLogEntry;
57
+ }
58
+
59
+ /** @public **/
60
+ export declare interface UcManifestAnalyticsWidget extends ManifestElement<UcAnalyticsWidget> {
61
+ type: 'ucAnalyticsWidget';
62
+ meta: UcMetaAnalyticsWidget;
63
+ }
64
+
65
+ /** @public **/
66
+ export declare interface UcManifestEntityQuickAction extends ManifestElementAndApi<UcEntityQuickActionElement, UcEntityQuickActionApi> {
67
+ type: 'ucEntityQuickAction';
68
+ meta: UcMetaEntityQuickAction;
69
+ }
70
+
71
+ /** @public **/
72
+ export declare interface UcManifestOrderCollectionProperty extends UcManifestResolvableOrderProperty<UcMetaOrderCollectionProperty>, ManifestBase {
73
+ type: 'ucOrderCollectionProperty';
74
+ forEntityTypes?: Array<string>;
75
+ meta: UcMetaOrderCollectionProperty;
76
+ }
77
+
78
+ /** @public **/
79
+ export declare interface UcManifestOrderLineProperty extends ManifestBase {
80
+ type: 'ucOrderLineProperty';
81
+ forEntityTypes?: Array<string>;
82
+ meta: UcMetaOrderLineProperty;
83
+ }
84
+
85
+ /** @public **/
86
+ export declare interface UcManifestOrderProperty extends UcManifestResolvableOrderProperty<UcMetaOrderProperty>, ManifestBase {
87
+ type: 'ucOrderProperty';
88
+ forEntityTypes?: Array<string>;
89
+ meta: UcMetaOrderProperty;
90
+ }
91
+
92
+ /** @public **/
93
+ export declare interface UcManifestResolvableOrderProperty<TMeta extends UcMetaResolvableOrderProperty> {
94
+ meta: TMeta;
95
+ }
96
+
97
+ /** @public **/
98
+ export declare interface UcManifestStoreMenuItem extends ManifestElement<UcStoreMenuItemElement> {
99
+ type: 'ucStoreMenuItem';
100
+ meta: UcMetaStoreMenuItem;
101
+ }
102
+
103
+ /** @public **/
104
+ export declare interface UcMetaActivityLogEntry {
105
+ color?: string;
106
+ tag?: string;
107
+ label?: string;
108
+ href?: string;
109
+ }
110
+
111
+ /** @public **/
112
+ export declare interface UcMetaAnalyticsWidget {
113
+ label: string;
114
+ description?: string;
115
+ }
116
+
117
+ /** @public **/
118
+ export declare interface UcMetaEntityQuickAction {
119
+ entityType: string;
120
+ label: string;
121
+ look?: 'primary' | 'secondary';
122
+ }
123
+
124
+ /** @public **/
125
+ export declare interface UcMetaOrderCollectionProperty extends UcMetaResolvableOrderProperty {
126
+ label?: string | null;
127
+ placeholder?: string | null;
128
+ align?: "left" | "center" | "right" | null;
129
+ labelUiAlias?: string | null;
130
+ labelConfig?: UmbPropertyEditorConfig | undefined;
131
+ }
132
+
133
+ /** @public **/
134
+ export declare interface UcMetaOrderLineProperty {
135
+ propertyAlias: string;
136
+ readOnly?: boolean;
137
+ showInOrderLineSummary?: boolean;
138
+ summaryStyle?: "inline" | "table";
139
+ label?: string | null;
140
+ description?: string | null;
141
+ placeholder?: string | null;
142
+ editorUiAlias?: string | null;
143
+ editorElementName?: string | null;
144
+ editorConfig?: UmbPropertyEditorConfig | undefined;
145
+ labelUiAlias?: string | null;
146
+ labelElementName?: string | null;
147
+ labelConfig?: UmbPropertyEditorConfig | undefined;
148
+ }
149
+
150
+ /** @public **/
151
+ export declare interface UcMetaOrderProperty extends UcMetaResolvableOrderProperty {
152
+ group: string;
153
+ label?: string | null;
154
+ description?: string | null;
155
+ placeholder?: string | null;
156
+ editorUiAlias?: string | null;
157
+ editorElementName?: string | null;
158
+ editorConfig?: UmbPropertyEditorConfig | undefined;
159
+ labelUiAlias?: string | null;
160
+ labelElementName?: string | null;
161
+ labelConfig?: UmbPropertyEditorConfig | undefined;
162
+ }
163
+
164
+ /** @public **/
165
+ export declare interface UcMetaResolvableOrderProperty {
166
+ propertyAlias: string;
167
+ }
168
+
169
+ /** @public **/
170
+ export declare interface UcMetaStoreMenuItem {
171
+ menus: string[];
172
+ label?: string;
173
+ entityType: string;
174
+ childEntityTypes?: string[];
175
+ parentAlias?: string;
176
+ icon?: string;
177
+ selectable?: boolean;
178
+ }
179
+
180
+ /** @public **/
181
+ export declare class UcStoreMenuItemElement extends UcStoreMenuItemElementBase {
182
+ #private;
183
+ manifest: UcManifestStoreMenuItem;
184
+ rootUnique: string;
185
+ rootEntityType: string;
186
+ exts: Array<UmbExtensionElementInitializer>;
187
+ _href?: string;
188
+ _childHrefs: string[];
189
+ private _isActive;
190
+ constructor();
191
+ private _observeSection;
192
+ private _constructPath;
193
+ connectedCallback(): void;
194
+ render(): TemplateResult<1>;
195
+ }
196
+
197
+ /** @public **/
198
+ export declare const UcStoreMenuItemElementBase: HTMLElementConstructor<UmbElement> & typeof LitElement;
199
+
200
+ export { }