@djust-b2b/djust-front-sdk 3.0.0-beta.8 → 3.0.0
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.
- package/README.md +34 -30
- package/dist/.tsbuildinfo +1 -1
- package/dist/.tsbuildinfo-esm +1 -1
- package/dist/client/create-client.d.ts +18 -0
- package/dist/client/create-client.d.ts.map +1 -1
- package/dist/client/transport.d.ts +5 -0
- package/dist/client/transport.d.ts.map +1 -1
- package/dist/errors/classes/not-found.error.d.ts +1 -1
- package/dist/errors/classes/not-found.error.d.ts.map +1 -1
- package/dist/errors/factory.d.ts.map +1 -1
- package/dist/errors/helpers/djust-api-error.d.ts +29 -0
- package/dist/errors/helpers/djust-api-error.d.ts.map +1 -0
- package/dist/errors/types.d.ts +4 -0
- package/dist/errors/types.d.ts.map +1 -1
- package/dist/index.d.ts +43 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +274 -64
- package/dist/interfaces/index.d.ts +15 -3
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/services/base.service.d.ts +2 -0
- package/dist/services/base.service.d.ts.map +1 -1
- package/dist/services/commercial-order/commercial-order.service.d.ts +8 -5
- package/dist/services/commercial-order/commercial-order.service.d.ts.map +1 -1
- package/dist/services/commercial-order/definitions.d.ts +13 -0
- package/dist/services/commercial-order/definitions.d.ts.map +1 -1
- package/dist/services/commercial-order/index.d.ts +30 -19
- package/dist/services/commercial-order/index.d.ts.map +1 -1
- package/dist/services/commercial-order/module.d.ts +1 -1
- package/dist/services/commercial-order/module.d.ts.map +1 -1
- package/dist/services/commercial-order/types.d.ts +1 -0
- package/dist/services/commercial-order/types.d.ts.map +1 -1
- package/dist/services/logistic-order/definitions.d.ts +23 -1
- package/dist/services/logistic-order/definitions.d.ts.map +1 -1
- package/dist/services/logistic-order/endpoints.d.ts +1 -0
- package/dist/services/logistic-order/endpoints.d.ts.map +1 -1
- package/dist/services/logistic-order/index.d.ts +77 -1
- package/dist/services/logistic-order/index.d.ts.map +1 -1
- package/dist/services/logistic-order/logistic-order.service.d.ts +6 -1
- package/dist/services/logistic-order/logistic-order.service.d.ts.map +1 -1
- package/dist/services/logistic-order/module.d.ts +1 -1
- package/dist/services/logistic-order/module.d.ts.map +1 -1
- package/dist/services/logistic-order/types.d.ts +9 -0
- package/dist/services/logistic-order/types.d.ts.map +1 -1
- package/dist/services/operation/definitions.d.ts +1 -18
- package/dist/services/operation/definitions.d.ts.map +1 -1
- package/dist/services/payment/definitions.d.ts +0 -10
- package/dist/services/payment/definitions.d.ts.map +1 -1
- package/dist/services/product/definitions.d.ts +1 -0
- package/dist/services/product/definitions.d.ts.map +1 -1
- package/dist/services/product/index.d.ts +6 -5
- package/dist/services/product/index.d.ts.map +1 -1
- package/dist/services/product-variant/definitions.d.ts +3 -142
- package/dist/services/product-variant/definitions.d.ts.map +1 -1
- package/dist/services/quote/definitions.d.ts +3 -1
- package/dist/services/quote/definitions.d.ts.map +1 -1
- package/dist/services/quote/index.d.ts +2 -1
- package/dist/services/quote/index.d.ts.map +1 -1
- package/dist/services/quote/quote.service.d.ts +1 -0
- package/dist/services/quote/quote.service.d.ts.map +1 -1
- package/dist/services/quote/types.d.ts +2 -0
- package/dist/services/quote/types.d.ts.map +1 -1
- package/dist/settings/fetch-instance.d.ts.map +1 -1
- package/dist/settings/sdk-version.d.ts +3 -0
- package/dist/settings/sdk-version.d.ts.map +1 -0
- package/lib/.tsbuildinfo +1 -0
- package/lib/client/create-client.d.ts +251 -0
- package/lib/client/create-client.d.ts.map +1 -0
- package/lib/client/create-client.js +233 -0
- package/lib/client/create-client.js.map +1 -0
- package/lib/client/index.d.ts +14 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +91 -0
- package/lib/client/index.js.map +1 -0
- package/lib/client/performance.d.ts +203 -0
- package/lib/client/performance.d.ts.map +1 -0
- package/lib/client/performance.js +409 -0
- package/lib/client/performance.js.map +1 -0
- package/lib/client/transport.d.ts +372 -0
- package/lib/client/transport.d.ts.map +1 -0
- package/lib/client/transport.js +735 -0
- package/lib/client/transport.js.map +1 -0
- package/lib/errors/base.d.ts +101 -0
- package/lib/errors/base.d.ts.map +1 -0
- package/lib/errors/base.js +145 -0
- package/lib/errors/base.js.map +1 -0
- package/lib/errors/classes/auth.error.d.ts +64 -0
- package/lib/errors/classes/auth.error.d.ts.map +1 -0
- package/lib/errors/classes/auth.error.js +116 -0
- package/lib/errors/classes/auth.error.js.map +1 -0
- package/lib/errors/classes/forbidden.error.d.ts +52 -0
- package/lib/errors/classes/forbidden.error.d.ts.map +1 -0
- package/lib/errors/classes/forbidden.error.js +90 -0
- package/lib/errors/classes/forbidden.error.js.map +1 -0
- package/lib/errors/classes/index.d.ts +17 -0
- package/lib/errors/classes/index.d.ts.map +1 -0
- package/lib/errors/classes/index.js +29 -0
- package/lib/errors/classes/index.js.map +1 -0
- package/lib/errors/classes/network.error.d.ts +63 -0
- package/lib/errors/classes/network.error.d.ts.map +1 -0
- package/lib/errors/classes/network.error.js +122 -0
- package/lib/errors/classes/network.error.js.map +1 -0
- package/lib/errors/classes/not-found.error.d.ts +58 -0
- package/lib/errors/classes/not-found.error.d.ts.map +1 -0
- package/lib/errors/classes/not-found.error.js +120 -0
- package/lib/errors/classes/not-found.error.js.map +1 -0
- package/lib/errors/classes/rate-limit.error.d.ts +49 -0
- package/lib/errors/classes/rate-limit.error.d.ts.map +1 -0
- package/lib/errors/classes/rate-limit.error.js +107 -0
- package/lib/errors/classes/rate-limit.error.js.map +1 -0
- package/lib/errors/classes/server.error.d.ts +63 -0
- package/lib/errors/classes/server.error.d.ts.map +1 -0
- package/lib/errors/classes/server.error.js +156 -0
- package/lib/errors/classes/server.error.js.map +1 -0
- package/lib/errors/classes/timeout.error.d.ts +64 -0
- package/lib/errors/classes/timeout.error.d.ts.map +1 -0
- package/lib/errors/classes/timeout.error.js +90 -0
- package/lib/errors/classes/timeout.error.js.map +1 -0
- package/lib/errors/classes/unexpected.error.d.ts +70 -0
- package/lib/errors/classes/unexpected.error.d.ts.map +1 -0
- package/lib/errors/classes/unexpected.error.js +105 -0
- package/lib/errors/classes/unexpected.error.js.map +1 -0
- package/lib/errors/classes/validation.error.d.ts +68 -0
- package/lib/errors/classes/validation.error.d.ts.map +1 -0
- package/lib/errors/classes/validation.error.js +103 -0
- package/lib/errors/classes/validation.error.js.map +1 -0
- package/lib/errors/codes.d.ts +111 -0
- package/lib/errors/codes.d.ts.map +1 -0
- package/lib/errors/codes.js +143 -0
- package/lib/errors/codes.js.map +1 -0
- package/lib/errors/compat.d.ts +99 -0
- package/lib/errors/compat.d.ts.map +1 -0
- package/lib/errors/compat.js +280 -0
- package/lib/errors/compat.js.map +1 -0
- package/lib/errors/factory.d.ts +33 -0
- package/lib/errors/factory.d.ts.map +1 -0
- package/lib/errors/factory.js +298 -0
- package/lib/errors/factory.js.map +1 -0
- package/lib/errors/guards.d.ts +142 -0
- package/lib/errors/guards.d.ts.map +1 -0
- package/lib/errors/guards.js +281 -0
- package/lib/errors/guards.js.map +1 -0
- package/lib/errors/helpers/djust-api-error.d.ts +29 -0
- package/lib/errors/helpers/djust-api-error.d.ts.map +1 -0
- package/lib/errors/helpers/djust-api-error.js +49 -0
- package/lib/errors/helpers/djust-api-error.js.map +1 -0
- package/lib/errors/index.d.ts +25 -0
- package/lib/errors/index.d.ts.map +1 -0
- package/lib/errors/index.js +89 -0
- package/lib/errors/index.js.map +1 -0
- package/lib/errors/types.d.ts +104 -0
- package/lib/errors/types.d.ts.map +1 -0
- package/lib/errors/types.js +10 -0
- package/lib/errors/types.js.map +1 -0
- package/lib/helpers/index.d.ts +42 -0
- package/lib/helpers/index.d.ts.map +1 -0
- package/lib/helpers/index.js +102 -0
- package/lib/helpers/index.js.map +1 -0
- package/lib/helpers/parameters-validation.d.ts +3 -0
- package/lib/helpers/parameters-validation.d.ts.map +1 -0
- package/lib/helpers/parameters-validation.js +22 -0
- package/lib/helpers/parameters-validation.js.map +1 -0
- package/lib/helpers/utils.d.ts +5 -0
- package/lib/helpers/utils.d.ts.map +1 -0
- package/lib/helpers/utils.js +30 -0
- package/lib/helpers/utils.js.map +1 -0
- package/lib/index.d.ts +267 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +182 -0
- package/lib/index.js.map +1 -0
- package/lib/interfaces/index.d.ts +43 -0
- package/lib/interfaces/index.d.ts.map +1 -0
- package/lib/interfaces/index.js +36 -0
- package/lib/interfaces/index.js.map +1 -0
- package/lib/interfaces/models/address.d.ts +61 -0
- package/lib/interfaces/models/address.d.ts.map +1 -0
- package/lib/interfaces/models/address.js +3 -0
- package/lib/interfaces/models/address.js.map +1 -0
- package/lib/interfaces/models/attribute.d.ts +31 -0
- package/lib/interfaces/models/attribute.d.ts.map +1 -0
- package/lib/interfaces/models/attribute.js +3 -0
- package/lib/interfaces/models/attribute.js.map +1 -0
- package/lib/interfaces/models/auth.d.ts +37 -0
- package/lib/interfaces/models/auth.d.ts.map +1 -0
- package/lib/interfaces/models/auth.js +3 -0
- package/lib/interfaces/models/auth.js.map +1 -0
- package/lib/interfaces/models/cart.d.ts +64 -0
- package/lib/interfaces/models/cart.d.ts.map +1 -0
- package/lib/interfaces/models/cart.js +3 -0
- package/lib/interfaces/models/cart.js.map +1 -0
- package/lib/interfaces/models/common.d.ts +68 -0
- package/lib/interfaces/models/common.d.ts.map +1 -0
- package/lib/interfaces/models/common.js +3 -0
- package/lib/interfaces/models/common.js.map +1 -0
- package/lib/interfaces/models/custom-field.d.ts +57 -0
- package/lib/interfaces/models/custom-field.d.ts.map +1 -0
- package/lib/interfaces/models/custom-field.js +3 -0
- package/lib/interfaces/models/custom-field.js.map +1 -0
- package/lib/interfaces/models/customer-account.d.ts +52 -0
- package/lib/interfaces/models/customer-account.d.ts.map +1 -0
- package/lib/interfaces/models/customer-account.js +3 -0
- package/lib/interfaces/models/customer-account.js.map +1 -0
- package/lib/interfaces/models/customer-organisation.d.ts +14 -0
- package/lib/interfaces/models/customer-organisation.d.ts.map +1 -0
- package/lib/interfaces/models/customer-organisation.js +3 -0
- package/lib/interfaces/models/customer-organisation.js.map +1 -0
- package/lib/interfaces/models/customer-user.d.ts +114 -0
- package/lib/interfaces/models/customer-user.d.ts.map +1 -0
- package/lib/interfaces/models/customer-user.js +3 -0
- package/lib/interfaces/models/customer-user.js.map +1 -0
- package/lib/interfaces/models/incident.d.ts +37 -0
- package/lib/interfaces/models/incident.d.ts.map +1 -0
- package/lib/interfaces/models/incident.js +3 -0
- package/lib/interfaces/models/incident.js.map +1 -0
- package/lib/interfaces/models/navigation-category.d.ts +22 -0
- package/lib/interfaces/models/navigation-category.d.ts.map +1 -0
- package/lib/interfaces/models/navigation-category.js +3 -0
- package/lib/interfaces/models/navigation-category.js.map +1 -0
- package/lib/interfaces/models/offer.d.ts +151 -0
- package/lib/interfaces/models/offer.d.ts.map +1 -0
- package/lib/interfaces/models/offer.js +3 -0
- package/lib/interfaces/models/offer.js.map +1 -0
- package/lib/interfaces/models/order.d.ts +701 -0
- package/lib/interfaces/models/order.d.ts.map +1 -0
- package/lib/interfaces/models/order.js +3 -0
- package/lib/interfaces/models/order.js.map +1 -0
- package/lib/interfaces/models/payment.d.ts +20 -0
- package/lib/interfaces/models/payment.d.ts.map +1 -0
- package/lib/interfaces/models/payment.js +3 -0
- package/lib/interfaces/models/payment.js.map +1 -0
- package/lib/interfaces/models/price.d.ts +6 -0
- package/lib/interfaces/models/price.d.ts.map +1 -0
- package/lib/interfaces/models/price.js +3 -0
- package/lib/interfaces/models/price.js.map +1 -0
- package/lib/interfaces/models/product.d.ts +243 -0
- package/lib/interfaces/models/product.d.ts.map +1 -0
- package/lib/interfaces/models/product.js +3 -0
- package/lib/interfaces/models/product.js.map +1 -0
- package/lib/interfaces/models/quote.d.ts +77 -0
- package/lib/interfaces/models/quote.d.ts.map +1 -0
- package/lib/interfaces/models/quote.js +3 -0
- package/lib/interfaces/models/quote.js.map +1 -0
- package/lib/interfaces/models/searchProduct.d.ts +128 -0
- package/lib/interfaces/models/searchProduct.d.ts.map +1 -0
- package/lib/interfaces/models/searchProduct.js +3 -0
- package/lib/interfaces/models/searchProduct.js.map +1 -0
- package/lib/interfaces/models/supplier.d.ts +72 -0
- package/lib/interfaces/models/supplier.d.ts.map +1 -0
- package/lib/interfaces/models/supplier.js +3 -0
- package/lib/interfaces/models/supplier.js.map +1 -0
- package/lib/services/attributes/attributes.service.d.ts +18 -0
- package/lib/services/attributes/attributes.service.d.ts.map +1 -0
- package/lib/services/attributes/attributes.service.js +37 -0
- package/lib/services/attributes/attributes.service.js.map +1 -0
- package/lib/services/attributes/definitions.d.ts +28 -0
- package/lib/services/attributes/definitions.d.ts.map +1 -0
- package/lib/services/attributes/definitions.js +3 -0
- package/lib/services/attributes/definitions.js.map +1 -0
- package/lib/services/attributes/endpoints.d.ts +12 -0
- package/lib/services/attributes/endpoints.d.ts.map +1 -0
- package/lib/services/attributes/endpoints.js +14 -0
- package/lib/services/attributes/endpoints.js.map +1 -0
- package/lib/services/attributes/index.d.ts +33 -0
- package/lib/services/attributes/index.d.ts.map +1 -0
- package/lib/services/attributes/index.js +50 -0
- package/lib/services/attributes/index.js.map +1 -0
- package/lib/services/attributes/module.d.ts +11 -0
- package/lib/services/attributes/module.d.ts.map +1 -0
- package/lib/services/attributes/module.js +15 -0
- package/lib/services/attributes/module.js.map +1 -0
- package/lib/services/attributes/types.d.ts +35 -0
- package/lib/services/attributes/types.d.ts.map +1 -0
- package/lib/services/attributes/types.js +10 -0
- package/lib/services/attributes/types.js.map +1 -0
- package/lib/services/auth/__mocks__/auth.mocks.d.ts +249 -0
- package/lib/services/auth/__mocks__/auth.mocks.d.ts.map +1 -0
- package/lib/services/auth/__mocks__/auth.mocks.js +221 -0
- package/lib/services/auth/__mocks__/auth.mocks.js.map +1 -0
- package/lib/services/auth/auth.service.d.ts +286 -0
- package/lib/services/auth/auth.service.d.ts.map +1 -0
- package/lib/services/auth/auth.service.js +423 -0
- package/lib/services/auth/auth.service.js.map +1 -0
- package/lib/services/auth/definitions.d.ts +69 -0
- package/lib/services/auth/definitions.d.ts.map +1 -0
- package/lib/services/auth/definitions.js +3 -0
- package/lib/services/auth/definitions.js.map +1 -0
- package/lib/services/auth/definitions.requests.d.ts +25 -0
- package/lib/services/auth/definitions.requests.d.ts.map +1 -0
- package/lib/services/auth/definitions.requests.js +6 -0
- package/lib/services/auth/definitions.requests.js.map +1 -0
- package/lib/services/auth/endpoints.d.ts +30 -0
- package/lib/services/auth/endpoints.d.ts.map +1 -0
- package/lib/services/auth/endpoints.js +32 -0
- package/lib/services/auth/endpoints.js.map +1 -0
- package/lib/services/auth/index.d.ts +232 -0
- package/lib/services/auth/index.d.ts.map +1 -0
- package/lib/services/auth/index.js +310 -0
- package/lib/services/auth/index.js.map +1 -0
- package/lib/services/auth/module.d.ts +11 -0
- package/lib/services/auth/module.d.ts.map +1 -0
- package/lib/services/auth/module.js +17 -0
- package/lib/services/auth/module.js.map +1 -0
- package/lib/services/auth/types.d.ts +124 -0
- package/lib/services/auth/types.d.ts.map +1 -0
- package/lib/services/auth/types.js +10 -0
- package/lib/services/auth/types.js.map +1 -0
- package/lib/services/base.service.d.ts +83 -0
- package/lib/services/base.service.d.ts.map +1 -0
- package/lib/services/base.service.js +121 -0
- package/lib/services/base.service.js.map +1 -0
- package/lib/services/cart/cart.service.d.ts +443 -0
- package/lib/services/cart/cart.service.d.ts.map +1 -0
- package/lib/services/cart/cart.service.js +551 -0
- package/lib/services/cart/cart.service.js.map +1 -0
- package/lib/services/cart/definitions.d.ts +84 -0
- package/lib/services/cart/definitions.d.ts.map +1 -0
- package/lib/services/cart/definitions.js +3 -0
- package/lib/services/cart/definitions.js.map +1 -0
- package/lib/services/cart/endpoints.d.ts +24 -0
- package/lib/services/cart/endpoints.d.ts.map +1 -0
- package/lib/services/cart/endpoints.js +26 -0
- package/lib/services/cart/endpoints.js.map +1 -0
- package/lib/services/cart/index.d.ts +330 -0
- package/lib/services/cart/index.d.ts.map +1 -0
- package/lib/services/cart/index.js +464 -0
- package/lib/services/cart/index.js.map +1 -0
- package/lib/services/cart/module.d.ts +11 -0
- package/lib/services/cart/module.d.ts.map +1 -0
- package/lib/services/cart/module.js +17 -0
- package/lib/services/cart/module.js.map +1 -0
- package/lib/services/cart/types.d.ts +236 -0
- package/lib/services/cart/types.d.ts.map +1 -0
- package/lib/services/cart/types.js +10 -0
- package/lib/services/cart/types.js.map +1 -0
- package/lib/services/commercial-order/commercial-order.service.d.ts +435 -0
- package/lib/services/commercial-order/commercial-order.service.d.ts.map +1 -0
- package/lib/services/commercial-order/commercial-order.service.js +690 -0
- package/lib/services/commercial-order/commercial-order.service.js.map +1 -0
- package/lib/services/commercial-order/definitions.d.ts +182 -0
- package/lib/services/commercial-order/definitions.d.ts.map +1 -0
- package/lib/services/commercial-order/definitions.js +3 -0
- package/lib/services/commercial-order/definitions.js.map +1 -0
- package/lib/services/commercial-order/endpoints.d.ts +28 -0
- package/lib/services/commercial-order/endpoints.d.ts.map +1 -0
- package/lib/services/commercial-order/endpoints.js +33 -0
- package/lib/services/commercial-order/endpoints.js.map +1 -0
- package/lib/services/commercial-order/index.d.ts +721 -0
- package/lib/services/commercial-order/index.d.ts.map +1 -0
- package/lib/services/commercial-order/index.js +986 -0
- package/lib/services/commercial-order/index.js.map +1 -0
- package/lib/services/commercial-order/module.d.ts +11 -0
- package/lib/services/commercial-order/module.d.ts.map +1 -0
- package/lib/services/commercial-order/module.js +15 -0
- package/lib/services/commercial-order/module.js.map +1 -0
- package/lib/services/commercial-order/types.d.ts +244 -0
- package/lib/services/commercial-order/types.d.ts.map +1 -0
- package/lib/services/commercial-order/types.js +10 -0
- package/lib/services/commercial-order/types.js.map +1 -0
- package/lib/services/custom-field/custom-field.service.d.ts +23 -0
- package/lib/services/custom-field/custom-field.service.d.ts.map +1 -0
- package/lib/services/custom-field/custom-field.service.js +64 -0
- package/lib/services/custom-field/custom-field.service.js.map +1 -0
- package/lib/services/custom-field/definitions.d.ts +107 -0
- package/lib/services/custom-field/definitions.d.ts.map +1 -0
- package/lib/services/custom-field/definitions.js +61 -0
- package/lib/services/custom-field/definitions.js.map +1 -0
- package/lib/services/custom-field/endpoints.d.ts +13 -0
- package/lib/services/custom-field/endpoints.d.ts.map +1 -0
- package/lib/services/custom-field/endpoints.js +15 -0
- package/lib/services/custom-field/endpoints.js.map +1 -0
- package/lib/services/custom-field/index.d.ts +115 -0
- package/lib/services/custom-field/index.d.ts.map +1 -0
- package/lib/services/custom-field/index.js +144 -0
- package/lib/services/custom-field/index.js.map +1 -0
- package/lib/services/custom-field/module.d.ts +11 -0
- package/lib/services/custom-field/module.d.ts.map +1 -0
- package/lib/services/custom-field/module.js +15 -0
- package/lib/services/custom-field/module.js.map +1 -0
- package/lib/services/custom-field/types.d.ts +51 -0
- package/lib/services/custom-field/types.d.ts.map +1 -0
- package/lib/services/custom-field/types.js +10 -0
- package/lib/services/custom-field/types.js.map +1 -0
- package/lib/services/customer-account/customer-account.service.d.ts +387 -0
- package/lib/services/customer-account/customer-account.service.d.ts.map +1 -0
- package/lib/services/customer-account/customer-account.service.js +579 -0
- package/lib/services/customer-account/customer-account.service.js.map +1 -0
- package/lib/services/customer-account/definitions.d.ts +164 -0
- package/lib/services/customer-account/definitions.d.ts.map +1 -0
- package/lib/services/customer-account/definitions.js +3 -0
- package/lib/services/customer-account/definitions.js.map +1 -0
- package/lib/services/customer-account/endpoints.d.ts +25 -0
- package/lib/services/customer-account/endpoints.d.ts.map +1 -0
- package/lib/services/customer-account/endpoints.js +33 -0
- package/lib/services/customer-account/endpoints.js.map +1 -0
- package/lib/services/customer-account/index.d.ts +656 -0
- package/lib/services/customer-account/index.d.ts.map +1 -0
- package/lib/services/customer-account/index.js +929 -0
- package/lib/services/customer-account/index.js.map +1 -0
- package/lib/services/customer-account/module.d.ts +11 -0
- package/lib/services/customer-account/module.d.ts.map +1 -0
- package/lib/services/customer-account/module.js +15 -0
- package/lib/services/customer-account/module.js.map +1 -0
- package/lib/services/customer-account/types.d.ts +253 -0
- package/lib/services/customer-account/types.d.ts.map +1 -0
- package/lib/services/customer-account/types.js +10 -0
- package/lib/services/customer-account/types.js.map +1 -0
- package/lib/services/customer-user/customer-user.service.d.ts +280 -0
- package/lib/services/customer-user/customer-user.service.d.ts.map +1 -0
- package/lib/services/customer-user/customer-user.service.js +402 -0
- package/lib/services/customer-user/customer-user.service.js.map +1 -0
- package/lib/services/customer-user/definitions.d.ts +84 -0
- package/lib/services/customer-user/definitions.d.ts.map +1 -0
- package/lib/services/customer-user/definitions.js +3 -0
- package/lib/services/customer-user/definitions.js.map +1 -0
- package/lib/services/customer-user/endpoints.d.ts +19 -0
- package/lib/services/customer-user/endpoints.d.ts.map +1 -0
- package/lib/services/customer-user/endpoints.js +21 -0
- package/lib/services/customer-user/endpoints.js.map +1 -0
- package/lib/services/customer-user/index.d.ts +394 -0
- package/lib/services/customer-user/index.d.ts.map +1 -0
- package/lib/services/customer-user/index.js +528 -0
- package/lib/services/customer-user/index.js.map +1 -0
- package/lib/services/customer-user/module.d.ts +11 -0
- package/lib/services/customer-user/module.d.ts.map +1 -0
- package/lib/services/customer-user/module.js +15 -0
- package/lib/services/customer-user/module.js.map +1 -0
- package/lib/services/customer-user/types.d.ts +118 -0
- package/lib/services/customer-user/types.d.ts.map +1 -0
- package/lib/services/customer-user/types.js +10 -0
- package/lib/services/customer-user/types.js.map +1 -0
- package/lib/services/factory.d.ts +104 -0
- package/lib/services/factory.d.ts.map +1 -0
- package/lib/services/factory.js +89 -0
- package/lib/services/factory.js.map +1 -0
- package/lib/services/incident/definitions.d.ts +85 -0
- package/lib/services/incident/definitions.d.ts.map +1 -0
- package/lib/services/incident/definitions.js +3 -0
- package/lib/services/incident/definitions.js.map +1 -0
- package/lib/services/incident/endpoints.d.ts +17 -0
- package/lib/services/incident/endpoints.d.ts.map +1 -0
- package/lib/services/incident/endpoints.js +19 -0
- package/lib/services/incident/endpoints.js.map +1 -0
- package/lib/services/incident/incident.service.d.ts +24 -0
- package/lib/services/incident/incident.service.d.ts.map +1 -0
- package/lib/services/incident/incident.service.js +141 -0
- package/lib/services/incident/incident.service.js.map +1 -0
- package/lib/services/incident/index.d.ts +270 -0
- package/lib/services/incident/index.d.ts.map +1 -0
- package/lib/services/incident/index.js +389 -0
- package/lib/services/incident/index.js.map +1 -0
- package/lib/services/incident/module.d.ts +11 -0
- package/lib/services/incident/module.d.ts.map +1 -0
- package/lib/services/incident/module.js +15 -0
- package/lib/services/incident/module.js.map +1 -0
- package/lib/services/incident/types.d.ts +116 -0
- package/lib/services/incident/types.d.ts.map +1 -0
- package/lib/services/incident/types.js +10 -0
- package/lib/services/incident/types.js.map +1 -0
- package/lib/services/logistic-order/definitions.d.ts +315 -0
- package/lib/services/logistic-order/definitions.d.ts.map +1 -0
- package/lib/services/logistic-order/definitions.js +3 -0
- package/lib/services/logistic-order/definitions.js.map +1 -0
- package/lib/services/logistic-order/endpoints.d.ts +44 -0
- package/lib/services/logistic-order/endpoints.d.ts.map +1 -0
- package/lib/services/logistic-order/endpoints.js +57 -0
- package/lib/services/logistic-order/endpoints.js.map +1 -0
- package/lib/services/logistic-order/index.d.ts +1376 -0
- package/lib/services/logistic-order/index.d.ts.map +1 -0
- package/lib/services/logistic-order/index.js +1823 -0
- package/lib/services/logistic-order/index.js.map +1 -0
- package/lib/services/logistic-order/logistic-order.service.d.ts +62 -0
- package/lib/services/logistic-order/logistic-order.service.d.ts.map +1 -0
- package/lib/services/logistic-order/logistic-order.service.js +499 -0
- package/lib/services/logistic-order/logistic-order.service.js.map +1 -0
- package/lib/services/logistic-order/module.d.ts +11 -0
- package/lib/services/logistic-order/module.d.ts.map +1 -0
- package/lib/services/logistic-order/module.js +15 -0
- package/lib/services/logistic-order/module.js.map +1 -0
- package/lib/services/logistic-order/types.d.ts +411 -0
- package/lib/services/logistic-order/types.d.ts.map +1 -0
- package/lib/services/logistic-order/types.js +10 -0
- package/lib/services/logistic-order/types.js.map +1 -0
- package/lib/services/module.d.ts +64 -0
- package/lib/services/module.d.ts.map +1 -0
- package/lib/services/module.js +147 -0
- package/lib/services/module.js.map +1 -0
- package/lib/services/navigation-category/definitions.d.ts +31 -0
- package/lib/services/navigation-category/definitions.d.ts.map +1 -0
- package/lib/services/navigation-category/definitions.js +3 -0
- package/lib/services/navigation-category/definitions.js.map +1 -0
- package/lib/services/navigation-category/endpoints.d.ts +15 -0
- package/lib/services/navigation-category/endpoints.d.ts.map +1 -0
- package/lib/services/navigation-category/endpoints.js +17 -0
- package/lib/services/navigation-category/endpoints.js.map +1 -0
- package/lib/services/navigation-category/index.d.ts +114 -0
- package/lib/services/navigation-category/index.d.ts.map +1 -0
- package/lib/services/navigation-category/index.js +160 -0
- package/lib/services/navigation-category/index.js.map +1 -0
- package/lib/services/navigation-category/module.d.ts +11 -0
- package/lib/services/navigation-category/module.d.ts.map +1 -0
- package/lib/services/navigation-category/module.js +15 -0
- package/lib/services/navigation-category/module.js.map +1 -0
- package/lib/services/navigation-category/navigation-category.service.d.ts +148 -0
- package/lib/services/navigation-category/navigation-category.service.d.ts.map +1 -0
- package/lib/services/navigation-category/navigation-category.service.js +191 -0
- package/lib/services/navigation-category/navigation-category.service.js.map +1 -0
- package/lib/services/navigation-category/types.d.ts +51 -0
- package/lib/services/navigation-category/types.d.ts.map +1 -0
- package/lib/services/navigation-category/types.js +10 -0
- package/lib/services/navigation-category/types.js.map +1 -0
- package/lib/services/offer-inventories/definitions.d.ts +73 -0
- package/lib/services/offer-inventories/definitions.d.ts.map +1 -0
- package/lib/services/offer-inventories/definitions.js +3 -0
- package/lib/services/offer-inventories/definitions.js.map +1 -0
- package/lib/services/offer-inventories/endpoints.d.ts +16 -0
- package/lib/services/offer-inventories/endpoints.d.ts.map +1 -0
- package/lib/services/offer-inventories/endpoints.js +18 -0
- package/lib/services/offer-inventories/endpoints.js.map +1 -0
- package/lib/services/offer-inventories/index.d.ts +120 -0
- package/lib/services/offer-inventories/index.d.ts.map +1 -0
- package/lib/services/offer-inventories/index.js +175 -0
- package/lib/services/offer-inventories/index.js.map +1 -0
- package/lib/services/offer-inventories/module.d.ts +11 -0
- package/lib/services/offer-inventories/module.d.ts.map +1 -0
- package/lib/services/offer-inventories/module.js +15 -0
- package/lib/services/offer-inventories/module.js.map +1 -0
- package/lib/services/offer-inventories/offer-inventories.service.d.ts +26 -0
- package/lib/services/offer-inventories/offer-inventories.service.d.ts.map +1 -0
- package/lib/services/offer-inventories/offer-inventories.service.js +80 -0
- package/lib/services/offer-inventories/offer-inventories.service.js.map +1 -0
- package/lib/services/offer-inventories/types.d.ts +85 -0
- package/lib/services/offer-inventories/types.d.ts.map +1 -0
- package/lib/services/offer-inventories/types.js +10 -0
- package/lib/services/offer-inventories/types.js.map +1 -0
- package/lib/services/offer-prices/__mocks__/offer-prices.mocks.d.ts +109 -0
- package/lib/services/offer-prices/__mocks__/offer-prices.mocks.d.ts.map +1 -0
- package/lib/services/offer-prices/__mocks__/offer-prices.mocks.js +201 -0
- package/lib/services/offer-prices/__mocks__/offer-prices.mocks.js.map +1 -0
- package/lib/services/offer-prices/definitions.d.ts +24 -0
- package/lib/services/offer-prices/definitions.d.ts.map +1 -0
- package/lib/services/offer-prices/definitions.js +3 -0
- package/lib/services/offer-prices/definitions.js.map +1 -0
- package/lib/services/offer-prices/endpoints.d.ts +12 -0
- package/lib/services/offer-prices/endpoints.d.ts.map +1 -0
- package/lib/services/offer-prices/endpoints.js +14 -0
- package/lib/services/offer-prices/endpoints.js.map +1 -0
- package/lib/services/offer-prices/index.d.ts +36 -0
- package/lib/services/offer-prices/index.d.ts.map +1 -0
- package/lib/services/offer-prices/index.js +53 -0
- package/lib/services/offer-prices/index.js.map +1 -0
- package/lib/services/offer-prices/module.d.ts +11 -0
- package/lib/services/offer-prices/module.d.ts.map +1 -0
- package/lib/services/offer-prices/module.js +15 -0
- package/lib/services/offer-prices/module.js.map +1 -0
- package/lib/services/offer-prices/offer-prices.service.d.ts +18 -0
- package/lib/services/offer-prices/offer-prices.service.d.ts.map +1 -0
- package/lib/services/offer-prices/offer-prices.service.js +36 -0
- package/lib/services/offer-prices/offer-prices.service.js.map +1 -0
- package/lib/services/offer-prices/types.d.ts +33 -0
- package/lib/services/offer-prices/types.d.ts.map +1 -0
- package/lib/services/offer-prices/types.js +10 -0
- package/lib/services/offer-prices/types.js.map +1 -0
- package/lib/services/operation/definitions.d.ts +263 -0
- package/lib/services/operation/definitions.d.ts.map +1 -0
- package/lib/services/operation/definitions.js +18 -0
- package/lib/services/operation/definitions.js.map +1 -0
- package/lib/services/operation/endpoints.d.ts +18 -0
- package/lib/services/operation/endpoints.d.ts.map +1 -0
- package/lib/services/operation/endpoints.js +22 -0
- package/lib/services/operation/endpoints.js.map +1 -0
- package/lib/services/operation/index.d.ts +520 -0
- package/lib/services/operation/index.d.ts.map +1 -0
- package/lib/services/operation/index.js +704 -0
- package/lib/services/operation/index.js.map +1 -0
- package/lib/services/operation/module.d.ts +11 -0
- package/lib/services/operation/module.d.ts.map +1 -0
- package/lib/services/operation/module.js +15 -0
- package/lib/services/operation/module.js.map +1 -0
- package/lib/services/operation/operation.service.d.ts +32 -0
- package/lib/services/operation/operation.service.d.ts.map +1 -0
- package/lib/services/operation/operation.service.js +206 -0
- package/lib/services/operation/operation.service.js.map +1 -0
- package/lib/services/operation/types.d.ts +174 -0
- package/lib/services/operation/types.d.ts.map +1 -0
- package/lib/services/operation/types.js +10 -0
- package/lib/services/operation/types.js.map +1 -0
- package/lib/services/payment/definitions.d.ts +69 -0
- package/lib/services/payment/definitions.d.ts.map +1 -0
- package/lib/services/payment/definitions.js +3 -0
- package/lib/services/payment/definitions.js.map +1 -0
- package/lib/services/payment/endpoints.d.ts +16 -0
- package/lib/services/payment/endpoints.d.ts.map +1 -0
- package/lib/services/payment/endpoints.js +18 -0
- package/lib/services/payment/endpoints.js.map +1 -0
- package/lib/services/payment/index.d.ts +150 -0
- package/lib/services/payment/index.d.ts.map +1 -0
- package/lib/services/payment/index.js +220 -0
- package/lib/services/payment/index.js.map +1 -0
- package/lib/services/payment/module.d.ts +11 -0
- package/lib/services/payment/module.d.ts.map +1 -0
- package/lib/services/payment/module.js +15 -0
- package/lib/services/payment/module.js.map +1 -0
- package/lib/services/payment/payment.service.d.ts +224 -0
- package/lib/services/payment/payment.service.d.ts.map +1 -0
- package/lib/services/payment/payment.service.js +288 -0
- package/lib/services/payment/payment.service.js.map +1 -0
- package/lib/services/payment/types.d.ts +93 -0
- package/lib/services/payment/types.d.ts.map +1 -0
- package/lib/services/payment/types.js +10 -0
- package/lib/services/payment/types.js.map +1 -0
- package/lib/services/product/definitions.d.ts +150 -0
- package/lib/services/product/definitions.d.ts.map +1 -0
- package/lib/services/product/definitions.js +9 -0
- package/lib/services/product/definitions.js.map +1 -0
- package/lib/services/product/endpoints.d.ts +40 -0
- package/lib/services/product/endpoints.d.ts.map +1 -0
- package/lib/services/product/endpoints.js +42 -0
- package/lib/services/product/endpoints.js.map +1 -0
- package/lib/services/product/index.d.ts +388 -0
- package/lib/services/product/index.d.ts.map +1 -0
- package/lib/services/product/index.js +564 -0
- package/lib/services/product/index.js.map +1 -0
- package/lib/services/product/module.d.ts +11 -0
- package/lib/services/product/module.d.ts.map +1 -0
- package/lib/services/product/module.js +17 -0
- package/lib/services/product/module.js.map +1 -0
- package/lib/services/product/product.service.d.ts +452 -0
- package/lib/services/product/product.service.d.ts.map +1 -0
- package/lib/services/product/product.service.js +624 -0
- package/lib/services/product/product.service.js.map +1 -0
- package/lib/services/product/types.d.ts +344 -0
- package/lib/services/product/types.d.ts.map +1 -0
- package/lib/services/product/types.js +10 -0
- package/lib/services/product/types.js.map +1 -0
- package/lib/services/product-variant/definitions.d.ts +33 -0
- package/lib/services/product-variant/definitions.d.ts.map +1 -0
- package/lib/services/product-variant/definitions.js +7 -0
- package/lib/services/product-variant/definitions.js.map +1 -0
- package/lib/services/product-variant/endpoints.d.ts +15 -0
- package/lib/services/product-variant/endpoints.d.ts.map +1 -0
- package/lib/services/product-variant/endpoints.js +17 -0
- package/lib/services/product-variant/endpoints.js.map +1 -0
- package/lib/services/product-variant/index.d.ts +123 -0
- package/lib/services/product-variant/index.d.ts.map +1 -0
- package/lib/services/product-variant/index.js +172 -0
- package/lib/services/product-variant/index.js.map +1 -0
- package/lib/services/product-variant/module.d.ts +11 -0
- package/lib/services/product-variant/module.d.ts.map +1 -0
- package/lib/services/product-variant/module.js +15 -0
- package/lib/services/product-variant/module.js.map +1 -0
- package/lib/services/product-variant/product-variant.service.d.ts +21 -0
- package/lib/services/product-variant/product-variant.service.d.ts.map +1 -0
- package/lib/services/product-variant/product-variant.service.js +69 -0
- package/lib/services/product-variant/product-variant.service.js.map +1 -0
- package/lib/services/product-variant/types.d.ts +73 -0
- package/lib/services/product-variant/types.d.ts.map +1 -0
- package/lib/services/product-variant/types.js +10 -0
- package/lib/services/product-variant/types.js.map +1 -0
- package/lib/services/quote/definitions.d.ts +102 -0
- package/lib/services/quote/definitions.d.ts.map +1 -0
- package/lib/services/quote/definitions.js +3 -0
- package/lib/services/quote/definitions.js.map +1 -0
- package/lib/services/quote/endpoints.d.ts +20 -0
- package/lib/services/quote/endpoints.d.ts.map +1 -0
- package/lib/services/quote/endpoints.js +24 -0
- package/lib/services/quote/endpoints.js.map +1 -0
- package/lib/services/quote/index.d.ts +378 -0
- package/lib/services/quote/index.d.ts.map +1 -0
- package/lib/services/quote/index.js +506 -0
- package/lib/services/quote/index.js.map +1 -0
- package/lib/services/quote/module.d.ts +11 -0
- package/lib/services/quote/module.d.ts.map +1 -0
- package/lib/services/quote/module.js +15 -0
- package/lib/services/quote/module.js.map +1 -0
- package/lib/services/quote/quote.service.d.ts +346 -0
- package/lib/services/quote/quote.service.d.ts.map +1 -0
- package/lib/services/quote/quote.service.js +479 -0
- package/lib/services/quote/quote.service.js.map +1 -0
- package/lib/services/quote/types.d.ts +160 -0
- package/lib/services/quote/types.d.ts.map +1 -0
- package/lib/services/quote/types.js +10 -0
- package/lib/services/quote/types.js.map +1 -0
- package/lib/services/supplier/__mocks__/supplier-mocks.d.ts +49 -0
- package/lib/services/supplier/__mocks__/supplier-mocks.d.ts.map +1 -0
- package/lib/services/supplier/__mocks__/supplier-mocks.js +168 -0
- package/lib/services/supplier/__mocks__/supplier-mocks.js.map +1 -0
- package/lib/services/supplier/definitions.d.ts +30 -0
- package/lib/services/supplier/definitions.d.ts.map +1 -0
- package/lib/services/supplier/definitions.js +3 -0
- package/lib/services/supplier/definitions.js.map +1 -0
- package/lib/services/supplier/endpoints.d.ts +14 -0
- package/lib/services/supplier/endpoints.d.ts.map +1 -0
- package/lib/services/supplier/endpoints.js +16 -0
- package/lib/services/supplier/endpoints.js.map +1 -0
- package/lib/services/supplier/index.d.ts +102 -0
- package/lib/services/supplier/index.d.ts.map +1 -0
- package/lib/services/supplier/index.js +146 -0
- package/lib/services/supplier/index.js.map +1 -0
- package/lib/services/supplier/module.d.ts +11 -0
- package/lib/services/supplier/module.d.ts.map +1 -0
- package/lib/services/supplier/module.js +15 -0
- package/lib/services/supplier/module.js.map +1 -0
- package/lib/services/supplier/supplier.service.d.ts +20 -0
- package/lib/services/supplier/supplier.service.d.ts.map +1 -0
- package/lib/services/supplier/supplier.service.js +63 -0
- package/lib/services/supplier/supplier.service.js.map +1 -0
- package/lib/services/supplier/types.d.ts +58 -0
- package/lib/services/supplier/types.d.ts.map +1 -0
- package/lib/services/supplier/types.js +10 -0
- package/lib/services/supplier/types.js.map +1 -0
- package/lib/services/types.d.ts +81 -0
- package/lib/services/types.d.ts.map +1 -0
- package/lib/services/types.js +10 -0
- package/lib/services/types.js.map +1 -0
- package/lib/settings/fetch-instance.d.ts +30 -0
- package/lib/settings/fetch-instance.d.ts.map +1 -0
- package/lib/settings/fetch-instance.js +223 -0
- package/lib/settings/fetch-instance.js.map +1 -0
- package/lib/settings/sdk-version.d.ts +3 -0
- package/lib/settings/sdk-version.d.ts.map +1 -0
- package/lib/settings/sdk-version.js +6 -0
- package/lib/settings/sdk-version.js.map +1 -0
- package/package.json +27 -8
|
@@ -0,0 +1,579 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* # Customer Account Service
|
|
4
|
+
*
|
|
5
|
+
* B2B customer account and organization management.
|
|
6
|
+
*
|
|
7
|
+
* ## Features
|
|
8
|
+
* - Customer account CRUD operations
|
|
9
|
+
* - Address book management
|
|
10
|
+
* - Organization hierarchy support
|
|
11
|
+
* - User management within accounts
|
|
12
|
+
* - Order history by account
|
|
13
|
+
*
|
|
14
|
+
* @module services/customer-account
|
|
15
|
+
* @since 2.17.0
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CustomerAccountService = void 0;
|
|
19
|
+
const base_service_1 = require("../base.service");
|
|
20
|
+
const endpoints_1 = require("./endpoints");
|
|
21
|
+
/**
|
|
22
|
+
* Service for customer account management.
|
|
23
|
+
*
|
|
24
|
+
* Handles B2B customer structures including:
|
|
25
|
+
* - Company accounts
|
|
26
|
+
* - Organizations and cost centers
|
|
27
|
+
* - Address books
|
|
28
|
+
* - User permissions
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import { createDjustClient } from '@djust-b2b/djust-front-sdk';
|
|
33
|
+
*
|
|
34
|
+
* const client = createDjustClient({ baseUrl, clientId, apiKey });
|
|
35
|
+
*
|
|
36
|
+
* // Get current account
|
|
37
|
+
* const account = await client.customerAccount.getCustomerAccount();
|
|
38
|
+
*
|
|
39
|
+
* // Get addresses
|
|
40
|
+
* const addresses = await client.customerAccount.getCustomerAccountAddresses();
|
|
41
|
+
*
|
|
42
|
+
* // Create new address
|
|
43
|
+
* await client.customerAccount.createCustomerAccountAddress({
|
|
44
|
+
* label: 'Warehouse',
|
|
45
|
+
* street: '123 Industrial Blvd',
|
|
46
|
+
* city: 'Chicago',
|
|
47
|
+
* country: 'US',
|
|
48
|
+
* postalCode: '60601',
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
class CustomerAccountService extends base_service_1.BaseService {
|
|
53
|
+
constructor() {
|
|
54
|
+
super(...arguments);
|
|
55
|
+
this.serviceName = "customer-account";
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get the current user's customer account.
|
|
59
|
+
*
|
|
60
|
+
* Returns account details for the authenticated user.
|
|
61
|
+
*
|
|
62
|
+
* **Endpoint**: `GET /v1/shop/customer-accounts [ACC-100]`
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```typescript
|
|
66
|
+
* const account = await client.customerAccount.getCustomerAccount();
|
|
67
|
+
* console.log(`Account: ${account.name}`);
|
|
68
|
+
* console.log(`External ID: ${account.externalId}`);
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @param params - Optional query parameters
|
|
72
|
+
* @param context - Optional SSR request context
|
|
73
|
+
* @returns Customer account details
|
|
74
|
+
*/
|
|
75
|
+
async getCustomerAccount(params = {}, context) {
|
|
76
|
+
return this.request({
|
|
77
|
+
method: "GET",
|
|
78
|
+
path: endpoints_1.CustomerAccountEndpoints.ACCOUNTS_V1,
|
|
79
|
+
params: this.buildParams(params),
|
|
80
|
+
}, context);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Get customer accounts with pagination (v2).
|
|
84
|
+
*
|
|
85
|
+
* For users with access to multiple accounts.
|
|
86
|
+
*
|
|
87
|
+
* **Endpoint**: `GET /v2/shop/customer-accounts [ACC-101]`
|
|
88
|
+
*
|
|
89
|
+
* | Parameter | Type | Required | Description |
|
|
90
|
+
* |------------|------------------|----------|--------------------------|
|
|
91
|
+
* | `pageable` | `PageableParams` | No | Pagination settings |
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* const { content: accounts } = await client.customerAccount.getCustomerAccountV2({
|
|
96
|
+
* pageable: { page: 0, size: 10 },
|
|
97
|
+
* });
|
|
98
|
+
*
|
|
99
|
+
* accounts.forEach(acc => console.log(acc.name));
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* @param params - Pagination parameters
|
|
103
|
+
* @param context - Optional SSR request context
|
|
104
|
+
* @returns Paginated list of accounts
|
|
105
|
+
*/
|
|
106
|
+
async getCustomerAccountV2(params = {}, context) {
|
|
107
|
+
return this.request({
|
|
108
|
+
method: "GET",
|
|
109
|
+
path: endpoints_1.CustomerAccountEndpoints.ACCOUNTS_V2,
|
|
110
|
+
params: this.buildParams({
|
|
111
|
+
page: params.pageable?.page,
|
|
112
|
+
size: params.pageable?.size,
|
|
113
|
+
sort: params.pageable?.sort,
|
|
114
|
+
}),
|
|
115
|
+
}, context);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Create a new customer account.
|
|
119
|
+
*
|
|
120
|
+
* **Endpoint**: `POST /v1/shop/customer-accounts [ACC-102]`
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* ```typescript
|
|
124
|
+
* const account = await client.customerAccount.createCustomerAccount({
|
|
125
|
+
* name: 'Acme Corporation',
|
|
126
|
+
* externalId: 'ACME-001',
|
|
127
|
+
* email: 'contact@acme.com',
|
|
128
|
+
* });
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* @param params - Account creation data
|
|
132
|
+
* @param context - Optional SSR request context
|
|
133
|
+
* @returns Created account details
|
|
134
|
+
*/
|
|
135
|
+
async createCustomerAccount(params, context) {
|
|
136
|
+
return this.request({
|
|
137
|
+
method: "POST",
|
|
138
|
+
path: endpoints_1.CustomerAccountEndpoints.ACCOUNTS_V1,
|
|
139
|
+
body: params,
|
|
140
|
+
}, context);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Update customer account information.
|
|
144
|
+
*
|
|
145
|
+
* **Endpoint**: `PUT /v1/shop/customer-accounts [ACC-103]`
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```typescript
|
|
149
|
+
* await client.customerAccount.updateCustomerAccount({
|
|
150
|
+
* name: 'Acme Corporation Updated',
|
|
151
|
+
* phone: '+1-555-123-4567',
|
|
152
|
+
* });
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* @param params - Account update data
|
|
156
|
+
* @param context - Optional SSR request context
|
|
157
|
+
* @returns Updated account details
|
|
158
|
+
*/
|
|
159
|
+
async updateCustomerAccount(params, context) {
|
|
160
|
+
return this.request({
|
|
161
|
+
method: "PUT",
|
|
162
|
+
path: endpoints_1.CustomerAccountEndpoints.ACCOUNTS_V1,
|
|
163
|
+
body: params,
|
|
164
|
+
}, context);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Get addresses for the customer account.
|
|
168
|
+
*
|
|
169
|
+
* Returns the address book for shipping and billing.
|
|
170
|
+
*
|
|
171
|
+
* **Endpoint**: `GET /v1/shop/customer-accounts/addresses [ADDR-100]`
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* const addresses = await client.customerAccount.getCustomerAccountAddresses();
|
|
176
|
+
*
|
|
177
|
+
* const shippingAddresses = addresses.filter(a => a.isShipping);
|
|
178
|
+
* const billingAddresses = addresses.filter(a => a.isBilling);
|
|
179
|
+
* ```
|
|
180
|
+
*
|
|
181
|
+
* @param params - Optional query parameters
|
|
182
|
+
* @param context - Optional SSR request context
|
|
183
|
+
* @returns List of addresses
|
|
184
|
+
*/
|
|
185
|
+
async getCustomerAccountAddresses(params = {}, context) {
|
|
186
|
+
return this.request({
|
|
187
|
+
method: "GET",
|
|
188
|
+
path: endpoints_1.CustomerAccountEndpoints.ADDRESSES,
|
|
189
|
+
params: this.buildParams(params),
|
|
190
|
+
}, context);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Create a new address for the account.
|
|
194
|
+
*
|
|
195
|
+
* **Endpoint**: `POST /v1/shop/customer-accounts/addresses [ADDR-101]`
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* ```typescript
|
|
199
|
+
* const address = await client.customerAccount.createCustomerAccountAddress({
|
|
200
|
+
* label: 'Main Office',
|
|
201
|
+
* street: '123 Business Ave',
|
|
202
|
+
* city: 'New York',
|
|
203
|
+
* country: 'US',
|
|
204
|
+
* postalCode: '10001',
|
|
205
|
+
* isShipping: true,
|
|
206
|
+
* isBilling: true,
|
|
207
|
+
* isDefault: true,
|
|
208
|
+
* });
|
|
209
|
+
* ```
|
|
210
|
+
*
|
|
211
|
+
* @param params - Address creation data
|
|
212
|
+
* @param context - Optional SSR request context
|
|
213
|
+
* @returns Created address
|
|
214
|
+
*/
|
|
215
|
+
async createCustomerAccountAddress(params, context) {
|
|
216
|
+
return this.request({
|
|
217
|
+
method: "POST",
|
|
218
|
+
path: endpoints_1.CustomerAccountEndpoints.ADDRESSES,
|
|
219
|
+
body: params,
|
|
220
|
+
}, context);
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Delete an address from the account.
|
|
224
|
+
*
|
|
225
|
+
* **Endpoint**: `DELETE /v1/shop/customer-accounts/addresses/{addressId} [ADDR-102]`
|
|
226
|
+
*
|
|
227
|
+
* | Parameter | Type | Required | Description |
|
|
228
|
+
* |-------------|----------|----------|--------------------------|
|
|
229
|
+
* | `addressId` | `string` | Yes | Address ID to delete |
|
|
230
|
+
*
|
|
231
|
+
* @param params - Address identification
|
|
232
|
+
* @param context - Optional SSR request context
|
|
233
|
+
* @throws {ValidationError} If addressId is missing
|
|
234
|
+
* @throws {NotFoundError} If address doesn't exist
|
|
235
|
+
*/
|
|
236
|
+
async deleteCustomerAccountAddress(params, context) {
|
|
237
|
+
this.required(params, ["addressId"]);
|
|
238
|
+
await this.request({
|
|
239
|
+
method: "DELETE",
|
|
240
|
+
path: this.buildPath(endpoints_1.CustomerAccountEndpoints.ADDRESS, {
|
|
241
|
+
addressId: params.addressId,
|
|
242
|
+
}),
|
|
243
|
+
}, context);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Update an existing address.
|
|
247
|
+
*
|
|
248
|
+
* **Endpoint**: `PUT /v1/shop/customer-accounts/addresses/{addressId} [ADDR-103]`
|
|
249
|
+
*
|
|
250
|
+
* | Parameter | Type | Required | Description |
|
|
251
|
+
* |-------------|----------|----------|--------------------------|
|
|
252
|
+
* | `addressId` | `string` | Yes | Address ID to update |
|
|
253
|
+
* | ...fields | various | No | Fields to update |
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* ```typescript
|
|
257
|
+
* await client.customerAccount.updateCustomerAccountAddress({
|
|
258
|
+
* addressId: 'addr-123',
|
|
259
|
+
* street: '456 New Street',
|
|
260
|
+
* isDefault: true,
|
|
261
|
+
* });
|
|
262
|
+
* ```
|
|
263
|
+
*
|
|
264
|
+
* @param params - Address update data
|
|
265
|
+
* @param context - Optional SSR request context
|
|
266
|
+
* @throws {ValidationError} If addressId is missing
|
|
267
|
+
* @returns Updated address
|
|
268
|
+
*/
|
|
269
|
+
async updateCustomerAccountAddress(params, context) {
|
|
270
|
+
this.required(params, ["addressId"]);
|
|
271
|
+
const { addressId, ...body } = params;
|
|
272
|
+
return this.request({
|
|
273
|
+
method: "PUT",
|
|
274
|
+
path: this.buildPath(endpoints_1.CustomerAccountEndpoints.ADDRESS, { addressId }),
|
|
275
|
+
body,
|
|
276
|
+
}, context);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Get custom fields for the account.
|
|
280
|
+
*
|
|
281
|
+
* **Endpoint**: `GET /v1/shop/customer-accounts/custom-fields [ACC-104]`
|
|
282
|
+
*
|
|
283
|
+
* @param params - Query parameters
|
|
284
|
+
* @param context - Optional SSR request context
|
|
285
|
+
* @returns Custom field values
|
|
286
|
+
*/
|
|
287
|
+
async getCustomerAccountCustomFields(params = {}, context) {
|
|
288
|
+
return this.request({
|
|
289
|
+
method: "GET",
|
|
290
|
+
path: endpoints_1.CustomerAccountEndpoints.CUSTOM_FIELDS,
|
|
291
|
+
params: this.buildParams({
|
|
292
|
+
customFieldIds: params.customFieldIds,
|
|
293
|
+
idType: params.idType,
|
|
294
|
+
page: params.pageable?.page,
|
|
295
|
+
size: params.pageable?.size,
|
|
296
|
+
sort: params.pageable?.sort,
|
|
297
|
+
}),
|
|
298
|
+
}, context);
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Get order history for the account.
|
|
302
|
+
*
|
|
303
|
+
* **Endpoint**: `GET /v1/shop/customer-accounts/orders [ACC-105]`
|
|
304
|
+
*
|
|
305
|
+
* @example
|
|
306
|
+
* ```typescript
|
|
307
|
+
* const { content: orders } = await client.customerAccount.getCustomerAccountOrders({
|
|
308
|
+
* pageable: { page: 0, size: 20 },
|
|
309
|
+
* locale: 'en-US',
|
|
310
|
+
* });
|
|
311
|
+
*
|
|
312
|
+
* orders.forEach(order => {
|
|
313
|
+
* console.log(`${order.businessId}: ${order.status}`);
|
|
314
|
+
* });
|
|
315
|
+
* ```
|
|
316
|
+
*
|
|
317
|
+
* @param params - Query parameters
|
|
318
|
+
* @param context - Optional SSR request context
|
|
319
|
+
* @returns Paginated order history
|
|
320
|
+
*/
|
|
321
|
+
async getCustomerAccountOrders(params, context) {
|
|
322
|
+
return this.request({
|
|
323
|
+
method: "GET",
|
|
324
|
+
path: endpoints_1.CustomerAccountEndpoints.ORDERS,
|
|
325
|
+
params: this.buildParams({
|
|
326
|
+
page: params.pageable.page,
|
|
327
|
+
size: params.pageable.size,
|
|
328
|
+
sort: params.pageable.sort,
|
|
329
|
+
locale: params.locale,
|
|
330
|
+
nbPreviewLines: params.nbPreviewLines,
|
|
331
|
+
logisticOrderStatuses: params.logisticOrderStatuses,
|
|
332
|
+
orderLogisticStatusType: params.orderLogisticStatusType,
|
|
333
|
+
}),
|
|
334
|
+
}, context);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Get users associated with the account.
|
|
338
|
+
*
|
|
339
|
+
* **Endpoint**: `GET /v1/shop/customer-accounts/users [ACC-106]`
|
|
340
|
+
*
|
|
341
|
+
* | Parameter | Type | Required | Description |
|
|
342
|
+
* |-----------------|------------------|----------|--------------------------|
|
|
343
|
+
* | `pageable` | `PageableParams` | Yes | Pagination settings |
|
|
344
|
+
* | `forAllAccounts`| `boolean` | No | Include all accounts |
|
|
345
|
+
* | `query` | `string` | No | Search query |
|
|
346
|
+
*
|
|
347
|
+
* @example
|
|
348
|
+
* ```typescript
|
|
349
|
+
* const { content: users } = await client.customerAccount.getCustomerAccountUsers({
|
|
350
|
+
* pageable: { page: 0, size: 50 },
|
|
351
|
+
* query: 'john',
|
|
352
|
+
* });
|
|
353
|
+
* ```
|
|
354
|
+
*
|
|
355
|
+
* @param params - Query parameters
|
|
356
|
+
* @param context - Optional SSR request context
|
|
357
|
+
* @throws {ValidationError} If pageable is missing
|
|
358
|
+
* @returns Paginated user list
|
|
359
|
+
*/
|
|
360
|
+
async getCustomerAccountUsers(params, context) {
|
|
361
|
+
this.required(params, ["pageable"]);
|
|
362
|
+
return this.request({
|
|
363
|
+
method: "GET",
|
|
364
|
+
path: endpoints_1.CustomerAccountEndpoints.USERS,
|
|
365
|
+
params: this.buildParams({
|
|
366
|
+
page: params.pageable.page,
|
|
367
|
+
size: params.pageable.size,
|
|
368
|
+
sort: params.pageable.sort,
|
|
369
|
+
forAllAccounts: params.forAllAccounts ?? false,
|
|
370
|
+
query: params.query || "",
|
|
371
|
+
}),
|
|
372
|
+
}, context);
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Create an organisation (cost center/department).
|
|
376
|
+
*
|
|
377
|
+
* **Endpoint**: `POST /v1/shop/customer-accounts/organisations [ORG-100]`
|
|
378
|
+
*
|
|
379
|
+
* | Parameter | Type | Required | Description |
|
|
380
|
+
* |--------------|----------|----------|--------------------------|
|
|
381
|
+
* | `externalId` | `string` | Yes | External identifier |
|
|
382
|
+
* | `name` | `string` | Yes | Organisation name |
|
|
383
|
+
*
|
|
384
|
+
* @example
|
|
385
|
+
* ```typescript
|
|
386
|
+
* const org = await client.customerAccount.createCustomerAccountOrganisation({
|
|
387
|
+
* externalId: 'DEPT-SALES',
|
|
388
|
+
* name: 'Sales Department',
|
|
389
|
+
* });
|
|
390
|
+
* ```
|
|
391
|
+
*
|
|
392
|
+
* @param params - Organisation creation data
|
|
393
|
+
* @param context - Optional SSR request context
|
|
394
|
+
* @throws {ValidationError} If required parameters are missing
|
|
395
|
+
* @returns Created organisation
|
|
396
|
+
*/
|
|
397
|
+
async createCustomerAccountOrganisation(params, context) {
|
|
398
|
+
this.required(params, ["externalId", "name"]);
|
|
399
|
+
return this.request({
|
|
400
|
+
method: "POST",
|
|
401
|
+
path: endpoints_1.CustomerAccountEndpoints.ORGANISATIONS,
|
|
402
|
+
body: params,
|
|
403
|
+
}, context);
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Update an organisation.
|
|
407
|
+
*
|
|
408
|
+
* **Endpoint**: `PUT /v1/shop/customer-accounts/organisations/{organisationId} [ORG-101]`
|
|
409
|
+
*
|
|
410
|
+
* @param params - Organisation update data
|
|
411
|
+
* @param context - Optional SSR request context
|
|
412
|
+
* @throws {ValidationError} If organisationId is missing
|
|
413
|
+
* @returns Updated organisation
|
|
414
|
+
*/
|
|
415
|
+
async updateCustomerAccountOrganisation(params, context) {
|
|
416
|
+
this.required(params, ["organisationId"]);
|
|
417
|
+
const { organisationId, ...body } = params;
|
|
418
|
+
return this.request({
|
|
419
|
+
method: "PUT",
|
|
420
|
+
path: this.buildPath(endpoints_1.CustomerAccountEndpoints.ORGANISATION, {
|
|
421
|
+
organisationId,
|
|
422
|
+
}),
|
|
423
|
+
body,
|
|
424
|
+
}, context);
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Get all organisations for the account.
|
|
428
|
+
*
|
|
429
|
+
* @deprecated Use getCustomerAccountV2 with organisation filter
|
|
430
|
+
*
|
|
431
|
+
* **Endpoint**: `GET /v1/shop/customer-accounts/organisations [ORG-102]`
|
|
432
|
+
*
|
|
433
|
+
* @param params - Pagination parameters
|
|
434
|
+
* @param context - Optional SSR request context
|
|
435
|
+
* @returns List of organisations
|
|
436
|
+
*/
|
|
437
|
+
async getCustomerAccountOrganisations(params = {}, context) {
|
|
438
|
+
return this.request({
|
|
439
|
+
method: "GET",
|
|
440
|
+
path: endpoints_1.CustomerAccountEndpoints.ORGANISATIONS,
|
|
441
|
+
params: this.buildParams({
|
|
442
|
+
page: params.pageable?.page,
|
|
443
|
+
size: params.pageable?.size,
|
|
444
|
+
sort: params.pageable?.sort,
|
|
445
|
+
}),
|
|
446
|
+
}, context);
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Get addresses for a specific organisation.
|
|
450
|
+
*
|
|
451
|
+
* **Endpoint**: `GET /v1/shop/customer-accounts/organisations/{organisationId}/addresses [ORG-103]`
|
|
452
|
+
*
|
|
453
|
+
* @param params - Organisation identification
|
|
454
|
+
* @param context - Optional SSR request context
|
|
455
|
+
* @throws {ValidationError} If organisationId is missing
|
|
456
|
+
* @returns Organisation addresses
|
|
457
|
+
*/
|
|
458
|
+
async getCustomerAccountOrganisationAddresses(params, context) {
|
|
459
|
+
this.required(params, ["organisationId"]);
|
|
460
|
+
return this.request({
|
|
461
|
+
method: "GET",
|
|
462
|
+
path: this.buildPath(endpoints_1.CustomerAccountEndpoints.ORGANISATION_ADDRESSES, {
|
|
463
|
+
organisationId: params.organisationId,
|
|
464
|
+
}),
|
|
465
|
+
}, context);
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Delete an organisation address.
|
|
469
|
+
*
|
|
470
|
+
* **Endpoint**: `DELETE /v1/shop/customer-accounts/organisations/{organisationId}/addresses/{addressId} [ORG-104]`
|
|
471
|
+
*
|
|
472
|
+
* @param params - Organisation and address identification
|
|
473
|
+
* @param context - Optional SSR request context
|
|
474
|
+
* @throws {ValidationError} If required parameters are missing
|
|
475
|
+
*/
|
|
476
|
+
async deleteCustomerAccountOrganisationAddress(params, context) {
|
|
477
|
+
this.required(params, ["organisationId", "addressId"]);
|
|
478
|
+
await this.request({
|
|
479
|
+
method: "DELETE",
|
|
480
|
+
path: this.buildPath(endpoints_1.CustomerAccountEndpoints.ORGANISATION_ADDRESS, params),
|
|
481
|
+
}, context);
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Update an organisation address.
|
|
485
|
+
*
|
|
486
|
+
* **Endpoint**: `PUT /v1/shop/customer-accounts/organisations/{organisationId}/addresses/{addressId} [ORG-105]`
|
|
487
|
+
*
|
|
488
|
+
* @param params - Address update data
|
|
489
|
+
* @param context - Optional SSR request context
|
|
490
|
+
* @throws {ValidationError} If required parameters are missing
|
|
491
|
+
* @returns Updated address
|
|
492
|
+
*/
|
|
493
|
+
async updateCustomerAccountOrganisationAddress(params, context) {
|
|
494
|
+
this.required(params, ["organisationId", "addressId"]);
|
|
495
|
+
const { organisationId, addressId, ...body } = params;
|
|
496
|
+
return this.request({
|
|
497
|
+
method: "PUT",
|
|
498
|
+
path: this.buildPath(endpoints_1.CustomerAccountEndpoints.ORGANISATION_ADDRESS, {
|
|
499
|
+
organisationId,
|
|
500
|
+
addressId,
|
|
501
|
+
}),
|
|
502
|
+
body,
|
|
503
|
+
}, context);
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Get orders for a specific organisation.
|
|
507
|
+
*
|
|
508
|
+
* **Endpoint**: `GET /v1/shop/customer-accounts/organisations/{organisationId}/orders [ORG-106]`
|
|
509
|
+
*
|
|
510
|
+
* @param params - Query parameters
|
|
511
|
+
* @param context - Optional SSR request context
|
|
512
|
+
* @throws {ValidationError} If required parameters are missing
|
|
513
|
+
* @returns Paginated order history
|
|
514
|
+
*/
|
|
515
|
+
async getCustomerAccountOrganisationOrders(params, context) {
|
|
516
|
+
this.required(params, ["organisationId", "pageable", "locale"]);
|
|
517
|
+
return this.request({
|
|
518
|
+
method: "GET",
|
|
519
|
+
path: this.buildPath(endpoints_1.CustomerAccountEndpoints.ORGANISATION_ORDERS, {
|
|
520
|
+
organisationId: params.organisationId,
|
|
521
|
+
}),
|
|
522
|
+
params: this.buildParams({
|
|
523
|
+
page: params.pageable.page,
|
|
524
|
+
size: params.pageable.size,
|
|
525
|
+
sort: params.pageable.sort,
|
|
526
|
+
locale: params.locale,
|
|
527
|
+
nbPreviewLines: params.nbPreviewLines,
|
|
528
|
+
}),
|
|
529
|
+
}, context);
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Get users for a specific organisation.
|
|
533
|
+
*
|
|
534
|
+
* **Endpoint**: `GET /v1/shop/customer-accounts/organisations/{organisationId}/users [ORG-107]`
|
|
535
|
+
*
|
|
536
|
+
* @param params - Query parameters
|
|
537
|
+
* @param context - Optional SSR request context
|
|
538
|
+
* @throws {ValidationError} If required parameters are missing
|
|
539
|
+
* @returns Paginated user list
|
|
540
|
+
*/
|
|
541
|
+
async getCustomerAccountOrganisationUsers(params, context) {
|
|
542
|
+
this.required(params, ["organisationId", "pageable"]);
|
|
543
|
+
return this.request({
|
|
544
|
+
method: "GET",
|
|
545
|
+
path: this.buildPath(endpoints_1.CustomerAccountEndpoints.ORGANISATION_USERS, {
|
|
546
|
+
organisationId: params.organisationId,
|
|
547
|
+
}),
|
|
548
|
+
params: this.buildParams({
|
|
549
|
+
page: params.pageable.page,
|
|
550
|
+
size: params.pageable.size,
|
|
551
|
+
sort: params.pageable.sort,
|
|
552
|
+
}),
|
|
553
|
+
}, context);
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Update user permissions within an organisation.
|
|
557
|
+
*
|
|
558
|
+
* **Endpoint**: `PUT /v1/shop/customer-accounts/organisations/{organisationId}/users/{userId} [ORG-108]`
|
|
559
|
+
*
|
|
560
|
+
* @param params - User update data
|
|
561
|
+
* @param context - Optional SSR request context
|
|
562
|
+
* @throws {ValidationError} If required parameters are missing
|
|
563
|
+
* @returns Updated user
|
|
564
|
+
*/
|
|
565
|
+
async updateCustomerAccountOrganisationUser(params, context) {
|
|
566
|
+
this.required(params, ["organisationId", "customerUserId"]);
|
|
567
|
+
const { organisationId, customerUserId, ...body } = params;
|
|
568
|
+
return this.request({
|
|
569
|
+
method: "PUT",
|
|
570
|
+
path: this.buildPath(endpoints_1.CustomerAccountEndpoints.ORGANISATION_USER, {
|
|
571
|
+
organisationId,
|
|
572
|
+
customerUserId,
|
|
573
|
+
}),
|
|
574
|
+
body,
|
|
575
|
+
}, context);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
exports.CustomerAccountService = CustomerAccountService;
|
|
579
|
+
//# sourceMappingURL=customer-account.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer-account.service.js","sourceRoot":"","sources":["../../../src/services/customer-account/customer-account.service.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,kDAA8C;AAE9C,2CAAuD;AA0CvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,sBAAuB,SAAQ,0BAAW;IAAvD;;QACW,gBAAW,GAAG,kBAAkB,CAAC;IAmqB5C,CAAC;IAjqBC;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,kBAAkB,CACtB,SAAmC,EAAE,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CACjB;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,oCAAwB,CAAC,WAAW;YAC1C,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;SACjC,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,KAAK,CAAC,oBAAoB,CACxB,SAAqC,EAAE,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CACjB;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,oCAAwB,CAAC,WAAW;YAC1C,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC;gBACvB,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI;gBAC3B,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI;gBAC3B,IA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