@revenexx/node 0.1.0 → 0.1.1

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 (342) hide show
  1. package/README.md +3 -0
  2. package/dist/client.d.mts +25 -0
  3. package/dist/client.d.ts +25 -0
  4. package/dist/client.js +39 -18
  5. package/dist/client.js.map +1 -1
  6. package/dist/client.mjs +35 -14
  7. package/dist/client.mjs.map +1 -1
  8. package/dist/enums/approval-rule-approver-type.d.mts +7 -0
  9. package/dist/enums/approval-rule-approver-type.d.ts +7 -0
  10. package/dist/enums/approval-rule-approver-type.js +12 -0
  11. package/dist/enums/approval-rule-approver-type.js.map +1 -0
  12. package/dist/enums/approval-rule-approver-type.mjs +11 -0
  13. package/dist/enums/approval-rule-approver-type.mjs.map +1 -0
  14. package/dist/enums/approval-rule-condition.d.mts +10 -0
  15. package/dist/enums/approval-rule-condition.d.ts +10 -0
  16. package/dist/enums/approval-rule-condition.js +15 -0
  17. package/dist/enums/approval-rule-condition.js.map +1 -0
  18. package/dist/enums/approval-rule-condition.mjs +14 -0
  19. package/dist/enums/approval-rule-condition.mjs.map +1 -0
  20. package/dist/enums/approval-rule-create-request-approver-type.d.mts +7 -0
  21. package/dist/enums/approval-rule-create-request-approver-type.d.ts +7 -0
  22. package/dist/enums/approval-rule-create-request-approver-type.js +12 -0
  23. package/dist/enums/approval-rule-create-request-approver-type.js.map +1 -0
  24. package/dist/enums/approval-rule-create-request-approver-type.mjs +11 -0
  25. package/dist/enums/approval-rule-create-request-approver-type.mjs.map +1 -0
  26. package/dist/enums/approval-rule-create-request-condition.d.mts +10 -0
  27. package/dist/enums/approval-rule-create-request-condition.d.ts +10 -0
  28. package/dist/enums/approval-rule-create-request-condition.js +15 -0
  29. package/dist/enums/approval-rule-create-request-condition.js.map +1 -0
  30. package/dist/enums/approval-rule-create-request-condition.mjs +14 -0
  31. package/dist/enums/approval-rule-create-request-condition.mjs.map +1 -0
  32. package/dist/enums/approval-rule-create-request-effect.d.mts +7 -0
  33. package/dist/enums/approval-rule-create-request-effect.d.ts +7 -0
  34. package/dist/enums/approval-rule-create-request-effect.js +12 -0
  35. package/dist/enums/approval-rule-create-request-effect.js.map +1 -0
  36. package/dist/enums/approval-rule-create-request-effect.mjs +11 -0
  37. package/dist/enums/approval-rule-create-request-effect.mjs.map +1 -0
  38. package/dist/enums/approval-rule-effect.d.mts +7 -0
  39. package/dist/enums/approval-rule-effect.d.ts +7 -0
  40. package/dist/enums/approval-rule-effect.js +12 -0
  41. package/dist/enums/approval-rule-effect.js.map +1 -0
  42. package/dist/enums/approval-rule-effect.mjs +11 -0
  43. package/dist/enums/approval-rule-effect.mjs.map +1 -0
  44. package/dist/enums/approval-rule-update-request-approver-type.d.mts +7 -0
  45. package/dist/enums/approval-rule-update-request-approver-type.d.ts +7 -0
  46. package/dist/enums/approval-rule-update-request-approver-type.js +12 -0
  47. package/dist/enums/approval-rule-update-request-approver-type.js.map +1 -0
  48. package/dist/enums/approval-rule-update-request-approver-type.mjs +11 -0
  49. package/dist/enums/approval-rule-update-request-approver-type.mjs.map +1 -0
  50. package/dist/enums/approval-rule-update-request-condition.d.mts +10 -0
  51. package/dist/enums/approval-rule-update-request-condition.d.ts +10 -0
  52. package/dist/enums/approval-rule-update-request-condition.js +15 -0
  53. package/dist/enums/approval-rule-update-request-condition.js.map +1 -0
  54. package/dist/enums/approval-rule-update-request-condition.mjs +14 -0
  55. package/dist/enums/approval-rule-update-request-condition.mjs.map +1 -0
  56. package/dist/enums/approval-rule-update-request-effect.d.mts +7 -0
  57. package/dist/enums/approval-rule-update-request-effect.d.ts +7 -0
  58. package/dist/enums/approval-rule-update-request-effect.js +12 -0
  59. package/dist/enums/approval-rule-update-request-effect.js.map +1 -0
  60. package/dist/enums/approval-rule-update-request-effect.mjs +11 -0
  61. package/dist/enums/approval-rule-update-request-effect.mjs.map +1 -0
  62. package/dist/enums/approver-type.d.mts +7 -0
  63. package/dist/enums/approver-type.d.ts +7 -0
  64. package/dist/enums/approver-type.js +12 -0
  65. package/dist/enums/approver-type.js.map +1 -0
  66. package/dist/enums/approver-type.mjs +11 -0
  67. package/dist/enums/approver-type.mjs.map +1 -0
  68. package/dist/enums/condition.d.mts +10 -0
  69. package/dist/enums/condition.d.ts +10 -0
  70. package/dist/enums/condition.js +15 -0
  71. package/dist/enums/condition.js.map +1 -0
  72. package/dist/enums/condition.mjs +14 -0
  73. package/dist/enums/condition.mjs.map +1 -0
  74. package/dist/enums/effect.d.mts +7 -0
  75. package/dist/enums/effect.d.ts +7 -0
  76. package/dist/enums/effect.js +12 -0
  77. package/dist/enums/effect.js.map +1 -0
  78. package/dist/enums/effect.mjs +11 -0
  79. package/dist/enums/effect.mjs.map +1 -0
  80. package/dist/enums/pending-approval-approver-type.d.mts +7 -0
  81. package/dist/enums/pending-approval-approver-type.d.ts +7 -0
  82. package/dist/enums/pending-approval-approver-type.js +12 -0
  83. package/dist/enums/pending-approval-approver-type.js.map +1 -0
  84. package/dist/enums/pending-approval-approver-type.mjs +11 -0
  85. package/dist/enums/pending-approval-approver-type.mjs.map +1 -0
  86. package/dist/enums/pending-approval-status.d.mts +7 -0
  87. package/dist/enums/pending-approval-status.d.ts +7 -0
  88. package/dist/enums/pending-approval-status.js +12 -0
  89. package/dist/enums/pending-approval-status.js.map +1 -0
  90. package/dist/enums/pending-approval-status.mjs +11 -0
  91. package/dist/enums/pending-approval-status.mjs.map +1 -0
  92. package/dist/enums/procurement-purchase-request-items-create-type.d.mts +7 -0
  93. package/dist/enums/procurement-purchase-request-items-create-type.d.ts +7 -0
  94. package/dist/enums/procurement-purchase-request-items-create-type.js +12 -0
  95. package/dist/enums/procurement-purchase-request-items-create-type.js.map +1 -0
  96. package/dist/enums/procurement-purchase-request-items-create-type.mjs +11 -0
  97. package/dist/enums/procurement-purchase-request-items-create-type.mjs.map +1 -0
  98. package/dist/enums/purchase-request-event-name.d.mts +12 -0
  99. package/dist/enums/purchase-request-event-name.d.ts +12 -0
  100. package/dist/enums/purchase-request-event-name.js +17 -0
  101. package/dist/enums/purchase-request-event-name.js.map +1 -0
  102. package/dist/enums/purchase-request-event-name.mjs +16 -0
  103. package/dist/enums/purchase-request-event-name.mjs.map +1 -0
  104. package/dist/enums/purchase-request-item-create-request-type.d.mts +7 -0
  105. package/dist/enums/purchase-request-item-create-request-type.d.ts +7 -0
  106. package/dist/enums/purchase-request-item-create-request-type.js +12 -0
  107. package/dist/enums/purchase-request-item-create-request-type.js.map +1 -0
  108. package/dist/enums/purchase-request-item-create-request-type.mjs +11 -0
  109. package/dist/enums/purchase-request-item-create-request-type.mjs.map +1 -0
  110. package/dist/enums/purchase-request-item-type.d.mts +7 -0
  111. package/dist/enums/purchase-request-item-type.d.ts +7 -0
  112. package/dist/enums/purchase-request-item-type.js +12 -0
  113. package/dist/enums/purchase-request-item-type.js.map +1 -0
  114. package/dist/enums/purchase-request-item-type.mjs +11 -0
  115. package/dist/enums/purchase-request-item-type.mjs.map +1 -0
  116. package/dist/enums/purchase-request-item-update-request-type.d.mts +7 -0
  117. package/dist/enums/purchase-request-item-update-request-type.d.ts +7 -0
  118. package/dist/enums/purchase-request-item-update-request-type.js +12 -0
  119. package/dist/enums/purchase-request-item-update-request-type.js.map +1 -0
  120. package/dist/enums/purchase-request-item-update-request-type.mjs +11 -0
  121. package/dist/enums/purchase-request-item-update-request-type.mjs.map +1 -0
  122. package/dist/enums/purchase-request-status.d.mts +9 -0
  123. package/dist/enums/purchase-request-status.d.ts +9 -0
  124. package/dist/enums/purchase-request-status.js +14 -0
  125. package/dist/enums/purchase-request-status.js.map +1 -0
  126. package/dist/enums/purchase-request-status.mjs +13 -0
  127. package/dist/enums/purchase-request-status.mjs.map +1 -0
  128. package/dist/enums/submit-item-type.d.mts +7 -0
  129. package/dist/enums/submit-item-type.d.ts +7 -0
  130. package/dist/enums/submit-item-type.js +12 -0
  131. package/dist/enums/submit-item-type.js.map +1 -0
  132. package/dist/enums/submit-item-type.mjs +11 -0
  133. package/dist/enums/submit-item-type.mjs.map +1 -0
  134. package/dist/enums/submit-result-outcome.d.mts +9 -0
  135. package/dist/enums/submit-result-outcome.d.ts +9 -0
  136. package/dist/enums/submit-result-outcome.js +14 -0
  137. package/dist/enums/submit-result-outcome.js.map +1 -0
  138. package/dist/enums/submit-result-outcome.mjs +13 -0
  139. package/dist/enums/submit-result-outcome.mjs.map +1 -0
  140. package/dist/index.d.mts +23 -0
  141. package/dist/index.d.ts +23 -0
  142. package/dist/index.js +115 -0
  143. package/dist/index.js.map +1 -1
  144. package/dist/index.mjs +23 -0
  145. package/dist/index.mjs.map +1 -1
  146. package/dist/inputFile.js +1 -2
  147. package/dist/inputFile.js.map +1 -1
  148. package/dist/inputFile.mjs +0 -1
  149. package/dist/inputFile.mjs.map +1 -1
  150. package/dist/models.d.mts +1027 -36
  151. package/dist/models.d.ts +1027 -36
  152. package/dist/operator.js +243 -204
  153. package/dist/operator.js.map +1 -1
  154. package/dist/operator.mjs +242 -203
  155. package/dist/operator.mjs.map +1 -1
  156. package/dist/permission.js +58 -48
  157. package/dist/permission.js.map +1 -1
  158. package/dist/permission.mjs +58 -48
  159. package/dist/permission.mjs.map +1 -1
  160. package/dist/query.js +525 -422
  161. package/dist/query.js.map +1 -1
  162. package/dist/query.mjs +524 -421
  163. package/dist/query.mjs.map +1 -1
  164. package/dist/services/apps.d.mts +18 -0
  165. package/dist/services/apps.d.ts +18 -0
  166. package/dist/services/avatars.d.mts +18 -0
  167. package/dist/services/avatars.d.ts +18 -0
  168. package/dist/services/carts-io.d.mts +46 -28
  169. package/dist/services/carts-io.d.ts +46 -28
  170. package/dist/services/carts-io.js.map +1 -1
  171. package/dist/services/carts-io.mjs.map +1 -1
  172. package/dist/services/carts-items.d.mts +42 -24
  173. package/dist/services/carts-items.d.ts +42 -24
  174. package/dist/services/carts-items.js.map +1 -1
  175. package/dist/services/carts-items.mjs.map +1 -1
  176. package/dist/services/carts.d.mts +70 -52
  177. package/dist/services/carts.d.ts +70 -52
  178. package/dist/services/carts.js.map +1 -1
  179. package/dist/services/carts.mjs.map +1 -1
  180. package/dist/services/channels.d.mts +64 -46
  181. package/dist/services/channels.d.ts +64 -46
  182. package/dist/services/channels.js +1 -1
  183. package/dist/services/channels.js.map +1 -1
  184. package/dist/services/channels.mjs +1 -1
  185. package/dist/services/channels.mjs.map +1 -1
  186. package/dist/services/cost-centers.d.mts +18 -0
  187. package/dist/services/cost-centers.d.ts +18 -0
  188. package/dist/services/customers-contacts.d.mts +62 -44
  189. package/dist/services/customers-contacts.d.ts +62 -44
  190. package/dist/services/customers-contacts.js.map +1 -1
  191. package/dist/services/customers-contacts.mjs.map +1 -1
  192. package/dist/services/customers-organizations.d.mts +58 -40
  193. package/dist/services/customers-organizations.d.ts +58 -40
  194. package/dist/services/customers-organizations.js.map +1 -1
  195. package/dist/services/customers-organizations.mjs.map +1 -1
  196. package/dist/services/customers-roles.d.mts +26 -8
  197. package/dist/services/customers-roles.d.ts +26 -8
  198. package/dist/services/customers-roles.js.map +1 -1
  199. package/dist/services/customers-roles.mjs.map +1 -1
  200. package/dist/services/customers-segments.d.mts +62 -44
  201. package/dist/services/customers-segments.d.ts +62 -44
  202. package/dist/services/customers-segments.js.map +1 -1
  203. package/dist/services/customers-segments.mjs.map +1 -1
  204. package/dist/services/customers-value-lists.d.mts +90 -72
  205. package/dist/services/customers-value-lists.d.ts +90 -72
  206. package/dist/services/customers-value-lists.js.map +1 -1
  207. package/dist/services/customers-value-lists.mjs.map +1 -1
  208. package/dist/services/customers.d.mts +78 -60
  209. package/dist/services/customers.d.ts +78 -60
  210. package/dist/services/customers.js.map +1 -1
  211. package/dist/services/customers.mjs.map +1 -1
  212. package/dist/services/events.d.mts +18 -0
  213. package/dist/services/events.d.ts +18 -0
  214. package/dist/services/forms.d.mts +66 -48
  215. package/dist/services/forms.d.ts +66 -48
  216. package/dist/services/forms.js.map +1 -1
  217. package/dist/services/forms.mjs.map +1 -1
  218. package/dist/services/health.d.mts +18 -0
  219. package/dist/services/health.d.ts +18 -0
  220. package/dist/services/inventories-locations.d.mts +38 -20
  221. package/dist/services/inventories-locations.d.ts +38 -20
  222. package/dist/services/inventories-locations.js.map +1 -1
  223. package/dist/services/inventories-locations.mjs.map +1 -1
  224. package/dist/services/inventories-reservations.d.mts +38 -20
  225. package/dist/services/inventories-reservations.d.ts +38 -20
  226. package/dist/services/inventories-reservations.js.map +1 -1
  227. package/dist/services/inventories-reservations.mjs.map +1 -1
  228. package/dist/services/inventories-stock.d.mts +70 -52
  229. package/dist/services/inventories-stock.d.ts +70 -52
  230. package/dist/services/inventories-stock.js.map +1 -1
  231. package/dist/services/inventories-stock.mjs.map +1 -1
  232. package/dist/services/io.d.mts +66 -48
  233. package/dist/services/io.d.ts +66 -48
  234. package/dist/services/io.js +2 -2
  235. package/dist/services/io.js.map +1 -1
  236. package/dist/services/io.mjs +2 -2
  237. package/dist/services/io.mjs.map +1 -1
  238. package/dist/services/locale.d.mts +18 -0
  239. package/dist/services/locale.d.ts +18 -0
  240. package/dist/services/markets.d.mts +122 -104
  241. package/dist/services/markets.d.ts +122 -104
  242. package/dist/services/markets.js.map +1 -1
  243. package/dist/services/markets.mjs.map +1 -1
  244. package/dist/services/messaging.d.mts +194 -176
  245. package/dist/services/messaging.d.ts +194 -176
  246. package/dist/services/messaging.js +3 -3
  247. package/dist/services/messaging.js.map +1 -1
  248. package/dist/services/messaging.mjs +3 -3
  249. package/dist/services/messaging.mjs.map +1 -1
  250. package/dist/services/orderlists.d.mts +96 -78
  251. package/dist/services/orderlists.d.ts +96 -78
  252. package/dist/services/orderlists.js +1 -1
  253. package/dist/services/orderlists.js.map +1 -1
  254. package/dist/services/orderlists.mjs +1 -1
  255. package/dist/services/orderlists.mjs.map +1 -1
  256. package/dist/services/orders.d.mts +114 -96
  257. package/dist/services/orders.d.ts +114 -96
  258. package/dist/services/orders.js.map +1 -1
  259. package/dist/services/orders.mjs.map +1 -1
  260. package/dist/services/pages-collaboration.d.mts +34 -16
  261. package/dist/services/pages-collaboration.d.ts +34 -16
  262. package/dist/services/pages-collaboration.js.map +1 -1
  263. package/dist/services/pages-collaboration.mjs.map +1 -1
  264. package/dist/services/pages-delivery.d.mts +26 -8
  265. package/dist/services/pages-delivery.d.ts +26 -8
  266. package/dist/services/pages-delivery.js.map +1 -1
  267. package/dist/services/pages-delivery.mjs.map +1 -1
  268. package/dist/services/pages-editor.d.mts +34 -16
  269. package/dist/services/pages-editor.d.ts +34 -16
  270. package/dist/services/pages-editor.js.map +1 -1
  271. package/dist/services/pages-editor.mjs.map +1 -1
  272. package/dist/services/pages.d.mts +82 -64
  273. package/dist/services/pages.d.ts +82 -64
  274. package/dist/services/pages.js.map +1 -1
  275. package/dist/services/pages.mjs.map +1 -1
  276. package/dist/services/payments-ledger.d.mts +54 -36
  277. package/dist/services/payments-ledger.d.ts +54 -36
  278. package/dist/services/payments-ledger.js.map +1 -1
  279. package/dist/services/payments-ledger.mjs.map +1 -1
  280. package/dist/services/payments-methods.d.mts +34 -16
  281. package/dist/services/payments-methods.d.ts +34 -16
  282. package/dist/services/payments-methods.js.map +1 -1
  283. package/dist/services/payments-methods.mjs.map +1 -1
  284. package/dist/services/payments-providers.d.mts +38 -20
  285. package/dist/services/payments-providers.d.ts +38 -20
  286. package/dist/services/payments-providers.js.map +1 -1
  287. package/dist/services/payments-providers.mjs.map +1 -1
  288. package/dist/services/prices.d.mts +86 -68
  289. package/dist/services/prices.d.ts +86 -68
  290. package/dist/services/prices.js.map +1 -1
  291. package/dist/services/prices.mjs.map +1 -1
  292. package/dist/services/procurement.d.mts +991 -0
  293. package/dist/services/procurement.d.ts +991 -0
  294. package/dist/services/procurement.js +1185 -0
  295. package/dist/services/procurement.js.map +1 -0
  296. package/dist/services/procurement.mjs +1184 -0
  297. package/dist/services/procurement.mjs.map +1 -0
  298. package/dist/services/products-assets.d.mts +34 -16
  299. package/dist/services/products-assets.d.ts +34 -16
  300. package/dist/services/products-assets.js.map +1 -1
  301. package/dist/services/products-assets.mjs.map +1 -1
  302. package/dist/services/products-categories.d.mts +66 -48
  303. package/dist/services/products-categories.d.ts +66 -48
  304. package/dist/services/products-categories.js.map +1 -1
  305. package/dist/services/products-categories.mjs.map +1 -1
  306. package/dist/services/products-data-model.d.mts +166 -148
  307. package/dist/services/products-data-model.d.ts +166 -148
  308. package/dist/services/products-data-model.js.map +1 -1
  309. package/dist/services/products-data-model.mjs.map +1 -1
  310. package/dist/services/products-references.d.mts +50 -32
  311. package/dist/services/products-references.d.ts +50 -32
  312. package/dist/services/products-references.js.map +1 -1
  313. package/dist/services/products-references.mjs.map +1 -1
  314. package/dist/services/products.d.mts +70 -52
  315. package/dist/services/products.d.ts +70 -52
  316. package/dist/services/products.js.map +1 -1
  317. package/dist/services/products.mjs.map +1 -1
  318. package/dist/services/search.d.mts +40 -22
  319. package/dist/services/search.d.ts +40 -22
  320. package/dist/services/search.js +1 -1
  321. package/dist/services/search.js.map +1 -1
  322. package/dist/services/search.mjs +1 -1
  323. package/dist/services/search.mjs.map +1 -1
  324. package/dist/services/settings.d.mts +18 -0
  325. package/dist/services/settings.d.ts +18 -0
  326. package/dist/services/shipping-carriers.d.mts +42 -24
  327. package/dist/services/shipping-carriers.d.ts +42 -24
  328. package/dist/services/shipping-carriers.js.map +1 -1
  329. package/dist/services/shipping-carriers.mjs.map +1 -1
  330. package/dist/services/shipping-methods.d.mts +70 -52
  331. package/dist/services/shipping-methods.d.ts +70 -52
  332. package/dist/services/shipping-methods.js.map +1 -1
  333. package/dist/services/shipping-methods.mjs.map +1 -1
  334. package/dist/services/shipping-value-lists.d.mts +62 -44
  335. package/dist/services/shipping-value-lists.d.ts +62 -44
  336. package/dist/services/shipping-value-lists.js.map +1 -1
  337. package/dist/services/shipping-value-lists.mjs.map +1 -1
  338. package/dist/services/sites.d.mts +18 -0
  339. package/dist/services/sites.d.ts +18 -0
  340. package/dist/services/storage.d.mts +18 -0
  341. package/dist/services/storage.d.ts +18 -0
  342. package/package.json +6 -3
