@vtex/faststore 0.0.6 → 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.
Files changed (488) hide show
  1. package/CHANGELOG.md +99 -0
  2. package/dist/actions.json +152 -1
  3. package/dist/catalog.json +2541 -1278
  4. package/dist/cli/UnreachableCaseError-Crd168Vu.js +10 -0
  5. package/dist/cli/UnreachableCaseError-Crd168Vu.js.map +1 -0
  6. package/dist/cli/cacheControl-CEojH_TM.js +158 -0
  7. package/dist/cli/cacheControl-CEojH_TM.js.map +1 -0
  8. package/dist/cli/cachePolicy-m2vASMRW.js +26 -0
  9. package/dist/cli/cachePolicy-m2vASMRW.js.map +1 -0
  10. package/dist/cli/computeCoreSchemaHash-DPJZj-qJ.js +10 -0
  11. package/dist/cli/computeCoreSchemaHash-DPJZj-qJ.js.map +1 -0
  12. package/dist/cli/default-BCQHcwbL.js +253 -0
  13. package/dist/cli/default-BCQHcwbL.js.map +1 -0
  14. package/dist/cli/disableSuggestions-yO9UqiWn.js +21 -0
  15. package/dist/cli/disableSuggestions-yO9UqiWn.js.map +1 -0
  16. package/dist/cli/dist-C1JhdHfo.js +2001 -0
  17. package/dist/cli/dist-C1JhdHfo.js.map +1 -0
  18. package/dist/cli/graphql-DG9thCDG.js +14589 -0
  19. package/dist/cli/graphql-DG9thCDG.js.map +1 -0
  20. package/dist/cli/index.d.ts +799 -0
  21. package/dist/cli/index.js +36459 -0
  22. package/dist/cli/index.js.map +1 -0
  23. package/dist/cli/index.min-BsIHDfFK.js +613 -0
  24. package/dist/cli/index.min-BsIHDfFK.js.map +1 -0
  25. package/dist/cli/inlineTrace-uLgOJ3TH.js +52 -0
  26. package/dist/cli/inlineTrace-uLgOJ3TH.js.map +1 -0
  27. package/dist/cli/internalPlugin-DnuwN4_4.js +11 -0
  28. package/dist/cli/internalPlugin-DnuwN4_4.js.map +1 -0
  29. package/dist/cli/packageVersion-DQAnIEil.js +6 -0
  30. package/dist/cli/packageVersion-DQAnIEil.js.map +1 -0
  31. package/dist/cli/rolldown-runtime-BMI-E3GI.js +44 -0
  32. package/dist/cli/schemaIsSubgraph-DoGh3OYj.js +17 -0
  33. package/dist/cli/schemaIsSubgraph-DoGh3OYj.js.map +1 -0
  34. package/dist/cli/schemaReporting-K-me-3-v.js +199 -0
  35. package/dist/cli/schemaReporting-K-me-3-v.js.map +1 -0
  36. package/dist/cli/server-runtime.js +49879 -0
  37. package/dist/cli/server-runtime.js.map +1 -0
  38. package/dist/cli/traceTreeBuilder-BIcV2U7b.js +9118 -0
  39. package/dist/cli/traceTreeBuilder-BIcV2U7b.js.map +1 -0
  40. package/dist/cli/usageReporting-Bpl8vSZX.js +10201 -0
  41. package/dist/cli/usageReporting-Bpl8vSZX.js.map +1 -0
  42. package/dist/cli/v4-CBhFvC49.js +42 -0
  43. package/dist/cli/v4-CBhFvC49.js.map +1 -0
  44. package/dist/client.d.ts +5 -1
  45. package/dist/client.js +5 -1
  46. package/dist/components.d.ts +38 -9
  47. package/dist/components.js +42 -13
  48. package/dist/content-types.json +616 -0
  49. package/dist/core/dist/define-component.d.ts +43 -1
  50. package/dist/core/dist/index.d.ts +2 -2
  51. package/dist/docs/account-access-gate.md +4 -4
  52. package/dist/docs/account-address-book.md +519 -0
  53. package/dist/docs/account-entry-point.md +1 -1
  54. package/dist/docs/account-menu-identity.md +160 -0
  55. package/dist/docs/account-menu.md +107 -24
  56. package/dist/docs/alert-dialog.md +2 -2
  57. package/dist/docs/avatar.md +103 -0
  58. package/dist/docs/billing-address.md +17 -9
  59. package/dist/docs/card-entry.md +37 -6
  60. package/dist/docs/cardholder-document.md +16 -14
  61. package/dist/docs/cart-item.md +1 -1
  62. package/dist/docs/cart.md +8 -8
  63. package/dist/docs/client-profile-fieldset.md +7 -5
  64. package/dist/docs/copy-text.md +84 -0
  65. package/dist/docs/document-field.md +8 -8
  66. package/dist/docs/footer-link-group.md +2 -2
  67. package/dist/docs/header-root.md +1 -1
  68. package/dist/docs/incentives.md +2 -2
  69. package/dist/docs/logo.md +5 -5
  70. package/dist/docs/my-account-profile.md +5 -5
  71. package/dist/docs/navigation-link-list.md +2 -2
  72. package/dist/docs/navigation-link.md +3 -3
  73. package/dist/docs/order-cancel.md +52 -0
  74. package/dist/docs/order-delivery-address.md +63 -0
  75. package/dist/docs/order-delivery-group.md +83 -0
  76. package/dist/docs/order-details-back.md +41 -0
  77. package/dist/docs/order-details-header.md +48 -0
  78. package/dist/docs/order-list-row.md +46 -0
  79. package/dist/docs/order-list-search.md +101 -0
  80. package/dist/docs/order-list-views.md +97 -0
  81. package/dist/docs/order-list.md +94 -0
  82. package/dist/docs/order-payment.md +94 -0
  83. package/dist/docs/order-placed-date.md +49 -0
  84. package/dist/docs/order-placed-payment-summary.md +13 -15
  85. package/dist/docs/order-placed.md +225 -0
  86. package/dist/docs/order-progress.md +88 -0
  87. package/dist/docs/order-status-badge.md +91 -0
  88. package/dist/docs/order-summary.md +53 -0
  89. package/dist/docs/payment-method-badges.md +14 -3
  90. package/dist/docs/place-order.md +13 -9
  91. package/dist/docs/product-shelf.md +20 -13
  92. package/dist/docs/saved-cards.md +2 -2
  93. package/dist/docs/select.md +19 -6
  94. package/dist/docs/session.md +1 -1
  95. package/dist/docs/shipping-address.md +1 -1
  96. package/dist/docs/sign-in-redirect.md +6 -6
  97. package/dist/docs/toast.md +7 -3
  98. package/dist/index.d.ts +7 -3
  99. package/dist/index.js +2 -1
  100. package/dist/internal/client.d.ts +6 -1
  101. package/dist/internal/client.js +8 -3
  102. package/dist/internal/content.d.ts +2 -2
  103. package/dist/internal/server.d.ts +8 -1
  104. package/dist/internal/server.js +8 -1
  105. package/dist/matter/account-access-gate/account-access-gate.d.ts +2 -1
  106. package/dist/matter/account-access-gate/account-access-gate.js +19 -16
  107. package/dist/matter/account-access-gate/account-access-gate.js.map +1 -1
  108. package/dist/matter/account-address-book/account-address-book-delete.d.ts +60 -0
  109. package/dist/matter/account-address-book/account-address-book-delete.js +184 -0
  110. package/dist/matter/account-address-book/account-address-book-delete.js.map +1 -0
  111. package/dist/matter/account-address-book/account-address-book-deliverability.d.ts +19 -0
  112. package/dist/matter/account-address-book/account-address-book-deliverability.js +50 -0
  113. package/dist/matter/account-address-book/account-address-book-deliverability.js.map +1 -0
  114. package/dist/matter/account-address-book/account-address-book-form-parts.d.ts +42 -0
  115. package/dist/matter/account-address-book/account-address-book-form-parts.js +146 -0
  116. package/dist/matter/account-address-book/account-address-book-form-parts.js.map +1 -0
  117. package/dist/matter/account-address-book/account-address-book-profile-notice.d.ts +25 -0
  118. package/dist/matter/account-address-book/account-address-book-profile-notice.js +72 -0
  119. package/dist/matter/account-address-book/account-address-book-profile-notice.js.map +1 -0
  120. package/dist/matter/account-address-book/account-address-book.d.ts +120 -0
  121. package/dist/matter/account-address-book/account-address-book.js +469 -0
  122. package/dist/matter/account-address-book/account-address-book.js.map +1 -0
  123. package/dist/matter/account-address-book/account-address-country-switch.js +59 -0
  124. package/dist/matter/account-address-book/account-address-country-switch.js.map +1 -0
  125. package/dist/matter/account-address-book/account-address-country.d.ts +36 -0
  126. package/dist/matter/account-address-book/account-address-country.js +151 -0
  127. package/dist/matter/account-address-book/account-address-country.js.map +1 -0
  128. package/dist/matter/account-address-book/account-address-first-line.js +11 -0
  129. package/dist/matter/account-address-book/account-address-first-line.js.map +1 -0
  130. package/dist/matter/account-address-book/account-address-form-context.d.ts +55 -0
  131. package/dist/matter/account-address-book/account-address-form-context.js +14 -0
  132. package/dist/matter/account-address-book/account-address-form-context.js.map +1 -0
  133. package/dist/matter/account-address-book/account-address-form.d.ts +85 -0
  134. package/dist/matter/account-address-book/account-address-form.js +946 -0
  135. package/dist/matter/account-address-book/account-address-form.js.map +1 -0
  136. package/dist/matter/account-address-book/account-address-postal-autofill.js +189 -0
  137. package/dist/matter/account-address-book/account-address-postal-autofill.js.map +1 -0
  138. package/dist/matter/account-address-book/account-address-record.d.ts +26 -0
  139. package/dist/matter/account-address-book/account-address-record.js +138 -0
  140. package/dist/matter/account-address-book/account-address-record.js.map +1 -0
  141. package/dist/matter/account-entry-point/account-entry-point.js +11 -11
  142. package/dist/matter/account-entry-point/account-entry-point.js.map +1 -1
  143. package/dist/matter/account-menu/account-menu.d.ts +77 -3
  144. package/dist/matter/account-menu/account-menu.js +252 -19
  145. package/dist/matter/account-menu/account-menu.js.map +1 -1
  146. package/dist/matter/account-menu/sign-out-failure.js +50 -0
  147. package/dist/matter/account-menu/sign-out-failure.js.map +1 -0
  148. package/dist/matter/account-menu-identity/account-menu-identity.d.ts +21 -0
  149. package/dist/matter/account-menu-identity/account-menu-identity.js +88 -0
  150. package/dist/matter/account-menu-identity/account-menu-identity.js.map +1 -0
  151. package/dist/matter/billing-address/billing-address.d.ts +30 -17
  152. package/dist/matter/billing-address/billing-address.js +128 -33
  153. package/dist/matter/billing-address/billing-address.js.map +1 -1
  154. package/dist/matter/breadcrumb/breadcrumb.js +2 -2
  155. package/dist/matter/breadcrumb/breadcrumb.js.map +1 -1
  156. package/dist/matter/card-entry/card-capture.js +4 -3
  157. package/dist/matter/card-entry/card-capture.js.map +1 -1
  158. package/dist/matter/card-entry/card-entry.d.ts +5 -3
  159. package/dist/matter/card-entry/card-entry.js +78 -27
  160. package/dist/matter/card-entry/card-entry.js.map +1 -1
  161. package/dist/matter/cardholder-document/cardholder-document.d.ts +10 -9
  162. package/dist/matter/cardholder-document/cardholder-document.js +36 -16
  163. package/dist/matter/cardholder-document/cardholder-document.js.map +1 -1
  164. package/dist/matter/cart/cart.d.ts +7 -2
  165. package/dist/matter/cart/cart.js +29 -26
  166. package/dist/matter/cart/cart.js.map +1 -1
  167. package/dist/matter/cart-item/cart-item.js +2 -2
  168. package/dist/matter/cart-item/cart-item.js.map +1 -1
  169. package/dist/matter/client-preferences/client-preferences-fieldset.js +2 -2
  170. package/dist/matter/client-profile-form/client-profile-fieldset.js +9 -6
  171. package/dist/matter/client-profile-form/client-profile-fieldset.js.map +1 -1
  172. package/dist/matter/identity-edit/identity-edit.js +3 -3
  173. package/dist/matter/identity-edit/identity-edit.js.map +1 -1
  174. package/dist/matter/identity-summary/identity-summary.js +4 -3
  175. package/dist/matter/identity-summary/identity-summary.js.map +1 -1
  176. package/dist/matter/my-account-profile/my-account-profile.d.ts +6 -3
  177. package/dist/matter/my-account-profile/my-account-profile.js +6 -5
  178. package/dist/matter/my-account-profile/my-account-profile.js.map +1 -1
  179. package/dist/matter/order-cancel/order-cancel.d.ts +110 -0
  180. package/dist/matter/order-cancel/order-cancel.js +344 -0
  181. package/dist/matter/order-cancel/order-cancel.js.map +1 -0
  182. package/dist/matter/order-delivery-address/order-delivery-address.d.ts +73 -0
  183. package/dist/matter/order-delivery-address/order-delivery-address.js +172 -0
  184. package/dist/matter/order-delivery-address/order-delivery-address.js.map +1 -0
  185. package/dist/matter/order-delivery-group/order-delivery-group.d.ts +128 -0
  186. package/dist/matter/order-delivery-group/order-delivery-group.js +408 -0
  187. package/dist/matter/order-delivery-group/order-delivery-group.js.map +1 -0
  188. package/dist/matter/order-details-header/order-details-header.d.ts +104 -0
  189. package/dist/matter/order-details-header/order-details-header.js +190 -0
  190. package/dist/matter/order-details-header/order-details-header.js.map +1 -0
  191. package/dist/matter/order-list/customer-orders-filter.d.ts +12 -0
  192. package/dist/matter/order-list/customer-orders-filter.js +30 -0
  193. package/dist/matter/order-list/customer-orders-filter.js.map +1 -0
  194. package/dist/matter/order-list/order-list.d.ts +121 -0
  195. package/dist/matter/order-list/order-list.js +395 -0
  196. package/dist/matter/order-list/order-list.js.map +1 -0
  197. package/dist/matter/order-list-row/order-list-row.d.ts +44 -0
  198. package/dist/matter/order-list-row/order-list-row.js +127 -0
  199. package/dist/matter/order-list-row/order-list-row.js.map +1 -0
  200. package/dist/matter/order-list-search/order-list-search.d.ts +72 -0
  201. package/dist/matter/order-list-search/order-list-search.js +296 -0
  202. package/dist/matter/order-list-search/order-list-search.js.map +1 -0
  203. package/dist/matter/order-list-views/order-list-views.d.ts +65 -0
  204. package/dist/matter/order-list-views/order-list-views.js +154 -0
  205. package/dist/matter/order-list-views/order-list-views.js.map +1 -0
  206. package/dist/matter/order-payment/order-payment.d.ts +83 -0
  207. package/dist/matter/order-payment/order-payment.js +258 -0
  208. package/dist/matter/order-payment/order-payment.js.map +1 -0
  209. package/dist/matter/order-placed/order-placed-deliveries.d.ts +145 -0
  210. package/dist/matter/order-placed/order-placed-deliveries.js +380 -0
  211. package/dist/matter/order-placed/order-placed-deliveries.js.map +1 -0
  212. package/dist/matter/order-placed/order-placed.d.ts +122 -0
  213. package/dist/matter/order-placed/order-placed.js +452 -0
  214. package/dist/matter/order-placed/order-placed.js.map +1 -0
  215. package/dist/matter/order-placed-date/order-placed-date.d.ts +45 -0
  216. package/dist/matter/order-placed-date/order-placed-date.js +92 -0
  217. package/dist/matter/order-placed-date/order-placed-date.js.map +1 -0
  218. package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.d.ts +5 -8
  219. package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js +29 -81
  220. package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js.map +1 -1
  221. package/dist/matter/order-progress/order-progress.d.ts +85 -0
  222. package/dist/matter/order-progress/order-progress.js +203 -0
  223. package/dist/matter/order-progress/order-progress.js.map +1 -0
  224. package/dist/matter/order-summary/order-summary.d.ts +81 -0
  225. package/dist/matter/order-summary/order-summary.js +192 -0
  226. package/dist/matter/order-summary/order-summary.js.map +1 -0
  227. package/dist/matter/payment/cardholder-document-rule.d.ts +35 -0
  228. package/dist/matter/payment/cardholder-document-rule.js +35 -0
  229. package/dist/matter/payment/cardholder-document-rule.js.map +1 -0
  230. package/dist/matter/payment/payment-card-capture.js +38 -23
  231. package/dist/matter/payment/payment-card-capture.js.map +1 -1
  232. package/dist/matter/payment/payment-controller.js +12 -0
  233. package/dist/matter/payment/payment-controller.js.map +1 -1
  234. package/dist/matter/payment/payment-method-badges.js +4 -2
  235. package/dist/matter/payment/payment-method-badges.js.map +1 -1
  236. package/dist/matter/payment/payment.js +12 -0
  237. package/dist/matter/payment/payment.js.map +1 -1
  238. package/dist/matter/payment/use-payment-method-selection.d.ts +39 -0
  239. package/dist/matter/payment/use-payment-method-selection.js +30 -2
  240. package/dist/matter/payment/use-payment-method-selection.js.map +1 -1
  241. package/dist/matter/payment/use-payment-submit-gate.d.ts +16 -2
  242. package/dist/matter/payment/use-payment-submit-gate.js +42 -14
  243. package/dist/matter/payment/use-payment-submit-gate.js.map +1 -1
  244. package/dist/matter/place-order/place-order.d.ts +12 -7
  245. package/dist/matter/place-order/place-order.js +126 -103
  246. package/dist/matter/place-order/place-order.js.map +1 -1
  247. package/dist/matter/pricing/pricing.js +5 -5
  248. package/dist/matter/pricing/pricing.js.map +1 -1
  249. package/dist/matter/product-shelf/product-shelf.d.ts +61 -31
  250. package/dist/matter/product-shelf/product-shelf.js +157 -57
  251. package/dist/matter/product-shelf/product-shelf.js.map +1 -1
  252. package/dist/matter/region/region.js +1 -1
  253. package/dist/matter/saved-cards/saved-cards.js +27 -15
  254. package/dist/matter/saved-cards/saved-cards.js.map +1 -1
  255. package/dist/matter/session/session.js +2 -2
  256. package/dist/matter/session/session.js.map +1 -1
  257. package/dist/matter/shipping-address/country-descriptors.d.ts +1 -0
  258. package/dist/matter/shipping-address/country-descriptors.js +23 -1
  259. package/dist/matter/shipping-address/country-descriptors.js.map +1 -1
  260. package/dist/matter/shipping-address/shipping-address.js +63 -15
  261. package/dist/matter/shipping-address/shipping-address.js.map +1 -1
  262. package/dist/matter/shipping-simulator/shipping-simulator.d.ts +1 -1
  263. package/dist/matter/shipping-simulator/shipping-simulator.js.map +1 -1
  264. package/dist/matter/sign-in-redirect/sign-in-redirect.js +48 -10
  265. package/dist/matter/sign-in-redirect/sign-in-redirect.js.map +1 -1
  266. package/dist/matter/variant-selector/variant-selector.js +2 -2
  267. package/dist/matter/variant-selector/variant-selector.js.map +1 -1
  268. package/dist/particles/address-summary/address-summary.js +2 -2
  269. package/dist/particles/address-summary/address-summary.js.map +1 -1
  270. package/dist/particles/alert-dialog/alert-dialog.d.ts +5 -1
  271. package/dist/particles/alert-dialog/alert-dialog.js +5 -2
  272. package/dist/particles/alert-dialog/alert-dialog.js.map +1 -1
  273. package/dist/particles/avatar/avatar.d.ts +17 -0
  274. package/dist/particles/avatar/avatar.js +65 -0
  275. package/dist/particles/avatar/avatar.js.map +1 -0
  276. package/dist/particles/copy-text/copy-text.d.ts +28 -0
  277. package/dist/particles/copy-text/copy-text.js +140 -0
  278. package/dist/particles/copy-text/copy-text.js.map +1 -0
  279. package/dist/particles/document-field/document-field.d.ts +34 -5
  280. package/dist/particles/document-field/document-field.js +115 -19
  281. package/dist/particles/document-field/document-field.js.map +1 -1
  282. package/dist/particles/field/field.js +1 -1
  283. package/dist/particles/field/field.js.map +1 -1
  284. package/dist/particles/footer-link-group/footer-link-group.d.ts +6 -2
  285. package/dist/particles/footer-link-group/footer-link-group.js +18 -7
  286. package/dist/particles/footer-link-group/footer-link-group.js.map +1 -1
  287. package/dist/particles/incentives/incentives.d.ts +6 -2
  288. package/dist/particles/incentives/incentives.js +7 -2
  289. package/dist/particles/incentives/incentives.js.map +1 -1
  290. package/dist/particles/logo/logo.d.ts +3 -2
  291. package/dist/particles/logo/logo.js +20 -8
  292. package/dist/particles/logo/logo.js.map +1 -1
  293. package/dist/particles/navigation-link/navigation-link.d.ts +2 -3
  294. package/dist/particles/navigation-link/navigation-link.js +4 -4
  295. package/dist/particles/navigation-link/navigation-link.js.map +1 -1
  296. package/dist/particles/navigation-link-list/navigation-link-list.d.ts +6 -2
  297. package/dist/particles/navigation-link-list/navigation-link-list.js +18 -7
  298. package/dist/particles/navigation-link-list/navigation-link-list.js.map +1 -1
  299. package/dist/particles/order-details-back/order-details-back.d.ts +28 -0
  300. package/dist/particles/order-details-back/order-details-back.js +52 -0
  301. package/dist/particles/order-details-back/order-details-back.js.map +1 -0
  302. package/dist/particles/order-status-badge/order-status-badge.d.ts +19 -0
  303. package/dist/particles/order-status-badge/order-status-badge.js +50 -0
  304. package/dist/particles/order-status-badge/order-status-badge.js.map +1 -0
  305. package/dist/particles/phone-field/phone-field.js +2 -2
  306. package/dist/particles/phone-field/phone-field.js.map +1 -1
  307. package/dist/particles/select/select.js +6 -6
  308. package/dist/particles/select/select.js.map +1 -1
  309. package/dist/particles/toast/toast.d.ts +1 -1
  310. package/dist/particles/toast/toast.js +32 -6
  311. package/dist/particles/toast/toast.js.map +1 -1
  312. package/dist/schema.graphql +1079 -54
  313. package/dist/sdk/actions/address-action-provider.d.ts +16 -0
  314. package/dist/sdk/actions/address-action-provider.js +20 -0
  315. package/dist/sdk/actions/address-action-provider.js.map +1 -0
  316. package/dist/sdk/actions/analytics-action-provider.js +1 -1
  317. package/dist/sdk/actions/index.d.ts +3 -1
  318. package/dist/sdk/actions/index.js +3 -1
  319. package/dist/sdk/actions/order-action-provider.d.ts +12 -0
  320. package/dist/sdk/actions/order-action-provider.js +16 -0
  321. package/dist/sdk/actions/order-action-provider.js.map +1 -0
  322. package/dist/sdk/actions/types.d.ts +6 -2
  323. package/dist/sdk/address/address-fields.js +38 -0
  324. package/dist/sdk/address/address-fields.js.map +1 -0
  325. package/dist/sdk/address/checkout-readiness.js +17 -0
  326. package/dist/sdk/address/checkout-readiness.js.map +1 -0
  327. package/dist/sdk/address/constants.js +60 -0
  328. package/dist/sdk/address/constants.js.map +1 -0
  329. package/dist/sdk/address/country-display.js +19 -0
  330. package/dist/sdk/address/country-display.js.map +1 -0
  331. package/dist/sdk/address/country-rules.js +30 -0
  332. package/dist/sdk/address/country-rules.js.map +1 -0
  333. package/dist/sdk/address/format-address.js +18 -0
  334. package/dist/sdk/address/format-address.js.map +1 -0
  335. package/dist/sdk/address/iso-countries.js +262 -0
  336. package/dist/sdk/address/iso-countries.js.map +1 -0
  337. package/dist/sdk/address/layouts.js +56 -0
  338. package/dist/sdk/address/layouts.js.map +1 -0
  339. package/dist/sdk/address/messages.js +97 -0
  340. package/dist/sdk/address/messages.js.map +1 -0
  341. package/dist/sdk/address/operations.d.ts +54 -0
  342. package/dist/sdk/address/operations.js +83 -0
  343. package/dist/sdk/address/operations.js.map +1 -0
  344. package/dist/sdk/address/postal-code-lookup-operations.js +23 -0
  345. package/dist/sdk/address/postal-code-lookup-operations.js.map +1 -0
  346. package/dist/sdk/address/postal-code.js +11 -0
  347. package/dist/sdk/address/postal-code.js.map +1 -0
  348. package/dist/sdk/address/schema.js +14 -0
  349. package/dist/sdk/address/schema.js.map +1 -0
  350. package/dist/sdk/address/server-fields.js +25 -0
  351. package/dist/sdk/address/server-fields.js.map +1 -0
  352. package/dist/sdk/address/switch-country.js +57 -0
  353. package/dist/sdk/address/switch-country.js.map +1 -0
  354. package/dist/sdk/address/types.d.ts +26 -0
  355. package/dist/sdk/address/use-address-actions.d.ts +29 -0
  356. package/dist/sdk/address/use-address-actions.js +247 -0
  357. package/dist/sdk/address/use-address-actions.js.map +1 -0
  358. package/dist/sdk/address/use-address-by-postal-code.js +57 -0
  359. package/dist/sdk/address/use-address-by-postal-code.js.map +1 -0
  360. package/dist/sdk/address/validate-address.js +62 -0
  361. package/dist/sdk/address/validate-address.js.map +1 -0
  362. package/dist/sdk/analytics/use-analytics-actions.js +2 -1
  363. package/dist/sdk/analytics/use-analytics-actions.js.map +1 -1
  364. package/dist/sdk/cache/storefront-cache.js +29 -4
  365. package/dist/sdk/cache/storefront-cache.js.map +1 -1
  366. package/dist/sdk/cart/use-cart-actions.js +9 -8
  367. package/dist/sdk/cart/use-cart-actions.js.map +1 -1
  368. package/dist/sdk/cart/use-cart-validate-on-open.js +2 -1
  369. package/dist/sdk/cart/use-cart-validate-on-open.js.map +1 -1
  370. package/dist/sdk/client/fetch-page-data.d.ts +11 -0
  371. package/dist/sdk/client/fetch-page-data.js +12 -1
  372. package/dist/sdk/client/fetch-page-data.js.map +1 -1
  373. package/dist/sdk/content/create-content-runtime.d.ts +22 -1
  374. package/dist/sdk/content/create-content-runtime.js +90 -9
  375. package/dist/sdk/content/create-content-runtime.js.map +1 -1
  376. package/dist/sdk/data/empty-content-value.js +16 -0
  377. package/dist/sdk/data/empty-content-value.js.map +1 -0
  378. package/dist/sdk/data/failed-fields.js +23 -0
  379. package/dist/sdk/data/failed-fields.js.map +1 -0
  380. package/dist/sdk/data/hot-data-provider.js +2 -1
  381. package/dist/sdk/data/hot-data-provider.js.map +1 -1
  382. package/dist/sdk/data/index.js +1 -1
  383. package/dist/sdk/data/page-reactive-data-root.d.ts +45 -7
  384. package/dist/sdk/data/page-reactive-data-root.js +88 -12
  385. package/dist/sdk/data/page-reactive-data-root.js.map +1 -1
  386. package/dist/sdk/data/variables-from-content.d.ts +43 -0
  387. package/dist/sdk/data/variables-from-content.js +57 -0
  388. package/dist/sdk/data/variables-from-content.js.map +1 -0
  389. package/dist/sdk/generated/fragment-types.js +2 -0
  390. package/dist/sdk/generated/fragment-types.js.map +1 -1
  391. package/dist/sdk/generated/gql.js +4 -1
  392. package/dist/sdk/generated/gql.js.map +1 -1
  393. package/dist/sdk/generated/graphql.d.ts +8 -0
  394. package/dist/sdk/generated/graphql.js +296 -1
  395. package/dist/sdk/generated/graphql.js.map +1 -1
  396. package/dist/sdk/i18n/messages/en-US.js +138 -1
  397. package/dist/sdk/i18n/messages/en-US.json +138 -1
  398. package/dist/sdk/i18n/messages/en-US.json.d.ts +137 -0
  399. package/dist/sdk/i18n/messages/es-ES.js +138 -1
  400. package/dist/sdk/i18n/messages/es-ES.json +138 -1
  401. package/dist/sdk/i18n/messages/pt-BR.js +138 -1
  402. package/dist/sdk/i18n/messages/pt-BR.json +138 -1
  403. package/dist/sdk/identity/use-identity-actions.js +5 -4
  404. package/dist/sdk/identity/use-identity-actions.js.map +1 -1
  405. package/dist/sdk/navigation/current-page.js +30 -0
  406. package/dist/sdk/navigation/current-page.js.map +1 -0
  407. package/dist/sdk/navigation/not-found-log.d.ts +28 -0
  408. package/dist/sdk/navigation/not-found-log.js +133 -0
  409. package/dist/sdk/navigation/not-found-log.js.map +1 -0
  410. package/dist/sdk/navigation/path.js +25 -0
  411. package/dist/sdk/navigation/path.js.map +1 -0
  412. package/dist/sdk/navigation/redirect.d.ts +11 -0
  413. package/dist/sdk/navigation/redirect.js +22 -0
  414. package/dist/sdk/navigation/redirect.js.map +1 -0
  415. package/dist/sdk/navigation/report.js +70 -0
  416. package/dist/sdk/navigation/report.js.map +1 -0
  417. package/dist/sdk/navigation/resolve-storefront-href.d.ts +12 -0
  418. package/dist/sdk/navigation/resolve-storefront-href.js +214 -0
  419. package/dist/sdk/navigation/resolve-storefront-href.js.map +1 -0
  420. package/dist/sdk/navigation/route-identity-provider.d.ts +11 -0
  421. package/dist/sdk/navigation/route-identity-provider.js +20 -0
  422. package/dist/sdk/navigation/route-identity-provider.js.map +1 -0
  423. package/dist/sdk/navigation/route-map-provider.d.ts +19 -0
  424. package/dist/sdk/navigation/route-map-provider.js +29 -0
  425. package/dist/sdk/navigation/route-map-provider.js.map +1 -0
  426. package/dist/sdk/navigation/storefront-link.d.ts +16 -0
  427. package/dist/sdk/navigation/storefront-link.js +66 -0
  428. package/dist/sdk/navigation/storefront-link.js.map +1 -0
  429. package/dist/sdk/navigation/types.d.ts +45 -0
  430. package/dist/sdk/navigation/use-storefront-navigation.d.ts +26 -0
  431. package/dist/sdk/navigation/use-storefront-navigation.js +73 -0
  432. package/dist/sdk/navigation/use-storefront-navigation.js.map +1 -0
  433. package/dist/sdk/navigation/use-storefront-route.d.ts +26 -0
  434. package/dist/sdk/navigation/use-storefront-route.js +87 -0
  435. package/dist/sdk/navigation/use-storefront-route.js.map +1 -0
  436. package/dist/sdk/navigation/use-storefront-search-params.d.ts +11 -0
  437. package/dist/sdk/navigation/use-storefront-search-params.js +16 -0
  438. package/dist/sdk/navigation/use-storefront-search-params.js.map +1 -0
  439. package/dist/sdk/orders/completion-badge.d.ts +8 -0
  440. package/dist/sdk/orders/completion-badge.js +47 -0
  441. package/dist/sdk/orders/completion-badge.js.map +1 -0
  442. package/dist/sdk/orders/order-operations.d.ts +19 -0
  443. package/dist/sdk/orders/order-operations.js +21 -0
  444. package/dist/sdk/orders/order-operations.js.map +1 -0
  445. package/dist/sdk/orders/use-order-actions.d.ts +23 -0
  446. package/dist/sdk/orders/use-order-actions.js +62 -0
  447. package/dist/sdk/orders/use-order-actions.js.map +1 -0
  448. package/dist/sdk/payment/gateway-origin.js +26 -13
  449. package/dist/sdk/payment/gateway-origin.js.map +1 -1
  450. package/dist/sdk/payment/gateway.d.ts +14 -2
  451. package/dist/sdk/payment/gateway.js +32 -14
  452. package/dist/sdk/payment/gateway.js.map +1 -1
  453. package/dist/sdk/payment/operations.js +11 -0
  454. package/dist/sdk/payment/operations.js.map +1 -1
  455. package/dist/sdk/payment/submission-registry.d.ts +2 -1
  456. package/dist/sdk/payment/submission-registry.js +12 -8
  457. package/dist/sdk/payment/submission-registry.js.map +1 -1
  458. package/dist/sdk/payment/use-payment-actions.d.ts +5 -3
  459. package/dist/sdk/payment/use-payment-actions.js +6 -3
  460. package/dist/sdk/payment/use-payment-actions.js.map +1 -1
  461. package/dist/sdk/payment/use-place-order.d.ts +6 -3
  462. package/dist/sdk/payment/use-place-order.js +334 -144
  463. package/dist/sdk/payment/use-place-order.js.map +1 -1
  464. package/dist/sdk/region/use-region-actions.js +2 -1
  465. package/dist/sdk/region/use-region-actions.js.map +1 -1
  466. package/dist/sdk/seo/page-alternates.d.ts +55 -0
  467. package/dist/sdk/seo/page-alternates.js +132 -0
  468. package/dist/sdk/seo/page-alternates.js.map +1 -0
  469. package/dist/sdk/session/read-server-session.d.ts +21 -0
  470. package/dist/sdk/session/read-server-session.js +61 -0
  471. package/dist/sdk/session/read-server-session.js.map +1 -0
  472. package/dist/sdk/session/use-session-actions.js +5 -4
  473. package/dist/sdk/session/use-session-actions.js.map +1 -1
  474. package/dist/sdk/session/use-session-revalidation.js +2 -1
  475. package/dist/sdk/session/use-session-revalidation.js.map +1 -1
  476. package/dist/sdk/shipping/use-shipping-actions.js +3 -2
  477. package/dist/sdk/shipping/use-shipping-actions.js.map +1 -1
  478. package/dist/utils/own-value.js +19 -0
  479. package/dist/utils/own-value.js.map +1 -0
  480. package/dist/utils/safe-href.d.ts +11 -0
  481. package/dist/utils/safe-href.js +31 -22
  482. package/dist/utils/safe-href.js.map +1 -1
  483. package/package.json +17 -2
  484. package/skills/storefront-asset/SKILL.md +111 -0
  485. package/skills/storefront-asset/references/api-side.md +153 -0
  486. package/skills/storefront-asset/references/findings.md +40 -0
  487. package/skills/storefront-asset/references/ui-side.md +94 -0
  488. package/src/styles/tailwind.css +27 -0
