@dropins/storefront-quote-management 0.0.1-alpha9 → 1.0.0-beta2
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/{getCustomerData/getCustomerData.d.ts → acceptQuoteTemplate/graphql/acceptQuoteTemplate.d.ts} +2 -2
- package/{data/transforms/__fixtures__/customerData.d.ts → api/acceptQuoteTemplate/index.d.ts} +2 -2
- 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/deleteQuote/deleteQuote.d.ts +28 -0
- package/api/deleteQuote/graphql/DeleteQuoteMutation.d.ts +10 -0
- package/api/{getCustomerData → deleteQuote}/index.d.ts +1 -1
- package/{data/models/customer-model.d.ts → api/deleteQuoteTemplate/deleteQuoteTemplate.d.ts} +6 -8
- package/api/deleteQuoteTemplate/graphql/deleteQuoteTemplate.d.ts +10 -0
- package/api/deleteQuoteTemplate/index.d.ts +10 -0
- package/api/duplicateNegotiableQuote/duplicateNegotiableQuote.d.ts +8 -0
- package/api/duplicateNegotiableQuote/graphql/duplicateNegotiableQuoteMutation.d.ts +10 -0
- package/api/duplicateNegotiableQuote/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/getQuoteData/getQuoteData.d.ts +10 -0
- package/api/getQuoteData/graphql/QuoteDataQuery.d.ts +2 -0
- package/api/getQuoteData/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/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 +5 -13
- package/api/graphql/NegotiableQuoteListFragment.d.ts +10 -0
- package/api/graphql/NegotiableQuoteTemplateFragment.d.ts +10 -0
- package/api/graphql/SearchResultPageInfoFragment.d.ts +10 -0
- package/api/graphql/ShippingMethodFragment.d.ts +10 -0
- package/api/graphql/SortFieldsFragment.d.ts +10 -0
- package/api/index.d.ts +34 -1
- package/api/initialize/initialize.d.ts +2 -0
- package/api/negotiableQuotes/graphql/NegotiableQuotesQuery.d.ts +10 -0
- package/api/negotiableQuotes/index.d.ts +10 -0
- package/api/negotiableQuotes/negotiableQuotes.d.ts +39 -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/removeNegotiableQuoteItems/graphql/RemoveNegotiableQuoteItemsMutation.d.ts +10 -0
- package/api/removeNegotiableQuoteItems/index.d.ts +10 -0
- package/api/removeNegotiableQuoteItems/removeNegotiableQuoteItems.d.ts +8 -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/requestNegotiableQuote/requestNegotiableQuote.d.ts +0 -3
- package/api/sendForReview/graphql/SendNegotiableQuoteForReviewMutation.d.ts +10 -0
- package/api/sendForReview/index.d.ts +10 -0
- package/api/sendForReview/sendForReview.d.ts +11 -0
- package/api/sendQuoteTemplateForReview/graphql/sendQuoteTemplateForReview.d.ts +10 -0
- package/api/sendQuoteTemplateForReview/index.d.ts +10 -0
- package/api/sendQuoteTemplateForReview/sendQuoteTemplateForReview.d.ts +22 -0
- package/api/setLineItemNote/graphql/SetLineItemNoteMutation.d.ts +10 -0
- package/api/setLineItemNote/index.d.ts +10 -0
- package/api/setLineItemNote/setLineItemNote.d.ts +10 -0
- package/api/setShippingAddress/graphql/SetNegotiableQuoteShippingAddressMutation.d.ts +10 -0
- package/api/setShippingAddress/index.d.ts +2 -0
- package/api/setShippingAddress/setShippingAddress.d.ts +110 -0
- 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/uploadFile/graphql/FinishUploadMutation.d.ts +10 -0
- package/api/uploadFile/graphql/InitiateUploadMutation.d.ts +10 -0
- package/api/uploadFile/index.d.ts +10 -0
- package/api/uploadFile/uploadFile.d.ts +12 -0
- package/api.js +56 -22
- package/api.js.map +1 -1
- package/chunks/AttachedFilesList.js +4 -0
- package/chunks/AttachedFilesList.js.map +1 -0
- package/chunks/ChevronDown.js +4 -0
- package/chunks/ChevronDown.js.map +1 -0
- package/chunks/ConfirmationModal.js +4 -0
- package/chunks/ConfirmationModal.js.map +1 -0
- package/chunks/ItemsQuoted.js +4 -0
- package/chunks/ItemsQuoted.js.map +1 -0
- package/chunks/ItemsQuotedTemplate.js +4 -0
- package/chunks/ItemsQuotedTemplate.js.map +1 -0
- package/chunks/LineItemNoteModal.js +4 -0
- package/chunks/LineItemNoteModal.js.map +1 -0
- package/chunks/NegotiableQuoteFragment.js +391 -0
- package/chunks/NegotiableQuoteFragment.js.map +1 -0
- package/chunks/NegotiableQuoteTemplateFragment.js +196 -0
- package/chunks/NegotiableQuoteTemplateFragment.js.map +1 -0
- package/chunks/OrderSummaryLine.js +4 -0
- package/chunks/OrderSummaryLine.js.map +1 -0
- package/chunks/QuoteCommentsList.js +4 -0
- package/chunks/QuoteCommentsList.js.map +1 -0
- package/chunks/QuoteCommentsList3.js +4 -0
- package/chunks/QuoteCommentsList3.js.map +1 -0
- package/chunks/QuoteHistoryLog.js +4 -0
- package/chunks/QuoteHistoryLog.js.map +1 -0
- package/chunks/QuoteHistoryLog3.js +4 -0
- package/chunks/QuoteHistoryLog3.js.map +1 -0
- package/chunks/QuoteTemplateCommentsList.js +4 -0
- package/chunks/QuoteTemplateCommentsList.js.map +1 -0
- package/chunks/QuoteTemplateHistoryLog.js +4 -0
- package/chunks/QuoteTemplateHistoryLog.js.map +1 -0
- package/chunks/ShippingAddressDisplay.js +4 -0
- package/chunks/ShippingAddressDisplay.js.map +1 -0
- package/chunks/TabbedContent.js +4 -0
- package/chunks/TabbedContent.js.map +1 -0
- package/chunks/WarningFilled.js +4 -0
- package/chunks/WarningFilled.js.map +1 -0
- package/chunks/addQuoteTemplateLineItemNote.js +33 -0
- package/chunks/addQuoteTemplateLineItemNote.js.map +1 -0
- package/chunks/dateUtils.js +4 -0
- package/chunks/dateUtils.js.map +1 -0
- package/chunks/duplicateNegotiableQuote.js +121 -0
- package/chunks/duplicateNegotiableQuote.js.map +1 -0
- package/chunks/generateQuoteFromTemplate.js +12 -0
- package/chunks/generateQuoteFromTemplate.js.map +1 -0
- package/chunks/getQuoteTemplates.js +50 -0
- package/chunks/getQuoteTemplates.js.map +1 -0
- package/chunks/negotiableQuotes.js +77 -0
- package/chunks/negotiableQuotes.js.map +1 -0
- package/chunks/openQuoteTemplate.js +51 -0
- package/chunks/openQuoteTemplate.js.map +1 -0
- package/chunks/requestNegotiableQuote.js +6 -81
- package/chunks/requestNegotiableQuote.js.map +1 -1
- package/chunks/setLineItemNote.js +47 -0
- package/chunks/setLineItemNote.js.map +1 -0
- package/chunks/state.js +4 -0
- package/chunks/state.js.map +1 -0
- package/chunks/transform-quote-template.js +4 -0
- package/chunks/transform-quote-template.js.map +1 -0
- package/chunks/transform-quote.js +4 -0
- package/chunks/transform-quote.js.map +1 -0
- package/chunks/uploadFile.js +20 -0
- package/chunks/uploadFile.js.map +1 -0
- package/components/ActionsBar/ActionsBar.d.ts +15 -0
- package/components/ActionsBar/index.d.ts +11 -0
- package/components/AttachedFilesList/AttachedFilesList.d.ts +16 -0
- package/components/AttachedFilesList/index.d.ts +11 -0
- package/components/ConfirmationModal/ConfirmationModal.d.ts +17 -0
- package/components/ConfirmationModal/index.d.ts +11 -0
- package/components/ItemsQuoted/ItemsQuoted.d.ts +11 -0
- package/components/ItemsQuoted/index.d.ts +11 -0
- package/components/LineItemNoteModal/LineItemNoteModal.d.ts +17 -0
- package/components/LineItemNoteModal/index.d.ts +11 -0
- package/components/ManageNegotiableQuote/ManageNegotiableQuote.d.ts +22 -0
- package/components/ManageNegotiableQuote/__fixtures__/ManageNegotiableQuoteProps.d.ts +4 -0
- package/components/ManageNegotiableQuote/index.d.ts +11 -0
- package/components/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +19 -0
- package/components/ManageNegotiableQuoteTemplate/__fixtures__/ManageNegotiableQuoteTemplateProps.d.ts +4 -0
- package/components/ManageNegotiableQuoteTemplate/index.d.ts +11 -0
- package/components/OrderSummary/OrderSummary.d.ts +48 -0
- package/components/OrderSummary/index.d.ts +11 -0
- package/components/OrderSummaryLine/OrderSummaryLine.d.ts +13 -0
- package/components/OrderSummaryLine/index.d.ts +11 -0
- package/components/ProductListTable/ProductListTable.d.ts +61 -0
- package/components/ProductListTable/index.d.ts +11 -0
- package/components/QuoteCommentsList/QuoteCommentsList.d.ts +17 -0
- package/components/QuoteCommentsList/index.d.ts +11 -0
- package/components/QuoteHistoryLog/QuoteHistoryLog.d.ts +77 -0
- package/components/QuoteHistoryLog/index.d.ts +11 -0
- package/components/QuotePricesSummary/QuotePricesSummary.d.ts +16 -0
- package/components/QuotePricesSummary/index.d.ts +11 -0
- package/components/QuoteSummaryList/QuoteSummaryList.d.ts +13 -0
- package/components/QuoteSummaryList/index.d.ts +11 -0
- package/components/QuoteTemplatesListTable/QuoteTemplatesListTable.d.ts +29 -0
- package/components/QuoteTemplatesListTable/index.d.ts +10 -0
- package/components/QuotesListTable/QuotesListTable.d.ts +29 -0
- package/components/QuotesListTable/index.d.ts +11 -0
- 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/RenameQuoteModal/RenameQuoteModal.d.ts +18 -0
- package/components/RenameQuoteModal/index.d.ts +11 -0
- package/components/RequestNegotiableQuoteForm/RequestNegotiableQuoteForm.d.ts +1 -0
- package/components/ShippingAddressDisplay/ShippingAddressDisplay.d.ts +12 -0
- package/components/ShippingAddressDisplay/index.d.ts +11 -0
- package/components/TabbedContent/TabbedContent.d.ts +10 -0
- package/components/TabbedContent/index.d.ts +11 -0
- package/components/index.d.ts +30 -0
- package/containers/ItemsQuoted/ItemsQuoted.d.ts +30 -0
- package/containers/ItemsQuoted/index.d.ts +11 -0
- package/containers/ItemsQuoted.d.ts +3 -0
- package/containers/ItemsQuoted.js +4 -0
- package/containers/ItemsQuoted.js.map +1 -0
- package/containers/ItemsQuotedTemplate/ItemsQuotedTemplate.d.ts +25 -0
- package/containers/ItemsQuotedTemplate/index.d.ts +11 -0
- package/containers/ItemsQuotedTemplate.d.ts +3 -0
- package/containers/ItemsQuotedTemplate.js +4 -0
- package/containers/ItemsQuotedTemplate.js.map +1 -0
- package/containers/ManageNegotiableQuote/ManageNegotiableQuote.d.ts +87 -0
- package/containers/ManageNegotiableQuote/index.d.ts +11 -0
- package/containers/ManageNegotiableQuote.d.ts +3 -0
- package/containers/ManageNegotiableQuote.js +4 -0
- package/containers/ManageNegotiableQuote.js.map +1 -0
- package/containers/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +73 -0
- package/containers/ManageNegotiableQuoteTemplate/index.d.ts +11 -0
- package/containers/ManageNegotiableQuoteTemplate.d.ts +3 -0
- package/containers/ManageNegotiableQuoteTemplate.js +4 -0
- package/containers/ManageNegotiableQuoteTemplate.js.map +1 -0
- 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/QuoteCommentsList/QuoteCommentsList.d.ts +9 -0
- package/containers/QuoteCommentsList/index.d.ts +11 -0
- package/containers/QuoteCommentsList.d.ts +3 -0
- package/containers/QuoteCommentsList.js +4 -0
- package/containers/QuoteCommentsList.js.map +1 -0
- package/containers/QuoteHistoryLog/QuoteHistoryLog.d.ts +9 -0
- package/containers/QuoteHistoryLog/index.d.ts +11 -0
- package/containers/QuoteHistoryLog.d.ts +3 -0
- package/containers/QuoteHistoryLog.js +4 -0
- package/containers/QuoteHistoryLog.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/QuoteTemplateCommentsList/QuoteTemplateCommentsList.d.ts +9 -0
- package/containers/QuoteTemplateCommentsList/index.d.ts +11 -0
- package/containers/QuoteTemplateCommentsList.d.ts +3 -0
- package/containers/QuoteTemplateCommentsList.js +4 -0
- package/containers/QuoteTemplateCommentsList.js.map +1 -0
- package/containers/QuoteTemplateHistoryLog/QuoteTemplateHistoryLog.d.ts +9 -0
- package/containers/QuoteTemplateHistoryLog/index.d.ts +11 -0
- package/containers/QuoteTemplateHistoryLog.d.ts +3 -0
- package/containers/QuoteTemplateHistoryLog.js +4 -0
- package/containers/QuoteTemplateHistoryLog.js.map +1 -0
- 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/QuotesListTable.d.ts +72 -0
- package/containers/QuotesListTable/index.d.ts +11 -0
- package/containers/QuotesListTable.d.ts +3 -0
- package/containers/QuotesListTable.js +4 -0
- package/containers/QuotesListTable.js.map +1 -0
- package/containers/RequestNegotiableQuoteForm/RequestNegotiableQuoteForm.d.ts +10 -1
- package/containers/RequestNegotiableQuoteForm.js +1 -1
- package/containers/RequestNegotiableQuoteForm.js.map +1 -1
- package/containers/ShippingAddressDisplay/ShippingAddressDisplay.d.ts +10 -0
- package/containers/ShippingAddressDisplay/index.d.ts +11 -0
- package/containers/ShippingAddressDisplay.d.ts +1 -0
- package/containers/ShippingAddressDisplay.js +4 -0
- package/containers/ShippingAddressDisplay.js.map +1 -0
- package/containers/index.d.ts +22 -0
- package/data/models/__fixtures__/negotiableQuoteModel.d.ts +8 -0
- package/data/models/__fixtures__/negotiableQuoteTemplateModel.d.ts +4 -0
- package/data/models/__fixtures__/negotiableQuoteTemplatesListModel.d.ts +5 -0
- package/data/models/__fixtures__/negotiableQuotesListModel.d.ts +5 -0
- package/data/models/__fixtures__/storeConfigModel.d.ts +5 -0
- package/data/models/index.d.ts +11 -1
- package/data/models/negotiable-quote-model.d.ts +262 -27
- package/data/models/negotiable-quote-template-model.d.ts +148 -0
- package/data/models/store-config-model.d.ts +27 -0
- package/data/transforms/__fixtures__/negotiableQuoteData.d.ts +665 -2
- package/data/transforms/__fixtures__/negotiableQuoteTemplateData.d.ts +1665 -0
- package/data/transforms/__fixtures__/storeConfigData.d.ts +31 -0
- package/data/transforms/index.d.ts +6 -13
- package/data/transforms/transform-quote-template.d.ts +5 -0
- package/data/transforms/transform-quote.d.ts +13 -2
- package/data/transforms/transform-store-config.d.ts +4 -0
- package/hooks/useItemsQuotedTemplate.d.ts +16 -0
- package/hooks/useQuoteSummaryData.d.ts +10 -0
- package/hooks/useReferenceDocumentLinks.d.ts +34 -0
- package/hooks/useRemoveTemplateItems.d.ts +25 -0
- package/hooks/useUpdateTemplateQuantities.d.ts +27 -0
- package/i18n/en_US.json.d.ts +419 -1
- package/lib/configurationTransformers.d.ts +27 -0
- package/lib/itemFormatters.d.ts +47 -0
- package/lib/priceCalculators.d.ts +41 -0
- package/lib/state.d.ts +6 -0
- package/package.json +1 -1
- package/render.js +6 -2
- package/render.js.map +1 -1
- package/types/state.types.d.ts +13 -0
- package/utils/dateUtils.d.ts +26 -0
- package/utils/fileUtils.d.ts +46 -0
- package/utils/mapAuthPermissions.d.ts +39 -0
- package/api/getCustomerData/graphql/CustomerQuery.d.ts +0 -2
- package/api/graphql/CustomerFragment.d.ts +0 -2
- package/data/models/__fixtures__/customerModel.d.ts +0 -4
- package/data/transforms/transform-customer.d.ts +0 -15
|
@@ -1,51 +1,286 @@
|
|
|
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 interface ShippingAddress {
|
|
10
|
+
/**
|
|
11
|
+
* The unique string identifier of the address
|
|
12
|
+
*/
|
|
13
|
+
uid?: string;
|
|
14
|
+
firstname: string;
|
|
15
|
+
lastname: string;
|
|
16
|
+
company?: string;
|
|
17
|
+
street: string[];
|
|
18
|
+
city: string;
|
|
19
|
+
region?: {
|
|
20
|
+
code: string;
|
|
21
|
+
label: string;
|
|
22
|
+
regionId: number;
|
|
23
|
+
};
|
|
24
|
+
postcode: string;
|
|
25
|
+
country: {
|
|
26
|
+
code: string;
|
|
27
|
+
label: string;
|
|
28
|
+
};
|
|
29
|
+
telephone: string;
|
|
30
|
+
}
|
|
1
31
|
export interface NegotiableQuoteModel {
|
|
2
32
|
uid: string;
|
|
33
|
+
name: string;
|
|
3
34
|
createdAt: string;
|
|
4
|
-
|
|
35
|
+
salesRepName: string;
|
|
36
|
+
expirationDate: string;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
status: NegotiableQuoteStatus;
|
|
39
|
+
isVirtual: boolean;
|
|
5
40
|
buyer: {
|
|
6
41
|
firstname: string;
|
|
7
42
|
lastname: string;
|
|
8
43
|
};
|
|
9
|
-
|
|
44
|
+
templateName?: string;
|
|
45
|
+
totalQuantity: number;
|
|
46
|
+
comments?: {
|
|
10
47
|
uid: string;
|
|
11
48
|
createdAt: string;
|
|
12
49
|
author: {
|
|
13
50
|
firstname: string;
|
|
14
51
|
lastname: string;
|
|
15
52
|
};
|
|
53
|
+
text: string;
|
|
16
54
|
attachments?: {
|
|
17
55
|
name: string;
|
|
18
56
|
url: string;
|
|
19
57
|
}[];
|
|
20
58
|
}[];
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
59
|
+
history?: NegotiableQuoteHistoryEntry[];
|
|
60
|
+
prices: {
|
|
61
|
+
appliedDiscounts?: Discount[];
|
|
62
|
+
appliedTaxes?: Tax[];
|
|
63
|
+
discount?: Currency;
|
|
64
|
+
grandTotal?: Currency;
|
|
65
|
+
grandTotalExcludingTax?: Currency;
|
|
66
|
+
shippingExcludingTax?: Currency;
|
|
67
|
+
shippingIncludingTax?: Currency;
|
|
68
|
+
subtotalExcludingTax?: Currency;
|
|
69
|
+
subtotalIncludingTax?: Currency;
|
|
70
|
+
subtotalWithDiscountExcludingTax?: Currency;
|
|
71
|
+
totalTax?: Currency;
|
|
72
|
+
};
|
|
73
|
+
items: NegotiableQuoteCartItem[];
|
|
74
|
+
shippingAddresses?: ShippingAddress[];
|
|
75
|
+
canCheckout: boolean;
|
|
76
|
+
canSendForReview: boolean;
|
|
77
|
+
lockedForEditing?: boolean;
|
|
78
|
+
canDelete: boolean;
|
|
79
|
+
canClose: boolean;
|
|
80
|
+
canUpdateQuote: boolean;
|
|
81
|
+
readOnly: boolean;
|
|
82
|
+
}
|
|
83
|
+
export interface ConfigurableOption {
|
|
84
|
+
optionLabel: string;
|
|
85
|
+
valueLabel: string;
|
|
86
|
+
}
|
|
87
|
+
export interface BundleOption {
|
|
88
|
+
label: string;
|
|
89
|
+
values: {
|
|
90
|
+
label: string;
|
|
34
91
|
quantity: number;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
92
|
+
originalPrice: Currency;
|
|
93
|
+
price: Currency;
|
|
94
|
+
}[];
|
|
95
|
+
}
|
|
96
|
+
export interface CustomizableOption {
|
|
97
|
+
type: string;
|
|
98
|
+
label: string;
|
|
99
|
+
values: {
|
|
100
|
+
label: string;
|
|
101
|
+
value: string;
|
|
102
|
+
}[];
|
|
103
|
+
}
|
|
104
|
+
export interface NegotiableQuoteCartItem {
|
|
105
|
+
itemType: string;
|
|
106
|
+
uid: string;
|
|
107
|
+
product: {
|
|
108
|
+
uid: string;
|
|
109
|
+
sku: string;
|
|
110
|
+
name: string;
|
|
111
|
+
templateId?: string;
|
|
112
|
+
templateName?: string;
|
|
113
|
+
priceRange: {
|
|
114
|
+
maximumPrice: {
|
|
115
|
+
regularPrice: Currency;
|
|
47
116
|
};
|
|
48
117
|
};
|
|
118
|
+
};
|
|
119
|
+
image: ItemImage;
|
|
120
|
+
links?: ItemLinks;
|
|
121
|
+
discounted: boolean;
|
|
122
|
+
discountedTotal: Currency;
|
|
123
|
+
catalogDiscount: {
|
|
124
|
+
amountOff: number;
|
|
125
|
+
percentOff: number;
|
|
126
|
+
};
|
|
127
|
+
discounts: {
|
|
128
|
+
label: string;
|
|
129
|
+
value: string;
|
|
130
|
+
amount: Currency;
|
|
49
131
|
}[];
|
|
132
|
+
discountPercentage?: number;
|
|
133
|
+
insufficientQuantity?: boolean;
|
|
134
|
+
outOfStock?: boolean;
|
|
135
|
+
stockStatus: string;
|
|
136
|
+
quantity: number;
|
|
137
|
+
prices: {
|
|
138
|
+
regularPrice: Currency;
|
|
139
|
+
priceIncludingTax: Currency;
|
|
140
|
+
originalItemPrice: Currency;
|
|
141
|
+
originalRowTotal: Currency;
|
|
142
|
+
rowTotal: Currency;
|
|
143
|
+
rowTotalIncludingTax: Currency;
|
|
144
|
+
};
|
|
145
|
+
savingsAmount?: Currency;
|
|
146
|
+
configurableOptions?: ConfigurableOption[];
|
|
147
|
+
bundleOptions?: BundleOption[];
|
|
148
|
+
customizableOptions?: CustomizableOption[];
|
|
149
|
+
noteFromBuyer?: ItemNote[];
|
|
150
|
+
noteFromSeller?: ItemNote[];
|
|
151
|
+
}
|
|
152
|
+
interface ItemImage {
|
|
153
|
+
src: string;
|
|
154
|
+
alt: string;
|
|
155
|
+
}
|
|
156
|
+
interface ItemLinks {
|
|
157
|
+
count: number;
|
|
158
|
+
result: string;
|
|
159
|
+
}
|
|
160
|
+
export interface ItemNote {
|
|
161
|
+
createdAt: string;
|
|
162
|
+
creatorId: number;
|
|
163
|
+
creatorType: number;
|
|
164
|
+
negotiableQuoteItemUid: string;
|
|
165
|
+
note: string;
|
|
166
|
+
noteUid: string;
|
|
167
|
+
}
|
|
168
|
+
export interface Currency {
|
|
169
|
+
value: number;
|
|
170
|
+
currency: string;
|
|
171
|
+
}
|
|
172
|
+
export interface Tax {
|
|
173
|
+
amount: Currency;
|
|
174
|
+
label: string;
|
|
175
|
+
}
|
|
176
|
+
export interface Discount {
|
|
177
|
+
amount: Currency;
|
|
178
|
+
label: string;
|
|
179
|
+
coupon?: Coupon;
|
|
180
|
+
}
|
|
181
|
+
export interface Coupon {
|
|
182
|
+
code: string;
|
|
183
|
+
}
|
|
184
|
+
export interface NegotiableQuoteListEntry {
|
|
185
|
+
uid: string;
|
|
186
|
+
name: string;
|
|
187
|
+
createdAt: string;
|
|
188
|
+
updatedAt: string;
|
|
189
|
+
status: NegotiableQuoteStatus;
|
|
190
|
+
buyer: {
|
|
191
|
+
firstname: string;
|
|
192
|
+
lastname: string;
|
|
193
|
+
};
|
|
194
|
+
templateName: string;
|
|
195
|
+
prices: {
|
|
196
|
+
grandTotal: Currency;
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
export interface NegotiableQuotesListModel {
|
|
200
|
+
items: NegotiableQuoteListEntry[];
|
|
201
|
+
pageInfo: {
|
|
202
|
+
currentPage: number;
|
|
203
|
+
pageSize: number;
|
|
204
|
+
totalPages: number;
|
|
205
|
+
};
|
|
206
|
+
totalCount: number;
|
|
207
|
+
paginationInfo?: PaginationInfo;
|
|
208
|
+
sortFields?: {
|
|
209
|
+
default: string;
|
|
210
|
+
options: Array<{
|
|
211
|
+
label: string;
|
|
212
|
+
value: string;
|
|
213
|
+
}>;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
export interface NegotiableQuoteHistoryEntry {
|
|
217
|
+
author: {
|
|
218
|
+
firstname: string;
|
|
219
|
+
lastname: string;
|
|
220
|
+
};
|
|
221
|
+
changeType: NegotiableQuoteHistoryEntryChangeType;
|
|
222
|
+
changes: {
|
|
223
|
+
commentAdded?: {
|
|
224
|
+
comment: string;
|
|
225
|
+
};
|
|
226
|
+
customChanges?: {
|
|
227
|
+
new_value: string;
|
|
228
|
+
old_value: string;
|
|
229
|
+
title: string;
|
|
230
|
+
};
|
|
231
|
+
expiration?: {
|
|
232
|
+
newExpiration: string;
|
|
233
|
+
oldExpiration: string;
|
|
234
|
+
};
|
|
235
|
+
productsRemoved?: {
|
|
236
|
+
productsRemovedFromCatalog: string[];
|
|
237
|
+
productsRemovedFromQuote?: {
|
|
238
|
+
uid: string;
|
|
239
|
+
name: string;
|
|
240
|
+
sku: string;
|
|
241
|
+
quantity: number;
|
|
242
|
+
}[];
|
|
243
|
+
};
|
|
244
|
+
statuses?: {
|
|
245
|
+
changes: {
|
|
246
|
+
newStatus: string;
|
|
247
|
+
oldStatus: string;
|
|
248
|
+
}[];
|
|
249
|
+
};
|
|
250
|
+
total?: {
|
|
251
|
+
newPrice: Currency;
|
|
252
|
+
oldPrice: Currency;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
createdAt: string;
|
|
256
|
+
uid: string;
|
|
257
|
+
}
|
|
258
|
+
export declare enum NegotiableQuoteHistoryEntryChangeType {
|
|
259
|
+
CREATED = "CREATED",
|
|
260
|
+
UPDATED = "UPDATED",
|
|
261
|
+
CLOSED = "CLOSED",
|
|
262
|
+
UPDATED_BY_SYSTEM = "UPDATED_BY_SYSTEM"
|
|
263
|
+
}
|
|
264
|
+
export declare enum NegotiableQuoteStatus {
|
|
265
|
+
NEW = "NEW",
|
|
266
|
+
SUBMITTED = "SUBMITTED",
|
|
267
|
+
PENDING = "PENDING",
|
|
268
|
+
UPDATED = "UPDATED",
|
|
269
|
+
OPEN = "OPEN",
|
|
270
|
+
ORDERED = "ORDERED",
|
|
271
|
+
CLOSED = "CLOSED",
|
|
272
|
+
DECLINED = "DECLINED",
|
|
273
|
+
EXPIRED = "EXPIRED",
|
|
274
|
+
DRAFT = "DRAFT"
|
|
275
|
+
}
|
|
276
|
+
export interface PaginationInfo {
|
|
277
|
+
currentPage: number;
|
|
278
|
+
totalCount: number;
|
|
279
|
+
pageSize: number;
|
|
280
|
+
startItem: number;
|
|
281
|
+
endItem: number;
|
|
282
|
+
totalPages: number;
|
|
283
|
+
pageSizeOptions?: number[];
|
|
50
284
|
}
|
|
285
|
+
export {};
|
|
51
286
|
//# sourceMappingURL=negotiable-quote-model.d.ts.map
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Currency, ItemNote, PaginationInfo, ShippingAddress, ConfigurableOption, BundleOption } from './negotiable-quote-model';
|
|
2
|
+
|
|
3
|
+
export interface NegotiableQuoteTemplateModel {
|
|
4
|
+
id: string;
|
|
5
|
+
uid: string;
|
|
6
|
+
name: string;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
expirationDate?: string;
|
|
10
|
+
status: NegotiableQuoteTemplateStatus;
|
|
11
|
+
salesRepName: string;
|
|
12
|
+
buyer: {
|
|
13
|
+
firstname: string;
|
|
14
|
+
lastname: string;
|
|
15
|
+
};
|
|
16
|
+
comments?: QuoteTemplateComment[];
|
|
17
|
+
history?: QuoteTemplateHistoryEntry[];
|
|
18
|
+
prices: {
|
|
19
|
+
subtotalExcludingTax?: Currency;
|
|
20
|
+
subtotalIncludingTax?: Currency;
|
|
21
|
+
subtotalWithDiscountExcludingTax?: Currency;
|
|
22
|
+
grandTotal?: Currency;
|
|
23
|
+
appliedTaxes?: {
|
|
24
|
+
amount: Currency;
|
|
25
|
+
label: string;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
items: QuoteTemplateCartItem[];
|
|
29
|
+
shippingAddresses?: ShippingAddress[];
|
|
30
|
+
referenceDocuments?: {
|
|
31
|
+
uid: string;
|
|
32
|
+
name: string;
|
|
33
|
+
identifier?: string;
|
|
34
|
+
url: string;
|
|
35
|
+
}[];
|
|
36
|
+
quantityThresholds?: {
|
|
37
|
+
min?: number;
|
|
38
|
+
max?: number;
|
|
39
|
+
};
|
|
40
|
+
canAccept: boolean;
|
|
41
|
+
canDelete: boolean;
|
|
42
|
+
canReopen: boolean;
|
|
43
|
+
canCancel: boolean;
|
|
44
|
+
canSendForReview: boolean;
|
|
45
|
+
canGenerateQuoteFromTemplate: boolean;
|
|
46
|
+
canEditTemplateItems: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare enum NegotiableQuoteTemplateStatus {
|
|
49
|
+
ACTIVE = "Active",
|
|
50
|
+
IN_REVIEW = "In Review",
|
|
51
|
+
INACTIVE = "Inactive",
|
|
52
|
+
SUBMITTED = "Submitted",
|
|
53
|
+
PENDING = "Pending",
|
|
54
|
+
CLOSED = "Closed",
|
|
55
|
+
OPEN = "Open",
|
|
56
|
+
UPDATED = "Updated",
|
|
57
|
+
EDITED = "Edited",
|
|
58
|
+
NEW = "New",
|
|
59
|
+
DRAFT = "Draft",
|
|
60
|
+
DECLINED = "Declined",
|
|
61
|
+
CANCELED = "Canceled",
|
|
62
|
+
EXPIRED = "Expired"
|
|
63
|
+
}
|
|
64
|
+
export interface QuoteTemplateCartItem {
|
|
65
|
+
uid?: string;
|
|
66
|
+
product: {
|
|
67
|
+
uid: string;
|
|
68
|
+
sku: string;
|
|
69
|
+
name: string;
|
|
70
|
+
};
|
|
71
|
+
quantity: number;
|
|
72
|
+
prices: {
|
|
73
|
+
originalItemPrice: Currency;
|
|
74
|
+
rowTotal: Currency;
|
|
75
|
+
};
|
|
76
|
+
catalogDiscount?: {
|
|
77
|
+
amountOff: number;
|
|
78
|
+
percentOff: number;
|
|
79
|
+
};
|
|
80
|
+
discounts?: {
|
|
81
|
+
label: string;
|
|
82
|
+
value: string;
|
|
83
|
+
amount: Currency;
|
|
84
|
+
}[];
|
|
85
|
+
noteFromBuyer?: ItemNote[];
|
|
86
|
+
noteFromSeller?: ItemNote[];
|
|
87
|
+
configurableOptions?: ConfigurableOption[];
|
|
88
|
+
bundleOptions?: BundleOption[];
|
|
89
|
+
}
|
|
90
|
+
export interface QuoteTemplateComment {
|
|
91
|
+
uid: string;
|
|
92
|
+
createdAt: string;
|
|
93
|
+
author: {
|
|
94
|
+
firstname: string;
|
|
95
|
+
lastname: string;
|
|
96
|
+
};
|
|
97
|
+
text: string;
|
|
98
|
+
attachments?: {
|
|
99
|
+
name: string;
|
|
100
|
+
url: string;
|
|
101
|
+
}[];
|
|
102
|
+
}
|
|
103
|
+
export interface QuoteTemplateHistoryEntry {
|
|
104
|
+
uid: string;
|
|
105
|
+
createdAt: string;
|
|
106
|
+
author: {
|
|
107
|
+
firstname: string;
|
|
108
|
+
lastname: string;
|
|
109
|
+
};
|
|
110
|
+
changeType: string;
|
|
111
|
+
changes: any;
|
|
112
|
+
}
|
|
113
|
+
export interface NegotiableQuoteTemplatesListModel {
|
|
114
|
+
items: NegotiableQuoteTemplateListEntry[];
|
|
115
|
+
pageInfo: {
|
|
116
|
+
currentPage: number;
|
|
117
|
+
pageSize: number;
|
|
118
|
+
totalPages: number;
|
|
119
|
+
};
|
|
120
|
+
totalCount: number;
|
|
121
|
+
paginationInfo?: PaginationInfo;
|
|
122
|
+
sortFields?: {
|
|
123
|
+
default: string;
|
|
124
|
+
options: Array<{
|
|
125
|
+
label: string;
|
|
126
|
+
value: string;
|
|
127
|
+
}>;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export interface NegotiableQuoteTemplateListEntry {
|
|
131
|
+
id: string;
|
|
132
|
+
uid: string;
|
|
133
|
+
name: string;
|
|
134
|
+
createdAt: string;
|
|
135
|
+
updatedAt: string;
|
|
136
|
+
status: NegotiableQuoteTemplateStatus;
|
|
137
|
+
state: 'active' | 'inactive' | 'in_review';
|
|
138
|
+
lastSharedAt: string;
|
|
139
|
+
lastOrderedAt: string;
|
|
140
|
+
expirationDate: string;
|
|
141
|
+
ordersPlaced: number;
|
|
142
|
+
prices: {
|
|
143
|
+
grandTotal: Currency;
|
|
144
|
+
minNegotiatedGrandTotal: Currency;
|
|
145
|
+
};
|
|
146
|
+
canGenerateQuoteFromTemplate?: boolean;
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=negotiable-quote-template-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
|