@revenexx/node 0.0.1 → 0.0.2

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 (716) hide show
  1. package/README.md +1 -1
  2. package/dist/client.d.mts +175 -0
  3. package/dist/client.d.ts +175 -0
  4. package/dist/client.js +332 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/client.mjs +322 -0
  7. package/dist/client.mjs.map +1 -0
  8. package/dist/enums/adapter.d.mts +6 -0
  9. package/dist/enums/adapter.d.ts +6 -0
  10. package/dist/enums/adapter.js +11 -0
  11. package/dist/enums/adapter.js.map +1 -0
  12. package/dist/enums/adapter.mjs +10 -0
  13. package/dist/enums/adapter.mjs.map +1 -0
  14. package/dist/enums/address-type.d.mts +6 -0
  15. package/dist/enums/address-type.d.ts +6 -0
  16. package/dist/enums/address-type.js +11 -0
  17. package/dist/enums/address-type.js.map +1 -0
  18. package/dist/enums/address-type.mjs +10 -0
  19. package/dist/enums/address-type.mjs.map +1 -0
  20. package/dist/enums/attribute-boolean-status.d.mts +9 -0
  21. package/dist/enums/attribute-boolean-status.d.ts +9 -0
  22. package/dist/enums/attribute-boolean-status.js +14 -0
  23. package/dist/enums/attribute-boolean-status.js.map +1 -0
  24. package/dist/enums/attribute-boolean-status.mjs +13 -0
  25. package/dist/enums/attribute-boolean-status.mjs.map +1 -0
  26. package/dist/enums/attribute-datetime-status.d.mts +9 -0
  27. package/dist/enums/attribute-datetime-status.d.ts +9 -0
  28. package/dist/enums/attribute-datetime-status.js +14 -0
  29. package/dist/enums/attribute-datetime-status.js.map +1 -0
  30. package/dist/enums/attribute-datetime-status.mjs +13 -0
  31. package/dist/enums/attribute-datetime-status.mjs.map +1 -0
  32. package/dist/enums/attribute-email-status.d.mts +9 -0
  33. package/dist/enums/attribute-email-status.d.ts +9 -0
  34. package/dist/enums/attribute-email-status.js +14 -0
  35. package/dist/enums/attribute-email-status.js.map +1 -0
  36. package/dist/enums/attribute-email-status.mjs +13 -0
  37. package/dist/enums/attribute-email-status.mjs.map +1 -0
  38. package/dist/enums/attribute-enum-status.d.mts +9 -0
  39. package/dist/enums/attribute-enum-status.d.ts +9 -0
  40. package/dist/enums/attribute-enum-status.js +14 -0
  41. package/dist/enums/attribute-enum-status.js.map +1 -0
  42. package/dist/enums/attribute-enum-status.mjs +13 -0
  43. package/dist/enums/attribute-enum-status.mjs.map +1 -0
  44. package/dist/enums/attribute-float-status.d.mts +9 -0
  45. package/dist/enums/attribute-float-status.d.ts +9 -0
  46. package/dist/enums/attribute-float-status.js +14 -0
  47. package/dist/enums/attribute-float-status.js.map +1 -0
  48. package/dist/enums/attribute-float-status.mjs +13 -0
  49. package/dist/enums/attribute-float-status.mjs.map +1 -0
  50. package/dist/enums/attribute-integer-status.d.mts +9 -0
  51. package/dist/enums/attribute-integer-status.d.ts +9 -0
  52. package/dist/enums/attribute-integer-status.js +14 -0
  53. package/dist/enums/attribute-integer-status.js.map +1 -0
  54. package/dist/enums/attribute-integer-status.mjs +13 -0
  55. package/dist/enums/attribute-integer-status.mjs.map +1 -0
  56. package/dist/enums/attribute-ip-status.d.mts +9 -0
  57. package/dist/enums/attribute-ip-status.d.ts +9 -0
  58. package/dist/enums/attribute-ip-status.js +14 -0
  59. package/dist/enums/attribute-ip-status.js.map +1 -0
  60. package/dist/enums/attribute-ip-status.mjs +13 -0
  61. package/dist/enums/attribute-ip-status.mjs.map +1 -0
  62. package/dist/enums/attribute-line-status.d.mts +9 -0
  63. package/dist/enums/attribute-line-status.d.ts +9 -0
  64. package/dist/enums/attribute-line-status.js +14 -0
  65. package/dist/enums/attribute-line-status.js.map +1 -0
  66. package/dist/enums/attribute-line-status.mjs +13 -0
  67. package/dist/enums/attribute-line-status.mjs.map +1 -0
  68. package/dist/enums/attribute-longtext-status.d.mts +9 -0
  69. package/dist/enums/attribute-longtext-status.d.ts +9 -0
  70. package/dist/enums/attribute-longtext-status.js +14 -0
  71. package/dist/enums/attribute-longtext-status.js.map +1 -0
  72. package/dist/enums/attribute-longtext-status.mjs +13 -0
  73. package/dist/enums/attribute-longtext-status.mjs.map +1 -0
  74. package/dist/enums/attribute-mediumtext-status.d.mts +9 -0
  75. package/dist/enums/attribute-mediumtext-status.d.ts +9 -0
  76. package/dist/enums/attribute-mediumtext-status.js +14 -0
  77. package/dist/enums/attribute-mediumtext-status.js.map +1 -0
  78. package/dist/enums/attribute-mediumtext-status.mjs +13 -0
  79. package/dist/enums/attribute-mediumtext-status.mjs.map +1 -0
  80. package/dist/enums/attribute-point-status.d.mts +9 -0
  81. package/dist/enums/attribute-point-status.d.ts +9 -0
  82. package/dist/enums/attribute-point-status.js +14 -0
  83. package/dist/enums/attribute-point-status.js.map +1 -0
  84. package/dist/enums/attribute-point-status.mjs +13 -0
  85. package/dist/enums/attribute-point-status.mjs.map +1 -0
  86. package/dist/enums/attribute-polygon-status.d.mts +9 -0
  87. package/dist/enums/attribute-polygon-status.d.ts +9 -0
  88. package/dist/enums/attribute-polygon-status.js +14 -0
  89. package/dist/enums/attribute-polygon-status.js.map +1 -0
  90. package/dist/enums/attribute-polygon-status.mjs +13 -0
  91. package/dist/enums/attribute-polygon-status.mjs.map +1 -0
  92. package/dist/enums/attribute-relationship-status.d.mts +9 -0
  93. package/dist/enums/attribute-relationship-status.d.ts +9 -0
  94. package/dist/enums/attribute-relationship-status.js +14 -0
  95. package/dist/enums/attribute-relationship-status.js.map +1 -0
  96. package/dist/enums/attribute-relationship-status.mjs +13 -0
  97. package/dist/enums/attribute-relationship-status.mjs.map +1 -0
  98. package/dist/enums/attribute-string-status.d.mts +9 -0
  99. package/dist/enums/attribute-string-status.d.ts +9 -0
  100. package/dist/enums/attribute-string-status.js +14 -0
  101. package/dist/enums/attribute-string-status.js.map +1 -0
  102. package/dist/enums/attribute-string-status.mjs +13 -0
  103. package/dist/enums/attribute-string-status.mjs.map +1 -0
  104. package/dist/enums/attribute-text-status.d.mts +9 -0
  105. package/dist/enums/attribute-text-status.d.ts +9 -0
  106. package/dist/enums/attribute-text-status.js +14 -0
  107. package/dist/enums/attribute-text-status.js.map +1 -0
  108. package/dist/enums/attribute-text-status.mjs +13 -0
  109. package/dist/enums/attribute-text-status.mjs.map +1 -0
  110. package/dist/enums/attribute-url-status.d.mts +9 -0
  111. package/dist/enums/attribute-url-status.d.ts +9 -0
  112. package/dist/enums/attribute-url-status.js +14 -0
  113. package/dist/enums/attribute-url-status.js.map +1 -0
  114. package/dist/enums/attribute-url-status.mjs +13 -0
  115. package/dist/enums/attribute-url-status.mjs.map +1 -0
  116. package/dist/enums/attribute-varchar-status.d.mts +9 -0
  117. package/dist/enums/attribute-varchar-status.d.ts +9 -0
  118. package/dist/enums/attribute-varchar-status.js +14 -0
  119. package/dist/enums/attribute-varchar-status.js.map +1 -0
  120. package/dist/enums/attribute-varchar-status.mjs +13 -0
  121. package/dist/enums/attribute-varchar-status.mjs.map +1 -0
  122. package/dist/enums/build-runtime.d.mts +75 -0
  123. package/dist/enums/build-runtime.d.ts +75 -0
  124. package/dist/enums/build-runtime.js +80 -0
  125. package/dist/enums/build-runtime.js.map +1 -0
  126. package/dist/enums/build-runtime.mjs +79 -0
  127. package/dist/enums/build-runtime.mjs.map +1 -0
  128. package/dist/enums/cart-export-format.d.mts +6 -0
  129. package/dist/enums/cart-export-format.d.ts +6 -0
  130. package/dist/enums/cart-export-format.js +11 -0
  131. package/dist/enums/cart-export-format.js.map +1 -0
  132. package/dist/enums/cart-export-format.mjs +10 -0
  133. package/dist/enums/cart-export-format.mjs.map +1 -0
  134. package/dist/enums/cart-io-apply-mode.d.mts +7 -0
  135. package/dist/enums/cart-io-apply-mode.d.ts +7 -0
  136. package/dist/enums/cart-io-apply-mode.js +12 -0
  137. package/dist/enums/cart-io-apply-mode.js.map +1 -0
  138. package/dist/enums/cart-io-apply-mode.mjs +11 -0
  139. package/dist/enums/cart-io-apply-mode.mjs.map +1 -0
  140. package/dist/enums/cart-io-direction.d.mts +6 -0
  141. package/dist/enums/cart-io-direction.d.ts +6 -0
  142. package/dist/enums/cart-io-direction.js +11 -0
  143. package/dist/enums/cart-io-direction.js.map +1 -0
  144. package/dist/enums/cart-io-direction.mjs +10 -0
  145. package/dist/enums/cart-io-direction.mjs.map +1 -0
  146. package/dist/enums/cart-io-entity.d.mts +6 -0
  147. package/dist/enums/cart-io-entity.d.ts +6 -0
  148. package/dist/enums/cart-io-entity.js +11 -0
  149. package/dist/enums/cart-io-entity.js.map +1 -0
  150. package/dist/enums/cart-io-entity.mjs +10 -0
  151. package/dist/enums/cart-io-entity.mjs.map +1 -0
  152. package/dist/enums/cart-io-format.d.mts +6 -0
  153. package/dist/enums/cart-io-format.d.ts +6 -0
  154. package/dist/enums/cart-io-format.js +11 -0
  155. package/dist/enums/cart-io-format.js.map +1 -0
  156. package/dist/enums/cart-io-format.mjs +10 -0
  157. package/dist/enums/cart-io-format.mjs.map +1 -0
  158. package/dist/enums/cart-item-type.d.mts +7 -0
  159. package/dist/enums/cart-item-type.d.ts +7 -0
  160. package/dist/enums/cart-item-type.js +12 -0
  161. package/dist/enums/cart-item-type.js.map +1 -0
  162. package/dist/enums/cart-item-type.mjs +11 -0
  163. package/dist/enums/cart-item-type.mjs.map +1 -0
  164. package/dist/enums/channel-status.d.mts +6 -0
  165. package/dist/enums/channel-status.d.ts +6 -0
  166. package/dist/enums/channel-status.js +11 -0
  167. package/dist/enums/channel-status.js.map +1 -0
  168. package/dist/enums/channel-status.mjs +10 -0
  169. package/dist/enums/channel-status.mjs.map +1 -0
  170. package/dist/enums/channel-type.d.mts +9 -0
  171. package/dist/enums/channel-type.d.ts +9 -0
  172. package/dist/enums/channel-type.js +14 -0
  173. package/dist/enums/channel-type.js.map +1 -0
  174. package/dist/enums/channel-type.mjs +13 -0
  175. package/dist/enums/channel-type.mjs.map +1 -0
  176. package/dist/enums/code.d.mts +18 -0
  177. package/dist/enums/code.d.ts +18 -0
  178. package/dist/enums/code.js +23 -0
  179. package/dist/enums/code.js.map +1 -0
  180. package/dist/enums/code.mjs +22 -0
  181. package/dist/enums/code.mjs.map +1 -0
  182. package/dist/enums/collection.d.mts +6 -0
  183. package/dist/enums/collection.d.ts +6 -0
  184. package/dist/enums/collection.js +11 -0
  185. package/dist/enums/collection.js.map +1 -0
  186. package/dist/enums/collection.mjs +10 -0
  187. package/dist/enums/collection.mjs.map +1 -0
  188. package/dist/enums/column-boolean-status.d.mts +9 -0
  189. package/dist/enums/column-boolean-status.d.ts +9 -0
  190. package/dist/enums/column-boolean-status.js +14 -0
  191. package/dist/enums/column-boolean-status.js.map +1 -0
  192. package/dist/enums/column-boolean-status.mjs +13 -0
  193. package/dist/enums/column-boolean-status.mjs.map +1 -0
  194. package/dist/enums/column-datetime-status.d.mts +9 -0
  195. package/dist/enums/column-datetime-status.d.ts +9 -0
  196. package/dist/enums/column-datetime-status.js +14 -0
  197. package/dist/enums/column-datetime-status.js.map +1 -0
  198. package/dist/enums/column-datetime-status.mjs +13 -0
  199. package/dist/enums/column-datetime-status.mjs.map +1 -0
  200. package/dist/enums/column-email-status.d.mts +9 -0
  201. package/dist/enums/column-email-status.d.ts +9 -0
  202. package/dist/enums/column-email-status.js +14 -0
  203. package/dist/enums/column-email-status.js.map +1 -0
  204. package/dist/enums/column-email-status.mjs +13 -0
  205. package/dist/enums/column-email-status.mjs.map +1 -0
  206. package/dist/enums/column-enum-status.d.mts +9 -0
  207. package/dist/enums/column-enum-status.d.ts +9 -0
  208. package/dist/enums/column-enum-status.js +14 -0
  209. package/dist/enums/column-enum-status.js.map +1 -0
  210. package/dist/enums/column-enum-status.mjs +13 -0
  211. package/dist/enums/column-enum-status.mjs.map +1 -0
  212. package/dist/enums/column-float-status.d.mts +9 -0
  213. package/dist/enums/column-float-status.d.ts +9 -0
  214. package/dist/enums/column-float-status.js +14 -0
  215. package/dist/enums/column-float-status.js.map +1 -0
  216. package/dist/enums/column-float-status.mjs +13 -0
  217. package/dist/enums/column-float-status.mjs.map +1 -0
  218. package/dist/enums/column-integer-status.d.mts +9 -0
  219. package/dist/enums/column-integer-status.d.ts +9 -0
  220. package/dist/enums/column-integer-status.js +14 -0
  221. package/dist/enums/column-integer-status.js.map +1 -0
  222. package/dist/enums/column-integer-status.mjs +13 -0
  223. package/dist/enums/column-integer-status.mjs.map +1 -0
  224. package/dist/enums/column-ip-status.d.mts +9 -0
  225. package/dist/enums/column-ip-status.d.ts +9 -0
  226. package/dist/enums/column-ip-status.js +14 -0
  227. package/dist/enums/column-ip-status.js.map +1 -0
  228. package/dist/enums/column-ip-status.mjs +13 -0
  229. package/dist/enums/column-ip-status.mjs.map +1 -0
  230. package/dist/enums/column-line-status.d.mts +9 -0
  231. package/dist/enums/column-line-status.d.ts +9 -0
  232. package/dist/enums/column-line-status.js +14 -0
  233. package/dist/enums/column-line-status.js.map +1 -0
  234. package/dist/enums/column-line-status.mjs +13 -0
  235. package/dist/enums/column-line-status.mjs.map +1 -0
  236. package/dist/enums/column-longtext-status.d.mts +9 -0
  237. package/dist/enums/column-longtext-status.d.ts +9 -0
  238. package/dist/enums/column-longtext-status.js +14 -0
  239. package/dist/enums/column-longtext-status.js.map +1 -0
  240. package/dist/enums/column-longtext-status.mjs +13 -0
  241. package/dist/enums/column-longtext-status.mjs.map +1 -0
  242. package/dist/enums/column-mediumtext-status.d.mts +9 -0
  243. package/dist/enums/column-mediumtext-status.d.ts +9 -0
  244. package/dist/enums/column-mediumtext-status.js +14 -0
  245. package/dist/enums/column-mediumtext-status.js.map +1 -0
  246. package/dist/enums/column-mediumtext-status.mjs +13 -0
  247. package/dist/enums/column-mediumtext-status.mjs.map +1 -0
  248. package/dist/enums/column-point-status.d.mts +9 -0
  249. package/dist/enums/column-point-status.d.ts +9 -0
  250. package/dist/enums/column-point-status.js +14 -0
  251. package/dist/enums/column-point-status.js.map +1 -0
  252. package/dist/enums/column-point-status.mjs +13 -0
  253. package/dist/enums/column-point-status.mjs.map +1 -0
  254. package/dist/enums/column-polygon-status.d.mts +9 -0
  255. package/dist/enums/column-polygon-status.d.ts +9 -0
  256. package/dist/enums/column-polygon-status.js +14 -0
  257. package/dist/enums/column-polygon-status.js.map +1 -0
  258. package/dist/enums/column-polygon-status.mjs +13 -0
  259. package/dist/enums/column-polygon-status.mjs.map +1 -0
  260. package/dist/enums/column-relationship-status.d.mts +9 -0
  261. package/dist/enums/column-relationship-status.d.ts +9 -0
  262. package/dist/enums/column-relationship-status.js +14 -0
  263. package/dist/enums/column-relationship-status.js.map +1 -0
  264. package/dist/enums/column-relationship-status.mjs +13 -0
  265. package/dist/enums/column-relationship-status.mjs.map +1 -0
  266. package/dist/enums/column-string-status.d.mts +9 -0
  267. package/dist/enums/column-string-status.d.ts +9 -0
  268. package/dist/enums/column-string-status.js +14 -0
  269. package/dist/enums/column-string-status.js.map +1 -0
  270. package/dist/enums/column-string-status.mjs +13 -0
  271. package/dist/enums/column-string-status.mjs.map +1 -0
  272. package/dist/enums/column-text-status.d.mts +9 -0
  273. package/dist/enums/column-text-status.d.ts +9 -0
  274. package/dist/enums/column-text-status.js +14 -0
  275. package/dist/enums/column-text-status.js.map +1 -0
  276. package/dist/enums/column-text-status.mjs +13 -0
  277. package/dist/enums/column-text-status.mjs.map +1 -0
  278. package/dist/enums/column-url-status.d.mts +9 -0
  279. package/dist/enums/column-url-status.d.ts +9 -0
  280. package/dist/enums/column-url-status.js +14 -0
  281. package/dist/enums/column-url-status.js.map +1 -0
  282. package/dist/enums/column-url-status.mjs +13 -0
  283. package/dist/enums/column-url-status.mjs.map +1 -0
  284. package/dist/enums/column-varchar-status.d.mts +9 -0
  285. package/dist/enums/column-varchar-status.d.ts +9 -0
  286. package/dist/enums/column-varchar-status.js +14 -0
  287. package/dist/enums/column-varchar-status.js.map +1 -0
  288. package/dist/enums/column-varchar-status.mjs +13 -0
  289. package/dist/enums/column-varchar-status.mjs.map +1 -0
  290. package/dist/enums/contact-role.d.mts +8 -0
  291. package/dist/enums/contact-role.d.ts +8 -0
  292. package/dist/enums/contact-role.js +13 -0
  293. package/dist/enums/contact-role.js.map +1 -0
  294. package/dist/enums/contact-role.mjs +12 -0
  295. package/dist/enums/contact-role.mjs.map +1 -0
  296. package/dist/enums/contact-status.d.mts +7 -0
  297. package/dist/enums/contact-status.d.ts +7 -0
  298. package/dist/enums/contact-status.js +12 -0
  299. package/dist/enums/contact-status.js.map +1 -0
  300. package/dist/enums/contact-status.mjs +11 -0
  301. package/dist/enums/contact-status.mjs.map +1 -0
  302. package/dist/enums/database-type.d.mts +6 -0
  303. package/dist/enums/database-type.d.ts +6 -0
  304. package/dist/enums/database-type.js +11 -0
  305. package/dist/enums/database-type.js.map +1 -0
  306. package/dist/enums/database-type.mjs +10 -0
  307. package/dist/enums/database-type.mjs.map +1 -0
  308. package/dist/enums/deployment-status.d.mts +10 -0
  309. package/dist/enums/deployment-status.d.ts +10 -0
  310. package/dist/enums/deployment-status.js +15 -0
  311. package/dist/enums/deployment-status.js.map +1 -0
  312. package/dist/enums/deployment-status.mjs +14 -0
  313. package/dist/enums/deployment-status.mjs.map +1 -0
  314. package/dist/enums/execution-status.d.mts +9 -0
  315. package/dist/enums/execution-status.d.ts +9 -0
  316. package/dist/enums/execution-status.js +14 -0
  317. package/dist/enums/execution-status.js.map +1 -0
  318. package/dist/enums/execution-status.mjs +13 -0
  319. package/dist/enums/execution-status.mjs.map +1 -0
  320. package/dist/enums/execution-trigger.d.mts +7 -0
  321. package/dist/enums/execution-trigger.d.ts +7 -0
  322. package/dist/enums/execution-trigger.js +12 -0
  323. package/dist/enums/execution-trigger.js.map +1 -0
  324. package/dist/enums/execution-trigger.mjs +11 -0
  325. package/dist/enums/execution-trigger.mjs.map +1 -0
  326. package/dist/enums/framework.d.mts +19 -0
  327. package/dist/enums/framework.d.ts +19 -0
  328. package/dist/enums/framework.js +24 -0
  329. package/dist/enums/framework.js.map +1 -0
  330. package/dist/enums/framework.mjs +23 -0
  331. package/dist/enums/framework.mjs.map +1 -0
  332. package/dist/enums/fulfillment-status.d.mts +7 -0
  333. package/dist/enums/fulfillment-status.d.ts +7 -0
  334. package/dist/enums/fulfillment-status.js +12 -0
  335. package/dist/enums/fulfillment-status.js.map +1 -0
  336. package/dist/enums/fulfillment-status.mjs +11 -0
  337. package/dist/enums/fulfillment-status.mjs.map +1 -0
  338. package/dist/enums/health-antivirus-status.d.mts +7 -0
  339. package/dist/enums/health-antivirus-status.d.ts +7 -0
  340. package/dist/enums/health-antivirus-status.js +12 -0
  341. package/dist/enums/health-antivirus-status.js.map +1 -0
  342. package/dist/enums/health-antivirus-status.mjs +11 -0
  343. package/dist/enums/health-antivirus-status.mjs.map +1 -0
  344. package/dist/enums/health-status-status.d.mts +6 -0
  345. package/dist/enums/health-status-status.d.ts +6 -0
  346. package/dist/enums/health-status-status.js +11 -0
  347. package/dist/enums/health-status-status.js.map +1 -0
  348. package/dist/enums/health-status-status.mjs +10 -0
  349. package/dist/enums/health-status-status.mjs.map +1 -0
  350. package/dist/enums/index-status.d.mts +9 -0
  351. package/dist/enums/index-status.d.ts +9 -0
  352. package/dist/enums/index-status.js +14 -0
  353. package/dist/enums/index-status.js.map +1 -0
  354. package/dist/enums/index-status.mjs +13 -0
  355. package/dist/enums/index-status.mjs.map +1 -0
  356. package/dist/enums/location-type.d.mts +8 -0
  357. package/dist/enums/location-type.d.ts +8 -0
  358. package/dist/enums/location-type.js +13 -0
  359. package/dist/enums/location-type.js.map +1 -0
  360. package/dist/enums/location-type.mjs +12 -0
  361. package/dist/enums/location-type.mjs.map +1 -0
  362. package/dist/enums/market-status.d.mts +6 -0
  363. package/dist/enums/market-status.d.ts +6 -0
  364. package/dist/enums/market-status.js +11 -0
  365. package/dist/enums/market-status.js.map +1 -0
  366. package/dist/enums/market-status.mjs +10 -0
  367. package/dist/enums/market-status.mjs.map +1 -0
  368. package/dist/enums/message-status.d.mts +9 -0
  369. package/dist/enums/message-status.d.ts +9 -0
  370. package/dist/enums/message-status.js +14 -0
  371. package/dist/enums/message-status.js.map +1 -0
  372. package/dist/enums/message-status.mjs +13 -0
  373. package/dist/enums/message-status.mjs.map +1 -0
  374. package/dist/enums/method.d.mts +11 -0
  375. package/dist/enums/method.d.ts +11 -0
  376. package/dist/enums/method.js +16 -0
  377. package/dist/enums/method.js.map +1 -0
  378. package/dist/enums/method.mjs +15 -0
  379. package/dist/enums/method.mjs.map +1 -0
  380. package/dist/enums/order-comment-visibility.d.mts +6 -0
  381. package/dist/enums/order-comment-visibility.d.ts +6 -0
  382. package/dist/enums/order-comment-visibility.js +11 -0
  383. package/dist/enums/order-comment-visibility.js.map +1 -0
  384. package/dist/enums/order-comment-visibility.mjs +10 -0
  385. package/dist/enums/order-comment-visibility.mjs.map +1 -0
  386. package/dist/enums/order-item-type.d.mts +7 -0
  387. package/dist/enums/order-item-type.d.ts +7 -0
  388. package/dist/enums/order-item-type.js +12 -0
  389. package/dist/enums/order-item-type.js.map +1 -0
  390. package/dist/enums/order-item-type.mjs +11 -0
  391. package/dist/enums/order-item-type.mjs.map +1 -0
  392. package/dist/enums/order-list-kind.d.mts +6 -0
  393. package/dist/enums/order-list-kind.d.ts +6 -0
  394. package/dist/enums/order-list-kind.js +11 -0
  395. package/dist/enums/order-list-kind.js.map +1 -0
  396. package/dist/enums/order-list-kind.mjs +10 -0
  397. package/dist/enums/order-list-kind.mjs.map +1 -0
  398. package/dist/enums/order-payment-status.d.mts +11 -0
  399. package/dist/enums/order-payment-status.d.ts +11 -0
  400. package/dist/enums/order-payment-status.js +16 -0
  401. package/dist/enums/order-payment-status.js.map +1 -0
  402. package/dist/enums/order-payment-status.mjs +15 -0
  403. package/dist/enums/order-payment-status.mjs.map +1 -0
  404. package/dist/enums/organization-status.d.mts +6 -0
  405. package/dist/enums/organization-status.d.ts +6 -0
  406. package/dist/enums/organization-status.js +11 -0
  407. package/dist/enums/organization-status.js.map +1 -0
  408. package/dist/enums/organization-status.mjs +10 -0
  409. package/dist/enums/organization-status.mjs.map +1 -0
  410. package/dist/enums/output.d.mts +11 -0
  411. package/dist/enums/output.d.ts +11 -0
  412. package/dist/enums/output.js +16 -0
  413. package/dist/enums/output.js.map +1 -0
  414. package/dist/enums/output.mjs +15 -0
  415. package/dist/enums/output.mjs.map +1 -0
  416. package/dist/enums/page-status.d.mts +7 -0
  417. package/dist/enums/page-status.d.ts +7 -0
  418. package/dist/enums/page-status.js +12 -0
  419. package/dist/enums/page-status.js.map +1 -0
  420. package/dist/enums/page-status.mjs +11 -0
  421. package/dist/enums/page-status.mjs.map +1 -0
  422. package/dist/enums/payment-fee-type.d.mts +7 -0
  423. package/dist/enums/payment-fee-type.d.ts +7 -0
  424. package/dist/enums/payment-fee-type.js +12 -0
  425. package/dist/enums/payment-fee-type.js.map +1 -0
  426. package/dist/enums/payment-fee-type.mjs +11 -0
  427. package/dist/enums/payment-fee-type.mjs.map +1 -0
  428. package/dist/enums/payment-method-kind.d.mts +6 -0
  429. package/dist/enums/payment-method-kind.d.ts +6 -0
  430. package/dist/enums/payment-method-kind.js +11 -0
  431. package/dist/enums/payment-method-kind.js.map +1 -0
  432. package/dist/enums/payment-method-kind.mjs +10 -0
  433. package/dist/enums/payment-method-kind.mjs.map +1 -0
  434. package/dist/enums/payment-status.d.mts +11 -0
  435. package/dist/enums/payment-status.d.ts +11 -0
  436. package/dist/enums/payment-status.js +16 -0
  437. package/dist/enums/payment-status.js.map +1 -0
  438. package/dist/enums/payment-status.mjs +15 -0
  439. package/dist/enums/payment-status.mjs.map +1 -0
  440. package/dist/enums/permissions.d.mts +24 -0
  441. package/dist/enums/permissions.d.ts +24 -0
  442. package/dist/enums/permissions.js +29 -0
  443. package/dist/enums/permissions.js.map +1 -0
  444. package/dist/enums/permissions.mjs +28 -0
  445. package/dist/enums/permissions.mjs.map +1 -0
  446. package/dist/enums/price-entry-type.d.mts +6 -0
  447. package/dist/enums/price-entry-type.d.ts +6 -0
  448. package/dist/enums/price-entry-type.js +11 -0
  449. package/dist/enums/price-entry-type.js.map +1 -0
  450. package/dist/enums/price-entry-type.mjs +10 -0
  451. package/dist/enums/price-entry-type.mjs.map +1 -0
  452. package/dist/enums/price-list-status.d.mts +6 -0
  453. package/dist/enums/price-list-status.d.ts +6 -0
  454. package/dist/enums/price-list-status.js +11 -0
  455. package/dist/enums/price-list-status.js.map +1 -0
  456. package/dist/enums/price-list-status.mjs +10 -0
  457. package/dist/enums/price-list-status.mjs.map +1 -0
  458. package/dist/enums/priority.d.mts +6 -0
  459. package/dist/enums/priority.d.ts +6 -0
  460. package/dist/enums/priority.js +11 -0
  461. package/dist/enums/priority.js.map +1 -0
  462. package/dist/enums/priority.mjs +10 -0
  463. package/dist/enums/priority.mjs.map +1 -0
  464. package/dist/enums/range.d.mts +7 -0
  465. package/dist/enums/range.d.ts +7 -0
  466. package/dist/enums/range.js +12 -0
  467. package/dist/enums/range.js.map +1 -0
  468. package/dist/enums/range.mjs +11 -0
  469. package/dist/enums/range.mjs.map +1 -0
  470. package/dist/enums/runtime.d.mts +75 -0
  471. package/dist/enums/runtime.d.ts +75 -0
  472. package/dist/enums/runtime.js +80 -0
  473. package/dist/enums/runtime.js.map +1 -0
  474. package/dist/enums/runtime.mjs +79 -0
  475. package/dist/enums/runtime.mjs.map +1 -0
  476. package/dist/enums/runtimes.d.mts +75 -0
  477. package/dist/enums/runtimes.d.ts +75 -0
  478. package/dist/enums/runtimes.js +80 -0
  479. package/dist/enums/runtimes.js.map +1 -0
  480. package/dist/enums/runtimes.mjs +79 -0
  481. package/dist/enums/runtimes.mjs.map +1 -0
  482. package/dist/enums/scopes.d.mts +59 -0
  483. package/dist/enums/scopes.d.ts +59 -0
  484. package/dist/enums/scopes.js +64 -0
  485. package/dist/enums/scopes.js.map +1 -0
  486. package/dist/enums/scopes.mjs +63 -0
  487. package/dist/enums/scopes.mjs.map +1 -0
  488. package/dist/enums/shipping-method-matrix-basis.d.mts +8 -0
  489. package/dist/enums/shipping-method-matrix-basis.d.ts +8 -0
  490. package/dist/enums/shipping-method-matrix-basis.js +13 -0
  491. package/dist/enums/shipping-method-matrix-basis.js.map +1 -0
  492. package/dist/enums/shipping-method-matrix-basis.mjs +12 -0
  493. package/dist/enums/shipping-method-matrix-basis.mjs.map +1 -0
  494. package/dist/enums/shipping-method-pricing-type.d.mts +7 -0
  495. package/dist/enums/shipping-method-pricing-type.d.ts +7 -0
  496. package/dist/enums/shipping-method-pricing-type.js +12 -0
  497. package/dist/enums/shipping-method-pricing-type.js.map +1 -0
  498. package/dist/enums/shipping-method-pricing-type.mjs +11 -0
  499. package/dist/enums/shipping-method-pricing-type.mjs.map +1 -0
  500. package/dist/enums/status.d.mts +9 -0
  501. package/dist/enums/status.d.ts +9 -0
  502. package/dist/enums/status.js +14 -0
  503. package/dist/enums/status.js.map +1 -0
  504. package/dist/enums/status.mjs +13 -0
  505. package/dist/enums/status.mjs.map +1 -0
  506. package/dist/enums/store-asset-request-visibility.d.mts +6 -0
  507. package/dist/enums/store-asset-request-visibility.d.ts +6 -0
  508. package/dist/enums/store-asset-request-visibility.js +11 -0
  509. package/dist/enums/store-asset-request-visibility.js.map +1 -0
  510. package/dist/enums/store-asset-request-visibility.mjs +10 -0
  511. package/dist/enums/store-asset-request-visibility.mjs.map +1 -0
  512. package/dist/enums/theme.d.mts +6 -0
  513. package/dist/enums/theme.d.ts +6 -0
  514. package/dist/enums/theme.js +11 -0
  515. package/dist/enums/theme.js.map +1 -0
  516. package/dist/enums/theme.mjs +10 -0
  517. package/dist/enums/theme.mjs.map +1 -0
  518. package/dist/enums/timezone.d.mts +423 -0
  519. package/dist/enums/timezone.d.ts +423 -0
  520. package/dist/enums/timezone.js +428 -0
  521. package/dist/enums/timezone.js.map +1 -0
  522. package/dist/enums/timezone.mjs +427 -0
  523. package/dist/enums/timezone.mjs.map +1 -0
  524. package/dist/enums/type.d.mts +7 -0
  525. package/dist/enums/type.d.ts +7 -0
  526. package/dist/enums/type.js +12 -0
  527. package/dist/enums/type.js.map +1 -0
  528. package/dist/enums/type.mjs +11 -0
  529. package/dist/enums/type.mjs.map +1 -0
  530. package/dist/enums/use-cases.d.mts +11 -0
  531. package/dist/enums/use-cases.d.ts +11 -0
  532. package/dist/enums/use-cases.js +16 -0
  533. package/dist/enums/use-cases.js.map +1 -0
  534. package/dist/enums/use-cases.mjs +15 -0
  535. package/dist/enums/use-cases.mjs.map +1 -0
  536. package/dist/enums/visibility.d.mts +6 -0
  537. package/dist/enums/visibility.d.ts +6 -0
  538. package/dist/enums/visibility.js +11 -0
  539. package/dist/enums/visibility.js.map +1 -0
  540. package/dist/enums/visibility.mjs +10 -0
  541. package/dist/enums/visibility.mjs.map +1 -0
  542. package/dist/id.d.mts +22 -0
  543. package/dist/id.d.ts +22 -0
  544. package/dist/id.js +45 -0
  545. package/dist/id.js.map +1 -0
  546. package/dist/id.mjs +44 -0
  547. package/dist/id.mjs.map +1 -0
  548. package/dist/index.d.mts +117 -0
  549. package/dist/index.d.ts +117 -0
  550. package/dist/index.js +594 -0
  551. package/dist/index.js.map +1 -0
  552. package/dist/index.mjs +117 -0
  553. package/dist/index.mjs.map +1 -0
  554. package/dist/inputFile.d.mts +9 -0
  555. package/dist/inputFile.d.ts +9 -0
  556. package/dist/inputFile.js +23 -0
  557. package/dist/inputFile.js.map +1 -0
  558. package/dist/inputFile.mjs +22 -0
  559. package/dist/inputFile.mjs.map +1 -0
  560. package/dist/models.d.mts +11815 -0
  561. package/dist/models.d.ts +11815 -0
  562. package/dist/models.js +4 -0
  563. package/dist/models.js.map +1 -0
  564. package/dist/models.mjs +3 -0
  565. package/dist/models.mjs.map +1 -0
  566. package/dist/operator.d.mts +181 -0
  567. package/dist/operator.d.ts +181 -0
  568. package/dist/operator.js +268 -0
  569. package/dist/operator.js.map +1 -0
  570. package/dist/operator.mjs +266 -0
  571. package/dist/operator.mjs.map +1 -0
  572. package/dist/permission.d.mts +45 -0
  573. package/dist/permission.d.ts +45 -0
  574. package/dist/permission.js +56 -0
  575. package/dist/permission.js.map +1 -0
  576. package/dist/permission.mjs +55 -0
  577. package/dist/permission.mjs.map +1 -0
  578. package/dist/query.d.mts +443 -0
  579. package/dist/query.d.ts +443 -0
  580. package/dist/query.js +465 -0
  581. package/dist/query.js.map +1 -0
  582. package/dist/query.mjs +460 -0
  583. package/dist/query.mjs.map +1 -0
  584. package/dist/role.d.mts +72 -0
  585. package/dist/role.d.ts +72 -0
  586. package/dist/role.js +96 -0
  587. package/dist/role.js.map +1 -0
  588. package/dist/role.mjs +95 -0
  589. package/dist/role.mjs.map +1 -0
  590. package/dist/services/apps.d.mts +1004 -0
  591. package/dist/services/apps.d.ts +1004 -0
  592. package/dist/services/apps.js +1362 -0
  593. package/dist/services/apps.js.map +1 -0
  594. package/dist/services/apps.mjs +1361 -0
  595. package/dist/services/apps.mjs.map +1 -0
  596. package/dist/services/avatars.d.mts +391 -0
  597. package/dist/services/avatars.d.ts +391 -0
  598. package/dist/services/avatars.js +397 -0
  599. package/dist/services/avatars.js.map +1 -0
  600. package/dist/services/avatars.mjs +396 -0
  601. package/dist/services/avatars.mjs.map +1 -0
  602. package/dist/services/carts.d.mts +703 -0
  603. package/dist/services/carts.d.ts +703 -0
  604. package/dist/services/carts.js +1014 -0
  605. package/dist/services/carts.js.map +1 -0
  606. package/dist/services/carts.mjs +1013 -0
  607. package/dist/services/carts.mjs.map +1 -0
  608. package/dist/services/channels.d.mts +197 -0
  609. package/dist/services/channels.d.ts +197 -0
  610. package/dist/services/channels.js +218 -0
  611. package/dist/services/channels.js.map +1 -0
  612. package/dist/services/channels.mjs +217 -0
  613. package/dist/services/channels.mjs.map +1 -0
  614. package/dist/services/customers.d.mts +637 -0
  615. package/dist/services/customers.d.ts +637 -0
  616. package/dist/services/customers.js +943 -0
  617. package/dist/services/customers.js.map +1 -0
  618. package/dist/services/customers.mjs +942 -0
  619. package/dist/services/customers.mjs.map +1 -0
  620. package/dist/services/greetings.d.mts +173 -0
  621. package/dist/services/greetings.d.ts +173 -0
  622. package/dist/services/greetings.js +175 -0
  623. package/dist/services/greetings.js.map +1 -0
  624. package/dist/services/greetings.mjs +174 -0
  625. package/dist/services/greetings.mjs.map +1 -0
  626. package/dist/services/inventories.d.mts +511 -0
  627. package/dist/services/inventories.d.ts +511 -0
  628. package/dist/services/inventories.js +754 -0
  629. package/dist/services/inventories.js.map +1 -0
  630. package/dist/services/inventories.mjs +753 -0
  631. package/dist/services/inventories.mjs.map +1 -0
  632. package/dist/services/locale.d.mts +136 -0
  633. package/dist/services/locale.d.ts +136 -0
  634. package/dist/services/locale.js +157 -0
  635. package/dist/services/locale.js.map +1 -0
  636. package/dist/services/locale.mjs +156 -0
  637. package/dist/services/locale.mjs.map +1 -0
  638. package/dist/services/markets.d.mts +618 -0
  639. package/dist/services/markets.d.ts +618 -0
  640. package/dist/services/markets.js +862 -0
  641. package/dist/services/markets.js.map +1 -0
  642. package/dist/services/markets.mjs +861 -0
  643. package/dist/services/markets.mjs.map +1 -0
  644. package/dist/services/messaging.d.mts +1396 -0
  645. package/dist/services/messaging.d.ts +1396 -0
  646. package/dist/services/messaging.js +1996 -0
  647. package/dist/services/messaging.js.map +1 -0
  648. package/dist/services/messaging.mjs +1995 -0
  649. package/dist/services/messaging.mjs.map +1 -0
  650. package/dist/services/orderlists.d.mts +421 -0
  651. package/dist/services/orderlists.d.ts +421 -0
  652. package/dist/services/orderlists.js +569 -0
  653. package/dist/services/orderlists.js.map +1 -0
  654. package/dist/services/orderlists.mjs +568 -0
  655. package/dist/services/orderlists.mjs.map +1 -0
  656. package/dist/services/orders.d.mts +704 -0
  657. package/dist/services/orders.d.ts +704 -0
  658. package/dist/services/orders.js +1026 -0
  659. package/dist/services/orders.js.map +1 -0
  660. package/dist/services/orders.mjs +1025 -0
  661. package/dist/services/orders.mjs.map +1 -0
  662. package/dist/services/pages.d.mts +958 -0
  663. package/dist/services/pages.d.ts +958 -0
  664. package/dist/services/pages.js +1483 -0
  665. package/dist/services/pages.js.map +1 -0
  666. package/dist/services/pages.mjs +1482 -0
  667. package/dist/services/pages.mjs.map +1 -0
  668. package/dist/services/payments.d.mts +550 -0
  669. package/dist/services/payments.d.ts +550 -0
  670. package/dist/services/payments.js +794 -0
  671. package/dist/services/payments.js.map +1 -0
  672. package/dist/services/payments.mjs +793 -0
  673. package/dist/services/payments.mjs.map +1 -0
  674. package/dist/services/prices.d.mts +474 -0
  675. package/dist/services/prices.d.ts +474 -0
  676. package/dist/services/prices.js +664 -0
  677. package/dist/services/prices.js.map +1 -0
  678. package/dist/services/prices.mjs +663 -0
  679. package/dist/services/prices.mjs.map +1 -0
  680. package/dist/services/products.d.mts +1998 -0
  681. package/dist/services/products.d.ts +1998 -0
  682. package/dist/services/products.js +3006 -0
  683. package/dist/services/products.js.map +1 -0
  684. package/dist/services/products.mjs +3005 -0
  685. package/dist/services/products.mjs.map +1 -0
  686. package/dist/services/search.d.mts +204 -0
  687. package/dist/services/search.d.ts +204 -0
  688. package/dist/services/search.js +204 -0
  689. package/dist/services/search.js.map +1 -0
  690. package/dist/services/search.mjs +203 -0
  691. package/dist/services/search.mjs.map +1 -0
  692. package/dist/services/shipping.d.mts +424 -0
  693. package/dist/services/shipping.d.ts +424 -0
  694. package/dist/services/shipping.js +577 -0
  695. package/dist/services/shipping.js.map +1 -0
  696. package/dist/services/shipping.mjs +576 -0
  697. package/dist/services/shipping.mjs.map +1 -0
  698. package/dist/services/sites.d.mts +761 -0
  699. package/dist/services/sites.d.ts +761 -0
  700. package/dist/services/sites.js +1048 -0
  701. package/dist/services/sites.js.map +1 -0
  702. package/dist/services/sites.mjs +1047 -0
  703. package/dist/services/sites.mjs.map +1 -0
  704. package/dist/services/storage.d.mts +562 -0
  705. package/dist/services/storage.d.ts +562 -0
  706. package/dist/services/storage.js +780 -0
  707. package/dist/services/storage.js.map +1 -0
  708. package/dist/services/storage.mjs +779 -0
  709. package/dist/services/storage.mjs.map +1 -0
  710. package/dist/services/tokens.d.mts +191 -0
  711. package/dist/services/tokens.d.ts +191 -0
  712. package/dist/services/tokens.js +167 -0
  713. package/dist/services/tokens.js.map +1 -0
  714. package/dist/services/tokens.mjs +166 -0
  715. package/dist/services/tokens.mjs.map +1 -0
  716. package/package.json +1 -1
