@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
@@ -6,6 +6,15 @@ import '../query.js';
6
6
  import '../enums/address-type-row-tone.js';
7
7
  import '../enums/address-type-row-create-request-tone.js';
8
8
  import '../enums/address-type-row-update-request-tone.js';
9
+ import '../enums/approval-rule-approver-type.js';
10
+ import '../enums/approval-rule-condition.js';
11
+ import '../enums/approval-rule-effect.js';
12
+ import '../enums/approval-rule-create-request-approver-type.js';
13
+ import '../enums/approval-rule-create-request-condition.js';
14
+ import '../enums/approval-rule-create-request-effect.js';
15
+ import '../enums/approval-rule-update-request-approver-type.js';
16
+ import '../enums/approval-rule-update-request-condition.js';
17
+ import '../enums/approval-rule-update-request-effect.js';
9
18
  import '../enums/assets-source.js';
10
19
  import '../enums/attribute-value-bucket.js';
11
20
  import '../enums/auth-mail-source.js';
@@ -119,6 +128,8 @@ import '../enums/payment-term-tone.js';
119
128
  import '../enums/payment-term-create-request-tone.js';
120
129
  import '../enums/payment-term-update-request-tone.js';
121
130
  import '../enums/payment-vocabulary-tone.js';
131
+ import '../enums/pending-approval-approver-type.js';
132
+ import '../enums/pending-approval-status.js';
122
133
  import '../enums/price-ending-rule.js';
123
134
  import '../enums/price-entries-adjust-response-rounding.js';
124
135
  import '../enums/price-entries-adjust-response-rounding-mode.js';
@@ -141,6 +152,11 @@ import '../enums/product-grid-column-source.js';
141
152
  import '../enums/product-label-source.js';
142
153
  import '../enums/product-label-attribute-source.js';
143
154
  import '../enums/products-kind.js';
155
+ import '../enums/purchase-request-status.js';
156
+ import '../enums/purchase-request-event-name.js';
157
+ import '../enums/purchase-request-item-type.js';
158
+ import '../enums/purchase-request-item-create-request-type.js';
159
+ import '../enums/purchase-request-item-update-request-type.js';
144
160
  import '../enums/reorder-point-source.js';
145
161
  import '../enums/reservation-status.js';
146
162
  import '../enums/price-on-request-reason.js';
@@ -178,6 +194,8 @@ import '../enums/shipping-weight-unit-row-tone.js';
178
194
  import '../enums/shipping-weight-unit-update-request-tone.js';
179
195
  import '../enums/stock-movement-type.js';
180
196
  import '../enums/store-asset-request-visibility.js';
197
+ import '../enums/submit-item-type.js';
198
+ import '../enums/submit-result-outcome.js';
181
199
  import '../enums/validation-failed-response-status.js';
182
200
  import '../enums/vocabulary-default-tone.js';
183
201
  import '../enums/vocabulary-source.js';
@@ -9,6 +9,15 @@ import '../query.mjs';
9
9
  import '../enums/address-type-row-tone.mjs';
10
10
  import '../enums/address-type-row-create-request-tone.mjs';
11
11
  import '../enums/address-type-row-update-request-tone.mjs';
12
+ import '../enums/approval-rule-approver-type.mjs';
13
+ import '../enums/approval-rule-condition.mjs';
14
+ import '../enums/approval-rule-effect.mjs';
15
+ import '../enums/approval-rule-create-request-approver-type.mjs';
16
+ import '../enums/approval-rule-create-request-condition.mjs';
17
+ import '../enums/approval-rule-create-request-effect.mjs';
18
+ import '../enums/approval-rule-update-request-approver-type.mjs';
19
+ import '../enums/approval-rule-update-request-condition.mjs';
20
+ import '../enums/approval-rule-update-request-effect.mjs';
12
21
  import '../enums/assets-source.mjs';
13
22
  import '../enums/attribute-value-bucket.mjs';
14
23
  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';
