@dropins/storefront-quote-management 1.0.0-beta1 → 1.0.0-beta10
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/LICENSE.md +25 -26
- package/api/duplicateNegotiableQuote/duplicateNegotiableQuote.d.ts +1 -0
- package/api/getQuoteTemplates/graphql/getQuoteTemplates.d.ts +1 -1
- package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +1 -1
- package/api/graphql/NegotiableQuoteTemplateFragment.d.ts +1 -1
- package/api/sendForReview/index.d.ts +1 -1
- package/api/sendQuoteTemplateForReview/sendQuoteTemplateForReview.d.ts +10 -0
- package/api.js +10 -47
- package/api.js.map +1 -1
- package/chunks/AttachedFilesList.js +1 -1
- package/chunks/AttachedFilesList.js.map +1 -1
- package/chunks/ConfirmationModal.js +1 -1
- package/chunks/ConfirmationModal.js.map +1 -1
- package/chunks/ItemsQuoted.js +1 -1
- package/chunks/ItemsQuoted.js.map +1 -1
- package/chunks/ItemsQuotedTemplate.js +1 -1
- package/chunks/ItemsQuotedTemplate.js.map +1 -1
- package/chunks/LineItemNoteModal.js +4 -0
- package/chunks/LineItemNoteModal.js.map +1 -0
- package/chunks/NegotiableQuoteFragment.js +1 -0
- package/chunks/NegotiableQuoteFragment.js.map +1 -1
- package/chunks/NegotiableQuoteTemplateFragment.js +154 -6
- package/chunks/NegotiableQuoteTemplateFragment.js.map +1 -1
- package/chunks/OrderSummaryLine.js +1 -1
- package/chunks/OrderSummaryLine.js.map +1 -1
- package/chunks/QuoteTemplateCommentsList.js +1 -1
- package/chunks/QuoteTemplateCommentsList.js.map +1 -1
- package/chunks/RenameQuoteModal.js +4 -0
- package/chunks/RenameQuoteModal.js.map +1 -0
- package/chunks/ShippingAddressDisplay.js +1 -1
- package/chunks/ShippingAddressDisplay.js.map +1 -1
- package/chunks/addQuoteTemplateLineItemNote.js +23 -3
- package/chunks/addQuoteTemplateLineItemNote.js.map +1 -1
- package/chunks/duplicateNegotiableQuote.js +5 -5
- package/chunks/duplicateNegotiableQuote.js.map +1 -1
- package/chunks/getQuoteTemplates.js +13 -11
- package/chunks/getQuoteTemplates.js.map +1 -1
- package/chunks/negotiableQuotes.js +1 -1
- package/chunks/openQuoteTemplate.js +29 -8
- package/chunks/openQuoteTemplate.js.map +1 -1
- package/chunks/state.js +1 -1
- package/chunks/state.js.map +1 -1
- package/chunks/transform-quote-template.js +1 -1
- package/chunks/transform-quote-template.js.map +1 -1
- package/chunks/transform-quote.js +1 -1
- package/chunks/transform-quote.js.map +1 -1
- package/components/LineItemNoteModal/LineItemNoteModal.d.ts +2 -2
- package/components/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +5 -2
- package/components/ProductListTable/ProductListTable.d.ts +5 -49
- package/components/ReferenceDocumentFormModal/ReferenceDocumentFormModal.d.ts +30 -0
- package/components/ReferenceDocumentFormModal/index.d.ts +11 -0
- package/components/ReferenceDocumentsList/ReferenceDocumentsList.d.ts +18 -0
- package/components/ReferenceDocumentsList/index.d.ts +11 -0
- package/components/index.d.ts +2 -0
- package/containers/ItemsQuoted/ItemsQuoted.d.ts +7 -7
- package/containers/ItemsQuoted.js +1 -1
- package/containers/ItemsQuotedTemplate/ItemsQuotedTemplate.d.ts +5 -1
- package/containers/ItemsQuotedTemplate.js +1 -1
- package/containers/ManageNegotiableQuote/ManageNegotiableQuote.d.ts +3 -0
- package/containers/ManageNegotiableQuote.js +1 -1
- package/containers/ManageNegotiableQuote.js.map +1 -1
- package/containers/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +46 -5
- package/containers/ManageNegotiableQuoteTemplate.js +3 -1
- package/containers/ManageNegotiableQuoteTemplate.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/QuoteSummaryList/QuoteSummaryList.d.ts +1 -1
- package/containers/QuoteSummaryList.js +1 -1
- package/containers/QuoteSummaryList.js.map +1 -1
- package/containers/QuoteTemplatesListTable.js +1 -1
- package/containers/QuoteTemplatesListTable.js.map +1 -1
- 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/ShippingAddressDisplay/ShippingAddressDisplay.d.ts +2 -2
- package/containers/ShippingAddressDisplay.js +1 -1
- package/data/models/__fixtures__/negotiableQuoteModel.d.ts +5 -5
- package/data/models/negotiable-quote-model.d.ts +3 -2
- package/data/models/negotiable-quote-template-model.d.ts +4 -39
- package/data/models/store-config-model.d.ts +2 -0
- package/data/transforms/__fixtures__/negotiableQuoteData.d.ts +8 -0
- package/data/transforms/__fixtures__/negotiableQuoteTemplateData.d.ts +616 -75
- package/data/transforms/__fixtures__/storeConfigData.d.ts +4 -0
- package/data/transforms/transform-history.d.ts +15 -0
- package/data/transforms/transform-quote-items.d.ts +15 -0
- package/hooks/useItemsQuotedTemplate.d.ts +15 -0
- package/hooks/useReferenceDocumentLinks.d.ts +34 -0
- package/hooks/useRemoveTemplateItems.d.ts +25 -0
- package/hooks/useRenameTemplate.d.ts +71 -0
- package/hooks/useUpdateTemplateQuantities.d.ts +27 -0
- package/i18n/en_US.json.d.ts +93 -6
- package/lib/itemFormatters.d.ts +1 -1
- package/lib/priceCalculators.d.ts +1 -1
- package/package.json +1 -1
- package/render.js +3 -3
- package/render.js.map +1 -1
- package/chunks/LineItemNoteModal2.js +0 -4
- package/chunks/LineItemNoteModal2.js.map +0 -1
- package/chunks/TabbedContent.js +0 -4
- package/chunks/TabbedContent.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'preact/compat';
|
|
2
2
|
import { Container } from '@dropins/tools/types/elsie/src/lib';
|
|
3
|
-
import {
|
|
3
|
+
import { ShippingAddress } from '../../data/models/negotiable-quote-model';
|
|
4
4
|
|
|
5
5
|
export interface ShippingAddressDisplayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'loading'> {
|
|
6
|
-
|
|
6
|
+
shippingAddress?: ShippingAddress;
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const ShippingAddressDisplay: Container<ShippingAddressDisplayProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{S as
|
|
3
|
+
import{S as e}from"../chunks/ShippingAddressDisplay.js";import"@dropins/tools/preact-jsx-runtime.js";import"@dropins/tools/preact-compat.js";import"@dropins/tools/lib.js";import"@dropins/tools/components.js";import"../chunks/WarningFilled.js";import"@dropins/tools/i18n.js";import"@dropins/tools/event-bus.js";export{e as ShippingAddressDisplay};
|
|
4
4
|
//# sourceMappingURL=ShippingAddressDisplay.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CartItemModel, NegotiableQuoteModel } from '../negotiable-quote-model';
|
|
2
2
|
|
|
3
|
-
export declare const baseCartItem:
|
|
4
|
-
export declare const configurableCartItem:
|
|
5
|
-
export declare const bundleCartItem:
|
|
6
|
-
export declare const downloadableCartItem:
|
|
3
|
+
export declare const baseCartItem: CartItemModel;
|
|
4
|
+
export declare const configurableCartItem: CartItemModel;
|
|
5
|
+
export declare const bundleCartItem: CartItemModel;
|
|
6
|
+
export declare const downloadableCartItem: CartItemModel;
|
|
7
7
|
export declare const base: NegotiableQuoteModel;
|
|
8
8
|
//# sourceMappingURL=negotiableQuoteModel.d.ts.map
|
|
@@ -41,6 +41,7 @@ export interface NegotiableQuoteModel {
|
|
|
41
41
|
firstname: string;
|
|
42
42
|
lastname: string;
|
|
43
43
|
};
|
|
44
|
+
email?: string;
|
|
44
45
|
templateName?: string;
|
|
45
46
|
totalQuantity: number;
|
|
46
47
|
comments?: {
|
|
@@ -70,7 +71,7 @@ export interface NegotiableQuoteModel {
|
|
|
70
71
|
subtotalWithDiscountExcludingTax?: Currency;
|
|
71
72
|
totalTax?: Currency;
|
|
72
73
|
};
|
|
73
|
-
items:
|
|
74
|
+
items: CartItemModel[];
|
|
74
75
|
shippingAddresses?: ShippingAddress[];
|
|
75
76
|
canCheckout: boolean;
|
|
76
77
|
canSendForReview: boolean;
|
|
@@ -101,7 +102,7 @@ export interface CustomizableOption {
|
|
|
101
102
|
value: string;
|
|
102
103
|
}[];
|
|
103
104
|
}
|
|
104
|
-
export interface
|
|
105
|
+
export interface CartItemModel {
|
|
105
106
|
itemType: string;
|
|
106
107
|
uid: string;
|
|
107
108
|
product: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Currency,
|
|
1
|
+
import { Currency, PaginationInfo, ShippingAddress, NegotiableQuoteHistoryEntry, CartItemModel } from './negotiable-quote-model';
|
|
2
2
|
|
|
3
3
|
export interface NegotiableQuoteTemplateModel {
|
|
4
4
|
id: string;
|
|
@@ -14,7 +14,7 @@ export interface NegotiableQuoteTemplateModel {
|
|
|
14
14
|
lastname: string;
|
|
15
15
|
};
|
|
16
16
|
comments?: QuoteTemplateComment[];
|
|
17
|
-
history?:
|
|
17
|
+
history?: NegotiableQuoteHistoryEntry[];
|
|
18
18
|
prices: {
|
|
19
19
|
subtotalExcludingTax?: Currency;
|
|
20
20
|
subtotalIncludingTax?: Currency;
|
|
@@ -25,11 +25,12 @@ export interface NegotiableQuoteTemplateModel {
|
|
|
25
25
|
label: string;
|
|
26
26
|
}[];
|
|
27
27
|
};
|
|
28
|
-
items:
|
|
28
|
+
items: CartItemModel[];
|
|
29
29
|
shippingAddresses?: ShippingAddress[];
|
|
30
30
|
referenceDocuments?: {
|
|
31
31
|
uid: string;
|
|
32
32
|
name: string;
|
|
33
|
+
identifier?: string;
|
|
33
34
|
url: string;
|
|
34
35
|
}[];
|
|
35
36
|
quantityThresholds?: {
|
|
@@ -60,32 +61,6 @@ export declare enum NegotiableQuoteTemplateStatus {
|
|
|
60
61
|
CANCELED = "Canceled",
|
|
61
62
|
EXPIRED = "Expired"
|
|
62
63
|
}
|
|
63
|
-
export interface QuoteTemplateCartItem {
|
|
64
|
-
uid?: string;
|
|
65
|
-
product: {
|
|
66
|
-
uid: string;
|
|
67
|
-
sku: string;
|
|
68
|
-
name: string;
|
|
69
|
-
};
|
|
70
|
-
quantity: number;
|
|
71
|
-
prices: {
|
|
72
|
-
originalItemPrice: Currency;
|
|
73
|
-
rowTotal: Currency;
|
|
74
|
-
};
|
|
75
|
-
catalogDiscount?: {
|
|
76
|
-
amountOff: number;
|
|
77
|
-
percentOff: number;
|
|
78
|
-
};
|
|
79
|
-
discounts?: {
|
|
80
|
-
label: string;
|
|
81
|
-
value: string;
|
|
82
|
-
amount: Currency;
|
|
83
|
-
}[];
|
|
84
|
-
noteFromBuyer?: ItemNote[];
|
|
85
|
-
noteFromSeller?: ItemNote[];
|
|
86
|
-
configurableOptions?: ConfigurableOption[];
|
|
87
|
-
bundleOptions?: BundleOption[];
|
|
88
|
-
}
|
|
89
64
|
export interface QuoteTemplateComment {
|
|
90
65
|
uid: string;
|
|
91
66
|
createdAt: string;
|
|
@@ -99,16 +74,6 @@ export interface QuoteTemplateComment {
|
|
|
99
74
|
url: string;
|
|
100
75
|
}[];
|
|
101
76
|
}
|
|
102
|
-
export interface QuoteTemplateHistoryEntry {
|
|
103
|
-
uid: string;
|
|
104
|
-
createdAt: string;
|
|
105
|
-
author: {
|
|
106
|
-
firstname: string;
|
|
107
|
-
lastname: string;
|
|
108
|
-
};
|
|
109
|
-
changeType: string;
|
|
110
|
-
changes: any;
|
|
111
|
-
}
|
|
112
77
|
export interface NegotiableQuoteTemplatesListModel {
|
|
113
78
|
items: NegotiableQuoteTemplateListEntry[];
|
|
114
79
|
pageInfo: {
|
|
@@ -13,6 +13,7 @@ export declare const mockGraphQLResponse: {
|
|
|
13
13
|
firstname: string;
|
|
14
14
|
lastname: string;
|
|
15
15
|
};
|
|
16
|
+
email: string;
|
|
16
17
|
comments: {
|
|
17
18
|
uid: string;
|
|
18
19
|
created_at: string;
|
|
@@ -111,6 +112,7 @@ export declare const mockQuoteData: {
|
|
|
111
112
|
firstname: string;
|
|
112
113
|
lastname: string;
|
|
113
114
|
};
|
|
115
|
+
email: string;
|
|
114
116
|
comments: {
|
|
115
117
|
uid: string;
|
|
116
118
|
created_at: string;
|
|
@@ -198,6 +200,7 @@ export declare const mockQuoteData: {
|
|
|
198
200
|
}[];
|
|
199
201
|
};
|
|
200
202
|
quantity: number;
|
|
203
|
+
is_available: boolean;
|
|
201
204
|
note_from_buyer: {
|
|
202
205
|
created_at: string;
|
|
203
206
|
creator_id: number;
|
|
@@ -282,6 +285,7 @@ export declare const mockQuoteData: {
|
|
|
282
285
|
discounts: never[];
|
|
283
286
|
};
|
|
284
287
|
quantity: number;
|
|
288
|
+
is_available: boolean;
|
|
285
289
|
configurable_options: {
|
|
286
290
|
option_label: string;
|
|
287
291
|
value_label: string;
|
|
@@ -296,6 +300,7 @@ export declare const mockQuoteData: {
|
|
|
296
300
|
}[];
|
|
297
301
|
note_from_seller: never[];
|
|
298
302
|
configured_variant: {
|
|
303
|
+
stock_status: string;
|
|
299
304
|
thumbnail: {
|
|
300
305
|
label: string;
|
|
301
306
|
url: string;
|
|
@@ -400,6 +405,7 @@ export declare const mockQuoteData: {
|
|
|
400
405
|
}[];
|
|
401
406
|
};
|
|
402
407
|
quantity: number;
|
|
408
|
+
is_available: boolean;
|
|
403
409
|
bundle_options: {
|
|
404
410
|
label: string;
|
|
405
411
|
values: {
|
|
@@ -511,6 +517,7 @@ export declare const mockQuoteData: {
|
|
|
511
517
|
}[];
|
|
512
518
|
};
|
|
513
519
|
quantity: number;
|
|
520
|
+
is_available: boolean;
|
|
514
521
|
links: {
|
|
515
522
|
sort_order: number;
|
|
516
523
|
title: string;
|
|
@@ -643,6 +650,7 @@ export declare const mockNegotiableQuotesResponse: {
|
|
|
643
650
|
firstname: string;
|
|
644
651
|
lastname: string;
|
|
645
652
|
};
|
|
653
|
+
email: string;
|
|
646
654
|
items: {
|
|
647
655
|
uid: string;
|
|
648
656
|
product: {
|