@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
@@ -4,6 +4,15 @@ import '../query.js';
4
4
  import '../enums/address-type-row-tone.js';
5
5
  import '../enums/address-type-row-create-request-tone.js';
6
6
  import '../enums/address-type-row-update-request-tone.js';
7
+ import '../enums/approval-rule-approver-type.js';
8
+ import '../enums/approval-rule-condition.js';
9
+ import '../enums/approval-rule-effect.js';
10
+ import '../enums/approval-rule-create-request-approver-type.js';
11
+ import '../enums/approval-rule-create-request-condition.js';
12
+ import '../enums/approval-rule-create-request-effect.js';
13
+ import '../enums/approval-rule-update-request-approver-type.js';
14
+ import '../enums/approval-rule-update-request-condition.js';
15
+ import '../enums/approval-rule-update-request-effect.js';
7
16
  import '../enums/assets-source.js';
8
17
  import '../enums/attribute-value-bucket.js';
9
18
  import '../enums/auth-mail-source.js';
@@ -117,6 +126,8 @@ import '../enums/payment-term-tone.js';
117
126
  import '../enums/payment-term-create-request-tone.js';
118
127
  import '../enums/payment-term-update-request-tone.js';
119
128
  import '../enums/payment-vocabulary-tone.js';
129
+ import '../enums/pending-approval-approver-type.js';
130
+ import '../enums/pending-approval-status.js';
120
131
  import '../enums/price-ending-rule.js';
121
132
  import '../enums/price-entries-adjust-response-rounding.js';
122
133
  import '../enums/price-entries-adjust-response-rounding-mode.js';
@@ -139,6 +150,11 @@ import '../enums/product-grid-column-source.js';
139
150
  import '../enums/product-label-source.js';
140
151
  import '../enums/product-label-attribute-source.js';
141
152
  import '../enums/products-kind.js';
153
+ import '../enums/purchase-request-status.js';
154
+ import '../enums/purchase-request-event-name.js';
155
+ import '../enums/purchase-request-item-type.js';
156
+ import '../enums/purchase-request-item-create-request-type.js';
157
+ import '../enums/purchase-request-item-update-request-type.js';
142
158
  import '../enums/reorder-point-source.js';
143
159
  import '../enums/reservation-status.js';
144
160
  import '../enums/price-on-request-reason.js';
@@ -176,6 +192,8 @@ import '../enums/shipping-weight-unit-row-tone.js';
176
192
  import '../enums/shipping-weight-unit-update-request-tone.js';
177
193
  import '../enums/stock-movement-type.js';
178
194
  import '../enums/store-asset-request-visibility.js';
195
+ import '../enums/submit-item-type.js';
196
+ import '../enums/submit-result-outcome.js';
179
197
  import '../enums/validation-failed-response-status.js';
180
198
  import '../enums/vocabulary-default-tone.js';
181
199
  import '../enums/vocabulary-source.js';
@@ -232,132 +250,132 @@ declare class Customers {
232
250
  * @param {string} params.email - The buyer's login address — the same one the contact carries.
233
251
  * @param {string} params.password - The password from registration or recovery. Wrong credentials are a 401; a correct one on an undecided application is a 403.
234
252
  * @throws {RevenexxException}
235
- * @returns {Promise<Models.Error>}
253
+ * @returns {Promise<Models.AuthLoginResponse>}
236
254
  */
237
255
  customersAuthLogin(params: {
238
256
  email: string;
239
257
  password: string;
240
- }): Promise<Models.Error>;
258
+ }): Promise<Models.AuthLoginResponse>;
241
259
  /**
242
260
  * An email and a password go in; a session and the CONTACT behind it come back, so a storefront knows in one call both that the buyer is signed in and who they are. The session is minted server-side rather than handed back from the credential check, because the account route hides the session secret from non-privileged responses and a trusted BFF needs it. `permissions` carries the buyer's effective grants, so a BFF does not need a second call to decide what to render.
243
261
  *
244
262
  * @param {string} email - The buyer's login address — the same one the contact carries.
245
263
  * @param {string} password - The password from registration or recovery. Wrong credentials are a 401; a correct one on an undecided application is a 403.
246
264
  * @throws {RevenexxException}
247
- * @returns {Promise<Models.Error>}
265
+ * @returns {Promise<Models.AuthLoginResponse>}
248
266
  * @deprecated Use the object parameter style method for a better developer experience.
249
267
  */
