@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
package/lib/index.js
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DJUST SDK
|
|
4
|
+
*
|
|
5
|
+
* This module exports both the legacy singleton API (DjustSDK) and
|
|
6
|
+
* the new SSR-safe client factory (createDjustClient).
|
|
7
|
+
*
|
|
8
|
+
* ## For Browser / SPA usage (legacy, still supported):
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import { DjustSDK } from '@djust-b2b/djust-front-sdk';
|
|
11
|
+
* DjustSDK.initialize({ baseUrl, clientId, apiKey });
|
|
12
|
+
* const cart = await DjustSDK.getCart({ cartId, currency });
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* ## For SSR / Nuxt / BFF usage (recommended):
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import { createDjustClient } from '@djust-b2b/djust-front-sdk';
|
|
18
|
+
*
|
|
19
|
+
* const client = createDjustClient({ baseUrl, clientId, apiKey });
|
|
20
|
+
* const sdk = client.withContext({ accessToken, customerAccountId });
|
|
21
|
+
* const cart = await sdk.getCart({ cartId, currency });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @packageDocumentation
|
|
25
|
+
*/
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.getHttpStatus = exports.isApiError = exports.withStructuredErrors = exports.withLegacyErrors = exports.parseLegacyError = exports.isLegacyError = exports.fromLegacyError = exports.toLegacyError = exports.getUserFriendlyMessage = exports.extractErrorCode = exports.extractStatusCode = exports.isTransientError = exports.isClientError = exports.shouldReauthenticate = exports.getRetryDelay = exports.isRetryable = exports.isUnexpectedError = exports.isRateLimitError = exports.isNotFoundError = exports.isValidationError = exports.isServerError = exports.isTimeoutError = exports.isNetworkError = exports.isForbiddenError = exports.isAuthError = exports.isSDKError = exports.createErrorFromException = exports.createErrorFromResponse = exports.UnexpectedError = exports.ServerError = exports.TimeoutError = exports.NetworkError = exports.RateLimitError = exports.NotFoundError = exports.ForbiddenError = exports.AuthError = exports.ValidationError = exports.RETRIABLE_HTTP_STATUS_CODES = exports.RETRIABLE_ERROR_CODES = exports.SDKErrorCode = exports.SDKError = exports.createDjustClient = exports.DjustSDK = void 0;
|
|
28
|
+
const tslib_1 = require("tslib");
|
|
29
|
+
const AuthServices = tslib_1.__importStar(require("./services/auth"));
|
|
30
|
+
const CartServices = tslib_1.__importStar(require("./services/cart"));
|
|
31
|
+
const CustomerAccountServices = tslib_1.__importStar(require("./services/customer-account"));
|
|
32
|
+
const CustomerUserServices = tslib_1.__importStar(require("./services/customer-user"));
|
|
33
|
+
const NavigationCategoryServices = tslib_1.__importStar(require("./services/navigation-category"));
|
|
34
|
+
const ProductServices = tslib_1.__importStar(require("./services/product"));
|
|
35
|
+
const ProductVariantServices = tslib_1.__importStar(require("./services/product-variant"));
|
|
36
|
+
const QuoteServices = tslib_1.__importStar(require("./services/quote"));
|
|
37
|
+
const SupplierServices = tslib_1.__importStar(require("./services/supplier"));
|
|
38
|
+
const CommercialOrderServices = tslib_1.__importStar(require("./services/commercial-order"));
|
|
39
|
+
const LogisticOrderServices = tslib_1.__importStar(require("./services/logistic-order"));
|
|
40
|
+
const IncidentServices = tslib_1.__importStar(require("./services/incident"));
|
|
41
|
+
const OfferServices = tslib_1.__importStar(require("./services/offer-inventories"));
|
|
42
|
+
const CustomFieldServices = tslib_1.__importStar(require("./services/custom-field"));
|
|
43
|
+
const PaymentServices = tslib_1.__importStar(require("./services/payment"));
|
|
44
|
+
const OperationServices = tslib_1.__importStar(require("./services/operation"));
|
|
45
|
+
const fetch_instance_1 = require("./settings/fetch-instance");
|
|
46
|
+
// ============================================================================
|
|
47
|
+
// LEGACY API (Backward Compatible)
|
|
48
|
+
// ============================================================================
|
|
49
|
+
/**
|
|
50
|
+
* Legacy singleton SDK.
|
|
51
|
+
*
|
|
52
|
+
* @deprecated For SSR/BFF usage, prefer `createDjustClient()` which provides
|
|
53
|
+
* isolated state per request. The singleton API is kept for backward
|
|
54
|
+
* compatibility but may cause race conditions in SSR environments.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```typescript
|
|
58
|
+
* // Browser usage (still works)
|
|
59
|
+
* DjustSDK.initialize({ baseUrl, clientId, apiKey });
|
|
60
|
+
* DjustSDK.updateConfiguration({ accessToken: token });
|
|
61
|
+
* const cart = await DjustSDK.getCart({ cartId, currency });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
exports.DjustSDK = {
|
|
65
|
+
...AuthServices,
|
|
66
|
+
...CartServices,
|
|
67
|
+
...CustomerAccountServices,
|
|
68
|
+
...CustomerUserServices,
|
|
69
|
+
...NavigationCategoryServices,
|
|
70
|
+
...ProductServices,
|
|
71
|
+
...ProductVariantServices,
|
|
72
|
+
...QuoteServices,
|
|
73
|
+
...SupplierServices,
|
|
74
|
+
...LogisticOrderServices,
|
|
75
|
+
...CommercialOrderServices,
|
|
76
|
+
...IncidentServices,
|
|
77
|
+
...OfferServices,
|
|
78
|
+
...CustomFieldServices,
|
|
79
|
+
...PaymentServices,
|
|
80
|
+
...OperationServices,
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated Use `createDjustClient()` for SSR-safe usage.
|
|
83
|
+
*/
|
|
84
|
+
initialize: fetch_instance_1.initialize,
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated Use `client.withContext()` for SSR-safe per-request configuration.
|
|
87
|
+
*/
|
|
88
|
+
updateConfiguration: fetch_instance_1.updateConfiguration,
|
|
89
|
+
};
|
|
90
|
+
// ============================================================================
|
|
91
|
+
// NEW SSR-SAFE API (v2.17.0+)
|
|
92
|
+
// ============================================================================
|
|
93
|
+
/**
|
|
94
|
+
* Creates a new DJUST SDK client with isolated state.
|
|
95
|
+
*
|
|
96
|
+
* This is the recommended API for SSR environments (Nuxt, Nitro, Next.js).
|
|
97
|
+
* Each call to `withContext()` returns an isolated client that does not
|
|
98
|
+
* share state with other requests.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```typescript
|
|
102
|
+
* // Create client once at app initialization
|
|
103
|
+
* const djust = createDjustClient({
|
|
104
|
+
* baseUrl: 'https://api.djust.io',
|
|
105
|
+
* clientId: 'your-client-id',
|
|
106
|
+
* apiKey: 'your-api-key',
|
|
107
|
+
* timeout: 30000,
|
|
108
|
+
* strictErrors: true,
|
|
109
|
+
* });
|
|
110
|
+
*
|
|
111
|
+
* // In SSR request handler
|
|
112
|
+
* export default defineEventHandler(async (event) => {
|
|
113
|
+
* const sdk = djust.withContext({
|
|
114
|
+
* accessToken: getCookie(event, 'token'),
|
|
115
|
+
* customerAccountId: getCookie(event, 'customer-account-id'),
|
|
116
|
+
* requestId: getRequestHeader(event, 'x-request-id'),
|
|
117
|
+
* });
|
|
118
|
+
*
|
|
119
|
+
* return await sdk.getCart({ cartId: '123', currency: 'EUR' });
|
|
120
|
+
* });
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
* @since 2.17.0
|
|
124
|
+
*/
|
|
125
|
+
var client_1 = require("./client");
|
|
126
|
+
Object.defineProperty(exports, "createDjustClient", { enumerable: true, get: function () { return client_1.createDjustClient; } });
|
|
127
|
+
// ============================================================================
|
|
128
|
+
// ERROR TYPES (v2.17.0+)
|
|
129
|
+
// ============================================================================
|
|
130
|
+
var errors_1 = require("./errors");
|
|
131
|
+
// Base error & codes
|
|
132
|
+
Object.defineProperty(exports, "SDKError", { enumerable: true, get: function () { return errors_1.SDKError; } });
|
|
133
|
+
Object.defineProperty(exports, "SDKErrorCode", { enumerable: true, get: function () { return errors_1.SDKErrorCode; } });
|
|
134
|
+
Object.defineProperty(exports, "RETRIABLE_ERROR_CODES", { enumerable: true, get: function () { return errors_1.RETRIABLE_ERROR_CODES; } });
|
|
135
|
+
Object.defineProperty(exports, "RETRIABLE_HTTP_STATUS_CODES", { enumerable: true, get: function () { return errors_1.RETRIABLE_HTTP_STATUS_CODES; } });
|
|
136
|
+
// Error subclasses
|
|
137
|
+
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return errors_1.ValidationError; } });
|
|
138
|
+
Object.defineProperty(exports, "AuthError", { enumerable: true, get: function () { return errors_1.AuthError; } });
|
|
139
|
+
Object.defineProperty(exports, "ForbiddenError", { enumerable: true, get: function () { return errors_1.ForbiddenError; } });
|
|
140
|
+
Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return errors_1.NotFoundError; } });
|
|
141
|
+
Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return errors_1.RateLimitError; } });
|
|
142
|
+
Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return errors_1.NetworkError; } });
|
|
143
|
+
Object.defineProperty(exports, "TimeoutError", { enumerable: true, get: function () { return errors_1.TimeoutError; } });
|
|
144
|
+
Object.defineProperty(exports, "ServerError", { enumerable: true, get: function () { return errors_1.ServerError; } });
|
|
145
|
+
Object.defineProperty(exports, "UnexpectedError", { enumerable: true, get: function () { return errors_1.UnexpectedError; } });
|
|
146
|
+
// Factory functions
|
|
147
|
+
Object.defineProperty(exports, "createErrorFromResponse", { enumerable: true, get: function () { return errors_1.createErrorFromResponse; } });
|
|
148
|
+
Object.defineProperty(exports, "createErrorFromException", { enumerable: true, get: function () { return errors_1.createErrorFromException; } });
|
|
149
|
+
// Type guards
|
|
150
|
+
Object.defineProperty(exports, "isSDKError", { enumerable: true, get: function () { return errors_1.isSDKError; } });
|
|
151
|
+
Object.defineProperty(exports, "isAuthError", { enumerable: true, get: function () { return errors_1.isAuthError; } });
|
|
152
|
+
Object.defineProperty(exports, "isForbiddenError", { enumerable: true, get: function () { return errors_1.isForbiddenError; } });
|
|
153
|
+
Object.defineProperty(exports, "isNetworkError", { enumerable: true, get: function () { return errors_1.isNetworkError; } });
|
|
154
|
+
Object.defineProperty(exports, "isTimeoutError", { enumerable: true, get: function () { return errors_1.isTimeoutError; } });
|
|
155
|
+
Object.defineProperty(exports, "isServerError", { enumerable: true, get: function () { return errors_1.isServerError; } });
|
|
156
|
+
Object.defineProperty(exports, "isValidationError", { enumerable: true, get: function () { return errors_1.isValidationError; } });
|
|
157
|
+
Object.defineProperty(exports, "isNotFoundError", { enumerable: true, get: function () { return errors_1.isNotFoundError; } });
|
|
158
|
+
Object.defineProperty(exports, "isRateLimitError", { enumerable: true, get: function () { return errors_1.isRateLimitError; } });
|
|
159
|
+
Object.defineProperty(exports, "isUnexpectedError", { enumerable: true, get: function () { return errors_1.isUnexpectedError; } });
|
|
160
|
+
// Utility functions
|
|
161
|
+
Object.defineProperty(exports, "isRetryable", { enumerable: true, get: function () { return errors_1.isRetryable; } });
|
|
162
|
+
Object.defineProperty(exports, "getRetryDelay", { enumerable: true, get: function () { return errors_1.getRetryDelay; } });
|
|
163
|
+
Object.defineProperty(exports, "shouldReauthenticate", { enumerable: true, get: function () { return errors_1.shouldReauthenticate; } });
|
|
164
|
+
Object.defineProperty(exports, "isClientError", { enumerable: true, get: function () { return errors_1.isClientError; } });
|
|
165
|
+
Object.defineProperty(exports, "isTransientError", { enumerable: true, get: function () { return errors_1.isTransientError; } });
|
|
166
|
+
Object.defineProperty(exports, "extractStatusCode", { enumerable: true, get: function () { return errors_1.extractStatusCode; } });
|
|
167
|
+
Object.defineProperty(exports, "extractErrorCode", { enumerable: true, get: function () { return errors_1.extractErrorCode; } });
|
|
168
|
+
Object.defineProperty(exports, "getUserFriendlyMessage", { enumerable: true, get: function () { return errors_1.getUserFriendlyMessage; } });
|
|
169
|
+
// Backward compatibility helpers
|
|
170
|
+
Object.defineProperty(exports, "toLegacyError", { enumerable: true, get: function () { return errors_1.toLegacyError; } });
|
|
171
|
+
Object.defineProperty(exports, "fromLegacyError", { enumerable: true, get: function () { return errors_1.fromLegacyError; } });
|
|
172
|
+
Object.defineProperty(exports, "isLegacyError", { enumerable: true, get: function () { return errors_1.isLegacyError; } });
|
|
173
|
+
Object.defineProperty(exports, "parseLegacyError", { enumerable: true, get: function () { return errors_1.parseLegacyError; } });
|
|
174
|
+
Object.defineProperty(exports, "withLegacyErrors", { enumerable: true, get: function () { return errors_1.withLegacyErrors; } });
|
|
175
|
+
Object.defineProperty(exports, "withStructuredErrors", { enumerable: true, get: function () { return errors_1.withStructuredErrors; } });
|
|
176
|
+
Object.defineProperty(exports, "isApiError", { enumerable: true, get: function () { return errors_1.isApiError; } });
|
|
177
|
+
Object.defineProperty(exports, "getHttpStatus", { enumerable: true, get: function () { return errors_1.getHttpStatus; } });
|
|
178
|
+
// ============================================================================
|
|
179
|
+
// INTERFACES (unchanged)
|
|
180
|
+
// ============================================================================
|
|
181
|
+
tslib_1.__exportStar(require("./interfaces"), exports);
|
|
182
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;;AAEH,sEAAgD;AAChD,sEAAgD;AAChD,6FAAuE;AACvE,uFAAiE;AACjE,mGAA6E;AAC7E,4EAAsD;AACtD,2FAAqE;AACrE,wEAAkD;AAClD,8EAAwD;AACxD,6FAAuE;AACvE,yFAAmE;AACnE,8EAAwD;AACxD,oFAA8D;AAC9D,qFAA+D;AAC/D,4EAAsD;AACtD,gFAA0D;AAC1D,8DAA4E;AAE5E,+EAA+E;AAC/E,mCAAmC;AACnC,+EAA+E;AAE/E;;;;;;;;;;;;;;GAcG;AACU,QAAA,QAAQ,GAAG;IACtB,GAAG,YAAY;IACf,GAAG,YAAY;IACf,GAAG,uBAAuB;IAC1B,GAAG,oBAAoB;IACvB,GAAG,0BAA0B;IAC7B,GAAG,eAAe;IAClB,GAAG,sBAAsB;IACzB,GAAG,aAAa;IAChB,GAAG,gBAAgB;IACnB,GAAG,qBAAqB;IACxB,GAAG,uBAAuB;IAC1B,GAAG,gBAAgB;IACnB,GAAG,aAAa;IAChB,GAAG,mBAAmB;IACtB,GAAG,eAAe;IAClB,GAAG,iBAAiB;IACpB;;OAEG;IACH,UAAU,EAAV,2BAAU;IACV;;OAEG;IACH,mBAAmB,EAAnB,oCAAmB;CACpB,CAAC;AAEF,+EAA+E;AAC/E,8BAA8B;AAC9B,+EAA+E;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,mCAA6C;AAApC,2GAAA,iBAAiB,OAAA;AAU1B,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E,mCAqDkB;AApDhB,qBAAqB;AACrB,kGAAA,QAAQ,OAAA;AACR,sGAAA,YAAY,OAAA;AACZ,+GAAA,qBAAqB,OAAA;AACrB,qHAAA,2BAA2B,OAAA;AAE3B,mBAAmB;AACnB,yGAAA,eAAe,OAAA;AACf,mGAAA,SAAS,OAAA;AACT,wGAAA,cAAc,OAAA;AACd,uGAAA,aAAa,OAAA;AACb,wGAAA,cAAc,OAAA;AACd,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,qGAAA,WAAW,OAAA;AACX,yGAAA,eAAe,OAAA;AAEf,oBAAoB;AACpB,iHAAA,uBAAuB,OAAA;AACvB,kHAAA,wBAAwB,OAAA;AAExB,cAAc;AACd,oGAAA,UAAU,OAAA;AACV,qGAAA,WAAW,OAAA;AACX,0GAAA,gBAAgB,OAAA;AAChB,wGAAA,cAAc,OAAA;AACd,wGAAA,cAAc,OAAA;AACd,uGAAA,aAAa,OAAA;AACb,2GAAA,iBAAiB,OAAA;AACjB,yGAAA,eAAe,OAAA;AACf,0GAAA,gBAAgB,OAAA;AAChB,2GAAA,iBAAiB,OAAA;AAEjB,oBAAoB;AACpB,qGAAA,WAAW,OAAA;AACX,uGAAA,aAAa,OAAA;AACb,8GAAA,oBAAoB,OAAA;AACpB,uGAAA,aAAa,OAAA;AACb,0GAAA,gBAAgB,OAAA;AAChB,2GAAA,iBAAiB,OAAA;AACjB,0GAAA,gBAAgB,OAAA;AAChB,gHAAA,sBAAsB,OAAA;AAEtB,iCAAiC;AACjC,uGAAA,aAAa,OAAA;AACb,yGAAA,eAAe,OAAA;AACf,uGAAA,aAAa,OAAA;AACb,0GAAA,gBAAgB,OAAA;AAChB,0GAAA,gBAAgB,OAAA;AAChB,8GAAA,oBAAoB,OAAA;AACpB,oGAAA,UAAU,OAAA;AACV,uGAAA,aAAa,OAAA;AAYf,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E,uDAA6B"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DJUST SDK Interfaces & Models
|
|
3
|
+
* Type definitions for all API entities.
|
|
4
|
+
*
|
|
5
|
+
* This module re-exports service definitions for backward compatibility.
|
|
6
|
+
* For new code, prefer importing directly from the service modules.
|
|
7
|
+
*
|
|
8
|
+
* @module interfaces
|
|
9
|
+
* @since 2.17.0
|
|
10
|
+
*/
|
|
11
|
+
export * from "../services/attributes/definitions";
|
|
12
|
+
export * from "../services/auth/definitions";
|
|
13
|
+
export * from "../services/cart/definitions";
|
|
14
|
+
export * from "../services/commercial-order/definitions";
|
|
15
|
+
export * from "../services/custom-field/definitions";
|
|
16
|
+
export * from "../services/customer-account/definitions";
|
|
17
|
+
export * from "../services/customer-user/definitions";
|
|
18
|
+
export * from "../services/incident/definitions";
|
|
19
|
+
export * from "../services/logistic-order/definitions";
|
|
20
|
+
export * from "../services/navigation-category/definitions";
|
|
21
|
+
export * from "../services/offer-inventories/definitions";
|
|
22
|
+
export * from "../services/offer-prices/definitions";
|
|
23
|
+
export * from "../services/operation/definitions";
|
|
24
|
+
export * from "../services/payment/definitions";
|
|
25
|
+
export * from "../services/product/definitions";
|
|
26
|
+
export * from "../services/product-variant/definitions";
|
|
27
|
+
export * from "../services/quote/definitions";
|
|
28
|
+
export * from "../services/supplier/definitions";
|
|
29
|
+
export type { Country, Currency, Lang, SortDirection, NullHandling, ExternalSource, Channel, IdType, PageableParameters, PageableObject, SingleWarningReportDto, WarningReportDto, Order as SortOrder, DjustApiResponse, DjustApiWarning, DjustApiException, DjustConfig, BrowserInfo, } from "./models/common";
|
|
30
|
+
export type { AddressSnapshot } from "./models/address";
|
|
31
|
+
export type { AttributeStatus, AttributeValue } from "./models/attribute";
|
|
32
|
+
export type { OfferPriceType, PackingType, BestOffer, PriceRange, OfferDto, } from "./models/offer";
|
|
33
|
+
export type { PaymentStatus, PaymentOption } from "./models/payment";
|
|
34
|
+
export type { ProductStatus, ProductVariantAttributeType, UnitType, ProductIdType, ProductReviewDto, ProductReviewsSummary, SearchThumbnailsAndAggregation, SearchAggregationBucket, SearchAggregation, PageProductThumbnail, ProductThumbnail, ProductVariantResponse, ProductVariantDTO, VariantAttributesValuesDTO, ProductMediaInfoDTO, MediaInfoDTO, Product, ClassificationCategory, ProductUnitDto, ProductSpecification, Tag, ProductInfo, ProductReviewRatings, PageProductVariantResponse, ProductAutocomplete, } from "./models/product";
|
|
35
|
+
export type { SupplierSnapshot, SupplierDto, SupplierEvaluationDto, } from "./models/supplier";
|
|
36
|
+
export type { SimpleUserView, CustomerUser, CustomerUserSnapshot, CustomerUserDto, CustomerUserWithoutAccountDto, CivilityType, UserStatus, } from "./models/customer-user";
|
|
37
|
+
export type { NavigationCategoryDto, NavigationCategorySimpleView, } from "./models/navigation-category";
|
|
38
|
+
export type { CustomerAccountDto } from "./models/customer-account";
|
|
39
|
+
export type { CustomFieldSearch, CustomFieldValueDto, CustomFieldValueObject, CustomFieldValueRequest, CustomFieldValueTeaserObject, } from "./models/custom-field";
|
|
40
|
+
export type { Sort, ProductsSearchList } from "./models/searchProduct";
|
|
41
|
+
export type { MasterQuote } from "./models/quote";
|
|
42
|
+
export type { OrderCommercialDto, OrderCommercialLineDto, OrderIdType, OfferToDelete, ThreadReasonType, } from "./models/order";
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AAMjD,YAAY,EACV,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,cAAc,EACd,OAAO,EACP,MAAM,EACN,kBAAkB,EAClB,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,KAAK,IAAI,SAAS,EAClB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,WAAW,GACZ,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE1E,YAAY,EACV,cAAc,EACd,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAQ,GACT,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAErE,YAAY,EACV,aAAa,EACb,2BAA2B,EAC3B,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,8BAA8B,EAC9B,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EACnB,YAAY,EACZ,OAAO,EACP,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,GAAG,EACH,WAAW,EACX,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACV,gBAAgB,EAChB,WAAW,EACX,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EACV,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,6BAA6B,EAC7B,YAAY,EACZ,UAAU,GACX,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,8BAA8B,CAAC;AAEtC,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,WAAW,EACX,aAAa,EACb,gBAAgB,GACjB,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DJUST SDK Interfaces & Models
|
|
4
|
+
* Type definitions for all API entities.
|
|
5
|
+
*
|
|
6
|
+
* This module re-exports service definitions for backward compatibility.
|
|
7
|
+
* For new code, prefer importing directly from the service modules.
|
|
8
|
+
*
|
|
9
|
+
* @module interfaces
|
|
10
|
+
* @since 2.17.0
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
const tslib_1 = require("tslib");
|
|
14
|
+
// ============================================================================
|
|
15
|
+
// LEGACY SERVICE DEFINITIONS (for backward compatibility)
|
|
16
|
+
// These are the original exports that existing code depends on.
|
|
17
|
+
// ============================================================================
|
|
18
|
+
tslib_1.__exportStar(require("../services/attributes/definitions"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("../services/auth/definitions"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("../services/cart/definitions"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("../services/commercial-order/definitions"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("../services/custom-field/definitions"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("../services/customer-account/definitions"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("../services/customer-user/definitions"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("../services/incident/definitions"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("../services/logistic-order/definitions"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("../services/navigation-category/definitions"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("../services/offer-inventories/definitions"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("../services/offer-prices/definitions"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("../services/operation/definitions"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("../services/payment/definitions"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("../services/product/definitions"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("../services/product-variant/definitions"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("../services/quote/definitions"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("../services/supplier/definitions"), exports);
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,+EAA+E;AAC/E,0DAA0D;AAC1D,gEAAgE;AAChE,+EAA+E;AAE/E,6EAAmD;AACnD,uEAA6C;AAC7C,uEAA6C;AAC7C,mFAAyD;AACzD,+EAAqD;AACrD,mFAAyD;AACzD,gFAAsD;AACtD,2EAAiD;AACjD,iFAAuD;AACvD,sFAA4D;AAC5D,oFAA0D;AAC1D,+EAAqD;AACrD,4EAAkD;AAClD,0EAAgD;AAChD,0EAAgD;AAChD,kFAAwD;AACxD,wEAA8C;AAC9C,2EAAiD"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Country } from "./common";
|
|
2
|
+
export interface AddressDto {
|
|
3
|
+
additionalAddress: string;
|
|
4
|
+
address: string;
|
|
5
|
+
billing: boolean;
|
|
6
|
+
city: string;
|
|
7
|
+
company: string;
|
|
8
|
+
country: Country;
|
|
9
|
+
externalId: string;
|
|
10
|
+
fullName: string;
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
phone: string;
|
|
14
|
+
shipping: boolean;
|
|
15
|
+
state: string;
|
|
16
|
+
zipcode: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateAddressRequest {
|
|
19
|
+
additionalAddress?: string;
|
|
20
|
+
address: string;
|
|
21
|
+
billing?: boolean;
|
|
22
|
+
city: string;
|
|
23
|
+
company?: string;
|
|
24
|
+
country: string;
|
|
25
|
+
externalId?: string;
|
|
26
|
+
fullName?: string;
|
|
27
|
+
label?: string;
|
|
28
|
+
phone?: string;
|
|
29
|
+
shipping?: boolean;
|
|
30
|
+
state?: string;
|
|
31
|
+
zipcode: string;
|
|
32
|
+
}
|
|
33
|
+
export interface UpdateAddressRequest {
|
|
34
|
+
additionalAddress?: string;
|
|
35
|
+
address: string;
|
|
36
|
+
billing?: boolean;
|
|
37
|
+
city: string;
|
|
38
|
+
company?: string;
|
|
39
|
+
country: string;
|
|
40
|
+
externalId?: string;
|
|
41
|
+
fullName: string;
|
|
42
|
+
label?: string;
|
|
43
|
+
phone?: string;
|
|
44
|
+
shipping?: boolean;
|
|
45
|
+
state?: string;
|
|
46
|
+
zipcode: string;
|
|
47
|
+
}
|
|
48
|
+
export interface AddressSnapshot {
|
|
49
|
+
additionalAddress: string | null;
|
|
50
|
+
address: string;
|
|
51
|
+
city: string;
|
|
52
|
+
company?: string;
|
|
53
|
+
country: string;
|
|
54
|
+
externalId?: string;
|
|
55
|
+
fullName: string;
|
|
56
|
+
label: string;
|
|
57
|
+
phone: string;
|
|
58
|
+
state: string;
|
|
59
|
+
zipcode: string;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../src/interfaces/models/address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,MAAM,WAAW,UAAU;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../../src/interfaces/models/address.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type AttributeType = "LONG_TEXT" | "TEXT" | "NUMBER" | "METRIC" | "DATE" | "COLOR" | "MEDIA" | "LIST_TEXT" | "LIST_METRIC" | "LIST_COLOR";
|
|
2
|
+
export type AttributeStatus = "ACTIVE" | "INACTIVE";
|
|
3
|
+
export interface AttributeValue {
|
|
4
|
+
attribute: Attribute;
|
|
5
|
+
value: any;
|
|
6
|
+
}
|
|
7
|
+
export interface Attribute {
|
|
8
|
+
id: string;
|
|
9
|
+
externalId: string;
|
|
10
|
+
externalSource: string;
|
|
11
|
+
names: {
|
|
12
|
+
additionalProp1: string;
|
|
13
|
+
additionalProp2: string;
|
|
14
|
+
additionalProp3: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface AttributeObject {
|
|
18
|
+
externalId: string;
|
|
19
|
+
id: string;
|
|
20
|
+
name: Record<string, string>;
|
|
21
|
+
type: AttributeType;
|
|
22
|
+
values: string[];
|
|
23
|
+
}
|
|
24
|
+
export interface AttributeObject {
|
|
25
|
+
externalId: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: Record<string, string>;
|
|
28
|
+
type: AttributeType;
|
|
29
|
+
values: string[];
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=attribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../src/interfaces/models/attribute.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,OAAO,GACP,WAAW,GACX,aAAa,GACb,YAAY,CAAC;AAEjB,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE;QACL,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attribute.js","sourceRoot":"","sources":["../../../src/interfaces/models/attribute.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JWT Token structure returned by authentication.
|
|
3
|
+
*/
|
|
4
|
+
export interface Token {
|
|
5
|
+
/** The access token for API calls */
|
|
6
|
+
accessToken: string;
|
|
7
|
+
/** Token expiration timestamp */
|
|
8
|
+
expireAt: number;
|
|
9
|
+
/** Refresh token for obtaining new access tokens */
|
|
10
|
+
refreshToken: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Authenticated user information.
|
|
14
|
+
*/
|
|
15
|
+
export interface AuthenticatedUserDto {
|
|
16
|
+
/** User's unique identifier */
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Authentication response containing token and user info.
|
|
21
|
+
*/
|
|
22
|
+
export interface AuthenticationResponseDto {
|
|
23
|
+
/** JWT token information */
|
|
24
|
+
token: Token;
|
|
25
|
+
/** Authenticated user details */
|
|
26
|
+
user: AuthenticatedUserDto;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Login request parameters.
|
|
30
|
+
*/
|
|
31
|
+
export interface AuthentificationLoginRequestDto {
|
|
32
|
+
/** User's email or username */
|
|
33
|
+
username: string;
|
|
34
|
+
/** User's password */
|
|
35
|
+
password: string;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/interfaces/models/auth.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,qCAAqC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,4BAA4B;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,iCAAiC;IACjC,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/interfaces/models/auth.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { OfferDto } from "./offer";
|
|
2
|
+
import { ProductVariantDTO } from "./product";
|
|
3
|
+
import { SupplierAggregationDto, SupplierSimpleView } from "./supplier";
|
|
4
|
+
import { Currency } from "./common";
|
|
5
|
+
import { PriceDto } from "./price";
|
|
6
|
+
export type CartStatusDto = "INIT" | "LOADING" | "ON_GOING" | "COMPLETED";
|
|
7
|
+
export type CartTypeDto = "CART" | "BUYING_LIST";
|
|
8
|
+
export type UpdateCartLineType = "ADD_QUANTITY" | "REMOVE_QUANTITY" | "REPLACE_QUANTITY";
|
|
9
|
+
export interface CartDto {
|
|
10
|
+
creationDate: string;
|
|
11
|
+
currency: Currency;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
numberOfLines: number;
|
|
15
|
+
numberOfProducts: number;
|
|
16
|
+
status: CartStatusDto;
|
|
17
|
+
totalDiscountPrice: PriceDto;
|
|
18
|
+
totalPrice: PriceDto;
|
|
19
|
+
type: CartTypeDto;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
}
|
|
22
|
+
export interface CartWithTotalsDto {
|
|
23
|
+
creationDate: string;
|
|
24
|
+
currency: Currency;
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
nbFirstLines: CartLineDto[];
|
|
28
|
+
numberOfLines: number;
|
|
29
|
+
numberOfProducts: number;
|
|
30
|
+
status: CartStatusDto;
|
|
31
|
+
supplierAggregates: SupplierAggregationDto[];
|
|
32
|
+
totalDiscountPrice: PriceDto;
|
|
33
|
+
totalPrice: PriceDto;
|
|
34
|
+
type: CartTypeDto;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
}
|
|
37
|
+
export interface CartLineDto {
|
|
38
|
+
blockedLineInformation: BlockedLineInformationDto[];
|
|
39
|
+
createdAt: string;
|
|
40
|
+
offer: OfferDto;
|
|
41
|
+
productVariant: ProductVariantDTO;
|
|
42
|
+
quantity: number;
|
|
43
|
+
supplier: SupplierSimpleView;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
}
|
|
46
|
+
export interface BlockedLineInformationDto {
|
|
47
|
+
code: string;
|
|
48
|
+
detail: string;
|
|
49
|
+
}
|
|
50
|
+
export interface PageCartDto {
|
|
51
|
+
carts: CartDto[];
|
|
52
|
+
page: number;
|
|
53
|
+
size: number;
|
|
54
|
+
sort: string[];
|
|
55
|
+
totalElement: number;
|
|
56
|
+
}
|
|
57
|
+
export interface PageCartLineDto {
|
|
58
|
+
cartLines: CartLineDto[];
|
|
59
|
+
page: number;
|
|
60
|
+
size: number;
|
|
61
|
+
sort: string[];
|
|
62
|
+
totalElement: number;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=cart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.d.ts","sourceRoot":"","sources":["../../../src/interfaces/models/cart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC;AAE1E,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,aAAa,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAC1B,cAAc,GACd,iBAAiB,GACjB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,OAAO;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,aAAa,CAAC;IACtB,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,UAAU,EAAE,QAAQ,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,aAAa,CAAC;IACtB,kBAAkB,EAAE,sBAAsB,EAAE,CAAC;IAC7C,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,UAAU,EAAE,QAAQ,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,sBAAsB,EAAE,yBAAyB,EAAE,CAAC;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,CAAC;IAChB,cAAc,EAAE,iBAAiB,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.js","sourceRoot":"","sources":["../../../src/interfaces/models/cart.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export type Country = "FR" | "GB" | "US" | "ES" | "DE" | "IT" | "PT" | "AT" | "SE" | "DK" | "NO" | "FI" | "NL" | "IR" | "BE" | "CH" | "LU" | "LV" | "LT" | "EE" | "PL" | "CZ" | "SI" | "SK" | "GR" | "HU" | "RO";
|
|
2
|
+
export type Currency = "USD" | "EUR" | "GBP" | "INR" | "AUD" | "CAD" | "SGD" | "CHF" | "MYR" | "JPY" | "CNY" | "SEK" | "DKK" | "NOK" | "AED" | "TRY";
|
|
3
|
+
export type Lang = "EN" | "FR" | "ES" | "DE";
|
|
4
|
+
export type SortDirection = "ASC" | "DESC";
|
|
5
|
+
export type NullHandling = "NATIVE" | "NULLS_FIRST" | "NULLS_LAST";
|
|
6
|
+
export type ExternalSource = "MIRAKL" | "CLIENT" | "NOT_DEFINED" | "EXTERN" | "SYSTEM";
|
|
7
|
+
export type Channel = "DESKTOP" | "MOBILE" | "TABLET" | "CALL_CENTER" | "UNKNOWN";
|
|
8
|
+
export type IdType = "DJUST_ID" | "EXTERNAL_ID";
|
|
9
|
+
export type PageableParameters = {
|
|
10
|
+
page?: number;
|
|
11
|
+
size?: number;
|
|
12
|
+
sort?: string[];
|
|
13
|
+
};
|
|
14
|
+
export interface PageableObject {
|
|
15
|
+
offset: number;
|
|
16
|
+
pageNumber: number;
|
|
17
|
+
pageSize: number;
|
|
18
|
+
paged: boolean;
|
|
19
|
+
sort: Order[];
|
|
20
|
+
unpaged: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface SingleWarningReportDto {
|
|
23
|
+
detail: string;
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
26
|
+
export interface WarningReportDto {
|
|
27
|
+
singleWarningReportDto: SingleWarningReportDto[];
|
|
28
|
+
}
|
|
29
|
+
export interface Order {
|
|
30
|
+
ascending: boolean;
|
|
31
|
+
descending: boolean;
|
|
32
|
+
direction: SortDirection;
|
|
33
|
+
ignoreCase: boolean;
|
|
34
|
+
nullHandling: NullHandling;
|
|
35
|
+
property: string;
|
|
36
|
+
}
|
|
37
|
+
export interface DjustApiResponse {
|
|
38
|
+
content: any;
|
|
39
|
+
warnings: DjustApiWarning[];
|
|
40
|
+
errors: DjustApiException[];
|
|
41
|
+
}
|
|
42
|
+
export interface DjustApiWarning {
|
|
43
|
+
code: string;
|
|
44
|
+
message: string;
|
|
45
|
+
field: string;
|
|
46
|
+
}
|
|
47
|
+
export interface DjustApiException {
|
|
48
|
+
message: string;
|
|
49
|
+
detail: string;
|
|
50
|
+
code: string;
|
|
51
|
+
}
|
|
52
|
+
export interface DjustConfig {
|
|
53
|
+
customerAccountId?: string;
|
|
54
|
+
storeId?: string;
|
|
55
|
+
storeViewId?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface BrowserInfo {
|
|
58
|
+
acceptHeader: string;
|
|
59
|
+
colorDepth: number;
|
|
60
|
+
javaEnabled: boolean;
|
|
61
|
+
javaScriptEnabled: boolean;
|
|
62
|
+
language: string;
|
|
63
|
+
screenHeight: number;
|
|
64
|
+
screenWidth: number;
|
|
65
|
+
timeZoneOffset: number;
|
|
66
|
+
userAgent: string;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/interfaces/models/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GACf,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,MAAM,MAAM,QAAQ,GAChB,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AAEV,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,CAAC;AAEnE,MAAM,MAAM,cAAc,GACtB,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,QAAQ,CAAC;AAEb,MAAM,MAAM,OAAO,GACf,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,SAAS,CAAC;AAEd,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC;AAEhD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB,EAAE,sBAAsB,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,KAAK;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/interfaces/models/common.ts"],"names":[],"mappings":""}
|