@dropins/storefront-checkout 2.0.1 → 2.1.0-alpha2
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/fragments.d.ts +4 -1
- package/api/getCompanyCredit/getCompanyCredit.d.ts +4 -0
- package/api/getCompanyCredit/graphql/getCompanyCredit.graphql.d.ts +18 -0
- package/api/getCompanyCredit/graphql/index.d.ts +18 -0
- package/{errors → api/getCompanyCredit}/index.d.ts +1 -1
- package/api/getNegotiableQuote/getNegotiableQuote.d.ts +22 -0
- package/api/getNegotiableQuote/graphql/getNegotiableQuote.graphql.d.ts +18 -0
- package/api/getNegotiableQuote/graphql/index.d.ts +18 -0
- package/{signals → api/getNegotiableQuote}/index.d.ts +2 -2
- package/api/getStoreConfig/getStoreConfig.d.ts +1 -0
- package/api/graphql/CartAddressFragment.graphql.d.ts +2 -2
- package/api/graphql/NegotiableQuoteAddressFragment.graphql.d.ts +19 -0
- package/api/graphql/NegotiableQuoteFragment.graphql.d.ts +18 -0
- package/api/graphql/{CartPaymentMethodFragment.graphql.d.ts → PaymentMethodFragment.graphql.d.ts} +2 -2
- package/api/graphql/ShippingMethodFragment.graphql.d.ts +19 -0
- package/api/index.d.ts +2 -2
- package/api/initialize/initialize.d.ts +21 -3
- package/api/initialize/listeners.d.ts +3 -17
- package/api/initializeCheckout/initializeCheckout.d.ts +2 -2
- package/api/setBillingAddress/graphql/index.d.ts +19 -0
- package/api/{setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts → setBillingAddress/graphql/setBillingAddressOnCartMutation.graphql.d.ts} +2 -2
- package/api/setBillingAddress/graphql/setBillingAddressOnQuoteMutation.graphql.d.ts +18 -0
- package/api/setBillingAddress/setBillingAddress.d.ts +2 -2
- package/api/setPaymentMethod/graphql/index.d.ts +19 -0
- package/api/{setBillingAddress/graphql/setBillingAddress.graphql.d.ts → setPaymentMethod/graphql/setPaymentMethodOnCart.graphql.d.ts} +2 -2
- package/api/setPaymentMethod/graphql/setPaymentMethodOnQuote.graphql.d.ts +18 -0
- package/api/setPaymentMethod/setPaymentMethod.d.ts +2 -2
- package/api/setShippingAddress/graphql/index.d.ts +21 -0
- package/api/setShippingAddress/graphql/{setShippingAddressAndUseAsBilling.graphql.d.ts → setShippingAddressOnCartAndUseAsBillingMutation.graphql.d.ts} +2 -2
- package/api/setShippingAddress/graphql/{setShippingAddress.graphql.d.ts → setShippingAddressOnCartMutation.graphql.d.ts} +2 -2
- package/api/setShippingAddress/graphql/setShippingAddressOnQuote.graphql.d.ts +18 -0
- package/api/setShippingAddress/graphql/setShippingAddressOnQuoteAndUseAsBillingMutation.graphql.d.ts +18 -0
- package/api/setShippingAddress/setShippingAddress.d.ts +1 -1
- package/api/setShippingMethods/graphql/index.d.ts +19 -0
- package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +1 -1
- package/api/setShippingMethods/graphql/setShippingMethodsOnQuote.graphql.d.ts +18 -0
- package/api/setShippingMethods/index.d.ts +1 -0
- package/api/setShippingMethods/setShippingMethods.d.ts +3 -17
- package/api/synchronizeCheckout/synchronizeCheckout.d.ts +2 -2
- package/api.js +2 -66
- package/api.js.map +1 -1
- package/chunks/ConditionalWrapper.js +1 -1
- package/chunks/ConditionalWrapper.js.map +1 -1
- package/chunks/PaymentOnAccount2.js +4 -0
- package/chunks/PaymentOnAccount2.js.map +1 -0
- package/chunks/PurchaseOrder.js +4 -0
- package/chunks/PurchaseOrder.js.map +1 -0
- package/chunks/checkout.js.map +1 -1
- package/chunks/classifiers.js +4 -0
- package/chunks/classifiers.js.map +1 -0
- package/chunks/dom.js.map +1 -1
- package/chunks/events.js +4 -0
- package/chunks/events.js.map +1 -0
- package/chunks/events2.js +4 -0
- package/chunks/events2.js.map +1 -0
- package/chunks/fetch-graphql.js +14 -0
- package/chunks/fetch-graphql.js.map +1 -0
- package/chunks/getCompanyCredit.js +15 -0
- package/chunks/getCompanyCredit.js.map +1 -0
- package/chunks/guards.js +4 -0
- package/chunks/guards.js.map +1 -0
- package/chunks/render.js +10 -0
- package/chunks/render.js.map +1 -0
- package/chunks/setBillingAddress.js +25 -5
- package/chunks/setBillingAddress.js.map +1 -1
- package/chunks/setGuestEmailOnCart.js +3 -3
- package/chunks/setGuestEmailOnCart.js.map +1 -1
- package/chunks/setPaymentMethod.js +21 -6
- package/chunks/setPaymentMethod.js.map +1 -1
- package/chunks/setShippingAddress.js +109 -0
- package/chunks/setShippingAddress.js.map +1 -0
- package/chunks/setShippingMethods.js +19 -4
- package/chunks/setShippingMethods.js.map +1 -1
- package/chunks/synchronizeCheckout.js +13 -5
- package/chunks/synchronizeCheckout.js.map +1 -1
- package/chunks/transform-shipping-estimate.js +4 -0
- package/chunks/transform-shipping-estimate.js.map +1 -0
- package/chunks/transform-shipping-methods.js +4 -0
- package/chunks/transform-shipping-methods.js.map +1 -0
- package/chunks/values.js +1 -1
- package/chunks/values.js.map +1 -1
- package/components/AddressValidation/AddressValidation.d.ts +14 -0
- package/components/AddressValidation/index.d.ts +19 -0
- package/components/PaymentMethods/PaymentMethods.d.ts +1 -1
- package/components/PaymentOnAccount/PaymentOnAccount.d.ts +17 -0
- package/components/PaymentOnAccount/PaymentOnAccountSkeleton.d.ts +4 -0
- package/components/PaymentOnAccount/index.d.ts +20 -0
- package/components/PurchaseOrder/PurchaseOrder.d.ts +10 -0
- package/components/PurchaseOrder/index.d.ts +19 -0
- package/components/ShippingMethods/ShippingMethods.d.ts +1 -1
- package/components/index.d.ts +4 -1
- package/containers/AddressValidation/AddressValidation.d.ts +12 -0
- package/containers/AddressValidation/index.d.ts +19 -0
- package/containers/AddressValidation.d.ts +3 -0
- package/containers/AddressValidation.js +4 -0
- package/containers/AddressValidation.js.map +1 -0
- package/containers/BillToShippingAddress.js +1 -1
- package/containers/BillToShippingAddress.js.map +1 -1
- package/containers/EstimateShipping.js +1 -1
- package/containers/EstimateShipping.js.map +1 -1
- package/containers/LoginForm/LoginForm.d.ts +1 -1
- package/containers/LoginForm.js +1 -1
- package/containers/LoginForm.js.map +1 -1
- package/containers/MergedCartBanner.js +1 -1
- package/containers/MergedCartBanner.js.map +1 -1
- package/containers/OutOfStock.js +1 -1
- package/containers/OutOfStock.js.map +1 -1
- package/containers/PaymentMethods/PaymentMethods.d.ts +9 -8
- package/containers/PaymentMethods/handlers.d.ts +11 -0
- package/containers/PaymentMethods.js +1 -1
- package/containers/PaymentMethods.js.map +1 -1
- package/containers/PaymentOnAccount/PaymentOnAccount.d.ts +10 -0
- package/containers/PaymentOnAccount/index.d.ts +11 -0
- package/containers/PaymentOnAccount.d.ts +3 -0
- package/containers/PaymentOnAccount.js +4 -0
- package/containers/PaymentOnAccount.js.map +1 -0
- package/containers/PlaceOrder/PlaceOrder.d.ts +2 -1
- package/containers/PlaceOrder.js +1 -1
- package/containers/PlaceOrder.js.map +1 -1
- package/containers/PurchaseOrder/PurchaseOrder.d.ts +10 -0
- package/containers/PurchaseOrder/index.d.ts +19 -0
- package/containers/PurchaseOrder.d.ts +3 -0
- package/containers/PurchaseOrder.js +4 -0
- package/containers/PurchaseOrder.js.map +1 -0
- package/containers/ServerError/ServerError.d.ts +2 -1
- package/containers/ServerError.js +1 -1
- package/containers/ServerError.js.map +1 -1
- package/containers/ShippingMethods/ShippingMethods.d.ts +2 -2
- package/containers/ShippingMethods.js +1 -1
- package/containers/ShippingMethods.js.map +1 -1
- package/containers/TermsAndConditions.js +1 -1
- package/containers/TermsAndConditions.js.map +1 -1
- package/containers/index.d.ts +3 -0
- package/data/models/address.d.ts +11 -6
- package/data/models/api.d.ts +23 -10
- package/data/models/cart.d.ts +7 -7
- package/data/models/checkout.d.ts +14 -0
- package/data/models/company-credit.d.ts +7 -0
- package/data/models/country.d.ts +1 -1
- package/data/models/index.d.ts +3 -1
- package/data/models/{price.d.ts → money.d.ts} +2 -2
- package/data/models/payment-method.d.ts +2 -0
- package/data/models/quote.d.ts +16 -0
- package/data/models/shipping-estimate.d.ts +4 -4
- package/data/models/shipping-method.d.ts +4 -4
- package/data/models/values.d.ts +1 -1
- package/data/transforms/index.d.ts +9 -1
- package/data/transforms/transform-api.d.ts +12 -0
- package/data/transforms/{transform-address.d.ts → transform-cart-address.d.ts} +41 -43
- package/data/transforms/transform-cart.d.ts +1 -1
- package/data/transforms/transform-company-credit.d.ts +7 -0
- package/data/transforms/transform-country.d.ts +8 -0
- package/data/transforms/transform-custom-attributes.d.ts +5 -0
- package/data/transforms/transform-negotiable-quote.d.ts +7 -0
- package/data/transforms/transform-payment-methods.d.ts +1 -1
- package/data/transforms/transform-quote-address.d.ts +90 -0
- package/data/transforms/transform-region.d.ts +8 -0
- package/fragments.js +180 -70
- package/fragments.js.map +1 -1
- package/i18n/en_US.json.d.ts +26 -0
- package/lib/enqueueRequest.d.ts +2 -2
- package/lib/errors/classifiers.d.ts +38 -0
- package/lib/errors/customErrors.d.ts +42 -0
- package/lib/errors/index.d.ts +20 -0
- package/lib/errors/mapErrorToCode.d.ts +4 -0
- package/lib/events.d.ts +3 -2
- package/lib/guards.d.ts +18 -0
- package/lib/index.d.ts +2 -2
- package/lib/state.d.ts +5 -3
- package/lib/utils/api.d.ts +16 -0
- package/lib/utils/events.d.ts +10 -0
- package/lib/utils/forms.d.ts +5 -0
- package/lib/utils/fragments.d.ts +19 -0
- package/lib/utils/index.d.ts +24 -0
- package/lib/utils/meta.d.ts +19 -0
- package/lib/utils/transformers.d.ts +6 -0
- package/lib/utils.d.ts +1 -0
- package/lib/utils.js +4 -0
- package/lib/utils.js.map +1 -0
- package/package.json +1 -1
- package/render.js +4 -4
- package/render.js.map +1 -1
- package/tests/constants.d.ts +1 -0
- package/tests/fixtures/fragments/cart.d.ts +47 -42
- package/tests/fixtures/fragments/shipping-address.d.ts +2 -1
- package/tests/fixtures/helpers/session-storage.d.ts +68 -0
- package/tests/fixtures/index.d.ts +1 -0
- package/tests/fixtures/models/index.d.ts +1 -1
- package/tests/fixtures/models/quote.d.ts +9 -0
- package/tests/fixtures/queries/get-company-credit.d.ts +14 -0
- package/tests/fixtures/queries/index.d.ts +1 -0
- package/types/api.d.ts +6 -0
- package/types/{TitleProps.d.ts → components.d.ts} +2 -1
- package/types/guards.d.ts +5 -0
- package/types/index.d.ts +22 -0
- package/types/storefront.d.ts +165 -0
- package/types/utils.d.ts +19 -0
- package/chunks/ServerErrorSignal.js +0 -4
- package/chunks/ServerErrorSignal.js.map +0 -1
- package/chunks/errors.js +0 -14
- package/chunks/errors.js.map +0 -1
- package/errors/errors.d.ts +0 -30
- package/lib/network-error.d.ts +0 -22
- package/signals/ServerErrorSignal.d.ts +0 -18
- package/types/ComponentTypes.d.ts +0 -18
- /package/lib/{dom.d.ts → utils/dom.d.ts} +0 -0
|
@@ -1,51 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AddressInput as AddressInputModel, CartAddress as CartAddressModel, CartShippingAddress as CartShippingAddressModel } from '../models';
|
|
2
|
+
import { GetCartQuery } from '../../__generated__/types';
|
|
3
3
|
|
|
4
4
|
type ShippingAddresses = NonNullable<GetCartQuery['cart']>['shipping_addresses'];
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
|
|
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: ({
|
|
5
|
+
type CartShippingAddress = ShippingAddresses[0];
|
|
6
|
+
type CartBillingAddress = NonNullable<GetCartQuery['cart']>['billing_address'];
|
|
7
|
+
declare const transformCartBillingAddress: (data: CartBillingAddress) => CartAddressModel | undefined;
|
|
8
|
+
declare const transformCartShippingAddress: (data: ({
|
|
13
9
|
__typename?: "ShippingCartAddress" | undefined;
|
|
14
|
-
|
|
10
|
+
city: string;
|
|
11
|
+
company?: string | null | undefined;
|
|
12
|
+
fax?: string | null | undefined;
|
|
15
13
|
firstname: string;
|
|
14
|
+
id?: number | null | undefined;
|
|
16
15
|
lastname: string;
|
|
17
|
-
|
|
18
|
-
street: (string | null)[];
|
|
19
|
-
city: string;
|
|
16
|
+
middlename?: string | null | undefined;
|
|
20
17
|
postcode?: string | null | undefined;
|
|
21
|
-
vat_id?: string | null | undefined;
|
|
22
|
-
telephone?: string | null | undefined;
|
|
23
|
-
same_as_billing: boolean;
|
|
24
18
|
prefix?: string | null | undefined;
|
|
19
|
+
same_as_billing: boolean;
|
|
20
|
+
street: (string | null)[];
|
|
25
21
|
suffix?: string | null | undefined;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
__typename?: "CartAddressRegion" | undefined;
|
|
30
|
-
region_id?: number | null | undefined;
|
|
31
|
-
code?: string | null | undefined;
|
|
32
|
-
label?: string | null | undefined;
|
|
33
|
-
} | null | undefined;
|
|
34
|
-
country: {
|
|
35
|
-
__typename?: "CartAddressCountry" | undefined;
|
|
36
|
-
code: string;
|
|
37
|
-
label: string;
|
|
38
|
-
};
|
|
39
|
-
custom_attributes: ({
|
|
40
|
-
__typename?: "AttributeSelectedOptions" | undefined;
|
|
41
|
-
} | {
|
|
42
|
-
__typename?: "AttributeValue" | undefined;
|
|
43
|
-
code: string;
|
|
44
|
-
value: string;
|
|
45
|
-
} | null)[];
|
|
22
|
+
telephone?: string | null | undefined;
|
|
23
|
+
uid: string;
|
|
24
|
+
vat_id?: string | null | undefined;
|
|
46
25
|
available_shipping_methods?: ({
|
|
47
26
|
__typename?: "AvailableShippingMethod" | undefined;
|
|
48
|
-
available: boolean;
|
|
49
27
|
carrier_code: string;
|
|
50
28
|
carrier_title: string;
|
|
51
29
|
error_message?: string | null | undefined;
|
|
@@ -67,6 +45,26 @@ declare const transformShippingAddresses: (data: ({
|
|
|
67
45
|
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
68
46
|
};
|
|
69
47
|
} | null)[] | null | undefined;
|
|
48
|
+
country: {
|
|
49
|
+
__typename?: "CartAddressCountry" | undefined;
|
|
50
|
+
code: string;
|
|
51
|
+
label: string;
|
|
52
|
+
};
|
|
53
|
+
custom_attributes: ({
|
|
54
|
+
__typename?: "AttributeFile" | undefined;
|
|
55
|
+
} | {
|
|
56
|
+
__typename?: "AttributeSelectedOptions" | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
__typename?: "AttributeValue" | undefined;
|
|
59
|
+
code: string;
|
|
60
|
+
value: string;
|
|
61
|
+
} | null)[];
|
|
62
|
+
region?: {
|
|
63
|
+
__typename?: "CartAddressRegion" | undefined;
|
|
64
|
+
region_id?: number | null | undefined;
|
|
65
|
+
code?: string | null | undefined;
|
|
66
|
+
label?: string | null | undefined;
|
|
67
|
+
} | null | undefined;
|
|
70
68
|
selected_shipping_method?: {
|
|
71
69
|
__typename?: "SelectedShippingMethod" | undefined;
|
|
72
70
|
carrier_code: string;
|
|
@@ -75,8 +73,8 @@ declare const transformShippingAddresses: (data: ({
|
|
|
75
73
|
method_title: string;
|
|
76
74
|
amount: {
|
|
77
75
|
__typename?: "Money" | undefined;
|
|
78
|
-
value?: number | null | undefined;
|
|
79
76
|
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
77
|
+
value?: number | null | undefined;
|
|
80
78
|
};
|
|
81
79
|
price_excl_tax: {
|
|
82
80
|
__typename?: "Money" | undefined;
|
|
@@ -89,7 +87,7 @@ declare const transformShippingAddresses: (data: ({
|
|
|
89
87
|
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
90
88
|
};
|
|
91
89
|
} | null | undefined;
|
|
92
|
-
} | null)[]) =>
|
|
93
|
-
declare const
|
|
94
|
-
export {
|
|
95
|
-
//# sourceMappingURL=transform-address.d.ts.map
|
|
90
|
+
} | null)[]) => CartShippingAddressModel[];
|
|
91
|
+
declare const transformAddressToCartAddressInput: <T extends CartAddressModel>(address?: T | null | undefined) => AddressInputModel | undefined;
|
|
92
|
+
export { CartBillingAddress, CartShippingAddress, transformAddressToCartAddressInput, transformCartBillingAddress, transformCartShippingAddress, };
|
|
93
|
+
//# sourceMappingURL=transform-cart-address.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GetCartQuery } from '../../__generated__/types';
|
|
2
1
|
import { Cart as CartModel } from '../models';
|
|
2
|
+
import { GetCartQuery } from '../../__generated__/types';
|
|
3
3
|
|
|
4
4
|
type Cart = GetCartQuery['cart'];
|
|
5
5
|
declare const transformCart: (data: Cart) => CartModel | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CompanyCredit as CompanyCreditModel } from '../models';
|
|
2
|
+
import { CompanyCredit as CompanyCreditType } from '../../__generated__/types';
|
|
3
|
+
|
|
4
|
+
type OptionalCompanyCredit = CompanyCreditType | null | undefined;
|
|
5
|
+
declare const transformCompanyCredit: (data: OptionalCompanyCredit) => CompanyCreditModel | null;
|
|
6
|
+
export { transformCompanyCredit };
|
|
7
|
+
//# sourceMappingURL=transform-company-credit.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CartAddressCountry, NegotiableQuoteAddressCountry } from '../../__generated__/types';
|
|
2
|
+
import { Country as CountryModel } from '../models';
|
|
3
|
+
|
|
4
|
+
type AddressCountry = CartAddressCountry | NegotiableQuoteAddressCountry;
|
|
5
|
+
type OptionalAddressCountry = AddressCountry | undefined | null;
|
|
6
|
+
export declare const transformAddressCountry: (data: OptionalAddressCountry) => CountryModel;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=transform-country.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CustomAttribute as CustomAttributeModel } from '../models/custom-attribute';
|
|
2
|
+
import { AttributeValue } from '../../__generated__/types';
|
|
3
|
+
|
|
4
|
+
export declare const transformCustomAttributes: (data: Array<AttributeValue | any | null> | null | undefined) => CustomAttributeModel[];
|
|
5
|
+
//# sourceMappingURL=transform-custom-attributes.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NegotiableQuote as NegotiableQuoteModel } from '../models';
|
|
2
|
+
import { GetNegotiableQuoteQuery } from '../../__generated__/types';
|
|
3
|
+
|
|
4
|
+
type NegotiableQuote = GetNegotiableQuoteQuery['negotiableQuote'];
|
|
5
|
+
export declare const transformNegotiableQuote: (data: NegotiableQuote | undefined) => NegotiableQuoteModel | null;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=transform-negotiable-quote.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GetCartQuery } from '../../__generated__/types';
|
|
2
1
|
import { PaymentMethod } from '../models/payment-method';
|
|
2
|
+
import { GetCartQuery } from '../../__generated__/types';
|
|
3
3
|
|
|
4
4
|
type SelectedPaymentMethod = NonNullable<GetCartQuery['cart']>['selected_payment_method'];
|
|
5
5
|
type AvailablePaymentMethods = NonNullable<GetCartQuery['cart']>['available_payment_methods'];
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Address as AddressModel, ShippingAddress as ShippingAddressModel } from '../models';
|
|
2
|
+
import { GetNegotiableQuoteQuery } from '../../__generated__/types';
|
|
3
|
+
|
|
4
|
+
type QuoteShippingAddresses = NonNullable<GetNegotiableQuoteQuery['negotiableQuote']>['shipping_addresses'];
|
|
5
|
+
type QuoteShippingAddress = QuoteShippingAddresses[0];
|
|
6
|
+
type QuoteBillingAddress = NonNullable<GetNegotiableQuoteQuery['negotiableQuote']>['billing_address'];
|
|
7
|
+
declare const transformQuoteBillingAddress: (data: QuoteBillingAddress) => AddressModel | undefined;
|
|
8
|
+
declare const transformQuoteShippingAddress: (data: ({
|
|
9
|
+
__typename?: "NegotiableQuoteShippingAddress" | undefined;
|
|
10
|
+
city: string;
|
|
11
|
+
company?: string | null | undefined;
|
|
12
|
+
fax?: string | null | undefined;
|
|
13
|
+
firstname: string;
|
|
14
|
+
lastname: string;
|
|
15
|
+
middlename?: string | null | undefined;
|
|
16
|
+
postcode?: string | null | undefined;
|
|
17
|
+
prefix?: string | null | undefined;
|
|
18
|
+
street: (string | null)[];
|
|
19
|
+
suffix?: string | null | undefined;
|
|
20
|
+
telephone?: string | null | undefined;
|
|
21
|
+
uid: string;
|
|
22
|
+
vat_id?: string | null | undefined;
|
|
23
|
+
available_shipping_methods?: ({
|
|
24
|
+
__typename?: "AvailableShippingMethod" | undefined;
|
|
25
|
+
carrier_code: string;
|
|
26
|
+
carrier_title: string;
|
|
27
|
+
error_message?: string | null | undefined;
|
|
28
|
+
method_code?: string | null | undefined;
|
|
29
|
+
method_title?: string | null | undefined;
|
|
30
|
+
amount: {
|
|
31
|
+
__typename?: "Money" | undefined;
|
|
32
|
+
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
33
|
+
value?: number | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
price_excl_tax: {
|
|
36
|
+
__typename?: "Money" | undefined;
|
|
37
|
+
value?: number | null | undefined;
|
|
38
|
+
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
39
|
+
};
|
|
40
|
+
price_incl_tax: {
|
|
41
|
+
__typename?: "Money" | undefined;
|
|
42
|
+
value?: number | null | undefined;
|
|
43
|
+
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
44
|
+
};
|
|
45
|
+
} | null)[] | null | undefined;
|
|
46
|
+
country: {
|
|
47
|
+
__typename?: "NegotiableQuoteAddressCountry" | undefined;
|
|
48
|
+
code: string;
|
|
49
|
+
label: string;
|
|
50
|
+
};
|
|
51
|
+
custom_attributes?: ({
|
|
52
|
+
__typename?: "AttributeFile" | undefined;
|
|
53
|
+
} | {
|
|
54
|
+
__typename?: "AttributeSelectedOptions" | undefined;
|
|
55
|
+
} | {
|
|
56
|
+
__typename?: "AttributeValue" | undefined;
|
|
57
|
+
code: string;
|
|
58
|
+
value: string;
|
|
59
|
+
} | null)[] | null | undefined;
|
|
60
|
+
region?: {
|
|
61
|
+
__typename?: "NegotiableQuoteAddressRegion" | undefined;
|
|
62
|
+
region_id?: number | null | undefined;
|
|
63
|
+
code?: string | null | undefined;
|
|
64
|
+
label?: string | null | undefined;
|
|
65
|
+
} | 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
|
+
currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
|
|
75
|
+
value?: number | 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[];
|
|
89
|
+
export { QuoteBillingAddress, QuoteShippingAddress, transformQuoteBillingAddress, transformQuoteShippingAddress, };
|
|
90
|
+
//# sourceMappingURL=transform-quote-address.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Region as RegionModel } from '../models';
|
|
2
|
+
import { CartAddressRegion, NegotiableQuoteAddressRegion } from '../../__generated__/types';
|
|
3
|
+
|
|
4
|
+
type AddressRegion = CartAddressRegion | NegotiableQuoteAddressRegion;
|
|
5
|
+
type OptionalAddressRegion = AddressRegion | undefined | null;
|
|
6
|
+
export declare const transformAddressRegion: (data: OptionalAddressRegion) => RegionModel | undefined;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=transform-region.d.ts.map
|
package/fragments.js
CHANGED
|
@@ -1,117 +1,130 @@
|
|
|
1
1
|
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
3
|
const e=`
|
|
4
|
+
fragment AVAILABLE_SHIPPING_METHOD_FRAGMENT on AvailableShippingMethod {
|
|
5
|
+
amount {
|
|
6
|
+
currency
|
|
7
|
+
value
|
|
8
|
+
}
|
|
9
|
+
carrier_code
|
|
10
|
+
carrier_title
|
|
11
|
+
error_message
|
|
12
|
+
method_code
|
|
13
|
+
method_title
|
|
14
|
+
price_excl_tax {
|
|
15
|
+
value
|
|
16
|
+
currency
|
|
17
|
+
}
|
|
18
|
+
price_incl_tax {
|
|
19
|
+
value
|
|
20
|
+
currency
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`,t=`
|
|
24
|
+
fragment SELECTED_SHIPPING_METHOD_FRAGMENT on SelectedShippingMethod {
|
|
25
|
+
amount {
|
|
26
|
+
currency
|
|
27
|
+
value
|
|
28
|
+
}
|
|
29
|
+
carrier_code
|
|
30
|
+
carrier_title
|
|
31
|
+
method_code
|
|
32
|
+
method_title
|
|
33
|
+
price_excl_tax {
|
|
34
|
+
value
|
|
35
|
+
currency
|
|
36
|
+
}
|
|
37
|
+
price_incl_tax {
|
|
38
|
+
value
|
|
39
|
+
currency
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`,a=`
|
|
4
43
|
fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {
|
|
5
|
-
id
|
|
6
44
|
city
|
|
7
|
-
country {
|
|
8
|
-
code
|
|
9
|
-
label
|
|
10
|
-
}
|
|
11
|
-
firstname
|
|
12
|
-
lastname
|
|
13
45
|
company
|
|
14
|
-
|
|
15
|
-
vat_id
|
|
16
|
-
region {
|
|
17
|
-
region_id
|
|
46
|
+
country {
|
|
18
47
|
code
|
|
19
48
|
label
|
|
20
49
|
}
|
|
21
|
-
street
|
|
22
|
-
telephone
|
|
23
50
|
custom_attributes {
|
|
24
51
|
... on AttributeValue {
|
|
25
52
|
code
|
|
26
53
|
value
|
|
27
54
|
}
|
|
28
55
|
}
|
|
29
|
-
prefix
|
|
30
|
-
suffix
|
|
31
|
-
middlename
|
|
32
56
|
fax
|
|
33
|
-
}
|
|
34
|
-
`,t=`
|
|
35
|
-
fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {
|
|
36
|
-
id
|
|
37
57
|
firstname
|
|
58
|
+
id
|
|
38
59
|
lastname
|
|
39
|
-
|
|
40
|
-
street
|
|
41
|
-
city
|
|
60
|
+
middlename
|
|
42
61
|
postcode
|
|
43
|
-
|
|
62
|
+
prefix
|
|
44
63
|
region {
|
|
45
64
|
region_id
|
|
46
65
|
code
|
|
47
66
|
label
|
|
48
67
|
}
|
|
68
|
+
street
|
|
69
|
+
suffix
|
|
70
|
+
telephone
|
|
71
|
+
uid
|
|
72
|
+
vat_id
|
|
73
|
+
}
|
|
74
|
+
`,i=`
|
|
75
|
+
fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {
|
|
76
|
+
available_shipping_methods {
|
|
77
|
+
...AVAILABLE_SHIPPING_METHOD_FRAGMENT
|
|
78
|
+
}
|
|
79
|
+
city
|
|
80
|
+
company
|
|
49
81
|
country {
|
|
50
82
|
code
|
|
51
83
|
label
|
|
52
84
|
}
|
|
53
|
-
telephone
|
|
54
85
|
custom_attributes {
|
|
55
86
|
... on AttributeValue {
|
|
56
87
|
code
|
|
57
88
|
value
|
|
58
89
|
}
|
|
59
90
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
price_excl_tax {
|
|
72
|
-
value
|
|
73
|
-
currency
|
|
74
|
-
}
|
|
75
|
-
price_incl_tax {
|
|
76
|
-
value
|
|
77
|
-
currency
|
|
78
|
-
}
|
|
91
|
+
fax
|
|
92
|
+
firstname
|
|
93
|
+
id
|
|
94
|
+
lastname
|
|
95
|
+
middlename
|
|
96
|
+
postcode
|
|
97
|
+
prefix
|
|
98
|
+
region {
|
|
99
|
+
region_id
|
|
100
|
+
code
|
|
101
|
+
label
|
|
79
102
|
}
|
|
103
|
+
same_as_billing
|
|
80
104
|
selected_shipping_method {
|
|
81
|
-
|
|
82
|
-
value
|
|
83
|
-
currency
|
|
84
|
-
}
|
|
85
|
-
carrier_code
|
|
86
|
-
carrier_title
|
|
87
|
-
method_code
|
|
88
|
-
method_title
|
|
89
|
-
price_excl_tax {
|
|
90
|
-
value
|
|
91
|
-
currency
|
|
92
|
-
}
|
|
93
|
-
price_incl_tax {
|
|
94
|
-
value
|
|
95
|
-
currency
|
|
96
|
-
}
|
|
105
|
+
...SELECTED_SHIPPING_METHOD_FRAGMENT
|
|
97
106
|
}
|
|
98
|
-
|
|
99
|
-
prefix
|
|
107
|
+
street
|
|
100
108
|
suffix
|
|
101
|
-
|
|
102
|
-
|
|
109
|
+
telephone
|
|
110
|
+
uid
|
|
111
|
+
vat_id
|
|
103
112
|
}
|
|
113
|
+
|
|
114
|
+
${e}
|
|
115
|
+
${t}
|
|
104
116
|
`,_=`
|
|
105
117
|
fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {
|
|
106
118
|
code
|
|
107
119
|
title
|
|
108
120
|
}
|
|
109
|
-
`,
|
|
121
|
+
`,E=`
|
|
110
122
|
fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {
|
|
111
123
|
code
|
|
112
124
|
title
|
|
125
|
+
purchase_order_number
|
|
113
126
|
}
|
|
114
|
-
`,
|
|
127
|
+
`,A=`
|
|
115
128
|
fragment CHECKOUT_DATA_FRAGMENT on Cart {
|
|
116
129
|
id
|
|
117
130
|
is_virtual
|
|
@@ -131,15 +144,112 @@ const e=`
|
|
|
131
144
|
}
|
|
132
145
|
}
|
|
133
146
|
|
|
134
|
-
${e}
|
|
135
|
-
${t}
|
|
136
|
-
${_}
|
|
137
147
|
${a}
|
|
148
|
+
${i}
|
|
149
|
+
${_}
|
|
150
|
+
${E}
|
|
138
151
|
`,r=`
|
|
139
152
|
fragment CUSTOMER_FRAGMENT on Customer {
|
|
140
153
|
firstname
|
|
141
154
|
lastname
|
|
142
155
|
email
|
|
143
156
|
}
|
|
144
|
-
|
|
157
|
+
`,n=`
|
|
158
|
+
fragment NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT on NegotiableQuoteBillingAddress {
|
|
159
|
+
city
|
|
160
|
+
company
|
|
161
|
+
country {
|
|
162
|
+
code
|
|
163
|
+
label
|
|
164
|
+
}
|
|
165
|
+
custom_attributes {
|
|
166
|
+
... on AttributeValue {
|
|
167
|
+
code
|
|
168
|
+
value
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
fax
|
|
172
|
+
firstname
|
|
173
|
+
lastname
|
|
174
|
+
middlename
|
|
175
|
+
postcode
|
|
176
|
+
prefix
|
|
177
|
+
region {
|
|
178
|
+
region_id
|
|
179
|
+
code
|
|
180
|
+
label
|
|
181
|
+
}
|
|
182
|
+
street
|
|
183
|
+
suffix
|
|
184
|
+
telephone
|
|
185
|
+
uid
|
|
186
|
+
vat_id
|
|
187
|
+
}
|
|
188
|
+
`,o=`
|
|
189
|
+
fragment NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT on NegotiableQuoteShippingAddress {
|
|
190
|
+
available_shipping_methods {
|
|
191
|
+
...AVAILABLE_SHIPPING_METHOD_FRAGMENT
|
|
192
|
+
}
|
|
193
|
+
city
|
|
194
|
+
company
|
|
195
|
+
country {
|
|
196
|
+
code
|
|
197
|
+
label
|
|
198
|
+
}
|
|
199
|
+
custom_attributes {
|
|
200
|
+
... on AttributeValue {
|
|
201
|
+
code
|
|
202
|
+
value
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
fax
|
|
206
|
+
firstname
|
|
207
|
+
lastname
|
|
208
|
+
middlename
|
|
209
|
+
postcode
|
|
210
|
+
prefix
|
|
211
|
+
region {
|
|
212
|
+
region_id
|
|
213
|
+
code
|
|
214
|
+
label
|
|
215
|
+
}
|
|
216
|
+
selected_shipping_method {
|
|
217
|
+
...SELECTED_SHIPPING_METHOD_FRAGMENT
|
|
218
|
+
}
|
|
219
|
+
street
|
|
220
|
+
suffix
|
|
221
|
+
telephone
|
|
222
|
+
uid
|
|
223
|
+
vat_id
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
${e}
|
|
227
|
+
${t}
|
|
228
|
+
`,T=`
|
|
229
|
+
fragment NEGOTIABLE_QUOTE_FRAGMENT on NegotiableQuote {
|
|
230
|
+
available_payment_methods {
|
|
231
|
+
...AVAILABLE_PAYMENT_METHOD_FRAGMENT
|
|
232
|
+
}
|
|
233
|
+
billing_address {
|
|
234
|
+
...NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT
|
|
235
|
+
}
|
|
236
|
+
email
|
|
237
|
+
is_virtual
|
|
238
|
+
name
|
|
239
|
+
selected_payment_method {
|
|
240
|
+
...SELECTED_PAYMENT_METHOD_FRAGMENT
|
|
241
|
+
}
|
|
242
|
+
shipping_addresses {
|
|
243
|
+
...NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT
|
|
244
|
+
}
|
|
245
|
+
status
|
|
246
|
+
total_quantity
|
|
247
|
+
uid
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
${n}
|
|
251
|
+
${o}
|
|
252
|
+
${_}
|
|
253
|
+
${E}
|
|
254
|
+
`;export{_ as AVAILABLE_PAYMENT_METHOD_FRAGMENT,e as AVAILABLE_SHIPPING_METHOD_FRAGMENT,a as BILLING_CART_ADDRESS_FRAGMENT,A as CHECKOUT_DATA_FRAGMENT,r as CUSTOMER_FRAGMENT,n as NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,T as NEGOTIABLE_QUOTE_FRAGMENT,o as NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,E as SELECTED_PAYMENT_METHOD_FRAGMENT,t as SELECTED_SHIPPING_METHOD_FRAGMENT,i as SHIPPING_CART_ADDRESS_FRAGMENT};
|
|
145
255
|
//# sourceMappingURL=fragments.js.map
|
package/fragments.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fragments.js","sources":["/@dropins/storefront-checkout/src/api/graphql/CartAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CartPaymentMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CheckoutDataFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CustomerFragment.graphql.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const BILLING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {\n id\n city\n country {\n code\n label\n }\n firstname\n lastname\n company\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n street\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n prefix\n suffix\n middlename\n fax\n }\n`;\n\nexport const SHIPPING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {\n id\n firstname\n lastname\n company\n street\n city\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n country {\n code\n label\n }\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n available_shipping_methods {\n amount {\n currency\n value\n }\n available\n carrier_code\n carrier_title\n error_message\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n selected_shipping_method {\n amount {\n value\n currency\n }\n carrier_code\n carrier_title\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n same_as_billing\n prefix\n suffix\n middlename\n fax\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {\n code\n title\n }\n`;\n\nexport const SELECTED_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {\n code\n title\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n BILLING_CART_ADDRESS_FRAGMENT,\n SHIPPING_CART_ADDRESS_FRAGMENT,\n} from './CartAddressFragment.graphql';\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './CartPaymentMethodFragment.graphql';\n\nexport const CHECKOUT_DATA_FRAGMENT = /* GraphQL */ `\n fragment CHECKOUT_DATA_FRAGMENT on Cart {\n id\n is_virtual\n email\n total_quantity\n billing_address {\n ...BILLING_CART_ADDRESS_FRAGMENT\n }\n shipping_addresses {\n ...SHIPPING_CART_ADDRESS_FRAGMENT\n }\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n }\n\n ${BILLING_CART_ADDRESS_FRAGMENT}\n ${SHIPPING_CART_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const CUSTOMER_FRAGMENT = /* GraphQL */ `\n fragment CUSTOMER_FRAGMENT on Customer {\n firstname\n lastname\n email\n }\n`;\n"],"names":["BILLING_CART_ADDRESS_FRAGMENT","SHIPPING_CART_ADDRESS_FRAGMENT","AVAILABLE_PAYMENT_METHOD_FRAGMENT","SELECTED_PAYMENT_METHOD_FRAGMENT","CHECKOUT_DATA_FRAGMENT","CUSTOMER_FRAGMENT"],"mappings":"AAiBa,MAAAA,EAA8C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiC9CC,EAA+C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECjC/CC,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlDC,EAAiD;AAAA;AAAA;AAAA;AAAA;AAAA,ECEjDC,EAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAoBhDJ,CAA6B;AAAA,IAC7BC,CAA8B;AAAA,IAC9BC,CAAiC;AAAA,IACjCC,CAAgC;AAAA,EChCvBE,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"fragments.js","sources":["/@dropins/storefront-checkout/src/api/graphql/ShippingMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CartAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/PaymentMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CheckoutDataFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CustomerFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/NegotiableQuoteAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/NegotiableQuoteFragment.graphql.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_SHIPPING_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_SHIPPING_METHOD_FRAGMENT on AvailableShippingMethod {\n amount {\n currency\n value\n }\n carrier_code\n carrier_title\n error_message\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n`;\n\nexport const SELECTED_SHIPPING_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_SHIPPING_METHOD_FRAGMENT on SelectedShippingMethod {\n amount {\n currency\n value\n }\n carrier_code\n carrier_title\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n AVAILABLE_SHIPPING_METHOD_FRAGMENT,\n SELECTED_SHIPPING_METHOD_FRAGMENT,\n} from './ShippingMethodFragment.graphql';\n\nexport const BILLING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n id\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n`;\n\nexport const SHIPPING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {\n available_shipping_methods {\n ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n id\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n same_as_billing\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n\n ${AVAILABLE_SHIPPING_METHOD_FRAGMENT}\n ${SELECTED_SHIPPING_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {\n code\n title\n }\n`;\n\nexport const SELECTED_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {\n code\n title\n purchase_order_number\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n BILLING_CART_ADDRESS_FRAGMENT,\n SHIPPING_CART_ADDRESS_FRAGMENT,\n} from './CartAddressFragment.graphql';\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './PaymentMethodFragment.graphql';\n\nexport const CHECKOUT_DATA_FRAGMENT = /* GraphQL */ `\n fragment CHECKOUT_DATA_FRAGMENT on Cart {\n id\n is_virtual\n email\n total_quantity\n billing_address {\n ...BILLING_CART_ADDRESS_FRAGMENT\n }\n shipping_addresses {\n ...SHIPPING_CART_ADDRESS_FRAGMENT\n }\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n }\n\n ${BILLING_CART_ADDRESS_FRAGMENT}\n ${SHIPPING_CART_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const CUSTOMER_FRAGMENT = /* GraphQL */ `\n fragment CUSTOMER_FRAGMENT on Customer {\n firstname\n lastname\n email\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n AVAILABLE_SHIPPING_METHOD_FRAGMENT,\n SELECTED_SHIPPING_METHOD_FRAGMENT,\n} from './ShippingMethodFragment.graphql';\n\nexport const NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT on NegotiableQuoteBillingAddress {\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n`;\n\nexport const NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT on NegotiableQuoteShippingAddress {\n available_shipping_methods {\n ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n\n ${AVAILABLE_SHIPPING_METHOD_FRAGMENT}\n ${SELECTED_SHIPPING_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,\n NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,\n} from './NegotiableQuoteAddressFragment.graphql';\n\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './PaymentMethodFragment.graphql';\n\nexport const NEGOTIABLE_QUOTE_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_FRAGMENT on NegotiableQuote {\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n billing_address {\n ...NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT\n }\n email\n is_virtual\n name\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n shipping_addresses {\n ...NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT\n }\n status\n total_quantity\n uid\n }\n\n ${NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT}\n ${NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n"],"names":["AVAILABLE_SHIPPING_METHOD_FRAGMENT","SELECTED_SHIPPING_METHOD_FRAGMENT","BILLING_CART_ADDRESS_FRAGMENT","SHIPPING_CART_ADDRESS_FRAGMENT","AVAILABLE_PAYMENT_METHOD_FRAGMENT","SELECTED_PAYMENT_METHOD_FRAGMENT","CHECKOUT_DATA_FRAGMENT","CUSTOMER_FRAGMENT","NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT","NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT","NEGOTIABLE_QUOTE_FRAGMENT"],"mappings":"AAiBa,MAAAA,EAAmD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAsBnDC,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECjBlDC,EAA8C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkC9CC,EAA+C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAwCxDH,CAAkC;AAAA,IAClCC,CAAiC;AAAA,EChFxBG,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlDC,EAAiD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECEjDC,EAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAoBhDJ,CAA6B;AAAA,IAC7BC,CAA8B;AAAA,IAC9BC,CAAiC;AAAA,IACjCC,CAAgC;AAAA,EChCvBE,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECKlCC,EAA0D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiC1DC,EAA2D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAsCpET,CAAkC;AAAA,IAClCC,CAAiC;AAAA,ECnExBS,EAA0C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAsBnDF,CAAyC;AAAA,IACzCC,CAA0C;AAAA,IAC1CL,CAAiC;AAAA,IACjCC,CAAgC;"}
|
package/i18n/en_US.json.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"Checkout": {
|
|
3
|
+
"AddressValidation": {
|
|
4
|
+
"title": "Verify your address",
|
|
5
|
+
"subtitle": "To ensure accurate delivery, we suggest the changes highlighted below. Please choose which address you would like to use. If neither option is correct, edit your address.",
|
|
6
|
+
"suggestedAddress": "Suggested Address",
|
|
7
|
+
"originalAddress": "Original Address"
|
|
8
|
+
},
|
|
3
9
|
"BillToShippingAddress": {
|
|
4
10
|
"cartSyncError": "We were unable to save your changes. Please try again later.",
|
|
5
11
|
"title": "Bill to shipping address"
|
|
@@ -58,6 +64,22 @@ declare const _default: {
|
|
|
58
64
|
"emptyState": "No payment methods available",
|
|
59
65
|
"title": "Payment"
|
|
60
66
|
},
|
|
67
|
+
"PaymentOnAccount": {
|
|
68
|
+
"referenceNumberLabel": "Custom Reference Number",
|
|
69
|
+
"referenceNumberPlaceholder": "Enter custom reference number",
|
|
70
|
+
"referenceNumberHint": "",
|
|
71
|
+
"availableCreditLabel": "Available Credit",
|
|
72
|
+
"exceedLimitWarning": "The credit limit is {{creditLimit}}. It will be exceeded by {{exceededAmount}} with this order.",
|
|
73
|
+
"exceedLimitWarningPrefix": "The credit limit is",
|
|
74
|
+
"exceedLimitWarningMiddle": ". It will be exceeded by",
|
|
75
|
+
"exceedLimitWarningSuffix": "with this order.",
|
|
76
|
+
"exceedLimitError": "Payment On Account cannot be used for this order because your order amount exceeds your credit amount."
|
|
77
|
+
},
|
|
78
|
+
"PurchaseOrder": {
|
|
79
|
+
"referenceNumberLabel": "Custom Reference Number",
|
|
80
|
+
"referenceNumberPlaceholder": "Enter custom reference number",
|
|
81
|
+
"referenceNumberHint": ""
|
|
82
|
+
},
|
|
61
83
|
"PlaceOrder": {
|
|
62
84
|
"button": "Place Order"
|
|
63
85
|
},
|
|
@@ -67,6 +89,10 @@ declare const _default: {
|
|
|
67
89
|
"title": "We were unable to process your order",
|
|
68
90
|
"unexpected": "An unexpected error occurred while processing your order. Please try again later."
|
|
69
91
|
},
|
|
92
|
+
"Quote": {
|
|
93
|
+
"permissionDenied": "You do not have permission to checkout with this quote.",
|
|
94
|
+
"dataError": "We were unable to retrieve the quote data. Please try again later."
|
|
95
|
+
},
|
|
70
96
|
"ShippingMethods": {
|
|
71
97
|
"cartSyncError": "We were unable to save your changes. Please try again later.",
|
|
72
98
|
"emptyState": "This order can't be shipped to the address provided. Please review the address details you entered and make sure they're correct.",
|