@@ -178,6 +194,8 @@ import '../enums/shipping-weight-unit-row-tone.mjs';
178
194
  import '../enums/shipping-weight-unit-update-request-tone.mjs';
179
195
  import '../enums/stock-movement-type.mjs';
180
196
  import '../enums/store-asset-request-visibility.mjs';
197
+ import '../enums/submit-item-type.mjs';
198
+ import '../enums/submit-result-outcome.mjs';
181
199
  import '../enums/validation-failed-response-status.mjs';
182
200
  import '../enums/vocabulary-default-tone.mjs';
183
201
  import '../enums/vocabulary-source.mjs';
@@ -285,20 +303,20 @@ declare class CustomersContacts {
285
303
  *
286
304
  * @param {string} params.id - The contact event to read.
287
305
  * @throws {RevenexxException}
288
- * @returns {Promise<Models.Error>}
306
+ * @returns {Promise<Models.ContactEvent>}
289
307
  */
290
308
  customersContactEventsGet(params: {
291
309
  id: string;
292
- }): Promise<Models.Error>;
310
+ }): Promise<Models.ContactEvent>;
293
311
  /**
294
312
  * A contact event is one entry on a customer's timeline: an activity somebody logged (a call, a visit, a meeting, a note) or a registration decision this app recorded itself. Every entry is keyed by a CONTACT and stamped with the organization derived from that contact, so a company's history is one indexed read rather than a join. Append-only — there is no update and no delete, which is what makes it usable as evidence. One timeline entry by id, as it was written. Entries are never edited, so what this answers is what was recorded at the time.
295
313
  *
296
314
  * @param {string} id - The contact event to read.
297
315
  * @throws {RevenexxException}
298
- * @returns {Promise<Models.Error>}
316
+ * @returns {Promise<Models.ContactEvent>}
299
317
  * @deprecated Use the object parameter style method for a better developer experience.
300
318
  */
301
- customersContactEventsGet(id: string): Promise<Models.Error>;
319
+ customersContactEventsGet(id: string): Promise<Models.ContactEvent>;
302
320
  /**
303
321
  * A contact is a PERSON, and the unit that logs in: one platform user, one email address, one role held inside its organization. A contact without an organization is a standalone buyer rather than an error, and two people at the same company are two contacts sharing an `organization_id`. The people list, and the read behind an approval queue: `registration_status=pending` is every application waiting for a decision. Every column is a filter — `external_user_id` in particular is how a storefront turns a platform auth id back into a customer — and the page is `limit`/`offset`/`order`.
304
322
  *
@@ -397,7 +415,7 @@ declare class CustomersContacts {
397
415
  * @param {string} params.role - The person's role INSIDE its organization, and the only thing permissions are derived from. One of the tenant's own roles (GET /customers/roles); a tenant that never edited the ledger has viewer, requester, buyer, approver, admin. Also the team role on the platform mirror. There is no global role — the same person in two companies is two contacts. A tenant that never edited the ledger has viewer, requester, buyer, approver, admin; a create without a role gets the one flagged as default, and a role the tenant does not keep is a 400.
398
416
  * @param {ContactStatus} params.status - Whether this person may act: 'invited' has been created but has not accepted, 'active' works, 'blocked' cannot log in. A create through the API defaults to 'invited'; a self-registration in an open store lands 'active'. Default 'invited' on create.
399
417
  * @throws {RevenexxException}
400
- * @returns {Promise<Models.Error>}
418
+ * @returns {Promise<Models.Contact>}
401
419
  */