@@ -1 +1 @@
1
- {"version":3,"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AAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,gBAAgB;AAAA,IACpB;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA,EAmBA,kBACI,eACqB;AACrB,QAAI;AAEJ,QAAK,iBAAiB,OAAO,kBAAkB,YAAY,CAAC,MAAM,QAAQ,aAAa,KAAM,cAAc,eAAiB;AACxH,eAAU,iBAAiB,CAAC;AAAA,IAChC,OAAO;AACH,eAAS;AAAA,QACL,UAAU;AAAA,MACd;AAAA,IACJ;AAEA,UAAM,WAAW,OAAO;AAExB,QAAI,OAAO,aAAa,aAAa;AACjC,YAAM,IAAI,kBAAkB,wCAAwC;AAAA,IACxE;AAEA,UAAM,UAAU;AAChB,UAAM,aAAsB,CAAC;AAC7B,QAAI,OAAO,aAAa,aAAa;AACjC,iBAAW,UAAU,IAAI;AAAA,IAC7B;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,gBAAgB;AAAA,IACpB;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { RevenexxException, Client, type Payload, UploadProgress } from '../client';\nimport type { Models } from '../models';\n\nimport { Collection } from '../enums/collection';\n\nexport class Search {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * The collections the tenant's installed apps have provisioned. Available on the API-gateway-trust path only — a `revx_` key authorises a single collection, so discovery is a gateway concern and a key-authenticated caller gets 403.\n *\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n searchListCollections(): Promise<Models.Error> {\n\n const apiPath = '/v1/search/collections';\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Returns the Typesense collection definition (fields, defaults, document count). Requires the `collections:read` action.\n *\n * @param {Collection} params.collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n searchGetCollection(params: { collection: Collection }): Promise<Models.Error>;\n /**\n * Returns the Typesense collection definition (fields, defaults, document count). Requires the `collections:read` action.\n *\n * @param {Collection} collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n searchGetCollection(collection: Collection): Promise<Models.Error>;\n searchGetCollection(\n paramsOrFirst: { collection: Collection } | Collection \n ): Promise<Models.Error> {\n let params: { collection: Collection };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('collection' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { collection: Collection };\n } else {\n params = {\n collection: paramsOrFirst as Collection \n };\n }\n \n const collection = params.collection;\n\n if (typeof collection === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"collection\"');\n }\n\n const apiPath = '/v1/search/collections/{collection}'.replace('{collection}', collection);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Full-text search within one collection. Typesense search parameters are passed through verbatim as the query string, so parameters not listed here still reach Typesense. Requires the `documents:search` action.\n *\n * @param {Collection} params.collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} params.q - Query text. Use `*` to match everything.\n * @param {string} params.queryBy - Comma-separated fields to search, in weight order.\n * @param {string} params.filterBy - Filter expression, e.g. `in_stock:=true && price:<100`. ANDed with the tenant filter the proxy injects.\n * @param {string} params.sortBy - Sort expression, e.g. `price:desc`.\n * @param {string} params.facetBy - Comma-separated fields to facet on.\n * @param {number} params.maxFacetValues - Facet values to return per field.\n * @param {string} params.groupBy - Comma-separated fields to group results by.\n * @param {string} params.includeFields - Comma-separated document fields to return.\n * @param {string} params.excludeFields - Comma-separated document fields to omit.\n * @param {string} params.highlightFullFields - Comma-separated fields to highlight in full.\n * @param {number} params.numTypos - Typos tolerated per query token.\n * @param {string} params.prefix - Whether the last token is a prefix; per-field when comma-separated.\n * @param {number} params.page - 1-based page number.\n * @param {number} params.perPage - Hits per page.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n searchSearchDocumentsGet(params: { collection: Collection, q?: string, queryBy?: string, filterBy?: string, sortBy?: string, facetBy?: string, maxFacetValues?: number, groupBy?: string, includeFields?: string, excludeFields?: string, highlightFullFields?: string, numTypos?: number, prefix?: string, page?: number, perPage?: number }): Promise<Models.Error>;\n /**\n * Full-text search within one collection. Typesense search parameters are passed through verbatim as the query string, so parameters not listed here still reach Typesense. Requires the `documents:search` action.\n *\n * @param {Collection} collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} q - Query text. Use `*` to match everything.\n * @param {string} queryBy - Comma-separated fields to search, in weight order.\n * @param {string} filterBy - Filter expression, e.g. `in_stock:=true && price:<100`. ANDed with the tenant filter the proxy injects.\n * @param {string} sortBy - Sort expression, e.g. `price:desc`.\n * @param {string} facetBy - Comma-separated fields to facet on.\n * @param {number} maxFacetValues - Facet values to return per field.\n * @param {string} groupBy - Comma-separated fields to group results by.\n * @param {string} includeFields - Comma-separated document fields to return.\n * @param {string} excludeFields - Comma-separated document fields to omit.\n * @param {string} highlightFullFields - Comma-separated fields to highlight in full.\n * @param {number} numTypos - Typos tolerated per query token.\n * @param {string} prefix - Whether the last token is a prefix; per-field when comma-separated.\n * @param {number} page - 1-based page number.\n * @param {number} perPage - Hits per page.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n searchSearchDocumentsGet(collection: Collection, q?: string, queryBy?: string, filterBy?: string, sortBy?: string, facetBy?: string, maxFacetValues?: number, groupBy?: string, includeFields?: string, excludeFields?: string, highlightFullFields?: string, numTypos?: number, prefix?: string, page?: number, perPage?: number): Promise<Models.Error>;\n searchSearchDocumentsGet(\n paramsOrFirst: { collection: Collection, q?: string, queryBy?: string, filterBy?: string, sortBy?: string, facetBy?: string, maxFacetValues?: number, groupBy?: string, includeFields?: string, excludeFields?: string, highlightFullFields?: string, numTypos?: number, prefix?: string, page?: number, perPage?: number } | Collection,\n ...rest: [(string)?, (string)?, (string)?, (string)?, (string)?, (number)?, (string)?, (string)?, (string)?, (string)?, (number)?, (string)?, (number)?, (number)?] \n ): Promise<Models.Error> {\n let params: { collection: Collection, q?: string, queryBy?: string, filterBy?: string, sortBy?: string, facetBy?: string, maxFacetValues?: number, groupBy?: string, includeFields?: string, excludeFields?: string, highlightFullFields?: string, numTypos?: number, prefix?: string, page?: number, perPage?: number };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('collection' in paramsOrFirst || 'q' in paramsOrFirst || 'queryBy' in paramsOrFirst || 'filterBy' in paramsOrFirst || 'sortBy' in paramsOrFirst || 'facetBy' in paramsOrFirst || 'maxFacetValues' in paramsOrFirst || 'groupBy' in paramsOrFirst || 'includeFields' in paramsOrFirst || 'excludeFields' in paramsOrFirst || 'highlightFullFields' in paramsOrFirst || 'numTypos' in paramsOrFirst || 'prefix' in paramsOrFirst || 'page' in paramsOrFirst || 'perPage' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { collection: Collection, q?: string, queryBy?: string, filterBy?: string, sortBy?: string, facetBy?: string, maxFacetValues?: number, groupBy?: string, includeFields?: string, excludeFields?: string, highlightFullFields?: string, numTypos?: number, prefix?: string, page?: number, perPage?: number };\n } else {\n params = {\n collection: paramsOrFirst as Collection,\n q: rest[0] as string,\n queryBy: rest[1] as string,\n filterBy: rest[2] as string,\n sortBy: rest[3] as string,\n facetBy: rest[4] as string,\n maxFacetValues: rest[5] as number,\n groupBy: rest[6] as string,\n includeFields: rest[7] as string,\n excludeFields: rest[8] as string,\n highlightFullFields: rest[9] as string,\n numTypos: rest[10] as number,\n prefix: rest[11] as string,\n page: rest[12] as number,\n perPage: rest[13] as number \n };\n }\n \n const collection = params.collection;\n const q = params.q;\n const queryBy = params.queryBy;\n const filterBy = params.filterBy;\n const sortBy = params.sortBy;\n const facetBy = params.facetBy;\n const maxFacetValues = params.maxFacetValues;\n const groupBy = params.groupBy;\n const includeFields = params.includeFields;\n const excludeFields = params.excludeFields;\n const highlightFullFields = params.highlightFullFields;\n const numTypos = params.numTypos;\n const prefix = params.prefix;\n const page = params.page;\n const perPage = params.perPage;\n\n if (typeof collection === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"collection\"');\n }\n\n const apiPath = '/v1/search/collections/{collection}/documents/search'.replace('{collection}', collection);\n const apiPayload: Payload = {};\n if (typeof q !== 'undefined') {\n apiPayload['q'] = q;\n }\n if (typeof queryBy !== 'undefined') {\n apiPayload['query_by'] = queryBy;\n }\n if (typeof filterBy !== 'undefined') {\n apiPayload['filter_by'] = filterBy;\n }\n if (typeof sortBy !== 'undefined') {\n apiPayload['sort_by'] = sortBy;\n }\n if (typeof facetBy !== 'undefined') {\n apiPayload['facet_by'] = facetBy;\n }\n if (typeof maxFacetValues !== 'undefined') {\n apiPayload['max_facet_values'] = maxFacetValues;\n }\n if (typeof groupBy !== 'undefined') {\n apiPayload['group_by'] = groupBy;\n }\n if (typeof includeFields !== 'undefined') {\n apiPayload['include_fields'] = includeFields;\n }\n if (typeof excludeFields !== 'undefined') {\n apiPayload['exclude_fields'] = excludeFields;\n }\n if (typeof highlightFullFields !== 'undefined') {\n apiPayload['highlight_full_fields'] = highlightFullFields;\n }\n if (typeof numTypos !== 'undefined') {\n apiPayload['num_typos'] = numTypos;\n }\n if (typeof prefix !== 'undefined') {\n apiPayload['prefix'] = prefix;\n }\n if (typeof page !== 'undefined') {\n apiPayload['page'] = page;\n }\n if (typeof perPage !== 'undefined') {\n apiPayload['per_page'] = perPage;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Full-text search within one collection, with the Typesense search parameters in the body. Requires the `documents:search` action.\n *\n * @param {Collection} params.collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} params.excludeFields - Comma-separated document fields to omit.\n * @param {string} params.facetBy - Comma-separated fields to facet on.\n * @param {string} params.filterBy - Filter expression, e.g. `in_stock:=true && price:<100`. ANDed with the tenant filter the proxy injects.\n * @param {string} params.groupBy - Comma-separated fields to group results by.\n * @param {string} params.highlightFullFields - Comma-separated fields to highlight in full.\n * @param {string} params.includeFields - Comma-separated document fields to return.\n * @param {number} params.maxFacetValues - Facet values to return per field.\n * @param {number} params.numTypos - Typos tolerated per query token.\n * @param {number} params.page - 1-based page number.\n * @param {number} params.perPage - Hits per page.\n * @param {string} params.prefix - Whether the last token is a prefix; per-field when comma-separated.\n * @param {string} params.q - Query text. Use `*` to match everything.\n * @param {string} params.queryBy - Comma-separated fields to search, in weight order.\n * @param {string} params.sortBy - Sort expression, e.g. `price:desc`.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n searchSearchDocuments(params: { collection: Collection, excludeFields?: string, facetBy?: string, filterBy?: string, groupBy?: string, highlightFullFields?: string, includeFields?: string, maxFacetValues?: number, numTypos?: number, page?: number, perPage?: number, prefix?: string, q?: string, queryBy?: string, sortBy?: string }): Promise<Models.Error>;\n /**\n * Full-text search within one collection, with the Typesense search parameters in the body. Requires the `documents:search` action.\n *\n * @param {Collection} collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} excludeFields - Comma-separated document fields to omit.\n * @param {string} facetBy - Comma-separated fields to facet on.\n * @param {string} filterBy - Filter expression, e.g. `in_stock:=true && price:<100`. ANDed with the tenant filter the proxy injects.\n * @param {string} groupBy - Comma-separated fields to group results by.\n * @param {string} highlightFullFields - Comma-separated fields to highlight in full.\n * @param {string} includeFields - Comma-separated document fields to return.\n * @param {number} maxFacetValues - Facet values to return per field.\n * @param {number} numTypos - Typos tolerated per query token.\n * @param {number} page - 1-based page number.\n * @param {number} perPage - Hits per page.\n * @param {string} prefix - Whether the last token is a prefix; per-field when comma-separated.\n * @param {string} q - Query text. Use `*` to match everything.\n * @param {string} queryBy - Comma-separated fields to search, in weight order.\n * @param {string} sortBy - Sort expression, e.g. `price:desc`.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n searchSearchDocuments(collection: Collection, excludeFields?: string, facetBy?: string, filterBy?: string, groupBy?: string, highlightFullFields?: string, includeFields?: string, maxFacetValues?: number, numTypos?: number, page?: number, perPage?: number, prefix?: string, q?: string, queryBy?: string, sortBy?: string): Promise<Models.Error>;\n searchSearchDocuments(\n paramsOrFirst: { collection: Collection, excludeFields?: string, facetBy?: string, filterBy?: string, groupBy?: string, highlightFullFields?: string, includeFields?: string, maxFacetValues?: number, numTypos?: number, page?: number, perPage?: number, prefix?: string, q?: string, queryBy?: string, sortBy?: string } | Collection,\n ...rest: [(string)?, (string)?, (string)?, (string)?, (string)?, (string)?, (number)?, (number)?, (number)?, (number)?, (string)?, (string)?, (string)?, (string)?] \n ): Promise<Models.Error> {\n let params: { collection: Collection, excludeFields?: string, facetBy?: string, filterBy?: string, groupBy?: string, highlightFullFields?: string, includeFields?: string, maxFacetValues?: number, numTypos?: number, page?: number, perPage?: number, prefix?: string, q?: string, queryBy?: string, sortBy?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('collection' in paramsOrFirst || 'excludeFields' in paramsOrFirst || 'facetBy' in paramsOrFirst || 'filterBy' in paramsOrFirst || 'groupBy' in paramsOrFirst || 'highlightFullFields' in paramsOrFirst || 'includeFields' in paramsOrFirst || 'maxFacetValues' in paramsOrFirst || 'numTypos' in paramsOrFirst || 'page' in paramsOrFirst || 'perPage' in paramsOrFirst || 'prefix' in paramsOrFirst || 'q' in paramsOrFirst || 'queryBy' in paramsOrFirst || 'sortBy' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { collection: Collection, excludeFields?: string, facetBy?: string, filterBy?: string, groupBy?: string, highlightFullFields?: string, includeFields?: string, maxFacetValues?: number, numTypos?: number, page?: number, perPage?: number, prefix?: string, q?: string, queryBy?: string, sortBy?: string };\n } else {\n params = {\n collection: paramsOrFirst as Collection,\n excludeFields: rest[0] as string,\n facetBy: rest[1] as string,\n filterBy: rest[2] as string,\n groupBy: rest[3] as string,\n highlightFullFields: rest[4] as string,\n includeFields: rest[5] as string,\n maxFacetValues: rest[6] as number,\n numTypos: rest[7] as number,\n page: rest[8] as number,\n perPage: rest[9] as number,\n prefix: rest[10] as string,\n q: rest[11] as string,\n queryBy: rest[12] as string,\n sortBy: rest[13] as string \n };\n }\n \n const collection = params.collection;\n const excludeFields = params.excludeFields;\n const facetBy = params.facetBy;\n const filterBy = params.filterBy;\n const groupBy = params.groupBy;\n const highlightFullFields = params.highlightFullFields;\n const includeFields = params.includeFields;\n const maxFacetValues = params.maxFacetValues;\n const numTypos = params.numTypos;\n const page = params.page;\n const perPage = params.perPage;\n const prefix = params.prefix;\n const q = params.q;\n const queryBy = params.queryBy;\n const sortBy = params.sortBy;\n\n if (typeof collection === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"collection\"');\n }\n\n const apiPath = '/v1/search/collections/{collection}/documents/search'.replace('{collection}', collection);\n const apiPayload: Payload = {};\n if (typeof excludeFields !== 'undefined') {\n apiPayload['exclude_fields'] = excludeFields;\n }\n if (typeof facetBy !== 'undefined') {\n apiPayload['facet_by'] = facetBy;\n }\n if (typeof filterBy !== 'undefined') {\n apiPayload['filter_by'] = filterBy;\n }\n if (typeof groupBy !== 'undefined') {\n apiPayload['group_by'] = groupBy;\n }\n if (typeof highlightFullFields !== 'undefined') {\n apiPayload['highlight_full_fields'] = highlightFullFields;\n }\n if (typeof includeFields !== 'undefined') {\n apiPayload['include_fields'] = includeFields;\n }\n if (typeof maxFacetValues !== 'undefined') {\n apiPayload['max_facet_values'] = maxFacetValues;\n }\n if (typeof numTypos !== 'undefined') {\n apiPayload['num_typos'] = numTypos;\n }\n if (typeof page !== 'undefined') {\n apiPayload['page'] = page;\n }\n if (typeof perPage !== 'undefined') {\n apiPayload['per_page'] = perPage;\n }\n if (typeof prefix !== 'undefined') {\n apiPayload['prefix'] = prefix;\n }\n if (typeof q !== 'undefined') {\n apiPayload['q'] = q;\n }\n if (typeof queryBy !== 'undefined') {\n apiPayload['query_by'] = queryBy;\n }\n if (typeof sortBy !== 'undefined') {\n apiPayload['sort_by'] = sortBy;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Fetch a single document by id. The document shape is the collection's own schema, so it is described as a free-form object. Requires the `documents:get` action.\n *\n * @param {Collection} params.collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} params.documentId - The document's `id` within the collection.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n searchGetDocument(params: { collection: Collection, documentId: string }): Promise<Models.Error>;\n /**\n * Fetch a single document by id. The document shape is the collection's own schema, so it is described as a free-form object. Requires the `documents:get` action.\n *\n * @param {Collection} collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} documentId - The document's `id` within the collection.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n searchGetDocument(collection: Collection, documentId: string): Promise<Models.Error>;\n searchGetDocument(\n paramsOrFirst: { collection: Collection, documentId: string } | Collection,\n ...rest: [(string)?] \n ): Promise<Models.Error> {\n let params: { collection: Collection, documentId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('collection' in paramsOrFirst || 'documentId' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { collection: Collection, documentId: string };\n } else {\n params = {\n collection: paramsOrFirst as Collection,\n documentId: rest[0] as string \n };\n }\n \n const collection = params.collection;\n const documentId = params.documentId;\n\n if (typeof collection === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"collection\"');\n }\n if (typeof documentId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"documentId\"');\n }\n\n const apiPath = '/v1/search/collections/{collection}/documents/{documentId}'.replace('{collection}', collection).replace('{documentId}', documentId);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Idempotent, and bounded by the tenant's own configuration: it can add\n * no field for an attribute the tenant has not marked `is_filterable`,\n * and drops only fields whose attribute it has itself un-marked. A run\n * that changes nothing makes zero calls to Typesense.\n * \n * Body (optional) narrows the sweep to one app:\n * \n * {\"vendor\": \"revenexx\", \"app\": \"products\"}\n * \n * Omitted, every app the tenant has installed is swept. Apps outside the\n * facet-sync allowlist are included in the response with\n * `skipped: app_not_enabled` rather than silently dropped — a caller\n * asking for an app that cannot have facets deserves to be told so.\n * \n * The response shape below is DECLARED rather than inferred. Its entries\n * are built by spreading AttributeFacetSyncer::syncForCollection()'s\n * summary, and the generator cannot see through an array spread: left to\n * itself it emits an unnamed property and a null in `required`, which\n * Spectral rejects as `\"1\" property must be string`.\n * AppController::resyncFacets() carries the same declaration for the same\n * reason — keep both in step with syncForApp()'s return type.\n *\n * @param {string} params.app - \n * @param {string} params.vendor - \n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n gatewayFacetResync(params?: { app?: string, vendor?: string }): Promise<{}>;\n /**\n * Idempotent, and bounded by the tenant's own configuration: it can add\n * no field for an attribute the tenant has not marked `is_filterable`,\n * and drops only fields whose attribute it has itself un-marked. A run\n * that changes nothing makes zero calls to Typesense.\n * \n * Body (optional) narrows the sweep to one app:\n * \n * {\"vendor\": \"revenexx\", \"app\": \"products\"}\n * \n * Omitted, every app the tenant has installed is swept. Apps outside the\n * facet-sync allowlist are included in the response with\n * `skipped: app_not_enabled` rather than silently dropped — a caller\n * asking for an app that cannot have facets deserves to be told so.\n * \n * The response shape below is DECLARED rather than inferred. Its entries\n * are built by spreading AttributeFacetSyncer::syncForCollection()'s\n * summary, and the generator cannot see through an array spread: left to\n * itself it emits an unnamed property and a null in `required`, which\n * Spectral rejects as `\"1\" property must be string`.\n * AppController::resyncFacets() carries the same declaration for the same\n * reason — keep both in step with syncForApp()'s return type.\n *\n * @param {string} app - \n * @param {string} vendor - \n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n gatewayFacetResync(app?: string, vendor?: string): Promise<{}>;\n gatewayFacetResync(\n paramsOrFirst?: { app?: string, vendor?: string } | string,\n ...rest: [(string)?] \n ): Promise<{}> {\n let params: { app?: string, vendor?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { app?: string, vendor?: string };\n } else {\n params = {\n app: paramsOrFirst as string,\n vendor: rest[0] as string \n };\n }\n \n const app = params.app;\n const vendor = params.vendor;\n\n\n const apiPath = '/v1/search/facets/resync';\n const apiPayload: Payload = {};\n if (typeof app !== 'undefined') {\n apiPayload['app'] = app;\n }\n if (typeof vendor !== 'undefined') {\n apiPayload['vendor'] = vendor;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Run several searches in one round trip — the endpoint the typesense-js `multiSearch` helper and the InstantSearch adapter use for every query. On the gateway-trust path each entry must name a collection the tenant owns. With a `revx_` key `collection_name` is optional and is forced to the key's own collection. Requires the `documents:search` action.\n *\n * @param {Models.MultiSearchEntry[]} params.searches - The searches to run, in order. Must not be empty.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n */\n searchMultiSearch(params: { searches: Models.MultiSearchEntry[] }): Promise<Models.Error>;\n /**\n * Run several searches in one round trip — the endpoint the typesense-js `multiSearch` helper and the InstantSearch adapter use for every query. On the gateway-trust path each entry must name a collection the tenant owns. With a `revx_` key `collection_name` is optional and is forced to the key's own collection. Requires the `documents:search` action.\n *\n * @param {Models.MultiSearchEntry[]} searches - The searches to run, in order. Must not be empty.\n * @throws {RevenexxException}\n * @returns {Promise<Models.Error>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n searchMultiSearch(searches: Models.MultiSearchEntry[]): Promise<Models.Error>;\n searchMultiSearch(\n paramsOrFirst: { searches: Models.MultiSearchEntry[] } | Models.MultiSearchEntry[] \n ): Promise<Models.Error> {\n let params: { searches: Models.MultiSearchEntry[] };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('searches' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { searches: Models.MultiSearchEntry[] };\n } else {\n params = {\n searches: paramsOrFirst as Models.MultiSearchEntry[] \n };\n }\n \n const searches = params.searches;\n\n if (typeof searches === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"searches\"');\n }\n\n const apiPath = '/v1/search/multi_search';\n const apiPayload: Payload = {};\n if (typeof searches !== 'undefined') {\n apiPayload['searches'] = searches;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["../../src/services/search.ts"],"names":[],"mappings":";AAAA,SAAS,yBAA+D;AAKjE,IAAM,SAAN,MAAa;AAAA,EAGhB,YAAY,QAAgB;AACxB,SAAK,SAAS;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,wBAAwD;AAEpD,UAAM,UAAU;AAChB,UAAM,aAAsB,CAAC;AAC7B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA,EAmBA,oBACI,eACiC;AACjC,QAAI;AAEJ,QAAK,iBAAiB,OAAO,kBAAkB,YAAY,CAAC,MAAM,QAAQ,aAAa,KAAM,gBAAgB,eAAiB;AAC1H,eAAU,iBAAiB,CAAC;AAAA,IAChC,OAAO;AACH,eAAS;AAAA,QACL,YAAY;AAAA,MAChB;AAAA,IACJ;AAEA,UAAM,aAAa,OAAO;AAE1B,QAAI,OAAO,eAAe,aAAa;AACnC,YAAM,IAAI,kBAAkB,0CAA0C;AAAA,IAC1E;AAEA,UAAM,UAAU,sCAAsC,QAAQ,gBAAgB,UAAU;AACxF,UAAM,aAAsB,CAAC;AAC7B,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C,CACjD;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,I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;AACnB,UAAM,SAAS,OAAO;AAGtB,UAAM,UAAU;AAChB,UAAM,aAAsB,CAAC;AAC7B,QAAI,OAAO,QAAQ,aAAa;AAC5B,iBAAW,KAAK,IAAI;AAAA,IACxB;AACA,QAAI,OAAO,WAAW,aAAa;AAC/B,iBAAW,QAAQ,IAAI;AAAA,IAC3B;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,gBAAgB;AAAA,IACpB;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AAAA,EAmBA,kBACI,eACiC;AACjC,QAAI;AAEJ,QAAK,iBAAiB,OAAO,kBAAkB,YAAY,CAAC,MAAM,QAAQ,aAAa,KAAM,cAAc,eAAiB;AACxH,eAAU,iBAAiB,CAAC;AAAA,IAChC,OAAO;AACH,eAAS;AAAA,QACL,UAAU;AAAA,MACd;AAAA,IACJ;AAEA,UAAM,WAAW,OAAO;AAExB,QAAI,OAAO,aAAa,aAAa;AACjC,YAAM,IAAI,kBAAkB,wCAAwC;AAAA,IACxE;AAEA,UAAM,UAAU;AAChB,UAAM,aAAsB,CAAC;AAC7B,QAAI,OAAO,aAAa,aAAa;AACjC,iBAAW,UAAU,IAAI;AAAA,IAC7B;AACA,UAAM,MAAM,IAAI,IAAI,KAAK,OAAO,OAAO,WAAW,OAAO;AAEzD,UAAM,aAA2C;AAAA,MAC7C,gBAAgB;AAAA,IACpB;AAEA,WAAO,KAAK,OAAO;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACJ;AACJ","sourcesContent":["import { RevenexxException, Client, type Payload, UploadProgress } from '../client';\nimport type { Models } from '../models';\n\nimport { Collection } from '../enums/collection';\n\nexport class Search {\n client: Client;\n\n constructor(client: Client) {\n this.client = client;\n }\n\n /**\n * The collections the tenant's installed apps have provisioned. Available on the API-gateway-trust path only — a `revx_` key authorises a single collection, so discovery is a gateway concern and a key-authenticated caller gets 403.\n *\n * @throws {RevenexxException}\n * @returns {Promise<Models.CollectionList>}\n */\n searchListCollections(): Promise<Models.CollectionList> {\n\n const apiPath = '/v1/search/collections';\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Returns the Typesense collection definition (fields, defaults, document count). Requires the `collections:read` action.\n *\n * @param {Collection} params.collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DefaultCollection>}\n */\n searchGetCollection(params: { collection: Collection }): Promise<Models.DefaultCollection>;\n /**\n * Returns the Typesense collection definition (fields, defaults, document count). Requires the `collections:read` action.\n *\n * @param {Collection} collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DefaultCollection>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n searchGetCollection(collection: Collection): Promise<Models.DefaultCollection>;\n searchGetCollection(\n paramsOrFirst: { collection: Collection } | Collection \n ): Promise<Models.DefaultCollection> {\n let params: { collection: Collection };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('collection' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { collection: Collection };\n } else {\n params = {\n collection: paramsOrFirst as Collection \n };\n }\n \n const collection = params.collection;\n\n if (typeof collection === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"collection\"');\n }\n\n const apiPath = '/v1/search/collections/{collection}'.replace('{collection}', collection);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Full-text search within one collection. Typesense search parameters are passed through verbatim as the query string, so parameters not listed here still reach Typesense. Requires the `documents:search` action.\n *\n * @param {Collection} params.collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} params.q - Query text. Use `*` to match everything.\n * @param {string} params.queryBy - Comma-separated fields to search, in weight order.\n * @param {string} params.filterBy - Filter expression, e.g. `in_stock:=true && price:<100`. ANDed with the tenant filter the proxy injects.\n * @param {string} params.sortBy - Sort expression, e.g. `price:desc`.\n * @param {string} params.facetBy - Comma-separated fields to facet on.\n * @param {number} params.maxFacetValues - Facet values to return per field.\n * @param {string} params.groupBy - Comma-separated fields to group results by.\n * @param {string} params.includeFields - Comma-separated document fields to return.\n * @param {string} params.excludeFields - Comma-separated document fields to omit.\n * @param {string} params.highlightFullFields - Comma-separated fields to highlight in full.\n * @param {number} params.numTypos - Typos tolerated per query token.\n * @param {string} params.prefix - Whether the last token is a prefix; per-field when comma-separated.\n * @param {number} params.page - 1-based page number.\n * @param {number} params.perPage - Hits per page.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DefaultSearchResult>}\n */\n searchSearchDocumentsGet(params: { collection: Collection, q?: string, queryBy?: string, filterBy?: string, sortBy?: string, facetBy?: string, maxFacetValues?: number, groupBy?: string, includeFields?: string, excludeFields?: string, highlightFullFields?: string, numTypos?: number, prefix?: string, page?: number, perPage?: number }): Promise<Models.DefaultSearchResult>;\n /**\n * Full-text search within one collection. Typesense search parameters are passed through verbatim as the query string, so parameters not listed here still reach Typesense. Requires the `documents:search` action.\n *\n * @param {Collection} collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} q - Query text. Use `*` to match everything.\n * @param {string} queryBy - Comma-separated fields to search, in weight order.\n * @param {string} filterBy - Filter expression, e.g. `in_stock:=true && price:<100`. ANDed with the tenant filter the proxy injects.\n * @param {string} sortBy - Sort expression, e.g. `price:desc`.\n * @param {string} facetBy - Comma-separated fields to facet on.\n * @param {number} maxFacetValues - Facet values to return per field.\n * @param {string} groupBy - Comma-separated fields to group results by.\n * @param {string} includeFields - Comma-separated document fields to return.\n * @param {string} excludeFields - Comma-separated document fields to omit.\n * @param {string} highlightFullFields - Comma-separated fields to highlight in full.\n * @param {number} numTypos - Typos tolerated per query token.\n * @param {string} prefix - Whether the last token is a prefix; per-field when comma-separated.\n * @param {number} page - 1-based page number.\n * @param {number} perPage - Hits per page.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DefaultSearchResult>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n searchSearchDocumentsGet(collection: Collection, q?: string, queryBy?: string, filterBy?: string, sortBy?: string, facetBy?: string, maxFacetValues?: number, groupBy?: string, includeFields?: string, excludeFields?: string, highlightFullFields?: string, numTypos?: number, prefix?: string, page?: number, perPage?: number): Promise<Models.DefaultSearchResult>;\n searchSearchDocumentsGet(\n paramsOrFirst: { collection: Collection, q?: string, queryBy?: string, filterBy?: string, sortBy?: string, facetBy?: string, maxFacetValues?: number, groupBy?: string, includeFields?: string, excludeFields?: string, highlightFullFields?: string, numTypos?: number, prefix?: string, page?: number, perPage?: number } | Collection,\n ...rest: [(string)?, (string)?, (string)?, (string)?, (string)?, (number)?, (string)?, (string)?, (string)?, (string)?, (number)?, (string)?, (number)?, (number)?] \n ): Promise<Models.DefaultSearchResult> {\n let params: { collection: Collection, q?: string, queryBy?: string, filterBy?: string, sortBy?: string, facetBy?: string, maxFacetValues?: number, groupBy?: string, includeFields?: string, excludeFields?: string, highlightFullFields?: string, numTypos?: number, prefix?: string, page?: number, perPage?: number };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('collection' in paramsOrFirst || 'q' in paramsOrFirst || 'queryBy' in paramsOrFirst || 'filterBy' in paramsOrFirst || 'sortBy' in paramsOrFirst || 'facetBy' in paramsOrFirst || 'maxFacetValues' in paramsOrFirst || 'groupBy' in paramsOrFirst || 'includeFields' in paramsOrFirst || 'excludeFields' in paramsOrFirst || 'highlightFullFields' in paramsOrFirst || 'numTypos' in paramsOrFirst || 'prefix' in paramsOrFirst || 'page' in paramsOrFirst || 'perPage' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { collection: Collection, q?: string, queryBy?: string, filterBy?: string, sortBy?: string, facetBy?: string, maxFacetValues?: number, groupBy?: string, includeFields?: string, excludeFields?: string, highlightFullFields?: string, numTypos?: number, prefix?: string, page?: number, perPage?: number };\n } else {\n params = {\n collection: paramsOrFirst as Collection,\n q: rest[0] as string,\n queryBy: rest[1] as string,\n filterBy: rest[2] as string,\n sortBy: rest[3] as string,\n facetBy: rest[4] as string,\n maxFacetValues: rest[5] as number,\n groupBy: rest[6] as string,\n includeFields: rest[7] as string,\n excludeFields: rest[8] as string,\n highlightFullFields: rest[9] as string,\n numTypos: rest[10] as number,\n prefix: rest[11] as string,\n page: rest[12] as number,\n perPage: rest[13] as number \n };\n }\n \n const collection = params.collection;\n const q = params.q;\n const queryBy = params.queryBy;\n const filterBy = params.filterBy;\n const sortBy = params.sortBy;\n const facetBy = params.facetBy;\n const maxFacetValues = params.maxFacetValues;\n const groupBy = params.groupBy;\n const includeFields = params.includeFields;\n const excludeFields = params.excludeFields;\n const highlightFullFields = params.highlightFullFields;\n const numTypos = params.numTypos;\n const prefix = params.prefix;\n const page = params.page;\n const perPage = params.perPage;\n\n if (typeof collection === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"collection\"');\n }\n\n const apiPath = '/v1/search/collections/{collection}/documents/search'.replace('{collection}', collection);\n const apiPayload: Payload = {};\n if (typeof q !== 'undefined') {\n apiPayload['q'] = q;\n }\n if (typeof queryBy !== 'undefined') {\n apiPayload['query_by'] = queryBy;\n }\n if (typeof filterBy !== 'undefined') {\n apiPayload['filter_by'] = filterBy;\n }\n if (typeof sortBy !== 'undefined') {\n apiPayload['sort_by'] = sortBy;\n }\n if (typeof facetBy !== 'undefined') {\n apiPayload['facet_by'] = facetBy;\n }\n if (typeof maxFacetValues !== 'undefined') {\n apiPayload['max_facet_values'] = maxFacetValues;\n }\n if (typeof groupBy !== 'undefined') {\n apiPayload['group_by'] = groupBy;\n }\n if (typeof includeFields !== 'undefined') {\n apiPayload['include_fields'] = includeFields;\n }\n if (typeof excludeFields !== 'undefined') {\n apiPayload['exclude_fields'] = excludeFields;\n }\n if (typeof highlightFullFields !== 'undefined') {\n apiPayload['highlight_full_fields'] = highlightFullFields;\n }\n if (typeof numTypos !== 'undefined') {\n apiPayload['num_typos'] = numTypos;\n }\n if (typeof prefix !== 'undefined') {\n apiPayload['prefix'] = prefix;\n }\n if (typeof page !== 'undefined') {\n apiPayload['page'] = page;\n }\n if (typeof perPage !== 'undefined') {\n apiPayload['per_page'] = perPage;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Full-text search within one collection, with the Typesense search parameters in the body. Requires the `documents:search` action.\n *\n * @param {Collection} params.collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} params.excludeFields - Comma-separated document fields to omit.\n * @param {string} params.facetBy - Comma-separated fields to facet on.\n * @param {string} params.filterBy - Filter expression, e.g. `in_stock:=true && price:<100`. ANDed with the tenant filter the proxy injects.\n * @param {string} params.groupBy - Comma-separated fields to group results by.\n * @param {string} params.highlightFullFields - Comma-separated fields to highlight in full.\n * @param {string} params.includeFields - Comma-separated document fields to return.\n * @param {number} params.maxFacetValues - Facet values to return per field.\n * @param {number} params.numTypos - Typos tolerated per query token.\n * @param {number} params.page - 1-based page number.\n * @param {number} params.perPage - Hits per page.\n * @param {string} params.prefix - Whether the last token is a prefix; per-field when comma-separated.\n * @param {string} params.q - Query text. Use `*` to match everything.\n * @param {string} params.queryBy - Comma-separated fields to search, in weight order.\n * @param {string} params.sortBy - Sort expression, e.g. `price:desc`.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DefaultSearchResult>}\n */\n searchSearchDocuments(params: { collection: Collection, excludeFields?: string, facetBy?: string, filterBy?: string, groupBy?: string, highlightFullFields?: string, includeFields?: string, maxFacetValues?: number, numTypos?: number, page?: number, perPage?: number, prefix?: string, q?: string, queryBy?: string, sortBy?: string }): Promise<Models.DefaultSearchResult>;\n /**\n * Full-text search within one collection, with the Typesense search parameters in the body. Requires the `documents:search` action.\n *\n * @param {Collection} collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} excludeFields - Comma-separated document fields to omit.\n * @param {string} facetBy - Comma-separated fields to facet on.\n * @param {string} filterBy - Filter expression, e.g. `in_stock:=true && price:<100`. ANDed with the tenant filter the proxy injects.\n * @param {string} groupBy - Comma-separated fields to group results by.\n * @param {string} highlightFullFields - Comma-separated fields to highlight in full.\n * @param {string} includeFields - Comma-separated document fields to return.\n * @param {number} maxFacetValues - Facet values to return per field.\n * @param {number} numTypos - Typos tolerated per query token.\n * @param {number} page - 1-based page number.\n * @param {number} perPage - Hits per page.\n * @param {string} prefix - Whether the last token is a prefix; per-field when comma-separated.\n * @param {string} q - Query text. Use `*` to match everything.\n * @param {string} queryBy - Comma-separated fields to search, in weight order.\n * @param {string} sortBy - Sort expression, e.g. `price:desc`.\n * @throws {RevenexxException}\n * @returns {Promise<Models.DefaultSearchResult>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n searchSearchDocuments(collection: Collection, excludeFields?: string, facetBy?: string, filterBy?: string, groupBy?: string, highlightFullFields?: string, includeFields?: string, maxFacetValues?: number, numTypos?: number, page?: number, perPage?: number, prefix?: string, q?: string, queryBy?: string, sortBy?: string): Promise<Models.DefaultSearchResult>;\n searchSearchDocuments(\n paramsOrFirst: { collection: Collection, excludeFields?: string, facetBy?: string, filterBy?: string, groupBy?: string, highlightFullFields?: string, includeFields?: string, maxFacetValues?: number, numTypos?: number, page?: number, perPage?: number, prefix?: string, q?: string, queryBy?: string, sortBy?: string } | Collection,\n ...rest: [(string)?, (string)?, (string)?, (string)?, (string)?, (string)?, (number)?, (number)?, (number)?, (number)?, (string)?, (string)?, (string)?, (string)?] \n ): Promise<Models.DefaultSearchResult> {\n let params: { collection: Collection, excludeFields?: string, facetBy?: string, filterBy?: string, groupBy?: string, highlightFullFields?: string, includeFields?: string, maxFacetValues?: number, numTypos?: number, page?: number, perPage?: number, prefix?: string, q?: string, queryBy?: string, sortBy?: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('collection' in paramsOrFirst || 'excludeFields' in paramsOrFirst || 'facetBy' in paramsOrFirst || 'filterBy' in paramsOrFirst || 'groupBy' in paramsOrFirst || 'highlightFullFields' in paramsOrFirst || 'includeFields' in paramsOrFirst || 'maxFacetValues' in paramsOrFirst || 'numTypos' in paramsOrFirst || 'page' in paramsOrFirst || 'perPage' in paramsOrFirst || 'prefix' in paramsOrFirst || 'q' in paramsOrFirst || 'queryBy' in paramsOrFirst || 'sortBy' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { collection: Collection, excludeFields?: string, facetBy?: string, filterBy?: string, groupBy?: string, highlightFullFields?: string, includeFields?: string, maxFacetValues?: number, numTypos?: number, page?: number, perPage?: number, prefix?: string, q?: string, queryBy?: string, sortBy?: string };\n } else {\n params = {\n collection: paramsOrFirst as Collection,\n excludeFields: rest[0] as string,\n facetBy: rest[1] as string,\n filterBy: rest[2] as string,\n groupBy: rest[3] as string,\n highlightFullFields: rest[4] as string,\n includeFields: rest[5] as string,\n maxFacetValues: rest[6] as number,\n numTypos: rest[7] as number,\n page: rest[8] as number,\n perPage: rest[9] as number,\n prefix: rest[10] as string,\n q: rest[11] as string,\n queryBy: rest[12] as string,\n sortBy: rest[13] as string \n };\n }\n \n const collection = params.collection;\n const excludeFields = params.excludeFields;\n const facetBy = params.facetBy;\n const filterBy = params.filterBy;\n const groupBy = params.groupBy;\n const highlightFullFields = params.highlightFullFields;\n const includeFields = params.includeFields;\n const maxFacetValues = params.maxFacetValues;\n const numTypos = params.numTypos;\n const page = params.page;\n const perPage = params.perPage;\n const prefix = params.prefix;\n const q = params.q;\n const queryBy = params.queryBy;\n const sortBy = params.sortBy;\n\n if (typeof collection === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"collection\"');\n }\n\n const apiPath = '/v1/search/collections/{collection}/documents/search'.replace('{collection}', collection);\n const apiPayload: Payload = {};\n if (typeof excludeFields !== 'undefined') {\n apiPayload['exclude_fields'] = excludeFields;\n }\n if (typeof facetBy !== 'undefined') {\n apiPayload['facet_by'] = facetBy;\n }\n if (typeof filterBy !== 'undefined') {\n apiPayload['filter_by'] = filterBy;\n }\n if (typeof groupBy !== 'undefined') {\n apiPayload['group_by'] = groupBy;\n }\n if (typeof highlightFullFields !== 'undefined') {\n apiPayload['highlight_full_fields'] = highlightFullFields;\n }\n if (typeof includeFields !== 'undefined') {\n apiPayload['include_fields'] = includeFields;\n }\n if (typeof maxFacetValues !== 'undefined') {\n apiPayload['max_facet_values'] = maxFacetValues;\n }\n if (typeof numTypos !== 'undefined') {\n apiPayload['num_typos'] = numTypos;\n }\n if (typeof page !== 'undefined') {\n apiPayload['page'] = page;\n }\n if (typeof perPage !== 'undefined') {\n apiPayload['per_page'] = perPage;\n }\n if (typeof prefix !== 'undefined') {\n apiPayload['prefix'] = prefix;\n }\n if (typeof q !== 'undefined') {\n apiPayload['q'] = q;\n }\n if (typeof queryBy !== 'undefined') {\n apiPayload['query_by'] = queryBy;\n }\n if (typeof sortBy !== 'undefined') {\n apiPayload['sort_by'] = sortBy;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Fetch a single document by id. The document shape is the collection's own schema, so it is described as a free-form object. Requires the `documents:get` action.\n *\n * @param {Collection} params.collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} params.documentId - The document's `id` within the collection.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n searchGetDocument(params: { collection: Collection, documentId: string }): Promise<{}>;\n /**\n * Fetch a single document by id. The document shape is the collection's own schema, so it is described as a free-form object. Requires the `documents:get` action.\n *\n * @param {Collection} collection - A collection the tenant owns (see `GET /api/v1/collections`). Resolved to its namespaced Typesense name server-side; a collection the tenant does not own is a 404.\n * @param {string} documentId - The document's `id` within the collection.\n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n searchGetDocument(collection: Collection, documentId: string): Promise<{}>;\n searchGetDocument(\n paramsOrFirst: { collection: Collection, documentId: string } | Collection,\n ...rest: [(string)?] \n ): Promise<{}> {\n let params: { collection: Collection, documentId: string };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('collection' in paramsOrFirst || 'documentId' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { collection: Collection, documentId: string };\n } else {\n params = {\n collection: paramsOrFirst as Collection,\n documentId: rest[0] as string \n };\n }\n \n const collection = params.collection;\n const documentId = params.documentId;\n\n if (typeof collection === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"collection\"');\n }\n if (typeof documentId === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"documentId\"');\n }\n\n const apiPath = '/v1/search/collections/{collection}/documents/{documentId}'.replace('{collection}', collection).replace('{documentId}', documentId);\n const apiPayload: Payload = {};\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n }\n\n return this.client.call(\n 'get',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Idempotent, and bounded by the tenant's own configuration: it can add\n * no field for an attribute the tenant has not marked `is_filterable`,\n * and drops only fields whose attribute it has itself un-marked. A run\n * that changes nothing makes zero calls to Typesense.\n * \n * Body (optional) narrows the sweep to one app:\n * \n * {\"vendor\": \"revenexx\", \"app\": \"products\"}\n * \n * Omitted, every app the tenant has installed is swept. Apps outside the\n * facet-sync allowlist are included in the response with\n * `skipped: app_not_enabled` rather than silently dropped — a caller\n * asking for an app that cannot have facets deserves to be told so.\n * \n * The response shape below is DECLARED rather than inferred. Its entries\n * are built by spreading AttributeFacetSyncer::syncForCollection()'s\n * summary, and the generator cannot see through an array spread: left to\n * itself it emits an unnamed property and a null in `required`, which\n * Spectral rejects as `\"1\" property must be string`.\n * AppController::resyncFacets() carries the same declaration for the same\n * reason — keep both in step with syncForApp()'s return type.\n *\n * @param {string} params.app - \n * @param {string} params.vendor - \n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n */\n gatewayFacetResync(params?: { app?: string, vendor?: string }): Promise<{}>;\n /**\n * Idempotent, and bounded by the tenant's own configuration: it can add\n * no field for an attribute the tenant has not marked `is_filterable`,\n * and drops only fields whose attribute it has itself un-marked. A run\n * that changes nothing makes zero calls to Typesense.\n * \n * Body (optional) narrows the sweep to one app:\n * \n * {\"vendor\": \"revenexx\", \"app\": \"products\"}\n * \n * Omitted, every app the tenant has installed is swept. Apps outside the\n * facet-sync allowlist are included in the response with\n * `skipped: app_not_enabled` rather than silently dropped — a caller\n * asking for an app that cannot have facets deserves to be told so.\n * \n * The response shape below is DECLARED rather than inferred. Its entries\n * are built by spreading AttributeFacetSyncer::syncForCollection()'s\n * summary, and the generator cannot see through an array spread: left to\n * itself it emits an unnamed property and a null in `required`, which\n * Spectral rejects as `\"1\" property must be string`.\n * AppController::resyncFacets() carries the same declaration for the same\n * reason — keep both in step with syncForApp()'s return type.\n *\n * @param {string} app - \n * @param {string} vendor - \n * @throws {RevenexxException}\n * @returns {Promise<{}>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n gatewayFacetResync(app?: string, vendor?: string): Promise<{}>;\n gatewayFacetResync(\n paramsOrFirst?: { app?: string, vendor?: string } | string,\n ...rest: [(string)?] \n ): Promise<{}> {\n let params: { app?: string, vendor?: string };\n \n if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { app?: string, vendor?: string };\n } else {\n params = {\n app: paramsOrFirst as string,\n vendor: rest[0] as string \n };\n }\n \n const app = params.app;\n const vendor = params.vendor;\n\n\n const apiPath = '/v1/search/facets/resync';\n const apiPayload: Payload = {};\n if (typeof app !== 'undefined') {\n apiPayload['app'] = app;\n }\n if (typeof vendor !== 'undefined') {\n apiPayload['vendor'] = vendor;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n\n /**\n * Run several searches in one round trip — the endpoint the typesense-js `multiSearch` helper and the InstantSearch adapter use for every query. On the gateway-trust path each entry must name a collection the tenant owns. With a `revx_` key `collection_name` is optional and is forced to the key's own collection. Requires the `documents:search` action.\n *\n * @param {Models.MultiSearchEntry[]} params.searches - The searches to run, in order. Must not be empty.\n * @throws {RevenexxException}\n * @returns {Promise<Models.MultiSearchResult>}\n */\n searchMultiSearch(params: { searches: Models.MultiSearchEntry[] }): Promise<Models.MultiSearchResult>;\n /**\n * Run several searches in one round trip — the endpoint the typesense-js `multiSearch` helper and the InstantSearch adapter use for every query. On the gateway-trust path each entry must name a collection the tenant owns. With a `revx_` key `collection_name` is optional and is forced to the key's own collection. Requires the `documents:search` action.\n *\n * @param {Models.MultiSearchEntry[]} searches - The searches to run, in order. Must not be empty.\n * @throws {RevenexxException}\n * @returns {Promise<Models.MultiSearchResult>}\n * @deprecated Use the object parameter style method for a better developer experience.\n */\n searchMultiSearch(searches: Models.MultiSearchEntry[]): Promise<Models.MultiSearchResult>;\n searchMultiSearch(\n paramsOrFirst: { searches: Models.MultiSearchEntry[] } | Models.MultiSearchEntry[] \n ): Promise<Models.MultiSearchResult> {\n let params: { searches: Models.MultiSearchEntry[] };\n \n if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('searches' in paramsOrFirst))) {\n params = (paramsOrFirst || {}) as { searches: Models.MultiSearchEntry[] };\n } else {\n params = {\n searches: paramsOrFirst as Models.MultiSearchEntry[] \n };\n }\n \n const searches = params.searches;\n\n if (typeof searches === 'undefined') {\n throw new RevenexxException('Missing required parameter: \"searches\"');\n }\n\n const apiPath = '/v1/search/multi_search';\n const apiPayload: Payload = {};\n if (typeof searches !== 'undefined') {\n apiPayload['searches'] = searches;\n }\n const uri = new URL(this.client.config.endpoint + apiPath);\n\n const apiHeaders: { [header: string]: string } = {\n 'content-type': 'application/json',\n }\n\n return this.client.call(\n 'post',\n uri,\n apiHeaders,\n apiPayload,\n );\n }\n}\n"]}
@@ -3,6 +3,15 @@ import '../models.mjs';
3
3
  import '../enums/address-type-row-tone.mjs';