250
- customersAuthLogin(email: string, password: string): Promise<Models.Error>;
268
+ customersAuthLogin(email: string, password: string): Promise<Models.AuthLoginResponse>;
251
269
  /**
252
270
  * Ends ONE session — the buyer signs out on this device and stays signed in on the others, because the session id is what is revoked and not the account. The contact row is untouched: signing out is not blocking, and a caller wanting the second thing wants `status: "blocked"` on the contact instead. Both ids come from what `/customers/auth/login` answered, and a BFF should drop its own cookie whatever this answers — the session is unusable afterwards either way.
253
271
  *
254
272
  * @param {string} params.sessionId - The session to revoke — `session.$id` from the login.
255
273
  * @param {string} params.userId - The platform user — `session.userId` from the login.
256
274
  * @throws {RevenexxException}
257
- * @returns {Promise<Models.Error>}
275
+ * @returns {Promise<{}>}
258
276
  */
259
277
  customersAuthLogout(params: {
260
278
  sessionId: string;
261
279
  userId: string;
262
- }): Promise<Models.Error>;
280
+ }): Promise<{}>;
263
281
  /**
264
282
  * Ends ONE session — the buyer signs out on this device and stays signed in on the others, because the session id is what is revoked and not the account. The contact row is untouched: signing out is not blocking, and a caller wanting the second thing wants `status: "blocked"` on the contact instead. Both ids come from what `/customers/auth/login` answered, and a BFF should drop its own cookie whatever this answers — the session is unusable afterwards either way.
265
283
  *
266
284
  * @param {string} sessionId - The session to revoke — `session.$id` from the login.
267
285
  * @param {string} userId - The platform user — `session.userId` from the login.
268
286
  * @throws {RevenexxException}
269
- * @returns {Promise<Models.Error>}
287
+ * @returns {Promise<{}>}
270
288
  * @deprecated Use the object parameter style method for a better developer experience.
271
289
  */
272
- customersAuthLogout(sessionId: string, userId: string): Promise<Models.Error>;
290
+ customersAuthLogout(sessionId: string, userId: string): Promise<{}>;
273
291
  /**
274
292
  * Sign in without a password: a link goes to the address, and `PUT /customers/auth/magic-link` turns it into a session. Creates the account when the address is new, which makes this a registration path as much as a sign-in one — and why an address nobody holds is not distinguished in the answer. The mail is this shop's own template through the messaging service; the secret is not in this response, only in the link.
275
293
  *
276
294
  * @param {string} params.email - Who to send the link to. An address that has never been seen creates an account rather than failing.
277
295
  * @param {string} params.url - Where the mailed link points. `userId`, `secret` and `expire` are appended as query parameters; the first two are what the confirm call takes.
278
296
  * @throws {RevenexxException}
279
- * @returns {Promise<Models.Error>}
297
+ * @returns {Promise<Models.DefaultAuthMagicLinkResponse>}
280
298
  */
281
299
  customersAuthMagicLink(params: {
282
300
  email: string;
283
301
  url: string;
284
- }): Promise<Models.Error>;
302
+ }): Promise<Models.DefaultAuthMagicLinkResponse>;
285
303
  /**
286
304
  * Sign in without a password: a link goes to the address, and `PUT /customers/auth/magic-link` turns it into a session. Creates the account when the address is new, which makes this a registration path as much as a sign-in one — and why an address nobody holds is not distinguished in the answer. The mail is this shop's own template through the messaging service; the secret is not in this response, only in the link.
287
305
  *
288
306
  * @param {string} email - Who to send the link to. An address that has never been seen creates an account rather than failing.
289
307
  * @param {string} url - Where the mailed link points. `userId`, `secret` and `expire` are appended as query parameters; the first two are what the confirm call takes.
290
308
  * @throws {RevenexxException}
291
- * @returns {Promise<Models.Error>}
309
+ * @returns {Promise<Models.DefaultAuthMagicLinkResponse>}
292
310
  * @deprecated Use the object parameter style method for a better developer experience.
293
311
  */
294
- customersAuthMagicLink(email: string, url: string): Promise<Models.Error>;
312
+ customersAuthMagicLink(email: string, url: string): Promise<Models.DefaultAuthMagicLinkResponse>;
295
313
  /**
296
314
  * The buyer clicked the link and the storefront read `userId` and `secret` out of it. Answers exactly what a password login answers — session, contact and effective grants — because a shop must not have to branch on how somebody signed in.
297
315
  *
298
316
  * @param {string} params.secret - The one-time secret the mailed link carried. Spent on first use and expiring, so a second attempt with the same one is a 401 rather than a second session.
299
317
  * @param {string} params.userId - The `userId` the mailed link carried.
300
318
  * @throws {RevenexxException}
301
- * @returns {Promise<Models.Error>}
319
+ * @returns {Promise<Models.AuthMagicLinkConfirmResponse>}
302
320
  */
