@djust-b2b/djust-front-sdk 3.0.0-beta.2 → 3.0.0-beta.20

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 (331) hide show
  1. package/README.md +51 -7
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/.tsbuildinfo-esm +1 -0
  4. package/dist/client/create-client.d.ts +248 -0
  5. package/dist/client/create-client.d.ts.map +1 -0
  6. package/dist/client/index.d.ts +14 -0
  7. package/dist/client/index.d.ts.map +1 -0
  8. package/dist/client/performance.d.ts +203 -0
  9. package/dist/client/performance.d.ts.map +1 -0
  10. package/dist/client/transport.d.ts +372 -0
  11. package/dist/client/transport.d.ts.map +1 -0
  12. package/dist/errors/base.d.ts +101 -0
  13. package/dist/errors/base.d.ts.map +1 -0
  14. package/dist/errors/classes/auth.error.d.ts +64 -0
  15. package/dist/errors/classes/auth.error.d.ts.map +1 -0
  16. package/dist/errors/classes/forbidden.error.d.ts +52 -0
  17. package/dist/errors/classes/forbidden.error.d.ts.map +1 -0
  18. package/dist/errors/classes/index.d.ts +17 -0
  19. package/dist/errors/classes/index.d.ts.map +1 -0
  20. package/dist/errors/classes/network.error.d.ts +63 -0
  21. package/dist/errors/classes/network.error.d.ts.map +1 -0
  22. package/dist/errors/classes/not-found.error.d.ts +58 -0
  23. package/dist/errors/classes/not-found.error.d.ts.map +1 -0
  24. package/dist/errors/classes/rate-limit.error.d.ts +49 -0
  25. package/dist/errors/classes/rate-limit.error.d.ts.map +1 -0
  26. package/dist/errors/classes/server.error.d.ts +63 -0
  27. package/dist/errors/classes/server.error.d.ts.map +1 -0
  28. package/dist/errors/classes/timeout.error.d.ts +64 -0
  29. package/dist/errors/classes/timeout.error.d.ts.map +1 -0
  30. package/dist/errors/classes/unexpected.error.d.ts +70 -0
  31. package/dist/errors/classes/unexpected.error.d.ts.map +1 -0
  32. package/dist/errors/classes/validation.error.d.ts +68 -0
  33. package/dist/errors/classes/validation.error.d.ts.map +1 -0
  34. package/dist/errors/codes.d.ts +111 -0
  35. package/dist/errors/codes.d.ts.map +1 -0
  36. package/dist/errors/compat.d.ts +99 -0
  37. package/dist/errors/compat.d.ts.map +1 -0
  38. package/dist/errors/factory.d.ts +33 -0
  39. package/dist/errors/factory.d.ts.map +1 -0
  40. package/dist/errors/guards.d.ts +142 -0
  41. package/dist/errors/guards.d.ts.map +1 -0
  42. package/dist/errors/index.d.ts +25 -0
  43. package/dist/errors/index.d.ts.map +1 -0
  44. package/dist/errors/types.d.ts +100 -0
  45. package/dist/errors/types.d.ts.map +1 -0
  46. package/dist/helpers/index.d.ts +42 -0
  47. package/dist/helpers/index.d.ts.map +1 -0
  48. package/dist/helpers/parameters-validation.d.ts +3 -0
  49. package/dist/helpers/parameters-validation.d.ts.map +1 -0
  50. package/dist/helpers/utils.d.ts +5 -0
  51. package/dist/helpers/utils.d.ts.map +1 -0
  52. package/dist/index.cjs +182 -0
  53. package/dist/index.d.ts +266 -0
  54. package/dist/index.d.ts.map +1 -0
  55. package/dist/index.mjs +11611 -0
  56. package/dist/interfaces/index.d.ts +31 -0
  57. package/dist/interfaces/index.d.ts.map +1 -0
  58. package/dist/interfaces/models/address.d.ts +61 -0
  59. package/dist/interfaces/models/address.d.ts.map +1 -0
  60. package/dist/interfaces/models/attribute.d.ts +31 -0
  61. package/dist/interfaces/models/attribute.d.ts.map +1 -0
  62. package/dist/interfaces/models/auth.d.ts +37 -0
  63. package/dist/interfaces/models/auth.d.ts.map +1 -0
  64. package/dist/interfaces/models/cart.d.ts +64 -0
  65. package/dist/interfaces/models/cart.d.ts.map +1 -0
  66. package/dist/interfaces/models/common.d.ts +68 -0
  67. package/dist/interfaces/models/common.d.ts.map +1 -0
  68. package/dist/interfaces/models/custom-field.d.ts +57 -0
  69. package/dist/interfaces/models/custom-field.d.ts.map +1 -0
  70. package/dist/interfaces/models/customer-account.d.ts +52 -0
  71. package/dist/interfaces/models/customer-account.d.ts.map +1 -0
  72. package/dist/interfaces/models/customer-organisation.d.ts +14 -0
  73. package/dist/interfaces/models/customer-organisation.d.ts.map +1 -0
  74. package/dist/interfaces/models/customer-user.d.ts +114 -0
  75. package/dist/interfaces/models/customer-user.d.ts.map +1 -0
  76. package/dist/interfaces/models/incident.d.ts +37 -0
  77. package/dist/interfaces/models/incident.d.ts.map +1 -0
  78. package/dist/interfaces/models/navigation-category.d.ts +22 -0
  79. package/dist/interfaces/models/navigation-category.d.ts.map +1 -0
  80. package/dist/interfaces/models/offer.d.ts +151 -0
  81. package/dist/interfaces/models/offer.d.ts.map +1 -0
  82. package/dist/interfaces/models/order.d.ts +701 -0
  83. package/dist/interfaces/models/order.d.ts.map +1 -0
  84. package/dist/interfaces/models/payment.d.ts +20 -0
  85. package/dist/interfaces/models/payment.d.ts.map +1 -0
  86. package/dist/interfaces/models/price.d.ts +6 -0
  87. package/dist/interfaces/models/price.d.ts.map +1 -0
  88. package/dist/interfaces/models/product.d.ts +243 -0
  89. package/dist/interfaces/models/product.d.ts.map +1 -0
  90. package/dist/interfaces/models/quote.d.ts +77 -0
  91. package/dist/interfaces/models/quote.d.ts.map +1 -0
  92. package/dist/interfaces/models/searchProduct.d.ts +128 -0
  93. package/dist/interfaces/models/searchProduct.d.ts.map +1 -0
  94. package/dist/interfaces/models/supplier.d.ts +72 -0
  95. package/dist/interfaces/models/supplier.d.ts.map +1 -0
  96. package/dist/services/attributes/attributes.service.d.ts +18 -0
  97. package/dist/services/attributes/attributes.service.d.ts.map +1 -0
  98. package/dist/services/attributes/definitions.d.ts +28 -0
  99. package/dist/services/attributes/definitions.d.ts.map +1 -0
  100. package/dist/services/attributes/endpoints.d.ts +12 -0
  101. package/dist/services/attributes/endpoints.d.ts.map +1 -0
  102. package/dist/services/attributes/index.d.ts +33 -0
  103. package/dist/services/attributes/index.d.ts.map +1 -0
  104. package/dist/services/attributes/module.d.ts +11 -0
  105. package/dist/services/attributes/module.d.ts.map +1 -0
  106. package/dist/services/attributes/types.d.ts +35 -0
  107. package/dist/services/attributes/types.d.ts.map +1 -0
  108. package/dist/services/auth/__mocks__/auth.mocks.d.ts +249 -0
  109. package/dist/services/auth/__mocks__/auth.mocks.d.ts.map +1 -0
  110. package/dist/services/auth/auth.service.d.ts +286 -0
  111. package/dist/services/auth/auth.service.d.ts.map +1 -0
  112. package/dist/services/auth/definitions.d.ts +69 -0
  113. package/dist/services/auth/definitions.d.ts.map +1 -0
  114. package/dist/services/auth/definitions.requests.d.ts +25 -0
  115. package/dist/services/auth/definitions.requests.d.ts.map +1 -0
  116. package/dist/services/auth/endpoints.d.ts +30 -0
  117. package/dist/services/auth/endpoints.d.ts.map +1 -0
  118. package/dist/services/auth/index.d.ts +232 -0
  119. package/dist/services/auth/index.d.ts.map +1 -0
  120. package/dist/services/auth/module.d.ts +11 -0
  121. package/dist/services/auth/module.d.ts.map +1 -0
  122. package/dist/services/auth/types.d.ts +124 -0
  123. package/dist/services/auth/types.d.ts.map +1 -0
  124. package/dist/services/base.service.d.ts +83 -0
  125. package/dist/services/base.service.d.ts.map +1 -0
  126. package/dist/services/cart/cart.service.d.ts +443 -0
  127. package/dist/services/cart/cart.service.d.ts.map +1 -0
  128. package/dist/services/cart/definitions.d.ts +84 -0
  129. package/dist/services/cart/definitions.d.ts.map +1 -0
  130. package/dist/services/cart/endpoints.d.ts +24 -0
  131. package/dist/services/cart/endpoints.d.ts.map +1 -0
  132. package/dist/services/cart/index.d.ts +330 -0
  133. package/dist/services/cart/index.d.ts.map +1 -0
  134. package/dist/services/cart/module.d.ts +11 -0
  135. package/dist/services/cart/module.d.ts.map +1 -0
  136. package/dist/services/cart/types.d.ts +236 -0
  137. package/dist/services/cart/types.d.ts.map +1 -0
  138. package/dist/services/commercial-order/commercial-order.service.d.ts +435 -0
  139. package/dist/services/commercial-order/commercial-order.service.d.ts.map +1 -0
  140. package/dist/services/commercial-order/definitions.d.ts +181 -0
  141. package/dist/services/commercial-order/definitions.d.ts.map +1 -0
  142. package/dist/services/commercial-order/endpoints.d.ts +28 -0
  143. package/dist/services/commercial-order/endpoints.d.ts.map +1 -0
  144. package/dist/services/commercial-order/index.d.ts +712 -0
  145. package/dist/services/commercial-order/index.d.ts.map +1 -0
  146. package/dist/services/commercial-order/module.d.ts +11 -0
  147. package/dist/services/commercial-order/module.d.ts.map +1 -0
  148. package/dist/services/commercial-order/types.d.ts +244 -0
  149. package/dist/services/commercial-order/types.d.ts.map +1 -0
  150. package/dist/services/custom-field/custom-field.service.d.ts +23 -0
  151. package/dist/services/custom-field/custom-field.service.d.ts.map +1 -0
  152. package/dist/services/custom-field/definitions.d.ts +107 -0
  153. package/dist/services/custom-field/definitions.d.ts.map +1 -0
  154. package/dist/services/custom-field/endpoints.d.ts +13 -0
  155. package/dist/services/custom-field/endpoints.d.ts.map +1 -0
  156. package/dist/services/custom-field/index.d.ts +115 -0
  157. package/dist/services/custom-field/index.d.ts.map +1 -0
  158. package/dist/services/custom-field/module.d.ts +11 -0
  159. package/dist/services/custom-field/module.d.ts.map +1 -0
  160. package/dist/services/custom-field/types.d.ts +51 -0
  161. package/dist/services/custom-field/types.d.ts.map +1 -0
  162. package/dist/services/customer-account/customer-account.service.d.ts +387 -0
  163. package/dist/services/customer-account/customer-account.service.d.ts.map +1 -0
  164. package/dist/services/customer-account/definitions.d.ts +164 -0
  165. package/dist/services/customer-account/definitions.d.ts.map +1 -0
  166. package/dist/services/customer-account/endpoints.d.ts +25 -0
  167. package/dist/services/customer-account/endpoints.d.ts.map +1 -0
  168. package/dist/services/customer-account/index.d.ts +656 -0
  169. package/dist/services/customer-account/index.d.ts.map +1 -0
  170. package/dist/services/customer-account/module.d.ts +11 -0
  171. package/dist/services/customer-account/module.d.ts.map +1 -0
  172. package/dist/services/customer-account/types.d.ts +253 -0
  173. package/dist/services/customer-account/types.d.ts.map +1 -0
  174. package/dist/services/customer-user/customer-user.service.d.ts +280 -0
  175. package/dist/services/customer-user/customer-user.service.d.ts.map +1 -0
  176. package/dist/services/customer-user/definitions.d.ts +84 -0
  177. package/dist/services/customer-user/definitions.d.ts.map +1 -0
  178. package/dist/services/customer-user/endpoints.d.ts +19 -0
  179. package/dist/services/customer-user/endpoints.d.ts.map +1 -0
  180. package/dist/services/customer-user/index.d.ts +394 -0
  181. package/dist/services/customer-user/index.d.ts.map +1 -0
  182. package/dist/services/customer-user/module.d.ts +11 -0
  183. package/dist/services/customer-user/module.d.ts.map +1 -0
  184. package/dist/services/customer-user/types.d.ts +118 -0
  185. package/dist/services/customer-user/types.d.ts.map +1 -0
  186. package/dist/services/factory.d.ts +104 -0
  187. package/dist/services/factory.d.ts.map +1 -0
  188. package/dist/services/incident/definitions.d.ts +85 -0
  189. package/dist/services/incident/definitions.d.ts.map +1 -0
  190. package/dist/services/incident/endpoints.d.ts +17 -0
  191. package/dist/services/incident/endpoints.d.ts.map +1 -0
  192. package/dist/services/incident/incident.service.d.ts +24 -0
  193. package/dist/services/incident/incident.service.d.ts.map +1 -0
  194. package/dist/services/incident/index.d.ts +270 -0
  195. package/dist/services/incident/index.d.ts.map +1 -0
  196. package/dist/services/incident/module.d.ts +11 -0
  197. package/dist/services/incident/module.d.ts.map +1 -0
  198. package/dist/services/incident/types.d.ts +116 -0
  199. package/dist/services/incident/types.d.ts.map +1 -0
  200. package/dist/services/logistic-order/definitions.d.ts +296 -0
  201. package/dist/services/logistic-order/definitions.d.ts.map +1 -0
  202. package/dist/services/logistic-order/endpoints.d.ts +44 -0
  203. package/dist/services/logistic-order/endpoints.d.ts.map +1 -0
  204. package/dist/services/logistic-order/index.d.ts +1338 -0
  205. package/dist/services/logistic-order/index.d.ts.map +1 -0
  206. package/dist/services/logistic-order/logistic-order.service.d.ts +62 -0
  207. package/dist/services/logistic-order/logistic-order.service.d.ts.map +1 -0
  208. package/dist/services/logistic-order/module.d.ts +11 -0
  209. package/dist/services/logistic-order/module.d.ts.map +1 -0
  210. package/dist/services/logistic-order/types.d.ts +411 -0
  211. package/dist/services/logistic-order/types.d.ts.map +1 -0
  212. package/dist/services/module.d.ts +64 -0
  213. package/dist/services/module.d.ts.map +1 -0
  214. package/dist/services/navigation-category/definitions.d.ts +31 -0
  215. package/dist/services/navigation-category/definitions.d.ts.map +1 -0
  216. package/dist/services/navigation-category/endpoints.d.ts +15 -0
  217. package/dist/services/navigation-category/endpoints.d.ts.map +1 -0
  218. package/dist/services/navigation-category/index.d.ts +114 -0
  219. package/dist/services/navigation-category/index.d.ts.map +1 -0
  220. package/dist/services/navigation-category/module.d.ts +11 -0
  221. package/dist/services/navigation-category/module.d.ts.map +1 -0
  222. package/dist/services/navigation-category/navigation-category.service.d.ts +148 -0
  223. package/dist/services/navigation-category/navigation-category.service.d.ts.map +1 -0
  224. package/dist/services/navigation-category/types.d.ts +51 -0
  225. package/dist/services/navigation-category/types.d.ts.map +1 -0
  226. package/dist/services/offer-inventories/definitions.d.ts +73 -0
  227. package/dist/services/offer-inventories/definitions.d.ts.map +1 -0
  228. package/dist/services/offer-inventories/endpoints.d.ts +16 -0
  229. package/dist/services/offer-inventories/endpoints.d.ts.map +1 -0
  230. package/dist/services/offer-inventories/index.d.ts +120 -0
  231. package/dist/services/offer-inventories/index.d.ts.map +1 -0
  232. package/dist/services/offer-inventories/module.d.ts +11 -0
  233. package/dist/services/offer-inventories/module.d.ts.map +1 -0
  234. package/dist/services/offer-inventories/offer-inventories.service.d.ts +26 -0
  235. package/dist/services/offer-inventories/offer-inventories.service.d.ts.map +1 -0
  236. package/dist/services/offer-inventories/types.d.ts +85 -0
  237. package/dist/services/offer-inventories/types.d.ts.map +1 -0
  238. package/dist/services/offer-prices/__mocks__/offer-prices.mocks.d.ts +109 -0
  239. package/dist/services/offer-prices/__mocks__/offer-prices.mocks.d.ts.map +1 -0
  240. package/dist/services/offer-prices/definitions.d.ts +24 -0
  241. package/dist/services/offer-prices/definitions.d.ts.map +1 -0
  242. package/dist/services/offer-prices/endpoints.d.ts +12 -0
  243. package/dist/services/offer-prices/endpoints.d.ts.map +1 -0
  244. package/dist/services/offer-prices/index.d.ts +36 -0
  245. package/dist/services/offer-prices/index.d.ts.map +1 -0
  246. package/dist/services/offer-prices/module.d.ts +11 -0
  247. package/dist/services/offer-prices/module.d.ts.map +1 -0
  248. package/dist/services/offer-prices/offer-prices.service.d.ts +18 -0
  249. package/dist/services/offer-prices/offer-prices.service.d.ts.map +1 -0
  250. package/dist/services/offer-prices/types.d.ts +33 -0
  251. package/dist/services/offer-prices/types.d.ts.map +1 -0
  252. package/dist/services/operation/definitions.d.ts +280 -0
  253. package/dist/services/operation/definitions.d.ts.map +1 -0
  254. package/dist/services/operation/endpoints.d.ts +18 -0
  255. package/dist/services/operation/endpoints.d.ts.map +1 -0
  256. package/dist/services/operation/index.d.ts +520 -0
  257. package/dist/services/operation/index.d.ts.map +1 -0
  258. package/dist/services/operation/module.d.ts +11 -0
  259. package/dist/services/operation/module.d.ts.map +1 -0
  260. package/dist/services/operation/operation.service.d.ts +32 -0
  261. package/dist/services/operation/operation.service.d.ts.map +1 -0
  262. package/dist/services/operation/types.d.ts +174 -0
  263. package/dist/services/operation/types.d.ts.map +1 -0
  264. package/dist/services/payment/definitions.d.ts +79 -0
  265. package/dist/services/payment/definitions.d.ts.map +1 -0
  266. package/dist/services/payment/endpoints.d.ts +16 -0
  267. package/dist/services/payment/endpoints.d.ts.map +1 -0
  268. package/dist/services/payment/index.d.ts +150 -0
  269. package/dist/services/payment/index.d.ts.map +1 -0
  270. package/dist/services/payment/module.d.ts +11 -0
  271. package/dist/services/payment/module.d.ts.map +1 -0
  272. package/dist/services/payment/payment.service.d.ts +224 -0
  273. package/dist/services/payment/payment.service.d.ts.map +1 -0
  274. package/dist/services/payment/types.d.ts +93 -0
  275. package/dist/services/payment/types.d.ts.map +1 -0
  276. package/dist/services/product/definitions.d.ts +150 -0
  277. package/dist/services/product/definitions.d.ts.map +1 -0
  278. package/dist/services/product/endpoints.d.ts +40 -0
  279. package/dist/services/product/endpoints.d.ts.map +1 -0
  280. package/dist/services/product/index.d.ts +388 -0
  281. package/dist/services/product/index.d.ts.map +1 -0
  282. package/dist/services/product/module.d.ts +11 -0
  283. package/dist/services/product/module.d.ts.map +1 -0
  284. package/dist/services/product/product.service.d.ts +452 -0
  285. package/dist/services/product/product.service.d.ts.map +1 -0
  286. package/dist/services/product/types.d.ts +344 -0
  287. package/dist/services/product/types.d.ts.map +1 -0
  288. package/dist/services/product-variant/definitions.d.ts +172 -0
  289. package/dist/services/product-variant/definitions.d.ts.map +1 -0
  290. package/dist/services/product-variant/endpoints.d.ts +15 -0
  291. package/dist/services/product-variant/endpoints.d.ts.map +1 -0
  292. package/dist/services/product-variant/index.d.ts +123 -0
  293. package/dist/services/product-variant/index.d.ts.map +1 -0
  294. package/dist/services/product-variant/module.d.ts +11 -0
  295. package/dist/services/product-variant/module.d.ts.map +1 -0
  296. package/dist/services/product-variant/product-variant.service.d.ts +21 -0
  297. package/dist/services/product-variant/product-variant.service.d.ts.map +1 -0
  298. package/dist/services/product-variant/types.d.ts +73 -0
  299. package/dist/services/product-variant/types.d.ts.map +1 -0
  300. package/dist/services/quote/definitions.d.ts +102 -0
  301. package/dist/services/quote/definitions.d.ts.map +1 -0
  302. package/dist/services/quote/endpoints.d.ts +20 -0
  303. package/dist/services/quote/endpoints.d.ts.map +1 -0
  304. package/dist/services/quote/index.d.ts +378 -0
  305. package/dist/services/quote/index.d.ts.map +1 -0
  306. package/dist/services/quote/module.d.ts +11 -0
  307. package/dist/services/quote/module.d.ts.map +1 -0
  308. package/dist/services/quote/quote.service.d.ts +346 -0
  309. package/dist/services/quote/quote.service.d.ts.map +1 -0
  310. package/dist/services/quote/types.d.ts +160 -0
  311. package/dist/services/quote/types.d.ts.map +1 -0
  312. package/dist/services/supplier/__mocks__/supplier-mocks.d.ts +49 -0
  313. package/dist/services/supplier/__mocks__/supplier-mocks.d.ts.map +1 -0
  314. package/dist/services/supplier/definitions.d.ts +30 -0
  315. package/dist/services/supplier/definitions.d.ts.map +1 -0
  316. package/dist/services/supplier/endpoints.d.ts +14 -0
  317. package/dist/services/supplier/endpoints.d.ts.map +1 -0
  318. package/dist/services/supplier/index.d.ts +102 -0
  319. package/dist/services/supplier/index.d.ts.map +1 -0
  320. package/dist/services/supplier/module.d.ts +11 -0
  321. package/dist/services/supplier/module.d.ts.map +1 -0
  322. package/dist/services/supplier/supplier.service.d.ts +20 -0
  323. package/dist/services/supplier/supplier.service.d.ts.map +1 -0
  324. package/dist/services/supplier/types.d.ts +58 -0
  325. package/dist/services/supplier/types.d.ts.map +1 -0
  326. package/dist/services/types.d.ts +81 -0
  327. package/dist/services/types.d.ts.map +1 -0
  328. package/dist/settings/fetch-instance.d.ts +30 -0
  329. package/dist/settings/fetch-instance.d.ts.map +1 -0
  330. package/package.json +12 -10
  331. package/dist/djust-b2b-djust-front-sdk-3.0.0-beta.2.tgz +0 -0
