@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,49 @@
|
|
|
1
|
+
import { SupplierDto, SupplierEvaluationDto, SupplierIdType } from "../../../interfaces/models/supplier";
|
|
2
|
+
import { PageableParameters } from "../../../interfaces/models/common";
|
|
3
|
+
export declare const mockSuppliers: SupplierDto[];
|
|
4
|
+
export declare const mockSupplierEvaluations: SupplierEvaluationDto[];
|
|
5
|
+
export declare const mockPageable: PageableParameters;
|
|
6
|
+
export declare const mockPageableWithSort: PageableParameters;
|
|
7
|
+
export declare const mockGetSuppliersParams: {
|
|
8
|
+
pageable: PageableParameters;
|
|
9
|
+
supplierStatus: string;
|
|
10
|
+
supplierIds: string[];
|
|
11
|
+
idType: SupplierIdType;
|
|
12
|
+
};
|
|
13
|
+
export declare const mockGetSupplierParams: {
|
|
14
|
+
supplierId: string;
|
|
15
|
+
idType: SupplierIdType;
|
|
16
|
+
};
|
|
17
|
+
export declare const mockGetSupplierEvaluationsParams: {
|
|
18
|
+
supplierId: string;
|
|
19
|
+
idType: SupplierIdType;
|
|
20
|
+
pageable: PageableParameters;
|
|
21
|
+
};
|
|
22
|
+
export declare const mockErrorResponse: {
|
|
23
|
+
message: string;
|
|
24
|
+
status: number;
|
|
25
|
+
};
|
|
26
|
+
export declare const mockNotFoundError: {
|
|
27
|
+
message: string;
|
|
28
|
+
status: number;
|
|
29
|
+
};
|
|
30
|
+
export declare const mockValidationError: {
|
|
31
|
+
message: string;
|
|
32
|
+
status: number;
|
|
33
|
+
};
|
|
34
|
+
export declare const mockEnhancedFetchSuccess: {
|
|
35
|
+
data: SupplierDto[];
|
|
36
|
+
headers: Headers;
|
|
37
|
+
status: number;
|
|
38
|
+
};
|
|
39
|
+
export declare const mockEnhancedFetchSupplierSuccess: {
|
|
40
|
+
data: SupplierDto;
|
|
41
|
+
headers: Headers;
|
|
42
|
+
status: number;
|
|
43
|
+
};
|
|
44
|
+
export declare const mockEnhancedFetchEvaluationsSuccess: {
|
|
45
|
+
data: SupplierEvaluationDto[];
|
|
46
|
+
headers: Headers;
|
|
47
|
+
status: number;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=supplier-mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supplier-mocks.d.ts","sourceRoot":"","sources":["../../../../src/services/supplier/__mocks__/supplier-mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,cAAc,EACf,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,eAAO,MAAM,aAAa,EAAE,WAAW,EA4EtC,CAAC;AAGF,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EA4B1D,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,kBAI1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,kBAIlC,CAAC;AAGF,eAAO,MAAM,sBAAsB;;;;YAIX,cAAc;CACrC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;YAEV,cAAc;CACrC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;YAErB,cAAc;;CAErC,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AAGF,eAAO,MAAM,wBAAwB;;;;CAIpC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;CAI5C,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;CAI/C,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mockEnhancedFetchEvaluationsSuccess = exports.mockEnhancedFetchSupplierSuccess = exports.mockEnhancedFetchSuccess = exports.mockValidationError = exports.mockNotFoundError = exports.mockErrorResponse = exports.mockGetSupplierEvaluationsParams = exports.mockGetSupplierParams = exports.mockGetSuppliersParams = exports.mockPageableWithSort = exports.mockPageable = exports.mockSupplierEvaluations = exports.mockSuppliers = void 0;
|
|
4
|
+
// Mock data for suppliers
|
|
5
|
+
exports.mockSuppliers = [
|
|
6
|
+
{
|
|
7
|
+
id: "supplier-1",
|
|
8
|
+
externalId: "ext-supplier-1",
|
|
9
|
+
name: "Supplier One",
|
|
10
|
+
description: "First test supplier",
|
|
11
|
+
supplierStatus: "ACTIVE",
|
|
12
|
+
supplierRating: "4.5",
|
|
13
|
+
evaluationCount: 10,
|
|
14
|
+
totalOffers: 50,
|
|
15
|
+
totalOrders: 100,
|
|
16
|
+
totalSales: 50000,
|
|
17
|
+
returnPolicy: "30 days return policy",
|
|
18
|
+
logo: "https://example.com/logo1.png",
|
|
19
|
+
banner: "https://example.com/banner1.png",
|
|
20
|
+
additionalImageLink: ["https://example.com/image1.png"],
|
|
21
|
+
isDefault: true,
|
|
22
|
+
externalSource: "MIRAKL",
|
|
23
|
+
customFieldValues: [],
|
|
24
|
+
paymentDueDate: {
|
|
25
|
+
paymentDueDateDelay: 30,
|
|
26
|
+
paymentDueDateMode: "SIMPLE",
|
|
27
|
+
},
|
|
28
|
+
createdAt: "2023-01-01T00:00:00Z",
|
|
29
|
+
updatedAt: "2023-01-01T00:00:00Z",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "supplier-2",
|
|
33
|
+
externalId: "ext-supplier-2",
|
|
34
|
+
name: "Supplier Two",
|
|
35
|
+
description: "Second test supplier",
|
|
36
|
+
supplierStatus: "INACTIVE",
|
|
37
|
+
supplierRating: "3.8",
|
|
38
|
+
evaluationCount: 5,
|
|
39
|
+
totalOffers: 25,
|
|
40
|
+
totalOrders: 50,
|
|
41
|
+
totalSales: 25000,
|
|
42
|
+
returnPolicy: "14 days return policy",
|
|
43
|
+
logo: "https://example.com/logo2.png",
|
|
44
|
+
banner: "https://example.com/banner2.png",
|
|
45
|
+
additionalImageLink: ["https://example.com/image2.png"],
|
|
46
|
+
isDefault: false,
|
|
47
|
+
externalSource: "CLIENT",
|
|
48
|
+
customFieldValues: [],
|
|
49
|
+
paymentDueDate: {
|
|
50
|
+
paymentDueDateDelay: 15,
|
|
51
|
+
paymentDueDateMode: "SIMPLE",
|
|
52
|
+
},
|
|
53
|
+
createdAt: "2023-01-02T00:00:00Z",
|
|
54
|
+
updatedAt: "2023-01-02T00:00:00Z",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "supplier-3",
|
|
58
|
+
externalId: "ext-supplier-3",
|
|
59
|
+
name: "Supplier Three",
|
|
60
|
+
description: "Third test supplier",
|
|
61
|
+
supplierStatus: "SUSPENDED",
|
|
62
|
+
supplierRating: "2.1",
|
|
63
|
+
evaluationCount: 2,
|
|
64
|
+
totalOffers: 10,
|
|
65
|
+
totalOrders: 20,
|
|
66
|
+
totalSales: 10000,
|
|
67
|
+
returnPolicy: "No returns",
|
|
68
|
+
logo: "https://example.com/logo3.png",
|
|
69
|
+
banner: "https://example.com/banner3.png",
|
|
70
|
+
additionalImageLink: ["https://example.com/image3.png"],
|
|
71
|
+
isDefault: false,
|
|
72
|
+
externalSource: "EXTERN",
|
|
73
|
+
customFieldValues: [],
|
|
74
|
+
paymentDueDate: {
|
|
75
|
+
paymentDueDateDelay: 7,
|
|
76
|
+
paymentDueDateMode: "END_OF_MONTH",
|
|
77
|
+
},
|
|
78
|
+
createdAt: "2023-01-03T00:00:00Z",
|
|
79
|
+
updatedAt: "2023-01-03T00:00:00Z",
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
// Mock data for supplier evaluations
|
|
83
|
+
exports.mockSupplierEvaluations = [
|
|
84
|
+
{
|
|
85
|
+
comment: "Excellent service and fast delivery",
|
|
86
|
+
creationDate: "2023-01-15T10:00:00Z",
|
|
87
|
+
customerId: "customer-1",
|
|
88
|
+
firstname: "John",
|
|
89
|
+
lastname: "Doe",
|
|
90
|
+
grade: 5,
|
|
91
|
+
lastUpdatedDate: "2023-01-15T10:00:00Z",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
comment: "Good quality products",
|
|
95
|
+
creationDate: "2023-01-14T15:30:00Z",
|
|
96
|
+
customerId: "customer-2",
|
|
97
|
+
firstname: "Jane",
|
|
98
|
+
lastname: "Smith",
|
|
99
|
+
grade: 4,
|
|
100
|
+
lastUpdatedDate: "2023-01-14T15:30:00Z",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
comment: "Average experience",
|
|
104
|
+
creationDate: "2023-01-13T09:15:00Z",
|
|
105
|
+
customerId: "customer-3",
|
|
106
|
+
firstname: "Bob",
|
|
107
|
+
lastname: "Johnson",
|
|
108
|
+
grade: 3,
|
|
109
|
+
lastUpdatedDate: "2023-01-13T09:15:00Z",
|
|
110
|
+
},
|
|
111
|
+
];
|
|
112
|
+
// Mock pagination data
|
|
113
|
+
exports.mockPageable = {
|
|
114
|
+
page: 0,
|
|
115
|
+
size: 10,
|
|
116
|
+
sort: ["createdAt,desc"],
|
|
117
|
+
};
|
|
118
|
+
exports.mockPageableWithSort = {
|
|
119
|
+
page: 1,
|
|
120
|
+
size: 5,
|
|
121
|
+
sort: ["name,asc"],
|
|
122
|
+
};
|
|
123
|
+
// Mock request parameters
|
|
124
|
+
exports.mockGetSuppliersParams = {
|
|
125
|
+
pageable: exports.mockPageable,
|
|
126
|
+
supplierStatus: "ACTIVE",
|
|
127
|
+
supplierIds: ["supplier-1", "supplier-2"],
|
|
128
|
+
idType: "DJUST_ID",
|
|
129
|
+
};
|
|
130
|
+
exports.mockGetSupplierParams = {
|
|
131
|
+
supplierId: "supplier-1",
|
|
132
|
+
idType: "DJUST_ID",
|
|
133
|
+
};
|
|
134
|
+
exports.mockGetSupplierEvaluationsParams = {
|
|
135
|
+
supplierId: "supplier-1",
|
|
136
|
+
idType: "DJUST_ID",
|
|
137
|
+
pageable: exports.mockPageable,
|
|
138
|
+
};
|
|
139
|
+
// Mock error responses
|
|
140
|
+
exports.mockErrorResponse = {
|
|
141
|
+
message: "Internal server error",
|
|
142
|
+
status: 500,
|
|
143
|
+
};
|
|
144
|
+
exports.mockNotFoundError = {
|
|
145
|
+
message: "Supplier not found",
|
|
146
|
+
status: 404,
|
|
147
|
+
};
|
|
148
|
+
exports.mockValidationError = {
|
|
149
|
+
message: "Validation failed",
|
|
150
|
+
status: 400,
|
|
151
|
+
};
|
|
152
|
+
// Mock enhancedFetch responses
|
|
153
|
+
exports.mockEnhancedFetchSuccess = {
|
|
154
|
+
data: exports.mockSuppliers,
|
|
155
|
+
headers: new Headers(),
|
|
156
|
+
status: 200,
|
|
157
|
+
};
|
|
158
|
+
exports.mockEnhancedFetchSupplierSuccess = {
|
|
159
|
+
data: exports.mockSuppliers[0],
|
|
160
|
+
headers: new Headers(),
|
|
161
|
+
status: 200,
|
|
162
|
+
};
|
|
163
|
+
exports.mockEnhancedFetchEvaluationsSuccess = {
|
|
164
|
+
data: exports.mockSupplierEvaluations,
|
|
165
|
+
headers: new Headers(),
|
|
166
|
+
status: 200,
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=supplier-mocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supplier-mocks.js","sourceRoot":"","sources":["../../../../src/services/supplier/__mocks__/supplier-mocks.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SupplierDto, SupplierEvaluationDto, SupplierIdType } from "../../interfaces/models/supplier";
|
|
2
|
+
import { PageableParameters } from "../../interfaces/models/common";
|
|
3
|
+
/**
|
|
4
|
+
* Request parameters type definitions
|
|
5
|
+
*/
|
|
6
|
+
export interface GetSuppliersParameters {
|
|
7
|
+
pageable: PageableParameters;
|
|
8
|
+
supplierStatus?: string;
|
|
9
|
+
supplierIds?: string[];
|
|
10
|
+
idType?: SupplierIdType;
|
|
11
|
+
}
|
|
12
|
+
export interface GetSupplierParameters {
|
|
13
|
+
supplierId: string;
|
|
14
|
+
idType: SupplierIdType;
|
|
15
|
+
}
|
|
16
|
+
export interface GetSupplierEvaluationsParameters {
|
|
17
|
+
supplierId: string;
|
|
18
|
+
idType: SupplierIdType;
|
|
19
|
+
pageable: PageableParameters;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Response type definitions
|
|
23
|
+
*/
|
|
24
|
+
export interface GetSuppliersResponse extends Array<SupplierDto> {
|
|
25
|
+
}
|
|
26
|
+
export interface GetSupplierResponse extends SupplierDto {
|
|
27
|
+
}
|
|
28
|
+
export interface GetSupplierEvaluationsResponse extends Array<SupplierEvaluationDto> {
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/services/supplier/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,cAAc,EACf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AAEH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,MAAM,WAAW,gCAAgC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAED;;GAEG;AAEH,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,WAAW,CAAC;CAAG;AAEnE,MAAM,WAAW,mBAAoB,SAAQ,WAAW;CAAG;AAE3D,MAAM,WAAW,8BACf,SAAQ,KAAK,CAAC,qBAAqB,CAAC;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../../src/services/supplier/definitions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DJUST SDK Supplier Service - Endpoints
|
|
3
|
+
* API endpoint constants for supplier operations.
|
|
4
|
+
*
|
|
5
|
+
* @module services/supplier/endpoints
|
|
6
|
+
* @since 2.17.0
|
|
7
|
+
*/
|
|
8
|
+
export declare const SupplierEndpoints: {
|
|
9
|
+
readonly SUPPLIERS: "/v1/shop/suppliers";
|
|
10
|
+
readonly SUPPLIER: "/v1/shop/suppliers/{supplierId}";
|
|
11
|
+
readonly EVALUATIONS: "/v1/shop/suppliers/{supplierId}/evaluations";
|
|
12
|
+
};
|
|
13
|
+
export type SupplierEndpoint = (typeof SupplierEndpoints)[keyof typeof SupplierEndpoints];
|
|
14
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/services/supplier/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DJUST SDK Supplier Service - Endpoints
|
|
4
|
+
* API endpoint constants for supplier operations.
|
|
5
|
+
*
|
|
6
|
+
* @module services/supplier/endpoints
|
|
7
|
+
* @since 2.17.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SupplierEndpoints = void 0;
|
|
11
|
+
exports.SupplierEndpoints = {
|
|
12
|
+
SUPPLIERS: "/v1/shop/suppliers",
|
|
13
|
+
SUPPLIER: "/v1/shop/suppliers/{supplierId}",
|
|
14
|
+
EVALUATIONS: "/v1/shop/suppliers/{supplierId}/evaluations",
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../src/services/supplier/endpoints.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEU,QAAA,iBAAiB,GAAG;IAC/B,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE,iCAAiC;IAC3C,WAAW,EAAE,6CAA6C;CAClD,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { GetSupplierEvaluationsParameters, GetSupplierEvaluationsResponse, GetSupplierParameters, GetSupplierResponse, GetSuppliersParameters, GetSuppliersResponse } from "./definitions";
|
|
2
|
+
/**
|
|
3
|
+
* 📄 Fetches a paginated list of suppliers.
|
|
4
|
+
*
|
|
5
|
+
* This function retrieves a list of suppliers based on the provided pagination parameters.
|
|
6
|
+
* If no specific filters or sorting are provided, it fetches the default paginated list.
|
|
7
|
+
*
|
|
8
|
+
* 🛠 **Endpoint**: `GET /v1/shop/suppliers`
|
|
9
|
+
*
|
|
10
|
+
* | Parameter | Type | Required | Description |
|
|
11
|
+
* |----------------------|-------------------------------|------------|---------------------------------------------------------------|
|
|
12
|
+
* | `pageable.page` | `number` | ✅ | The page number to fetch (0-based index). |
|
|
13
|
+
* | `pageable.size` | `number` | ✅ | The number of items per page. |
|
|
14
|
+
* | `pageable.sort` | `string[]` | ❌ | Sorting criteria (e.g., `["createdAt,desc"]`). |
|
|
15
|
+
* | `supplierStatus` | `string` | ❌ | Available values : ACTIVE, INACTIVE, SUSPENDED |
|
|
16
|
+
* | `supplierIds` | `string[]` | ❌ | Only returns information from its suppliers id |
|
|
17
|
+
* | `idType` | `string[]` | ❌ | Specifies the type of the id (ex: DJUST_ID, EXTERNAL_ID ) |
|
|
18
|
+
*
|
|
19
|
+
* 📤 **Returns**:
|
|
20
|
+
* A `Promise` resolving to a `GetSuppliersResponse` object,
|
|
21
|
+
* containing the paginated list of suppliers with metadata such as total pages, size, and current page.
|
|
22
|
+
*
|
|
23
|
+
* 🛠 **Example usage**:
|
|
24
|
+
* ```ts
|
|
25
|
+
* const suppliers = await getSuppliers({
|
|
26
|
+
* pageable: { page: 0, size: 10, sort: ["createdAt,desc"] },
|
|
27
|
+
* supplierStatus: 'ACTIVE',
|
|
28
|
+
* idType: 'EXTERNAL_ID'
|
|
29
|
+
* });
|
|
30
|
+
*
|
|
31
|
+
* console.log(suppliers);
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @param {GetSuppliersParameters} params - The pagination parameters for fetching suppliers.
|
|
35
|
+
* @throws {Error} If `pageable` is missing or invalid.
|
|
36
|
+
* @returns {Promise<GetSuppliersResponse>} A promise resolving to the paginated suppliers response.
|
|
37
|
+
*/
|
|
38
|
+
export declare function getSuppliers({ pageable, supplierStatus, supplierIds, idType, }: GetSuppliersParameters): Promise<GetSuppliersResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* 📄 Fetches the details of a specific supplier.
|
|
41
|
+
*
|
|
42
|
+
* This function retrieves detailed information about a supplier, identified by its unique `supplierId` and optional `idType`.
|
|
43
|
+
*
|
|
44
|
+
* 🛠 **Endpoint**: `GET /v1/shop/suppliers/{supplierId}`
|
|
45
|
+
*
|
|
46
|
+
* | Parameter | Type | Required | Description |
|
|
47
|
+
* |----------------|------------|------------|---------------------------------------------------------|
|
|
48
|
+
* | `supplierId` | `string` | ✅ | The unique id of the supplier to fetch. |
|
|
49
|
+
* | `idType` | `string` | ❌ | Specifies the type of the id (ex: DJUST_ID, EXTERNAL_ID)|
|
|
50
|
+
*
|
|
51
|
+
* 📤 **Returns**:
|
|
52
|
+
* A `Promise` resolving to a `GetSupplierResponse` object, containing the details of the supplier.
|
|
53
|
+
*
|
|
54
|
+
* 🛠 **Example usage**:
|
|
55
|
+
* ```ts
|
|
56
|
+
* const supplier = await getSupplier({ supplierId: "supplier123", idType: "DJUST_ID" });
|
|
57
|
+
*
|
|
58
|
+
* console.log(supplier);
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param {GetSupplierParameters} params - The parameters for fetching the supplier details.
|
|
62
|
+
* @throws {Error} If `supplierId` is missing.
|
|
63
|
+
* @returns {Promise<GetSupplierResponse>} A promise resolving to the supplier details.
|
|
64
|
+
*/
|
|
65
|
+
export declare function getSupplier({ supplierId, idType, }: GetSupplierParameters): Promise<GetSupplierResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* 📄 Fetches evaluations for a specific supplier.
|
|
68
|
+
*
|
|
69
|
+
* This function retrieves a list of evaluations associated with a supplier, identified by its `supplierId`.
|
|
70
|
+
* Pagination and sorting options are available to refine the results.
|
|
71
|
+
*
|
|
72
|
+
* 🛠 **Endpoint**: `GET /v1/shop/suppliers/{supplierId}/evaluations`
|
|
73
|
+
*
|
|
74
|
+
* | Parameter | Type | Required | Description |
|
|
75
|
+
* |----------------------|-------------------------------|------------|---------------------------------------------------------------|
|
|
76
|
+
* | `supplierId` | `string` | ✅ | The unique id of the supplier. |
|
|
77
|
+
* | `idType` | `string` | ❌ | Specifies the type of the id (ex: DJUST_ID, EXTERNAL_ID) |
|
|
78
|
+
* | `pageable.page` | `number` | ✅ | The page number to fetch (0-based index). |
|
|
79
|
+
* | `pageable.size` | `number` | ✅ | The number of items per page. |
|
|
80
|
+
* | `pageable.sort` | `string[]` | ❌ | Sorting criteria (e.g., `["createdAt,desc"]`). |
|
|
81
|
+
*
|
|
82
|
+
* 📤 **Returns**:
|
|
83
|
+
* A `Promise` resolving to a `GetSupplierEvaluationsResponse` object,
|
|
84
|
+
* containing the paginated list of supplier evaluations with metadata.
|
|
85
|
+
*
|
|
86
|
+
* 🛠 **Example usage**:
|
|
87
|
+
* ```ts
|
|
88
|
+
* const evaluations = await getSupplierEvaluations({
|
|
89
|
+
* supplierId: "supplier123",
|
|
90
|
+
* idType: "EXTERNAL_ID",
|
|
91
|
+
* pageable: { page: 1, size: 10, sort: ["createdAt,desc"] },
|
|
92
|
+
* });
|
|
93
|
+
*
|
|
94
|
+
* console.log(evaluations);
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @param {GetSupplierEvaluationsParameters} params - The parameters for fetching supplier evaluations.
|
|
98
|
+
* @throws {Error} If `supplierId` or `pageable` is missing.
|
|
99
|
+
* @returns {Promise<GetSupplierEvaluationsResponse>} A promise resolving to the supplier evaluations response.
|
|
100
|
+
*/
|
|
101
|
+
export declare function getSupplierEvaluations({ supplierId, idType, pageable, }: GetSupplierEvaluationsParameters): Promise<GetSupplierEvaluationsResponse>;
|
|
102
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/supplier/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,YAAY,CAAC,EACjC,QAAQ,EACR,cAAc,EACd,WAAW,EACX,MAAM,GACP,EAAE,sBAAsB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAiBxD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,WAAW,CAAC,EAChC,UAAU,EACV,MAAM,GACP,EAAE,qBAAqB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAYtD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,UAAU,EACV,MAAM,EACN,QAAQ,GACT,EAAE,gCAAgC,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAe5E"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSuppliers = getSuppliers;
|
|
4
|
+
exports.getSupplier = getSupplier;
|
|
5
|
+
exports.getSupplierEvaluations = getSupplierEvaluations;
|
|
6
|
+
const parameters_validation_1 = require("../../helpers/parameters-validation");
|
|
7
|
+
const fetch_instance_1 = require("../../settings/fetch-instance");
|
|
8
|
+
/**
|
|
9
|
+
* 📄 Fetches a paginated list of suppliers.
|
|
10
|
+
*
|
|
11
|
+
* This function retrieves a list of suppliers based on the provided pagination parameters.
|
|
12
|
+
* If no specific filters or sorting are provided, it fetches the default paginated list.
|
|
13
|
+
*
|
|
14
|
+
* 🛠 **Endpoint**: `GET /v1/shop/suppliers`
|
|
15
|
+
*
|
|
16
|
+
* | Parameter | Type | Required | Description |
|
|
17
|
+
* |----------------------|-------------------------------|------------|---------------------------------------------------------------|
|
|
18
|
+
* | `pageable.page` | `number` | ✅ | The page number to fetch (0-based index). |
|
|
19
|
+
* | `pageable.size` | `number` | ✅ | The number of items per page. |
|
|
20
|
+
* | `pageable.sort` | `string[]` | ❌ | Sorting criteria (e.g., `["createdAt,desc"]`). |
|
|
21
|
+
* | `supplierStatus` | `string` | ❌ | Available values : ACTIVE, INACTIVE, SUSPENDED |
|
|
22
|
+
* | `supplierIds` | `string[]` | ❌ | Only returns information from its suppliers id |
|
|
23
|
+
* | `idType` | `string[]` | ❌ | Specifies the type of the id (ex: DJUST_ID, EXTERNAL_ID ) |
|
|
24
|
+
*
|
|
25
|
+
* 📤 **Returns**:
|
|
26
|
+
* A `Promise` resolving to a `GetSuppliersResponse` object,
|
|
27
|
+
* containing the paginated list of suppliers with metadata such as total pages, size, and current page.
|
|
28
|
+
*
|
|
29
|
+
* 🛠 **Example usage**:
|
|
30
|
+
* ```ts
|
|
31
|
+
* const suppliers = await getSuppliers({
|
|
32
|
+
* pageable: { page: 0, size: 10, sort: ["createdAt,desc"] },
|
|
33
|
+
* supplierStatus: 'ACTIVE',
|
|
34
|
+
* idType: 'EXTERNAL_ID'
|
|
35
|
+
* });
|
|
36
|
+
*
|
|
37
|
+
* console.log(suppliers);
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @param {GetSuppliersParameters} params - The pagination parameters for fetching suppliers.
|
|
41
|
+
* @throws {Error} If `pageable` is missing or invalid.
|
|
42
|
+
* @returns {Promise<GetSuppliersResponse>} A promise resolving to the paginated suppliers response.
|
|
43
|
+
*/
|
|
44
|
+
async function getSuppliers({ pageable, supplierStatus, supplierIds, idType, }) {
|
|
45
|
+
(0, parameters_validation_1.required)({ pageable });
|
|
46
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
47
|
+
method: "GET",
|
|
48
|
+
path: `/v1/shop/suppliers`,
|
|
49
|
+
params: {
|
|
50
|
+
page: pageable.page,
|
|
51
|
+
size: pageable.size,
|
|
52
|
+
sort: pageable.sort,
|
|
53
|
+
supplierStatus,
|
|
54
|
+
supplierIds,
|
|
55
|
+
idType,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 📄 Fetches the details of a specific supplier.
|
|
62
|
+
*
|
|
63
|
+
* This function retrieves detailed information about a supplier, identified by its unique `supplierId` and optional `idType`.
|
|
64
|
+
*
|
|
65
|
+
* 🛠 **Endpoint**: `GET /v1/shop/suppliers/{supplierId}`
|
|
66
|
+
*
|
|
67
|
+
* | Parameter | Type | Required | Description |
|
|
68
|
+
* |----------------|------------|------------|---------------------------------------------------------|
|
|
69
|
+
* | `supplierId` | `string` | ✅ | The unique id of the supplier to fetch. |
|
|
70
|
+
* | `idType` | `string` | ❌ | Specifies the type of the id (ex: DJUST_ID, EXTERNAL_ID)|
|
|
71
|
+
*
|
|
72
|
+
* 📤 **Returns**:
|
|
73
|
+
* A `Promise` resolving to a `GetSupplierResponse` object, containing the details of the supplier.
|
|
74
|
+
*
|
|
75
|
+
* 🛠 **Example usage**:
|
|
76
|
+
* ```ts
|
|
77
|
+
* const supplier = await getSupplier({ supplierId: "supplier123", idType: "DJUST_ID" });
|
|
78
|
+
*
|
|
79
|
+
* console.log(supplier);
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @param {GetSupplierParameters} params - The parameters for fetching the supplier details.
|
|
83
|
+
* @throws {Error} If `supplierId` is missing.
|
|
84
|
+
* @returns {Promise<GetSupplierResponse>} A promise resolving to the supplier details.
|
|
85
|
+
*/
|
|
86
|
+
async function getSupplier({ supplierId, idType, }) {
|
|
87
|
+
(0, parameters_validation_1.required)({ supplierId, idType });
|
|
88
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
89
|
+
method: "GET",
|
|
90
|
+
path: `/v1/shop/suppliers/${supplierId}`,
|
|
91
|
+
params: {
|
|
92
|
+
idType,
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
return data;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* 📄 Fetches evaluations for a specific supplier.
|
|
99
|
+
*
|
|
100
|
+
* This function retrieves a list of evaluations associated with a supplier, identified by its `supplierId`.
|
|
101
|
+
* Pagination and sorting options are available to refine the results.
|
|
102
|
+
*
|
|
103
|
+
* 🛠 **Endpoint**: `GET /v1/shop/suppliers/{supplierId}/evaluations`
|
|
104
|
+
*
|
|
105
|
+
* | Parameter | Type | Required | Description |
|
|
106
|
+
* |----------------------|-------------------------------|------------|---------------------------------------------------------------|
|
|
107
|
+
* | `supplierId` | `string` | ✅ | The unique id of the supplier. |
|
|
108
|
+
* | `idType` | `string` | ❌ | Specifies the type of the id (ex: DJUST_ID, EXTERNAL_ID) |
|
|
109
|
+
* | `pageable.page` | `number` | ✅ | The page number to fetch (0-based index). |
|
|
110
|
+
* | `pageable.size` | `number` | ✅ | The number of items per page. |
|
|
111
|
+
* | `pageable.sort` | `string[]` | ❌ | Sorting criteria (e.g., `["createdAt,desc"]`). |
|
|
112
|
+
*
|
|
113
|
+
* 📤 **Returns**:
|
|
114
|
+
* A `Promise` resolving to a `GetSupplierEvaluationsResponse` object,
|
|
115
|
+
* containing the paginated list of supplier evaluations with metadata.
|
|
116
|
+
*
|
|
117
|
+
* 🛠 **Example usage**:
|
|
118
|
+
* ```ts
|
|
119
|
+
* const evaluations = await getSupplierEvaluations({
|
|
120
|
+
* supplierId: "supplier123",
|
|
121
|
+
* idType: "EXTERNAL_ID",
|
|
122
|
+
* pageable: { page: 1, size: 10, sort: ["createdAt,desc"] },
|
|
123
|
+
* });
|
|
124
|
+
*
|
|
125
|
+
* console.log(evaluations);
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
128
|
+
* @param {GetSupplierEvaluationsParameters} params - The parameters for fetching supplier evaluations.
|
|
129
|
+
* @throws {Error} If `supplierId` or `pageable` is missing.
|
|
130
|
+
* @returns {Promise<GetSupplierEvaluationsResponse>} A promise resolving to the supplier evaluations response.
|
|
131
|
+
*/
|
|
132
|
+
async function getSupplierEvaluations({ supplierId, idType, pageable, }) {
|
|
133
|
+
(0, parameters_validation_1.required)({ supplierId, idType });
|
|
134
|
+
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
135
|
+
method: "GET",
|
|
136
|
+
path: `/v1/shop/suppliers/${supplierId}/evaluations`,
|
|
137
|
+
params: {
|
|
138
|
+
idType,
|
|
139
|
+
page: pageable.page,
|
|
140
|
+
size: pageable.size,
|
|
141
|
+
sort: pageable.sort,
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
return data;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/supplier/index.ts"],"names":[],"mappings":";;AA+CA,oCAsBC;AA4BD,kCAeC;AAqCD,wDAmBC;AAxKD,+EAA+D;AAC/D,kEAA8D;AAU9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACI,KAAK,UAAU,YAAY,CAAC,EACjC,QAAQ,EACR,cAAc,EACd,WAAW,EACX,MAAM,GACiB;IACvB,IAAA,gCAAQ,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IAEvB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,8BAAa,EAAuB;QACzD,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,cAAc;YACd,WAAW;YACX,MAAM;SACP;KACF,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACI,KAAK,UAAU,WAAW,CAAC,EAChC,UAAU,EACV,MAAM,GACgB;IACtB,IAAA,gCAAQ,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;IAEjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,8BAAa,EAAsB;QACxD,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,sBAAsB,UAAU,EAAE;QACxC,MAAM,EAAE;YACN,MAAM;SACP;KACF,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACI,KAAK,UAAU,sBAAsB,CAAC,EAC3C,UAAU,EACV,MAAM,EACN,QAAQ,GACyB;IACjC,IAAA,gCAAQ,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;IAEjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,8BAAa,EAAiC;QACnE,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,sBAAsB,UAAU,cAAc;QACpD,MAAM,EAAE;YACN,MAAM;YACN,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB;KACF,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DJUST SDK Supplier Module
|
|
3
|
+
* Re-exports all supplier-related types and service.
|
|
4
|
+
*
|
|
5
|
+
* @module services/supplier
|
|
6
|
+
* @since 2.17.0
|
|
7
|
+
*/
|
|
8
|
+
export type { SupplierStatus, IdType, GetSuppliersParams, GetSupplierParams, GetSupplierEvaluationsParams, Supplier, SupplierEvaluation, GetSuppliersResponse, GetSupplierResponse, GetSupplierEvaluationsResponse, } from "./types";
|
|
9
|
+
export { SupplierEndpoints, type SupplierEndpoint } from "./endpoints";
|
|
10
|
+
export { SupplierService } from "./supplier.service";
|
|
11
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/services/supplier/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,EACV,cAAc,EACd,MAAM,EACN,kBAAkB,EAClB,iBAAiB,EACjB,4BAA4B,EAC5B,QAAQ,EACR,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,8BAA8B,GAC/B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DJUST SDK Supplier Module
|
|
4
|
+
* Re-exports all supplier-related types and service.
|
|
5
|
+
*
|
|
6
|
+
* @module services/supplier
|
|
7
|
+
* @since 2.17.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SupplierService = exports.SupplierEndpoints = void 0;
|
|
11
|
+
var endpoints_1 = require("./endpoints");
|
|
12
|
+
Object.defineProperty(exports, "SupplierEndpoints", { enumerable: true, get: function () { return endpoints_1.SupplierEndpoints; } });
|
|
13
|
+
var supplier_service_1 = require("./supplier.service");
|
|
14
|
+
Object.defineProperty(exports, "SupplierService", { enumerable: true, get: function () { return supplier_service_1.SupplierService; } });
|
|
15
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/services/supplier/module.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAeH,yCAAuE;AAA9D,8GAAA,iBAAiB,OAAA;AAC1B,uDAAqD;AAA5C,mHAAA,eAAe,OAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DJUST SDK Supplier Service
|
|
3
|
+
* Service class for supplier operations.
|
|
4
|
+
*
|
|
5
|
+
* @module services/supplier/service
|
|
6
|
+
* @since 2.17.0
|
|
7
|
+
*/
|
|
8
|
+
import { BaseService } from "../base.service";
|
|
9
|
+
import type { RequestContext } from "../../client/transport";
|
|
10
|
+
import type { GetSuppliersParams, GetSupplierParams, GetSupplierEvaluationsParams, GetSuppliersResponse, GetSupplierResponse, GetSupplierEvaluationsResponse } from "./types";
|
|
11
|
+
/**
|
|
12
|
+
* Service for supplier operations.
|
|
13
|
+
*/
|
|
14
|
+
export declare class SupplierService extends BaseService {
|
|
15
|
+
readonly serviceName = "supplier";
|
|
16
|
+
getSuppliers(params: GetSuppliersParams, context?: RequestContext): Promise<GetSuppliersResponse>;
|
|
17
|
+
getSupplier(params: GetSupplierParams, context?: RequestContext): Promise<GetSupplierResponse>;
|
|
18
|
+
getSupplierEvaluations(params: GetSupplierEvaluationsParams, context?: RequestContext): Promise<GetSupplierEvaluationsResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=supplier.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supplier.service.d.ts","sourceRoot":"","sources":["../../../src/services/supplier/supplier.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EACnB,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C,QAAQ,CAAC,WAAW,cAAc;IAE5B,YAAY,CAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,oBAAoB,CAAC;IAoB1B,WAAW,CACf,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,mBAAmB,CAAC;IAezB,sBAAsB,CAC1B,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,8BAA8B,CAAC;CAmB3C"}
|