303
321
  customersAuthMagicLinkConfirm(params: {
304
322
  secret: string;
305
323
  userId: string;
306
- }): Promise<Models.Error>;
324
+ }): Promise<Models.AuthMagicLinkConfirmResponse>;
307
325
  /**
308
326
  * The buyer clicked the link and the storefront read `userId` and `secret` out of it. Answers exactly what a password login answers — session, contact and effective grants — because a shop must not have to branch on how somebody signed in.
309
327
  *
310
328
  * @param {string} secret - The one-time secret the mailed link carried. Spent on first use and expiring, so a second attempt with the same one is a 401 rather than a second session.
311
329
  * @param {string} userId - The `userId` the mailed link carried.
312
330
  * @throws {RevenexxException}
313
- * @returns {Promise<Models.Error>}
331
+ * @returns {Promise<Models.AuthMagicLinkConfirmResponse>}
314
332
  * @deprecated Use the object parameter style method for a better developer experience.
315
333
  */
316
- customersAuthMagicLinkConfirm(secret: string, userId: string): Promise<Models.Error>;
334
+ customersAuthMagicLinkConfirm(secret: string, userId: string): Promise<Models.AuthMagicLinkConfirmResponse>;
317
335
  /**
318
336
  * The platform user, the customer record mirrored against it and the effective grants, in one call. The expected caller is a trusted storefront BFF holding the session on the buyer's behalf, which is why the ids travel in the body rather than in a browser-facing header. The grants are derived here on every call rather than returned from anywhere they could be cached, so a role changed a second ago is already reflected.
319
337
  *
320
338
  * @param {string} params.userId - The platform user to resolve — `session.userId` from the login.
321
339
  * @param {string} params.sessionId - Optional session to verify. Pass it to ask "is this session still alive?" (a revoked one is then a 401); omit it to only ask who a user is.
322
340
  * @throws {RevenexxException}
323
- * @returns {Promise<Models.Error>}
341
+ * @returns {Promise<Models.AuthMeResponse>}
324
342
  */
325
343
  customersAuthMe(params: {
326
344
  userId: string;
327
345
  sessionId?: string;
328
- }): Promise<Models.Error>;
346
+ }): Promise<Models.AuthMeResponse>;
329
347
  /**
330
348
  * The platform user, the customer record mirrored against it and the effective grants, in one call. The expected caller is a trusted storefront BFF holding the session on the buyer's behalf, which is why the ids travel in the body rather than in a browser-facing header. The grants are derived here on every call rather than returned from anywhere they could be cached, so a role changed a second ago is already reflected.
331
349
  *
332
350
  * @param {string} userId - The platform user to resolve — `session.userId` from the login.
333
351
  * @param {string} sessionId - Optional session to verify. Pass it to ask "is this session still alive?" (a revoked one is then a 401); omit it to only ask who a user is.
334
352
  * @throws {RevenexxException}
335
- * @returns {Promise<Models.Error>}
353
+ * @returns {Promise<Models.AuthMeResponse>}
336
354
  * @deprecated Use the object parameter style method for a better developer experience.
337
355
  */
338
- customersAuthMe(userId: string, sessionId?: string): Promise<Models.Error>;
356
+ customersAuthMe(userId: string, sessionId?: string): Promise<Models.AuthMeResponse>;
339
357
  /**
340
358
  * Between the password and the finished session: the buyer has proved one thing and is asked for another. Created by user id, because the account route that creates challenges hides the code from whoever may call it — and answered with the half-finished session the sign-in is in the middle of, through `PUT /customers/auth/mfa/challenge`. Needs a platform build that returns the challenge code; without one there is no way to read what to send, and the call answers 502 rather than mailing an empty challenge.
341
359
  *
342
360
  * @param {string} params.userId - The platform user being challenged.
343
361
  * @param {string} params.factor - Which factor to challenge. Defaults to `email`, the only one this route mails.
344
362
  * @throws {RevenexxException}
345
- * @returns {Promise<Models.Error>}
363
+ * @returns {Promise<Models.DefaultAuthMfaChallengeResponse>}
346
364
  */
