@vendure/admin-ui 2.0.0-next.2 → 2.0.0-next.21

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 (341) hide show
  1. package/catalog/catalog.module.d.ts +15 -11
  2. package/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.d.ts +22 -0
  3. package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +41 -0
  4. package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.d.ts +4 -0
  5. package/catalog/components/collection-contents/collection-contents.component.d.ts +10 -2
  6. package/catalog/components/collection-detail/collection-detail.component.d.ts +13 -4
  7. package/catalog/components/collection-list/collection-list-bulk-actions.d.ts +6 -0
  8. package/catalog/components/collection-list/collection-list.component.d.ts +9 -5
  9. package/catalog/components/collection-tree/array-to-tree.d.ts +1 -1
  10. package/catalog/components/collection-tree/collection-tree-node.component.d.ts +14 -6
  11. package/catalog/components/collection-tree/collection-tree.component.d.ts +4 -1
  12. package/catalog/components/facet-list/facet-list-bulk-actions.d.ts +5 -0
  13. package/catalog/components/facet-list/facet-list.component.d.ts +2 -1
  14. package/catalog/components/generate-product-variants/generate-product-variants.component.d.ts +3 -3
  15. package/catalog/components/option-value-input/option-value-input.component.d.ts +21 -9
  16. package/catalog/components/product-detail/product-detail.component.d.ts +1 -1
  17. package/catalog/components/product-list/product-list-bulk-actions.d.ts +6 -0
  18. package/catalog/components/product-list/product-list.component.d.ts +4 -2
  19. package/catalog/components/product-variants-editor/product-variants-editor.component.d.ts +22 -12
  20. package/catalog/components/product-variants-list/product-variants-list.component.d.ts +1 -0
  21. package/catalog/public_api.d.ts +6 -1
  22. package/core/common/component-registry-types.d.ts +1 -1
  23. package/core/common/generated-types.d.ts +3184 -195
  24. package/core/common/utilities/bulk-action-utils.d.ts +19 -0
  25. package/core/common/utilities/configurable-operation-utils.d.ts +7 -2
  26. package/core/common/utilities/selection-manager.d.ts +30 -0
  27. package/core/common/version.d.ts +1 -1
  28. package/core/components/app-shell/app-shell.component.d.ts +1 -0
  29. package/core/data/definitions/collection-definitions.d.ts +4 -0
  30. package/core/data/definitions/facet-definitions.d.ts +3 -0
  31. package/core/data/definitions/order-definitions.d.ts +14 -0
  32. package/core/data/definitions/product-definitions.d.ts +2 -0
  33. package/core/data/providers/collection-data.service.d.ts +7 -0
  34. package/core/data/providers/facet-data.service.d.ts +3 -0
  35. package/core/data/providers/order-data.service.d.ts +18 -0
  36. package/core/data/providers/product-data.service.d.ts +2 -0
  37. package/core/providers/bulk-action-registry/bulk-action-registry.service.d.ts +9 -0
  38. package/core/providers/bulk-action-registry/bulk-action-types.d.ts +149 -0
  39. package/core/providers/bulk-action-registry/register-bulk-action.d.ts +53 -0
  40. package/core/providers/local-storage/local-storage.service.d.ts +1 -0
  41. package/core/providers/modal/modal.types.d.ts +2 -0
  42. package/core/providers/nav-builder/nav-builder-types.d.ts +1 -0
  43. package/core/public_api.d.ts +24 -1
  44. package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +27 -3
  45. package/core/shared/components/bulk-action-menu/bulk-action-menu.component.d.ts +32 -0
  46. package/core/shared/components/configurable-input/configurable-input.component.d.ts +8 -3
  47. package/core/shared/components/custom-field-control/custom-field-control.component.d.ts +6 -2
  48. package/core/shared/components/data-table/data-table.component.d.ts +29 -7
  49. package/core/shared/components/dropdown/dropdown-menu.component.d.ts +2 -1
  50. package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +3 -2
  51. package/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.d.ts +38 -0
  52. package/{catalog → core/shared}/components/product-search-input/product-search-input.component.d.ts +1 -1
  53. package/core/shared/components/radio-card/radio-card-fieldset.component.d.ts +24 -0
  54. package/core/shared/components/radio-card/radio-card.component.d.ts +22 -0
  55. package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.d.ts +31 -0
  56. package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.d.ts +34 -0
  57. package/core/shared/components/rich-text-editor/prosemirror/custom-nodes.d.ts +4 -0
  58. package/core/shared/components/rich-text-editor/prosemirror/inputrules.d.ts +5 -5
  59. package/core/shared/components/rich-text-editor/prosemirror/menu/links.d.ts +1 -1
  60. package/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.d.ts +12 -0
  61. package/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.d.ts +9 -0
  62. package/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.d.ts +14 -0
  63. package/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.d.ts +7 -0
  64. package/core/shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin.d.ts +1 -1
  65. package/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.d.ts +7 -0
  66. package/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.d.ts +13 -0
  67. package/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.d.ts +7 -3
  68. package/core/shared/components/rich-text-editor/prosemirror/types.d.ts +0 -2
  69. package/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.d.ts +21 -0
  70. package/core/shared/components/rich-text-editor/rich-text-editor.component.d.ts +6 -2
  71. package/core/shared/components/select-toggle/select-toggle.component.d.ts +2 -1
  72. package/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.d.ts +30 -0
  73. package/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.d.ts +22 -0
  74. package/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.d.ts +5 -17
  75. package/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.d.ts +28 -0
  76. package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +2 -0
  77. package/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.d.ts +23 -0
  78. package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +5 -1
  79. package/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.d.ts +6 -3
  80. package/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +10 -2
  81. package/core/shared/pipes/custom-field-description.pipe.d.ts +11 -0
  82. package/core/shared/pipes/custom-field-label.pipe.d.ts +4 -10
  83. package/core/shared/shared.module.d.ts +68 -57
  84. package/customer/components/customer-group-list/customer-group-list.component.d.ts +6 -4
  85. package/customer/components/customer-group-member-list/customer-group-member-list.component.d.ts +11 -4
  86. package/esm2020/catalog/catalog.module.mjs +31 -10
  87. package/esm2020/catalog/components/apply-facet-dialog/apply-facet-dialog.component.mjs +1 -1
  88. package/esm2020/catalog/components/assets/assets.component.mjs +2 -2
  89. package/esm2020/catalog/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.mjs +4 -1
  90. package/esm2020/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.mjs +50 -0
  91. package/esm2020/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.mjs +84 -0
  92. package/esm2020/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.mjs +69 -0
  93. package/esm2020/catalog/components/collection-contents/collection-contents.component.mjs +61 -13
  94. package/esm2020/catalog/components/collection-detail/collection-detail.component.mjs +70 -32
  95. package/esm2020/catalog/components/collection-list/collection-list-bulk-actions.mjs +143 -0
  96. package/esm2020/catalog/components/collection-list/collection-list.component.mjs +46 -12
  97. package/esm2020/catalog/components/collection-tree/array-to-tree.mjs +3 -3
  98. package/esm2020/catalog/components/collection-tree/collection-tree-node.component.mjs +36 -10
  99. package/esm2020/catalog/components/collection-tree/collection-tree.component.mjs +9 -4
  100. package/esm2020/catalog/components/facet-detail/facet-detail.component.mjs +3 -3
  101. package/esm2020/catalog/components/facet-list/facet-list-bulk-actions.mjs +202 -0
  102. package/esm2020/catalog/components/facet-list/facet-list.component.mjs +14 -5
  103. package/esm2020/catalog/components/generate-product-variants/generate-product-variants.component.mjs +12 -4
  104. package/esm2020/catalog/components/option-value-input/option-value-input.component.mjs +70 -11
  105. package/esm2020/catalog/components/product-detail/product-detail.component.mjs +36 -24
  106. package/esm2020/catalog/components/product-list/product-list-bulk-actions.mjs +168 -0
  107. package/esm2020/catalog/components/product-list/product-list.component.mjs +13 -9
  108. package/esm2020/catalog/components/product-variants-editor/product-variants-editor.component.mjs +130 -19
  109. package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +9 -3
  110. package/esm2020/catalog/providers/routing/collection-resolver.mjs +2 -1
  111. package/esm2020/catalog/public_api.mjs +7 -2
  112. package/esm2020/core/app.component.module.mjs +1 -1
  113. package/esm2020/core/common/base-detail.component.mjs +1 -1
  114. package/esm2020/core/common/component-registry-types.mjs +1 -1
  115. package/esm2020/core/common/deactivate-aware.mjs +1 -1
  116. package/esm2020/core/common/generated-types.mjs +31 -1
  117. package/esm2020/core/common/introspection-result.mjs +296 -189
  118. package/esm2020/core/common/utilities/bulk-action-utils.mjs +35 -0
  119. package/esm2020/core/common/utilities/configurable-operation-utils.mjs +37 -10
  120. package/esm2020/core/common/utilities/selection-manager.mjs +96 -0
  121. package/esm2020/core/common/version.mjs +2 -2
  122. package/esm2020/core/components/app-shell/app-shell.component.mjs +6 -5
  123. package/esm2020/core/components/breadcrumb/breadcrumb.component.mjs +2 -2
  124. package/esm2020/core/components/channel-switcher/channel-switcher.component.mjs +1 -1
  125. package/esm2020/core/components/main-nav/main-nav.component.mjs +3 -3
  126. package/esm2020/core/components/user-menu/user-menu.component.mjs +1 -1
  127. package/esm2020/core/core.module.mjs +1 -1
  128. package/esm2020/core/data/definitions/collection-definitions.mjs +47 -1
  129. package/esm2020/core/data/definitions/facet-definitions.mjs +31 -1
  130. package/esm2020/core/data/definitions/order-definitions.mjs +583 -455
  131. package/esm2020/core/data/definitions/product-definitions.mjs +23 -1
  132. package/esm2020/core/data/definitions/shared-definitions.mjs +29 -28
  133. package/esm2020/core/data/providers/collection-data.service.mjs +20 -2
  134. package/esm2020/core/data/providers/customer-data.service.mjs +6 -1
  135. package/esm2020/core/data/providers/facet-data.service.mjs +18 -2
  136. package/esm2020/core/data/providers/order-data.service.mjs +43 -2
  137. package/esm2020/core/data/providers/product-data.service.mjs +10 -2
  138. package/esm2020/core/data/providers/promotion-data.service.mjs +1 -1
  139. package/esm2020/core/data/utils/remove-readonly-custom-fields.mjs +8 -1
  140. package/esm2020/core/providers/bulk-action-registry/bulk-action-registry.service.mjs +28 -0
  141. package/esm2020/core/providers/bulk-action-registry/bulk-action-types.mjs +2 -0
  142. package/esm2020/core/providers/bulk-action-registry/register-bulk-action.mjs +63 -0
  143. package/esm2020/core/providers/dashboard-widget/dashboard-widget.service.mjs +1 -4
  144. package/esm2020/core/providers/local-storage/local-storage.service.mjs +1 -1
  145. package/esm2020/core/providers/modal/modal.service.mjs +2 -1
  146. package/esm2020/core/providers/modal/modal.types.mjs +1 -1
  147. package/esm2020/core/providers/nav-builder/nav-builder-types.mjs +1 -1
  148. package/esm2020/core/public_api.mjs +25 -2
  149. package/esm2020/core/shared/components/action-bar/action-bar.component.mjs +7 -15
  150. package/esm2020/core/shared/components/address-form/address-form.component.mjs +3 -3
  151. package/esm2020/core/shared/components/asset-gallery/asset-gallery.component.mjs +34 -51
  152. package/esm2020/core/shared/components/asset-preview/asset-preview.component.mjs +4 -4
  153. package/esm2020/core/shared/components/asset-preview-links/asset-preview-links.component.mjs +1 -1
  154. package/esm2020/core/shared/components/bulk-action-menu/bulk-action-menu.component.mjs +97 -0
  155. package/esm2020/core/shared/components/configurable-input/configurable-input.component.mjs +22 -10
  156. package/esm2020/core/shared/components/custom-field-control/custom-field-control.component.mjs +18 -10
  157. package/esm2020/core/shared/components/data-table/data-table.component.mjs +64 -14
  158. package/esm2020/core/shared/components/datetime-picker/datetime-picker.component.mjs +1 -1
  159. package/esm2020/core/shared/components/dropdown/dropdown-menu.component.mjs +26 -23
  160. package/esm2020/core/shared/components/dropdown/dropdown-trigger.directive.mjs +1 -1
  161. package/esm2020/core/shared/components/entity-info/entity-info.component.mjs +1 -1
  162. package/esm2020/core/shared/components/facet-value-selector/facet-value-selector.component.mjs +13 -6
  163. package/esm2020/core/shared/components/formatted-address/formatted-address.component.mjs +3 -3
  164. package/esm2020/core/shared/components/help-tooltip/help-tooltip.component.mjs +2 -2
  165. package/esm2020/core/shared/components/history-entry-detail/history-entry-detail.component.mjs +1 -1
  166. package/esm2020/core/shared/components/language-selector/language-selector.component.mjs +3 -3
  167. package/esm2020/core/shared/components/object-tree/object-tree.component.mjs +1 -1
  168. package/esm2020/core/shared/components/order-state-label/order-state-label.component.mjs +2 -1
  169. package/esm2020/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +135 -0
  170. package/esm2020/core/shared/components/product-search-input/product-search-input.component.mjs +108 -0
  171. package/esm2020/core/shared/components/product-variant-selector/product-variant-selector.component.mjs +2 -2
  172. package/esm2020/core/shared/components/radio-card/radio-card-fieldset.component.mjs +54 -0
  173. package/esm2020/core/shared/components/radio-card/radio-card.component.mjs +53 -0
  174. package/esm2020/core/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.mjs +3 -3
  175. package/esm2020/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.mjs +136 -0
  176. package/esm2020/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.mjs +46 -0
  177. package/esm2020/core/shared/components/rich-text-editor/prosemirror/custom-nodes.mjs +57 -0
  178. package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/links.mjs +4 -4
  179. package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.mjs +22 -1
  180. package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.mjs +12 -0
  181. package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/menu.mjs +73 -18
  182. package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.mjs +16 -0
  183. package/esm2020/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.mjs +100 -0
  184. package/esm2020/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.mjs +96 -0
  185. package/esm2020/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.mjs +166 -0
  186. package/esm2020/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.mjs +47 -18
  187. package/esm2020/core/shared/components/rich-text-editor/prosemirror/types.mjs +1 -1
  188. package/esm2020/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.mjs +59 -0
  189. package/esm2020/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +22 -10
  190. package/esm2020/core/shared/components/select-toggle/select-toggle.component.mjs +6 -3
  191. package/esm2020/core/shared/components/simple-dialog/simple-dialog.component.mjs +3 -3
  192. package/esm2020/core/shared/components/ui-extension-point/ui-extension-point.component.mjs +1 -1
  193. package/esm2020/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.mjs +57 -0
  194. package/esm2020/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.mjs +63 -0
  195. package/esm2020/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.mjs +48 -83
  196. package/esm2020/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.mjs +45 -0
  197. package/esm2020/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.mjs +3 -3
  198. package/esm2020/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.mjs +12 -3
  199. package/esm2020/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.mjs +48 -0
  200. package/esm2020/core/shared/dynamic-form-inputs/register-dynamic-input-components.mjs +7 -1
  201. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.mjs +11 -9
  202. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.mjs +1 -1
  203. package/esm2020/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +21 -11
  204. package/esm2020/core/shared/pipes/custom-field-description.pipe.mjs +30 -0
  205. package/esm2020/core/shared/pipes/custom-field-label.pipe.mjs +7 -19
  206. package/esm2020/core/shared/pipes/locale-currency.pipe.mjs +10 -2
  207. package/esm2020/core/shared/pipes/state-i18n-token.pipe.mjs +2 -1
  208. package/esm2020/core/shared/shared.module.mjs +49 -5
  209. package/esm2020/customer/components/address-card/address-card.component.mjs +1 -1
  210. package/esm2020/customer/components/customer-detail/customer-detail.component.mjs +1 -1
  211. package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +33 -18
  212. package/esm2020/customer/components/customer-group-member-list/customer-group-member-list.component.mjs +3 -3
  213. package/esm2020/customer/components/customer-history/customer-history.component.mjs +1 -1
  214. package/esm2020/customer/components/customer-list/customer-list.component.mjs +3 -3
  215. package/esm2020/dashboard/components/dashboard/dashboard.component.mjs +2 -2
  216. package/esm2020/dashboard/components/dashboard-widget/dashboard-widget.component.mjs +2 -2
  217. package/esm2020/dashboard/dashboard.module.mjs +6 -2
  218. package/esm2020/dashboard/widgets/latest-orders-widget/latest-orders-widget.component.mjs +1 -1
  219. package/esm2020/dashboard/widgets/order-summary-widget/order-summary-widget.component.mjs +2 -2
  220. package/esm2020/login/components/login/login.component.mjs +3 -3
  221. package/esm2020/marketing/components/promotion-detail/promotion-detail.component.mjs +3 -3
  222. package/esm2020/marketing/components/promotion-list/promotion-list.component.mjs +1 -1
  223. package/esm2020/order/components/cancel-order-dialog/cancel-order-dialog.component.mjs +1 -1
  224. package/esm2020/order/components/coupon-code-selector/coupon-code-selector.component.mjs +42 -0
  225. package/esm2020/order/components/draft-order-detail/draft-order-detail.component.mjs +187 -0
  226. package/esm2020/order/components/draft-order-variant-selector/draft-order-variant-selector.component.mjs +59 -0
  227. package/esm2020/order/components/fulfill-order-dialog/fulfill-order-dialog.component.mjs +7 -3
  228. package/esm2020/order/components/fulfillment-card/fulfillment-card.component.mjs +1 -1
  229. package/esm2020/order/components/fulfillment-detail/fulfillment-detail.component.mjs +8 -17
  230. package/esm2020/order/components/line-fulfillment/line-fulfillment.component.mjs +8 -22
  231. package/esm2020/order/components/order-custom-fields-card/order-custom-fields-card.component.mjs +30 -6
  232. package/esm2020/order/components/order-detail/order-detail.component.mjs +80 -40
  233. package/esm2020/order/components/order-editor/order-editor.component.mjs +15 -14
  234. package/esm2020/order/components/order-edits-preview-dialog/order-edits-preview-dialog.component.mjs +1 -1
  235. package/esm2020/order/components/order-history/order-history.component.mjs +1 -1
  236. package/esm2020/order/components/order-list/order-list.component.mjs +40 -17
  237. package/esm2020/order/components/order-payment-card/order-payment-card.component.mjs +3 -3
  238. package/esm2020/order/components/order-table/order-table.component.mjs +29 -6
  239. package/esm2020/order/components/refund-order-dialog/refund-order-dialog.component.mjs +2 -2
  240. package/esm2020/order/components/select-address-dialog/select-address-dialog.component.mjs +89 -0
  241. package/esm2020/order/components/select-address-dialog/select-address-dialog.graphql.mjs +14 -0
  242. package/esm2020/order/components/select-customer-dialog/select-customer-dialog.component.mjs +59 -0
  243. package/esm2020/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.mjs +31 -0
  244. package/esm2020/order/order.module.mjs +20 -2
  245. package/esm2020/order/order.routes.mjs +23 -4
  246. package/esm2020/order/providers/routing/order-resolver.mjs +29 -11
  247. package/esm2020/order/providers/routing/order.guard.mjs +37 -0
  248. package/esm2020/order/public_api.mjs +9 -1
  249. package/esm2020/settings/components/administrator-list/administrator-list.component.mjs +1 -1
  250. package/esm2020/settings/components/channel-list/channel-list.component.mjs +1 -1
  251. package/esm2020/settings/components/country-list/country-list.component.mjs +3 -3
  252. package/esm2020/settings/components/payment-method-detail/payment-method-detail.component.mjs +1 -1
  253. package/esm2020/settings/components/payment-method-list/payment-method-list.component.mjs +1 -1
  254. package/esm2020/settings/components/permission-grid/permission-grid.component.mjs +1 -1
  255. package/esm2020/settings/components/profile/profile.component.mjs +3 -3
  256. package/esm2020/settings/components/role-list/role-list.component.mjs +1 -1
  257. package/esm2020/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +4 -2
  258. package/esm2020/settings/components/shipping-method-list/shipping-method-list.component.mjs +1 -1
  259. package/esm2020/settings/components/tax-category-list/tax-category-list.component.mjs +1 -1
  260. package/esm2020/settings/components/tax-rate-list/tax-rate-list.component.mjs +1 -1
  261. package/esm2020/settings/components/zone-detail-dialog/zone-detail-dialog.component.mjs +2 -2
  262. package/esm2020/settings/components/zone-list/zone-list.component.mjs +3 -3
  263. package/esm2020/settings/components/zone-member-list/zone-member-list.component.mjs +3 -3
  264. package/esm2020/system/components/health-check/health-check.component.mjs +2 -2
  265. package/esm2020/system/components/job-list/job-list.component.mjs +1 -1
  266. package/fesm2015/vendure-admin-ui-catalog.mjs +1206 -228
  267. package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
  268. package/fesm2015/vendure-admin-ui-core.mjs +9451 -7332
  269. package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
  270. package/fesm2015/vendure-admin-ui-customer.mjs +36 -23
  271. package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
  272. package/fesm2015/vendure-admin-ui-dashboard.mjs +11 -7
  273. package/fesm2015/vendure-admin-ui-dashboard.mjs.map +1 -1
  274. package/fesm2015/vendure-admin-ui-login.mjs +2 -2
  275. package/fesm2015/vendure-admin-ui-login.mjs.map +1 -1
  276. package/fesm2015/vendure-admin-ui-marketing.mjs +3 -3
  277. package/fesm2015/vendure-admin-ui-marketing.mjs.map +1 -1
  278. package/fesm2015/vendure-admin-ui-order.mjs +1184 -599
  279. package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
  280. package/fesm2015/vendure-admin-ui-settings.mjs +21 -19
  281. package/fesm2015/vendure-admin-ui-settings.mjs.map +1 -1
  282. package/fesm2015/vendure-admin-ui-system.mjs +3 -3
  283. package/fesm2020/vendure-admin-ui-catalog.mjs +1190 -230
  284. package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
  285. package/fesm2020/vendure-admin-ui-core.mjs +9539 -7437
  286. package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
  287. package/fesm2020/vendure-admin-ui-customer.mjs +36 -23
  288. package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
  289. package/fesm2020/vendure-admin-ui-dashboard.mjs +11 -7
  290. package/fesm2020/vendure-admin-ui-dashboard.mjs.map +1 -1
  291. package/fesm2020/vendure-admin-ui-login.mjs +2 -2
  292. package/fesm2020/vendure-admin-ui-login.mjs.map +1 -1
  293. package/fesm2020/vendure-admin-ui-marketing.mjs +3 -3
  294. package/fesm2020/vendure-admin-ui-marketing.mjs.map +1 -1
  295. package/fesm2020/vendure-admin-ui-order.mjs +1194 -614
  296. package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
  297. package/fesm2020/vendure-admin-ui-settings.mjs +21 -19
  298. package/fesm2020/vendure-admin-ui-settings.mjs.map +1 -1
  299. package/fesm2020/vendure-admin-ui-system.mjs +3 -3
  300. package/order/components/coupon-code-selector/coupon-code-selector.component.d.ts +21 -0
  301. package/order/components/draft-order-detail/draft-order-detail.component.d.ts +52 -0
  302. package/order/components/draft-order-variant-selector/draft-order-variant-selector.component.d.ts +24 -0
  303. package/order/components/order-custom-fields-card/order-custom-fields-card.component.d.ts +4 -2
  304. package/order/components/order-editor/order-editor.component.d.ts +1 -6
  305. package/order/components/order-list/order-list.component.d.ts +2 -0
  306. package/order/components/order-table/order-table.component.d.ts +12 -2
  307. package/order/components/select-address-dialog/select-address-dialog.component.d.ts +27 -0
  308. package/order/components/select-address-dialog/select-address-dialog.graphql.d.ts +1 -0
  309. package/order/components/select-customer-dialog/select-customer-dialog.component.d.ts +25 -0
  310. package/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.d.ts +19 -0
  311. package/order/order.module.d.ts +9 -3
  312. package/order/providers/routing/order-resolver.d.ts +8 -3
  313. package/order/providers/routing/order.guard.d.ts +12 -0
  314. package/order/public_api.d.ts +8 -0
  315. package/package.json +13 -12
  316. package/settings/components/zone-member-list/zone-member-list.component.d.ts +3 -1
  317. package/static/i18n-messages/cs.json +50 -3
  318. package/static/i18n-messages/de.json +53 -3
  319. package/static/i18n-messages/en.json +55 -8
  320. package/static/i18n-messages/es.json +50 -3
  321. package/static/i18n-messages/fr.json +50 -3
  322. package/static/i18n-messages/it.json +50 -3
  323. package/static/i18n-messages/pl.json +50 -3
  324. package/static/i18n-messages/pt_BR.json +50 -3
  325. package/static/i18n-messages/pt_PT.json +50 -3
  326. package/static/i18n-messages/ru.json +50 -3
  327. package/static/i18n-messages/uk.json +50 -3
  328. package/static/i18n-messages/zh_Hans.json +50 -3
  329. package/static/i18n-messages/zh_Hant.json +50 -3
  330. package/static/styles/_variables.scss +4 -0
  331. package/static/styles/global/_forms.scss +8 -7
  332. package/static/styles/global/_overrides.scss +11 -1
  333. package/static/styles/global/_sass-overrides.scss +3 -0
  334. package/static/styles/global/_utilities.scss +14 -0
  335. package/static/styles/styles.scss +1 -0
  336. package/static/styles/theme/default.scss +13 -1
  337. package/static/styles/ui-extension-theme.scss +1 -0
  338. package/static/theme.min.css +1 -1
  339. package/core/shared/components/rich-text-editor/prosemirror/menu/images.d.ts +0 -4
  340. package/esm2020/catalog/components/product-search-input/product-search-input.component.mjs +0 -107
  341. package/esm2020/core/shared/components/rich-text-editor/prosemirror/menu/images.mjs +0 -36