402
420
  customersContactsCreate(params: {
403
421
  email: string;
@@ -412,7 +430,7 @@ declare class CustomersContacts {
412
430
  registrationStatus?: CustomersContactsCreateRegistrationStatus;
413
431
  role?: string;
414
432
  status?: ContactStatus;
415
- }): Promise<Models.Error>;
433
+ }): Promise<Models.Contact>;
416
434
  /**
417
435
  * A contact is a PERSON, and the unit that logs in: one platform user, one email address, one role held inside its organization. A contact without an organization is a standalone buyer rather than an error, and two people at the same company are two contacts sharing an `organization_id`. Creates the person and their platform login together, so a contact that exists can always sign in. `role` names one of this tenant's own roles and decides what they may do; `registration_status` may only be set to `pending` or `approved` here, because a rejection has to carry a reason and that is the reject route's job. `email` is the only field a create cannot omit; everything else is optional or defaulted by the database. Two rows of this tenant may not share `email` or `external_user_id` (while external_user_id IS NOT NULL).
418
436
  *
@@ -429,10 +447,10 @@ declare class CustomersContacts {
429
447
  * @param {string} role - The person's role INSIDE its organization, and the only thing permissions are derived from. One of the tenant's own roles (GET /customers/roles); a tenant that never edited the ledger has viewer, requester, buyer, approver, admin. Also the team role on the platform mirror. There is no global role — the same person in two companies is two contacts. A tenant that never edited the ledger has viewer, requester, buyer, approver, admin; a create without a role gets the one flagged as default, and a role the tenant does not keep is a 400.
430
448
  * @param {ContactStatus} status - Whether this person may act: 'invited' has been created but has not accepted, 'active' works, 'blocked' cannot log in. A create through the API defaults to 'invited'; a self-registration in an open store lands 'active'. Default 'invited' on create.
431
449
  * @throws {RevenexxException}
432
- * @returns {Promise<Models.Error>}
450
+ * @returns {Promise<Models.Contact>}
433
451
  * @deprecated Use the object parameter style method for a better developer experience.
434
452
  */
435
- customersContactsCreate(email: string, firstName?: string, isPrimary?: boolean, jobTitle?: string, lastName?: string, locale?: string, orderApprovalLimit?: number, organizationId?: string, phone?: string, registrationStatus?: CustomersContactsCreateRegistrationStatus, role?: string, status?: ContactStatus): Promise<Models.Error>;
453
+ customersContactsCreate(email: string, firstName?: string, isPrimary?: boolean, jobTitle?: string, lastName?: string, locale?: string, orderApprovalLimit?: number, organizationId?: string, phone?: string, registrationStatus?: CustomersContactsCreateRegistrationStatus, role?: string, status?: ContactStatus): Promise<Models.Contact>;
436
454
  /**
437
455
  * This is how a call, a visit, a meeting, an email or a plain note reaches one person's timeline. It writes a contact_events row with kind != 'system' and emits contact_event.created, so an activity travels on the same bus as a registration decision and a timeline is one query rather than a union. organization_id is DERIVED from the contact, never taken from the body — an activity cannot be filed under a company the person does not belong to.
438
456
  *
@@ -443,7 +461,7 @@ declare class CustomersContacts {
443
461
  * @param {string} params.note - The long form. Stored inside the event payload as `note`, not as a column of its own.
444
462
  * @param {string} params.occurredAt - When it actually happened. Defaults to now — a call logged on Monday about Friday should say Friday.
445
463
  * @throws {RevenexxException}
446
- * @returns {Promise<Models.Error>}
464
+ * @returns {Promise<Models.ContactEvent>}
447
465
  */
448
466
  customersContactsEventsCreate(params: {
449
467
  contactId: string;
@@ -452,7 +470,7 @@ declare class CustomersContacts {
452
470
  kind?: ContactActivityKind;
453
471
  note?: string;
454
472
  occurredAt?: string;
455
- }): Promise<Models.Error>;
473
+ }): Promise<Models.ContactEvent>;
456
474
  /**
457
475
  * This is how a call, a visit, a meeting, an email or a plain note reaches one person's timeline. It writes a contact_events row with kind != 'system' and emits contact_event.created, so an activity travels on the same bus as a registration decision and a timeline is one query rather than a union. organization_id is DERIVED from the contact, never taken from the body — an activity cannot be filed under a company the person does not belong to.
458
476
  *
@@ -463,10 +481,10 @@ declare class CustomersContacts {
463
481
  * @param {string} note - The long form. Stored inside the event payload as `note`, not as a column of its own.
464
482
  * @param {string} occurredAt - When it actually happened. Defaults to now — a call logged on Monday about Friday should say Friday.
465
483
  * @throws {RevenexxException}
466
- * @returns {Promise<Models.Error>}
484
+ * @returns {Promise<Models.ContactEvent>}
467
485
  * @deprecated Use the object parameter style method for a better developer experience.
468
486
  */