347
365
  customersAuthMfaChallenge(params: {
348
366
  userId: string;
349
367
  factor?: string;
350
- }): Promise<Models.Error>;
368
+ }): Promise<Models.DefaultAuthMfaChallengeResponse>;
351
369
  /**
352
370
  * Between the password and the finished session: the buyer has proved one thing and is asked for another. Created by user id, because the account route that creates challenges hides the code from whoever may call it — and answered with the half-finished session the sign-in is in the middle of, through `PUT /customers/auth/mfa/challenge`. Needs a platform build that returns the challenge code; without one there is no way to read what to send, and the call answers 502 rather than mailing an empty challenge.
353
371
  *
354
372
  * @param {string} userId - The platform user being challenged.
355
373
  * @param {string} factor - Which factor to challenge. Defaults to `email`, the only one this route mails.
356
374
  * @throws {RevenexxException}
357
- * @returns {Promise<Models.Error>}
375
+ * @returns {Promise<Models.DefaultAuthMfaChallengeResponse>}
358
376
  * @deprecated Use the object parameter style method for a better developer experience.
359
377
  */
360
- customersAuthMfaChallenge(userId: string, factor?: string): Promise<Models.Error>;
378
+ customersAuthMfaChallenge(userId: string, factor?: string): Promise<Models.DefaultAuthMfaChallengeResponse>;
361
379
  /**
362
380
  * The code the buyer typed, against the challenge it was sent for. The session becomes fully authenticated when this answers.
363
381
  *
@@ -366,14 +384,14 @@ declare class Customers {
366
384
  * @param {string} params.sessionSecret - The same session the challenge was created with.
367
385
  * @param {string} params.userId - The platform user, for the caller's own bookkeeping. The challenge already knows whose it is.
368
386
  * @throws {RevenexxException}
369
- * @returns {Promise<Models.Error>}
387
+ * @returns {Promise<Models.DefaultAuthMfaChallengeConfirmResponse>}
370
388
  */
371
389
  customersAuthMfaChallengeConfirm(params: {
372
390
  challengeId: string;
373
391
  code: string;
374
392
  sessionSecret: string;
375
393
  userId?: string;
376
- }): Promise<Models.Error>;
394
+ }): Promise<Models.DefaultAuthMfaChallengeConfirmResponse>;
377
395
  /**
378
396
  * The code the buyer typed, against the challenge it was sent for. The session becomes fully authenticated when this answers.
379
397
  *
@@ -382,73 +400,73 @@ declare class Customers {
382
400
  * @param {string} sessionSecret - The same session the challenge was created with.
383
401
  * @param {string} userId - The platform user, for the caller's own bookkeeping. The challenge already knows whose it is.
384
402
  * @throws {RevenexxException}
385
- * @returns {Promise<Models.Error>}
403
+ * @returns {Promise<Models.DefaultAuthMfaChallengeConfirmResponse>}
386
404
  * @deprecated Use the object parameter style method for a better developer experience.
387
405
  */
388
- customersAuthMfaChallengeConfirm(challengeId: string, code: string, sessionSecret: string, userId?: string): Promise<Models.Error>;
406
+ customersAuthMfaChallengeConfirm(challengeId: string, code: string, sessionSecret: string, userId?: string): Promise<Models.DefaultAuthMfaChallengeConfirmResponse>;
389
407
  /**
390
408
  * The same token as the sign-in link, delivered as a short code instead — for a buyer on a phone, where leaving for a mail client and coming back loses the checkout they were in the middle of. Redeemed with `PUT /customers/auth/otp`.
391
409
  *
392
410
  * @param {string} params.email - Who to send the code to. As with the sign-in link, an unknown address creates an account rather than failing.
393
411
  * @throws {RevenexxException}
394
- * @returns {Promise<Models.Error>}
412
+ * @returns {Promise<Models.DefaultAuthOtpResponse>}
395
413
  */
396
414
  customersAuthOtp(params: {
397
415
  email: string;
398
- }): Promise<Models.Error>;
416
+ }): Promise<Models.DefaultAuthOtpResponse>;
399
417
  /**
400
418
  * The same token as the sign-in link, delivered as a short code instead — for a buyer on a phone, where leaving for a mail client and coming back loses the checkout they were in the middle of. Redeemed with `PUT /customers/auth/otp`.
401
419
  *
402
420
  * @param {string} email - Who to send the code to. As with the sign-in link, an unknown address creates an account rather than failing.
403
421
  * @throws {RevenexxException}
404
- * @returns {Promise<Models.Error>}
422
+ * @returns {Promise<Models.DefaultAuthOtpResponse>}
405
423
  * @deprecated Use the object parameter style method for a better developer experience.
406
424
  */
