@dropins/storefront-checkout 0.1.0-alpha6 → 0.1.0-alpha60
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/authenticateCustomer/authenticateCustomer.d.ts +18 -0
- package/api/authenticateCustomer/index.d.ts +18 -0
- 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/fragments.d.ts +21 -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 +19 -0
- package/api/getCart/graphql/index.d.ts +18 -0
- package/api/getCart/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/graphql/CartAddressFragment.graphql.d.ts +19 -0
- package/api/graphql/CheckoutDataFragment.graphql.d.ts +18 -0
- package/api/graphql/CustomerFragment.graphql.d.ts +18 -0
- package/api/graphql/OrderAddressFragment.graphql.d.ts +18 -0
- package/api/graphql/OrderFragment.graphql.d.ts +19 -0
- package/api/graphql/OrderItemFragment.graphql.d.ts +6 -0
- package/api/index.d.ts +35 -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 +20 -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/resetCheckout/index.d.ts +2 -0
- package/api/resetCheckout/resetCheckout.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 +4 -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/synchronizeCheckout/index.d.ts +18 -0
- package/api/synchronizeCheckout/synchronizeCheckout.d.ts +4 -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 +39 -2
- package/chunks/OrderError.js +3 -0
- package/chunks/ServerErrorSignal.js +3 -0
- package/chunks/classes.js +3 -0
- package/chunks/fetch-graphql.js +12 -0
- package/chunks/isEmailAvailable.js +9 -0
- package/chunks/placeOrder2.js +17 -0
- package/chunks/setBillingAddress.js +13 -0
- package/chunks/setGuestEmailOnCart.js +13 -0
- package/chunks/setPaymentMethod.js +18 -0
- package/chunks/setShippingMethods.js +18 -0
- package/chunks/store-config.js +3 -0
- package/chunks/synchronizeCheckout.js +27 -0
- package/chunks/withConditionalRendering.js +3 -0
- package/components/BillToShippingAddress/BillToShippingAddress.d.ts +9 -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/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/OrderConfirmationHeader/OrderConfirmationHeader.d.ts +10 -0
- package/components/OrderConfirmationHeader/OrderConfirmationHeaderSkeleton.d.ts +4 -0
- package/components/OrderConfirmationHeader/index.d.ts +3 -0
- package/components/OutOfStock/OutOfStock.d.ts +11 -0
- package/components/OutOfStock/index.d.ts +19 -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 +26 -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 +3 -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 +3 -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 +3 -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 +3 -1
- package/containers/MergedCartBanner/MergedCartBanner.d.ts +7 -0
- package/containers/MergedCartBanner/index.d.ts +19 -0
- package/containers/MergedCartBanner.d.ts +3 -0
- package/containers/MergedCartBanner.js +3 -0
- package/containers/OrderConfirmationHeader/OrderConfirmationHeader.d.ts +18 -0
- package/containers/OrderConfirmationHeader/index.d.ts +3 -0
- package/containers/OrderConfirmationHeader.d.ts +3 -0
- package/containers/OrderConfirmationHeader.js +3 -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 +3 -0
- package/containers/PaymentMethods/PaymentMethods.d.ts +27 -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 +3 -1
- package/containers/PlaceOrder/PlaceOrder.d.ts +15 -0
- package/containers/PlaceOrder/index.d.ts +19 -0
- package/containers/PlaceOrder.d.ts +3 -0
- package/containers/PlaceOrder.js +3 -2
- 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 +3 -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 +3 -1
- package/containers/index.d.ts +28 -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 +19 -0
- package/data/models/country.d.ts +21 -0
- package/data/models/custom-attribute.d.ts +21 -0
- package/data/models/customer.d.ts +22 -0
- package/data/models/email-availability.d.ts +18 -0
- package/data/models/index.d.ts +32 -0
- package/data/models/order.d.ts +150 -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 +27 -0
- package/data/transforms/transform-acdl.d.ts +5 -0
- package/data/transforms/transform-address.d.ts +91 -0
- package/data/transforms/transform-cart.d.ts +7 -0
- package/data/transforms/transform-customer-address-input.d.ts +5 -0
- package/data/transforms/transform-customer.d.ts +7 -0
- package/data/transforms/transform-email-availability.d.ts +6 -0
- package/data/transforms/transform-order.d.ts +20 -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/fragments.d.ts +1 -0
- package/fragments.js +372 -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 +88 -0
- package/lib/acdl.d.ts +18 -0
- package/lib/fetch-error.d.ts +23 -0
- package/lib/index.d.ts +22 -0
- package/lib/network-error.d.ts +22 -0
- package/lib/state.d.ts +24 -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 +9 -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/SelectedPaymentMethodSignal.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 +25 -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/convertCase/convertCase.d.ts +4 -0
- package/utils/convertCase/index.d.ts +18 -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/shippingMethods/index.d.ts +18 -0
- package/utils/shippingMethods/isEqual.d.ts +4 -0
- package/193.js +0 -1
- 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/357.js +0 -1
- package/405.js +0 -1
- package/41.js +0 -2
- package/41.js.LICENSE.txt +0 -1
- package/494.js +0 -2
- package/494.js.LICENSE.txt +0 -1
- package/516.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/599.js +0 -1
- package/621.js +0 -1
- package/632.js +0 -1
- package/636.js +0 -2
- package/636.js.LICENSE.txt +0 -1
- package/687.js +0 -2
- package/687.js.LICENSE.txt +0 -1
- package/693.js +0 -1
- package/731.js +0 -1
- package/757.js +0 -1
- package/805.js +0 -2
- package/805.js.LICENSE.txt +0 -1
- package/88.js +0 -2
- package/88.js.LICENSE.txt +0 -1
- package/api.js.LICENSE.txt +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/PlaceOrder.js.LICENSE.txt +0 -1
- package/containers/ShippingForm.js +0 -1
- package/runtime.js +0 -1
|
@@ -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,150 @@
|
|
|
1
|
+
import { Price } from './price';
|
|
2
|
+
|
|
3
|
+
export type OrderAddressModel = {
|
|
4
|
+
city: string;
|
|
5
|
+
company: string;
|
|
6
|
+
country: string;
|
|
7
|
+
firstName: string;
|
|
8
|
+
middleName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
postCode: string;
|
|
11
|
+
region: string;
|
|
12
|
+
regionId: string;
|
|
13
|
+
street: string[];
|
|
14
|
+
telephone: string;
|
|
15
|
+
customAttributes: {
|
|
16
|
+
code: string;
|
|
17
|
+
value: string;
|
|
18
|
+
}[];
|
|
19
|
+
} | null;
|
|
20
|
+
export type OrderItemProductModel = {
|
|
21
|
+
stockStatus?: string;
|
|
22
|
+
canonicalUrl?: string;
|
|
23
|
+
id: string;
|
|
24
|
+
image?: string;
|
|
25
|
+
imageAlt?: string;
|
|
26
|
+
name: string;
|
|
27
|
+
productType: string;
|
|
28
|
+
sku: string;
|
|
29
|
+
thumbnail: {
|
|
30
|
+
url: string;
|
|
31
|
+
label: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export type OrderItemModel = {
|
|
35
|
+
type?: string;
|
|
36
|
+
discounted?: boolean;
|
|
37
|
+
id: string;
|
|
38
|
+
productName?: string;
|
|
39
|
+
regularPrice?: Price;
|
|
40
|
+
price?: Price;
|
|
41
|
+
product?: OrderItemProductModel;
|
|
42
|
+
selectedOptions?: Array<{
|
|
43
|
+
label: string;
|
|
44
|
+
value: any;
|
|
45
|
+
}>;
|
|
46
|
+
totalQuantity?: number;
|
|
47
|
+
thumbnail?: {
|
|
48
|
+
label: string;
|
|
49
|
+
url: string;
|
|
50
|
+
};
|
|
51
|
+
downloadableLinks: {
|
|
52
|
+
count: number;
|
|
53
|
+
result: string;
|
|
54
|
+
} | null;
|
|
55
|
+
itemPrices: {
|
|
56
|
+
priceIncludingTax: Price;
|
|
57
|
+
originalPrice: Price;
|
|
58
|
+
originalPriceIncludingTax: Price;
|
|
59
|
+
price: Price;
|
|
60
|
+
};
|
|
61
|
+
bundleOptions: Record<string, string> | null;
|
|
62
|
+
totalInclTax: Price;
|
|
63
|
+
priceInclTax: Price;
|
|
64
|
+
total: Price;
|
|
65
|
+
configurableOptions: Record<string, string | number | boolean> | undefined;
|
|
66
|
+
giftCard?: {
|
|
67
|
+
senderName: string;
|
|
68
|
+
senderEmail: string;
|
|
69
|
+
recipientEmail: string;
|
|
70
|
+
recipientName: string;
|
|
71
|
+
message: string;
|
|
72
|
+
};
|
|
73
|
+
quantityCanceled: number;
|
|
74
|
+
quantityInvoiced: number;
|
|
75
|
+
quantityOrdered: number;
|
|
76
|
+
quantityRefunded: number;
|
|
77
|
+
quantityReturned: number;
|
|
78
|
+
quantityShipped: number;
|
|
79
|
+
};
|
|
80
|
+
export type ShipmentItemsModel = {
|
|
81
|
+
id: string;
|
|
82
|
+
productSku: string;
|
|
83
|
+
productName: string;
|
|
84
|
+
orderItem: OrderItemModel;
|
|
85
|
+
};
|
|
86
|
+
export type ShipmentsTracingModel = {
|
|
87
|
+
carrier: string;
|
|
88
|
+
number: string;
|
|
89
|
+
title: string;
|
|
90
|
+
};
|
|
91
|
+
export type ShipmentsModel = {
|
|
92
|
+
id: string;
|
|
93
|
+
number: string;
|
|
94
|
+
tracking: ShipmentsTracingModel[];
|
|
95
|
+
comments: {
|
|
96
|
+
message: string;
|
|
97
|
+
timestamp: string;
|
|
98
|
+
}[];
|
|
99
|
+
items: ShipmentItemsModel[];
|
|
100
|
+
};
|
|
101
|
+
export type OrderDataModel = {
|
|
102
|
+
id: string;
|
|
103
|
+
orderStatusChangeDate?: string;
|
|
104
|
+
number: string;
|
|
105
|
+
email?: string;
|
|
106
|
+
token?: string;
|
|
107
|
+
status: string;
|
|
108
|
+
isVirtual: boolean;
|
|
109
|
+
totalQuantity: number;
|
|
110
|
+
shippingMethod?: string;
|
|
111
|
+
carrier?: string;
|
|
112
|
+
discounts: {
|
|
113
|
+
amount: Price;
|
|
114
|
+
label: string;
|
|
115
|
+
}[];
|
|
116
|
+
coupons: {
|
|
117
|
+
code: string;
|
|
118
|
+
}[];
|
|
119
|
+
payments: {
|
|
120
|
+
code: string;
|
|
121
|
+
name: string;
|
|
122
|
+
}[];
|
|
123
|
+
shipping?: {
|
|
124
|
+
code: string;
|
|
125
|
+
amount: number;
|
|
126
|
+
currency: string;
|
|
127
|
+
};
|
|
128
|
+
shipments: ShipmentsModel[];
|
|
129
|
+
items: OrderItemModel[];
|
|
130
|
+
totalGiftcard: Price;
|
|
131
|
+
grandTotal: Price;
|
|
132
|
+
totalShipping?: Price;
|
|
133
|
+
subtotal: Price;
|
|
134
|
+
totalTax: Price;
|
|
135
|
+
shippingAddress: OrderAddressModel;
|
|
136
|
+
billingAddress: OrderAddressModel;
|
|
137
|
+
availableActions: AvailableActionsProps[];
|
|
138
|
+
taxes: {
|
|
139
|
+
amount: Price;
|
|
140
|
+
rate: number;
|
|
141
|
+
title: string;
|
|
142
|
+
}[];
|
|
143
|
+
};
|
|
144
|
+
declare enum AvailableActionsProps {
|
|
145
|
+
CANCEL = "CANCEL",
|
|
146
|
+
RETURN = "RETURN",
|
|
147
|
+
REORDER = "REORDER"
|
|
148
|
+
}
|
|
149
|
+
export {};
|
|
150
|
+
//# 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,27 @@
|
|
|
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
|
+
export * from './transform-customer-address-input';
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OrderContext, ShoppingCartContext } from '../models/acdl';
|
|
2
|
+
|
|
3
|
+
export declare const transformShoppingCartContext: (order: Order) => ShoppingCartContext;
|
|
4
|
+
export declare const transformOrderContext: (order: Order) => OrderContext;
|
|
5
|
+
//# 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: (data: Cart) => CartModel | undefined;
|
|
6
|
+
export { Cart, transformCart };
|
|
7
|
+
//# sourceMappingURL=transform-cart.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CustomerAddressInput } from '../../__generated__/types';
|
|
2
|
+
import { OrderAddressModel } from '../models';
|
|
3
|
+
|
|
4
|
+
export declare function transformCustomerAddressInput(address: OrderAddressModel): CustomerAddressInput;
|
|
5
|
+
//# sourceMappingURL=transform-customer-address-input.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Customer as CustomerModel } from '../models';
|
|
2
|
+
import { GetCustomerQuery } from '../../__generated__/types';
|
|
3
|
+
|
|
4
|
+
type Customer = GetCustomerQuery['customer'];
|
|
5
|
+
declare const transformCustomer: (data: Customer) => CustomerModel | undefined;
|
|
6
|
+
export { Customer, transformCustomer };
|
|
7
|
+
//# 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
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OrderItemModel } from '../models/order';
|
|
2
|
+
import { PlaceOrderMutation } from '../../__generated__/types';
|
|
3
|
+
|
|
4
|
+
type OrderProps = NonNullable<NonNullable<PlaceOrderMutation['placeOrder']>['orderV2']>;
|
|
5
|
+
type OrderItems = OrderProps['items'];
|
|
6
|
+
type OrderItemProps = NonNullable<OrderItems>[number];
|
|
7
|
+
export declare const transformConfigurableOptions: (item: OrderItemProps) => Record<string, string> | undefined;
|
|
8
|
+
export declare const transformBundleOptions: (data: any) => {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
} | null;
|
|
11
|
+
export declare const transformLinks: (links: {
|
|
12
|
+
title: string;
|
|
13
|
+
}[]) => {
|
|
14
|
+
count: number;
|
|
15
|
+
result: string;
|
|
16
|
+
} | null;
|
|
17
|
+
export declare const transformOrderItems: (items: OrderItemProps[]) => OrderItemModel[];
|
|
18
|
+
export declare const transformOrder: (orderData: OrderProps) => any;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=transform-order.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GetCartQuery } from '../../__generated__/types';
|
|
2
|
+
import { PaymentMethod } from '../models/payment-method';
|
|
3
|
+
|
|
4
|
+
type SelectedPaymentMethod = NonNullable<GetCartQuery['cart']>['selected_payment_method'];
|
|
5
|
+
type AvailablePaymentMethods = NonNullable<GetCartQuery['cart']>['available_payment_methods'];
|
|
6
|
+
declare const transformSelectedPaymentMethod: (data: SelectedPaymentMethod) => PaymentMethod | undefined;
|
|
7
|
+
declare const transformAvailablePaymentMethods: (data: AvailablePaymentMethods) => PaymentMethod[] | undefined;
|
|
8
|
+
export { transformAvailablePaymentMethods, transformSelectedPaymentMethod };
|
|
9
|
+
//# sourceMappingURL=transform-payment-methods.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ShippingEstimatePartialAddress, ShippingEstimateShippingMethod, ShippingMethod } from '../models';
|
|
2
|
+
|
|
3
|
+
export declare const transformShippingEstimatePartialAddress: (data: Record<string, string>) => ShippingEstimatePartialAddress;
|
|
4
|
+
export declare const transformShippingEstimateShippingMethod: (data: ShippingMethod) => ShippingEstimateShippingMethod;
|
|
5
|
+
//# sourceMappingURL=transform-shipping-estimate.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GetCartQuery } from '../../__generated__/types';
|
|
2
|
+
import { ShippingMethod } from '../models/shipping-method';
|
|
3
|
+
|
|
4
|
+
type Cart = NonNullable<GetCartQuery['cart']>;
|
|
5
|
+
type ShippingAddresses = Cart['shipping_addresses'];
|
|
6
|
+
type ShippingAddress = NonNullable<NonNullable<ShippingAddresses>[number]>;
|
|
7
|
+
type AvailableShippingMethods = ShippingAddress['available_shipping_methods'];
|
|
8
|
+
type AvailableShippingMethod = NonNullable<AvailableShippingMethods>[number];
|
|
9
|
+
type SelectedShippingMethod = ShippingAddress['selected_shipping_method'];
|
|
10
|
+
export declare const transformSelectedShippingMethod: (data: SelectedShippingMethod) => ShippingMethod | undefined;
|
|
11
|
+
export declare const transformAvailableShippingMethod: (data: AvailableShippingMethod) => ShippingMethod | undefined;
|
|
12
|
+
export declare const transformShippingMethods: (data: AvailableShippingMethods) => ShippingMethod[] | undefined;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=transform-shipping-methods.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GetStoreConfigQuery } from '../../__generated__/types';
|
|
2
|
+
import { StoreConfig, TaxDisplay } from '../models';
|
|
3
|
+
|
|
4
|
+
export declare function transformTaxDisplay(data: number | null | undefined): TaxDisplay;
|
|
5
|
+
export declare function transformStoreConfig(data: GetStoreConfigQuery['storeConfig']): StoreConfig;
|
|
6
|
+
//# sourceMappingURL=transform-store-config.d.ts.map
|
package/fragments.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api/fragments'
|