@dropins/storefront-quote-management 0.0.1-alpha18 → 0.0.1-alpha20
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/acceptQuoteTemplate/acceptQuoteTemplate.d.ts +13 -0
- package/api/acceptQuoteTemplate/graphql/acceptQuoteTemplate.d.ts +10 -0
- package/api/acceptQuoteTemplate/index.d.ts +10 -0
- package/api/addQuoteTemplateLineItemNote/addQuoteTemplateLineItemNote.d.ts +15 -0
- package/api/addQuoteTemplateLineItemNote/graphql/setQuoteTemplateLineItemNote.d.ts +10 -0
- package/api/addQuoteTemplateLineItemNote/index.d.ts +10 -0
- package/api/addQuoteTemplateShippingAddress/addQuoteTemplateShippingAddress.d.ts +37 -0
- package/api/addQuoteTemplateShippingAddress/graphql/setNegotiableQuoteTemplateShippingAddress.d.ts +10 -0
- package/api/addQuoteTemplateShippingAddress/index.d.ts +10 -0
- package/api/cancelQuoteTemplate/cancelQuoteTemplate.d.ts +14 -0
- package/api/cancelQuoteTemplate/graphql/cancelQuoteTemplate.d.ts +10 -0
- package/api/cancelQuoteTemplate/index.d.ts +10 -0
- package/api/closeNegotiableQuote/closeNegotiableQuote.d.ts +31 -0
- package/api/closeNegotiableQuote/graphql/CloseNegotiableQuoteMutation.d.ts +2 -0
- package/api/closeNegotiableQuote/index.d.ts +10 -0
- package/api/createQuoteTemplate/createQuoteTemplate.d.ts +4 -0
- package/api/createQuoteTemplate/graphql/createQuoteTemplate.d.ts +10 -0
- package/api/createQuoteTemplate/index.d.ts +10 -0
- package/api/deleteQuoteTemplate/deleteQuoteTemplate.d.ts +15 -0
- package/api/deleteQuoteTemplate/graphql/deleteQuoteTemplate.d.ts +10 -0
- package/api/deleteQuoteTemplate/index.d.ts +10 -0
- package/api/generateQuoteFromTemplate/generateQuoteFromTemplate.d.ts +15 -0
- package/api/generateQuoteFromTemplate/graphql/generateNegotiableQuoteFromTemplate.d.ts +10 -0
- package/api/generateQuoteFromTemplate/index.d.ts +10 -0
- package/api/getQuoteTemplateData/getQuoteTemplateData.d.ts +4 -0
- package/api/getQuoteTemplateData/graphql/getQuoteTemplateData.d.ts +10 -0
- package/api/getQuoteTemplateData/index.d.ts +10 -0
- package/api/getQuoteTemplates/getQuoteTemplates.d.ts +34 -0
- package/api/getQuoteTemplates/graphql/getQuoteTemplates.d.ts +10 -0
- package/api/getQuoteTemplates/index.d.ts +10 -0
- package/api/graphql/NegotiableQuoteFragment.d.ts +4 -12
- package/api/graphql/NegotiableQuoteTemplateFragment.d.ts +10 -0
- package/api/index.d.ts +24 -0
- package/api/openQuoteTemplate/graphql/openQuoteTemplate.d.ts +10 -0
- package/api/openQuoteTemplate/index.d.ts +10 -0
- package/api/openQuoteTemplate/openQuoteTemplate.d.ts +13 -0
- package/api/removeQuoteTemplateItems/graphql/removeNegotiableQuoteTemplateItems.d.ts +10 -0
- package/api/removeQuoteTemplateItems/index.d.ts +10 -0
- package/api/removeQuoteTemplateItems/removeQuoteTemplateItems.d.ts +14 -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/requestNegotiableQuote/graphql/RequestNegotiableQuoteMutation.d.ts +4 -12
- package/api/sendForReview/graphql/SendNegotiableQuoteForReviewMutation.d.ts +4 -12
- package/api/sendQuoteTemplateForReview/graphql/sendQuoteTemplateForReview.d.ts +10 -0
- package/api/sendQuoteTemplateForReview/index.d.ts +10 -0
- package/api/sendQuoteTemplateForReview/sendQuoteTemplateForReview.d.ts +15 -0
- package/api/setShippingAddress/graphql/SetNegotiableQuoteShippingAddressMutation.d.ts +4 -12
- package/api/updateQuantities/graphql/UpdateNegotiableQuoteQuantitiesMutation.d.ts +10 -0
- package/api/updateQuantities/index.d.ts +10 -0
- package/api/updateQuantities/updateQuantities.d.ts +36 -0
- package/api/updateQuoteTemplateItemQuantities/graphql/updateNegotiableQuoteTemplateQuantities.d.ts +10 -0
- package/api/updateQuoteTemplateItemQuantities/index.d.ts +10 -0
- package/api/updateQuoteTemplateItemQuantities/updateQuoteTemplateItemQuantities.d.ts +20 -0
- package/api.js +306 -18
- package/api.js.map +1 -1
- package/chunks/ItemsQuoted.js +1 -1
- package/chunks/ItemsQuoted.js.map +1 -1
- package/chunks/NegotiableQuoteFragment.js +1 -0
- package/chunks/NegotiableQuoteFragment.js.map +1 -1
- package/chunks/OrderSummaryLine.js +1 -1
- package/chunks/OrderSummaryLine.js.map +1 -1
- package/chunks/fetch-graphql.js +1 -1
- package/chunks/fetch-graphql.js.map +1 -1
- package/chunks/getQuoteTemplates.js +50 -0
- package/chunks/getQuoteTemplates.js.map +1 -0
- package/chunks/renameNegotiableQuote.js +104 -0
- package/chunks/renameNegotiableQuote.js.map +1 -0
- package/chunks/updateQuantities.js +21 -0
- package/chunks/updateQuantities.js.map +1 -0
- package/chunks/uploadFile.js.map +1 -1
- package/components/ProductListTable/ProductListTable.d.ts +1 -0
- package/components/QuoteTemplatesListTable/QuoteTemplatesListTable.d.ts +30 -0
- package/components/QuoteTemplatesListTable/index.d.ts +10 -0
- package/components/RenameQuoteModal/RenameQuoteModal.d.ts +18 -0
- package/components/RenameQuoteModal/index.d.ts +11 -0
- package/components/index.d.ts +3 -0
- package/containers/ItemsQuoted/ItemsQuoted.d.ts +1 -1
- package/containers/ItemsQuoted.js +1 -1
- package/containers/ManageNegotiableQuote.js +1 -1
- package/containers/ManageNegotiableQuote.js.map +1 -1
- package/containers/OrderSummary.js +1 -1
- package/containers/OrderSummary.js.map +1 -1
- package/containers/OrderSummaryLine.js +1 -1
- package/containers/QuoteTemplatesListTable/QuoteTemplatesListTable.d.ts +74 -0
- package/containers/QuoteTemplatesListTable/index.d.ts +11 -0
- package/containers/QuoteTemplatesListTable.d.ts +3 -0
- package/containers/QuoteTemplatesListTable.js +4 -0
- package/containers/QuoteTemplatesListTable.js.map +1 -0
- package/containers/QuotesListTable.js +1 -1
- package/containers/QuotesListTable.js.map +1 -1
- package/containers/index.d.ts +3 -2
- package/data/models/__fixtures__/negotiableQuoteTemplatesListModel.d.ts +5 -0
- package/data/models/index.d.ts +1 -0
- package/data/models/negotiable-quote-model.d.ts +21 -13
- package/data/models/negotiable-quote-template-model.d.ts +136 -0
- package/data/transforms/__fixtures__/negotiableQuoteData.d.ts +5 -0
- package/data/transforms/__fixtures__/negotiableQuoteTemplateData.d.ts +1604 -0
- package/data/transforms/index.d.ts +5 -12
- package/data/transforms/transform-quote-template.d.ts +5 -0
- package/i18n/en_US.json.d.ts +37 -1
- package/package.json +1 -1
- package/render.js +4 -4
- package/render.js.map +1 -1
- package/chunks/sendForReview.js +0 -53
- package/chunks/sendForReview.js.map +0 -1
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { Currency, ItemNote, PaginationInfo, ShippingAddress, ConfigurableOption, BundleOption } from './negotiable-quote-model';
|
|
2
|
+
|
|
3
|
+
export interface NegotiableQuoteTemplateModel {
|
|
4
|
+
uid: string;
|
|
5
|
+
name: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
expirationDate?: string;
|
|
9
|
+
status: NegotiableQuoteTemplateStatus;
|
|
10
|
+
salesRepName?: string;
|
|
11
|
+
buyer: {
|
|
12
|
+
firstname: string;
|
|
13
|
+
lastname: string;
|
|
14
|
+
};
|
|
15
|
+
comments?: QuoteTemplateComment[];
|
|
16
|
+
history?: QuoteTemplateHistoryEntry[];
|
|
17
|
+
prices: {
|
|
18
|
+
subtotalExcludingTax?: Currency;
|
|
19
|
+
subtotalIncludingTax?: Currency;
|
|
20
|
+
subtotalWithDiscountExcludingTax?: Currency;
|
|
21
|
+
grandTotal?: Currency;
|
|
22
|
+
appliedTaxes?: {
|
|
23
|
+
amount: Currency;
|
|
24
|
+
label: string;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
items: QuoteTemplateCartItem[];
|
|
28
|
+
shippingAddresses?: ShippingAddress[];
|
|
29
|
+
referenceDocuments?: {
|
|
30
|
+
uid: string;
|
|
31
|
+
name: string;
|
|
32
|
+
url: string;
|
|
33
|
+
}[];
|
|
34
|
+
quantityThresholds?: {
|
|
35
|
+
min?: number;
|
|
36
|
+
max?: number;
|
|
37
|
+
};
|
|
38
|
+
canAccept: boolean;
|
|
39
|
+
canDelete: boolean;
|
|
40
|
+
canReopen: boolean;
|
|
41
|
+
canCancel: boolean;
|
|
42
|
+
canGenerateQuote: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare enum NegotiableQuoteTemplateStatus {
|
|
45
|
+
ACTIVE = "ACTIVE",
|
|
46
|
+
IN_REVIEW = "IN_REVIEW",
|
|
47
|
+
INACTIVE = "INACTIVE",
|
|
48
|
+
SUBMITTED = "SUBMITTED",
|
|
49
|
+
PENDING = "PENDING",
|
|
50
|
+
CLOSED = "CLOSED",
|
|
51
|
+
OPEN = "OPEN"
|
|
52
|
+
}
|
|
53
|
+
export interface QuoteTemplateCartItem {
|
|
54
|
+
uid?: string;
|
|
55
|
+
product: {
|
|
56
|
+
uid: string;
|
|
57
|
+
sku: string;
|
|
58
|
+
name: string;
|
|
59
|
+
};
|
|
60
|
+
quantity: number;
|
|
61
|
+
prices: {
|
|
62
|
+
originalItemPrice: Currency;
|
|
63
|
+
rowTotal: Currency;
|
|
64
|
+
};
|
|
65
|
+
catalogDiscount?: {
|
|
66
|
+
amountOff: number;
|
|
67
|
+
percentOff: number;
|
|
68
|
+
};
|
|
69
|
+
discounts?: {
|
|
70
|
+
label: string;
|
|
71
|
+
value: string;
|
|
72
|
+
amount: Currency;
|
|
73
|
+
}[];
|
|
74
|
+
noteFromBuyer?: ItemNote[];
|
|
75
|
+
noteFromSeller?: ItemNote[];
|
|
76
|
+
configurableOptions?: ConfigurableOption[];
|
|
77
|
+
bundleOptions?: BundleOption[];
|
|
78
|
+
}
|
|
79
|
+
export interface QuoteTemplateComment {
|
|
80
|
+
uid: string;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
author: {
|
|
83
|
+
firstname: string;
|
|
84
|
+
lastname: string;
|
|
85
|
+
};
|
|
86
|
+
text: string;
|
|
87
|
+
attachments?: {
|
|
88
|
+
name: string;
|
|
89
|
+
url: string;
|
|
90
|
+
}[];
|
|
91
|
+
}
|
|
92
|
+
export interface QuoteTemplateHistoryEntry {
|
|
93
|
+
uid: string;
|
|
94
|
+
createdAt: string;
|
|
95
|
+
author: {
|
|
96
|
+
firstname: string;
|
|
97
|
+
lastname: string;
|
|
98
|
+
};
|
|
99
|
+
changeType: string;
|
|
100
|
+
changes: any;
|
|
101
|
+
}
|
|
102
|
+
export interface NegotiableQuoteTemplatesListModel {
|
|
103
|
+
items: NegotiableQuoteTemplateListEntry[];
|
|
104
|
+
pageInfo: {
|
|
105
|
+
currentPage: number;
|
|
106
|
+
pageSize: number;
|
|
107
|
+
totalPages: number;
|
|
108
|
+
};
|
|
109
|
+
totalCount: number;
|
|
110
|
+
paginationInfo?: PaginationInfo;
|
|
111
|
+
sortFields?: {
|
|
112
|
+
default: string;
|
|
113
|
+
options: Array<{
|
|
114
|
+
label: string;
|
|
115
|
+
value: string;
|
|
116
|
+
}>;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export interface NegotiableQuoteTemplateListEntry {
|
|
120
|
+
id: string;
|
|
121
|
+
uid: string;
|
|
122
|
+
name: string;
|
|
123
|
+
createdAt: string;
|
|
124
|
+
updatedAt: string;
|
|
125
|
+
status: NegotiableQuoteTemplateStatus;
|
|
126
|
+
state: 'active' | 'inactive' | 'in_review';
|
|
127
|
+
lastSharedAt: string;
|
|
128
|
+
lastOrderedAt: string;
|
|
129
|
+
expirationDate: string;
|
|
130
|
+
ordersPlaced: number;
|
|
131
|
+
prices: {
|
|
132
|
+
grandTotal: Currency;
|
|
133
|
+
minNegotiatedGrandTotal: Currency;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=negotiable-quote-template-model.d.ts.map
|
|
@@ -22,6 +22,7 @@ export declare const mockGraphQLResponse: {
|
|
|
22
22
|
};
|
|
23
23
|
}[];
|
|
24
24
|
items: {
|
|
25
|
+
uid: string;
|
|
25
26
|
product: {
|
|
26
27
|
uid: string;
|
|
27
28
|
sku: string;
|
|
@@ -118,6 +119,7 @@ export declare const mockQuoteData: {
|
|
|
118
119
|
template_id: null;
|
|
119
120
|
template_name: null;
|
|
120
121
|
items: ({
|
|
122
|
+
uid: string;
|
|
121
123
|
product: {
|
|
122
124
|
name: string;
|
|
123
125
|
sku: string;
|
|
@@ -182,6 +184,7 @@ export declare const mockQuoteData: {
|
|
|
182
184
|
configurable_options?: undefined;
|
|
183
185
|
bundle_options?: undefined;
|
|
184
186
|
} | {
|
|
187
|
+
uid: string;
|
|
185
188
|
product: {
|
|
186
189
|
name: string;
|
|
187
190
|
sku: string;
|
|
@@ -235,6 +238,7 @@ export declare const mockQuoteData: {
|
|
|
235
238
|
note_from_seller: never[];
|
|
236
239
|
bundle_options?: undefined;
|
|
237
240
|
} | {
|
|
241
|
+
uid: string;
|
|
238
242
|
product: {
|
|
239
243
|
name: string;
|
|
240
244
|
sku: string;
|
|
@@ -428,6 +432,7 @@ export declare const mockNegotiableQuotesResponse: {
|
|
|
428
432
|
lastname: string;
|
|
429
433
|
};
|
|
430
434
|
items: {
|
|
435
|
+
uid: string;
|
|
431
436
|
product: {
|
|
432
437
|
uid: string;
|
|
433
438
|
sku: string;
|