@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,464 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteCarts = deleteCarts;
|
|
4
|
+
exports.getCarts = getCarts;
|
|
5
|
+
exports.createCart = createCart;
|
|
6
|
+
exports.deleteCart = deleteCart;
|
|
7
|
+
exports.getCart = getCart;
|
|
8
|
+
exports.updateCart = updateCart;
|
|
9
|
+
exports.initializeOrdersFromCart = initializeOrdersFromCart;
|
|
10
|
+
exports.deleteCartLines = deleteCartLines;
|
|
11
|
+
exports.getCartLines = getCartLines;
|
|
12
|
+
exports.updateCartLines = updateCartLines;
|
|
13
|
+
exports.updateCartLinesByVariant = updateCartLinesByVariant;
|
|
14
|
+
const parameters_validation_1 = require("../../helpers/parameters-validation");
|
|
15
|
+
const fetch_instance_1 = require("../../settings/fetch-instance");
|
|
16
|
+
/**
|
|
17
|
+
* CART ENDPOINT
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* 🛒 Deletes all carts associated with the user.
|
|
21
|
+
*
|
|
22
|
+
* This function sends a request to delete all carts of the logged-in user.
|
|
23
|
+
*
|
|
24
|
+
* 🛠 **Endpoint**: `DELETE /v2/shop/carts [cART135]`
|
|
25
|
+
*
|
|
26
|
+
* 📤 **Returns**:
|
|
27
|
+
* A `Promise` resolving to an array of `DeleteCartsResponse` objects, containing the details of the deleted carts.
|
|
28
|
+
*
|
|
29
|
+
* 🛠 **Example usage**:
|
|
30
|
+
* ```ts
|
|
31
|
+
* const deletedCarts = await deleteCarts();
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @returns {Promise<DeleteCartsResponse>} - An array of objects containing the details of the deleted carts.
|
|
35
|
+
*/
|
|
36
|
+
async function deleteCarts() {
|
|
37
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
38
|
+
method: "DELETE",
|
|
39
|
+
path: `/v2/shop/carts`,
|
|
40
|
+
});
|
|
41
|
+
return data;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 🛒 Retrieves all active carts of the logged-in user.
|
|
45
|
+
*
|
|
46
|
+
* This function allows fetching the list of active carts based on the provided parameters.
|
|
47
|
+
*
|
|
48
|
+
* 🛠 **Endpoint**: `GET /v2/shop/carts [cART550]`
|
|
49
|
+
*
|
|
50
|
+
* | Parameter | Type | Required | Description |
|
|
51
|
+
* |------------------|----------------------|------------|------------------------------------------------------------|
|
|
52
|
+
* | `currency` | `string` | ✅ | The currency in which to display the carts. |
|
|
53
|
+
* | `pageable` | `object` | ✅ | The pagination parameters. |
|
|
54
|
+
* | `status` | `CartStatusDto[]` | ❌ | The status of the carts to retrieve. |
|
|
55
|
+
* | `type` | `CartTypeDto[]` | ❌ | The type of carts to retrieve (e.g. `CART`, `BUYING_LIST`). |
|
|
56
|
+
*
|
|
57
|
+
* 📤 **Returns**:
|
|
58
|
+
* A `Promise` resolving to a `GetCartsResponse` object, containing the list of carts and pagination information.
|
|
59
|
+
*
|
|
60
|
+
* 🛠 **Example usage**:
|
|
61
|
+
* ```ts
|
|
62
|
+
* const carts = await getCarts({ currency: 'USD', pageable: { page: 1, size: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param {GetCartsParameters} params - The parameters for retrieving the carts, including:
|
|
66
|
+
* - `currency` - The currency in which to display the carts.
|
|
67
|
+
* - `pageable` - The pagination parameters.
|
|
68
|
+
* - `status` - The status of the carts to retrieve.
|
|
69
|
+
* - `type` - The type of carts to retrieve.
|
|
70
|
+
*
|
|
71
|
+
* @returns {Promise<GetCartsResponse>} - An object containing the list of carts and pagination information.
|
|
72
|
+
*/
|
|
73
|
+
async function getCarts(params) {
|
|
74
|
+
const { currency, pageable, status, type } = params;
|
|
75
|
+
(0, parameters_validation_1.required)({ currency, pageable });
|
|
76
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
77
|
+
method: "GET",
|
|
78
|
+
path: `/v2/shop/carts`,
|
|
79
|
+
params: {
|
|
80
|
+
currency,
|
|
81
|
+
page: pageable?.page,
|
|
82
|
+
size: pageable?.size,
|
|
83
|
+
sort: pageable?.sort,
|
|
84
|
+
status: Array.isArray(status) ? status.join(",") : status,
|
|
85
|
+
type: Array.isArray(type) ? type.join(",") : type,
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
return data;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 🛒 Creates a new cart.
|
|
92
|
+
*
|
|
93
|
+
* This function sends a request to create a new cart with the specified name.
|
|
94
|
+
*
|
|
95
|
+
* 🛠 **Endpoint**: `POST /v2/shop/carts [cART100]`
|
|
96
|
+
*
|
|
97
|
+
* | Parameter | Type | Required | Description |
|
|
98
|
+
* |------------|----------|------------|---------------------------------|
|
|
99
|
+
* | `name` | `string` | ✅ | The name of the cart to create. |
|
|
100
|
+
* | `type` | `CartTypeDto` | ❌ | The type of the cart to create (`CART` (by default) or `BUYING_LIST`). |
|
|
101
|
+
*
|
|
102
|
+
* 📤 **Returns**:
|
|
103
|
+
* A `Promise` resolving to a `GetCartResponse` object, confirming the creation of the cart.
|
|
104
|
+
*
|
|
105
|
+
* 🛠 **Example usage**:
|
|
106
|
+
* ```ts
|
|
107
|
+
* await createCart({ name: 'New Cart' });
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @param {CreateCartParameters} params - The parameters for creating the cart:
|
|
111
|
+
* - `name` - The name of the cart to create.
|
|
112
|
+
*
|
|
113
|
+
* @returns {Promise<GetCartResponse>} - A promise that resolves when the cart is created.
|
|
114
|
+
*/
|
|
115
|
+
async function createCart(params) {
|
|
116
|
+
const { name, type } = params;
|
|
117
|
+
// Ensure required parameter is present
|
|
118
|
+
(0, parameters_validation_1.required)({ name });
|
|
119
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
120
|
+
method: "POST",
|
|
121
|
+
path: `/v2/shop/carts`,
|
|
122
|
+
body: JSON.stringify({ name, type: type || "CART" }),
|
|
123
|
+
});
|
|
124
|
+
return data;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 🗑️ Deletes a specific cart.
|
|
128
|
+
*
|
|
129
|
+
* This function sends a request to delete the cart identified by its ID.
|
|
130
|
+
*
|
|
131
|
+
* 🛠 **Endpoint**: `DELETE /v2/shop/carts/{cartId} [cART300]`
|
|
132
|
+
*
|
|
133
|
+
* | Parameter | Type | Required | Description |
|
|
134
|
+
* |------------|----------|------------|----------------------------------|
|
|
135
|
+
* | `cartId` | `string` | ✅ | The ID of the cart to delete. |
|
|
136
|
+
*
|
|
137
|
+
* 📤 **Returns**:
|
|
138
|
+
* A `Promise<void>` that resolves when the cart is successfully deleted.
|
|
139
|
+
*
|
|
140
|
+
* 🛠 **Example usage**:
|
|
141
|
+
* ```ts
|
|
142
|
+
* await deleteCart({ cartId: 'cart1' });
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
* @param {DeleteCartParameters} params - The parameters to identify the cart to delete:
|
|
146
|
+
* - `cartId` - The ID of the cart to delete.
|
|
147
|
+
*
|
|
148
|
+
* @returns {Promise<void>} - A promise that resolves when the cart is deleted.
|
|
149
|
+
*/
|
|
150
|
+
async function deleteCart(params) {
|
|
151
|
+
const { cartId } = params;
|
|
152
|
+
// Ensure required parameter is present
|
|
153
|
+
(0, parameters_validation_1.required)({ cartId });
|
|
154
|
+
await (0, fetch_instance_1.enhancedFetch)({
|
|
155
|
+
method: "DELETE",
|
|
156
|
+
path: `/v2/shop/carts/${cartId}`,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* 🛒 Retrieves the details of a specific cart.
|
|
161
|
+
*
|
|
162
|
+
* This function allows fetching the information of a cart based on its ID.
|
|
163
|
+
*
|
|
164
|
+
* 🛠 **Endpoint**: `GET /v2/shop/carts/{cartId} [cART500]`
|
|
165
|
+
*
|
|
166
|
+
* | Parameter | Type | Required | Description |
|
|
167
|
+
* |-----------------|-----------|------------|-------------------------------------------------|
|
|
168
|
+
* | `cartId` | `string` | ✅ | The ID of the cart to retrieve. |
|
|
169
|
+
* | `currency` | `string` | ✅ | The currency in which to display the cart. |
|
|
170
|
+
* | `nbFirstLines` | `number[]`| ❌ | The number of lines to retrieve. |
|
|
171
|
+
*
|
|
172
|
+
* 📤 **Returns**:
|
|
173
|
+
* A `Promise<GetCartResponse>` containing the details of the requested cart.
|
|
174
|
+
*
|
|
175
|
+
* 🛠 **Example usage**:
|
|
176
|
+
* ```ts
|
|
177
|
+
* const cartDetails = await getCart({ cartId: 'cart1', currency: 'USD' });
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* @param {GetCartParameters} params - The parameters for identifying the cart:
|
|
181
|
+
* - `cartId` - The ID of the cart to retrieve.
|
|
182
|
+
* - `currency` - The currency in which to display the cart.
|
|
183
|
+
* - `nbFirstLines` - (Optional) The number of lines to retrieve.
|
|
184
|
+
*
|
|
185
|
+
* @returns {Promise<GetCartResponse>} - A promise resolving to the cart details.
|
|
186
|
+
*/
|
|
187
|
+
async function getCart(params) {
|
|
188
|
+
const { cartId, currency, nbFirstLines } = params;
|
|
189
|
+
// Ensure required parameters are present
|
|
190
|
+
(0, parameters_validation_1.required)({ cartId, currency });
|
|
191
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
192
|
+
method: "GET",
|
|
193
|
+
path: `/v2/shop/carts/${cartId}`,
|
|
194
|
+
params: {
|
|
195
|
+
currency,
|
|
196
|
+
nbFirstLines,
|
|
197
|
+
},
|
|
198
|
+
});
|
|
199
|
+
return data;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* ✏️ Updates an existing cart.
|
|
203
|
+
*
|
|
204
|
+
* This function sends a request to update the name of a cart identified by its ID.
|
|
205
|
+
*
|
|
206
|
+
* 🛠 **Endpoint**: `PUT /v2/shop/carts/{cartId} [cART200]`
|
|
207
|
+
*
|
|
208
|
+
* | Parameter | Type | Required | Description |
|
|
209
|
+
* |------------|----------|------------|---------------------------------------|
|
|
210
|
+
* | `cartId` | `string` | ✅ | The ID of the cart to update. |
|
|
211
|
+
* | `name` | `string` | ✅ | The new name of the cart. |
|
|
212
|
+
* | `type` | `CartTypeDto` | ❌ | The type of cart (`CART` (by default) or `BUYING_LIST`). |
|
|
213
|
+
*
|
|
214
|
+
* 📤 **Returns**:
|
|
215
|
+
* A `Promise<void>` that resolves when the cart is successfully updated.
|
|
216
|
+
*
|
|
217
|
+
* 🛠 **Example usage**:
|
|
218
|
+
* ```ts
|
|
219
|
+
* await updateCart({ cartId: 'cart1', name: 'Updated Cart Name' });
|
|
220
|
+
* ```
|
|
221
|
+
*
|
|
222
|
+
* @param {UpdateCartParameters} params - The parameters for updating the cart:
|
|
223
|
+
* - `cartId` - The ID of the cart to update.
|
|
224
|
+
* - `name` - The new name of the cart.
|
|
225
|
+
* - `type` - The type of the cart.
|
|
226
|
+
*
|
|
227
|
+
* @returns {Promise<void>} - A promise that resolves when the update is successful.
|
|
228
|
+
*/
|
|
229
|
+
async function updateCart(params) {
|
|
230
|
+
const { cartId, name, type } = params;
|
|
231
|
+
// Ensure required parameters are present
|
|
232
|
+
(0, parameters_validation_1.required)({ cartId, name });
|
|
233
|
+
(0, fetch_instance_1.enhancedFetch)({
|
|
234
|
+
method: "PUT",
|
|
235
|
+
path: `/v2/shop/carts/${cartId}`,
|
|
236
|
+
body: JSON.stringify({ name, type }),
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* 🛒 Initializes orders from a cart.
|
|
241
|
+
*
|
|
242
|
+
* This function sends a request to initialize an order from a specified cart.
|
|
243
|
+
*
|
|
244
|
+
* 🛠 **Endpoint**: `POST /v2/shop/carts/{cartId}/initialize-orders [cART101]`
|
|
245
|
+
*
|
|
246
|
+
* | Parameter | Type | Required | Description |
|
|
247
|
+
* |------------|----------|------------|------------------------------------------|
|
|
248
|
+
* | `cartId` | `string` | ✅ | The ID of the cart to initialize orders. |
|
|
249
|
+
*
|
|
250
|
+
* 📤 **Returns**:
|
|
251
|
+
* A `Promise<string>` containing the business ID of the created order.
|
|
252
|
+
*
|
|
253
|
+
* 🛠 **Example usage**:
|
|
254
|
+
* ```ts
|
|
255
|
+
* const orderId = await initializeOrdersFromCart({ cartId: 'cart1' });
|
|
256
|
+
* ```
|
|
257
|
+
*
|
|
258
|
+
* @param {InitializeOrdersFromCartParameters} params - Parameters for initializing orders:
|
|
259
|
+
* - `cartId` - The ID of the cart to initialize orders from.
|
|
260
|
+
*
|
|
261
|
+
* @returns {Promise<string>} - The business ID of the created order.
|
|
262
|
+
*/
|
|
263
|
+
async function initializeOrdersFromCart(params) {
|
|
264
|
+
const { cartId } = params;
|
|
265
|
+
// Ensure required parameters are present
|
|
266
|
+
(0, parameters_validation_1.required)({ cartId });
|
|
267
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
268
|
+
method: "POST",
|
|
269
|
+
path: `/v2/shop/carts/${cartId}/initialize-orders`,
|
|
270
|
+
});
|
|
271
|
+
return data;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* 🗑️ Deletes lines from a cart.
|
|
275
|
+
*
|
|
276
|
+
* This function sends a request to delete specific lines from a cart.
|
|
277
|
+
*
|
|
278
|
+
* 🛠 **Endpoint**: `DELETE /v2/shop/carts/{cartId}/lines [cART350]`
|
|
279
|
+
*
|
|
280
|
+
* | Parameter | Type | Required | Description |
|
|
281
|
+
* |--------------------|------------|------------|--------------------------------------|
|
|
282
|
+
* | `cartId` | `string` | ✅ | The ID of the cart. |
|
|
283
|
+
* | `lineIdsToDelete` | `FoOfferToDelete[]` | ✅ | The IDs of the lines to delete. |
|
|
284
|
+
*
|
|
285
|
+
* 📤 **Returns**:
|
|
286
|
+
* A `Promise<DeleteCartLinesResponse>` containing details about the deleted lines.
|
|
287
|
+
*
|
|
288
|
+
* 🛠 **Example usage**:
|
|
289
|
+
* ```ts
|
|
290
|
+
* const response = await deleteCartLines({
|
|
291
|
+
* cartId: 'cart1',
|
|
292
|
+
* lineIdsToDelete: [
|
|
293
|
+
* {
|
|
294
|
+
* offerPriceId: 'line1'
|
|
295
|
+
* },
|
|
296
|
+
* {
|
|
297
|
+
* offerPriceId: 'line2'
|
|
298
|
+
* },
|
|
299
|
+
* ]
|
|
300
|
+
* });
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* @param {DeleteCartLinesParameters} params - Parameters for deleting cart lines:
|
|
304
|
+
* - `cartId` - The ID of the cart.
|
|
305
|
+
* - `lineIdsToDelete` - The IDs of the lines to delete.
|
|
306
|
+
*
|
|
307
|
+
* @returns {Promise<DeleteCartLinesResponse>} - Response with details about the deleted lines.
|
|
308
|
+
*/
|
|
309
|
+
async function deleteCartLines(params) {
|
|
310
|
+
const { cartId, lineIdsToDelete } = params;
|
|
311
|
+
// Ensure required parameters are present
|
|
312
|
+
(0, parameters_validation_1.required)({ cartId, lineIdsToDelete });
|
|
313
|
+
const body = lineIdsToDelete.map((lineId) => ({ offerPriceId: lineId }));
|
|
314
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
315
|
+
method: "DELETE",
|
|
316
|
+
path: `/v2/shop/carts/${cartId}/lines`,
|
|
317
|
+
body: JSON.stringify(body),
|
|
318
|
+
});
|
|
319
|
+
return data;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* 📋 Fetches the lines of a shopping cart.
|
|
323
|
+
*
|
|
324
|
+
* This function retrieves detailed information about the items (lines) in a shopping cart.
|
|
325
|
+
* It supports filtering by supplier, product variant, or offer price and handles pagination.
|
|
326
|
+
*
|
|
327
|
+
* 🛠 **Endpoint**: `GET /v2/shop/carts/{cartId}/lines [cART551]`
|
|
328
|
+
*
|
|
329
|
+
* | Parameter | Type | Required | Description |
|
|
330
|
+
* |---------------------|------------|------------|------------------------------------------|
|
|
331
|
+
* | `cartId` | `string` | ✅ | The ID of the cart. |
|
|
332
|
+
* | `currency` | `string` | ✅ | The currency in which prices are shown. |
|
|
333
|
+
* | `pageable` | `object` | ✅ | Pagination details (page number, size). |
|
|
334
|
+
* | `supplierId` | `string[]` | ❌ | Filter by specific supplier IDs. |
|
|
335
|
+
* | `productVariantId` | `string[]` | ❌ | Filter by specific product variants. |
|
|
336
|
+
* | `offerPriceId` | `string[]` | ❌ | Filter by specific offer price IDs. |
|
|
337
|
+
*
|
|
338
|
+
* 📤 **Returns**:
|
|
339
|
+
* A `Promise<GetCartLinesResponse>` containing the lines of the cart.
|
|
340
|
+
*
|
|
341
|
+
* 🛠 **Example usage**:
|
|
342
|
+
* ```ts
|
|
343
|
+
* const cartLines = await getCartLines({
|
|
344
|
+
* cartId: 'cart1',
|
|
345
|
+
* currency: 'USD',
|
|
346
|
+
* pageable: { page: 1, size: 10 },
|
|
347
|
+
* supplierId: ['supplier1']
|
|
348
|
+
* });
|
|
349
|
+
* ```
|
|
350
|
+
*
|
|
351
|
+
* @param {GetCartLinesParameters} params - Parameters for fetching cart lines:
|
|
352
|
+
* - `cartId` - The ID of the cart.
|
|
353
|
+
* - `currency` - The currency for prices.
|
|
354
|
+
* - `pageable` - Pagination details.
|
|
355
|
+
* - `supplierId` (optional) - Supplier IDs for filtering.
|
|
356
|
+
* - `productVariantId` (optional) - Product variant IDs for filtering.
|
|
357
|
+
* - `offerPriceId` (optional) - Offer price IDs for filtering.
|
|
358
|
+
*
|
|
359
|
+
* @returns {Promise<GetCartLinesResponse>} - Response containing cart lines information.
|
|
360
|
+
*/
|
|
361
|
+
async function getCartLines(params) {
|
|
362
|
+
const { cartId, currency, pageable, supplierId, productVariantId, offerPriceId, } = params;
|
|
363
|
+
// Ensure required parameters are present
|
|
364
|
+
(0, parameters_validation_1.required)({ cartId, currency, pageable });
|
|
365
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
366
|
+
method: "GET",
|
|
367
|
+
path: `/v2/shop/carts/${cartId}/lines`,
|
|
368
|
+
params: {
|
|
369
|
+
currency,
|
|
370
|
+
page: pageable.page,
|
|
371
|
+
size: pageable.size,
|
|
372
|
+
sorts: pageable.sort,
|
|
373
|
+
supplierId,
|
|
374
|
+
productVariantId,
|
|
375
|
+
offerPriceId,
|
|
376
|
+
},
|
|
377
|
+
});
|
|
378
|
+
return data;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* ✏️ Updates the lines of a cart.
|
|
382
|
+
*
|
|
383
|
+
* This function sends a request to update specific lines of a shopping cart.
|
|
384
|
+
*
|
|
385
|
+
* 🛠 **Endpoint**: `PUT /v2/shop/carts/{cartId}/lines [cART150]`
|
|
386
|
+
*
|
|
387
|
+
* | Parameter | Type | Required | Description |
|
|
388
|
+
* |-------------------|------------|------------|----------------------------------------|
|
|
389
|
+
* | `cartId` | `string` | ✅ | The ID of the cart. |
|
|
390
|
+
* | `linesToUpdate` | `FoCartLineToAdd[]` | ✅ | Details of the lines to update. |
|
|
391
|
+
*
|
|
392
|
+
* 📤 **Returns**:
|
|
393
|
+
* A `Promise<UpdateCartLinesResponse>` containing the updated lines' information.
|
|
394
|
+
*
|
|
395
|
+
* 🛠 **Example usage**:
|
|
396
|
+
* ```ts
|
|
397
|
+
* const response = await updateCartLines({
|
|
398
|
+
* cartId: 'cart1',
|
|
399
|
+
* linesToUpdate: [
|
|
400
|
+
* { offerPriceId: 'line1', quantity: 3, updateAction: 'update' }
|
|
401
|
+
* ]
|
|
402
|
+
* });
|
|
403
|
+
* ```
|
|
404
|
+
*
|
|
405
|
+
* @param {UpdateCartLinesParameters} params - Parameters for updating cart lines:
|
|
406
|
+
* - `cartId` - The ID of the cart.
|
|
407
|
+
* - `linesToUpdate` - Details of the lines to update.
|
|
408
|
+
*
|
|
409
|
+
* @returns {Promise<UpdateCartLinesResponse>} - Response with details about the updated lines.
|
|
410
|
+
*/
|
|
411
|
+
async function updateCartLines(params) {
|
|
412
|
+
const { cartId, linesToUpdate } = params;
|
|
413
|
+
// Ensure required parameters are present
|
|
414
|
+
(0, parameters_validation_1.required)({ cartId, linesToUpdate });
|
|
415
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
416
|
+
method: "PUT",
|
|
417
|
+
path: `/v2/shop/carts/${cartId}/lines`,
|
|
418
|
+
body: JSON.stringify(linesToUpdate),
|
|
419
|
+
});
|
|
420
|
+
return data;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* ✏️ Updates the lines of a cart by variant.
|
|
424
|
+
*
|
|
425
|
+
* This function sends a request to update cart lines based on product variants.
|
|
426
|
+
*
|
|
427
|
+
* 🛠 **Endpoint**: `PUT /v2/shop/carts/{cartId}/lines-by-variant [cART151]`
|
|
428
|
+
*
|
|
429
|
+
* | Parameter | Type | Required | Description |
|
|
430
|
+
* |-------------------|------------|------------|----------------------------------------|
|
|
431
|
+
* | `cartId` | `string` | ✅ | The ID of the cart. |
|
|
432
|
+
* | `linesToUpdate` | `FoCartLineToAddByVariant[]` | ✅ | Details of the lines to update. |
|
|
433
|
+
*
|
|
434
|
+
* 📤 **Returns**:
|
|
435
|
+
* A `Promise<UpdateCartLinesByVariantResponse>` containing the updated lines' information.
|
|
436
|
+
*
|
|
437
|
+
* 🛠 **Example usage**:
|
|
438
|
+
* ```ts
|
|
439
|
+
* const response = await updateCartLinesByVariant({
|
|
440
|
+
* cartId: 'cart1',
|
|
441
|
+
* linesToUpdate: [
|
|
442
|
+
* { offerPriceId: 'variant1', quantity: 2, updateAction: 'update' }
|
|
443
|
+
* ]
|
|
444
|
+
* });
|
|
445
|
+
* ```
|
|
446
|
+
*
|
|
447
|
+
* @param {UpdateCartLinesByVariantParameters} params - Parameters for updating cart lines by variant:
|
|
448
|
+
* - `cartId` - The ID of the cart.
|
|
449
|
+
* - `linesToUpdate` - Details of the lines to update.
|
|
450
|
+
*
|
|
451
|
+
* @returns {Promise<UpdateCartLinesByVariantResponse>} - Response with details about the updated lines by variant.
|
|
452
|
+
*/
|
|
453
|
+
async function updateCartLinesByVariant(params) {
|
|
454
|
+
const { cartId, linesToUpdate } = params;
|
|
455
|
+
// Ensure required parameters are present
|
|
456
|
+
(0, parameters_validation_1.required)({ cartId, linesToUpdate });
|
|
457
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
458
|
+
method: "PUT",
|
|
459
|
+
path: `/v2/shop/carts/${cartId}/lines-by-variant`,
|
|
460
|
+
body: JSON.stringify(linesToUpdate),
|
|
461
|
+
});
|
|
462
|
+
return data;
|
|
463
|
+
}
|
|
464
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/cart/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DJUST SDK Cart Module
|
|
3
|
+
* Re-exports all cart-related types and service.
|
|
4
|
+
*
|
|
5
|
+
* @module services/cart
|
|
6
|
+
* @since 2.17.0
|
|
7
|
+
*/
|
|
8
|
+
export type { CartStatus, CartType, UpdateAction, GetCartsParams, CreateCartParams, DeleteCartParams, GetCartParams, UpdateCartParams, InitializeOrdersParams, GetCartLinesParams, CartLineToAdd, CartLineToAddByVariant, UpdateCartLinesParams, UpdateCartLinesByVariantParams, OfferToDelete, DeleteCartLinesParams, CartLine, CartSummary, Cart, GetCartsResponse, CreateCartResponse, GetCartResponse, DeleteCartsResponse, GetCartLinesResponse, UpdateCartLinesResponse, UpdateCartLinesByVariantResponse, DeleteCartLinesResponse, } from "./types";
|
|
9
|
+
export { CartEndpoints, type CartEndpoint } from "./endpoints";
|
|
10
|
+
export { CartService } from "./cart.service";
|
|
11
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/services/cart/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,YAAY,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,qBAAqB,EACrB,8BAA8B,EAC9B,aAAa,EACb,qBAAqB,EACrB,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,gCAAgC,EAChC,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DJUST SDK Cart Module
|
|
4
|
+
* Re-exports all cart-related types and service.
|
|
5
|
+
*
|
|
6
|
+
* @module services/cart
|
|
7
|
+
* @since 2.17.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.CartService = exports.CartEndpoints = void 0;
|
|
11
|
+
// Endpoints
|
|
12
|
+
var endpoints_1 = require("./endpoints");
|
|
13
|
+
Object.defineProperty(exports, "CartEndpoints", { enumerable: true, get: function () { return endpoints_1.CartEndpoints; } });
|
|
14
|
+
// Service
|
|
15
|
+
var cart_service_1 = require("./cart.service");
|
|
16
|
+
Object.defineProperty(exports, "CartService", { enumerable: true, get: function () { return cart_service_1.CartService; } });
|
|
17
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/services/cart/module.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAiCH,YAAY;AACZ,yCAA+D;AAAtD,0GAAA,aAAa,OAAA;AAEtB,UAAU;AACV,+CAA6C;AAApC,2GAAA,WAAW,OAAA"}
|