@@ -0,0 +1,3005 @@
1
+ import { RevenexxAPIRevenexxException } from '../client.mjs';
2
+
3
+ // src/services/products.ts
4
+ var Products = class {
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ productsList(paramsOrFirst, ...rest) {
9
+ let params;
10
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
11
+ params = paramsOrFirst || {};
12
+ } else {
13
+ params = {
14
+ limit: paramsOrFirst,
15
+ offset: rest[0],
16
+ order: rest[1]
17
+ };
18
+ }
19
+ const limit = params.limit;
20
+ const offset = params.offset;
21
+ const order = params.order;
22
+ const apiPath = "/v1/products";
23
+ const apiPayload = {};
24
+ if (typeof limit !== "undefined") {
25
+ apiPayload["limit"] = limit;
26
+ }
27
+ if (typeof offset !== "undefined") {
28
+ apiPayload["offset"] = offset;
29
+ }
30
+ if (typeof order !== "undefined") {
31
+ apiPayload["order"] = order;
32
+ }
33
+ const uri = new URL(this.client.config.endpoint + apiPath);
34
+ const apiHeaders = {};
35
+ return this.client.call(
36
+ "get",
37
+ uri,
38
+ apiHeaders,
39
+ apiPayload
40
+ );
41
+ }
42
+ productsCreate(paramsOrFirst, ...rest) {
43
+ let params;
44
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
45
+ params = paramsOrFirst || {};
46
+ } else {
47
+ params = {
48
+ sku: paramsOrFirst,
49
+ attributeValues: rest[0],
50
+ completeness: rest[1],
51
+ deletedAt: rest[2],
52
+ enabled: rest[3],
53
+ familyId: rest[4],
54
+ familyVariantId: rest[5],
55
+ kind: rest[6],
56
+ parentId: rest[7],
57
+ quantifiedAssociations: rest[8],
58
+ taxClass: rest[9]
59
+ };
60
+ }
61
+ const sku = params.sku;
62
+ const attributeValues = params.attributeValues;
63
+ const completeness = params.completeness;
64
+ const deletedAt = params.deletedAt;
65
+ const enabled = params.enabled;
66
+ const familyId = params.familyId;
67
+ const familyVariantId = params.familyVariantId;
68
+ const kind = params.kind;
69
+ const parentId = params.parentId;
70
+ const quantifiedAssociations = params.quantifiedAssociations;
71
+ const taxClass = params.taxClass;
72
+ if (typeof sku === "undefined") {
73
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "sku"');
74
+ }
75
+ const apiPath = "/v1/products";
76
+ const apiPayload = {};
77
+ if (typeof attributeValues !== "undefined") {
78
+ apiPayload["attribute_values"] = attributeValues;
79
+ }
80
+ if (typeof completeness !== "undefined") {
81
+ apiPayload["completeness"] = completeness;
82
+ }
83
+ if (typeof deletedAt !== "undefined") {
84
+ apiPayload["deleted_at"] = deletedAt;
85
+ }
86
+ if (typeof enabled !== "undefined") {
87
+ apiPayload["enabled"] = enabled;
88
+ }
89
+ if (typeof familyId !== "undefined") {
90
+ apiPayload["family_id"] = familyId;
91
+ }
92
+ if (typeof familyVariantId !== "undefined") {
93
+ apiPayload["family_variant_id"] = familyVariantId;
94
+ }
95
+ if (typeof kind !== "undefined") {
96
+ apiPayload["kind"] = kind;
97
+ }
98
+ if (typeof parentId !== "undefined") {
99
+ apiPayload["parent_id"] = parentId;
100
+ }
101
+ if (typeof quantifiedAssociations !== "undefined") {
102
+ apiPayload["quantified_associations"] = quantifiedAssociations;
103
+ }
104
+ if (typeof sku !== "undefined") {
105
+ apiPayload["sku"] = sku;
106
+ }
107
+ if (typeof taxClass !== "undefined") {
108
+ apiPayload["tax_class"] = taxClass;
109
+ }
110
+ const uri = new URL(this.client.config.endpoint + apiPath);
111
+ const apiHeaders = {
112
+ "content-type": "application/json"
113
+ };
114
+ return this.client.call(
115
+ "post",
116
+ uri,
117
+ apiHeaders,
118
+ apiPayload
119
+ );
120
+ }
121
+ productsAssetFamiliesList(paramsOrFirst, ...rest) {
122
+ let params;
123
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
124
+ params = paramsOrFirst || {};
125
+ } else {
126
+ params = {
127
+ limit: paramsOrFirst,
128
+ offset: rest[0],
129
+ order: rest[1]
130
+ };
131
+ }
132
+ const limit = params.limit;
133
+ const offset = params.offset;
134
+ const order = params.order;
135
+ const apiPath = "/v1/products/asset_families";
136
+ const apiPayload = {};
137
+ if (typeof limit !== "undefined") {
138
+ apiPayload["limit"] = limit;
139
+ }
140
+ if (typeof offset !== "undefined") {
141
+ apiPayload["offset"] = offset;
142
+ }
143
+ if (typeof order !== "undefined") {
144
+ apiPayload["order"] = order;
145
+ }
146
+ const uri = new URL(this.client.config.endpoint + apiPath);
147
+ const apiHeaders = {};
148
+ return this.client.call(
149
+ "get",
150
+ uri,
151
+ apiHeaders,
152
+ apiPayload
153
+ );
154
+ }
155
+ productsAssetFamiliesCreate(paramsOrFirst, ...rest) {
156
+ let params;
157
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
158
+ params = paramsOrFirst || {};
159
+ } else {
160
+ params = {
161
+ code: paramsOrFirst,
162
+ labels: rest[0],
163
+ namingConvention: rest[1]
164
+ };
165
+ }
166
+ const code = params.code;
167
+ const labels = params.labels;
168
+ const namingConvention = params.namingConvention;
169
+ if (typeof code === "undefined") {
170
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
171
+ }
172
+ const apiPath = "/v1/products/asset_families";
173
+ const apiPayload = {};
174
+ if (typeof code !== "undefined") {
175
+ apiPayload["code"] = code;
176
+ }
177
+ if (typeof labels !== "undefined") {
178
+ apiPayload["labels"] = labels;
179
+ }
180
+ if (typeof namingConvention !== "undefined") {
181
+ apiPayload["naming_convention"] = namingConvention;
182
+ }
183
+ const uri = new URL(this.client.config.endpoint + apiPath);
184
+ const apiHeaders = {
185
+ "content-type": "application/json"
186
+ };
187
+ return this.client.call(
188
+ "post",
189
+ uri,
190
+ apiHeaders,
191
+ apiPayload
192
+ );
193
+ }
194
+ productsAssetFamiliesDelete(paramsOrFirst) {
195
+ let params;
196
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
197
+ params = paramsOrFirst || {};
198
+ } else {
199
+ params = {
200
+ id: paramsOrFirst
201
+ };
202
+ }
203
+ const id = params.id;
204
+ if (typeof id === "undefined") {
205
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
206
+ }
207
+ const apiPath = "/v1/products/asset_families/{id}".replace("{id}", id);
208
+ const apiPayload = {};
209
+ const uri = new URL(this.client.config.endpoint + apiPath);
210
+ const apiHeaders = {};
211
+ return this.client.call(
212
+ "delete",
213
+ uri,
214
+ apiHeaders,
215
+ apiPayload
216
+ );
217
+ }
218
+ productsAssetFamiliesGet(paramsOrFirst) {
219
+ let params;
220
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
221
+ params = paramsOrFirst || {};
222
+ } else {
223
+ params = {
224
+ id: paramsOrFirst
225
+ };
226
+ }
227
+ const id = params.id;
228
+ if (typeof id === "undefined") {
229
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
230
+ }
231
+ const apiPath = "/v1/products/asset_families/{id}".replace("{id}", id);
232
+ const apiPayload = {};
233
+ const uri = new URL(this.client.config.endpoint + apiPath);
234
+ const apiHeaders = {};
235
+ return this.client.call(
236
+ "get",
237
+ uri,
238
+ apiHeaders,
239
+ apiPayload
240
+ );
241
+ }
242
+ productsAssetFamiliesUpdate(paramsOrFirst, ...rest) {
243
+ let params;
244
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
245
+ params = paramsOrFirst || {};
246
+ } else {
247
+ params = {
248
+ id: paramsOrFirst,
249
+ code: rest[0],
250
+ labels: rest[1],
251
+ namingConvention: rest[2]
252
+ };
253
+ }
254
+ const id = params.id;
255
+ const code = params.code;
256
+ const labels = params.labels;
257
+ const namingConvention = params.namingConvention;
258
+ if (typeof id === "undefined") {
259
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
260
+ }
261
+ const apiPath = "/v1/products/asset_families/{id}".replace("{id}", id);
262
+ const apiPayload = {};
263
+ if (typeof code !== "undefined") {
264
+ apiPayload["code"] = code;
265
+ }
266
+ if (typeof labels !== "undefined") {
267
+ apiPayload["labels"] = labels;
268
+ }
269
+ if (typeof namingConvention !== "undefined") {
270
+ apiPayload["naming_convention"] = namingConvention;
271
+ }
272
+ const uri = new URL(this.client.config.endpoint + apiPath);
273
+ const apiHeaders = {
274
+ "content-type": "application/json"
275
+ };
276
+ return this.client.call(
277
+ "put",
278
+ uri,
279
+ apiHeaders,
280
+ apiPayload
281
+ );
282
+ }
283
+ productsAssetsList(paramsOrFirst, ...rest) {
284
+ let params;
285
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
286
+ params = paramsOrFirst || {};
287
+ } else {
288
+ params = {
289
+ limit: paramsOrFirst,
290
+ offset: rest[0],
291
+ order: rest[1]
292
+ };
293
+ }
294
+ const limit = params.limit;
295
+ const offset = params.offset;
296
+ const order = params.order;
297
+ const apiPath = "/v1/products/assets";
298
+ const apiPayload = {};
299
+ if (typeof limit !== "undefined") {
300
+ apiPayload["limit"] = limit;
301
+ }
302
+ if (typeof offset !== "undefined") {
303
+ apiPayload["offset"] = offset;
304
+ }
305
+ if (typeof order !== "undefined") {
306
+ apiPayload["order"] = order;
307
+ }
308
+ const uri = new URL(this.client.config.endpoint + apiPath);
309
+ const apiHeaders = {};
310
+ return this.client.call(
311
+ "get",
312
+ uri,
313
+ apiHeaders,
314
+ apiPayload
315
+ );
316
+ }
317
+ productsAssetsCreate(paramsOrFirst, ...rest) {
318
+ let params;
319
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
320
+ params = paramsOrFirst || {};
321
+ } else {
322
+ params = {
323
+ assetFamilyId: paramsOrFirst,
324
+ code: rest[0],
325
+ attributeValues: rest[1],
326
+ mediaUuid: rest[2]
327
+ };
328
+ }
329
+ const assetFamilyId = params.assetFamilyId;
330
+ const code = params.code;
331
+ const attributeValues = params.attributeValues;
332
+ const mediaUuid = params.mediaUuid;
333
+ if (typeof assetFamilyId === "undefined") {
334
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "assetFamilyId"');
335
+ }
336
+ if (typeof code === "undefined") {
337
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
338
+ }
339
+ const apiPath = "/v1/products/assets";
340
+ const apiPayload = {};
341
+ if (typeof assetFamilyId !== "undefined") {
342
+ apiPayload["asset_family_id"] = assetFamilyId;
343
+ }
344
+ if (typeof attributeValues !== "undefined") {
345
+ apiPayload["attribute_values"] = attributeValues;
346
+ }
347
+ if (typeof code !== "undefined") {
348
+ apiPayload["code"] = code;
349
+ }
350
+ if (typeof mediaUuid !== "undefined") {
351
+ apiPayload["media_uuid"] = mediaUuid;
352
+ }
353
+ const uri = new URL(this.client.config.endpoint + apiPath);
354
+ const apiHeaders = {
355
+ "content-type": "application/json"
356
+ };
357
+ return this.client.call(
358
+ "post",
359
+ uri,
360
+ apiHeaders,
361
+ apiPayload
362
+ );
363
+ }
364
+ productsAssetsDelete(paramsOrFirst) {
365
+ let params;
366
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
367
+ params = paramsOrFirst || {};
368
+ } else {
369
+ params = {
370
+ id: paramsOrFirst
371
+ };
372
+ }
373
+ const id = params.id;
374
+ if (typeof id === "undefined") {
375
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
376
+ }
377
+ const apiPath = "/v1/products/assets/{id}".replace("{id}", id);
378
+ const apiPayload = {};
379
+ const uri = new URL(this.client.config.endpoint + apiPath);
380
+ const apiHeaders = {};
381
+ return this.client.call(
382
+ "delete",
383
+ uri,
384
+ apiHeaders,
385
+ apiPayload
386
+ );
387
+ }
388
+ productsAssetsGet(paramsOrFirst) {
389
+ let params;
390
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
391
+ params = paramsOrFirst || {};
392
+ } else {
393
+ params = {
394
+ id: paramsOrFirst
395
+ };
396
+ }
397
+ const id = params.id;
398
+ if (typeof id === "undefined") {
399
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
400
+ }
401
+ const apiPath = "/v1/products/assets/{id}".replace("{id}", id);
402
+ const apiPayload = {};
403
+ const uri = new URL(this.client.config.endpoint + apiPath);
404
+ const apiHeaders = {};
405
+ return this.client.call(
406
+ "get",
407
+ uri,
408
+ apiHeaders,
409
+ apiPayload
410
+ );
411
+ }
412
+ productsAssetsUpdate(paramsOrFirst, ...rest) {
413
+ let params;
414
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
415
+ params = paramsOrFirst || {};
416
+ } else {
417
+ params = {
418
+ id: paramsOrFirst,
419
+ assetFamilyId: rest[0],
420
+ attributeValues: rest[1],
421
+ code: rest[2],
422
+ mediaUuid: rest[3]
423
+ };
424
+ }
425
+ const id = params.id;
426
+ const assetFamilyId = params.assetFamilyId;
427
+ const attributeValues = params.attributeValues;
428
+ const code = params.code;
429
+ const mediaUuid = params.mediaUuid;
430
+ if (typeof id === "undefined") {
431
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
432
+ }
433
+ const apiPath = "/v1/products/assets/{id}".replace("{id}", id);
434
+ const apiPayload = {};
435
+ if (typeof assetFamilyId !== "undefined") {
436
+ apiPayload["asset_family_id"] = assetFamilyId;
437
+ }
438
+ if (typeof attributeValues !== "undefined") {
439
+ apiPayload["attribute_values"] = attributeValues;
440
+ }
441
+ if (typeof code !== "undefined") {
442
+ apiPayload["code"] = code;
443
+ }
444
+ if (typeof mediaUuid !== "undefined") {
445
+ apiPayload["media_uuid"] = mediaUuid;
446
+ }
447
+ const uri = new URL(this.client.config.endpoint + apiPath);
448
+ const apiHeaders = {
449
+ "content-type": "application/json"
450
+ };
451
+ return this.client.call(
452
+ "put",
453
+ uri,
454
+ apiHeaders,
455
+ apiPayload
456
+ );
457
+ }
458
+ productsAssociationTypesList(paramsOrFirst, ...rest) {
459
+ let params;
460
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
461
+ params = paramsOrFirst || {};
462
+ } else {
463
+ params = {
464
+ limit: paramsOrFirst,
465
+ offset: rest[0],
466
+ order: rest[1]
467
+ };
468
+ }
469
+ const limit = params.limit;
470
+ const offset = params.offset;
471
+ const order = params.order;
472
+ const apiPath = "/v1/products/association_types";
473
+ const apiPayload = {};
474
+ if (typeof limit !== "undefined") {
475
+ apiPayload["limit"] = limit;
476
+ }
477
+ if (typeof offset !== "undefined") {
478
+ apiPayload["offset"] = offset;
479
+ }
480
+ if (typeof order !== "undefined") {
481
+ apiPayload["order"] = order;
482
+ }
483
+ const uri = new URL(this.client.config.endpoint + apiPath);
484
+ const apiHeaders = {};
485
+ return this.client.call(
486
+ "get",
487
+ uri,
488
+ apiHeaders,
489
+ apiPayload
490
+ );
491
+ }
492
+ productsAssociationTypesCreate(paramsOrFirst, ...rest) {
493
+ let params;
494
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
495
+ params = paramsOrFirst || {};
496
+ } else {
497
+ params = {
498
+ code: paramsOrFirst,
499
+ isQuantified: rest[0],
500
+ isTwoWay: rest[1],
501
+ labels: rest[2]
502
+ };
503
+ }
504
+ const code = params.code;
505
+ const isQuantified = params.isQuantified;
506
+ const isTwoWay = params.isTwoWay;
507
+ const labels = params.labels;
508
+ if (typeof code === "undefined") {
509
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
510
+ }
511
+ const apiPath = "/v1/products/association_types";
512
+ const apiPayload = {};
513
+ if (typeof code !== "undefined") {
514
+ apiPayload["code"] = code;
515
+ }
516
+ if (typeof isQuantified !== "undefined") {
517
+ apiPayload["is_quantified"] = isQuantified;
518
+ }
519
+ if (typeof isTwoWay !== "undefined") {
520
+ apiPayload["is_two_way"] = isTwoWay;
521
+ }
522
+ if (typeof labels !== "undefined") {
523
+ apiPayload["labels"] = labels;
524
+ }
525
+ const uri = new URL(this.client.config.endpoint + apiPath);
526
+ const apiHeaders = {
527
+ "content-type": "application/json"
528
+ };
529
+ return this.client.call(
530
+ "post",
531
+ uri,
532
+ apiHeaders,
533
+ apiPayload
534
+ );
535
+ }
536
+ productsAssociationTypesDelete(paramsOrFirst) {
537
+ let params;
538
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
539
+ params = paramsOrFirst || {};
540
+ } else {
541
+ params = {
542
+ id: paramsOrFirst
543
+ };
544
+ }
545
+ const id = params.id;
546
+ if (typeof id === "undefined") {
547
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
548
+ }
549
+ const apiPath = "/v1/products/association_types/{id}".replace("{id}", id);
550
+ const apiPayload = {};
551
+ const uri = new URL(this.client.config.endpoint + apiPath);
552
+ const apiHeaders = {};
553
+ return this.client.call(
554
+ "delete",
555
+ uri,
556
+ apiHeaders,
557
+ apiPayload
558
+ );
559
+ }
560
+ productsAssociationTypesGet(paramsOrFirst) {
561
+ let params;
562
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
563
+ params = paramsOrFirst || {};
564
+ } else {
565
+ params = {
566
+ id: paramsOrFirst
567
+ };
568
+ }
569
+ const id = params.id;
570
+ if (typeof id === "undefined") {
571
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
572
+ }
573
+ const apiPath = "/v1/products/association_types/{id}".replace("{id}", id);
574
+ const apiPayload = {};
575
+ const uri = new URL(this.client.config.endpoint + apiPath);
576
+ const apiHeaders = {};
577
+ return this.client.call(
578
+ "get",
579
+ uri,
580
+ apiHeaders,
581
+ apiPayload
582
+ );
583
+ }
584
+ productsAssociationTypesUpdate(paramsOrFirst, ...rest) {
585
+ let params;
586
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
587
+ params = paramsOrFirst || {};
588
+ } else {
589
+ params = {
590
+ id: paramsOrFirst,
591
+ code: rest[0],
592
+ isQuantified: rest[1],
593
+ isTwoWay: rest[2],
594
+ labels: rest[3]
595
+ };
596
+ }
597
+ const id = params.id;
598
+ const code = params.code;
599
+ const isQuantified = params.isQuantified;
600
+ const isTwoWay = params.isTwoWay;
601
+ const labels = params.labels;
602
+ if (typeof id === "undefined") {
603
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
604
+ }
605
+ const apiPath = "/v1/products/association_types/{id}".replace("{id}", id);
606
+ const apiPayload = {};
607
+ if (typeof code !== "undefined") {
608
+ apiPayload["code"] = code;
609
+ }
610
+ if (typeof isQuantified !== "undefined") {
611
+ apiPayload["is_quantified"] = isQuantified;
612
+ }
613
+ if (typeof isTwoWay !== "undefined") {
614
+ apiPayload["is_two_way"] = isTwoWay;
615
+ }
616
+ if (typeof labels !== "undefined") {
617
+ apiPayload["labels"] = labels;
618
+ }
619
+ const uri = new URL(this.client.config.endpoint + apiPath);
620
+ const apiHeaders = {
621
+ "content-type": "application/json"
622
+ };
623
+ return this.client.call(
624
+ "put",
625
+ uri,
626
+ apiHeaders,
627
+ apiPayload
628
+ );
629
+ }
630
+ productsAttributeGroupsList(paramsOrFirst, ...rest) {
631
+ let params;
632
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
633
+ params = paramsOrFirst || {};
634
+ } else {
635
+ params = {
636
+ limit: paramsOrFirst,
637
+ offset: rest[0],
638
+ order: rest[1]
639
+ };
640
+ }
641
+ const limit = params.limit;
642
+ const offset = params.offset;
643
+ const order = params.order;
644
+ const apiPath = "/v1/products/attribute_groups";
645
+ const apiPayload = {};
646
+ if (typeof limit !== "undefined") {
647
+ apiPayload["limit"] = limit;
648
+ }
649
+ if (typeof offset !== "undefined") {
650
+ apiPayload["offset"] = offset;
651
+ }
652
+ if (typeof order !== "undefined") {
653
+ apiPayload["order"] = order;
654
+ }
655
+ const uri = new URL(this.client.config.endpoint + apiPath);
656
+ const apiHeaders = {};
657
+ return this.client.call(
658
+ "get",
659
+ uri,
660
+ apiHeaders,
661
+ apiPayload
662
+ );
663
+ }
664
+ productsAttributeGroupsCreate(paramsOrFirst, ...rest) {
665
+ let params;
666
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
667
+ params = paramsOrFirst || {};
668
+ } else {
669
+ params = {
670
+ code: paramsOrFirst,
671
+ labels: rest[0],
672
+ position: rest[1]
673
+ };
674
+ }
675
+ const code = params.code;
676
+ const labels = params.labels;
677
+ const position = params.position;
678
+ if (typeof code === "undefined") {
679
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
680
+ }
681
+ const apiPath = "/v1/products/attribute_groups";
682
+ const apiPayload = {};
683
+ if (typeof code !== "undefined") {
684
+ apiPayload["code"] = code;
685
+ }
686
+ if (typeof labels !== "undefined") {
687
+ apiPayload["labels"] = labels;
688
+ }
689
+ if (typeof position !== "undefined") {
690
+ apiPayload["position"] = position;
691
+ }
692
+ const uri = new URL(this.client.config.endpoint + apiPath);
693
+ const apiHeaders = {
694
+ "content-type": "application/json"
695
+ };
696
+ return this.client.call(
697
+ "post",
698
+ uri,
699
+ apiHeaders,
700
+ apiPayload
701
+ );
702
+ }
703
+ productsAttributeGroupsDelete(paramsOrFirst) {
704
+ let params;
705
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
706
+ params = paramsOrFirst || {};
707
+ } else {
708
+ params = {
709
+ id: paramsOrFirst
710
+ };
711
+ }
712
+ const id = params.id;
713
+ if (typeof id === "undefined") {
714
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
715
+ }
716
+ const apiPath = "/v1/products/attribute_groups/{id}".replace("{id}", id);
717
+ const apiPayload = {};
718
+ const uri = new URL(this.client.config.endpoint + apiPath);
719
+ const apiHeaders = {};
720
+ return this.client.call(
721
+ "delete",
722
+ uri,
723
+ apiHeaders,
724
+ apiPayload
725
+ );
726
+ }
727
+ productsAttributeGroupsGet(paramsOrFirst) {
728
+ let params;
729
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
730
+ params = paramsOrFirst || {};
731
+ } else {
732
+ params = {
733
+ id: paramsOrFirst
734
+ };
735
+ }
736
+ const id = params.id;
737
+ if (typeof id === "undefined") {
738
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
739
+ }
740
+ const apiPath = "/v1/products/attribute_groups/{id}".replace("{id}", id);
741
+ const apiPayload = {};
742
+ const uri = new URL(this.client.config.endpoint + apiPath);
743
+ const apiHeaders = {};
744
+ return this.client.call(
745
+ "get",
746
+ uri,
747
+ apiHeaders,
748
+ apiPayload
749
+ );
750
+ }
751
+ productsAttributeGroupsUpdate(paramsOrFirst, ...rest) {
752
+ let params;
753
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
754
+ params = paramsOrFirst || {};
755
+ } else {
756
+ params = {
757
+ id: paramsOrFirst,
758
+ code: rest[0],
759
+ labels: rest[1],
760
+ position: rest[2]
761
+ };
762
+ }
763
+ const id = params.id;
764
+ const code = params.code;
765
+ const labels = params.labels;
766
+ const position = params.position;
767
+ if (typeof id === "undefined") {
768
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
769
+ }
770
+ const apiPath = "/v1/products/attribute_groups/{id}".replace("{id}", id);
771
+ const apiPayload = {};
772
+ if (typeof code !== "undefined") {
773
+ apiPayload["code"] = code;
774
+ }
775
+ if (typeof labels !== "undefined") {
776
+ apiPayload["labels"] = labels;
777
+ }
778
+ if (typeof position !== "undefined") {
779
+ apiPayload["position"] = position;
780
+ }
781
+ const uri = new URL(this.client.config.endpoint + apiPath);
782
+ const apiHeaders = {
783
+ "content-type": "application/json"
784
+ };
785
+ return this.client.call(
786
+ "put",
787
+ uri,
788
+ apiHeaders,
789
+ apiPayload
790
+ );
791
+ }
792
+ productsAttributeOptionsList(paramsOrFirst, ...rest) {
793
+ let params;
794
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
795
+ params = paramsOrFirst || {};
796
+ } else {
797
+ params = {
798
+ limit: paramsOrFirst,
799
+ offset: rest[0],
800
+ order: rest[1]
801
+ };
802
+ }
803
+ const limit = params.limit;
804
+ const offset = params.offset;
805
+ const order = params.order;
806
+ const apiPath = "/v1/products/attribute_options";
807
+ const apiPayload = {};
808
+ if (typeof limit !== "undefined") {
809
+ apiPayload["limit"] = limit;
810
+ }
811
+ if (typeof offset !== "undefined") {
812
+ apiPayload["offset"] = offset;
813
+ }
814
+ if (typeof order !== "undefined") {
815
+ apiPayload["order"] = order;
816
+ }
817
+ const uri = new URL(this.client.config.endpoint + apiPath);
818
+ const apiHeaders = {};
819
+ return this.client.call(
820
+ "get",
821
+ uri,
822
+ apiHeaders,
823
+ apiPayload
824
+ );
825
+ }
826
+ productsAttributeOptionsCreate(paramsOrFirst, ...rest) {
827
+ let params;
828
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
829
+ params = paramsOrFirst || {};
830
+ } else {
831
+ params = {
832
+ attributeId: paramsOrFirst,
833
+ code: rest[0],
834
+ labels: rest[1],
835
+ position: rest[2],
836
+ swatch: rest[3]
837
+ };
838
+ }
839
+ const attributeId = params.attributeId;
840
+ const code = params.code;
841
+ const labels = params.labels;
842
+ const position = params.position;
843
+ const swatch = params.swatch;
844
+ if (typeof attributeId === "undefined") {
845
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "attributeId"');
846
+ }
847
+ if (typeof code === "undefined") {
848
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
849
+ }
850
+ const apiPath = "/v1/products/attribute_options";
851
+ const apiPayload = {};
852
+ if (typeof attributeId !== "undefined") {
853
+ apiPayload["attribute_id"] = attributeId;
854
+ }
855
+ if (typeof code !== "undefined") {
856
+ apiPayload["code"] = code;
857
+ }
858
+ if (typeof labels !== "undefined") {
859
+ apiPayload["labels"] = labels;
860
+ }
861
+ if (typeof position !== "undefined") {
862
+ apiPayload["position"] = position;
863
+ }
864
+ if (typeof swatch !== "undefined") {
865
+ apiPayload["swatch"] = swatch;
866
+ }
867
+ const uri = new URL(this.client.config.endpoint + apiPath);
868
+ const apiHeaders = {
869
+ "content-type": "application/json"
870
+ };
871
+ return this.client.call(
872
+ "post",
873
+ uri,
874
+ apiHeaders,
875
+ apiPayload
876
+ );
877
+ }
878
+ productsAttributeOptionsDelete(paramsOrFirst) {
879
+ let params;
880
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
881
+ params = paramsOrFirst || {};
882
+ } else {
883
+ params = {
884
+ id: paramsOrFirst
885
+ };
886
+ }
887
+ const id = params.id;
888
+ if (typeof id === "undefined") {
889
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
890
+ }
891
+ const apiPath = "/v1/products/attribute_options/{id}".replace("{id}", id);
892
+ const apiPayload = {};
893
+ const uri = new URL(this.client.config.endpoint + apiPath);
894
+ const apiHeaders = {};
895
+ return this.client.call(
896
+ "delete",
897
+ uri,
898
+ apiHeaders,
899
+ apiPayload
900
+ );
901
+ }
902
+ productsAttributeOptionsGet(paramsOrFirst) {
903
+ let params;
904
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
905
+ params = paramsOrFirst || {};
906
+ } else {
907
+ params = {
908
+ id: paramsOrFirst
909
+ };
910
+ }
911
+ const id = params.id;
912
+ if (typeof id === "undefined") {
913
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
914
+ }
915
+ const apiPath = "/v1/products/attribute_options/{id}".replace("{id}", id);
916
+ const apiPayload = {};
917
+ const uri = new URL(this.client.config.endpoint + apiPath);
918
+ const apiHeaders = {};
919
+ return this.client.call(
920
+ "get",
921
+ uri,
922
+ apiHeaders,
923
+ apiPayload
924
+ );
925
+ }
926
+ productsAttributeOptionsUpdate(paramsOrFirst, ...rest) {
927
+ let params;
928
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
929
+ params = paramsOrFirst || {};
930
+ } else {
931
+ params = {
932
+ id: paramsOrFirst,
933
+ attributeId: rest[0],
934
+ code: rest[1],
935
+ labels: rest[2],
936
+ position: rest[3],
937
+ swatch: rest[4]
938
+ };
939
+ }
940
+ const id = params.id;
941
+ const attributeId = params.attributeId;
942
+ const code = params.code;
943
+ const labels = params.labels;
944
+ const position = params.position;
945
+ const swatch = params.swatch;
946
+ if (typeof id === "undefined") {
947
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
948
+ }
949
+ const apiPath = "/v1/products/attribute_options/{id}".replace("{id}", id);
950
+ const apiPayload = {};
951
+ if (typeof attributeId !== "undefined") {
952
+ apiPayload["attribute_id"] = attributeId;
953
+ }
954
+ if (typeof code !== "undefined") {
955
+ apiPayload["code"] = code;
956
+ }
957
+ if (typeof labels !== "undefined") {
958
+ apiPayload["labels"] = labels;
959
+ }
960
+ if (typeof position !== "undefined") {
961
+ apiPayload["position"] = position;
962
+ }
963
+ if (typeof swatch !== "undefined") {
964
+ apiPayload["swatch"] = swatch;
965
+ }
966
+ const uri = new URL(this.client.config.endpoint + apiPath);
967
+ const apiHeaders = {
968
+ "content-type": "application/json"
969
+ };
970
+ return this.client.call(
971
+ "put",
972
+ uri,
973
+ apiHeaders,
974
+ apiPayload
975
+ );
976
+ }
977
+ productsAttributesList(paramsOrFirst, ...rest) {
978
+ let params;
979
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
980
+ params = paramsOrFirst || {};
981
+ } else {
982
+ params = {
983
+ limit: paramsOrFirst,
984
+ offset: rest[0],
985
+ order: rest[1]
986
+ };
987
+ }
988
+ const limit = params.limit;
989
+ const offset = params.offset;
990
+ const order = params.order;
991
+ const apiPath = "/v1/products/attributes";
992
+ const apiPayload = {};
993
+ if (typeof limit !== "undefined") {
994
+ apiPayload["limit"] = limit;
995
+ }
996
+ if (typeof offset !== "undefined") {
997
+ apiPayload["offset"] = offset;
998
+ }
999
+ if (typeof order !== "undefined") {
1000
+ apiPayload["order"] = order;
1001
+ }
1002
+ const uri = new URL(this.client.config.endpoint + apiPath);
1003
+ const apiHeaders = {};
1004
+ return this.client.call(
1005
+ "get",
1006
+ uri,
1007
+ apiHeaders,
1008
+ apiPayload
1009
+ );
1010
+ }
1011
+ productsAttributesCreate(paramsOrFirst, ...rest) {
1012
+ let params;
1013
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1014
+ params = paramsOrFirst || {};
1015
+ } else {
1016
+ params = {
1017
+ code: paramsOrFirst,
1018
+ type: rest[0],
1019
+ config: rest[1],
1020
+ entityRef: rest[2],
1021
+ entityType: rest[3],
1022
+ groupId: rest[4],
1023
+ isFilterable: rest[5],
1024
+ isUnique: rest[6],
1025
+ labels: rest[7],
1026
+ localizable: rest[8],
1027
+ position: rest[9],
1028
+ scopable: rest[10],
1029
+ usableInGrid: rest[11],
1030
+ validation: rest[12]
1031
+ };
1032
+ }
1033
+ const code = params.code;
1034
+ const type = params.type;
1035
+ const config = params.config;
1036
+ const entityRef = params.entityRef;
1037
+ const entityType = params.entityType;
1038
+ const groupId = params.groupId;
1039
+ const isFilterable = params.isFilterable;
1040
+ const isUnique = params.isUnique;
1041
+ const labels = params.labels;
1042
+ const localizable = params.localizable;
1043
+ const position = params.position;
1044
+ const scopable = params.scopable;
1045
+ const usableInGrid = params.usableInGrid;
1046
+ const validation = params.validation;
1047
+ if (typeof code === "undefined") {
1048
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
1049
+ }
1050
+ if (typeof type === "undefined") {
1051
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "type"');
1052
+ }
1053
+ const apiPath = "/v1/products/attributes";
1054
+ const apiPayload = {};
1055
+ if (typeof code !== "undefined") {
1056
+ apiPayload["code"] = code;
1057
+ }
1058
+ if (typeof config !== "undefined") {
1059
+ apiPayload["config"] = config;
1060
+ }
1061
+ if (typeof entityRef !== "undefined") {
1062
+ apiPayload["entity_ref"] = entityRef;
1063
+ }
1064
+ if (typeof entityType !== "undefined") {
1065
+ apiPayload["entity_type"] = entityType;
1066
+ }
1067
+ if (typeof groupId !== "undefined") {
1068
+ apiPayload["group_id"] = groupId;
1069
+ }
1070
+ if (typeof isFilterable !== "undefined") {
1071
+ apiPayload["is_filterable"] = isFilterable;
1072
+ }
1073
+ if (typeof isUnique !== "undefined") {
1074
+ apiPayload["is_unique"] = isUnique;
1075
+ }
1076
+ if (typeof labels !== "undefined") {
1077
+ apiPayload["labels"] = labels;
1078
+ }
1079
+ if (typeof localizable !== "undefined") {
1080
+ apiPayload["localizable"] = localizable;
1081
+ }
1082
+ if (typeof position !== "undefined") {
1083
+ apiPayload["position"] = position;
1084
+ }
1085
+ if (typeof scopable !== "undefined") {
1086
+ apiPayload["scopable"] = scopable;
1087
+ }
1088
+ if (typeof type !== "undefined") {
1089
+ apiPayload["type"] = type;
1090
+ }
1091
+ if (typeof usableInGrid !== "undefined") {
1092
+ apiPayload["usable_in_grid"] = usableInGrid;
1093
+ }
1094
+ if (typeof validation !== "undefined") {
1095
+ apiPayload["validation"] = validation;
1096
+ }
1097
+ const uri = new URL(this.client.config.endpoint + apiPath);
1098
+ const apiHeaders = {
1099
+ "content-type": "application/json"
1100
+ };
1101
+ return this.client.call(
1102
+ "post",
1103
+ uri,
1104
+ apiHeaders,
1105
+ apiPayload
1106
+ );
1107
+ }
1108
+ productsAttributesDelete(paramsOrFirst) {
1109
+ let params;
1110
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1111
+ params = paramsOrFirst || {};
1112
+ } else {
1113
+ params = {
1114
+ id: paramsOrFirst
1115
+ };
1116
+ }
1117
+ const id = params.id;
1118
+ if (typeof id === "undefined") {
1119
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1120
+ }
1121
+ const apiPath = "/v1/products/attributes/{id}".replace("{id}", id);
1122
+ const apiPayload = {};
1123
+ const uri = new URL(this.client.config.endpoint + apiPath);
1124
+ const apiHeaders = {};
1125
+ return this.client.call(
1126
+ "delete",
1127
+ uri,
1128
+ apiHeaders,
1129
+ apiPayload
1130
+ );
1131
+ }
1132
+ productsAttributesGet(paramsOrFirst) {
1133
+ let params;
1134
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1135
+ params = paramsOrFirst || {};
1136
+ } else {
1137
+ params = {
1138
+ id: paramsOrFirst
1139
+ };
1140
+ }
1141
+ const id = params.id;
1142
+ if (typeof id === "undefined") {
1143
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1144
+ }
1145
+ const apiPath = "/v1/products/attributes/{id}".replace("{id}", id);
1146
+ const apiPayload = {};
1147
+ const uri = new URL(this.client.config.endpoint + apiPath);
1148
+ const apiHeaders = {};
1149
+ return this.client.call(
1150
+ "get",
1151
+ uri,
1152
+ apiHeaders,
1153
+ apiPayload
1154
+ );
1155
+ }
1156
+ productsAttributesUpdate(paramsOrFirst, ...rest) {
1157
+ let params;
1158
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1159
+ params = paramsOrFirst || {};
1160
+ } else {
1161
+ params = {
1162
+ id: paramsOrFirst,
1163
+ code: rest[0],
1164
+ config: rest[1],
1165
+ entityRef: rest[2],
1166
+ entityType: rest[3],
1167
+ groupId: rest[4],
1168
+ isFilterable: rest[5],
1169
+ isUnique: rest[6],
1170
+ labels: rest[7],
1171
+ localizable: rest[8],
1172
+ position: rest[9],
1173
+ scopable: rest[10],
1174
+ type: rest[11],
1175
+ usableInGrid: rest[12],
1176
+ validation: rest[13]
1177
+ };
1178
+ }
1179
+ const id = params.id;
1180
+ const code = params.code;
1181
+ const config = params.config;
1182
+ const entityRef = params.entityRef;
1183
+ const entityType = params.entityType;
1184
+ const groupId = params.groupId;
1185
+ const isFilterable = params.isFilterable;
1186
+ const isUnique = params.isUnique;
1187
+ const labels = params.labels;
1188
+ const localizable = params.localizable;
1189
+ const position = params.position;
1190
+ const scopable = params.scopable;
1191
+ const type = params.type;
1192
+ const usableInGrid = params.usableInGrid;
1193
+ const validation = params.validation;
1194
+ if (typeof id === "undefined") {
1195
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1196
+ }
1197
+ const apiPath = "/v1/products/attributes/{id}".replace("{id}", id);
1198
+ const apiPayload = {};
1199
+ if (typeof code !== "undefined") {
1200
+ apiPayload["code"] = code;
1201
+ }
1202
+ if (typeof config !== "undefined") {
1203
+ apiPayload["config"] = config;
1204
+ }
1205
+ if (typeof entityRef !== "undefined") {
1206
+ apiPayload["entity_ref"] = entityRef;
1207
+ }
1208
+ if (typeof entityType !== "undefined") {
1209
+ apiPayload["entity_type"] = entityType;
1210
+ }
1211
+ if (typeof groupId !== "undefined") {
1212
+ apiPayload["group_id"] = groupId;
1213
+ }
1214
+ if (typeof isFilterable !== "undefined") {
1215
+ apiPayload["is_filterable"] = isFilterable;
1216
+ }
1217
+ if (typeof isUnique !== "undefined") {
1218
+ apiPayload["is_unique"] = isUnique;
1219
+ }
1220
+ if (typeof labels !== "undefined") {
1221
+ apiPayload["labels"] = labels;
1222
+ }
1223
+ if (typeof localizable !== "undefined") {
1224
+ apiPayload["localizable"] = localizable;
1225
+ }
1226
+ if (typeof position !== "undefined") {
1227
+ apiPayload["position"] = position;
1228
+ }
1229
+ if (typeof scopable !== "undefined") {
1230
+ apiPayload["scopable"] = scopable;
1231
+ }
1232
+ if (typeof type !== "undefined") {
1233
+ apiPayload["type"] = type;
1234
+ }
1235
+ if (typeof usableInGrid !== "undefined") {
1236
+ apiPayload["usable_in_grid"] = usableInGrid;
1237
+ }
1238
+ if (typeof validation !== "undefined") {
1239
+ apiPayload["validation"] = validation;
1240
+ }
1241
+ const uri = new URL(this.client.config.endpoint + apiPath);
1242
+ const apiHeaders = {
1243
+ "content-type": "application/json"
1244
+ };
1245
+ return this.client.call(
1246
+ "put",
1247
+ uri,
1248
+ apiHeaders,
1249
+ apiPayload
1250
+ );
1251
+ }
1252
+ productsBatch(paramsOrFirst, ...rest) {
1253
+ let params;
1254
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1255
+ params = paramsOrFirst || {};
1256
+ } else {
1257
+ params = {
1258
+ ids: paramsOrFirst,
1259
+ skus: rest[0]
1260
+ };
1261
+ }
1262
+ const ids = params.ids;
1263
+ const skus = params.skus;
1264
+ const apiPath = "/v1/products/batch";
1265
+ const apiPayload = {};
1266
+ if (typeof ids !== "undefined") {
1267
+ apiPayload["ids"] = ids;
1268
+ }
1269
+ if (typeof skus !== "undefined") {
1270
+ apiPayload["skus"] = skus;
1271
+ }
1272
+ const uri = new URL(this.client.config.endpoint + apiPath);
1273
+ const apiHeaders = {
1274
+ "content-type": "application/json"
1275
+ };
1276
+ return this.client.call(
1277
+ "post",
1278
+ uri,
1279
+ apiHeaders,
1280
+ apiPayload
1281
+ );
1282
+ }
1283
+ productsCategoriesList(paramsOrFirst, ...rest) {
1284
+ let params;
1285
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1286
+ params = paramsOrFirst || {};
1287
+ } else {
1288
+ params = {
1289
+ limit: paramsOrFirst,
1290
+ offset: rest[0],
1291
+ order: rest[1]
1292
+ };
1293
+ }
1294
+ const limit = params.limit;
1295
+ const offset = params.offset;
1296
+ const order = params.order;
1297
+ const apiPath = "/v1/products/categories";
1298
+ const apiPayload = {};
1299
+ if (typeof limit !== "undefined") {
1300
+ apiPayload["limit"] = limit;
1301
+ }
1302
+ if (typeof offset !== "undefined") {
1303
+ apiPayload["offset"] = offset;
1304
+ }
1305
+ if (typeof order !== "undefined") {
1306
+ apiPayload["order"] = order;
1307
+ }
1308
+ const uri = new URL(this.client.config.endpoint + apiPath);
1309
+ const apiHeaders = {};
1310
+ return this.client.call(
1311
+ "get",
1312
+ uri,
1313
+ apiHeaders,
1314
+ apiPayload
1315
+ );
1316
+ }
1317
+ productsCategoriesCreate(paramsOrFirst, ...rest) {
1318
+ let params;
1319
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1320
+ params = paramsOrFirst || {};
1321
+ } else {
1322
+ params = {
1323
+ code: paramsOrFirst,
1324
+ labels: rest[0],
1325
+ parentId: rest[1],
1326
+ xpath: rest[2],
1327
+ position: rest[3],
1328
+ values: rest[4]
1329
+ };
1330
+ }
1331
+ const code = params.code;
1332
+ const labels = params.labels;
1333
+ const parentId = params.parentId;
1334
+ const xpath = params.xpath;
1335
+ const position = params.position;
1336
+ const values = params.values;
1337
+ if (typeof code === "undefined") {
1338
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
1339
+ }
1340
+ const apiPath = "/v1/products/categories";
1341
+ const apiPayload = {};
1342
+ if (typeof code !== "undefined") {
1343
+ apiPayload["code"] = code;
1344
+ }
1345
+ if (typeof labels !== "undefined") {
1346
+ apiPayload["labels"] = labels;
1347
+ }
1348
+ if (typeof parentId !== "undefined") {
1349
+ apiPayload["parent_id"] = parentId;
1350
+ }
1351
+ if (typeof xpath !== "undefined") {
1352
+ apiPayload["path"] = xpath;
1353
+ }
1354
+ if (typeof position !== "undefined") {
1355
+ apiPayload["position"] = position;
1356
+ }
1357
+ if (typeof values !== "undefined") {
1358
+ apiPayload["values"] = values;
1359
+ }
1360
+ const uri = new URL(this.client.config.endpoint + apiPath);
1361
+ const apiHeaders = {
1362
+ "content-type": "application/json"
1363
+ };
1364
+ return this.client.call(
1365
+ "post",
1366
+ uri,
1367
+ apiHeaders,
1368
+ apiPayload
1369
+ );
1370
+ }
1371
+ productsCategoriesDelete(paramsOrFirst) {
1372
+ let params;
1373
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1374
+ params = paramsOrFirst || {};
1375
+ } else {
1376
+ params = {
1377
+ id: paramsOrFirst
1378
+ };
1379
+ }
1380
+ const id = params.id;
1381
+ if (typeof id === "undefined") {
1382
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1383
+ }
1384
+ const apiPath = "/v1/products/categories/{id}".replace("{id}", id);
1385
+ const apiPayload = {};
1386
+ const uri = new URL(this.client.config.endpoint + apiPath);
1387
+ const apiHeaders = {};
1388
+ return this.client.call(
1389
+ "delete",
1390
+ uri,
1391
+ apiHeaders,
1392
+ apiPayload
1393
+ );
1394
+ }
1395
+ productsCategoriesGet(paramsOrFirst) {
1396
+ let params;
1397
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1398
+ params = paramsOrFirst || {};
1399
+ } else {
1400
+ params = {
1401
+ id: paramsOrFirst
1402
+ };
1403
+ }
1404
+ const id = params.id;
1405
+ if (typeof id === "undefined") {
1406
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1407
+ }
1408
+ const apiPath = "/v1/products/categories/{id}".replace("{id}", id);
1409
+ const apiPayload = {};
1410
+ const uri = new URL(this.client.config.endpoint + apiPath);
1411
+ const apiHeaders = {};
1412
+ return this.client.call(
1413
+ "get",
1414
+ uri,
1415
+ apiHeaders,
1416
+ apiPayload
1417
+ );
1418
+ }
1419
+ productsCategoriesUpdate(paramsOrFirst, ...rest) {
1420
+ let params;
1421
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1422
+ params = paramsOrFirst || {};
1423
+ } else {
1424
+ params = {
1425
+ id: paramsOrFirst,
1426
+ code: rest[0],
1427
+ labels: rest[1],
1428
+ parentId: rest[2],
1429
+ xpath: rest[3],
1430
+ position: rest[4],
1431
+ values: rest[5]
1432
+ };
1433
+ }
1434
+ const id = params.id;
1435
+ const code = params.code;
1436
+ const labels = params.labels;
1437
+ const parentId = params.parentId;
1438
+ const xpath = params.xpath;
1439
+ const position = params.position;
1440
+ const values = params.values;
1441
+ if (typeof id === "undefined") {
1442
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1443
+ }
1444
+ const apiPath = "/v1/products/categories/{id}".replace("{id}", id);
1445
+ const apiPayload = {};
1446
+ if (typeof code !== "undefined") {
1447
+ apiPayload["code"] = code;
1448
+ }
1449
+ if (typeof labels !== "undefined") {
1450
+ apiPayload["labels"] = labels;
1451
+ }
1452
+ if (typeof parentId !== "undefined") {
1453
+ apiPayload["parent_id"] = parentId;
1454
+ }
1455
+ if (typeof xpath !== "undefined") {
1456
+ apiPayload["path"] = xpath;
1457
+ }
1458
+ if (typeof position !== "undefined") {
1459
+ apiPayload["position"] = position;
1460
+ }
1461
+ if (typeof values !== "undefined") {
1462
+ apiPayload["values"] = values;
1463
+ }
1464
+ const uri = new URL(this.client.config.endpoint + apiPath);
1465
+ const apiHeaders = {
1466
+ "content-type": "application/json"
1467
+ };
1468
+ return this.client.call(
1469
+ "put",
1470
+ uri,
1471
+ apiHeaders,
1472
+ apiPayload
1473
+ );
1474
+ }
1475
+ productsFamiliesList(paramsOrFirst, ...rest) {
1476
+ let params;
1477
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1478
+ params = paramsOrFirst || {};
1479
+ } else {
1480
+ params = {
1481
+ limit: paramsOrFirst,
1482
+ offset: rest[0],
1483
+ order: rest[1]
1484
+ };
1485
+ }
1486
+ const limit = params.limit;
1487
+ const offset = params.offset;
1488
+ const order = params.order;
1489
+ const apiPath = "/v1/products/families";
1490
+ const apiPayload = {};
1491
+ if (typeof limit !== "undefined") {
1492
+ apiPayload["limit"] = limit;
1493
+ }
1494
+ if (typeof offset !== "undefined") {
1495
+ apiPayload["offset"] = offset;
1496
+ }
1497
+ if (typeof order !== "undefined") {
1498
+ apiPayload["order"] = order;
1499
+ }
1500
+ const uri = new URL(this.client.config.endpoint + apiPath);
1501
+ const apiHeaders = {};
1502
+ return this.client.call(
1503
+ "get",
1504
+ uri,
1505
+ apiHeaders,
1506
+ apiPayload
1507
+ );
1508
+ }
1509
+ productsFamiliesCreate(paramsOrFirst, ...rest) {
1510
+ let params;
1511
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1512
+ params = paramsOrFirst || {};
1513
+ } else {
1514
+ params = {
1515
+ code: paramsOrFirst,
1516
+ imageAttribute: rest[0],
1517
+ labelAttribute: rest[1],
1518
+ labels: rest[2]
1519
+ };
1520
+ }
1521
+ const code = params.code;
1522
+ const imageAttribute = params.imageAttribute;
1523
+ const labelAttribute = params.labelAttribute;
1524
+ const labels = params.labels;
1525
+ if (typeof code === "undefined") {
1526
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
1527
+ }
1528
+ const apiPath = "/v1/products/families";
1529
+ const apiPayload = {};
1530
+ if (typeof code !== "undefined") {
1531
+ apiPayload["code"] = code;
1532
+ }
1533
+ if (typeof imageAttribute !== "undefined") {
1534
+ apiPayload["image_attribute"] = imageAttribute;
1535
+ }
1536
+ if (typeof labelAttribute !== "undefined") {
1537
+ apiPayload["label_attribute"] = labelAttribute;
1538
+ }
1539
+ if (typeof labels !== "undefined") {
1540
+ apiPayload["labels"] = labels;
1541
+ }
1542
+ const uri = new URL(this.client.config.endpoint + apiPath);
1543
+ const apiHeaders = {
1544
+ "content-type": "application/json"
1545
+ };
1546
+ return this.client.call(
1547
+ "post",
1548
+ uri,
1549
+ apiHeaders,
1550
+ apiPayload
1551
+ );
1552
+ }
1553
+ productsFamiliesDelete(paramsOrFirst) {
1554
+ let params;
1555
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1556
+ params = paramsOrFirst || {};
1557
+ } else {
1558
+ params = {
1559
+ id: paramsOrFirst
1560
+ };
1561
+ }
1562
+ const id = params.id;
1563
+ if (typeof id === "undefined") {
1564
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1565
+ }
1566
+ const apiPath = "/v1/products/families/{id}".replace("{id}", id);
1567
+ const apiPayload = {};
1568
+ const uri = new URL(this.client.config.endpoint + apiPath);
1569
+ const apiHeaders = {};
1570
+ return this.client.call(
1571
+ "delete",
1572
+ uri,
1573
+ apiHeaders,
1574
+ apiPayload
1575
+ );
1576
+ }
1577
+ productsFamiliesGet(paramsOrFirst) {
1578
+ let params;
1579
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1580
+ params = paramsOrFirst || {};
1581
+ } else {
1582
+ params = {
1583
+ id: paramsOrFirst
1584
+ };
1585
+ }
1586
+ const id = params.id;
1587
+ if (typeof id === "undefined") {
1588
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1589
+ }
1590
+ const apiPath = "/v1/products/families/{id}".replace("{id}", id);
1591
+ const apiPayload = {};
1592
+ const uri = new URL(this.client.config.endpoint + apiPath);
1593
+ const apiHeaders = {};
1594
+ return this.client.call(
1595
+ "get",
1596
+ uri,
1597
+ apiHeaders,
1598
+ apiPayload
1599
+ );
1600
+ }
1601
+ productsFamiliesUpdate(paramsOrFirst, ...rest) {
1602
+ let params;
1603
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1604
+ params = paramsOrFirst || {};
1605
+ } else {
1606
+ params = {
1607
+ id: paramsOrFirst,
1608
+ code: rest[0],
1609
+ imageAttribute: rest[1],
1610
+ labelAttribute: rest[2],
1611
+ labels: rest[3]
1612
+ };
1613
+ }
1614
+ const id = params.id;
1615
+ const code = params.code;
1616
+ const imageAttribute = params.imageAttribute;
1617
+ const labelAttribute = params.labelAttribute;
1618
+ const labels = params.labels;
1619
+ if (typeof id === "undefined") {
1620
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1621
+ }
1622
+ const apiPath = "/v1/products/families/{id}".replace("{id}", id);
1623
+ const apiPayload = {};
1624
+ if (typeof code !== "undefined") {
1625
+ apiPayload["code"] = code;
1626
+ }
1627
+ if (typeof imageAttribute !== "undefined") {
1628
+ apiPayload["image_attribute"] = imageAttribute;
1629
+ }
1630
+ if (typeof labelAttribute !== "undefined") {
1631
+ apiPayload["label_attribute"] = labelAttribute;
1632
+ }
1633
+ if (typeof labels !== "undefined") {
1634
+ apiPayload["labels"] = labels;
1635
+ }
1636
+ const uri = new URL(this.client.config.endpoint + apiPath);
1637
+ const apiHeaders = {
1638
+ "content-type": "application/json"
1639
+ };
1640
+ return this.client.call(
1641
+ "put",
1642
+ uri,
1643
+ apiHeaders,
1644
+ apiPayload
1645
+ );
1646
+ }
1647
+ productsFamilyAttributesList(paramsOrFirst, ...rest) {
1648
+ let params;
1649
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1650
+ params = paramsOrFirst || {};
1651
+ } else {
1652
+ params = {
1653
+ limit: paramsOrFirst,
1654
+ offset: rest[0],
1655
+ order: rest[1]
1656
+ };
1657
+ }
1658
+ const limit = params.limit;
1659
+ const offset = params.offset;
1660
+ const order = params.order;
1661
+ const apiPath = "/v1/products/family_attributes";
1662
+ const apiPayload = {};
1663
+ if (typeof limit !== "undefined") {
1664
+ apiPayload["limit"] = limit;
1665
+ }
1666
+ if (typeof offset !== "undefined") {
1667
+ apiPayload["offset"] = offset;
1668
+ }
1669
+ if (typeof order !== "undefined") {
1670
+ apiPayload["order"] = order;
1671
+ }
1672
+ const uri = new URL(this.client.config.endpoint + apiPath);
1673
+ const apiHeaders = {};
1674
+ return this.client.call(
1675
+ "get",
1676
+ uri,
1677
+ apiHeaders,
1678
+ apiPayload
1679
+ );
1680
+ }
1681
+ productsFamilyAttributesCreate(paramsOrFirst, ...rest) {
1682
+ let params;
1683
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1684
+ params = paramsOrFirst || {};
1685
+ } else {
1686
+ params = {
1687
+ attributeId: paramsOrFirst,
1688
+ familyId: rest[0],
1689
+ isRequired: rest[1],
1690
+ position: rest[2],
1691
+ requiredChannels: rest[3]
1692
+ };
1693
+ }
1694
+ const attributeId = params.attributeId;
1695
+ const familyId = params.familyId;
1696
+ const isRequired = params.isRequired;
1697
+ const position = params.position;
1698
+ const requiredChannels = params.requiredChannels;
1699
+ if (typeof attributeId === "undefined") {
1700
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "attributeId"');
1701
+ }
1702
+ if (typeof familyId === "undefined") {
1703
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "familyId"');
1704
+ }
1705
+ const apiPath = "/v1/products/family_attributes";
1706
+ const apiPayload = {};
1707
+ if (typeof attributeId !== "undefined") {
1708
+ apiPayload["attribute_id"] = attributeId;
1709
+ }
1710
+ if (typeof familyId !== "undefined") {
1711
+ apiPayload["family_id"] = familyId;
1712
+ }
1713
+ if (typeof isRequired !== "undefined") {
1714
+ apiPayload["is_required"] = isRequired;
1715
+ }
1716
+ if (typeof position !== "undefined") {
1717
+ apiPayload["position"] = position;
1718
+ }
1719
+ if (typeof requiredChannels !== "undefined") {
1720
+ apiPayload["required_channels"] = requiredChannels;
1721
+ }
1722
+ const uri = new URL(this.client.config.endpoint + apiPath);
1723
+ const apiHeaders = {
1724
+ "content-type": "application/json"
1725
+ };
1726
+ return this.client.call(
1727
+ "post",
1728
+ uri,
1729
+ apiHeaders,
1730
+ apiPayload
1731
+ );
1732
+ }
1733
+ productsFamilyAttributesDelete(paramsOrFirst) {
1734
+ let params;
1735
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1736
+ params = paramsOrFirst || {};
1737
+ } else {
1738
+ params = {
1739
+ id: paramsOrFirst
1740
+ };
1741
+ }
1742
+ const id = params.id;
1743
+ if (typeof id === "undefined") {
1744
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1745
+ }
1746
+ const apiPath = "/v1/products/family_attributes/{id}".replace("{id}", id);
1747
+ const apiPayload = {};
1748
+ const uri = new URL(this.client.config.endpoint + apiPath);
1749
+ const apiHeaders = {};
1750
+ return this.client.call(
1751
+ "delete",
1752
+ uri,
1753
+ apiHeaders,
1754
+ apiPayload
1755
+ );
1756
+ }
1757
+ productsFamilyAttributesGet(paramsOrFirst) {
1758
+ let params;
1759
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1760
+ params = paramsOrFirst || {};
1761
+ } else {
1762
+ params = {
1763
+ id: paramsOrFirst
1764
+ };
1765
+ }
1766
+ const id = params.id;
1767
+ if (typeof id === "undefined") {
1768
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1769
+ }
1770
+ const apiPath = "/v1/products/family_attributes/{id}".replace("{id}", id);
1771
+ const apiPayload = {};
1772
+ const uri = new URL(this.client.config.endpoint + apiPath);
1773
+ const apiHeaders = {};
1774
+ return this.client.call(
1775
+ "get",
1776
+ uri,
1777
+ apiHeaders,
1778
+ apiPayload
1779
+ );
1780
+ }
1781
+ productsFamilyAttributesUpdate(paramsOrFirst, ...rest) {
1782
+ let params;
1783
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1784
+ params = paramsOrFirst || {};
1785
+ } else {
1786
+ params = {
1787
+ id: paramsOrFirst,
1788
+ attributeId: rest[0],
1789
+ familyId: rest[1],
1790
+ isRequired: rest[2],
1791
+ position: rest[3],
1792
+ requiredChannels: rest[4]
1793
+ };
1794
+ }
1795
+ const id = params.id;
1796
+ const attributeId = params.attributeId;
1797
+ const familyId = params.familyId;
1798
+ const isRequired = params.isRequired;
1799
+ const position = params.position;
1800
+ const requiredChannels = params.requiredChannels;
1801
+ if (typeof id === "undefined") {
1802
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1803
+ }
1804
+ const apiPath = "/v1/products/family_attributes/{id}".replace("{id}", id);
1805
+ const apiPayload = {};
1806
+ if (typeof attributeId !== "undefined") {
1807
+ apiPayload["attribute_id"] = attributeId;
1808
+ }
1809
+ if (typeof familyId !== "undefined") {
1810
+ apiPayload["family_id"] = familyId;
1811
+ }
1812
+ if (typeof isRequired !== "undefined") {
1813
+ apiPayload["is_required"] = isRequired;
1814
+ }
1815
+ if (typeof position !== "undefined") {
1816
+ apiPayload["position"] = position;
1817
+ }
1818
+ if (typeof requiredChannels !== "undefined") {
1819
+ apiPayload["required_channels"] = requiredChannels;
1820
+ }
1821
+ const uri = new URL(this.client.config.endpoint + apiPath);
1822
+ const apiHeaders = {
1823
+ "content-type": "application/json"
1824
+ };
1825
+ return this.client.call(
1826
+ "put",
1827
+ uri,
1828
+ apiHeaders,
1829
+ apiPayload
1830
+ );
1831
+ }
1832
+ productsFamilyVariantsList(paramsOrFirst, ...rest) {
1833
+ let params;
1834
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1835
+ params = paramsOrFirst || {};
1836
+ } else {
1837
+ params = {
1838
+ limit: paramsOrFirst,
1839
+ offset: rest[0],
1840
+ order: rest[1]
1841
+ };
1842
+ }
1843
+ const limit = params.limit;
1844
+ const offset = params.offset;
1845
+ const order = params.order;
1846
+ const apiPath = "/v1/products/family_variants";
1847
+ const apiPayload = {};
1848
+ if (typeof limit !== "undefined") {
1849
+ apiPayload["limit"] = limit;
1850
+ }
1851
+ if (typeof offset !== "undefined") {
1852
+ apiPayload["offset"] = offset;
1853
+ }
1854
+ if (typeof order !== "undefined") {
1855
+ apiPayload["order"] = order;
1856
+ }
1857
+ const uri = new URL(this.client.config.endpoint + apiPath);
1858
+ const apiHeaders = {};
1859
+ return this.client.call(
1860
+ "get",
1861
+ uri,
1862
+ apiHeaders,
1863
+ apiPayload
1864
+ );
1865
+ }
1866
+ productsFamilyVariantsCreate(paramsOrFirst, ...rest) {
1867
+ let params;
1868
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1869
+ params = paramsOrFirst || {};
1870
+ } else {
1871
+ params = {
1872
+ code: paramsOrFirst,
1873
+ familyId: rest[0],
1874
+ axes: rest[1],
1875
+ labels: rest[2]
1876
+ };
1877
+ }
1878
+ const code = params.code;
1879
+ const familyId = params.familyId;
1880
+ const axes = params.axes;
1881
+ const labels = params.labels;
1882
+ if (typeof code === "undefined") {
1883
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
1884
+ }
1885
+ if (typeof familyId === "undefined") {
1886
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "familyId"');
1887
+ }
1888
+ const apiPath = "/v1/products/family_variants";
1889
+ const apiPayload = {};
1890
+ if (typeof axes !== "undefined") {
1891
+ apiPayload["axes"] = axes;
1892
+ }
1893
+ if (typeof code !== "undefined") {
1894
+ apiPayload["code"] = code;
1895
+ }
1896
+ if (typeof familyId !== "undefined") {
1897
+ apiPayload["family_id"] = familyId;
1898
+ }
1899
+ if (typeof labels !== "undefined") {
1900
+ apiPayload["labels"] = labels;
1901
+ }
1902
+ const uri = new URL(this.client.config.endpoint + apiPath);
1903
+ const apiHeaders = {
1904
+ "content-type": "application/json"
1905
+ };
1906
+ return this.client.call(
1907
+ "post",
1908
+ uri,
1909
+ apiHeaders,
1910
+ apiPayload
1911
+ );
1912
+ }
1913
+ productsFamilyVariantsDelete(paramsOrFirst) {
1914
+ let params;
1915
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1916
+ params = paramsOrFirst || {};
1917
+ } else {
1918
+ params = {
1919
+ id: paramsOrFirst
1920
+ };
1921
+ }
1922
+ const id = params.id;
1923
+ if (typeof id === "undefined") {
1924
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1925
+ }
1926
+ const apiPath = "/v1/products/family_variants/{id}".replace("{id}", id);
1927
+ const apiPayload = {};
1928
+ const uri = new URL(this.client.config.endpoint + apiPath);
1929
+ const apiHeaders = {};
1930
+ return this.client.call(
1931
+ "delete",
1932
+ uri,
1933
+ apiHeaders,
1934
+ apiPayload
1935
+ );
1936
+ }
1937
+ productsFamilyVariantsGet(paramsOrFirst) {
1938
+ let params;
1939
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1940
+ params = paramsOrFirst || {};
1941
+ } else {
1942
+ params = {
1943
+ id: paramsOrFirst
1944
+ };
1945
+ }
1946
+ const id = params.id;
1947
+ if (typeof id === "undefined") {
1948
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1949
+ }
1950
+ const apiPath = "/v1/products/family_variants/{id}".replace("{id}", id);
1951
+ const apiPayload = {};
1952
+ const uri = new URL(this.client.config.endpoint + apiPath);
1953
+ const apiHeaders = {};
1954
+ return this.client.call(
1955
+ "get",
1956
+ uri,
1957
+ apiHeaders,
1958
+ apiPayload
1959
+ );
1960
+ }
1961
+ productsFamilyVariantsUpdate(paramsOrFirst, ...rest) {
1962
+ let params;
1963
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
1964
+ params = paramsOrFirst || {};
1965
+ } else {
1966
+ params = {
1967
+ id: paramsOrFirst,
1968
+ axes: rest[0],
1969
+ code: rest[1],
1970
+ familyId: rest[2],
1971
+ labels: rest[3]
1972
+ };
1973
+ }
1974
+ const id = params.id;
1975
+ const axes = params.axes;
1976
+ const code = params.code;
1977
+ const familyId = params.familyId;
1978
+ const labels = params.labels;
1979
+ if (typeof id === "undefined") {
1980
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
1981
+ }
1982
+ const apiPath = "/v1/products/family_variants/{id}".replace("{id}", id);
1983
+ const apiPayload = {};
1984
+ if (typeof axes !== "undefined") {
1985
+ apiPayload["axes"] = axes;
1986
+ }
1987
+ if (typeof code !== "undefined") {
1988
+ apiPayload["code"] = code;
1989
+ }
1990
+ if (typeof familyId !== "undefined") {
1991
+ apiPayload["family_id"] = familyId;
1992
+ }
1993
+ if (typeof labels !== "undefined") {
1994
+ apiPayload["labels"] = labels;
1995
+ }
1996
+ const uri = new URL(this.client.config.endpoint + apiPath);
1997
+ const apiHeaders = {
1998
+ "content-type": "application/json"
1999
+ };
2000
+ return this.client.call(
2001
+ "put",
2002
+ uri,
2003
+ apiHeaders,
2004
+ apiPayload
2005
+ );
2006
+ }
2007
+ productsMeasurementFamiliesList(paramsOrFirst, ...rest) {
2008
+ let params;
2009
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2010
+ params = paramsOrFirst || {};
2011
+ } else {
2012
+ params = {
2013
+ limit: paramsOrFirst,
2014
+ offset: rest[0],
2015
+ order: rest[1]
2016
+ };
2017
+ }
2018
+ const limit = params.limit;
2019
+ const offset = params.offset;
2020
+ const order = params.order;
2021
+ const apiPath = "/v1/products/measurement_families";
2022
+ const apiPayload = {};
2023
+ if (typeof limit !== "undefined") {
2024
+ apiPayload["limit"] = limit;
2025
+ }
2026
+ if (typeof offset !== "undefined") {
2027
+ apiPayload["offset"] = offset;
2028
+ }
2029
+ if (typeof order !== "undefined") {
2030
+ apiPayload["order"] = order;
2031
+ }
2032
+ const uri = new URL(this.client.config.endpoint + apiPath);
2033
+ const apiHeaders = {};
2034
+ return this.client.call(
2035
+ "get",
2036
+ uri,
2037
+ apiHeaders,
2038
+ apiPayload
2039
+ );
2040
+ }
2041
+ productsMeasurementFamiliesCreate(paramsOrFirst, ...rest) {
2042
+ let params;
2043
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2044
+ params = paramsOrFirst || {};
2045
+ } else {
2046
+ params = {
2047
+ code: paramsOrFirst,
2048
+ standardUnit: rest[0],
2049
+ labels: rest[1],
2050
+ units: rest[2]
2051
+ };
2052
+ }
2053
+ const code = params.code;
2054
+ const standardUnit = params.standardUnit;
2055
+ const labels = params.labels;
2056
+ const units = params.units;
2057
+ if (typeof code === "undefined") {
2058
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
2059
+ }
2060
+ if (typeof standardUnit === "undefined") {
2061
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "standardUnit"');
2062
+ }
2063
+ const apiPath = "/v1/products/measurement_families";
2064
+ const apiPayload = {};
2065
+ if (typeof code !== "undefined") {
2066
+ apiPayload["code"] = code;
2067
+ }
2068
+ if (typeof labels !== "undefined") {
2069
+ apiPayload["labels"] = labels;
2070
+ }
2071
+ if (typeof standardUnit !== "undefined") {
2072
+ apiPayload["standard_unit"] = standardUnit;
2073
+ }
2074
+ if (typeof units !== "undefined") {
2075
+ apiPayload["units"] = units;
2076
+ }
2077
+ const uri = new URL(this.client.config.endpoint + apiPath);
2078
+ const apiHeaders = {
2079
+ "content-type": "application/json"
2080
+ };
2081
+ return this.client.call(
2082
+ "post",
2083
+ uri,
2084
+ apiHeaders,
2085
+ apiPayload
2086
+ );
2087
+ }
2088
+ productsMeasurementFamiliesDelete(paramsOrFirst) {
2089
+ let params;
2090
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2091
+ params = paramsOrFirst || {};
2092
+ } else {
2093
+ params = {
2094
+ id: paramsOrFirst
2095
+ };
2096
+ }
2097
+ const id = params.id;
2098
+ if (typeof id === "undefined") {
2099
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2100
+ }
2101
+ const apiPath = "/v1/products/measurement_families/{id}".replace("{id}", id);
2102
+ const apiPayload = {};
2103
+ const uri = new URL(this.client.config.endpoint + apiPath);
2104
+ const apiHeaders = {};
2105
+ return this.client.call(
2106
+ "delete",
2107
+ uri,
2108
+ apiHeaders,
2109
+ apiPayload
2110
+ );
2111
+ }
2112
+ productsMeasurementFamiliesGet(paramsOrFirst) {
2113
+ let params;
2114
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2115
+ params = paramsOrFirst || {};
2116
+ } else {
2117
+ params = {
2118
+ id: paramsOrFirst
2119
+ };
2120
+ }
2121
+ const id = params.id;
2122
+ if (typeof id === "undefined") {
2123
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2124
+ }
2125
+ const apiPath = "/v1/products/measurement_families/{id}".replace("{id}", id);
2126
+ const apiPayload = {};
2127
+ const uri = new URL(this.client.config.endpoint + apiPath);
2128
+ const apiHeaders = {};
2129
+ return this.client.call(
2130
+ "get",
2131
+ uri,
2132
+ apiHeaders,
2133
+ apiPayload
2134
+ );
2135
+ }
2136
+ productsMeasurementFamiliesUpdate(paramsOrFirst, ...rest) {
2137
+ let params;
2138
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2139
+ params = paramsOrFirst || {};
2140
+ } else {
2141
+ params = {
2142
+ id: paramsOrFirst,
2143
+ code: rest[0],
2144
+ labels: rest[1],
2145
+ standardUnit: rest[2],
2146
+ units: rest[3]
2147
+ };
2148
+ }
2149
+ const id = params.id;
2150
+ const code = params.code;
2151
+ const labels = params.labels;
2152
+ const standardUnit = params.standardUnit;
2153
+ const units = params.units;
2154
+ if (typeof id === "undefined") {
2155
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2156
+ }
2157
+ const apiPath = "/v1/products/measurement_families/{id}".replace("{id}", id);
2158
+ const apiPayload = {};
2159
+ if (typeof code !== "undefined") {
2160
+ apiPayload["code"] = code;
2161
+ }
2162
+ if (typeof labels !== "undefined") {
2163
+ apiPayload["labels"] = labels;
2164
+ }
2165
+ if (typeof standardUnit !== "undefined") {
2166
+ apiPayload["standard_unit"] = standardUnit;
2167
+ }
2168
+ if (typeof units !== "undefined") {
2169
+ apiPayload["units"] = units;
2170
+ }
2171
+ const uri = new URL(this.client.config.endpoint + apiPath);
2172
+ const apiHeaders = {
2173
+ "content-type": "application/json"
2174
+ };
2175
+ return this.client.call(
2176
+ "put",
2177
+ uri,
2178
+ apiHeaders,
2179
+ apiPayload
2180
+ );
2181
+ }
2182
+ productsProductAssociationsList(paramsOrFirst, ...rest) {
2183
+ let params;
2184
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2185
+ params = paramsOrFirst || {};
2186
+ } else {
2187
+ params = {
2188
+ limit: paramsOrFirst,
2189
+ offset: rest[0],
2190
+ order: rest[1]
2191
+ };
2192
+ }
2193
+ const limit = params.limit;
2194
+ const offset = params.offset;
2195
+ const order = params.order;
2196
+ const apiPath = "/v1/products/product_associations";
2197
+ const apiPayload = {};
2198
+ if (typeof limit !== "undefined") {
2199
+ apiPayload["limit"] = limit;
2200
+ }
2201
+ if (typeof offset !== "undefined") {
2202
+ apiPayload["offset"] = offset;
2203
+ }
2204
+ if (typeof order !== "undefined") {
2205
+ apiPayload["order"] = order;
2206
+ }
2207
+ const uri = new URL(this.client.config.endpoint + apiPath);
2208
+ const apiHeaders = {};
2209
+ return this.client.call(
2210
+ "get",
2211
+ uri,
2212
+ apiHeaders,
2213
+ apiPayload
2214
+ );
2215
+ }
2216
+ productsProductAssociationsCreate(paramsOrFirst, ...rest) {
2217
+ let params;
2218
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2219
+ params = paramsOrFirst || {};
2220
+ } else {
2221
+ params = {
2222
+ associationTypeId: paramsOrFirst,
2223
+ productId: rest[0],
2224
+ targetProductId: rest[1],
2225
+ position: rest[2],
2226
+ quantity: rest[3]
2227
+ };
2228
+ }
2229
+ const associationTypeId = params.associationTypeId;
2230
+ const productId = params.productId;
2231
+ const targetProductId = params.targetProductId;
2232
+ const position = params.position;
2233
+ const quantity = params.quantity;
2234
+ if (typeof associationTypeId === "undefined") {
2235
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "associationTypeId"');
2236
+ }
2237
+ if (typeof productId === "undefined") {
2238
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "productId"');
2239
+ }
2240
+ if (typeof targetProductId === "undefined") {
2241
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "targetProductId"');
2242
+ }
2243
+ const apiPath = "/v1/products/product_associations";
2244
+ const apiPayload = {};
2245
+ if (typeof associationTypeId !== "undefined") {
2246
+ apiPayload["association_type_id"] = associationTypeId;
2247
+ }
2248
+ if (typeof position !== "undefined") {
2249
+ apiPayload["position"] = position;
2250
+ }
2251
+ if (typeof productId !== "undefined") {
2252
+ apiPayload["product_id"] = productId;
2253
+ }
2254
+ if (typeof quantity !== "undefined") {
2255
+ apiPayload["quantity"] = quantity;
2256
+ }
2257
+ if (typeof targetProductId !== "undefined") {
2258
+ apiPayload["target_product_id"] = targetProductId;
2259
+ }
2260
+ const uri = new URL(this.client.config.endpoint + apiPath);
2261
+ const apiHeaders = {
2262
+ "content-type": "application/json"
2263
+ };
2264
+ return this.client.call(
2265
+ "post",
2266
+ uri,
2267
+ apiHeaders,
2268
+ apiPayload
2269
+ );
2270
+ }
2271
+ productsProductAssociationsDelete(paramsOrFirst) {
2272
+ let params;
2273
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2274
+ params = paramsOrFirst || {};
2275
+ } else {
2276
+ params = {
2277
+ id: paramsOrFirst
2278
+ };
2279
+ }
2280
+ const id = params.id;
2281
+ if (typeof id === "undefined") {
2282
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2283
+ }
2284
+ const apiPath = "/v1/products/product_associations/{id}".replace("{id}", id);
2285
+ const apiPayload = {};
2286
+ const uri = new URL(this.client.config.endpoint + apiPath);
2287
+ const apiHeaders = {};
2288
+ return this.client.call(
2289
+ "delete",
2290
+ uri,
2291
+ apiHeaders,
2292
+ apiPayload
2293
+ );
2294
+ }
2295
+ productsProductAssociationsGet(paramsOrFirst) {
2296
+ let params;
2297
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2298
+ params = paramsOrFirst || {};
2299
+ } else {
2300
+ params = {
2301
+ id: paramsOrFirst
2302
+ };
2303
+ }
2304
+ const id = params.id;
2305
+ if (typeof id === "undefined") {
2306
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2307
+ }
2308
+ const apiPath = "/v1/products/product_associations/{id}".replace("{id}", id);
2309
+ const apiPayload = {};
2310
+ const uri = new URL(this.client.config.endpoint + apiPath);
2311
+ const apiHeaders = {};
2312
+ return this.client.call(
2313
+ "get",
2314
+ uri,
2315
+ apiHeaders,
2316
+ apiPayload
2317
+ );
2318
+ }
2319
+ productsProductAssociationsUpdate(paramsOrFirst, ...rest) {
2320
+ let params;
2321
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2322
+ params = paramsOrFirst || {};
2323
+ } else {
2324
+ params = {
2325
+ id: paramsOrFirst,
2326
+ associationTypeId: rest[0],
2327
+ position: rest[1],
2328
+ productId: rest[2],
2329
+ quantity: rest[3],
2330
+ targetProductId: rest[4]
2331
+ };
2332
+ }
2333
+ const id = params.id;
2334
+ const associationTypeId = params.associationTypeId;
2335
+ const position = params.position;
2336
+ const productId = params.productId;
2337
+ const quantity = params.quantity;
2338
+ const targetProductId = params.targetProductId;
2339
+ if (typeof id === "undefined") {
2340
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2341
+ }
2342
+ const apiPath = "/v1/products/product_associations/{id}".replace("{id}", id);
2343
+ const apiPayload = {};
2344
+ if (typeof associationTypeId !== "undefined") {
2345
+ apiPayload["association_type_id"] = associationTypeId;
2346
+ }
2347
+ if (typeof position !== "undefined") {
2348
+ apiPayload["position"] = position;
2349
+ }
2350
+ if (typeof productId !== "undefined") {
2351
+ apiPayload["product_id"] = productId;
2352
+ }
2353
+ if (typeof quantity !== "undefined") {
2354
+ apiPayload["quantity"] = quantity;
2355
+ }
2356
+ if (typeof targetProductId !== "undefined") {
2357
+ apiPayload["target_product_id"] = targetProductId;
2358
+ }
2359
+ const uri = new URL(this.client.config.endpoint + apiPath);
2360
+ const apiHeaders = {
2361
+ "content-type": "application/json"
2362
+ };
2363
+ return this.client.call(
2364
+ "put",
2365
+ uri,
2366
+ apiHeaders,
2367
+ apiPayload
2368
+ );
2369
+ }
2370
+ productsProductCategoriesList(paramsOrFirst, ...rest) {
2371
+ let params;
2372
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2373
+ params = paramsOrFirst || {};
2374
+ } else {
2375
+ params = {
2376
+ limit: paramsOrFirst,
2377
+ offset: rest[0],
2378
+ order: rest[1]
2379
+ };
2380
+ }
2381
+ const limit = params.limit;
2382
+ const offset = params.offset;
2383
+ const order = params.order;
2384
+ const apiPath = "/v1/products/product_categories";
2385
+ const apiPayload = {};
2386
+ if (typeof limit !== "undefined") {
2387
+ apiPayload["limit"] = limit;
2388
+ }
2389
+ if (typeof offset !== "undefined") {
2390
+ apiPayload["offset"] = offset;
2391
+ }
2392
+ if (typeof order !== "undefined") {
2393
+ apiPayload["order"] = order;
2394
+ }
2395
+ const uri = new URL(this.client.config.endpoint + apiPath);
2396
+ const apiHeaders = {};
2397
+ return this.client.call(
2398
+ "get",
2399
+ uri,
2400
+ apiHeaders,
2401
+ apiPayload
2402
+ );
2403
+ }
2404
+ productsProductCategoriesCreate(paramsOrFirst, ...rest) {
2405
+ let params;
2406
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2407
+ params = paramsOrFirst || {};
2408
+ } else {
2409
+ params = {
2410
+ categoryId: paramsOrFirst,
2411
+ productId: rest[0],
2412
+ position: rest[1]
2413
+ };
2414
+ }
2415
+ const categoryId = params.categoryId;
2416
+ const productId = params.productId;
2417
+ const position = params.position;
2418
+ if (typeof categoryId === "undefined") {
2419
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "categoryId"');
2420
+ }
2421
+ if (typeof productId === "undefined") {
2422
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "productId"');
2423
+ }
2424
+ const apiPath = "/v1/products/product_categories";
2425
+ const apiPayload = {};
2426
+ if (typeof categoryId !== "undefined") {
2427
+ apiPayload["category_id"] = categoryId;
2428
+ }
2429
+ if (typeof position !== "undefined") {
2430
+ apiPayload["position"] = position;
2431
+ }
2432
+ if (typeof productId !== "undefined") {
2433
+ apiPayload["product_id"] = productId;
2434
+ }
2435
+ const uri = new URL(this.client.config.endpoint + apiPath);
2436
+ const apiHeaders = {
2437
+ "content-type": "application/json"
2438
+ };
2439
+ return this.client.call(
2440
+ "post",
2441
+ uri,
2442
+ apiHeaders,
2443
+ apiPayload
2444
+ );
2445
+ }
2446
+ productsProductCategoriesDelete(paramsOrFirst) {
2447
+ let params;
2448
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2449
+ params = paramsOrFirst || {};
2450
+ } else {
2451
+ params = {
2452
+ id: paramsOrFirst
2453
+ };
2454
+ }
2455
+ const id = params.id;
2456
+ if (typeof id === "undefined") {
2457
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2458
+ }
2459
+ const apiPath = "/v1/products/product_categories/{id}".replace("{id}", id);
2460
+ const apiPayload = {};
2461
+ const uri = new URL(this.client.config.endpoint + apiPath);
2462
+ const apiHeaders = {};
2463
+ return this.client.call(
2464
+ "delete",
2465
+ uri,
2466
+ apiHeaders,
2467
+ apiPayload
2468
+ );
2469
+ }
2470
+ productsProductCategoriesGet(paramsOrFirst) {
2471
+ let params;
2472
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2473
+ params = paramsOrFirst || {};
2474
+ } else {
2475
+ params = {
2476
+ id: paramsOrFirst
2477
+ };
2478
+ }
2479
+ const id = params.id;
2480
+ if (typeof id === "undefined") {
2481
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2482
+ }
2483
+ const apiPath = "/v1/products/product_categories/{id}".replace("{id}", id);
2484
+ const apiPayload = {};
2485
+ const uri = new URL(this.client.config.endpoint + apiPath);
2486
+ const apiHeaders = {};
2487
+ return this.client.call(
2488
+ "get",
2489
+ uri,
2490
+ apiHeaders,
2491
+ apiPayload
2492
+ );
2493
+ }
2494
+ productsProductCategoriesUpdate(paramsOrFirst, ...rest) {
2495
+ let params;
2496
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2497
+ params = paramsOrFirst || {};
2498
+ } else {
2499
+ params = {
2500
+ id: paramsOrFirst,
2501
+ categoryId: rest[0],
2502
+ position: rest[1],
2503
+ productId: rest[2]
2504
+ };
2505
+ }
2506
+ const id = params.id;
2507
+ const categoryId = params.categoryId;
2508
+ const position = params.position;
2509
+ const productId = params.productId;
2510
+ if (typeof id === "undefined") {
2511
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2512
+ }
2513
+ const apiPath = "/v1/products/product_categories/{id}".replace("{id}", id);
2514
+ const apiPayload = {};
2515
+ if (typeof categoryId !== "undefined") {
2516
+ apiPayload["category_id"] = categoryId;
2517
+ }
2518
+ if (typeof position !== "undefined") {
2519
+ apiPayload["position"] = position;
2520
+ }
2521
+ if (typeof productId !== "undefined") {
2522
+ apiPayload["product_id"] = productId;
2523
+ }
2524
+ const uri = new URL(this.client.config.endpoint + apiPath);
2525
+ const apiHeaders = {
2526
+ "content-type": "application/json"
2527
+ };
2528
+ return this.client.call(
2529
+ "put",
2530
+ uri,
2531
+ apiHeaders,
2532
+ apiPayload
2533
+ );
2534
+ }
2535
+ productsReferenceEntitiesList(paramsOrFirst, ...rest) {
2536
+ let params;
2537
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2538
+ params = paramsOrFirst || {};
2539
+ } else {
2540
+ params = {
2541
+ limit: paramsOrFirst,
2542
+ offset: rest[0],
2543
+ order: rest[1]
2544
+ };
2545
+ }
2546
+ const limit = params.limit;
2547
+ const offset = params.offset;
2548
+ const order = params.order;
2549
+ const apiPath = "/v1/products/reference_entities";
2550
+ const apiPayload = {};
2551
+ if (typeof limit !== "undefined") {
2552
+ apiPayload["limit"] = limit;
2553
+ }
2554
+ if (typeof offset !== "undefined") {
2555
+ apiPayload["offset"] = offset;
2556
+ }
2557
+ if (typeof order !== "undefined") {
2558
+ apiPayload["order"] = order;
2559
+ }
2560
+ const uri = new URL(this.client.config.endpoint + apiPath);
2561
+ const apiHeaders = {};
2562
+ return this.client.call(
2563
+ "get",
2564
+ uri,
2565
+ apiHeaders,
2566
+ apiPayload
2567
+ );
2568
+ }
2569
+ productsReferenceEntitiesCreate(paramsOrFirst, ...rest) {
2570
+ let params;
2571
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2572
+ params = paramsOrFirst || {};
2573
+ } else {
2574
+ params = {
2575
+ code: paramsOrFirst,
2576
+ image: rest[0],
2577
+ labels: rest[1]
2578
+ };
2579
+ }
2580
+ const code = params.code;
2581
+ const image = params.image;
2582
+ const labels = params.labels;
2583
+ if (typeof code === "undefined") {
2584
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
2585
+ }
2586
+ const apiPath = "/v1/products/reference_entities";
2587
+ const apiPayload = {};
2588
+ if (typeof code !== "undefined") {
2589
+ apiPayload["code"] = code;
2590
+ }
2591
+ if (typeof image !== "undefined") {
2592
+ apiPayload["image"] = image;
2593
+ }
2594
+ if (typeof labels !== "undefined") {
2595
+ apiPayload["labels"] = labels;
2596
+ }
2597
+ const uri = new URL(this.client.config.endpoint + apiPath);
2598
+ const apiHeaders = {
2599
+ "content-type": "application/json"
2600
+ };
2601
+ return this.client.call(
2602
+ "post",
2603
+ uri,
2604
+ apiHeaders,
2605
+ apiPayload
2606
+ );
2607
+ }
2608
+ productsReferenceEntitiesDelete(paramsOrFirst) {
2609
+ let params;
2610
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2611
+ params = paramsOrFirst || {};
2612
+ } else {
2613
+ params = {
2614
+ id: paramsOrFirst
2615
+ };
2616
+ }
2617
+ const id = params.id;
2618
+ if (typeof id === "undefined") {
2619
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2620
+ }
2621
+ const apiPath = "/v1/products/reference_entities/{id}".replace("{id}", id);
2622
+ const apiPayload = {};
2623
+ const uri = new URL(this.client.config.endpoint + apiPath);
2624
+ const apiHeaders = {};
2625
+ return this.client.call(
2626
+ "delete",
2627
+ uri,
2628
+ apiHeaders,
2629
+ apiPayload
2630
+ );
2631
+ }
2632
+ productsReferenceEntitiesGet(paramsOrFirst) {
2633
+ let params;
2634
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2635
+ params = paramsOrFirst || {};
2636
+ } else {
2637
+ params = {
2638
+ id: paramsOrFirst
2639
+ };
2640
+ }
2641
+ const id = params.id;
2642
+ if (typeof id === "undefined") {
2643
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2644
+ }
2645
+ const apiPath = "/v1/products/reference_entities/{id}".replace("{id}", id);
2646
+ const apiPayload = {};
2647
+ const uri = new URL(this.client.config.endpoint + apiPath);
2648
+ const apiHeaders = {};
2649
+ return this.client.call(
2650
+ "get",
2651
+ uri,
2652
+ apiHeaders,
2653
+ apiPayload
2654
+ );
2655
+ }
2656
+ productsReferenceEntitiesUpdate(paramsOrFirst, ...rest) {
2657
+ let params;
2658
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2659
+ params = paramsOrFirst || {};
2660
+ } else {
2661
+ params = {
2662
+ id: paramsOrFirst,
2663
+ code: rest[0],
2664
+ image: rest[1],
2665
+ labels: rest[2]
2666
+ };
2667
+ }
2668
+ const id = params.id;
2669
+ const code = params.code;
2670
+ const image = params.image;
2671
+ const labels = params.labels;
2672
+ if (typeof id === "undefined") {
2673
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2674
+ }
2675
+ const apiPath = "/v1/products/reference_entities/{id}".replace("{id}", id);
2676
+ const apiPayload = {};
2677
+ if (typeof code !== "undefined") {
2678
+ apiPayload["code"] = code;
2679
+ }
2680
+ if (typeof image !== "undefined") {
2681
+ apiPayload["image"] = image;
2682
+ }
2683
+ if (typeof labels !== "undefined") {
2684
+ apiPayload["labels"] = labels;
2685
+ }
2686
+ const uri = new URL(this.client.config.endpoint + apiPath);
2687
+ const apiHeaders = {
2688
+ "content-type": "application/json"
2689
+ };
2690
+ return this.client.call(
2691
+ "put",
2692
+ uri,
2693
+ apiHeaders,
2694
+ apiPayload
2695
+ );
2696
+ }
2697
+ productsReferenceEntityRecordsList(paramsOrFirst, ...rest) {
2698
+ let params;
2699
+ if (!paramsOrFirst || paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2700
+ params = paramsOrFirst || {};
2701
+ } else {
2702
+ params = {
2703
+ limit: paramsOrFirst,
2704
+ offset: rest[0],
2705
+ order: rest[1]
2706
+ };
2707
+ }
2708
+ const limit = params.limit;
2709
+ const offset = params.offset;
2710
+ const order = params.order;
2711
+ const apiPath = "/v1/products/reference_entity_records";
2712
+ const apiPayload = {};
2713
+ if (typeof limit !== "undefined") {
2714
+ apiPayload["limit"] = limit;
2715
+ }
2716
+ if (typeof offset !== "undefined") {
2717
+ apiPayload["offset"] = offset;
2718
+ }
2719
+ if (typeof order !== "undefined") {
2720
+ apiPayload["order"] = order;
2721
+ }
2722
+ const uri = new URL(this.client.config.endpoint + apiPath);
2723
+ const apiHeaders = {};
2724
+ return this.client.call(
2725
+ "get",
2726
+ uri,
2727
+ apiHeaders,
2728
+ apiPayload
2729
+ );
2730
+ }
2731
+ productsReferenceEntityRecordsCreate(paramsOrFirst, ...rest) {
2732
+ let params;
2733
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2734
+ params = paramsOrFirst || {};
2735
+ } else {
2736
+ params = {
2737
+ code: paramsOrFirst,
2738
+ referenceEntityId: rest[0],
2739
+ attributeValues: rest[1],
2740
+ labels: rest[2]
2741
+ };
2742
+ }
2743
+ const code = params.code;
2744
+ const referenceEntityId = params.referenceEntityId;
2745
+ const attributeValues = params.attributeValues;
2746
+ const labels = params.labels;
2747
+ if (typeof code === "undefined") {
2748
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "code"');
2749
+ }
2750
+ if (typeof referenceEntityId === "undefined") {
2751
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "referenceEntityId"');
2752
+ }
2753
+ const apiPath = "/v1/products/reference_entity_records";
2754
+ const apiPayload = {};
2755
+ if (typeof attributeValues !== "undefined") {
2756
+ apiPayload["attribute_values"] = attributeValues;
2757
+ }
2758
+ if (typeof code !== "undefined") {
2759
+ apiPayload["code"] = code;
2760
+ }
2761
+ if (typeof labels !== "undefined") {
2762
+ apiPayload["labels"] = labels;
2763
+ }
2764
+ if (typeof referenceEntityId !== "undefined") {
2765
+ apiPayload["reference_entity_id"] = referenceEntityId;
2766
+ }
2767
+ const uri = new URL(this.client.config.endpoint + apiPath);
2768
+ const apiHeaders = {
2769
+ "content-type": "application/json"
2770
+ };
2771
+ return this.client.call(
2772
+ "post",
2773
+ uri,
2774
+ apiHeaders,
2775
+ apiPayload
2776
+ );
2777
+ }
2778
+ productsReferenceEntityRecordsDelete(paramsOrFirst) {
2779
+ let params;
2780
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2781
+ params = paramsOrFirst || {};
2782
+ } else {
2783
+ params = {
2784
+ id: paramsOrFirst
2785
+ };
2786
+ }
2787
+ const id = params.id;
2788
+ if (typeof id === "undefined") {
2789
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2790
+ }
2791
+ const apiPath = "/v1/products/reference_entity_records/{id}".replace("{id}", id);
2792
+ const apiPayload = {};
2793
+ const uri = new URL(this.client.config.endpoint + apiPath);
2794
+ const apiHeaders = {};
2795
+ return this.client.call(
2796
+ "delete",
2797
+ uri,
2798
+ apiHeaders,
2799
+ apiPayload
2800
+ );
2801
+ }
2802
+ productsReferenceEntityRecordsGet(paramsOrFirst) {
2803
+ let params;
2804
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2805
+ params = paramsOrFirst || {};
2806
+ } else {
2807
+ params = {
2808
+ id: paramsOrFirst
2809
+ };
2810
+ }
2811
+ const id = params.id;
2812
+ if (typeof id === "undefined") {
2813
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2814
+ }
2815
+ const apiPath = "/v1/products/reference_entity_records/{id}".replace("{id}", id);
2816
+ const apiPayload = {};
2817
+ const uri = new URL(this.client.config.endpoint + apiPath);
2818
+ const apiHeaders = {};
2819
+ return this.client.call(
2820
+ "get",
2821
+ uri,
2822
+ apiHeaders,
2823
+ apiPayload
2824
+ );
2825
+ }
2826
+ productsReferenceEntityRecordsUpdate(paramsOrFirst, ...rest) {
2827
+ let params;
2828
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2829
+ params = paramsOrFirst || {};
2830
+ } else {
2831
+ params = {
2832
+ id: paramsOrFirst,
2833
+ attributeValues: rest[0],
2834
+ code: rest[1],
2835
+ labels: rest[2],
2836
+ referenceEntityId: rest[3]
2837
+ };
2838
+ }
2839
+ const id = params.id;
2840
+ const attributeValues = params.attributeValues;
2841
+ const code = params.code;
2842
+ const labels = params.labels;
2843
+ const referenceEntityId = params.referenceEntityId;
2844
+ if (typeof id === "undefined") {
2845
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2846
+ }
2847
+ const apiPath = "/v1/products/reference_entity_records/{id}".replace("{id}", id);
2848
+ const apiPayload = {};
2849
+ if (typeof attributeValues !== "undefined") {
2850
+ apiPayload["attribute_values"] = attributeValues;
2851
+ }
2852
+ if (typeof code !== "undefined") {
2853
+ apiPayload["code"] = code;
2854
+ }
2855
+ if (typeof labels !== "undefined") {
2856
+ apiPayload["labels"] = labels;
2857
+ }
2858
+ if (typeof referenceEntityId !== "undefined") {
2859
+ apiPayload["reference_entity_id"] = referenceEntityId;
2860
+ }
2861
+ const uri = new URL(this.client.config.endpoint + apiPath);
2862
+ const apiHeaders = {
2863
+ "content-type": "application/json"
2864
+ };
2865
+ return this.client.call(
2866
+ "put",
2867
+ uri,
2868
+ apiHeaders,
2869
+ apiPayload
2870
+ );
2871
+ }
2872
+ productsDelete(paramsOrFirst) {
2873
+ let params;
2874
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2875
+ params = paramsOrFirst || {};
2876
+ } else {
2877
+ params = {
2878
+ id: paramsOrFirst
2879
+ };
2880
+ }
2881
+ const id = params.id;
2882
+ if (typeof id === "undefined") {
2883
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2884
+ }
2885
+ const apiPath = "/v1/products/{id}".replace("{id}", id);
2886
+ const apiPayload = {};
2887
+ const uri = new URL(this.client.config.endpoint + apiPath);
2888
+ const apiHeaders = {};
2889
+ return this.client.call(
2890
+ "delete",
2891
+ uri,
2892
+ apiHeaders,
2893
+ apiPayload
2894
+ );
2895
+ }
2896
+ productsGet(paramsOrFirst) {
2897
+ let params;
2898
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2899
+ params = paramsOrFirst || {};
2900
+ } else {
2901
+ params = {
2902
+ id: paramsOrFirst
2903
+ };
2904
+ }
2905
+ const id = params.id;
2906
+ if (typeof id === "undefined") {
2907
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2908
+ }
2909
+ const apiPath = "/v1/products/{id}".replace("{id}", id);
2910
+ const apiPayload = {};
2911
+ const uri = new URL(this.client.config.endpoint + apiPath);
2912
+ const apiHeaders = {};
2913
+ return this.client.call(
2914
+ "get",
2915
+ uri,
2916
+ apiHeaders,
2917
+ apiPayload
2918
+ );
2919
+ }
2920
+ productsUpdate(paramsOrFirst, ...rest) {
2921
+ let params;
2922
+ if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
2923
+ params = paramsOrFirst || {};
2924
+ } else {
2925
+ params = {
2926
+ id: paramsOrFirst,
2927
+ attributeValues: rest[0],
2928
+ completeness: rest[1],
2929
+ deletedAt: rest[2],
2930
+ enabled: rest[3],
2931
+ familyId: rest[4],
2932
+ familyVariantId: rest[5],
2933
+ kind: rest[6],
2934
+ parentId: rest[7],
2935
+ quantifiedAssociations: rest[8],
2936
+ sku: rest[9],
2937
+ taxClass: rest[10]
2938
+ };
2939
+ }
2940
+ const id = params.id;
2941
+ const attributeValues = params.attributeValues;
2942
+ const completeness = params.completeness;
2943
+ const deletedAt = params.deletedAt;
2944
+ const enabled = params.enabled;
2945
+ const familyId = params.familyId;
2946
+ const familyVariantId = params.familyVariantId;
2947
+ const kind = params.kind;
2948
+ const parentId = params.parentId;
2949
+ const quantifiedAssociations = params.quantifiedAssociations;
2950
+ const sku = params.sku;
2951
+ const taxClass = params.taxClass;
2952
+ if (typeof id === "undefined") {
2953
+ throw new RevenexxAPIRevenexxException('Missing required parameter: "id"');
2954
+ }
2955
+ const apiPath = "/v1/products/{id}".replace("{id}", id);
2956
+ const apiPayload = {};
2957
+ if (typeof attributeValues !== "undefined") {
2958
+ apiPayload["attribute_values"] = attributeValues;
2959
+ }
2960
+ if (typeof completeness !== "undefined") {
2961
+ apiPayload["completeness"] = completeness;
2962
+ }
2963
+ if (typeof deletedAt !== "undefined") {
2964
+ apiPayload["deleted_at"] = deletedAt;
2965
+ }
2966
+ if (typeof enabled !== "undefined") {
2967
+ apiPayload["enabled"] = enabled;
2968
+ }
2969
+ if (typeof familyId !== "undefined") {
2970
+ apiPayload["family_id"] = familyId;
2971
+ }
2972
+ if (typeof familyVariantId !== "undefined") {
2973
+ apiPayload["family_variant_id"] = familyVariantId;
2974
+ }
2975
+ if (typeof kind !== "undefined") {
2976
+ apiPayload["kind"] = kind;
2977
+ }
2978
+ if (typeof parentId !== "undefined") {
2979
+ apiPayload["parent_id"] = parentId;
2980
+ }
2981
+ if (typeof quantifiedAssociations !== "undefined") {
2982
+ apiPayload["quantified_associations"] = quantifiedAssociations;
2983
+ }
2984
+ if (typeof sku !== "undefined") {
2985
+ apiPayload["sku"] = sku;
2986
+ }
2987
+ if (typeof taxClass !== "undefined") {
2988
+ apiPayload["tax_class"] = taxClass;
2989
+ }
2990
+ const uri = new URL(this.client.config.endpoint + apiPath);
2991
+ const apiHeaders = {
2992
+ "content-type": "application/json"
2993
+ };
2994
+ return this.client.call(
2995
+ "put",
2996
+ uri,
2997
+ apiHeaders,
2998
+ apiPayload
2999
+ );
3000
+ }
3001
+ };
3002
+
3003
+ export { Products };
3004
+ //# sourceMappingURL=out.js.map
3005
+ //# sourceMappingURL=products.mjs.map