@gradientedge/commercetools-utils 5.27.1 → 5.28.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 (393) hide show
  1. package/dist/cjs/types/models/approval-flow.d.ts +264 -0
  2. package/dist/cjs/types/models/approval-flow.d.ts.map +1 -0
  3. package/dist/cjs/types/models/approval-flow.js +8 -0
  4. package/dist/cjs/types/models/approval-flow.js.map +1 -0
  5. package/dist/cjs/types/models/approval-rule.d.ts +415 -0
  6. package/dist/cjs/types/models/approval-rule.d.ts.map +1 -0
  7. package/dist/cjs/types/models/approval-rule.js +8 -0
  8. package/dist/cjs/types/models/approval-rule.js.map +1 -0
  9. package/dist/cjs/types/models/associate-role.d.ts +319 -0
  10. package/dist/cjs/types/models/associate-role.d.ts.map +1 -0
  11. package/dist/cjs/types/models/associate-role.js +8 -0
  12. package/dist/cjs/types/models/associate-role.js.map +1 -0
  13. package/dist/cjs/types/models/attribute-group.d.ts +254 -0
  14. package/dist/cjs/types/models/attribute-group.d.ts.map +1 -0
  15. package/dist/cjs/types/models/attribute-group.js +8 -0
  16. package/dist/cjs/types/models/attribute-group.js.map +1 -0
  17. package/dist/cjs/types/models/business-unit.d.ts +1244 -0
  18. package/dist/cjs/types/models/business-unit.d.ts.map +1 -0
  19. package/dist/cjs/types/models/business-unit.js +8 -0
  20. package/dist/cjs/types/models/business-unit.js.map +1 -0
  21. package/dist/cjs/types/models/cart-discount.d.ts +848 -0
  22. package/dist/cjs/types/models/cart-discount.d.ts.map +1 -0
  23. package/dist/cjs/types/models/cart-discount.js +8 -0
  24. package/dist/cjs/types/models/cart-discount.js.map +1 -0
  25. package/dist/cjs/types/models/cart.d.ts +3593 -0
  26. package/dist/cjs/types/models/cart.d.ts.map +1 -0
  27. package/dist/cjs/types/models/cart.js +8 -0
  28. package/dist/cjs/types/models/cart.js.map +1 -0
  29. package/dist/cjs/types/models/category.d.ts +636 -0
  30. package/dist/cjs/types/models/category.d.ts.map +1 -0
  31. package/dist/cjs/types/models/category.js +8 -0
  32. package/dist/cjs/types/models/category.js.map +1 -0
  33. package/dist/cjs/types/models/channel.d.ts +380 -0
  34. package/dist/cjs/types/models/channel.d.ts.map +1 -0
  35. package/dist/cjs/types/models/channel.js +8 -0
  36. package/dist/cjs/types/models/channel.js.map +1 -0
  37. package/dist/cjs/types/models/common.d.ts +1163 -0
  38. package/dist/cjs/types/models/common.d.ts.map +1 -0
  39. package/dist/cjs/types/models/common.js +8 -0
  40. package/dist/cjs/types/models/common.js.map +1 -0
  41. package/dist/cjs/types/models/custom-object.d.ts +152 -0
  42. package/dist/cjs/types/models/custom-object.d.ts.map +1 -0
  43. package/dist/cjs/types/models/custom-object.js +8 -0
  44. package/dist/cjs/types/models/custom-object.js.map +1 -0
  45. package/dist/cjs/types/models/customer-group.d.ts +235 -0
  46. package/dist/cjs/types/models/customer-group.d.ts.map +1 -0
  47. package/dist/cjs/types/models/customer-group.js +8 -0
  48. package/dist/cjs/types/models/customer-group.js.map +1 -0
  49. package/dist/cjs/types/models/customer-search.d.ts +114 -0
  50. package/dist/cjs/types/models/customer-search.d.ts.map +1 -0
  51. package/dist/cjs/types/models/customer-search.js +8 -0
  52. package/dist/cjs/types/models/customer-search.js.map +1 -0
  53. package/dist/cjs/types/models/customer.d.ts +1270 -0
  54. package/dist/cjs/types/models/customer.d.ts.map +1 -0
  55. package/dist/cjs/types/models/customer.js +8 -0
  56. package/dist/cjs/types/models/customer.js.map +1 -0
  57. package/dist/cjs/types/models/discount-code.d.ts +473 -0
  58. package/dist/cjs/types/models/discount-code.d.ts.map +1 -0
  59. package/dist/cjs/types/models/discount-code.js +8 -0
  60. package/dist/cjs/types/models/discount-code.js.map +1 -0
  61. package/dist/cjs/types/models/error.d.ts +3330 -0
  62. package/dist/cjs/types/models/error.d.ts.map +1 -0
  63. package/dist/cjs/types/models/error.js +8 -0
  64. package/dist/cjs/types/models/error.js.map +1 -0
  65. package/dist/cjs/types/models/extension.d.ts +336 -0
  66. package/dist/cjs/types/models/extension.d.ts.map +1 -0
  67. package/dist/cjs/types/models/extension.js +8 -0
  68. package/dist/cjs/types/models/extension.js.map +1 -0
  69. package/dist/cjs/types/models/index.d.ts +48 -0
  70. package/dist/cjs/types/models/index.d.ts.map +1 -0
  71. package/dist/cjs/types/models/index.js +64 -0
  72. package/dist/cjs/types/models/index.js.map +1 -0
  73. package/dist/cjs/types/models/inventory.d.ts +330 -0
  74. package/dist/cjs/types/models/inventory.d.ts.map +1 -0
  75. package/dist/cjs/types/models/inventory.js +8 -0
  76. package/dist/cjs/types/models/inventory.js.map +1 -0
  77. package/dist/cjs/types/models/me.d.ts +2636 -0
  78. package/dist/cjs/types/models/me.d.ts.map +1 -0
  79. package/dist/cjs/types/models/me.js +8 -0
  80. package/dist/cjs/types/models/me.js.map +1 -0
  81. package/dist/cjs/types/models/message.d.ts +23707 -0
  82. package/dist/cjs/types/models/message.d.ts.map +1 -0
  83. package/dist/cjs/types/models/message.js +8 -0
  84. package/dist/cjs/types/models/message.js.map +1 -0
  85. package/dist/cjs/types/models/order-edit.d.ts +2725 -0
  86. package/dist/cjs/types/models/order-edit.d.ts.map +1 -0
  87. package/dist/cjs/types/models/order-edit.js +8 -0
  88. package/dist/cjs/types/models/order-edit.js.map +1 -0
  89. package/dist/cjs/types/models/order.d.ts +3187 -0
  90. package/dist/cjs/types/models/order.d.ts.map +1 -0
  91. package/dist/cjs/types/models/order.js +8 -0
  92. package/dist/cjs/types/models/order.js.map +1 -0
  93. package/dist/cjs/types/models/payment.d.ts +680 -0
  94. package/dist/cjs/types/models/payment.d.ts.map +1 -0
  95. package/dist/cjs/types/models/payment.js +8 -0
  96. package/dist/cjs/types/models/payment.js.map +1 -0
  97. package/dist/cjs/types/models/product-discount.d.ts +465 -0
  98. package/dist/cjs/types/models/product-discount.d.ts.map +1 -0
  99. package/dist/cjs/types/models/product-discount.js +8 -0
  100. package/dist/cjs/types/models/product-discount.js.map +1 -0
  101. package/dist/cjs/types/models/product-search.d.ts +437 -0
  102. package/dist/cjs/types/models/product-search.d.ts.map +1 -0
  103. package/dist/cjs/types/models/product-search.js +8 -0
  104. package/dist/cjs/types/models/product-search.js.map +1 -0
  105. package/dist/cjs/types/models/product-selection.d.ts +579 -0
  106. package/dist/cjs/types/models/product-selection.d.ts.map +1 -0
  107. package/dist/cjs/types/models/product-selection.js +8 -0
  108. package/dist/cjs/types/models/product-selection.js.map +1 -0
  109. package/dist/cjs/types/models/product-tailoring.d.ts +1368 -0
  110. package/dist/cjs/types/models/product-tailoring.d.ts.map +1 -0
  111. package/dist/cjs/types/models/product-tailoring.js +8 -0
  112. package/dist/cjs/types/models/product-tailoring.js.map +1 -0
  113. package/dist/cjs/types/models/product-type.d.ts +775 -0
  114. package/dist/cjs/types/models/product-type.d.ts.map +1 -0
  115. package/dist/cjs/types/models/product-type.js +8 -0
  116. package/dist/cjs/types/models/product-type.js.map +1 -0
  117. package/dist/cjs/types/models/product.d.ts +2314 -0
  118. package/dist/cjs/types/models/product.d.ts.map +1 -0
  119. package/dist/cjs/types/models/product.js +8 -0
  120. package/dist/cjs/types/models/product.js.map +1 -0
  121. package/dist/cjs/types/models/project.d.ts +418 -0
  122. package/dist/cjs/types/models/project.d.ts.map +1 -0
  123. package/dist/cjs/types/models/project.js +8 -0
  124. package/dist/cjs/types/models/project.js.map +1 -0
  125. package/dist/cjs/types/models/quote-request.d.ts +452 -0
  126. package/dist/cjs/types/models/quote-request.d.ts.map +1 -0
  127. package/dist/cjs/types/models/quote-request.js +8 -0
  128. package/dist/cjs/types/models/quote-request.js.map +1 -0
  129. package/dist/cjs/types/models/quote.d.ts +473 -0
  130. package/dist/cjs/types/models/quote.d.ts.map +1 -0
  131. package/dist/cjs/types/models/quote.js +8 -0
  132. package/dist/cjs/types/models/quote.js.map +1 -0
  133. package/dist/cjs/types/models/review.d.ts +435 -0
  134. package/dist/cjs/types/models/review.d.ts.map +1 -0
  135. package/dist/cjs/types/models/review.js +8 -0
  136. package/dist/cjs/types/models/review.js.map +1 -0
  137. package/dist/cjs/types/models/scalar-types.d.ts +10 -0
  138. package/dist/cjs/types/models/scalar-types.d.ts.map +1 -0
  139. package/dist/cjs/types/models/scalar-types.js +8 -0
  140. package/dist/cjs/types/models/scalar-types.js.map +1 -0
  141. package/dist/cjs/types/models/search.d.ts +334 -0
  142. package/dist/cjs/types/models/search.d.ts.map +1 -0
  143. package/dist/cjs/types/models/search.js +8 -0
  144. package/dist/cjs/types/models/search.js.map +1 -0
  145. package/dist/cjs/types/models/shipping-method.d.ts +595 -0
  146. package/dist/cjs/types/models/shipping-method.d.ts.map +1 -0
  147. package/dist/cjs/types/models/shipping-method.js +8 -0
  148. package/dist/cjs/types/models/shipping-method.js.map +1 -0
  149. package/dist/cjs/types/models/shopping-list.d.ts +941 -0
  150. package/dist/cjs/types/models/shopping-list.d.ts.map +1 -0
  151. package/dist/cjs/types/models/shopping-list.js +8 -0
  152. package/dist/cjs/types/models/shopping-list.js.map +1 -0
  153. package/dist/cjs/types/models/staged-quote.d.ts +345 -0
  154. package/dist/cjs/types/models/staged-quote.d.ts.map +1 -0
  155. package/dist/cjs/types/models/staged-quote.js +8 -0
  156. package/dist/cjs/types/models/staged-quote.js.map +1 -0
  157. package/dist/cjs/types/models/standalone-price.d.ts +546 -0
  158. package/dist/cjs/types/models/standalone-price.d.ts.map +1 -0
  159. package/dist/cjs/types/models/standalone-price.js +8 -0
  160. package/dist/cjs/types/models/standalone-price.js.map +1 -0
  161. package/dist/cjs/types/models/state.d.ts +342 -0
  162. package/dist/cjs/types/models/state.d.ts.map +1 -0
  163. package/dist/cjs/types/models/state.js +8 -0
  164. package/dist/cjs/types/models/state.js.map +1 -0
  165. package/dist/cjs/types/models/store-country.d.ts +14 -0
  166. package/dist/cjs/types/models/store-country.d.ts.map +1 -0
  167. package/dist/cjs/types/models/store-country.js +8 -0
  168. package/dist/cjs/types/models/store-country.js.map +1 -0
  169. package/dist/cjs/types/models/store.d.ts +548 -0
  170. package/dist/cjs/types/models/store.d.ts.map +1 -0
  171. package/dist/cjs/types/models/store.js +8 -0
  172. package/dist/cjs/types/models/store.js.map +1 -0
  173. package/dist/cjs/types/models/subscription.d.ts +772 -0
  174. package/dist/cjs/types/models/subscription.d.ts.map +1 -0
  175. package/dist/cjs/types/models/subscription.js +8 -0
  176. package/dist/cjs/types/models/subscription.js.map +1 -0
  177. package/dist/cjs/types/models/tax-category.d.ts +379 -0
  178. package/dist/cjs/types/models/tax-category.d.ts.map +1 -0
  179. package/dist/cjs/types/models/tax-category.js +8 -0
  180. package/dist/cjs/types/models/tax-category.js.map +1 -0
  181. package/dist/cjs/types/models/type.d.ts +646 -0
  182. package/dist/cjs/types/models/type.d.ts.map +1 -0
  183. package/dist/cjs/types/models/type.js +8 -0
  184. package/dist/cjs/types/models/type.js.map +1 -0
  185. package/dist/cjs/types/models/warning.d.ts +24 -0
  186. package/dist/cjs/types/models/warning.d.ts.map +1 -0
  187. package/dist/cjs/types/models/warning.js +8 -0
  188. package/dist/cjs/types/models/warning.js.map +1 -0
  189. package/dist/cjs/types/models/zone.d.ts +235 -0
  190. package/dist/cjs/types/models/zone.d.ts.map +1 -0
  191. package/dist/cjs/types/models/zone.js +8 -0
  192. package/dist/cjs/types/models/zone.js.map +1 -0
  193. package/dist/cjs/types.d.ts +1 -1
  194. package/dist/cjs/types.d.ts.map +1 -1
  195. package/dist/cjs/types.js +15 -0
  196. package/dist/cjs/types.js.map +1 -1
  197. package/dist/mjs/types/models/approval-flow.d.ts +264 -0
  198. package/dist/mjs/types/models/approval-flow.d.ts.map +1 -0
  199. package/dist/mjs/types/models/approval-flow.js +7 -0
  200. package/dist/mjs/types/models/approval-flow.js.map +1 -0
  201. package/dist/mjs/types/models/approval-rule.d.ts +415 -0
  202. package/dist/mjs/types/models/approval-rule.d.ts.map +1 -0
  203. package/dist/mjs/types/models/approval-rule.js +7 -0
  204. package/dist/mjs/types/models/approval-rule.js.map +1 -0
  205. package/dist/mjs/types/models/associate-role.d.ts +319 -0
  206. package/dist/mjs/types/models/associate-role.d.ts.map +1 -0
  207. package/dist/mjs/types/models/associate-role.js +7 -0
  208. package/dist/mjs/types/models/associate-role.js.map +1 -0
  209. package/dist/mjs/types/models/attribute-group.d.ts +254 -0
  210. package/dist/mjs/types/models/attribute-group.d.ts.map +1 -0
  211. package/dist/mjs/types/models/attribute-group.js +7 -0
  212. package/dist/mjs/types/models/attribute-group.js.map +1 -0
  213. package/dist/mjs/types/models/business-unit.d.ts +1244 -0
  214. package/dist/mjs/types/models/business-unit.d.ts.map +1 -0
  215. package/dist/mjs/types/models/business-unit.js +7 -0
  216. package/dist/mjs/types/models/business-unit.js.map +1 -0
  217. package/dist/mjs/types/models/cart-discount.d.ts +848 -0
  218. package/dist/mjs/types/models/cart-discount.d.ts.map +1 -0
  219. package/dist/mjs/types/models/cart-discount.js +7 -0
  220. package/dist/mjs/types/models/cart-discount.js.map +1 -0
  221. package/dist/mjs/types/models/cart.d.ts +3593 -0
  222. package/dist/mjs/types/models/cart.d.ts.map +1 -0
  223. package/dist/mjs/types/models/cart.js +7 -0
  224. package/dist/mjs/types/models/cart.js.map +1 -0
  225. package/dist/mjs/types/models/category.d.ts +636 -0
  226. package/dist/mjs/types/models/category.d.ts.map +1 -0
  227. package/dist/mjs/types/models/category.js +7 -0
  228. package/dist/mjs/types/models/category.js.map +1 -0
  229. package/dist/mjs/types/models/channel.d.ts +380 -0
  230. package/dist/mjs/types/models/channel.d.ts.map +1 -0
  231. package/dist/mjs/types/models/channel.js +7 -0
  232. package/dist/mjs/types/models/channel.js.map +1 -0
  233. package/dist/mjs/types/models/common.d.ts +1163 -0
  234. package/dist/mjs/types/models/common.d.ts.map +1 -0
  235. package/dist/mjs/types/models/common.js +7 -0
  236. package/dist/mjs/types/models/common.js.map +1 -0
  237. package/dist/mjs/types/models/custom-object.d.ts +152 -0
  238. package/dist/mjs/types/models/custom-object.d.ts.map +1 -0
  239. package/dist/mjs/types/models/custom-object.js +7 -0
  240. package/dist/mjs/types/models/custom-object.js.map +1 -0
  241. package/dist/mjs/types/models/customer-group.d.ts +235 -0
  242. package/dist/mjs/types/models/customer-group.d.ts.map +1 -0
  243. package/dist/mjs/types/models/customer-group.js +7 -0
  244. package/dist/mjs/types/models/customer-group.js.map +1 -0
  245. package/dist/mjs/types/models/customer-search.d.ts +114 -0
  246. package/dist/mjs/types/models/customer-search.d.ts.map +1 -0
  247. package/dist/mjs/types/models/customer-search.js +7 -0
  248. package/dist/mjs/types/models/customer-search.js.map +1 -0
  249. package/dist/mjs/types/models/customer.d.ts +1270 -0
  250. package/dist/mjs/types/models/customer.d.ts.map +1 -0
  251. package/dist/mjs/types/models/customer.js +7 -0
  252. package/dist/mjs/types/models/customer.js.map +1 -0
  253. package/dist/mjs/types/models/discount-code.d.ts +473 -0
  254. package/dist/mjs/types/models/discount-code.d.ts.map +1 -0
  255. package/dist/mjs/types/models/discount-code.js +7 -0
  256. package/dist/mjs/types/models/discount-code.js.map +1 -0
  257. package/dist/mjs/types/models/error.d.ts +3330 -0
  258. package/dist/mjs/types/models/error.d.ts.map +1 -0
  259. package/dist/mjs/types/models/error.js +7 -0
  260. package/dist/mjs/types/models/error.js.map +1 -0
  261. package/dist/mjs/types/models/extension.d.ts +336 -0
  262. package/dist/mjs/types/models/extension.d.ts.map +1 -0
  263. package/dist/mjs/types/models/extension.js +7 -0
  264. package/dist/mjs/types/models/extension.js.map +1 -0
  265. package/dist/mjs/types/models/index.d.ts +48 -0
  266. package/dist/mjs/types/models/index.d.ts.map +1 -0
  267. package/dist/mjs/types/models/index.js +48 -0
  268. package/dist/mjs/types/models/index.js.map +1 -0
  269. package/dist/mjs/types/models/inventory.d.ts +330 -0
  270. package/dist/mjs/types/models/inventory.d.ts.map +1 -0
  271. package/dist/mjs/types/models/inventory.js +7 -0
  272. package/dist/mjs/types/models/inventory.js.map +1 -0
  273. package/dist/mjs/types/models/me.d.ts +2636 -0
  274. package/dist/mjs/types/models/me.d.ts.map +1 -0
  275. package/dist/mjs/types/models/me.js +7 -0
  276. package/dist/mjs/types/models/me.js.map +1 -0
  277. package/dist/mjs/types/models/message.d.ts +23707 -0
  278. package/dist/mjs/types/models/message.d.ts.map +1 -0
  279. package/dist/mjs/types/models/message.js +7 -0
  280. package/dist/mjs/types/models/message.js.map +1 -0
  281. package/dist/mjs/types/models/order-edit.d.ts +2725 -0
  282. package/dist/mjs/types/models/order-edit.d.ts.map +1 -0
  283. package/dist/mjs/types/models/order-edit.js +7 -0
  284. package/dist/mjs/types/models/order-edit.js.map +1 -0
  285. package/dist/mjs/types/models/order.d.ts +3187 -0
  286. package/dist/mjs/types/models/order.d.ts.map +1 -0
  287. package/dist/mjs/types/models/order.js +7 -0
  288. package/dist/mjs/types/models/order.js.map +1 -0
  289. package/dist/mjs/types/models/payment.d.ts +680 -0
  290. package/dist/mjs/types/models/payment.d.ts.map +1 -0
  291. package/dist/mjs/types/models/payment.js +7 -0
  292. package/dist/mjs/types/models/payment.js.map +1 -0
  293. package/dist/mjs/types/models/product-discount.d.ts +465 -0
  294. package/dist/mjs/types/models/product-discount.d.ts.map +1 -0
  295. package/dist/mjs/types/models/product-discount.js +7 -0
  296. package/dist/mjs/types/models/product-discount.js.map +1 -0
  297. package/dist/mjs/types/models/product-search.d.ts +437 -0
  298. package/dist/mjs/types/models/product-search.d.ts.map +1 -0
  299. package/dist/mjs/types/models/product-search.js +7 -0
  300. package/dist/mjs/types/models/product-search.js.map +1 -0
  301. package/dist/mjs/types/models/product-selection.d.ts +579 -0
  302. package/dist/mjs/types/models/product-selection.d.ts.map +1 -0
  303. package/dist/mjs/types/models/product-selection.js +7 -0
  304. package/dist/mjs/types/models/product-selection.js.map +1 -0
  305. package/dist/mjs/types/models/product-tailoring.d.ts +1368 -0
  306. package/dist/mjs/types/models/product-tailoring.d.ts.map +1 -0
  307. package/dist/mjs/types/models/product-tailoring.js +7 -0
  308. package/dist/mjs/types/models/product-tailoring.js.map +1 -0
  309. package/dist/mjs/types/models/product-type.d.ts +775 -0
  310. package/dist/mjs/types/models/product-type.d.ts.map +1 -0
  311. package/dist/mjs/types/models/product-type.js +7 -0
  312. package/dist/mjs/types/models/product-type.js.map +1 -0
  313. package/dist/mjs/types/models/product.d.ts +2314 -0
  314. package/dist/mjs/types/models/product.d.ts.map +1 -0
  315. package/dist/mjs/types/models/product.js +7 -0
  316. package/dist/mjs/types/models/product.js.map +1 -0
  317. package/dist/mjs/types/models/project.d.ts +418 -0
  318. package/dist/mjs/types/models/project.d.ts.map +1 -0
  319. package/dist/mjs/types/models/project.js +7 -0
  320. package/dist/mjs/types/models/project.js.map +1 -0
  321. package/dist/mjs/types/models/quote-request.d.ts +452 -0
  322. package/dist/mjs/types/models/quote-request.d.ts.map +1 -0
  323. package/dist/mjs/types/models/quote-request.js +7 -0
  324. package/dist/mjs/types/models/quote-request.js.map +1 -0
  325. package/dist/mjs/types/models/quote.d.ts +473 -0
  326. package/dist/mjs/types/models/quote.d.ts.map +1 -0
  327. package/dist/mjs/types/models/quote.js +7 -0
  328. package/dist/mjs/types/models/quote.js.map +1 -0
  329. package/dist/mjs/types/models/review.d.ts +435 -0
  330. package/dist/mjs/types/models/review.d.ts.map +1 -0
  331. package/dist/mjs/types/models/review.js +7 -0
  332. package/dist/mjs/types/models/review.js.map +1 -0
  333. package/dist/mjs/types/models/scalar-types.d.ts +10 -0
  334. package/dist/mjs/types/models/scalar-types.d.ts.map +1 -0
  335. package/dist/mjs/types/models/scalar-types.js +7 -0
  336. package/dist/mjs/types/models/scalar-types.js.map +1 -0
  337. package/dist/mjs/types/models/search.d.ts +334 -0
  338. package/dist/mjs/types/models/search.d.ts.map +1 -0
  339. package/dist/mjs/types/models/search.js +7 -0
  340. package/dist/mjs/types/models/search.js.map +1 -0
  341. package/dist/mjs/types/models/shipping-method.d.ts +595 -0
  342. package/dist/mjs/types/models/shipping-method.d.ts.map +1 -0
  343. package/dist/mjs/types/models/shipping-method.js +7 -0
  344. package/dist/mjs/types/models/shipping-method.js.map +1 -0
  345. package/dist/mjs/types/models/shopping-list.d.ts +941 -0
  346. package/dist/mjs/types/models/shopping-list.d.ts.map +1 -0
  347. package/dist/mjs/types/models/shopping-list.js +7 -0
  348. package/dist/mjs/types/models/shopping-list.js.map +1 -0
  349. package/dist/mjs/types/models/staged-quote.d.ts +345 -0
  350. package/dist/mjs/types/models/staged-quote.d.ts.map +1 -0
  351. package/dist/mjs/types/models/staged-quote.js +7 -0
  352. package/dist/mjs/types/models/staged-quote.js.map +1 -0
  353. package/dist/mjs/types/models/standalone-price.d.ts +546 -0
  354. package/dist/mjs/types/models/standalone-price.d.ts.map +1 -0
  355. package/dist/mjs/types/models/standalone-price.js +7 -0
  356. package/dist/mjs/types/models/standalone-price.js.map +1 -0
  357. package/dist/mjs/types/models/state.d.ts +342 -0
  358. package/dist/mjs/types/models/state.d.ts.map +1 -0
  359. package/dist/mjs/types/models/state.js +7 -0
  360. package/dist/mjs/types/models/state.js.map +1 -0
  361. package/dist/mjs/types/models/store-country.d.ts +14 -0
  362. package/dist/mjs/types/models/store-country.d.ts.map +1 -0
  363. package/dist/mjs/types/models/store-country.js +7 -0
  364. package/dist/mjs/types/models/store-country.js.map +1 -0
  365. package/dist/mjs/types/models/store.d.ts +548 -0
  366. package/dist/mjs/types/models/store.d.ts.map +1 -0
  367. package/dist/mjs/types/models/store.js +7 -0
  368. package/dist/mjs/types/models/store.js.map +1 -0
  369. package/dist/mjs/types/models/subscription.d.ts +772 -0
  370. package/dist/mjs/types/models/subscription.d.ts.map +1 -0
  371. package/dist/mjs/types/models/subscription.js +7 -0
  372. package/dist/mjs/types/models/subscription.js.map +1 -0
  373. package/dist/mjs/types/models/tax-category.d.ts +379 -0
  374. package/dist/mjs/types/models/tax-category.d.ts.map +1 -0
  375. package/dist/mjs/types/models/tax-category.js +7 -0
  376. package/dist/mjs/types/models/tax-category.js.map +1 -0
  377. package/dist/mjs/types/models/type.d.ts +646 -0
  378. package/dist/mjs/types/models/type.d.ts.map +1 -0
  379. package/dist/mjs/types/models/type.js +7 -0
  380. package/dist/mjs/types/models/type.js.map +1 -0
  381. package/dist/mjs/types/models/warning.d.ts +24 -0
  382. package/dist/mjs/types/models/warning.d.ts.map +1 -0
  383. package/dist/mjs/types/models/warning.js +7 -0
  384. package/dist/mjs/types/models/warning.js.map +1 -0
  385. package/dist/mjs/types/models/zone.d.ts +235 -0
  386. package/dist/mjs/types/models/zone.d.ts.map +1 -0
  387. package/dist/mjs/types/models/zone.js +7 -0
  388. package/dist/mjs/types/models/zone.js.map +1 -0
  389. package/dist/mjs/types.d.ts +1 -1
  390. package/dist/mjs/types.d.ts.map +1 -1
  391. package/dist/mjs/types.js +1 -0
  392. package/dist/mjs/types.js.map +1 -1
  393. package/package.json +2 -1