@@ -0,0 +1,656 @@
1
+ import { DjustConfig, PageableParameters } from "../../interfaces/models/common";
2
+ import { CreateCustomerAccountAddressParameters, CreateCustomerAccountAddressResponse, CreateCustomerAccountOrganisationParameters, CreateCustomerAccountOrganisationResponse, CreateCustomerAccountParameters, CreateCustomerAccountResponse, DeleteCustomerAccountAddressParameters, DeleteCustomerAccountOrganisationAddressParameters, GetCustomerAccountAddressesParameters, GetCustomerAccountAddressesResponse, GetCustomerAccountOrdersParameters, GetCustomerAccountOrdersResponse, GetCustomerAccountOrganisationAddressesParameters, GetCustomerAccountOrganisationAddressesResponse, GetCustomerAccountOrganisationOrdersParameters, GetCustomerAccountOrganisationOrdersResponse, GetCustomerAccountOrganisationResponse, GetCustomerAccountOrganisationUsersParameters, GetCustomerAccountOrganisationUsersResponse, GetCustomerAccountResponse, GetCustomerAccountUsersParameters, GetCustomerAccountUsersResponse, UpdateCustomerAccountAddressParameters, UpdateCustomerAccountAddressResponse, UpdateCustomerAccountOrganisationAddressParameters, UpdateCustomerAccountOrganisationAddressResponse, UpdateCustomerAccountOrganisationParameters, UpdateCustomerAccountOrganisationResponse, UpdateCustomerAccountOrganisationUserParameters, UpdateCustomerAccountOrganisationUserResponse, UpdateCustomerAccountParameters, UpdateCustomerAccountResponse, GetCustomerAccountResponseV2, GetCustomerAccountCustomFieldsResponse, GetCustomerAccountCustomFieldsParameters } from "./definitions";
3
+ /**
4
+ * 📄 Get customer account details.
5
+ *
6
+ * This function retrieves the detailed information of a customer account, including addresses, main contacts, custom fields, and more.
7
+ *
8
+ * 🛠 **Endpoint**: `GET /v1/shop/customer-accounts`
9
+ *
10
+ * 📤 **Returns**:
11
+ * A `Promise<GetCustomerAccountResponse>` containing the customer account details.
12
+ *
13
+ * 🛠 **Example usage**:
14
+ * ```ts
15
+ * const response = await getCustomerAccount();
16
+ * console.log(response);
17
+ * ```
18
+ */
19
+ export declare function getCustomerAccount(config?: DjustConfig): Promise<GetCustomerAccountResponse>;
20
+ /**
21
+ * 📋 Get customer accounts.
22
+ *
23
+ * This function retrieves a paginated list of customer accounts.
24
+ *
25
+ * 🛠 **Endpoint**: `GET /v2/shop/customer-accounts`
26
+ *
27
+ * | **Parameter** | **Type** | **Required** | **Description** |
28
+ * |----------------------|------------|--------------|---------------------------------------------------------------------------|
29
+ * | `pageable` | `object` | ❌ | The pagination parameters to retrieve paginated results. |
30
+ *
31
+ * 📤 **Returns**:
32
+ * A `Promise<GetCustomerAccountResponseV2>` containing the paginated list of customer accounts.
33
+ *
34
+ * 🛠 **Example usage**:
35
+ * ```typescript
36
+ * const accounts = await getCustomerAccountV2({
37
+ * pageable: { page: 0, size: 20 },
38
+ * });
39
+ * console.log(accounts);
40
+ * ```
41
+ *
42
+ * @param {PageableParameters} pageable - The pagination parameters.
43
+ * @returns {Promise<GetCustomerAccountResponseV2>} - The response containing the customer accounts.
44
+ */
45
+ export declare function getCustomerAccountV2(pageable: PageableParameters): Promise<GetCustomerAccountResponseV2>;
46
+ /**
47
+ * 📄 Creates a new customer account.
48
+ *
49
+ * This function allows the creation of a new customer account with relevant details including addresses, user information, and custom fields.
50
+ *
51
+ * 🛠 **Endpoint**: `POST /v1/shop/customer-accounts` [ACCOUNT-100]
52
+ *
53
+ * | Parameter | Type | Required | Description |
54
+ * |-----------------------------------|--------------------------------|----------|-------------|
55
+ * | `createAddressRequests` | `object[]` | ✅ | List of addresses to create, including `address`, `city`, `country`, `billing`, and `shipping` status. |
56
+ * | `createCustomerUserRequest` | `object` | ✅ | Contains user details such as `email`, `firstName`, `lastName`, `groups`, `password`, and `phone`. |
57
+ * | `createObjectCustomerAccountRequest` | `object` | ✅ | Main account details including `accountManager`, `businessRegistrationNumber`, `companyRegistrationName`, `externalId`, `name`, `vatNumber`, and `website`. |
58
+ * | `customFieldValues` | `object[]` | ✅ | List of custom fields with their `customFieldId` and `customFieldValue`. |
59
+ * | `customerTagList` | `string[]` | ✅ | List of customer tags. |
60
+ * | `fromFO` | `boolean` | ✅ | Flag indicating if the account is created from the front-office (FO). |
61
+ * | `legalUser` | `object` | ✅ | Information about the legal user including `birthday`, `countryOfResidence`, `email`, `firstName`, `lastName`, and `nationality`. |
62
+ *
63
+ * 📤 **Returns**:
64
+ * A `Promise<CreateCustomerAccountResponse>` containing the details of the created customer account.
65
+ *
66
+ * 🛠 **Example usage**:
67
+ * ```ts
68
+ * const response = await createCustomerAccount({
69
+ * createAddressRequests: [
70
+ * {
71
+ * address: "123 Main Street",
72
+ * city: "Paris",
73
+ * country: "FR",
74
+ * billing: true,
75
+ * shipping: true,
76
+ * fullName: "John Doe",
77
+ * zipcode: "75001"
78
+ * }
79
+ * ],
80
+ * createCustomerUserRequest: {
81
+ * email: "john.doe@example.com",
82
+ * firstName: "John",
83
+ * lastName: "Doe",
84
+ * password: "securePassword123",
85
+ * phone: "+33123456789"
86
+ * },
87
+ * createObjectCustomerAccountRequest: {
88
+ * name: "Acme Corporation",
89
+ * externalId: "acme-corp-001",
90
+ * vatNumber: "FR12345678901"
91
+ * },
92
+ * customFieldValues: [
93
+ * {
94
+ * customFieldId: "industry",
95
+ * customFieldValue: "technology"
96
+ * }
97
+ * ],
98
+ * customerTagList: ["premium", "enterprise"],
99
+ * fromFO: true,
100
+ * legalUser: {
101
+ * birthday: "1990-01-01T00:00:00.000Z",
102
+ * countryOfResidence: "FR",
103
+ * email: "john.doe@example.com",
104
+ * firstName: "John",
105
+ * lastName: "Doe",
106
+ * nationality: "FR"
107
+ * }
108
+ * });
109
+ * ```
110
+ *
111
+ * @param {CreateCustomerAccountParameters} params - The parameters for creating a customer account
112
+ * @throws {Error} If required parameters are missing
113
+ * @returns {Promise<CreateCustomerAccountResponse>} A promise resolving to the response containing the created customer account
114
+ */
115
+ export declare function createCustomerAccount({ createAddressRequests, createCustomerUserRequest, createObjectCustomerAccountRequest, customFieldValues, customerTagList, fromFO, legalUser, ...config }: CreateCustomerAccountParameters & DjustConfig): Promise<CreateCustomerAccountResponse>;
116
+ /**
117
+ * 📄 Update customer account details.
118
+ *
119
+ * This function allows you to update the details of an existing customer account, including account manager, registration details, tags, and more.
120
+ *
121
+ * 🛠 **Endpoint**: `PUT /v1/shop/customer-accounts`
122
+ *
123
+ * 📤 **Returns**:
124
+ * A `Promise<UpdateCustomerAccountResponse>` containing the updated customer account details.
125
+ *
126
+ * 🛠 **Example usage**:
127
+ * ```ts
128
+ * const response = await updateCustomerAccount({
129
+ * name: "Updated Company Name",
130
+ * accountManager: "John Doe",
131
+ * vatNumber: "FR12345678901",
132
+ * });
133
+ * console.log(response);
134
+ * ```
135
+ */
136
+ export declare function updateCustomerAccount({ accountManager, businessRegistrationNumber, companyRegistrationName, customFieldValues, customerTagList, legalUser, name, vatNumber, website, ...config }: UpdateCustomerAccountParameters & DjustConfig): Promise<UpdateCustomerAccountResponse>;
137
+ /**
138
+ * 📄 Get customer account's addresses.
139
+ *
140
+ * This function retrieves the addresses associated with a specific customer account, including shipping and billing addresses.
141
+ *
142
+ * 🛠 **Endpoint**: `GET /v1/shop/customer-accounts/addresses`
143
+ *
144
+ * | Parameter | Type | Required | Description |
145
+ * |---------------|-----------|----------|------------------------------------------------------|
146
+ * | `shipping` | `boolean` | ✅ | Flag to include shipping address. |
147
+ * | `billing` | `boolean` | ✅ | Flag to include billing address. |
148
+ *
149
+ * 📤 **Returns**:
150
+ * A `Promise<GetCustomerAccountAddressesResponse>` containing the addresses associated with the customer account.
151
+ *
152
+ * 🛠 **Example usage**:
153
+ * ```ts
154
+ * const response = await getCustomerAccountAddresses({ shipping: true, billing: true });
155
+ * console.log(response);
156
+ * ```
157
+ */
158
+ export declare function getCustomerAccountAddresses(params: GetCustomerAccountAddressesParameters & DjustConfig): Promise<GetCustomerAccountAddressesResponse>;
159
+ /**
160
+ * 📄 Create an address for a customer account.
161
+ *
162
+ * This function creates a new address for a specific customer account, with optional fields like shipping and billing flags.
163
+ *
164
+ * 🛠 **Endpoint**: `POST /v1/shop/customer-accounts/addresses`
165
+ *
166
+ * | Parameter | Type | Required | Description |
167
+ * |---------------------|-----------|----------|------------------------------------------------------|
168
+ * | `additionalAddress` | `string` | ❌ | Additional address line. |
169
+ * | `address` | `string` | ✅ | The main address of the customer. |
170
+ * | `billing` | `boolean` | ❌ | Flag indicating if it's a billing address. |
171
+ * | `city` | `string` | ✅ | The city of the customer address. |
172
+ * | `company` | `string` | ❌ | The company name associated with the address. |
173
+ * | `country` | `string` | ✅ | The country of the customer address. |
174
+ * | `externalId` | `string` | ❌ | External ID for the address. |
175
+ * | `fullName` | `string` | ✅ | The full name of the person associated with the address. |
176
+ * | `label` | `string` | ❌ | Label for the address. |
177
+ * | `phone` | `string` | ❌ | Phone number associated with the address. |
178
+ * | `shipping` | `boolean` | ❌ | Flag indicating if it's a shipping address. |
179
+ * | `state` | `string` | ❌ | The state/province of the customer address. |
180
+ * | `zipcode` | `string` | ✅ | The postal code for the customer address. |
181
+ *
182
+ * 📤 **Returns**:
183
+ * A `Promise<CreateCustomerAccountAddressResponse>` containing the created customer account address.
184
+ *
185
+ * 🛠 **Example usage**:
186
+ * ```ts
187
+ * const response = await createCustomerAccountAddress({
188
+ * additionalAddress: "string",
189
+ * address: "string",
190
+ * billing: true,
191
+ * city: "string",
192
+ * company: "string",
193
+ * country: "string",
194
+ * externalId: "string",
195
+ * fullName: "string",
196
+ * label: "string",
197
+ * phone: "string",
198
+ * shipping: true,
199
+ * state: "string",
200
+ * zipcode: "string"
201
+ * });
202
+ * console.log(response);
203
+ * ```
204
+ */
205
+ export declare function createCustomerAccountAddress(params: CreateCustomerAccountAddressParameters & DjustConfig): Promise<CreateCustomerAccountAddressResponse>;
206
+ /**
207
+ * 🗑️ Delete an address from a customer account.
208
+ *
209
+ * This function deletes a specific address from a customer's account based on the provided address ID.
210
+ *
211
+ * 🛠 **Endpoint**: `DELETE /v1/shop/customer-accounts/addresses/{addressId}`
212
+ *
213
+ * | Parameter | Type | Required | Description |
214
+ * |-------------|----------|----------|----------------------------------|
215
+ * | `addressId` | `string` | ✅ | The ID of the address to delete. |
216
+ *
217
+ * 📤 **Returns**: `Promise<void>` - No content response indicating successful deletion.
218
+ *
219
+ * 🛠 **Example usage**:
220
+ * ```ts
221
+ * const response = await deleteCustomerAccountAddress({ addressId: "string" });
222
+ * console.log(response); // No content response
223
+ * ```
224
+ */
225
+ export declare function deleteCustomerAccountAddress({ addressId, ...config }: DeleteCustomerAccountAddressParameters & DjustConfig): Promise<void>;
226
+ /**
227
+ * ✏️ Update an address for a customer account.
228
+ *
229
+ * This function allows you to update an existing address for a customer account. You must provide the address ID and at least one of the optional parameters for updating the address.
230
+ *
231
+ * 🛠 **Endpoint**: `PUT /v1/shop/customer-accounts/addresses/{addressId}`
232
+ *
233
+ * | Parameter | Type | Required | Description |
234
+ * |----------------------|-----------|----------|-------------------------------------------------------|
235
+ * | `addressId` | `string` | ✅ | The ID of the address to update. |
236
+ * | `additionalAddress` | `string` | ❌ | Additional address line. |
237
+ * | `address` | `string` | ✅ | The main address of the customer. |
238
+ * | `billing` | `boolean` | ❌ | Flag indicating if it's a billing address. |
239
+ * | `city` | `string` | ✅ | The city of the customer address. |
240
+ * | `company` | `string` | ❌ | The company name associated with the address. |
241
+ * | `country` | `string` | ✅ | The country of the customer address. |
242
+ * | `fullName` | `string` | ✅ | The full name of the person associated with the address. |
243
+ * | `label` | `string` | ❌ | Label for the address. |
244
+ * | `phone` | `string` | ❌ | Phone number associated with the address. |
245
+ * | `shipping` | `boolean` | ❌ | Flag indicating if it's a shipping address. |
246
+ * | `state` | `string` | ❌ | The state/province of the customer address. |
247
+ * | `zipcode` | `string` | ✅ | The postal code for the customer address. |
248
+ *
249
+ * 📤 **Returns**:
250
+ * A `Promise<UpdateCustomerAccountAddressResponse>` containing the updated customer account address.
251
+ *
252
+ * 🛠 **Example usage**:
253
+ * ```ts
254
+ * const response = await updateCustomerAccountAddress({
255
+ * addressId: "string",
256
+ * additionalAddress: "string",
257
+ * address: "string",
258
+ * billing: true,
259
+ * city: "string",
260
+ * company: "string",
261
+ * country: "string",
262
+ * fullName: "string",
263
+ * label: "string",
264
+ * phone: "string",
265
+ * shipping: true,
266
+ * state: "string",
267
+ * zipcode: "string"
268
+ * });
269
+ * console.log(response); // Updated address details
270
+ * ```
271
+ */
272
+ export declare function updateCustomerAccountAddress({ addressId, additionalAddress, address, billing, city, company, country, fullName, label, phone, shipping, state, zipcode, ...config }: UpdateCustomerAccountAddressParameters & DjustConfig): Promise<UpdateCustomerAccountAddressResponse>;
273
+ /**
274
+ * 📋 Get customer account custom fields.
275
+ *
276
+ * This function retrieves custom fields for a customer account.
277
+ *
278
+ * 🛠 **Endpoint**: `GET /v1/shop/customer-accounts/custom-fields` [ACCOUNT-554]
279
+ *
280
+ * | **Parameter** | **Type** | **Required** | **Description** |
281
+ * |----------------------|------------|--------------|---------------------------------------------------------------------------|
282
+ * | `customFieldIds` | `string[]` | ❌ | The array of custom fields IDs to retrieve. |
283
+ * | `idType` | `AccountCustomFieldsIdType` | ❌ | The type of custom field ID to use to retrieve them (e.g., `DJUST_ID`, `EXTERNAL_ID`). |
284
+ * | `pageable` | `object` | ❌ | The pagination parameters to retrieve paginated results. |
285
+ *
286
+ * 📤 **Returns**:
287
+ * A `Promise<GetCustomerAccountCustomFieldsResponse>` containing the custom fields.
288
+ *
289
+ * 🛠 **Example Usage**:
290
+ * ```typescript
291
+ * const customFields = await getCustomerAccountCustomFields({
292
+ * customFieldIds: ['customField1', 'customField2'],
293
+ * idType: 'EXTERNAL_ID',
294
+ * pageable: { page: 1, size: 10 },
295
+ * });
296
+ * ```
297
+ */
298
+ export declare function getCustomerAccountCustomFields({ customFieldIds, idType, pageable, }: GetCustomerAccountCustomFieldsParameters): Promise<GetCustomerAccountCustomFieldsResponse>;
299
+ /**
300
+ * 📋 Retrieves orders for a customer account.
301
+ *
302
+ * This function fetches the orders for a customer account based on the provided parameters.
303
+ *
304
+ * 🛠 **Endpoint**: `GET /v1/shop/customer-accounts/orders`
305
+ *
306
+ * | **Parameter** | **Type** | **Required** | **Description** |
307
+ * |----------------------|------------|--------------|---------------------------------------------------------------------------|
308
+ * | `pageable` | `object` | ✅ | The pagination parameters to retrieve paginated results. |
309
+ * | `locale` | `string` | ✅ | The locale to be used for the response. |
310
+ * | `nbPreviewLines` | `number` | ❌ | The number of order lines to retrieve by orders (default: 100). |
311
+ * | `logisticOrderStatuses`| `string[]`| ❌ | The statuses of the orders to retrieve. |
312
+ * | `orderLogisticStatusType`| `string`| ❌ | The status of the orders to retrieve (deprecated, use logisticOrderStatuses instead). |
313
+ *
314
+ * 📤 **Returns**:
315
+ * A `Promise<GetCustomerAccountOrdersResponse>` containing the retrieved customer account orders.
316
+ *
317
+ * 🛠 **Example Usage**:
318
+ * ```typescript
319
+ * const orders = await getCustomerAccountOrders({
320
+ * pageable: { page: 0, size: 20, sort: ['createdAt,DESC'] },
321
+ * locale: 'en',
322
+ * nbPreviewLines: 100,
323
+ * logisticOrderStatuses: ["ORDER_CREATED", "WAITING_CUSTOMER_APPROVAL"],
324
+ * });
325
+ * ```
326
+ *
327
+ * @param {GetCustomerAccountOrdersParameters} params - The parameters for fetching customer account orders:
328
+ * - `pageable` - Pagination parameters (page, size, sort).
329
+ * - `locale` - The locale for the response.
330
+ * - `nbPreviewLines` (optional) - Number of order lines to put in the response (default: 100).
331
+ * - `logisticOrderStatuses` (optional) - Array of statuses of the orders to retrieve.
332
+ * - `orderLogisticStatusType` (optional, deprecated) - Single status of the orders to retrieve. Use logisticOrderStatuses instead.
333
+ *
334
+ * @returns {Promise<GetCustomerAccountOrdersResponse>} - The response containing the customer account orders.
335
+ */
336
+ export declare function getCustomerAccountOrders(params: GetCustomerAccountOrdersParameters & DjustConfig): Promise<GetCustomerAccountOrdersResponse>;
337
+ /**
338
+ * 📋 Retrieve Customer Account Users
339
+ *
340
+ * This function retrieves the list of users associated with a specific customer account.
341
+ *
342
+ * 🛠 **Endpoint**: `GET /v1/shop/customer-accounts/users` [ACCOUNT-502]
343
+ *
344
+ * | **Parameter** | **Type** | **Required** | **Description** |
345
+ * |-------------------|------------|--------------|-------------------------------------------------------------|
346
+ * | `pageable` | `object` | ✅ | Object containing pagination details: `page`, `size`, etc. |
347
+ * | `forAllAccounts` | `boolean` | ❌ | Specifies if we want to retrieve users of all my users' accounts |
348
+ * | `query` | `string` | ❌ | Search query to filter users. |
349
+ * | `locale` | `string` | ❌ | The locale in which data should be retrieved. |
350
+ *
351
+ * 📤 **Returns**:
352
+ * A `Promise<GetCustomerAccountUsersResponse>` containing the list of users and pagination metadata.
353
+ *
354
+ * 🛠 **Example usage**:
355
+ * ```typescript
356
+ * const response = await getCustomerAccountUsers({
357
+ * pageable: { page: 0, size: 20 },
358
+ * locale: "fr-FR",
359
+ * query: "john",
360
+ * });
361
+ * console.log(response);
362
+ * ```
363
+ */
364
+ export declare function getCustomerAccountUsers(params: GetCustomerAccountUsersParameters & DjustConfig): Promise<GetCustomerAccountUsersResponse>;
365
+ /**
366
+ * ## Create a Customer Account's Organisation
367
+ *
368
+ * This function allows the creation of a new organisation within a customer account.
369
+ *
370
+ * ### API Code: ACCOUNT-101
371
+ *
372
+ * ### **Endpoint**: `POST /v1/shop/customer-accounts/organisations`
373
+ *
374
+ * | **Parameter** | **Type** | **Required** | **Description** |
375
+ * |-------------------|------------|--------------|---------------------------------------------------------------|
376
+ * | `externalId` | `string` | ✅ | A unique identifier for the organisation. |
377
+ * | `name` | `string` | ✅ | The name of the organisation. |
378
+ * | `parentId` | `string` | ❌ | The ID of the parent organisation, if applicable. |
379
+ *
380
+ * ### **Returns**:
381
+ * A `Promise<CreateCustomerAccountOrganisationResponse>` containing the newly created organisation data.
382
+ *
383
+ * ### **Example Usage**:
384
+ * ```typescript
385
+ * const response = await createCustomerAccountOrganisation({
386
+ * externalId: "org123",
387
+ * name: "My Organisation",
388
+ * parentId: "parentOrgId"
389
+ * });
390
+ * ```
391
+ */
392
+ export declare function createCustomerAccountOrganisation(params: CreateCustomerAccountOrganisationParameters & DjustConfig): Promise<CreateCustomerAccountOrganisationResponse>;
393
+ /**
394
+ * ## Update a customer account's organisation
395
+ *
396
+ * This function allows updating an existing organisation within a customer account.
397
+ *
398
+ * ### API Code: ACCOUNT-202
399
+ *
400
+ * ### **Endpoint**: `PUT /v1/shop/customer-accounts/organisations/{organisationId}`
401
+ *
402
+ * | **Parameter** | **Type** | **Required** | **Description** |
403
+ * |--------------------|------------|--------------|---------------------------------------------------------------|
404
+ * | `organisationId` | `string` | ✅ | The unique identifier of the organisation to be updated. |
405
+ * | `name` | `string` | ❌ | The new name of the organisation. |
406
+ * | `parentId` | `string` | ❌ | The new parent ID for the organisation, if applicable. |
407
+ * | `status` | `string` | ❌ | The new status of the organisation (e.g., ACTIVE, INACTIVE). |
408
+ *
409
+ * ### **Returns**:
410
+ * A `Promise<UpdateCustomerAccountOrganisationResponse>` containing the updated organisation data.
411
+ *
412
+ * ### **Example Usage**:
413
+ * ```typescript
414
+ * const response = await updateCustomerAccountOrganisation({
415
+ * organisationId: "org12345",
416
+ * name: "Updated Organisation Name",
417
+ * parentId: "parentOrg123",
418
+ * status: "ACTIVE",
419
+ * });
420
+ *
421
+ * console.log(response);
422
+ * ```
423
+ */
424
+ export declare function updateCustomerAccountOrganisation(params: UpdateCustomerAccountOrganisationParameters & DjustConfig): Promise<UpdateCustomerAccountOrganisationResponse>;
425
+ /**
426
+ * @deprecated
427
+ * ## Get organisations from customer account
428
+ *
429
+ * This function retrieves all organisations associated with a customer account.
430
+ *
431
+ * ### API Code: ACCOUNT-503
432
+ *
433
+ * ### **Endpoint**: `GET /v1/shop/customer-accounts/organisations`
434
+ *
435
+ * | **Parameter** | **Type** | **Required** | **Description** |
436
+ * |-------------------|------------|--------------|-------------------------------------------------------------|
437
+ * | `pageable` | `object` | ❌ | Object containing pagination details: `page`, `size`, `sort`. |
438
+ *
439
+ * ### **Returns**:
440
+ * A `Promise<GetCustomerAccountOrganisationResponse>` containing the list of customer account organisations.
441
+ *
442
+ * ### **Example Usage**:
443
+ * ```typescript
444
+ * const response = await getCustomerAccountOrganisations({
445
+ * pageable: { page: 0, size: 20 }
446
+ * });
447
+ * console.log(response);
448
+ * ```
449
+ */
450
+ export declare function getCustomerAccountOrganisations(params?: {
451
+ pageable?: PageableParameters;
452
+ } & DjustConfig): Promise<GetCustomerAccountOrganisationResponse>;
453
+ /**
454
+ * ## Get addresses from a customer account organisation
455
+ *
456
+ * This function retrieves all the addresses associated with a given customer account organisation.
457
+ *
458
+ * ### API Code: ACCOUNT-505
459
+ *
460
+ * ### **Endpoint**: `GET /v1/shop/customer-accounts/organisations/{organisationId}/addresses`
461
+ *
462
+ * | **Parameter** | **Type** | **Required** | **Description** |
463
+ * |---------------------|------------|--------------|--------------------------------------------------------------------|
464
+ * | `organisationId` | `string` | ✅ | The unique identifier of the organisation whose addresses are being retrieved. |
465
+ *
466
+ * ### **Returns**:
467
+ * A `Promise<GetCustomerAccountOrganisationAddressesResponse>` containing the list of addresses for the specified customer account organisation.
468
+ *
469
+ * ### **Example Usage**:
470
+ * ```typescript
471
+ * const addresses = await getCustomerAccountOrganisationAddresses({ organisationId: "org12345" });
472
+ * console.log(addresses);
473
+ * ```
474
+ */
475
+ export declare function getCustomerAccountOrganisationAddresses(params: GetCustomerAccountOrganisationAddressesParameters & DjustConfig): Promise<GetCustomerAccountOrganisationAddressesResponse>;
476
+ /**
477
+ * ## Delete an address from a customer account organisation
478
+ *
479
+ * This function deletes a specific address from a given customer account organisation.
480
+ *
481
+ * ### API Code: ADDRESS-301
482
+ *
483
+ * ### **Endpoint**: `DELETE /v1/shop/customer-accounts/organisations/{organisationId}/addresses/{addressId}`
484
+ *
485
+ * | **Parameter** | **Type** | **Required** | **Description** |
486
+ * |---------------------|------------|--------------|---------------------------------------------------------------------|
487
+ * | `organisationId` | `string` | ✅ | The unique identifier of the organisation from which the address will be deleted. |
488
+ * | `addressId` | `string` | ✅ | The unique identifier of the address to delete. |
489
+ *
490
+ * ### **Returns**:
491
+ * A `Promise<void>` that resolves when the address is successfully deleted.
492
+ *
493
+ * ### **Example Usage**:
494
+ * ```typescript
495
+ * await deleteCustomerAccountOrganisationAddress({
496
+ * organisationId: "org12345",
497
+ * addressId: "addr67890",
498
+ * });
499
+ * console.log('Address deleted successfully.');
500
+ * ```
501
+ */
502
+ export declare function deleteCustomerAccountOrganisationAddress(params: DeleteCustomerAccountOrganisationAddressParameters & DjustConfig): Promise<void>;
503
+ /**
504
+ * ## Update an address from a customer account organisation
505
+ *
506
+ * This function allows updating an existing address within a customer account organisation.
507
+ *
508
+ * ### API Code: ADDRESS-201
509
+ *
510
+ * ### **Endpoint**: `PUT /v1/shop/customer-accounts/organisations/{organisationId}/addresses/{addressId}`
511
+ *
512
+ * | **Parameter** | **Type** | **Required** | **Description** |
513
+ * |----------------------|------------|--------------|-------------------------------------------------------------------|
514
+ * | `organisationId` | `string` | ✅ | The unique identifier of the organisation containing the address. |
515
+ * | `addressId` | `string` | ✅ | The unique identifier of the address to be updated. |
516
+ * | `additionalAddress` | `string` | ❌ | Additional address information (optional). |
517
+ * | `address` | `string` | ❌ | The street address (optional). |
518
+ * | `billing` | `boolean` | ❌ | Whether the address is for billing purposes (optional). |
519
+ * | `city` | `string` | ❌ | The city of the address (optional). |
520
+ * | `company` | `string` | ❌ | The company associated with the address (optional). |
521
+ * | `country` | `string` | ❌ | The country of the address (optional). |
522
+ * | `fullName` | `string` | ❌ | The full name of the person associated with the address (optional).|
523
+ * | `label` | `string` | ❌ | A label for the address (optional). |
524
+ * | `phone` | `string` | ❌ | The phone number associated with the address (optional). |
525
+ * | `shipping` | `boolean` | ❌ | Whether the address is for shipping purposes (optional). |
526
+ * | `state` | `string` | ❌ | The state or region of the address (optional). |
527
+ * | `zipcode` | `string` | ❌ | The postal code for the address (optional). |
528
+ *
529
+ * ### **Returns**:
530
+ * A `Promise<UpdateCustomerAccountOrganisationAddressResponse>` containing the updated address data.
531
+ *
532
+ * ### **Example Usage**:
533
+ * ```typescript
534
+ * const response = await updateCustomerAccountOrganisationAddress({
535
+ * organisationId: "org12345",
536
+ * addressId: "address12345",
537
+ * additionalAddress: "Suite 5",
538
+ * address: "123 Main St",
539
+ * billing: true,
540
+ * city: "New York",
541
+ * company: "Company Name",
542
+ * country: "USA",
543
+ * fullName: "John Doe",
544
+ * label: "Primary Address",
545
+ * phone: "+123456789",
546
+ * shipping: true,
547
+ * state: "NY",
548
+ * zipcode: "10001"
549
+ * });
550
+ *
551
+ * console.log(response);
552
+ * ```
553
+ */
554
+ export declare function updateCustomerAccountOrganisationAddress(params: UpdateCustomerAccountOrganisationAddressParameters & DjustConfig): Promise<UpdateCustomerAccountOrganisationAddressResponse>;
555
+ /**
556
+ * ## Get orders from a customer account organisation
557
+ *
558
+ * This function retrieves the orders associated with a specific customer account organisation.
559
+ *
560
+ * ### API Code: ORDER-555
561
+ *
562
+ * ### **Endpoint**: `GET /v1/shop/customer-accounts/organisations/{organisationId}/orders`
563
+ *
564
+ * | **Parameter** | **Type** | **Required** | **Description** |
565
+ * |----------------------|------------|--------------|---------------------------------------------------------------------------|
566
+ * | `organisationId` | `string` | ✅ | The unique identifier of the organisation whose orders need to be fetched. |
567
+ * | `pageable` | `object` | ✅ | The pagination parameters for the orders (e.g., page, size, sort). |
568
+ * | `locale` | `string` | ✅ | The locale for the response (e.g., "en_US"). |
569
+ *
570
+ * ### **Returns**:
571
+ * A `Promise<GetCustomerAccountOrganisationOrdersResponse>` containing the list of orders for the organisation.
572
+ *
573
+ * ### **Example Usage**:
574
+ * ```typescript
575
+ * const response = await getCustomerAccountOrganisationOrders({
576
+ * organisationId: "org12345",
577
+ * pageable: { page: 1, size: 10, sort: [{ property: "createdAt", direction: "DESC" }] },
578
+ * locale: "en_US"
579
+ * });
580
+ *
581
+ * console.log(response);
582
+ * ```
583
+ */
584
+ export declare function getCustomerAccountOrganisationOrders(params: GetCustomerAccountOrganisationOrdersParameters & DjustConfig): Promise<GetCustomerAccountOrganisationOrdersResponse>;
585
+ /**
586
+ * ## Get users from a customer account organisation
587
+ *
588
+ * This function retrieves the list of users associated with a specific customer account organisation.
589
+ *
590
+ * ### API Code: ACCOUNT-504
591
+ *
592
+ * ### **Endpoint**: `GET /v1/shop/customer-accounts/organisations/{organisationId}/users`
593
+ *
594
+ * | **Parameter** | **Type** | **Required** | **Description** |
595
+ * |----------------------|------------|--------------|---------------------------------------------------------------------------|
596
+ * | `organisationId` | `string` | ✅ | The unique identifier of the organisation whose users need to be fetched. |
597
+ * | `pageable` | `object` | ✅ | The pagination parameters for the users (e.g., page, size, sort). |
598
+ *
599
+ * ### **Returns**:
600
+ * A `Promise<GetCustomerAccountOrganisationUsersResponse>` containing the list of users for the organisation.
601
+ *
602
+ * ### **Example Usage**:
603
+ * ```typescript
604
+ * const response = await getCustomerAccountOrganisationUsers({
605
+ * organisationId: "org12345",
606
+ * pageable: { page: 1, size: 10, sort: [{ property: "createdAt", direction: "DESC" }] },
607
+ * });
608
+ *
609
+ * console.log(response);
610
+ * ```
611
+ */
612
+ export declare function getCustomerAccountOrganisationUsers(params: GetCustomerAccountOrganisationUsersParameters & DjustConfig): Promise<GetCustomerAccountOrganisationUsersResponse>;
613
+ /**
614
+ * ## Update a customer account organisation user
615
+ *
616
+ * This function updates the details of a specific user within a customer account organisation.
617
+ *
618
+ * ### API Code: ACCOUNT-202
619
+ *
620
+ * ### **Endpoint**: `PUT /v1/shop/customer-accounts/organisations/{organisationId}/users/{customerUserId}`
621
+ *
622
+ * | **Parameter** | **Type** | **Required** | **Description** |
623
+ * |-------------------------|-------------|--------------|---------------------------------------------------------------------------------|
624
+ * | `organisationId` | `string` | ✅ | The unique identifier of the organisation. |
625
+ * | `customerUserId` | `string` | ✅ | The unique identifier of the user to update. |
626
+ * | `civility` | `string` | ❌ | Civility of the user (e.g., "MR", "MRS"). |
627
+ * | `customFieldValues` | `object[]` | ❌ | Array of custom field values for the user. |
628
+ * | `firstName` | `string` | ❌ | First name of the user. |
629
+ * | `lastName` | `string` | ❌ | Last name of the user. |
630
+ * | `phone` | `string` | ❌ | Phone number of the user. |
631
+ *
632
+ * ### **Returns**:
633
+ * A `Promise<UpdateCustomerAccountOrganisationUserResponse>` containing the details of the updated user.
634
+ *
635
+ * ### **Example Usage**:
636
+ * ```typescript
637
+ * const response = await updateCustomerAccountOrganisationUser({
638
+ * organisationId: "org12345",
639
+ * customerUserId: "user67890",
640
+ * civility: "MR",
641
+ * customFieldValues: [
642
+ * {
643
+ * customFieldId: "custom123",
644
+ * customFieldValue: "value123"
645
+ * }
646
+ * ],
647
+ * firstName: "John",
648
+ * lastName: "Doe",
649
+ * phone: "+1234567890"
650
+ * });
651
+ *
652
+ * console.log(response);
653
+ * ```
654
+ */
655
+ export declare function updateCustomerAccountOrganisationUser(params: UpdateCustomerAccountOrganisationUserParameters & DjustConfig): Promise<UpdateCustomerAccountOrganisationUserResponse>;
656
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/customer-account/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,sCAAsC,EACtC,oCAAoC,EACpC,2CAA2C,EAC3C,yCAAyC,EACzC,+BAA+B,EAC/B,6BAA6B,EAC7B,sCAAsC,EACtC,k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