@dropins/storefront-quote-management 0.0.1-alpha8 → 1.0.0-beta1
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/ShippingMethodFragment.d.ts +10 -0
- package/api/index.d.ts +33 -1
- package/api/initialize/initialize.d.ts +2 -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 +3 -0
- 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 +15 -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 +95 -22
- package/api.js.map +1 -1
- package/chunks/AttachedFilesList.js +4 -0
- package/chunks/AttachedFilesList.js.map +1 -0
- package/chunks/CheckWithCircle.js +4 -0
- package/chunks/CheckWithCircle.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/LineItemNoteModal2.js +4 -0
- package/chunks/LineItemNoteModal2.js.map +1 -0
- package/chunks/NegotiableQuoteFragment.js +342 -7
- package/chunks/NegotiableQuoteFragment.js.map +1 -1
- package/chunks/NegotiableQuoteTemplateFragment.js +190 -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 +13 -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 +35 -5
- package/chunks/negotiableQuotes.js.map +1 -1
- package/chunks/openQuoteTemplate.js +31 -0
- package/chunks/openQuoteTemplate.js.map +1 -0
- package/chunks/requestNegotiableQuote.js +3 -3
- 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 +20 -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/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 +28 -1
- 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 +21 -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 +67 -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 +9 -9
- package/containers/QuotesListTable.js +1 -1
- package/containers/QuotesListTable.js.map +1 -1
- package/containers/RequestNegotiableQuoteForm/RequestNegotiableQuoteForm.d.ts +10 -0
- 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 +21 -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__/storeConfigModel.d.ts +5 -0
- package/data/models/index.d.ts +10 -1
- package/data/models/negotiable-quote-model.d.ts +228 -31
- package/data/models/negotiable-quote-template-model.d.ts +147 -0
- package/data/models/store-config-model.d.ts +27 -0
- package/data/transforms/__fixtures__/negotiableQuoteData.d.ts +590 -2
- package/data/transforms/__fixtures__/negotiableQuoteTemplateData.d.ts +1610 -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 +8 -0
- package/data/transforms/transform-store-config.d.ts +4 -0
- package/hooks/useQuoteSummaryData.d.ts +10 -0
- package/i18n/en_US.json.d.ts +346 -0
- 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 -3
- 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
|
@@ -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
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
/********************************************************************
|
|
2
|
-
*
|
|
3
|
-
* __________________
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2024 Adobe
|
|
2
|
+
* Copyright 2025 Adobe
|
|
6
3
|
* All Rights Reserved.
|
|
7
4
|
*
|
|
8
|
-
* NOTICE:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* and its suppliers and are protected by all applicable intellectual
|
|
12
|
-
* property laws, including trade secret and copyright laws.
|
|
13
|
-
* Dissemination of this information or reproduction of this material
|
|
14
|
-
* is strictly forbidden unless prior written permission is obtained
|
|
15
|
-
* from Adobe.
|
|
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.
|
|
16
8
|
*******************************************************************/
|
|
17
|
-
export * from './transform-
|
|
9
|
+
export * from './transform-store-config';
|
|
18
10
|
export * from './transform-quote';
|
|
11
|
+
export * from './transform-quote-template';
|
|
19
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NegotiableQuoteTemplateModel, NegotiableQuoteTemplatesListModel } from '../models/negotiable-quote-template-model';
|
|
2
|
+
|
|
3
|
+
export declare function transformQuoteTemplate(templateData: any): NegotiableQuoteTemplateModel | null;
|
|
4
|
+
export declare function transformQuoteTemplatesList(templatesData: any): NegotiableQuoteTemplatesListModel | null;
|
|
5
|
+
//# sourceMappingURL=transform-quote-template.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
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NegotiableQuoteModel } from '../data/models';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook to manage quote summary data and loading state
|
|
5
|
+
*/
|
|
6
|
+
export declare const useQuoteSummaryData: () => {
|
|
7
|
+
quoteData: NegotiableQuoteModel | undefined;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useQuoteSummaryData.d.ts.map
|
package/i18n/en_US.json.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
"ConfirmationModal": {
|
|
3
|
+
"cancel": "Cancel",
|
|
4
|
+
"confirm": "Confirm"
|
|
5
|
+
},
|
|
2
6
|
"NegotiableQuote": {
|
|
3
7
|
"Request": {
|
|
4
8
|
"title": "Request a Quote",
|
|
@@ -7,6 +11,13 @@ declare const _default: {
|
|
|
7
11
|
"quoteName": "Quote name",
|
|
8
12
|
"quoteNameError": "Please add a quote name",
|
|
9
13
|
"attachmentsError": "Error uploading attachments",
|
|
14
|
+
"maxFilesExceeded": "Maximum {maxFiles} file(s) allowed",
|
|
15
|
+
"maxFileSizeExceeded": "File size exceeds maximum limit of {maxSize}",
|
|
16
|
+
"invalidFileType": "File type not accepted",
|
|
17
|
+
"removeFile": "Remove file",
|
|
18
|
+
"uploading": "Uploading...",
|
|
19
|
+
"uploadSuccess": "Upload complete",
|
|
20
|
+
"uploadError": "Upload failed",
|
|
10
21
|
"requestCta": "Request a Quote",
|
|
11
22
|
"saveDraftCta": "Save as draft",
|
|
12
23
|
"error": {
|
|
@@ -20,8 +31,332 @@ declare const _default: {
|
|
|
20
31
|
"submitted": "Quote request submitted successfully!",
|
|
21
32
|
"draftSaved": "Quote saved as draft successfully!"
|
|
22
33
|
}
|
|
34
|
+
},
|
|
35
|
+
"Manage": {
|
|
36
|
+
"createdLabel": "Created:",
|
|
37
|
+
"salesRepLabel": "Sales Rep:",
|
|
38
|
+
"expiresLabel": "Expires:",
|
|
39
|
+
"actionsLabel": "Actions",
|
|
40
|
+
"actions": {
|
|
41
|
+
"remove": "Remove"
|
|
42
|
+
},
|
|
43
|
+
"attachFile": "Attach File",
|
|
44
|
+
"attachFiles": "Attach Files",
|
|
45
|
+
"fileUploadError": "Failed to upload file. Please try again.",
|
|
46
|
+
"maxFilesExceeded": "Maximum {maxFiles} file(s) allowed",
|
|
47
|
+
"maxFileSizeExceeded": "File size exceeds maximum limit of {maxSize}",
|
|
48
|
+
"invalidFileType": "File type not accepted",
|
|
49
|
+
"removeFile": "Remove file",
|
|
50
|
+
"uploading": "Uploading...",
|
|
51
|
+
"uploadSuccess": "Upload complete",
|
|
52
|
+
"uploadError": "Upload failed",
|
|
53
|
+
"bannerTitle": "Alert",
|
|
54
|
+
"bannerStatusMessages": {
|
|
55
|
+
"submitted": "This quote is currently locked for editing. It will become available once released by the Merchant.",
|
|
56
|
+
"pending": "This quote is currently locked for editing. It will become available once released by the Merchant.",
|
|
57
|
+
"expired": "Your quote has expired and the product prices have been updated as per the latest prices in your catalog. You can either re-submit the quote to seller for further negotiation or go to checkout."
|
|
58
|
+
},
|
|
59
|
+
"actionButtons": {
|
|
60
|
+
"close": "Close quote",
|
|
61
|
+
"delete": "Delete quote",
|
|
62
|
+
"print": "Print quote",
|
|
63
|
+
"createTemplate": "Create quote template",
|
|
64
|
+
"createCopy": "Create copy",
|
|
65
|
+
"sendForReview": "Send for review"
|
|
66
|
+
},
|
|
67
|
+
"confirmationModal": {
|
|
68
|
+
"cancel": "Cancel",
|
|
69
|
+
"delete": {
|
|
70
|
+
"title": "Delete Quote",
|
|
71
|
+
"message": "Are you sure you want to delete this quote?",
|
|
72
|
+
"confirm": "Delete",
|
|
73
|
+
"errorHeading": "Error",
|
|
74
|
+
"errorFallback": "Failed to delete quote",
|
|
75
|
+
"successHeading": "Success",
|
|
76
|
+
"successDescription": "Quote has been successfully deleted"
|
|
77
|
+
},
|
|
78
|
+
"duplicate": {
|
|
79
|
+
"title": "Duplicate Quote",
|
|
80
|
+
"message": "Are you sure you want to create a copy of this quote?",
|
|
81
|
+
"confirm": "Create Copy",
|
|
82
|
+
"errorHeading": "Error",
|
|
83
|
+
"errorFallback": "Failed to duplicate quote",
|
|
84
|
+
"successHeading": "Success",
|
|
85
|
+
"successDescription": "Quote has been successfully duplicated. You will be redirected to the new quote shortly."
|
|
86
|
+
},
|
|
87
|
+
"close": {
|
|
88
|
+
"message": "Are you sure you want to close this quote?",
|
|
89
|
+
"confirm": "Close",
|
|
90
|
+
"confirmLoading": "Closing...",
|
|
91
|
+
"successHeading": "Success",
|
|
92
|
+
"successDescription": "Quote has been successfully closed"
|
|
93
|
+
},
|
|
94
|
+
"createTemplate": {
|
|
95
|
+
"message": "Are you sure you want to create a quote template from this quote?",
|
|
96
|
+
"confirm": "Create Template",
|
|
97
|
+
"confirmLoading": "Creating...",
|
|
98
|
+
"successHeading": "Success",
|
|
99
|
+
"successDescription": "Quote template has been successfully created",
|
|
100
|
+
"errorHeading": "Error",
|
|
101
|
+
"errorFallback": "Failed to create quote template"
|
|
102
|
+
},
|
|
103
|
+
"noItemsSelected": {
|
|
104
|
+
"title": "Please Select Quote Items",
|
|
105
|
+
"message": "Please select at least one quote item to proceed.",
|
|
106
|
+
"confirm": "Ok"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"shippingInformation": {
|
|
110
|
+
"title": "Shipping Information"
|
|
111
|
+
},
|
|
112
|
+
"shippingAddress": {
|
|
113
|
+
"noAddress": "No shipping address has been set for this quote."
|
|
114
|
+
},
|
|
115
|
+
"quoteComments": {
|
|
116
|
+
"title": "Quote Comments",
|
|
117
|
+
"placeholder": "Add your comment",
|
|
118
|
+
"emptyState": "No comments yet",
|
|
119
|
+
"by": "by",
|
|
120
|
+
"attachments": "Attachments:"
|
|
121
|
+
},
|
|
122
|
+
"productListTable": {
|
|
123
|
+
"headers": {
|
|
124
|
+
"productName": "Product name",
|
|
125
|
+
"sku": "SKU",
|
|
126
|
+
"price": "Price",
|
|
127
|
+
"quantity": "Quantity",
|
|
128
|
+
"discount": "Discount",
|
|
129
|
+
"subtotal": "Subtotal",
|
|
130
|
+
"actions": "Actions"
|
|
131
|
+
},
|
|
132
|
+
"submitButton": "Update",
|
|
133
|
+
"actions": {
|
|
134
|
+
"editNoteToSeller": "Edit note to seller",
|
|
135
|
+
"remove": "Remove"
|
|
136
|
+
},
|
|
137
|
+
"notes": {
|
|
138
|
+
"header": "NOTES",
|
|
139
|
+
"leftANote": "left a note:",
|
|
140
|
+
"buyer": "Buyer"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"rename": {
|
|
144
|
+
"title": "Rename Quote",
|
|
145
|
+
"quoteNameLabel": "Quote name",
|
|
146
|
+
"reasonLabel": "Reason for change",
|
|
147
|
+
"renameButton": "Rename",
|
|
148
|
+
"cancelButton": "Cancel",
|
|
149
|
+
"errorHeading": "Error",
|
|
150
|
+
"quoteNameRequired": "Quote name is required",
|
|
151
|
+
"errorDefault": "Failed to rename quote. Please try again.",
|
|
152
|
+
"successHeading": "Success",
|
|
153
|
+
"successMessage": "Quote renamed successfully!"
|
|
154
|
+
},
|
|
155
|
+
"lineItemNote": {
|
|
156
|
+
"title": "Leave a note to seller",
|
|
157
|
+
"productLabel": "Name & SKU",
|
|
158
|
+
"skuLabel": "SKU",
|
|
159
|
+
"priceLabel": "Price",
|
|
160
|
+
"stockLabel": "Stock",
|
|
161
|
+
"quantityLabel": "Qty",
|
|
162
|
+
"discountLabel": "Discount",
|
|
163
|
+
"subtotalLabel": "Subtotal",
|
|
164
|
+
"noteLabel": "Note to seller",
|
|
165
|
+
"notePlaceholder": "Can I get a discount on this?",
|
|
166
|
+
"noteHelper": "The seller will see the note when you send the quote back.",
|
|
167
|
+
"confirmButton": "Confirm",
|
|
168
|
+
"cancelButton": "Cancel",
|
|
169
|
+
"noteError": "Please enter a note",
|
|
170
|
+
"quantityError": "Quantity must be greater than 0"
|
|
171
|
+
},
|
|
172
|
+
"tabbedContent": {
|
|
173
|
+
"itemsQuoted": "Items quoted",
|
|
174
|
+
"comments": "Comments",
|
|
175
|
+
"historyLog": "History log"
|
|
176
|
+
},
|
|
177
|
+
"quotePricesSummary": {
|
|
178
|
+
"subtotal": {
|
|
179
|
+
"excludingTax": "Quote Subtotal (excluding tax)"
|
|
180
|
+
},
|
|
181
|
+
"appliedTaxes": "Applied Taxes",
|
|
182
|
+
"grandTotal": {
|
|
183
|
+
"includingTax": "Quote Grand Total (including tax)"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"updateQuantitiesModal": {
|
|
187
|
+
"title": "Change Quote Items",
|
|
188
|
+
"description": "Making changes to any quote item changes the terms of the quote. After you update the quote, return it to the seller for review and approval.",
|
|
189
|
+
"cancelButton": "Cancel",
|
|
190
|
+
"updateButton": "Apply Changes",
|
|
191
|
+
"successHeading": "Success",
|
|
192
|
+
"successMessage": "Quote quantities have been successfully updated.",
|
|
193
|
+
"errorHeading": "Error",
|
|
194
|
+
"errorMessage": "Failed to update quote quantities. Please try again."
|
|
195
|
+
},
|
|
196
|
+
"removeItemsModal": {
|
|
197
|
+
"title": "Change Quote Items",
|
|
198
|
+
"description": "Making changes to any quote item changes the terms of the quote. After you update the quote, return it to the seller for review and approval.",
|
|
199
|
+
"cancelButton": "Cancel",
|
|
200
|
+
"confirmButton": "Remove",
|
|
201
|
+
"confirmButtonRemoving": "Removing...",
|
|
202
|
+
"successHeading": "Success",
|
|
203
|
+
"successMessage": "Quote items have been successfully removed.",
|
|
204
|
+
"errorHeading": "Error",
|
|
205
|
+
"errorMessage": "Failed to remove quote items. Please try again."
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"PriceSummary": {
|
|
209
|
+
"taxToBeDetermined": "TBD",
|
|
210
|
+
"orderSummary": "Order Summary",
|
|
211
|
+
"giftOptionsTax": {
|
|
212
|
+
"printedCard": {
|
|
213
|
+
"title": "Printed card",
|
|
214
|
+
"inclTax": "Including taxes",
|
|
215
|
+
"exclTax": "excluding taxes"
|
|
216
|
+
},
|
|
217
|
+
"itemGiftWrapping": {
|
|
218
|
+
"title": "Item gift wrapping",
|
|
219
|
+
"inclTax": "Including taxes",
|
|
220
|
+
"exclTax": "excluding taxes"
|
|
221
|
+
},
|
|
222
|
+
"orderGiftWrapping": {
|
|
223
|
+
"title": "Order gift wrapping",
|
|
224
|
+
"inclTax": "Including taxes",
|
|
225
|
+
"exclTax": "excluding taxes"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"subTotal": {
|
|
229
|
+
"label": "Subtotal",
|
|
230
|
+
"withTaxes": "Including taxes",
|
|
231
|
+
"withoutTaxes": "excluding taxes"
|
|
232
|
+
},
|
|
233
|
+
"shipping": {
|
|
234
|
+
"label": "Shipping",
|
|
235
|
+
"withTaxes": "Including taxes",
|
|
236
|
+
"withoutTaxes": "excluding taxes"
|
|
237
|
+
},
|
|
238
|
+
"taxes": {
|
|
239
|
+
"total": "Tax Total",
|
|
240
|
+
"totalOnly": "Tax",
|
|
241
|
+
"breakdown": "Taxes",
|
|
242
|
+
"showBreakdown": "Show Tax Breakdown",
|
|
243
|
+
"hideBreakdown": "Hide Tax Breakdown"
|
|
244
|
+
},
|
|
245
|
+
"total": {
|
|
246
|
+
"free": "Free",
|
|
247
|
+
"label": "Total",
|
|
248
|
+
"withoutTax": "Total excluding taxes",
|
|
249
|
+
"saved": "Total saved"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"QuoteSummaryList": {
|
|
253
|
+
"discountedPrice": "Discounted Price",
|
|
254
|
+
"discountPercentage": "{discount}% off",
|
|
255
|
+
"editQuote": "Edit",
|
|
256
|
+
"file": "{count} file",
|
|
257
|
+
"files": "{count} files",
|
|
258
|
+
"heading": "Negotiable Quote ({count})",
|
|
259
|
+
"listOfQuoteItems": "List of Quote Items",
|
|
260
|
+
"regularPrice": "Regular Price",
|
|
261
|
+
"savingsAmount": "Savings",
|
|
262
|
+
"viewMore": "View more"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"NegotiableQuoteTemplate": {
|
|
266
|
+
"Manage": {
|
|
267
|
+
"createdLabel": "Created:",
|
|
268
|
+
"salesRepLabel": "Sales Rep:",
|
|
269
|
+
"expiresLabel": "Expires:",
|
|
270
|
+
"referenceDocuments": {
|
|
271
|
+
"title": "Reference Documents"
|
|
272
|
+
},
|
|
273
|
+
"comments": {
|
|
274
|
+
"title": "Comments"
|
|
275
|
+
},
|
|
276
|
+
"historyLog": {
|
|
277
|
+
"title": "History Log"
|
|
278
|
+
},
|
|
279
|
+
"tabs": {
|
|
280
|
+
"itemsQuoted": "Items Quoted",
|
|
281
|
+
"comments": "Comments",
|
|
282
|
+
"historyLog": "History Log"
|
|
283
|
+
},
|
|
284
|
+
"templateComments": {
|
|
285
|
+
"title": "Template Comments",
|
|
286
|
+
"placeholder": "Add your comment"
|
|
287
|
+
},
|
|
288
|
+
"actionsLabel": "Actions",
|
|
289
|
+
"actionButtons": {
|
|
290
|
+
"sendForReview": "Send for review",
|
|
291
|
+
"accept": "Accept",
|
|
292
|
+
"generateQuote": "Generate quote"
|
|
293
|
+
},
|
|
294
|
+
"confirmationModal": {
|
|
295
|
+
"cancel": "Cancel",
|
|
296
|
+
"accept": {
|
|
297
|
+
"title": "Accept Quote Template",
|
|
298
|
+
"message": "Are you sure you want to accept this quote template?",
|
|
299
|
+
"confirm": "Accept",
|
|
300
|
+
"confirmLoading": "Accepting...",
|
|
301
|
+
"successHeading": "Quote Template Accepted",
|
|
302
|
+
"successDescription": "Quote template has been successfully accepted.",
|
|
303
|
+
"errorHeading": "Error",
|
|
304
|
+
"errorFallback": "Failed to accept quote template. Please try again."
|
|
305
|
+
},
|
|
306
|
+
"generateQuote": {
|
|
307
|
+
"message": "Are you sure you want to generate a quote from this template?",
|
|
308
|
+
"confirm": "Generate Quote",
|
|
309
|
+
"confirmLoading": "Generating...",
|
|
310
|
+
"successHeading": "Quote Generated",
|
|
311
|
+
"successDescription": "Quote has been successfully generated from the template.",
|
|
312
|
+
"errorHeading": "Error",
|
|
313
|
+
"errorFallback": "Failed to generate quote from template. Please try again."
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"quotePricesSummary": {
|
|
317
|
+
"subtotal": {
|
|
318
|
+
"excludingTax": "Quote Template Subtotal (excluding tax)"
|
|
319
|
+
},
|
|
320
|
+
"appliedTaxes": "Applied Taxes",
|
|
321
|
+
"grandTotal": {
|
|
322
|
+
"includingTax": "Quote Template Grand Total (including tax)"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"lineItemNoteModal": {
|
|
326
|
+
"errorHeading": "Error"
|
|
327
|
+
}
|
|
23
328
|
}
|
|
24
329
|
},
|
|
330
|
+
"historyLog": {
|
|
331
|
+
"changeTypes": {
|
|
332
|
+
"created": "Quote Created",
|
|
333
|
+
"updated": "Quote Updated",
|
|
334
|
+
"statusChanged": "Status Changed",
|
|
335
|
+
"commentAdded": "Comment Added",
|
|
336
|
+
"expirationChanged": "Expiration Changed"
|
|
337
|
+
},
|
|
338
|
+
"noteTypes": {
|
|
339
|
+
"buyerNoteAdded": "Buyer Note Added",
|
|
340
|
+
"sellerNoteAdded": "Seller Note Added"
|
|
341
|
+
},
|
|
342
|
+
"authorLabels": {
|
|
343
|
+
"buyer": "(Buyer)",
|
|
344
|
+
"seller": "(Seller)"
|
|
345
|
+
},
|
|
346
|
+
"changeDetails": {
|
|
347
|
+
"comment": "Comment: \"{comment}\"",
|
|
348
|
+
"statusChangedFromTo": "Status changed from {oldStatus} to {newStatus}",
|
|
349
|
+
"statusSetTo": "Status set to {newStatus}",
|
|
350
|
+
"expirationChangedFromTo": "Expiration changed from {oldExpiration} to {newExpiration}",
|
|
351
|
+
"expirationSetTo": "Expiration set to {newExpiration}",
|
|
352
|
+
"totalChangedFromTo": "Total changed from {oldTotal} to {newTotal}",
|
|
353
|
+
"customChange": "{title}: changed from \"{oldValue}\" to \"{newValue}\"",
|
|
354
|
+
"productsRemovedFromCatalog": "Products removed from catalog: {products}",
|
|
355
|
+
"productsRemovedFromQuote": "Products removed from quote: {products}",
|
|
356
|
+
"noDetailsAvailable": "No details available"
|
|
357
|
+
},
|
|
358
|
+
"emptyState": "No history available for this quote."
|
|
359
|
+
},
|
|
25
360
|
"QuoteManagement": {
|
|
26
361
|
"QuotesListTable": {
|
|
27
362
|
"quoteName": "Quote Name",
|
|
@@ -32,6 +367,17 @@ declare const _default: {
|
|
|
32
367
|
"quoteTemplate": "Quote Template",
|
|
33
368
|
"quoteTotal": "Quote Total",
|
|
34
369
|
"actions": "Action"
|
|
370
|
+
},
|
|
371
|
+
"QuoteTemplatesListTable": {
|
|
372
|
+
"name": "Template Name",
|
|
373
|
+
"state": "State",
|
|
374
|
+
"status": "Status",
|
|
375
|
+
"validUntil": "Valid Until",
|
|
376
|
+
"minQuoteTotal": "Min. Quote Total (Negotiated)",
|
|
377
|
+
"ordersPlaced": "Orders Placed",
|
|
378
|
+
"lastOrdered": "Last Ordered",
|
|
379
|
+
"actions": "Action",
|
|
380
|
+
"view": "View"
|
|
35
381
|
}
|
|
36
382
|
}
|
|
37
383
|
}
|
|
@@ -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
|
+
/**
|
|
10
|
+
* Helper function to transform bundle options data to be ready for a CartItem SDK component
|
|
11
|
+
*/
|
|
12
|
+
export declare const transformBundleOptions: (data: any) => {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
} | null;
|
|
15
|
+
/**
|
|
16
|
+
* Helper function to transform configurable options data to be ready for a CartItem SDK component
|
|
17
|
+
*/
|
|
18
|
+
export declare const transformConfigurableOptions: (data: any) => {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
} | null;
|
|
21
|
+
/**
|
|
22
|
+
* Helper function to transform customizable options data to be ready for a CartItem SDK component
|
|
23
|
+
*/
|
|
24
|
+
export declare const transformCustomizableOptions: (data: any) => {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=configurationTransformers.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ImageProps } from '@dropins/tools/types/elsie/src/components';
|
|
2
|
+
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
3
|
+
import { NegotiableQuoteCartItem as NegotiableQuoteItemModel, StoreConfigModel } from '../data/models';
|
|
4
|
+
import { SwitchableAttributes } from '../containers/QuoteSummaryList/QuoteSummaryList';
|
|
5
|
+
|
|
6
|
+
export interface ItemFormatterOptions {
|
|
7
|
+
attributesToHide: SwitchableAttributes[];
|
|
8
|
+
routeProduct?: (item: NegotiableQuoteItemModel) => string;
|
|
9
|
+
slots?: {
|
|
10
|
+
Thumbnail?: SlotProps<{
|
|
11
|
+
item: NegotiableQuoteItemModel;
|
|
12
|
+
defaultImageProps: ImageProps;
|
|
13
|
+
}>;
|
|
14
|
+
ProductAttributes?: SlotProps<{
|
|
15
|
+
item: NegotiableQuoteItemModel;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
dictionary: Record<string, string>;
|
|
19
|
+
quoteDisplaySettings?: StoreConfigModel['quoteDisplaySettings'];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get image component for an item
|
|
23
|
+
*/
|
|
24
|
+
export declare const getImage: (item: NegotiableQuoteItemModel, index: number, options: ItemFormatterOptions) => import("preact").JSX.Element | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Get title component for an item
|
|
27
|
+
*/
|
|
28
|
+
export declare const getTitle: (item: NegotiableQuoteItemModel, options: ItemFormatterOptions) => import("preact").JSX.Element | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Get SKU component for an item
|
|
31
|
+
*/
|
|
32
|
+
export declare const getSku: (item: NegotiableQuoteItemModel) => import("preact").JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* Get product attributes slot for an item
|
|
35
|
+
*/
|
|
36
|
+
export declare const getProductAttributes: (item: NegotiableQuoteItemModel, options: ItemFormatterOptions) => import("preact").JSX.Element;
|
|
37
|
+
/**
|
|
38
|
+
* Get configurations for an item (bundle, configurable, customizable options)
|
|
39
|
+
*/
|
|
40
|
+
export declare const getConfigurations: (item: NegotiableQuoteItemModel, options: ItemFormatterOptions) => {
|
|
41
|
+
[x: string]: any;
|
|
42
|
+
} | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Get total excluding tax component for an item
|
|
45
|
+
*/
|
|
46
|
+
export declare const getTotalExcludingTax: (item: NegotiableQuoteItemModel, options: ItemFormatterOptions) => import("preact").JSX.Element | undefined;
|
|
47
|
+
//# sourceMappingURL=itemFormatters.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PriceProps } from '@dropins/tools/types/elsie/src/components';
|
|
2
|
+
import { NegotiableQuoteCartItem as NegotiableQuoteItemModel, StoreConfigModel } from '../data/models';
|
|
3
|
+
|
|
4
|
+
export interface PriceCalculatorOptions {
|
|
5
|
+
dictionary: Record<string, string>;
|
|
6
|
+
quoteDisplaySettings?: StoreConfigModel['quoteDisplaySettings'];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get price props for an item
|
|
10
|
+
*/
|
|
11
|
+
export declare const getPriceProps: (item: NegotiableQuoteItemModel, options: PriceCalculatorOptions) => {
|
|
12
|
+
amount: number;
|
|
13
|
+
currency: string;
|
|
14
|
+
style: {
|
|
15
|
+
font: string;
|
|
16
|
+
};
|
|
17
|
+
'data-testid': string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Get savings amount props for an item
|
|
21
|
+
*/
|
|
22
|
+
export declare const getSavingsAmount: (item: NegotiableQuoteItemModel) => {
|
|
23
|
+
amount: number | undefined;
|
|
24
|
+
currency: string | undefined;
|
|
25
|
+
style: {
|
|
26
|
+
font: string;
|
|
27
|
+
};
|
|
28
|
+
'data-testid': string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Calculate total price props and discount props for an item
|
|
32
|
+
*/
|
|
33
|
+
export declare const getTotalPriceProps: (item: NegotiableQuoteItemModel, options: PriceCalculatorOptions) => {
|
|
34
|
+
totalProps: PriceProps & {
|
|
35
|
+
'data-testid'?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
discountProps: (PriceProps & {
|
|
38
|
+
'data-testid'?: string | undefined;
|
|
39
|
+
}) | null;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=priceCalculators.d.ts.map
|
package/lib/state.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { StoreConfigModel } from '../data/models';
|
|
1
2
|
import { State } from '../types/state.types';
|
|
2
3
|
|
|
3
4
|
export declare const DEFAULT_PERMISSIONS: {
|
|
4
5
|
requestQuote: boolean;
|
|
5
6
|
editQuote: boolean;
|
|
6
7
|
deleteQuote: boolean;
|
|
8
|
+
checkoutQuote: boolean;
|
|
9
|
+
viewQuoteTemplates: boolean;
|
|
10
|
+
manageQuoteTemplates: boolean;
|
|
11
|
+
generateQuoteFromTemplate: boolean;
|
|
7
12
|
};
|
|
13
|
+
export declare const DEFAULT_CONFIG: StoreConfigModel;
|
|
8
14
|
export declare const state: State;
|
|
9
15
|
//# sourceMappingURL=state.d.ts.map
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@dropins/storefront-quote-management", "version": "0.0
|
|
1
|
+
{"name": "@dropins/storefront-quote-management", "version": "1.0.0-beta1", "@dropins/tools": "1.6.0-beta3", "license": "SEE LICENSE IN LICENSE.md"}
|