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