@dropins/storefront-quote-management 0.0.1-alpha17 → 0.0.1-alpha19
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/api/deleteQuote/deleteQuote.d.ts +28 -0
- package/api/deleteQuote/graphql/DeleteQuoteMutation.d.ts +10 -0
- package/api/deleteQuote/index.d.ts +10 -0
- package/api/getStoreConfig/getStoreConfig.d.ts +4 -0
- package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +10 -0
- package/api/getStoreConfig/index.d.ts +10 -0
- package/api/graphql/NegotiableQuoteAddressFragment.d.ts +10 -0
- package/api/graphql/NegotiableQuoteFragment.d.ts +1 -1
- package/api/graphql/ShippingMethodFragment.d.ts +10 -0
- package/api/index.d.ts +11 -0
- package/api/renameNegotiableQuote/graphql/RenameNegotiableQuoteMutation.d.ts +10 -0
- package/api/renameNegotiableQuote/index.d.ts +10 -0
- package/api/renameNegotiableQuote/renameNegotiableQuote.d.ts +9 -0
- package/api.js +22 -8
- package/api.js.map +1 -1
- package/chunks/ChevronDown.js +4 -0
- package/chunks/ChevronDown.js.map +1 -0
- package/chunks/NegotiableQuoteFragment.js +204 -26
- package/chunks/NegotiableQuoteFragment.js.map +1 -1
- package/chunks/OrderSummaryLine.js +4 -0
- package/chunks/OrderSummaryLine.js.map +1 -0
- package/chunks/WarningFilled.js +1 -1
- package/chunks/WarningFilled.js.map +1 -1
- package/chunks/negotiableQuotes.js +2 -2
- package/chunks/negotiableQuotes.js.map +1 -1
- package/chunks/renameNegotiableQuote.js +62 -0
- package/chunks/renameNegotiableQuote.js.map +1 -0
- package/chunks/state.js +4 -0
- package/chunks/state.js.map +1 -0
- package/chunks/transform-quote.js +4 -0
- package/chunks/transform-quote.js.map +1 -0
- package/chunks/uploadFile.js +3 -3
- package/chunks/uploadFile.js.map +1 -1
- package/components/ConfirmationModal/ConfirmationModal.d.ts +16 -0
- package/components/ConfirmationModal/index.d.ts +11 -0
- package/components/OrderSummary/OrderSummary.d.ts +7 -26
- package/components/RenameQuoteModal/RenameQuoteModal.d.ts +18 -0
- package/components/RenameQuoteModal/index.d.ts +11 -0
- package/components/index.d.ts +2 -0
- package/containers/ManageNegotiableQuote.js +1 -1
- package/containers/ManageNegotiableQuote.js.map +1 -1
- package/containers/OrderSummary/OrderSummary.d.ts +11 -0
- package/containers/OrderSummary/index.d.ts +11 -0
- package/containers/OrderSummary.d.ts +3 -0
- package/containers/OrderSummary.js +4 -0
- package/containers/OrderSummary.js.map +1 -0
- package/containers/OrderSummaryLine/OrderSummaryLine.d.ts +14 -0
- package/containers/OrderSummaryLine/index.d.ts +11 -0
- package/containers/OrderSummaryLine.d.ts +3 -0
- package/containers/OrderSummaryLine.js +4 -0
- package/containers/OrderSummaryLine.js.map +1 -0
- package/containers/QuoteSummaryList/QuoteSummaryList.d.ts +51 -0
- package/containers/QuoteSummaryList/index.d.ts +11 -0
- package/containers/QuoteSummaryList.d.ts +3 -0
- package/containers/QuoteSummaryList.js +4 -0
- package/containers/QuoteSummaryList.js.map +1 -0
- package/containers/QuotesListTable.js +1 -1
- package/containers/QuotesListTable.js.map +1 -1
- package/containers/RequestNegotiableQuoteForm.js +1 -1
- package/containers/RequestNegotiableQuoteForm.js.map +1 -1
- package/containers/index.d.ts +15 -4
- package/data/models/__fixtures__/negotiableQuoteModel.d.ts +1 -0
- package/data/models/__fixtures__/storeConfigModel.d.ts +5 -0
- package/data/models/index.d.ts +9 -0
- package/data/models/negotiable-quote-model.d.ts +66 -10
- package/data/models/store-config-model.d.ts +27 -0
- package/data/transforms/__fixtures__/negotiableQuoteData.d.ts +274 -0
- package/data/transforms/__fixtures__/storeConfigData.d.ts +31 -0
- package/data/transforms/index.d.ts +1 -0
- package/data/transforms/transform-quote.d.ts +8 -0
- package/data/transforms/transform-store-config.d.ts +4 -0
- package/i18n/en_US.json.d.ts +51 -0
- package/lib/state.d.ts +2 -0
- package/package.json +1 -1
- package/render.js +3 -3
- package/render.js.map +1 -1
- package/types/state.types.d.ts +3 -0
- package/chunks/fetch-graphql.js +0 -4
- package/chunks/fetch-graphql.js.map +0 -1
- package/chunks/sendForReview.js +0 -21
- package/chunks/sendForReview.js.map +0 -1
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
1
9
|
export interface ShippingAddress {
|
|
2
10
|
/**
|
|
3
11
|
* The unique string identifier of the address
|
|
@@ -28,11 +36,13 @@ export interface NegotiableQuoteModel {
|
|
|
28
36
|
expirationDate: string;
|
|
29
37
|
updatedAt: string;
|
|
30
38
|
status: NegotiableQuoteStatus;
|
|
39
|
+
isVirtual: boolean;
|
|
31
40
|
buyer: {
|
|
32
41
|
firstname: string;
|
|
33
42
|
lastname: string;
|
|
34
43
|
};
|
|
35
44
|
templateName?: string;
|
|
45
|
+
totalQuantity: number;
|
|
36
46
|
comments?: {
|
|
37
47
|
uid: string;
|
|
38
48
|
createdAt: string;
|
|
@@ -48,21 +58,28 @@ export interface NegotiableQuoteModel {
|
|
|
48
58
|
}[];
|
|
49
59
|
history?: NegotiableQuoteHistoryEntry[];
|
|
50
60
|
prices: {
|
|
61
|
+
appliedDiscounts?: Discount[];
|
|
62
|
+
appliedTaxes?: Tax[];
|
|
63
|
+
discount?: Currency;
|
|
64
|
+
grandTotal?: Currency;
|
|
65
|
+
grandTotalExcludingTax?: Currency;
|
|
66
|
+
shippingExcludingTax?: Currency;
|
|
67
|
+
shippingIncludingTax?: Currency;
|
|
51
68
|
subtotalExcludingTax?: Currency;
|
|
52
69
|
subtotalIncludingTax?: Currency;
|
|
53
70
|
subtotalWithDiscountExcludingTax?: Currency;
|
|
54
|
-
|
|
55
|
-
appliedTaxes?: {
|
|
56
|
-
amount: Currency;
|
|
57
|
-
label: string;
|
|
58
|
-
}[];
|
|
71
|
+
totalTax?: Currency;
|
|
59
72
|
};
|
|
60
73
|
items: NegotiableQuoteCartItem[];
|
|
61
74
|
shippingAddresses?: ShippingAddress[];
|
|
62
75
|
canCheckout: boolean;
|
|
63
76
|
canSendForReview: boolean;
|
|
77
|
+
lockedForEditing?: boolean;
|
|
78
|
+
canDelete: boolean;
|
|
64
79
|
}
|
|
65
80
|
export interface NegotiableQuoteCartItem {
|
|
81
|
+
itemType: string;
|
|
82
|
+
uid: string;
|
|
66
83
|
product: {
|
|
67
84
|
uid: string;
|
|
68
85
|
sku: string;
|
|
@@ -71,12 +88,14 @@ export interface NegotiableQuoteCartItem {
|
|
|
71
88
|
templateName?: string;
|
|
72
89
|
priceRange: {
|
|
73
90
|
maximumPrice: {
|
|
74
|
-
regularPrice:
|
|
75
|
-
value: number;
|
|
76
|
-
};
|
|
91
|
+
regularPrice: Currency;
|
|
77
92
|
};
|
|
78
93
|
};
|
|
79
94
|
};
|
|
95
|
+
image: ItemImage;
|
|
96
|
+
links?: ItemLinks;
|
|
97
|
+
discounted: boolean;
|
|
98
|
+
discountedTotal: Currency;
|
|
80
99
|
catalogDiscount: {
|
|
81
100
|
amountOff: number;
|
|
82
101
|
percentOff: number;
|
|
@@ -86,12 +105,22 @@ export interface NegotiableQuoteCartItem {
|
|
|
86
105
|
value: string;
|
|
87
106
|
amount: Currency;
|
|
88
107
|
}[];
|
|
108
|
+
discountPercentage?: number;
|
|
109
|
+
insufficientQuantity?: boolean;
|
|
110
|
+
outOfStock?: boolean;
|
|
89
111
|
stockStatus: string;
|
|
90
112
|
quantity: number;
|
|
91
113
|
prices: {
|
|
114
|
+
regularPrice: Currency;
|
|
115
|
+
priceIncludingTax: Currency;
|
|
92
116
|
originalItemPrice: Currency;
|
|
117
|
+
originalRowTotal: Currency;
|
|
93
118
|
rowTotal: Currency;
|
|
119
|
+
rowTotalIncludingTax: Currency;
|
|
94
120
|
};
|
|
121
|
+
savingsAmount?: Currency;
|
|
122
|
+
noteFromBuyer?: ItemNote[];
|
|
123
|
+
noteFromSeller?: ItemNote[];
|
|
95
124
|
configurableOptions?: {
|
|
96
125
|
optionLabel: string;
|
|
97
126
|
valueLabel: string;
|
|
@@ -105,8 +134,22 @@ export interface NegotiableQuoteCartItem {
|
|
|
105
134
|
price: Currency;
|
|
106
135
|
}[];
|
|
107
136
|
}[];
|
|
108
|
-
|
|
109
|
-
|
|
137
|
+
customizableOptions?: {
|
|
138
|
+
type: string;
|
|
139
|
+
label: string;
|
|
140
|
+
values: {
|
|
141
|
+
label: string;
|
|
142
|
+
value: string;
|
|
143
|
+
}[];
|
|
144
|
+
}[];
|
|
145
|
+
}
|
|
146
|
+
interface ItemImage {
|
|
147
|
+
src: string;
|
|
148
|
+
alt: string;
|
|
149
|
+
}
|
|
150
|
+
interface ItemLinks {
|
|
151
|
+
count: number;
|
|
152
|
+
result: string;
|
|
110
153
|
}
|
|
111
154
|
export interface ItemNote {
|
|
112
155
|
createdAt: string;
|
|
@@ -120,6 +163,18 @@ export interface Currency {
|
|
|
120
163
|
value: number;
|
|
121
164
|
currency: string;
|
|
122
165
|
}
|
|
166
|
+
export interface Tax {
|
|
167
|
+
amount: Currency;
|
|
168
|
+
label: string;
|
|
169
|
+
}
|
|
170
|
+
export interface Discount {
|
|
171
|
+
amount: Currency;
|
|
172
|
+
label: string;
|
|
173
|
+
coupon?: Coupon;
|
|
174
|
+
}
|
|
175
|
+
export interface Coupon {
|
|
176
|
+
code: string;
|
|
177
|
+
}
|
|
123
178
|
export interface NegotiableQuoteListEntry {
|
|
124
179
|
uid: string;
|
|
125
180
|
name: string;
|
|
@@ -221,4 +276,5 @@ export interface PaginationInfo {
|
|
|
221
276
|
totalPages: number;
|
|
222
277
|
pageSizeOptions?: number[];
|
|
223
278
|
}
|
|
279
|
+
export {};
|
|
224
280
|
//# sourceMappingURL=negotiable-quote-model.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
export declare enum QuoteDisplayAmount {
|
|
10
|
+
TAX_EXCLUDED = 1,
|
|
11
|
+
TAX_INCLUDED = 2,
|
|
12
|
+
TAX_INCLUDED_AND_EXCLUDED = 3
|
|
13
|
+
}
|
|
14
|
+
export interface StoreConfigModel {
|
|
15
|
+
quoteSummaryDisplayTotal: number;
|
|
16
|
+
quoteSummaryMaxItems: number;
|
|
17
|
+
quoteDisplaySettings: {
|
|
18
|
+
zeroTax: boolean;
|
|
19
|
+
subtotal: QuoteDisplayAmount;
|
|
20
|
+
price: QuoteDisplayAmount;
|
|
21
|
+
shipping: QuoteDisplayAmount;
|
|
22
|
+
fullSummary: boolean;
|
|
23
|
+
grandTotal: boolean;
|
|
24
|
+
};
|
|
25
|
+
useConfigurableParentThumbnail: boolean;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=store-config-model.d.ts.map
|
|
@@ -33,6 +33,10 @@ export declare const mockGraphQLResponse: {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
+
thumbnail: {
|
|
37
|
+
url: string;
|
|
38
|
+
label: string;
|
|
39
|
+
};
|
|
36
40
|
};
|
|
37
41
|
quantity: number;
|
|
38
42
|
note_from_buyer: {
|
|
@@ -53,6 +57,23 @@ export declare const mockGraphQLResponse: {
|
|
|
53
57
|
}[];
|
|
54
58
|
}[];
|
|
55
59
|
prices: {
|
|
60
|
+
applied_taxes: {
|
|
61
|
+
label: string;
|
|
62
|
+
amount: {
|
|
63
|
+
value: number;
|
|
64
|
+
currency: string;
|
|
65
|
+
};
|
|
66
|
+
}[];
|
|
67
|
+
discounts: {
|
|
68
|
+
label: string;
|
|
69
|
+
amount: {
|
|
70
|
+
value: number;
|
|
71
|
+
currency: string;
|
|
72
|
+
};
|
|
73
|
+
coupon: {
|
|
74
|
+
code: string;
|
|
75
|
+
};
|
|
76
|
+
}[];
|
|
56
77
|
subtotal_excluding_tax: {
|
|
57
78
|
value: number;
|
|
58
79
|
};
|
|
@@ -66,6 +87,10 @@ export declare const mockGraphQLResponse: {
|
|
|
66
87
|
value: number;
|
|
67
88
|
currency: string;
|
|
68
89
|
};
|
|
90
|
+
grand_total_excluding_tax: {
|
|
91
|
+
value: number;
|
|
92
|
+
currency: string;
|
|
93
|
+
};
|
|
69
94
|
};
|
|
70
95
|
};
|
|
71
96
|
};
|
|
@@ -76,6 +101,8 @@ export declare const mockQuoteData: {
|
|
|
76
101
|
name: string;
|
|
77
102
|
created_at: string;
|
|
78
103
|
status: string;
|
|
104
|
+
is_virtual: boolean;
|
|
105
|
+
total_quantity: number;
|
|
79
106
|
sales_rep_name: string;
|
|
80
107
|
expiration_date: string;
|
|
81
108
|
updated_at: string;
|
|
@@ -95,25 +122,51 @@ export declare const mockQuoteData: {
|
|
|
95
122
|
template_id: null;
|
|
96
123
|
template_name: null;
|
|
97
124
|
items: ({
|
|
125
|
+
__typename: string;
|
|
126
|
+
uid: string;
|
|
98
127
|
product: {
|
|
99
128
|
name: string;
|
|
100
129
|
sku: string;
|
|
101
130
|
uid: string;
|
|
102
131
|
stock_status: string;
|
|
103
132
|
quantity: null;
|
|
133
|
+
thumbnail: {
|
|
134
|
+
url: string;
|
|
135
|
+
label: string;
|
|
136
|
+
};
|
|
104
137
|
price_range: {
|
|
105
138
|
maximum_price: {
|
|
106
139
|
regular_price: {
|
|
140
|
+
currency: string;
|
|
107
141
|
value: number;
|
|
108
142
|
};
|
|
143
|
+
discount: {
|
|
144
|
+
amount_off: number;
|
|
145
|
+
percent_off: number;
|
|
146
|
+
};
|
|
109
147
|
};
|
|
110
148
|
};
|
|
149
|
+
price_tiers: {
|
|
150
|
+
quantity: number;
|
|
151
|
+
final_price: {
|
|
152
|
+
currency: string;
|
|
153
|
+
value: number;
|
|
154
|
+
};
|
|
155
|
+
discount: {
|
|
156
|
+
amount_off: number;
|
|
157
|
+
percent_off: number;
|
|
158
|
+
};
|
|
159
|
+
}[];
|
|
111
160
|
};
|
|
112
161
|
prices: {
|
|
113
162
|
price: {
|
|
114
163
|
currency: string;
|
|
115
164
|
value: number;
|
|
116
165
|
};
|
|
166
|
+
price_including_tax: {
|
|
167
|
+
currency: string;
|
|
168
|
+
value: number;
|
|
169
|
+
};
|
|
117
170
|
original_item_price: {
|
|
118
171
|
currency: string;
|
|
119
172
|
value: number;
|
|
@@ -126,6 +179,10 @@ export declare const mockQuoteData: {
|
|
|
126
179
|
currency: string;
|
|
127
180
|
value: number;
|
|
128
181
|
};
|
|
182
|
+
row_total_including_tax: {
|
|
183
|
+
currency: string;
|
|
184
|
+
value: number;
|
|
185
|
+
};
|
|
129
186
|
catalog_discount: {
|
|
130
187
|
amount_off: number;
|
|
131
188
|
percent_off: number;
|
|
@@ -156,28 +213,51 @@ export declare const mockQuoteData: {
|
|
|
156
213
|
note: string;
|
|
157
214
|
note_uid: string;
|
|
158
215
|
}[];
|
|
216
|
+
customizable_options: {
|
|
217
|
+
type: string;
|
|
218
|
+
label: string;
|
|
219
|
+
values: {
|
|
220
|
+
label: string;
|
|
221
|
+
value: string;
|
|
222
|
+
}[];
|
|
223
|
+
}[];
|
|
159
224
|
configurable_options?: undefined;
|
|
225
|
+
configured_variant?: undefined;
|
|
160
226
|
bundle_options?: undefined;
|
|
227
|
+
links?: undefined;
|
|
161
228
|
} | {
|
|
229
|
+
__typename: string;
|
|
230
|
+
uid: string;
|
|
162
231
|
product: {
|
|
163
232
|
name: string;
|
|
164
233
|
sku: string;
|
|
165
234
|
uid: string;
|
|
166
235
|
stock_status: string;
|
|
167
236
|
quantity: null;
|
|
237
|
+
thumbnail: {
|
|
238
|
+
url: string;
|
|
239
|
+
label: string;
|
|
240
|
+
};
|
|
168
241
|
price_range: {
|
|
169
242
|
maximum_price: {
|
|
170
243
|
regular_price: {
|
|
244
|
+
currency: string;
|
|
171
245
|
value: number;
|
|
172
246
|
};
|
|
247
|
+
discount?: undefined;
|
|
173
248
|
};
|
|
174
249
|
};
|
|
250
|
+
price_tiers?: undefined;
|
|
175
251
|
};
|
|
176
252
|
prices: {
|
|
177
253
|
price: {
|
|
178
254
|
currency: string;
|
|
179
255
|
value: number;
|
|
180
256
|
};
|
|
257
|
+
price_including_tax: {
|
|
258
|
+
currency: string;
|
|
259
|
+
value: number;
|
|
260
|
+
};
|
|
181
261
|
original_item_price: {
|
|
182
262
|
currency: string;
|
|
183
263
|
value: number;
|
|
@@ -190,6 +270,10 @@ export declare const mockQuoteData: {
|
|
|
190
270
|
currency: string;
|
|
191
271
|
value: number;
|
|
192
272
|
};
|
|
273
|
+
row_total_including_tax: {
|
|
274
|
+
currency: string;
|
|
275
|
+
value: number;
|
|
276
|
+
};
|
|
193
277
|
catalog_discount: {
|
|
194
278
|
amount_off: number;
|
|
195
279
|
percent_off: number;
|
|
@@ -210,27 +294,81 @@ export declare const mockQuoteData: {
|
|
|
210
294
|
note_uid: string;
|
|
211
295
|
}[];
|
|
212
296
|
note_from_seller: never[];
|
|
297
|
+
configured_variant: {
|
|
298
|
+
thumbnail: {
|
|
299
|
+
label: string;
|
|
300
|
+
url: string;
|
|
301
|
+
};
|
|
302
|
+
price_range: {
|
|
303
|
+
maximum_price: {
|
|
304
|
+
regular_price: {
|
|
305
|
+
currency: string;
|
|
306
|
+
value: number;
|
|
307
|
+
};
|
|
308
|
+
discount: {
|
|
309
|
+
amount_off: number;
|
|
310
|
+
percent_off: number;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
price_tiers: {
|
|
315
|
+
quantity: number;
|
|
316
|
+
final_price: {
|
|
317
|
+
currency: string;
|
|
318
|
+
value: number;
|
|
319
|
+
};
|
|
320
|
+
discount: {
|
|
321
|
+
amount_off: number;
|
|
322
|
+
percent_off: number;
|
|
323
|
+
};
|
|
324
|
+
}[];
|
|
325
|
+
};
|
|
326
|
+
customizable_options: {
|
|
327
|
+
type: string;
|
|
328
|
+
label: string;
|
|
329
|
+
values: {
|
|
330
|
+
label: string;
|
|
331
|
+
value: string;
|
|
332
|
+
}[];
|
|
333
|
+
}[];
|
|
213
334
|
bundle_options?: undefined;
|
|
335
|
+
links?: undefined;
|
|
214
336
|
} | {
|
|
337
|
+
__typename: string;
|
|
338
|
+
uid: string;
|
|
215
339
|
product: {
|
|
216
340
|
name: string;
|
|
217
341
|
sku: string;
|
|
218
342
|
uid: string;
|
|
219
343
|
stock_status: string;
|
|
220
344
|
quantity: null;
|
|
345
|
+
thumbnail: {
|
|
346
|
+
url: string;
|
|
347
|
+
label: string;
|
|
348
|
+
};
|
|
221
349
|
price_range: {
|
|
222
350
|
maximum_price: {
|
|
223
351
|
regular_price: {
|
|
352
|
+
currency: string;
|
|
224
353
|
value: number;
|
|
225
354
|
};
|
|
355
|
+
discount: {
|
|
356
|
+
amount_off: number;
|
|
357
|
+
percent_off: number;
|
|
358
|
+
};
|
|
226
359
|
};
|
|
227
360
|
};
|
|
361
|
+
price_tiers?: undefined;
|
|
228
362
|
};
|
|
229
363
|
prices: {
|
|
230
364
|
price: {
|
|
231
365
|
currency: string;
|
|
232
366
|
value: number;
|
|
233
367
|
};
|
|
368
|
+
price_including_tax: {
|
|
369
|
+
currency: string;
|
|
370
|
+
value: number;
|
|
371
|
+
};
|
|
234
372
|
original_item_price: {
|
|
235
373
|
currency: string;
|
|
236
374
|
value: number;
|
|
@@ -243,6 +381,10 @@ export declare const mockQuoteData: {
|
|
|
243
381
|
currency: string;
|
|
244
382
|
value: number;
|
|
245
383
|
};
|
|
384
|
+
row_total_including_tax: {
|
|
385
|
+
currency: string;
|
|
386
|
+
value: number;
|
|
387
|
+
};
|
|
246
388
|
catalog_discount: {
|
|
247
389
|
amount_off: number;
|
|
248
390
|
percent_off: number;
|
|
@@ -288,7 +430,103 @@ export declare const mockQuoteData: {
|
|
|
288
430
|
note: string;
|
|
289
431
|
note_uid: string;
|
|
290
432
|
}[];
|
|
433
|
+
customizable_options?: undefined;
|
|
434
|
+
configurable_options?: undefined;
|
|
435
|
+
configured_variant?: undefined;
|
|
436
|
+
links?: undefined;
|
|
437
|
+
} | {
|
|
438
|
+
__typename: string;
|
|
439
|
+
uid: string;
|
|
440
|
+
product: {
|
|
441
|
+
name: string;
|
|
442
|
+
sku: string;
|
|
443
|
+
uid: string;
|
|
444
|
+
stock_status: string;
|
|
445
|
+
quantity: null;
|
|
446
|
+
thumbnail: {
|
|
447
|
+
url: string;
|
|
448
|
+
label: string;
|
|
449
|
+
};
|
|
450
|
+
price_range: {
|
|
451
|
+
maximum_price: {
|
|
452
|
+
regular_price: {
|
|
453
|
+
currency: string;
|
|
454
|
+
value: number;
|
|
455
|
+
};
|
|
456
|
+
discount: {
|
|
457
|
+
amount_off: number;
|
|
458
|
+
percent_off: number;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
price_tiers: {
|
|
463
|
+
quantity: number;
|
|
464
|
+
final_price: {
|
|
465
|
+
currency: string;
|
|
466
|
+
value: number;
|
|
467
|
+
};
|
|
468
|
+
discount: {
|
|
469
|
+
amount_off: number;
|
|
470
|
+
percent_off: number;
|
|
471
|
+
};
|
|
472
|
+
}[];
|
|
473
|
+
};
|
|
474
|
+
prices: {
|
|
475
|
+
price: {
|
|
476
|
+
currency: string;
|
|
477
|
+
value: number;
|
|
478
|
+
};
|
|
479
|
+
price_including_tax: {
|
|
480
|
+
currency: string;
|
|
481
|
+
value: number;
|
|
482
|
+
};
|
|
483
|
+
original_item_price: {
|
|
484
|
+
currency: string;
|
|
485
|
+
value: number;
|
|
486
|
+
};
|
|
487
|
+
original_row_total: {
|
|
488
|
+
currency: string;
|
|
489
|
+
value: number;
|
|
490
|
+
};
|
|
491
|
+
row_total: {
|
|
492
|
+
currency: string;
|
|
493
|
+
value: number;
|
|
494
|
+
};
|
|
495
|
+
row_total_including_tax: {
|
|
496
|
+
currency: string;
|
|
497
|
+
value: number;
|
|
498
|
+
};
|
|
499
|
+
catalog_discount: {
|
|
500
|
+
amount_off: number;
|
|
501
|
+
percent_off: number;
|
|
502
|
+
};
|
|
503
|
+
discounts: {
|
|
504
|
+
label: string;
|
|
505
|
+
value: number;
|
|
506
|
+
amount: {
|
|
507
|
+
currency: string;
|
|
508
|
+
value: number;
|
|
509
|
+
};
|
|
510
|
+
}[];
|
|
511
|
+
};
|
|
512
|
+
quantity: number;
|
|
513
|
+
links: {
|
|
514
|
+
sort_order: number;
|
|
515
|
+
title: string;
|
|
516
|
+
}[];
|
|
517
|
+
customizable_options: {
|
|
518
|
+
type: string;
|
|
519
|
+
label: string;
|
|
520
|
+
values: {
|
|
521
|
+
label: string;
|
|
522
|
+
value: string;
|
|
523
|
+
}[];
|
|
524
|
+
}[];
|
|
525
|
+
note_from_buyer?: undefined;
|
|
526
|
+
note_from_seller?: undefined;
|
|
291
527
|
configurable_options?: undefined;
|
|
528
|
+
configured_variant?: undefined;
|
|
529
|
+
bundle_options?: undefined;
|
|
292
530
|
})[];
|
|
293
531
|
history: {
|
|
294
532
|
uid: string;
|
|
@@ -334,10 +572,24 @@ export declare const mockQuoteData: {
|
|
|
334
572
|
value: number;
|
|
335
573
|
};
|
|
336
574
|
}[];
|
|
575
|
+
discounts: {
|
|
576
|
+
label: string;
|
|
577
|
+
amount: {
|
|
578
|
+
currency: string;
|
|
579
|
+
value: number;
|
|
580
|
+
};
|
|
581
|
+
coupon: {
|
|
582
|
+
code: string;
|
|
583
|
+
};
|
|
584
|
+
}[];
|
|
337
585
|
grand_total: {
|
|
338
586
|
currency: string;
|
|
339
587
|
value: number;
|
|
340
588
|
};
|
|
589
|
+
grand_total_excluding_tax: {
|
|
590
|
+
currency: string;
|
|
591
|
+
value: number;
|
|
592
|
+
};
|
|
341
593
|
};
|
|
342
594
|
shipping_addresses: {
|
|
343
595
|
uid: string;
|
|
@@ -357,6 +609,24 @@ export declare const mockQuoteData: {
|
|
|
357
609
|
label: string;
|
|
358
610
|
};
|
|
359
611
|
telephone: string;
|
|
612
|
+
selected_shipping_method: {
|
|
613
|
+
amount: {
|
|
614
|
+
currency: string;
|
|
615
|
+
value: number;
|
|
616
|
+
};
|
|
617
|
+
carrier_code: string;
|
|
618
|
+
carrier_title: string;
|
|
619
|
+
method_code: string;
|
|
620
|
+
method_title: string;
|
|
621
|
+
price_excl_tax: {
|
|
622
|
+
value: number;
|
|
623
|
+
currency: string;
|
|
624
|
+
};
|
|
625
|
+
price_incl_tax: {
|
|
626
|
+
value: number;
|
|
627
|
+
currency: string;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
360
630
|
}[];
|
|
361
631
|
};
|
|
362
632
|
export declare const mockNegotiableQuotesResponse: {
|
|
@@ -386,6 +656,10 @@ export declare const mockNegotiableQuotesResponse: {
|
|
|
386
656
|
};
|
|
387
657
|
};
|
|
388
658
|
};
|
|
659
|
+
thumbnail: {
|
|
660
|
+
url: string;
|
|
661
|
+
label: string;
|
|
662
|
+
};
|
|
389
663
|
};
|
|
390
664
|
quantity: number;
|
|
391
665
|
note_from_buyer: {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
export declare const mockStoreConfigGraphQLResponse: {
|
|
10
|
+
cart_summary_display_quantity: number;
|
|
11
|
+
max_items_in_order_summary: number;
|
|
12
|
+
shopping_cart_display_zero_tax: boolean;
|
|
13
|
+
shopping_cart_display_subtotal: number;
|
|
14
|
+
shopping_cart_display_price: number;
|
|
15
|
+
shopping_cart_display_shipping: number;
|
|
16
|
+
shopping_cart_display_full_summary: boolean;
|
|
17
|
+
shopping_cart_display_grand_total: boolean;
|
|
18
|
+
configurable_thumbnail_source: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const mockStoreConfigGraphQLResponseWithWrongValues: {
|
|
21
|
+
shopping_cart_display_subtotal: number;
|
|
22
|
+
shopping_cart_display_price: null;
|
|
23
|
+
shopping_cart_display_shipping: number;
|
|
24
|
+
cart_summary_display_quantity: number;
|
|
25
|
+
max_items_in_order_summary: number;
|
|
26
|
+
shopping_cart_display_zero_tax: boolean;
|
|
27
|
+
shopping_cart_display_full_summary: boolean;
|
|
28
|
+
shopping_cart_display_grand_total: boolean;
|
|
29
|
+
configurable_thumbnail_source: string;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=storeConfigData.d.ts.map
|
|
@@ -4,4 +4,12 @@ export declare function transformQuote(quoteData: any): NegotiableQuoteModel | n
|
|
|
4
4
|
export declare function transformNegotiableQuotesList(quotesData: any): NegotiableQuotesListModel | null;
|
|
5
5
|
export declare function transformPaginationInfo(quotesData: NegotiableQuotesListModel | null): PaginationInfo | null;
|
|
6
6
|
export declare const getDefaultPageSizeOptions: () => number[];
|
|
7
|
+
export declare function calculateTotal(data: any[], currency: string): any;
|
|
8
|
+
export declare function transformShippingPrices(quote: any): {
|
|
9
|
+
shippingIncludingTax?: undefined;
|
|
10
|
+
shippingExcludingTax?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
shippingIncludingTax: any;
|
|
13
|
+
shippingExcludingTax: any;
|
|
14
|
+
};
|
|
7
15
|
//# sourceMappingURL=transform-quote.d.ts.map
|