@@ -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!
@@ -419,11 +440,67 @@ extend type Query {
419
440
  extend type Query {
420
441
  """
421
442
  The signed-in shopper's own persistent profile. Takes no id — the identity
422
- comes from the session. Non-null like `cart`/`session`: it always resolves to
423
- the shopper's entity (a shell with null fields when the record is empty) or
424
- throws UNAUTHORIZED / UPSTREAM_ERROR (ADR-00007), never returning null.
443
+ comes from the session. Nullable because it is permission-gated (ADR-00005).
444
+ Null with no error when the session names no shopper. Null with an
445
+ UNAUTHORIZED, UPSTREAM_ERROR, UPSTREAM_TIMEOUT or CIRCUIT_OPEN error on this
446
+ field's path when the read fails (ADR-00007), so the rest of the operation
447
+ still resolves. A profile whose fields are null when the shopper has saved
448
+ nothing yet.
425
449
  """
426
- customerProfile: CustomerProfile!
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)
427
504
  }
428
505
 
429
506
  """
@@ -624,6 +701,46 @@ extend type Mutation {
624
701
  """The fields to write. Provide only what the shopper edited."""
625
702
  input: CustomerProfileUpdateInput!
626
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!
627
744
  }
628
745
 
629
746
  """
@@ -1849,10 +1966,11 @@ type CartItem {
1849
1966
  """
1850
1967
  compositions: [CartItemComposition!]!
1851
1968
  """
1852
- This item's own available delivery options (not intersected across the cart).
1853
- Excludes pickup options; delivery channel only.
1969
+ The cart-wide delivery options this item is eligible for: the same ShippingOption
1970
+ entities Shipping.options lists, carrying the shared-pool price, not a per-item
1971
+ quote. Excludes pickup options; delivery channel only.
1854
1972
  """
1855
- shippingOptions: [ItemShippingOption!]!
1973
+ shippingOptions: [ShippingOption!]!
1856
1974
  """
1857
1975
  This item's own currently selected delivery option, or null when no selection
1858
1976
  is persisted or the persisted selection is a pickup option.
@@ -1889,8 +2007,9 @@ own children (nested assemblies).
1889
2007
  """
1890
2008
  type CartItemComposition {
1891
2009
  """
1892
- Cart-scoped identifier for this child line (same opaque encoding as
1893
- CartItem.id). Cache key only; not independently mutable.
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.
1894
2013
  """
1895
2014
  id: ID!
1896
2015
  """Display name as recorded on the order line."""
@@ -2402,8 +2521,9 @@ type ShippingEstimate {
2402
2521
  }
2403
2522
 
2404
2523
  """
2405
- A shipping option as it applies to one specific cart item — carries that
2406
- item's own price for the option, distinct from the cart-wide ShippingOption.
2524
+ One cart item's current selection. Its price and estimate are Checkout's real values for
2525
+ this item; option carries the shared name and channel. All values are a live snapshot:
2526
+ another item joining or leaving the same SLA can change them.
2407
2527
  """
2408
2528
  type ItemShippingOption {
2409
2529
  """
@@ -2411,15 +2531,9 @@ type ItemShippingOption {
2411
2531
  from cart-wide options so the Apollo cache never conflates them.
2412
2532
  """
2413
2533
  id: ID!
2414
- """
2415
- Human-readable option name (e.g. "Standard Delivery"). Derived from a Checkout simulation, which
2416
- sends no `Accept-Language` and keys its SKU cache without a locale, so this text is NOT localized:
2417
- it may read in the account's default culture on a non-default binding.
2418
- """
2419
- name: String!
2420
- """Delivery channel: home delivery or pickup."""
2421
- channel: DeliveryChannel!
2422
- """Estimated shipping time."""
2534
+ """The cart-wide shipping option this selection belongs to."""
2535
+ option: ShippingOption!
2536
+ """Estimated shipping time for this item."""
2423
2537
  shippingEstimate: ShippingEstimate!
2424
2538
  """Shipping cost for this item. Zero when free shipping applies."""
2425
2539
  price: Money!
@@ -2427,6 +2541,28 @@ type ItemShippingOption {
2427
2541
  listPrice: Money!
2428
2542
  }
2429
2543
 
2544
+ """
2545
+ A shipping option with at least one cart item currently selected on it. Its price and
2546
+ shippingEstimateList cover only those items, recomputed on every request.
2547
+ """
2548
+ type SelectedShippingOption {
2549
+ """The cart-wide shipping option these items selected."""
2550
+ option: ShippingOption!
2551
+ """
2552
+ Cart items currently selected on this option (not every eligible item).
2553
+ """
2554
+ items: [CartItem!]!
2555
+ """Sum of items[].selectedShippingOption.price."""
2556
+ price: Money!
2557
+ """Sum of items[].selectedShippingOption.listPrice."""
2558
+ listPrice: Money!
2559
+ """
2560
+ items[].selectedShippingOption.shippingEstimate, one entry per item, unreduced and
2561
+ uncompared.
2562
+ """
2563
+ shippingEstimateList: [ShippingEstimate!]!
2564
+ }
2565
+
2430
2566
  """A shipping option available for a given item and destination."""
2431
2567
  type ShippingOption {
2432
2568
  """Opaque delivery option identifier."""
@@ -2439,11 +2575,21 @@ type ShippingOption {
2439
2575
  name: String!
2440
2576
  """Delivery channel: home delivery or pickup."""
2441
2577
  channel: DeliveryChannel!
2442
- """Estimated shipping time."""
2443
- shippingEstimate: ShippingEstimate!
2444
- """Shipping cost. Zero when free shipping applies."""
2578
+ """
2579
+ Estimated shipping time, sampled from one eligible item. Delivery estimates can genuinely vary
2580
+ per item under the same option; use shippingEstimateList for every item's own value.
2581
+ """
2582
+ shippingEstimate: ShippingEstimate! @deprecated(reason: "Sampled from one item and can misrepresent the others. Use shippingEstimateList.")
2583
+ """
2584
+ Every eligible item's own shippingEstimate, one entry per item, unreduced and uncompared.
2585
+ """
2586
+ shippingEstimateList: [ShippingEstimate!]!
2587
+ """
2588
+ Shipping cost for every item this option covers. Zero when free shipping applies. A live
2589
+ estimate of the shared per-SLA pool, not a guaranteed quote.
2590
+ """
2445
2591
  price: Money!
2446
- """Shipping list price before any promotions."""
2592
+ """Shipping list price before any promotions, summed like price."""
2447
2593
  listPrice: Money!
2448
2594
  """Cart items for which this option is currently available."""
2449
2595
  items: [CartItem!]!
@@ -2461,6 +2607,10 @@ enum ShippingSimulateErrorCode {
2461
2607
  No active cart in context: the cartShippingSimulation query requires an x-order-form-id and never mints a cart.
2462
2608
  """
2463
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
2464
2614
  }
2465
2615
 
2466
2616
  """A domain error returned from the shippingSimulation query."""
@@ -2660,13 +2810,17 @@ type Shipping implements Node @cacheControl(maxAge: 0, scope: PRIVATE) {
2660
2810
  """The logged-in shopper's saved addresses. Empty for anonymous shoppers."""
2661
2811
  savedAddresses: [Address!]!
2662
2812
  """
2663
- Delivery-channel shipping options common to all cart items for the current address, prices summed.
2813
+ Delivery-channel shipping options any cart item is eligible for at the current address, prices summed across the eligible items.
2664
2814
  """
2665
2815
  options: [ShippingOption!]!
2666
2816
  """
2817
+ Delivery-channel options with at least one item currently selected on them, one entry per option. Pickup selections are excluded.
2818
+ """
2819
+ selectedOptions: [SelectedShippingOption!]!
2820
+ """
2667
2821
  The selected option, when one selection applies to the whole cart. Null when items disagree or the persisted selection is a pickup-channel SLA.
2668
2822
  """
2669
- selectedOptionId: ID
2823
+ selectedOptionId: ID @deprecated(reason: "Cannot express split shipping. Use Shipping.selectedOptions.")
2670
2824
  }
2671
2825
 
2672
2826
  """A delivery address or saved-address reference."""
@@ -2763,6 +2917,10 @@ enum ShippingAddressUpdateErrorCode {
2763
2917
  INVALID_POSTAL_CODE
2764
2918
  """The address is invalid."""
2765
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
2766
2924
  }
2767
2925
 
2768
2926
  """A domain error returned from a shipping address update mutation."""
@@ -2786,7 +2944,8 @@ type ShippingAddressUpdatePayload {
2786
2944
  """Input for selecting a shipping option for the whole cart."""
2787
2945
  input ShippingOptionSelectInput {
2788
2946
  """
2789
- The shipping option ID to select. Must be available for all items in the cart.
2947
+ The shipping option ID to select. Must be offered as a delivery option by at least one item in
2948
+ the cart; items that don't offer it fall back to the Checkout API's own choice.
2790
2949
  """
2791
2950
  optionId: ID!
2792
2951
  }
@@ -2797,7 +2956,10 @@ enum ShippingOptionSelectErrorCode {
2797
2956
  MISSING_CART_CONTEXT
2798
2957
  """The cart was not found."""
2799
2958
  CART_NOT_FOUND
2800
- """The option is not available for all items in the cart."""
2959
+ """
2960
+ The option id is not offered as a delivery option by any item in the cart (unknown id or
2961
+ pickup). Returned without calling Checkout. An option only some items offer is not an error.
2962
+ """
2801
2963
  OPTION_UNAVAILABLE
2802
2964
  """No delivery address is persisted on the cart."""
2803
2965
  MISSING_SHIPPING_ADDRESS
@@ -2866,6 +3028,46 @@ type Payment implements Node @cacheControl(maxAge: 0, scope: PRIVATE) {
2866
3028
  Not sensitive — a BIN identifies an issuer range, never a card.
2867
3029
  """
2868
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!
2869
3071
  }
2870
3072
 
2871
3073
  """
@@ -2930,11 +3132,11 @@ type PaymentMethodValidator {
2930
3132
  """
2931
3133
  Whether a cardholder document field is displayable for this method. Distinct from documentRequired.
2932
3134
  """
2933
- 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.")
2934
3136
  """
2935
3137
  Whether the displayed cardholder document is required. Distinct from documentDisplayable — a document can be shown without being mandatory.
2936
3138
  """
2937
- 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.")
2938
3140
  }
2939
3141
 
2940
3142
  """
@@ -3176,6 +3378,10 @@ enum PaymentBillingAddressUpdateErrorCode {
3176
3378
  CART_NOT_FOUND
3177
3379
  """sameAsDelivery is false but postalCode or country was omitted."""
3178
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
3179
3385
  }
3180
3386
 
3181
3387
  """A domain error returned from the paymentBillingAddressUpdate mutation."""
@@ -3252,13 +3458,11 @@ type PaymentStartTransactionPayload {
3252
3458
  merchantName: String
3253
3459
  """
3254
3460
  Origin of the payment gateway this transaction must be paid at, e.g.
3255
- "https://mystore.vtexpayments.com.br" — the base the browser's
3256
- direct-to-gateway send-payments POST appends its own path to. Origin only:
3257
- VTEX's own receiver path is the split-payment endpoint, not the
3258
- per-transaction one. Always an https origin inside vtexpayments.com.br: an
3259
- upstream receiver URI that is neither is rejected in favour of the
3260
- account-derived origin, since this field decides where card data is sent.
3261
- 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.
3262
3466
  """
3263
3467
  gatewayUrl: String
3264
3468
  """
@@ -3297,6 +3501,11 @@ succeeded.
3297
3501
  input PaymentGatewayCallbackInput {
3298
3502
  """The order group returned by paymentStartTransaction."""
3299
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
3300
3509
  }
3301
3510
 
3302
3511
  """
@@ -3311,7 +3520,7 @@ enum PaymentGatewayCallbackErrorCode {
3311
3520
  """
3312
3521
  MISSING_TRANSACTION_COOKIES
3313
3522
  """
3314
- VTEX requires a redirect or out-of-band flow to complete this payment. Phase 2; not supported in v1.
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).
3315
3524
  """
3316
3525
  REDIRECT_REQUIRED
3317
3526
  }
@@ -3330,6 +3539,10 @@ type PaymentGatewayCallbackPayload {
3330
3539
  The finalized order group, echoed back on success. Null if errors occurred.
3331
3540
  """
3332
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
3333
3546
  """Domain errors that occurred during the operation."""
3334
3547
  userErrors: [PaymentGatewayCallbackError!]!
3335
3548
  }
@@ -3346,8 +3559,9 @@ type OrderInstallment @cacheControl(maxAge: 0, scope: PRIVATE) {
3346
3559
  """Number of installments the order was charged in. 1 = single payment."""
3347
3560
  count: Int!
3348
3561
  """
3349
- Total charged across all installments, including any interest. Null when the
3350
- settled record carries no amount, or no currency to denominate it in.
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.
3351
3565
  """
3352
3566
  total: Money
3353
3567
  }
@@ -3364,30 +3578,279 @@ type Order implements Node @cacheControl(maxAge: 0, scope: PRIVATE) {
3364
3578
  """
3365
3579
  id: ID!
3366
3580
  """
3367
- Card network / payment-system display name (e.g. "Visa", or a non-card
3368
- method's own name such as "Boleto Bancário"). Null when the settled order
3369
- carries no payment record to project one from.
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.
3370
3595
  """
3371
3596
  network: String
3372
3597
  """
3373
- 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.
3374
3599
  Present for both a saved and a freshly-entered card — unlike Payment (T1),
3375
- where last four is a saved-card-only field. Null for a non-card method or
3376
- 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.
3377
3602
  """
3378
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.")
3379
3606
  """
3380
- Shopper-assigned custom label for the saved card used, when one was set.
3381
- Null for a freshly-entered (unsaved) card, a non-card method, or when no
3382
- payment record exists to project one from (see specs/order-read-model.md,
3383
- 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.
3384
3609
  """
3385
- label: String
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!
3673
+ """
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.
3386
3733
  """
3387
- The installment plan this order was charged in. Null when the settled record
3388
- reports none.
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.
3389
3741
  """
3390
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
3391
3854
  }
3392
3855
 
3393
3856
  """
@@ -3558,7 +4021,7 @@ type CustomerProfile @cacheControl(maxAge: 0, scope: PRIVATE) {
3558
4021
  """
3559
4022
  Stable identity for cache normalization. Not a Relay Node ID: the profile is
3560
4023
  session-scoped shopper state, derived from the session and never addressable
3561
- by a global id (no id argument, no Query.node entry — IDOR-safe).
4024
+ by a global id (no id argument, no CustomerProfile entry in Query.node).
3562
4025
  """
3563
4026
  id: ID!
3564
4027
  """Given name. Null when unset."""
@@ -3650,3 +4113,565 @@ type CustomerProfileUpdatePayload {
3650
4113
  """Typed, expected write failures. Empty on success."""
3651
4114
  userErrors: [CustomerProfileError!]!
3652
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
+ }