407
- customersAuthOtp(email: string): Promise<Models.Error>;
425
+ customersAuthOtp(email: string): Promise<Models.DefaultAuthOtpResponse>;
408
426
  /**
409
427
  * The code the buyer typed, plus the `userId` the send answered with. Answers exactly what a password login answers — session, contact and effective grants — so a storefront never has to branch on how somebody signed in. The code is spent on first use and expires, so a second attempt with the same one is a 401 rather than a second session.
410
428
  *
411
429
  * @param {string} params.secret - The one-time secret the mailed code carried. Spent on first use and expiring, so a second attempt with the same one is a 401 rather than a second session.
412
430
  * @param {string} params.userId - The `userId` the mailed code carried.
413
431
  * @throws {RevenexxException}
414
- * @returns {Promise<Models.Error>}
432
+ * @returns {Promise<Models.AuthOtpConfirmResponse>}
415
433
  */
416
434
  customersAuthOtpConfirm(params: {
417
435
  secret: string;
418
436
  userId: string;
419
- }): Promise<Models.Error>;
437
+ }): Promise<Models.AuthOtpConfirmResponse>;
420
438
  /**
421
439
  * The code the buyer typed, plus the `userId` the send answered with. Answers exactly what a password login answers — session, contact and effective grants — so a storefront never has to branch on how somebody signed in. The code is spent on first use and expires, so a second attempt with the same one is a 401 rather than a second session.
422
440
  *
423
441
  * @param {string} secret - The one-time secret the mailed code carried. Spent on first use and expiring, so a second attempt with the same one is a 401 rather than a second session.
424
442
  * @param {string} userId - The `userId` the mailed code carried.
425
443
  * @throws {RevenexxException}
426
- * @returns {Promise<Models.Error>}
444
+ * @returns {Promise<Models.AuthOtpConfirmResponse>}
427
445
  * @deprecated Use the object parameter style method for a better developer experience.
428
446
  */
429
- customersAuthOtpConfirm(secret: string, userId: string): Promise<Models.Error>;
447
+ customersAuthOtpConfirm(secret: string, userId: string): Promise<Models.AuthOtpConfirmResponse>;
430
448
  /**
431
449
  * Step one of two: a link goes to the address given, and `PUT /customers/auth/recovery` is what the buyer's browser comes back to. The identity service mints the token; the MAIL is this shop's own — the tenant's template, layout, language and sending domain, through the messaging service. The secret is NOT in this answer: it exists only inside the mailed link, which is the whole point of the two-step shape, and echoing it here would make the mail decorative. Nothing about the contact changes; the password only moves in step two.
432
450
  *
433
451
  * @param {string} params.email - Who to send the recovery mail to. An address nobody holds is not distinguished here — do not build an account-existence check on the answer.
434
452
  * @param {string} params.url - Where the mailed link points. `userId`, `secret` and `expire` are appended as query parameters — the first two are what the confirm call takes. Same shape the identity service's own mail used, so a storefront that already handles that link needs no change.
435
453
  * @throws {RevenexxException}
436
- * @returns {Promise<Models.Error>}
454
+ * @returns {Promise<Models.DefaultAuthRecoveryResponse>}
437
455
  */
438
456
  customersAuthRecovery(params: {
439
457
  email: string;
440
458
  url: string;
441
- }): Promise<Models.Error>;
459
+ }): Promise<Models.DefaultAuthRecoveryResponse>;
442
460
  /**
443
461
  * Step one of two: a link goes to the address given, and `PUT /customers/auth/recovery` is what the buyer's browser comes back to. The identity service mints the token; the MAIL is this shop's own — the tenant's template, layout, language and sending domain, through the messaging service. The secret is NOT in this answer: it exists only inside the mailed link, which is the whole point of the two-step shape, and echoing it here would make the mail decorative. Nothing about the contact changes; the password only moves in step two.
444
462
  *
445
463
  * @param {string} email - Who to send the recovery mail to. An address nobody holds is not distinguished here — do not build an account-existence check on the answer.
446
464
  * @param {string} url - Where the mailed link points. `userId`, `secret` and `expire` are appended as query parameters — the first two are what the confirm call takes. Same shape the identity service's own mail used, so a storefront that already handles that link needs no change.
447
465
  * @throws {RevenexxException}
448
- * @returns {Promise<Models.Error>}
466
+ * @returns {Promise<Models.DefaultAuthRecoveryResponse>}
449
467
  * @deprecated Use the object parameter style method for a better developer experience.
450
468
  */