4
4
  import '../enums/address-type-row-create-request-tone.mjs';
5
5
  import '../enums/address-type-row-update-request-tone.mjs';
6
+ import '../enums/approval-rule-approver-type.mjs';
7
+ import '../enums/approval-rule-condition.mjs';
8
+ import '../enums/approval-rule-effect.mjs';
9
+ import '../enums/approval-rule-create-request-approver-type.mjs';
10
+ import '../enums/approval-rule-create-request-condition.mjs';
11
+ import '../enums/approval-rule-create-request-effect.mjs';
12
+ import '../enums/approval-rule-update-request-approver-type.mjs';
13
+ import '../enums/approval-rule-update-request-condition.mjs';
14
+ import '../enums/approval-rule-update-request-effect.mjs';
6
15
  import '../enums/assets-source.mjs';
7
16
  import '../enums/attribute-value-bucket.mjs';
8
17
  import '../enums/auth-mail-source.mjs';
@@ -116,6 +125,8 @@ import '../enums/payment-term-tone.mjs';
116
125
  import '../enums/payment-term-create-request-tone.mjs';
117
126
  import '../enums/payment-term-update-request-tone.mjs';
118
127
  import '../enums/payment-vocabulary-tone.mjs';
128
+ import '../enums/pending-approval-approver-type.mjs';
129
+ import '../enums/pending-approval-status.mjs';
119
130
  import '../enums/price-ending-rule.mjs';
