@gradientedge/commercetools-utils 5.9.1 → 5.11.0

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 (695) hide show
  1. package/dist/cjs/api/CommercetoolsApi.d.ts +1252 -0
  2. package/dist/cjs/api/CommercetoolsApi.d.ts.map +1 -0
  3. package/dist/cjs/api/CommercetoolsApi.js +2106 -0
  4. package/dist/cjs/api/CommercetoolsApi.js.map +1 -0
  5. package/dist/cjs/api/index.d.ts +3 -0
  6. package/dist/cjs/api/index.d.ts.map +1 -0
  7. package/dist/cjs/api/index.js +19 -0
  8. package/dist/cjs/api/index.js.map +1 -0
  9. package/dist/cjs/api/types.d.ts +33 -0
  10. package/dist/cjs/api/types.d.ts.map +1 -0
  11. package/dist/cjs/api/types.js +3 -0
  12. package/dist/cjs/api/types.js.map +1 -0
  13. package/dist/cjs/auth/CommercetoolsAuth.d.ts +182 -0
  14. package/dist/cjs/auth/CommercetoolsAuth.d.ts.map +1 -0
  15. package/dist/cjs/auth/CommercetoolsAuth.js +238 -0
  16. package/dist/cjs/auth/CommercetoolsAuth.js.map +1 -0
  17. package/dist/cjs/auth/CommercetoolsAuthApi.d.ts +83 -0
  18. package/dist/cjs/auth/CommercetoolsAuthApi.d.ts.map +1 -0
  19. package/dist/cjs/auth/CommercetoolsAuthApi.js +169 -0
  20. package/dist/cjs/auth/CommercetoolsAuthApi.js.map +1 -0
  21. package/dist/cjs/auth/CommercetoolsGrant.d.ts +66 -0
  22. package/dist/cjs/auth/CommercetoolsGrant.d.ts.map +1 -0
  23. package/dist/cjs/auth/CommercetoolsGrant.js +99 -0
  24. package/dist/cjs/auth/CommercetoolsGrant.js.map +1 -0
  25. package/dist/cjs/auth/constants.d.ts +7 -0
  26. package/dist/cjs/auth/constants.d.ts.map +1 -0
  27. package/dist/cjs/auth/constants.js +31 -0
  28. package/dist/cjs/auth/constants.js.map +1 -0
  29. package/dist/cjs/auth/index.d.ts +4 -0
  30. package/dist/cjs/auth/index.d.ts.map +1 -0
  31. package/dist/cjs/auth/index.js +19 -0
  32. package/dist/cjs/auth/index.js.map +1 -0
  33. package/dist/cjs/auth/scopes.d.ts +11 -0
  34. package/dist/cjs/auth/scopes.d.ts.map +1 -0
  35. package/dist/cjs/auth/scopes.js +30 -0
  36. package/dist/cjs/auth/scopes.js.map +1 -0
  37. package/dist/cjs/auth/types.d.ts +118 -0
  38. package/dist/cjs/auth/types.d.ts.map +1 -0
  39. package/dist/cjs/auth/types.js +28 -0
  40. package/dist/cjs/auth/types.js.map +1 -0
  41. package/dist/{typings → cjs}/auth/utils.d.ts +1 -0
  42. package/dist/cjs/auth/utils.d.ts.map +1 -0
  43. package/dist/cjs/auth/utils.js +14 -0
  44. package/dist/cjs/auth/utils.js.map +1 -0
  45. package/dist/cjs/constants.d.ts +33 -0
  46. package/dist/cjs/constants.d.ts.map +1 -0
  47. package/dist/cjs/constants.js +46 -0
  48. package/dist/cjs/constants.js.map +1 -0
  49. package/dist/cjs/error/CommercetoolsError.d.ts +34 -0
  50. package/dist/cjs/error/CommercetoolsError.d.ts.map +1 -0
  51. package/dist/cjs/error/CommercetoolsError.js +113 -0
  52. package/dist/cjs/error/CommercetoolsError.js.map +1 -0
  53. package/dist/cjs/error/index.d.ts +2 -0
  54. package/dist/cjs/error/index.d.ts.map +1 -0
  55. package/dist/cjs/error/index.js +18 -0
  56. package/dist/cjs/error/index.js.map +1 -0
  57. package/dist/cjs/index.d.ts +8 -0
  58. package/dist/cjs/index.d.ts.map +1 -0
  59. package/dist/cjs/index.js +26 -0
  60. package/dist/cjs/index.js.map +1 -0
  61. package/dist/cjs/models/associate-role.d.ts +319 -0
  62. package/dist/cjs/models/associate-role.d.ts.map +1 -0
  63. package/dist/cjs/models/associate-role.js +8 -0
  64. package/dist/cjs/models/associate-role.js.map +1 -0
  65. package/dist/cjs/models/attribute-group.d.ts +253 -0
  66. package/dist/cjs/models/attribute-group.d.ts.map +1 -0
  67. package/dist/cjs/models/attribute-group.js +8 -0
  68. package/dist/cjs/models/attribute-group.js.map +1 -0
  69. package/dist/cjs/models/business-unit.d.ts +1197 -0
  70. package/dist/cjs/models/business-unit.d.ts.map +1 -0
  71. package/dist/cjs/models/business-unit.js +8 -0
  72. package/dist/cjs/models/business-unit.js.map +1 -0
  73. package/dist/cjs/models/cart-discount.d.ts +716 -0
  74. package/dist/cjs/models/cart-discount.d.ts.map +1 -0
  75. package/dist/cjs/models/cart-discount.js +8 -0
  76. package/dist/cjs/models/cart-discount.js.map +1 -0
  77. package/dist/cjs/models/cart.d.ts +3350 -0
  78. package/dist/cjs/models/cart.d.ts.map +1 -0
  79. package/dist/cjs/models/cart.js +8 -0
  80. package/dist/cjs/models/cart.js.map +1 -0
  81. package/dist/cjs/models/category.d.ts +634 -0
  82. package/dist/cjs/models/category.d.ts.map +1 -0
  83. package/dist/cjs/models/category.js +8 -0
  84. package/dist/cjs/models/category.js.map +1 -0
  85. package/dist/cjs/models/channel.d.ts +379 -0
  86. package/dist/cjs/models/channel.d.ts.map +1 -0
  87. package/dist/cjs/models/channel.js +8 -0
  88. package/dist/cjs/models/channel.js.map +1 -0
  89. package/dist/cjs/models/common.d.ts +1096 -0
  90. package/dist/cjs/models/common.d.ts.map +1 -0
  91. package/dist/cjs/models/common.js +8 -0
  92. package/dist/cjs/models/common.js.map +1 -0
  93. package/dist/cjs/models/custom-object.d.ts +151 -0
  94. package/dist/cjs/models/custom-object.d.ts.map +1 -0
  95. package/dist/cjs/models/custom-object.js +8 -0
  96. package/dist/cjs/models/custom-object.js.map +1 -0
  97. package/dist/cjs/models/customer-group.d.ts +235 -0
  98. package/dist/cjs/models/customer-group.d.ts.map +1 -0
  99. package/dist/cjs/models/customer-group.js +8 -0
  100. package/dist/cjs/models/customer-group.js.map +1 -0
  101. package/dist/cjs/models/customer.d.ts +1221 -0
  102. package/dist/cjs/models/customer.d.ts.map +1 -0
  103. package/dist/cjs/models/customer.js +8 -0
  104. package/dist/cjs/models/customer.js.map +1 -0
  105. package/dist/cjs/models/discount-code.d.ts +439 -0
  106. package/dist/cjs/models/discount-code.d.ts.map +1 -0
  107. package/dist/cjs/models/discount-code.js +8 -0
  108. package/dist/cjs/models/discount-code.js.map +1 -0
  109. package/dist/cjs/models/error.d.ts +3062 -0
  110. package/dist/cjs/models/error.d.ts.map +1 -0
  111. package/dist/cjs/models/error.js +8 -0
  112. package/dist/cjs/models/error.js.map +1 -0
  113. package/dist/cjs/models/extension.d.ts +335 -0
  114. package/dist/cjs/models/extension.d.ts.map +1 -0
  115. package/dist/cjs/models/extension.js +8 -0
  116. package/dist/cjs/models/extension.js.map +1 -0
  117. package/dist/cjs/models/graph-ql.d.ts +63 -0
  118. package/dist/cjs/models/graph-ql.d.ts.map +1 -0
  119. package/dist/cjs/models/graph-ql.js +8 -0
  120. package/dist/cjs/models/graph-ql.js.map +1 -0
  121. package/dist/cjs/models/index.d.ts +42 -0
  122. package/dist/cjs/models/index.d.ts.map +1 -0
  123. package/dist/cjs/models/index.js +58 -0
  124. package/dist/cjs/models/index.js.map +1 -0
  125. package/dist/cjs/models/inventory.d.ts +327 -0
  126. package/dist/cjs/models/inventory.d.ts.map +1 -0
  127. package/dist/cjs/models/inventory.js +8 -0
  128. package/dist/cjs/models/inventory.js.map +1 -0
  129. package/dist/cjs/models/me.d.ts +2483 -0
  130. package/dist/cjs/models/me.d.ts.map +1 -0
  131. package/dist/cjs/models/me.js +8 -0
  132. package/dist/cjs/models/me.js.map +1 -0
  133. package/dist/cjs/models/message.d.ts +15095 -0
  134. package/dist/cjs/models/message.d.ts.map +1 -0
  135. package/dist/cjs/models/message.js +8 -0
  136. package/dist/cjs/models/message.js.map +1 -0
  137. package/dist/cjs/models/order-edit.d.ts +1645 -0
  138. package/dist/cjs/models/order-edit.d.ts.map +1 -0
  139. package/dist/cjs/models/order-edit.js +8 -0
  140. package/dist/cjs/models/order-edit.js.map +1 -0
  141. package/dist/{typings → cjs}/models/order.d.ts +1490 -15
  142. package/dist/cjs/models/order.d.ts.map +1 -0
  143. package/dist/cjs/models/order.js +8 -0
  144. package/dist/cjs/models/order.js.map +1 -0
  145. package/dist/cjs/models/payment.d.ts +734 -0
  146. package/dist/cjs/models/payment.d.ts.map +1 -0
  147. package/dist/cjs/models/payment.js +8 -0
  148. package/dist/cjs/models/payment.js.map +1 -0
  149. package/dist/cjs/models/product-discount.d.ts +461 -0
  150. package/dist/cjs/models/product-discount.d.ts.map +1 -0
  151. package/dist/cjs/models/product-discount.js +8 -0
  152. package/dist/cjs/models/product-discount.js.map +1 -0
  153. package/dist/cjs/models/product-selection.d.ts +638 -0
  154. package/dist/cjs/models/product-selection.d.ts.map +1 -0
  155. package/dist/cjs/models/product-selection.js +8 -0
  156. package/dist/cjs/models/product-selection.js.map +1 -0
  157. package/dist/cjs/models/product-type.d.ts +774 -0
  158. package/dist/cjs/models/product-type.d.ts.map +1 -0
  159. package/dist/cjs/models/product-type.js +8 -0
  160. package/dist/cjs/models/product-type.js.map +1 -0
  161. package/dist/cjs/models/product.d.ts +2282 -0
  162. package/dist/cjs/models/product.d.ts.map +1 -0
  163. package/dist/cjs/models/product.js +8 -0
  164. package/dist/cjs/models/product.js.map +1 -0
  165. package/dist/cjs/models/project.d.ts +381 -0
  166. package/dist/cjs/models/project.d.ts.map +1 -0
  167. package/dist/cjs/models/project.js +8 -0
  168. package/dist/cjs/models/project.js.map +1 -0
  169. package/dist/cjs/models/quote-request.d.ts +430 -0
  170. package/dist/cjs/models/quote-request.d.ts.map +1 -0
  171. package/dist/cjs/models/quote-request.js +8 -0
  172. package/dist/cjs/models/quote-request.js.map +1 -0
  173. package/dist/cjs/models/quote.d.ts +458 -0
  174. package/dist/cjs/models/quote.d.ts.map +1 -0
  175. package/dist/cjs/models/quote.js +8 -0
  176. package/dist/cjs/models/quote.js.map +1 -0
  177. package/dist/cjs/models/review.d.ts +435 -0
  178. package/dist/cjs/models/review.d.ts.map +1 -0
  179. package/dist/cjs/models/review.js +8 -0
  180. package/dist/cjs/models/review.js.map +1 -0
  181. package/dist/cjs/models/scalar-types.d.ts +9 -0
  182. package/dist/cjs/models/scalar-types.d.ts.map +1 -0
  183. package/dist/cjs/models/scalar-types.js +8 -0
  184. package/dist/cjs/models/scalar-types.js.map +1 -0
  185. package/dist/cjs/models/shipping-method.d.ts +569 -0
  186. package/dist/cjs/models/shipping-method.d.ts.map +1 -0
  187. package/dist/cjs/models/shipping-method.js +8 -0
  188. package/dist/cjs/models/shipping-method.js.map +1 -0
  189. package/dist/cjs/models/shopping-list.d.ts +844 -0
  190. package/dist/cjs/models/shopping-list.d.ts.map +1 -0
  191. package/dist/cjs/models/shopping-list.js +8 -0
  192. package/dist/cjs/models/shopping-list.js.map +1 -0
  193. package/dist/cjs/models/staged-quote.d.ts +338 -0
  194. package/dist/cjs/models/staged-quote.d.ts.map +1 -0
  195. package/dist/cjs/models/staged-quote.js +8 -0
  196. package/dist/cjs/models/staged-quote.js.map +1 -0
  197. package/dist/cjs/models/standalone-price.d.ts +410 -0
  198. package/dist/cjs/models/standalone-price.d.ts.map +1 -0
  199. package/dist/cjs/models/standalone-price.js +8 -0
  200. package/dist/cjs/models/standalone-price.js.map +1 -0
  201. package/dist/cjs/models/state.d.ts +341 -0
  202. package/dist/cjs/models/state.d.ts.map +1 -0
  203. package/dist/cjs/models/state.js +8 -0
  204. package/dist/cjs/models/state.js.map +1 -0
  205. package/dist/cjs/models/store-country.d.ts +14 -0
  206. package/dist/cjs/models/store-country.d.ts.map +1 -0
  207. package/dist/cjs/models/store-country.js +8 -0
  208. package/dist/cjs/models/store-country.js.map +1 -0
  209. package/dist/cjs/models/store.d.ts +547 -0
  210. package/dist/cjs/models/store.d.ts.map +1 -0
  211. package/dist/cjs/models/store.js +8 -0
  212. package/dist/cjs/models/store.js.map +1 -0
  213. package/dist/cjs/models/subscription.d.ts +717 -0
  214. package/dist/cjs/models/subscription.d.ts.map +1 -0
  215. package/dist/cjs/models/subscription.js +8 -0
  216. package/dist/cjs/models/subscription.js.map +1 -0
  217. package/dist/cjs/models/tax-category.d.ts +376 -0
  218. package/dist/cjs/models/tax-category.d.ts.map +1 -0
  219. package/dist/cjs/models/tax-category.js +8 -0
  220. package/dist/cjs/models/tax-category.js.map +1 -0
  221. package/dist/cjs/models/type.d.ts +645 -0
  222. package/dist/cjs/models/type.d.ts.map +1 -0
  223. package/dist/cjs/models/type.js +8 -0
  224. package/dist/cjs/models/type.js.map +1 -0
  225. package/dist/cjs/models/zone.d.ts +234 -0
  226. package/dist/cjs/models/zone.d.ts.map +1 -0
  227. package/dist/cjs/models/zone.js +8 -0
  228. package/dist/cjs/models/zone.js.map +1 -0
  229. package/dist/cjs/package.json +1 -0
  230. package/dist/cjs/request/index.d.ts +3 -0
  231. package/dist/cjs/request/index.d.ts.map +1 -0
  232. package/dist/cjs/request/index.js +19 -0
  233. package/dist/cjs/request/index.js.map +1 -0
  234. package/dist/cjs/request/is-retryable-error.d.ts +6 -0
  235. package/dist/cjs/request/is-retryable-error.d.ts.map +1 -0
  236. package/dist/cjs/request/is-retryable-error.js +28 -0
  237. package/dist/cjs/request/is-retryable-error.js.map +1 -0
  238. package/dist/{typings → cjs}/request/request-executor.d.ts +3 -2
  239. package/dist/cjs/request/request-executor.d.ts.map +1 -0
  240. package/dist/cjs/request/request-executor.js +23 -0
  241. package/dist/cjs/request/request-executor.js.map +1 -0
  242. package/dist/{typings → cjs}/request/request.d.ts +3 -2
  243. package/dist/cjs/request/request.d.ts.map +1 -0
  244. package/dist/cjs/request/request.js +84 -0
  245. package/dist/cjs/request/request.js.map +1 -0
  246. package/dist/cjs/request/transform-error.d.ts +7 -0
  247. package/dist/cjs/request/transform-error.d.ts.map +1 -0
  248. package/dist/cjs/request/transform-error.js +16 -0
  249. package/dist/cjs/request/transform-error.js.map +1 -0
  250. package/dist/{typings → cjs}/types.d.ts +39 -1
  251. package/dist/cjs/types.d.ts.map +1 -0
  252. package/dist/cjs/types.js +16 -0
  253. package/dist/cjs/types.js.map +1 -0
  254. package/dist/{typings → cjs}/utils/axios/convert-error.d.ts +2 -1
  255. package/dist/cjs/utils/axios/convert-error.d.ts.map +1 -0
  256. package/dist/cjs/utils/axios/convert-error.js +28 -0
  257. package/dist/cjs/utils/axios/convert-error.js.map +1 -0
  258. package/dist/{typings → cjs}/utils/axios/convert-response.d.ts +2 -1
  259. package/dist/cjs/utils/axios/convert-response.d.ts.map +1 -0
  260. package/dist/cjs/utils/axios/convert-response.js +23 -0
  261. package/dist/cjs/utils/axios/convert-response.js.map +1 -0
  262. package/dist/{typings → cjs}/utils/axios/create-instance.d.ts +5 -0
  263. package/dist/cjs/utils/axios/create-instance.d.ts.map +1 -0
  264. package/dist/cjs/utils/axios/create-instance.js +30 -0
  265. package/dist/cjs/utils/axios/create-instance.js.map +1 -0
  266. package/dist/{typings → cjs}/utils/axios/extract-headers.d.ts +1 -0
  267. package/dist/cjs/utils/axios/extract-headers.d.ts.map +1 -0
  268. package/dist/cjs/utils/axios/extract-headers.js +23 -0
  269. package/dist/cjs/utils/axios/extract-headers.js.map +1 -0
  270. package/dist/cjs/utils/axios/index.d.ts +5 -0
  271. package/dist/cjs/utils/axios/index.d.ts.map +1 -0
  272. package/dist/cjs/utils/axios/index.js +21 -0
  273. package/dist/cjs/utils/axios/index.js.map +1 -0
  274. package/dist/cjs/utils/calculate-delay.d.ts +7 -0
  275. package/dist/cjs/utils/calculate-delay.d.ts.map +1 -0
  276. package/dist/cjs/utils/calculate-delay.js +30 -0
  277. package/dist/cjs/utils/calculate-delay.js.map +1 -0
  278. package/dist/cjs/utils/ensure-non-empty-string.d.ts +16 -0
  279. package/dist/cjs/utils/ensure-non-empty-string.d.ts.map +1 -0
  280. package/dist/cjs/utils/ensure-non-empty-string.js +16 -0
  281. package/dist/cjs/utils/ensure-non-empty-string.js.map +1 -0
  282. package/dist/cjs/utils/format.d.ts +11 -0
  283. package/dist/cjs/utils/format.d.ts.map +1 -0
  284. package/dist/cjs/utils/format.js +48 -0
  285. package/dist/cjs/utils/format.js.map +1 -0
  286. package/dist/cjs/utils/get-attribute-value.d.ts +17 -0
  287. package/dist/cjs/utils/get-attribute-value.d.ts.map +1 -0
  288. package/dist/cjs/utils/get-attribute-value.js +19 -0
  289. package/dist/cjs/utils/get-attribute-value.js.map +1 -0
  290. package/dist/cjs/utils/index.d.ts +9 -0
  291. package/dist/cjs/utils/index.d.ts.map +1 -0
  292. package/dist/cjs/utils/index.js +25 -0
  293. package/dist/cjs/utils/index.js.map +1 -0
  294. package/dist/cjs/utils/mask.d.ts +28 -0
  295. package/dist/cjs/utils/mask.d.ts.map +1 -0
  296. package/dist/cjs/utils/mask.js +63 -0
  297. package/dist/cjs/utils/mask.js.map +1 -0
  298. package/dist/cjs/utils/plain-clone.d.ts +14 -0
  299. package/dist/cjs/utils/plain-clone.d.ts.map +1 -0
  300. package/dist/cjs/utils/plain-clone.js +41 -0
  301. package/dist/cjs/utils/plain-clone.js.map +1 -0
  302. package/dist/cjs/utils/retry-on-conflict.d.ts +99 -0
  303. package/dist/cjs/utils/retry-on-conflict.d.ts.map +1 -0
  304. package/dist/cjs/utils/retry-on-conflict.js +109 -0
  305. package/dist/cjs/utils/retry-on-conflict.js.map +1 -0
  306. package/dist/cjs/utils/useragent.d.ts +10 -0
  307. package/dist/cjs/utils/useragent.d.ts.map +1 -0
  308. package/dist/cjs/utils/useragent.js +21 -0
  309. package/dist/cjs/utils/useragent.js.map +1 -0
  310. package/dist/mjs/api/CommercetoolsApi.d.ts +1252 -0
  311. package/dist/mjs/api/CommercetoolsApi.d.ts.map +1 -0
  312. package/dist/mjs/api/CommercetoolsApi.js +2102 -0
  313. package/dist/mjs/api/CommercetoolsApi.js.map +1 -0
  314. package/dist/mjs/api/index.d.ts +3 -0
  315. package/dist/mjs/api/index.d.ts.map +1 -0
  316. package/dist/mjs/api/index.js +3 -0
  317. package/dist/mjs/api/index.js.map +1 -0
  318. package/dist/mjs/api/types.d.ts +33 -0
  319. package/dist/mjs/api/types.d.ts.map +1 -0
  320. package/dist/mjs/api/types.js +2 -0
  321. package/dist/mjs/api/types.js.map +1 -0
  322. package/dist/mjs/auth/CommercetoolsAuth.d.ts +182 -0
  323. package/dist/mjs/auth/CommercetoolsAuth.d.ts.map +1 -0
  324. package/dist/mjs/auth/CommercetoolsAuth.js +234 -0
  325. package/dist/mjs/auth/CommercetoolsAuth.js.map +1 -0
  326. package/dist/mjs/auth/CommercetoolsAuthApi.d.ts +83 -0
  327. package/dist/mjs/auth/CommercetoolsAuthApi.d.ts.map +1 -0
  328. package/dist/mjs/auth/CommercetoolsAuthApi.js +165 -0
  329. package/dist/mjs/auth/CommercetoolsAuthApi.js.map +1 -0
  330. package/dist/mjs/auth/CommercetoolsGrant.d.ts +66 -0
  331. package/dist/mjs/auth/CommercetoolsGrant.d.ts.map +1 -0
  332. package/dist/mjs/auth/CommercetoolsGrant.js +95 -0
  333. package/dist/mjs/auth/CommercetoolsGrant.js.map +1 -0
  334. package/dist/mjs/auth/constants.d.ts +7 -0
  335. package/dist/mjs/auth/constants.d.ts.map +1 -0
  336. package/dist/mjs/auth/constants.js +28 -0
  337. package/dist/mjs/auth/constants.js.map +1 -0
  338. package/dist/mjs/auth/index.d.ts +4 -0
  339. package/dist/mjs/auth/index.d.ts.map +1 -0
  340. package/dist/mjs/auth/index.js +3 -0
  341. package/dist/mjs/auth/index.js.map +1 -0
  342. package/dist/mjs/auth/scopes.d.ts +11 -0
  343. package/dist/mjs/auth/scopes.d.ts.map +1 -0
  344. package/dist/mjs/auth/scopes.js +25 -0
  345. package/dist/mjs/auth/scopes.js.map +1 -0
  346. package/dist/mjs/auth/types.d.ts +118 -0
  347. package/dist/mjs/auth/types.d.ts.map +1 -0
  348. package/dist/mjs/auth/types.js +25 -0
  349. package/dist/mjs/auth/types.js.map +1 -0
  350. package/dist/mjs/auth/utils.d.ts +2 -0
  351. package/dist/mjs/auth/utils.d.ts.map +1 -0
  352. package/dist/mjs/auth/utils.js +10 -0
  353. package/dist/mjs/auth/utils.js.map +1 -0
  354. package/dist/mjs/constants.d.ts +33 -0
  355. package/dist/mjs/constants.d.ts.map +1 -0
  356. package/dist/mjs/constants.js +43 -0
  357. package/dist/mjs/constants.js.map +1 -0
  358. package/dist/mjs/error/CommercetoolsError.d.ts +34 -0
  359. package/dist/mjs/error/CommercetoolsError.d.ts.map +1 -0
  360. package/dist/mjs/error/CommercetoolsError.js +106 -0
  361. package/dist/mjs/error/CommercetoolsError.js.map +1 -0
  362. package/dist/mjs/error/index.d.ts +2 -0
  363. package/dist/mjs/error/index.d.ts.map +1 -0
  364. package/dist/mjs/error/index.js +2 -0
  365. package/dist/mjs/error/index.js.map +1 -0
  366. package/dist/mjs/index.d.ts +8 -0
  367. package/dist/mjs/index.d.ts.map +1 -0
  368. package/dist/mjs/index.js +8 -0
  369. package/dist/mjs/index.js.map +1 -0
  370. package/dist/mjs/models/associate-role.d.ts +319 -0
  371. package/dist/mjs/models/associate-role.d.ts.map +1 -0
  372. package/dist/mjs/models/associate-role.js +7 -0
  373. package/dist/mjs/models/associate-role.js.map +1 -0
  374. package/dist/mjs/models/attribute-group.d.ts +253 -0
  375. package/dist/mjs/models/attribute-group.d.ts.map +1 -0
  376. package/dist/mjs/models/attribute-group.js +7 -0
  377. package/dist/mjs/models/attribute-group.js.map +1 -0
  378. package/dist/mjs/models/business-unit.d.ts +1197 -0
  379. package/dist/mjs/models/business-unit.d.ts.map +1 -0
  380. package/dist/mjs/models/business-unit.js +7 -0
  381. package/dist/mjs/models/business-unit.js.map +1 -0
  382. package/dist/mjs/models/cart-discount.d.ts +716 -0
  383. package/dist/mjs/models/cart-discount.d.ts.map +1 -0
  384. package/dist/mjs/models/cart-discount.js +7 -0
  385. package/dist/mjs/models/cart-discount.js.map +1 -0
  386. package/dist/mjs/models/cart.d.ts +3350 -0
  387. package/dist/mjs/models/cart.d.ts.map +1 -0
  388. package/dist/mjs/models/cart.js +7 -0
  389. package/dist/mjs/models/cart.js.map +1 -0
  390. package/dist/mjs/models/category.d.ts +634 -0
  391. package/dist/mjs/models/category.d.ts.map +1 -0
  392. package/dist/mjs/models/category.js +7 -0
  393. package/dist/mjs/models/category.js.map +1 -0
  394. package/dist/mjs/models/channel.d.ts +379 -0
  395. package/dist/mjs/models/channel.d.ts.map +1 -0
  396. package/dist/mjs/models/channel.js +7 -0
  397. package/dist/mjs/models/channel.js.map +1 -0
  398. package/dist/mjs/models/common.d.ts +1096 -0
  399. package/dist/mjs/models/common.d.ts.map +1 -0
  400. package/dist/mjs/models/common.js +7 -0
  401. package/dist/mjs/models/common.js.map +1 -0
  402. package/dist/mjs/models/custom-object.d.ts +151 -0
  403. package/dist/mjs/models/custom-object.d.ts.map +1 -0
  404. package/dist/mjs/models/custom-object.js +7 -0
  405. package/dist/mjs/models/custom-object.js.map +1 -0
  406. package/dist/mjs/models/customer-group.d.ts +235 -0
  407. package/dist/mjs/models/customer-group.d.ts.map +1 -0
  408. package/dist/mjs/models/customer-group.js +7 -0
  409. package/dist/mjs/models/customer-group.js.map +1 -0
  410. package/dist/mjs/models/customer.d.ts +1221 -0
  411. package/dist/mjs/models/customer.d.ts.map +1 -0
  412. package/dist/mjs/models/customer.js +7 -0
  413. package/dist/mjs/models/customer.js.map +1 -0
  414. package/dist/mjs/models/discount-code.d.ts +439 -0
  415. package/dist/mjs/models/discount-code.d.ts.map +1 -0
  416. package/dist/mjs/models/discount-code.js +7 -0
  417. package/dist/mjs/models/discount-code.js.map +1 -0
  418. package/dist/mjs/models/error.d.ts +3062 -0
  419. package/dist/mjs/models/error.d.ts.map +1 -0
  420. package/dist/mjs/models/error.js +7 -0
  421. package/dist/mjs/models/error.js.map +1 -0
  422. package/dist/mjs/models/extension.d.ts +335 -0
  423. package/dist/mjs/models/extension.d.ts.map +1 -0
  424. package/dist/mjs/models/extension.js +7 -0
  425. package/dist/mjs/models/extension.js.map +1 -0
  426. package/dist/mjs/models/graph-ql.d.ts +63 -0
  427. package/dist/mjs/models/graph-ql.d.ts.map +1 -0
  428. package/dist/mjs/models/graph-ql.js +7 -0
  429. package/dist/mjs/models/graph-ql.js.map +1 -0
  430. package/dist/mjs/models/index.d.ts +42 -0
  431. package/dist/mjs/models/index.d.ts.map +1 -0
  432. package/dist/mjs/models/index.js +42 -0
  433. package/dist/mjs/models/index.js.map +1 -0
  434. package/dist/mjs/models/inventory.d.ts +327 -0
  435. package/dist/mjs/models/inventory.d.ts.map +1 -0
  436. package/dist/mjs/models/inventory.js +7 -0
  437. package/dist/mjs/models/inventory.js.map +1 -0
  438. package/dist/mjs/models/me.d.ts +2483 -0
  439. package/dist/mjs/models/me.d.ts.map +1 -0
  440. package/dist/mjs/models/me.js +7 -0
  441. package/dist/mjs/models/me.js.map +1 -0
  442. package/dist/mjs/models/message.d.ts +15095 -0
  443. package/dist/mjs/models/message.d.ts.map +1 -0
  444. package/dist/mjs/models/message.js +7 -0
  445. package/dist/mjs/models/message.js.map +1 -0
  446. package/dist/mjs/models/order-edit.d.ts +1645 -0
  447. package/dist/mjs/models/order-edit.d.ts.map +1 -0
  448. package/dist/mjs/models/order-edit.js +7 -0
  449. package/dist/mjs/models/order-edit.js.map +1 -0
  450. package/dist/mjs/models/order.d.ts +2157 -0
  451. package/dist/mjs/models/order.d.ts.map +1 -0
  452. package/dist/mjs/models/order.js +7 -0
  453. package/dist/mjs/models/order.js.map +1 -0
  454. package/dist/mjs/models/payment.d.ts +734 -0
  455. package/dist/mjs/models/payment.d.ts.map +1 -0
  456. package/dist/mjs/models/payment.js +7 -0
  457. package/dist/mjs/models/payment.js.map +1 -0
  458. package/dist/mjs/models/product-discount.d.ts +461 -0
  459. package/dist/mjs/models/product-discount.d.ts.map +1 -0
  460. package/dist/mjs/models/product-discount.js +7 -0
  461. package/dist/mjs/models/product-discount.js.map +1 -0
  462. package/dist/mjs/models/product-selection.d.ts +638 -0
  463. package/dist/mjs/models/product-selection.d.ts.map +1 -0
  464. package/dist/mjs/models/product-selection.js +7 -0
  465. package/dist/mjs/models/product-selection.js.map +1 -0
  466. package/dist/mjs/models/product-type.d.ts +774 -0
  467. package/dist/mjs/models/product-type.d.ts.map +1 -0
  468. package/dist/mjs/models/product-type.js +7 -0
  469. package/dist/mjs/models/product-type.js.map +1 -0
  470. package/dist/mjs/models/product.d.ts +2282 -0
  471. package/dist/mjs/models/product.d.ts.map +1 -0
  472. package/dist/mjs/models/product.js +7 -0
  473. package/dist/mjs/models/product.js.map +1 -0
  474. package/dist/mjs/models/project.d.ts +381 -0
  475. package/dist/mjs/models/project.d.ts.map +1 -0
  476. package/dist/mjs/models/project.js +7 -0
  477. package/dist/mjs/models/project.js.map +1 -0
  478. package/dist/mjs/models/quote-request.d.ts +430 -0
  479. package/dist/mjs/models/quote-request.d.ts.map +1 -0
  480. package/dist/mjs/models/quote-request.js +7 -0
  481. package/dist/mjs/models/quote-request.js.map +1 -0
  482. package/dist/mjs/models/quote.d.ts +458 -0
  483. package/dist/mjs/models/quote.d.ts.map +1 -0
  484. package/dist/mjs/models/quote.js +7 -0
  485. package/dist/mjs/models/quote.js.map +1 -0
  486. package/dist/mjs/models/review.d.ts +435 -0
  487. package/dist/mjs/models/review.d.ts.map +1 -0
  488. package/dist/mjs/models/review.js +7 -0
  489. package/dist/mjs/models/review.js.map +1 -0
  490. package/dist/mjs/models/scalar-types.d.ts +9 -0
  491. package/dist/mjs/models/scalar-types.d.ts.map +1 -0
  492. package/dist/mjs/models/scalar-types.js +7 -0
  493. package/dist/mjs/models/scalar-types.js.map +1 -0
  494. package/dist/mjs/models/shipping-method.d.ts +569 -0
  495. package/dist/mjs/models/shipping-method.d.ts.map +1 -0
  496. package/dist/mjs/models/shipping-method.js +7 -0
  497. package/dist/mjs/models/shipping-method.js.map +1 -0
  498. package/dist/mjs/models/shopping-list.d.ts +844 -0
  499. package/dist/mjs/models/shopping-list.d.ts.map +1 -0
  500. package/dist/mjs/models/shopping-list.js +7 -0
  501. package/dist/mjs/models/shopping-list.js.map +1 -0
  502. package/dist/mjs/models/staged-quote.d.ts +338 -0
  503. package/dist/mjs/models/staged-quote.d.ts.map +1 -0
  504. package/dist/mjs/models/staged-quote.js +7 -0
  505. package/dist/mjs/models/staged-quote.js.map +1 -0
  506. package/dist/mjs/models/standalone-price.d.ts +410 -0
  507. package/dist/mjs/models/standalone-price.d.ts.map +1 -0
  508. package/dist/mjs/models/standalone-price.js +7 -0
  509. package/dist/mjs/models/standalone-price.js.map +1 -0
  510. package/dist/mjs/models/state.d.ts +341 -0
  511. package/dist/mjs/models/state.d.ts.map +1 -0
  512. package/dist/mjs/models/state.js +7 -0
  513. package/dist/mjs/models/state.js.map +1 -0
  514. package/dist/mjs/models/store-country.d.ts +14 -0
  515. package/dist/mjs/models/store-country.d.ts.map +1 -0
  516. package/dist/mjs/models/store-country.js +7 -0
  517. package/dist/mjs/models/store-country.js.map +1 -0
  518. package/dist/mjs/models/store.d.ts +547 -0
  519. package/dist/mjs/models/store.d.ts.map +1 -0
  520. package/dist/mjs/models/store.js +7 -0
  521. package/dist/mjs/models/store.js.map +1 -0
  522. package/dist/mjs/models/subscription.d.ts +717 -0
  523. package/dist/mjs/models/subscription.d.ts.map +1 -0
  524. package/dist/mjs/models/subscription.js +7 -0
  525. package/dist/mjs/models/subscription.js.map +1 -0
  526. package/dist/mjs/models/tax-category.d.ts +376 -0
  527. package/dist/mjs/models/tax-category.d.ts.map +1 -0
  528. package/dist/mjs/models/tax-category.js +7 -0
  529. package/dist/mjs/models/tax-category.js.map +1 -0
  530. package/dist/mjs/models/type.d.ts +645 -0
  531. package/dist/mjs/models/type.d.ts.map +1 -0
  532. package/dist/mjs/models/type.js +7 -0
  533. package/dist/mjs/models/type.js.map +1 -0
  534. package/dist/mjs/models/zone.d.ts +234 -0
  535. package/dist/mjs/models/zone.d.ts.map +1 -0
  536. package/dist/mjs/models/zone.js +7 -0
  537. package/dist/mjs/models/zone.js.map +1 -0
  538. package/dist/mjs/request/index.d.ts +3 -0
  539. package/dist/mjs/request/index.d.ts.map +1 -0
  540. package/dist/mjs/request/index.js +3 -0
  541. package/dist/mjs/request/index.js.map +1 -0
  542. package/dist/mjs/request/is-retryable-error.d.ts +6 -0
  543. package/dist/mjs/request/is-retryable-error.d.ts.map +1 -0
  544. package/dist/mjs/request/is-retryable-error.js +24 -0
  545. package/dist/mjs/request/is-retryable-error.js.map +1 -0
  546. package/dist/mjs/request/request-executor.d.ts +12 -0
  547. package/dist/mjs/request/request-executor.d.ts.map +1 -0
  548. package/dist/mjs/request/request-executor.js +19 -0
  549. package/dist/mjs/request/request-executor.js.map +1 -0
  550. package/dist/mjs/request/request.d.ts +11 -0
  551. package/dist/mjs/request/request.d.ts.map +1 -0
  552. package/dist/mjs/request/request.js +80 -0
  553. package/dist/mjs/request/request.js.map +1 -0
  554. package/dist/mjs/request/transform-error.d.ts +7 -0
  555. package/dist/mjs/request/transform-error.d.ts.map +1 -0
  556. package/dist/mjs/request/transform-error.js +12 -0
  557. package/dist/mjs/request/transform-error.js.map +1 -0
  558. package/dist/mjs/types.d.ts +96 -0
  559. package/dist/mjs/types.d.ts.map +1 -0
  560. package/dist/mjs/types.js +13 -0
  561. package/dist/mjs/types.js.map +1 -0
  562. package/dist/mjs/utils/axios/convert-error.d.ts +4 -0
  563. package/dist/mjs/utils/axios/convert-error.d.ts.map +1 -0
  564. package/dist/mjs/utils/axios/convert-error.js +24 -0
  565. package/dist/mjs/utils/axios/convert-error.js.map +1 -0
  566. package/dist/mjs/utils/axios/convert-response.d.ts +4 -0
  567. package/dist/mjs/utils/axios/convert-response.d.ts.map +1 -0
  568. package/dist/mjs/utils/axios/convert-response.js +19 -0
  569. package/dist/mjs/utils/axios/convert-response.js.map +1 -0
  570. package/dist/mjs/utils/axios/create-instance.d.ts +11 -0
  571. package/dist/mjs/utils/axios/create-instance.d.ts.map +1 -0
  572. package/dist/mjs/utils/axios/create-instance.js +23 -0
  573. package/dist/mjs/utils/axios/create-instance.js.map +1 -0
  574. package/dist/mjs/utils/axios/extract-headers.d.ts +2 -0
  575. package/dist/mjs/utils/axios/extract-headers.d.ts.map +1 -0
  576. package/dist/mjs/utils/axios/extract-headers.js +19 -0
  577. package/dist/mjs/utils/axios/extract-headers.js.map +1 -0
  578. package/dist/mjs/utils/axios/index.d.ts +5 -0
  579. package/dist/mjs/utils/axios/index.d.ts.map +1 -0
  580. package/dist/mjs/utils/axios/index.js +5 -0
  581. package/dist/mjs/utils/axios/index.js.map +1 -0
  582. package/dist/mjs/utils/calculate-delay.d.ts +7 -0
  583. package/dist/mjs/utils/calculate-delay.d.ts.map +1 -0
  584. package/dist/mjs/utils/calculate-delay.js +26 -0
  585. package/dist/mjs/utils/calculate-delay.js.map +1 -0
  586. package/dist/mjs/utils/ensure-non-empty-string.d.ts +16 -0
  587. package/dist/mjs/utils/ensure-non-empty-string.d.ts.map +1 -0
  588. package/dist/mjs/utils/ensure-non-empty-string.js +12 -0
  589. package/dist/mjs/utils/ensure-non-empty-string.js.map +1 -0
  590. package/dist/mjs/utils/format.d.ts +11 -0
  591. package/dist/mjs/utils/format.d.ts.map +1 -0
  592. package/dist/mjs/utils/format.js +44 -0
  593. package/dist/mjs/utils/format.js.map +1 -0
  594. package/dist/mjs/utils/get-attribute-value.d.ts +17 -0
  595. package/dist/mjs/utils/get-attribute-value.d.ts.map +1 -0
  596. package/dist/mjs/utils/get-attribute-value.js +15 -0
  597. package/dist/mjs/utils/get-attribute-value.js.map +1 -0
  598. package/dist/mjs/utils/index.d.ts +9 -0
  599. package/dist/mjs/utils/index.d.ts.map +1 -0
  600. package/dist/mjs/utils/index.js +9 -0
  601. package/dist/mjs/utils/index.js.map +1 -0
  602. package/dist/mjs/utils/mask.d.ts +28 -0
  603. package/dist/mjs/utils/mask.d.ts.map +1 -0
  604. package/dist/mjs/utils/mask.js +54 -0
  605. package/dist/mjs/utils/mask.js.map +1 -0
  606. package/dist/mjs/utils/plain-clone.d.ts +14 -0
  607. package/dist/mjs/utils/plain-clone.d.ts.map +1 -0
  608. package/dist/mjs/utils/plain-clone.js +37 -0
  609. package/dist/mjs/utils/plain-clone.js.map +1 -0
  610. package/dist/mjs/utils/retry-on-conflict.d.ts +99 -0
  611. package/dist/mjs/utils/retry-on-conflict.d.ts.map +1 -0
  612. package/dist/mjs/utils/retry-on-conflict.js +105 -0
  613. package/dist/mjs/utils/retry-on-conflict.js.map +1 -0
  614. package/dist/mjs/utils/useragent.d.ts +10 -0
  615. package/dist/mjs/utils/useragent.d.ts.map +1 -0
  616. package/dist/mjs/utils/useragent.js +17 -0
  617. package/dist/mjs/utils/useragent.js.map +1 -0
  618. package/package.json +50 -48
  619. package/dist/ge-commercetools-utils-browser.cjs.js +0 -2
  620. package/dist/ge-commercetools-utils-browser.cjs.js.map +0 -1
  621. package/dist/ge-commercetools-utils-browser.esm.js +0 -2
  622. package/dist/ge-commercetools-utils-browser.esm.js.map +0 -1
  623. package/dist/ge-commercetools-utils-node.cjs.js +0 -3
  624. package/dist/ge-commercetools-utils-node.cjs.js.LICENSE.txt +0 -13
  625. package/dist/ge-commercetools-utils-node.cjs.js.map +0 -1
  626. package/dist/ge-commercetools-utils-node.esm.js +0 -2
  627. package/dist/ge-commercetools-utils-node.esm.js.LICENSE.txt +0 -13
  628. package/dist/typings/api/CommercetoolsApi.d.ts +0 -515
  629. package/dist/typings/api/index.d.ts +0 -2
  630. package/dist/typings/api/types.d.ts +0 -12
  631. package/dist/typings/auth/CommercetoolsAuth.d.ts +0 -22
  632. package/dist/typings/auth/CommercetoolsAuthApi.d.ts +0 -27
  633. package/dist/typings/auth/CommercetoolsGrant.d.ts +0 -13
  634. package/dist/typings/auth/constants.d.ts +0 -3
  635. package/dist/typings/auth/index.d.ts +0 -3
  636. package/dist/typings/auth/scopes.d.ts +0 -2
  637. package/dist/typings/auth/types.d.ts +0 -41
  638. package/dist/typings/constants.d.ts +0 -12
  639. package/dist/typings/error/CommercetoolsError.d.ts +0 -11
  640. package/dist/typings/error/index.d.ts +0 -1
  641. package/dist/typings/index.d.ts +0 -7
  642. package/dist/typings/models/associate-role.d.ts +0 -79
  643. package/dist/typings/models/attribute-group.d.ts +0 -68
  644. package/dist/typings/models/business-unit.d.ts +0 -272
  645. package/dist/typings/models/cart-discount.d.ts +0 -196
  646. package/dist/typings/models/cart.d.ts +0 -745
  647. package/dist/typings/models/category.d.ts +0 -166
  648. package/dist/typings/models/channel.d.ts +0 -103
  649. package/dist/typings/models/common.d.ts +0 -256
  650. package/dist/typings/models/custom-object.d.ts +0 -30
  651. package/dist/typings/models/customer-group.d.ts +0 -58
  652. package/dist/typings/models/customer.d.ts +0 -293
  653. package/dist/typings/models/discount-code.d.ts +0 -116
  654. package/dist/typings/models/error.d.ts +0 -874
  655. package/dist/typings/models/extension.d.ts +0 -83
  656. package/dist/typings/models/graph-ql.d.ts +0 -23
  657. package/dist/typings/models/index.d.ts +0 -41
  658. package/dist/typings/models/inventory.d.ts +0 -88
  659. package/dist/typings/models/me.d.ts +0 -640
  660. package/dist/typings/models/message.d.ts +0 -3210
  661. package/dist/typings/models/order-edit.d.ts +0 -572
  662. package/dist/typings/models/payment.d.ts +0 -191
  663. package/dist/typings/models/product-discount.d.ts +0 -123
  664. package/dist/typings/models/product-selection.d.ts +0 -158
  665. package/dist/typings/models/product-type.d.ts +0 -213
  666. package/dist/typings/models/product.d.ts +0 -535
  667. package/dist/typings/models/project.d.ts +0 -120
  668. package/dist/typings/models/quote-request.d.ts +0 -94
  669. package/dist/typings/models/quote.d.ts +0 -103
  670. package/dist/typings/models/review.d.ts +0 -115
  671. package/dist/typings/models/scalar-types.d.ts +0 -3
  672. package/dist/typings/models/shipping-method.d.ts +0 -160
  673. package/dist/typings/models/shopping-list.d.ts +0 -217
  674. package/dist/typings/models/staged-quote.d.ts +0 -84
  675. package/dist/typings/models/standalone-price.d.ts +0 -95
  676. package/dist/typings/models/state.d.ts +0 -86
  677. package/dist/typings/models/store-country.d.ts +0 -3
  678. package/dist/typings/models/store.d.ts +0 -137
  679. package/dist/typings/models/subscription.d.ts +0 -161
  680. package/dist/typings/models/tax-category.d.ts +0 -91
  681. package/dist/typings/models/type.d.ts +0 -177
  682. package/dist/typings/models/zone.d.ts +0 -65
  683. package/dist/typings/request/index.d.ts +0 -2
  684. package/dist/typings/request/is-retryable-error.d.ts +0 -1
  685. package/dist/typings/request/transform-error.d.ts +0 -2
  686. package/dist/typings/utils/axios/index.d.ts +0 -4
  687. package/dist/typings/utils/calculate-delay.d.ts +0 -2
  688. package/dist/typings/utils/ensure-non-empty-string.d.ts +0 -5
  689. package/dist/typings/utils/format.d.ts +0 -1
  690. package/dist/typings/utils/get-attribute-value.d.ts +0 -6
  691. package/dist/typings/utils/index.d.ts +0 -8
  692. package/dist/typings/utils/mask.d.ts +0 -6
  693. package/dist/typings/utils/plain-clone.d.ts +0 -1
  694. package/dist/typings/utils/retry-on-conflict.d.ts +0 -7
  695. package/dist/typings/utils/useragent.d.ts +0 -1