451
- customersAuthRecovery(email: string, url: string): Promise<Models.Error>;
469
+ customersAuthRecovery(email: string, url: string): Promise<Models.DefaultAuthRecoveryResponse>;
452
470
  /**
453
471
  * Step two: the `userId` and `secret` the mailed link carried, plus the password the buyer just typed. The secret is spent on first use and expires, so a link cannot be replayed and a second attempt with the same one is a 401 rather than a second password change. The new password is in effect the moment this answers; what happens to sessions opened with the old one is the identity service's policy, not this app's.
454
472
  *
@@ -456,13 +474,13 @@ declare class Customers {
456
474
  * @param {string} params.secret - The one-time secret from the mailed link. Only that value works — it is spent on first use and expires, and anything else is a 401, so no example here would be anything but a call that fails.
457
475
  * @param {string} params.userId - The `userId` the mailed link carried.
458
476
  * @throws {RevenexxException}
459
- * @returns {Promise<Models.Error>}
477
+ * @returns {Promise<Models.DefaultAuthRecoveryConfirmResponse>}
460
478
  */
461
479
  customersAuthRecoveryConfirm(params: {
462
480
  password: string;
463
481
  secret: string;
464
482
  userId: string;
465
- }): Promise<Models.Error>;
483
+ }): Promise<Models.DefaultAuthRecoveryConfirmResponse>;
466
484
  /**
467
485
  * Step two: the `userId` and `secret` the mailed link carried, plus the password the buyer just typed. The secret is spent on first use and expires, so a link cannot be replayed and a second attempt with the same one is a 401 rather than a second password change. The new password is in effect the moment this answers; what happens to sessions opened with the old one is the identity service's policy, not this app's.
468
486
  *
@@ -470,10 +488,10 @@ declare class Customers {
470
488
  * @param {string} secret - The one-time secret from the mailed link. Only that value works — it is spent on first use and expires, and anything else is a 401, so no example here would be anything but a call that fails.
471
489
  * @param {string} userId - The `userId` the mailed link carried.
472
490
  * @throws {RevenexxException}
473
- * @returns {Promise<Models.Error>}
491
+ * @returns {Promise<Models.DefaultAuthRecoveryConfirmResponse>}
474
492
  * @deprecated Use the object parameter style method for a better developer experience.
475
493
  */
476
- customersAuthRecoveryConfirm(password: string, secret: string, userId: string): Promise<Models.Error>;
494
+ customersAuthRecoveryConfirm(password: string, secret: string, userId: string): Promise<Models.DefaultAuthRecoveryConfirmResponse>;
477
495
  /**
478
496
  * One call writes the whole buyer: the contact this app is the system of record for, and the platform user behind its login. When the body names a company it also FOUNDS one — an organization, mirrored into platform auth as a team, with this contact as its admin. The tenant setting registration_mode decides what a registration IS. 'open' (the default, unchanged behaviour) creates a finished account: registration_status='approved', status='active', login works. 'approval_required' creates an APPLICATION: registration_status='pending', status='invited', the platform user exists with the applicant's own password but is DISABLED, and a newly founded organization is parked as 'blocked' — check `approval_required` in the response and show a 'we will get back to you' screen instead of logging the buyer in. The registration gates below are all evaluated BEFORE anything is written, and a failure after that point rolls the organization and the contact back together.
479
497
  *
@@ -488,7 +506,7 @@ declare class Customers {
488
506
  * @param {string} params.vatId - VAT identification number (USt-IdNr. in Germany) — the closest thing a B2B buyer has to a legal identity. Validated against the EU VIES service when the tenant's `organization_vat_id_required` setting is on, and stored verbatim otherwise, including for buyers outside the EU. Required when the tenant's `organization_vat_id_required` is on, and checked BEFORE the company is created so a bad one leaves no half-founded organization behind.
489
507
  * @param {string} params.verificationUrl - Where the address-confirmation link points, when the tenant's `email_verification` asks for one on registration. `userId`, `secret` and `expire` are appended, and `PUT /customers/auth/verification` takes the first two. Without it the registration still succeeds and `verification_sent` is false — this app cannot invent a storefront URL, and a link pointing nowhere is worse than none.
490
508
  * @throws {RevenexxException}
491
- * @returns {Promise<Models.Error>}
509
+ * @returns {Promise<Models.AuthRegisterResponse>}
492
510
  */