120
131
  import '../enums/price-entries-adjust-response-rounding.mjs';
121
132
  import '../enums/price-entries-adjust-response-rounding-mode.mjs';
@@ -138,6 +149,11 @@ import '../enums/product-grid-column-source.mjs';
138
149
  import '../enums/product-label-source.mjs';
139
150
  import '../enums/product-label-attribute-source.mjs';
140
151
  import '../enums/products-kind.mjs';
152
+ import '../enums/purchase-request-status.mjs';
153
+ import '../enums/purchase-request-event-name.mjs';
154
+ import '../enums/purchase-request-item-type.mjs';
155
+ import '../enums/purchase-request-item-create-request-type.mjs';
156
+ import '../enums/purchase-request-item-update-request-type.mjs';
141
157
  import '../enums/reorder-point-source.mjs';
142
158
  import '../enums/reservation-status.mjs';
143
159
  import '../enums/price-on-request-reason.mjs';
@@ -175,6 +191,8 @@ import '../enums/shipping-weight-unit-row-tone.mjs';
175
191
  import '../enums/shipping-weight-unit-update-request-tone.mjs';
176
192
  import '../enums/stock-movement-type.mjs';
177
193
  import '../enums/store-asset-request-visibility.mjs';
194
+ import '../enums/submit-item-type.mjs';
195
+ import '../enums/submit-result-outcome.mjs';
178
196
  import '../enums/validation-failed-response-status.mjs';
