@deenruv/react-ui-devkit 1.0.17-dev.20 → 1.0.17-dev.24
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/dist/access.d.ts +9 -0
- package/dist/access.js +25 -1
- package/dist/access.js.map +1 -1
- package/dist/components/molecules/ListTable.js +3 -3
- package/dist/components/molecules/ListTable.js.map +1 -1
- package/dist/components/templates/DetailList/DetailList.d.ts +2 -1
- package/dist/components/templates/DetailList/DetailList.js +10 -9
- package/dist/components/templates/DetailList/DetailList.js.map +1 -1
- package/dist/components/templates/DetailList/DetailListColumns/ActionsDropdown.js +2 -1
- package/dist/components/templates/DetailList/DetailListColumns/ActionsDropdown.js.map +1 -1
- package/dist/components/templates/DetailList/useDetailListHook/buildSearchFilter.d.ts +9 -0
- package/dist/components/templates/DetailList/useDetailListHook/buildSearchFilter.js +37 -0
- package/dist/components/templates/DetailList/useDetailListHook/buildSearchFilter.js.map +1 -0
- package/dist/components/templates/DetailList/useDetailListHook/index.d.ts +3 -1
- package/dist/components/templates/DetailList/useDetailListHook/index.js +53 -36
- package/dist/components/templates/DetailList/useDetailListHook/index.js.map +1 -1
- package/dist/components/templates/DetailView/DetailView.d.ts +5 -4
- package/dist/components/templates/DetailView/DetailView.js +14 -8
- package/dist/components/templates/DetailView/DetailView.js.map +1 -1
- package/dist/components/templates/DetailView/useDetailView.d.ts +185 -182
- package/dist/hooks/useAssets.d.ts +2 -2
- package/dist/plugins/plugin-store.d.ts +2 -2
- package/dist/selectors/ModifyOrderSelector.d.ts +6 -0
- package/dist/selectors/details/OrderDetailSelector.d.ts +6 -0
- package/dist/selectors/details/OrderDetailSelector.js +3 -0
- package/dist/selectors/details/OrderDetailSelector.js.map +1 -1
- package/dist/state/order-refund.d.ts +117 -0
- package/dist/state/order-refund.js +156 -0
- package/dist/state/order-refund.js.map +1 -0
- package/dist/state/order.d.ts +13 -5
- package/dist/state/order.js +76 -26
- package/dist/state/order.js.map +1 -1
- package/dist/state/server.d.ts +6 -1
- package/dist/state/server.js +29 -3
- package/dist/state/server.js.map +1 -1
- package/dist/types/models.d.ts +1 -0
- package/dist/types/types.d.ts +9 -0
- package/dist/version.js +1 -1
- package/package.json +5 -5
|
@@ -2,19 +2,19 @@ import React from "react";
|
|
|
2
2
|
import { ModelTypes } from "@deenruv/admin-types";
|
|
3
3
|
import { type DetailKeys, type ExternalDetailLocationSelector } from "../../../types";
|
|
4
4
|
import type { PropsType, StoreContextType } from "./types";
|
|
5
|
-
export declare const DetailViewStoreContext: React.Context<StoreContextType<"orders-summary" | "
|
|
6
|
-
id:
|
|
7
|
-
code: string;
|
|
8
|
-
channels: {
|
|
9
|
-
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
10
|
-
code: string;
|
|
11
|
-
}[];
|
|
5
|
+
export declare const DetailViewStoreContext: React.Context<StoreContextType<"orders-summary" | "channels-detail-view" | "collections-detail-view" | "promotions-detail-view" | "customers-detail-view" | "orders-detail-view" | "roles-detail-view" | "countries-detail-view" | "admins-detail-view" | "facets-detail-view" | "products-detail-view" | "sellers-detail-view" | "zones-detail-view" | "globalSettings-detail-view" | "customerGroups-detail-view" | "paymentMethods-detail-view" | "shippingMethods-detail-view" | "stockLocations-detail-view" | "taxCategories-detail-view" | "taxRates-detail-view", {
|
|
6
|
+
id: string;
|
|
12
7
|
createdAt: string;
|
|
13
8
|
updatedAt: string;
|
|
9
|
+
code: string;
|
|
14
10
|
description: string;
|
|
15
11
|
permissions: import("@deenruv/admin-types").Permission[];
|
|
12
|
+
channels: {
|
|
13
|
+
id: string;
|
|
14
|
+
code: string;
|
|
15
|
+
}[];
|
|
16
16
|
} | {
|
|
17
|
-
id:
|
|
17
|
+
id: string;
|
|
18
18
|
createdAt: string;
|
|
19
19
|
updatedAt: string;
|
|
20
20
|
firstName: string;
|
|
@@ -22,134 +22,133 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
22
22
|
emailAddress: string;
|
|
23
23
|
user: {
|
|
24
24
|
roles: {
|
|
25
|
-
id:
|
|
26
|
-
code: string;
|
|
27
|
-
channels: {
|
|
28
|
-
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
29
|
-
code: string;
|
|
30
|
-
}[];
|
|
25
|
+
id: string;
|
|
31
26
|
createdAt: string;
|
|
32
27
|
updatedAt: string;
|
|
28
|
+
code: string;
|
|
33
29
|
description: string;
|
|
34
30
|
permissions: import("@deenruv/admin-types").Permission[];
|
|
31
|
+
channels: {
|
|
32
|
+
id: string;
|
|
33
|
+
code: string;
|
|
34
|
+
}[];
|
|
35
35
|
}[];
|
|
36
36
|
};
|
|
37
37
|
} | {
|
|
38
|
-
id:
|
|
39
|
-
code: string;
|
|
38
|
+
id: string;
|
|
40
39
|
createdAt: string;
|
|
41
40
|
updatedAt: string;
|
|
41
|
+
code: string;
|
|
42
42
|
token: string;
|
|
43
|
+
defaultLanguageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
44
|
+
availableLanguageCodes?: import("@deenruv/admin-types").LanguageCode[] | null | undefined;
|
|
43
45
|
defaultTaxZone?: {
|
|
44
|
-
id:
|
|
46
|
+
id: string;
|
|
45
47
|
name: string;
|
|
46
48
|
} | undefined;
|
|
47
49
|
defaultShippingZone?: {
|
|
48
|
-
id:
|
|
50
|
+
id: string;
|
|
49
51
|
name: string;
|
|
50
52
|
} | undefined;
|
|
51
|
-
defaultLanguageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
52
|
-
availableLanguageCodes?: import("@deenruv/admin-types").LanguageCode[] | null | undefined;
|
|
53
53
|
defaultCurrencyCode: import("@deenruv/admin-types").GraphQLTypes["CurrencyCode"];
|
|
54
54
|
availableCurrencyCodes: import("@deenruv/admin-types").CurrencyCode[];
|
|
55
55
|
pricesIncludeTax: boolean;
|
|
56
56
|
seller?: {
|
|
57
|
-
id:
|
|
57
|
+
id: string;
|
|
58
58
|
name: string;
|
|
59
59
|
} | undefined;
|
|
60
60
|
} | {
|
|
61
|
-
id:
|
|
61
|
+
id: string;
|
|
62
62
|
createdAt: string;
|
|
63
63
|
updatedAt: string;
|
|
64
64
|
name: string;
|
|
65
65
|
members: (({
|
|
66
66
|
[x: string]: unknown;
|
|
67
67
|
} & {
|
|
68
|
-
id:
|
|
69
|
-
code: string;
|
|
68
|
+
id: string;
|
|
70
69
|
createdAt: string;
|
|
71
70
|
updatedAt: string;
|
|
71
|
+
code: string;
|
|
72
72
|
name: string;
|
|
73
73
|
enabled: boolean;
|
|
74
74
|
}) | ({
|
|
75
75
|
[x: string]: unknown;
|
|
76
76
|
} & {
|
|
77
|
-
id:
|
|
78
|
-
code: string;
|
|
77
|
+
id: string;
|
|
79
78
|
createdAt: string;
|
|
80
79
|
updatedAt: string;
|
|
80
|
+
code: string;
|
|
81
81
|
name: string;
|
|
82
82
|
enabled: boolean;
|
|
83
83
|
}))[];
|
|
84
84
|
} | {
|
|
85
|
-
id:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
preview: string;
|
|
90
|
-
}[];
|
|
85
|
+
id: string;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
updatedAt: string;
|
|
88
|
+
description: string;
|
|
91
89
|
channels: {
|
|
92
|
-
id:
|
|
90
|
+
id: string;
|
|
93
91
|
code: string;
|
|
94
92
|
}[];
|
|
95
|
-
|
|
93
|
+
name: string;
|
|
94
|
+
enabled: boolean;
|
|
95
|
+
translations: {
|
|
96
|
+
id: string;
|
|
97
|
+
description: string;
|
|
96
98
|
name: string;
|
|
99
|
+
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
97
100
|
slug: string;
|
|
98
|
-
parent?: {
|
|
99
|
-
slug: string;
|
|
100
|
-
} | undefined;
|
|
101
101
|
}[];
|
|
102
|
-
createdAt: string;
|
|
103
|
-
updatedAt: string;
|
|
104
|
-
name: string;
|
|
105
102
|
slug: string;
|
|
106
|
-
description: string;
|
|
107
103
|
featuredAsset?: {
|
|
108
|
-
id:
|
|
109
|
-
source: string;
|
|
104
|
+
id: string;
|
|
110
105
|
preview: string;
|
|
106
|
+
source: string;
|
|
111
107
|
} | undefined;
|
|
112
|
-
|
|
113
|
-
id:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
slug: string;
|
|
117
|
-
description: string;
|
|
108
|
+
assets: {
|
|
109
|
+
id: string;
|
|
110
|
+
preview: string;
|
|
111
|
+
source: string;
|
|
118
112
|
}[];
|
|
119
|
-
enabled: boolean;
|
|
120
113
|
optionGroups: {
|
|
121
|
-
id:
|
|
114
|
+
id: string;
|
|
122
115
|
code: string;
|
|
123
116
|
name: string;
|
|
124
117
|
}[];
|
|
125
118
|
facetValues: {
|
|
126
|
-
id:
|
|
119
|
+
id: string;
|
|
127
120
|
name: string;
|
|
128
121
|
translations: {
|
|
129
|
-
id:
|
|
130
|
-
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
122
|
+
id: string;
|
|
131
123
|
name: string;
|
|
124
|
+
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
132
125
|
}[];
|
|
133
126
|
facet: {
|
|
134
|
-
id:
|
|
127
|
+
id: string;
|
|
135
128
|
name: string;
|
|
136
129
|
translations: {
|
|
137
|
-
id:
|
|
138
|
-
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
130
|
+
id: string;
|
|
139
131
|
name: string;
|
|
132
|
+
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
140
133
|
}[];
|
|
141
134
|
};
|
|
142
135
|
}[];
|
|
136
|
+
collections: {
|
|
137
|
+
name: string;
|
|
138
|
+
parent?: {
|
|
139
|
+
slug: string;
|
|
140
|
+
} | undefined;
|
|
141
|
+
slug: string;
|
|
142
|
+
}[];
|
|
143
143
|
} | {
|
|
144
|
-
id:
|
|
144
|
+
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
146
|
updatedAt: string;
|
|
147
147
|
trackInventory: boolean;
|
|
148
148
|
outOfStockThreshold: number;
|
|
149
149
|
availableLanguages: import("@deenruv/admin-types").LanguageCode[];
|
|
150
150
|
} | {
|
|
151
|
-
id:
|
|
152
|
-
title?: string | undefined | null | undefined;
|
|
151
|
+
id: string;
|
|
153
152
|
createdAt: string;
|
|
154
153
|
updatedAt: string;
|
|
155
154
|
firstName: string;
|
|
@@ -158,13 +157,14 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
158
157
|
user?: {
|
|
159
158
|
verified: boolean;
|
|
160
159
|
} | undefined;
|
|
160
|
+
phoneNumber?: string | undefined | null | undefined;
|
|
161
161
|
groups: {
|
|
162
|
-
id:
|
|
162
|
+
id: string;
|
|
163
163
|
name: string;
|
|
164
164
|
}[];
|
|
165
|
-
|
|
165
|
+
title?: string | undefined | null | undefined;
|
|
166
166
|
addresses?: {
|
|
167
|
-
id:
|
|
167
|
+
id: string;
|
|
168
168
|
phoneNumber?: string | undefined | null | undefined;
|
|
169
169
|
fullName?: string | undefined | null | undefined;
|
|
170
170
|
company?: string | undefined | null | undefined;
|
|
@@ -180,17 +180,17 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
180
180
|
defaultBillingAddress?: boolean | undefined | null | undefined;
|
|
181
181
|
}[] | undefined;
|
|
182
182
|
} | {
|
|
183
|
-
id:
|
|
183
|
+
id: string;
|
|
184
184
|
createdAt: string;
|
|
185
185
|
updatedAt: string;
|
|
186
|
-
name: string;
|
|
187
186
|
description: string;
|
|
187
|
+
name: string;
|
|
188
|
+
enabled: boolean;
|
|
188
189
|
translations: {
|
|
189
|
-
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
190
|
-
name: string;
|
|
191
190
|
description: string;
|
|
191
|
+
name: string;
|
|
192
|
+
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
192
193
|
}[];
|
|
193
|
-
enabled: boolean;
|
|
194
194
|
startsAt?: string | null | undefined;
|
|
195
195
|
endsAt?: string | null | undefined;
|
|
196
196
|
couponCode?: string | undefined | null | undefined;
|
|
@@ -211,54 +211,61 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
211
211
|
}[];
|
|
212
212
|
}[];
|
|
213
213
|
} | {
|
|
214
|
-
id:
|
|
214
|
+
id: string;
|
|
215
215
|
createdAt: string;
|
|
216
216
|
updatedAt: string;
|
|
217
|
-
name: string;
|
|
218
217
|
description: string;
|
|
218
|
+
name: string;
|
|
219
219
|
} | {
|
|
220
|
-
id:
|
|
220
|
+
id: string;
|
|
221
221
|
createdAt: string;
|
|
222
222
|
updatedAt: string;
|
|
223
223
|
name: string;
|
|
224
224
|
isDefault: boolean;
|
|
225
225
|
} | {
|
|
226
|
-
id:
|
|
226
|
+
id: string;
|
|
227
227
|
createdAt: string;
|
|
228
228
|
updatedAt: string;
|
|
229
229
|
name: string;
|
|
230
230
|
} | {
|
|
231
|
-
id:
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
id: string;
|
|
232
|
+
createdAt: string;
|
|
233
|
+
updatedAt: string;
|
|
234
|
+
description: string;
|
|
235
|
+
name: string;
|
|
236
|
+
translations: {
|
|
237
|
+
id: string;
|
|
238
|
+
description: string;
|
|
234
239
|
name: string;
|
|
240
|
+
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
235
241
|
slug: string;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
242
|
+
}[];
|
|
243
|
+
parent?: {
|
|
244
|
+
name: string;
|
|
245
|
+
slug: string;
|
|
246
|
+
} | undefined;
|
|
247
|
+
slug: string;
|
|
248
|
+
featuredAsset?: {
|
|
249
|
+
id: string;
|
|
250
|
+
preview: string;
|
|
251
|
+
} | undefined;
|
|
240
252
|
assets: {
|
|
241
|
-
id:
|
|
253
|
+
id: string;
|
|
242
254
|
}[];
|
|
243
255
|
isPrivate: boolean;
|
|
244
256
|
inheritFilters: boolean;
|
|
245
|
-
createdAt: string;
|
|
246
|
-
updatedAt: string;
|
|
247
|
-
name: string;
|
|
248
|
-
slug: string;
|
|
249
257
|
breadcrumbs: {
|
|
250
|
-
id:
|
|
258
|
+
id: string;
|
|
251
259
|
slug: string;
|
|
252
260
|
}[];
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
256
|
-
preview: string;
|
|
257
|
-
} | undefined;
|
|
258
|
-
parent?: {
|
|
261
|
+
children?: {
|
|
262
|
+
id: string;
|
|
259
263
|
name: string;
|
|
260
264
|
slug: string;
|
|
261
|
-
|
|
265
|
+
featuredAsset?: {
|
|
266
|
+
preview: string;
|
|
267
|
+
} | undefined;
|
|
268
|
+
}[] | undefined;
|
|
262
269
|
filters: {
|
|
263
270
|
code: string;
|
|
264
271
|
args: {
|
|
@@ -266,25 +273,13 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
266
273
|
value: string;
|
|
267
274
|
}[];
|
|
268
275
|
}[];
|
|
269
|
-
translations: {
|
|
270
|
-
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
271
|
-
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
272
|
-
name: string;
|
|
273
|
-
slug: string;
|
|
274
|
-
description: string;
|
|
275
|
-
}[];
|
|
276
276
|
} | {
|
|
277
|
-
id:
|
|
278
|
-
code: string;
|
|
277
|
+
id: string;
|
|
279
278
|
createdAt: string;
|
|
280
279
|
updatedAt: string;
|
|
281
|
-
|
|
280
|
+
code: string;
|
|
282
281
|
description: string;
|
|
283
|
-
|
|
284
|
-
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
285
|
-
name: string;
|
|
286
|
-
description: string;
|
|
287
|
-
}[];
|
|
282
|
+
name: string;
|
|
288
283
|
checker: {
|
|
289
284
|
code: string;
|
|
290
285
|
args: {
|
|
@@ -292,6 +287,11 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
292
287
|
value: string;
|
|
293
288
|
}[];
|
|
294
289
|
};
|
|
290
|
+
translations: {
|
|
291
|
+
description: string;
|
|
292
|
+
name: string;
|
|
293
|
+
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
294
|
+
}[];
|
|
295
295
|
fulfillmentHandlerCode: string;
|
|
296
296
|
calculator: {
|
|
297
297
|
code: string;
|
|
@@ -301,16 +301,11 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
301
301
|
}[];
|
|
302
302
|
};
|
|
303
303
|
} | {
|
|
304
|
-
id:
|
|
305
|
-
code: string;
|
|
304
|
+
id: string;
|
|
306
305
|
createdAt: string;
|
|
307
306
|
updatedAt: string;
|
|
307
|
+
code: string;
|
|
308
308
|
name: string;
|
|
309
|
-
translations: {
|
|
310
|
-
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
311
|
-
name: string;
|
|
312
|
-
description: string;
|
|
313
|
-
}[];
|
|
314
309
|
enabled: boolean;
|
|
315
310
|
checker?: {
|
|
316
311
|
code: string;
|
|
@@ -326,86 +321,93 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
326
321
|
value: string;
|
|
327
322
|
}[];
|
|
328
323
|
};
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
values: {
|
|
332
|
-
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
333
|
-
code: string;
|
|
334
|
-
createdAt: string;
|
|
335
|
-
updatedAt: string;
|
|
324
|
+
translations: {
|
|
325
|
+
description: string;
|
|
336
326
|
name: string;
|
|
327
|
+
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
337
328
|
}[];
|
|
338
|
-
|
|
339
|
-
|
|
329
|
+
} | {
|
|
330
|
+
id: string;
|
|
340
331
|
createdAt: string;
|
|
341
332
|
updatedAt: string;
|
|
342
|
-
|
|
333
|
+
code: string;
|
|
343
334
|
name: string;
|
|
344
335
|
translations: {
|
|
336
|
+
name: string;
|
|
345
337
|
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
338
|
+
}[];
|
|
339
|
+
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
340
|
+
isPrivate: boolean;
|
|
341
|
+
values: {
|
|
342
|
+
id: string;
|
|
343
|
+
createdAt: string;
|
|
344
|
+
updatedAt: string;
|
|
345
|
+
code: string;
|
|
346
346
|
name: string;
|
|
347
347
|
}[];
|
|
348
348
|
} | {
|
|
349
|
-
id:
|
|
350
|
-
code: string;
|
|
349
|
+
id: string;
|
|
351
350
|
createdAt: string;
|
|
352
351
|
updatedAt: string;
|
|
352
|
+
code: string;
|
|
353
353
|
name: string;
|
|
354
|
+
enabled: boolean;
|
|
354
355
|
translations: {
|
|
355
|
-
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
356
356
|
name: string;
|
|
357
|
+
languageCode: import("@deenruv/admin-types").GraphQLTypes["LanguageCode"];
|
|
357
358
|
}[];
|
|
358
|
-
enabled: boolean;
|
|
359
359
|
} | {
|
|
360
|
-
id:
|
|
360
|
+
id: string;
|
|
361
361
|
createdAt: string;
|
|
362
362
|
updatedAt: string;
|
|
363
363
|
name: string;
|
|
364
364
|
} | {
|
|
365
|
-
id:
|
|
365
|
+
id: string;
|
|
366
366
|
createdAt: string;
|
|
367
367
|
updatedAt: string;
|
|
368
368
|
name: string;
|
|
369
|
-
value: number;
|
|
370
369
|
enabled: boolean;
|
|
370
|
+
value: number;
|
|
371
371
|
category: {
|
|
372
|
-
id:
|
|
372
|
+
id: string;
|
|
373
373
|
name: string;
|
|
374
374
|
};
|
|
375
375
|
zone: {
|
|
376
|
-
id:
|
|
376
|
+
id: string;
|
|
377
377
|
name: string;
|
|
378
378
|
};
|
|
379
379
|
customerGroup?: {
|
|
380
|
-
id:
|
|
380
|
+
id: string;
|
|
381
381
|
name: string;
|
|
382
382
|
} | undefined;
|
|
383
383
|
} | {
|
|
384
|
-
id:
|
|
385
|
-
code: string;
|
|
386
|
-
promotions: {
|
|
387
|
-
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
388
|
-
name: string;
|
|
389
|
-
couponCode?: string | undefined | null | undefined;
|
|
390
|
-
}[];
|
|
384
|
+
id: string;
|
|
391
385
|
createdAt: string;
|
|
392
386
|
updatedAt: string;
|
|
387
|
+
code: string;
|
|
393
388
|
currencyCode: import("@deenruv/admin-types").GraphQLTypes["CurrencyCode"];
|
|
394
389
|
nextStates: string[];
|
|
390
|
+
state: string;
|
|
391
|
+
discounts: {
|
|
392
|
+
description: string;
|
|
393
|
+
type: import("@deenruv/admin-types").GraphQLTypes["AdjustmentType"];
|
|
394
|
+
amount: number;
|
|
395
|
+
adjustmentSource: string;
|
|
396
|
+
amountWithTax: number;
|
|
397
|
+
}[];
|
|
395
398
|
modifications: {
|
|
396
|
-
id:
|
|
399
|
+
id: string;
|
|
397
400
|
note: string;
|
|
398
401
|
}[];
|
|
399
|
-
state: string;
|
|
400
402
|
customer?: {
|
|
401
|
-
id:
|
|
402
|
-
title?: string | undefined | null | undefined;
|
|
403
|
+
id: string;
|
|
403
404
|
firstName: string;
|
|
404
405
|
lastName: string;
|
|
405
406
|
emailAddress: string;
|
|
406
407
|
phoneNumber?: string | undefined | null | undefined;
|
|
408
|
+
title?: string | undefined | null | undefined;
|
|
407
409
|
addresses?: {
|
|
408
|
-
id:
|
|
410
|
+
id: string;
|
|
409
411
|
phoneNumber?: string | undefined | null | undefined;
|
|
410
412
|
fullName?: string | undefined | null | undefined;
|
|
411
413
|
company?: string | undefined | null | undefined;
|
|
@@ -447,42 +449,45 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
447
449
|
countryCode?: string | undefined | null | undefined;
|
|
448
450
|
} | undefined;
|
|
449
451
|
lines: {
|
|
450
|
-
id:
|
|
452
|
+
id: string;
|
|
453
|
+
quantity: number;
|
|
454
|
+
linePriceWithTax: number;
|
|
455
|
+
unitPriceWithTax: number;
|
|
456
|
+
discountedLinePriceWithTax: number;
|
|
451
457
|
productVariant: {
|
|
452
458
|
product: {
|
|
453
|
-
id:
|
|
459
|
+
id: string;
|
|
454
460
|
name: string;
|
|
455
461
|
slug: string;
|
|
456
462
|
featuredAsset?: {
|
|
457
|
-
id:
|
|
463
|
+
id: string;
|
|
458
464
|
preview: string;
|
|
459
465
|
} | undefined;
|
|
460
466
|
};
|
|
461
|
-
id:
|
|
467
|
+
id: string;
|
|
468
|
+
currencyCode: import("@deenruv/admin-types").GraphQLTypes["CurrencyCode"];
|
|
462
469
|
name: string;
|
|
463
470
|
featuredAsset?: {
|
|
464
|
-
id:
|
|
471
|
+
id: string;
|
|
465
472
|
preview: string;
|
|
466
473
|
} | undefined;
|
|
467
|
-
currencyCode: import("@deenruv/admin-types").GraphQLTypes["CurrencyCode"];
|
|
468
474
|
stockLevels: {
|
|
469
475
|
stockOnHand: number;
|
|
470
476
|
}[];
|
|
471
|
-
productId:
|
|
477
|
+
productId: string;
|
|
472
478
|
sku: string;
|
|
473
479
|
price: number;
|
|
474
480
|
priceWithTax: number;
|
|
475
481
|
};
|
|
476
482
|
unitPrice: number;
|
|
477
|
-
unitPriceWithTax: number;
|
|
478
483
|
discountedUnitPrice: number;
|
|
479
484
|
discountedUnitPriceWithTax: number;
|
|
480
|
-
|
|
485
|
+
proratedUnitPrice: number;
|
|
486
|
+
proratedUnitPriceWithTax: number;
|
|
487
|
+
orderPlacedQuantity: number;
|
|
481
488
|
taxRate: number;
|
|
482
489
|
linePrice: number;
|
|
483
|
-
linePriceWithTax: number;
|
|
484
490
|
discountedLinePrice: number;
|
|
485
|
-
discountedLinePriceWithTax: number;
|
|
486
491
|
}[];
|
|
487
492
|
surcharges: {
|
|
488
493
|
createdAt: string;
|
|
@@ -492,66 +497,64 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
492
497
|
priceWithTax: number;
|
|
493
498
|
taxRate: number;
|
|
494
499
|
}[];
|
|
495
|
-
discounts: {
|
|
496
|
-
description: string;
|
|
497
|
-
type: import("@deenruv/admin-types").GraphQLTypes["AdjustmentType"];
|
|
498
|
-
amount: number;
|
|
499
|
-
adjustmentSource: string;
|
|
500
|
-
amountWithTax: number;
|
|
501
|
-
}[];
|
|
502
500
|
couponCodes: string[];
|
|
503
501
|
excludedPromotionIds?: string[] | null | undefined;
|
|
502
|
+
promotions: {
|
|
503
|
+
id: string;
|
|
504
|
+
name: string;
|
|
505
|
+
couponCode?: string | undefined | null | undefined;
|
|
506
|
+
}[];
|
|
504
507
|
payments?: {
|
|
505
|
-
id:
|
|
506
|
-
metadata?: any;
|
|
508
|
+
id: string;
|
|
507
509
|
createdAt: string;
|
|
508
|
-
state: string;
|
|
509
510
|
method: string;
|
|
510
511
|
amount: number;
|
|
512
|
+
state: string;
|
|
511
513
|
transactionId?: string | undefined | null | undefined;
|
|
512
514
|
errorMessage?: string | undefined | null | undefined;
|
|
513
515
|
refunds: {
|
|
514
|
-
id:
|
|
516
|
+
id: string;
|
|
515
517
|
state: string;
|
|
518
|
+
transactionId?: string | undefined | null | undefined;
|
|
516
519
|
lines: {
|
|
517
520
|
quantity: number;
|
|
518
|
-
orderLineId:
|
|
521
|
+
orderLineId: string;
|
|
519
522
|
}[];
|
|
520
523
|
total: number;
|
|
521
|
-
transactionId?: string | undefined | null | undefined;
|
|
522
524
|
}[];
|
|
525
|
+
metadata?: any;
|
|
523
526
|
}[] | undefined;
|
|
524
527
|
fulfillments?: {
|
|
525
|
-
id:
|
|
526
|
-
summary: {
|
|
527
|
-
quantity: number;
|
|
528
|
-
orderLineId: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
529
|
-
fulfillmentId: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
530
|
-
}[];
|
|
528
|
+
id: string;
|
|
531
529
|
createdAt: string;
|
|
532
530
|
updatedAt: string;
|
|
533
531
|
nextStates: string[];
|
|
532
|
+
method: string;
|
|
534
533
|
state: string;
|
|
535
534
|
lines: {
|
|
536
535
|
quantity: number;
|
|
537
|
-
orderLineId:
|
|
536
|
+
orderLineId: string;
|
|
537
|
+
}[];
|
|
538
|
+
summary: {
|
|
539
|
+
quantity: number;
|
|
540
|
+
orderLineId: string;
|
|
541
|
+
fulfillmentId: string;
|
|
538
542
|
}[];
|
|
539
|
-
method: string;
|
|
540
543
|
trackingCode?: string | undefined | null | undefined;
|
|
541
544
|
}[] | undefined;
|
|
542
545
|
subTotalWithTax: number;
|
|
543
546
|
shippingLines: {
|
|
544
|
-
id:
|
|
547
|
+
id: string;
|
|
545
548
|
price: number;
|
|
546
549
|
priceWithTax: number;
|
|
547
|
-
discountedPrice: number;
|
|
548
|
-
discountedPriceWithTax: number;
|
|
549
550
|
shippingMethod: {
|
|
550
|
-
id:
|
|
551
|
+
id: string;
|
|
551
552
|
code: string;
|
|
552
553
|
name: string;
|
|
553
554
|
fulfillmentHandlerCode: string;
|
|
554
555
|
};
|
|
556
|
+
discountedPrice: number;
|
|
557
|
+
discountedPriceWithTax: number;
|
|
555
558
|
}[];
|
|
556
559
|
shipping: number;
|
|
557
560
|
total: number;
|
|
@@ -5,8 +5,7 @@ type Config = {
|
|
|
5
5
|
};
|
|
6
6
|
export declare const useAssets: (config?: Config) => {
|
|
7
7
|
assets: {
|
|
8
|
-
id:
|
|
9
|
-
source: string;
|
|
8
|
+
id: string;
|
|
10
9
|
createdAt: string;
|
|
11
10
|
name: string;
|
|
12
11
|
preview: string;
|
|
@@ -14,6 +13,7 @@ export declare const useAssets: (config?: Config) => {
|
|
|
14
13
|
mimeType: string;
|
|
15
14
|
width: number;
|
|
16
15
|
height: number;
|
|
16
|
+
source: string;
|
|
17
17
|
focalPoint?: {
|
|
18
18
|
x: number;
|
|
19
19
|
y: number;
|