469
- customersContactsEventsCreate(contactId: string, subject: string, actor?: string, kind?: ContactActivityKind, note?: string, occurredAt?: string): Promise<Models.Error>;
487
+ customersContactsEventsCreate(contactId: string, subject: string, actor?: string, kind?: ContactActivityKind, note?: string, occurredAt?: string): Promise<Models.ContactEvent>;
470
488
  /**
471
489
  * Tell somebody they were added to a company. A deliberate act rather than a side effect of creating the contact: a merchant entering a colleague from a business card is not always ready to mail them, and "added" and "told" are different decisions. No secret travels — the platform team membership is confirmed as it is created, so there is nothing to accept; the message says "you are in, here is the way in". Unlike the auth mails, a failure here IS a failure: the identity service sends nothing for this occasion, so this is the only message the person gets.
472
490
  *
@@ -474,13 +492,13 @@ declare class CustomersContacts {
474
492
  * @param {string} params.url - Where the invitation points — the storefront sign-in, normally. There is no token in it: the person is already a member and only has to sign in.
475
493
  * @param {string} params.invitedBy - Who did the inviting, as the recipient should read it. Absent, the company name is used — "Beispiel GmbH invited you" reads better than the name of somebody they have never heard of.
476
494
  * @throws {RevenexxException}
477
- * @returns {Promise<Models.Error>}
495
+ * @returns {Promise<Models.ContactInviteResponse>}
478
496
  */
479
497
  customersContactsInvite(params: {
480
498
  contactId: string;
481
499
  url: string;
482
500
  invitedBy?: string;
483
- }): Promise<Models.Error>;
501
+ }): Promise<Models.ContactInviteResponse>;
484
502
  /**
485
503
  * Tell somebody they were added to a company. A deliberate act rather than a side effect of creating the contact: a merchant entering a colleague from a business card is not always ready to mail them, and "added" and "told" are different decisions. No secret travels — the platform team membership is confirmed as it is created, so there is nothing to accept; the message says "you are in, here is the way in". Unlike the auth mails, a failure here IS a failure: the identity service sends nothing for this occasion, so this is the only message the person gets.
486
504
  *
@@ -488,51 +506,51 @@ declare class CustomersContacts {
488
506
  * @param {string} url - Where the invitation points — the storefront sign-in, normally. There is no token in it: the person is already a member and only has to sign in.
489
507
  * @param {string} invitedBy - Who did the inviting, as the recipient should read it. Absent, the company name is used — "Beispiel GmbH invited you" reads better than the name of somebody they have never heard of.
490
508
  * @throws {RevenexxException}
491
- * @returns {Promise<Models.Error>}
509
+ * @returns {Promise<Models.ContactInviteResponse>}
492
510
  * @deprecated Use the object parameter style method for a better developer experience.
493
511
  */
494
- customersContactsInvite(contactId: string, url: string, invitedBy?: string): Promise<Models.Error>;
512
+ customersContactsInvite(contactId: string, url: string, invitedBy?: string): Promise<Models.ContactInviteResponse>;
495
513
  /**
496
514
  * Computed from contacts.role on every call — the grants are never persisted, so this always reflects the role the contact holds right now.
497
515
  *
498
516
  * @param {string} params.contactId - The person whose grants are being read.
499
517
  * @throws {RevenexxException}
500
- * @returns {Promise<Models.Error>}
518
+ * @returns {Promise<Models.ContactPermissions>}
501
519
  */