@@ -0,0 +1,772 @@
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, Reference } from './common.js';
7
+ import { UserProvidedIdentifiers } from './message.js';
8
+ /**
9
+ * Defines the method of authentication for AWS SQS and SNS Destinations.
10
+ */
11
+ export type AwsAuthenticationMode = 'Credentials' | 'IAM' | string;
12
+ /**
13
+ * Notification about changes to a resource. The payload format differs for resource [creation](ctp:api:type:ResourceCreatedDeliveryPayload),
14
+ * [update](ctp:api:type:ResourceUpdatedDeliveryPayload),
15
+ * and [deletion](ctp:api:type:ResourceDeletedDeliveryPayload).
16
+ *
17
+ */
18
+ export interface ChangeSubscription {
19
+ /**
20
+ * Unique identifier for the type of resource, for example, `cart`.
21
+ *
22
+ *
23
+ */
24
+ readonly resourceTypeId: ChangeSubscriptionResourceTypeId;
25
+ }
26
+ /**
27
+ * Resource types supported by [ChangeSubscriptions](ctp:api:type:ChangeSubscription):
28
+ *
29
+ */
30
+ export type ChangeSubscriptionResourceTypeId = 'approval-flow' | 'approval-rule' | 'associate-role' | 'attribute-group' | 'business-unit' | 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-email-token' | 'customer-group' | 'customer-password-token' | 'discount-code' | 'extension' | 'inventory-entry' | 'key-value-document' | 'order' | 'order-edit' | 'payment' | 'product' | 'product-discount' | 'product-selection' | 'product-tailoring' | 'product-type' | 'quote' | 'quote-request' | 'review' | 'shipping-method' | 'shopping-list' | 'staged-quote' | 'standalone-price' | 'state' | 'store' | 'subscription' | 'tax-category' | 'type' | 'zone' | string;
31
+ /**
32
+ * The [CloudEventsFormat](ctp:api:type:CloudEventsFormat) represents event data in a way that conforms to a common specification. The payload can be found inside the `data` field.
33
+ *
34
+ */
35
+ export interface CloudEventsPayload {
36
+ /**
37
+ * The version of the [CloudEvents](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md) specification which the event uses.
38
+ *
39
+ *
40
+ */
41
+ readonly specversion: string;
42
+ /**
43
+ * Unique identifier of the event.
44
+ *
45
+ *
46
+ */
47
+ readonly id: string;
48
+ /**
49
+ * The `type` is namespaced with `com.commercetools`, followed by the [ReferenceTypeId](ctp:api:type:ReferenceTypeId), the type of Subscription (either `message` or `change`), and the message or change type.
50
+ * For example, `com.commercetools.product.message.ProductPublished` or `com.commercetools.order.change.ResourceCreated`.
51
+ *
52
+ *
53
+ */
54
+ readonly type: string;
55
+ /**
56
+ * The default REST URI of the [ReferenceTypeId](ctp:api:type:ReferenceTypeId) that triggered this event, including the project key.
57
+ *
58
+ *
59
+ */
60
+ readonly source: string;
61
+ /**
62
+ * Unique identifier of the resource that triggered the event.
63
+ *
64
+ *
65
+ */
66
+ readonly subject: string;
67
+ /**
68
+ * Corresponds to the `lastModifiedAt` of the resource at the time the event was triggered.
69
+ *
70
+ *
71
+ */
72
+ readonly time: string;
73
+ /**
74
+ * Corresponds to the `sequenceNumber` of a [MessageSubscription](ctp:api:type:MessageSubscription). Can be used to process messages in the correct order.
75
+ *
76
+ *
77
+ */
78
+ readonly sequence?: string;
79
+ /**
80
+ * `"Integer"`
81
+ *
82
+ *
83
+ */
84
+ readonly sequencetype?: string;
85
+ /**
86
+ * The URI from which the message can be retrieved if messages are [enabled](/../api/projects/messages#enable-querying-messages-via-the-api). Only set for [MessageSubscriptions](ctp:api:type:MessageSubscription).
87
+ *
88
+ *
89
+ */
90
+ readonly dataref?: string;
91
+ /**
92
+ * [MessageDeliveryPayload](ctp:api:type:MessageDeliveryPayload), [ResourceCreatedDeliveryPayload](ctp:api:type:ResourceCreatedDeliveryPayload), [ResourceUpdatedDeliveryPayload](ctp:api:type:ResourceUpdatedDeliveryPayload), or [ResourceDeletedDeliveryPayload](ctp:api:type:ResourceDeletedDeliveryPayload).
93
+ *
94
+ *
95
+ */
96
+ readonly data: DeliveryPayload;
97
+ }
98
+ export type DeliveryFormat = CloudEventsFormat | PlatformFormat;
99
+ /**
100
+ * The CloudEventsFormat can be used with any [Destination](#destination-1), and the payload is delivered in the `JSON Event Format`. [AzureEventGridDestination](ctp:api:type:AzureEventGridDestination) offers native support to filter and route CloudEvents.
101
+ *
102
+ */
103
+ export interface CloudEventsFormat {
104
+ readonly type: 'CloudEvents';
105
+ /**
106
+ *
107
+ */
108
+ readonly cloudEventsVersion: string;
109
+ }
110
+ /**
111
+ * All payloads for the [PlatformFormat](ctp:api:type:PlatformFormat) share these common fields.
112
+ *
113
+ */
114
+ export type DeliveryPayload = MessageDeliveryPayload | ResourceCreatedDeliveryPayload | ResourceDeletedDeliveryPayload | ResourceUpdatedDeliveryPayload;
115
+ export type Destination = AzureEventGridDestination | AzureServiceBusDestination | ConfluentCloudDestination | EventBridgeDestination | GoogleCloudPubSubDestination | SnsDestination | SqsDestination;
116
+ /**
117
+ * [Azure Event Grid](https://azure.microsoft.com/en-us/products/event-grid/) can be used to push notifications to Azure Functions, HTTP endpoints (webhooks), and several other Azure tools. Event Grid can only be used with the [CloudEventsFormat](ctp:api:type:CloudEventsFormat).
118
+ * To set up a Subscription with Azure Event Grid, first create a topic in the [Azure Portal](https://azure.microsoft.com/en-us/get-started/azure-portal/). To allow Composable Commerce to push notifications to your topic, provide an [access key](https://docs.microsoft.com/en-us/azure/event-grid/get-access-keys).
119
+ *
120
+ */
121
+ export interface AzureEventGridDestination {
122
+ readonly type: 'EventGrid';
123
+ /**
124
+ * URI of the topic.
125
+ *
126
+ *
127
+ */
128
+ readonly uri: string;
129
+ /**
130
+ * Partially hidden on retrieval for security reasons.
131
+ *
132
+ *
133
+ */
134
+ readonly accessKey: string;
135
+ }
136
+ /**
137
+ * [Azure Service Bus](https://azure.microsoft.com/en-us/products/service-bus/) can be used as a pull-queue with [Queues](https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions#queues), or to fan-out notifications with [Topics and Subscriptions](https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions).
138
+ * To set up a Subscription with Azure Service Bus, first create a queue/topic in the [Azure Portal](https://azure.microsoft.com/en-us/get-started/azure-portal/) with a Shared Access Policy including the `Send` permission.
139
+ *
140
+ */
141
+ export interface AzureServiceBusDestination {
142
+ readonly type: 'AzureServiceBus';
143
+ /**
144
+ * SharedAccessKey is partially hidden on retrieval for security reasons.
145
+ *
146
+ *
147
+ */
148
+ readonly connectionString: string;
149
+ }
150
+ /**
151
+ * This destination can be used to push notifications to [Confluent Cloud](https://www.confluent.io/confluent-cloud/).
152
+ * To set up a Subscription of this type, first, create a topic in Confluent Cloud.
153
+ * Then, to allow Composable Commerce to push notifications to your topic, generate [API keys](https://docs.confluent.io/cloud/current/access-management/authenticate/api-keys/api-keys.html) for your topic, and create the Subscription destination using the generated credentials.
154
+ *
155
+ * The Composable Commerce producer uses the following values: `SASL_SSL` for`security.protocol`, `PLAIN` for`sasl.mechanism`, and the default value (1048576) for `max.request.size`.
156
+ *
157
+ */
158
+ export interface ConfluentCloudDestination {
159
+ readonly type: 'ConfluentCloud';
160
+ /**
161
+ * URL to the bootstrap server including the port number in the format `<xxxxx>.<region>.<provider>.confluent.cloud:9092`.
162
+ *
163
+ *
164
+ */
165
+ readonly bootstrapServer: string;
166
+ /**
167
+ * Partially hidden on retrieval for security reasons.
168
+ *
169
+ *
170
+ */
171
+ readonly apiKey: string;
172
+ /**
173
+ * Partially hidden on retrieval for security reasons.
174
+ *
175
+ *
176
+ */
177
+ readonly apiSecret: string;
178
+ /**
179
+ * The Kafka `acks` value.
180
+ *
181
+ *
182
+ */
183
+ readonly acks: string;
184
+ /**
185
+ * The name of the topic.
186
+ *
187
+ *
188
+ */
189
+ readonly topic: string;
190
+ /**
191
+ * The Kafka record key.
192
+ *
193
+ *
194
+ */
195
+ readonly key?: string;
196
+ }
197
+ /**
198
+ * [AWS EventBridge](https://aws.amazon.com/eventbridge/) can be used to push events and messages to a serverless event bus that can forward them to AWS SQS, SNS, Lambda, and other AWS services based on forwarding rules.
199
+ * Once the Subscription is created, an equivalent "partner event source" is created in AWS EventBridge. This event source must be associated with an event bus for the Subscription setup to be complete.
200
+ *
201
+ */
202
+ export interface EventBridgeDestination {
203
+ readonly type: 'EventBridge';
204
+ /**
205
+ * AWS region that receives the events.
206
+ *
207
+ *
208
+ */
209
+ readonly region: string;
210
+ /**
211
+ * ID of the AWS account that receives the events.
212
+ *
213
+ *
214
+ */
215
+ readonly accountId: string;
216
+ /**
217
+ * URN for the EventBridge destination.
218
+ *
219
+ *
220
+ */
221
+ readonly source: string;
222
+ }
223
+ /**
224
+ * Destination for [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) that can be used
225
+ * for [Pull subscriptions](https://cloud.google.com/pubsub/docs/pull) as well as for [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
226
+ * The `topic` must give the `pubsub.topics.publish` permission to the service account `subscriptions@commercetools-platform.iam.gserviceaccount.com`.
227
+ * If used with the [CloudEventsFormat](#cloudeventsformat), the notification conforms to the [PubSub Protocol Binding](https://github.com/google/knative-gcp/blob/master/docs/spec/pubsub-protocol-binding.md) of the [Structured Content Mode](https://github.com/google/knative-gcp/blob/master/docs/spec/pubsub-protocol-binding.md#32-structured-content-mode).
228
+ *
229
+ */
230
+ export interface GoogleCloudPubSubDestination {
231
+ readonly type: 'GoogleCloudPubSub';
232
+ /**
233
+ * ID of the Google Cloud project that contains the Pub/Sub topic.
234
+ *
235
+ *
236
+ */
237
+ readonly projectId: string;
238
+ /**
239
+ * Name of the topic.
240
+ *
241
+ *
242
+ */
243
+ readonly topic: string;
244
+ }
245
+ /**
246
+ * This payload is sent for a [MessageSubscription](ctp:api:type:MessageSubscription).
247
+ *
248
+ */
249
+ export interface MessageDeliveryPayload {
250
+ readonly notificationType: 'Message';
251
+ /**
252
+ * `key` of the [Project](ctp:api:type:Project).
253
+ * Useful for processing notifications if the Destination receives them from multiple Projects.
254
+ *
255
+ *
256
+ */
257
+ readonly projectKey: string;
258
+ /**
259
+ * Reference to the resource that triggered the notification.
260
+ *
261
+ *
262
+ */
263
+ readonly resource: Reference;
264
+ /**
265
+ * User-defined unique identifiers of the resource.
266
+ *
267
+ *
268
+ */
269
+ readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers;
270
+ /**
271
+ * Unique ID of the message.
272
+ *
273
+ *
274
+ */
275
+ readonly id: string;
276
+ /**
277
+ * Last seen version of the resource.
278
+ *
279
+ *
280
+ */
281
+ readonly version: number;
282
+ /**
283
+ * Date and time (UTC) the resource was initially created.
284
+ *
285
+ *
286
+ */
287
+ readonly createdAt: string;
288
+ /**
289
+ * Date and time (UTC) the resource was last modified.
290
+ *
291
+ *
292
+ */
293
+ readonly lastModifiedAt: string;
294
+ /**
295
+ * Used to ensure all messages of the resource are processed in correct order.
296
+ * The `sequenceNumber` of the next message of the resource is a successor of the `sequenceNumber` of the current message.
297
+ *
298
+ *
299
+ */
300
+ readonly sequenceNumber: number;
301
+ /**
302
+ * Version of the resource on which the update was performed.
303
+ *
304
+ *
305
+ */
306
+ readonly resourceVersion: number;
307
+ /**
308
+ * If the payload does not fit into the size limit or its format is not accepted by the messaging service, the `payloadNotIncluded` field is present.
309
+ *
310
+ *
311
+ */
312
+ readonly payloadNotIncluded?: PayloadNotIncluded;
313
+ }
314
+ /**
315
+ * Messages will be delivered even if the Messages Query HTTP API [is not enabled](/../api/projects/messages#enable-querying-messages-via-the-api).
316
+ *
317
+ * For MessageSubscriptions, the format of the payload is [MessageDeliveryPayload](ctp:api:type:MessageDeliveryPayload).
318
+ *
319
+ */
320
+ export interface MessageSubscription {
321
+ /**
322
+ * Unique identifier for the type of resource, for example, `order`.
323
+ *
324
+ *
325
+ */
326
+ readonly resourceTypeId: MessageSubscriptionResourceTypeId;
327
+ /**
328
+ * Must contain valid message types for the resource. For example, for resource type `product` the message type `ProductPublished` is valid.
329
+ * If no `types` of messages are given, the Subscription will receive all messages for this resource.
330
+ *
331
+ *
332
+ */
333
+ readonly types?: string[];
334
+ }
335
+ /**
336
+ * Resource types supported by [MessageSubscriptions](ctp:api:type:MessageSubscription):
337
+ *
338
+ */
339
+ export type MessageSubscriptionResourceTypeId = 'approval-flow' | 'approval-rule' | 'associate-role' | 'business-unit' | 'category' | 'customer' | 'customer-email-token' | 'customer-group' | 'customer-password-token' | 'inventory-entry' | 'order' | 'payment' | 'product' | 'product-selection' | 'product-tailoring' | 'quote' | 'quote-request' | 'review' | 'staged-quote' | 'standalone-price' | 'store' | string;
340
+ export interface PayloadNotIncluded {
341
+ /**
342
+ * Reason the payload is not included. For example, the payload is too large, or its content is not supported by the Subscription destination.
343
+ *
344
+ *
345
+ */
346
+ readonly reason: string;
347
+ /**
348
+ * Value of the `type` field in the original payload.
349
+ *
350
+ *
351
+ */
352
+ readonly payloadType: string;
353
+ }
354
+ /**
355
+ * The PlatformFormat uses constructs that are similar to the ones used in the REST API, for example, on the [Messages Query HTTP API](/../api/projects/messages).
356
+ *
357
+ */
358
+ export interface PlatformFormat {
359
+ readonly type: 'Platform';
360
+ }
361
+ /**
362
+ * This payload is sent for a [ChangeSubscription](ctp:api:type:ChangeSubscription) when a resource is created.
363
+ *
364
+ */
365
+ export interface ResourceCreatedDeliveryPayload {
366
+ readonly notificationType: 'ResourceCreated';
367
+ /**
368
+ * `key` of the [Project](ctp:api:type:Project).
369
+ * Useful for processing notifications if the Destination receives them from multiple Projects.
370
+ *
371
+ *
372
+ */
373
+ readonly projectKey: string;
374
+ /**
375
+ * Reference to the resource that triggered the notification.
376
+ *
377
+ *
378
+ */
379
+ readonly resource: Reference;
380
+ /**
381
+ * User-defined unique identifiers of the resource.
382
+ *
383
+ *
384
+ */
385
+ readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers;
386
+ /**
387
+ * Last seen version of the resource.
388
+ *
389
+ *
390
+ */
391
+ readonly version: number;
392
+ /**
393
+ * Date and time (UTC) the resource was last modified.
394
+ *
395
+ *
396
+ */
397
+ readonly modifiedAt: string;
398
+ }
399
+ /**
400
+ * This payload is sent for a [ChangeSubscription](ctp:api:type:ChangeSubscription) when a resource is deleted.
401
+ *
402
+ */
403
+ export interface ResourceDeletedDeliveryPayload {
404
+ readonly notificationType: 'ResourceDeleted';
405
+ /**
406
+ * `key` of the [Project](ctp:api:type:Project).
407
+ * Useful for processing notifications if the Destination receives them from multiple Projects.
408
+ *
409
+ *
410
+ */
411
+ readonly projectKey: string;
412
+ /**
413
+ * Reference to the resource that triggered the notification.
414
+ *
415
+ *
416
+ */
417
+ readonly resource: Reference;
418
+ /**
419
+ * User-defined unique identifiers of the resource.
420
+ *
421
+ *
422
+ */
423
+ readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers;
424
+ /**
425
+ * Last seen version of the resource.
426
+ *
427
+ *
428
+ */
429
+ readonly version: number;
430
+ /**
431
+ * Date and time (UTC) the resource was last deleted.
432
+ *
433
+ *
434
+ */
435
+ readonly modifiedAt: string;
436
+ /**
437
+ * `true` if the `dataErasure` [parameter](/../api/gdpr#data-erasure-of-personal-data) on the `DELETE` request was set to `true`.
438
+ *
439
+ *
440
+ */
441
+ readonly dataErasure?: boolean;
442
+ }
443
+ /**
444
+ * This payload is sent for a [ChangeSubscription](ctp:api:type:ChangeSubscription) when a resource is updated. This includes updates by a background process, like a change in product availability.
445
+ *
446
+ */
447
+ export interface ResourceUpdatedDeliveryPayload {
448
+ readonly notificationType: 'ResourceUpdated';
449
+ /**
450
+ * `key` of the [Project](ctp:api:type:Project).
451
+ * Useful for processing notifications if the Destination receives them from multiple Projects.
452
+ *
453
+ *
454
+ */
455
+ readonly projectKey: string;
456
+ /**
457
+ * Reference to the resource that triggered the notification.
458
+ *
459
+ *
460
+ */
461
+ readonly resource: Reference;
462
+ /**
463
+ * User-defined unique identifiers of the resource.
464
+ *
465
+ *
466
+ */
467
+ readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers;
468
+ /**
469
+ * Last seen version of the resource.
470
+ *
471
+ *
472
+ */
473
+ readonly version: number;
474
+ /**
475
+ * Version of the resource before the update.
476
+ *
477
+ *
478
+ */
479
+ readonly oldVersion: number;
480
+ /**
481
+ * Date and time (UTC) the resource was last updated.
482
+ *
483
+ *
484
+ */
485
+ readonly modifiedAt: string;
486
+ }
487
+ /**
488
+ * [AWS SNS](https://aws.amazon.com/sns/) can be used to push messages to AWS Lambda, HTTP endpoints (webhooks), or fan-out messages to SQS queues. The SQS queue must be a [Standard](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/standard-queues.html) queue type.
489
+ *
490
+ * We recommend setting `authenticationMode` to `IAM`, to avoid unnecessary key management. For IAM authentication and before creating the Subscription, give permissions to the following user account: `arn:aws:iam::362576667341:user/subscriptions`. Otherwise, a test notification will not be sent.
491
+ *
492
+ * If you prefer to use `Credentials` for authentication, we recommend [creating an IAM user](https://docs.aws.amazon.com/sns/latest/dg/sns-setting-up.html#create-iam-user) with an `accessKey` and `accessSecret` pair specifically for each Subscription.
493
+ *
494
+ * The IAM user should only have the `sns:Publish` permission on this topic.
495
+ *
496
+ */
497
+ export interface SnsDestination {
498
+ readonly type: 'SNS';
499
+ /**
500
+ * Only present if `authenticationMode` is set to `Credentials`.
501
+ *
502
+ */
503
+ readonly accessKey?: string;
504
+ /**
505
+ * Only present if `authenticationMode` is set to `Credentials`.
506
+ *
507
+ */
508
+ readonly accessSecret?: string;
509
+ /**
510
+ * Amazon Resource Name (ARN) of the topic.
511
+ *
512
+ */
513
+ readonly topicArn: string;
514
+ /**
515
+ * Defines the method of authentication for the SNS topic.
516
+ *
517
+ */
518
+ readonly authenticationMode?: AwsAuthenticationMode;
519
+ }
520
+ /**
521
+ * [AWS SQS](https://aws.amazon.com/sqs/) is a pull-queue on AWS.
522
+ * The queue must be a [Standard](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/standard-queues.html) queue type with a `MaximumMessageSize` of `256 KB`.
523
+ *
524
+ * We recommend setting `authenticationMode` to `IAM`, to avoid unnecessary key management. For IAM authentication and before creating the Subscription, give permissions to the following user account: `arn:aws:iam::362576667341:user/subscriptions`. Otherwise, a test message will not be sent.
525
+ *
526
+ * If you prefer to use `Credentials` for authentication, we recommend [creating an IAM user](https://docs.aws.amazon.com/sns/latest/dg/sns-setting-up.html#create-iam-user) with an `accessKey` and `accessSecret` pair specifically for each Subscription.
527
+ *
528
+ * The IAM user should only have the `sqs:SendMessage` permission on this queue.
529
+ *
530
+ */
531
+ export interface SqsDestination {
532
+ readonly type: 'SQS';
533
+ /**
534
+ * Only present if `authenticationMode` is set to `Credentials`.
535
+ *
536
+ */
537
+ readonly accessKey?: string;
538
+ /**
539
+ * Only present if `authenticationMode` is set to `Credentials`.
540
+ *
541
+ */
542
+ readonly accessSecret?: string;
543
+ /**
544
+ * URL of the Amazon SQS queue.
545
+ *
546
+ *
547
+ */
548
+ readonly queueUrl: string;
549
+ /**
550
+ * [AWS Region](https://docs.aws.amazon.com/general/latest/gr/rande-manage.html) the message queue is located in.
551
+ *
552
+ *
553
+ */
554
+ readonly region: string;
555
+ /**
556
+ * Defines the method of authentication for the SQS queue.
557
+ *
558
+ */
559
+ readonly authenticationMode?: AwsAuthenticationMode;
560
+ }
561
+ export interface Subscription extends BaseResource {
562
+ /**
563
+ * Unique identifier of the Subscription.
564
+ *
565
+ *
566
+ */
567
+ readonly id: string;
568
+ /**
569
+ * Current version of the Subscription.
570
+ *
571
+ *
572
+ */
573
+ readonly version: number;
574
+ /**
575
+ * Date and time (UTC) the Subscription was initially created.
576
+ *
577
+ *
578
+ */
579
+ readonly createdAt: string;
580
+ /**
581
+ * Date and time (UTC) the Subscription was last modified.
582
+ *
583
+ *
584
+ */
585
+ readonly lastModifiedAt: string;
586
+ /**
587
+ * IDs and references that last modified the Subscription.
588
+ *
589
+ *
590
+ */
591
+ readonly lastModifiedBy?: LastModifiedBy;
592
+ /**
593
+ * IDs and references that created the Subscription.
594
+ *
595
+ *
596
+ */
597
+ readonly createdBy?: CreatedBy;
598
+ /**
599
+ * Changes subscribed to.
600
+ *
601
+ *
602
+ */
603
+ readonly changes: ChangeSubscription[];
604
+ /**
605
+ * Messaging service to which the notifications are sent.
606
+ *
607
+ *
608
+ */
609
+ readonly destination: Destination;
610
+ /**
611
+ * User-defined unique identifier of the Subscription.
612
+ *
613
+ *
614
+ */
615
+ readonly key?: string;
616
+ /**
617
+ * Messages subscribed to.
618
+ *
619
+ *
620
+ */
621
+ readonly messages: MessageSubscription[];
622
+ /**
623
+ * Format in which the payload is delivered.
624
+ *
625
+ *
626
+ */
627
+ readonly format: DeliveryFormat;
628
+ /**
629
+ * Status of the Subscription.
630
+ *
631
+ *
632
+ */
633
+ readonly status: SubscriptionHealthStatus;
634
+ }
635
+ /**
636
+ * Either `messages` or `changes` must be set.
637
+ *
638
+ */
639
+ export interface SubscriptionDraft {
640
+ /**
641
+ * Changes to be subscribed to.
642
+ *
643
+ *
644
+ */
645
+ readonly changes?: ChangeSubscription[];
646
+ /**
647
+ * Messaging service to which the notifications are sent.
648
+ *
649
+ *
650
+ */
651
+ readonly destination: Destination;
652
+ /**
653
+ * User-defined unique identifier for the Subscription.
654
+ *
655
+ *
656
+ */
657
+ readonly key?: string;
658
+ /**
659
+ * Messages to be subscribed to.
660
+ *
661
+ *
662
+ */
663
+ readonly messages?: MessageSubscription[];
664
+ /**
665
+ * Format in which the payload is delivered. When not provided, the [PlatformFormat](ctp:api:type:PlatformFormat) is selected by default.
666
+ *
667
+ *
668
+ */
669
+ readonly format?: DeliveryFormat;
670
+ }
671
+ /**
672
+ * The health status of the Subscription that indicates whether notifications are being delivered.
673
+ *
674
+ */
675
+ export type SubscriptionHealthStatus = 'ConfigurationError' | 'ConfigurationErrorDeliveryStopped' | 'Healthy' | 'ManuallySuspended' | 'TemporaryError' | string;
676
+ /**
677
+ * [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with `results` containing an array of [Subscription](ctp:api:type:Subscription).
678
+ *
679
+ */
680
+ export interface SubscriptionPagedQueryResponse {
681
+ /**
682
+ * Number of [results requested](/../api/general-concepts#limit).
683
+ *
684
+ *
685
+ */
686
+ readonly limit: number;
687
+ /**
688
+ * Number of [elements skipped](/../api/general-concepts#offset).
689
+ *
690
+ *
691
+ */
692
+ readonly offset: number;
693
+ /**
694
+ * Actual number of results returned.
695
+ *
696
+ *
697
+ */
698
+ readonly count: number;
699
+ /**
700
+ * Total number of results matching the query.
701
+ * This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency).
702
+ * This field is returned by default.
703
+ * For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`.
704
+ * When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries).
705
+ *
706
+ *
707
+ */
708
+ readonly total?: number;
709
+ /**
710
+ * Subscriptions matching the query.
711
+ *
712
+ *
713
+ */
714
+ readonly results: Subscription[];
715
+ }
716
+ export interface SubscriptionUpdate {
717
+ /**
718
+ * Expected version of the Subscription on which the changes should be applied.
719
+ * If the expected version does not match the actual version, a [ConcurrentModification](ctp:api:type:ConcurrentModificationError) error will be returned.
720
+ *
721
+ *
722
+ */
723
+ readonly version: number;
724
+ /**
725
+ * Update actions to be performed on the Subscription.
726
+ *
727
+ *
728
+ */
729
+ readonly actions: SubscriptionUpdateAction[];
730
+ }
731
+ export type SubscriptionUpdateAction = SubscriptionChangeDestinationAction | SubscriptionSetChangesAction | SubscriptionSetKeyAction | SubscriptionSetMessagesAction;
732
+ /**
733
+ * A test notification is sent to ensure the correct configuration of the Destination. If the notification cannot be delivered, the update will fail. The payload of the test notification is of type [ResourceCreated](ctp:api:type:ResourceCreatedDeliveryPayload) for the `resourceTypeId` `subscription`. The `status` will change to [Healthy](ctp:api:type:SubscriptionHealthStatus), if it isn't already.
734
+ *
735
+ */
736
+ export interface SubscriptionChangeDestinationAction {
737
+ readonly action: 'changeDestination';
738
+ /**
739
+ * New value to set. Must not be empty.
740
+ *
741
+ *
742
+ */
743
+ readonly destination: Destination;
744
+ }
745
+ export interface SubscriptionSetChangesAction {
746
+ readonly action: 'setChanges';
747
+ /**
748
+ * Value to set. Can only be unset if `messages` is set.
749
+ *
750
+ *
751
+ */
752
+ readonly changes?: ChangeSubscription[];
753
+ }
754
+ export interface SubscriptionSetKeyAction {
755
+ readonly action: 'setKey';
756
+ /**
757
+ * Value to set. If empty, any existing value will be removed.
758
+ *
759
+ *
760
+ */
761
+ readonly key?: string;
762
+ }
763
+ export interface SubscriptionSetMessagesAction {
764
+ readonly action: 'setMessages';
765
+ /**
766
+ * Value to set. Can only be unset if `changes` is set.
767
+ *
768
+ *
769
+ */
770
+ readonly messages?: MessageSubscription[];
771
+ }
772
+ //# sourceMappingURL=subscription.d.ts.map