493
511
  customersAuthRegister(params: {
494
512
  email: string;
@@ -501,7 +519,7 @@ declare class Customers {
501
519
  url?: string;
502
520
  vatId?: string;
503
521
  verificationUrl?: string;
504
- }): Promise<Models.Error>;
522
+ }): Promise<Models.AuthRegisterResponse>;
505
523
  /**
506
524
  * One call writes the whole buyer: the contact this app is the system of record for, and the platform user behind its login. When the body names a company it also FOUNDS one — an organization, mirrored into platform auth as a team, with this contact as its admin. The tenant setting registration_mode decides what a registration IS. 'open' (the default, unchanged behaviour) creates a finished account: registration_status='approved', status='active', login works. 'approval_required' creates an APPLICATION: registration_status='pending', status='invited', the platform user exists with the applicant's own password but is DISABLED, and a newly founded organization is parked as 'blocked' — check `approval_required` in the response and show a 'we will get back to you' screen instead of logging the buyer in. The registration gates below are all evaluated BEFORE anything is written, and a failure after that point rolls the organization and the contact back together.
507
525
  *
@@ -516,73 +534,73 @@ declare class Customers {
516
534
  * @param {string} vatId - VAT identification number (USt-IdNr. in Germany) — the closest thing a B2B buyer has to a legal identity. Validated against the EU VIES service when the tenant's `organization_vat_id_required` setting is on, and stored verbatim otherwise, including for buyers outside the EU. Required when the tenant's `organization_vat_id_required` is on, and checked BEFORE the company is created so a bad one leaves no half-founded organization behind.
517
535
  * @param {string} verificationUrl - Where the address-confirmation link points, when the tenant's `email_verification` asks for one on registration. `userId`, `secret` and `expire` are appended, and `PUT /customers/auth/verification` takes the first two. Without it the registration still succeeds and `verification_sent` is false — this app cannot invent a storefront URL, and a link pointing nowhere is worse than none.
518
536
  * @throws {RevenexxException}
519
- * @returns {Promise<Models.Error>}
537
+ * @returns {Promise<Models.AuthRegisterResponse>}
520
538
  * @deprecated Use the object parameter style method for a better developer experience.
521
539
  */
522
- customersAuthRegister(email: string, password: string, firstName?: string, lastName?: string, locale?: string, organizationId?: string, organizationName?: string, url?: string, vatId?: string, verificationUrl?: string): Promise<Models.Error>;
540
+ customersAuthRegister(email: string, password: string, firstName?: string, lastName?: string, locale?: string, organizationId?: string, organizationName?: string, url?: string, vatId?: string, verificationUrl?: string): Promise<Models.AuthRegisterResponse>;
523
541
  /**
524
542
  * Confirm that the address belongs to the buyer. Needs no session: the verification is created through the identity service's users surface, because its account counterpart reads the authenticated user and a caller authenticating AS the user cannot see the secret it just created. The buyer still confirms with their own session, through `PUT /customers/auth/verification` — only the creation moved. Send it right after a registration, or from an account page.
525
543
  *
526
544
  * @param {string} params.url - Where the mailed link points. `userId`, `secret` and `expire` are appended as query parameters; the first two are what the confirm call takes.
527
545
  * @param {string} params.userId - The platform user whose address is being confirmed — `user_id` from the registration, or `session.userId` from a login.
528
546
  * @throws {RevenexxException}
529
- * @returns {Promise<Models.Error>}
547
+ * @returns {Promise<Models.DefaultAuthVerificationResponse>}
530
548
  */
531
549
  customersAuthVerification(params: {
532
550
  url: string;
533
551
  userId: string;
534
- }): Promise<Models.Error>;
552
+ }): Promise<Models.DefaultAuthVerificationResponse>;
535
553
  /**
536
554
  * Confirm that the address belongs to the buyer. Needs no session: the verification is created through the identity service's users surface, because its account counterpart reads the authenticated user and a caller authenticating AS the user cannot see the secret it just created. The buyer still confirms with their own session, through `PUT /customers/auth/verification` — only the creation moved. Send it right after a registration, or from an account page.
537
555
  *
538
556
  * @param {string} url - Where the mailed link points. `userId`, `secret` and `expire` are appended as query parameters; the first two are what the confirm call takes.
539
557
  * @param {string} userId - The platform user whose address is being confirmed — `user_id` from the registration, or `session.userId` from a login.
540
558
  * @throws {RevenexxException}
541
- * @returns {Promise<Models.Error>}
559
+ * @returns {Promise<Models.DefaultAuthVerificationResponse>}
542
560
  * @deprecated Use the object parameter style method for a better developer experience.
543
561
  */
