@djust-b2b/djust-front-sdk 3.0.0-beta.9 → 3.0.1
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 +42 -40
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +269 -63
- 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/index.d.ts +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,344 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DJUST SDK Product Service - Types
|
|
3
|
+
* Type definitions for product operations.
|
|
4
|
+
*
|
|
5
|
+
* @module services/product/types
|
|
6
|
+
* @since 2.17.0
|
|
7
|
+
*/
|
|
8
|
+
import type { Pageable, PaginatedResponse, ProductIdType } from "../types";
|
|
9
|
+
/**
|
|
10
|
+
* Parameters for autocomplete search.
|
|
11
|
+
*/
|
|
12
|
+
export interface AutoCompleteSearchParams {
|
|
13
|
+
/** Search input text */
|
|
14
|
+
input: string;
|
|
15
|
+
/** Locale code */
|
|
16
|
+
locale: string;
|
|
17
|
+
/** Currency code */
|
|
18
|
+
currency: string;
|
|
19
|
+
/** Pagination options */
|
|
20
|
+
pageable?: Pageable;
|
|
21
|
+
/** Include aggregation data */
|
|
22
|
+
aggregation?: boolean;
|
|
23
|
+
/** Filter by product tags */
|
|
24
|
+
productTags?: string[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Parameters for product list/search.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetProductsListParams {
|
|
30
|
+
/** Locale code */
|
|
31
|
+
locale: string;
|
|
32
|
+
/** Search/filter criteria */
|
|
33
|
+
filters?: Record<string, unknown>;
|
|
34
|
+
/** Pagination options */
|
|
35
|
+
pageable?: Pageable;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Parameters for getting a single product.
|
|
39
|
+
*/
|
|
40
|
+
export interface GetProductParams {
|
|
41
|
+
/** Product identifier */
|
|
42
|
+
productIdentifier: string;
|
|
43
|
+
/** Type of identifier */
|
|
44
|
+
productIdType: ProductIdType;
|
|
45
|
+
/** Locale code */
|
|
46
|
+
locale?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Parameters for getting product variant offers.
|
|
50
|
+
*/
|
|
51
|
+
export interface GetProductVariantOffersParams {
|
|
52
|
+
/** Product identifier */
|
|
53
|
+
productIdentifier: string;
|
|
54
|
+
/** Type of identifier */
|
|
55
|
+
productIdType: ProductIdType;
|
|
56
|
+
/** Currency code */
|
|
57
|
+
currency?: string;
|
|
58
|
+
/** Exclude prices from response */
|
|
59
|
+
withoutPrice?: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Parameters for getting product variant suppliers.
|
|
63
|
+
*/
|
|
64
|
+
export interface GetProductVariantSuppliersParams {
|
|
65
|
+
/** Product variant ID */
|
|
66
|
+
productVariantId: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Parameters for getting product offers.
|
|
70
|
+
*/
|
|
71
|
+
export interface GetProductOffersParams {
|
|
72
|
+
/** Product identifier */
|
|
73
|
+
productIdentifier: string;
|
|
74
|
+
/** Type of identifier */
|
|
75
|
+
productIdType: ProductIdType;
|
|
76
|
+
/** Locale code */
|
|
77
|
+
locale?: string;
|
|
78
|
+
/** Currency code */
|
|
79
|
+
currency?: string;
|
|
80
|
+
/** Exclude prices */
|
|
81
|
+
withoutPrice?: boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Parameters for getting paginated offers.
|
|
85
|
+
*/
|
|
86
|
+
export interface GetProductPaginatedOffersParams {
|
|
87
|
+
/** Product identifier */
|
|
88
|
+
productIdentifier: string;
|
|
89
|
+
/** Type of identifier */
|
|
90
|
+
productIdType: ProductIdType;
|
|
91
|
+
/** Currency code */
|
|
92
|
+
currency: string;
|
|
93
|
+
/** Locale code */
|
|
94
|
+
locale: string;
|
|
95
|
+
/** Exclude prices */
|
|
96
|
+
withoutPrices?: boolean;
|
|
97
|
+
/** Pagination options */
|
|
98
|
+
pageable?: Pageable;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Parameters for getting related products.
|
|
102
|
+
*/
|
|
103
|
+
export interface GetRelatedProductsParams {
|
|
104
|
+
/** Product identifier */
|
|
105
|
+
productIdentifier: string;
|
|
106
|
+
/** Type of identifier */
|
|
107
|
+
productIdType: ProductIdType;
|
|
108
|
+
/** Locale code */
|
|
109
|
+
locale: string;
|
|
110
|
+
/** Currency code */
|
|
111
|
+
currency: string;
|
|
112
|
+
/** Pagination options */
|
|
113
|
+
pageable?: Pageable;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Parameters for getting product reviews.
|
|
117
|
+
*/
|
|
118
|
+
export interface GetProductReviewsParams {
|
|
119
|
+
/** Product identifier */
|
|
120
|
+
productIdentifier: string;
|
|
121
|
+
/** Type of identifier */
|
|
122
|
+
productIdType: ProductIdType;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Parameters for getting review statistics.
|
|
126
|
+
*/
|
|
127
|
+
export interface GetProductStatReviewsParams {
|
|
128
|
+
/** Product identifier */
|
|
129
|
+
productIdentifier: string;
|
|
130
|
+
/** Type of identifier */
|
|
131
|
+
productIdType: ProductIdType;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Parameters for getting variant attributes.
|
|
135
|
+
*/
|
|
136
|
+
export interface GetProductVariantAttributesParams {
|
|
137
|
+
/** Product identifier */
|
|
138
|
+
productIdentifier: string;
|
|
139
|
+
/** Type of identifier */
|
|
140
|
+
productIdType: ProductIdType;
|
|
141
|
+
/** Locale code */
|
|
142
|
+
locale: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Parameters for creating a review.
|
|
146
|
+
*/
|
|
147
|
+
export interface CreateProductReviewParams {
|
|
148
|
+
/** Review message */
|
|
149
|
+
message: string;
|
|
150
|
+
/** Product SKU */
|
|
151
|
+
productSku: string;
|
|
152
|
+
/** Rating (1-5) */
|
|
153
|
+
rating: number;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Parameters for updating a review.
|
|
157
|
+
*/
|
|
158
|
+
export interface UpdateProductReviewParams {
|
|
159
|
+
/** Review ID */
|
|
160
|
+
productReviewId: string;
|
|
161
|
+
/** Updated message */
|
|
162
|
+
message: string;
|
|
163
|
+
/** Updated rating */
|
|
164
|
+
rating: number;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Product image.
|
|
168
|
+
*/
|
|
169
|
+
export interface ProductImage {
|
|
170
|
+
id: string;
|
|
171
|
+
url: string;
|
|
172
|
+
alt?: string;
|
|
173
|
+
type: "thumbnail" | "gallery" | "main";
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Product attribute.
|
|
177
|
+
*/
|
|
178
|
+
export interface ProductAttribute {
|
|
179
|
+
id: string;
|
|
180
|
+
name: string;
|
|
181
|
+
value: string | number | boolean;
|
|
182
|
+
type: string;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Product offer.
|
|
186
|
+
*/
|
|
187
|
+
export interface ProductOffer {
|
|
188
|
+
id: string;
|
|
189
|
+
offerPriceId: string;
|
|
190
|
+
supplierId: string;
|
|
191
|
+
supplierName: string;
|
|
192
|
+
price: number;
|
|
193
|
+
originalPrice?: number;
|
|
194
|
+
currency: string;
|
|
195
|
+
availability: string;
|
|
196
|
+
stock?: number;
|
|
197
|
+
deliveryTime?: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Product variant.
|
|
201
|
+
*/
|
|
202
|
+
export interface ProductVariant {
|
|
203
|
+
id: string;
|
|
204
|
+
sku: string;
|
|
205
|
+
name: string;
|
|
206
|
+
attributes: ProductAttribute[];
|
|
207
|
+
images: ProductImage[];
|
|
208
|
+
offers: ProductOffer[];
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Product summary.
|
|
212
|
+
*/
|
|
213
|
+
export interface ProductSummary {
|
|
214
|
+
id: string;
|
|
215
|
+
sku: string;
|
|
216
|
+
name: string;
|
|
217
|
+
description?: string;
|
|
218
|
+
thumbnail?: ProductImage;
|
|
219
|
+
bestOffer?: ProductOffer;
|
|
220
|
+
averageRating?: number;
|
|
221
|
+
reviewCount?: number;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Full product details.
|
|
225
|
+
*/
|
|
226
|
+
export interface Product extends ProductSummary {
|
|
227
|
+
longDescription?: string;
|
|
228
|
+
images: ProductImage[];
|
|
229
|
+
attributes: ProductAttribute[];
|
|
230
|
+
variants: ProductVariant[];
|
|
231
|
+
offers: ProductOffer[];
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Supplier information.
|
|
235
|
+
*/
|
|
236
|
+
export interface Supplier {
|
|
237
|
+
id: string;
|
|
238
|
+
name: string;
|
|
239
|
+
logo?: string;
|
|
240
|
+
rating?: number;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Product review.
|
|
244
|
+
*/
|
|
245
|
+
export interface ProductReview {
|
|
246
|
+
id: string;
|
|
247
|
+
message: string;
|
|
248
|
+
rating: number;
|
|
249
|
+
authorName?: string;
|
|
250
|
+
createdAt: string;
|
|
251
|
+
updatedAt?: string;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Review statistics.
|
|
255
|
+
*/
|
|
256
|
+
export interface ReviewStatistics {
|
|
257
|
+
averageRating: number;
|
|
258
|
+
totalReviews: number;
|
|
259
|
+
distribution: {
|
|
260
|
+
1: number;
|
|
261
|
+
2: number;
|
|
262
|
+
3: number;
|
|
263
|
+
4: number;
|
|
264
|
+
5: number;
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Search aggregation.
|
|
269
|
+
*/
|
|
270
|
+
export interface SearchAggregation {
|
|
271
|
+
field: string;
|
|
272
|
+
values: Array<{
|
|
273
|
+
value: string;
|
|
274
|
+
count: number;
|
|
275
|
+
}>;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Search products response.
|
|
279
|
+
*/
|
|
280
|
+
export interface SearchProductsResponse extends PaginatedResponse<ProductSummary> {
|
|
281
|
+
aggregations?: SearchAggregation[];
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Get products list response.
|
|
285
|
+
*/
|
|
286
|
+
export interface GetProductsListResponse extends PaginatedResponse<ProductSummary> {
|
|
287
|
+
aggregations?: SearchAggregation[];
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Get product variant offers response.
|
|
291
|
+
*/
|
|
292
|
+
export interface GetProductVariantOffersResponse {
|
|
293
|
+
offers: ProductOffer[];
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Get product variant suppliers response.
|
|
297
|
+
*/
|
|
298
|
+
export interface GetProductVariantSuppliersResponse {
|
|
299
|
+
suppliers: Supplier[];
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Get product offers response.
|
|
303
|
+
*/
|
|
304
|
+
export interface GetProductOffersResponse {
|
|
305
|
+
offers: ProductOffer[];
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Get paginated offers response.
|
|
309
|
+
*/
|
|
310
|
+
export interface GetProductPaginatedOffersResponse extends PaginatedResponse<ProductOffer> {
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Get related products response.
|
|
314
|
+
*/
|
|
315
|
+
export interface GetRelatedProductsResponse extends PaginatedResponse<ProductSummary> {
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Get product reviews response.
|
|
319
|
+
*/
|
|
320
|
+
export interface GetProductReviewsResponse {
|
|
321
|
+
reviews: ProductReview[];
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Get review statistics response.
|
|
325
|
+
*/
|
|
326
|
+
export interface GetProductStatReviewsResponse extends ReviewStatistics {
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Get variant attributes response.
|
|
330
|
+
*/
|
|
331
|
+
export interface GetProductVariantAttributesResponse {
|
|
332
|
+
attributes: ProductAttribute[];
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Create product review response.
|
|
336
|
+
*/
|
|
337
|
+
export interface CreateProductReviewResponse extends ProductReview {
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Update product review response.
|
|
341
|
+
*/
|
|
342
|
+
export interface UpdateProductReviewResponse extends ProductReview {
|
|
343
|
+
}
|
|
344
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/product/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,E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AAErE;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,aAAa;CAAG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DJUST SDK Product Service - Types
|
|
4
|
+
* Type definitions for product operations.
|
|
5
|
+
*
|
|
6
|
+
* @module services/product/types
|
|
7
|
+
* @since 2.17.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/product/types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product-variant service definitions.
|
|
3
|
+
* Shared product API types are re-exported from product/definitions (legacy compat).
|
|
4
|
+
*/
|
|
5
|
+
export type { AggregationType, AutoCompleteSearchProductsParameters, CreateProductReviewParameters, CreateProductReviewResponse, GetProductOffersParameters, GetProductOffersResponse, GetProductPaginatedOffersParameters, GetProductPaginatedOffersResponse, GetProductParameters, GetProductResponse, GetProductReviewsParameters, GetProductReviewsResponse, GetProductStatReviewsParameters, GetProductStatReviewsResponse, GetProductVariantAttributesParameters, GetProductVariantAttributesResponse, GetProductVariantOffersParameters, GetProductVariantOffersResponse, GetProductVariantsListParameters, GetProductVariantsListResponse, GetProductVariantSuppliersParameters, GetProductVariantSuppliersResponse, GetProductsListParameters, GetProductsListResponse, GetRelatedProductsParameters, GetRelatedProductsResponse, SearchProductsResponse, UpdateProductReviewParameters, UpdateProductReviewResponse, } from "../product/definitions";
|
|
6
|
+
export interface GetProductVariantParameters {
|
|
7
|
+
productVariantId: string;
|
|
8
|
+
locale?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ProductVariantPictureUrl {
|
|
11
|
+
formatType: string;
|
|
12
|
+
heightInPx: number;
|
|
13
|
+
sizeType: string;
|
|
14
|
+
url: string;
|
|
15
|
+
widthInPx: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ProductVariantPicture {
|
|
18
|
+
isMain: boolean;
|
|
19
|
+
urls: ProductVariantPictureUrl[];
|
|
20
|
+
}
|
|
21
|
+
export interface GetProductVariantResponse {
|
|
22
|
+
description: string;
|
|
23
|
+
ean: string;
|
|
24
|
+
externalId: string;
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
productExternalId: string;
|
|
28
|
+
skuProduct: string;
|
|
29
|
+
skuVariant: string;
|
|
30
|
+
status: string;
|
|
31
|
+
variantPictures: ProductVariantPicture[];
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/services/product-variant/definitions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EACV,eAAe,EACf,oCAAoC,EACpC,6BAA6B,EAC7B,2BAA2B,EAC3B,0BAA0B,EAC1B,wBAAwB,EACxB,mCAAmC,EACnC,iCAAiC,EACjC,oBAAoB,EACpB,kBAAkB,EAClB,2BAA2B,EAC3B,yBAAyB,EACzB,+BAA+B,EAC/B,6BAA6B,EAC7B,qCAAqC,EACrC,mCAAmC,EACnC,iCAAiC,EACjC,+BAA+B,EAC/B,gCAAgC,EAChC,8BAA8B,EAC9B,oCAAoC,EACpC,kCAAkC,EAClC,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,2BAA2B;IAC1C,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,wBAAwB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,qBAAqB,EAAE,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../../src/services/product-variant/definitions.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DJUST SDK Product Variant Service - Endpoints
|
|
3
|
+
* API endpoint constants for product variant operations.
|
|
4
|
+
*
|
|
5
|
+
* @module services/product-variant/endpoints
|
|
6
|
+
* @since 2.17.0
|
|
7
|
+
*/
|
|
8
|
+
export declare const ProductVariantEndpoints: {
|
|
9
|
+
readonly VARIANTS: "/v1/shop/product-variants";
|
|
10
|
+
readonly VARIANT: "/v1/shop/product-variants/{productVariantId}";
|
|
11
|
+
readonly VARIANT_SUPPLIERS: "/v1/shop/product-variants/{productVariantId}/suppliers";
|
|
12
|
+
readonly VARIANT_ATTRIBUTES: "/v1/shop/products/{productIdentifier}/variant-attributes";
|
|
13
|
+
};
|
|
14
|
+
export type ProductVariantEndpoint = (typeof ProductVariantEndpoints)[keyof typeof ProductVariantEndpoints];
|
|
15
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/services/product-variant/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,uBAAuB;;;;;CAM1B,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DJUST SDK Product Variant Service - Endpoints
|
|
4
|
+
* API endpoint constants for product variant operations.
|
|
5
|
+
*
|
|
6
|
+
* @module services/product-variant/endpoints
|
|
7
|
+
* @since 2.17.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ProductVariantEndpoints = void 0;
|
|
11
|
+
exports.ProductVariantEndpoints = {
|
|
12
|
+
VARIANTS: "/v1/shop/product-variants",
|
|
13
|
+
VARIANT: "/v1/shop/product-variants/{productVariantId}",
|
|
14
|
+
VARIANT_SUPPLIERS: "/v1/shop/product-variants/{productVariantId}/suppliers",
|
|
15
|
+
VARIANT_ATTRIBUTES: "/v1/shop/products/{productIdentifier}/variant-attributes",
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../src/services/product-variant/endpoints.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEU,QAAA,uBAAuB,GAAG;IACrC,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,8CAA8C;IACvD,iBAAiB,EAAE,wDAAwD;IAC3E,kBAAkB,EAChB,0DAA0D;CACpD,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { GetProductVariantAttributesParameters, GetProductVariantAttributesResponse, GetProductVariantParameters, GetProductVariantResponse, GetProductVariantSuppliersParameters, GetProductVariantSuppliersResponse, GetProductVariantsListParameters, GetProductVariantsListResponse } from "./definitions";
|
|
2
|
+
/**
|
|
3
|
+
* 📄 Fetches a paginated list of product variants.
|
|
4
|
+
*
|
|
5
|
+
* This function retrieves a list of product variants associated with a specific product SKU.
|
|
6
|
+
* Pagination and sorting options are available to refine the results.
|
|
7
|
+
*
|
|
8
|
+
* 🛠 **Endpoint**: `GET /v1/shop/product-variants`
|
|
9
|
+
*
|
|
10
|
+
* | Parameter | Type | Required | Description |
|
|
11
|
+
* |-----------------|--------------|----------|---------------------------------------------------------------|
|
|
12
|
+
* | `productSku` | `string` | ✅ | The SKU of the product to fetch variants for. |
|
|
13
|
+
* | `locale` | `string` | ❌ | The locale for the product variants. |
|
|
14
|
+
* | `pageable.page` | `number` | ✅ | The page number to fetch (0-based index). |
|
|
15
|
+
* | `pageable.size` | `number` | ✅ | The number of items per page. |
|
|
16
|
+
* | `pageable.sort` | `string[]` | ❌ | Sorting criteria (e.g., `["name,asc"]`). |
|
|
17
|
+
*
|
|
18
|
+
* 📤 **Returns**:
|
|
19
|
+
* A `Promise` resolving to a `GetProductVariantsListResponse` object, containing the paginated list of product variants with metadata.
|
|
20
|
+
*
|
|
21
|
+
* 🛠 **Example usage**:
|
|
22
|
+
* ```typescript
|
|
23
|
+
* const variants = await getProductVariantsList({
|
|
24
|
+
* productSku: 'product123',
|
|
25
|
+
* locale: 'en-US',
|
|
26
|
+
* pageable: { page: 0, size: 10, sort: ['name,asc'] },
|
|
27
|
+
* });
|
|
28
|
+
* console.log(variants);
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @param {GetProductVariantsListParameters} params - The parameters for fetching product variants.
|
|
32
|
+
* @throws {Error} If `productSku` is missing.
|
|
33
|
+
* @returns {Promise<GetProductVariantsListResponse>} A promise resolving to the product variants response.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getProductVariantsList({ productSku, locale, pageable, }: GetProductVariantsListParameters): Promise<GetProductVariantsListResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* 📄 Fetches suppliers of a specific product variant.
|
|
38
|
+
*
|
|
39
|
+
* This function retrieves a list of suppliers associated with a specific product variant ID.
|
|
40
|
+
*
|
|
41
|
+
* 🛠 **Endpoint**: `GET /v1/shop/product-variants/{productVariantId}/suppliers`
|
|
42
|
+
*
|
|
43
|
+
* | Parameter | Type | Required | Description |
|
|
44
|
+
* |---------------------|--------------|----------|-------------------------------------------------|
|
|
45
|
+
* | `productVariantId` | `string` | ✅ | The ID of the product variant to fetch suppliers for. |
|
|
46
|
+
*
|
|
47
|
+
* 📤 **Returns**:
|
|
48
|
+
* A `Promise` resolving to a `GetProductVariantSuppliersResponse` object, containing the list of suppliers for the product variant.
|
|
49
|
+
*
|
|
50
|
+
* 🛠 **Example usage**:
|
|
51
|
+
* ```typescript
|
|
52
|
+
* const suppliers = await getProductVariantSuppliers({
|
|
53
|
+
* productVariantId: 'variant123',
|
|
54
|
+
* });
|
|
55
|
+
* console.log(suppliers);
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param {GetProductVariantSuppliersParameters} params - The parameters for fetching product variant suppliers.
|
|
59
|
+
* @throws {Error} If `productVariantId` is missing.
|
|
60
|
+
* @returns {Promise<GetProductVariantSuppliersResponse>} A promise resolving to the product variant suppliers response.
|
|
61
|
+
*/
|
|
62
|
+
export declare function getProductVariantSuppliers({ productVariantId, }: GetProductVariantSuppliersParameters): Promise<GetProductVariantSuppliersResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* 📄 Fetches attributes of a product variant.
|
|
65
|
+
*
|
|
66
|
+
* This function retrieves detailed attributes of a product variant identified by SKU, ID, or external ID.
|
|
67
|
+
*
|
|
68
|
+
* 🛠 **Endpoint**: `GET /v1/shop/products/{productIdentifier}/variant-attributes`
|
|
69
|
+
*
|
|
70
|
+
* | Parameter | Type | Required | Description |
|
|
71
|
+
* |---------------------|--------------|----------|---------------------------------------------------------------|
|
|
72
|
+
* | `productIdentifier` | `string` | ✅ | The unique identifier of the product variant (e.g., SKU, ID, external ID). |
|
|
73
|
+
* | `productIdType` | `string` | ✅ | The type of the identifier (`sku`, `id`, or `externalId`). |
|
|
74
|
+
* | `locale` | `string` | ❌ | The locale for localized data (e.g., `en-US`, `fr-FR`). Defaults to system locale. |
|
|
75
|
+
*
|
|
76
|
+
* 📤 **Returns**:
|
|
77
|
+
* A `Promise` resolving to a `GetProductVariantAttributesResponse` object, containing metadata such as **color**, **size**, or **material**.
|
|
78
|
+
*
|
|
79
|
+
* 🛠 **Example usage**:
|
|
80
|
+
* ```typescript
|
|
81
|
+
* const attributes = await getProductVariantAttributes({
|
|
82
|
+
* productIdentifier: 'sku123',
|
|
83
|
+
* productIdType: 'sku',
|
|
84
|
+
* locale: 'en-US',
|
|
85
|
+
* });
|
|
86
|
+
* console.log(attributes);
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @param {GetProductVariantAttributesParameters} params - The parameters for fetching product variant attributes.
|
|
90
|
+
* @throws {Error} If `productIdentifier` or `productIdType` is missing.
|
|
91
|
+
* @returns {Promise<GetProductVariantAttributesResponse>} A promise resolving to the product variant attributes response.
|
|
92
|
+
*/
|
|
93
|
+
export declare function getProductVariantAttributes({ productIdentifier, productIdType, locale, }: GetProductVariantAttributesParameters): Promise<GetProductVariantAttributesResponse>;
|
|
94
|
+
/**
|
|
95
|
+
* 📄 Fetches details of a specific product variant.
|
|
96
|
+
*
|
|
97
|
+
* This function retrieves detailed information about a product variant identified by its ID.
|
|
98
|
+
*
|
|
99
|
+
* 🛠 **Endpoint**: `GET /v1/shop/product-variants/{productVariantId}`
|
|
100
|
+
*
|
|
101
|
+
* | Parameter | Type | Required | Description |
|
|
102
|
+
* |---------------------|--------------|----------|-------------------------------------------------|
|
|
103
|
+
* | `productVariantId` | `string` | ✅ | The ID of the product variant to fetch. |
|
|
104
|
+
* | `locale` | `string` | ❌ | The locale for localized data (e.g., `en-US`). |
|
|
105
|
+
*
|
|
106
|
+
* 📤 **Returns**:
|
|
107
|
+
* A `Promise` resolving to a `GetProductVariantResponse` object, containing the product variant details.
|
|
108
|
+
*
|
|
109
|
+
* 🛠 **Example usage**:
|
|
110
|
+
* ```typescript
|
|
111
|
+
* const variant = await getProductVariant({
|
|
112
|
+
* productVariantId: 'variant123',
|
|
113
|
+
* locale: 'fr-FR',
|
|
114
|
+
* });
|
|
115
|
+
* console.log(variant);
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* @param {GetProductVariantParameters} params - The parameters for fetching the product variant.
|
|
119
|
+
* @throws {Error} If `productVariantId` is missing.
|
|
120
|
+
* @returns {Promise<GetProductVariantResponse>} A promise resolving to the product variant response.
|
|
121
|
+
*/
|
|
122
|
+
export declare function getProductVariant({ productVariantId, locale, }: GetProductVariantParameters): Promise<GetProductVariantResponse>;
|
|
123
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/product-variant/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,2BAA2B,EAC3B,yBAAyB,EACzB,oCAAoC,EACpC,kCAAkC,EAClC,gCAAgC,EAChC,8BAA8B,EAC/B,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,UAAU,EACV,MAAM,EACN,QAAQ,GACT,EAAE,gCAAgC,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAgB5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,0BAA0B,CAAC,EAC/C,gBAAgB,GACjB,EAAE,oCAAoC,GAAG,OAAO,CAAC,kCAAkC,CAAC,CASpF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,2BAA2B,CAAC,EAChD,iBAAiB,EACjB,aAAa,EACb,MAAM,GACP,EAAE,qCAAqC,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAatF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,gBAAgB,EAChB,MAAM,GACP,EAAE,2BAA2B,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAYlE"}
|