@gradientedge/commercetools-utils 5.9.1 → 5.10.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 +33 -0
  50. package/dist/cjs/error/CommercetoolsError.d.ts.map +1 -0
  51. package/dist/cjs/error/CommercetoolsError.js +110 -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 +33 -0
  359. package/dist/mjs/error/CommercetoolsError.d.ts.map +1 -0
  360. package/dist/mjs/error/CommercetoolsError.js +103 -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 +48 -46
  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
@@ -0,0 +1,844 @@
1
+ /**
2
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
+ */
6
+ import { BaseResource, CreatedBy, LastModifiedBy, LocalizedString } from './common.js';
7
+ import { CustomerReference, CustomerResourceIdentifier } from './customer.js';
8
+ import { ProductVariant } from './product.js';
9
+ import { ProductTypeReference } from './product-type.js';
10
+ import { StoreKeyReference, StoreResourceIdentifier } from './store.js';
11
+ import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type.js';
12
+ export interface ShoppingList extends BaseResource {
13
+ /**
14
+ * Unique identifier of the ShoppingList.
15
+ *
16
+ */
17
+ readonly id: string;
18
+ /**
19
+ * Current version of the ShoppingList.
20
+ *
21
+ */
22
+ readonly version: number;
23
+ /**
24
+ * Name of the ShoppingList.
25
+ *
26
+ *
27
+ */
28
+ readonly name: LocalizedString;
29
+ /**
30
+ * User-defined unique identifier of the ShoppingList.
31
+ *
32
+ */
33
+ readonly key?: string;
34
+ /**
35
+ * Reference to a [Customer](ctp:api:type:Customer) associated with the ShoppingList.
36
+ *
37
+ *
38
+ */
39
+ readonly customer?: CustomerReference;
40
+ /**
41
+ * Human-readable identifiers usually used as deep-link URL to the related ShoppingList.
42
+ * Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages.
43
+ * The slug must match the pattern `[a-zA-Z0-9_-]{2,256}`. For [good performance](/predicates/query#performance-considerations), indexes are provided for the first 15 `languages` set on the [Project](ctp:api:type:Project).
44
+ *
45
+ */
46
+ readonly slug?: LocalizedString;
47
+ /**
48
+ * Description of the ShoppingList.
49
+ *
50
+ *
51
+ */
52
+ readonly description?: LocalizedString;
53
+ /**
54
+ * Line Items (containing Products) of the ShoppingList.
55
+ *
56
+ *
57
+ */
58
+ readonly lineItems: ShoppingListLineItem[];
59
+ /**
60
+ * Line Items (containing text values) of the ShoppingList.
61
+ *
62
+ *
63
+ */
64
+ readonly textLineItems: TextLineItem[];
65
+ /**
66
+ * Number of days after which the ShoppingList will be automatically deleted if it has not been modified.
67
+ *
68
+ */
69
+ readonly deleteDaysAfterLastModification?: number;
70
+ /**
71
+ * Identifies ShoppingLists belonging to an [anonymous session](ctp:api:type:AnonymousSession).
72
+ *
73
+ */
74
+ readonly anonymousId?: string;
75
+ /**
76
+ * Store to which the ShoppingList is assigned.
77
+ *
78
+ *
79
+ */
80
+ readonly store?: StoreKeyReference;
81
+ /**
82
+ * Custom Fields defined for the ShoppingList.
83
+ *
84
+ *
85
+ */
86
+ readonly custom?: CustomFields;
87
+ /**
88
+ * Date and time (UTC) the ShoppingList was initially created.
89
+ *
90
+ *
91
+ */
92
+ readonly createdAt: string;
93
+ /**
94
+ * Date and time (UTC) the ShoppingList was last updated.
95
+ *
96
+ *
97
+ */
98
+ readonly lastModifiedAt: string;
99
+ /**
100
+ * Present on resources created after 1 February 2019 except for [events not tracked](/client-logging#events-tracked).
101
+ *
102
+ *
103
+ */
104
+ readonly lastModifiedBy?: LastModifiedBy;
105
+ /**
106
+ * Present on resources created after 1 February 2019 except for [events not tracked](/client-logging#events-tracked).
107
+ *
108
+ *
109
+ */
110
+ readonly createdBy?: CreatedBy;
111
+ }
112
+ export interface ShoppingListDraft {
113
+ /**
114
+ * Name of the ShoppingList.
115
+ *
116
+ *
117
+ */
118
+ readonly name: LocalizedString;
119
+ /**
120
+ * Human-readable identifiers usually used as deep-link URL to the related ShoppingList.
121
+ * Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages.
122
+ * The slug must match the pattern `[a-zA-Z0-9_-]{2,256}`.
123
+ *
124
+ */
125
+ readonly slug?: LocalizedString;
126
+ /**
127
+ * The [Customer](ctp:api:type:Customer) the ShoppingList should be associated to.
128
+ *
129
+ *
130
+ */
131
+ readonly customer?: CustomerResourceIdentifier;
132
+ /**
133
+ * User-defined unique identifier for the ShoppingList.
134
+ *
135
+ *
136
+ */
137
+ readonly key?: string;
138
+ /**
139
+ * Description of the ShoppingList.
140
+ *
141
+ *
142
+ */
143
+ readonly description?: LocalizedString;
144
+ /**
145
+ * Identifies ShoppingLists belonging to an [anonymous session](ctp:api:type:AnonymousSession).
146
+ *
147
+ */
148
+ readonly anonymousId?: string;
149
+ /**
150
+ * Number of days after which the ShoppingList will be automatically deleted if it has not been modified. If not set, the [default value](ctp:api:type:ShoppingListsConfiguration) configured in the [Project](ctp:api:type:Project) is used.
151
+ *
152
+ *
153
+ */
154
+ readonly deleteDaysAfterLastModification?: number;
155
+ /**
156
+ * Line Items (containing Products) to add to the ShoppingList.
157
+ *
158
+ *
159
+ */
160
+ readonly lineItems?: ShoppingListLineItemDraft[];
161
+ /**
162
+ * Line Items (containing text values) to add to the ShoppingList.
163
+ *
164
+ *
165
+ */
166
+ readonly textLineItems?: TextLineItemDraft[];
167
+ /**
168
+ * Assigns the new ShoppingList to the [Store](ctp:api:type:Store).
169
+ *
170
+ *
171
+ */
172
+ readonly store?: StoreResourceIdentifier;
173
+ /**
174
+ * Custom Fields defined for the ShoppingList.
175
+ *
176
+ */
177
+ readonly custom?: CustomFieldsDraft;
178
+ }
179
+ /**
180
+ * ShoppingListLineItems are Line Items that contain references to [ProductVariants](ctp:api:type:ProductVariant) in a [Product](ctp:api:type:Product).
181
+ *
182
+ * In addition to standard [Reference Expansion](/general-concepts#reference-expansion), a ShoppingListLineItem offers expansion on `productSlug` and `variant`, defined with the query parameter `expand`.
183
+ *
184
+ */
185
+ export interface ShoppingListLineItem {
186
+ /**
187
+ * Date and time (UTC) the ShoppingListLineItem was added to the ShoppingList.
188
+ *
189
+ *
190
+ */
191
+ readonly addedAt: string;
192
+ /**
193
+ * Custom Fields of the ShoppingListLineItem.
194
+ *
195
+ *
196
+ */
197
+ readonly custom?: CustomFields;
198
+ /**
199
+ * If the Product or Product Variant is deleted, `deactivatedAt` is the date and time (UTC) of deletion.
200
+ *
201
+ * This data is updated in an [eventual consistent manner](/general-concepts#eventual-consistency) when the Product Variant cannot be ordered anymore.
202
+ *
203
+ *
204
+ */
205
+ readonly deactivatedAt?: string;
206
+ /**
207
+ * Unique identifier of the ShoppingListLineItem.
208
+ *
209
+ */
210
+ readonly id: string;
211
+ /**
212
+ * Name of the Product.
213
+ *
214
+ * This data is updated in an [eventual consistent manner](/general-concepts#eventual-consistency) when the Product's name changes.
215
+ *
216
+ *
217
+ */
218
+ readonly name: LocalizedString;
219
+ /**
220
+ * Unique identifier of a [Product](ctp:api:type:Product).
221
+ *
222
+ *
223
+ */
224
+ readonly productId: string;
225
+ /**
226
+ * The Product Type defining the Attributes of the [Product](ctp:api:type:Product).
227
+ *
228
+ *
229
+ */
230
+ readonly productType: ProductTypeReference;
231
+ /**
232
+ * Number of Products in the ShoppingListLineItem.
233
+ *
234
+ *
235
+ */
236
+ readonly quantity: number;
237
+ /**
238
+ * `id` of the [ProductVariant](ctp:api:type:ProductVariant) the ShoppingListLineItem refers to. If not set, the ShoppingListLineItem refers to the Master Variant.
239
+ *
240
+ *
241
+ */
242
+ readonly variantId?: number;
243
+ /**
244
+ * Data of the [ProductVariant](ctp:api:type:ProductVariant).
245
+ *
246
+ * Returned when expanded using `expand=lineItems[*].variant`. You cannot expand only a single element of the array.
247
+ *
248
+ *
249
+ */
250
+ readonly variant?: ProductVariant;
251
+ /**
252
+ * Slug of the current [ProductData](ctp:api:type:ProductData).
253
+ *
254
+ * Returned when expanded using `expand=lineItems[*].productSlug`. You cannot expand only a single element of the array.
255
+ *
256
+ *
257
+ */
258
+ readonly productSlug?: LocalizedString;
259
+ }
260
+ /**
261
+ * The [ProductVariant](ctp:api:type:ProductVariant) to be included in the ShoppingListLineItem must be specified using the `productID` and `variantID`, or by the `sku`.
262
+ *
263
+ */
264
+ export interface ShoppingListLineItemDraft {
265
+ /**
266
+ * Unique identifier of a [Product](ctp:api:type:Product).
267
+ *
268
+ *
269
+ */
270
+ readonly productId?: string;
271
+ /**
272
+ * `id` of the [ProductVariant](ctp:api:type:ProductVariant). If not set, the ShoppingListLineItem refers to the Master Variant.
273
+ *
274
+ *
275
+ */
276
+ readonly variantId?: number;
277
+ /**
278
+ * `sku` of the [ProductVariant](ctp:api:type:ProductVariant).
279
+ *
280
+ *
281
+ */
282
+ readonly sku?: string;
283
+ /**
284
+ * Date and time the ShoppingListLineItem is added to the [ShoppingList](ctp:api:type:ShoppingList). If not set, the current date and time (UTC) is used.
285
+ *
286
+ *
287
+ */
288
+ readonly addedAt?: string;
289
+ /**
290
+ * Custom Fields of the ShoppingListLineItem.
291
+ *
292
+ *
293
+ */
294
+ readonly custom?: CustomFieldsDraft;
295
+ /**
296
+ * Number of Products in the ShoppingListLineItem.
297
+ *
298
+ *
299
+ */
300
+ readonly quantity?: number;
301
+ }
302
+ export interface ShoppingListPagedQueryResponse {
303
+ /**
304
+ * Number of [results requested](/../api/general-concepts#limit).
305
+ *
306
+ *
307
+ */
308
+ readonly limit: number;
309
+ /**
310
+ * Actual number of results returned.
311
+ *
312
+ *
313
+ */
314
+ readonly count: number;
315
+ /**
316
+ * Total number of results matching the query.
317
+ * This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency).
318
+ * This field is returned by default.
319
+ * For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`.
320
+ * When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries).
321
+ *
322
+ *
323
+ */
324
+ readonly total?: number;
325
+ /**
326
+ * Number of [elements skipped](/../api/general-concepts#offset).
327
+ *
328
+ *
329
+ */
330
+ readonly offset: number;
331
+ /**
332
+ * [ShoppingLists](ctp:api:type:ShoppingList) matching the query.
333
+ *
334
+ *
335
+ */
336
+ readonly results: ShoppingList[];
337
+ }
338
+ /**
339
+ * [Reference](ctp:api:type:Reference) to a [ShoppingList](ctp:api:type:ShoppingList).
340
+ *
341
+ */
342
+ export interface ShoppingListReference {
343
+ readonly typeId: 'shopping-list';
344
+ /**
345
+ * Unique identifier of the referenced [ShoppingList](ctp:api:type:ShoppingList).
346
+ *
347
+ *
348
+ */
349
+ readonly id: string;
350
+ /**
351
+ * Contains the representation of the expanded ShoppingList. Only present in responses to requests with [Reference Expansion](/../api/general-concepts#reference-expansion) for ShoppingLists.
352
+ *
353
+ *
354
+ */
355
+ readonly obj?: ShoppingList;
356
+ }
357
+ /**
358
+ * [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ShoppingList](ctp:api:type:ShoppingList).
359
+ *
360
+ */
361
+ export interface ShoppingListResourceIdentifier {
362
+ readonly typeId: 'shopping-list';
363
+ /**
364
+ * Unique identifier of the referenced [ShoppingList](ctp:api:type:ShoppingList). Either `id` or `key` is required.
365
+ *
366
+ *
367
+ */
368
+ readonly id?: string;
369
+ /**
370
+ * User-defined unique identifier of the referenced [ShoppingList](ctp:api:type:ShoppingList). Either `id` or `key` is required.
371
+ *
372
+ *
373
+ */
374
+ readonly key?: string;
375
+ }
376
+ export interface ShoppingListUpdate {
377
+ /**
378
+ * Expected version of the ShoppingList on which the changes should be applied. If the expected version does not match the actual version, a [409 Conflict](/../api/errors#409-conflict) will be returned.
379
+ *
380
+ *
381
+ */
382
+ readonly version: number;
383
+ /**
384
+ * List of update actions to be performed on the ShoppingList.
385
+ *
386
+ *
387
+ */
388
+ readonly actions: ShoppingListUpdateAction[];
389
+ }
390
+ 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;
391
+ /**
392
+ * TextLineItems are Line Items that use text values instead of references to Products.
393
+ *
394
+ */
395
+ export interface TextLineItem {
396
+ /**
397
+ * Date and time (UTC) the TextLineItem was added to the [ShoppingList](ctp:api:type:ShoppingList).
398
+ *
399
+ *
400
+ */
401
+ readonly addedAt: string;
402
+ /**
403
+ * Custom Fields of the TextLineItem.
404
+ *
405
+ *
406
+ */
407
+ readonly custom?: CustomFields;
408
+ /**
409
+ * Description of the TextLineItem.
410
+ *
411
+ *
412
+ */
413
+ readonly description?: LocalizedString;
414
+ /**
415
+ * Unique identifier of the TextLineItem.
416
+ *
417
+ */
418
+ readonly id: string;
419
+ /**
420
+ * Name of the TextLineItem.
421
+ *
422
+ *
423
+ */
424
+ readonly name: LocalizedString;
425
+ /**
426
+ * Number of entries in the TextLineItem.
427
+ *
428
+ *
429
+ */
430
+ readonly quantity: number;
431
+ }
432
+ export interface TextLineItemDraft {
433
+ /**
434
+ * Date and time the TextLineItem is added to the [ShoppingList](ctp:api:type:ShoppingList). If not set, the current date and time (UTC) is used.
435
+ *
436
+ *
437
+ */
438
+ readonly addedAt?: string;
439
+ /**
440
+ * Custom Fields for the TextLineItem.
441
+ *
442
+ *
443
+ */
444
+ readonly custom?: CustomFieldsDraft;
445
+ /**
446
+ * Description of the TextLineItem.
447
+ *
448
+ *
449
+ */
450
+ readonly description?: LocalizedString;
451
+ /**
452
+ * Name of the TextLineItem.
453
+ *
454
+ *
455
+ */
456
+ readonly name: LocalizedString;
457
+ /**
458
+ * Number of entries in the TextLineItem.
459
+ *
460
+ *
461
+ */
462
+ readonly quantity?: number;
463
+ }
464
+ /**
465
+ * The [ProductVariant](ctp:api:type:ProductVariant) to be included in the ShoppingListLineItem must be specified using the `productID` and `variantID`, or by the `sku`.
466
+ * If the ShoppingList already contains a ShoppingListLineItem for the same Product Variant with the same Custom Fields, then only the quantity of the existing ShoppingListLineItem is increased.
467
+ * A ShoppingListLineItem with an empty `variantId` is not considered the same as a ShoppingListLineItem with a `variantId` currently referring to the Master Variant.
468
+ *
469
+ */
470
+ export interface ShoppingListAddLineItemAction {
471
+ readonly action: 'addLineItem';
472
+ /**
473
+ * `sku` of the [ProductVariant](ctp:api:type:ProductVariant).
474
+ *
475
+ *
476
+ */
477
+ readonly sku?: string;
478
+ /**
479
+ * Unique identifier of a [Product](ctp:api:type:Product).
480
+ *
481
+ *
482
+ */
483
+ readonly productId?: string;
484
+ /**
485
+ * `id` of the [ProductVariant](ctp:api:type:ProductVariant). If not set, the ShoppingListLineItem refers to the Master Variant.
486
+ *
487
+ *
488
+ */
489
+ readonly variantId?: number;
490
+ /**
491
+ * Number of Products in the ShoppingListLineItem.
492
+ *
493
+ *
494
+ */
495
+ readonly quantity?: number;
496
+ /**
497
+ * Date and time the TextLineItem is added to the [ShoppingList](ctp:api:type:ShoppingList). If not set, the current date and time (UTC) is used.
498
+ *
499
+ *
500
+ */
501
+ readonly addedAt?: string;
502
+ /**
503
+ * Custom Fields defined for the ShoppingListLineItem.
504
+ *
505
+ *
506
+ */
507
+ readonly custom?: CustomFieldsDraft;
508
+ }
509
+ export interface ShoppingListAddTextLineItemAction {
510
+ readonly action: 'addTextLineItem';
511
+ /**
512
+ * Name of the TextLineItem.
513
+ *
514
+ *
515
+ */
516
+ readonly name: LocalizedString;
517
+ /**
518
+ * Description of the TextLineItem.
519
+ *
520
+ *
521
+ */
522
+ readonly description?: LocalizedString;
523
+ /**
524
+ * Number of entries in the TextLineItem.
525
+ *
526
+ *
527
+ */
528
+ readonly quantity?: number;
529
+ /**
530
+ * Date and time the TextLineItem is added to the [ShoppingList](ctp:api:type:ShoppingList). If not set, the current date and time (UTC) is used.
531
+ *
532
+ *
533
+ */
534
+ readonly addedAt?: string;
535
+ /**
536
+ * Custom Fields defined for the TextLineItem.
537
+ *
538
+ *
539
+ */
540
+ readonly custom?: CustomFieldsDraft;
541
+ }
542
+ export interface ShoppingListChangeLineItemQuantityAction {
543
+ readonly action: 'changeLineItemQuantity';
544
+ /**
545
+ * The `id` of the [ShoppingListLineItem](ctp:api:type:ShoppingListLineItem) to update.
546
+ *
547
+ *
548
+ */
549
+ readonly lineItemId: string;
550
+ /**
551
+ * New value to set. If `0`, the ShoppingListLineItem is removed from the ShoppingList.
552
+ *
553
+ *
554
+ */
555
+ readonly quantity: number;
556
+ }
557
+ export interface ShoppingListChangeLineItemsOrderAction {
558
+ readonly action: 'changeLineItemsOrder';
559
+ /**
560
+ * All existing ShoppingListLineItem `id`s in the desired new order.
561
+ *
562
+ *
563
+ */
564
+ readonly lineItemOrder: string[];
565
+ }
566
+ export interface ShoppingListChangeNameAction {
567
+ readonly action: 'changeName';
568
+ /**
569
+ * New value to set. Must not be empty.
570
+ *
571
+ *
572
+ */
573
+ readonly name: LocalizedString;
574
+ }
575
+ export interface ShoppingListChangeTextLineItemNameAction {
576
+ readonly action: 'changeTextLineItemName';
577
+ /**
578
+ * The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update.
579
+ *
580
+ *
581
+ */
582
+ readonly textLineItemId: string;
583
+ /**
584
+ * New value to set. Must not be empty.
585
+ *
586
+ *
587
+ */
588
+ readonly name: LocalizedString;
589
+ }
590
+ export interface ShoppingListChangeTextLineItemQuantityAction {
591
+ readonly action: 'changeTextLineItemQuantity';
592
+ /**
593
+ * The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update.
594
+ *
595
+ *
596
+ */
597
+ readonly textLineItemId: string;
598
+ /**
599
+ * New value to set. If `0`, the TextLineItem is removed from the ShoppingList.
600
+ *
601
+ *
602
+ */
603
+ readonly quantity: number;
604
+ }
605
+ export interface ShoppingListChangeTextLineItemsOrderAction {
606
+ readonly action: 'changeTextLineItemsOrder';
607
+ /**
608
+ * Must contain all existing [TextLineItem](ctp:api:type:TextLineItem) `id`s in the desired new order.
609
+ *
610
+ *
611
+ */
612
+ readonly textLineItemOrder: string[];
613
+ }
614
+ export interface ShoppingListRemoveLineItemAction {
615
+ readonly action: 'removeLineItem';
616
+ /**
617
+ * The `id` of the [ShoppingListLineItem](ctp:api:type:ShoppingListLineItem) to update.
618
+ *
619
+ *
620
+ */
621
+ readonly lineItemId: string;
622
+ /**
623
+ * Amount to remove from the `quantity` of the ShoppingListLineItem. If not set, the ShoppingListLineItem is removed from the ShoppingList. If this value matches or exceeds the current `quantity` of the ShoppingListLineItem, the ShoppingListLineItem is removed from the ShoppingList.
624
+ *
625
+ *
626
+ */
627
+ readonly quantity?: number;
628
+ }
629
+ export interface ShoppingListRemoveTextLineItemAction {
630
+ readonly action: 'removeTextLineItem';
631
+ /**
632
+ * The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update.
633
+ *
634
+ *
635
+ */
636
+ readonly textLineItemId: string;
637
+ /**
638
+ * Amount to remove from the `quantity` of the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the current `quantity` of the TextLineItem, the TextLineItem is removed from the ShoppingList.
639
+ *
640
+ *
641
+ */
642
+ readonly quantity?: number;
643
+ }
644
+ export interface ShoppingListSetAnonymousIdAction {
645
+ readonly action: 'setAnonymousId';
646
+ /**
647
+ * Value to set. If empty, any existing value will be removed.
648
+ *
649
+ *
650
+ */
651
+ readonly anonymousId?: string;
652
+ }
653
+ export interface ShoppingListSetCustomFieldAction {
654
+ readonly action: 'setCustomField';
655
+ /**
656
+ * Name of the [Custom Field](/../api/projects/custom-fields).
657
+ *
658
+ *
659
+ */
660
+ readonly name: string;
661
+ /**
662
+ * If `value` is absent or `null`, this field will be removed if it exists.
663
+ * Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
664
+ * If `value` is provided, it is set for the field defined by `name`.
665
+ *
666
+ *
667
+ */
668
+ readonly value?: any;
669
+ }
670
+ export interface ShoppingListSetCustomTypeAction {
671
+ readonly action: 'setCustomType';
672
+ /**
673
+ * Defines the [Type](ctp:api:type:Type) that extends the ShoppingList with [Custom Fields](/../api/projects/custom-fields).
674
+ * If absent, any existing Type and Custom Fields are removed from the ShoppingList.
675
+ *
676
+ *
677
+ */
678
+ readonly type?: TypeResourceIdentifier;
679
+ /**
680
+ * Sets the [Custom Fields](/../api/projects/custom-fields) fields for the ShoppingList.
681
+ *
682
+ *
683
+ */
684
+ readonly fields?: FieldContainer;
685
+ }
686
+ export interface ShoppingListSetCustomerAction {
687
+ readonly action: 'setCustomer';
688
+ /**
689
+ * The [Customer](ctp:api:type:Customer) the ShoppingList should be associated to. If empty, any existing value will be removed.
690
+ *
691
+ *
692
+ */
693
+ readonly customer?: CustomerResourceIdentifier;
694
+ }
695
+ export interface ShoppingListSetDeleteDaysAfterLastModificationAction {
696
+ readonly action: 'setDeleteDaysAfterLastModification';
697
+ /**
698
+ * Value to set. If empty, any existing value will be removed.
699
+ *
700
+ *
701
+ */
702
+ readonly deleteDaysAfterLastModification?: number;
703
+ }
704
+ export interface ShoppingListSetDescriptionAction {
705
+ readonly action: 'setDescription';
706
+ /**
707
+ * Value to set. If empty, any existing value will be removed.
708
+ *
709
+ *
710
+ */
711
+ readonly description?: LocalizedString;
712
+ }
713
+ export interface ShoppingListSetKeyAction {
714
+ readonly action: 'setKey';
715
+ /**
716
+ * Value to set. If empty, any existing value will be removed.
717
+ *
718
+ */
719
+ readonly key?: string;
720
+ }
721
+ export interface ShoppingListSetLineItemCustomFieldAction {
722
+ readonly action: 'setLineItemCustomField';
723
+ /**
724
+ * The `id` of the [ShoppingListLineItem](ctp:api:type:ShoppingListLineItem) to update.
725
+ *
726
+ *
727
+ */
728
+ readonly lineItemId: string;
729
+ /**
730
+ * Name of the [Custom Field](/../api/projects/custom-fields).
731
+ *
732
+ *
733
+ */
734
+ readonly name: string;
735
+ /**
736
+ * If `value` is absent or `null`, this field will be removed if it exists.
737
+ * Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
738
+ * If `value` is provided, it is set for the field defined by `name`.
739
+ *
740
+ *
741
+ */
742
+ readonly value?: any;
743
+ }
744
+ export interface ShoppingListSetLineItemCustomTypeAction {
745
+ readonly action: 'setLineItemCustomType';
746
+ /**
747
+ * The `id` of the [ShoppingListLineItem](ctp:api:type:ShoppingListLineItem) to update.
748
+ *
749
+ *
750
+ */
751
+ readonly lineItemId: string;
752
+ /**
753
+ * Defines the [Type](ctp:api:type:Type) that extends the ShoppingListLineItem with [Custom Fields](/../api/projects/custom-fields).
754
+ * If absent, any existing Type and Custom Fields are removed from the ShoppingListLineItem.
755
+ *
756
+ *
757
+ */
758
+ readonly type?: TypeResourceIdentifier;
759
+ /**
760
+ * Sets the [Custom Fields](/../api/projects/custom-fields) fields for the ShoppingListLineItem.
761
+ *
762
+ *
763
+ */
764
+ readonly fields?: FieldContainer;
765
+ }
766
+ export interface ShoppingListSetSlugAction {
767
+ readonly action: 'setSlug';
768
+ /**
769
+ * Value to set. If empty, any existing value will be removed. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. Must match the pattern `^[A-Za-z0-9_-]{2,256}+$`
770
+ *
771
+ *
772
+ */
773
+ readonly slug?: LocalizedString;
774
+ }
775
+ export interface ShoppingListSetStoreAction {
776
+ readonly action: 'setStore';
777
+ /**
778
+ * The [Store](ctp:api:type:Store) the ShoppingList should be assigned to. If empty, any existing value will be removed.
779
+ *
780
+ *
781
+ */
782
+ readonly store?: StoreResourceIdentifier;
783
+ }
784
+ export interface ShoppingListSetTextLineItemCustomFieldAction {
785
+ readonly action: 'setTextLineItemCustomField';
786
+ /**
787
+ * The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update.
788
+ *
789
+ *
790
+ */
791
+ readonly textLineItemId: string;
792
+ /**
793
+ * Name of the [Custom Field](/../api/projects/custom-fields).
794
+ *
795
+ *
796
+ */
797
+ readonly name: string;
798
+ /**
799
+ * If `value` is absent or `null`, this field will be removed if it exists.
800
+ * Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
801
+ * If `value` is provided, it is set for the field defined by `name`.
802
+ *
803
+ *
804
+ */
805
+ readonly value?: any;
806
+ }
807
+ export interface ShoppingListSetTextLineItemCustomTypeAction {
808
+ readonly action: 'setTextLineItemCustomType';
809
+ /**
810
+ * The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update.
811
+ *
812
+ *
813
+ */
814
+ readonly textLineItemId: string;
815
+ /**
816
+ * Defines the [Type](ctp:api:type:Type) that extends the TextLineItem with [Custom Fields](/../api/projects/custom-fields).
817
+ * If absent, any existing Type and Custom Fields are removed from the TextLineItem.
818
+ *
819
+ *
820
+ */
821
+ readonly type?: TypeResourceIdentifier;
822
+ /**
823
+ * Sets the [Custom Fields](/../api/projects/custom-fields) fields for the TextLineItem.
824
+ *
825
+ *
826
+ */
827
+ readonly fields?: FieldContainer;
828
+ }
829
+ export interface ShoppingListSetTextLineItemDescriptionAction {
830
+ readonly action: 'setTextLineItemDescription';
831
+ /**
832
+ * The `id` of the [TextLineItem](ctp:api:type:TextLineItem) to update.
833
+ *
834
+ *
835
+ */
836
+ readonly textLineItemId: string;
837
+ /**
838
+ * Value to set. If empty, any existing value will be removed.
839
+ *
840
+ *
841
+ */
842
+ readonly description?: LocalizedString;
843
+ }
844
+ //# sourceMappingURL=shopping-list.d.ts.map