502
520
  customersContactsPermissions(params: {
503
521
  contactId: string;
504
- }): Promise<Models.Error>;
522
+ }): Promise<Models.ContactPermissions>;
505
523
  /**
506
524
  * Computed from contacts.role on every call — the grants are never persisted, so this always reflects the role the contact holds right now.
507
525
  *
508
526
  * @param {string} contactId - The person whose grants are being read.
509
527
  * @throws {RevenexxException}
510
- * @returns {Promise<Models.Error>}
528
+ * @returns {Promise<Models.ContactPermissions>}
511
529
  * @deprecated Use the object parameter style method for a better developer experience.
512
530
  */
513
- customersContactsPermissions(contactId: string): Promise<Models.Error>;
531
+ customersContactsPermissions(contactId: string): Promise<Models.ContactPermissions>;
514
532
  /**
515
533
  * Only reachable for a contact whose registration_status is 'pending' or 'rejected' (approving a rejection reinstates it). Enables the platform user FIRST — the password the applicant chose at submit time works immediately, no new credential is issued — then sets registration_status='approved' and status='active', and un-blocks the organization this registration itself founded. Approving an already-approved registration is a no-op that emits nothing, so a retry is safe. Writes a contact_events row named 'registration.approved'.
516
534
  *
517
535
  * @param {string} params.contactId - The applicant. It is the CONTACT that is approved — the organization it founded is unblocked with it.
518
536
  * @param {string} params.decidedBy - Who approved it — recorded on the contact and carried in the event. Free text (operator id or email); this app does not resolve it.
519
537
  * @throws {RevenexxException}
520
- * @returns {Promise<Models.Error>}
538
+ * @returns {Promise<Models.Contact>}
521
539
  */
522
540
  customersRegistrationsApprove(params: {
523
541
  contactId: string;
524
542
  decidedBy?: string;
525
- }): Promise<Models.Error>;
543
+ }): Promise<Models.Contact>;
526
544
  /**
527
545
  * Only reachable for a contact whose registration_status is 'pending' or 'rejected' (approving a rejection reinstates it). Enables the platform user FIRST — the password the applicant chose at submit time works immediately, no new credential is issued — then sets registration_status='approved' and status='active', and un-blocks the organization this registration itself founded. Approving an already-approved registration is a no-op that emits nothing, so a retry is safe. Writes a contact_events row named 'registration.approved'.
528
546
  *
529
547
  * @param {string} contactId - The applicant. It is the CONTACT that is approved — the organization it founded is unblocked with it.
530
548
  * @param {string} decidedBy - Who approved it — recorded on the contact and carried in the event. Free text (operator id or email); this app does not resolve it.
531
549
  * @throws {RevenexxException}
532
- * @returns {Promise<Models.Error>}
550
+ * @returns {Promise<Models.Contact>}
533
551
  * @deprecated Use the object parameter style method for a better developer experience.
534
552
  */
535
- customersRegistrationsApprove(contactId: string, decidedBy?: string): Promise<Models.Error>;
553
+ customersRegistrationsApprove(contactId: string, decidedBy?: string): Promise<Models.Contact>;
536
554
  /**
537
555
  * Only reachable from 'pending'. Sets registration_status='rejected' and status='blocked', keeps the platform user in place but disabled — the email must not fall free for a silent second identity, and the merchant keeps the record. Delete the contact to remove both. 'reason' is mandatory and is stored on the contact plus carried in the event payload, so the applicant can be told why. Rejecting an already-rejected registration is a no-op. Writes a contact_events row named 'registration.rejected'.
538
556
  *
@@ -540,13 +558,13 @@ declare class CustomersContacts {
540
558
  * @param {string} params.reason - Why the application was declined. Always stored on the contact. It only reaches the APPLICANT when the tenant's registration_reason_disclosed setting is on — the event payload then carries it, and so does the 403 the login answers.
541
559
  * @param {string} params.decidedBy - Who rejected it — recorded on the contact and carried in the event.
542
560
  * @throws {RevenexxException}
543
- * @returns {Promise<Models.Error>}
561
+ * @returns {Promise<Models.Contact>}
544
562
  */