@@ -1,94 +0,0 @@
1
- import { BusinessUnitKeyReference } from './business-unit';
2
- import { CartResourceIdentifier, CustomLineItem, DirectDiscount, InventoryMode, LineItem, RoundingMode, ShippingInfo, ShippingRateInput, TaxCalculationMode, TaxedPrice, TaxMode } from './cart';
3
- import { Address, BaseResource, CreatedBy, LastModifiedBy, TypedMoney } from './common';
4
- import { CustomerReference } from './customer';
5
- import { CustomerGroupReference } from './customer-group';
6
- import { PaymentInfo } from './order';
7
- import { StateReference, StateResourceIdentifier } from './state';
8
- import { StoreKeyReference } from './store';
9
- import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
10
- export interface QuoteRequest extends BaseResource {
11
- readonly id: string;
12
- readonly version: number;
13
- readonly key?: string;
14
- readonly createdAt: string;
15
- readonly lastModifiedAt: string;
16
- readonly lastModifiedBy?: LastModifiedBy;
17
- readonly createdBy?: CreatedBy;
18
- readonly quoteRequestState: QuoteRequestState;
19
- readonly comment?: string;
20
- readonly customer: CustomerReference;
21
- readonly customerGroup?: CustomerGroupReference;
22
- readonly store?: StoreKeyReference;
23
- readonly lineItems: LineItem[];
24
- readonly customLineItems: CustomLineItem[];
25
- readonly totalPrice: TypedMoney;
26
- readonly taxedPrice?: TaxedPrice;
27
- readonly shippingAddress?: Address;
28
- readonly billingAddress?: Address;
29
- readonly inventoryMode?: InventoryMode;
30
- readonly taxMode: TaxMode;
31
- readonly taxRoundingMode: RoundingMode;
32
- readonly taxCalculationMode: TaxCalculationMode;
33
- readonly country?: string;
34
- readonly shippingInfo?: ShippingInfo;
35
- readonly paymentInfo?: PaymentInfo;
36
- readonly shippingRateInput?: ShippingRateInput;
37
- readonly itemShippingAddresses?: Address[];
38
- readonly directDiscounts?: DirectDiscount[];
39
- readonly custom?: CustomFields;
40
- readonly state?: StateReference;
41
- readonly purchaseOrderNumber?: string;
42
- readonly businessUnit?: BusinessUnitKeyReference;
43
- }
44
- export interface QuoteRequestDraft {
45
- readonly cart: CartResourceIdentifier;
46
- readonly cartVersion: number;
47
- readonly key?: string;
48
- readonly comment: string;
49
- readonly custom?: CustomFieldsDraft;
50
- readonly state?: StateReference;
51
- readonly purchaseOrderNumber?: string;
52
- }
53
- export interface QuoteRequestPagedQueryResponse {
54
- readonly limit: number;
55
- readonly offset: number;
56
- readonly count: number;
57
- readonly total?: number;
58
- readonly results: QuoteRequest[];
59
- }
60
- export interface QuoteRequestReference {
61
- readonly typeId: 'quote-request';
62
- readonly id: string;
63
- readonly obj?: QuoteRequest;
64
- }
65
- export interface QuoteRequestResourceIdentifier {
66
- readonly typeId: 'quote-request';
67
- readonly id?: string;
68
- readonly key?: string;
69
- }
70
- export type QuoteRequestState = 'Accepted' | 'Cancelled' | 'Closed' | 'Rejected' | 'Submitted' | string;
71
- export interface QuoteRequestUpdate {
72
- readonly version: number;
73
- readonly actions: QuoteRequestUpdateAction[];
74
- }
75
- export type QuoteRequestUpdateAction = QuoteRequestChangeQuoteRequestStateAction | QuoteRequestSetCustomFieldAction | QuoteRequestSetCustomTypeAction | QuoteRequestTransitionStateAction;
76
- export interface QuoteRequestChangeQuoteRequestStateAction {
77
- readonly action: 'changeQuoteRequestState';
78
- readonly quoteRequestState: QuoteRequestState;
79
- }
80
- export interface QuoteRequestSetCustomFieldAction {
81
- readonly action: 'setCustomField';
82
- readonly name: string;
83
- readonly value?: any;
84
- }
85
- export interface QuoteRequestSetCustomTypeAction {
86
- readonly action: 'setCustomType';
87
- readonly type?: TypeResourceIdentifier;
88
- readonly fields?: FieldContainer;
89
- }
90
- export interface QuoteRequestTransitionStateAction {
91
- readonly action: 'transitionState';
92
- readonly state: StateResourceIdentifier;
93
- readonly force?: boolean;
94
- }
@@ -1,103 +0,0 @@
1
- import { BusinessUnitKeyReference } from './business-unit';
2
- import { CustomLineItem, DirectDiscount, InventoryMode, LineItem, RoundingMode, ShippingInfo, ShippingRateInput, TaxCalculationMode, TaxedPrice, TaxMode } from './cart';
3
- import { Address, BaseResource, CreatedBy, LastModifiedBy, TypedMoney } from './common';
4
- import { CustomerReference } from './customer';
5
- import { CustomerGroupReference } from './customer-group';
6
- import { PaymentInfo } from './order';
7
- import { QuoteRequestReference } from './quote-request';
8
- import { StagedQuoteReference, StagedQuoteResourceIdentifier } from './staged-quote';
9
- import { StateReference, StateResourceIdentifier } from './state';
10
- import { StoreKeyReference } from './store';
11
- import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
12
- export interface Quote extends BaseResource {
13
- readonly id: string;
14
- readonly version: number;
15
- readonly key?: string;
16
- readonly createdAt: string;
17
- readonly lastModifiedAt: string;
18
- readonly lastModifiedBy?: LastModifiedBy;
19
- readonly createdBy?: CreatedBy;
20
- readonly quoteRequest: QuoteRequestReference;
21
- readonly stagedQuote: StagedQuoteReference;
22
- readonly customer?: CustomerReference;
23
- readonly customerGroup?: CustomerGroupReference;
24
- readonly validTo?: string;
25
- readonly sellerComment?: string;
26
- readonly buyerComment?: string;
27
- readonly store?: StoreKeyReference;
28
- readonly lineItems: LineItem[];
29
- readonly customLineItems: CustomLineItem[];
30
- readonly totalPrice: TypedMoney;
31
- readonly taxedPrice?: TaxedPrice;
32
- readonly shippingAddress?: Address;
33
- readonly billingAddress?: Address;
34
- readonly inventoryMode?: InventoryMode;
35
- readonly taxMode: TaxMode;
36
- readonly taxRoundingMode: RoundingMode;
37
- readonly taxCalculationMode: TaxCalculationMode;
38
- readonly country?: string;
39
- readonly shippingInfo?: ShippingInfo;
40
- readonly paymentInfo?: PaymentInfo;
41
- readonly shippingRateInput?: ShippingRateInput;
42
- readonly itemShippingAddresses?: Address[];
43
- readonly directDiscounts?: DirectDiscount[];
44
- readonly custom?: CustomFields;
45
- readonly quoteState: QuoteState;
46
- readonly state?: StateReference;
47
- readonly purchaseOrderNumber?: string;
48
- readonly businessUnit?: BusinessUnitKeyReference;
49
- }
50
- export interface QuoteDraft {
51
- readonly key?: string;
52
- readonly stagedQuote: StagedQuoteResourceIdentifier;
53
- readonly stagedQuoteVersion: number;
54
- readonly stagedQuoteStateToSent?: boolean;
55
- readonly state?: StateReference;
56
- readonly custom?: CustomFieldsDraft;
57
- }
58
- export interface QuotePagedQueryResponse {
59
- readonly limit: number;
60
- readonly offset: number;
61
- readonly count: number;
62
- readonly total?: number;
63
- readonly results: Quote[];
64
- }
65
- export interface QuoteReference {
66
- readonly typeId: 'quote';
67
- readonly id: string;
68
- readonly obj?: Quote;
69
- }
70
- export interface QuoteResourceIdentifier {
71
- readonly typeId: 'quote';
72
- readonly id?: string;
73
- readonly key?: string;
74
- }
75
- export type QuoteState = 'Accepted' | 'Declined' | 'DeclinedForRenegotiation' | 'Failed' | 'Pending' | 'Withdrawn' | string;
76
- export interface QuoteUpdate {
77
- readonly version: number;
78
- readonly actions: QuoteUpdateAction[];
79
- }
80
- export type QuoteUpdateAction = QuoteChangeQuoteStateAction | QuoteRequestQuoteRenegotiationAction | QuoteSetCustomFieldAction | QuoteSetCustomTypeAction | QuoteTransitionStateAction;
81
- export interface QuoteChangeQuoteStateAction {
82
- readonly action: 'changeQuoteState';
83
- readonly quoteState: QuoteState;
84
- }
85
- export interface QuoteRequestQuoteRenegotiationAction {
86
- readonly action: 'requestQuoteRenegotiation';
87
- readonly buyerComment?: string;
88
- }
89
- export interface QuoteSetCustomFieldAction {
90
- readonly action: 'setCustomField';
91
- readonly name: string;
92
- readonly value?: any;
93
- }
94
- export interface QuoteSetCustomTypeAction {
95
- readonly action: 'setCustomType';
96
- readonly type?: TypeResourceIdentifier;
97
- readonly fields?: FieldContainer;
98
- }
99
- export interface QuoteTransitionStateAction {
100
- readonly action: 'transitionState';
101
- readonly state: StateResourceIdentifier;
102
- readonly force?: boolean;
103
- }
@@ -1,115 +0,0 @@
1
- import { ChannelReference, ChannelResourceIdentifier } from './channel';
2
- import { BaseResource, CreatedBy, LastModifiedBy } from './common';
3
- import { CustomerReference, CustomerResourceIdentifier } from './customer';
4
- import { ProductReference, ProductResourceIdentifier } from './product';
5
- import { StateReference, StateResourceIdentifier } from './state';
6
- import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
7
- export interface Review extends BaseResource {
8
- readonly id: string;
9
- readonly version: number;
10
- readonly createdAt: string;
11
- readonly lastModifiedAt: string;
12
- readonly lastModifiedBy?: LastModifiedBy;
13
- readonly createdBy?: CreatedBy;
14
- readonly key?: string;
15
- readonly uniquenessValue?: string;
16
- readonly locale?: string;
17
- readonly authorName?: string;
18
- readonly title?: string;
19
- readonly text?: string;
20
- readonly target?: ProductReference | ChannelReference;
21
- readonly includedInStatistics: boolean;
22
- readonly rating?: number;
23
- readonly state?: StateReference;
24
- readonly customer?: CustomerReference;
25
- readonly custom?: CustomFields;
26
- }
27
- export interface ReviewDraft {
28
- readonly key?: string;
29
- readonly uniquenessValue?: string;
30
- readonly locale?: string;
31
- readonly authorName?: string;
32
- readonly title?: string;
33
- readonly text?: string;
34
- readonly target?: ProductResourceIdentifier | ChannelResourceIdentifier;
35
- readonly state?: StateResourceIdentifier;
36
- readonly rating?: number;
37
- readonly customer?: CustomerResourceIdentifier;
38
- readonly custom?: CustomFieldsDraft;
39
- }
40
- export interface ReviewPagedQueryResponse {
41
- readonly limit: number;
42
- readonly count: number;
43
- readonly total?: number;
44
- readonly offset: number;
45
- readonly results: Review[];
46
- }
47
- export interface ReviewRatingStatistics {
48
- readonly averageRating: number;
49
- readonly highestRating: number;
50
- readonly lowestRating: number;
51
- readonly count: number;
52
- readonly ratingsDistribution: any;
53
- }
54
- export interface ReviewReference {
55
- readonly typeId: 'review';
56
- readonly id: string;
57
- readonly obj?: Review;
58
- }
59
- export interface ReviewResourceIdentifier {
60
- readonly typeId: 'review';
61
- readonly id?: string;
62
- readonly key?: string;
63
- }
64
- export interface ReviewUpdate {
65
- readonly version: number;
66
- readonly actions: ReviewUpdateAction[];
67
- }
68
- export type ReviewUpdateAction = ReviewSetAuthorNameAction | ReviewSetCustomFieldAction | ReviewSetCustomTypeAction | ReviewSetCustomerAction | ReviewSetKeyAction | ReviewSetLocaleAction | ReviewSetRatingAction | ReviewSetTargetAction | ReviewSetTextAction | ReviewSetTitleAction | ReviewTransitionStateAction;
69
- export interface ReviewSetAuthorNameAction {
70
- readonly action: 'setAuthorName';
71
- readonly authorName?: string;
72
- }
73
- export interface ReviewSetCustomFieldAction {
74
- readonly action: 'setCustomField';
75
- readonly name: string;
76
- readonly value?: any;
77
- }
78
- export interface ReviewSetCustomTypeAction {
79
- readonly action: 'setCustomType';
80
- readonly type?: TypeResourceIdentifier;
81
- readonly fields?: FieldContainer;
82
- }
83
- export interface ReviewSetCustomerAction {
84
- readonly action: 'setCustomer';
85
- readonly customer?: CustomerResourceIdentifier;
86
- }
87
- export interface ReviewSetKeyAction {
88
- readonly action: 'setKey';
89
- readonly key?: string;
90
- }
91
- export interface ReviewSetLocaleAction {
92
- readonly action: 'setLocale';
93
- readonly locale?: string;
94
- }
95
- export interface ReviewSetRatingAction {
96
- readonly action: 'setRating';
97
- readonly rating?: number;
98
- }
99
- export interface ReviewSetTargetAction {
100
- readonly action: 'setTarget';
101
- readonly target: ProductResourceIdentifier | ChannelResourceIdentifier;
102
- }
103
- export interface ReviewSetTextAction {
104
- readonly action: 'setText';
105
- readonly text?: string;
106
- }
107
- export interface ReviewSetTitleAction {
108
- readonly action: 'setTitle';
109
- readonly title?: string;
110
- }
111
- export interface ReviewTransitionStateAction {
112
- readonly action: 'transitionState';
113
- readonly state: StateResourceIdentifier;
114
- readonly force?: boolean;
115
- }
@@ -1,3 +0,0 @@
1
- export type Expansion = string;
2
- export type QueryPredicate = string;
3
- export type Sort = string;
@@ -1,160 +0,0 @@
1
- import { BaseResource, CreatedBy, LastModifiedBy, LocalizedString, TypedMoney, _Money } from './common';
2
- import { TaxCategoryReference, TaxCategoryResourceIdentifier } from './tax-category';
3
- import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
4
- import { ZoneReference, ZoneResourceIdentifier } from './zone';
5
- export interface PriceFunction {
6
- readonly currencyCode: string;
7
- readonly function: string;
8
- }
9
- export interface ShippingMethod extends BaseResource {
10
- readonly id: string;
11
- readonly version: number;
12
- readonly createdAt: string;
13
- readonly lastModifiedAt: string;
14
- readonly lastModifiedBy?: LastModifiedBy;
15
- readonly createdBy?: CreatedBy;
16
- readonly key?: string;
17
- readonly name: string;
18
- readonly localizedName?: LocalizedString;
19
- readonly description?: string;
20
- readonly localizedDescription?: LocalizedString;
21
- readonly taxCategory: TaxCategoryReference;
22
- readonly zoneRates: ZoneRate[];
23
- readonly isDefault: boolean;
24
- readonly predicate?: string;
25
- readonly custom?: CustomFields;
26
- }
27
- export interface ShippingMethodDraft {
28
- readonly key?: string;
29
- readonly name: string;
30
- readonly localizedName?: LocalizedString;
31
- readonly description?: string;
32
- readonly localizedDescription?: LocalizedString;
33
- readonly taxCategory: TaxCategoryResourceIdentifier;
34
- readonly zoneRates: ZoneRateDraft[];
35
- readonly isDefault: boolean;
36
- readonly predicate?: string;
37
- readonly custom?: CustomFieldsDraft;
38
- }
39
- export interface ShippingMethodPagedQueryResponse {
40
- readonly limit?: number;
41
- readonly count: number;
42
- readonly total?: number;
43
- readonly offset?: number;
44
- readonly results: ShippingMethod[];
45
- }
46
- export interface ShippingMethodReference {
47
- readonly typeId: 'shipping-method';
48
- readonly id: string;
49
- readonly obj?: ShippingMethod;
50
- }
51
- export interface ShippingMethodResourceIdentifier {
52
- readonly typeId: 'shipping-method';
53
- readonly id?: string;
54
- readonly key?: string;
55
- }
56
- export interface ShippingMethodUpdate {
57
- readonly version: number;
58
- readonly actions: ShippingMethodUpdateAction[];
59
- }
60
- export type ShippingMethodUpdateAction = ShippingMethodAddShippingRateAction | ShippingMethodAddZoneAction | ShippingMethodChangeIsDefaultAction | ShippingMethodChangeNameAction | ShippingMethodChangeTaxCategoryAction | ShippingMethodRemoveShippingRateAction | ShippingMethodRemoveZoneAction | ShippingMethodSetCustomFieldAction | ShippingMethodSetCustomTypeAction | ShippingMethodSetDescriptionAction | ShippingMethodSetKeyAction | ShippingMethodSetLocalizedDescriptionAction | ShippingMethodSetLocalizedNameAction | ShippingMethodSetPredicateAction;
61
- export interface ShippingRate {
62
- readonly price: TypedMoney;
63
- readonly freeAbove?: TypedMoney;
64
- readonly isMatching?: boolean;
65
- readonly tiers: ShippingRatePriceTier[];
66
- }
67
- export interface ShippingRateDraft {
68
- readonly price: _Money;
69
- readonly freeAbove?: _Money;
70
- readonly tiers?: ShippingRatePriceTier[];
71
- }
72
- export type ShippingRatePriceTier = CartClassificationTier | CartScoreTier | CartValueTier;
73
- export interface CartClassificationTier {
74
- readonly type: 'CartClassification';
75
- readonly value: string;
76
- readonly price: _Money;
77
- readonly isMatching?: boolean;
78
- }
79
- export interface CartScoreTier {
80
- readonly type: 'CartScore';
81
- readonly score: number;
82
- readonly price?: _Money;
83
- readonly priceFunction?: PriceFunction;
84
- readonly isMatching?: boolean;
85
- }
86
- export interface CartValueTier {
87
- readonly type: 'CartValue';
88
- readonly minimumCentAmount: number;
89
- readonly price: _Money;
90
- readonly isMatching?: boolean;
91
- }
92
- export type ShippingRateTierType = 'CartClassification' | 'CartScore' | 'CartValue' | string;
93
- export interface ZoneRate {
94
- readonly zone: ZoneReference;
95
- readonly shippingRates: ShippingRate[];
96
- }
97
- export interface ZoneRateDraft {
98
- readonly zone: ZoneResourceIdentifier;
99
- readonly shippingRates: ShippingRateDraft[];
100
- }
101
- export interface ShippingMethodAddShippingRateAction {
102
- readonly action: 'addShippingRate';
103
- readonly zone: ZoneResourceIdentifier;
104
- readonly shippingRate: ShippingRateDraft;
105
- }
106
- export interface ShippingMethodAddZoneAction {
107
- readonly action: 'addZone';
108
- readonly zone: ZoneResourceIdentifier;
109
- }
110
- export interface ShippingMethodChangeIsDefaultAction {
111
- readonly action: 'changeIsDefault';
112
- readonly isDefault: boolean;
113
- }
114
- export interface ShippingMethodChangeNameAction {
115
- readonly action: 'changeName';
116
- readonly name: string;
117
- }
118
- export interface ShippingMethodChangeTaxCategoryAction {
119
- readonly action: 'changeTaxCategory';
120
- readonly taxCategory: TaxCategoryResourceIdentifier;
121
- }
122
- export interface ShippingMethodRemoveShippingRateAction {
123
- readonly action: 'removeShippingRate';
124
- readonly zone: ZoneResourceIdentifier;
125
- readonly shippingRate: ShippingRateDraft;
126
- }
127
- export interface ShippingMethodRemoveZoneAction {
128
- readonly action: 'removeZone';
129
- readonly zone: ZoneResourceIdentifier;
130
- }
131
- export interface ShippingMethodSetCustomFieldAction {
132
- readonly action: 'setCustomField';
133
- readonly name: string;
134
- readonly value?: any;
135
- }
136
- export interface ShippingMethodSetCustomTypeAction {
137
- readonly action: 'setCustomType';
138
- readonly type?: TypeResourceIdentifier;
139
- readonly fields?: FieldContainer;
140
- }
141
- export interface ShippingMethodSetDescriptionAction {
142
- readonly action: 'setDescription';
143
- readonly description?: string;
144
- }
145
- export interface ShippingMethodSetKeyAction {
146
- readonly action: 'setKey';
147
- readonly key?: string;
148
- }
149
- export interface ShippingMethodSetLocalizedDescriptionAction {
150
- readonly action: 'setLocalizedDescription';
151
- readonly localizedDescription?: LocalizedString;
152
- }
153
- export interface ShippingMethodSetLocalizedNameAction {
154
- readonly action: 'setLocalizedName';
155
- readonly localizedName?: LocalizedString;
156
- }
157
- export interface ShippingMethodSetPredicateAction {
158
- readonly action: 'setPredicate';
159
- readonly predicate?: string;
160
- }
@@ -1,217 +0,0 @@
1
- import { BaseResource, CreatedBy, LastModifiedBy, LocalizedString } from './common';
2
- import { CustomerReference, CustomerResourceIdentifier } from './customer';
3
- import { ProductVariant } from './product';
4
- import { ProductTypeReference } from './product-type';
5
- import { StoreKeyReference, StoreResourceIdentifier } from './store';
6
- import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
7
- export interface ShoppingList extends BaseResource {
8
- readonly id: string;
9
- readonly version: number;
10
- readonly name: LocalizedString;
11
- readonly key?: string;
12
- readonly customer?: CustomerReference;
13
- readonly slug?: LocalizedString;
14
- readonly description?: LocalizedString;
15
- readonly lineItems: ShoppingListLineItem[];
16
- readonly textLineItems: TextLineItem[];
17
- readonly deleteDaysAfterLastModification?: number;
18
- readonly anonymousId?: string;
19
- readonly store?: StoreKeyReference;
20
- readonly custom?: CustomFields;
21
- readonly createdAt: string;
22
- readonly lastModifiedAt: string;
23
- readonly lastModifiedBy?: LastModifiedBy;
24
- readonly createdBy?: CreatedBy;
25
- }
26
- export interface ShoppingListDraft {
27
- readonly name: LocalizedString;
28
- readonly slug?: LocalizedString;
29
- readonly customer?: CustomerResourceIdentifier;
30
- readonly key?: string;
31
- readonly description?: LocalizedString;
32
- readonly anonymousId?: string;
33
- readonly deleteDaysAfterLastModification?: number;
34
- readonly lineItems?: ShoppingListLineItemDraft[];
35
- readonly textLineItems?: TextLineItemDraft[];
36
- readonly store?: StoreResourceIdentifier;
37
- readonly custom?: CustomFieldsDraft;
38
- }
39
- export interface ShoppingListLineItem {
40
- readonly addedAt: string;
41
- readonly custom?: CustomFields;
42
- readonly deactivatedAt?: string;
43
- readonly id: string;
44
- readonly name: LocalizedString;
45
- readonly productId: string;
46
- readonly productType: ProductTypeReference;
47
- readonly quantity: number;
48
- readonly variantId?: number;
49
- readonly variant?: ProductVariant;
50
- readonly productSlug?: LocalizedString;
51
- }
52
- export interface ShoppingListLineItemDraft {
53
- readonly productId?: string;
54
- readonly variantId?: number;
55
- readonly sku?: string;
56
- readonly addedAt?: string;
57
- readonly custom?: CustomFieldsDraft;
58
- readonly quantity?: number;
59
- }
60
- export interface ShoppingListPagedQueryResponse {
61
- readonly limit: number;
62
- readonly count: number;
63
- readonly total?: number;
64
- readonly offset: number;
65
- readonly results: ShoppingList[];
66
- }
67
- export interface ShoppingListReference {
68
- readonly typeId: 'shopping-list';
69
- readonly id: string;
70
- readonly obj?: ShoppingList;
71
- }
72
- export interface ShoppingListResourceIdentifier {
73
- readonly typeId: 'shopping-list';
74
- readonly id?: string;
75
- readonly key?: string;
76
- }
77
- export interface ShoppingListUpdate {
78
- readonly version: number;
79
- readonly actions: ShoppingListUpdateAction[];
80
- }
81
- export type ShoppingListUpdateAction = ShoppingListAddLineItemAction | ShoppingListAddTextLineItemAction | ShoppingListChangeLineItemQuantityAction | ShoppingListChangeLineItemsOrderAction | ShoppingListChangeNameAction | ShoppingListChangeTextLineItemNameAction | ShoppingListChangeTextLineItemQuantityAction | ShoppingListChangeTextLineItemsOrderAction | ShoppingListRemoveLineItemAction | ShoppingListRemoveTextLineItemAction | ShoppingListSetAnonymousIdAction | ShoppingListSetCustomFieldAction | ShoppingListSetCustomTypeAction | ShoppingListSetCustomerAction | ShoppingListSetDeleteDaysAfterLastModificationAction | ShoppingListSetDescriptionAction | ShoppingListSetKeyAction | ShoppingListSetLineItemCustomFieldAction | ShoppingListSetLineItemCustomTypeAction | ShoppingListSetSlugAction | ShoppingListSetStoreAction | ShoppingListSetTextLineItemCustomFieldAction | ShoppingListSetTextLineItemCustomTypeAction | ShoppingListSetTextLineItemDescriptionAction;
82
- export interface TextLineItem {
83
- readonly addedAt: string;
84
- readonly custom?: CustomFields;
85
- readonly description?: LocalizedString;
86
- readonly id: string;
87
- readonly name: LocalizedString;
88
- readonly quantity: number;
89
- }
90
- export interface TextLineItemDraft {
91
- readonly addedAt?: string;
92
- readonly custom?: CustomFieldsDraft;
93
- readonly description?: LocalizedString;
94
- readonly name: LocalizedString;
95
- readonly quantity?: number;
96
- }
97
- export interface ShoppingListAddLineItemAction {
98
- readonly action: 'addLineItem';
99
- readonly sku?: string;
100
- readonly productId?: string;
101
- readonly variantId?: number;
102
- readonly quantity?: number;
103
- readonly addedAt?: string;
104
- readonly custom?: CustomFieldsDraft;
105
- }
106
- export interface ShoppingListAddTextLineItemAction {
107
- readonly action: 'addTextLineItem';
108
- readonly name: LocalizedString;
109
- readonly description?: LocalizedString;
110
- readonly quantity?: number;
111
- readonly addedAt?: string;
112
- readonly custom?: CustomFieldsDraft;
113
- }
114
- export interface ShoppingListChangeLineItemQuantityAction {
115
- readonly action: 'changeLineItemQuantity';
116
- readonly lineItemId: string;
117
- readonly quantity: number;
118
- }
119
- export interface ShoppingListChangeLineItemsOrderAction {
120
- readonly action: 'changeLineItemsOrder';
121
- readonly lineItemOrder: string[];
122
- }
123
- export interface ShoppingListChangeNameAction {
124
- readonly action: 'changeName';
125
- readonly name: LocalizedString;
126
- }
127
- export interface ShoppingListChangeTextLineItemNameAction {
128
- readonly action: 'changeTextLineItemName';
129
- readonly textLineItemId: string;
130
- readonly name: LocalizedString;
131
- }
132
- export interface ShoppingListChangeTextLineItemQuantityAction {
133
- readonly action: 'changeTextLineItemQuantity';
134
- readonly textLineItemId: string;
135
- readonly quantity: number;
136
- }
137
- export interface ShoppingListChangeTextLineItemsOrderAction {
138
- readonly action: 'changeTextLineItemsOrder';
139
- readonly textLineItemOrder: string[];
140
- }
141
- export interface ShoppingListRemoveLineItemAction {
142
- readonly action: 'removeLineItem';
143
- readonly lineItemId: string;
144
- readonly quantity?: number;
145
- }
146
- export interface ShoppingListRemoveTextLineItemAction {
147
- readonly action: 'removeTextLineItem';
148
- readonly textLineItemId: string;
149
- readonly quantity?: number;
150
- }
151
- export interface ShoppingListSetAnonymousIdAction {
152
- readonly action: 'setAnonymousId';
153
- readonly anonymousId?: string;
154
- }
155
- export interface ShoppingListSetCustomFieldAction {
156
- readonly action: 'setCustomField';
157
- readonly name: string;
158
- readonly value?: any;
159
- }
160
- export interface ShoppingListSetCustomTypeAction {
161
- readonly action: 'setCustomType';
162
- readonly type?: TypeResourceIdentifier;
163
- readonly fields?: FieldContainer;
164
- }
165
- export interface ShoppingListSetCustomerAction {
166
- readonly action: 'setCustomer';
167
- readonly customer?: CustomerResourceIdentifier;
168
- }
169
- export interface ShoppingListSetDeleteDaysAfterLastModificationAction {
170
- readonly action: 'setDeleteDaysAfterLastModification';
171
- readonly deleteDaysAfterLastModification?: number;
172
- }
173
- export interface ShoppingListSetDescriptionAction {
174
- readonly action: 'setDescription';
175
- readonly description?: LocalizedString;
176
- }
177
- export interface ShoppingListSetKeyAction {
178
- readonly action: 'setKey';
179
- readonly key?: string;
180
- }
181
- export interface ShoppingListSetLineItemCustomFieldAction {
182
- readonly action: 'setLineItemCustomField';
183
- readonly lineItemId: string;
184
- readonly name: string;
185
- readonly value?: any;
186
- }
187
- export interface ShoppingListSetLineItemCustomTypeAction {
188
- readonly action: 'setLineItemCustomType';
189
- readonly lineItemId: string;
190
- readonly type?: TypeResourceIdentifier;
191
- readonly fields?: FieldContainer;
192
- }
193
- export interface ShoppingListSetSlugAction {
194
- readonly action: 'setSlug';
195
- readonly slug?: LocalizedString;
196
- }
197
- export interface ShoppingListSetStoreAction {
198
- readonly action: 'setStore';
199
- readonly store?: StoreResourceIdentifier;
200
- }
201
- export interface ShoppingListSetTextLineItemCustomFieldAction {
202
- readonly action: 'setTextLineItemCustomField';
203
- readonly textLineItemId: string;
204
- readonly name: string;
205
- readonly value?: any;
206
- }
207
- export interface ShoppingListSetTextLineItemCustomTypeAction {
208
- readonly action: 'setTextLineItemCustomType';
209
- readonly textLineItemId: string;
210
- readonly type?: TypeResourceIdentifier;
211
- readonly fields?: FieldContainer;
212
- }
213
- export interface ShoppingListSetTextLineItemDescriptionAction {
214
- readonly action: 'setTextLineItemDescription';
215
- readonly textLineItemId: string;
216
- readonly description?: LocalizedString;
217
- }