544
- customersAuthVerification(url: string, userId: string): Promise<Models.Error>;
562
+ customersAuthVerification(url: string, userId: string): Promise<Models.DefaultAuthVerificationResponse>;
545
563
  /**
546
564
  * The `userId` and `secret` the mailed link carried. The address counts as confirmed the moment this answers; the secret is spent, so the link cannot be replayed.
547
565
  *
548
566
  * @param {string} params.secret - The one-time secret the mailed link carried. Spent on first use and expiring, so a second attempt with the same one is a 401 rather than a second session.
549
567
  * @param {string} params.userId - The `userId` the mailed link carried.
550
568
  * @throws {RevenexxException}
551
- * @returns {Promise<Models.Error>}
569
+ * @returns {Promise<Models.DefaultAuthVerificationConfirmResponse>}
552
570
  */
553
571
  customersAuthVerificationConfirm(params: {
554
572
  secret: string;
555
573
  userId: string;
556
- }): Promise<Models.Error>;
574
+ }): Promise<Models.DefaultAuthVerificationConfirmResponse>;
557
575
  /**
558
576
  * The `userId` and `secret` the mailed link carried. The address counts as confirmed the moment this answers; the secret is spent, so the link cannot be replayed.
559
577
  *
560
578
  * @param {string} secret - The one-time secret the mailed link carried. Spent on first use and expiring, so a second attempt with the same one is a 401 rather than a second session.
561
579
  * @param {string} userId - The `userId` the mailed link carried.
562
580
  * @throws {RevenexxException}
563
- * @returns {Promise<Models.Error>}
581
+ * @returns {Promise<Models.DefaultAuthVerificationConfirmResponse>}
564
582
  * @deprecated Use the object parameter style method for a better developer experience.
565
583
  */
566
- customersAuthVerificationConfirm(secret: string, userId: string): Promise<Models.Error>;
584
+ customersAuthVerificationConfirm(secret: string, userId: string): Promise<Models.DefaultAuthVerificationConfirmResponse>;
567
585
  /**
568
586
  * The capability the API gateway calls to turn a caller's X-Revenexx-Principal assertion into the permission set it forwards to every other app as X-Revenexx-Permissions. This app is the platform's role provider (manifest#provides_roles), and this is the hot path of every attributed storefront request — one contact read plus the tenant's role map. A blocked or pending contact always resolves with active=false; what its `permissions` then say is the tenant's blocked_contact_behavior setting — 'keep' (the default, the role's grants), 'catalog_only' or 'deny_all'.
569
587
  *
570
588
  * @param {string} params.contactId - The contact the caller is acting for.
571
589
  * @throws {RevenexxException}
572
- * @returns {Promise<Models.Error>}
590
+ * @returns {Promise<Models.ContactPermissions>}
573
591
  */
574
592
  customersPrincipalResolve(params: {
575
593
  contactId: string;
576
- }): Promise<Models.Error>;
594
+ }): Promise<Models.ContactPermissions>;
577
595
  /**
578
596
  * The capability the API gateway calls to turn a caller's X-Revenexx-Principal assertion into the permission set it forwards to every other app as X-Revenexx-Permissions. This app is the platform's role provider (manifest#provides_roles), and this is the hot path of every attributed storefront request — one contact read plus the tenant's role map. A blocked or pending contact always resolves with active=false; what its `permissions` then say is the tenant's blocked_contact_behavior setting — 'keep' (the default, the role's grants), 'catalog_only' or 'deny_all'.
579
597
  *
580
598
  * @param {string} contactId - The contact the caller is acting for.
581
599
  * @throws {RevenexxException}
582
- * @returns {Promise<Models.Error>}
600
+ * @returns {Promise<Models.ContactPermissions>}
583
601
  * @deprecated Use the object parameter style method for a better developer experience.
584
602
  */
585
- customersPrincipalResolve(contactId: string): Promise<Models.Error>;
603
+ customersPrincipalResolve(contactId: string): Promise<Models.ContactPermissions>;
586
604
  }
587
605
 
588
606
  export { Customers };