545
563
  customersRegistrationsReject(params: {
546
564
  contactId: string;
547
565
  reason: string;
548
566
  decidedBy?: string;
549
- }): Promise<Models.Error>;
567
+ }): Promise<Models.Contact>;
550
568
  /**
551
569
  * Only reachable from 'pending'. Sets registration_status='rejected' and status='blocked', keeps the platform user in place but disabled — the email must not fall free for a silent second identity, and the merchant keeps the record. Delete the contact to remove both. 'reason' is mandatory and is stored on the contact plus carried in the event payload, so the applicant can be told why. Rejecting an already-rejected registration is a no-op. Writes a contact_events row named 'registration.rejected'.
552
570
  *
@@ -554,48 +572,48 @@ declare class CustomersContacts {
554
572
  * @param {string} reason - Why the application was declined. Always stored on the contact. It only reaches the APPLICANT when the tenant's registration_reason_disclosed setting is on — the event payload then carries it, and so does the 403 the login answers.
555
573
  * @param {string} decidedBy - Who rejected it — recorded on the contact and carried in the event.
556
574
  * @throws {RevenexxException}
557
- * @returns {Promise<Models.Error>}
575
+ * @returns {Promise<Models.Contact>}
558
576
  * @deprecated Use the object parameter style method for a better developer experience.
559
577
  */
560
- customersRegistrationsReject(contactId: string, reason: string, decidedBy?: string): Promise<Models.Error>;
578
+ customersRegistrationsReject(contactId: string, reason: string, decidedBy?: string): Promise<Models.Contact>;
561
579
  /**
562
580
  * A contact is a PERSON, and the unit that logs in: one platform user, one email address, one role held inside its organization. A contact without an organization is a standalone buyer rather than an error, and two people at the same company are two contacts sharing an `organization_id`. Removes the person and their platform login, so they can no longer sign in anywhere. Their company keeps trading; use `status: "blocked"` instead when the intent is to stop one person without erasing what they did. Deleting one takes every `contact_events` and `addresses` row that points at it with it — the foreign keys decide, not this route.
563
581
  *
564
582
  * @param {string} params.id - The contact to delete.
565
583
  * @throws {RevenexxException}
566
- * @returns {Promise<Models.Error>}
584
+ * @returns {Promise<{}>}
567
585
  */
568
586
  customersContactsDelete(params: {
569
587
  id: string;
570
- }): Promise<Models.Error>;
588
+ }): Promise<{}>;
571
589
  /**
572
590
  * A contact is a PERSON, and the unit that logs in: one platform user, one email address, one role held inside its organization. A contact without an organization is a standalone buyer rather than an error, and two people at the same company are two contacts sharing an `organization_id`. Removes the person and their platform login, so they can no longer sign in anywhere. Their company keeps trading; use `status: "blocked"` instead when the intent is to stop one person without erasing what they did. Deleting one takes every `contact_events` and `addresses` row that points at it with it — the foreign keys decide, not this route.
573
591
  *
574
592
  * @param {string} id - The contact to delete.
575
593
  * @throws {RevenexxException}
576
- * @returns {Promise<Models.Error>}
594
+ * @returns {Promise<{}>}
577
595
  * @deprecated Use the object parameter style method for a better developer experience.
578
596
  */
579
- customersContactsDelete(id: string): Promise<Models.Error>;
597
+ customersContactsDelete(id: string): Promise<{}>;
580
598
  /**
581
599
  * A contact is a PERSON, and the unit that logs in: one platform user, one email address, one role held inside its organization. A contact without an organization is a standalone buyer rather than an error, and two people at the same company are two contacts sharing an `organization_id`. One person by id. What they are ALLOWED to do is not in here: permissions are derived from `role` at read time and answered by `GET /customers/contacts/{contact_id}/permissions`.
582
600
  *
583
601
  * @param {string} params.id - The contact to read.
584
602
  * @throws {RevenexxException}
585
- * @returns {Promise<Models.Error>}
603
+ * @returns {Promise<Models.Contact>}
586
604
  */