@@ -30,6 +30,10 @@ export declare type AddItemInput = {
30
30
  productVariantId: Scalars['ID'];
31
31
  quantity: Scalars['Int'];
32
32
  };
33
+ export declare type AddItemToDraftOrderInput = {
34
+ productVariantId: Scalars['ID'];
35
+ quantity: Scalars['Int'];
36
+ };
33
37
  export declare type AddManualPaymentToOrderResult = ManualPaymentStateError | Order;
34
38
  export declare type AddNoteToCustomerInput = {
35
39
  id: Scalars['ID'];
@@ -59,6 +63,10 @@ export declare type Address = Node & {
59
63
  streetLine2?: Maybe<Scalars['String']>;
60
64
  updatedAt: Scalars['DateTime'];
61
65
  };
66
+ export declare type AdjustDraftOrderLineInput = {
67
+ orderLineId: Scalars['ID'];
68
+ quantity: Scalars['Int'];
69
+ };
62
70
  export declare type AdjustOrderLineInput = {
63
71
  orderLineId: Scalars['ID'];
64
72
  quantity: Scalars['Int'];
@@ -144,6 +152,7 @@ export declare type AlreadyRefundedError = ErrorResult & {
144
152
  message: Scalars['String'];
145
153
  refundId: Scalars['ID'];
146
154
  };
155
+ export declare type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order;
147
156
  export declare type Asset = Node & {
148
157
  __typename?: 'Asset';
149
158
  createdAt: Scalars['DateTime'];
@@ -214,6 +223,14 @@ export declare type AssignAssetsToChannelInput = {
214
223
  assetIds: Array<Scalars['ID']>;
215
224
  channelId: Scalars['ID'];
216
225
  };
226
+ export declare type AssignCollectionsToChannelInput = {
227
+ channelId: Scalars['ID'];
228
+ collectionIds: Array<Scalars['ID']>;
229
+ };
230
+ export declare type AssignFacetsToChannelInput = {
231
+ channelId: Scalars['ID'];
232
+ facetIds: Array<Scalars['ID']>;
233
+ };
217
234
  export declare type AssignProductVariantsToChannelInput = {
218
235
  channelId: Scalars['ID'];
219
236
  priceFactor?: InputMaybe<Scalars['Float']>;
@@ -276,6 +293,14 @@ export declare type CancelOrderInput = {
276
293
  reason?: InputMaybe<Scalars['String']>;
277
294
  };
278
295
  export declare type CancelOrderResult = CancelActiveOrderError | EmptyOrderLineSelectionError | MultipleOrderError | Order | OrderStateTransitionError | QuantityTooGreatError;
296
+ /** Returned if the Payment cancellation fails */
297
+ export declare type CancelPaymentError = ErrorResult & {
298
+ __typename?: 'CancelPaymentError';
299
+ errorCode: ErrorCode;
300
+ message: Scalars['String'];
301
+ paymentErrorMessage: Scalars['String'];
302
+ };
303
+ export declare type CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTransitionError;
279
304
  export declare type Cancellation = Node & StockMovement & {
280
305
  __typename?: 'Cancellation';
281
306
  createdAt: Scalars['DateTime'];
@@ -1288,6 +1313,7 @@ export declare type EmptyOrderLineSelectionError = ErrorResult & {
1288
1313
  export declare enum ErrorCode {
1289
1314
  ALREADY_REFUNDED_ERROR = "ALREADY_REFUNDED_ERROR",
1290
1315
  CANCEL_ACTIVE_ORDER_ERROR = "CANCEL_ACTIVE_ORDER_ERROR",
1316
+ CANCEL_PAYMENT_ERROR = "CANCEL_PAYMENT_ERROR",
1291
1317
  CHANNEL_DEFAULT_LANGUAGE_ERROR = "CHANNEL_DEFAULT_LANGUAGE_ERROR",
1292
1318
  COUPON_CODE_EXPIRED_ERROR = "COUPON_CODE_EXPIRED_ERROR",
1293
1319
  COUPON_CODE_INVALID_ERROR = "COUPON_CODE_INVALID_ERROR",
@@ -1295,7 +1321,9 @@ export declare enum ErrorCode {
1295
1321
  CREATE_FULFILLMENT_ERROR = "CREATE_FULFILLMENT_ERROR",
1296
1322
  EMAIL_ADDRESS_CONFLICT_ERROR = "EMAIL_ADDRESS_CONFLICT_ERROR",
1297
1323
  EMPTY_ORDER_LINE_SELECTION_ERROR = "EMPTY_ORDER_LINE_SELECTION_ERROR",
1324
+ FACET_IN_USE_ERROR = "FACET_IN_USE_ERROR",
1298
1325
  FULFILLMENT_STATE_TRANSITION_ERROR = "FULFILLMENT_STATE_TRANSITION_ERROR",
1326
+ INELIGIBLE_SHIPPING_METHOD_ERROR = "INELIGIBLE_SHIPPING_METHOD_ERROR",
1299
1327
  INSUFFICIENT_STOCK_ERROR = "INSUFFICIENT_STOCK_ERROR",
1300
1328
  INSUFFICIENT_STOCK_ON_HAND_ERROR = "INSUFFICIENT_STOCK_ON_HAND_ERROR",
1301
1329
  INVALID_CREDENTIALS_ERROR = "INVALID_CREDENTIALS_ERROR",
@@ -1309,8 +1337,10 @@ export declare enum ErrorCode {
1309
1337
  NATIVE_AUTH_STRATEGY_ERROR = "NATIVE_AUTH_STRATEGY_ERROR",
1310
1338
  NEGATIVE_QUANTITY_ERROR = "NEGATIVE_QUANTITY_ERROR",
1311
1339
  NOTHING_TO_REFUND_ERROR = "NOTHING_TO_REFUND_ERROR",
1340
+ NO_ACTIVE_ORDER_ERROR = "NO_ACTIVE_ORDER_ERROR",
1312
1341
  NO_CHANGES_SPECIFIED_ERROR = "NO_CHANGES_SPECIFIED_ERROR",
1313
1342
  ORDER_LIMIT_ERROR = "ORDER_LIMIT_ERROR",
1343
+ ORDER_MODIFICATION_ERROR = "ORDER_MODIFICATION_ERROR",
1314
1344
  ORDER_MODIFICATION_STATE_ERROR = "ORDER_MODIFICATION_STATE_ERROR",
1315
1345
  ORDER_STATE_TRANSITION_ERROR = "ORDER_STATE_TRANSITION_ERROR",
1316
1346
  PAYMENT_METHOD_MISSING_ERROR = "PAYMENT_METHOD_MISSING_ERROR",
@@ -1350,6 +1380,14 @@ export declare type FacetFilterParameter = {
1350
1380
  name?: InputMaybe<StringOperators>;
1351
1381
  updatedAt?: InputMaybe<DateOperators>;
1352
1382
  };
1383
+ export declare type FacetInUseError = ErrorResult & {
1384
+ __typename?: 'FacetInUseError';
1385
+ errorCode: ErrorCode;
1386
+ facetCode: Scalars['String'];
1387
+ message: Scalars['String'];
1388
+ productCount: Scalars['Int'];
1389
+ variantCount: Scalars['Int'];
1390
+ };
1353
1391
  export declare type FacetList = PaginatedList & {
1354
1392
  __typename?: 'FacetList';
1355
1393
  items: Array<Facet>;
@@ -1463,9 +1501,15 @@ export declare type Fulfillment = Node & {
1463
1501
  nextStates: Array<Scalars['String']>;
1464
1502
  orderItems: Array<OrderItem>;
1465
1503
  state: Scalars['String'];
1504
+ summary: Array<FulfillmentLineSummary>;
1466
1505
  trackingCode?: Maybe<Scalars['String']>;
1467
1506
  updatedAt: Scalars['DateTime'];
1468
1507
  };
1508
+ export declare type FulfillmentLineSummary = {
1509
+ __typename?: 'FulfillmentLineSummary';
1510
+ orderLine: OrderLine;
1511
+ quantity: Scalars['Int'];
1512
+ };
1469
1513
  /** Returned when there is an error in transitioning the Fulfillment state */
1470
1514
  export declare type FulfillmentStateTransitionError = ErrorResult & {
1471
1515
  __typename?: 'FulfillmentStateTransitionError';
@@ -1573,6 +1617,12 @@ export declare type ImportInfo = {
1573
1617
  imported: Scalars['Int'];
1574
1618
  processed: Scalars['Int'];
1575
1619
  };
1620
+ /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */
1621
+ export declare type IneligibleShippingMethodError = ErrorResult & {
1622
+ __typename?: 'IneligibleShippingMethodError';
1623
+ errorCode: ErrorCode;
1624
+ message: Scalars['String'];
1625
+ };
1576
1626
  /** Returned when attempting to add more items to the Order than are available */
1577
1627
  export declare type InsufficientStockError = ErrorResult & {
1578
1628
  __typename?: 'InsufficientStockError';
@@ -2126,6 +2176,8 @@ export declare type Mutation = {
2126
2176
  /** Add Customers to a CustomerGroup */
2127
2177
  addCustomersToGroup: CustomerGroup;
2128
2178
  addFulfillmentToOrder: AddFulfillmentToOrderResult;
2179
+ /** Adds an item to the draft Order. */
2180
+ addItemToDraftOrder: UpdateOrderItemsResult;
2129
2181
  /**
2130
2182
  * Used to manually create a new Payment against an Order.
2131
2183
  * This can be used by an Administrator when an Order is in the ArrangingPayment state.
@@ -2142,8 +2194,16 @@ export declare type Mutation = {
2142
2194
  addNoteToOrder: Order;
2143
2195
  /** Add an OptionGroup to a Product */
2144
2196
  addOptionGroupToProduct: Product;
2197
+ /** Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */
2198
+ adjustDraftOrderLine: UpdateOrderItemsResult;
2199
+ /** Applies the given coupon code to the draft Order */
2200
+ applyCouponCodeToDraftOrder: ApplyCouponCodeResult;
2145
2201
  /** Assign assets to channel */
2146
2202
  assignAssetsToChannel: Array<Asset>;
2203
+ /** Assigns Collections to the specified Channel */
2204
+ assignCollectionsToChannel: Array<Collection>;
2205
+ /** Assigns Facets to the specified Channel */
2206
+ assignFacetsToChannel: Array<Facet>;
2147
2207
  /** Assigns ProductVariants to the specified Channel */
2148
2208
  assignProductVariantsToChannel: Array<ProductVariant>;
2149
2209
  /** Assigns all ProductVariants of Product to the specified Channel */
@@ -2156,6 +2216,7 @@ export declare type Mutation = {
2156
2216
  authenticate: AuthenticationResult;
2157
2217
  cancelJob: Job;
2158
2218
  cancelOrder: CancelOrderResult;
2219
+ cancelPayment: CancelPaymentResult;
2159
2220
  /** Create a new Administrator */
2160
2221
  createAdministrator: Administrator;
2161
2222
  /** Create a new Asset */
@@ -2172,6 +2233,8 @@ export declare type Mutation = {
2172
2233
  createCustomerAddress: Address;
2173
2234
  /** Create a new CustomerGroup */
2174
2235
  createCustomerGroup: CustomerGroup;
2236
+ /** Creates a draft Order */
2237
+ createDraftOrder: Order;
2175
2238
  /** Create a new Facet */
2176
2239
  createFacet: Facet;
2177
2240
  /** Create one or more FacetValues */
@@ -2209,6 +2272,8 @@ export declare type Mutation = {
2209
2272
  deleteChannel: DeletionResponse;
2210
2273
  /** Delete a Collection and all of its descendants */
2211
2274
  deleteCollection: DeletionResponse;
2275
+ /** Delete multiple Collections and all of their descendants */
2276
+ deleteCollections: Array<DeletionResponse>;
2212
2277
  /** Delete a Country */
2213
2278
  deleteCountry: DeletionResponse;
2214
2279
  /** Delete a Customer */
@@ -2218,17 +2283,27 @@ export declare type Mutation = {
2218
2283
  /** Delete a CustomerGroup */
2219
2284
  deleteCustomerGroup: DeletionResponse;
2220
2285
  deleteCustomerNote: DeletionResponse;
2286
+ /** Deletes a draft Order */
2287
+ deleteDraftOrder: DeletionResponse;
2221
2288
  /** Delete an existing Facet */
2222
2289
  deleteFacet: DeletionResponse;
2223
2290
  /** Delete one or more FacetValues */
2224
2291
  deleteFacetValues: Array<DeletionResponse>;
2292
+ /** Delete multiple existing Facets */
2293
+ deleteFacets: Array<DeletionResponse>;
2225
2294
  deleteOrderNote: DeletionResponse;
2226
2295
  /** Delete a PaymentMethod */
2227
2296
  deletePaymentMethod: DeletionResponse;
2228
2297
  /** Delete a Product */
2229
2298
  deleteProduct: DeletionResponse;
2299
+ /** Delete a ProductOption */
2300
+ deleteProductOption: DeletionResponse;
2230
2301
  /** Delete a ProductVariant */
2231
2302
  deleteProductVariant: DeletionResponse;
2303
+ /** Delete multiple ProductVariants */
2304
+ deleteProductVariants: Array<DeletionResponse>;
2305
+ /** Delete multiple Products */
2306
+ deleteProducts: Array<DeletionResponse>;
2232
2307
  deletePromotion: DeletionResponse;
2233
2308
  /** Delete an existing Role */
2234
2309
  deleteRole: DeletionResponse;
@@ -2256,8 +2331,16 @@ export declare type Mutation = {
2256
2331
  moveCollection: Collection;
2257
2332
  refundOrder: RefundOrderResult;
2258
2333
  reindex: Job;
2334
+ /** Removes Collections from the specified Channel */
2335
+ removeCollectionsFromChannel: Array<Collection>;
2336
+ /** Removes the given coupon code from the draft Order */
2337
+ removeCouponCodeFromDraftOrder?: Maybe<Order>;
2259
2338
  /** Remove Customers from a CustomerGroup */
2260
2339
  removeCustomersFromGroup: CustomerGroup;
2340
+ /** Remove an OrderLine from the draft Order */
2341
+ removeDraftOrderLine: RemoveOrderItemsResult;
2342
+ /** Removes Facets from the specified Channel */
2343
+ removeFacetsFromChannel: Array<RemoveFacetFromChannelResult>;
2261
2344
  /** Remove members from a Zone */
2262
2345
  removeMembersFromZone: Zone;
2263
2346
  /** Remove an OptionGroup from a Product */
@@ -2277,7 +2360,16 @@ export declare type Mutation = {
2277
2360
  setAsLoggedIn: UserStatus;
2278
2361
  setAsLoggedOut: UserStatus;
2279
2362
  setContentLanguage: LanguageCode;
2363
+ setCustomerForDraftOrder: SetCustomerForDraftOrderResult;
2280
2364
  setDisplayUiExtensionPoints: Scalars['Boolean'];
2365
+ /** Sets the billing address for a draft Order */
2366
+ setDraftOrderBillingAddress: Order;
2367
+ /** Allows any custom fields to be set for the active order */
2368
+ setDraftOrderCustomFields: Order;
2369
+ /** Sets the shipping address for a draft Order */
2370
+ setDraftOrderShippingAddress: Order;
2371
+ /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */
2372
+ setDraftOrderShippingMethod: SetOrderShippingMethodResult;
2281
2373
  setOrderCustomFields?: Maybe<Order>;
2282
2374
  setUiLanguage: LanguageCode;
2283
2375
  setUiLocale?: Maybe<Scalars['String']>;
@@ -2322,6 +2414,8 @@ export declare type Mutation = {
2322
2414
  updateProductOptionGroup: ProductOptionGroup;
2323
2415
  /** Update existing ProductVariants */
2324
2416
  updateProductVariants: Array<Maybe<ProductVariant>>;
2417
+ /** Update multiple existing Products */
2418
+ updateProducts: Array<Product>;
2325
2419
  updatePromotion: UpdatePromotionResult;
2326
2420
  /** Update an existing Role */
2327
2421
  updateRole: Role;
@@ -2344,6 +2438,10 @@ export declare type MutationAddCustomersToGroupArgs = {
2344
2438
  export declare type MutationAddFulfillmentToOrderArgs = {
2345
2439
  input: FulfillOrderInput;
2346
2440
  };
2441
+ export declare type MutationAddItemToDraftOrderArgs = {
2442
+ input: AddItemToDraftOrderInput;
2443
+ orderId: Scalars['ID'];
2444
+ };
2347
2445
  export declare type MutationAddManualPaymentToOrderArgs = {
2348
2446
  input: ManualPaymentInput;
2349
2447
  };
@@ -2361,9 +2459,23 @@ export declare type MutationAddOptionGroupToProductArgs = {
2361
2459
  optionGroupId: Scalars['ID'];
2362
2460
  productId: Scalars['ID'];
2363
2461
  };
2462
+ export declare type MutationAdjustDraftOrderLineArgs = {
2463
+ input: AdjustDraftOrderLineInput;
2464
+ orderId: Scalars['ID'];
2465
+ };
2466
+ export declare type MutationApplyCouponCodeToDraftOrderArgs = {
2467
+ couponCode: Scalars['String'];
2468
+ orderId: Scalars['ID'];
2469
+ };
2364
2470
  export declare type MutationAssignAssetsToChannelArgs = {
2365
2471
  input: AssignAssetsToChannelInput;
2366
2472
  };
2473
+ export declare type MutationAssignCollectionsToChannelArgs = {
2474
+ input: AssignCollectionsToChannelInput;
2475
+ };
2476
+ export declare type MutationAssignFacetsToChannelArgs = {
2477
+ input: AssignFacetsToChannelInput;
2478
+ };
2367
2479
  export declare type MutationAssignProductVariantsToChannelArgs = {
2368
2480
  input: AssignProductVariantsToChannelInput;
2369
2481
  };
@@ -2387,6 +2499,9 @@ export declare type MutationCancelJobArgs = {
2387
2499
  export declare type MutationCancelOrderArgs = {
2388
2500
  input: CancelOrderInput;
2389
2501
  };
2502
+ export declare type MutationCancelPaymentArgs = {
2503
+ id: Scalars['ID'];
2504
+ };
2390
2505
  export declare type MutationCreateAdministratorArgs = {
2391
2506
  input: CreateAdministratorInput;
2392
2507
  };
@@ -2470,6 +2585,9 @@ export declare type MutationDeleteChannelArgs = {
2470
2585
  export declare type MutationDeleteCollectionArgs = {
2471
2586
  id: Scalars['ID'];
2472
2587
  };
2588
+ export declare type MutationDeleteCollectionsArgs = {
2589
+ ids: Array<Scalars['ID']>;
2590
+ };
2473
2591
  export declare type MutationDeleteCountryArgs = {
2474
2592
  id: Scalars['ID'];
2475
2593
  };
@@ -2485,6 +2603,9 @@ export declare type MutationDeleteCustomerGroupArgs = {
2485
2603
  export declare type MutationDeleteCustomerNoteArgs = {
2486
2604
  id: Scalars['ID'];
2487
2605
  };
2606
+ export declare type MutationDeleteDraftOrderArgs = {
2607
+ orderId: Scalars['ID'];
2608
+ };
2488
2609
  export declare type MutationDeleteFacetArgs = {
2489
2610
  force?: InputMaybe<Scalars['Boolean']>;
2490
2611
  id: Scalars['ID'];
@@ -2493,6 +2614,10 @@ export declare type MutationDeleteFacetValuesArgs = {
2493
2614
  force?: InputMaybe<Scalars['Boolean']>;
2494
2615
  ids: Array<Scalars['ID']>;
2495
2616
  };
2617
+ export declare type MutationDeleteFacetsArgs = {
2618
+ force?: InputMaybe<Scalars['Boolean']>;
2619
+ ids: Array<Scalars['ID']>;
2620
+ };
2496
2621
  export declare type MutationDeleteOrderNoteArgs = {
2497
2622
  id: Scalars['ID'];
2498
2623
  };
@@ -2503,9 +2628,18 @@ export declare type MutationDeletePaymentMethodArgs = {
2503
2628
  export declare type MutationDeleteProductArgs = {
2504
2629
  id: Scalars['ID'];
2505
2630
  };
2631
+ export declare type MutationDeleteProductOptionArgs = {
2632
+ id: Scalars['ID'];
2633
+ };
2506
2634
  export declare type MutationDeleteProductVariantArgs = {
2507
2635
  id: Scalars['ID'];
2508
2636
  };
2637
+ export declare type MutationDeleteProductVariantsArgs = {
2638
+ ids: Array<Scalars['ID']>;
2639
+ };
2640
+ export declare type MutationDeleteProductsArgs = {
2641
+ ids: Array<Scalars['ID']>;
2642
+ };
2509
2643
  export declare type MutationDeletePromotionArgs = {
2510
2644
  id: Scalars['ID'];
2511
2645
  };
@@ -2547,10 +2681,24 @@ export declare type MutationMoveCollectionArgs = {
2547
2681
  export declare type MutationRefundOrderArgs = {
2548
2682
  input: RefundOrderInput;
2549
2683
  };
2684
+ export declare type MutationRemoveCollectionsFromChannelArgs = {
2685
+ input: RemoveCollectionsFromChannelInput;
2686
+ };
2687
+ export declare type MutationRemoveCouponCodeFromDraftOrderArgs = {
2688
+ couponCode: Scalars['String'];
2689
+ orderId: Scalars['ID'];
2690
+ };
2550
2691
  export declare type MutationRemoveCustomersFromGroupArgs = {
2551
2692
  customerGroupId: Scalars['ID'];
2552
2693
  customerIds: Array<Scalars['ID']>;
2553
2694
  };
2695
+ export declare type MutationRemoveDraftOrderLineArgs = {
2696
+ orderId: Scalars['ID'];
2697
+ orderLineId: Scalars['ID'];
2698
+ };
2699
+ export declare type MutationRemoveFacetsFromChannelArgs = {
2700
+ input: RemoveFacetsFromChannelInput;
2701
+ };
2554
2702
  export declare type MutationRemoveMembersFromZoneArgs = {
2555
2703
  memberIds: Array<Scalars['ID']>;
2556
2704
  zoneId: Scalars['ID'];
@@ -2581,9 +2729,30 @@ export declare type MutationSetAsLoggedInArgs = {
2581
2729
  export declare type MutationSetContentLanguageArgs = {
2582
2730
  languageCode: LanguageCode;
2583
2731
  };
2732
+ export declare type MutationSetCustomerForDraftOrderArgs = {
2733
+ customerId?: InputMaybe<Scalars['ID']>;
2734
+ input?: InputMaybe<CreateCustomerInput>;
2735
+ orderId: Scalars['ID'];
2736
+ };
2584
2737
  export declare type MutationSetDisplayUiExtensionPointsArgs = {
2585
2738
  display: Scalars['Boolean'];
2586
2739
  };
2740
+ export declare type MutationSetDraftOrderBillingAddressArgs = {
2741
+ input: CreateAddressInput;
2742
+ orderId: Scalars['ID'];
2743
+ };
2744
+ export declare type MutationSetDraftOrderCustomFieldsArgs = {
2745
+ input: UpdateOrderInput;
2746
+ orderId: Scalars['ID'];
2747
+ };
2748
+ export declare type MutationSetDraftOrderShippingAddressArgs = {
2749
+ input: CreateAddressInput;
2750
+ orderId: Scalars['ID'];
2751
+ };
2752
+ export declare type MutationSetDraftOrderShippingMethodArgs = {
2753
+ orderId: Scalars['ID'];
2754
+ shippingMethodId: Scalars['ID'];
2755
+ };
2587
2756
  export declare type MutationSetOrderCustomFieldsArgs = {
2588
2757
  input: UpdateOrderInput;
2589
2758
  };
@@ -2671,6 +2840,9 @@ export declare type MutationUpdateProductOptionGroupArgs = {
2671
2840
  export declare type MutationUpdateProductVariantsArgs = {
2672
2841
  input: Array<UpdateProductVariantInput>;
2673
2842
  };
2843
+ export declare type MutationUpdateProductsArgs = {
2844
+ input: Array<UpdateProductInput>;
2845
+ };
2674
2846
  export declare type MutationUpdatePromotionArgs = {
2675
2847
  input: UpdatePromotionInput;
2676
2848
  };
@@ -2716,6 +2888,15 @@ export declare type NetworkStatus = {
2716
2888
  __typename?: 'NetworkStatus';
2717
2889
  inFlightRequests: Scalars['Int'];
2718
2890
  };
2891
+ /**
2892
+ * Returned when invoking a mutation which depends on there being an active Order on the
2893
+ * current session.
2894
+ */
2895
+ export declare type NoActiveOrderError = ErrorResult & {
2896
+ __typename?: 'NoActiveOrderError';
2897
+ errorCode: ErrorCode;
2898
+ message: Scalars['String'];
2899
+ };
2719
2900
  /** Returned when a call to modifyOrder fails to specify any changes */
2720
2901
  export declare type NoChangesSpecifiedError = ErrorResult & {
2721
2902
  __typename?: 'NoChangesSpecifiedError';
@@ -2839,6 +3020,7 @@ export declare type OrderFilterParameter = {
2839
3020
  total?: InputMaybe<NumberOperators>;
2840
3021
  totalQuantity?: InputMaybe<NumberOperators>;
2841
3022
  totalWithTax?: InputMaybe<NumberOperators>;
3023
+ transactionId?: InputMaybe<StringOperators>;
2842
3024
  updatedAt?: InputMaybe<DateOperators>;
2843
3025
  };
2844
3026
  export declare type OrderItem = Node & {
@@ -2905,6 +3087,7 @@ export declare type OrderLine = Node & {
2905
3087
  discountedUnitPriceWithTax: Scalars['Int'];
2906
3088
  discounts: Array<Discount>;
2907
3089
  featuredAsset?: Maybe<Asset>;
3090
+ fulfillments?: Maybe<Array<Fulfillment>>;
2908
3091
  id: Scalars['ID'];
2909
3092
  items: Array<OrderItem>;
2910
3093
  /** The total price of the line excluding tax and discounts. */
@@ -2978,6 +3161,12 @@ export declare type OrderModification = Node & {
2978
3161
  surcharges?: Maybe<Array<Surcharge>>;
2979
3162
  updatedAt: Scalars['DateTime'];
2980
3163
  };
3164
+ /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */
3165
+ export declare type OrderModificationError = ErrorResult & {
3166
+ __typename?: 'OrderModificationError';
3167
+ errorCode: ErrorCode;
3168
+ message: Scalars['String'];
3169
+ };
2981
3170
  /** Returned when attempting to modify the contents of an Order that is not in the `Modifying` state. */
2982
3171
  export declare type OrderModificationStateError = ErrorResult & {
2983
3172
  __typename?: 'OrderModificationStateError';
@@ -3003,6 +3192,7 @@ export declare type OrderSortParameter = {
3003
3192
  total?: InputMaybe<SortOrder>;
3004
3193
  totalQuantity?: InputMaybe<SortOrder>;
3005
3194
  totalWithTax?: InputMaybe<SortOrder>;
3195
+ transactionId?: InputMaybe<SortOrder>;
3006
3196
  updatedAt?: InputMaybe<SortOrder>;
3007
3197
  };
3008
3198
  /** Returned if there is an error in transitioning the Order state */
@@ -3133,6 +3323,31 @@ export declare type PaymentStateTransitionError = ErrorResult & {
3133
3323
  * Permissions for administrators and customers. Used to control access to
3134
3324
  * GraphQL resolvers via the {@link Allow} decorator.
3135
3325
  *
3326
+ * ## Understanding Permission.Owner
3327
+ *
3328
+ * `Permission.Owner` is a special permission which is used in some Vendure resolvers to indicate that that resolver should only
3329
+ * be accessible to the "owner" of that resource.
3330
+ *
3331
+ * For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
3332
+ * based on the activeUserId of the current session. As a result, the resolver code looks like this:
3333
+ *
3334
+ * @example
3335
+ * ```TypeScript
3336
+ * \@Query()
3337
+ * \@Allow(Permission.Owner)
3338
+ * async activeCustomer(\@Ctx() ctx: RequestContext): Promise<Customer | undefined> {
3339
+ * const userId = ctx.activeUserId;
3340
+ * if (userId) {
3341
+ * return this.customerService.findOneByUserId(ctx, userId);
3342
+ * }
3343
+ * }
3344
+ * ```
3345
+ *
3346
+ * Here we can see that the "ownership" must be enforced by custom logic inside the resolver. Since "ownership" cannot be defined generally
3347
+ * nor statically encoded at build-time, any resolvers using `Permission.Owner` **must** include logic to enforce that only the owner
3348
+ * of the resource has access. If not, then it is the equivalent of using `Permission.Public`.
3349
+ *
3350
+ *
3136
3351
  * @docsCategory common
3137
3352
  */
3138
3353
  export declare enum Permission {
@@ -3314,6 +3529,11 @@ export declare type PermissionDefinition = {
3314
3529
  description: Scalars['String'];
3315
3530
  name: Scalars['String'];
3316
3531
  };
3532
+ export declare type PreviewCollectionVariantsInput = {
3533
+ filters: Array<ConfigurableOperationInput>;
3534
+ inheritFilters: Scalars['Boolean'];
3535
+ parentId?: InputMaybe<Scalars['ID']>;
3536
+ };
3317
3537
  /** The price range where the result has more than one price */
3318
3538
  export declare type PriceRange = {
3319
3539
  __typename?: 'PriceRange';
@@ -3638,6 +3858,8 @@ export declare type Query = {
3638
3858
  customerGroup?: Maybe<CustomerGroup>;
3639
3859
  customerGroups: CustomerGroupList;
3640
3860
  customers: CustomerList;
3861
+ /** Returns a list of eligible shipping methods for the draft Order */
3862
+ eligibleShippingMethodsForDraftOrder: Array<ShippingMethodQuote>;
3641
3863
  facet?: Maybe<Facet>;
3642
3864
  facets: FacetList;
3643
3865
  fulfillmentHandlers: Array<ConfigurableOperationDefinition>;
@@ -3656,6 +3878,8 @@ export declare type Query = {
3656
3878
  paymentMethodHandlers: Array<ConfigurableOperationDefinition>;
3657
3879
  paymentMethods: PaymentMethodList;
3658
3880
  pendingSearchIndexUpdates: Scalars['Int'];
3881
+ /** Used for real-time previews of the contents of a Collection */
3882
+ previewCollectionVariants: ProductVariantList;
3659
3883
  /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */
3660
3884
  product?: Maybe<Product>;
3661
3885
  productOptionGroup?: Maybe<ProductOptionGroup>;
@@ -3730,6 +3954,9 @@ export declare type QueryCustomerGroupsArgs = {
3730
3954
  export declare type QueryCustomersArgs = {
3731
3955
  options?: InputMaybe<CustomerListOptions>;
3732
3956
  };
3957
+ export declare type QueryEligibleShippingMethodsForDraftOrderArgs = {
3958
+ orderId: Scalars['ID'];
3959
+ };
3733
3960
  export declare type QueryFacetArgs = {
3734
3961
  id: Scalars['ID'];
3735
3962
  };
@@ -3760,6 +3987,10 @@ export declare type QueryPaymentMethodArgs = {
3760
3987
  export declare type QueryPaymentMethodsArgs = {
3761
3988
  options?: InputMaybe<PaymentMethodListOptions>;
3762
3989
  };
3990
+ export declare type QueryPreviewCollectionVariantsArgs = {
3991
+ input: PreviewCollectionVariantsInput;
3992
+ options?: InputMaybe<ProductVariantListOptions>;
3993
+ };
3763
3994
  export declare type QueryProductArgs = {
3764
3995
  id?: InputMaybe<Scalars['ID']>;
3765
3996
  slug?: InputMaybe<Scalars['String']>;
@@ -3899,7 +4130,18 @@ export declare type Release = Node & StockMovement & {
3899
4130
  type: StockMovementType;
3900
4131
  updatedAt: Scalars['DateTime'];
3901
4132
  };
4133
+ export declare type RemoveCollectionsFromChannelInput = {
4134
+ channelId: Scalars['ID'];
4135
+ collectionIds: Array<Scalars['ID']>;
4136
+ };
4137
+ export declare type RemoveFacetFromChannelResult = Facet | FacetInUseError;
4138
+ export declare type RemoveFacetsFromChannelInput = {
4139
+ channelId: Scalars['ID'];
4140
+ facetIds: Array<Scalars['ID']>;
4141
+ force?: InputMaybe<Scalars['Boolean']>;
4142
+ };
3902
4143
  export declare type RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError;
4144
+ export declare type RemoveOrderItemsResult = Order | OrderModificationError;
3903
4145
  export declare type RemoveProductVariantsFromChannelInput = {
3904
4146
  channelId: Scalars['ID'];
3905
4147
  productVariantIds: Array<Scalars['ID']>;
@@ -4039,6 +4281,8 @@ export declare type ServerConfig = {
4039
4281
  permissions: Array<PermissionDefinition>;
4040
4282
  permittedAssetTypes: Array<Scalars['String']>;
4041
4283
  };
4284
+ export declare type SetCustomerForDraftOrderResult = EmailAddressConflictError | Order;
4285
+ export declare type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError;
4042
4286
  /** Returned if the Payment settlement fails */
4043
4287
  export declare type SettlePaymentError = ErrorResult & {
4044
4288
  __typename?: 'SettlePaymentError';
@@ -4057,6 +4301,7 @@ export declare type ShippingLine = {
4057
4301
  discountedPrice: Scalars['Int'];
4058
4302
  discountedPriceWithTax: Scalars['Int'];
4059
4303
  discounts: Array<Discount>;
4304
+ id: Scalars['ID'];
4060
4305
  price: Scalars['Int'];
4061
4306
  priceWithTax: Scalars['Int'];
4062
4307
  shippingMethod: ShippingMethod;
@@ -4071,6 +4316,7 @@ export declare type ShippingMethod = Node & {
4071
4316
  description: Scalars['String'];
4072
4317
  fulfillmentHandlerCode: Scalars['String'];
4073
4318
  id: Scalars['ID'];
4319
+ languageCode: LanguageCode;
4074
4320
  name: Scalars['String'];
4075
4321
  translations: Array<ShippingMethodTranslation>;
4076
4322
  updatedAt: Scalars['DateTime'];
@@ -4081,6 +4327,7 @@ export declare type ShippingMethodFilterParameter = {
4081
4327
  description?: InputMaybe<StringOperators>;
4082
4328
  fulfillmentHandlerCode?: InputMaybe<StringOperators>;
4083
4329
  id?: InputMaybe<IdOperators>;
4330
+ languageCode?: InputMaybe<StringOperators>;
4084
4331
  name?: InputMaybe<StringOperators>;
4085
4332
  updatedAt?: InputMaybe<DateOperators>;
4086
4333
  };
@@ -4515,6 +4762,7 @@ export declare type UpdateOrderInput = {
4515
4762
  customFields?: InputMaybe<Scalars['JSON']>;
4516
4763
  id: Scalars['ID'];
4517
4764
  };
4765
+ export declare type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError;
4518
4766
  export declare type UpdateOrderNoteInput = {
4519
4767
  isPublic?: InputMaybe<Scalars['Boolean']>;
4520
4768
  note?: InputMaybe<Scalars['String']>;
@@ -4657,6 +4905,89 @@ export declare type Zone = Node & {
4657
4905
  name: Scalars['String'];
4658
4906
  updatedAt: Scalars['DateTime'];
4659
4907
  };
4908
+ export declare type GetProductsWithFacetValuesByIdsQueryVariables = Exact<{
4909
+ ids: Array<Scalars['String']> | Scalars['String'];
4910
+ }>;
4911
+ export declare type GetProductsWithFacetValuesByIdsQuery = {
4912
+ products: {
4913
+ __typename?: 'ProductList';
4914
+ items: Array<{
4915
+ __typename?: 'Product';
4916
+ id: string;
4917
+ name: string;
4918
+ facetValues: Array<{
4919
+ __typename?: 'FacetValue';
4920
+ id: string;
4921
+ name: string;
4922
+ code: string;
4923
+ facet: {
4924
+ __typename?: 'Facet';
4925
+ id: string;
4926
+ name: string;
4927
+ code: string;
4928
+ };
4929
+ }>;
4930
+ }>;
4931
+ };
4932
+ };
4933
+ export declare type GetVariantsWithFacetValuesByIdsQueryVariables = Exact<{
4934
+ ids: Array<Scalars['String']> | Scalars['String'];
4935
+ }>;
4936
+ export declare type GetVariantsWithFacetValuesByIdsQuery = {
4937
+ productVariants: {
4938
+ __typename?: 'ProductVariantList';
4939
+ items: Array<{
4940
+ __typename?: 'ProductVariant';
4941
+ id: string;
4942
+ name: string;
4943
+ sku: string;
4944
+ facetValues: Array<{
4945
+ __typename?: 'FacetValue';
4946
+ id: string;
4947
+ name: string;
4948
+ code: string;
4949
+ facet: {
4950
+ __typename?: 'Facet';
4951
+ id: string;
4952
+ name: string;
4953
+ code: string;
4954
+ };
4955
+ }>;
4956
+ }>;
4957
+ };
4958
+ };
4959
+ export declare type UpdateProductsBulkMutationVariables = Exact<{
4960
+ input: Array<UpdateProductInput> | UpdateProductInput;
4961
+ }>;
4962
+ export declare type UpdateProductsBulkMutation = {
4963
+ updateProducts: Array<{
4964
+ __typename?: 'Product';
4965
+ id: string;
4966
+ name: string;
4967
+ facetValues: Array<{
4968
+ __typename?: 'FacetValue';
4969
+ id: string;
4970
+ name: string;
4971
+ code: string;
4972
+ }>;
4973
+ }>;
4974
+ };
4975
+ export declare type UpdateVariantsBulkMutationVariables = Exact<{
4976
+ input: Array<UpdateProductVariantInput> | UpdateProductVariantInput;
4977
+ }>;
4978
+ export declare type UpdateVariantsBulkMutation = {
4979
+ updateProductVariants: Array<{
4980
+ __typename?: 'ProductVariant';
4981
+ id: string;
4982
+ name: string;
4983
+ facetValues: Array<{
4984
+ __typename?: 'FacetValue';
4985
+ id: string;
4986
+ name: string;
4987
+ code: string;
4988
+ }>;
4989
+ } | null>;
4990
+ };
4660
4991
  export declare type RoleFragment = {
4661
4992
  __typename?: 'Role';
4662
4993
  id: string;
@@ -5351,6 +5682,7 @@ export declare type GetCollectionFiltersQuery = {
5351
5682
  list: boolean;
5352
5683
  ui?: any | null;
5353
5684
  label?: string | null;
5685
+ description?: string | null;
5354
5686
  }>;
5355
5687
  }>;
5356
5688
  };
@@ -5365,6 +5697,12 @@ export declare type CollectionFragment = {
5365
5697
  isPrivate: boolean;
5366
5698
  languageCode?: LanguageCode | null;
5367
5699
  inheritFilters: boolean;
5700
+ breadcrumbs: Array<{
5701
+ __typename?: 'CollectionBreadcrumb';
5702
+ id: string;
5703
+ name: string;
5704
+ slug: string;
5705
+ }>;
5368
5706
  featuredAsset?: {
5369
5707
  __typename?: 'Asset';
5370
5708
  id: string;
@@ -5486,6 +5824,12 @@ export declare type GetCollectionQuery = {
5486
5824
  isPrivate: boolean;
5487
5825
  languageCode?: LanguageCode | null;
5488
5826
  inheritFilters: boolean;
5827
+ breadcrumbs: Array<{
5828
+ __typename?: 'CollectionBreadcrumb';
5829
+ id: string;
5830
+ name: string;
5831
+ slug: string;
5832
+ }>;
5489
5833
  featuredAsset?: {
5490
5834
  __typename?: 'Asset';
5491
5835
  id: string;
@@ -5568,6 +5912,12 @@ export declare type CreateCollectionMutation = {
5568
5912
  isPrivate: boolean;
5569
5913
  languageCode?: LanguageCode | null;
5570
5914
  inheritFilters: boolean;
5915
+ breadcrumbs: Array<{
5916
+ __typename?: 'CollectionBreadcrumb';
5917
+ id: string;
5918
+ name: string;
5919
+ slug: string;
5920
+ }>;
5571
5921
  featuredAsset?: {
5572
5922
  __typename?: 'Asset';
5573
5923
  id: string;
@@ -5650,6 +6000,12 @@ export declare type UpdateCollectionMutation = {
5650
6000
  isPrivate: boolean;
5651
6001
  languageCode?: LanguageCode | null;
5652
6002
  inheritFilters: boolean;
6003
+ breadcrumbs: Array<{
6004
+ __typename?: 'CollectionBreadcrumb';
6005
+ id: string;
6006
+ name: string;
6007
+ slug: string;
6008
+ }>;
5653
6009
  featuredAsset?: {
5654
6010
  __typename?: 'Asset';
5655
6011
  id: string;
@@ -5732,6 +6088,12 @@ export declare type MoveCollectionMutation = {
5732
6088
  isPrivate: boolean;
5733
6089
  languageCode?: LanguageCode | null;
5734
6090
  inheritFilters: boolean;
6091
+ breadcrumbs: Array<{
6092
+ __typename?: 'CollectionBreadcrumb';
6093
+ id: string;
6094
+ name: string;
6095
+ slug: string;
6096
+ }>;
5735
6097
  featuredAsset?: {
5736
6098
  __typename?: 'Asset';
5737
6099
  id: string;
@@ -5809,6 +6171,16 @@ export declare type DeleteCollectionMutation = {
5809
6171
  message?: string | null;
5810
6172
  };
5811
6173
  };
6174
+ export declare type DeleteCollectionsMutationVariables = Exact<{
6175
+ ids: Array<Scalars['ID']> | Scalars['ID'];
6176
+ }>;
6177
+ export declare type DeleteCollectionsMutation = {
6178
+ deleteCollections: Array<{
6179
+ __typename?: 'DeletionResponse';
6180
+ result: DeletionResult;
6181
+ message?: string | null;
6182
+ }>;
6183
+ };
5812
6184
  export declare type GetCollectionContentsQueryVariables = Exact<{
5813
6185
  id: Scalars['ID'];
5814
6186
  options?: InputMaybe<ProductVariantListOptions>;
@@ -5826,10 +6198,48 @@ export declare type GetCollectionContentsQuery = {
5826
6198
  id: string;
5827
6199
  productId: string;
5828
6200
  name: string;
6201
+ sku: string;
5829
6202
  }>;
5830
6203
  };
5831
6204
  } | null;
5832
6205
  };
6206
+ export declare type PreviewCollectionContentsQueryVariables = Exact<{
6207
+ input: PreviewCollectionVariantsInput;
6208
+ options?: InputMaybe<ProductVariantListOptions>;
6209
+ }>;
6210
+ export declare type PreviewCollectionContentsQuery = {
6211
+ previewCollectionVariants: {
6212
+ __typename?: 'ProductVariantList';
6213
+ totalItems: number;
6214
+ items: Array<{
6215
+ __typename?: 'ProductVariant';
6216
+ id: string;
6217
+ productId: string;
6218
+ name: string;
6219
+ sku: string;
6220
+ }>;
6221
+ };
6222
+ };
6223
+ export declare type AssignCollectionsToChannelMutationVariables = Exact<{
6224
+ input: AssignCollectionsToChannelInput;
6225
+ }>;
6226
+ export declare type AssignCollectionsToChannelMutation = {
6227
+ assignCollectionsToChannel: Array<{
6228
+ __typename?: 'Collection';
6229
+ id: string;
6230
+ name: string;
6231
+ }>;
6232
+ };
6233
+ export declare type RemoveCollectionsFromChannelMutationVariables = Exact<{
6234
+ input: RemoveCollectionsFromChannelInput;
6235
+ }>;
6236
+ export declare type RemoveCollectionsFromChannelMutation = {
6237
+ removeCollectionsFromChannel: Array<{
6238
+ __typename?: 'Collection';
6239
+ id: string;
6240
+ name: string;
6241
+ }>;
6242
+ };
5833
6243
  export declare type AddressFragment = {
5834
6244
  __typename?: 'Address';
5835
6245
  id: string;
@@ -6477,6 +6887,17 @@ export declare type DeleteFacetMutation = {
6477
6887
  message?: string | null;
6478
6888
  };
6479
6889
  };
6890
+ export declare type DeleteFacetsMutationVariables = Exact<{
6891
+ ids: Array<Scalars['ID']> | Scalars['ID'];
6892
+ force?: InputMaybe<Scalars['Boolean']>;
6893
+ }>;
6894
+ export declare type DeleteFacetsMutation = {
6895
+ deleteFacets: Array<{
6896
+ __typename?: 'DeletionResponse';
6897
+ result: DeletionResult;
6898
+ message?: string | null;
6899
+ }>;
6900
+ };
6480
6901
  export declare type CreateFacetValuesMutationVariables = Exact<{
6481
6902
  input: Array<CreateFacetValueInput> | CreateFacetValueInput;
6482
6903
  }>;
@@ -6632,6 +7053,30 @@ export declare type GetFacetWithValuesQuery = {
6632
7053
  }>;
6633
7054
  } | null;
6634
7055
  };
7056
+ export declare type AssignFacetsToChannelMutationVariables = Exact<{
7057
+ input: AssignFacetsToChannelInput;
7058
+ }>;
7059
+ export declare type AssignFacetsToChannelMutation = {
7060
+ assignFacetsToChannel: Array<{
7061
+ __typename?: 'Facet';
7062
+ id: string;
7063
+ }>;
7064
+ };
7065
+ export declare type RemoveFacetsFromChannelMutationVariables = Exact<{
7066
+ input: RemoveFacetsFromChannelInput;
7067
+ }>;
7068
+ export declare type RemoveFacetsFromChannelMutation = {
7069
+ removeFacetsFromChannel: Array<{
7070
+ __typename?: 'Facet';
7071
+ id: string;
7072
+ } | {
7073
+ __typename?: 'FacetInUseError';
7074
+ errorCode: ErrorCode;
7075
+ message: string;
7076
+ variantCount: number;
7077
+ productCount: number;
7078
+ }>;
7079
+ };
6635
7080
  export declare type DiscountFragment = {
6636
7081
  __typename?: 'Discount';
6637
7082
  adjustmentSource: string;
@@ -6640,6 +7085,15 @@ export declare type DiscountFragment = {
6640
7085
  description: string;
6641
7086
  type: AdjustmentType;
6642
7087
  };
7088
+ export declare type PaymentFragment = {
7089
+ __typename?: 'Payment';
7090
+ id: string;
7091
+ transactionId?: string | null;
7092
+ amount: number;
7093
+ method: string;
7094
+ state: string;
7095
+ metadata?: any | null;
7096
+ };
6643
7097
  export declare type RefundFragment = {
6644
7098
  __typename?: 'Refund';
6645
7099
  id: string;
@@ -6673,6 +7127,7 @@ export declare type OrderFragment = {
6673
7127
  state: string;
6674
7128
  nextStates: Array<string>;
6675
7129
  total: number;
7130
+ totalWithTax: number;
6676
7131
  currencyCode: CurrencyCode;
6677
7132
  customer?: {
6678
7133
  __typename?: 'Customer';
@@ -6697,9 +7152,13 @@ export declare type FulfillmentFragment = {
6697
7152
  updatedAt: any;
6698
7153
  method: string;
6699
7154
  trackingCode?: string | null;
6700
- orderItems: Array<{
6701
- __typename?: 'OrderItem';
6702
- id: string;
7155
+ summary: Array<{
7156
+ __typename?: 'FulfillmentLineSummary';
7157
+ quantity: number;
7158
+ orderLine: {
7159
+ __typename?: 'OrderLine';
7160
+ id: string;
7161
+ };
6703
7162
  }>;
6704
7163
  };
6705
7164
  export declare type OrderLineFragment = {
@@ -6735,28 +7194,29 @@ export declare type OrderLineFragment = {
6735
7194
  description: string;
6736
7195
  type: AdjustmentType;
6737
7196
  }>;
7197
+ fulfillments?: Array<{
7198
+ __typename?: 'Fulfillment';
7199
+ id: string;
7200
+ state: string;
7201
+ nextStates: Array<string>;
7202
+ createdAt: any;
7203
+ updatedAt: any;
7204
+ method: string;
7205
+ trackingCode?: string | null;
7206
+ summary: Array<{
7207
+ __typename?: 'FulfillmentLineSummary';
7208
+ quantity: number;
7209
+ orderLine: {
7210
+ __typename?: 'OrderLine';
7211
+ id: string;
7212
+ };
7213
+ }>;
7214
+ }> | null;
6738
7215
  items: Array<{
6739
7216
  __typename?: 'OrderItem';
6740
7217
  id: string;
6741
- unitPrice: number;
6742
- unitPriceWithTax: number;
6743
- taxRate: number;
6744
7218
  refundId?: string | null;
6745
7219
  cancelled: boolean;
6746
- fulfillment?: {
6747
- __typename?: 'Fulfillment';
6748
- id: string;
6749
- state: string;
6750
- nextStates: Array<string>;
6751
- createdAt: any;
6752
- updatedAt: any;
6753
- method: string;
6754
- trackingCode?: string | null;
6755
- orderItems: Array<{
6756
- __typename?: 'OrderItem';
6757
- id: string;
6758
- }>;
6759
- } | null;
6760
7220
  }>;
6761
7221
  };
6762
7222
  export declare type OrderDetailFragment = {
@@ -6815,28 +7275,29 @@ export declare type OrderDetailFragment = {
6815
7275
  description: string;
6816
7276
  type: AdjustmentType;
6817
7277
  }>;
7278
+ fulfillments?: Array<{
7279
+ __typename?: 'Fulfillment';
7280
+ id: string;
7281
+ state: string;
7282
+ nextStates: Array<string>;
7283
+ createdAt: any;
7284
+ updatedAt: any;
7285
+ method: string;
7286
+ trackingCode?: string | null;
7287
+ summary: Array<{
7288
+ __typename?: 'FulfillmentLineSummary';
7289
+ quantity: number;
7290
+ orderLine: {
7291
+ __typename?: 'OrderLine';
7292
+ id: string;
7293
+ };
7294
+ }>;
7295
+ }> | null;
6818
7296
  items: Array<{
6819
7297
  __typename?: 'OrderItem';
6820
7298
  id: string;
6821
- unitPrice: number;
6822
- unitPriceWithTax: number;
6823
- taxRate: number;
6824
7299
  refundId?: string | null;
6825
7300
  cancelled: boolean;
6826
- fulfillment?: {
6827
- __typename?: 'Fulfillment';
6828
- id: string;
6829
- state: string;
6830
- nextStates: Array<string>;
6831
- createdAt: any;
6832
- updatedAt: any;
6833
- method: string;
6834
- trackingCode?: string | null;
6835
- orderItems: Array<{
6836
- __typename?: 'OrderItem';
6837
- id: string;
6838
- }>;
6839
- } | null;
6840
7301
  }>;
6841
7302
  }>;
6842
7303
  surcharges: Array<{
@@ -6944,9 +7405,13 @@ export declare type OrderDetailFragment = {
6944
7405
  updatedAt: any;
6945
7406
  method: string;
6946
7407
  trackingCode?: string | null;
6947
- orderItems: Array<{
6948
- __typename?: 'OrderItem';
6949
- id: string;
7408
+ summary: Array<{
7409
+ __typename?: 'FulfillmentLineSummary';
7410
+ quantity: number;
7411
+ orderLine: {
7412
+ __typename?: 'OrderLine';
7413
+ id: string;
7414
+ };
6950
7415
  }>;
6951
7416
  }> | null;
6952
7417
  modifications: Array<{
@@ -6994,6 +7459,7 @@ export declare type GetOrderListQuery = {
6994
7459
  state: string;
6995
7460
  nextStates: Array<string>;
6996
7461
  total: number;
7462
+ totalWithTax: number;
6997
7463
  currencyCode: CurrencyCode;
6998
7464
  customer?: {
6999
7465
  __typename?: 'Customer';
@@ -7071,28 +7537,29 @@ export declare type GetOrderQuery = {
7071
7537
  description: string;
7072
7538
  type: AdjustmentType;
7073
7539
  }>;
7540
+ fulfillments?: Array<{
7541
+ __typename?: 'Fulfillment';
7542
+ id: string;
7543
+ state: string;
7544
+ nextStates: Array<string>;
7545
+ createdAt: any;
7546
+ updatedAt: any;
7547
+ method: string;
7548
+ trackingCode?: string | null;
7549
+ summary: Array<{
7550
+ __typename?: 'FulfillmentLineSummary';
7551
+ quantity: number;
7552
+ orderLine: {
7553
+ __typename?: 'OrderLine';
7554
+ id: string;
7555
+ };
7556
+ }>;
7557
+ }> | null;
7074
7558
  items: Array<{
7075
7559
  __typename?: 'OrderItem';
7076
7560
  id: string;
7077
- unitPrice: number;
7078
- unitPriceWithTax: number;
7079
- taxRate: number;
7080
7561
  refundId?: string | null;
7081
7562
  cancelled: boolean;
7082
- fulfillment?: {
7083
- __typename?: 'Fulfillment';
7084
- id: string;
7085
- state: string;
7086
- nextStates: Array<string>;
7087
- createdAt: any;
7088
- updatedAt: any;
7089
- method: string;
7090
- trackingCode?: string | null;
7091
- orderItems: Array<{
7092
- __typename?: 'OrderItem';
7093
- id: string;
7094
- }>;
7095
- } | null;
7096
7563
  }>;
7097
7564
  }>;
7098
7565
  surcharges: Array<{
@@ -7200,9 +7667,13 @@ export declare type GetOrderQuery = {
7200
7667
  updatedAt: any;
7201
7668
  method: string;
7202
7669
  trackingCode?: string | null;
7203
- orderItems: Array<{
7204
- __typename?: 'OrderItem';
7205
- id: string;
7670
+ summary: Array<{
7671
+ __typename?: 'FulfillmentLineSummary';
7672
+ quantity: number;
7673
+ orderLine: {
7674
+ __typename?: 'OrderLine';
7675
+ id: string;
7676
+ };
7206
7677
  }>;
7207
7678
  }> | null;
7208
7679
  modifications: Array<{
@@ -7263,6 +7734,30 @@ export declare type SettlePaymentMutation = {
7263
7734
  message: string;
7264
7735
  };
7265
7736
  };
7737
+ export declare type CancelPaymentMutationVariables = Exact<{
7738
+ id: Scalars['ID'];
7739
+ }>;
7740
+ export declare type CancelPaymentMutation = {
7741
+ cancelPayment: {
7742
+ __typename?: 'CancelPaymentError';
7743
+ paymentErrorMessage: string;
7744
+ errorCode: ErrorCode;
7745
+ message: string;
7746
+ } | {
7747
+ __typename?: 'Payment';
7748
+ id: string;
7749
+ transactionId?: string | null;
7750
+ amount: number;
7751
+ method: string;
7752
+ state: string;
7753
+ metadata?: any | null;
7754
+ } | {
7755
+ __typename?: 'PaymentStateTransitionError';
7756
+ transitionError: string;
7757
+ errorCode: ErrorCode;
7758
+ message: string;
7759
+ };
7760
+ };
7266
7761
  export declare type TransitionPaymentToStateMutationVariables = Exact<{
7267
7762
  id: Scalars['ID'];
7268
7763
  state: Scalars['String'];
@@ -7305,9 +7800,13 @@ export declare type CreateFulfillmentMutation = {
7305
7800
  updatedAt: any;
7306
7801
  method: string;
7307
7802
  trackingCode?: string | null;
7308
- orderItems: Array<{
7309
- __typename?: 'OrderItem';
7310
- id: string;
7803
+ summary: Array<{
7804
+ __typename?: 'FulfillmentLineSummary';
7805
+ quantity: number;
7806
+ orderLine: {
7807
+ __typename?: 'OrderLine';
7808
+ id: string;
7809
+ };
7311
7810
  }>;
7312
7811
  } | {
7313
7812
  __typename?: 'FulfillmentStateTransitionError';
@@ -7400,28 +7899,29 @@ export declare type CancelOrderMutation = {
7400
7899
  description: string;
7401
7900
  type: AdjustmentType;
7402
7901
  }>;
7902
+ fulfillments?: Array<{
7903
+ __typename?: 'Fulfillment';
7904
+ id: string;
7905
+ state: string;
7906
+ nextStates: Array<string>;
7907
+ createdAt: any;
7908
+ updatedAt: any;
7909
+ method: string;
7910
+ trackingCode?: string | null;
7911
+ summary: Array<{
7912
+ __typename?: 'FulfillmentLineSummary';
7913
+ quantity: number;
7914
+ orderLine: {
7915
+ __typename?: 'OrderLine';
7916
+ id: string;
7917
+ };
7918
+ }>;
7919
+ }> | null;
7403
7920
  items: Array<{
7404
7921
  __typename?: 'OrderItem';
7405
7922
  id: string;
7406
- unitPrice: number;
7407
- unitPriceWithTax: number;
7408
- taxRate: number;
7409
7923
  refundId?: string | null;
7410
7924
  cancelled: boolean;
7411
- fulfillment?: {
7412
- __typename?: 'Fulfillment';
7413
- id: string;
7414
- state: string;
7415
- nextStates: Array<string>;
7416
- createdAt: any;
7417
- updatedAt: any;
7418
- method: string;
7419
- trackingCode?: string | null;
7420
- orderItems: Array<{
7421
- __typename?: 'OrderItem';
7422
- id: string;
7423
- }>;
7424
- } | null;
7425
7925
  }>;
7426
7926
  }>;
7427
7927
  surcharges: Array<{
@@ -7529,9 +8029,13 @@ export declare type CancelOrderMutation = {
7529
8029
  updatedAt: any;
7530
8030
  method: string;
7531
8031
  trackingCode?: string | null;
7532
- orderItems: Array<{
7533
- __typename?: 'OrderItem';
7534
- id: string;
8032
+ summary: Array<{
8033
+ __typename?: 'FulfillmentLineSummary';
8034
+ quantity: number;
8035
+ orderLine: {
8036
+ __typename?: 'OrderLine';
8037
+ id: string;
8038
+ };
7535
8039
  }>;
7536
8040
  }> | null;
7537
8041
  modifications: Array<{
@@ -7710,6 +8214,7 @@ export declare type TransitionOrderToStateMutation = {
7710
8214
  state: string;
7711
8215
  nextStates: Array<string>;
7712
8216
  total: number;
8217
+ totalWithTax: number;
7713
8218
  currencyCode: CurrencyCode;
7714
8219
  customer?: {
7715
8220
  __typename?: 'Customer';
@@ -7745,6 +8250,7 @@ export declare type UpdateOrderCustomFieldsMutation = {
7745
8250
  state: string;
7746
8251
  nextStates: Array<string>;
7747
8252
  total: number;
8253
+ totalWithTax: number;
7748
8254
  currencyCode: CurrencyCode;
7749
8255
  customer?: {
7750
8256
  __typename?: 'Customer';
@@ -7775,62 +8281,2437 @@ export declare type TransitionFulfillmentToStateMutation = {
7775
8281
  updatedAt: any;
7776
8282
  method: string;
7777
8283
  trackingCode?: string | null;
7778
- orderItems: Array<{
7779
- __typename?: 'OrderItem';
8284
+ summary: Array<{
8285
+ __typename?: 'FulfillmentLineSummary';
8286
+ quantity: number;
8287
+ orderLine: {
8288
+ __typename?: 'OrderLine';
8289
+ id: string;
8290
+ };
8291
+ }>;
8292
+ } | {
8293
+ __typename?: 'FulfillmentStateTransitionError';
8294
+ transitionError: string;
8295
+ errorCode: ErrorCode;
8296
+ message: string;
8297
+ };
8298
+ };
8299
+ export declare type GetOrderSummaryQueryVariables = Exact<{
8300
+ start: Scalars['DateTime'];
8301
+ end: Scalars['DateTime'];
8302
+ }>;
8303
+ export declare type GetOrderSummaryQuery = {
8304
+ orders: {
8305
+ __typename?: 'OrderList';
8306
+ totalItems: number;
8307
+ items: Array<{
8308
+ __typename?: 'Order';
8309
+ id: string;
8310
+ total: number;
8311
+ currencyCode: CurrencyCode;
8312
+ }>;
8313
+ };
8314
+ };
8315
+ export declare type ModifyOrderMutationVariables = Exact<{
8316
+ input: ModifyOrderInput;
8317
+ }>;
8318
+ export declare type ModifyOrderMutation = {
8319
+ modifyOrder: {
8320
+ __typename?: 'CouponCodeExpiredError';
8321
+ errorCode: ErrorCode;
8322
+ message: string;
8323
+ } | {
8324
+ __typename?: 'CouponCodeInvalidError';
8325
+ errorCode: ErrorCode;
8326
+ message: string;
8327
+ } | {
8328
+ __typename?: 'CouponCodeLimitError';
8329
+ errorCode: ErrorCode;
8330
+ message: string;
8331
+ } | {
8332
+ __typename?: 'InsufficientStockError';
8333
+ errorCode: ErrorCode;
8334
+ message: string;
8335
+ } | {
8336
+ __typename?: 'NegativeQuantityError';
8337
+ errorCode: ErrorCode;
8338
+ message: string;
8339
+ } | {
8340
+ __typename?: 'NoChangesSpecifiedError';
8341
+ errorCode: ErrorCode;
8342
+ message: string;
8343
+ } | {
8344
+ __typename?: 'Order';
8345
+ id: string;
8346
+ createdAt: any;
8347
+ updatedAt: any;
8348
+ code: string;
8349
+ state: string;
8350
+ nextStates: Array<string>;
8351
+ active: boolean;
8352
+ couponCodes: Array<string>;
8353
+ subTotal: number;
8354
+ subTotalWithTax: number;
8355
+ total: number;
8356
+ totalWithTax: number;
8357
+ currencyCode: CurrencyCode;
8358
+ shipping: number;
8359
+ shippingWithTax: number;
8360
+ customer?: {
8361
+ __typename?: 'Customer';
8362
+ id: string;
8363
+ firstName: string;
8364
+ lastName: string;
8365
+ } | null;
8366
+ lines: Array<{
8367
+ __typename?: 'OrderLine';
8368
+ id: string;
8369
+ unitPrice: number;
8370
+ unitPriceWithTax: number;
8371
+ proratedUnitPrice: number;
8372
+ proratedUnitPriceWithTax: number;
8373
+ quantity: number;
8374
+ linePrice: number;
8375
+ lineTax: number;
8376
+ linePriceWithTax: number;
8377
+ discountedLinePrice: number;
8378
+ discountedLinePriceWithTax: number;
8379
+ featuredAsset?: {
8380
+ __typename?: 'Asset';
8381
+ preview: string;
8382
+ } | null;
8383
+ productVariant: {
8384
+ __typename?: 'ProductVariant';
8385
+ id: string;
8386
+ name: string;
8387
+ sku: string;
8388
+ trackInventory: GlobalFlag;
8389
+ stockOnHand: number;
8390
+ };
8391
+ discounts: Array<{
8392
+ __typename?: 'Discount';
8393
+ adjustmentSource: string;
8394
+ amount: number;
8395
+ amountWithTax: number;
8396
+ description: string;
8397
+ type: AdjustmentType;
8398
+ }>;
8399
+ fulfillments?: Array<{
8400
+ __typename?: 'Fulfillment';
8401
+ id: string;
8402
+ state: string;
8403
+ nextStates: Array<string>;
8404
+ createdAt: any;
8405
+ updatedAt: any;
8406
+ method: string;
8407
+ trackingCode?: string | null;
8408
+ summary: Array<{
8409
+ __typename?: 'FulfillmentLineSummary';
8410
+ quantity: number;
8411
+ orderLine: {
8412
+ __typename?: 'OrderLine';
8413
+ id: string;
8414
+ };
8415
+ }>;
8416
+ }> | null;
8417
+ items: Array<{
8418
+ __typename?: 'OrderItem';
8419
+ id: string;
8420
+ refundId?: string | null;
8421
+ cancelled: boolean;
8422
+ }>;
8423
+ }>;
8424
+ surcharges: Array<{
8425
+ __typename?: 'Surcharge';
8426
+ id: string;
8427
+ sku?: string | null;
8428
+ description: string;
8429
+ price: number;
8430
+ priceWithTax: number;
8431
+ taxRate: number;
8432
+ }>;
8433
+ discounts: Array<{
8434
+ __typename?: 'Discount';
8435
+ adjustmentSource: string;
8436
+ amount: number;
8437
+ amountWithTax: number;
8438
+ description: string;
8439
+ type: AdjustmentType;
8440
+ }>;
8441
+ promotions: Array<{
8442
+ __typename?: 'Promotion';
8443
+ id: string;
8444
+ couponCode?: string | null;
8445
+ }>;
8446
+ shippingLines: Array<{
8447
+ __typename?: 'ShippingLine';
8448
+ shippingMethod: {
8449
+ __typename?: 'ShippingMethod';
8450
+ id: string;
8451
+ code: string;
8452
+ name: string;
8453
+ fulfillmentHandlerCode: string;
8454
+ description: string;
8455
+ };
8456
+ }>;
8457
+ taxSummary: Array<{
8458
+ __typename?: 'OrderTaxSummary';
8459
+ description: string;
8460
+ taxBase: number;
8461
+ taxRate: number;
8462
+ taxTotal: number;
8463
+ }>;
8464
+ shippingAddress?: {
8465
+ __typename?: 'OrderAddress';
8466
+ fullName?: string | null;
8467
+ company?: string | null;
8468
+ streetLine1?: string | null;
8469
+ streetLine2?: string | null;
8470
+ city?: string | null;
8471
+ province?: string | null;
8472
+ postalCode?: string | null;
8473
+ country?: string | null;
8474
+ countryCode?: string | null;
8475
+ phoneNumber?: string | null;
8476
+ } | null;
8477
+ billingAddress?: {
8478
+ __typename?: 'OrderAddress';
8479
+ fullName?: string | null;
8480
+ company?: string | null;
8481
+ streetLine1?: string | null;
8482
+ streetLine2?: string | null;
8483
+ city?: string | null;
8484
+ province?: string | null;
8485
+ postalCode?: string | null;
8486
+ country?: string | null;
8487
+ countryCode?: string | null;
8488
+ phoneNumber?: string | null;
8489
+ } | null;
8490
+ payments?: Array<{
8491
+ __typename?: 'Payment';
8492
+ id: string;
8493
+ createdAt: any;
8494
+ transactionId?: string | null;
8495
+ amount: number;
8496
+ method: string;
8497
+ state: string;
8498
+ nextStates: Array<string>;
8499
+ errorMessage?: string | null;
8500
+ metadata?: any | null;
8501
+ refunds: Array<{
8502
+ __typename?: 'Refund';
8503
+ id: string;
8504
+ createdAt: any;
8505
+ state: string;
8506
+ items: number;
8507
+ adjustment: number;
8508
+ total: number;
8509
+ paymentId: string;
8510
+ reason?: string | null;
8511
+ transactionId?: string | null;
8512
+ method?: string | null;
8513
+ metadata?: any | null;
8514
+ orderItems: Array<{
8515
+ __typename?: 'OrderItem';
8516
+ id: string;
8517
+ }>;
8518
+ }>;
8519
+ }> | null;
8520
+ fulfillments?: Array<{
8521
+ __typename?: 'Fulfillment';
8522
+ id: string;
8523
+ state: string;
8524
+ nextStates: Array<string>;
8525
+ createdAt: any;
8526
+ updatedAt: any;
8527
+ method: string;
8528
+ trackingCode?: string | null;
8529
+ summary: Array<{
8530
+ __typename?: 'FulfillmentLineSummary';
8531
+ quantity: number;
8532
+ orderLine: {
8533
+ __typename?: 'OrderLine';
8534
+ id: string;
8535
+ };
8536
+ }>;
8537
+ }> | null;
8538
+ modifications: Array<{
8539
+ __typename?: 'OrderModification';
8540
+ id: string;
8541
+ createdAt: any;
8542
+ isSettled: boolean;
8543
+ priceChange: number;
8544
+ note: string;
8545
+ payment?: {
8546
+ __typename?: 'Payment';
8547
+ id: string;
8548
+ amount: number;
8549
+ } | null;
8550
+ orderItems?: Array<{
8551
+ __typename?: 'OrderItem';
8552
+ id: string;
8553
+ }> | null;
8554
+ refund?: {
8555
+ __typename?: 'Refund';
8556
+ id: string;
8557
+ paymentId: string;
8558
+ total: number;
8559
+ } | null;
8560
+ surcharges?: Array<{
8561
+ __typename?: 'Surcharge';
8562
+ id: string;
8563
+ }> | null;
8564
+ }>;
8565
+ } | {
8566
+ __typename?: 'OrderLimitError';
8567
+ errorCode: ErrorCode;
8568
+ message: string;
8569
+ } | {
8570
+ __typename?: 'OrderModificationStateError';
8571
+ errorCode: ErrorCode;
8572
+ message: string;
8573
+ } | {
8574
+ __typename?: 'PaymentMethodMissingError';
8575
+ errorCode: ErrorCode;
8576
+ message: string;
8577
+ } | {
8578
+ __typename?: 'RefundPaymentIdMissingError';
8579
+ errorCode: ErrorCode;
8580
+ message: string;
8581
+ };
8582
+ };
8583
+ export declare type AddManualPaymentMutationVariables = Exact<{
8584
+ input: ManualPaymentInput;
8585
+ }>;
8586
+ export declare type AddManualPaymentMutation = {
8587
+ addManualPaymentToOrder: {
8588
+ __typename?: 'ManualPaymentStateError';
8589
+ errorCode: ErrorCode;
8590
+ message: string;
8591
+ } | {
8592
+ __typename?: 'Order';
8593
+ id: string;
8594
+ createdAt: any;
8595
+ updatedAt: any;
8596
+ code: string;
8597
+ state: string;
8598
+ nextStates: Array<string>;
8599
+ active: boolean;
8600
+ couponCodes: Array<string>;
8601
+ subTotal: number;
8602
+ subTotalWithTax: number;
8603
+ total: number;
8604
+ totalWithTax: number;
8605
+ currencyCode: CurrencyCode;
8606
+ shipping: number;
8607
+ shippingWithTax: number;
8608
+ customer?: {
8609
+ __typename?: 'Customer';
8610
+ id: string;
8611
+ firstName: string;
8612
+ lastName: string;
8613
+ } | null;
8614
+ lines: Array<{
8615
+ __typename?: 'OrderLine';
8616
+ id: string;
8617
+ unitPrice: number;
8618
+ unitPriceWithTax: number;
8619
+ proratedUnitPrice: number;
8620
+ proratedUnitPriceWithTax: number;
8621
+ quantity: number;
8622
+ linePrice: number;
8623
+ lineTax: number;
8624
+ linePriceWithTax: number;
8625
+ discountedLinePrice: number;
8626
+ discountedLinePriceWithTax: number;
8627
+ featuredAsset?: {
8628
+ __typename?: 'Asset';
8629
+ preview: string;
8630
+ } | null;
8631
+ productVariant: {
8632
+ __typename?: 'ProductVariant';
8633
+ id: string;
8634
+ name: string;
8635
+ sku: string;
8636
+ trackInventory: GlobalFlag;
8637
+ stockOnHand: number;
8638
+ };
8639
+ discounts: Array<{
8640
+ __typename?: 'Discount';
8641
+ adjustmentSource: string;
8642
+ amount: number;
8643
+ amountWithTax: number;
8644
+ description: string;
8645
+ type: AdjustmentType;
8646
+ }>;
8647
+ fulfillments?: Array<{
8648
+ __typename?: 'Fulfillment';
8649
+ id: string;
8650
+ state: string;
8651
+ nextStates: Array<string>;
8652
+ createdAt: any;
8653
+ updatedAt: any;
8654
+ method: string;
8655
+ trackingCode?: string | null;
8656
+ summary: Array<{
8657
+ __typename?: 'FulfillmentLineSummary';
8658
+ quantity: number;
8659
+ orderLine: {
8660
+ __typename?: 'OrderLine';
8661
+ id: string;
8662
+ };
8663
+ }>;
8664
+ }> | null;
8665
+ items: Array<{
8666
+ __typename?: 'OrderItem';
8667
+ id: string;
8668
+ refundId?: string | null;
8669
+ cancelled: boolean;
8670
+ }>;
8671
+ }>;
8672
+ surcharges: Array<{
8673
+ __typename?: 'Surcharge';
8674
+ id: string;
8675
+ sku?: string | null;
8676
+ description: string;
8677
+ price: number;
8678
+ priceWithTax: number;
8679
+ taxRate: number;
8680
+ }>;
8681
+ discounts: Array<{
8682
+ __typename?: 'Discount';
8683
+ adjustmentSource: string;
8684
+ amount: number;
8685
+ amountWithTax: number;
8686
+ description: string;
8687
+ type: AdjustmentType;
8688
+ }>;
8689
+ promotions: Array<{
8690
+ __typename?: 'Promotion';
8691
+ id: string;
8692
+ couponCode?: string | null;
8693
+ }>;
8694
+ shippingLines: Array<{
8695
+ __typename?: 'ShippingLine';
8696
+ shippingMethod: {
8697
+ __typename?: 'ShippingMethod';
8698
+ id: string;
8699
+ code: string;
8700
+ name: string;
8701
+ fulfillmentHandlerCode: string;
8702
+ description: string;
8703
+ };
8704
+ }>;
8705
+ taxSummary: Array<{
8706
+ __typename?: 'OrderTaxSummary';
8707
+ description: string;
8708
+ taxBase: number;
8709
+ taxRate: number;
8710
+ taxTotal: number;
8711
+ }>;
8712
+ shippingAddress?: {
8713
+ __typename?: 'OrderAddress';
8714
+ fullName?: string | null;
8715
+ company?: string | null;
8716
+ streetLine1?: string | null;
8717
+ streetLine2?: string | null;
8718
+ city?: string | null;
8719
+ province?: string | null;
8720
+ postalCode?: string | null;
8721
+ country?: string | null;
8722
+ countryCode?: string | null;
8723
+ phoneNumber?: string | null;
8724
+ } | null;
8725
+ billingAddress?: {
8726
+ __typename?: 'OrderAddress';
8727
+ fullName?: string | null;
8728
+ company?: string | null;
8729
+ streetLine1?: string | null;
8730
+ streetLine2?: string | null;
8731
+ city?: string | null;
8732
+ province?: string | null;
8733
+ postalCode?: string | null;
8734
+ country?: string | null;
8735
+ countryCode?: string | null;
8736
+ phoneNumber?: string | null;
8737
+ } | null;
8738
+ payments?: Array<{
8739
+ __typename?: 'Payment';
8740
+ id: string;
8741
+ createdAt: any;
8742
+ transactionId?: string | null;
8743
+ amount: number;
8744
+ method: string;
8745
+ state: string;
8746
+ nextStates: Array<string>;
8747
+ errorMessage?: string | null;
8748
+ metadata?: any | null;
8749
+ refunds: Array<{
8750
+ __typename?: 'Refund';
8751
+ id: string;
8752
+ createdAt: any;
8753
+ state: string;
8754
+ items: number;
8755
+ adjustment: number;
8756
+ total: number;
8757
+ paymentId: string;
8758
+ reason?: string | null;
8759
+ transactionId?: string | null;
8760
+ method?: string | null;
8761
+ metadata?: any | null;
8762
+ orderItems: Array<{
8763
+ __typename?: 'OrderItem';
8764
+ id: string;
8765
+ }>;
8766
+ }>;
8767
+ }> | null;
8768
+ fulfillments?: Array<{
8769
+ __typename?: 'Fulfillment';
8770
+ id: string;
8771
+ state: string;
8772
+ nextStates: Array<string>;
8773
+ createdAt: any;
8774
+ updatedAt: any;
8775
+ method: string;
8776
+ trackingCode?: string | null;
8777
+ summary: Array<{
8778
+ __typename?: 'FulfillmentLineSummary';
8779
+ quantity: number;
8780
+ orderLine: {
8781
+ __typename?: 'OrderLine';
8782
+ id: string;
8783
+ };
8784
+ }>;
8785
+ }> | null;
8786
+ modifications: Array<{
8787
+ __typename?: 'OrderModification';
8788
+ id: string;
8789
+ createdAt: any;
8790
+ isSettled: boolean;
8791
+ priceChange: number;
8792
+ note: string;
8793
+ payment?: {
8794
+ __typename?: 'Payment';
8795
+ id: string;
8796
+ amount: number;
8797
+ } | null;
8798
+ orderItems?: Array<{
8799
+ __typename?: 'OrderItem';
8800
+ id: string;
8801
+ }> | null;
8802
+ refund?: {
8803
+ __typename?: 'Refund';
8804
+ id: string;
8805
+ paymentId: string;
8806
+ total: number;
8807
+ } | null;
8808
+ surcharges?: Array<{
8809
+ __typename?: 'Surcharge';
8810
+ id: string;
8811
+ }> | null;
8812
+ }>;
8813
+ };
8814
+ };
8815
+ export declare type CreateDraftOrderMutationVariables = Exact<{
8816
+ [key: string]: never;
8817
+ }>;
8818
+ export declare type CreateDraftOrderMutation = {
8819
+ createDraftOrder: {
8820
+ __typename?: 'Order';
8821
+ id: string;
8822
+ createdAt: any;
8823
+ updatedAt: any;
8824
+ code: string;
8825
+ state: string;
8826
+ nextStates: Array<string>;
8827
+ active: boolean;
8828
+ couponCodes: Array<string>;
8829
+ subTotal: number;
8830
+ subTotalWithTax: number;
8831
+ total: number;
8832
+ totalWithTax: number;
8833
+ currencyCode: CurrencyCode;
8834
+ shipping: number;
8835
+ shippingWithTax: number;
8836
+ customer?: {
8837
+ __typename?: 'Customer';
8838
+ id: string;
8839
+ firstName: string;
8840
+ lastName: string;
8841
+ } | null;
8842
+ lines: Array<{
8843
+ __typename?: 'OrderLine';
8844
+ id: string;
8845
+ unitPrice: number;
8846
+ unitPriceWithTax: number;
8847
+ proratedUnitPrice: number;
8848
+ proratedUnitPriceWithTax: number;
8849
+ quantity: number;
8850
+ linePrice: number;
8851
+ lineTax: number;
8852
+ linePriceWithTax: number;
8853
+ discountedLinePrice: number;
8854
+ discountedLinePriceWithTax: number;
8855
+ featuredAsset?: {
8856
+ __typename?: 'Asset';
8857
+ preview: string;
8858
+ } | null;
8859
+ productVariant: {
8860
+ __typename?: 'ProductVariant';
8861
+ id: string;
8862
+ name: string;
8863
+ sku: string;
8864
+ trackInventory: GlobalFlag;
8865
+ stockOnHand: number;
8866
+ };
8867
+ discounts: Array<{
8868
+ __typename?: 'Discount';
8869
+ adjustmentSource: string;
8870
+ amount: number;
8871
+ amountWithTax: number;
8872
+ description: string;
8873
+ type: AdjustmentType;
8874
+ }>;
8875
+ fulfillments?: Array<{
8876
+ __typename?: 'Fulfillment';
8877
+ id: string;
8878
+ state: string;
8879
+ nextStates: Array<string>;
8880
+ createdAt: any;
8881
+ updatedAt: any;
8882
+ method: string;
8883
+ trackingCode?: string | null;
8884
+ summary: Array<{
8885
+ __typename?: 'FulfillmentLineSummary';
8886
+ quantity: number;
8887
+ orderLine: {
8888
+ __typename?: 'OrderLine';
8889
+ id: string;
8890
+ };
8891
+ }>;
8892
+ }> | null;
8893
+ items: Array<{
8894
+ __typename?: 'OrderItem';
8895
+ id: string;
8896
+ refundId?: string | null;
8897
+ cancelled: boolean;
8898
+ }>;
8899
+ }>;
8900
+ surcharges: Array<{
8901
+ __typename?: 'Surcharge';
8902
+ id: string;
8903
+ sku?: string | null;
8904
+ description: string;
8905
+ price: number;
8906
+ priceWithTax: number;
8907
+ taxRate: number;
8908
+ }>;
8909
+ discounts: Array<{
8910
+ __typename?: 'Discount';
8911
+ adjustmentSource: string;
8912
+ amount: number;
8913
+ amountWithTax: number;
8914
+ description: string;
8915
+ type: AdjustmentType;
8916
+ }>;
8917
+ promotions: Array<{
8918
+ __typename?: 'Promotion';
8919
+ id: string;
8920
+ couponCode?: string | null;
8921
+ }>;
8922
+ shippingLines: Array<{
8923
+ __typename?: 'ShippingLine';
8924
+ shippingMethod: {
8925
+ __typename?: 'ShippingMethod';
8926
+ id: string;
8927
+ code: string;
8928
+ name: string;
8929
+ fulfillmentHandlerCode: string;
8930
+ description: string;
8931
+ };
8932
+ }>;
8933
+ taxSummary: Array<{
8934
+ __typename?: 'OrderTaxSummary';
8935
+ description: string;
8936
+ taxBase: number;
8937
+ taxRate: number;
8938
+ taxTotal: number;
8939
+ }>;
8940
+ shippingAddress?: {
8941
+ __typename?: 'OrderAddress';
8942
+ fullName?: string | null;
8943
+ company?: string | null;
8944
+ streetLine1?: string | null;
8945
+ streetLine2?: string | null;
8946
+ city?: string | null;
8947
+ province?: string | null;
8948
+ postalCode?: string | null;
8949
+ country?: string | null;
8950
+ countryCode?: string | null;
8951
+ phoneNumber?: string | null;
8952
+ } | null;
8953
+ billingAddress?: {
8954
+ __typename?: 'OrderAddress';
8955
+ fullName?: string | null;
8956
+ company?: string | null;
8957
+ streetLine1?: string | null;
8958
+ streetLine2?: string | null;
8959
+ city?: string | null;
8960
+ province?: string | null;
8961
+ postalCode?: string | null;
8962
+ country?: string | null;
8963
+ countryCode?: string | null;
8964
+ phoneNumber?: string | null;
8965
+ } | null;
8966
+ payments?: Array<{
8967
+ __typename?: 'Payment';
8968
+ id: string;
8969
+ createdAt: any;
8970
+ transactionId?: string | null;
8971
+ amount: number;
8972
+ method: string;
8973
+ state: string;
8974
+ nextStates: Array<string>;
8975
+ errorMessage?: string | null;
8976
+ metadata?: any | null;
8977
+ refunds: Array<{
8978
+ __typename?: 'Refund';
8979
+ id: string;
8980
+ createdAt: any;
8981
+ state: string;
8982
+ items: number;
8983
+ adjustment: number;
8984
+ total: number;
8985
+ paymentId: string;
8986
+ reason?: string | null;
8987
+ transactionId?: string | null;
8988
+ method?: string | null;
8989
+ metadata?: any | null;
8990
+ orderItems: Array<{
8991
+ __typename?: 'OrderItem';
8992
+ id: string;
8993
+ }>;
8994
+ }>;
8995
+ }> | null;
8996
+ fulfillments?: Array<{
8997
+ __typename?: 'Fulfillment';
8998
+ id: string;
8999
+ state: string;
9000
+ nextStates: Array<string>;
9001
+ createdAt: any;
9002
+ updatedAt: any;
9003
+ method: string;
9004
+ trackingCode?: string | null;
9005
+ summary: Array<{
9006
+ __typename?: 'FulfillmentLineSummary';
9007
+ quantity: number;
9008
+ orderLine: {
9009
+ __typename?: 'OrderLine';
9010
+ id: string;
9011
+ };
9012
+ }>;
9013
+ }> | null;
9014
+ modifications: Array<{
9015
+ __typename?: 'OrderModification';
9016
+ id: string;
9017
+ createdAt: any;
9018
+ isSettled: boolean;
9019
+ priceChange: number;
9020
+ note: string;
9021
+ payment?: {
9022
+ __typename?: 'Payment';
9023
+ id: string;
9024
+ amount: number;
9025
+ } | null;
9026
+ orderItems?: Array<{
9027
+ __typename?: 'OrderItem';
9028
+ id: string;
9029
+ }> | null;
9030
+ refund?: {
9031
+ __typename?: 'Refund';
9032
+ id: string;
9033
+ paymentId: string;
9034
+ total: number;
9035
+ } | null;
9036
+ surcharges?: Array<{
9037
+ __typename?: 'Surcharge';
9038
+ id: string;
9039
+ }> | null;
9040
+ }>;
9041
+ };
9042
+ };
9043
+ export declare type DeleteDraftOrderMutationVariables = Exact<{
9044
+ orderId: Scalars['ID'];
9045
+ }>;
9046
+ export declare type DeleteDraftOrderMutation = {
9047
+ deleteDraftOrder: {
9048
+ __typename?: 'DeletionResponse';
9049
+ result: DeletionResult;
9050
+ message?: string | null;
9051
+ };
9052
+ };
9053
+ export declare type AddItemToDraftOrderMutationVariables = Exact<{
9054
+ orderId: Scalars['ID'];
9055
+ input: AddItemToDraftOrderInput;
9056
+ }>;
9057
+ export declare type AddItemToDraftOrderMutation = {
9058
+ addItemToDraftOrder: {
9059
+ __typename?: 'InsufficientStockError';
9060
+ errorCode: ErrorCode;
9061
+ message: string;
9062
+ } | {
9063
+ __typename?: 'NegativeQuantityError';
9064
+ errorCode: ErrorCode;
9065
+ message: string;
9066
+ } | {
9067
+ __typename?: 'Order';
9068
+ id: string;
9069
+ createdAt: any;
9070
+ updatedAt: any;
9071
+ code: string;
9072
+ state: string;
9073
+ nextStates: Array<string>;
9074
+ active: boolean;
9075
+ couponCodes: Array<string>;
9076
+ subTotal: number;
9077
+ subTotalWithTax: number;
9078
+ total: number;
9079
+ totalWithTax: number;
9080
+ currencyCode: CurrencyCode;
9081
+ shipping: number;
9082
+ shippingWithTax: number;
9083
+ customer?: {
9084
+ __typename?: 'Customer';
9085
+ id: string;
9086
+ firstName: string;
9087
+ lastName: string;
9088
+ } | null;
9089
+ lines: Array<{
9090
+ __typename?: 'OrderLine';
9091
+ id: string;
9092
+ unitPrice: number;
9093
+ unitPriceWithTax: number;
9094
+ proratedUnitPrice: number;
9095
+ proratedUnitPriceWithTax: number;
9096
+ quantity: number;
9097
+ linePrice: number;
9098
+ lineTax: number;
9099
+ linePriceWithTax: number;
9100
+ discountedLinePrice: number;
9101
+ discountedLinePriceWithTax: number;
9102
+ featuredAsset?: {
9103
+ __typename?: 'Asset';
9104
+ preview: string;
9105
+ } | null;
9106
+ productVariant: {
9107
+ __typename?: 'ProductVariant';
9108
+ id: string;
9109
+ name: string;
9110
+ sku: string;
9111
+ trackInventory: GlobalFlag;
9112
+ stockOnHand: number;
9113
+ };
9114
+ discounts: Array<{
9115
+ __typename?: 'Discount';
9116
+ adjustmentSource: string;
9117
+ amount: number;
9118
+ amountWithTax: number;
9119
+ description: string;
9120
+ type: AdjustmentType;
9121
+ }>;
9122
+ fulfillments?: Array<{
9123
+ __typename?: 'Fulfillment';
9124
+ id: string;
9125
+ state: string;
9126
+ nextStates: Array<string>;
9127
+ createdAt: any;
9128
+ updatedAt: any;
9129
+ method: string;
9130
+ trackingCode?: string | null;
9131
+ summary: Array<{
9132
+ __typename?: 'FulfillmentLineSummary';
9133
+ quantity: number;
9134
+ orderLine: {
9135
+ __typename?: 'OrderLine';
9136
+ id: string;
9137
+ };
9138
+ }>;
9139
+ }> | null;
9140
+ items: Array<{
9141
+ __typename?: 'OrderItem';
9142
+ id: string;
9143
+ refundId?: string | null;
9144
+ cancelled: boolean;
9145
+ }>;
9146
+ }>;
9147
+ surcharges: Array<{
9148
+ __typename?: 'Surcharge';
9149
+ id: string;
9150
+ sku?: string | null;
9151
+ description: string;
9152
+ price: number;
9153
+ priceWithTax: number;
9154
+ taxRate: number;
9155
+ }>;
9156
+ discounts: Array<{
9157
+ __typename?: 'Discount';
9158
+ adjustmentSource: string;
9159
+ amount: number;
9160
+ amountWithTax: number;
9161
+ description: string;
9162
+ type: AdjustmentType;
9163
+ }>;
9164
+ promotions: Array<{
9165
+ __typename?: 'Promotion';
9166
+ id: string;
9167
+ couponCode?: string | null;
9168
+ }>;
9169
+ shippingLines: Array<{
9170
+ __typename?: 'ShippingLine';
9171
+ shippingMethod: {
9172
+ __typename?: 'ShippingMethod';
9173
+ id: string;
9174
+ code: string;
9175
+ name: string;
9176
+ fulfillmentHandlerCode: string;
9177
+ description: string;
9178
+ };
9179
+ }>;
9180
+ taxSummary: Array<{
9181
+ __typename?: 'OrderTaxSummary';
9182
+ description: string;
9183
+ taxBase: number;
9184
+ taxRate: number;
9185
+ taxTotal: number;
9186
+ }>;
9187
+ shippingAddress?: {
9188
+ __typename?: 'OrderAddress';
9189
+ fullName?: string | null;
9190
+ company?: string | null;
9191
+ streetLine1?: string | null;
9192
+ streetLine2?: string | null;
9193
+ city?: string | null;
9194
+ province?: string | null;
9195
+ postalCode?: string | null;
9196
+ country?: string | null;
9197
+ countryCode?: string | null;
9198
+ phoneNumber?: string | null;
9199
+ } | null;
9200
+ billingAddress?: {
9201
+ __typename?: 'OrderAddress';
9202
+ fullName?: string | null;
9203
+ company?: string | null;
9204
+ streetLine1?: string | null;
9205
+ streetLine2?: string | null;
9206
+ city?: string | null;
9207
+ province?: string | null;
9208
+ postalCode?: string | null;
9209
+ country?: string | null;
9210
+ countryCode?: string | null;
9211
+ phoneNumber?: string | null;
9212
+ } | null;
9213
+ payments?: Array<{
9214
+ __typename?: 'Payment';
9215
+ id: string;
9216
+ createdAt: any;
9217
+ transactionId?: string | null;
9218
+ amount: number;
9219
+ method: string;
9220
+ state: string;
9221
+ nextStates: Array<string>;
9222
+ errorMessage?: string | null;
9223
+ metadata?: any | null;
9224
+ refunds: Array<{
9225
+ __typename?: 'Refund';
9226
+ id: string;
9227
+ createdAt: any;
9228
+ state: string;
9229
+ items: number;
9230
+ adjustment: number;
9231
+ total: number;
9232
+ paymentId: string;
9233
+ reason?: string | null;
9234
+ transactionId?: string | null;
9235
+ method?: string | null;
9236
+ metadata?: any | null;
9237
+ orderItems: Array<{
9238
+ __typename?: 'OrderItem';
9239
+ id: string;
9240
+ }>;
9241
+ }>;
9242
+ }> | null;
9243
+ fulfillments?: Array<{
9244
+ __typename?: 'Fulfillment';
9245
+ id: string;
9246
+ state: string;
9247
+ nextStates: Array<string>;
9248
+ createdAt: any;
9249
+ updatedAt: any;
9250
+ method: string;
9251
+ trackingCode?: string | null;
9252
+ summary: Array<{
9253
+ __typename?: 'FulfillmentLineSummary';
9254
+ quantity: number;
9255
+ orderLine: {
9256
+ __typename?: 'OrderLine';
9257
+ id: string;
9258
+ };
9259
+ }>;
9260
+ }> | null;
9261
+ modifications: Array<{
9262
+ __typename?: 'OrderModification';
9263
+ id: string;
9264
+ createdAt: any;
9265
+ isSettled: boolean;
9266
+ priceChange: number;
9267
+ note: string;
9268
+ payment?: {
9269
+ __typename?: 'Payment';
9270
+ id: string;
9271
+ amount: number;
9272
+ } | null;
9273
+ orderItems?: Array<{
9274
+ __typename?: 'OrderItem';
9275
+ id: string;
9276
+ }> | null;
9277
+ refund?: {
9278
+ __typename?: 'Refund';
9279
+ id: string;
9280
+ paymentId: string;
9281
+ total: number;
9282
+ } | null;
9283
+ surcharges?: Array<{
9284
+ __typename?: 'Surcharge';
9285
+ id: string;
9286
+ }> | null;
9287
+ }>;
9288
+ } | {
9289
+ __typename?: 'OrderLimitError';
9290
+ errorCode: ErrorCode;
9291
+ message: string;
9292
+ } | {
9293
+ __typename?: 'OrderModificationError';
9294
+ errorCode: ErrorCode;
9295
+ message: string;
9296
+ };
9297
+ };
9298
+ export declare type AdjustDraftOrderLineMutationVariables = Exact<{
9299
+ orderId: Scalars['ID'];
9300
+ input: AdjustDraftOrderLineInput;
9301
+ }>;
9302
+ export declare type AdjustDraftOrderLineMutation = {
9303
+ adjustDraftOrderLine: {
9304
+ __typename?: 'InsufficientStockError';
9305
+ errorCode: ErrorCode;
9306
+ message: string;
9307
+ } | {
9308
+ __typename?: 'NegativeQuantityError';
9309
+ errorCode: ErrorCode;
9310
+ message: string;
9311
+ } | {
9312
+ __typename?: 'Order';
9313
+ id: string;
9314
+ createdAt: any;
9315
+ updatedAt: any;
9316
+ code: string;
9317
+ state: string;
9318
+ nextStates: Array<string>;
9319
+ active: boolean;
9320
+ couponCodes: Array<string>;
9321
+ subTotal: number;
9322
+ subTotalWithTax: number;
9323
+ total: number;
9324
+ totalWithTax: number;
9325
+ currencyCode: CurrencyCode;
9326
+ shipping: number;
9327
+ shippingWithTax: number;
9328
+ customer?: {
9329
+ __typename?: 'Customer';
9330
+ id: string;
9331
+ firstName: string;
9332
+ lastName: string;
9333
+ } | null;
9334
+ lines: Array<{
9335
+ __typename?: 'OrderLine';
9336
+ id: string;
9337
+ unitPrice: number;
9338
+ unitPriceWithTax: number;
9339
+ proratedUnitPrice: number;
9340
+ proratedUnitPriceWithTax: number;
9341
+ quantity: number;
9342
+ linePrice: number;
9343
+ lineTax: number;
9344
+ linePriceWithTax: number;
9345
+ discountedLinePrice: number;
9346
+ discountedLinePriceWithTax: number;
9347
+ featuredAsset?: {
9348
+ __typename?: 'Asset';
9349
+ preview: string;
9350
+ } | null;
9351
+ productVariant: {
9352
+ __typename?: 'ProductVariant';
9353
+ id: string;
9354
+ name: string;
9355
+ sku: string;
9356
+ trackInventory: GlobalFlag;
9357
+ stockOnHand: number;
9358
+ };
9359
+ discounts: Array<{
9360
+ __typename?: 'Discount';
9361
+ adjustmentSource: string;
9362
+ amount: number;
9363
+ amountWithTax: number;
9364
+ description: string;
9365
+ type: AdjustmentType;
9366
+ }>;
9367
+ fulfillments?: Array<{
9368
+ __typename?: 'Fulfillment';
9369
+ id: string;
9370
+ state: string;
9371
+ nextStates: Array<string>;
9372
+ createdAt: any;
9373
+ updatedAt: any;
9374
+ method: string;
9375
+ trackingCode?: string | null;
9376
+ summary: Array<{
9377
+ __typename?: 'FulfillmentLineSummary';
9378
+ quantity: number;
9379
+ orderLine: {
9380
+ __typename?: 'OrderLine';
9381
+ id: string;
9382
+ };
9383
+ }>;
9384
+ }> | null;
9385
+ items: Array<{
9386
+ __typename?: 'OrderItem';
9387
+ id: string;
9388
+ refundId?: string | null;
9389
+ cancelled: boolean;
9390
+ }>;
9391
+ }>;
9392
+ surcharges: Array<{
9393
+ __typename?: 'Surcharge';
9394
+ id: string;
9395
+ sku?: string | null;
9396
+ description: string;
9397
+ price: number;
9398
+ priceWithTax: number;
9399
+ taxRate: number;
9400
+ }>;
9401
+ discounts: Array<{
9402
+ __typename?: 'Discount';
9403
+ adjustmentSource: string;
9404
+ amount: number;
9405
+ amountWithTax: number;
9406
+ description: string;
9407
+ type: AdjustmentType;
9408
+ }>;
9409
+ promotions: Array<{
9410
+ __typename?: 'Promotion';
9411
+ id: string;
9412
+ couponCode?: string | null;
9413
+ }>;
9414
+ shippingLines: Array<{
9415
+ __typename?: 'ShippingLine';
9416
+ shippingMethod: {
9417
+ __typename?: 'ShippingMethod';
9418
+ id: string;
9419
+ code: string;
9420
+ name: string;
9421
+ fulfillmentHandlerCode: string;
9422
+ description: string;
9423
+ };
9424
+ }>;
9425
+ taxSummary: Array<{
9426
+ __typename?: 'OrderTaxSummary';
9427
+ description: string;
9428
+ taxBase: number;
9429
+ taxRate: number;
9430
+ taxTotal: number;
9431
+ }>;
9432
+ shippingAddress?: {
9433
+ __typename?: 'OrderAddress';
9434
+ fullName?: string | null;
9435
+ company?: string | null;
9436
+ streetLine1?: string | null;
9437
+ streetLine2?: string | null;
9438
+ city?: string | null;
9439
+ province?: string | null;
9440
+ postalCode?: string | null;
9441
+ country?: string | null;
9442
+ countryCode?: string | null;
9443
+ phoneNumber?: string | null;
9444
+ } | null;
9445
+ billingAddress?: {
9446
+ __typename?: 'OrderAddress';
9447
+ fullName?: string | null;
9448
+ company?: string | null;
9449
+ streetLine1?: string | null;
9450
+ streetLine2?: string | null;
9451
+ city?: string | null;
9452
+ province?: string | null;
9453
+ postalCode?: string | null;
9454
+ country?: string | null;
9455
+ countryCode?: string | null;
9456
+ phoneNumber?: string | null;
9457
+ } | null;
9458
+ payments?: Array<{
9459
+ __typename?: 'Payment';
9460
+ id: string;
9461
+ createdAt: any;
9462
+ transactionId?: string | null;
9463
+ amount: number;
9464
+ method: string;
9465
+ state: string;
9466
+ nextStates: Array<string>;
9467
+ errorMessage?: string | null;
9468
+ metadata?: any | null;
9469
+ refunds: Array<{
9470
+ __typename?: 'Refund';
9471
+ id: string;
9472
+ createdAt: any;
9473
+ state: string;
9474
+ items: number;
9475
+ adjustment: number;
9476
+ total: number;
9477
+ paymentId: string;
9478
+ reason?: string | null;
9479
+ transactionId?: string | null;
9480
+ method?: string | null;
9481
+ metadata?: any | null;
9482
+ orderItems: Array<{
9483
+ __typename?: 'OrderItem';
9484
+ id: string;
9485
+ }>;
9486
+ }>;
9487
+ }> | null;
9488
+ fulfillments?: Array<{
9489
+ __typename?: 'Fulfillment';
9490
+ id: string;
9491
+ state: string;
9492
+ nextStates: Array<string>;
9493
+ createdAt: any;
9494
+ updatedAt: any;
9495
+ method: string;
9496
+ trackingCode?: string | null;
9497
+ summary: Array<{
9498
+ __typename?: 'FulfillmentLineSummary';
9499
+ quantity: number;
9500
+ orderLine: {
9501
+ __typename?: 'OrderLine';
9502
+ id: string;
9503
+ };
9504
+ }>;
9505
+ }> | null;
9506
+ modifications: Array<{
9507
+ __typename?: 'OrderModification';
9508
+ id: string;
9509
+ createdAt: any;
9510
+ isSettled: boolean;
9511
+ priceChange: number;
9512
+ note: string;
9513
+ payment?: {
9514
+ __typename?: 'Payment';
9515
+ id: string;
9516
+ amount: number;
9517
+ } | null;
9518
+ orderItems?: Array<{
9519
+ __typename?: 'OrderItem';
9520
+ id: string;
9521
+ }> | null;
9522
+ refund?: {
9523
+ __typename?: 'Refund';
9524
+ id: string;
9525
+ paymentId: string;
9526
+ total: number;
9527
+ } | null;
9528
+ surcharges?: Array<{
9529
+ __typename?: 'Surcharge';
9530
+ id: string;
9531
+ }> | null;
9532
+ }>;
9533
+ } | {
9534
+ __typename?: 'OrderLimitError';
9535
+ errorCode: ErrorCode;
9536
+ message: string;
9537
+ } | {
9538
+ __typename?: 'OrderModificationError';
9539
+ errorCode: ErrorCode;
9540
+ message: string;
9541
+ };
9542
+ };
9543
+ export declare type RemoveDraftOrderLineMutationVariables = Exact<{
9544
+ orderId: Scalars['ID'];
9545
+ orderLineId: Scalars['ID'];
9546
+ }>;
9547
+ export declare type RemoveDraftOrderLineMutation = {
9548
+ removeDraftOrderLine: {
9549
+ __typename?: 'Order';
9550
+ id: string;
9551
+ createdAt: any;
9552
+ updatedAt: any;
9553
+ code: string;
9554
+ state: string;
9555
+ nextStates: Array<string>;
9556
+ active: boolean;
9557
+ couponCodes: Array<string>;
9558
+ subTotal: number;
9559
+ subTotalWithTax: number;
9560
+ total: number;
9561
+ totalWithTax: number;
9562
+ currencyCode: CurrencyCode;
9563
+ shipping: number;
9564
+ shippingWithTax: number;
9565
+ customer?: {
9566
+ __typename?: 'Customer';
9567
+ id: string;
9568
+ firstName: string;
9569
+ lastName: string;
9570
+ } | null;
9571
+ lines: Array<{
9572
+ __typename?: 'OrderLine';
9573
+ id: string;
9574
+ unitPrice: number;
9575
+ unitPriceWithTax: number;
9576
+ proratedUnitPrice: number;
9577
+ proratedUnitPriceWithTax: number;
9578
+ quantity: number;
9579
+ linePrice: number;
9580
+ lineTax: number;
9581
+ linePriceWithTax: number;
9582
+ discountedLinePrice: number;
9583
+ discountedLinePriceWithTax: number;
9584
+ featuredAsset?: {
9585
+ __typename?: 'Asset';
9586
+ preview: string;
9587
+ } | null;
9588
+ productVariant: {
9589
+ __typename?: 'ProductVariant';
9590
+ id: string;
9591
+ name: string;
9592
+ sku: string;
9593
+ trackInventory: GlobalFlag;
9594
+ stockOnHand: number;
9595
+ };
9596
+ discounts: Array<{
9597
+ __typename?: 'Discount';
9598
+ adjustmentSource: string;
9599
+ amount: number;
9600
+ amountWithTax: number;
9601
+ description: string;
9602
+ type: AdjustmentType;
9603
+ }>;
9604
+ fulfillments?: Array<{
9605
+ __typename?: 'Fulfillment';
9606
+ id: string;
9607
+ state: string;
9608
+ nextStates: Array<string>;
9609
+ createdAt: any;
9610
+ updatedAt: any;
9611
+ method: string;
9612
+ trackingCode?: string | null;
9613
+ summary: Array<{
9614
+ __typename?: 'FulfillmentLineSummary';
9615
+ quantity: number;
9616
+ orderLine: {
9617
+ __typename?: 'OrderLine';
9618
+ id: string;
9619
+ };
9620
+ }>;
9621
+ }> | null;
9622
+ items: Array<{
9623
+ __typename?: 'OrderItem';
9624
+ id: string;
9625
+ refundId?: string | null;
9626
+ cancelled: boolean;
9627
+ }>;
9628
+ }>;
9629
+ surcharges: Array<{
9630
+ __typename?: 'Surcharge';
9631
+ id: string;
9632
+ sku?: string | null;
9633
+ description: string;
9634
+ price: number;
9635
+ priceWithTax: number;
9636
+ taxRate: number;
9637
+ }>;
9638
+ discounts: Array<{
9639
+ __typename?: 'Discount';
9640
+ adjustmentSource: string;
9641
+ amount: number;
9642
+ amountWithTax: number;
9643
+ description: string;
9644
+ type: AdjustmentType;
9645
+ }>;
9646
+ promotions: Array<{
9647
+ __typename?: 'Promotion';
9648
+ id: string;
9649
+ couponCode?: string | null;
9650
+ }>;
9651
+ shippingLines: Array<{
9652
+ __typename?: 'ShippingLine';
9653
+ shippingMethod: {
9654
+ __typename?: 'ShippingMethod';
9655
+ id: string;
9656
+ code: string;
9657
+ name: string;
9658
+ fulfillmentHandlerCode: string;
9659
+ description: string;
9660
+ };
9661
+ }>;
9662
+ taxSummary: Array<{
9663
+ __typename?: 'OrderTaxSummary';
9664
+ description: string;
9665
+ taxBase: number;
9666
+ taxRate: number;
9667
+ taxTotal: number;
9668
+ }>;
9669
+ shippingAddress?: {
9670
+ __typename?: 'OrderAddress';
9671
+ fullName?: string | null;
9672
+ company?: string | null;
9673
+ streetLine1?: string | null;
9674
+ streetLine2?: string | null;
9675
+ city?: string | null;
9676
+ province?: string | null;
9677
+ postalCode?: string | null;
9678
+ country?: string | null;
9679
+ countryCode?: string | null;
9680
+ phoneNumber?: string | null;
9681
+ } | null;
9682
+ billingAddress?: {
9683
+ __typename?: 'OrderAddress';
9684
+ fullName?: string | null;
9685
+ company?: string | null;
9686
+ streetLine1?: string | null;
9687
+ streetLine2?: string | null;
9688
+ city?: string | null;
9689
+ province?: string | null;
9690
+ postalCode?: string | null;
9691
+ country?: string | null;
9692
+ countryCode?: string | null;
9693
+ phoneNumber?: string | null;
9694
+ } | null;
9695
+ payments?: Array<{
9696
+ __typename?: 'Payment';
9697
+ id: string;
9698
+ createdAt: any;
9699
+ transactionId?: string | null;
9700
+ amount: number;
9701
+ method: string;
9702
+ state: string;
9703
+ nextStates: Array<string>;
9704
+ errorMessage?: string | null;
9705
+ metadata?: any | null;
9706
+ refunds: Array<{
9707
+ __typename?: 'Refund';
9708
+ id: string;
9709
+ createdAt: any;
9710
+ state: string;
9711
+ items: number;
9712
+ adjustment: number;
9713
+ total: number;
9714
+ paymentId: string;
9715
+ reason?: string | null;
9716
+ transactionId?: string | null;
9717
+ method?: string | null;
9718
+ metadata?: any | null;
9719
+ orderItems: Array<{
9720
+ __typename?: 'OrderItem';
9721
+ id: string;
9722
+ }>;
9723
+ }>;
9724
+ }> | null;
9725
+ fulfillments?: Array<{
9726
+ __typename?: 'Fulfillment';
9727
+ id: string;
9728
+ state: string;
9729
+ nextStates: Array<string>;
9730
+ createdAt: any;
9731
+ updatedAt: any;
9732
+ method: string;
9733
+ trackingCode?: string | null;
9734
+ summary: Array<{
9735
+ __typename?: 'FulfillmentLineSummary';
9736
+ quantity: number;
9737
+ orderLine: {
9738
+ __typename?: 'OrderLine';
9739
+ id: string;
9740
+ };
9741
+ }>;
9742
+ }> | null;
9743
+ modifications: Array<{
9744
+ __typename?: 'OrderModification';
9745
+ id: string;
9746
+ createdAt: any;
9747
+ isSettled: boolean;
9748
+ priceChange: number;
9749
+ note: string;
9750
+ payment?: {
9751
+ __typename?: 'Payment';
9752
+ id: string;
9753
+ amount: number;
9754
+ } | null;
9755
+ orderItems?: Array<{
9756
+ __typename?: 'OrderItem';
9757
+ id: string;
9758
+ }> | null;
9759
+ refund?: {
9760
+ __typename?: 'Refund';
9761
+ id: string;
9762
+ paymentId: string;
9763
+ total: number;
9764
+ } | null;
9765
+ surcharges?: Array<{
9766
+ __typename?: 'Surcharge';
9767
+ id: string;
9768
+ }> | null;
9769
+ }>;
9770
+ } | {
9771
+ __typename?: 'OrderModificationError';
9772
+ errorCode: ErrorCode;
9773
+ message: string;
9774
+ };
9775
+ };
9776
+ export declare type SetCustomerForDraftOrderMutationVariables = Exact<{
9777
+ orderId: Scalars['ID'];
9778
+ customerId?: InputMaybe<Scalars['ID']>;
9779
+ input?: InputMaybe<CreateCustomerInput>;
9780
+ }>;
9781
+ export declare type SetCustomerForDraftOrderMutation = {
9782
+ setCustomerForDraftOrder: {
9783
+ __typename?: 'EmailAddressConflictError';
9784
+ errorCode: ErrorCode;
9785
+ message: string;
9786
+ } | {
9787
+ __typename?: 'Order';
9788
+ id: string;
9789
+ createdAt: any;
9790
+ updatedAt: any;
9791
+ code: string;
9792
+ state: string;
9793
+ nextStates: Array<string>;
9794
+ active: boolean;
9795
+ couponCodes: Array<string>;
9796
+ subTotal: number;
9797
+ subTotalWithTax: number;
9798
+ total: number;
9799
+ totalWithTax: number;
9800
+ currencyCode: CurrencyCode;
9801
+ shipping: number;
9802
+ shippingWithTax: number;
9803
+ customer?: {
9804
+ __typename?: 'Customer';
9805
+ id: string;
9806
+ firstName: string;
9807
+ lastName: string;
9808
+ } | null;
9809
+ lines: Array<{
9810
+ __typename?: 'OrderLine';
9811
+ id: string;
9812
+ unitPrice: number;
9813
+ unitPriceWithTax: number;
9814
+ proratedUnitPrice: number;
9815
+ proratedUnitPriceWithTax: number;
9816
+ quantity: number;
9817
+ linePrice: number;
9818
+ lineTax: number;
9819
+ linePriceWithTax: number;
9820
+ discountedLinePrice: number;
9821
+ discountedLinePriceWithTax: number;
9822
+ featuredAsset?: {
9823
+ __typename?: 'Asset';
9824
+ preview: string;
9825
+ } | null;
9826
+ productVariant: {
9827
+ __typename?: 'ProductVariant';
9828
+ id: string;
9829
+ name: string;
9830
+ sku: string;
9831
+ trackInventory: GlobalFlag;
9832
+ stockOnHand: number;
9833
+ };
9834
+ discounts: Array<{
9835
+ __typename?: 'Discount';
9836
+ adjustmentSource: string;
9837
+ amount: number;
9838
+ amountWithTax: number;
9839
+ description: string;
9840
+ type: AdjustmentType;
9841
+ }>;
9842
+ fulfillments?: Array<{
9843
+ __typename?: 'Fulfillment';
9844
+ id: string;
9845
+ state: string;
9846
+ nextStates: Array<string>;
9847
+ createdAt: any;
9848
+ updatedAt: any;
9849
+ method: string;
9850
+ trackingCode?: string | null;
9851
+ summary: Array<{
9852
+ __typename?: 'FulfillmentLineSummary';
9853
+ quantity: number;
9854
+ orderLine: {
9855
+ __typename?: 'OrderLine';
9856
+ id: string;
9857
+ };
9858
+ }>;
9859
+ }> | null;
9860
+ items: Array<{
9861
+ __typename?: 'OrderItem';
9862
+ id: string;
9863
+ refundId?: string | null;
9864
+ cancelled: boolean;
9865
+ }>;
9866
+ }>;
9867
+ surcharges: Array<{
9868
+ __typename?: 'Surcharge';
9869
+ id: string;
9870
+ sku?: string | null;
9871
+ description: string;
9872
+ price: number;
9873
+ priceWithTax: number;
9874
+ taxRate: number;
9875
+ }>;
9876
+ discounts: Array<{
9877
+ __typename?: 'Discount';
9878
+ adjustmentSource: string;
9879
+ amount: number;
9880
+ amountWithTax: number;
9881
+ description: string;
9882
+ type: AdjustmentType;
9883
+ }>;
9884
+ promotions: Array<{
9885
+ __typename?: 'Promotion';
9886
+ id: string;
9887
+ couponCode?: string | null;
9888
+ }>;
9889
+ shippingLines: Array<{
9890
+ __typename?: 'ShippingLine';
9891
+ shippingMethod: {
9892
+ __typename?: 'ShippingMethod';
9893
+ id: string;
9894
+ code: string;
9895
+ name: string;
9896
+ fulfillmentHandlerCode: string;
9897
+ description: string;
9898
+ };
9899
+ }>;
9900
+ taxSummary: Array<{
9901
+ __typename?: 'OrderTaxSummary';
9902
+ description: string;
9903
+ taxBase: number;
9904
+ taxRate: number;
9905
+ taxTotal: number;
9906
+ }>;
9907
+ shippingAddress?: {
9908
+ __typename?: 'OrderAddress';
9909
+ fullName?: string | null;
9910
+ company?: string | null;
9911
+ streetLine1?: string | null;
9912
+ streetLine2?: string | null;
9913
+ city?: string | null;
9914
+ province?: string | null;
9915
+ postalCode?: string | null;
9916
+ country?: string | null;
9917
+ countryCode?: string | null;
9918
+ phoneNumber?: string | null;
9919
+ } | null;
9920
+ billingAddress?: {
9921
+ __typename?: 'OrderAddress';
9922
+ fullName?: string | null;
9923
+ company?: string | null;
9924
+ streetLine1?: string | null;
9925
+ streetLine2?: string | null;
9926
+ city?: string | null;
9927
+ province?: string | null;
9928
+ postalCode?: string | null;
9929
+ country?: string | null;
9930
+ countryCode?: string | null;
9931
+ phoneNumber?: string | null;
9932
+ } | null;
9933
+ payments?: Array<{
9934
+ __typename?: 'Payment';
9935
+ id: string;
9936
+ createdAt: any;
9937
+ transactionId?: string | null;
9938
+ amount: number;
9939
+ method: string;
9940
+ state: string;
9941
+ nextStates: Array<string>;
9942
+ errorMessage?: string | null;
9943
+ metadata?: any | null;
9944
+ refunds: Array<{
9945
+ __typename?: 'Refund';
9946
+ id: string;
9947
+ createdAt: any;
9948
+ state: string;
9949
+ items: number;
9950
+ adjustment: number;
9951
+ total: number;
9952
+ paymentId: string;
9953
+ reason?: string | null;
9954
+ transactionId?: string | null;
9955
+ method?: string | null;
9956
+ metadata?: any | null;
9957
+ orderItems: Array<{
9958
+ __typename?: 'OrderItem';
9959
+ id: string;
9960
+ }>;
9961
+ }>;
9962
+ }> | null;
9963
+ fulfillments?: Array<{
9964
+ __typename?: 'Fulfillment';
9965
+ id: string;
9966
+ state: string;
9967
+ nextStates: Array<string>;
9968
+ createdAt: any;
9969
+ updatedAt: any;
9970
+ method: string;
9971
+ trackingCode?: string | null;
9972
+ summary: Array<{
9973
+ __typename?: 'FulfillmentLineSummary';
9974
+ quantity: number;
9975
+ orderLine: {
9976
+ __typename?: 'OrderLine';
9977
+ id: string;
9978
+ };
9979
+ }>;
9980
+ }> | null;
9981
+ modifications: Array<{
9982
+ __typename?: 'OrderModification';
9983
+ id: string;
9984
+ createdAt: any;
9985
+ isSettled: boolean;
9986
+ priceChange: number;
9987
+ note: string;
9988
+ payment?: {
9989
+ __typename?: 'Payment';
9990
+ id: string;
9991
+ amount: number;
9992
+ } | null;
9993
+ orderItems?: Array<{
9994
+ __typename?: 'OrderItem';
9995
+ id: string;
9996
+ }> | null;
9997
+ refund?: {
9998
+ __typename?: 'Refund';
9999
+ id: string;
10000
+ paymentId: string;
10001
+ total: number;
10002
+ } | null;
10003
+ surcharges?: Array<{
10004
+ __typename?: 'Surcharge';
10005
+ id: string;
10006
+ }> | null;
10007
+ }>;
10008
+ };
10009
+ };
10010
+ export declare type SetDraftOrderShippingAddressMutationVariables = Exact<{
10011
+ orderId: Scalars['ID'];
10012
+ input: CreateAddressInput;
10013
+ }>;
10014
+ export declare type SetDraftOrderShippingAddressMutation = {
10015
+ setDraftOrderShippingAddress: {
10016
+ __typename?: 'Order';
10017
+ id: string;
10018
+ createdAt: any;
10019
+ updatedAt: any;
10020
+ code: string;
10021
+ state: string;
10022
+ nextStates: Array<string>;
10023
+ active: boolean;
10024
+ couponCodes: Array<string>;
10025
+ subTotal: number;
10026
+ subTotalWithTax: number;
10027
+ total: number;
10028
+ totalWithTax: number;
10029
+ currencyCode: CurrencyCode;
10030
+ shipping: number;
10031
+ shippingWithTax: number;
10032
+ customer?: {
10033
+ __typename?: 'Customer';
10034
+ id: string;
10035
+ firstName: string;
10036
+ lastName: string;
10037
+ } | null;
10038
+ lines: Array<{
10039
+ __typename?: 'OrderLine';
10040
+ id: string;
10041
+ unitPrice: number;
10042
+ unitPriceWithTax: number;
10043
+ proratedUnitPrice: number;
10044
+ proratedUnitPriceWithTax: number;
10045
+ quantity: number;
10046
+ linePrice: number;
10047
+ lineTax: number;
10048
+ linePriceWithTax: number;
10049
+ discountedLinePrice: number;
10050
+ discountedLinePriceWithTax: number;
10051
+ featuredAsset?: {
10052
+ __typename?: 'Asset';
10053
+ preview: string;
10054
+ } | null;
10055
+ productVariant: {
10056
+ __typename?: 'ProductVariant';
10057
+ id: string;
10058
+ name: string;
10059
+ sku: string;
10060
+ trackInventory: GlobalFlag;
10061
+ stockOnHand: number;
10062
+ };
10063
+ discounts: Array<{
10064
+ __typename?: 'Discount';
10065
+ adjustmentSource: string;
10066
+ amount: number;
10067
+ amountWithTax: number;
10068
+ description: string;
10069
+ type: AdjustmentType;
10070
+ }>;
10071
+ fulfillments?: Array<{
10072
+ __typename?: 'Fulfillment';
10073
+ id: string;
10074
+ state: string;
10075
+ nextStates: Array<string>;
10076
+ createdAt: any;
10077
+ updatedAt: any;
10078
+ method: string;
10079
+ trackingCode?: string | null;
10080
+ summary: Array<{
10081
+ __typename?: 'FulfillmentLineSummary';
10082
+ quantity: number;
10083
+ orderLine: {
10084
+ __typename?: 'OrderLine';
10085
+ id: string;
10086
+ };
10087
+ }>;
10088
+ }> | null;
10089
+ items: Array<{
10090
+ __typename?: 'OrderItem';
10091
+ id: string;
10092
+ refundId?: string | null;
10093
+ cancelled: boolean;
10094
+ }>;
10095
+ }>;
10096
+ surcharges: Array<{
10097
+ __typename?: 'Surcharge';
10098
+ id: string;
10099
+ sku?: string | null;
10100
+ description: string;
10101
+ price: number;
10102
+ priceWithTax: number;
10103
+ taxRate: number;
10104
+ }>;
10105
+ discounts: Array<{
10106
+ __typename?: 'Discount';
10107
+ adjustmentSource: string;
10108
+ amount: number;
10109
+ amountWithTax: number;
10110
+ description: string;
10111
+ type: AdjustmentType;
10112
+ }>;
10113
+ promotions: Array<{
10114
+ __typename?: 'Promotion';
10115
+ id: string;
10116
+ couponCode?: string | null;
10117
+ }>;
10118
+ shippingLines: Array<{
10119
+ __typename?: 'ShippingLine';
10120
+ shippingMethod: {
10121
+ __typename?: 'ShippingMethod';
10122
+ id: string;
10123
+ code: string;
10124
+ name: string;
10125
+ fulfillmentHandlerCode: string;
10126
+ description: string;
10127
+ };
10128
+ }>;
10129
+ taxSummary: Array<{
10130
+ __typename?: 'OrderTaxSummary';
10131
+ description: string;
10132
+ taxBase: number;
10133
+ taxRate: number;
10134
+ taxTotal: number;
10135
+ }>;
10136
+ shippingAddress?: {
10137
+ __typename?: 'OrderAddress';
10138
+ fullName?: string | null;
10139
+ company?: string | null;
10140
+ streetLine1?: string | null;
10141
+ streetLine2?: string | null;
10142
+ city?: string | null;
10143
+ province?: string | null;
10144
+ postalCode?: string | null;
10145
+ country?: string | null;
10146
+ countryCode?: string | null;
10147
+ phoneNumber?: string | null;
10148
+ } | null;
10149
+ billingAddress?: {
10150
+ __typename?: 'OrderAddress';
10151
+ fullName?: string | null;
10152
+ company?: string | null;
10153
+ streetLine1?: string | null;
10154
+ streetLine2?: string | null;
10155
+ city?: string | null;
10156
+ province?: string | null;
10157
+ postalCode?: string | null;
10158
+ country?: string | null;
10159
+ countryCode?: string | null;
10160
+ phoneNumber?: string | null;
10161
+ } | null;
10162
+ payments?: Array<{
10163
+ __typename?: 'Payment';
10164
+ id: string;
10165
+ createdAt: any;
10166
+ transactionId?: string | null;
10167
+ amount: number;
10168
+ method: string;
10169
+ state: string;
10170
+ nextStates: Array<string>;
10171
+ errorMessage?: string | null;
10172
+ metadata?: any | null;
10173
+ refunds: Array<{
10174
+ __typename?: 'Refund';
10175
+ id: string;
10176
+ createdAt: any;
10177
+ state: string;
10178
+ items: number;
10179
+ adjustment: number;
10180
+ total: number;
10181
+ paymentId: string;
10182
+ reason?: string | null;
10183
+ transactionId?: string | null;
10184
+ method?: string | null;
10185
+ metadata?: any | null;
10186
+ orderItems: Array<{
10187
+ __typename?: 'OrderItem';
10188
+ id: string;
10189
+ }>;
10190
+ }>;
10191
+ }> | null;
10192
+ fulfillments?: Array<{
10193
+ __typename?: 'Fulfillment';
10194
+ id: string;
10195
+ state: string;
10196
+ nextStates: Array<string>;
10197
+ createdAt: any;
10198
+ updatedAt: any;
10199
+ method: string;
10200
+ trackingCode?: string | null;
10201
+ summary: Array<{
10202
+ __typename?: 'FulfillmentLineSummary';
10203
+ quantity: number;
10204
+ orderLine: {
10205
+ __typename?: 'OrderLine';
10206
+ id: string;
10207
+ };
10208
+ }>;
10209
+ }> | null;
10210
+ modifications: Array<{
10211
+ __typename?: 'OrderModification';
10212
+ id: string;
10213
+ createdAt: any;
10214
+ isSettled: boolean;
10215
+ priceChange: number;
10216
+ note: string;
10217
+ payment?: {
10218
+ __typename?: 'Payment';
10219
+ id: string;
10220
+ amount: number;
10221
+ } | null;
10222
+ orderItems?: Array<{
10223
+ __typename?: 'OrderItem';
10224
+ id: string;
10225
+ }> | null;
10226
+ refund?: {
10227
+ __typename?: 'Refund';
10228
+ id: string;
10229
+ paymentId: string;
10230
+ total: number;
10231
+ } | null;
10232
+ surcharges?: Array<{
10233
+ __typename?: 'Surcharge';
10234
+ id: string;
10235
+ }> | null;
10236
+ }>;
10237
+ };
10238
+ };
10239
+ export declare type SetDraftOrderBillingAddressMutationVariables = Exact<{
10240
+ orderId: Scalars['ID'];
10241
+ input: CreateAddressInput;
10242
+ }>;
10243
+ export declare type SetDraftOrderBillingAddressMutation = {
10244
+ setDraftOrderBillingAddress: {
10245
+ __typename?: 'Order';
10246
+ id: string;
10247
+ createdAt: any;
10248
+ updatedAt: any;
10249
+ code: string;
10250
+ state: string;
10251
+ nextStates: Array<string>;
10252
+ active: boolean;
10253
+ couponCodes: Array<string>;
10254
+ subTotal: number;
10255
+ subTotalWithTax: number;
10256
+ total: number;
10257
+ totalWithTax: number;
10258
+ currencyCode: CurrencyCode;
10259
+ shipping: number;
10260
+ shippingWithTax: number;
10261
+ customer?: {
10262
+ __typename?: 'Customer';
10263
+ id: string;
10264
+ firstName: string;
10265
+ lastName: string;
10266
+ } | null;
10267
+ lines: Array<{
10268
+ __typename?: 'OrderLine';
10269
+ id: string;
10270
+ unitPrice: number;
10271
+ unitPriceWithTax: number;
10272
+ proratedUnitPrice: number;
10273
+ proratedUnitPriceWithTax: number;
10274
+ quantity: number;
10275
+ linePrice: number;
10276
+ lineTax: number;
10277
+ linePriceWithTax: number;
10278
+ discountedLinePrice: number;
10279
+ discountedLinePriceWithTax: number;
10280
+ featuredAsset?: {
10281
+ __typename?: 'Asset';
10282
+ preview: string;
10283
+ } | null;
10284
+ productVariant: {
10285
+ __typename?: 'ProductVariant';
10286
+ id: string;
10287
+ name: string;
10288
+ sku: string;
10289
+ trackInventory: GlobalFlag;
10290
+ stockOnHand: number;
10291
+ };
10292
+ discounts: Array<{
10293
+ __typename?: 'Discount';
10294
+ adjustmentSource: string;
10295
+ amount: number;
10296
+ amountWithTax: number;
10297
+ description: string;
10298
+ type: AdjustmentType;
10299
+ }>;
10300
+ fulfillments?: Array<{
10301
+ __typename?: 'Fulfillment';
10302
+ id: string;
10303
+ state: string;
10304
+ nextStates: Array<string>;
10305
+ createdAt: any;
10306
+ updatedAt: any;
10307
+ method: string;
10308
+ trackingCode?: string | null;
10309
+ summary: Array<{
10310
+ __typename?: 'FulfillmentLineSummary';
10311
+ quantity: number;
10312
+ orderLine: {
10313
+ __typename?: 'OrderLine';
10314
+ id: string;
10315
+ };
10316
+ }>;
10317
+ }> | null;
10318
+ items: Array<{
10319
+ __typename?: 'OrderItem';
10320
+ id: string;
10321
+ refundId?: string | null;
10322
+ cancelled: boolean;
10323
+ }>;
10324
+ }>;
10325
+ surcharges: Array<{
10326
+ __typename?: 'Surcharge';
10327
+ id: string;
10328
+ sku?: string | null;
10329
+ description: string;
10330
+ price: number;
10331
+ priceWithTax: number;
10332
+ taxRate: number;
10333
+ }>;
10334
+ discounts: Array<{
10335
+ __typename?: 'Discount';
10336
+ adjustmentSource: string;
10337
+ amount: number;
10338
+ amountWithTax: number;
10339
+ description: string;
10340
+ type: AdjustmentType;
10341
+ }>;
10342
+ promotions: Array<{
10343
+ __typename?: 'Promotion';
10344
+ id: string;
10345
+ couponCode?: string | null;
10346
+ }>;
10347
+ shippingLines: Array<{
10348
+ __typename?: 'ShippingLine';
10349
+ shippingMethod: {
10350
+ __typename?: 'ShippingMethod';
10351
+ id: string;
10352
+ code: string;
10353
+ name: string;
10354
+ fulfillmentHandlerCode: string;
10355
+ description: string;
10356
+ };
10357
+ }>;
10358
+ taxSummary: Array<{
10359
+ __typename?: 'OrderTaxSummary';
10360
+ description: string;
10361
+ taxBase: number;
10362
+ taxRate: number;
10363
+ taxTotal: number;
10364
+ }>;
10365
+ shippingAddress?: {
10366
+ __typename?: 'OrderAddress';
10367
+ fullName?: string | null;
10368
+ company?: string | null;
10369
+ streetLine1?: string | null;
10370
+ streetLine2?: string | null;
10371
+ city?: string | null;
10372
+ province?: string | null;
10373
+ postalCode?: string | null;
10374
+ country?: string | null;
10375
+ countryCode?: string | null;
10376
+ phoneNumber?: string | null;
10377
+ } | null;
10378
+ billingAddress?: {
10379
+ __typename?: 'OrderAddress';
10380
+ fullName?: string | null;
10381
+ company?: string | null;
10382
+ streetLine1?: string | null;
10383
+ streetLine2?: string | null;
10384
+ city?: string | null;
10385
+ province?: string | null;
10386
+ postalCode?: string | null;
10387
+ country?: string | null;
10388
+ countryCode?: string | null;
10389
+ phoneNumber?: string | null;
10390
+ } | null;
10391
+ payments?: Array<{
10392
+ __typename?: 'Payment';
10393
+ id: string;
10394
+ createdAt: any;
10395
+ transactionId?: string | null;
10396
+ amount: number;
10397
+ method: string;
10398
+ state: string;
10399
+ nextStates: Array<string>;
10400
+ errorMessage?: string | null;
10401
+ metadata?: any | null;
10402
+ refunds: Array<{
10403
+ __typename?: 'Refund';
10404
+ id: string;
10405
+ createdAt: any;
10406
+ state: string;
10407
+ items: number;
10408
+ adjustment: number;
10409
+ total: number;
10410
+ paymentId: string;
10411
+ reason?: string | null;
10412
+ transactionId?: string | null;
10413
+ method?: string | null;
10414
+ metadata?: any | null;
10415
+ orderItems: Array<{
10416
+ __typename?: 'OrderItem';
10417
+ id: string;
10418
+ }>;
10419
+ }>;
10420
+ }> | null;
10421
+ fulfillments?: Array<{
10422
+ __typename?: 'Fulfillment';
10423
+ id: string;
10424
+ state: string;
10425
+ nextStates: Array<string>;
10426
+ createdAt: any;
10427
+ updatedAt: any;
10428
+ method: string;
10429
+ trackingCode?: string | null;
10430
+ summary: Array<{
10431
+ __typename?: 'FulfillmentLineSummary';
10432
+ quantity: number;
10433
+ orderLine: {
10434
+ __typename?: 'OrderLine';
10435
+ id: string;
10436
+ };
10437
+ }>;
10438
+ }> | null;
10439
+ modifications: Array<{
10440
+ __typename?: 'OrderModification';
10441
+ id: string;
10442
+ createdAt: any;
10443
+ isSettled: boolean;
10444
+ priceChange: number;
10445
+ note: string;
10446
+ payment?: {
10447
+ __typename?: 'Payment';
10448
+ id: string;
10449
+ amount: number;
10450
+ } | null;
10451
+ orderItems?: Array<{
10452
+ __typename?: 'OrderItem';
10453
+ id: string;
10454
+ }> | null;
10455
+ refund?: {
10456
+ __typename?: 'Refund';
10457
+ id: string;
10458
+ paymentId: string;
10459
+ total: number;
10460
+ } | null;
10461
+ surcharges?: Array<{
10462
+ __typename?: 'Surcharge';
10463
+ id: string;
10464
+ }> | null;
10465
+ }>;
10466
+ };
10467
+ };
10468
+ export declare type ApplyCouponCodeToDraftOrderMutationVariables = Exact<{
10469
+ orderId: Scalars['ID'];
10470
+ couponCode: Scalars['String'];
10471
+ }>;
10472
+ export declare type ApplyCouponCodeToDraftOrderMutation = {
10473
+ applyCouponCodeToDraftOrder: {
10474
+ __typename?: 'CouponCodeExpiredError';
10475
+ errorCode: ErrorCode;
10476
+ message: string;
10477
+ } | {
10478
+ __typename?: 'CouponCodeInvalidError';
10479
+ errorCode: ErrorCode;
10480
+ message: string;
10481
+ } | {
10482
+ __typename?: 'CouponCodeLimitError';
10483
+ errorCode: ErrorCode;
10484
+ message: string;
10485
+ } | {
10486
+ __typename?: 'Order';
10487
+ id: string;
10488
+ createdAt: any;
10489
+ updatedAt: any;
10490
+ code: string;
10491
+ state: string;
10492
+ nextStates: Array<string>;
10493
+ active: boolean;
10494
+ couponCodes: Array<string>;
10495
+ subTotal: number;
10496
+ subTotalWithTax: number;
10497
+ total: number;
10498
+ totalWithTax: number;
10499
+ currencyCode: CurrencyCode;
10500
+ shipping: number;
10501
+ shippingWithTax: number;
10502
+ customer?: {
10503
+ __typename?: 'Customer';
10504
+ id: string;
10505
+ firstName: string;
10506
+ lastName: string;
10507
+ } | null;
10508
+ lines: Array<{
10509
+ __typename?: 'OrderLine';
10510
+ id: string;
10511
+ unitPrice: number;
10512
+ unitPriceWithTax: number;
10513
+ proratedUnitPrice: number;
10514
+ proratedUnitPriceWithTax: number;
10515
+ quantity: number;
10516
+ linePrice: number;
10517
+ lineTax: number;
10518
+ linePriceWithTax: number;
10519
+ discountedLinePrice: number;
10520
+ discountedLinePriceWithTax: number;
10521
+ featuredAsset?: {
10522
+ __typename?: 'Asset';
10523
+ preview: string;
10524
+ } | null;
10525
+ productVariant: {
10526
+ __typename?: 'ProductVariant';
10527
+ id: string;
10528
+ name: string;
10529
+ sku: string;
10530
+ trackInventory: GlobalFlag;
10531
+ stockOnHand: number;
10532
+ };
10533
+ discounts: Array<{
10534
+ __typename?: 'Discount';
10535
+ adjustmentSource: string;
10536
+ amount: number;
10537
+ amountWithTax: number;
10538
+ description: string;
10539
+ type: AdjustmentType;
10540
+ }>;
10541
+ fulfillments?: Array<{
10542
+ __typename?: 'Fulfillment';
10543
+ id: string;
10544
+ state: string;
10545
+ nextStates: Array<string>;
10546
+ createdAt: any;
10547
+ updatedAt: any;
10548
+ method: string;
10549
+ trackingCode?: string | null;
10550
+ summary: Array<{
10551
+ __typename?: 'FulfillmentLineSummary';
10552
+ quantity: number;
10553
+ orderLine: {
10554
+ __typename?: 'OrderLine';
10555
+ id: string;
10556
+ };
10557
+ }>;
10558
+ }> | null;
10559
+ items: Array<{
10560
+ __typename?: 'OrderItem';
10561
+ id: string;
10562
+ refundId?: string | null;
10563
+ cancelled: boolean;
10564
+ }>;
10565
+ }>;
10566
+ surcharges: Array<{
10567
+ __typename?: 'Surcharge';
10568
+ id: string;
10569
+ sku?: string | null;
10570
+ description: string;
10571
+ price: number;
10572
+ priceWithTax: number;
10573
+ taxRate: number;
10574
+ }>;
10575
+ discounts: Array<{
10576
+ __typename?: 'Discount';
10577
+ adjustmentSource: string;
10578
+ amount: number;
10579
+ amountWithTax: number;
10580
+ description: string;
10581
+ type: AdjustmentType;
10582
+ }>;
10583
+ promotions: Array<{
10584
+ __typename?: 'Promotion';
10585
+ id: string;
10586
+ couponCode?: string | null;
10587
+ }>;
10588
+ shippingLines: Array<{
10589
+ __typename?: 'ShippingLine';
10590
+ shippingMethod: {
10591
+ __typename?: 'ShippingMethod';
10592
+ id: string;
10593
+ code: string;
10594
+ name: string;
10595
+ fulfillmentHandlerCode: string;
10596
+ description: string;
10597
+ };
10598
+ }>;
10599
+ taxSummary: Array<{
10600
+ __typename?: 'OrderTaxSummary';
10601
+ description: string;
10602
+ taxBase: number;
10603
+ taxRate: number;
10604
+ taxTotal: number;
10605
+ }>;
10606
+ shippingAddress?: {
10607
+ __typename?: 'OrderAddress';
10608
+ fullName?: string | null;
10609
+ company?: string | null;
10610
+ streetLine1?: string | null;
10611
+ streetLine2?: string | null;
10612
+ city?: string | null;
10613
+ province?: string | null;
10614
+ postalCode?: string | null;
10615
+ country?: string | null;
10616
+ countryCode?: string | null;
10617
+ phoneNumber?: string | null;
10618
+ } | null;
10619
+ billingAddress?: {
10620
+ __typename?: 'OrderAddress';
10621
+ fullName?: string | null;
10622
+ company?: string | null;
10623
+ streetLine1?: string | null;
10624
+ streetLine2?: string | null;
10625
+ city?: string | null;
10626
+ province?: string | null;
10627
+ postalCode?: string | null;
10628
+ country?: string | null;
10629
+ countryCode?: string | null;
10630
+ phoneNumber?: string | null;
10631
+ } | null;
10632
+ payments?: Array<{
10633
+ __typename?: 'Payment';
10634
+ id: string;
10635
+ createdAt: any;
10636
+ transactionId?: string | null;
10637
+ amount: number;
10638
+ method: string;
10639
+ state: string;
10640
+ nextStates: Array<string>;
10641
+ errorMessage?: string | null;
10642
+ metadata?: any | null;
10643
+ refunds: Array<{
10644
+ __typename?: 'Refund';
10645
+ id: string;
10646
+ createdAt: any;
10647
+ state: string;
10648
+ items: number;
10649
+ adjustment: number;
10650
+ total: number;
10651
+ paymentId: string;
10652
+ reason?: string | null;
10653
+ transactionId?: string | null;
10654
+ method?: string | null;
10655
+ metadata?: any | null;
10656
+ orderItems: Array<{
10657
+ __typename?: 'OrderItem';
10658
+ id: string;
10659
+ }>;
10660
+ }>;
10661
+ }> | null;
10662
+ fulfillments?: Array<{
10663
+ __typename?: 'Fulfillment';
7780
10664
  id: string;
7781
- }>;
7782
- } | {
7783
- __typename?: 'FulfillmentStateTransitionError';
7784
- transitionError: string;
7785
- errorCode: ErrorCode;
7786
- message: string;
7787
- };
7788
- };
7789
- export declare type GetOrderSummaryQueryVariables = Exact<{
7790
- start: Scalars['DateTime'];
7791
- end: Scalars['DateTime'];
7792
- }>;
7793
- export declare type GetOrderSummaryQuery = {
7794
- orders: {
7795
- __typename?: 'OrderList';
7796
- totalItems: number;
7797
- items: Array<{
7798
- __typename?: 'Order';
10665
+ state: string;
10666
+ nextStates: Array<string>;
10667
+ createdAt: any;
10668
+ updatedAt: any;
10669
+ method: string;
10670
+ trackingCode?: string | null;
10671
+ summary: Array<{
10672
+ __typename?: 'FulfillmentLineSummary';
10673
+ quantity: number;
10674
+ orderLine: {
10675
+ __typename?: 'OrderLine';
10676
+ id: string;
10677
+ };
10678
+ }>;
10679
+ }> | null;
10680
+ modifications: Array<{
10681
+ __typename?: 'OrderModification';
7799
10682
  id: string;
7800
- total: number;
7801
- currencyCode: CurrencyCode;
10683
+ createdAt: any;
10684
+ isSettled: boolean;
10685
+ priceChange: number;
10686
+ note: string;
10687
+ payment?: {
10688
+ __typename?: 'Payment';
10689
+ id: string;
10690
+ amount: number;
10691
+ } | null;
10692
+ orderItems?: Array<{
10693
+ __typename?: 'OrderItem';
10694
+ id: string;
10695
+ }> | null;
10696
+ refund?: {
10697
+ __typename?: 'Refund';
10698
+ id: string;
10699
+ paymentId: string;
10700
+ total: number;
10701
+ } | null;
10702
+ surcharges?: Array<{
10703
+ __typename?: 'Surcharge';
10704
+ id: string;
10705
+ }> | null;
7802
10706
  }>;
7803
10707
  };
7804
10708
  };
7805
- export declare type ModifyOrderMutationVariables = Exact<{
7806
- input: ModifyOrderInput;
10709
+ export declare type RemoveCouponCodeFromDraftOrderMutationVariables = Exact<{
10710
+ orderId: Scalars['ID'];
10711
+ couponCode: Scalars['String'];
7807
10712
  }>;
7808
- export declare type ModifyOrderMutation = {
7809
- modifyOrder: {
7810
- __typename?: 'CouponCodeExpiredError';
7811
- errorCode: ErrorCode;
7812
- message: string;
7813
- } | {
7814
- __typename?: 'CouponCodeInvalidError';
7815
- errorCode: ErrorCode;
7816
- message: string;
7817
- } | {
7818
- __typename?: 'CouponCodeLimitError';
7819
- errorCode: ErrorCode;
7820
- message: string;
7821
- } | {
7822
- __typename?: 'InsufficientStockError';
7823
- errorCode: ErrorCode;
7824
- message: string;
7825
- } | {
7826
- __typename?: 'NegativeQuantityError';
7827
- errorCode: ErrorCode;
7828
- message: string;
7829
- } | {
7830
- __typename?: 'NoChangesSpecifiedError';
7831
- errorCode: ErrorCode;
7832
- message: string;
7833
- } | {
10713
+ export declare type RemoveCouponCodeFromDraftOrderMutation = {
10714
+ removeCouponCodeFromDraftOrder?: {
7834
10715
  __typename?: 'Order';
7835
10716
  id: string;
7836
10717
  createdAt: any;
@@ -7886,28 +10767,29 @@ export declare type ModifyOrderMutation = {
7886
10767
  description: string;
7887
10768
  type: AdjustmentType;
7888
10769
  }>;
10770
+ fulfillments?: Array<{
10771
+ __typename?: 'Fulfillment';
10772
+ id: string;
10773
+ state: string;
10774
+ nextStates: Array<string>;
10775
+ createdAt: any;
10776
+ updatedAt: any;
10777
+ method: string;
10778
+ trackingCode?: string | null;
10779
+ summary: Array<{
10780
+ __typename?: 'FulfillmentLineSummary';
10781
+ quantity: number;
10782
+ orderLine: {
10783
+ __typename?: 'OrderLine';
10784
+ id: string;
10785
+ };
10786
+ }>;
10787
+ }> | null;
7889
10788
  items: Array<{
7890
10789
  __typename?: 'OrderItem';
7891
10790
  id: string;
7892
- unitPrice: number;
7893
- unitPriceWithTax: number;
7894
- taxRate: number;
7895
10791
  refundId?: string | null;
7896
10792
  cancelled: boolean;
7897
- fulfillment?: {
7898
- __typename?: 'Fulfillment';
7899
- id: string;
7900
- state: string;
7901
- nextStates: Array<string>;
7902
- createdAt: any;
7903
- updatedAt: any;
7904
- method: string;
7905
- trackingCode?: string | null;
7906
- orderItems: Array<{
7907
- __typename?: 'OrderItem';
7908
- id: string;
7909
- }>;
7910
- } | null;
7911
10793
  }>;
7912
10794
  }>;
7913
10795
  surcharges: Array<{
@@ -8015,9 +10897,13 @@ export declare type ModifyOrderMutation = {
8015
10897
  updatedAt: any;
8016
10898
  method: string;
8017
10899
  trackingCode?: string | null;
8018
- orderItems: Array<{
8019
- __typename?: 'OrderItem';
8020
- id: string;
10900
+ summary: Array<{
10901
+ __typename?: 'FulfillmentLineSummary';
10902
+ quantity: number;
10903
+ orderLine: {
10904
+ __typename?: 'OrderLine';
10905
+ id: string;
10906
+ };
8021
10907
  }>;
8022
10908
  }> | null;
8023
10909
  modifications: Array<{
@@ -8047,30 +10933,34 @@ export declare type ModifyOrderMutation = {
8047
10933
  id: string;
8048
10934
  }> | null;
8049
10935
  }>;
8050
- } | {
8051
- __typename?: 'OrderLimitError';
8052
- errorCode: ErrorCode;
8053
- message: string;
8054
- } | {
8055
- __typename?: 'OrderModificationStateError';
8056
- errorCode: ErrorCode;
8057
- message: string;
8058
- } | {
8059
- __typename?: 'PaymentMethodMissingError';
10936
+ } | null;
10937
+ };
10938
+ export declare type DraftOrderEligibleShippingMethodsQueryVariables = Exact<{
10939
+ orderId: Scalars['ID'];
10940
+ }>;
10941
+ export declare type DraftOrderEligibleShippingMethodsQuery = {
10942
+ eligibleShippingMethodsForDraftOrder: Array<{
10943
+ __typename?: 'ShippingMethodQuote';
10944
+ id: string;
10945
+ name: string;
10946
+ code: string;
10947
+ description: string;
10948
+ price: number;
10949
+ priceWithTax: number;
10950
+ metadata?: any | null;
10951
+ }>;
10952
+ };
10953
+ export declare type SetDraftOrderShippingMethodMutationVariables = Exact<{
10954
+ orderId: Scalars['ID'];
10955
+ shippingMethodId: Scalars['ID'];
10956
+ }>;
10957
+ export declare type SetDraftOrderShippingMethodMutation = {
10958
+ setDraftOrderShippingMethod: {
10959
+ __typename?: 'IneligibleShippingMethodError';
8060
10960
  errorCode: ErrorCode;
8061
10961
  message: string;
8062
10962
  } | {
8063
- __typename?: 'RefundPaymentIdMissingError';
8064
- errorCode: ErrorCode;
8065
- message: string;
8066
- };
8067
- };
8068
- export declare type AddManualPaymentMutationVariables = Exact<{
8069
- input: ManualPaymentInput;
8070
- }>;
8071
- export declare type AddManualPaymentMutation = {
8072
- addManualPaymentToOrder: {
8073
- __typename?: 'ManualPaymentStateError';
10963
+ __typename?: 'NoActiveOrderError';
8074
10964
  errorCode: ErrorCode;
8075
10965
  message: string;
8076
10966
  } | {
@@ -8129,28 +11019,29 @@ export declare type AddManualPaymentMutation = {
8129
11019
  description: string;
8130
11020
  type: AdjustmentType;
8131
11021
  }>;
11022
+ fulfillments?: Array<{
11023
+ __typename?: 'Fulfillment';
11024
+ id: string;
11025
+ state: string;
11026
+ nextStates: Array<string>;
11027
+ createdAt: any;
11028
+ updatedAt: any;
11029
+ method: string;
11030
+ trackingCode?: string | null;
11031
+ summary: Array<{
11032
+ __typename?: 'FulfillmentLineSummary';
11033
+ quantity: number;
11034
+ orderLine: {
11035
+ __typename?: 'OrderLine';
11036
+ id: string;
11037
+ };
11038
+ }>;
11039
+ }> | null;
8132
11040
  items: Array<{
8133
11041
  __typename?: 'OrderItem';
8134
11042
  id: string;
8135
- unitPrice: number;
8136
- unitPriceWithTax: number;
8137
- taxRate: number;
8138
11043
  refundId?: string | null;
8139
11044
  cancelled: boolean;
8140
- fulfillment?: {
8141
- __typename?: 'Fulfillment';
8142
- id: string;
8143
- state: string;
8144
- nextStates: Array<string>;
8145
- createdAt: any;
8146
- updatedAt: any;
8147
- method: string;
8148
- trackingCode?: string | null;
8149
- orderItems: Array<{
8150
- __typename?: 'OrderItem';
8151
- id: string;
8152
- }>;
8153
- } | null;
8154
11045
  }>;
8155
11046
  }>;
8156
11047
  surcharges: Array<{
@@ -8258,9 +11149,13 @@ export declare type AddManualPaymentMutation = {
8258
11149
  updatedAt: any;
8259
11150
  method: string;
8260
11151
  trackingCode?: string | null;
8261
- orderItems: Array<{
8262
- __typename?: 'OrderItem';
8263
- id: string;
11152
+ summary: Array<{
11153
+ __typename?: 'FulfillmentLineSummary';
11154
+ quantity: number;
11155
+ orderLine: {
11156
+ __typename?: 'OrderLine';
11157
+ id: string;
11158
+ };
8264
11159
  }>;
8265
11160
  }> | null;
8266
11161
  modifications: Array<{
@@ -8290,6 +11185,10 @@ export declare type AddManualPaymentMutation = {
8290
11185
  id: string;
8291
11186
  }> | null;
8292
11187
  }>;
11188
+ } | {
11189
+ __typename?: 'OrderModificationError';
11190
+ errorCode: ErrorCode;
11191
+ message: string;
8293
11192
  };
8294
11193
  };
8295
11194
  export declare type AssetFragment = {
@@ -8981,6 +11880,16 @@ export declare type DeleteProductMutation = {
8981
11880
  message?: string | null;
8982
11881
  };
8983
11882
  };
11883
+ export declare type DeleteProductsMutationVariables = Exact<{
11884
+ ids: Array<Scalars['ID']> | Scalars['ID'];
11885
+ }>;
11886
+ export declare type DeleteProductsMutation = {
11887
+ deleteProducts: Array<{
11888
+ __typename?: 'DeletionResponse';
11889
+ result: DeletionResult;
11890
+ message?: string | null;
11891
+ }>;
11892
+ };
8984
11893
  export declare type CreateProductVariantsMutationVariables = Exact<{
8985
11894
  input: Array<CreateProductVariantInput> | CreateProductVariantInput;
8986
11895
  }>;
@@ -9880,6 +12789,16 @@ export declare type UpdateProductOptionMutation = {
9880
12789
  }>;
9881
12790
  };
9882
12791
  };
12792
+ export declare type DeleteProductOptionMutationVariables = Exact<{
12793
+ id: Scalars['ID'];
12794
+ }>;
12795
+ export declare type DeleteProductOptionMutation = {
12796
+ deleteProductOption: {
12797
+ __typename?: 'DeletionResponse';
12798
+ result: DeletionResult;
12799
+ message?: string | null;
12800
+ };
12801
+ };
9883
12802
  export declare type DeleteProductVariantMutationVariables = Exact<{
9884
12803
  id: Scalars['ID'];
9885
12804
  }>;
@@ -10018,6 +12937,12 @@ export declare type GetProductVariantQuery = {
10018
12937
  id: string;
10019
12938
  name: string;
10020
12939
  sku: string;
12940
+ stockOnHand: number;
12941
+ stockAllocated: number;
12942
+ stockLevel: string;
12943
+ useGlobalOutOfStockThreshold: boolean;
12944
+ price: number;
12945
+ priceWithTax: number;
10021
12946
  featuredAsset?: {
10022
12947
  __typename?: 'Asset';
10023
12948
  id: string;
@@ -10374,6 +13299,7 @@ export declare type GetAdjustmentOperationsQuery = {
10374
13299
  list: boolean;
10375
13300
  ui?: any | null;
10376
13301
  label?: string | null;
13302
+ description?: string | null;
10377
13303
  }>;
10378
13304
  }>;
10379
13305
  promotionActions: Array<{
@@ -10389,6 +13315,7 @@ export declare type GetAdjustmentOperationsQuery = {
10389
13315
  list: boolean;
10390
13316
  ui?: any | null;
10391
13317
  label?: string | null;
13318
+ description?: string | null;
10392
13319
  }>;
10393
13320
  }>;
10394
13321
  };
@@ -11293,6 +14220,7 @@ export declare type GetPaymentMethodOperationsQuery = {
11293
14220
  list: boolean;
11294
14221
  ui?: any | null;
11295
14222
  label?: string | null;
14223
+ description?: string | null;
11296
14224
  }>;
11297
14225
  }>;
11298
14226
  paymentMethodHandlers: Array<{
@@ -11308,6 +14236,7 @@ export declare type GetPaymentMethodOperationsQuery = {
11308
14236
  list: boolean;
11309
14237
  ui?: any | null;
11310
14238
  label?: string | null;
14239
+ description?: string | null;
11311
14240
  }>;
11312
14241
  }>;
11313
14242
  };
@@ -16377,6 +19306,7 @@ export declare type ConfigurableOperationDefFragment = {
16377
19306
  list: boolean;
16378
19307
  ui?: any | null;
16379
19308
  label?: string | null;
19309
+ description?: string | null;
16380
19310
  }>;
16381
19311
  };
16382
19312
  declare type ErrorResult_AlreadyRefundedError_Fragment = {
@@ -16389,6 +19319,11 @@ declare type ErrorResult_CancelActiveOrderError_Fragment = {
16389
19319
  errorCode: ErrorCode;
16390
19320
  message: string;
16391
19321
  };
19322
+ declare type ErrorResult_CancelPaymentError_Fragment = {
19323
+ __typename?: 'CancelPaymentError';
19324
+ errorCode: ErrorCode;
19325
+ message: string;
19326
+ };
16392
19327
  declare type ErrorResult_ChannelDefaultLanguageError_Fragment = {
16393
19328
  __typename?: 'ChannelDefaultLanguageError';
16394
19329
  errorCode: ErrorCode;
@@ -16424,11 +19359,21 @@ declare type ErrorResult_EmptyOrderLineSelectionError_Fragment = {
16424
19359
  errorCode: ErrorCode;
16425
19360
  message: string;
16426
19361
  };
19362
+ declare type ErrorResult_FacetInUseError_Fragment = {
19363
+ __typename?: 'FacetInUseError';
19364
+ errorCode: ErrorCode;
19365
+ message: string;
19366
+ };
16427
19367
  declare type ErrorResult_FulfillmentStateTransitionError_Fragment = {
16428
19368
  __typename?: 'FulfillmentStateTransitionError';
16429
19369
  errorCode: ErrorCode;
16430
19370
  message: string;
16431
19371
  };
19372
+ declare type ErrorResult_IneligibleShippingMethodError_Fragment = {
19373
+ __typename?: 'IneligibleShippingMethodError';
19374
+ errorCode: ErrorCode;
19375
+ message: string;
19376
+ };
16432
19377
  declare type ErrorResult_InsufficientStockError_Fragment = {
16433
19378
  __typename?: 'InsufficientStockError';
16434
19379
  errorCode: ErrorCode;
@@ -16489,6 +19434,11 @@ declare type ErrorResult_NegativeQuantityError_Fragment = {
16489
19434
  errorCode: ErrorCode;
16490
19435
  message: string;
16491
19436
  };
19437
+ declare type ErrorResult_NoActiveOrderError_Fragment = {
19438
+ __typename?: 'NoActiveOrderError';
19439
+ errorCode: ErrorCode;
19440
+ message: string;
19441
+ };
16492
19442
  declare type ErrorResult_NoChangesSpecifiedError_Fragment = {
16493
19443
  __typename?: 'NoChangesSpecifiedError';
16494
19444
  errorCode: ErrorCode;
@@ -16504,6 +19454,11 @@ declare type ErrorResult_OrderLimitError_Fragment = {
16504
19454
  errorCode: ErrorCode;
16505
19455
  message: string;
16506
19456
  };
19457
+ declare type ErrorResult_OrderModificationError_Fragment = {
19458
+ __typename?: 'OrderModificationError';
19459
+ errorCode: ErrorCode;
19460
+ message: string;
19461
+ };
16507
19462
  declare type ErrorResult_OrderModificationStateError_Fragment = {
16508
19463
  __typename?: 'OrderModificationStateError';
16509
19464
  errorCode: ErrorCode;
@@ -16559,7 +19514,7 @@ declare type ErrorResult_SettlePaymentError_Fragment = {
16559
19514
  errorCode: ErrorCode;
16560
19515
  message: string;
16561
19516
  };
16562
- export declare type ErrorResultFragment = ErrorResult_AlreadyRefundedError_Fragment | ErrorResult_CancelActiveOrderError_Fragment | ErrorResult_ChannelDefaultLanguageError_Fragment | ErrorResult_CouponCodeExpiredError_Fragment | ErrorResult_CouponCodeInvalidError_Fragment | ErrorResult_CouponCodeLimitError_Fragment | ErrorResult_CreateFulfillmentError_Fragment | ErrorResult_EmailAddressConflictError_Fragment | ErrorResult_EmptyOrderLineSelectionError_Fragment | ErrorResult_FulfillmentStateTransitionError_Fragment | ErrorResult_InsufficientStockError_Fragment | ErrorResult_InsufficientStockOnHandError_Fragment | ErrorResult_InvalidCredentialsError_Fragment | ErrorResult_InvalidFulfillmentHandlerError_Fragment | ErrorResult_ItemsAlreadyFulfilledError_Fragment | ErrorResult_LanguageNotAvailableError_Fragment | ErrorResult_ManualPaymentStateError_Fragment | ErrorResult_MimeTypeError_Fragment | ErrorResult_MissingConditionsError_Fragment | ErrorResult_MultipleOrderError_Fragment | ErrorResult_NativeAuthStrategyError_Fragment | ErrorResult_NegativeQuantityError_Fragment | ErrorResult_NoChangesSpecifiedError_Fragment | ErrorResult_NothingToRefundError_Fragment | ErrorResult_OrderLimitError_Fragment | ErrorResult_OrderModificationStateError_Fragment | ErrorResult_OrderStateTransitionError_Fragment | ErrorResult_PaymentMethodMissingError_Fragment | ErrorResult_PaymentOrderMismatchError_Fragment | ErrorResult_PaymentStateTransitionError_Fragment | ErrorResult_ProductOptionInUseError_Fragment | ErrorResult_QuantityTooGreatError_Fragment | ErrorResult_RefundOrderStateError_Fragment | ErrorResult_RefundPaymentIdMissingError_Fragment | ErrorResult_RefundStateTransitionError_Fragment | ErrorResult_SettlePaymentError_Fragment;
19517
+ export declare type ErrorResultFragment = ErrorResult_AlreadyRefundedError_Fragment | ErrorResult_CancelActiveOrderError_Fragment | ErrorResult_CancelPaymentError_Fragment | ErrorResult_ChannelDefaultLanguageError_Fragment | ErrorResult_CouponCodeExpiredError_Fragment | ErrorResult_CouponCodeInvalidError_Fragment | ErrorResult_CouponCodeLimitError_Fragment | ErrorResult_CreateFulfillmentError_Fragment | ErrorResult_EmailAddressConflictError_Fragment | ErrorResult_EmptyOrderLineSelectionError_Fragment | ErrorResult_FacetInUseError_Fragment | ErrorResult_FulfillmentStateTransitionError_Fragment | ErrorResult_IneligibleShippingMethodError_Fragment | ErrorResult_InsufficientStockError_Fragment | ErrorResult_InsufficientStockOnHandError_Fragment | ErrorResult_InvalidCredentialsError_Fragment | ErrorResult_InvalidFulfillmentHandlerError_Fragment | ErrorResult_ItemsAlreadyFulfilledError_Fragment | ErrorResult_LanguageNotAvailableError_Fragment | ErrorResult_ManualPaymentStateError_Fragment | ErrorResult_MimeTypeError_Fragment | ErrorResult_MissingConditionsError_Fragment | ErrorResult_MultipleOrderError_Fragment | ErrorResult_NativeAuthStrategyError_Fragment | ErrorResult_NegativeQuantityError_Fragment | ErrorResult_NoActiveOrderError_Fragment | ErrorResult_NoChangesSpecifiedError_Fragment | ErrorResult_NothingToRefundError_Fragment | ErrorResult_OrderLimitError_Fragment | ErrorResult_OrderModificationError_Fragment | ErrorResult_OrderModificationStateError_Fragment | ErrorResult_OrderStateTransitionError_Fragment | ErrorResult_PaymentMethodMissingError_Fragment | ErrorResult_PaymentOrderMismatchError_Fragment | ErrorResult_PaymentStateTransitionError_Fragment | ErrorResult_ProductOptionInUseError_Fragment | ErrorResult_QuantityTooGreatError_Fragment | ErrorResult_RefundOrderStateError_Fragment | ErrorResult_RefundPaymentIdMissingError_Fragment | ErrorResult_RefundStateTransitionError_Fragment | ErrorResult_SettlePaymentError_Fragment;
16563
19518
  export declare type ShippingMethodFragment = {
16564
19519
  __typename?: 'ShippingMethod';
16565
19520
  id: string;
@@ -16696,6 +19651,7 @@ export declare type GetShippingMethodOperationsQuery = {
16696
19651
  list: boolean;
16697
19652
  ui?: any | null;
16698
19653
  label?: string | null;
19654
+ description?: string | null;
16699
19655
  }>;
16700
19656
  }>;
16701
19657
  shippingCalculators: Array<{
@@ -16711,6 +19667,7 @@ export declare type GetShippingMethodOperationsQuery = {
16711
19667
  list: boolean;
16712
19668
  ui?: any | null;
16713
19669
  label?: string | null;
19670
+ description?: string | null;
16714
19671
  }>;
16715
19672
  }>;
16716
19673
  fulfillmentHandlers: Array<{
@@ -16726,6 +19683,7 @@ export declare type GetShippingMethodOperationsQuery = {
16726
19683
  list: boolean;
16727
19684
  ui?: any | null;
16728
19685
  label?: string | null;
19686
+ description?: string | null;
16729
19687
  }>;
16730
19688
  }>;
16731
19689
  };
@@ -16849,4 +19807,35 @@ export declare type TestEligibleShippingMethodsQuery = {
16849
19807
  metadata?: any | null;
16850
19808
  }>;
16851
19809
  };
19810
+ export declare type GetCustomerAddressesQueryVariables = Exact<{
19811
+ customerId: Scalars['ID'];
19812
+ }>;
19813
+ export declare type GetCustomerAddressesQuery = {
19814
+ customer?: {
19815
+ __typename?: 'Customer';
19816
+ id: string;
19817
+ addresses?: Array<{
19818
+ __typename?: 'Address';
19819
+ id: string;
19820
+ createdAt: any;
19821
+ updatedAt: any;
19822
+ fullName?: string | null;
19823
+ company?: string | null;
19824
+ streetLine1: string;
19825
+ streetLine2?: string | null;
19826
+ city?: string | null;
19827
+ province?: string | null;
19828
+ postalCode?: string | null;
19829
+ phoneNumber?: string | null;
19830
+ defaultShippingAddress?: boolean | null;
19831
+ defaultBillingAddress?: boolean | null;
19832
+ country: {
19833
+ __typename?: 'Country';
19834
+ id: string;
19835
+ code: string;
19836
+ name: string;
19837
+ };
19838
+ }> | null;
19839
+ } | null;
19840
+ };
16852
19841
  export {};