179
197
  import '../enums/vocabulary-default-tone.mjs';
180
198
  import '../enums/vocabulary-source.mjs';
@@ -3,6 +3,15 @@ import '../models.js';
3
3
  import '../enums/address-type-row-tone.js';
4
4
  import '../enums/address-type-row-create-request-tone.js';
5
5
  import '../enums/address-type-row-update-request-tone.js';
6
+ import '../enums/approval-rule-approver-type.js';
7
+ import '../enums/approval-rule-condition.js';
8
+ import '../enums/approval-rule-effect.js';
9
+ import '../enums/approval-rule-create-request-approver-type.js';
10
+ import '../enums/approval-rule-create-request-condition.js';
11
+ import '../enums/approval-rule-create-request-effect.js';
12
+ import '../enums/approval-rule-update-request-approver-type.js';
13
+ import '../enums/approval-rule-update-request-condition.js';
14
+ import '../enums/approval-rule-update-request-effect.js';
6
15
  import '../enums/assets-source.js';
7
16
  import '../enums/attribute-value-bucket.js';
8
17
  import '../enums/auth-mail-source.js';
@@ -116,6 +125,8 @@ import '../enums/payment-term-tone.js';
116
125
  import '../enums/payment-term-create-request-tone.js';
117
126
  import '../enums/payment-term-update-request-tone.js';
