@dropins/storefront-checkout 0.1.0-alpha5 → 0.1.0-alpha50
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/errors/errors.d.ts +30 -0
- package/api/errors/index.d.ts +18 -0
- package/api/estimateShippingMethods/estimateShippingMethods.d.ts +13 -0
- package/api/estimateShippingMethods/fixtures.d.ts +8 -0
- package/api/estimateShippingMethods/graphql/estimateShippingMethods.graphql.d.ts +18 -0
- package/api/estimateShippingMethods/graphql/index.d.ts +18 -0
- package/api/estimateShippingMethods/index.d.ts +18 -0
- package/api/fetch-graphql/fetch-graphql.d.ts +25 -0
- package/api/fetch-graphql/index.d.ts +18 -0
- package/api/getCart/fixtures.d.ts +12 -0
- package/api/getCart/getCart.d.ts +18 -0
- package/api/getCart/graphql/getCart.graphql.d.ts +20 -0
- package/api/getCart/graphql/index.d.ts +18 -0
- package/api/getCart/index.d.ts +18 -0
- package/api/getCheckoutData/getCheckoutData.d.ts +18 -0
- package/api/getCheckoutData/index.d.ts +18 -0
- package/api/getCustomer/fixtures.d.ts +5 -0
- package/api/getCustomer/getCustomer.d.ts +4 -0
- package/api/getCustomer/graphql/getCustomer.graphql.d.ts +18 -0
- package/api/getCustomer/graphql/index.d.ts +18 -0
- package/api/getCustomer/index.d.ts +18 -0
- package/api/getStoreConfig/getStoreConfig.d.ts +6 -0
- package/api/getStoreConfig/graphql/getStoreConfig.graphql.d.ts +18 -0
- package/api/getStoreConfig/index.d.ts +18 -0
- package/api/index.d.ts +36 -0
- package/api/initialize/index.d.ts +18 -0
- package/api/initialize/initialize.d.ts +15 -0
- package/api/initialize/listeners.d.ts +20 -0
- package/api/initializeCheckout/index.d.ts +18 -0
- package/api/initializeCheckout/initializeCheckout.d.ts +4 -0
- package/api/isEmailAvailable/graphql/isEmailAvailable.graphql.d.ts +18 -0
- package/api/isEmailAvailable/index.d.ts +18 -0
- package/api/isEmailAvailable/isEmailAvailable.d.ts +4 -0
- package/api/placeOrder/fixtures.d.ts +6 -0
- package/api/placeOrder/graphql/index.d.ts +18 -0
- package/api/placeOrder/graphql/placeOrder.graphql.d.ts +18 -0
- package/api/placeOrder/index.d.ts +18 -0
- package/api/placeOrder/placeOrder.d.ts +18 -0
- package/api/redirect/index.d.ts +18 -0
- package/api/redirect/redirect.d.ts +18 -0
- package/api/resetCheckout/index.d.ts +18 -0
- package/api/resetCheckout/resetCheckout.d.ts +18 -0
- package/api/resetCustomer/index.d.ts +18 -0
- package/api/resetCustomer/resetCustomer.d.ts +18 -0
- package/api/setBillingAddress/graphql/setBillingAddress.graphql.d.ts +18 -0
- package/api/setBillingAddress/index.d.ts +18 -0
- package/api/setBillingAddress/setBillingAddress.d.ts +4 -0
- package/api/setGuestEmailOnCart/graphql/setGuestEmailOnCart.graphql.d.ts +18 -0
- package/api/setGuestEmailOnCart/index.d.ts +18 -0
- package/api/setGuestEmailOnCart/setGuestEmailOnCart.d.ts +18 -0
- package/api/setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts +18 -0
- package/api/setPaymentMethod/index.d.ts +18 -0
- package/api/setPaymentMethod/setPaymentMethod.d.ts +18 -0
- package/api/setShippingAddress/graphql/setShippingAddress.graphql.d.ts +18 -0
- package/api/setShippingAddress/index.d.ts +18 -0
- package/api/setShippingAddress/setShippingAddress.d.ts +4 -0
- package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +18 -0
- package/api/setShippingMethods/index.d.ts +18 -0
- package/api/setShippingMethods/setShippingMethods.d.ts +18 -0
- package/api/utils/dispatchApiCall.d.ts +38 -0
- package/api/utils/enqueueRequest.d.ts +18 -0
- package/api/utils/filterControlledErrors.d.ts +18 -0
- package/api.d.ts +1 -0
- package/api.js +37 -2
- package/chunks/Heading.js +1 -0
- package/chunks/OrderError.js +1 -0
- package/chunks/classes.js +1 -0
- package/chunks/fetch-graphql.js +10 -0
- package/chunks/getCart.graphql.js +122 -0
- package/chunks/getCustomer.js +34 -0
- package/chunks/placeOrder2.js +131 -0
- package/chunks/resetCustomer.js +1 -0
- package/chunks/setBillingAddress.js +11 -0
- package/chunks/setGuestEmailOnCart.js +17 -0
- package/chunks/setPaymentMethod.js +13 -0
- package/chunks/setShippingMethods.js +16 -0
- package/chunks/store-config.js +1 -0
- package/chunks/withConditionalRendering.js +1 -0
- package/components/BillToShippingAddress/BillToShippingAddress.d.ts +8 -0
- package/components/BillToShippingAddress/BillToShippingAddressSkeleton.d.ts +4 -0
- package/components/BillToShippingAddress/index.d.ts +20 -0
- package/components/EstimateShipping/EstimateShipping.d.ts +12 -0
- package/components/EstimateShipping/EstimateShippingSkeleton.d.ts +4 -0
- package/components/EstimateShipping/index.d.ts +20 -0
- package/components/Heading/Heading.d.ts +8 -0
- package/components/Heading/index.d.ts +19 -0
- package/components/LoginForm/Email.d.ts +13 -0
- package/components/LoginForm/LoginForm.d.ts +20 -0
- package/components/LoginForm/LoginFormSkeleton.d.ts +4 -0
- package/components/LoginForm/SignIn.d.ts +8 -0
- package/components/LoginForm/SignOut.d.ts +8 -0
- package/components/LoginForm/index.d.ts +22 -0
- package/components/OutOfStock/OutOfStock.d.ts +11 -0
- package/components/OutOfStock/index.d.ts +19 -0
- package/components/OverlayLoader/OverlayLoader.d.ts +6 -0
- package/components/OverlayLoader/index.d.ts +18 -0
- package/components/PaymentMethods/PaymentMethods.d.ts +14 -0
- package/components/PaymentMethods/PaymentMethodsSkeleton.d.ts +4 -0
- package/components/PaymentMethods/index.d.ts +20 -0
- package/components/PlaceOrder/PlaceOrder.d.ts +9 -0
- package/components/PlaceOrder/PlaceOrderSkeleton.d.ts +4 -0
- package/components/PlaceOrder/index.d.ts +19 -0
- package/components/ServerError/ServerError.d.ts +10 -0
- package/components/ServerError/index.d.ts +19 -0
- package/components/ShippingMethods/ShippingMethods.d.ts +12 -0
- package/components/ShippingMethods/ShippingMethodsSkeleton.d.ts +4 -0
- package/components/ShippingMethods/index.d.ts +20 -0
- package/components/index.d.ts +27 -0
- package/containers/BillToShippingAddress/BillToShippingAddress.d.ts +24 -0
- package/containers/BillToShippingAddress/index.d.ts +19 -0
- package/containers/BillToShippingAddress.d.ts +3 -0
- package/containers/BillToShippingAddress.js +1 -1
- package/containers/ErrorBanner/ErrorBanner.d.ts +5 -0
- package/containers/ErrorBanner/index.d.ts +19 -0
- package/containers/ErrorBanner.d.ts +3 -0
- package/containers/ErrorBanner.js +1 -0
- package/containers/EstimateShipping/EstimateShipping.d.ts +4 -0
- package/containers/EstimateShipping/index.d.ts +19 -0
- package/containers/EstimateShipping.d.ts +3 -0
- package/containers/EstimateShipping.js +1 -0
- package/containers/LoginForm/LoginForm.d.ts +11 -0
- package/containers/LoginForm/index.d.ts +19 -0
- package/containers/LoginForm.d.ts +3 -0
- package/containers/LoginForm.js +1 -1
- package/containers/MergedCartBanner/MergedCartBanner.d.ts +5 -0
- package/containers/MergedCartBanner/index.d.ts +19 -0
- package/containers/MergedCartBanner.d.ts +3 -0
- package/containers/MergedCartBanner.js +1 -0
- package/containers/OutOfStock/OutOfStock.d.ts +13 -0
- package/containers/OutOfStock/index.d.ts +19 -0
- package/containers/OutOfStock.d.ts +3 -0
- package/containers/OutOfStock.js +1 -0
- package/containers/PaymentMethods/PaymentMethods.d.ts +24 -0
- package/containers/PaymentMethods/defaultHandlers.d.ts +4 -0
- package/containers/PaymentMethods/index.d.ts +19 -0
- package/containers/PaymentMethods.d.ts +3 -0
- package/containers/PaymentMethods.js +1 -1
- package/containers/PlaceOrder/PlaceOrder.d.ts +14 -0
- package/containers/PlaceOrder/index.d.ts +19 -0
- package/containers/PlaceOrder.d.ts +3 -0
- package/containers/PlaceOrder.js +1 -1
- package/containers/ServerError/ServerError.d.ts +8 -0
- package/containers/ServerError/index.d.ts +19 -0
- package/containers/ServerError.d.ts +3 -0
- package/containers/ServerError.js +1 -0
- package/containers/ShippingMethods/ShippingMethods.d.ts +18 -0
- package/containers/ShippingMethods/hooks/useShippingEstimateEventEmitter.d.ts +19 -0
- package/containers/ShippingMethods/index.d.ts +19 -0
- package/containers/ShippingMethods.d.ts +3 -0
- package/containers/ShippingMethods.js +1 -1
- package/containers/index.d.ts +27 -0
- package/data/models/acdl.d.ts +115 -0
- package/data/models/address.d.ts +17 -0
- package/data/models/api.d.ts +29 -0
- package/data/models/cart.d.ts +18 -0
- package/data/models/country.d.ts +21 -0
- package/data/models/custom-attribute.d.ts +21 -0
- package/data/models/customer.d.ts +14 -0
- package/data/models/email-availability.d.ts +18 -0
- package/data/models/index.d.ts +32 -0
- package/data/models/order.d.ts +81 -0
- package/data/models/payment-method.d.ts +21 -0
- package/data/models/price.d.ts +21 -0
- package/data/models/region.d.ts +22 -0
- package/data/models/shipping-estimate.d.ts +17 -0
- package/data/models/shipping-method.d.ts +19 -0
- package/data/models/store-config.d.ts +30 -0
- package/data/transforms/index.d.ts +26 -0
- package/data/transforms/transform-acdl.d.ts +6 -0
- package/data/transforms/transform-address.d.ts +91 -0
- package/data/transforms/transform-cart.d.ts +7 -0
- package/data/transforms/transform-customer.d.ts +14 -0
- package/data/transforms/transform-email-availability.d.ts +6 -0
- package/data/transforms/transform-order.d.ts +7 -0
- package/data/transforms/transform-payment-methods.d.ts +9 -0
- package/data/transforms/transform-shipping-estimate.d.ts +5 -0
- package/data/transforms/transform-shipping-methods.d.ts +14 -0
- package/data/transforms/transform-store-config.d.ts +6 -0
- package/hocs/index.d.ts +18 -0
- package/hocs/withConditionalRendering.d.ts +13 -0
- package/hooks/index.d.ts +20 -0
- package/hooks/useBreakpoint/index.d.ts +18 -0
- package/hooks/useBreakpoint/useBreakpoint.d.ts +18 -0
- package/hooks/useLockScroll/index.d.ts +18 -0
- package/hooks/useLockScroll/useLockScroll.d.ts +21 -0
- package/hooks/useStableList/index.d.ts +2 -0
- package/hooks/useStableList/useStableList.d.ts +2 -0
- package/i18n/en_US.json.d.ts +79 -0
- package/lib/acdl.d.ts +18 -0
- package/lib/backup-data.d.ts +20 -0
- package/lib/fetch-error.d.ts +23 -0
- package/lib/index.d.ts +20 -0
- package/lib/network-error.d.ts +22 -0
- package/lib/redirect.d.ts +18 -0
- package/lib/state.d.ts +23 -0
- package/lib/validation.d.ts +5 -0
- package/msw/browser.d.ts +18 -0
- package/msw/fixtures/fragments/available-shipping-methods.d.ts +23 -0
- package/msw/fixtures/fragments/billing-address.d.ts +52 -0
- package/msw/fixtures/fragments/cart.d.ts +141 -0
- package/msw/fixtures/fragments/index.d.ts +21 -0
- package/msw/fixtures/fragments/shipping-address.d.ts +58 -0
- package/msw/fixtures/index.d.ts +20 -0
- package/msw/fixtures/mutations/estimate-shipping-methods.d.ts +4 -0
- package/msw/fixtures/mutations/index.d.ts +24 -0
- package/msw/fixtures/mutations/place-order.d.ts +4 -0
- package/msw/fixtures/mutations/set-billing-address.d.ts +5 -0
- package/msw/fixtures/mutations/set-guest-email.d.ts +4 -0
- package/msw/fixtures/mutations/set-payment-method.d.ts +4 -0
- package/msw/fixtures/mutations/set-shipping-address.d.ts +4 -0
- package/msw/fixtures/mutations/set-shipping-methods.d.ts +4 -0
- package/msw/fixtures/queries/get-cart.d.ts +4 -0
- package/msw/fixtures/queries/get-customer-cart-stock-status.d.ts +4 -0
- package/msw/fixtures/queries/get-customer.d.ts +5 -0
- package/msw/fixtures/queries/get-stock-status.d.ts +4 -0
- package/msw/fixtures/queries/get-store-config.d.ts +4 -0
- package/msw/fixtures/queries/index.d.ts +23 -0
- package/msw/fixtures/queries/is-email-available.d.ts +4 -0
- package/msw/handlers.d.ts +4 -0
- package/msw/server.d.ts +18 -0
- package/package.json +1 -1
- package/render/Provider.d.ts +8 -0
- package/render/index.d.ts +18 -0
- package/render/render.d.ts +6 -0
- package/render.d.ts +1 -0
- package/render.js +4 -1
- package/signals/CartSignal.d.ts +7 -0
- package/signals/CustomerSignal.d.ts +7 -0
- package/signals/EstimateShippingMethodsSignal.d.ts +7 -0
- package/signals/IsBillToShippingSignal.d.ts +18 -0
- package/signals/SelectedShippingMethodSignal.d.ts +4 -0
- package/signals/ServerErrorSignal.d.ts +18 -0
- package/signals/StoreConfigSignal.d.ts +7 -0
- package/signals/index.d.ts +24 -0
- package/tests/constants.d.ts +19 -0
- package/tests/integration/utils/index.d.ts +19 -0
- package/tests/integration/utils/setup.d.ts +8 -0
- package/tests/integration/utils/user-actions.d.ts +18 -0
- package/tests/mocks/svg.d.ts +20 -0
- package/tests/utils/expectError.d.ts +25 -0
- package/tests/utils/index.d.ts +19 -0
- package/tests/utils/mockEvents.d.ts +21 -0
- package/utils/getDisplayName/getDisplayName.d.ts +4 -0
- package/utils/getDisplayName/index.d.ts +18 -0
- package/utils/index.d.ts +21 -0
- package/utils/isEmpty/index.d.ts +18 -0
- package/utils/isEmpty/isEmpty.d.ts +18 -0
- package/utils/isNullish/index.d.ts +18 -0
- package/utils/isNullish/isNullish.d.ts +18 -0
- package/utils/isUnexpectedError/index.d.ts +18 -0
- package/utils/isUnexpectedError/isUnexpectedError.d.ts +18 -0
- package/utils/refetchEstimatedShippingMethods/index.d.ts +18 -0
- package/utils/refetchEstimatedShippingMethods/refetchEstimatedShippingMethods.d.ts +5 -0
- package/utils/shippingMethods/index.d.ts +18 -0
- package/utils/shippingMethods/isEqual.d.ts +4 -0
- package/212.js +0 -2
- package/212.js.LICENSE.txt +0 -1
- package/261.js +0 -2
- package/261.js.LICENSE.txt +0 -1
- package/325.js +0 -2
- package/325.js.LICENSE.txt +0 -1
- package/350.js +0 -2
- package/350.js.LICENSE.txt +0 -1
- package/41.js +0 -2
- package/41.js.LICENSE.txt +0 -1
- package/486.js +0 -2
- package/486.js.LICENSE.txt +0 -1
- package/494.js +0 -2
- package/494.js.LICENSE.txt +0 -1
- package/516.js +0 -1
- package/548.js +0 -1
- package/549.js +0 -2
- package/549.js.LICENSE.txt +0 -1
- package/565.js +0 -2
- package/565.js.LICENSE.txt +0 -1
- package/655.js +0 -1
- package/693.js +0 -1
- package/757.js +0 -1
- package/805.js +0 -2
- package/805.js.LICENSE.txt +0 -1
- package/942.js +0 -1
- package/api.js.LICENSE.txt +0 -1
- package/containers/AddressForm.js +0 -1
- package/containers/BillingForm.js +0 -1
- package/containers/Checkout.js +0 -2
- package/containers/Checkout.js.LICENSE.txt +0 -1
- package/containers/OrderSummary.js +0 -1
- package/containers/ShippingForm.js +0 -1
- package/runtime.js +0 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
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.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
/**
|
|
18
|
+
* This module contains the schema type definitions to build the ShoppingCart
|
|
19
|
+
* and Order contexts, which are required to trigger the "place-order" event.
|
|
20
|
+
*
|
|
21
|
+
* The following schema types have been extracted from the Adobe Commerce
|
|
22
|
+
* Events SDK package.
|
|
23
|
+
*
|
|
24
|
+
* ShoppingCart schema type @see https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/types/schemas/shoppingCart.ts
|
|
25
|
+
* Order schema type @see https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/types/schemas/order.ts
|
|
26
|
+
*/
|
|
27
|
+
type ShoppingCartItem = {
|
|
28
|
+
canApplyMsrp: boolean;
|
|
29
|
+
formattedPrice: string;
|
|
30
|
+
id: string;
|
|
31
|
+
prices: {
|
|
32
|
+
price: Price;
|
|
33
|
+
};
|
|
34
|
+
product: Product;
|
|
35
|
+
configurableOptions?: Array<ConfigurableOption>;
|
|
36
|
+
quantity: number;
|
|
37
|
+
};
|
|
38
|
+
type Price = {
|
|
39
|
+
value: number;
|
|
40
|
+
currency?: string;
|
|
41
|
+
regularPrice?: number;
|
|
42
|
+
};
|
|
43
|
+
type Product = {
|
|
44
|
+
productId: number;
|
|
45
|
+
name: string;
|
|
46
|
+
sku: string;
|
|
47
|
+
topLevelSku?: string | null;
|
|
48
|
+
specialToDate?: string | null;
|
|
49
|
+
specialFromDate?: string | null;
|
|
50
|
+
newToDate?: string | null;
|
|
51
|
+
newFromDate?: string | null;
|
|
52
|
+
createdAt?: string | null;
|
|
53
|
+
updatedAt?: string | null;
|
|
54
|
+
manufacturer?: string | null;
|
|
55
|
+
countryOfManufacture?: string | null;
|
|
56
|
+
categories?: string[] | null;
|
|
57
|
+
productType?: string | null;
|
|
58
|
+
pricing?: {
|
|
59
|
+
regularPrice: number;
|
|
60
|
+
minimalPrice?: number;
|
|
61
|
+
maximalPrice?: number;
|
|
62
|
+
specialPrice?: number;
|
|
63
|
+
tierPricing?: {
|
|
64
|
+
customerGroupId?: number | null;
|
|
65
|
+
qty: number;
|
|
66
|
+
value: number;
|
|
67
|
+
}[];
|
|
68
|
+
currencyCode: string | null;
|
|
69
|
+
};
|
|
70
|
+
canonicalUrl?: string | null;
|
|
71
|
+
mainImageUrl?: string | null;
|
|
72
|
+
};
|
|
73
|
+
type ConfigurableOption = {
|
|
74
|
+
id?: number;
|
|
75
|
+
optionLabel: string;
|
|
76
|
+
valueId?: number;
|
|
77
|
+
valueLabel: string;
|
|
78
|
+
};
|
|
79
|
+
type Payment = {
|
|
80
|
+
paymentMethodCode: string;
|
|
81
|
+
paymentMethodName: string;
|
|
82
|
+
total: number;
|
|
83
|
+
};
|
|
84
|
+
type Shipping = {
|
|
85
|
+
shippingMethod?: string;
|
|
86
|
+
shippingAmount?: number;
|
|
87
|
+
};
|
|
88
|
+
export type ShoppingCartContext = {
|
|
89
|
+
id: string | null;
|
|
90
|
+
items?: Array<ShoppingCartItem>;
|
|
91
|
+
prices?: {
|
|
92
|
+
subtotalExcludingTax?: Price;
|
|
93
|
+
subtotalIncludingTax?: Price;
|
|
94
|
+
};
|
|
95
|
+
totalQuantity: number;
|
|
96
|
+
possibleOnepageCheckout?: boolean;
|
|
97
|
+
giftMessageSelected?: boolean;
|
|
98
|
+
giftWrappingSelected?: boolean;
|
|
99
|
+
source?: string;
|
|
100
|
+
};
|
|
101
|
+
export type OrderContext = {
|
|
102
|
+
appliedCouponCode: string;
|
|
103
|
+
email: string;
|
|
104
|
+
grandTotal: number;
|
|
105
|
+
orderId: string;
|
|
106
|
+
orderType?: 'checkout' | 'instant_purchase';
|
|
107
|
+
otherTax: number;
|
|
108
|
+
payments?: Payment[];
|
|
109
|
+
salesTax: number;
|
|
110
|
+
shipping?: Shipping;
|
|
111
|
+
subtotalExcludingTax: number;
|
|
112
|
+
subtotalIncludingTax: number;
|
|
113
|
+
};
|
|
114
|
+
export {};
|
|
115
|
+
//# sourceMappingURL=acdl.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Region, Country, CustomAttribute } from '.';
|
|
2
|
+
|
|
3
|
+
export interface Address {
|
|
4
|
+
id?: number;
|
|
5
|
+
city: string;
|
|
6
|
+
company?: string;
|
|
7
|
+
country: Country;
|
|
8
|
+
customAttributes: CustomAttribute[];
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
postCode?: string;
|
|
12
|
+
region?: Region;
|
|
13
|
+
street: string[];
|
|
14
|
+
telephone?: string;
|
|
15
|
+
vatId?: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=address.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CustomAttribute } from './custom-attribute';
|
|
2
|
+
|
|
3
|
+
export interface CartAddress {
|
|
4
|
+
city: string;
|
|
5
|
+
company?: string;
|
|
6
|
+
countryCode: string;
|
|
7
|
+
customAttributes: CustomAttribute[];
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
postcode?: string;
|
|
11
|
+
region?: string;
|
|
12
|
+
regionId?: number;
|
|
13
|
+
saveInAddressBook?: boolean;
|
|
14
|
+
street: string[];
|
|
15
|
+
telephone?: string;
|
|
16
|
+
vatId?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ShippingAddressInput {
|
|
19
|
+
address?: CartAddress;
|
|
20
|
+
customerAddressId?: number;
|
|
21
|
+
pickupLocationCode?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface BillingAddressInput {
|
|
24
|
+
address?: CartAddress;
|
|
25
|
+
customerAddressId?: number;
|
|
26
|
+
sameAsShipping?: boolean;
|
|
27
|
+
useForShipping?: boolean;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Address, PaymentMethod, ShippingMethod } from '.';
|
|
2
|
+
|
|
3
|
+
export interface ShippingAddress extends Address {
|
|
4
|
+
availableShippingMethods?: ShippingMethod[];
|
|
5
|
+
selectedShippingMethod?: ShippingMethod;
|
|
6
|
+
sameAsBilling?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface Cart {
|
|
9
|
+
availablePaymentMethods?: PaymentMethod[];
|
|
10
|
+
billingAddress?: Address;
|
|
11
|
+
email?: string;
|
|
12
|
+
id: string;
|
|
13
|
+
isEmpty: boolean;
|
|
14
|
+
isVirtual: boolean;
|
|
15
|
+
selectedPaymentMethod?: PaymentMethod;
|
|
16
|
+
shippingAddresses?: ShippingAddress[];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=cart.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
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.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export type Country = {
|
|
18
|
+
value: string;
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=country.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
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.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export type CustomAttribute = {
|
|
18
|
+
code: string;
|
|
19
|
+
value: string;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=custom-attribute.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Address } from '.';
|
|
2
|
+
|
|
3
|
+
export interface CustomerAddress extends Address {
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export type Customer = {
|
|
7
|
+
firstName: string;
|
|
8
|
+
lastName: string;
|
|
9
|
+
email: string;
|
|
10
|
+
addresses: CustomerAddress[];
|
|
11
|
+
defaultBillingAddress?: CustomerAddress;
|
|
12
|
+
defaultShippingAddress?: CustomerAddress;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=customer.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
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.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export type EmailAvailability = boolean;
|
|
18
|
+
//# sourceMappingURL=email-availability.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
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.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export * from './acdl';
|
|
18
|
+
export * from './address';
|
|
19
|
+
export * from './api';
|
|
20
|
+
export * from './cart';
|
|
21
|
+
export * from './country';
|
|
22
|
+
export * from './custom-attribute';
|
|
23
|
+
export * from './customer';
|
|
24
|
+
export * from './email-availability';
|
|
25
|
+
export * from './order';
|
|
26
|
+
export * from './payment-method';
|
|
27
|
+
export * from './price';
|
|
28
|
+
export * from './region';
|
|
29
|
+
export * from './shipping-estimate';
|
|
30
|
+
export * from './shipping-method';
|
|
31
|
+
export * from './store-config';
|
|
32
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Price } from './price';
|
|
2
|
+
|
|
3
|
+
type OrderPayment = {
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
type OrderCoupon = {
|
|
8
|
+
code: string;
|
|
9
|
+
};
|
|
10
|
+
export type OrderItemProduct = {
|
|
11
|
+
canonicalUrl?: string;
|
|
12
|
+
id: string;
|
|
13
|
+
image?: string;
|
|
14
|
+
imageAlt?: string;
|
|
15
|
+
name: string;
|
|
16
|
+
productType: string;
|
|
17
|
+
sku: string;
|
|
18
|
+
};
|
|
19
|
+
export type OrderItem = {
|
|
20
|
+
type: string;
|
|
21
|
+
discounted: boolean;
|
|
22
|
+
id: string;
|
|
23
|
+
regularPrice: Price;
|
|
24
|
+
price: Price;
|
|
25
|
+
product: OrderItemProduct;
|
|
26
|
+
selectedOptions?: Array<{
|
|
27
|
+
label: string;
|
|
28
|
+
value: any;
|
|
29
|
+
}>;
|
|
30
|
+
totalQuantity: number;
|
|
31
|
+
thumbnail: {
|
|
32
|
+
label: string;
|
|
33
|
+
url: string;
|
|
34
|
+
};
|
|
35
|
+
giftCard?: {
|
|
36
|
+
senderName: string;
|
|
37
|
+
senderEmail: string;
|
|
38
|
+
recipientEmail: string;
|
|
39
|
+
recipientName: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type OrderAddress = {
|
|
43
|
+
city: string;
|
|
44
|
+
company: string;
|
|
45
|
+
country: string;
|
|
46
|
+
firstName: string;
|
|
47
|
+
middleName: string;
|
|
48
|
+
lastName: string;
|
|
49
|
+
postCode: string;
|
|
50
|
+
region: string;
|
|
51
|
+
regionId: string;
|
|
52
|
+
street: string[];
|
|
53
|
+
telephone: string;
|
|
54
|
+
customAttributes: {
|
|
55
|
+
code: string;
|
|
56
|
+
value: string;
|
|
57
|
+
}[];
|
|
58
|
+
} | null;
|
|
59
|
+
export type Order = {
|
|
60
|
+
status: string;
|
|
61
|
+
isVirtual: boolean;
|
|
62
|
+
coupons: OrderCoupon[];
|
|
63
|
+
email: string;
|
|
64
|
+
items: OrderItem[];
|
|
65
|
+
number: string;
|
|
66
|
+
payments: OrderPayment[];
|
|
67
|
+
shipping?: {
|
|
68
|
+
code: string;
|
|
69
|
+
amount: number;
|
|
70
|
+
currency: string;
|
|
71
|
+
};
|
|
72
|
+
grandTotal: Price;
|
|
73
|
+
subtotal: Price;
|
|
74
|
+
token: string;
|
|
75
|
+
totalQuantity: number;
|
|
76
|
+
totalTax: Price;
|
|
77
|
+
shippingAddress: OrderAddress;
|
|
78
|
+
billingAddress: OrderAddress;
|
|
79
|
+
};
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=order.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
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.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export type PaymentMethod = {
|
|
18
|
+
code: string;
|
|
19
|
+
title: string;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=payment-method.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
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.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export type Price = {
|
|
18
|
+
value: number;
|
|
19
|
+
currency: string;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=price.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
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.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export type Region = {
|
|
18
|
+
code: string;
|
|
19
|
+
id?: number;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=region.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Price } from './price';
|
|
2
|
+
|
|
3
|
+
export interface ShippingEstimatePartialAddress {
|
|
4
|
+
countryCode: string;
|
|
5
|
+
postCode?: string;
|
|
6
|
+
region?: string;
|
|
7
|
+
regionCode?: string;
|
|
8
|
+
regionId?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ShippingEstimateShippingMethod {
|
|
11
|
+
amount: Price;
|
|
12
|
+
carrierCode: string;
|
|
13
|
+
methodCode: string;
|
|
14
|
+
amountExclTax?: Price;
|
|
15
|
+
amountInclTax?: Price;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=shipping-estimate.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Price } from './price';
|
|
2
|
+
|
|
3
|
+
type Code = string;
|
|
4
|
+
type Title = string;
|
|
5
|
+
type Carrier = {
|
|
6
|
+
code: Code;
|
|
7
|
+
title: Title;
|
|
8
|
+
};
|
|
9
|
+
export type ShippingMethod = {
|
|
10
|
+
amount: Price;
|
|
11
|
+
carrier: Carrier;
|
|
12
|
+
code: Code;
|
|
13
|
+
title: Title;
|
|
14
|
+
value: string;
|
|
15
|
+
amountExclTax?: Price;
|
|
16
|
+
amountInclTax?: Price;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=shipping-method.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
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.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export declare enum TaxDisplay {
|
|
18
|
+
EXCLUDING_TAX = "EXCLUDING_TAX",
|
|
19
|
+
INCLUDING_EXCLUDING_TAX = "INCLUDING_AND_EXCLUDING_TAX",
|
|
20
|
+
INCLUDING_TAX = "INCLUDING_TAX"
|
|
21
|
+
}
|
|
22
|
+
export interface StoreConfig {
|
|
23
|
+
defaultCountry: string;
|
|
24
|
+
isGuestCheckoutEnabled: boolean;
|
|
25
|
+
isOnePageCheckoutEnabled: boolean;
|
|
26
|
+
shoppingCartDisplaySetting: {
|
|
27
|
+
shipping: TaxDisplay;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=store-config.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* ADOBE CONFIDENTIAL
|
|
3
|
+
* __________________
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Adobe
|
|
6
|
+
* All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* NOTICE: All information contained herein is, and remains
|
|
9
|
+
* the property of Adobe and its suppliers, if any. The intellectual
|
|
10
|
+
* and technical concepts contained herein are proprietary to Adobe
|
|
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.
|
|
16
|
+
*******************************************************************/
|
|
17
|
+
export * from './transform-acdl';
|
|
18
|
+
export * from './transform-address';
|
|
19
|
+
export * from './transform-cart';
|
|
20
|
+
export * from './transform-customer';
|
|
21
|
+
export * from './transform-email-availability';
|
|
22
|
+
export * from './transform-order';
|
|
23
|
+
export * from './transform-shipping-estimate';
|
|
24
|
+
export * from './transform-shipping-methods';
|
|
25
|
+
export * from './transform-store-config';
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OrderContext, ShoppingCartContext } from '../models/acdl';
|
|
2
|
+
import { Order } from '../models/order';
|
|
3
|
+
|
|
4
|
+
export declare const transformShoppingCartContext: (order: Order) => ShoppingCartContext;
|
|
5
|
+
export declare const transformOrderContext: (order: Order) => OrderContext;
|
|
6
|
+
//# sourceMappingURL=transform-acdl.d.ts.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { CartAddressInput, GetCartQuery } from '../../__generated__/types';
|
|
2
|
+
import { Address as AddressModel, CustomAttribute as CustomAttributeModel, ShippingAddress as ShippingAddressModel, CartAddress as CartAddressModel } from '../models';
|
|
3
|
+
|
|
4
|
+
type ShippingAddresses = NonNullable<GetCartQuery['cart']>['shipping_addresses'];
|
|
5
|
+
type ShippingAddress = ShippingAddresses[0];
|
|
6
|
+
type NonNullableShippingAddress = NonNullable<ShippingAddress>;
|
|
7
|
+
type BillingAddress = NonNullable<GetCartQuery['cart']>['billing_address'];
|
|
8
|
+
type NonNullableBillingAddress = NonNullable<BillingAddress>;
|
|
9
|
+
type CustomAttributes = NonNullableShippingAddress['custom_attributes'] | NonNullableBillingAddress['custom_attributes'];
|
|
10
|
+
export declare const transformCustomAttributes: (data: CustomAttributes) => CustomAttributeModel[];
|
|
11
|
+
declare const transformBillingAddress: (data: BillingAddress) => AddressModel | undefined;
|
|
12
|
+
declare const transformShippingAddresses: (data: ({
|
|
13
|
+
__typename?: "ShippingCartAddress" | undefined;
|
|
14
|
+
id?: number | null | undefined;
|
|
15
|
+
firstname: string;
|
|
16
|
+
lastname: string;
|
|
17
|
+
company?: string | null | undefined;
|
|
18
|
+
street: (string | null)[];
|
|
19
|
+
city: string;
|
|
20
|
+
postcode?: string | null | undefined;
|
|
21
|
+
vat_id?: string | null | undefined;
|
|
22
|
+
telephone?: string | null | undefined;
|
|
23
|
+
same_as_billing: boolean;
|
|
24
|
+
region?: {
|
|
25
|
+
__typename?: "CartAddressRegion" | undefined;
|
|
26
|
+
region_id?: number | null | undefined;
|
|
27
|
+
code?: string | null | undefined;
|
|
28
|
+
label?: string | null | undefined;
|
|
29
|
+
} | null | undefined;
|
|
30
|
+
country: {
|
|
31
|
+
__typename?: "CartAddressCountry" | undefined;
|
|
32
|
+
code: string;
|
|
33
|
+
label: string;
|
|
34
|
+
};
|
|
35
|
+
custom_attributes: ({
|
|
36
|
+
__typename?: "AttributeSelectedOptions" | undefined;
|
|
37
|
+
} | {
|
|
38
|
+
__typename?: "AttributeValue" | undefined;
|
|
39
|
+
code: string;
|
|
40
|
+
value: string;
|
|
41
|
+
} | null)[];
|
|
42
|
+
available_shipping_methods?: ({
|
|
43
|
+
__typename?: "AvailableShippingMethod" | undefined;
|
|
44
|
+
available: boolean;
|
|
45
|
+
carrier_code: string;
|
|
46
|
+
carrier_title: string;
|
|
47
|
+
error_message?: string | null | undefined;
|
|
48
|
+
method_code?: string | null | undefined;
|
|
49
|
+
method_title?: string | null | undefined;
|
|
50
|
+
amount: {
|
|
51
|
+
__typename?: "Money" | undefined;
|
|
52
|
+
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
53
|
+
value?: number | null | undefined;
|
|
54
|
+
};
|
|
55
|
+
price_excl_tax: {
|
|
56
|
+
__typename?: "Money" | undefined;
|
|
57
|
+
value?: number | null | undefined;
|
|
58
|
+
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
59
|
+
};
|
|
60
|
+
price_incl_tax: {
|
|
61
|
+
__typename?: "Money" | undefined;
|
|
62
|
+
value?: number | null | undefined;
|
|
63
|
+
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
64
|
+
};
|
|
65
|
+
} | null)[] | null | undefined;
|
|
66
|
+
selected_shipping_method?: {
|
|
67
|
+
__typename?: "SelectedShippingMethod" | undefined;
|
|
68
|
+
carrier_code: string;
|
|
69
|
+
carrier_title: string;
|
|
70
|
+
method_code: string;
|
|
71
|
+
method_title: string;
|
|
72
|
+
amount: {
|
|
73
|
+
__typename?: "Money" | undefined;
|
|
74
|
+
value?: number | null | undefined;
|
|
75
|
+
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
76
|
+
};
|
|
77
|
+
price_excl_tax: {
|
|
78
|
+
__typename?: "Money" | undefined;
|
|
79
|
+
value?: number | null | undefined;
|
|
80
|
+
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
81
|
+
};
|
|
82
|
+
price_incl_tax: {
|
|
83
|
+
__typename?: "Money" | undefined;
|
|
84
|
+
value?: number | null | undefined;
|
|
85
|
+
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
86
|
+
};
|
|
87
|
+
} | null | undefined;
|
|
88
|
+
} | null)[]) => ShippingAddressModel[] | undefined;
|
|
89
|
+
declare const transformCartAddressModelToInput: (address: CartAddressModel) => CartAddressInput;
|
|
90
|
+
export { BillingAddress, ShippingAddress, transformCartAddressModelToInput, transformBillingAddress, transformShippingAddresses, };
|
|
91
|
+
//# sourceMappingURL=transform-address.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetCartQuery } from '../../__generated__/types';
|
|
2
|
+
import { Cart as CartModel } from '../models';
|
|
3
|
+
|
|
4
|
+
type Cart = NonNullable<GetCartQuery['cart']>;
|
|
5
|
+
declare const transformCart: (cart: Cart) => CartModel;
|
|
6
|
+
export { Cart, transformCart };
|
|
7
|
+
//# sourceMappingURL=transform-cart.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GetCustomerQuery } from '../../__generated__/types';
|
|
2
|
+
import { Customer as CustomerModel, CustomAttribute as CustomAttributeModel } from '../models';
|
|
3
|
+
|
|
4
|
+
type Customer = GetCustomerQuery['customer'];
|
|
5
|
+
export declare const transformCustomAttributesV2: (data: ({
|
|
6
|
+
__typename?: "AttributeSelectedOptions" | undefined;
|
|
7
|
+
} | {
|
|
8
|
+
__typename?: "AttributeValue" | undefined;
|
|
9
|
+
code: string;
|
|
10
|
+
value: string;
|
|
11
|
+
} | null)[]) => CustomAttributeModel[];
|
|
12
|
+
declare const transformCustomer: (data: Customer) => CustomerModel | undefined;
|
|
13
|
+
export { transformCustomer };
|
|
14
|
+
//# sourceMappingURL=transform-customer.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IsEmailAvailableQuery } from '../../__generated__/types';
|
|
2
|
+
import { EmailAvailability } from '../models';
|
|
3
|
+
|
|
4
|
+
declare const transformEmailAvailability: (data: IsEmailAvailableQuery['isEmailAvailable']) => EmailAvailability;
|
|
5
|
+
export { transformEmailAvailability };
|
|
6
|
+
//# sourceMappingURL=transform-email-availability.d.ts.map
|