@vtex/faststore 0.0.10 → 0.0.11
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/CHANGELOG.md +42 -0
- package/README.md +0 -1
- package/dist/actions.json +6 -1
- package/dist/catalog.json +789 -1701
- package/dist/cli/index.d.ts +66 -28
- package/dist/cli/index.js +7371 -512
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/server-runtime.js +41 -60
- package/dist/cli/server-runtime.js.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/client.js +2 -2
- package/dist/components.d.ts +63 -57
- package/dist/components.js +60 -54
- package/dist/content-types.json +5785 -754
- package/dist/core/dist/define-component.d.ts +1 -1
- package/dist/core/dist/define-content-type.d.ts +50 -2
- package/dist/core/dist/define-content-type.js +107 -3
- package/dist/core/dist/define-content-type.js.map +1 -1
- package/dist/core/dist/index.d.ts +2 -2
- package/dist/docs/access-code-field.md +1 -1
- package/dist/docs/access-code-sign-in.md +126 -77
- package/dist/docs/account-address-book.md +210 -95
- package/dist/docs/account-menu.md +14 -15
- package/dist/docs/account-saved-cards.md +44 -39
- package/dist/docs/alert-dialog.md +3 -1
- package/dist/docs/avatar.md +4 -2
- package/dist/docs/billing-address.md +99 -30
- package/dist/docs/binding-switcher.md +5 -2
- package/dist/docs/buy-button.md +7 -8
- package/dist/docs/card-entry.md +39 -26
- package/dist/docs/card-summary.md +18 -8
- package/dist/docs/cardholder-document.md +5 -3
- package/dist/docs/carousel.md +5 -4
- package/dist/docs/cart-destination.md +39 -26
- package/dist/docs/cart-item.md +29 -14
- package/dist/docs/cart-totalizer.md +7 -5
- package/dist/docs/cart.md +135 -41
- package/dist/docs/challenge-return.md +135 -0
- package/dist/docs/client-preferences-fieldset.md +10 -5
- package/dist/docs/client-preferences.md +31 -8
- package/dist/docs/client-profile-fieldset.md +20 -6
- package/dist/docs/client-profile.md +12 -3
- package/dist/docs/copy-text.md +9 -7
- package/dist/docs/document-field.md +1 -1
- package/dist/docs/email-field.md +2 -1
- package/dist/docs/email-identification.md +12 -2
- package/dist/docs/footer-copyright.md +4 -2
- package/dist/docs/form.md +54 -18
- package/dist/docs/free-shipping-progress.md +6 -5
- package/dist/docs/identity-edit.md +8 -2
- package/dist/docs/identity-summary.md +18 -5
- package/dist/docs/installments.md +46 -32
- package/dist/docs/my-account-profile.md +16 -11
- package/dist/docs/navigation-link.md +5 -3
- package/dist/docs/order-cancel.md +3 -1
- package/dist/docs/order-delivery-address.md +7 -5
- package/dist/docs/order-delivery-group.md +1 -3
- package/dist/docs/order-details-back.md +1 -1
- package/dist/docs/order-details-header.md +1 -4
- package/dist/docs/order-invoice-download.md +60 -0
- package/dist/docs/order-list-row.md +1 -1
- package/dist/docs/order-list-search.md +13 -20
- package/dist/docs/order-list-views.md +11 -17
- package/dist/docs/order-list.md +12 -5
- package/dist/docs/order-payment.md +9 -7
- package/dist/docs/order-placed-date.md +1 -1
- package/dist/docs/order-placed-payment-summary.md +28 -15
- package/dist/docs/order-placed.md +49 -14
- package/dist/docs/order-progress.md +1 -1
- package/dist/docs/order-status-badge.md +20 -9
- package/dist/docs/order-summary.md +2 -2
- package/dist/docs/order-tracking-link.md +58 -0
- package/dist/docs/payment-method-badges.md +30 -4
- package/dist/docs/payment-methods.md +1 -1
- package/dist/docs/payment.md +36 -17
- package/dist/docs/phone-field.md +4 -4
- package/dist/docs/place-order.md +84 -36
- package/dist/docs/postal-code-field.md +3 -1
- package/dist/docs/pricing.md +21 -23
- package/dist/docs/product-gallery.md +19 -20
- package/dist/docs/product-information.md +13 -9
- package/dist/docs/product-list.md +7 -6
- package/dist/docs/product-shelf.md +0 -1
- package/dist/docs/promotion.md +4 -2
- package/dist/docs/region.md +23 -15
- package/dist/docs/save-card.md +7 -6
- package/dist/docs/saved-cards.md +65 -36
- package/dist/docs/shipping-address.md +57 -21
- package/dist/docs/shipping-simulator.md +53 -15
- package/dist/docs/sign-in-disclosure.md +176 -0
- package/dist/docs/sign-in-form.md +78 -47
- package/dist/docs/sign-in-redirect.md +4 -2
- package/dist/docs/sign-in.md +173 -0
- package/dist/docs/toast.md +15 -4
- package/dist/docs/variant-selector.md +15 -11
- package/dist/graphql/types.d.ts +4 -14
- package/dist/index.d.ts +2 -2
- package/dist/internal/client.d.ts +1 -3
- package/dist/internal/client.js +1 -1
- package/dist/internal/server.d.ts +7 -4
- package/dist/internal/server.js +7 -4
- package/dist/matter/access-code-sign-in/access-code-sign-in.d.ts +250 -66
- package/dist/matter/access-code-sign-in/access-code-sign-in.js +459 -188
- package/dist/matter/access-code-sign-in/access-code-sign-in.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-delete.d.ts +78 -40
- package/dist/matter/account-address-book/account-address-book-delete.js +86 -50
- package/dist/matter/account-address-book/account-address-book-delete.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-deliverability.d.ts +21 -4
- package/dist/matter/account-address-book/account-address-book-deliverability.js +45 -17
- package/dist/matter/account-address-book/account-address-book-deliverability.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-form-parts.d.ts +74 -19
- package/dist/matter/account-address-book/account-address-book-form-parts.js +77 -26
- package/dist/matter/account-address-book/account-address-book-form-parts.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-profile-notice.d.ts +27 -6
- package/dist/matter/account-address-book/account-address-book-profile-notice.js +55 -28
- package/dist/matter/account-address-book/account-address-book-profile-notice.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book.d.ts +67 -14
- package/dist/matter/account-address-book/account-address-book.js +74 -33
- package/dist/matter/account-address-book/account-address-book.js.map +1 -1
- package/dist/matter/account-address-book/account-address-country-switch.js +3 -3
- package/dist/matter/account-address-book/account-address-country-switch.js.map +1 -1
- package/dist/matter/account-address-book/account-address-country.d.ts +66 -20
- package/dist/matter/account-address-book/account-address-country.js +83 -49
- package/dist/matter/account-address-book/account-address-country.js.map +1 -1
- package/dist/matter/account-address-book/account-address-form-context.d.ts +8 -4
- package/dist/matter/account-address-book/account-address-form-context.js.map +1 -1
- package/dist/matter/account-address-book/account-address-form.d.ts +468 -45
- package/dist/matter/account-address-book/account-address-form.js +518 -155
- package/dist/matter/account-address-book/account-address-form.js.map +1 -1
- package/dist/matter/account-address-book/account-address-record.d.ts +27 -6
- package/dist/matter/account-address-book/account-address-record.js +32 -17
- package/dist/matter/account-address-book/account-address-record.js.map +1 -1
- package/dist/matter/account-menu/account-menu.d.ts +34 -17
- package/dist/matter/account-menu/account-menu.js +46 -54
- package/dist/matter/account-menu/account-menu.js.map +1 -1
- package/dist/matter/account-menu-identity/account-menu-identity.js +1 -1
- package/dist/matter/account-saved-cards/account-saved-cards.d.ts +108 -28
- package/dist/matter/account-saved-cards/account-saved-cards.js +177 -122
- package/dist/matter/account-saved-cards/account-saved-cards.js.map +1 -1
- package/dist/matter/billing-address/billing-address.d.ts +156 -74
- package/dist/matter/billing-address/billing-address.js +227 -156
- package/dist/matter/billing-address/billing-address.js.map +1 -1
- package/dist/matter/breadcrumb/breadcrumb.d.ts +21 -3
- package/dist/matter/breadcrumb/breadcrumb.js +24 -9
- package/dist/matter/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/matter/buy-button/buy-button.d.ts +8 -11
- package/dist/matter/buy-button/buy-button.js +10 -19
- package/dist/matter/buy-button/buy-button.js.map +1 -1
- package/dist/matter/card-entry/card-capture.js +12 -4
- package/dist/matter/card-entry/card-capture.js.map +1 -1
- package/dist/matter/card-entry/card-entry.d.ts +123 -32
- package/dist/matter/card-entry/card-entry.js +348 -221
- package/dist/matter/card-entry/card-entry.js.map +1 -1
- package/dist/matter/cart/cart-namespace.d.ts +7 -1
- package/dist/matter/cart/cart-namespace.js +7 -1
- package/dist/matter/cart/cart-namespace.js.map +1 -1
- package/dist/matter/cart/cart.d.ts +402 -61
- package/dist/matter/cart/cart.js +624 -153
- package/dist/matter/cart/cart.js.map +1 -1
- package/dist/matter/cart-destination/cart-destination.d.ts +30 -19
- package/dist/matter/cart-destination/cart-destination.js +160 -70
- package/dist/matter/cart-destination/cart-destination.js.map +1 -1
- package/dist/matter/cart-item/cart-item.d.ts +144 -17
- package/dist/matter/cart-item/cart-item.js +166 -49
- package/dist/matter/cart-item/cart-item.js.map +1 -1
- package/dist/matter/cart-item-compositions/cart-item-compositions.js +1 -1
- package/dist/matter/cart-item-compositions/cart-item-compositions.js.map +1 -1
- package/dist/matter/cart-item-customizations/cart-item-customizations.js +1 -1
- package/dist/matter/cart-item-customizations/cart-item-customizations.js.map +1 -1
- package/dist/matter/cart-item-discounts/cart-item-discounts.js +1 -1
- package/dist/matter/cart-item-discounts/cart-item-discounts.js.map +1 -1
- package/dist/matter/cart-item-seller-info/cart-item-seller-info.js +1 -1
- package/dist/matter/cart-item-seller-info/cart-item-seller-info.js.map +1 -1
- package/dist/matter/cart-item-variations/cart-item-variations.js +1 -1
- package/dist/matter/cart-item-variations/cart-item-variations.js.map +1 -1
- package/dist/matter/cart-totalizer/cart-totalizer.d.ts +43 -9
- package/dist/matter/cart-totalizer/cart-totalizer.js +46 -17
- package/dist/matter/cart-totalizer/cart-totalizer.js.map +1 -1
- package/dist/matter/challenge-return/challenge-return.d.ts +62 -0
- package/dist/matter/challenge-return/challenge-return.js +241 -0
- package/dist/matter/challenge-return/challenge-return.js.map +1 -0
- package/dist/matter/client-preferences/client-preferences-fieldset.d.ts +86 -17
- package/dist/matter/client-preferences/client-preferences-fieldset.js +126 -54
- package/dist/matter/client-preferences/client-preferences-fieldset.js.map +1 -1
- package/dist/matter/client-preferences/client-preferences.d.ts +50 -7
- package/dist/matter/client-preferences/client-preferences.js +84 -15
- package/dist/matter/client-preferences/client-preferences.js.map +1 -1
- package/dist/matter/client-profile/client-profile.d.ts +44 -9
- package/dist/matter/client-profile/client-profile.js +64 -24
- package/dist/matter/client-profile/client-profile.js.map +1 -1
- package/dist/matter/client-profile-form/client-profile-fieldset.d.ts +119 -22
- package/dist/matter/client-profile-form/client-profile-fieldset.js +161 -73
- package/dist/matter/client-profile-form/client-profile-fieldset.js.map +1 -1
- package/dist/matter/delivery-options/delivery-options-accordion.d.ts +49 -4
- package/dist/matter/delivery-options/delivery-options-accordion.js +67 -14
- package/dist/matter/delivery-options/delivery-options-accordion.js.map +1 -1
- package/dist/matter/delivery-options/delivery-options-controller.d.ts +69 -9
- package/dist/matter/delivery-options/delivery-options-controller.js +80 -14
- package/dist/matter/delivery-options/delivery-options-controller.js.map +1 -1
- package/dist/matter/delivery-options/delivery-options.d.ts +37 -2
- package/dist/matter/delivery-options/delivery-options.js +75 -12
- package/dist/matter/delivery-options/delivery-options.js.map +1 -1
- package/dist/matter/delivery-options/use-delivery-option-selection.d.ts +1 -0
- package/dist/matter/delivery-options/use-delivery-option-selection.js +1 -1
- package/dist/matter/delivery-options/use-delivery-option-selection.js.map +1 -1
- package/dist/matter/email-identification/email-identification.d.ts +25 -3
- package/dist/matter/email-identification/email-identification.js +49 -12
- package/dist/matter/email-identification/email-identification.js.map +1 -1
- package/dist/matter/free-shipping-progress/free-shipping-progress.d.ts +79 -7
- package/dist/matter/free-shipping-progress/free-shipping-progress.js +77 -20
- package/dist/matter/free-shipping-progress/free-shipping-progress.js.map +1 -1
- package/dist/matter/identity-edit/identity-edit.d.ts +52 -10
- package/dist/matter/identity-edit/identity-edit.js +47 -19
- package/dist/matter/identity-edit/identity-edit.js.map +1 -1
- package/dist/matter/identity-summary/identity-summary.d.ts +76 -22
- package/dist/matter/identity-summary/identity-summary.js +95 -45
- package/dist/matter/identity-summary/identity-summary.js.map +1 -1
- package/dist/matter/installments/installments-select.d.ts +98 -16
- package/dist/matter/installments/installments-select.js +156 -48
- package/dist/matter/installments/installments-select.js.map +1 -1
- package/dist/matter/installments/installments.d.ts +96 -16
- package/dist/matter/installments/installments.js +115 -40
- package/dist/matter/installments/installments.js.map +1 -1
- package/dist/matter/installments/use-installments-selection.d.ts +1 -0
- package/dist/matter/installments/use-installments-selection.js +8 -3
- package/dist/matter/installments/use-installments-selection.js.map +1 -1
- package/dist/matter/my-account-profile/my-account-profile.d.ts +358 -103
- package/dist/matter/my-account-profile/my-account-profile.js +370 -174
- package/dist/matter/my-account-profile/my-account-profile.js.map +1 -1
- package/dist/matter/order-cancel/order-cancel.d.ts +65 -19
- package/dist/matter/order-cancel/order-cancel.js +118 -51
- package/dist/matter/order-cancel/order-cancel.js.map +1 -1
- package/dist/matter/order-delivery-address/order-delivery-address.d.ts +8 -18
- package/dist/matter/order-delivery-address/order-delivery-address.js +14 -23
- package/dist/matter/order-delivery-address/order-delivery-address.js.map +1 -1
- package/dist/matter/order-delivery-group/order-delivery-group.d.ts +40 -24
- package/dist/matter/order-delivery-group/order-delivery-group.js +64 -74
- package/dist/matter/order-delivery-group/order-delivery-group.js.map +1 -1
- package/dist/matter/order-details-header/order-details-header.d.ts +32 -15
- package/dist/matter/order-details-header/order-details-header.js +66 -58
- package/dist/matter/order-details-header/order-details-header.js.map +1 -1
- package/dist/matter/order-invoice-download/order-invoice-download.d.ts +78 -0
- package/dist/matter/order-invoice-download/order-invoice-download.js +173 -0
- package/dist/matter/order-invoice-download/order-invoice-download.js.map +1 -0
- package/dist/matter/order-list/order-list.d.ts +164 -19
- package/dist/matter/order-list/order-list.js +229 -87
- package/dist/matter/order-list/order-list.js.map +1 -1
- package/dist/matter/order-list-row/order-list-row.d.ts +6 -1
- package/dist/matter/order-list-row/order-list-row.js +3 -2
- package/dist/matter/order-list-row/order-list-row.js.map +1 -1
- package/dist/matter/order-list-search/order-list-search.d.ts +18 -26
- package/dist/matter/order-list-search/order-list-search.js +30 -69
- package/dist/matter/order-list-search/order-list-search.js.map +1 -1
- package/dist/matter/order-list-views/order-list-views.d.ts +15 -22
- package/dist/matter/order-list-views/order-list-views.js +22 -68
- package/dist/matter/order-list-views/order-list-views.js.map +1 -1
- package/dist/matter/order-payment/order-payment.d.ts +33 -10
- package/dist/matter/order-payment/order-payment.js +44 -39
- package/dist/matter/order-payment/order-payment.js.map +1 -1
- package/dist/matter/order-placed/order-placed-deliveries.d.ts +144 -12
- package/dist/matter/order-placed/order-placed-deliveries.js +115 -40
- package/dist/matter/order-placed/order-placed-deliveries.js.map +1 -1
- package/dist/matter/order-placed/order-placed.d.ts +198 -31
- package/dist/matter/order-placed/order-placed.js +230 -139
- package/dist/matter/order-placed/order-placed.js.map +1 -1
- package/dist/matter/order-placed-date/order-placed-date.d.ts +5 -8
- package/dist/matter/order-placed-date/order-placed-date.js +7 -8
- package/dist/matter/order-placed-date/order-placed-date.js.map +1 -1
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.d.ts +90 -17
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js +93 -117
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js.map +1 -1
- package/dist/matter/order-progress/order-progress.d.ts +19 -8
- package/dist/matter/order-progress/order-progress.js +37 -45
- package/dist/matter/order-progress/order-progress.js.map +1 -1
- package/dist/matter/order-summary/order-summary.d.ts +19 -9
- package/dist/matter/order-summary/order-summary.js +38 -44
- package/dist/matter/order-summary/order-summary.js.map +1 -1
- package/dist/matter/order-tracking-link/order-tracking-link.d.ts +43 -0
- package/dist/matter/order-tracking-link/order-tracking-link.js +107 -0
- package/dist/matter/order-tracking-link/order-tracking-link.js.map +1 -0
- package/dist/matter/payment/payment-card-capture.js +17 -10
- package/dist/matter/payment/payment-card-capture.js.map +1 -1
- package/dist/matter/payment/payment-controller.d.ts +4 -2
- package/dist/matter/payment/payment-controller.js +30 -9
- package/dist/matter/payment/payment-controller.js.map +1 -1
- package/dist/matter/payment/payment-method-badges.js +1 -1
- package/dist/matter/payment/payment.d.ts +69 -19
- package/dist/matter/payment/payment.js +101 -35
- package/dist/matter/payment/payment.js.map +1 -1
- package/dist/matter/payment/use-payment-method-selection.d.ts +25 -4
- package/dist/matter/payment/use-payment-method-selection.js +94 -32
- package/dist/matter/payment/use-payment-method-selection.js.map +1 -1
- package/dist/matter/payment/use-payment-submit-gate.d.ts +14 -3
- package/dist/matter/payment/use-payment-submit-gate.js +47 -8
- package/dist/matter/payment/use-payment-submit-gate.js.map +1 -1
- package/dist/matter/place-order/place-order.d.ts +171 -57
- package/dist/matter/place-order/place-order.js +376 -185
- package/dist/matter/place-order/place-order.js.map +1 -1
- package/dist/matter/pricing/pricing.d.ts +152 -13
- package/dist/matter/pricing/pricing.js +153 -52
- package/dist/matter/pricing/pricing.js.map +1 -1
- package/dist/matter/product-information/product-information.d.ts +27 -4
- package/dist/matter/product-information/product-information.js +32 -15
- package/dist/matter/product-information/product-information.js.map +1 -1
- package/dist/matter/product-list/product-list.d.ts +24 -6
- package/dist/matter/product-list/product-list.js +32 -26
- package/dist/matter/product-list/product-list.js.map +1 -1
- package/dist/matter/product-shelf/product-shelf.d.ts +1 -3
- package/dist/matter/product-shelf/product-shelf.js +2 -15
- package/dist/matter/product-shelf/product-shelf.js.map +1 -1
- package/dist/matter/region/region.d.ts +33 -16
- package/dist/matter/region/region.js +59 -52
- package/dist/matter/region/region.js.map +1 -1
- package/dist/matter/save-card/save-card.d.ts +43 -8
- package/dist/matter/save-card/save-card.js +61 -23
- package/dist/matter/save-card/save-card.js.map +1 -1
- package/dist/matter/saved-cards/saved-cards.d.ts +113 -21
- package/dist/matter/saved-cards/saved-cards.js +349 -77
- package/dist/matter/saved-cards/saved-cards.js.map +1 -1
- package/dist/matter/shipping-address/address-payload.js +25 -0
- package/dist/matter/shipping-address/address-payload.js.map +1 -0
- package/dist/matter/shipping-address/country-descriptors.js +71 -71
- package/dist/matter/shipping-address/country-descriptors.js.map +1 -1
- package/dist/matter/shipping-address/library-country-descriptors.js +136 -0
- package/dist/matter/shipping-address/library-country-descriptors.js.map +1 -0
- package/dist/matter/shipping-address/shipping-address.d.ts +312 -45
- package/dist/matter/shipping-address/shipping-address.js +443 -188
- package/dist/matter/shipping-address/shipping-address.js.map +1 -1
- package/dist/matter/shipping-simulator/shipping-simulator.d.ts +250 -24
- package/dist/matter/shipping-simulator/shipping-simulator.js +257 -51
- package/dist/matter/shipping-simulator/shipping-simulator.js.map +1 -1
- package/dist/matter/sign-in/sign-in.d.ts +108 -0
- package/dist/matter/sign-in/sign-in.js +285 -0
- package/dist/matter/sign-in/sign-in.js.map +1 -0
- package/dist/matter/sign-in-disclosure/sign-in-disclosure.d.ts +81 -0
- package/dist/matter/sign-in-disclosure/sign-in-disclosure.js +232 -0
- package/dist/matter/sign-in-disclosure/sign-in-disclosure.js.map +1 -0
- package/dist/matter/sign-in-form/sign-in-form.d.ts +93 -62
- package/dist/matter/sign-in-form/sign-in-form.js +134 -144
- package/dist/matter/sign-in-form/sign-in-form.js.map +1 -1
- package/dist/particles/binding-switcher/binding-switcher.d.ts +29 -8
- package/dist/particles/binding-switcher/binding-switcher.js +37 -26
- package/dist/particles/binding-switcher/binding-switcher.js.map +1 -1
- package/dist/particles/card-summary/card-summary.d.ts +38 -8
- package/dist/particles/card-summary/card-summary.js +55 -22
- package/dist/particles/card-summary/card-summary.js.map +1 -1
- package/dist/particles/carousel/carousel.d.ts +99 -11
- package/dist/particles/carousel/carousel.js +103 -35
- package/dist/particles/carousel/carousel.js.map +1 -1
- package/dist/particles/copy-text/copy-text.js +5 -15
- package/dist/particles/copy-text/copy-text.js.map +1 -1
- package/dist/particles/dialog/dialog.d.ts +14 -6
- package/dist/particles/dialog/dialog.js +6 -3
- package/dist/particles/dialog/dialog.js.map +1 -1
- package/dist/particles/drawer/drawer.js +1 -1
- package/dist/particles/drawer/drawer.js.map +1 -1
- package/dist/particles/email-field/email-field.d.ts +2 -1
- package/dist/particles/email-field/email-field.js +2 -1
- package/dist/particles/email-field/email-field.js.map +1 -1
- package/dist/particles/footer-link-group/footer-link-group.js +1 -0
- package/dist/particles/footer-link-group/footer-link-group.js.map +1 -1
- package/dist/particles/form/form.d.ts +85 -13
- package/dist/particles/form/form.js +91 -42
- package/dist/particles/form/form.js.map +1 -1
- package/dist/particles/gallery/gallery.d.ts +129 -12
- package/dist/particles/gallery/gallery.js +121 -34
- package/dist/particles/gallery/gallery.js.map +1 -1
- package/dist/particles/order-details-back/order-details-back.d.ts +5 -3
- package/dist/particles/order-details-back/order-details-back.js +8 -10
- package/dist/particles/order-details-back/order-details-back.js.map +1 -1
- package/dist/particles/order-status-badge/order-status-badge.d.ts +3 -3
- package/dist/particles/order-status-badge/order-status-badge.js +4 -20
- package/dist/particles/order-status-badge/order-status-badge.js.map +1 -1
- package/dist/particles/password-field/password-field.d.ts +1 -1
- package/dist/particles/password-field/password-field.js +2 -4
- package/dist/particles/password-field/password-field.js.map +1 -1
- package/dist/particles/phone-field/phone-field.d.ts +4 -4
- package/dist/particles/phone-field/phone-field.js +8 -11
- package/dist/particles/phone-field/phone-field.js.map +1 -1
- package/dist/particles/spinner/spinner.d.ts +24 -4
- package/dist/particles/spinner/spinner.js +25 -9
- package/dist/particles/spinner/spinner.js.map +1 -1
- package/dist/particles/switch/switch.d.ts +4 -1
- package/dist/particles/switch/switch.js +3 -1
- package/dist/particles/switch/switch.js.map +1 -1
- package/dist/particles/toast/toast.d.ts +29 -3
- package/dist/particles/toast/toast.js +34 -10
- package/dist/particles/toast/toast.js.map +1 -1
- package/dist/schema.graphql +164 -56
- package/dist/sdk/address/address-fields.js +4 -4
- package/dist/sdk/address/address-fields.js.map +1 -1
- package/dist/sdk/address/constants.js +1 -6
- package/dist/sdk/address/constants.js.map +1 -1
- package/dist/sdk/address/messages.js +44 -44
- package/dist/sdk/address/messages.js.map +1 -1
- package/dist/sdk/address/postal-code.js +15 -2
- package/dist/sdk/address/postal-code.js.map +1 -1
- package/dist/sdk/address/types.d.ts +5 -3
- package/dist/sdk/address/validate-address.js +3 -3
- package/dist/sdk/address/validate-address.js.map +1 -1
- package/dist/sdk/analytics/use-analytics-actions.d.ts +1 -1
- package/dist/sdk/analytics/use-analytics-actions.js.map +1 -1
- package/dist/sdk/cart/use-cart-actions.js.map +1 -1
- package/dist/sdk/data/index.js +2 -2
- package/dist/sdk/data/reactive-list-item-data-provider.js +2 -2
- package/dist/sdk/generated/gql.js +1 -1
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +20 -5
- package/dist/sdk/generated/graphql.js +6 -0
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/i18n/format-error-code.js +23 -0
- package/dist/sdk/i18n/format-error-code.js.map +1 -0
- package/dist/sdk/i18n/message-formatter.d.ts +22 -0
- package/dist/sdk/i18n/message-formatter.js +140 -0
- package/dist/sdk/i18n/message-formatter.js.map +1 -0
- package/dist/sdk/i18n/use-message-formatter.d.ts +8 -0
- package/dist/sdk/i18n/use-message-formatter.js +18 -0
- package/dist/sdk/i18n/use-message-formatter.js.map +1 -0
- package/dist/sdk/identity/use-identity-actions.js.map +1 -1
- package/dist/sdk/navigation/redirect.d.ts +2 -0
- package/dist/sdk/navigation/redirect.js +19 -1
- package/dist/sdk/navigation/redirect.js.map +1 -1
- package/dist/sdk/navigation/types.d.ts +13 -0
- package/dist/sdk/payment/bin-format.js +20 -0
- package/dist/sdk/payment/bin-format.js.map +1 -0
- package/dist/sdk/payment/challenge-return.js +37 -0
- package/dist/sdk/payment/challenge-return.js.map +1 -0
- package/dist/sdk/payment/confirmation-last-four.js +39 -0
- package/dist/sdk/payment/confirmation-last-four.js.map +1 -0
- package/dist/sdk/payment/gateway.d.ts +1 -1
- package/dist/sdk/payment/gateway.js +8 -2
- package/dist/sdk/payment/gateway.js.map +1 -1
- package/dist/sdk/payment/operations.d.ts +1 -0
- package/dist/sdk/payment/operations.js +28 -6
- package/dist/sdk/payment/operations.js.map +1 -1
- package/dist/sdk/payment/resumed-purchase.d.ts +1 -0
- package/dist/sdk/payment/resumed-purchase.js +119 -0
- package/dist/sdk/payment/resumed-purchase.js.map +1 -0
- package/dist/sdk/payment/security-code-mask.js +16 -23
- package/dist/sdk/payment/security-code-mask.js.map +1 -1
- package/dist/sdk/payment/submission-registry.js +6 -2
- package/dist/sdk/payment/submission-registry.js.map +1 -1
- package/dist/sdk/payment/use-payment-actions.d.ts +18 -3
- package/dist/sdk/payment/use-payment-actions.js +23 -3
- package/dist/sdk/payment/use-payment-actions.js.map +1 -1
- package/dist/sdk/payment/use-place-order.d.ts +10 -2
- package/dist/sdk/payment/use-place-order.js +138 -76
- package/dist/sdk/payment/use-place-order.js.map +1 -1
- package/dist/sdk/provider/storefront-provider.d.ts +1 -7
- package/dist/sdk/provider/storefront-provider.js +4 -11
- package/dist/sdk/provider/storefront-provider.js.map +1 -1
- package/dist/sdk/seo/entity-landing.d.ts +24 -0
- package/dist/sdk/seo/entity-landing.js +30 -0
- package/dist/sdk/seo/entity-landing.js.map +1 -0
- package/dist/sdk/seo/page-alternates.d.ts +3 -2
- package/dist/sdk/seo/page-alternates.js +4 -2
- package/dist/sdk/seo/page-alternates.js.map +1 -1
- package/dist/sdk/seo/search-landing.d.ts +42 -0
- package/dist/sdk/seo/search-landing.js +85 -0
- package/dist/sdk/seo/search-landing.js.map +1 -0
- package/dist/sdk/session/mock-session.d.ts +9 -0
- package/dist/sdk/session/mock-session.js +31 -0
- package/dist/sdk/session/mock-session.js.map +1 -0
- package/dist/sdk/session/read-server-session.d.ts +3 -0
- package/dist/sdk/session/read-server-session.js +5 -0
- package/dist/sdk/session/read-server-session.js.map +1 -1
- package/dist/sdk/session/return-path-segment.d.ts +10 -0
- package/dist/sdk/session/return-path-segment.js +15 -0
- package/dist/sdk/session/return-path-segment.js.map +1 -0
- package/dist/sdk/session/use-session-actions.js.map +1 -1
- package/dist/sdk/shipping/use-cart-shipping-simulation.js.map +1 -1
- package/dist/sdk/shipping/use-shipping-actions.js.map +1 -1
- package/dist/sdk/shipping/use-shipping-simulation.js.map +1 -1
- package/dist/utils/safe-href.d.ts +2 -0
- package/package.json +4 -3
- package/skills/storefront-asset/SKILL.md +2 -2
- package/skills/storefront-asset/references/api-side.md +27 -14
- package/skills/storefront-asset/references/findings.md +5 -2
- package/src/styles/tailwind.css +8 -0
- package/dist/matter/shipping-address/country-descriptors.d.ts +0 -1
- package/dist/message-locales.json +0 -7
- package/dist/sdk/i18n/client.d.ts +0 -4
- package/dist/sdk/i18n/client.js +0 -4
- package/dist/sdk/i18n/locales.d.ts +0 -8
- package/dist/sdk/i18n/locales.js +0 -57
- package/dist/sdk/i18n/locales.js.map +0 -1
- package/dist/sdk/i18n/messages/en-US.js +0 -183
- package/dist/sdk/i18n/messages/en-US.js.map +0 -1
- package/dist/sdk/i18n/messages/en-US.json +0 -178
- package/dist/sdk/i18n/messages/en-US.json.d.ts +0 -182
- package/dist/sdk/i18n/messages/es-ES.js +0 -183
- package/dist/sdk/i18n/messages/es-ES.js.map +0 -1
- package/dist/sdk/i18n/messages/es-ES.json +0 -178
- package/dist/sdk/i18n/messages/pt-BR.js +0 -183
- package/dist/sdk/i18n/messages/pt-BR.js.map +0 -1
- package/dist/sdk/i18n/messages/pt-BR.json +0 -178
- package/dist/sdk/i18n/provider.d.ts +0 -1
- package/dist/sdk/i18n/provider.js +0 -30
- package/dist/sdk/i18n/provider.js.map +0 -1
- package/dist/sdk/i18n/server.d.ts +0 -28
- package/dist/sdk/i18n/server.js +0 -59
- package/dist/sdk/i18n/server.js.map +0 -1
- package/dist/utils/resolve-authored-copy.js +0 -18
- package/dist/utils/resolve-authored-copy.js.map +0 -1
- package/dist/utils/substitute-template.js +0 -33
- package/dist/utils/substitute-template.js.map +0 -1
package/dist/schema.graphql
CHANGED
|
@@ -326,9 +326,10 @@ extend type Query {
|
|
|
326
326
|
|
|
327
327
|
extend type Query {
|
|
328
328
|
"""
|
|
329
|
-
Resolve the active cart from the request context
|
|
330
|
-
|
|
331
|
-
the
|
|
329
|
+
Resolve the active cart from the request context: the order form id in the
|
|
330
|
+
`checkout.vtex.com=__ofid=<id>` cookie. When no cart context is present, a
|
|
331
|
+
new cart is created and the `checkout.vtex.com` cookie that names it is set
|
|
332
|
+
on the response.
|
|
332
333
|
"""
|
|
333
334
|
cart: Cart!
|
|
334
335
|
}
|
|
@@ -344,8 +345,8 @@ extend type Query {
|
|
|
344
345
|
input: ShippingSimulateInput!
|
|
345
346
|
): ShippingSimulationPayload!
|
|
346
347
|
"""
|
|
347
|
-
Simulate shipping options for the entire active cart. Reads the cart
|
|
348
|
-
|
|
348
|
+
Simulate shipping options for the entire active cart. Reads the cart named by the
|
|
349
|
+
`checkout.vtex.com` cookie and simulates all of its items against the
|
|
349
350
|
destination, returning the options common to every item with prices summed
|
|
350
351
|
across items. Never mints a cart: absent context returns a MISSING_CART_CONTEXT
|
|
351
352
|
userError.
|
|
@@ -375,8 +376,8 @@ extend type Query {
|
|
|
375
376
|
"""
|
|
376
377
|
shipping: Shipping!
|
|
377
378
|
"""
|
|
378
|
-
Resolve the shopper's session state from the active order form (
|
|
379
|
-
|
|
379
|
+
Resolve the shopper's session state from the active order form (the one the
|
|
380
|
+
`checkout.vtex.com` cookie names). Projects from the same order form fetch as `cart`.
|
|
380
381
|
"""
|
|
381
382
|
session: Session!
|
|
382
383
|
}
|
|
@@ -390,16 +391,17 @@ extend type Query {
|
|
|
390
391
|
|
|
391
392
|
extend type Query {
|
|
392
393
|
"""
|
|
393
|
-
A settled order's payment recap, keyed on the order
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
394
|
+
A settled order's payment recap, keyed on the order's Node ID. Null when the
|
|
395
|
+
id is malformed, of another type, or does not resolve to a settled order —
|
|
396
|
+
never a fabricated empty projection (contrast Query.payment, which always
|
|
397
|
+
resolves).
|
|
397
398
|
"""
|
|
398
399
|
order(
|
|
399
400
|
"""
|
|
400
|
-
The order
|
|
401
|
+
The Relay Node ID of the order: `Order.id`, or `orderNodeId` from paymentStartTransaction /
|
|
402
|
+
paymentGatewayCallback.
|
|
401
403
|
"""
|
|
402
|
-
|
|
404
|
+
id: ID!
|
|
403
405
|
): Order
|
|
404
406
|
}
|
|
405
407
|
|
|
@@ -662,7 +664,7 @@ extend type Mutation {
|
|
|
662
664
|
input: PaymentMethodSelectInput!
|
|
663
665
|
): PaymentMethodSelectPayload!
|
|
664
666
|
"""
|
|
665
|
-
Select an installment count for the currently-selected method.
|
|
667
|
+
Select an installment count for the currently-selected method. The returned cart's `total` is the greater of the order form's value and the selected payment's value.
|
|
666
668
|
"""
|
|
667
669
|
paymentInstallmentSelect(
|
|
668
670
|
"""Installment count to select."""
|
|
@@ -1246,7 +1248,7 @@ type Rating {
|
|
|
1246
1248
|
A curated group of products. Maps to VTEX Collection (Beta) entity.
|
|
1247
1249
|
Collections can be used for seasonal promotions, editorial picks, etc.
|
|
1248
1250
|
"""
|
|
1249
|
-
type Collection implements Node {
|
|
1251
|
+
type Collection implements Node @cacheControl(maxAge: 300, scope: PUBLIC) {
|
|
1250
1252
|
"""Globally unique identifier."""
|
|
1251
1253
|
id: ID!
|
|
1252
1254
|
"""Collection title."""
|
|
@@ -1812,7 +1814,13 @@ type Cart implements Node @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
|
1812
1814
|
items: [CartItem!]!
|
|
1813
1815
|
"""Aggregated totals (items, shipping, discounts, etc.)."""
|
|
1814
1816
|
totalizers: [CartTotalizer!]!
|
|
1815
|
-
"""
|
|
1817
|
+
"""
|
|
1818
|
+
Total cart value: the greater of the order form's value and the selected payment's value.
|
|
1819
|
+
While an installment tier with interest is selected, the payment's value is the larger of
|
|
1820
|
+
the two and the total includes the interest, so it matches what the transaction charges.
|
|
1821
|
+
Without a selected payment it is the order form's value. Totalizer lines do not include an
|
|
1822
|
+
interest line, so they may not add up to this total.
|
|
1823
|
+
"""
|
|
1816
1824
|
total: Money!
|
|
1817
1825
|
"""
|
|
1818
1826
|
Server messages from cart processing (e.g. promotions applied, stock warnings).
|
|
@@ -2307,7 +2315,7 @@ input CartCouponRemoveInput {
|
|
|
2307
2315
|
|
|
2308
2316
|
"""Error codes for cart item add operations."""
|
|
2309
2317
|
enum CartItemAddErrorCode {
|
|
2310
|
-
"""No cart context was provided (
|
|
2318
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2311
2319
|
MISSING_CART_CONTEXT
|
|
2312
2320
|
"""The quantity must be a positive integer."""
|
|
2313
2321
|
INVALID_QUANTITY
|
|
@@ -2321,7 +2329,7 @@ enum CartItemAddErrorCode {
|
|
|
2321
2329
|
|
|
2322
2330
|
"""Error codes for cart item remove operations."""
|
|
2323
2331
|
enum CartItemRemoveErrorCode {
|
|
2324
|
-
"""No cart context was provided (
|
|
2332
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2325
2333
|
MISSING_CART_CONTEXT
|
|
2326
2334
|
"""The specified line was not found in the cart."""
|
|
2327
2335
|
ITEM_NOT_FOUND
|
|
@@ -2333,7 +2341,7 @@ enum CartItemRemoveErrorCode {
|
|
|
2333
2341
|
|
|
2334
2342
|
"""Error codes for cart items batch remove operations."""
|
|
2335
2343
|
enum CartItemsRemoveErrorCode {
|
|
2336
|
-
"""No cart context was provided (
|
|
2344
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2337
2345
|
MISSING_CART_CONTEXT
|
|
2338
2346
|
"""None of the specified lines were found in the cart."""
|
|
2339
2347
|
ITEM_NOT_FOUND
|
|
@@ -2347,7 +2355,7 @@ enum CartItemsRemoveErrorCode {
|
|
|
2347
2355
|
|
|
2348
2356
|
"""Error codes for cart item quantity increase operations."""
|
|
2349
2357
|
enum CartItemQuantityIncreaseErrorCode {
|
|
2350
|
-
"""No cart context was provided (
|
|
2358
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2351
2359
|
MISSING_CART_CONTEXT
|
|
2352
2360
|
"""The quantity must be a positive integer."""
|
|
2353
2361
|
INVALID_QUANTITY
|
|
@@ -2361,7 +2369,7 @@ enum CartItemQuantityIncreaseErrorCode {
|
|
|
2361
2369
|
|
|
2362
2370
|
"""Error codes for cart item quantity decrease operations."""
|
|
2363
2371
|
enum CartItemQuantityDecreaseErrorCode {
|
|
2364
|
-
"""No cart context was provided (
|
|
2372
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2365
2373
|
MISSING_CART_CONTEXT
|
|
2366
2374
|
"""The quantity must be a positive integer."""
|
|
2367
2375
|
INVALID_QUANTITY
|
|
@@ -2455,7 +2463,7 @@ type CartItemQuantityDecreasePayload {
|
|
|
2455
2463
|
|
|
2456
2464
|
"""Error codes for cart coupon apply operations."""
|
|
2457
2465
|
enum CartCouponApplyErrorCode {
|
|
2458
|
-
"""No cart context was provided (
|
|
2466
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2459
2467
|
MISSING_CART_CONTEXT
|
|
2460
2468
|
"""The cart was not found."""
|
|
2461
2469
|
CART_NOT_FOUND
|
|
@@ -2472,7 +2480,7 @@ enum CartCouponApplyErrorCode {
|
|
|
2472
2480
|
|
|
2473
2481
|
"""Error codes for cart coupon remove operations."""
|
|
2474
2482
|
enum CartCouponRemoveErrorCode {
|
|
2475
|
-
"""No cart context was provided (
|
|
2483
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2476
2484
|
MISSING_CART_CONTEXT
|
|
2477
2485
|
"""The cart was not found."""
|
|
2478
2486
|
CART_NOT_FOUND
|
|
@@ -2518,7 +2526,7 @@ type CartCouponRemovePayload {
|
|
|
2518
2526
|
|
|
2519
2527
|
"""Error codes for cart validation operations."""
|
|
2520
2528
|
enum CartValidateErrorCode {
|
|
2521
|
-
"""No cart context was provided (
|
|
2529
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2522
2530
|
MISSING_CART_CONTEXT
|
|
2523
2531
|
"""The cart was not found."""
|
|
2524
2532
|
CART_NOT_FOUND
|
|
@@ -2546,7 +2554,7 @@ type CartValidatePayload {
|
|
|
2546
2554
|
|
|
2547
2555
|
"""Error codes for moving a cart onto the active sales channel."""
|
|
2548
2556
|
enum CartSalesChannelSyncErrorCode {
|
|
2549
|
-
"""No cart context was provided (
|
|
2557
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2550
2558
|
MISSING_CART_CONTEXT
|
|
2551
2559
|
"""The cart was not found."""
|
|
2552
2560
|
CART_NOT_FOUND
|
|
@@ -2698,7 +2706,7 @@ enum ShippingSimulateErrorCode {
|
|
|
2698
2706
|
"""The provided seller ID is not a valid Seller Node ID."""
|
|
2699
2707
|
INVALID_SELLER_ID
|
|
2700
2708
|
"""
|
|
2701
|
-
No active cart in context: the cartShippingSimulation query requires
|
|
2709
|
+
No active cart in context: the cartShippingSimulation query requires the `checkout.vtex.com` cart cookie and never mints a cart.
|
|
2702
2710
|
"""
|
|
2703
2711
|
MISSING_CART_CONTEXT
|
|
2704
2712
|
"""
|
|
@@ -2742,8 +2750,8 @@ input ShippingSimulateInput {
|
|
|
2742
2750
|
|
|
2743
2751
|
"""
|
|
2744
2752
|
Input for simulating shipping for the whole active cart. Carries the
|
|
2745
|
-
destination only; items are sourced from the cart
|
|
2746
|
-
|
|
2753
|
+
destination only; items are sourced from the cart named by the
|
|
2754
|
+
`checkout.vtex.com` cookie, so there is no variant, quantity, or seller.
|
|
2747
2755
|
"""
|
|
2748
2756
|
input CartShippingSimulateInput {
|
|
2749
2757
|
"""Postal code of the delivery destination."""
|
|
@@ -2832,7 +2840,7 @@ input ClientPreferencesUpdateInput {
|
|
|
2832
2840
|
|
|
2833
2841
|
"""Error codes for client profile update operations."""
|
|
2834
2842
|
enum ClientProfileUpdateErrorCode {
|
|
2835
|
-
"""No cart context was provided (
|
|
2843
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2836
2844
|
MISSING_CART_CONTEXT
|
|
2837
2845
|
"""The cart was not found."""
|
|
2838
2846
|
CART_NOT_FOUND
|
|
@@ -2842,7 +2850,7 @@ enum ClientProfileUpdateErrorCode {
|
|
|
2842
2850
|
|
|
2843
2851
|
"""Error codes for client preferences update operations."""
|
|
2844
2852
|
enum ClientPreferencesUpdateErrorCode {
|
|
2845
|
-
"""No cart context was provided (
|
|
2853
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
2846
2854
|
MISSING_CART_CONTEXT
|
|
2847
2855
|
"""The cart was not found."""
|
|
2848
2856
|
CART_NOT_FOUND
|
|
@@ -3001,7 +3009,7 @@ input ShippingAddressUpdateInput {
|
|
|
3001
3009
|
|
|
3002
3010
|
"""Error codes for shipping address update operations."""
|
|
3003
3011
|
enum ShippingAddressUpdateErrorCode {
|
|
3004
|
-
"""No cart context was provided (
|
|
3012
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
3005
3013
|
MISSING_CART_CONTEXT
|
|
3006
3014
|
"""The cart was not found."""
|
|
3007
3015
|
CART_NOT_FOUND
|
|
@@ -3048,7 +3056,7 @@ input ShippingOptionSelectInput {
|
|
|
3048
3056
|
|
|
3049
3057
|
"""Error codes for shipping option select operations."""
|
|
3050
3058
|
enum ShippingOptionSelectErrorCode {
|
|
3051
|
-
"""No cart context was provided (
|
|
3059
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
3052
3060
|
MISSING_CART_CONTEXT
|
|
3053
3061
|
"""The cart was not found."""
|
|
3054
3062
|
CART_NOT_FOUND
|
|
@@ -3180,7 +3188,17 @@ type PaymentMethod {
|
|
|
3180
3188
|
"""
|
|
3181
3189
|
name: String!
|
|
3182
3190
|
"""
|
|
3183
|
-
|
|
3191
|
+
The vendor-neutral kind of this method: the closed set `PaymentType` defines. Derived
|
|
3192
|
+
from `groupName`; `OTHER` covers every group that is not mapped, including store-specific
|
|
3193
|
+
groups and wallets other than PayPal. Never null. Read it to decide which payment UI a
|
|
3194
|
+
method gets; read `groupName` to tell two `OTHER` methods apart.
|
|
3195
|
+
"""
|
|
3196
|
+
type: PaymentType!
|
|
3197
|
+
"""
|
|
3198
|
+
The payment-system group exactly as the order form carries it (e.g. "creditCardPaymentGroup",
|
|
3199
|
+
"custom201PaymentGroupPaymentGroup"). Store-configured and open-ended, so kept as a string, not an
|
|
3200
|
+
enum. It is the gateway transport value: the Send Payments request needs this literal, and the
|
|
3201
|
+
gateway rejects anything else. Prefer `type` to classify a method.
|
|
3184
3202
|
"""
|
|
3185
3203
|
groupName: String!
|
|
3186
3204
|
"""
|
|
@@ -3217,13 +3235,26 @@ type PaymentMethodValidator {
|
|
|
3217
3235
|
cvvMask: String
|
|
3218
3236
|
"""Regex validating the security-code (CVV) input. Null when unused."""
|
|
3219
3237
|
cvvRegex: String
|
|
3220
|
-
"""
|
|
3238
|
+
"""
|
|
3239
|
+
Whether this method requires the security code (CVV). False when the order form carries no
|
|
3240
|
+
validator for the method: a method with no validator, such as Cash or Bank Invoice,
|
|
3241
|
+
legitimately resolves false, and this field cannot tell that from an upstream that omitted the flag.
|
|
3242
|
+
"""
|
|
3221
3243
|
cvvRequired: Boolean!
|
|
3222
|
-
"""
|
|
3244
|
+
"""
|
|
3245
|
+
Whether this method requires an expiration date. False when the order form carries no
|
|
3246
|
+
validator for the method: a method with no validator, such as Cash, legitimately resolves false.
|
|
3247
|
+
"""
|
|
3223
3248
|
expirationRequired: Boolean!
|
|
3224
|
-
"""
|
|
3249
|
+
"""
|
|
3250
|
+
Whether this method requires the cardholder name. False when the order form carries no
|
|
3251
|
+
validator for the method: a method with no validator, such as Cash, legitimately resolves false.
|
|
3252
|
+
"""
|
|
3225
3253
|
holderNameRequired: Boolean!
|
|
3226
|
-
"""
|
|
3254
|
+
"""
|
|
3255
|
+
Whether this method requires a billing address. False when the order form carries no
|
|
3256
|
+
validator for the method: a method with no validator, such as Cash, legitimately resolves false.
|
|
3257
|
+
"""
|
|
3227
3258
|
billingAddressRequired: Boolean!
|
|
3228
3259
|
"""
|
|
3229
3260
|
Whether a cardholder document field is displayable for this method. Distinct from documentRequired.
|
|
@@ -3238,19 +3269,29 @@ type PaymentMethodValidator {
|
|
|
3238
3269
|
"""
|
|
3239
3270
|
One installment tier: a specific installment count at a given per-installment
|
|
3240
3271
|
value and total. Keyed by count within its parent PaymentInstallmentOption — a
|
|
3241
|
-
non-normalized value object (ADR-0012).
|
|
3272
|
+
non-normalized value object (ADR-0012). Field names match the catalog's
|
|
3273
|
+
`Installment`, so one selection reads either; nullability of `interestRate` and
|
|
3274
|
+
`interestFree` differs by design.
|
|
3242
3275
|
"""
|
|
3243
3276
|
type PaymentInstallment {
|
|
3244
3277
|
"""Number of installments (1 = single payment, no interest)."""
|
|
3245
3278
|
count: Int!
|
|
3246
3279
|
"""Amount per installment."""
|
|
3247
3280
|
value: Money!
|
|
3248
|
-
"""
|
|
3249
|
-
|
|
3281
|
+
"""
|
|
3282
|
+
The whole-plan amount: the total across all installments, including any interest.
|
|
3283
|
+
"""
|
|
3284
|
+
totalAmount: Money!
|
|
3250
3285
|
"""
|
|
3251
3286
|
Interest rate in hundredths of a percent, exactly as the VTEX order form carries it (100 = 1%; 0 = interest-free).
|
|
3287
|
+
Null when the order form did not say what the rate is — which is not the same as 0 (interest-free).
|
|
3252
3288
|
"""
|
|
3253
|
-
interestRate: Float
|
|
3289
|
+
interestRate: Float
|
|
3290
|
+
"""
|
|
3291
|
+
Whether this tier is interest-free: true when the rate is 0, false for any other rate. Null exactly
|
|
3292
|
+
when `interestRate` is null. The synthesized `count: 1` tier is 0 and true, a stated fact.
|
|
3293
|
+
"""
|
|
3294
|
+
interestFree: Boolean
|
|
3254
3295
|
}
|
|
3255
3296
|
|
|
3256
3297
|
"""
|
|
@@ -3293,20 +3334,31 @@ type SavedCard @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
|
3293
3334
|
The saved card's payment-system id (PaymentMethod.id), for cross-referencing validator config and installment options.
|
|
3294
3335
|
"""
|
|
3295
3336
|
methodId: String!
|
|
3296
|
-
"""
|
|
3337
|
+
"""
|
|
3338
|
+
Card network / issuer display name (e.g. "Visa"). An empty string when the order form carries no
|
|
3339
|
+
network name for the card: nothing to show.
|
|
3340
|
+
"""
|
|
3297
3341
|
network: String!
|
|
3298
|
-
"""
|
|
3342
|
+
"""
|
|
3343
|
+
Last four digits of the card number. An empty string when the order form carries no card number
|
|
3344
|
+
for the account: nothing to show.
|
|
3345
|
+
"""
|
|
3299
3346
|
lastFourDigits: String!
|
|
3300
|
-
"""
|
|
3347
|
+
"""
|
|
3348
|
+
BIN of the saved card, for installment-option lookup by network. An empty string when the order
|
|
3349
|
+
form carries no BIN for the account: nothing to look up.
|
|
3350
|
+
"""
|
|
3301
3351
|
bin: String!
|
|
3302
3352
|
"""Shopper-assigned custom label, when set."""
|
|
3303
3353
|
label: String
|
|
3304
3354
|
"""
|
|
3305
|
-
Whether the card is expired. Expired cards are still returned
|
|
3355
|
+
Whether the card is expired. Expired cards are still returned. Fails closed: true when the
|
|
3356
|
+
order form does not report the expiry, so a card of unknown expiry is never offered as usable.
|
|
3306
3357
|
"""
|
|
3307
3358
|
expired: Boolean!
|
|
3308
3359
|
"""
|
|
3309
|
-
Whether completing payment with this card requires the shopper to enter the CVV.
|
|
3360
|
+
Whether completing payment with this card requires the shopper to enter the CVV. True is the
|
|
3361
|
+
default: it is what the field resolves to when the order form omits `useCvvForAuthorization`.
|
|
3310
3362
|
"""
|
|
3311
3363
|
cvvRequired: Boolean!
|
|
3312
3364
|
}
|
|
@@ -3323,7 +3375,9 @@ input PaymentMethodSelectInput {
|
|
|
3323
3375
|
"""The method to select (PaymentMethod.id)."""
|
|
3324
3376
|
methodId: String!
|
|
3325
3377
|
"""
|
|
3326
|
-
A newly-entered card's BIN, once
|
|
3378
|
+
A newly-entered card's BIN, once the full 8 digits are known: omit it, send null or "" until then.
|
|
3379
|
+
Anything else is rejected with INVALID_BIN_FORMAT. With an accountId, the saved card's own BIN (1 to 8
|
|
3380
|
+
digits) may be restated. Omit for a non-card method.
|
|
3327
3381
|
"""
|
|
3328
3382
|
bin: String
|
|
3329
3383
|
"""
|
|
@@ -3334,7 +3388,7 @@ input PaymentMethodSelectInput {
|
|
|
3334
3388
|
|
|
3335
3389
|
"""Error codes for the paymentMethodSelect mutation."""
|
|
3336
3390
|
enum PaymentMethodSelectErrorCode {
|
|
3337
|
-
"""No cart context was provided (
|
|
3391
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
3338
3392
|
MISSING_CART_CONTEXT
|
|
3339
3393
|
"""The cart was not found."""
|
|
3340
3394
|
CART_NOT_FOUND
|
|
@@ -3345,7 +3399,8 @@ enum PaymentMethodSelectErrorCode {
|
|
|
3345
3399
|
"""The bin does not match the BIN of the saved card named by accountId."""
|
|
3346
3400
|
MISMATCHED_BIN_FOR_SAVED_CARD
|
|
3347
3401
|
"""
|
|
3348
|
-
The bin is not
|
|
3402
|
+
The bin is not in an accepted format — a BIN identifies an issuer range, never a card number. A new
|
|
3403
|
+
card (no accountId) carries no bin or exactly 8 digits; with an accountId, a bin is 1 to 8 digits.
|
|
3349
3404
|
"""
|
|
3350
3405
|
INVALID_BIN_FORMAT
|
|
3351
3406
|
"""
|
|
@@ -3386,7 +3441,7 @@ input PaymentInstallmentSelectInput {
|
|
|
3386
3441
|
|
|
3387
3442
|
"""Error codes for the paymentInstallmentSelect mutation."""
|
|
3388
3443
|
enum PaymentInstallmentSelectErrorCode {
|
|
3389
|
-
"""No cart context was provided (
|
|
3444
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
3390
3445
|
MISSING_CART_CONTEXT
|
|
3391
3446
|
"""The cart was not found."""
|
|
3392
3447
|
CART_NOT_FOUND
|
|
@@ -3417,7 +3472,7 @@ type PaymentInstallmentSelectPayload {
|
|
|
3417
3472
|
"""The updated payment state, or null if errors occurred."""
|
|
3418
3473
|
payment: Payment
|
|
3419
3474
|
"""
|
|
3420
|
-
The
|
|
3475
|
+
The updated cart, or null if errors occurred. Its `total` is the greater of the order form's value and the selected payment's value, so it includes the selected tier's interest.
|
|
3421
3476
|
"""
|
|
3422
3477
|
cart: Cart
|
|
3423
3478
|
"""
|
|
@@ -3468,7 +3523,7 @@ input PaymentBillingAddressUpdateInput {
|
|
|
3468
3523
|
|
|
3469
3524
|
"""Error codes for the paymentBillingAddressUpdate mutation."""
|
|
3470
3525
|
enum PaymentBillingAddressUpdateErrorCode {
|
|
3471
|
-
"""No cart context was provided (
|
|
3526
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
3472
3527
|
MISSING_CART_CONTEXT
|
|
3473
3528
|
"""The cart was not found."""
|
|
3474
3529
|
CART_NOT_FOUND
|
|
@@ -3509,7 +3564,7 @@ are never in this enum — per ADR-00007 they surface as top-level GraphQL
|
|
|
3509
3564
|
errors (UNAUTHORIZED / UPSTREAM_ERROR), not userErrors.
|
|
3510
3565
|
"""
|
|
3511
3566
|
enum PaymentStartTransactionErrorCode {
|
|
3512
|
-
"""No cart context was provided (
|
|
3567
|
+
"""No cart context was provided (no valid `checkout.vtex.com` cookie)."""
|
|
3513
3568
|
MISSING_CART_CONTEXT
|
|
3514
3569
|
"""The cart was not found."""
|
|
3515
3570
|
CART_NOT_FOUND
|
|
@@ -3565,6 +3620,11 @@ type PaymentStartTransactionPayload {
|
|
|
3565
3620
|
The order group, needed for the gateway call's orderId parameter and for gatewayCallback's input.
|
|
3566
3621
|
"""
|
|
3567
3622
|
orderGroup: String
|
|
3623
|
+
"""
|
|
3624
|
+
The Relay Node ID of the order for this order group, for Query.order(id:). Null if errors occurred
|
|
3625
|
+
or the transaction carried no order group.
|
|
3626
|
+
"""
|
|
3627
|
+
orderNodeId: ID
|
|
3568
3628
|
"""The shopper's user profile id, needed for the gateway call."""
|
|
3569
3629
|
userProfileId: String
|
|
3570
3630
|
"""
|
|
@@ -3619,6 +3679,14 @@ enum PaymentGatewayCallbackErrorCode {
|
|
|
3619
3679
|
VTEX answered 428: the payment needs a challenge step. When `redirectUrl` is set the shopper must be sent there; when it is null the challenge uses a mechanism this API does not hand over (for example a payment app).
|
|
3620
3680
|
"""
|
|
3621
3681
|
REDIRECT_REQUIRED
|
|
3682
|
+
"""
|
|
3683
|
+
The payment gateway answered the callback and refused the payment: a 400, 402, 422 or 500 response whose body carries a VTEX `error` object (not a login-required code). The message is a fixed sentence; nothing the gateway said is forwarded. A response that is not shaped like a gateway answer (502-504, an unreadable body, a timeout) is a top-level `UPSTREAM_ERROR` instead.
|
|
3684
|
+
"""
|
|
3685
|
+
PAYMENT_DECLINED
|
|
3686
|
+
"""
|
|
3687
|
+
The order group sent is not the one this session's `paymentStartTransaction` returned, or this session started none. The message is a fixed sentence that does not say which, and nothing was sent to VTEX.
|
|
3688
|
+
"""
|
|
3689
|
+
ORDER_GROUP_MISMATCH
|
|
3622
3690
|
}
|
|
3623
3691
|
|
|
3624
3692
|
"""A domain error returned from the paymentGatewayCallback mutation."""
|
|
@@ -3636,6 +3704,10 @@ type PaymentGatewayCallbackPayload {
|
|
|
3636
3704
|
"""
|
|
3637
3705
|
orderId: String
|
|
3638
3706
|
"""
|
|
3707
|
+
The Relay Node ID of the finalized order, for Query.order(id:). Null if errors occurred.
|
|
3708
|
+
"""
|
|
3709
|
+
orderNodeId: ID
|
|
3710
|
+
"""
|
|
3639
3711
|
The bank's challenge page; set only when VTEX answered 428 with a usable http(s) URL.
|
|
3640
3712
|
"""
|
|
3641
3713
|
redirectUrl: String
|
|
@@ -3953,6 +4025,14 @@ type PostalCodeAddress @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
|
3953
4025
|
The authentication methods an account enables, read before rendering a sign-in form.
|
|
3954
4026
|
"""
|
|
3955
4027
|
type SessionAuthProviders {
|
|
4028
|
+
"""
|
|
4029
|
+
Stable identifier for this account's sign-in configuration, as
|
|
4030
|
+
base64("SessionAuthProviders:<account>"). It identifies the account's
|
|
4031
|
+
configuration, never a shopper: it is what lets a client cache normalize the
|
|
4032
|
+
type and read it outside a page's server-side fetch. Not a Relay Node: node(id)
|
|
4033
|
+
on this value resolves to null, because the configuration is read as a whole.
|
|
4034
|
+
"""
|
|
4035
|
+
id: ID!
|
|
3956
4036
|
"""Whether classic email and password sign-in is enabled."""
|
|
3957
4037
|
passwordAuthentication: Boolean!
|
|
3958
4038
|
"""Whether email access-code (passwordless) sign-in is enabled."""
|
|
@@ -4483,6 +4563,10 @@ type CustomerOrder implements Node @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
|
4483
4563
|
"""Timestamp when the order was invoiced."""
|
|
4484
4564
|
invoiceDate: DateTime
|
|
4485
4565
|
"""
|
|
4566
|
+
Invoice files the merchant sent. Oldest issue date first. Empty when none qualify.
|
|
4567
|
+
"""
|
|
4568
|
+
invoices: [CustomerOrderInvoice!]!
|
|
4569
|
+
"""
|
|
4486
4570
|
Order delivery channel. The order-level value when OMS supplies it, otherwise
|
|
4487
4571
|
the channel every logistics entry agrees on. Null when those entries differ.
|
|
4488
4572
|
"""
|
|
@@ -4558,13 +4642,33 @@ type CustomerOrderItem {
|
|
|
4558
4642
|
}
|
|
4559
4643
|
|
|
4560
4644
|
"""A custom value recorded on an order line."""
|
|
4561
|
-
type CustomerOrderItemCustomField {
|
|
4645
|
+
type CustomerOrderItemCustomField @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
4562
4646
|
"""Custom field name."""
|
|
4563
4647
|
name: String!
|
|
4564
4648
|
"""Custom field value as recorded on the order."""
|
|
4565
4649
|
value: String!
|
|
4566
4650
|
}
|
|
4567
4651
|
|
|
4652
|
+
"""Sale or return, from the OMS package type."""
|
|
4653
|
+
enum CustomerOrderInvoiceKind {
|
|
4654
|
+
"""An Output invoice, the sale document."""
|
|
4655
|
+
SALE
|
|
4656
|
+
"""An Input invoice, the return document."""
|
|
4657
|
+
RETURN
|
|
4658
|
+
}
|
|
4659
|
+
|
|
4660
|
+
"""One invoice file the merchant sent on the order."""
|
|
4661
|
+
type CustomerOrderInvoice {
|
|
4662
|
+
"""Merchant file address. http or https."""
|
|
4663
|
+
url: String!
|
|
4664
|
+
"""
|
|
4665
|
+
Package issuance date. Null when OMS omitted it or sent a value that is not a date.
|
|
4666
|
+
"""
|
|
4667
|
+
issuedAt: DateTime
|
|
4668
|
+
"""SALE for an Output invoice. RETURN for an Input invoice."""
|
|
4669
|
+
kind: CustomerOrderInvoiceKind!
|
|
4670
|
+
}
|
|
4671
|
+
|
|
4568
4672
|
"""Products that share one selected delivery option."""
|
|
4569
4673
|
type CustomerOrderDeliveryOption {
|
|
4570
4674
|
"""Selected service-level agreement name."""
|
|
@@ -4579,10 +4683,14 @@ type CustomerOrderDeliveryOption {
|
|
|
4579
4683
|
address: CustomerOrderAddress
|
|
4580
4684
|
"""Product lines assigned to this option."""
|
|
4581
4685
|
items: [CustomerOrderItem!]!
|
|
4686
|
+
"""
|
|
4687
|
+
Distinct http or https tracking addresses for invoices whose items fall in this option.
|
|
4688
|
+
"""
|
|
4689
|
+
trackingLinks: [String!]!
|
|
4582
4690
|
}
|
|
4583
4691
|
|
|
4584
4692
|
"""Historical delivery address recorded on an order."""
|
|
4585
|
-
type CustomerOrderAddress {
|
|
4693
|
+
type CustomerOrderAddress @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
4586
4694
|
"""Recipient name."""
|
|
4587
4695
|
receiverName: String
|
|
4588
4696
|
"""Postal code."""
|
|
@@ -4606,7 +4714,7 @@ type CustomerOrderAddress {
|
|
|
4606
4714
|
}
|
|
4607
4715
|
|
|
4608
4716
|
"""One payment recorded on a placed order."""
|
|
4609
|
-
type CustomerOrderPayment {
|
|
4717
|
+
type CustomerOrderPayment @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
4610
4718
|
"""Shopper-facing payment method name."""
|
|
4611
4719
|
methodName: String
|
|
4612
4720
|
"""
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ACCOUNT_MAX_LENGTH, isCountryField } from "./constants.js";
|
|
2
|
-
import {
|
|
2
|
+
import { resolveLabelKey, resolvePlaceholder } from "./messages.js";
|
|
3
3
|
import { declaredMaxLength, toFormValues } from "./schema.js";
|
|
4
4
|
import { getVisibleFields, resolveFieldInputMode, resolveFieldLabel, resolveFieldOptions, resolveFieldPlaceholder } from "@vtex/country-forms";
|
|
5
5
|
//#region src/sdk/address/address-fields.ts
|
|
6
6
|
/**
|
|
7
7
|
* The fields a country's form shows for the values typed so far, in the form's order. A country the
|
|
8
|
-
* library does not cover lists `street` alone. Labels and placeholders are
|
|
9
|
-
*
|
|
8
|
+
* library does not cover lists `street` alone. Labels and placeholders are keys the caller words
|
|
9
|
+
* with its own messages; option labels are proper names and are not translated.
|
|
10
10
|
*/
|
|
11
11
|
function addressFields(rules, values) {
|
|
12
12
|
const text = toFormValues(values);
|
|
@@ -21,7 +21,7 @@ function addressFields(rules, values) {
|
|
|
21
21
|
control: field.type === "select" ? "select" : "text",
|
|
22
22
|
required: field.required,
|
|
23
23
|
maxLength: declaredMaxLength(field) ?? ACCOUNT_MAX_LENGTH[name],
|
|
24
|
-
|
|
24
|
+
label: resolveLabelKey(resolveFieldLabel(field, text), name, rules.country),
|
|
25
25
|
...inputMode && { inputMode },
|
|
26
26
|
...placeholder && { placeholder },
|
|
27
27
|
...options && { options: options.map(({ value, displayValue }) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-fields.js","names":[],"sources":["../../../src/sdk/address/address-fields.ts"],"sourcesContent":["import {\n getVisibleFields,\n resolveFieldInputMode,\n resolveFieldLabel,\n resolveFieldOptions,\n resolveFieldPlaceholder,\n} from '@vtex/country-forms';\nimport { ACCOUNT_MAX_LENGTH, isCountryField } from './constants.js';\nimport {
|
|
1
|
+
{"version":3,"file":"address-fields.js","names":[],"sources":["../../../src/sdk/address/address-fields.ts"],"sourcesContent":["import {\n getVisibleFields,\n resolveFieldInputMode,\n resolveFieldLabel,\n resolveFieldOptions,\n resolveFieldPlaceholder,\n} from '@vtex/country-forms';\nimport { ACCOUNT_MAX_LENGTH, isCountryField } from './constants.js';\nimport { resolveLabelKey, resolvePlaceholder } from './messages.js';\nimport { declaredMaxLength, toFormValues } from './schema.js';\nimport type { AddressFieldDescriptor, AddressValues, CountryRules } from './types.js';\n\n/**\n * The fields a country's form shows for the values typed so far, in the form's order. A country the\n * library does not cover lists `street` alone. Labels and placeholders are keys the caller words\n * with its own messages; option labels are proper names and are not translated.\n */\nexport function addressFields(rules: CountryRules, values: AddressValues): readonly AddressFieldDescriptor[] {\n const text = toFormValues(values);\n\n return getVisibleFields(rules.schema, text).flatMap((field): AddressFieldDescriptor[] => {\n const { name, dependsOn } = field;\n if (!isCountryField(name)) {\n return [];\n }\n\n const inputMode = resolveFieldInputMode(field, text);\n const placeholder = resolvePlaceholder(resolveFieldPlaceholder(field, text), rules.country);\n const options = field.type === 'select' ? (resolveFieldOptions(field, text) ?? []) : undefined;\n\n return [\n {\n name,\n control: field.type === 'select' ? 'select' : 'text',\n required: field.required,\n maxLength: declaredMaxLength(field) ?? ACCOUNT_MAX_LENGTH[name],\n label: resolveLabelKey(resolveFieldLabel(field, text), name, rules.country),\n ...(inputMode && { inputMode }),\n ...(placeholder && { placeholder }),\n ...(options && { options: options.map(({ value, displayValue }) => ({ value, label: displayValue })) }),\n ...(dependsOn && isCountryField(dependsOn) && { dependsOn }),\n },\n ];\n });\n}\n"],"mappings":";;;;;;;;;;AAiBA,SAAgB,cAAc,OAAqB,QAA0D;CAC3G,MAAM,OAAO,aAAa,MAAM;CAEhC,OAAO,iBAAiB,MAAM,QAAQ,IAAI,CAAC,CAAC,SAAS,UAAoC;EACvF,MAAM,EAAE,MAAM,cAAc;EAC5B,IAAI,CAAC,eAAe,IAAI,GACtB,OAAO,CAAC;EAGV,MAAM,YAAY,sBAAsB,OAAO,IAAI;EACnD,MAAM,cAAc,mBAAmB,wBAAwB,OAAO,IAAI,GAAG,MAAM,OAAO;EAC1F,MAAM,UAAU,MAAM,SAAS,WAAY,oBAAoB,OAAO,IAAI,KAAK,CAAC,IAAK,KAAA;EAErF,OAAO,CACL;GACE;GACA,SAAS,MAAM,SAAS,WAAW,WAAW;GAC9C,UAAU,MAAM;GAChB,WAAW,kBAAkB,KAAK,KAAK,mBAAmB;GAC1D,OAAO,gBAAgB,kBAAkB,OAAO,IAAI,GAAG,MAAM,MAAM,OAAO;GAC1E,GAAI,aAAa,EAAE,UAAU;GAC7B,GAAI,eAAe,EAAE,YAAY;GACjC,GAAI,WAAW,EAAE,SAAS,QAAQ,KAAK,EAAE,OAAO,oBAAoB;IAAE;IAAO,OAAO;GAAa,EAAE,EAAE;GACrG,GAAI,aAAa,eAAe,SAAS,KAAK,EAAE,UAAU;EAC5D,CACF;CACF,CAAC;AACH"}
|
|
@@ -18,11 +18,6 @@ const ACCOUNT_FIELDS = [
|
|
|
18
18
|
"reference",
|
|
19
19
|
"name"
|
|
20
20
|
];
|
|
21
|
-
const ACCOUNT_FIELD_LABELS = {
|
|
22
|
-
recipientName: "fs/address.field.recipient-name",
|
|
23
|
-
reference: "fs/address.field.reference",
|
|
24
|
-
name: "fs/address.field.name"
|
|
25
|
-
};
|
|
26
21
|
/**
|
|
27
22
|
* Each maximum is at least the largest limit any covered schema declares for that field, and at
|
|
28
23
|
* most the size of the Master Data `AD` column that stores it.
|
|
@@ -55,6 +50,6 @@ const POSTAL_CODE_LOOKUP_COUNTRIES = [
|
|
|
55
50
|
"USA"
|
|
56
51
|
];
|
|
57
52
|
//#endregion
|
|
58
|
-
export { ACCOUNT_FIELDS,
|
|
53
|
+
export { ACCOUNT_FIELDS, ACCOUNT_MAX_LENGTH, CHECKOUT_MINIMUMS, COUNTRY_FIELDS, POSTAL_CODE_LOOKUP_COUNTRIES, isCountryField };
|
|
59
54
|
|
|
60
55
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../../../src/sdk/address/constants.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../../src/sdk/address/constants.ts"],"sourcesContent":["import type { AccountFieldName, AddressFieldName, CheckoutMinimum, CountryFieldName } from './types.js';\n\n/** In the order a country's form lists them when it does not say otherwise. */\nexport const COUNTRY_FIELDS: readonly CountryFieldName[] = [\n 'postalCode',\n 'street',\n 'number',\n 'complement',\n 'neighborhood',\n 'state',\n 'city',\n];\n\nconst COUNTRY_FIELD_NAMES: ReadonlySet<string> = new Set(COUNTRY_FIELDS);\n\nexport function isCountryField(name: string): name is CountryFieldName {\n return COUNTRY_FIELD_NAMES.has(name);\n}\n\nexport const ACCOUNT_FIELDS: readonly AccountFieldName[] = ['recipientName', 'reference', 'name'];\n\n/**\n * Each maximum is at least the largest limit any covered schema declares for that field, and at\n * most the size of the Master Data `AD` column that stores it.\n */\nexport const ACCOUNT_MAX_LENGTH: Readonly<Record<AddressFieldName, number>> = {\n recipientName: 200,\n name: 50,\n reference: 750,\n street: 750,\n number: 750,\n complement: 750,\n neighborhood: 100,\n city: 100,\n state: 100,\n postalCode: 20,\n};\n\n/** What the checkout needs in a profile before it offers the shopper's saved addresses. */\nexport const CHECKOUT_MINIMUMS: readonly CheckoutMinimum[] = ['homePhone'];\n\n/**\n * Countries for which the checkout's postal-code lookup filled at least the city and the state of a\n * valid sample code. An unknown code is an empty success, so a country missing here costs nothing.\n */\nexport const POSTAL_CODE_LOOKUP_COUNTRIES: readonly string[] = ['ARG', 'BRA', 'CAN', 'ESP', 'FRA', 'MEX', 'USA'];\n"],"mappings":";;AAGA,MAAa,iBAA8C;CACzD;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,sBAA2C,IAAI,IAAI,cAAc;AAEvE,SAAgB,eAAe,MAAwC;CACrE,OAAO,oBAAoB,IAAI,IAAI;AACrC;AAEA,MAAa,iBAA8C;CAAC;CAAiB;CAAa;AAAM;;;;;AAMhG,MAAa,qBAAiE;CAC5E,eAAe;CACf,MAAM;CACN,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,YAAY;CACZ,cAAc;CACd,MAAM;CACN,OAAO;CACP,YAAY;AACd;;AAGA,MAAa,oBAAgD,CAAC,WAAW;;;;;AAMzE,MAAa,+BAAkD;CAAC;CAAO;CAAO;CAAO;CAAO;CAAO;CAAO;AAAK"}
|