118
127
  import '../enums/payment-vocabulary-tone.js';
128
+ import '../enums/pending-approval-approver-type.js';
129
+ import '../enums/pending-approval-status.js';
119
130
  import '../enums/price-ending-rule.js';
120
131
  import '../enums/price-entries-adjust-response-rounding.js';
121
132
  import '../enums/price-entries-adjust-response-rounding-mode.js';
@@ -138,6 +149,11 @@ import '../enums/product-grid-column-source.js';
138
149
  import '../enums/product-label-source.js';
139
150
  import '../enums/product-label-attribute-source.js';
140
151
  import '../enums/products-kind.js';
152
+ import '../enums/purchase-request-status.js';
153
+ import '../enums/purchase-request-event-name.js';
154
+ import '../enums/purchase-request-item-type.js';
155
+ import '../enums/purchase-request-item-create-request-type.js';
156
+ import '../enums/purchase-request-item-update-request-type.js';
141
157
  import '../enums/reorder-point-source.js';
142
158
  import '../enums/reservation-status.js';
143
159
  import '../enums/price-on-request-reason.js';
@@ -175,6 +191,8 @@ import '../enums/shipping-weight-unit-row-tone.js';
175
191
  import '../enums/shipping-weight-unit-update-request-tone.js';
176
192
  import '../enums/stock-movement-type.js';