587
605
  customersContactsGet(params: {
588
606
  id: string;
589
- }): Promise<Models.Error>;
607
+ }): Promise<Models.Contact>;
590
608
  /**
591
609
  * A contact is a PERSON, and the unit that logs in: one platform user, one email address, one role held inside its organization. A contact without an organization is a standalone buyer rather than an error, and two people at the same company are two contacts sharing an `organization_id`. One person by id. What they are ALLOWED to do is not in here: permissions are derived from `role` at read time and answered by `GET /customers/contacts/{contact_id}/permissions`.
592
610
  *
593
611
  * @param {string} id - The contact to read.
594
612
  * @throws {RevenexxException}
595
- * @returns {Promise<Models.Error>}
613
+ * @returns {Promise<Models.Contact>}
596
614
  * @deprecated Use the object parameter style method for a better developer experience.
597
615
  */
598
- customersContactsGet(id: string): Promise<Models.Error>;
616
+ customersContactsGet(id: string): Promise<Models.Contact>;
599
617
  /**
600
618
  * A contact is a PERSON, and the unit that logs in: one platform user, one email address, one role held inside its organization. A contact without an organization is a standalone buyer rather than an error, and two people at the same company are two contacts sharing an `organization_id`. A partial update — send only what changes. `external_user_id` and every `registration_*` column are ignored: the link to platform auth is mirror-managed, and registration state is only ever moved by the approve and reject routes, which record why. Two rows of this tenant may not share `email` or `external_user_id` (while external_user_id IS NOT NULL).
601
619
  *
@@ -613,7 +631,7 @@ declare class CustomersContacts {
613
631
  * @param {string} params.role - The person's role INSIDE its organization, and the only thing permissions are derived from. One of the tenant's own roles (GET /customers/roles); a tenant that never edited the ledger has viewer, requester, buyer, approver, admin. Also the team role on the platform mirror. There is no global role — the same person in two companies is two contacts. A tenant that never edited the ledger has viewer, requester, buyer, approver, admin; a create without a role gets the one flagged as default, and a role the tenant does not keep is a 400.
614
632
  * @param {ContactStatus} params.status - Whether this person may act: 'invited' has been created but has not accepted, 'active' works, 'blocked' cannot log in. A create through the API defaults to 'invited'; a self-registration in an open store lands 'active'. Default 'invited' on create.
615
633
  * @throws {RevenexxException}
616
- * @returns {Promise<Models.Error>}
634
+ * @returns {Promise<Models.Contact>}
617
635
  */
618
636
  customersContactsUpdate(params: {
619
637
  id: string;
@@ -629,7 +647,7 @@ declare class CustomersContacts {
629
647
  registrationStatus?: CustomersContactsCreateRegistrationStatus;
630
648
  role?: string;
631
649
  status?: ContactStatus;
632
- }): Promise<Models.Error>;
650
+ }): Promise<Models.Contact>;
633
651
  /**
634
652
  * A contact is a PERSON, and the unit that logs in: one platform user, one email address, one role held inside its organization. A contact without an organization is a standalone buyer rather than an error, and two people at the same company are two contacts sharing an `organization_id`. A partial update — send only what changes. `external_user_id` and every `registration_*` column are ignored: the link to platform auth is mirror-managed, and registration state is only ever moved by the approve and reject routes, which record why. Two rows of this tenant may not share `email` or `external_user_id` (while external_user_id IS NOT NULL).
635
653
  *
@@ -647,10 +665,10 @@ declare class CustomersContacts {
647
665
  * @param {string} role - The person's role INSIDE its organization, and the only thing permissions are derived from. One of the tenant's own roles (GET /customers/roles); a tenant that never edited the ledger has viewer, requester, buyer, approver, admin. Also the team role on the platform mirror. There is no global role — the same person in two companies is two contacts. A tenant that never edited the ledger has viewer, requester, buyer, approver, admin; a create without a role gets the one flagged as default, and a role the tenant does not keep is a 400.
648
666
  * @param {ContactStatus} status - Whether this person may act: 'invited' has been created but has not accepted, 'active' works, 'blocked' cannot log in. A create through the API defaults to 'invited'; a self-registration in an open store lands 'active'. Default 'invited' on create.
649
667
  * @throws {RevenexxException}
650
- * @returns {Promise<Models.Error>}
668
+ * @returns {Promise<Models.Contact>}
651
669
  * @deprecated Use the object parameter style method for a better developer experience.
652
670
  */
