@vtex/faststore 0.0.7 → 0.0.8
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 +43 -0
- package/dist/actions.json +152 -1
- package/dist/catalog.json +1264 -142
- package/dist/cli/index.d.ts +512 -63
- package/dist/cli/index.js +2098 -686
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/server-runtime.js +44 -24
- package/dist/cli/server-runtime.js.map +1 -1
- package/dist/client.d.ts +5 -1
- package/dist/client.js +5 -1
- package/dist/components.d.ts +34 -7
- package/dist/components.js +38 -11
- package/dist/content-types.json +523 -0
- package/dist/core/dist/define-component.d.ts +6 -1
- package/dist/docs/account-access-gate.md +4 -4
- package/dist/docs/account-address-book.md +519 -0
- package/dist/docs/account-entry-point.md +1 -1
- package/dist/docs/account-menu.md +5 -5
- package/dist/docs/alert-dialog.md +2 -2
- package/dist/docs/billing-address.md +17 -9
- package/dist/docs/card-entry.md +37 -6
- package/dist/docs/cardholder-document.md +16 -14
- package/dist/docs/cart-item.md +1 -1
- package/dist/docs/cart.md +8 -8
- package/dist/docs/client-profile-fieldset.md +7 -5
- package/dist/docs/copy-text.md +84 -0
- package/dist/docs/document-field.md +8 -8
- package/dist/docs/footer-link-group.md +2 -2
- package/dist/docs/header-root.md +1 -1
- package/dist/docs/incentives.md +2 -2
- package/dist/docs/logo.md +5 -5
- package/dist/docs/my-account-profile.md +4 -4
- package/dist/docs/navigation-link-list.md +2 -2
- package/dist/docs/navigation-link.md +3 -3
- package/dist/docs/order-cancel.md +52 -0
- package/dist/docs/order-delivery-address.md +63 -0
- package/dist/docs/order-delivery-group.md +83 -0
- package/dist/docs/order-details-back.md +41 -0
- package/dist/docs/order-details-header.md +48 -0
- package/dist/docs/order-list-row.md +46 -0
- package/dist/docs/order-list-search.md +101 -0
- package/dist/docs/order-list-views.md +97 -0
- package/dist/docs/order-list.md +94 -0
- package/dist/docs/order-payment.md +94 -0
- package/dist/docs/order-placed-date.md +49 -0
- package/dist/docs/order-placed-payment-summary.md +13 -15
- package/dist/docs/order-placed.md +225 -0
- package/dist/docs/order-progress.md +88 -0
- package/dist/docs/order-status-badge.md +91 -0
- package/dist/docs/order-summary.md +53 -0
- package/dist/docs/payment-method-badges.md +14 -3
- package/dist/docs/place-order.md +13 -9
- package/dist/docs/saved-cards.md +2 -2
- package/dist/docs/select.md +19 -6
- package/dist/docs/session.md +1 -1
- package/dist/docs/shipping-address.md +1 -1
- package/dist/docs/sign-in-redirect.md +6 -6
- package/dist/docs/toast.md +7 -3
- package/dist/index.d.ts +6 -2
- package/dist/index.js +2 -1
- package/dist/internal/client.d.ts +6 -1
- package/dist/internal/client.js +7 -2
- package/dist/internal/server.d.ts +6 -2
- package/dist/internal/server.js +6 -2
- package/dist/matter/account-access-gate/account-access-gate.d.ts +2 -1
- package/dist/matter/account-access-gate/account-access-gate.js +19 -16
- package/dist/matter/account-access-gate/account-access-gate.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-delete.d.ts +60 -0
- package/dist/matter/account-address-book/account-address-book-delete.js +184 -0
- package/dist/matter/account-address-book/account-address-book-delete.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book-deliverability.d.ts +19 -0
- package/dist/matter/account-address-book/account-address-book-deliverability.js +50 -0
- package/dist/matter/account-address-book/account-address-book-deliverability.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book-form-parts.d.ts +42 -0
- package/dist/matter/account-address-book/account-address-book-form-parts.js +146 -0
- package/dist/matter/account-address-book/account-address-book-form-parts.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book-profile-notice.d.ts +25 -0
- package/dist/matter/account-address-book/account-address-book-profile-notice.js +72 -0
- package/dist/matter/account-address-book/account-address-book-profile-notice.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book.d.ts +120 -0
- package/dist/matter/account-address-book/account-address-book.js +469 -0
- package/dist/matter/account-address-book/account-address-book.js.map +1 -0
- package/dist/matter/account-address-book/account-address-country-switch.js +59 -0
- package/dist/matter/account-address-book/account-address-country-switch.js.map +1 -0
- package/dist/matter/account-address-book/account-address-country.d.ts +36 -0
- package/dist/matter/account-address-book/account-address-country.js +151 -0
- package/dist/matter/account-address-book/account-address-country.js.map +1 -0
- package/dist/matter/account-address-book/account-address-first-line.js +11 -0
- package/dist/matter/account-address-book/account-address-first-line.js.map +1 -0
- package/dist/matter/account-address-book/account-address-form-context.d.ts +55 -0
- package/dist/matter/account-address-book/account-address-form-context.js +14 -0
- package/dist/matter/account-address-book/account-address-form-context.js.map +1 -0
- package/dist/matter/account-address-book/account-address-form.d.ts +85 -0
- package/dist/matter/account-address-book/account-address-form.js +946 -0
- package/dist/matter/account-address-book/account-address-form.js.map +1 -0
- package/dist/matter/account-address-book/account-address-postal-autofill.js +189 -0
- package/dist/matter/account-address-book/account-address-postal-autofill.js.map +1 -0
- package/dist/matter/account-address-book/account-address-record.d.ts +26 -0
- package/dist/matter/account-address-book/account-address-record.js +138 -0
- package/dist/matter/account-address-book/account-address-record.js.map +1 -0
- package/dist/matter/account-entry-point/account-entry-point.js +11 -11
- package/dist/matter/account-entry-point/account-entry-point.js.map +1 -1
- package/dist/matter/account-menu/account-menu.d.ts +7 -3
- package/dist/matter/account-menu/account-menu.js +69 -28
- package/dist/matter/account-menu/account-menu.js.map +1 -1
- package/dist/matter/billing-address/billing-address.d.ts +30 -17
- package/dist/matter/billing-address/billing-address.js +128 -33
- package/dist/matter/billing-address/billing-address.js.map +1 -1
- package/dist/matter/breadcrumb/breadcrumb.js +2 -2
- package/dist/matter/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/matter/card-entry/card-capture.js +4 -3
- package/dist/matter/card-entry/card-capture.js.map +1 -1
- package/dist/matter/card-entry/card-entry.d.ts +5 -3
- package/dist/matter/card-entry/card-entry.js +77 -27
- package/dist/matter/card-entry/card-entry.js.map +1 -1
- package/dist/matter/cardholder-document/cardholder-document.d.ts +10 -9
- package/dist/matter/cardholder-document/cardholder-document.js +36 -16
- package/dist/matter/cardholder-document/cardholder-document.js.map +1 -1
- package/dist/matter/cart/cart.d.ts +7 -2
- package/dist/matter/cart/cart.js +29 -26
- package/dist/matter/cart/cart.js.map +1 -1
- package/dist/matter/cart-item/cart-item.js +2 -2
- package/dist/matter/cart-item/cart-item.js.map +1 -1
- package/dist/matter/client-preferences/client-preferences-fieldset.js +1 -1
- package/dist/matter/client-profile-form/client-profile-fieldset.js +8 -5
- package/dist/matter/client-profile-form/client-profile-fieldset.js.map +1 -1
- package/dist/matter/identity-edit/identity-edit.js +3 -3
- package/dist/matter/identity-edit/identity-edit.js.map +1 -1
- package/dist/matter/identity-summary/identity-summary.js +2 -2
- package/dist/matter/identity-summary/identity-summary.js.map +1 -1
- package/dist/matter/my-account-profile/my-account-profile.d.ts +3 -3
- package/dist/matter/my-account-profile/my-account-profile.js +4 -4
- package/dist/matter/my-account-profile/my-account-profile.js.map +1 -1
- package/dist/matter/order-cancel/order-cancel.d.ts +110 -0
- package/dist/matter/order-cancel/order-cancel.js +344 -0
- package/dist/matter/order-cancel/order-cancel.js.map +1 -0
- package/dist/matter/order-delivery-address/order-delivery-address.d.ts +73 -0
- package/dist/matter/order-delivery-address/order-delivery-address.js +172 -0
- package/dist/matter/order-delivery-address/order-delivery-address.js.map +1 -0
- package/dist/matter/order-delivery-group/order-delivery-group.d.ts +128 -0
- package/dist/matter/order-delivery-group/order-delivery-group.js +408 -0
- package/dist/matter/order-delivery-group/order-delivery-group.js.map +1 -0
- package/dist/matter/order-details-header/order-details-header.d.ts +104 -0
- package/dist/matter/order-details-header/order-details-header.js +190 -0
- package/dist/matter/order-details-header/order-details-header.js.map +1 -0
- package/dist/matter/order-list/customer-orders-filter.d.ts +12 -0
- package/dist/matter/order-list/customer-orders-filter.js +30 -0
- package/dist/matter/order-list/customer-orders-filter.js.map +1 -0
- package/dist/matter/order-list/order-list.d.ts +121 -0
- package/dist/matter/order-list/order-list.js +395 -0
- package/dist/matter/order-list/order-list.js.map +1 -0
- package/dist/matter/order-list-row/order-list-row.d.ts +44 -0
- package/dist/matter/order-list-row/order-list-row.js +127 -0
- package/dist/matter/order-list-row/order-list-row.js.map +1 -0
- package/dist/matter/order-list-search/order-list-search.d.ts +72 -0
- package/dist/matter/order-list-search/order-list-search.js +296 -0
- package/dist/matter/order-list-search/order-list-search.js.map +1 -0
- package/dist/matter/order-list-views/order-list-views.d.ts +65 -0
- package/dist/matter/order-list-views/order-list-views.js +154 -0
- package/dist/matter/order-list-views/order-list-views.js.map +1 -0
- package/dist/matter/order-payment/order-payment.d.ts +83 -0
- package/dist/matter/order-payment/order-payment.js +258 -0
- package/dist/matter/order-payment/order-payment.js.map +1 -0
- package/dist/matter/order-placed/order-placed-deliveries.d.ts +145 -0
- package/dist/matter/order-placed/order-placed-deliveries.js +380 -0
- package/dist/matter/order-placed/order-placed-deliveries.js.map +1 -0
- package/dist/matter/order-placed/order-placed.d.ts +122 -0
- package/dist/matter/order-placed/order-placed.js +452 -0
- package/dist/matter/order-placed/order-placed.js.map +1 -0
- package/dist/matter/order-placed-date/order-placed-date.d.ts +45 -0
- package/dist/matter/order-placed-date/order-placed-date.js +92 -0
- package/dist/matter/order-placed-date/order-placed-date.js.map +1 -0
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.d.ts +5 -8
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js +29 -81
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js.map +1 -1
- package/dist/matter/order-progress/order-progress.d.ts +85 -0
- package/dist/matter/order-progress/order-progress.js +203 -0
- package/dist/matter/order-progress/order-progress.js.map +1 -0
- package/dist/matter/order-summary/order-summary.d.ts +81 -0
- package/dist/matter/order-summary/order-summary.js +192 -0
- package/dist/matter/order-summary/order-summary.js.map +1 -0
- package/dist/matter/payment/cardholder-document-rule.d.ts +35 -0
- package/dist/matter/payment/cardholder-document-rule.js +35 -0
- package/dist/matter/payment/cardholder-document-rule.js.map +1 -0
- package/dist/matter/payment/payment-card-capture.js +38 -23
- package/dist/matter/payment/payment-card-capture.js.map +1 -1
- package/dist/matter/payment/payment-controller.js +11 -0
- package/dist/matter/payment/payment-controller.js.map +1 -1
- package/dist/matter/payment/payment-method-badges.js +4 -2
- package/dist/matter/payment/payment-method-badges.js.map +1 -1
- package/dist/matter/payment/payment.js +11 -0
- package/dist/matter/payment/payment.js.map +1 -1
- package/dist/matter/payment/use-payment-method-selection.d.ts +39 -0
- package/dist/matter/payment/use-payment-method-selection.js +30 -2
- package/dist/matter/payment/use-payment-method-selection.js.map +1 -1
- package/dist/matter/payment/use-payment-submit-gate.d.ts +16 -2
- package/dist/matter/payment/use-payment-submit-gate.js +42 -14
- package/dist/matter/payment/use-payment-submit-gate.js.map +1 -1
- package/dist/matter/place-order/place-order.d.ts +12 -7
- package/dist/matter/place-order/place-order.js +126 -103
- package/dist/matter/place-order/place-order.js.map +1 -1
- package/dist/matter/pricing/pricing.js +5 -5
- package/dist/matter/pricing/pricing.js.map +1 -1
- package/dist/matter/region/region.js +1 -1
- package/dist/matter/saved-cards/saved-cards.js +26 -15
- package/dist/matter/saved-cards/saved-cards.js.map +1 -1
- package/dist/matter/session/session.js +2 -2
- package/dist/matter/session/session.js.map +1 -1
- package/dist/matter/shipping-address/country-descriptors.d.ts +1 -0
- package/dist/matter/shipping-address/country-descriptors.js +23 -1
- package/dist/matter/shipping-address/country-descriptors.js.map +1 -1
- package/dist/matter/shipping-address/shipping-address.js +62 -14
- package/dist/matter/shipping-address/shipping-address.js.map +1 -1
- package/dist/matter/shipping-simulator/shipping-simulator.d.ts +1 -1
- package/dist/matter/shipping-simulator/shipping-simulator.js.map +1 -1
- package/dist/matter/sign-in-redirect/sign-in-redirect.js +48 -10
- package/dist/matter/sign-in-redirect/sign-in-redirect.js.map +1 -1
- package/dist/matter/variant-selector/variant-selector.js +2 -2
- package/dist/matter/variant-selector/variant-selector.js.map +1 -1
- package/dist/particles/address-summary/address-summary.js +2 -2
- package/dist/particles/address-summary/address-summary.js.map +1 -1
- package/dist/particles/alert-dialog/alert-dialog.d.ts +5 -1
- package/dist/particles/alert-dialog/alert-dialog.js +5 -2
- package/dist/particles/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/particles/copy-text/copy-text.d.ts +28 -0
- package/dist/particles/copy-text/copy-text.js +140 -0
- package/dist/particles/copy-text/copy-text.js.map +1 -0
- package/dist/particles/document-field/document-field.d.ts +34 -5
- package/dist/particles/document-field/document-field.js +115 -19
- package/dist/particles/document-field/document-field.js.map +1 -1
- package/dist/particles/field/field.js +1 -1
- package/dist/particles/field/field.js.map +1 -1
- package/dist/particles/footer-link-group/footer-link-group.d.ts +6 -2
- package/dist/particles/footer-link-group/footer-link-group.js +18 -7
- package/dist/particles/footer-link-group/footer-link-group.js.map +1 -1
- package/dist/particles/incentives/incentives.d.ts +6 -2
- package/dist/particles/incentives/incentives.js +7 -2
- package/dist/particles/incentives/incentives.js.map +1 -1
- package/dist/particles/logo/logo.d.ts +3 -2
- package/dist/particles/logo/logo.js +20 -8
- package/dist/particles/logo/logo.js.map +1 -1
- package/dist/particles/navigation-link/navigation-link.d.ts +2 -3
- package/dist/particles/navigation-link/navigation-link.js +4 -4
- package/dist/particles/navigation-link/navigation-link.js.map +1 -1
- package/dist/particles/navigation-link-list/navigation-link-list.d.ts +6 -2
- package/dist/particles/navigation-link-list/navigation-link-list.js +18 -7
- package/dist/particles/navigation-link-list/navigation-link-list.js.map +1 -1
- package/dist/particles/order-details-back/order-details-back.d.ts +28 -0
- package/dist/particles/order-details-back/order-details-back.js +52 -0
- package/dist/particles/order-details-back/order-details-back.js.map +1 -0
- package/dist/particles/order-status-badge/order-status-badge.d.ts +19 -0
- package/dist/particles/order-status-badge/order-status-badge.js +50 -0
- package/dist/particles/order-status-badge/order-status-badge.js.map +1 -0
- package/dist/particles/phone-field/phone-field.js +2 -2
- package/dist/particles/phone-field/phone-field.js.map +1 -1
- package/dist/particles/select/select.js +6 -6
- package/dist/particles/select/select.js.map +1 -1
- package/dist/particles/toast/toast.d.ts +1 -1
- package/dist/particles/toast/toast.js +32 -6
- package/dist/particles/toast/toast.js.map +1 -1
- package/dist/schema.graphql +1014 -28
- package/dist/sdk/actions/address-action-provider.d.ts +16 -0
- package/dist/sdk/actions/address-action-provider.js +20 -0
- package/dist/sdk/actions/address-action-provider.js.map +1 -0
- package/dist/sdk/actions/analytics-action-provider.js +1 -1
- package/dist/sdk/actions/index.d.ts +3 -1
- package/dist/sdk/actions/index.js +3 -1
- package/dist/sdk/actions/order-action-provider.d.ts +12 -0
- package/dist/sdk/actions/order-action-provider.js +16 -0
- package/dist/sdk/actions/order-action-provider.js.map +1 -0
- package/dist/sdk/actions/types.d.ts +6 -2
- package/dist/sdk/address/address-fields.js +38 -0
- package/dist/sdk/address/address-fields.js.map +1 -0
- package/dist/sdk/address/checkout-readiness.js +17 -0
- package/dist/sdk/address/checkout-readiness.js.map +1 -0
- package/dist/sdk/address/constants.js +60 -0
- package/dist/sdk/address/constants.js.map +1 -0
- package/dist/sdk/address/country-display.js +19 -0
- package/dist/sdk/address/country-display.js.map +1 -0
- package/dist/sdk/address/country-rules.js +30 -0
- package/dist/sdk/address/country-rules.js.map +1 -0
- package/dist/sdk/address/format-address.js +18 -0
- package/dist/sdk/address/format-address.js.map +1 -0
- package/dist/sdk/address/iso-countries.js +262 -0
- package/dist/sdk/address/iso-countries.js.map +1 -0
- package/dist/sdk/address/layouts.js +56 -0
- package/dist/sdk/address/layouts.js.map +1 -0
- package/dist/sdk/address/messages.js +97 -0
- package/dist/sdk/address/messages.js.map +1 -0
- package/dist/sdk/address/operations.d.ts +54 -0
- package/dist/sdk/address/operations.js +83 -0
- package/dist/sdk/address/operations.js.map +1 -0
- package/dist/sdk/address/postal-code-lookup-operations.js +23 -0
- package/dist/sdk/address/postal-code-lookup-operations.js.map +1 -0
- package/dist/sdk/address/postal-code.js +11 -0
- package/dist/sdk/address/postal-code.js.map +1 -0
- package/dist/sdk/address/schema.js +14 -0
- package/dist/sdk/address/schema.js.map +1 -0
- package/dist/sdk/address/server-fields.js +25 -0
- package/dist/sdk/address/server-fields.js.map +1 -0
- package/dist/sdk/address/switch-country.js +57 -0
- package/dist/sdk/address/switch-country.js.map +1 -0
- package/dist/sdk/address/types.d.ts +26 -0
- package/dist/sdk/address/use-address-actions.d.ts +29 -0
- package/dist/sdk/address/use-address-actions.js +247 -0
- package/dist/sdk/address/use-address-actions.js.map +1 -0
- package/dist/sdk/address/use-address-by-postal-code.js +57 -0
- package/dist/sdk/address/use-address-by-postal-code.js.map +1 -0
- package/dist/sdk/address/validate-address.js +62 -0
- package/dist/sdk/address/validate-address.js.map +1 -0
- package/dist/sdk/cache/storefront-cache.js +29 -4
- package/dist/sdk/cache/storefront-cache.js.map +1 -1
- package/dist/sdk/client/fetch-page-data.d.ts +11 -0
- package/dist/sdk/client/fetch-page-data.js +12 -1
- package/dist/sdk/client/fetch-page-data.js.map +1 -1
- package/dist/sdk/content/create-content-runtime.js +1 -8
- package/dist/sdk/content/create-content-runtime.js.map +1 -1
- package/dist/sdk/data/failed-fields.js +23 -0
- package/dist/sdk/data/failed-fields.js.map +1 -0
- package/dist/sdk/data/index.js +2 -2
- package/dist/sdk/data/page-reactive-data-root.d.ts +45 -7
- package/dist/sdk/data/page-reactive-data-root.js +88 -12
- package/dist/sdk/data/page-reactive-data-root.js.map +1 -1
- package/dist/sdk/data/reactive-list-item-data-provider.js +2 -2
- package/dist/sdk/generated/fragment-types.js +2 -0
- package/dist/sdk/generated/fragment-types.js.map +1 -1
- package/dist/sdk/generated/gql.js +3 -1
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +8 -0
- package/dist/sdk/generated/graphql.js +212 -1
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/i18n/messages/en-US.js +138 -1
- package/dist/sdk/i18n/messages/en-US.json +138 -1
- package/dist/sdk/i18n/messages/en-US.json.d.ts +137 -0
- package/dist/sdk/i18n/messages/es-ES.js +138 -1
- package/dist/sdk/i18n/messages/es-ES.json +138 -1
- package/dist/sdk/i18n/messages/pt-BR.js +138 -1
- package/dist/sdk/i18n/messages/pt-BR.json +138 -1
- package/dist/sdk/navigation/current-page.js +30 -0
- package/dist/sdk/navigation/current-page.js.map +1 -0
- package/dist/sdk/navigation/not-found-log.d.ts +28 -0
- package/dist/sdk/navigation/not-found-log.js +133 -0
- package/dist/sdk/navigation/not-found-log.js.map +1 -0
- package/dist/sdk/navigation/path.js +25 -0
- package/dist/sdk/navigation/path.js.map +1 -0
- package/dist/sdk/navigation/redirect.d.ts +11 -0
- package/dist/sdk/navigation/redirect.js +22 -0
- package/dist/sdk/navigation/redirect.js.map +1 -0
- package/dist/sdk/navigation/report.js +70 -0
- package/dist/sdk/navigation/report.js.map +1 -0
- package/dist/sdk/navigation/resolve-storefront-href.d.ts +12 -0
- package/dist/sdk/navigation/resolve-storefront-href.js +214 -0
- package/dist/sdk/navigation/resolve-storefront-href.js.map +1 -0
- package/dist/sdk/navigation/route-identity-provider.d.ts +11 -0
- package/dist/sdk/navigation/route-identity-provider.js +20 -0
- package/dist/sdk/navigation/route-identity-provider.js.map +1 -0
- package/dist/sdk/navigation/route-map-provider.d.ts +19 -0
- package/dist/sdk/navigation/route-map-provider.js +29 -0
- package/dist/sdk/navigation/route-map-provider.js.map +1 -0
- package/dist/sdk/navigation/storefront-link.d.ts +16 -0
- package/dist/sdk/navigation/storefront-link.js +66 -0
- package/dist/sdk/navigation/storefront-link.js.map +1 -0
- package/dist/sdk/navigation/types.d.ts +45 -0
- package/dist/sdk/navigation/use-storefront-navigation.d.ts +26 -0
- package/dist/sdk/navigation/use-storefront-navigation.js +73 -0
- package/dist/sdk/navigation/use-storefront-navigation.js.map +1 -0
- package/dist/sdk/navigation/use-storefront-route.d.ts +26 -0
- package/dist/sdk/navigation/use-storefront-route.js +87 -0
- package/dist/sdk/navigation/use-storefront-route.js.map +1 -0
- package/dist/sdk/navigation/use-storefront-search-params.d.ts +11 -0
- package/dist/sdk/navigation/use-storefront-search-params.js +16 -0
- package/dist/sdk/navigation/use-storefront-search-params.js.map +1 -0
- package/dist/sdk/orders/completion-badge.d.ts +8 -0
- package/dist/sdk/orders/completion-badge.js +47 -0
- package/dist/sdk/orders/completion-badge.js.map +1 -0
- package/dist/sdk/orders/order-operations.d.ts +19 -0
- package/dist/sdk/orders/order-operations.js +21 -0
- package/dist/sdk/orders/order-operations.js.map +1 -0
- package/dist/sdk/orders/use-order-actions.d.ts +23 -0
- package/dist/sdk/orders/use-order-actions.js +62 -0
- package/dist/sdk/orders/use-order-actions.js.map +1 -0
- package/dist/sdk/payment/gateway-origin.js +26 -13
- package/dist/sdk/payment/gateway-origin.js.map +1 -1
- package/dist/sdk/payment/gateway.d.ts +14 -2
- package/dist/sdk/payment/gateway.js +32 -14
- package/dist/sdk/payment/gateway.js.map +1 -1
- package/dist/sdk/payment/operations.js +11 -0
- package/dist/sdk/payment/operations.js.map +1 -1
- package/dist/sdk/payment/submission-registry.d.ts +2 -1
- package/dist/sdk/payment/submission-registry.js +12 -8
- package/dist/sdk/payment/submission-registry.js.map +1 -1
- package/dist/sdk/payment/use-payment-actions.d.ts +5 -3
- package/dist/sdk/payment/use-payment-actions.js +5 -2
- package/dist/sdk/payment/use-payment-actions.js.map +1 -1
- package/dist/sdk/payment/use-place-order.d.ts +6 -3
- package/dist/sdk/payment/use-place-order.js +333 -143
- package/dist/sdk/payment/use-place-order.js.map +1 -1
- package/dist/sdk/seo/page-alternates.d.ts +55 -0
- package/dist/sdk/seo/page-alternates.js +132 -0
- package/dist/sdk/seo/page-alternates.js.map +1 -0
- package/dist/utils/own-value.js +19 -0
- package/dist/utils/own-value.js.map +1 -0
- package/dist/utils/safe-href.d.ts +4 -4
- package/dist/utils/safe-href.js +31 -22
- package/dist/utils/safe-href.js.map +1 -1
- package/package.json +5 -1
- package/skills/storefront-asset/SKILL.md +111 -0
- package/skills/storefront-asset/references/api-side.md +153 -0
- package/skills/storefront-asset/references/findings.md +40 -0
- package/skills/storefront-asset/references/ui-side.md +94 -0
- package/src/styles/tailwind.css +27 -0
package/dist/schema.graphql
CHANGED
|
@@ -403,6 +403,27 @@ extend type Query {
|
|
|
403
403
|
): Order
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
+
extend type Query {
|
|
407
|
+
"""
|
|
408
|
+
The fields a postal code resolves to. Needs no cart and no shopper. Null when
|
|
409
|
+
the platform does not know the code. A lookup that could not run is an error,
|
|
410
|
+
never null. A malformed argument is a BAD_USER_INPUT error and reaches no
|
|
411
|
+
upstream.
|
|
412
|
+
"""
|
|
413
|
+
addressByPostalCode(
|
|
414
|
+
"""
|
|
415
|
+
ISO 3166-1 alpha-3 code, such as `BRA`. Case and surrounding spaces are
|
|
416
|
+
ignored.
|
|
417
|
+
"""
|
|
418
|
+
country: String!
|
|
419
|
+
"""
|
|
420
|
+
The postal code, masked or not: letters, digits, spaces, and hyphens, up to
|
|
421
|
+
20 characters.
|
|
422
|
+
"""
|
|
423
|
+
postalCode: String!
|
|
424
|
+
): PostalCodeAddress
|
|
425
|
+
}
|
|
426
|
+
|
|
406
427
|
extend type Query {
|
|
407
428
|
"""Which authentication methods this account enables."""
|
|
408
429
|
sessionAuthProviders: SessionAuthProviders!
|
|
@@ -427,6 +448,59 @@ extend type Query {
|
|
|
427
448
|
nothing yet.
|
|
428
449
|
"""
|
|
429
450
|
customerProfile: CustomerProfile
|
|
451
|
+
"""
|
|
452
|
+
The signed-in shopper's saved addresses, in the order the profile returns
|
|
453
|
+
them. Takes no id: the identity comes from the session. Empty when the shopper
|
|
454
|
+
has none. Throws UNAUTHORIZED or UPSTREAM_ERROR (ADR-00007).
|
|
455
|
+
"""
|
|
456
|
+
customerAddresses: [CustomerAddress!]!
|
|
457
|
+
"""
|
|
458
|
+
The signed-in shopper's address book. Takes no id: the identity comes from the
|
|
459
|
+
session. Throws UNAUTHORIZED, or UPSTREAM_ERROR when `addresses` is selected
|
|
460
|
+
(ADR-00007).
|
|
461
|
+
"""
|
|
462
|
+
customerAddressBook: CustomerAddressBook!
|
|
463
|
+
"""
|
|
464
|
+
One of the signed-in shopper's saved addresses. Null when the id is malformed,
|
|
465
|
+
names another entity type, or is not one of this shopper's addresses; these
|
|
466
|
+
cases are indistinguishable.
|
|
467
|
+
"""
|
|
468
|
+
customerAddress(
|
|
469
|
+
"""The CustomerAddress global id, as returned by `customerAddresses`."""
|
|
470
|
+
id: ID!
|
|
471
|
+
): CustomerAddress
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
extend type Query {
|
|
475
|
+
"""
|
|
476
|
+
The countries the store ships to. Takes no arguments and needs no cart or
|
|
477
|
+
shopper. Null when the platform could not be read, with the reason in
|
|
478
|
+
`errors`; a consumer then knows no shipping country rather than none.
|
|
479
|
+
"""
|
|
480
|
+
shippingCountries: ShippingCountries
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
extend type Query {
|
|
484
|
+
"""
|
|
485
|
+
Read one order owned by the signed-in shopper. A missing or foreign order returns null.
|
|
486
|
+
"""
|
|
487
|
+
customerOrder(
|
|
488
|
+
"""Shopper-facing order number, or the global Node id of a CustomerOrder."""
|
|
489
|
+
id: ID!
|
|
490
|
+
): CustomerOrder @cacheControl(maxAge: 0, scope: PRIVATE)
|
|
491
|
+
"""One page of the signed-in shopper's orders."""
|
|
492
|
+
customerOrders(
|
|
493
|
+
"""Page size. Must be 25."""
|
|
494
|
+
first: Int!
|
|
495
|
+
"""Opaque resume cursor issued by this field."""
|
|
496
|
+
after: Cursor
|
|
497
|
+
"""Not supported. The list is read forward from the route."""
|
|
498
|
+
last: Int
|
|
499
|
+
"""Not supported. The list is read forward from the route."""
|
|
500
|
+
before: Cursor
|
|
501
|
+
"""View, text, and placed-date range."""
|
|
502
|
+
filter: CustomerOrdersFilterInput
|
|
503
|
+
): CustomerOrdersConnection! @cacheControl(maxAge: 0, scope: PRIVATE)
|
|
430
504
|
}
|
|
431
505
|
|
|
432
506
|
"""
|
|
@@ -627,6 +701,46 @@ extend type Mutation {
|
|
|
627
701
|
"""The fields to write. Provide only what the shopper edited."""
|
|
628
702
|
input: CustomerProfileUpdateInput!
|
|
629
703
|
): CustomerProfileUpdatePayload!
|
|
704
|
+
"""
|
|
705
|
+
Save a new address for the signed-in shopper. The store must ship to the country, and the
|
|
706
|
+
country's rules must accept the fields. Refusals come back as `userErrors`.
|
|
707
|
+
"""
|
|
708
|
+
customerAddressCreate(
|
|
709
|
+
"""The address to save."""
|
|
710
|
+
input: CustomerAddressCreateInput!
|
|
711
|
+
): CustomerAddressCreatePayload!
|
|
712
|
+
"""
|
|
713
|
+
Change one of the signed-in shopper's saved addresses. The merged address is validated
|
|
714
|
+
against its stored country. Refusals come back as `userErrors`.
|
|
715
|
+
"""
|
|
716
|
+
customerAddressUpdate(
|
|
717
|
+
"""The CustomerAddress global id, as returned by `customerAddresses`."""
|
|
718
|
+
id: ID!
|
|
719
|
+
"""The fields to change. Provide only what the shopper edited."""
|
|
720
|
+
input: CustomerAddressUpdateInput!
|
|
721
|
+
): CustomerAddressUpdatePayload!
|
|
722
|
+
"""
|
|
723
|
+
Remove one of the signed-in shopper's saved addresses. An address that is already gone
|
|
724
|
+
counts as removed.
|
|
725
|
+
"""
|
|
726
|
+
customerAddressDelete(
|
|
727
|
+
"""The CustomerAddress global id, as returned by `customerAddresses`."""
|
|
728
|
+
id: ID!
|
|
729
|
+
): CustomerAddressDeletePayload!
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
extend type Mutation {
|
|
733
|
+
"""
|
|
734
|
+
Request the cancellation of one order owned by the signed-in shopper. Checkout
|
|
735
|
+
records the request and OMS applies it afterwards, so the returned order can
|
|
736
|
+
still show the previous status.
|
|
737
|
+
"""
|
|
738
|
+
customerOrderCancel(
|
|
739
|
+
"""Shopper-facing order number."""
|
|
740
|
+
id: ID!
|
|
741
|
+
"""The optional reason."""
|
|
742
|
+
input: CustomerOrderCancelInput!
|
|
743
|
+
): CustomerOrderCancelPayload!
|
|
630
744
|
}
|
|
631
745
|
|
|
632
746
|
"""
|
|
@@ -1893,8 +2007,9 @@ own children (nested assemblies).
|
|
|
1893
2007
|
"""
|
|
1894
2008
|
type CartItemComposition {
|
|
1895
2009
|
"""
|
|
1896
|
-
|
|
1897
|
-
CartItem.id). Cache key only; not
|
|
2010
|
+
Identifier for this child line, scoped to the cart's order form or to the
|
|
2011
|
+
order's group (same opaque encoding as CartItem.id). Cache key only; not
|
|
2012
|
+
independently mutable.
|
|
1898
2013
|
"""
|
|
1899
2014
|
id: ID!
|
|
1900
2015
|
"""Display name as recorded on the order line."""
|
|
@@ -2492,6 +2607,10 @@ enum ShippingSimulateErrorCode {
|
|
|
2492
2607
|
No active cart in context: the cartShippingSimulation query requires an x-order-form-id and never mints a cart.
|
|
2493
2608
|
"""
|
|
2494
2609
|
MISSING_CART_CONTEXT
|
|
2610
|
+
"""
|
|
2611
|
+
The country is not an ISO 3166-1 alpha-3 code (three capital letters). Refused before any upstream call.
|
|
2612
|
+
"""
|
|
2613
|
+
INVALID_COUNTRY_CODE
|
|
2495
2614
|
}
|
|
2496
2615
|
|
|
2497
2616
|
"""A domain error returned from the shippingSimulation query."""
|
|
@@ -2798,6 +2917,10 @@ enum ShippingAddressUpdateErrorCode {
|
|
|
2798
2917
|
INVALID_POSTAL_CODE
|
|
2799
2918
|
"""The address is invalid."""
|
|
2800
2919
|
INVALID_ADDRESS
|
|
2920
|
+
"""
|
|
2921
|
+
The country is not an ISO 3166-1 alpha-3 code (three capital letters). Refused before any upstream call.
|
|
2922
|
+
"""
|
|
2923
|
+
INVALID_COUNTRY_CODE
|
|
2801
2924
|
}
|
|
2802
2925
|
|
|
2803
2926
|
"""A domain error returned from a shipping address update mutation."""
|
|
@@ -2905,6 +3028,46 @@ type Payment implements Node @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
|
2905
3028
|
Not sensitive — a BIN identifies an issuer range, never a card.
|
|
2906
3029
|
"""
|
|
2907
3030
|
selectedBin: String
|
|
3031
|
+
"""
|
|
3032
|
+
The store's country as an ISO 3166-1 alpha-3 code (e.g. "BRA"), read from the order form's
|
|
3033
|
+
store preferences. Null when the order form carries none or the value is not three capital
|
|
3034
|
+
letters. It is not limited to the countries in `countries`: a store in another country gets its
|
|
3035
|
+
own code and no table entry, and the API never substitutes another country's entry.
|
|
3036
|
+
"""
|
|
3037
|
+
storeCountryCode: String
|
|
3038
|
+
"""
|
|
3039
|
+
The countries the payment data supports and, per country, the cardholder document types it
|
|
3040
|
+
accepts. A fixed table, identical in every response and independent of the cart. Order: USA,
|
|
3041
|
+
BRA, CAN, MEX. Select the entry whose countryCode equals storeCountryCode.
|
|
3042
|
+
"""
|
|
3043
|
+
countries: [PaymentCountry!]!
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
"""
|
|
3047
|
+
A country the payment data supports, with the cardholder document types it accepts. A
|
|
3048
|
+
non-normalized value object read directly off Payment.countries.
|
|
3049
|
+
"""
|
|
3050
|
+
type PaymentCountry {
|
|
3051
|
+
"""ISO 3166-1 alpha-3 country code (e.g. "BRA")."""
|
|
3052
|
+
countryCode: String!
|
|
3053
|
+
"""
|
|
3054
|
+
The document types a cardholder of this country can give. Masks and validation rules are not
|
|
3055
|
+
carried: the client keys them on the document type.
|
|
3056
|
+
"""
|
|
3057
|
+
documents: [PaymentCountryDocument!]!
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
"""
|
|
3061
|
+
One cardholder document type of a PaymentCountry, with whether it is shown and whether it is
|
|
3062
|
+
required. Values follow @vtex/country-forms 1.2.0 for an individual person.
|
|
3063
|
+
"""
|
|
3064
|
+
type PaymentCountryDocument {
|
|
3065
|
+
"""Document type id, lowercase (e.g. "cpf", "ssn", "sin", "rfc")."""
|
|
3066
|
+
type: String!
|
|
3067
|
+
"""Whether the document field should be shown for this country."""
|
|
3068
|
+
displayable: Boolean!
|
|
3069
|
+
"""Whether the document is required for this country."""
|
|
3070
|
+
required: Boolean!
|
|
2908
3071
|
}
|
|
2909
3072
|
|
|
2910
3073
|
"""
|
|
@@ -2969,11 +3132,11 @@ type PaymentMethodValidator {
|
|
|
2969
3132
|
"""
|
|
2970
3133
|
Whether a cardholder document field is displayable for this method. Distinct from documentRequired.
|
|
2971
3134
|
"""
|
|
2972
|
-
documentDisplayable: Boolean!
|
|
3135
|
+
documentDisplayable: Boolean! @deprecated(reason: "The document type, mask and country come from Payment.countries. Storefront clients still read this flag as the merchant's per-method gate until a per-method replacement exists.")
|
|
2973
3136
|
"""
|
|
2974
3137
|
Whether the displayed cardholder document is required. Distinct from documentDisplayable — a document can be shown without being mandatory.
|
|
2975
3138
|
"""
|
|
2976
|
-
documentRequired: Boolean!
|
|
3139
|
+
documentRequired: Boolean! @deprecated(reason: "The document type, mask and country come from Payment.countries. Storefront clients still read this flag as the merchant's per-method gate until a per-method replacement exists.")
|
|
2977
3140
|
}
|
|
2978
3141
|
|
|
2979
3142
|
"""
|
|
@@ -3215,6 +3378,10 @@ enum PaymentBillingAddressUpdateErrorCode {
|
|
|
3215
3378
|
CART_NOT_FOUND
|
|
3216
3379
|
"""sameAsDelivery is false but postalCode or country was omitted."""
|
|
3217
3380
|
MISSING_BILLING_ADDRESS_FIELDS
|
|
3381
|
+
"""
|
|
3382
|
+
The country is not an ISO 3166-1 alpha-3 code (three capital letters). Refused before any upstream call.
|
|
3383
|
+
"""
|
|
3384
|
+
INVALID_COUNTRY_CODE
|
|
3218
3385
|
}
|
|
3219
3386
|
|
|
3220
3387
|
"""A domain error returned from the paymentBillingAddressUpdate mutation."""
|
|
@@ -3291,13 +3458,11 @@ type PaymentStartTransactionPayload {
|
|
|
3291
3458
|
merchantName: String
|
|
3292
3459
|
"""
|
|
3293
3460
|
Origin of the payment gateway this transaction must be paid at, e.g.
|
|
3294
|
-
"https://mystore.
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
account-derived origin, since this field decides where card data is sent.
|
|
3300
|
-
Null if errors occurred.
|
|
3461
|
+
"https://mystore.vtexvault.com" — the base the browser's direct-to-gateway
|
|
3462
|
+
send-payments POST appends its own path to. Always `https://{account}.vtexvault.com`,
|
|
3463
|
+
derived from the request's account alone: no upstream field and no caller-supplied
|
|
3464
|
+
value is an input, since this field decides where card data is sent. Null when the
|
|
3465
|
+
account is not a single DNS label, and if errors occurred.
|
|
3301
3466
|
"""
|
|
3302
3467
|
gatewayUrl: String
|
|
3303
3468
|
"""
|
|
@@ -3336,6 +3501,11 @@ succeeded.
|
|
|
3336
3501
|
input PaymentGatewayCallbackInput {
|
|
3337
3502
|
"""The order group returned by paymentStartTransaction."""
|
|
3338
3503
|
orderGroup: String!
|
|
3504
|
+
"""
|
|
3505
|
+
The resume flag. False (the default) on the first pass; true when the shopper
|
|
3506
|
+
returns from the bank's challenge page, so the callback accepts the challenge.
|
|
3507
|
+
"""
|
|
3508
|
+
acceptChallenges: Boolean = false
|
|
3339
3509
|
}
|
|
3340
3510
|
|
|
3341
3511
|
"""
|
|
@@ -3350,7 +3520,7 @@ enum PaymentGatewayCallbackErrorCode {
|
|
|
3350
3520
|
"""
|
|
3351
3521
|
MISSING_TRANSACTION_COOKIES
|
|
3352
3522
|
"""
|
|
3353
|
-
VTEX
|
|
3523
|
+
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).
|
|
3354
3524
|
"""
|
|
3355
3525
|
REDIRECT_REQUIRED
|
|
3356
3526
|
}
|
|
@@ -3369,6 +3539,10 @@ type PaymentGatewayCallbackPayload {
|
|
|
3369
3539
|
The finalized order group, echoed back on success. Null if errors occurred.
|
|
3370
3540
|
"""
|
|
3371
3541
|
orderId: String
|
|
3542
|
+
"""
|
|
3543
|
+
The bank's challenge page; set only when VTEX answered 428 with a usable http(s) URL.
|
|
3544
|
+
"""
|
|
3545
|
+
redirectUrl: String
|
|
3372
3546
|
"""Domain errors that occurred during the operation."""
|
|
3373
3547
|
userErrors: [PaymentGatewayCallbackError!]!
|
|
3374
3548
|
}
|
|
@@ -3385,8 +3559,9 @@ type OrderInstallment @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
|
3385
3559
|
"""Number of installments the order was charged in. 1 = single payment."""
|
|
3386
3560
|
count: Int!
|
|
3387
3561
|
"""
|
|
3388
|
-
Total charged across all installments, including any interest
|
|
3389
|
-
|
|
3562
|
+
Total charged across all installments, including any interest, in the
|
|
3563
|
+
order's currency, or the request's when no seller order carries one, as the
|
|
3564
|
+
order's other amounts are. Null when the settled record carries no amount.
|
|
3390
3565
|
"""
|
|
3391
3566
|
total: Money
|
|
3392
3567
|
}
|
|
@@ -3403,30 +3578,279 @@ type Order implements Node @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
|
3403
3578
|
"""
|
|
3404
3579
|
id: ID!
|
|
3405
3580
|
"""
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3581
|
+
The purchase's payment outcome, shared by its seller orders. The banner shows this one. UNKNOWN when
|
|
3582
|
+
the seller orders disagree.
|
|
3583
|
+
"""
|
|
3584
|
+
status: OrderStatus!
|
|
3585
|
+
"""
|
|
3586
|
+
The distinct payments of the purchase, each counted once across its seller orders. They follow the
|
|
3587
|
+
seller orders sorted by order id, and within a transaction the order the order system lists them
|
|
3588
|
+
in, which this API does not change. Empty when the order carries no payment.
|
|
3589
|
+
"""
|
|
3590
|
+
payments: [OrderPayment!]!
|
|
3591
|
+
"""
|
|
3592
|
+
Card network / payment-system display name of the first payment (e.g. "Visa", or a non-card
|
|
3593
|
+
method's own name such as "Boleto Bancário"). Kept for the payment recap; prefer payments. Null
|
|
3594
|
+
when the settled order carries no payment record to project one from.
|
|
3409
3595
|
"""
|
|
3410
3596
|
network: String
|
|
3411
3597
|
"""
|
|
3412
|
-
Last four digits of the card used, when the payment method was a card.
|
|
3598
|
+
Last four digits of the card used by the first payment, when the payment method was a card.
|
|
3413
3599
|
Present for both a saved and a freshly-entered card — unlike Payment (T1),
|
|
3414
|
-
where last four is a saved-card-only field.
|
|
3415
|
-
when no payment record exists to project one from.
|
|
3600
|
+
where last four is a saved-card-only field. Kept for the payment recap; prefer payments. Null for
|
|
3601
|
+
a non-card method or when no payment record exists to project one from.
|
|
3416
3602
|
"""
|
|
3417
3603
|
lastFourDigits: String
|
|
3604
|
+
"""Always null: the order system sends no card label."""
|
|
3605
|
+
label: String @deprecated(reason: "The order system sends no card label; always null.")
|
|
3418
3606
|
"""
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
payment record exists to project one from (see specs/order-read-model.md,
|
|
3422
|
-
Decision 5).
|
|
3607
|
+
The installment plan of the first payment. Kept for the payment recap; prefer payments. Null when
|
|
3608
|
+
the settled record reports none.
|
|
3423
3609
|
"""
|
|
3424
|
-
|
|
3610
|
+
installment: OrderInstallment
|
|
3611
|
+
"""
|
|
3612
|
+
Who bought, as the order recorded them at placement, not the live profile. Masked (e.g.
|
|
3613
|
+
"A*** S***") when personalDataVisible is false. Null when the order carries no profile.
|
|
3614
|
+
"""
|
|
3615
|
+
customer: OrderCustomer
|
|
3616
|
+
"""
|
|
3617
|
+
Whether the order system returned the order's personal data unmasked: the customer, and the
|
|
3618
|
+
addresses, invoice and payment details it masks under the same verdict. False means masked, and is
|
|
3619
|
+
also the answer when the order system does not say.
|
|
3620
|
+
"""
|
|
3621
|
+
personalDataVisible: Boolean!
|
|
3622
|
+
"""
|
|
3623
|
+
The order group: the reference the shopper reads and support resolves. One per purchase, however
|
|
3624
|
+
many sellers.
|
|
3625
|
+
"""
|
|
3626
|
+
reference: String!
|
|
3627
|
+
"""
|
|
3628
|
+
When the purchase was placed: the earliest creation date across its seller orders. Null when none
|
|
3629
|
+
carries one.
|
|
3630
|
+
"""
|
|
3631
|
+
placedAt: DateTime
|
|
3632
|
+
"""
|
|
3633
|
+
What the purchase costs: the sum of its seller orders' totals. Null when a seller order has none.
|
|
3634
|
+
"""
|
|
3635
|
+
total: Money
|
|
3636
|
+
"""
|
|
3637
|
+
The purchase's money lines: each line summed across seller orders, keyed on (id, name).
|
|
3638
|
+
"""
|
|
3639
|
+
totals: [CartTotalizer!]!
|
|
3640
|
+
"""
|
|
3641
|
+
The purchase split by seller, one entry per seller order, sorted by orderId.
|
|
3642
|
+
"""
|
|
3643
|
+
sellerOrders: [SellerOrder!]!
|
|
3644
|
+
"""
|
|
3645
|
+
Every item of the purchase grouped by shipping method, channel and relative estimate, across
|
|
3646
|
+
sellers; SmartCheckout uses the same key within each seller order.
|
|
3647
|
+
"""
|
|
3648
|
+
deliveries: [OrderDelivery!]!
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
"""
|
|
3652
|
+
Items that arrive together: the same shipping method, channel and relative estimate.
|
|
3653
|
+
"""
|
|
3654
|
+
type OrderDelivery @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
3655
|
+
"""Encoded from the grouping key and its scope, the order group."""
|
|
3656
|
+
id: ID!
|
|
3657
|
+
"""
|
|
3658
|
+
The shipping method, as the shopper chose it: its name, channel and relative estimate. Its price
|
|
3659
|
+
is one line's; use price. Null when the order system omits the method or its estimate is
|
|
3660
|
+
unreadable.
|
|
3661
|
+
"""
|
|
3662
|
+
shippingOption: OrderShippingOption
|
|
3663
|
+
"""
|
|
3664
|
+
The group's dated promise: its latest line's, so it covers every item. Null when no line carries a
|
|
3665
|
+
date.
|
|
3666
|
+
"""
|
|
3667
|
+
estimatedDate: DateTime
|
|
3668
|
+
"""
|
|
3669
|
+
What the group's shipping cost: the sum of its lines' shipping prices. A line without a readable
|
|
3670
|
+
method adds zero, so with shippingOption null this zero is unknown, never free shipping.
|
|
3671
|
+
"""
|
|
3672
|
+
price: Money!
|
|
3425
3673
|
"""
|
|
3426
|
-
|
|
3427
|
-
|
|
3674
|
+
What the group's shipping would have cost without discounts: the sum of its lines' list prices,
|
|
3675
|
+
read as price is.
|
|
3676
|
+
"""
|
|
3677
|
+
listPrice: Money!
|
|
3678
|
+
"""
|
|
3679
|
+
Where the group ships: its first line's address. The address is not part of the grouping key: the
|
|
3680
|
+
cart delivers to one address, so a group's lines share it. Each line's own is on
|
|
3681
|
+
items.deliveryAddress. Masked under personalDataVisible.
|
|
3682
|
+
"""
|
|
3683
|
+
address: Address
|
|
3684
|
+
"""
|
|
3685
|
+
The pickup point's name: its first line's. Null unless the group is picked up.
|
|
3686
|
+
"""
|
|
3687
|
+
pickupPointName: String
|
|
3688
|
+
"""The number of items in the group."""
|
|
3689
|
+
itemCount: Int!
|
|
3690
|
+
"""The group's items, in the order of the seller orders."""
|
|
3691
|
+
items: [OrderItem!]!
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
"""
|
|
3695
|
+
The shipping method the shopper chose, as the order recorded it. Read from the order, never from the
|
|
3696
|
+
cart.
|
|
3697
|
+
"""
|
|
3698
|
+
type OrderShippingOption @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
3699
|
+
"""Encoded from the order group, the line's uniqueId and the SLA id."""
|
|
3700
|
+
id: ID!
|
|
3701
|
+
"""
|
|
3702
|
+
The method's name, e.g. Motoboy. The SLA id when the order system sends no name.
|
|
3703
|
+
"""
|
|
3704
|
+
name: String!
|
|
3705
|
+
"""Delivery channel: home delivery or pickup."""
|
|
3706
|
+
channel: DeliveryChannel!
|
|
3707
|
+
"""The method's relative estimate, e.g. 7 business days."""
|
|
3708
|
+
shippingEstimate: ShippingEstimate!
|
|
3709
|
+
"""What this line's shipping cost. Zero when free shipping applies."""
|
|
3710
|
+
price: Money!
|
|
3711
|
+
"""What this line's shipping would have cost without discounts."""
|
|
3712
|
+
listPrice: Money!
|
|
3713
|
+
}
|
|
3714
|
+
|
|
3715
|
+
"""
|
|
3716
|
+
The payment outcome of a settled order (PRD UQ-2), mapped from the order's Checkout workflow state.
|
|
3717
|
+
"""
|
|
3718
|
+
enum OrderStatus {
|
|
3719
|
+
"""The payment was approved, or the order has moved past approval."""
|
|
3720
|
+
APPROVED
|
|
3721
|
+
"""The payment is not decided yet, under anti-fraud review included."""
|
|
3722
|
+
PENDING
|
|
3723
|
+
"""The payment was denied, or the order was cancelled."""
|
|
3724
|
+
DENIED
|
|
3725
|
+
"""A state the page does not classify. It asserts no outcome."""
|
|
3726
|
+
UNKNOWN
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
"""One payment of a settled purchase. No id: it lives inside its Order."""
|
|
3730
|
+
type OrderPayment @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
3731
|
+
"""
|
|
3732
|
+
Card network / payment-system display name, e.g. "Visa". Null when the order system sends none.
|
|
3733
|
+
"""
|
|
3734
|
+
network: String
|
|
3735
|
+
"""
|
|
3736
|
+
Last four digits of the card, when the payment method was a card. Never the card number.
|
|
3737
|
+
"""
|
|
3738
|
+
lastFourDigits: String
|
|
3739
|
+
"""
|
|
3740
|
+
The installment plan of this payment. Null when the settled record reports none.
|
|
3428
3741
|
"""
|
|
3429
3742
|
installment: OrderInstallment
|
|
3743
|
+
"""
|
|
3744
|
+
What this payment charged, in full: never one instalment. Null only if the order system omits it,
|
|
3745
|
+
which it does not today.
|
|
3746
|
+
"""
|
|
3747
|
+
value: Money
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
"""One seller's part of a purchase: its own seller, totals and items."""
|
|
3751
|
+
type SellerOrder @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
3752
|
+
"""Encoded from orderId."""
|
|
3753
|
+
id: ID!
|
|
3754
|
+
"""The seller order's number, e.g. 1667094470146-01."""
|
|
3755
|
+
orderId: String!
|
|
3756
|
+
"""
|
|
3757
|
+
The seller fulfilling this order. Null only when neither sellers nor any readable item names one.
|
|
3758
|
+
"""
|
|
3759
|
+
seller: CartSellerRef
|
|
3760
|
+
"""
|
|
3761
|
+
What this seller order costs. Null when the order system does not send it.
|
|
3762
|
+
"""
|
|
3763
|
+
total: Money
|
|
3764
|
+
"""This seller order's money lines. The cart's own totalizer type."""
|
|
3765
|
+
totals: [CartTotalizer!]!
|
|
3766
|
+
"""
|
|
3767
|
+
Every line of this seller order. Children of a composition nest under their parent.
|
|
3768
|
+
"""
|
|
3769
|
+
items: [OrderItem!]!
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3772
|
+
"""
|
|
3773
|
+
One purchased line of a settled order. The fields mean what they mean on CartItem.
|
|
3774
|
+
"""
|
|
3775
|
+
type OrderItem @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
3776
|
+
"""Encoded from the order group and the line's uniqueId."""
|
|
3777
|
+
id: ID!
|
|
3778
|
+
"""
|
|
3779
|
+
The SKU as the cart shows it: name, image, seller, availability and variation.
|
|
3780
|
+
"""
|
|
3781
|
+
variant: CartVariant!
|
|
3782
|
+
"""
|
|
3783
|
+
The product the SKU belongs to: title, detail URL, categories and brand.
|
|
3784
|
+
"""
|
|
3785
|
+
product: CartProduct!
|
|
3786
|
+
"""How many units were bought."""
|
|
3787
|
+
quantity: Int!
|
|
3788
|
+
"""The unit price at placement, before discounts."""
|
|
3789
|
+
price: Money!
|
|
3790
|
+
"""Zero when the line had no list price."""
|
|
3791
|
+
listPrice: Money!
|
|
3792
|
+
"""The unit price the shopper paid."""
|
|
3793
|
+
sellingPrice: Money!
|
|
3794
|
+
"""The line's own total, as the cart computes it."""
|
|
3795
|
+
ownTotal: Money!
|
|
3796
|
+
"""The line's own total plus its compositions'."""
|
|
3797
|
+
total: Money!
|
|
3798
|
+
"""Whether the line is a gift."""
|
|
3799
|
+
gift: Boolean!
|
|
3800
|
+
"""The featured promotions that discounted this line."""
|
|
3801
|
+
discounts: [CartItemDiscount!]!
|
|
3802
|
+
"""The values the shopper entered for the line's input assemblies."""
|
|
3803
|
+
customizations: [CartItemCustomization!]!
|
|
3804
|
+
"""The add-on services and bundle children nested under this line."""
|
|
3805
|
+
compositions: [CartItemComposition!]!
|
|
3806
|
+
"""
|
|
3807
|
+
The shipping method the shopper chose for this line. Null when the order system omits it or its
|
|
3808
|
+
estimate is unreadable.
|
|
3809
|
+
"""
|
|
3810
|
+
selectedShippingOption: OrderShippingOption
|
|
3811
|
+
"""
|
|
3812
|
+
Where this line ships: the delivery address, or the pickup point's. Masked under
|
|
3813
|
+
personalDataVisible.
|
|
3814
|
+
"""
|
|
3815
|
+
deliveryAddress: Address
|
|
3816
|
+
"""
|
|
3817
|
+
The pickup point's name, e.g. "RJ - Botafogo Praia Shopping". Null unless the line is picked up.
|
|
3818
|
+
"""
|
|
3819
|
+
pickupPointName: String
|
|
3820
|
+
"""The dated promise. Null when the order system has not set one."""
|
|
3821
|
+
estimatedDeliveryDate: DateTime
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3824
|
+
"""
|
|
3825
|
+
The customer of a settled order, as the order recorded them at placement. The same fields as
|
|
3826
|
+
ClientProfile, which is the live order form's profile.
|
|
3827
|
+
"""
|
|
3828
|
+
type OrderCustomer @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
3829
|
+
"""Email address."""
|
|
3830
|
+
email: String
|
|
3831
|
+
"""First name."""
|
|
3832
|
+
firstName: String
|
|
3833
|
+
"""Last name."""
|
|
3834
|
+
lastName: String
|
|
3835
|
+
"""Phone number."""
|
|
3836
|
+
phone: String
|
|
3837
|
+
"""Identity document number."""
|
|
3838
|
+
document: String
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
"""
|
|
3842
|
+
The address fields a postal code resolves to. Each is null when the platform
|
|
3843
|
+
left it blank.
|
|
3844
|
+
"""
|
|
3845
|
+
type PostalCodeAddress @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
3846
|
+
"""The city, as the platform names it."""
|
|
3847
|
+
city: String
|
|
3848
|
+
"""The state or region, as the platform codes it (`SP`, `NY`)."""
|
|
3849
|
+
state: String
|
|
3850
|
+
"""The street. Null where the platform resolves codes to an area only."""
|
|
3851
|
+
street: String
|
|
3852
|
+
"""The neighborhood. Null where the platform resolves none."""
|
|
3853
|
+
neighborhood: String
|
|
3430
3854
|
}
|
|
3431
3855
|
|
|
3432
3856
|
"""
|
|
@@ -3597,7 +4021,7 @@ type CustomerProfile @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
|
3597
4021
|
"""
|
|
3598
4022
|
Stable identity for cache normalization. Not a Relay Node ID: the profile is
|
|
3599
4023
|
session-scoped shopper state, derived from the session and never addressable
|
|
3600
|
-
by a global id (no id argument, no
|
|
4024
|
+
by a global id (no id argument, no CustomerProfile entry in Query.node).
|
|
3601
4025
|
"""
|
|
3602
4026
|
id: ID!
|
|
3603
4027
|
"""Given name. Null when unset."""
|
|
@@ -3689,3 +4113,565 @@ type CustomerProfileUpdatePayload {
|
|
|
3689
4113
|
"""Typed, expected write failures. Empty on success."""
|
|
3690
4114
|
userErrors: [CustomerProfileError!]!
|
|
3691
4115
|
}
|
|
4116
|
+
|
|
4117
|
+
"""
|
|
4118
|
+
An address the shopper saved to their account. Read from the shopper's own
|
|
4119
|
+
profile, never through a cart. Every field it shares with checkout's Address is
|
|
4120
|
+
spelled the same way.
|
|
4121
|
+
"""
|
|
4122
|
+
type CustomerAddress implements Node @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
4123
|
+
"""
|
|
4124
|
+
Global id. Resolves through Query.node only inside the signed-in shopper's own
|
|
4125
|
+
addresses; any other id resolves to null.
|
|
4126
|
+
"""
|
|
4127
|
+
id: ID!
|
|
4128
|
+
"""
|
|
4129
|
+
ISO 3166-1 alpha-3 country code, as stored. Null when the stored address has
|
|
4130
|
+
none, as an address another system wrote can; it is listed so the shopper can
|
|
4131
|
+
still see and remove it.
|
|
4132
|
+
"""
|
|
4133
|
+
country: String
|
|
4134
|
+
"""Who receives deliveries at this address. Null when unset."""
|
|
4135
|
+
recipientName: String
|
|
4136
|
+
"""Street name. Null when unset."""
|
|
4137
|
+
street: String
|
|
4138
|
+
"""Street number. Null when unset."""
|
|
4139
|
+
number: String
|
|
4140
|
+
"""Additional address detail (apartment, suite, etc.). Null when unset."""
|
|
4141
|
+
complement: String
|
|
4142
|
+
"""Neighborhood or district. Null when unset."""
|
|
4143
|
+
neighborhood: String
|
|
4144
|
+
"""City. Null when unset."""
|
|
4145
|
+
city: String
|
|
4146
|
+
"""State or province code. Null when unset."""
|
|
4147
|
+
state: String
|
|
4148
|
+
"""Postal code, as stored. Null when unset."""
|
|
4149
|
+
postalCode: String
|
|
4150
|
+
"""A landmark that helps find the address. Null when unset."""
|
|
4151
|
+
reference: String
|
|
4152
|
+
}
|
|
4153
|
+
|
|
4154
|
+
"""
|
|
4155
|
+
The signed-in shopper's saved addresses, held in one object so a client can cache
|
|
4156
|
+
and subscribe to the list. It takes no argument and reads only the shopper's own
|
|
4157
|
+
list. Not resolvable through Query.node.
|
|
4158
|
+
"""
|
|
4159
|
+
type CustomerAddressBook @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
4160
|
+
"""
|
|
4161
|
+
Stable identity for cache normalization, the same for every request of the
|
|
4162
|
+
shopper. Not a Relay Node ID.
|
|
4163
|
+
"""
|
|
4164
|
+
id: ID!
|
|
4165
|
+
"""
|
|
4166
|
+
Every saved address, the same list `customerAddresses` returns. Empty when the
|
|
4167
|
+
shopper has none.
|
|
4168
|
+
"""
|
|
4169
|
+
addresses: [CustomerAddress!]!
|
|
4170
|
+
}
|
|
4171
|
+
|
|
4172
|
+
"""
|
|
4173
|
+
A new saved address. `country` is required; every other field is optional to the
|
|
4174
|
+
schema, and the country's rules say which ones it needs. A field that is omitted,
|
|
4175
|
+
`null`, or an empty string is not written.
|
|
4176
|
+
"""
|
|
4177
|
+
input CustomerAddressCreateInput {
|
|
4178
|
+
"""
|
|
4179
|
+
ISO 3166-1 alpha-3 country code. The store must ship to it. Trimmed and upper-cased.
|
|
4180
|
+
"""
|
|
4181
|
+
country: String!
|
|
4182
|
+
"""Who receives deliveries at this address."""
|
|
4183
|
+
recipientName: String
|
|
4184
|
+
"""Street name."""
|
|
4185
|
+
street: String
|
|
4186
|
+
"""Street number."""
|
|
4187
|
+
number: String
|
|
4188
|
+
"""Additional address detail (apartment, suite, etc.)."""
|
|
4189
|
+
complement: String
|
|
4190
|
+
"""Neighborhood or district."""
|
|
4191
|
+
neighborhood: String
|
|
4192
|
+
"""City."""
|
|
4193
|
+
city: String
|
|
4194
|
+
"""State or province code."""
|
|
4195
|
+
state: String
|
|
4196
|
+
"""Postal code. Stored in the country's masked form once it is valid."""
|
|
4197
|
+
postalCode: String
|
|
4198
|
+
"""A landmark that helps find the address."""
|
|
4199
|
+
reference: String
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4202
|
+
"""
|
|
4203
|
+
Changes to a saved address. Omit a field, or send `null`, to keep it; send an empty
|
|
4204
|
+
string to erase it. The country cannot change.
|
|
4205
|
+
"""
|
|
4206
|
+
input CustomerAddressUpdateInput {
|
|
4207
|
+
"""
|
|
4208
|
+
Who receives deliveries at this address. Omit to leave unchanged; empty string to erase.
|
|
4209
|
+
"""
|
|
4210
|
+
recipientName: String
|
|
4211
|
+
"""Street name. Omit to leave unchanged; empty string to erase."""
|
|
4212
|
+
street: String
|
|
4213
|
+
"""Street number. Omit to leave unchanged; empty string to erase."""
|
|
4214
|
+
number: String
|
|
4215
|
+
"""
|
|
4216
|
+
Additional address detail (apartment, suite, etc.). Omit to leave unchanged; empty string to erase.
|
|
4217
|
+
"""
|
|
4218
|
+
complement: String
|
|
4219
|
+
"""
|
|
4220
|
+
Neighborhood or district. Omit to leave unchanged; empty string to erase.
|
|
4221
|
+
"""
|
|
4222
|
+
neighborhood: String
|
|
4223
|
+
"""City. Omit to leave unchanged; empty string to erase."""
|
|
4224
|
+
city: String
|
|
4225
|
+
"""
|
|
4226
|
+
State or province code. Omit to leave unchanged; empty string to erase.
|
|
4227
|
+
"""
|
|
4228
|
+
state: String
|
|
4229
|
+
"""
|
|
4230
|
+
Postal code. Omit to leave unchanged; empty string to erase. Stored in the country's masked form once it is valid.
|
|
4231
|
+
"""
|
|
4232
|
+
postalCode: String
|
|
4233
|
+
"""
|
|
4234
|
+
A landmark that helps find the address. Omit to leave unchanged; empty string to erase.
|
|
4235
|
+
"""
|
|
4236
|
+
reference: String
|
|
4237
|
+
}
|
|
4238
|
+
|
|
4239
|
+
"""
|
|
4240
|
+
A typed, expected failure of an address write, or of the lookup that precedes it.
|
|
4241
|
+
"""
|
|
4242
|
+
type CustomerAddressError {
|
|
4243
|
+
"""Machine-readable code for the failure."""
|
|
4244
|
+
code: CustomerAddressErrorCode!
|
|
4245
|
+
"""
|
|
4246
|
+
A safe, fixed message. Never echoes a submitted value, an id, or a key.
|
|
4247
|
+
"""
|
|
4248
|
+
message: String!
|
|
4249
|
+
"""
|
|
4250
|
+
The field the failure is about. Null when it is about the address as a whole.
|
|
4251
|
+
"""
|
|
4252
|
+
field: CustomerAddressField
|
|
4253
|
+
}
|
|
4254
|
+
|
|
4255
|
+
"""The set of expected, typed address-write failure codes."""
|
|
4256
|
+
enum CustomerAddressErrorCode {
|
|
4257
|
+
"""
|
|
4258
|
+
The id is malformed, names another entity type, or is not one of the shopper's saved
|
|
4259
|
+
addresses. These cases are indistinguishable.
|
|
4260
|
+
"""
|
|
4261
|
+
NOT_FOUND
|
|
4262
|
+
"""The country's rules require this field and it is empty."""
|
|
4263
|
+
MISSING_REQUIRED_FIELD
|
|
4264
|
+
"""
|
|
4265
|
+
The value is not accepted: a bad format, a value outside the country's options, a value
|
|
4266
|
+
that is too long, or a country that is not three letters. With no field, the profile
|
|
4267
|
+
service refused the address and does not say why.
|
|
4268
|
+
"""
|
|
4269
|
+
INVALID_VALUE
|
|
4270
|
+
"""The store does not ship to the country."""
|
|
4271
|
+
UNSUPPORTED_COUNTRY
|
|
4272
|
+
}
|
|
4273
|
+
|
|
4274
|
+
"""The address field a failure is about."""
|
|
4275
|
+
enum CustomerAddressField {
|
|
4276
|
+
"""The `country` field."""
|
|
4277
|
+
COUNTRY
|
|
4278
|
+
"""The `recipientName` field."""
|
|
4279
|
+
RECIPIENT_NAME
|
|
4280
|
+
"""The `street` field."""
|
|
4281
|
+
STREET
|
|
4282
|
+
"""The `number` field."""
|
|
4283
|
+
NUMBER
|
|
4284
|
+
"""The `complement` field."""
|
|
4285
|
+
COMPLEMENT
|
|
4286
|
+
"""The `neighborhood` field."""
|
|
4287
|
+
NEIGHBORHOOD
|
|
4288
|
+
"""The `city` field."""
|
|
4289
|
+
CITY
|
|
4290
|
+
"""The `state` field."""
|
|
4291
|
+
STATE
|
|
4292
|
+
"""The `postalCode` field."""
|
|
4293
|
+
POSTAL_CODE
|
|
4294
|
+
"""The `reference` field."""
|
|
4295
|
+
REFERENCE
|
|
4296
|
+
}
|
|
4297
|
+
|
|
4298
|
+
"""The result of creating a saved address."""
|
|
4299
|
+
type CustomerAddressCreatePayload {
|
|
4300
|
+
"""The address as written. Null when `userErrors` is not empty."""
|
|
4301
|
+
customerAddress: CustomerAddress
|
|
4302
|
+
"""Typed, expected failures, one per refused field. Empty on success."""
|
|
4303
|
+
userErrors: [CustomerAddressError!]!
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
"""The result of updating a saved address."""
|
|
4307
|
+
type CustomerAddressUpdatePayload {
|
|
4308
|
+
"""
|
|
4309
|
+
The address as written, or as stored when the input provided no field. Null when
|
|
4310
|
+
`userErrors` is not empty.
|
|
4311
|
+
"""
|
|
4312
|
+
customerAddress: CustomerAddress
|
|
4313
|
+
"""Typed, expected failures, one per refused field. Empty on success."""
|
|
4314
|
+
userErrors: [CustomerAddressError!]!
|
|
4315
|
+
}
|
|
4316
|
+
|
|
4317
|
+
"""The result of deleting a saved address."""
|
|
4318
|
+
type CustomerAddressDeletePayload {
|
|
4319
|
+
"""
|
|
4320
|
+
The id of the deleted address, to evict it from a client cache. Null when `userErrors`
|
|
4321
|
+
is not empty.
|
|
4322
|
+
"""
|
|
4323
|
+
deletedCustomerAddressId: ID
|
|
4324
|
+
"""Typed, expected failures. Empty on success."""
|
|
4325
|
+
userErrors: [CustomerAddressError!]!
|
|
4326
|
+
}
|
|
4327
|
+
|
|
4328
|
+
"""
|
|
4329
|
+
The countries the store ships to, read from the platform's freight
|
|
4330
|
+
configuration. Store-level and identical for every shopper.
|
|
4331
|
+
"""
|
|
4332
|
+
type ShippingCountries @cacheControl(maxAge: 3600, scope: PUBLIC) {
|
|
4333
|
+
"""
|
|
4334
|
+
ISO 3166-1 alpha-3 codes, upper-case, without duplicates, in the order the
|
|
4335
|
+
platform lists them. Never empty: when the freight configuration declares no
|
|
4336
|
+
country, this holds the sales channel's country and `source` says so.
|
|
4337
|
+
"""
|
|
4338
|
+
countries: [String!]!
|
|
4339
|
+
"""
|
|
4340
|
+
Where `countries` came from. A consumer that judges an address against the
|
|
4341
|
+
list must not do so when this is `SALES_CHANNEL_FALLBACK`.
|
|
4342
|
+
"""
|
|
4343
|
+
source: ShippingCountriesSource!
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
"""The origin of a shipping-country list."""
|
|
4347
|
+
enum ShippingCountriesSource {
|
|
4348
|
+
"""The store's freight configuration declares these countries."""
|
|
4349
|
+
PLATFORM
|
|
4350
|
+
"""
|
|
4351
|
+
The freight configuration declares none, so the list is the sales channel's
|
|
4352
|
+
country alone. It is a guess, not a declared delivery area.
|
|
4353
|
+
"""
|
|
4354
|
+
SALES_CHANNEL_FALLBACK
|
|
4355
|
+
}
|
|
4356
|
+
|
|
4357
|
+
"""A placed order owned by the signed-in shopper."""
|
|
4358
|
+
type CustomerOrder implements Node @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
4359
|
+
"""Global Node id. Refetch it with `node` or `customerOrder`."""
|
|
4360
|
+
id: ID!
|
|
4361
|
+
"""
|
|
4362
|
+
Shopper-facing order number. The same value the list carries as its `id`.
|
|
4363
|
+
"""
|
|
4364
|
+
orderNumber: String!
|
|
4365
|
+
"""Raw OMS status code."""
|
|
4366
|
+
status: String!
|
|
4367
|
+
"""Whether OMS currently permits whole-order cancellation."""
|
|
4368
|
+
allowCancellation: Boolean!
|
|
4369
|
+
"""Timestamp when the order was placed."""
|
|
4370
|
+
placedAt: DateTime
|
|
4371
|
+
"""Grand total recorded on the order."""
|
|
4372
|
+
total: Money!
|
|
4373
|
+
"""Itemized totals recorded on the order."""
|
|
4374
|
+
totals: [CustomerOrderTotal!]!
|
|
4375
|
+
"""Product lines recorded on the order."""
|
|
4376
|
+
items: [CustomerOrderItem!]!
|
|
4377
|
+
"""Product lines grouped by their selected delivery option."""
|
|
4378
|
+
deliveryOptions: [CustomerOrderDeliveryOption!]!
|
|
4379
|
+
"""Payments recorded on active and historical transactions."""
|
|
4380
|
+
payments: [CustomerOrderPayment!]!
|
|
4381
|
+
"""Whether every package has a recorded delivery confirmation."""
|
|
4382
|
+
isAllDelivered: Boolean
|
|
4383
|
+
"""Earliest estimated delivery timestamp."""
|
|
4384
|
+
shippingEstimatedDateMin: DateTime
|
|
4385
|
+
"""Latest estimated delivery timestamp."""
|
|
4386
|
+
shippingEstimatedDateMax: DateTime
|
|
4387
|
+
"""Timestamp when the order was invoiced."""
|
|
4388
|
+
invoiceDate: DateTime
|
|
4389
|
+
"""
|
|
4390
|
+
Order delivery channel. The order-level value when OMS supplies it, otherwise
|
|
4391
|
+
the channel every logistics entry agrees on. Null when those entries differ.
|
|
4392
|
+
"""
|
|
4393
|
+
selectedDeliveryChannel: String
|
|
4394
|
+
"""
|
|
4395
|
+
Completion resolved once for this order, with the inputs the single-order payload carries. The list also passes courierStatusFinished, which this payload does not.
|
|
4396
|
+
"""
|
|
4397
|
+
completion: CustomerOrderCompletion!
|
|
4398
|
+
"""The progress stage this order is in."""
|
|
4399
|
+
progress: CustomerOrderProgress!
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
"""
|
|
4403
|
+
One of the four progress stages a shopper sees. Approval is not a stage.
|
|
4404
|
+
"""
|
|
4405
|
+
enum CustomerOrderProgressStage {
|
|
4406
|
+
"""The order was placed and payment has not started."""
|
|
4407
|
+
PLACED
|
|
4408
|
+
"""Payment is pending, awaiting authorization, or denied."""
|
|
4409
|
+
PAYMENT
|
|
4410
|
+
"""Payment was approved and the order is being prepared."""
|
|
4411
|
+
PROCESSING
|
|
4412
|
+
"""The order was invoiced and is on its way or ready for pickup."""
|
|
4413
|
+
SHIPPING
|
|
4414
|
+
}
|
|
4415
|
+
|
|
4416
|
+
"""Progress stage resolved once for one order."""
|
|
4417
|
+
type CustomerOrderProgress {
|
|
4418
|
+
"""The stage the order is in. A cancelled order stays on PAYMENT."""
|
|
4419
|
+
stage: CustomerOrderProgressStage!
|
|
4420
|
+
"""True when payment was denied or the order was cancelled."""
|
|
4421
|
+
paymentFailed: Boolean!
|
|
4422
|
+
"""True when the order is cancelled or a cancellation was requested."""
|
|
4423
|
+
cancelled: Boolean!
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4426
|
+
"""One total line recorded on a placed order."""
|
|
4427
|
+
type CustomerOrderTotal {
|
|
4428
|
+
"""Stable total category code."""
|
|
4429
|
+
id: String!
|
|
4430
|
+
"""Upstream total name."""
|
|
4431
|
+
name: String!
|
|
4432
|
+
"""Monetary value of this total line."""
|
|
4433
|
+
value: Money!
|
|
4434
|
+
}
|
|
4435
|
+
|
|
4436
|
+
"""One product line recorded on a placed order."""
|
|
4437
|
+
type CustomerOrderItem {
|
|
4438
|
+
"""Stable line identifier within the order."""
|
|
4439
|
+
id: ID!
|
|
4440
|
+
"""Product name recorded at purchase time."""
|
|
4441
|
+
name: String!
|
|
4442
|
+
"""Purchased quantity."""
|
|
4443
|
+
quantity: Int!
|
|
4444
|
+
"""Product image recorded at purchase time."""
|
|
4445
|
+
image: Image
|
|
4446
|
+
"""Base unit price recorded on the line."""
|
|
4447
|
+
price: Money
|
|
4448
|
+
"""Unit list price recorded on the line."""
|
|
4449
|
+
listPrice: Money
|
|
4450
|
+
"""Effective unit selling price recorded on the line."""
|
|
4451
|
+
sellingPrice: Money
|
|
4452
|
+
"""
|
|
4453
|
+
Line total from the recorded selling price and quantity. Null when that price is absent.
|
|
4454
|
+
"""
|
|
4455
|
+
total: Money
|
|
4456
|
+
"""
|
|
4457
|
+
Tax recorded on the line. Null when OMS omitted it. A recorded zero is kept.
|
|
4458
|
+
"""
|
|
4459
|
+
tax: Money
|
|
4460
|
+
"""Custom values recorded on the line."""
|
|
4461
|
+
customFields: [CustomerOrderItemCustomField!]!
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4464
|
+
"""A custom value recorded on an order line."""
|
|
4465
|
+
type CustomerOrderItemCustomField {
|
|
4466
|
+
"""Custom field name."""
|
|
4467
|
+
name: String!
|
|
4468
|
+
"""Custom field value as recorded on the order."""
|
|
4469
|
+
value: String!
|
|
4470
|
+
}
|
|
4471
|
+
|
|
4472
|
+
"""Products that share one selected delivery option."""
|
|
4473
|
+
type CustomerOrderDeliveryOption {
|
|
4474
|
+
"""Selected service-level agreement name."""
|
|
4475
|
+
selectedSla: String
|
|
4476
|
+
"""Address identifier recorded by OMS."""
|
|
4477
|
+
addressId: String
|
|
4478
|
+
"""Delivery or pickup channel."""
|
|
4479
|
+
deliveryChannel: String
|
|
4480
|
+
"""Estimated delivery timestamp for this option."""
|
|
4481
|
+
shippingEstimateDate: DateTime
|
|
4482
|
+
"""Historical address recorded on the order."""
|
|
4483
|
+
address: CustomerOrderAddress
|
|
4484
|
+
"""Product lines assigned to this option."""
|
|
4485
|
+
items: [CustomerOrderItem!]!
|
|
4486
|
+
}
|
|
4487
|
+
|
|
4488
|
+
"""Historical delivery address recorded on an order."""
|
|
4489
|
+
type CustomerOrderAddress {
|
|
4490
|
+
"""Recipient name."""
|
|
4491
|
+
receiverName: String
|
|
4492
|
+
"""Postal code."""
|
|
4493
|
+
postalCode: String
|
|
4494
|
+
"""City."""
|
|
4495
|
+
city: String
|
|
4496
|
+
"""State or region."""
|
|
4497
|
+
state: String
|
|
4498
|
+
"""ISO country code."""
|
|
4499
|
+
country: String
|
|
4500
|
+
"""Street."""
|
|
4501
|
+
street: String
|
|
4502
|
+
"""Street number."""
|
|
4503
|
+
number: String
|
|
4504
|
+
"""Neighborhood."""
|
|
4505
|
+
neighborhood: String
|
|
4506
|
+
"""Address complement."""
|
|
4507
|
+
complement: String
|
|
4508
|
+
"""Address reference."""
|
|
4509
|
+
reference: String
|
|
4510
|
+
}
|
|
4511
|
+
|
|
4512
|
+
"""One payment recorded on a placed order."""
|
|
4513
|
+
type CustomerOrderPayment {
|
|
4514
|
+
"""Shopper-facing payment method name."""
|
|
4515
|
+
methodName: String
|
|
4516
|
+
"""
|
|
4517
|
+
Last four digits recorded on the payment. Null when OMS omitted them or sent a blank.
|
|
4518
|
+
"""
|
|
4519
|
+
lastDigits: String
|
|
4520
|
+
"""Amount charged through this payment."""
|
|
4521
|
+
amount: Money!
|
|
4522
|
+
"""Number of installments."""
|
|
4523
|
+
installments: Int
|
|
4524
|
+
"""Gift-card redemption code when this payment used one."""
|
|
4525
|
+
redemptionCode: String
|
|
4526
|
+
"""Bank-invoice number already recorded on the payment."""
|
|
4527
|
+
bankInvoiceNumber: String
|
|
4528
|
+
"""Existing bank-invoice print URL."""
|
|
4529
|
+
bankInvoicePrintUrl: URI
|
|
4530
|
+
}
|
|
4531
|
+
|
|
4532
|
+
"""Which slice of the shopper's orders to read."""
|
|
4533
|
+
enum CustomerOrdersView {
|
|
4534
|
+
"""Every order in the narrowed route result."""
|
|
4535
|
+
ALL
|
|
4536
|
+
"""Orders the completion rule places in ongoing."""
|
|
4537
|
+
ONGOING
|
|
4538
|
+
"""Orders the completion rule places in completed."""
|
|
4539
|
+
COMPLETED
|
|
4540
|
+
"""Orders the completion rule places in cancelled."""
|
|
4541
|
+
CANCELLED
|
|
4542
|
+
}
|
|
4543
|
+
|
|
4544
|
+
"""The view resolved for one list order."""
|
|
4545
|
+
enum CustomerOrderCompletionView {
|
|
4546
|
+
"""The order is still open."""
|
|
4547
|
+
ONGOING
|
|
4548
|
+
"""The order has reached the shopper, or the shipment window has passed."""
|
|
4549
|
+
COMPLETED
|
|
4550
|
+
"""The cancellation has finished."""
|
|
4551
|
+
CANCELLED
|
|
4552
|
+
}
|
|
4553
|
+
|
|
4554
|
+
"""Label id for the catalogue. The catalogue owns the sentence."""
|
|
4555
|
+
enum CustomerOrderCompletionLabel {
|
|
4556
|
+
"""A finished cancellation."""
|
|
4557
|
+
CANCELLED
|
|
4558
|
+
"""A cancellation that was requested and has not finished."""
|
|
4559
|
+
CANCELLATION_REQUESTED
|
|
4560
|
+
"""An order that is not yet shipped."""
|
|
4561
|
+
IN_PROGRESS
|
|
4562
|
+
"""Delivery was confirmed."""
|
|
4563
|
+
DELIVERED
|
|
4564
|
+
"""Shipped, or completed from the estimate or the invoice period."""
|
|
4565
|
+
SHIPPED
|
|
4566
|
+
"""Ready for the shopper to collect."""
|
|
4567
|
+
READY_FOR_PICKUP
|
|
4568
|
+
"""Pickup collection was confirmed."""
|
|
4569
|
+
COLLECTED
|
|
4570
|
+
}
|
|
4571
|
+
|
|
4572
|
+
"""View and label resolved once for one list order."""
|
|
4573
|
+
type CustomerOrderCompletion {
|
|
4574
|
+
"""The view this order belongs to."""
|
|
4575
|
+
view: CustomerOrderCompletionView!
|
|
4576
|
+
"""The catalogue label id."""
|
|
4577
|
+
label: CustomerOrderCompletionLabel!
|
|
4578
|
+
}
|
|
4579
|
+
|
|
4580
|
+
"""One order on the shopper's list. The detail document is CustomerOrder."""
|
|
4581
|
+
type CustomerOrderListItem {
|
|
4582
|
+
"""Shopper-facing order number. Pass this value to customerOrder."""
|
|
4583
|
+
id: ID!
|
|
4584
|
+
"""Raw OMS status code. Empty when the list entry omits it."""
|
|
4585
|
+
status: String!
|
|
4586
|
+
"""When the order was placed."""
|
|
4587
|
+
placedAt: DateTime
|
|
4588
|
+
"""
|
|
4589
|
+
Grand total. Null when the list entry omits the value or the currency code.
|
|
4590
|
+
"""
|
|
4591
|
+
total: Money
|
|
4592
|
+
"""Sum of line quantities. Null when the list entry omits it."""
|
|
4593
|
+
itemCount: Int
|
|
4594
|
+
"""Completion resolved once for this order."""
|
|
4595
|
+
completion: CustomerOrderCompletion!
|
|
4596
|
+
"""Whether every package has a recorded delivery confirmation."""
|
|
4597
|
+
isAllDelivered: Boolean
|
|
4598
|
+
"""Earliest estimated delivery timestamp."""
|
|
4599
|
+
shippingEstimatedDateMin: DateTime
|
|
4600
|
+
"""Latest estimated delivery timestamp."""
|
|
4601
|
+
shippingEstimatedDateMax: DateTime
|
|
4602
|
+
"""Timestamp when the order was invoiced."""
|
|
4603
|
+
invoiceDate: DateTime
|
|
4604
|
+
"""Delivery channel when the list entry carries it."""
|
|
4605
|
+
selectedDeliveryChannel: String
|
|
4606
|
+
}
|
|
4607
|
+
|
|
4608
|
+
"""An edge in the shopper's order list."""
|
|
4609
|
+
type CustomerOrderListItemEdge {
|
|
4610
|
+
"""Resume cursor for the order after this one."""
|
|
4611
|
+
cursor: Cursor!
|
|
4612
|
+
"""The list order."""
|
|
4613
|
+
node: CustomerOrderListItem!
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
"""One page of the signed-in shopper's orders."""
|
|
4617
|
+
type CustomerOrdersConnection {
|
|
4618
|
+
"""Orders on this page."""
|
|
4619
|
+
edges: [CustomerOrderListItemEdge!]!
|
|
4620
|
+
"""Cursors for the page."""
|
|
4621
|
+
pageInfo: PageInfo!
|
|
4622
|
+
"""Route total for ALL. Classified count so far for a filtered view."""
|
|
4623
|
+
totalCount: Int!
|
|
4624
|
+
"""True only when a filtered walk stopped at 20 upstream pages."""
|
|
4625
|
+
totalIncomplete: Boolean!
|
|
4626
|
+
}
|
|
4627
|
+
|
|
4628
|
+
"""Criteria applied before the page is returned."""
|
|
4629
|
+
input CustomerOrdersFilterInput {
|
|
4630
|
+
"""View to return. Defaults to every order."""
|
|
4631
|
+
view: CustomerOrdersView = ALL
|
|
4632
|
+
"""Free-text term sent to the order route."""
|
|
4633
|
+
text: String
|
|
4634
|
+
"""Inclusive start of the placed-date range, as an instant."""
|
|
4635
|
+
placedFrom: DateTime
|
|
4636
|
+
"""Inclusive end of the placed-date range, as an instant."""
|
|
4637
|
+
placedTo: DateTime
|
|
4638
|
+
}
|
|
4639
|
+
|
|
4640
|
+
"""What the shopper submits with a whole-order cancellation."""
|
|
4641
|
+
input CustomerOrderCancelInput {
|
|
4642
|
+
"""Optional reason the merchant keeps. Trimmed; at most 500 characters."""
|
|
4643
|
+
reason: String
|
|
4644
|
+
}
|
|
4645
|
+
|
|
4646
|
+
"""The set of expected, typed cancellation failure codes."""
|
|
4647
|
+
enum CustomerOrderCancelErrorCode {
|
|
4648
|
+
"""
|
|
4649
|
+
Checkout refused the cancellation. The order is past the point where the shopper
|
|
4650
|
+
can cancel it, or a cancellation was already requested.
|
|
4651
|
+
"""
|
|
4652
|
+
ORDER_NOT_CANCELLABLE
|
|
4653
|
+
"""
|
|
4654
|
+
No order the signed-in shopper can see has this id. A missing id and someone
|
|
4655
|
+
else's id are not distinguished.
|
|
4656
|
+
"""
|
|
4657
|
+
NOT_FOUND
|
|
4658
|
+
}
|
|
4659
|
+
|
|
4660
|
+
"""A typed, expected failure of a cancellation."""
|
|
4661
|
+
type CustomerOrderCancelError {
|
|
4662
|
+
"""Machine-readable code for the failure."""
|
|
4663
|
+
code: CustomerOrderCancelErrorCode!
|
|
4664
|
+
"""A fixed message. Never echoes the upstream response."""
|
|
4665
|
+
message: String!
|
|
4666
|
+
}
|
|
4667
|
+
|
|
4668
|
+
"""The result of a cancellation request."""
|
|
4669
|
+
type CustomerOrderCancelPayload {
|
|
4670
|
+
"""
|
|
4671
|
+
The order re-read after checkout accepted the request. Null on a user error, and
|
|
4672
|
+
null when the re-read failed after an accepted request.
|
|
4673
|
+
"""
|
|
4674
|
+
customerOrder: CustomerOrder
|
|
4675
|
+
"""Typed, expected failures. Empty on success."""
|
|
4676
|
+
userErrors: [CustomerOrderCancelError!]!
|
|
4677
|
+
}
|