177
193
  import '../enums/store-asset-request-visibility.js';
194
+ import '../enums/submit-item-type.js';
195
+ import '../enums/submit-result-outcome.js';
178
196
  import '../enums/validation-failed-response-status.js';
179
197
  import '../enums/vocabulary-default-tone.js';
180
198
  import '../enums/vocabulary-source.js';
@@ -6,6 +6,15 @@ import '../query.mjs';
6
6
  import '../enums/address-type-row-tone.mjs';
7
7
  import '../enums/address-type-row-create-request-tone.mjs';
8
8
  import '../enums/address-type-row-update-request-tone.mjs';
9
+ import '../enums/approval-rule-approver-type.mjs';
10
+ import '../enums/approval-rule-condition.mjs';
11
+ import '../enums/approval-rule-effect.mjs';
12
+ import '../enums/approval-rule-create-request-approver-type.mjs';
13
+ import '../enums/approval-rule-create-request-condition.mjs';
14
+ import '../enums/approval-rule-create-request-effect.mjs';
15
+ import '../enums/approval-rule-update-request-approver-type.mjs';
16
+ import '../enums/approval-rule-update-request-condition.mjs';
17
+ import '../enums/approval-rule-update-request-effect.mjs';
9
18
  import '../enums/assets-source.mjs';
10
19
  import '../enums/attribute-value-bucket.mjs';
11
20
  import '../enums/auth-mail-source.mjs';
@@ -119,6 +128,8 @@ import '../enums/payment-term-tone.mjs';
119
128
  import '../enums/payment-term-create-request-tone.mjs';
120
129
  import '../enums/payment-term-update-request-tone.mjs';
121
130
  import '../enums/payment-vocabulary-tone.mjs';
131
+ import '../enums/pending-approval-approver-type.mjs';
132
+ import '../enums/pending-approval-status.mjs';
122
133
  import '../enums/price-ending-rule.mjs';
123
134
  import '../enums/price-entries-adjust-response-rounding.mjs';
124
135
  import '../enums/price-entries-adjust-response-rounding-mode.mjs';
@@ -141,6 +152,11 @@ import '../enums/product-grid-column-source.mjs';
141
152
  import '../enums/product-label-source.mjs';
142
153
  import '../enums/product-label-attribute-source.mjs';
143
154
  import '../enums/products-kind.mjs';
155
+ import '../enums/purchase-request-status.mjs';
156
+ import '../enums/purchase-request-event-name.mjs';
157
+ import '../enums/purchase-request-item-type.mjs';
158
+ import '../enums/purchase-request-item-create-request-type.mjs';
159
+ import '../enums/purchase-request-item-update-request-type.mjs';
144
160
  import '../enums/reorder-point-source.mjs';
145
161
  import '../enums/reservation-status.mjs';
146
162
  import '../enums/price-on-request-reason.mjs';
@@ -177,6 +193,8 @@ import '../enums/shipping-weight-unit-row-tone.mjs';
177
193
  import '../enums/shipping-weight-unit-update-request-tone.mjs';
178
194
  import '../enums/stock-movement-type.mjs';
179
195
  import '../enums/store-asset-request-visibility.mjs';
196
+ import '../enums/submit-item-type.mjs';
197
+ import '../enums/submit-result-outcome.mjs';
180
198
  import '../enums/validation-failed-response-status.mjs';
181
199
  import '../enums/vocabulary-default-tone.mjs';
182
200
  import '../enums/vocabulary-source.mjs';
@@ -237,7 +255,7 @@ declare class ShippingCarriers {
237
255
  * @param {ShippingCarriersListStatus} params.status - Exact-match filter on `status`. Quoting state — the cheap way to list only the carriers that may currently be quoted.
238
256
  * @param {string} params.serviceLevel - Exact-match filter on `service_level`. A code into the tenant's own service levels (GET /shipping/service-levels).
239
257
  * @throws {RevenexxException}
240
- * @returns {Promise<Models.Error>}
258
+ * @returns {Promise<{}>}
241
259
  */
242
260
  shippingCarriersList(params?: {
243
261
  limit?: number;
@@ -246,7 +264,7 @@ declare class ShippingCarriers {
246
264
  code?: string;
247
265
  status?: ShippingCarriersListStatus;
248
266
  serviceLevel?: string;
249
- }): Promise<Models.Error>;
267
+ }): Promise<{}>;
250
268
  /**
251
269
  * Filterable by exact column value — `?code=`, `?status=` and `?service_level=` are applied as equalities and echoed back in `filter`. A query key that names no column of this entity is SILENTLY IGNORED: the page comes back unfiltered, 200, with an empty `filter`, so compare the echo against what you sent rather than trusting the status.
252
270
  *
@@ -257,10 +275,10 @@ declare class ShippingCarriers {
257
275
  * @param {ShippingCarriersListStatus} status - Exact-match filter on `status`. Quoting state — the cheap way to list only the carriers that may currently be quoted.
258
276
  * @param {string} serviceLevel - Exact-match filter on `service_level`. A code into the tenant's own service levels (GET /shipping/service-levels).
259
277
  * @throws {RevenexxException}
260
- * @returns {Promise<Models.Error>}
278
+ * @returns {Promise<{}>}
261
279
  * @deprecated Use the object parameter style method for a better developer experience.
262
280
  */
263
- shippingCarriersList(limit?: number, offset?: number, order?: string, code?: string, status?: ShippingCarriersListStatus, serviceLevel?: string): Promise<Models.Error>;
281
+ shippingCarriersList(limit?: number, offset?: number, order?: string, code?: string, status?: ShippingCarriersListStatus, serviceLevel?: string): Promise<{}>;
264
282
  /**
265
283
  * A carrier row is one company shipping one class of service: it owns the tracking-URL template, the service level, the transit days, the pickup cut-off and the handling days, and every method that ships with it inherits all of those unless it states its own. A carrier selling both a parcel and an express product is two rows. Reach for it for a carrier this app does not describe — a regional courier, a forwarder, an own fleet; for the DACH networks read GET /shipping/carriers/catalog and let POST /shipping/carriers/defaults write them. A create cannot omit `code` and `name`; every other column is optional or defaulted by the database. Two rows of this tenant may not share `code` — that is the 409. `service_level` has to name one of the tenant's own levels and `cutoff_time` has to be HH:MM in 24-hour UTC — both are refused rather than stored, because a cut-off the estimator cannot read would be dropped in silence and the shop would keep promising a ship date nobody computed. Creating a carrier quotes nothing on its own: a method has to reference it (`carrier_id`, or a `carrier` text equal to this code) before any of it is inherited.
266
284
  *
@@ -278,7 +296,7 @@ declare class ShippingCarriers {
278
296
  * @param {ShippingCarrierStatus} params.status - Whether this carrier may be quoted (default 'active'). Anything else excludes every method that ships with it from POST /shipping/rates, with a reason. Tracking links are NOT gated on it — a retired carrier's old shipments stay resolvable.
279
297
  * @param {string} params.trackingUrlTemplate - Tracking page URL with {tracking_code} where the number goes; {postal_code} and {country} are also substituted, URL-encoded. Null for a carrier with no public tracking page.
280
298
  * @throws {RevenexxException}
281
- * @returns {Promise<Models.Error>}
299
+ * @returns {Promise<Models.ShippingCarrier>}
282
300
  */
283
301
  shippingCarriersCreate(params: {
284
302
  code: string;
@@ -294,7 +312,7 @@ declare class ShippingCarriers {
294
312
  serviceLevel?: string;
295
313
  status?: ShippingCarrierStatus;
296
314
  trackingUrlTemplate?: string;
297
- }): Promise<Models.Error>;
315
+ }): Promise<Models.ShippingCarrier>;
298
316
  /**
299
317
  * A carrier row is one company shipping one class of service: it owns the tracking-URL template, the service level, the transit days, the pickup cut-off and the handling days, and every method that ships with it inherits all of those unless it states its own. A carrier selling both a parcel and an express product is two rows. Reach for it for a carrier this app does not describe — a regional courier, a forwarder, an own fleet; for the DACH networks read GET /shipping/carriers/catalog and let POST /shipping/carriers/defaults write them. A create cannot omit `code` and `name`; every other column is optional or defaulted by the database. Two rows of this tenant may not share `code` — that is the 409. `service_level` has to name one of the tenant's own levels and `cutoff_time` has to be HH:MM in 24-hour UTC — both are refused rather than stored, because a cut-off the estimator cannot read would be dropped in silence and the shop would keep promising a ship date nobody computed. Creating a carrier quotes nothing on its own: a method has to reference it (`carrier_id`, or a `carrier` text equal to this code) before any of it is inherited.
300
318
  *
@@ -312,10 +330,10 @@ declare class ShippingCarriers {
312
330
  * @param {ShippingCarrierStatus} status - Whether this carrier may be quoted (default 'active'). Anything else excludes every method that ships with it from POST /shipping/rates, with a reason. Tracking links are NOT gated on it — a retired carrier's old shipments stay resolvable.
313
331
  * @param {string} trackingUrlTemplate - Tracking page URL with {tracking_code} where the number goes; {postal_code} and {country} are also substituted, URL-encoded. Null for a carrier with no public tracking page.
314
332
  * @throws {RevenexxException}
315
- * @returns {Promise<Models.Error>}
333
+ * @returns {Promise<Models.ShippingCarrier>}
316
334
  * @deprecated Use the object parameter style method for a better developer experience.
317
335
  */