653
- customersContactsUpdate(id: string, email?: string, firstName?: string, isPrimary?: boolean, jobTitle?: string, lastName?: string, locale?: string, orderApprovalLimit?: number, organizationId?: string, phone?: string, registrationStatus?: CustomersContactsCreateRegistrationStatus, role?: string, status?: ContactStatus): Promise<Models.Error>;
671
+ customersContactsUpdate(id: string, email?: string, firstName?: string, isPrimary?: boolean, jobTitle?: string, lastName?: string, locale?: string, orderApprovalLimit?: number, organizationId?: string, phone?: string, registrationStatus?: CustomersContactsCreateRegistrationStatus, role?: string, status?: ContactStatus): Promise<Models.Contact>;
654
672
  /**
655
673
  * Same row as the contact route, reached from the organization. 'contact_id' is required and must belong to THIS organization — the picker offering the contacts is not filtered, so the membership check here is what stops a call with one company being filed under someone else's person.
656
674
  *
@@ -662,7 +680,7 @@ declare class CustomersContacts {
662
680
  * @param {string} params.note - The long form. Stored inside the event payload as `note`, not as a column of its own.
663
681
  * @param {string} params.occurredAt - When it actually happened. Defaults to now — a call logged on Monday about Friday should say Friday.
664
682
  * @throws {RevenexxException}
665
- * @returns {Promise<Models.Error>}
683
+ * @returns {Promise<Models.ContactEvent>}
666
684
  */
667
685
  customersOrganizationsEventsCreate(params: {
668
686
  organizationId: string;
@@ -672,7 +690,7 @@ declare class CustomersContacts {
672
690
  kind?: ContactActivityKind;
673
691
  note?: string;
674
692
  occurredAt?: string;
675
- }): Promise<Models.Error>;
693
+ }): Promise<Models.ContactEvent>;
676
694
  /**
677
695
  * Same row as the contact route, reached from the organization. 'contact_id' is required and must belong to THIS organization — the picker offering the contacts is not filtered, so the membership check here is what stops a call with one company being filed under someone else's person.
678
696
  *
@@ -684,10 +702,10 @@ declare class CustomersContacts {
684
702
  * @param {string} note - The long form. Stored inside the event payload as `note`, not as a column of its own.
685
703
  * @param {string} occurredAt - When it actually happened. Defaults to now — a call logged on Monday about Friday should say Friday.
686
704
  * @throws {RevenexxException}
687
- * @returns {Promise<Models.Error>}
705
+ * @returns {Promise<Models.ContactEvent>}
688
706
  * @deprecated Use the object parameter style method for a better developer experience.
689
707
  */
690
- customersOrganizationsEventsCreate(organizationId: string, contactId: string, subject: string, actor?: string, kind?: ContactActivityKind, note?: string, occurredAt?: string): Promise<Models.Error>;
708
+ customersOrganizationsEventsCreate(organizationId: string, contactId: string, subject: string, actor?: string, kind?: ContactActivityKind, note?: string, occurredAt?: string): Promise<Models.ContactEvent>;
691
709
  }
692
710
 
693
711
  export { CustomersContacts };