318
- shippingCarriersCreate(code: string, name: string, countries?: string[], cutoffTime?: string, etaDaysMax?: number, etaDaysMin?: number, handlingDays?: number, labels?: object, metadata?: object, position?: number, serviceLevel?: string, status?: ShippingCarrierStatus, trackingUrlTemplate?: string): Promise<Models.Error>;
336
+ shippingCarriersCreate(code: string, name: string, countries?: string[], cutoffTime?: string, etaDaysMax?: number, etaDaysMin?: number, handlingDays?: number, labels?: object, metadata?: object, position?: number, serviceLevel?: string, status?: ShippingCarrierStatus, trackingUrlTemplate?: string): Promise<Models.ShippingCarrier>;
319
337
  /**
320
338
  * The DACH set — the three German parcel networks, the express carriers, the AT/CH incumbents and the pallet forwarders — each with the tracking template, service level, transit time and pickup cut-off it would be created with. `seeded` marks the four a fresh install already has. Adding a carrier is a data change, never a code change, and a merchant may of course create one that is not in here at all.
321
339
  *
@@ -335,39 +353,39 @@ declare class ShippingCarriers {
335
353
  *
336
354
  * @param {string} params.id - The row id.
337
355
  * @throws {RevenexxException}
338
- * @returns {Promise<Models.Error>}
356
+ * @returns {Promise<{}>}
339
357
  */
340
358
  shippingCarriersDelete(params: {
341
359
  id: string;
342
- }): Promise<Models.Error>;
360
+ }): Promise<{}>;
343
361
  /**
344
362
  * Deleting one clears `shipping_methods.carrier_id` rather than deleting those rows — the foreign keys decide that, not this route. So a method that referenced this carrier keeps working and resolves through its `carrier` code instead, which is also why this never answers a conflict — and it is the reason to prefer `status: 'retired'` where the carrier is merely finished. What the method silently LOSES is everything it was inheriting: the tracking template, the pickup cut-off, the handling days and the transit days. Unless its `carrier` text still matches another carrier, its ship date is recomputed on the market's own cut-off and handling settings, and a method that stated no `eta_days_min`/`max` of its own stops carrying a `delivery` estimate altogether. Nothing errors; the promise in the checkout just changes.
345
363
  *
346
364
  * @param {string} id - The row id.
347
365
  * @throws {RevenexxException}
348
- * @returns {Promise<Models.Error>}
366
+ * @returns {Promise<{}>}
349
367
  * @deprecated Use the object parameter style method for a better developer experience.
350
368
  */
351
- shippingCarriersDelete(id: string): Promise<Models.Error>;
369
+ shippingCarriersDelete(id: string): Promise<{}>;
352
370
  /**
353
371
  * A carrier row is one company shipping one class of service: it owns the tracking-URL template, the service level, the transit days, the pickup cut-off and the handling days, and every method that ships with it inherits all of those unless it states its own. A carrier selling both a parcel and an express product is two rows. Read it when you need to know what a method's delivery promise really is: `cutoff_time`, `handling_days` and `eta_days_min`/`max` are inherited from here, so a shop that seems to promise the wrong ship date is usually explained by this row rather than by the method. It does NOT say which methods ship with it — that is GET /shipping/methods?carrier_id=… for the ones holding a reference and ?carrier=… for the ones still resolving through the legacy code text.
354
372
  *
355
373
  * @param {string} params.id - The row id.
356
374
  * @throws {RevenexxException}
357
- * @returns {Promise<Models.Error>}
375
+ * @returns {Promise<Models.ShippingCarrier>}
358
376
  */
359
377
  shippingCarriersGet(params: {
360
378
  id: string;
361
- }): Promise<Models.Error>;
379
+ }): Promise<Models.ShippingCarrier>;
362
380
  /**
363
381
  * A carrier row is one company shipping one class of service: it owns the tracking-URL template, the service level, the transit days, the pickup cut-off and the handling days, and every method that ships with it inherits all of those unless it states its own. A carrier selling both a parcel and an express product is two rows. Read it when you need to know what a method's delivery promise really is: `cutoff_time`, `handling_days` and `eta_days_min`/`max` are inherited from here, so a shop that seems to promise the wrong ship date is usually explained by this row rather than by the method. It does NOT say which methods ship with it — that is GET /shipping/methods?carrier_id=… for the ones holding a reference and ?carrier=… for the ones still resolving through the legacy code text.
364
382
  *
365
383
  * @param {string} id - The row id.
366
384
  * @throws {RevenexxException}
367
- * @returns {Promise<Models.Error>}
385
+ * @returns {Promise<Models.ShippingCarrier>}
368
386
  * @deprecated Use the object parameter style method for a better developer experience.
369
387
  */
370
- shippingCarriersGet(id: string): Promise<Models.Error>;
388
+ shippingCarriersGet(id: string): Promise<Models.ShippingCarrier>;
371
389
  /**
372
390
  * A carrier row is one company shipping one class of service: it owns the tracking-URL template, the service level, the transit days, the pickup cut-off and the handling days, and every method that ships with it inherits all of those unless it states its own. A carrier selling both a parcel and an express product is two rows. A partial update — send only what changes, which is where a carrier is paused, given a different tracking template, or moved to another pickup cut-off or transit time. This is the one switch that acts on several methods at once, in both directions. Moving `status` off 'active' takes every method that ships with this carrier out of POST /shipping/rates with a reason, which beats disabling each of them and forgetting one; tracking links are deliberately not gated on it, so a retired carrier's old shipments stay resolvable. Editing `cutoff_time`, `handling_days` or `eta_days_min`/`max` MOVES THE PROMISED SHIP DATE of every method that states none of its own: the estimator adds the handling days, then one further day when the cut-off has already passed at the instant being evaluated — compared at or after, in UTC, and as calendar days that do not skip a weekend. Two rows of this tenant may not share `code` — that is the 409.
373
391
  *
@@ -386,7 +404,7 @@ declare class ShippingCarriers {
386
404
  * @param {ShippingCarrierStatus} params.status - Whether this carrier may be quoted (default 'active'). Anything else excludes every method that ships with it from POST /shipping/rates, with a reason. Tracking links are NOT gated on it — a retired carrier's old shipments stay resolvable.
387
405
  * @param {string} params.trackingUrlTemplate - Tracking page URL with {tracking_code} where the number goes; {postal_code} and {country} are also substituted, URL-encoded. Null for a carrier with no public tracking page.
388
406
  * @throws {RevenexxException}
389
- * @returns {Promise<Models.Error>}
407
+ * @returns {Promise<Models.ShippingCarrier>}
390
408
  */
391
409
  shippingCarriersUpdate(params: {
392
410
  id: string;
@@ -403,7 +421,7 @@ declare class ShippingCarriers {
403
421
  serviceLevel?: string;
404
422
  status?: ShippingCarrierStatus;
405
423
  trackingUrlTemplate?: string;
406
- }): Promise<Models.Error>;
424
+ }): Promise<Models.ShippingCarrier>;
407
425
  /**
408
426
  * A carrier row is one company shipping one class of service: it owns the tracking-URL template, the service level, the transit days, the pickup cut-off and the handling days, and every method that ships with it inherits all of those unless it states its own. A carrier selling both a parcel and an express product is two rows. A partial update — send only what changes, which is where a carrier is paused, given a different tracking template, or moved to another pickup cut-off or transit time. This is the one switch that acts on several methods at once, in both directions. Moving `status` off 'active' takes every method that ships with this carrier out of POST /shipping/rates with a reason, which beats disabling each of them and forgetting one; tracking links are deliberately not gated on it, so a retired carrier's old shipments stay resolvable. Editing `cutoff_time`, `handling_days` or `eta_days_min`/`max` MOVES THE PROMISED SHIP DATE of every method that states none of its own: the estimator adds the handling days, then one further day when the cut-off has already passed at the instant being evaluated — compared at or after, in UTC, and as calendar days that do not skip a weekend. Two rows of this tenant may not share `code` — that is the 409.
409
427
  *
@@ -422,10 +440,10 @@ declare class ShippingCarriers {
422
440
  * @param {ShippingCarrierStatus} status - Whether this carrier may be quoted (default 'active'). Anything else excludes every method that ships with it from POST /shipping/rates, with a reason. Tracking links are NOT gated on it — a retired carrier's old shipments stay resolvable.
423
441
  * @param {string} trackingUrlTemplate - Tracking page URL with {tracking_code} where the number goes; {postal_code} and {country} are also substituted, URL-encoded. Null for a carrier with no public tracking page.
424
442
  * @throws {RevenexxException}
425
- * @returns {Promise<Models.Error>}
443
+ * @returns {Promise<Models.ShippingCarrier>}
426
444
  * @deprecated Use the object parameter style method for a better developer experience.
427
445
  */
428
- shippingCarriersUpdate(id: string, code?: string, countries?: string[], cutoffTime?: string, etaDaysMax?: number, etaDaysMin?: number, handlingDays?: number, labels?: object, metadata?: object, name?: string, position?: number, serviceLevel?: string, status?: ShippingCarrierStatus, trackingUrlTemplate?: string): Promise<Models.Error>;
446
+ shippingCarriersUpdate(id: string, code?: string, countries?: string[], cutoffTime?: string, etaDaysMax?: number, etaDaysMin?: number, handlingDays?: number, labels?: object, metadata?: object, name?: string, position?: number, serviceLevel?: string, status?: ShippingCarrierStatus, trackingUrlTemplate?: string): Promise<Models.ShippingCarrier>;
429
447
  /**
430
448
  * Hand in a carrier code and the tracking number printed on the label, and this answers the URL a buyer follows. The carrier owns the URL format, so nobody else has to. `order_shipments` stores a tracking_url per shipment today, which is one carrier's URL shape copied into every row — the day it changes, every historic link is wrong. Ask here instead. Tracking is NOT gated on carrier status: a retired carrier's old shipments stay resolvable.
431
449
  *
@@ -434,14 +452,14 @@ declare class ShippingCarriers {
434
452
  * @param {string} params.postalCode - Destination postcode — only needed by a template that names {postal_code}.
435
453
  * @param {string} params.trackingCode - The carrier's tracking number. Required by every template that names {tracking_code}, which is all of them in the shipped catalog. URL-encoded before substitution, so a code with a space or a slash cannot reshape the link.
436
454
  * @throws {RevenexxException}
437
- * @returns {Promise<Models.Error>}
455
+ * @returns {Promise<{}>}
438
456
  */
439
457
  shippingTracking(params: {
440
458
  carrier: string;
441
459
  country?: string;
442
460
  postalCode?: string;
443
461
  trackingCode?: string;
444
- }): Promise<Models.Error>;
462
+ }): Promise<{}>;
445
463
  /**
446
464
  * Hand in a carrier code and the tracking number printed on the label, and this answers the URL a buyer follows. The carrier owns the URL format, so nobody else has to. `order_shipments` stores a tracking_url per shipment today, which is one carrier's URL shape copied into every row — the day it changes, every historic link is wrong. Ask here instead. Tracking is NOT gated on carrier status: a retired carrier's old shipments stay resolvable.
447
465
  *
@@ -450,10 +468,10 @@ declare class ShippingCarriers {
450
468
  * @param {string} postalCode - Destination postcode — only needed by a template that names {postal_code}.
451
469
  * @param {string} trackingCode - The carrier's tracking number. Required by every template that names {tracking_code}, which is all of them in the shipped catalog. URL-encoded before substitution, so a code with a space or a slash cannot reshape the link.
452
470
  * @throws {RevenexxException}
453
- * @returns {Promise<Models.Error>}
471
+ * @returns {Promise<{}>}
454
472
  * @deprecated Use the object parameter style method for a better developer experience.
455
473
  */
456
- shippingTracking(carrier: string, country?: string, postalCode?: string, trackingCode?: string): Promise<Models.Error>;
474
+ shippingTracking(carrier: string, country?: string, postalCode?: string, trackingCode?: string): Promise<{}>;
457
475
  }
458
476
 
459
477
  export { ShippingCarriers };