@emporix/api-calls 1.6.0-rc.0 → 1.6.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 +222 -39
- package/dist/adapters/primereact.d.ts +38 -0
- package/dist/adapters/primereact.d.ts.map +1 -0
- package/dist/adapters/primereact.js +82 -0
- package/dist/adapters/primereact.js.map +1 -0
- package/dist/calls/ai.d.ts +2 -1
- package/dist/calls/ai.d.ts.map +1 -1
- package/dist/calls/ai.js +2 -1
- package/dist/calls/ai.js.map +1 -1
- package/dist/calls/authAdapter.d.ts +3 -1
- package/dist/calls/authAdapter.d.ts.map +1 -1
- package/dist/calls/authAdapter.js +3 -1
- package/dist/calls/authAdapter.js.map +1 -1
- package/dist/calls/automation.d.ts +2 -0
- package/dist/calls/automation.d.ts.map +1 -1
- package/dist/calls/automation.js +2 -1
- package/dist/calls/automation.js.map +1 -1
- package/dist/calls/availability.d.ts +8 -2
- package/dist/calls/availability.d.ts.map +1 -1
- package/dist/calls/availability.js +5 -1
- package/dist/calls/availability.js.map +1 -1
- package/dist/calls/brands.d.ts +10 -4
- package/dist/calls/brands.d.ts.map +1 -1
- package/dist/calls/brands.js +9 -2
- package/dist/calls/brands.js.map +1 -1
- package/dist/calls/carts.d.ts +8 -2
- package/dist/calls/carts.d.ts.map +1 -1
- package/dist/calls/carts.js +9 -3
- package/dist/calls/carts.js.map +1 -1
- package/dist/calls/catalogs.d.ts +7 -3
- package/dist/calls/catalogs.d.ts.map +1 -1
- package/dist/calls/catalogs.js +7 -2
- package/dist/calls/catalogs.js.map +1 -1
- package/dist/calls/categories.d.ts +20 -4
- package/dist/calls/categories.d.ts.map +1 -1
- package/dist/calls/categories.js +20 -4
- package/dist/calls/categories.js.map +1 -1
- package/dist/calls/categoryProductRow.d.ts +5 -2
- package/dist/calls/categoryProductRow.d.ts.map +1 -1
- package/dist/calls/categoryProductRow.js +3 -1
- package/dist/calls/categoryProductRow.js.map +1 -1
- package/dist/calls/changelog.d.ts +2 -1
- package/dist/calls/changelog.d.ts.map +1 -1
- package/dist/calls/changelog.js +3 -2
- package/dist/calls/changelog.js.map +1 -1
- package/dist/calls/configuration.d.ts +14 -4
- package/dist/calls/configuration.d.ts.map +1 -1
- package/dist/calls/configuration.js +11 -2
- package/dist/calls/configuration.js.map +1 -1
- package/dist/calls/countries.d.ts +8 -5
- package/dist/calls/countries.d.ts.map +1 -1
- package/dist/calls/countries.js +6 -2
- package/dist/calls/countries.js.map +1 -1
- package/dist/calls/coupons.d.ts +13 -4
- package/dist/calls/coupons.d.ts.map +1 -1
- package/dist/calls/coupons.js +9 -2
- package/dist/calls/coupons.js.map +1 -1
- package/dist/calls/currencies.d.ts +15 -8
- package/dist/calls/currencies.d.ts.map +1 -1
- package/dist/calls/currencies.js +13 -2
- package/dist/calls/currencies.js.map +1 -1
- package/dist/calls/customEntities.d.ts +10 -2
- package/dist/calls/customEntities.d.ts.map +1 -1
- package/dist/calls/customEntities.js +9 -2
- package/dist/calls/customEntities.js.map +1 -1
- package/dist/calls/customInstances.d.ts +11 -2
- package/dist/calls/customInstances.d.ts.map +1 -1
- package/dist/calls/customInstances.js +9 -2
- package/dist/calls/customInstances.js.map +1 -1
- package/dist/calls/customerManagement.d.ts +26 -6
- package/dist/calls/customerManagement.d.ts.map +1 -1
- package/dist/calls/customerManagement.js +22 -2
- package/dist/calls/customerManagement.js.map +1 -1
- package/dist/calls/customers.d.ts +14 -3
- package/dist/calls/customers.d.ts.map +1 -1
- package/dist/calls/customers.js +14 -2
- package/dist/calls/customers.js.map +1 -1
- package/dist/calls/delivery.d.ts +24 -10
- package/dist/calls/delivery.d.ts.map +1 -1
- package/dist/calls/delivery.js +15 -1
- package/dist/calls/delivery.js.map +1 -1
- package/dist/calls/featureToggles.d.ts +8 -2
- package/dist/calls/featureToggles.d.ts.map +1 -1
- package/dist/calls/featureToggles.js +8 -2
- package/dist/calls/featureToggles.js.map +1 -1
- package/dist/calls/globalConfig.d.ts +18 -3
- package/dist/calls/globalConfig.d.ts.map +1 -1
- package/dist/calls/globalConfig.js +9 -7
- package/dist/calls/globalConfig.js.map +1 -1
- package/dist/calls/iam.d.ts +30 -5
- package/dist/calls/iam.d.ts.map +1 -1
- package/dist/calls/iam.js +38 -8
- package/dist/calls/iam.js.map +1 -1
- package/dist/calls/invoice.d.ts +2 -0
- package/dist/calls/invoice.d.ts.map +1 -1
- package/dist/calls/invoice.js +3 -1
- package/dist/calls/invoice.js.map +1 -1
- package/dist/calls/labels.d.ts +10 -4
- package/dist/calls/labels.d.ts.map +1 -1
- package/dist/calls/labels.js +9 -2
- package/dist/calls/labels.js.map +1 -1
- package/dist/calls/mediaAssets.d.ts +7 -1
- package/dist/calls/mediaAssets.d.ts.map +1 -1
- package/dist/calls/mediaAssets.js +8 -2
- package/dist/calls/mediaAssets.js.map +1 -1
- package/dist/calls/mixins.d.ts +1 -0
- package/dist/calls/mixins.d.ts.map +1 -1
- package/dist/calls/mixins.js +1 -0
- package/dist/calls/mixins.js.map +1 -1
- package/dist/calls/orders.d.ts +20 -7
- package/dist/calls/orders.d.ts.map +1 -1
- package/dist/calls/orders.js +19 -4
- package/dist/calls/orders.js.map +1 -1
- package/dist/calls/paymentGateway.d.ts +4 -1
- package/dist/calls/paymentGateway.d.ts.map +1 -1
- package/dist/calls/paymentGateway.js +4 -1
- package/dist/calls/paymentGateway.js.map +1 -1
- package/dist/calls/picklists.d.ts +6 -2
- package/dist/calls/picklists.d.ts.map +1 -1
- package/dist/calls/picklists.js +6 -2
- package/dist/calls/picklists.js.map +1 -1
- package/dist/calls/priceLists.d.ts +12 -2
- package/dist/calls/priceLists.d.ts.map +1 -1
- package/dist/calls/priceLists.js +12 -2
- package/dist/calls/priceLists.js.map +1 -1
- package/dist/calls/priceModels.d.ts +7 -6
- package/dist/calls/priceModels.d.ts.map +1 -1
- package/dist/calls/priceModels.js +7 -2
- package/dist/calls/priceModels.js.map +1 -1
- package/dist/calls/prices.d.ts +25 -4
- package/dist/calls/prices.d.ts.map +1 -1
- package/dist/calls/prices.js +24 -4
- package/dist/calls/prices.js.map +1 -1
- package/dist/calls/prices_v2.d.ts +13 -7
- package/dist/calls/prices_v2.d.ts.map +1 -1
- package/dist/calls/prices_v2.js +13 -3
- package/dist/calls/prices_v2.js.map +1 -1
- package/dist/calls/products.d.ts +28 -4
- package/dist/calls/products.d.ts.map +1 -1
- package/dist/calls/products.js +21 -5
- package/dist/calls/products.js.map +1 -1
- package/dist/calls/productsMedia.d.ts +8 -2
- package/dist/calls/productsMedia.d.ts.map +1 -1
- package/dist/calls/productsMedia.js +8 -2
- package/dist/calls/productsMedia.js.map +1 -1
- package/dist/calls/quotes.d.ts +14 -2
- package/dist/calls/quotes.d.ts.map +1 -1
- package/dist/calls/quotes.js +14 -2
- package/dist/calls/quotes.js.map +1 -1
- package/dist/calls/returns.d.ts +8 -3
- package/dist/calls/returns.d.ts.map +1 -1
- package/dist/calls/returns.js +8 -2
- package/dist/calls/returns.js.map +1 -1
- package/dist/calls/schema.d.ts +10 -1
- package/dist/calls/schema.d.ts.map +1 -1
- package/dist/calls/schema.js +10 -1
- package/dist/calls/schema.js.map +1 -1
- package/dist/calls/segments.d.ts +24 -4
- package/dist/calls/segments.d.ts.map +1 -1
- package/dist/calls/segments.js +22 -2
- package/dist/calls/segments.js.map +1 -1
- package/dist/calls/sepa.d.ts +4 -1
- package/dist/calls/sepa.d.ts.map +1 -1
- package/dist/calls/sepa.js +4 -1
- package/dist/calls/sepa.js.map +1 -1
- package/dist/calls/shipping.d.ts +14 -2
- package/dist/calls/shipping.d.ts.map +1 -1
- package/dist/calls/shipping.js +14 -2
- package/dist/calls/shipping.js.map +1 -1
- package/dist/calls/sites.d.ts +8 -1
- package/dist/calls/sites.d.ts.map +1 -1
- package/dist/calls/sites.js +8 -1
- package/dist/calls/sites.js.map +1 -1
- package/dist/calls/statistics.d.ts +11 -6
- package/dist/calls/statistics.d.ts.map +1 -1
- package/dist/calls/statistics.js +7 -3
- package/dist/calls/statistics.js.map +1 -1
- package/dist/calls/suppliers.d.ts +11 -4
- package/dist/calls/suppliers.d.ts.map +1 -1
- package/dist/calls/suppliers.js +11 -4
- package/dist/calls/suppliers.js.map +1 -1
- package/dist/calls/taxes.d.ts +11 -6
- package/dist/calls/taxes.d.ts.map +1 -1
- package/dist/calls/taxes.js +10 -2
- package/dist/calls/taxes.js.map +1 -1
- package/dist/calls/units.d.ts +9 -3
- package/dist/calls/units.d.ts.map +1 -1
- package/dist/calls/units.js +8 -1
- package/dist/calls/units.js.map +1 -1
- package/dist/calls/vendors.d.ts +20 -7
- package/dist/calls/vendors.d.ts.map +1 -1
- package/dist/calls/vendors.js +17 -4
- package/dist/calls/vendors.js.map +1 -1
- package/dist/calls/webhooks.d.ts +15 -13
- package/dist/calls/webhooks.d.ts.map +1 -1
- package/dist/calls/webhooks.js +15 -62
- package/dist/calls/webhooks.js.map +1 -1
- package/dist/client/adapter.d.ts +20 -0
- package/dist/client/adapter.d.ts.map +1 -0
- package/dist/client/adapter.js +122 -0
- package/dist/client/adapter.js.map +1 -0
- package/dist/client/apiInstance.d.ts +5 -1
- package/dist/client/apiInstance.d.ts.map +1 -1
- package/dist/client/apiInstance.js +12 -1
- package/dist/client/apiInstance.js.map +1 -1
- package/dist/client/createApiClient.d.ts +24 -1
- package/dist/client/createApiClient.d.ts.map +1 -1
- package/dist/client/createApiClient.js +39 -9
- package/dist/client/createApiClient.js.map +1 -1
- package/dist/client/credentials.d.ts +43 -0
- package/dist/client/credentials.d.ts.map +1 -0
- package/dist/client/credentials.js +45 -0
- package/dist/client/credentials.js.map +1 -0
- package/dist/client/retry.d.ts +8 -1
- package/dist/client/retry.d.ts.map +1 -1
- package/dist/client/retry.js +9 -1
- package/dist/client/retry.js.map +1 -1
- package/dist/core/errors.d.ts +38 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +94 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/pagination.d.ts +37 -0
- package/dist/core/pagination.d.ts.map +1 -0
- package/dist/core/pagination.js +87 -0
- package/dist/core/pagination.js.map +1 -0
- package/dist/core/query.d.ts +28 -0
- package/dist/core/query.d.ts.map +1 -0
- package/dist/core/query.js +63 -0
- package/dist/core/query.js.map +1 -0
- package/dist/core/request.d.ts +12 -0
- package/dist/core/request.d.ts.map +1 -0
- package/dist/core/request.js +38 -0
- package/dist/core/request.js.map +1 -0
- package/dist/core/types.d.ts +16 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/index.d.ts +146 -83
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +76 -58
- package/dist/index.js.map +1 -1
- package/dist/models/Assets.d.ts +4 -1
- package/dist/models/Assets.d.ts.map +1 -1
- package/dist/models/Assets.js +3 -0
- package/dist/models/Assets.js.map +1 -1
- package/dist/models/Auth.d.ts +1 -1
- package/dist/models/Auth.d.ts.map +1 -1
- package/dist/models/Cart.d.ts +20 -66
- package/dist/models/Cart.d.ts.map +1 -1
- package/dist/models/Cart.js +4 -16
- package/dist/models/Cart.js.map +1 -1
- package/dist/models/Catalog.d.ts +1 -1
- package/dist/models/Catalog.d.ts.map +1 -1
- package/dist/models/Category.d.ts +44 -6
- package/dist/models/Category.d.ts.map +1 -1
- package/dist/models/Category.js +4 -0
- package/dist/models/Category.js.map +1 -1
- package/dist/models/Changelog.d.ts +11 -36
- package/dist/models/Changelog.d.ts.map +1 -1
- package/dist/models/Changelog.js +3 -5
- package/dist/models/Changelog.js.map +1 -1
- package/dist/models/Configuration.d.ts +5 -5
- package/dist/models/Configuration.d.ts.map +1 -1
- package/dist/models/Country.d.ts +2 -2
- package/dist/models/Country.d.ts.map +1 -1
- package/dist/models/Currency.d.ts +2 -2
- package/dist/models/Currency.d.ts.map +1 -1
- package/dist/models/CustomEntity.d.ts +1 -1
- package/dist/models/CustomEntity.d.ts.map +1 -1
- package/dist/models/CustomInstance.d.ts +6 -6
- package/dist/models/CustomInstance.d.ts.map +1 -1
- package/dist/models/Customer.d.ts +5 -5
- package/dist/models/Customer.d.ts.map +1 -1
- package/dist/models/Customer.js +1 -0
- package/dist/models/Customer.js.map +1 -1
- package/dist/models/Delivery.d.ts +10 -25
- package/dist/models/Delivery.d.ts.map +1 -1
- package/dist/models/Delivery.js.map +1 -1
- package/dist/models/DisplayMixin.d.ts +2 -2
- package/dist/models/DisplayMixin.d.ts.map +1 -1
- package/dist/models/Extension.d.ts +1 -1
- package/dist/models/Extension.d.ts.map +1 -1
- package/dist/models/FeatureToggle.d.ts +3 -1
- package/dist/models/FeatureToggle.d.ts.map +1 -1
- package/dist/models/Groups.d.ts +4 -30
- package/dist/models/Groups.d.ts.map +1 -1
- package/dist/models/Groups.js +1 -0
- package/dist/models/Groups.js.map +1 -1
- package/dist/models/Labels.d.ts +2 -2
- package/dist/models/Labels.d.ts.map +1 -1
- package/dist/models/Labels.js +1 -0
- package/dist/models/Labels.js.map +1 -1
- package/dist/models/Language.d.ts +1 -1
- package/dist/models/Language.d.ts.map +1 -1
- package/dist/models/LegalEntity.d.ts +12 -9
- package/dist/models/LegalEntity.d.ts.map +1 -1
- package/dist/models/LegalEntity.js +3 -0
- package/dist/models/LegalEntity.js.map +1 -1
- package/dist/models/Localized.d.ts +1 -3
- package/dist/models/Localized.d.ts.map +1 -1
- package/dist/models/Mixins.d.ts +4 -2
- package/dist/models/Mixins.d.ts.map +1 -1
- package/dist/models/Mixins.js +2 -0
- package/dist/models/Mixins.js.map +1 -1
- package/dist/models/Order.d.ts +30 -28
- package/dist/models/Order.d.ts.map +1 -1
- package/dist/models/Order.js +4 -0
- package/dist/models/Order.js.map +1 -1
- package/dist/models/Permissions.d.ts +4 -2
- package/dist/models/Permissions.d.ts.map +1 -1
- package/dist/models/Permissions.js +1 -0
- package/dist/models/Permissions.js.map +1 -1
- package/dist/models/PerspectiveConfig.d.ts +1 -1
- package/dist/models/PerspectiveConfig.d.ts.map +1 -1
- package/dist/models/Price.d.ts +15 -18
- package/dist/models/Price.d.ts.map +1 -1
- package/dist/models/PriceList.d.ts +8 -12
- package/dist/models/PriceList.d.ts.map +1 -1
- package/dist/models/PriceModel.d.ts +4 -4
- package/dist/models/PriceModel.d.ts.map +1 -1
- package/dist/models/PriceModel.js +1 -0
- package/dist/models/PriceModel.js.map +1 -1
- package/dist/models/Quotes.d.ts +36 -33
- package/dist/models/Quotes.d.ts.map +1 -1
- package/dist/models/Quotes.js +3 -5
- package/dist/models/Quotes.js.map +1 -1
- package/dist/models/Region.d.ts +1 -1
- package/dist/models/Region.d.ts.map +1 -1
- package/dist/models/Returns.d.ts +11 -10
- package/dist/models/Returns.d.ts.map +1 -1
- package/dist/models/Returns.js +2 -0
- package/dist/models/Returns.js.map +1 -1
- package/dist/models/Schema.d.ts +9 -2
- package/dist/models/Schema.d.ts.map +1 -1
- package/dist/models/Schema.js +5 -0
- package/dist/models/Schema.js.map +1 -1
- package/dist/models/Segment.d.ts +6 -3
- package/dist/models/Segment.d.ts.map +1 -1
- package/dist/models/Segment.js +3 -0
- package/dist/models/Segment.js.map +1 -1
- package/dist/models/Settings.d.ts +1 -1
- package/dist/models/Settings.d.ts.map +1 -1
- package/dist/models/Shipping.d.ts +7 -5
- package/dist/models/Shipping.d.ts.map +1 -1
- package/dist/models/Shipping.js +2 -0
- package/dist/models/Shipping.js.map +1 -1
- package/dist/models/Site.d.ts +5 -4
- package/dist/models/Site.d.ts.map +1 -1
- package/dist/models/Site.js +1 -0
- package/dist/models/Site.js.map +1 -1
- package/dist/models/Suppliers.d.ts +1 -1
- package/dist/models/Suppliers.d.ts.map +1 -1
- package/dist/models/Taxes.d.ts +2 -2
- package/dist/models/Taxes.d.ts.map +1 -1
- package/dist/models/Unit.d.ts +1 -1
- package/dist/models/Unit.d.ts.map +1 -1
- package/dist/models/User.d.ts +2 -1
- package/dist/models/User.d.ts.map +1 -1
- package/dist/models/User.js +1 -0
- package/dist/models/User.js.map +1 -1
- package/dist/models/Vendor.d.ts +8 -11
- package/dist/models/Vendor.d.ts.map +1 -1
- package/dist/models/Vendor.js +1 -6
- package/dist/models/Vendor.js.map +1 -1
- package/dist/models/Webhooks.d.ts +18 -94
- package/dist/models/Webhooks.d.ts.map +1 -1
- package/dist/models/Webhooks.js +5 -12
- package/dist/models/Webhooks.js.map +1 -1
- package/dist/next/index.d.ts +48 -0
- package/dist/next/index.d.ts.map +1 -0
- package/dist/next/index.js +46 -0
- package/dist/next/index.js.map +1 -0
- package/dist/platform/configurationKeys.d.ts +17 -0
- package/dist/platform/configurationKeys.d.ts.map +1 -0
- package/dist/platform/configurationKeys.js +37 -0
- package/dist/platform/configurationKeys.js.map +1 -0
- package/dist/platform/index.d.ts +19 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/index.js +4 -0
- package/dist/platform/index.js.map +1 -0
- package/dist/platform/operations/configuration.d.ts +25 -0
- package/dist/platform/operations/configuration.d.ts.map +1 -0
- package/dist/platform/operations/configuration.js +50 -0
- package/dist/platform/operations/configuration.js.map +1 -0
- package/dist/platform/operations/customerManagement.d.ts +48 -0
- package/dist/platform/operations/customerManagement.d.ts.map +1 -0
- package/dist/platform/operations/customerManagement.js +90 -0
- package/dist/platform/operations/customerManagement.js.map +1 -0
- package/dist/platform/operations/index.d.ts +5 -0
- package/dist/platform/operations/index.d.ts.map +1 -0
- package/dist/platform/operations/index.js +5 -0
- package/dist/platform/operations/index.js.map +1 -0
- package/dist/platform/operations/order.d.ts +29 -0
- package/dist/platform/operations/order.d.ts.map +1 -0
- package/dist/platform/operations/order.js +86 -0
- package/dist/platform/operations/order.js.map +1 -0
- package/dist/platform/operations/shipping.d.ts +26 -0
- package/dist/platform/operations/shipping.d.ts.map +1 -0
- package/dist/platform/operations/shipping.js +52 -0
- package/dist/platform/operations/shipping.js.map +1 -0
- package/dist/platform/parseBasicConfiguration.d.ts +34 -0
- package/dist/platform/parseBasicConfiguration.d.ts.map +1 -0
- package/dist/platform/parseBasicConfiguration.js +75 -0
- package/dist/platform/parseBasicConfiguration.js.map +1 -0
- package/dist/services/ai/ai.calls.d.ts +5 -0
- package/dist/services/ai/ai.calls.d.ts.map +1 -0
- package/dist/services/ai/ai.calls.js +10 -0
- package/dist/services/ai/ai.calls.js.map +1 -0
- package/dist/services/ai/ai.types.d.ts +14 -0
- package/dist/services/ai/ai.types.d.ts.map +1 -0
- package/dist/services/ai/ai.types.js +2 -0
- package/dist/services/ai/ai.types.js.map +1 -0
- package/dist/services/ai/index.d.ts +3 -0
- package/dist/services/ai/index.d.ts.map +1 -0
- package/dist/services/ai/index.js +3 -0
- package/dist/services/ai/index.js.map +1 -0
- package/dist/services/authAdapter/authAdapter.calls.d.ts +13 -0
- package/dist/services/authAdapter/authAdapter.calls.d.ts.map +1 -0
- package/dist/services/authAdapter/authAdapter.calls.js +25 -0
- package/dist/services/authAdapter/authAdapter.calls.js.map +1 -0
- package/dist/services/authAdapter/authAdapter.types.d.ts +25 -0
- package/dist/services/authAdapter/authAdapter.types.d.ts.map +1 -0
- package/dist/services/authAdapter/authAdapter.types.js +2 -0
- package/dist/services/authAdapter/authAdapter.types.js.map +1 -0
- package/dist/services/authAdapter/index.d.ts +3 -0
- package/dist/services/authAdapter/index.d.ts.map +1 -0
- package/dist/services/authAdapter/index.js +3 -0
- package/dist/services/authAdapter/index.js.map +1 -0
- package/dist/services/automation/automation.calls.d.ts +8 -0
- package/dist/services/automation/automation.calls.d.ts.map +1 -0
- package/dist/services/automation/automation.calls.js +12 -0
- package/dist/services/automation/automation.calls.js.map +1 -0
- package/dist/services/automation/automation.types.d.ts +12 -0
- package/dist/services/automation/automation.types.d.ts.map +1 -0
- package/dist/services/automation/automation.types.js +2 -0
- package/dist/services/automation/automation.types.js.map +1 -0
- package/dist/services/automation/index.d.ts +3 -0
- package/dist/services/automation/index.d.ts.map +1 -0
- package/dist/services/automation/index.js +3 -0
- package/dist/services/automation/index.js.map +1 -0
- package/dist/services/availability/availability.calls.d.ts +23 -0
- package/dist/services/availability/availability.calls.d.ts.map +1 -0
- package/dist/services/availability/availability.calls.js +62 -0
- package/dist/services/availability/availability.calls.js.map +1 -0
- package/dist/services/availability/availability.types.d.ts +72 -0
- package/dist/services/availability/availability.types.d.ts.map +1 -0
- package/dist/services/availability/availability.types.js +2 -0
- package/dist/services/availability/availability.types.js.map +1 -0
- package/dist/services/availability/index.d.ts +3 -0
- package/dist/services/availability/index.d.ts.map +1 -0
- package/dist/services/availability/index.js +3 -0
- package/dist/services/availability/index.js.map +1 -0
- package/dist/services/brand/brand.calls.d.ts +16 -0
- package/dist/services/brand/brand.calls.d.ts.map +1 -0
- package/dist/services/brand/brand.calls.js +42 -0
- package/dist/services/brand/brand.calls.js.map +1 -0
- package/dist/services/brand/brand.types.d.ts +31 -0
- package/dist/services/brand/brand.types.d.ts.map +1 -0
- package/dist/services/brand/brand.types.js +2 -0
- package/dist/services/brand/brand.types.js.map +1 -0
- package/dist/services/brand/index.d.ts +3 -0
- package/dist/services/brand/index.d.ts.map +1 -0
- package/dist/services/brand/index.js +3 -0
- package/dist/services/brand/index.js.map +1 -0
- package/dist/services/cart/cart.calls.d.ts +16 -0
- package/dist/services/cart/cart.calls.d.ts.map +1 -0
- package/dist/services/cart/cart.calls.js +51 -0
- package/dist/services/cart/cart.calls.js.map +1 -0
- package/dist/services/cart/cart.types.d.ts +334 -0
- package/dist/services/cart/cart.types.d.ts.map +1 -0
- package/dist/services/cart/cart.types.js +2 -0
- package/dist/services/cart/cart.types.js.map +1 -0
- package/dist/services/cart/index.d.ts +3 -0
- package/dist/services/cart/index.d.ts.map +1 -0
- package/dist/services/cart/index.js +3 -0
- package/dist/services/cart/index.js.map +1 -0
- package/dist/services/catalog/catalog.calls.d.ts +15 -0
- package/dist/services/catalog/catalog.calls.d.ts.map +1 -0
- package/dist/services/catalog/catalog.calls.js +42 -0
- package/dist/services/catalog/catalog.calls.js.map +1 -0
- package/dist/services/catalog/catalog.types.d.ts +55 -0
- package/dist/services/catalog/catalog.types.d.ts.map +1 -0
- package/dist/services/catalog/catalog.types.js +2 -0
- package/dist/services/catalog/catalog.types.js.map +1 -0
- package/dist/services/catalog/index.d.ts +3 -0
- package/dist/services/catalog/index.d.ts.map +1 -0
- package/dist/services/catalog/index.js +3 -0
- package/dist/services/catalog/index.js.map +1 -0
- package/dist/services/category/category.calls.d.ts +35 -0
- package/dist/services/category/category.calls.d.ts.map +1 -0
- package/dist/services/category/category.calls.js +150 -0
- package/dist/services/category/category.calls.js.map +1 -0
- package/dist/services/category/category.types.d.ts +214 -0
- package/dist/services/category/category.types.d.ts.map +1 -0
- package/dist/services/category/category.types.js +11 -0
- package/dist/services/category/category.types.js.map +1 -0
- package/dist/services/category/index.d.ts +3 -0
- package/dist/services/category/index.d.ts.map +1 -0
- package/dist/services/category/index.js +3 -0
- package/dist/services/category/index.js.map +1 -0
- package/dist/services/changelog/changelog.calls.d.ts +6 -0
- package/dist/services/changelog/changelog.calls.d.ts.map +1 -0
- package/dist/services/changelog/changelog.calls.js +20 -0
- package/dist/services/changelog/changelog.calls.js.map +1 -0
- package/dist/services/changelog/changelog.query.d.ts +8 -0
- package/dist/services/changelog/changelog.query.d.ts.map +1 -0
- package/dist/services/changelog/changelog.query.js +125 -0
- package/dist/services/changelog/changelog.query.js.map +1 -0
- package/dist/services/changelog/changelog.types.d.ts +71 -0
- package/dist/services/changelog/changelog.types.d.ts.map +1 -0
- package/dist/services/changelog/changelog.types.js +7 -0
- package/dist/services/changelog/changelog.types.js.map +1 -0
- package/dist/services/changelog/index.d.ts +4 -0
- package/dist/services/changelog/index.d.ts.map +1 -0
- package/dist/services/changelog/index.js +4 -0
- package/dist/services/changelog/index.js.map +1 -0
- package/dist/services/configuration/configuration.calls.d.ts +28 -0
- package/dist/services/configuration/configuration.calls.d.ts.map +1 -0
- package/dist/services/configuration/configuration.calls.js +58 -0
- package/dist/services/configuration/configuration.calls.js.map +1 -0
- package/dist/services/configuration/configuration.types.d.ts +48 -0
- package/dist/services/configuration/configuration.types.d.ts.map +1 -0
- package/dist/services/configuration/configuration.types.js +2 -0
- package/dist/services/configuration/configuration.types.js.map +1 -0
- package/dist/services/configuration/index.d.ts +3 -0
- package/dist/services/configuration/index.d.ts.map +1 -0
- package/dist/services/configuration/index.js +3 -0
- package/dist/services/configuration/index.js.map +1 -0
- package/dist/services/country/country.calls.d.ts +14 -0
- package/dist/services/country/country.calls.d.ts.map +1 -0
- package/dist/services/country/country.calls.js +47 -0
- package/dist/services/country/country.calls.js.map +1 -0
- package/dist/services/country/country.types.d.ts +39 -0
- package/dist/services/country/country.types.d.ts.map +1 -0
- package/dist/services/country/country.types.js +2 -0
- package/dist/services/country/country.types.js.map +1 -0
- package/dist/services/country/index.d.ts +3 -0
- package/dist/services/country/index.d.ts.map +1 -0
- package/dist/services/country/index.js +3 -0
- package/dist/services/country/index.js.map +1 -0
- package/dist/services/coupon/coupon.calls.d.ts +16 -0
- package/dist/services/coupon/coupon.calls.d.ts.map +1 -0
- package/dist/services/coupon/coupon.calls.js +51 -0
- package/dist/services/coupon/coupon.calls.js.map +1 -0
- package/dist/services/coupon/coupon.types.d.ts +100 -0
- package/dist/services/coupon/coupon.types.d.ts.map +1 -0
- package/dist/services/coupon/coupon.types.js +2 -0
- package/dist/services/coupon/coupon.types.js.map +1 -0
- package/dist/services/coupon/index.d.ts +3 -0
- package/dist/services/coupon/index.d.ts.map +1 -0
- package/dist/services/coupon/index.js +3 -0
- package/dist/services/coupon/index.js.map +1 -0
- package/dist/services/currency/currency.calls.d.ts +24 -0
- package/dist/services/currency/currency.calls.d.ts.map +1 -0
- package/dist/services/currency/currency.calls.js +74 -0
- package/dist/services/currency/currency.calls.js.map +1 -0
- package/dist/services/currency/currency.types.d.ts +72 -0
- package/dist/services/currency/currency.types.d.ts.map +1 -0
- package/dist/services/currency/currency.types.js +2 -0
- package/dist/services/currency/currency.types.js.map +1 -0
- package/dist/services/currency/index.d.ts +3 -0
- package/dist/services/currency/index.d.ts.map +1 -0
- package/dist/services/currency/index.js +3 -0
- package/dist/services/currency/index.js.map +1 -0
- package/dist/services/customer/customer.calls.d.ts +31 -0
- package/dist/services/customer/customer.calls.d.ts.map +1 -0
- package/dist/services/customer/customer.calls.js +101 -0
- package/dist/services/customer/customer.calls.js.map +1 -0
- package/dist/services/customer/customer.types.d.ts +215 -0
- package/dist/services/customer/customer.types.d.ts.map +1 -0
- package/dist/services/customer/customer.types.js +11 -0
- package/dist/services/customer/customer.types.js.map +1 -0
- package/dist/services/customer/index.d.ts +3 -0
- package/dist/services/customer/index.d.ts.map +1 -0
- package/dist/services/customer/index.js +3 -0
- package/dist/services/customer/index.js.map +1 -0
- package/dist/services/customerManagement/customerManagement.calls.d.ts +35 -0
- package/dist/services/customerManagement/customerManagement.calls.d.ts.map +1 -0
- package/dist/services/customerManagement/customerManagement.calls.js +104 -0
- package/dist/services/customerManagement/customerManagement.calls.js.map +1 -0
- package/dist/services/customerManagement/customerManagement.types.d.ts +211 -0
- package/dist/services/customerManagement/customerManagement.types.d.ts.map +1 -0
- package/dist/services/customerManagement/customerManagement.types.js +2 -0
- package/dist/services/customerManagement/customerManagement.types.js.map +1 -0
- package/dist/services/customerManagement/index.d.ts +3 -0
- package/dist/services/customerManagement/index.d.ts.map +1 -0
- package/dist/services/customerManagement/index.js +3 -0
- package/dist/services/customerManagement/index.js.map +1 -0
- package/dist/services/customerSegment/customerSegment.calls.d.ts +49 -0
- package/dist/services/customerSegment/customerSegment.calls.d.ts.map +1 -0
- package/dist/services/customerSegment/customerSegment.calls.js +147 -0
- package/dist/services/customerSegment/customerSegment.calls.js.map +1 -0
- package/dist/services/customerSegment/customerSegment.types.d.ts +171 -0
- package/dist/services/customerSegment/customerSegment.types.d.ts.map +1 -0
- package/dist/services/customerSegment/customerSegment.types.js +13 -0
- package/dist/services/customerSegment/customerSegment.types.js.map +1 -0
- package/dist/services/customerSegment/index.d.ts +3 -0
- package/dist/services/customerSegment/index.d.ts.map +1 -0
- package/dist/services/customerSegment/index.js +3 -0
- package/dist/services/customerSegment/index.js.map +1 -0
- package/dist/services/delivery/delivery.calls.d.ts +31 -0
- package/dist/services/delivery/delivery.calls.d.ts.map +1 -0
- package/dist/services/delivery/delivery.calls.js +52 -0
- package/dist/services/delivery/delivery.calls.js.map +1 -0
- package/dist/services/delivery/delivery.types.d.ts +47 -0
- package/dist/services/delivery/delivery.types.d.ts.map +1 -0
- package/dist/services/delivery/delivery.types.js +2 -0
- package/dist/services/delivery/delivery.types.js.map +1 -0
- package/dist/services/delivery/index.d.ts +3 -0
- package/dist/services/delivery/index.d.ts.map +1 -0
- package/dist/services/delivery/index.js +3 -0
- package/dist/services/delivery/index.js.map +1 -0
- package/dist/services/email/email.calls.d.ts +15 -0
- package/dist/services/email/email.calls.d.ts.map +1 -0
- package/dist/services/email/email.calls.js +25 -0
- package/dist/services/email/email.calls.js.map +1 -0
- package/dist/services/email/index.d.ts +2 -0
- package/dist/services/email/index.d.ts.map +1 -0
- package/dist/services/email/index.js +2 -0
- package/dist/services/email/index.js.map +1 -0
- package/dist/services/featureToggle/featureToggle.calls.d.ts +40 -0
- package/dist/services/featureToggle/featureToggle.calls.d.ts.map +1 -0
- package/dist/services/featureToggle/featureToggle.calls.js +76 -0
- package/dist/services/featureToggle/featureToggle.calls.js.map +1 -0
- package/dist/services/featureToggle/featureToggle.types.d.ts +42 -0
- package/dist/services/featureToggle/featureToggle.types.d.ts.map +1 -0
- package/dist/services/featureToggle/featureToggle.types.js +2 -0
- package/dist/services/featureToggle/featureToggle.types.js.map +1 -0
- package/dist/services/featureToggle/index.d.ts +3 -0
- package/dist/services/featureToggle/index.d.ts.map +1 -0
- package/dist/services/featureToggle/index.js +3 -0
- package/dist/services/featureToggle/index.js.map +1 -0
- package/dist/services/html2pdf/html2pdf.calls.d.ts +22 -0
- package/dist/services/html2pdf/html2pdf.calls.d.ts.map +1 -0
- package/dist/services/html2pdf/html2pdf.calls.js +46 -0
- package/dist/services/html2pdf/html2pdf.calls.js.map +1 -0
- package/dist/services/html2pdf/html2pdf.types.d.ts +29 -0
- package/dist/services/html2pdf/html2pdf.types.d.ts.map +1 -0
- package/dist/services/html2pdf/html2pdf.types.js +2 -0
- package/dist/services/html2pdf/html2pdf.types.js.map +1 -0
- package/dist/services/html2pdf/index.d.ts +3 -0
- package/dist/services/html2pdf/index.d.ts.map +1 -0
- package/dist/services/html2pdf/index.js +3 -0
- package/dist/services/html2pdf/index.js.map +1 -0
- package/dist/services/iam/iam.calls.d.ts +59 -0
- package/dist/services/iam/iam.calls.d.ts.map +1 -0
- package/dist/services/iam/iam.calls.js +205 -0
- package/dist/services/iam/iam.calls.js.map +1 -0
- package/dist/services/iam/iam.types.d.ts +225 -0
- package/dist/services/iam/iam.types.d.ts.map +1 -0
- package/dist/services/iam/iam.types.js +2 -0
- package/dist/services/iam/iam.types.js.map +1 -0
- package/dist/services/iam/index.d.ts +3 -0
- package/dist/services/iam/index.d.ts.map +1 -0
- package/dist/services/iam/index.js +3 -0
- package/dist/services/iam/index.js.map +1 -0
- package/dist/services/invoice/index.d.ts +3 -0
- package/dist/services/invoice/index.d.ts.map +1 -0
- package/dist/services/invoice/index.js +3 -0
- package/dist/services/invoice/index.js.map +1 -0
- package/dist/services/invoice/invoice.calls.d.ts +7 -0
- package/dist/services/invoice/invoice.calls.d.ts.map +1 -0
- package/dist/services/invoice/invoice.calls.js +16 -0
- package/dist/services/invoice/invoice.calls.js.map +1 -0
- package/dist/services/invoice/invoice.types.d.ts +29 -0
- package/dist/services/invoice/invoice.types.d.ts.map +1 -0
- package/dist/services/invoice/invoice.types.js +2 -0
- package/dist/services/invoice/invoice.types.js.map +1 -0
- package/dist/services/label/index.d.ts +3 -0
- package/dist/services/label/index.d.ts.map +1 -0
- package/dist/services/label/index.js +3 -0
- package/dist/services/label/index.js.map +1 -0
- package/dist/services/label/label.calls.d.ts +22 -0
- package/dist/services/label/label.calls.d.ts.map +1 -0
- package/dist/services/label/label.calls.js +63 -0
- package/dist/services/label/label.calls.js.map +1 -0
- package/dist/services/label/label.types.d.ts +46 -0
- package/dist/services/label/label.types.d.ts.map +1 -0
- package/dist/services/label/label.types.js +2 -0
- package/dist/services/label/label.types.js.map +1 -0
- package/dist/services/media/index.d.ts +3 -0
- package/dist/services/media/index.d.ts.map +1 -0
- package/dist/services/media/index.js +3 -0
- package/dist/services/media/index.js.map +1 -0
- package/dist/services/media/media.calls.d.ts +24 -0
- package/dist/services/media/media.calls.d.ts.map +1 -0
- package/dist/services/media/media.calls.js +70 -0
- package/dist/services/media/media.calls.js.map +1 -0
- package/dist/services/media/media.types.d.ts +86 -0
- package/dist/services/media/media.types.d.ts.map +1 -0
- package/dist/services/media/media.types.js +2 -0
- package/dist/services/media/media.types.js.map +1 -0
- package/dist/services/order/index.d.ts +3 -0
- package/dist/services/order/index.d.ts.map +1 -0
- package/dist/services/order/index.js +3 -0
- package/dist/services/order/index.js.map +1 -0
- package/dist/services/order/order.calls.d.ts +30 -0
- package/dist/services/order/order.calls.d.ts.map +1 -0
- package/dist/services/order/order.calls.js +99 -0
- package/dist/services/order/order.calls.js.map +1 -0
- package/dist/services/order/order.types.d.ts +540 -0
- package/dist/services/order/order.types.d.ts.map +1 -0
- package/dist/services/order/order.types.js +2 -0
- package/dist/services/order/order.types.js.map +1 -0
- package/dist/services/paymentGateway/index.d.ts +3 -0
- package/dist/services/paymentGateway/index.d.ts.map +1 -0
- package/dist/services/paymentGateway/index.js +3 -0
- package/dist/services/paymentGateway/index.js.map +1 -0
- package/dist/services/paymentGateway/paymentGateway.calls.d.ts +11 -0
- package/dist/services/paymentGateway/paymentGateway.calls.d.ts.map +1 -0
- package/dist/services/paymentGateway/paymentGateway.calls.js +27 -0
- package/dist/services/paymentGateway/paymentGateway.calls.js.map +1 -0
- package/dist/services/paymentGateway/paymentGateway.types.d.ts +63 -0
- package/dist/services/paymentGateway/paymentGateway.types.d.ts.map +1 -0
- package/dist/services/paymentGateway/paymentGateway.types.js +2 -0
- package/dist/services/paymentGateway/paymentGateway.types.js.map +1 -0
- package/dist/services/pdfmashup/index.d.ts +3 -0
- package/dist/services/pdfmashup/index.d.ts.map +1 -0
- package/dist/services/pdfmashup/index.js +3 -0
- package/dist/services/pdfmashup/index.js.map +1 -0
- package/dist/services/pdfmashup/pdfmashup.calls.d.ts +21 -0
- package/dist/services/pdfmashup/pdfmashup.calls.d.ts.map +1 -0
- package/dist/services/pdfmashup/pdfmashup.calls.js +38 -0
- package/dist/services/pdfmashup/pdfmashup.calls.js.map +1 -0
- package/dist/services/pdfmashup/pdfmashup.types.d.ts +5 -0
- package/dist/services/pdfmashup/pdfmashup.types.d.ts.map +1 -0
- package/dist/services/pdfmashup/pdfmashup.types.js +2 -0
- package/dist/services/pdfmashup/pdfmashup.types.js.map +1 -0
- package/dist/services/price/index.d.ts +3 -0
- package/dist/services/price/index.d.ts.map +1 -0
- package/dist/services/price/index.js +3 -0
- package/dist/services/price/index.js.map +1 -0
- package/dist/services/price/price.calls.d.ts +47 -0
- package/dist/services/price/price.calls.d.ts.map +1 -0
- package/dist/services/price/price.calls.js +185 -0
- package/dist/services/price/price.calls.js.map +1 -0
- package/dist/services/price/price.types.d.ts +379 -0
- package/dist/services/price/price.types.d.ts.map +1 -0
- package/dist/services/price/price.types.js +8 -0
- package/dist/services/price/price.types.js.map +1 -0
- package/dist/services/product/index.d.ts +3 -0
- package/dist/services/product/index.d.ts.map +1 -0
- package/dist/services/product/index.js +3 -0
- package/dist/services/product/index.js.map +1 -0
- package/dist/services/product/product.calls.d.ts +43 -0
- package/dist/services/product/product.calls.d.ts.map +1 -0
- package/dist/services/product/product.calls.js +155 -0
- package/dist/services/product/product.calls.js.map +1 -0
- package/dist/services/product/product.types.d.ts +378 -0
- package/dist/services/product/product.types.d.ts.map +1 -0
- package/dist/services/product/product.types.js +26 -0
- package/dist/services/product/product.types.js.map +1 -0
- package/dist/services/quote/index.d.ts +3 -0
- package/dist/services/quote/index.d.ts.map +1 -0
- package/dist/services/quote/index.js +3 -0
- package/dist/services/quote/index.js.map +1 -0
- package/dist/services/quote/quote.calls.d.ts +29 -0
- package/dist/services/quote/quote.calls.d.ts.map +1 -0
- package/dist/services/quote/quote.calls.js +78 -0
- package/dist/services/quote/quote.calls.js.map +1 -0
- package/dist/services/quote/quote.types.d.ts +281 -0
- package/dist/services/quote/quote.types.d.ts.map +1 -0
- package/dist/services/quote/quote.types.js +2 -0
- package/dist/services/quote/quote.types.js.map +1 -0
- package/dist/services/return/index.d.ts +3 -0
- package/dist/services/return/index.d.ts.map +1 -0
- package/dist/services/return/index.js +3 -0
- package/dist/services/return/index.js.map +1 -0
- package/dist/services/return/return.calls.d.ts +17 -0
- package/dist/services/return/return.calls.d.ts.map +1 -0
- package/dist/services/return/return.calls.js +38 -0
- package/dist/services/return/return.calls.js.map +1 -0
- package/dist/services/return/return.types.d.ts +150 -0
- package/dist/services/return/return.types.d.ts.map +1 -0
- package/dist/services/return/return.types.js +2 -0
- package/dist/services/return/return.types.js.map +1 -0
- package/dist/services/schema/index.d.ts +3 -0
- package/dist/services/schema/index.d.ts.map +1 -0
- package/dist/services/schema/index.js +3 -0
- package/dist/services/schema/index.js.map +1 -0
- package/dist/services/schema/schema.calls.d.ts +53 -0
- package/dist/services/schema/schema.calls.d.ts.map +1 -0
- package/dist/services/schema/schema.calls.js +224 -0
- package/dist/services/schema/schema.calls.js.map +1 -0
- package/dist/services/schema/schema.types.d.ts +362 -0
- package/dist/services/schema/schema.types.d.ts.map +1 -0
- package/dist/services/schema/schema.types.js +70 -0
- package/dist/services/schema/schema.types.js.map +1 -0
- package/dist/services/shipping/index.d.ts +3 -0
- package/dist/services/shipping/index.d.ts.map +1 -0
- package/dist/services/shipping/index.js +3 -0
- package/dist/services/shipping/index.js.map +1 -0
- package/dist/services/shipping/shipping.calls.d.ts +40 -0
- package/dist/services/shipping/shipping.calls.d.ts.map +1 -0
- package/dist/services/shipping/shipping.calls.js +115 -0
- package/dist/services/shipping/shipping.calls.js.map +1 -0
- package/dist/services/shipping/shipping.types.d.ts +183 -0
- package/dist/services/shipping/shipping.types.d.ts.map +1 -0
- package/dist/services/shipping/shipping.types.js +2 -0
- package/dist/services/shipping/shipping.types.js.map +1 -0
- package/dist/services/site/index.d.ts +3 -0
- package/dist/services/site/index.d.ts.map +1 -0
- package/dist/services/site/index.js +3 -0
- package/dist/services/site/index.js.map +1 -0
- package/dist/services/site/site.calls.d.ts +29 -0
- package/dist/services/site/site.calls.d.ts.map +1 -0
- package/dist/services/site/site.calls.js +81 -0
- package/dist/services/site/site.calls.js.map +1 -0
- package/dist/services/site/site.types.d.ts +121 -0
- package/dist/services/site/site.types.d.ts.map +1 -0
- package/dist/services/site/site.types.js +2 -0
- package/dist/services/site/site.types.js.map +1 -0
- package/dist/services/statistics/index.d.ts +3 -0
- package/dist/services/statistics/index.d.ts.map +1 -0
- package/dist/services/statistics/index.js +3 -0
- package/dist/services/statistics/index.js.map +1 -0
- package/dist/services/statistics/statistics.calls.d.ts +27 -0
- package/dist/services/statistics/statistics.calls.d.ts.map +1 -0
- package/dist/services/statistics/statistics.calls.js +74 -0
- package/dist/services/statistics/statistics.calls.js.map +1 -0
- package/dist/services/statistics/statistics.types.d.ts +155 -0
- package/dist/services/statistics/statistics.types.d.ts.map +1 -0
- package/dist/services/statistics/statistics.types.js +2 -0
- package/dist/services/statistics/statistics.types.js.map +1 -0
- package/dist/services/tax/index.d.ts +3 -0
- package/dist/services/tax/index.d.ts.map +1 -0
- package/dist/services/tax/index.js +3 -0
- package/dist/services/tax/index.js.map +1 -0
- package/dist/services/tax/tax.calls.d.ts +16 -0
- package/dist/services/tax/tax.calls.d.ts.map +1 -0
- package/dist/services/tax/tax.calls.js +68 -0
- package/dist/services/tax/tax.calls.js.map +1 -0
- package/dist/services/tax/tax.types.d.ts +92 -0
- package/dist/services/tax/tax.types.d.ts.map +1 -0
- package/dist/services/tax/tax.types.js +2 -0
- package/dist/services/tax/tax.types.js.map +1 -0
- package/dist/services/unitHandling/index.d.ts +3 -0
- package/dist/services/unitHandling/index.d.ts.map +1 -0
- package/dist/services/unitHandling/index.js +3 -0
- package/dist/services/unitHandling/index.js.map +1 -0
- package/dist/services/unitHandling/unitHandling.calls.d.ts +22 -0
- package/dist/services/unitHandling/unitHandling.calls.d.ts.map +1 -0
- package/dist/services/unitHandling/unitHandling.calls.js +68 -0
- package/dist/services/unitHandling/unitHandling.calls.js.map +1 -0
- package/dist/services/unitHandling/unitHandling.types.d.ts +80 -0
- package/dist/services/unitHandling/unitHandling.types.d.ts.map +1 -0
- package/dist/services/unitHandling/unitHandling.types.js +2 -0
- package/dist/services/unitHandling/unitHandling.types.js.map +1 -0
- package/dist/services/vendor/index.d.ts +3 -0
- package/dist/services/vendor/index.d.ts.map +1 -0
- package/dist/services/vendor/index.js +3 -0
- package/dist/services/vendor/index.js.map +1 -0
- package/dist/services/vendor/vendor.calls.d.ts +26 -0
- package/dist/services/vendor/vendor.calls.d.ts.map +1 -0
- package/dist/services/vendor/vendor.calls.js +68 -0
- package/dist/services/vendor/vendor.calls.js.map +1 -0
- package/dist/services/vendor/vendor.types.d.ts +74 -0
- package/dist/services/vendor/vendor.types.d.ts.map +1 -0
- package/dist/services/vendor/vendor.types.js +2 -0
- package/dist/services/vendor/vendor.types.js.map +1 -0
- package/dist/services/webhook/index.d.ts +3 -0
- package/dist/services/webhook/index.d.ts.map +1 -0
- package/dist/services/webhook/index.js +3 -0
- package/dist/services/webhook/index.js.map +1 -0
- package/dist/services/webhook/webhook.calls.d.ts +27 -0
- package/dist/services/webhook/webhook.calls.d.ts.map +1 -0
- package/dist/services/webhook/webhook.calls.js +68 -0
- package/dist/services/webhook/webhook.calls.js.map +1 -0
- package/dist/services/webhook/webhook.types.d.ts +148 -0
- package/dist/services/webhook/webhook.types.d.ts.map +1 -0
- package/dist/services/webhook/webhook.types.js +2 -0
- package/dist/services/webhook/webhook.types.js.map +1 -0
- package/dist/shims/NavigationNode.d.ts +1 -1
- package/dist/shims/NavigationNode.d.ts.map +1 -1
- package/dist/types/constants.d.ts +2 -1
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/constants.js +1 -0
- package/dist/types/constants.js.map +1 -1
- package/dist/types/errors.d.ts +2 -0
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +1 -0
- package/dist/types/errors.js.map +1 -1
- package/dist/types/pagination.d.ts +6 -1
- package/dist/types/pagination.d.ts.map +1 -1
- package/dist/utils/categoryScope.d.ts +3 -1
- package/dist/utils/categoryScope.d.ts.map +1 -1
- package/dist/utils/categoryScope.js +2 -0
- package/dist/utils/categoryScope.js.map +1 -1
- package/dist/utils/changelog.d.ts +12 -3
- package/dist/utils/changelog.d.ts.map +1 -1
- package/dist/utils/changelog.js +10 -113
- package/dist/utils/changelog.js.map +1 -1
- package/dist/utils/dateRange.d.ts +1 -1
- package/dist/utils/dateRange.d.ts.map +1 -1
- package/dist/utils/dateRange.js +2 -2
- package/dist/utils/dateRange.js.map +1 -1
- package/dist/utils/mapOrderStatuses.d.ts +1 -1
- package/dist/utils/mapOrderStatuses.d.ts.map +1 -1
- package/dist/utils/paginationUtils.d.ts +2 -1
- package/dist/utils/paginationUtils.d.ts.map +1 -1
- package/dist/utils/paginationUtils.js +1 -0
- package/dist/utils/paginationUtils.js.map +1 -1
- package/dist/utils/params.d.ts +2 -2
- package/dist/utils/params.d.ts.map +1 -1
- package/dist/utils/params.js +1 -1
- package/dist/utils/params.js.map +1 -1
- package/package.json +42 -6
package/README.md
CHANGED
|
@@ -21,9 +21,11 @@ createApiClient({
|
|
|
21
21
|
getTenant: () => localStorage.getItem('tenant'),
|
|
22
22
|
})
|
|
23
23
|
|
|
24
|
-
const { values, totalRecords } = await fetchBrands({
|
|
24
|
+
const { values, totalRecords } = await fetchBrands({ currentPage: 1, rows: 20 })
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
List calls take pagination as `PaginationProps` (`currentPage` starts at 1, `rows` is the page size, plus optional `sortField`, `sortOrder` and `filters`).
|
|
28
|
+
|
|
27
29
|
Obtain a service access token with the [OAuth Service](https://developer.emporix.io/api-references/api-guides/authentication/oauth-service/oauth) before calling protected endpoints. See [Tokens and Scopes](https://developer.emporix.io/api-references/quickstart/authentication-and-authorization/tokens-and-scopes) for authorization details.
|
|
28
30
|
|
|
29
31
|
## Client configuration
|
|
@@ -33,24 +35,187 @@ Obtain a service access token with the [OAuth Service](https://developer.emporix
|
|
|
33
35
|
| `createApiClient(config)` | Creates axios with interceptors and registers it globally. |
|
|
34
36
|
| `setApiClient(instance)` | Registers a preconfigured axios instance. |
|
|
35
37
|
| `getApiClient()` | Returns the registered instance (throws if not configured). |
|
|
36
|
-
| `resetApiClient()` | Clears the singleton
|
|
38
|
+
| `resetApiClient()` | Clears the singleton; for tests, but publicly exported. |
|
|
37
39
|
|
|
38
40
|
`createApiClient` automatically adds these headers to every request:
|
|
39
41
|
|
|
40
42
|
- `Authorization: Bearer <token>` (empty string when no token is available)
|
|
41
|
-
- `Emporix-Tenant: <tenant
|
|
42
|
-
- `Accept-Language: *`
|
|
43
|
-
- `Content-Language
|
|
43
|
+
- `Emporix-Tenant: <tenant>`: the request's own value if it sets one, otherwise the configured tenant; removed when both are blank
|
|
44
|
+
- `Accept-Language: *` unless the request sets one
|
|
45
|
+
- `Content-Language` from the `contentLanguage` option (default `*`) unless the request sets one; a request value of `false` sends none
|
|
46
|
+
|
|
47
|
+
Optional `createApiClient` settings:
|
|
48
|
+
|
|
49
|
+
| Option | Default | Effect |
|
|
50
|
+
| ----------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
51
|
+
| `contentLanguage` | `'*'` | Default `Content-Language`; `null` sends none |
|
|
52
|
+
| `retry` | off | `{ retries, retryDelay? }`: retries GET, HEAD, OPTIONS, PUT and DELETE requests that fail with a network error or 5xx; never POST, PATCH or cancelled requests |
|
|
53
|
+
| `mapErrors` | `false` | Rejects with `EmporixApiError` / `EmporixValidationError` (exported from `./next`), which extend `AxiosError` |
|
|
54
|
+
| `onUnauthorized` | none | `(error) => Promise<boolean>`, called once for concurrent 401s; refresh the token and resolve `true` to retry once |
|
|
55
|
+
|
|
56
|
+
The root and `./next` share the same client, so one `createApiClient` call configures both.
|
|
57
|
+
|
|
58
|
+
Retries and the 401 refresh happen below the interceptors: interceptors run once per call, and a retry sends the same headers and body as the first attempt. A request sent while a refresh is running is not held for it: if its own 401 arrives before the refresh ends it is rejected (so the refresh's own request cannot wait for itself), otherwise it is retried with the new token. Aborting a request (`signal`) while it waits for a retry or for the refresh rejects it at once with a `CanceledError`. `retry`, `onUnauthorized` and `RequestOptions.retries` apply to clients created with `createApiClient`, not to instances passed to `setApiClient`.
|
|
59
|
+
|
|
60
|
+
### Federated remotes
|
|
61
|
+
|
|
62
|
+
A remote creates its own client and fills it from the host's `AppState` with `createApiCredentials` (from `./next`) instead of a hand-written `bootstrap.ts`. Every `createApiClient` call registers the client that `getApiClient` returns, so the remote's client stays separate from the host's only while each bundles its own copy of the library: keep `@emporix/api-calls` out of the module federation `shared` list.
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
import { createApiClient, createApiCredentials } from '@emporix/api-calls/next'
|
|
66
|
+
|
|
67
|
+
export const credentials = createApiCredentials()
|
|
68
|
+
|
|
69
|
+
createApiClient({
|
|
70
|
+
baseURL: import.meta.env.VITE_API_URL,
|
|
71
|
+
getTenant: credentials.getTenant,
|
|
72
|
+
getAccessToken: credentials.getAccessToken,
|
|
73
|
+
onUnauthorized: credentials.onUnauthorized,
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
// in the remote's root component, before child components fetch
|
|
77
|
+
useLayoutEffect(() => credentials.set(appState), [appState])
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
`set` takes `tenant`, `token` and an optional `refreshToken: () => Promise<string | undefined>`. After a 401, `onUnauthorized` stores the token `refreshToken` resolves and retries once; without `refreshToken` the request fails with the 401 as before.
|
|
81
|
+
|
|
82
|
+
## `./next` entry point (preview)
|
|
83
|
+
|
|
84
|
+
`@emporix/api-calls/next` holds the new API that replaces the root step by step, one Emporix service at a time (see the migration plan). Until 2.0 it may change in minor releases; every such change is listed in the CHANGELOG under Changed.
|
|
85
|
+
|
|
86
|
+
Every `./next` call:
|
|
87
|
+
|
|
88
|
+
- takes the tenant from `options.tenant` or the client's `getTenant`. Calls whose URL contains the tenant (most services) throw `MissingTenantError` before sending when there is none; calls whose URL has none (brand, label and its media endpoint, the global feature toggles, the Emporix-wide statistics reports `getUserTenantsCall` and `listLastLoginsCall`, and the delivery, email, PDF and automation backends) send `Emporix-Tenant` when a tenant is set and are sent without it otherwise;
|
|
89
|
+
- takes `RequestOptions` as its last parameter: `tenant`, `signal`, `contentLanguage` (`null` sends none) and `retries`;
|
|
90
|
+
- takes list parameters as `ListParams`: `pageNumber`, `pageSize`, native `sort` (`'name:ASC'`), a raw `q` and neutral `filters`, which the call translates to its endpoint's dialect.
|
|
91
|
+
|
|
92
|
+
Two exceptions: `getMixinsSchemaCall(url)` reads a mixin's JSON Schema document from its absolute URL with `fetch`, outside the API client. It takes only `signal` and fails with a plain `Error`, not an `EmporixApiError`. The auth adapter's `users/me` calls (`listCurrentUserTenantsCall`, `updateCurrentUserProfileCall`) never send the client's tenant, only `options.tenant`, because the gateway answers 401 to a disabled stored tenant.
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import { buildQ, type ListParams } from '@emporix/api-calls/next'
|
|
96
|
+
|
|
97
|
+
const params: ListParams = {
|
|
98
|
+
pageSize: 50,
|
|
99
|
+
sort: 'name:ASC',
|
|
100
|
+
filters: [
|
|
101
|
+
{ field: 'name.en', op: 'contains', value: 'shoe' },
|
|
102
|
+
{ field: 'published', op: 'eq', value: true },
|
|
103
|
+
],
|
|
104
|
+
}
|
|
105
|
+
buildQ(params.filters) // 'name.en:~(shoe) published:true'
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Filter operators: `eq`, `contains`, `startsWith`, `gt`, `gte`, `lt`, `lte`, `in`, `between` (inclusive) and `exists` / `missing`. `fetchAll(listCall, params)` collects every page of a list call, in pages of 60 unless `params` sets `pageSize`; when an endpoint caps the page size below that, it goes on with the smaller size.
|
|
109
|
+
|
|
110
|
+
Services in `./next` so far (the old root calls they replace are marked `@deprecated` and listed in [`migration/name-map.json`](migration/README.md)):
|
|
111
|
+
|
|
112
|
+
| Service | Calls |
|
|
113
|
+
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
114
|
+
| Brand | `listBrandsCall`, `getBrandCall`, `createBrandCall`, `updateBrandCall`, `patchBrandCall`, `deleteBrandCall` |
|
|
115
|
+
| Site Settings | `listSitesCall`, `getSiteCall`, `createSiteCall`, `updateSiteCall`, `patchSiteCall`, `deleteSiteCall`, and the site mixin calls |
|
|
116
|
+
| IAM | scopes, access controls and templates, groups and group users, users, plus `getCurrentUserCall`, `getCurrentUserScopesCall` and `listCurrentUserAccessControlsCall` for the signed-in user |
|
|
117
|
+
| Configuration | `getConfigurationCall`, `listConfigurationsCall`, `createConfigurationsCall`, `updateConfigurationCall`, `deleteConfigurationCall`, `listGlobalConfigurationsCall`, and, without a public spec, `listBasicConfigurationsCall` (the configurations the dashboard shell starts with) and `getGlobalConfigurationCall(key)` for one global key, e.g. `KEY_COPF_EXT_VERSION` from `./platform` |
|
|
118
|
+
| Product | `listProductsCall`, `searchProductsCall`, `getProductCall`, `createProductCall`, `upsertProductCall`, `patchProductCall`, `deleteProductCall`, `createProductsBulkCall`, `upsertProductsBulkCall`, `recalculateDynamicVariantsCall` with its job calls, and the product template calls (`listProductTemplatesCall`, `getProductTemplateCall`, `createProductTemplateCall`, `updateProductTemplateCall`, `deleteProductTemplateCall`) |
|
|
119
|
+
| Category | `listCategoriesCall`, `getCategoryCall`, `createCategoryCall`, `upsertCategoryCall`, `patchCategoryCall`, `deleteCategoryCall`, `listSubcategoriesCall`, `listCategoryParentsCall`, `listCategoryAssignmentsCall`, `createCategoryAssignmentCall`, `deleteCategoryAssignmentByReferenceCall`, `listCategoriesByReferenceCall`, `listCategoryTreesCall`, `getCategoryTreeCall`, `rebuildCategoryTreeCall` |
|
|
120
|
+
| Catalog | `listCatalogsCall`, `getCatalogCall`, `createCatalogCall`, `upsertCatalogCall`, `deleteCatalogCall` |
|
|
121
|
+
| Price | prices (`listPricesCall`, `getPriceCall`, `createPriceCall`, `upsertPriceCall`, `deletePriceCall`, `searchPricesCall`, `matchPricesCall`), price models (`listPriceModelsCall`, `getPriceModelCall`, `createPriceModelCall`, `upsertPriceModelCall`, `deletePriceModelCall`), price lists (`listPriceListsCall`, `getPriceListCall`, `createPriceListCall`, `upsertPriceListCall`, `deletePriceListCall`) and their prices (`listPriceListPricesCall` plus the bulk create, upsert and delete calls); all send `X-Version: v2`, and lists page by 60 unless `pageSize` is set |
|
|
122
|
+
| Order | `listOrdersCall`, `searchOrdersCall`, `getOrderCall`, `createOrderCall`, `updateOrderCall`, `patchOrderCall`, `deleteOrderCall`, `listOrderTransitionsCall`, `createOrderTransitionCall`, `getOrderHistoricalTransitionsCall`, `recalculateOrderCall`, `updateOrderEntriesCall`, `createOrderSplitCall` (tenant-managed `/salesorders` endpoints) |
|
|
123
|
+
| Invoice | `createInvoiceJobCall`, `getInvoiceJobCall` |
|
|
124
|
+
| Customer Management | `listLegalEntitiesCall`, `getLegalEntityCall`, `createLegalEntityCall`, `upsertLegalEntityCall`, `deleteLegalEntityCall`, the contact assignment calls (`listContactAssignmentsCall`, `getContactAssignmentCall`, `createContactAssignmentCall`, `upsertContactAssignmentCall`, `deleteContactAssignmentCall`) and the location calls (`listLocationsCall`, `getLocationCall`, `createLocationCall`, `upsertLocationCall`, `deleteLocationCall`) |
|
|
125
|
+
| Vendor | `listVendorsCall`, `getVendorCall`, `createVendorCall`, `upsertVendorCall`, `deleteVendorCall`, and the vendor location calls (`listVendorLocationsCall`, `getVendorLocationCall`, `createVendorLocationCall`, `upsertVendorLocationCall`, `deleteVendorLocationCall`) |
|
|
126
|
+
| Customer (tenant-managed) | `listCustomersCall`, `getCustomerCall`, `createCustomerCall`, `upsertCustomerCall`, `patchCustomerCall`, `deleteCustomerCall`, the customer address calls (`listCustomerAddressesCall`, `getCustomerAddressCall`, `createCustomerAddressCall`, `upsertCustomerAddressCall`, `patchCustomerAddressCall`, `deleteCustomerAddressCall`), and `generateCustomerTokenCall` for assisted buying |
|
|
127
|
+
| Customer Segment | `listSegmentsCall`, `getSegmentCall`, `createSegmentCall`, `upsertSegmentCall`, `patchSegmentCall`, `deleteSegmentCall`, `deleteSegmentsBulkCall`, and the customer, group and item assignment calls (`listSegmentCustomersCall`, `listSegmentGroupsCall`, `listSegmentItemsCall`, their upsert/delete and bulk variants) |
|
|
128
|
+
| Shipping | zones (`listShippingZonesCall`, `getShippingZoneCall`, `createShippingZoneCall`, `updateShippingZoneCall`, `deleteShippingZoneCall`), methods (`listShippingMethodsCall`, `createShippingMethodCall`, `updateShippingMethodCall`, `deleteShippingMethodCall`), delivery times (`listDeliveryTimesCall`, `getDeliveryTimeCall`, `createDeliveryTimeCall`, `createDeliveryTimesBulkCall`, `updateDeliveryTimeCall`, `deleteDeliveryTimeCall`) and their slots (`listDeliveryTimeSlotsCall`, `patchDeliveryTimeSlotCall`, `deleteDeliveryTimeSlotCall`) |
|
|
129
|
+
| Tax | `listTaxesCall`, `getTaxCall`, `createTaxCall`, `updateTaxCall`, `deleteTaxCall`, `calculateTaxCall` |
|
|
130
|
+
| Schema | schemas: `listSchemaTypesCall`, `listSchemasCall`, `getSchemaCall`, `createSchemaCall`, `updateSchemaCall`, `updateSchemaTypesCall`, `generateSchemaFromFileCall`; references: `listSchemaReferencesCall`, `getSchemaReferenceCall`; `getMixinsSchemaCall` for a schema's JSON Schema document; custom entities: `listCustomEntitiesCall`, `getCustomEntityCall`, `createCustomEntityCall`, `upsertCustomEntityCall`, `deleteCustomEntityCall`, `exportCustomEntitiesCall`, `importCustomEntitiesCall`; custom instances: `listCustomInstancesCall`, `listCustomInstancesWithCursorCall`, `getCustomInstanceCall`, `createCustomInstanceCall`, `upsertCustomInstanceCall`, `deleteCustomInstanceCall`, `deleteCustomInstancesBulkCall` |
|
|
131
|
+
| Quote | `listQuotesCall`, `getQuoteCall`, `createQuoteCall`, `patchQuoteCall`, `deleteQuoteCall`, `generateQuotePdfCall`, `listQuoteHistoryCall`, and the quote reason calls `listQuoteReasonsCall`, `getQuoteReasonCall`, `createQuoteReasonCall`, `updateQuoteReasonCall`, `deleteQuoteReasonCall` |
|
|
132
|
+
| Returns | `listReturnsCall`, `getReturnCall`, `createReturnCall`, `updateReturnCall`, `patchReturnCall`, `deleteReturnCall` |
|
|
133
|
+
| Cart | `searchCartsCall` (takes the `{ q }` body, then paging params), `getCartCall`, `updateCartCall`, `deleteCartCall`, `listCartItemsCall`, `updateCartItemCall` |
|
|
134
|
+
| Coupon | `listCouponsCall`, `getCouponCall`, `createCouponCall`, `updateCouponCall`, `patchCouponCall`, `deleteCouponCall` |
|
|
135
|
+
| Currency | `listCurrenciesCall`, `getCurrencyCall`, `createCurrencyCall`, `updateCurrencyCall`, `deleteCurrencyCall`, and the exchange rate calls `listExchangeRatesCall`, `getExchangeRateCall`, `createExchangeRateCall`, `updateExchangeRateCall`, `deleteExchangeRateCall` |
|
|
136
|
+
| Country | `listCountriesCall`, `getCountryCall`, `patchCountryCall`, `listRegionsCall`, `getRegionCall` |
|
|
137
|
+
| Label | `listLabelsCall`, `getLabelCall`, `createLabelCall`, `updateLabelCall`, `patchLabelCall`, `deleteLabelCall`, and, without a public spec, `deleteLabelMediaCall(imageName)` for label images still stored on Cloudinary; new label images are Media Service assets |
|
|
138
|
+
| Unit Handling | `listUnitsCall`, `getUnitCall`, `createUnitCall`, `updateUnitCall`, `deleteUnitCall`, `deleteUnitsBulkCall`, `listUnitTypesCall`, `calculateUnitConversionFactorCall`, `calculateUnitConversionCall` |
|
|
139
|
+
| Availability | `getAvailabilityCall`, `createAvailabilityCall`, `upsertAvailabilityCall`, `deleteAvailabilityCall`, `searchAvailabilitiesCall`, `listAvailabilitiesCall` (one site), and the bulk calls `createAvailabilitiesBulkCall`, `upsertAvailabilitiesBulkCall`, `deleteAvailabilitiesBulkCall` |
|
|
140
|
+
| Media | `listMediaAssetsCall`, `getMediaAssetCall`, `createMediaAssetCall`, `updateMediaAssetCall`, `patchMediaAssetCall`, `deleteMediaAssetCall`, `downloadMediaAssetCall`, `getMediaAssetDownloadUrlCall` |
|
|
141
|
+
| Webhook | `listWebhookConfigsCall`, `getWebhookConfigCall`, `createWebhookConfigCall`, `updateWebhookConfigCall`, `patchWebhookConfigCall`, `deleteWebhookConfigCall`, `listWebhookEventSubscriptionsCall`, `patchWebhookEventSubscriptionsCall`, `getWebhookDashboardAccessCall`, `getWebhookStatisticsCall` |
|
|
142
|
+
| Payment Gateway | `listPaymentModesCall`, `getPaymentModeCall`, `getPaymentTransactionCall`, `refundPaymentCall` |
|
|
143
|
+
| Audit Logs (Changelog) | `listChangelogsCall`, and `buildChangelogQ(filter)`, which builds its `q` from a `ChangelogFilter` (entity and related entities, change type, actor, occurredAt) |
|
|
144
|
+
| AI | `generateTextCall` |
|
|
145
|
+
|
|
146
|
+
Management Dashboard backends without a public specification follow the same conventions. Their calls, like `listBasicConfigurationsCall`, `getGlobalConfigurationCall` and `deleteLabelMediaCall` above, are marked `@beta`, which the API report and editors show: the API reference does not document them, so they follow the backend when it changes.
|
|
147
|
+
|
|
148
|
+
| Backend | Calls |
|
|
149
|
+
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
150
|
+
| Feature toggles | `listFeatureTogglesCall`, `getFeatureToggleCall`, `createFeatureToggleCall`, `updateFeatureToggleCall`, `deleteFeatureToggleCall`, `listFeatureToggleValuesCall`, `getFeatureToggleValueCall` |
|
|
151
|
+
| Picklists (html2pdf) | `listPicklistsCall`, `getPicklistCall`, `deletePicklistCall` |
|
|
152
|
+
| PDF mashup | `generatePicklistsCall`, `generateShippingNoteCall`, `generateInvoiceDocumentCall` |
|
|
153
|
+
| Email | `sendShippingConfirmationEmailCall`, `sendInvoiceEmailCall` |
|
|
154
|
+
| Delivery service | `listDeliveryServiceTimesCall`, `getDeliveryServiceTimeCall`, `createDeliveryServiceTimeCall`, `updateDeliveryServiceTimeCall`, `deleteDeliveryServiceTimeCall`: delivery times of the `/delivery` backend, a different model from the Shipping Service's |
|
|
155
|
+
| Statistics | `getOrderStatsCall`, `getApiCallsUsageCall`, `listLastLoginsCall`, `getUserTenantsCall` |
|
|
156
|
+
| Auth adapter | `listCurrentUserTenantsCall`, `updateCurrentUserProfileCall` |
|
|
157
|
+
| Automation | `createNewsletterSubscriptionCall` |
|
|
158
|
+
|
|
159
|
+
List calls send no page size of their own: the API default applies (16 for sites, 60 for IAM), so pass `pageSize` or use `fetchAll`. `totalRecords` is the total from the count header (`x-total-count`, `hybris-count` or `x-count`); when the API sends none, or CORS keeps the browser from reading it, it is the number of values on the page, so a table shows a single page. Calls for endpoints that do not page return plain arrays.
|
|
160
|
+
|
|
161
|
+
### `./primereact` adapter
|
|
162
|
+
|
|
163
|
+
`fromDataTableState(state)` from `@emporix/api-calls/primereact` turns a PrimeReact DataTable state (`currentPage`, `rows`, `sortField`, `sortOrder`, `filters`) into `ListParams`, with the semantics table filters have today: `equals` is an exact match, `startsWith` an anchored regex, every other match mode a regex search, arrays an in-list, number filter templates (`{ value, mode }`) a comparison, and date picks the same date range as before. Empty filters and menu filters (`operator`/`constraints`) are skipped. It replaces the `toApiPagination` bridges in consumers; it needs no PrimeReact dependency.
|
|
164
|
+
|
|
165
|
+
```ts
|
|
166
|
+
import { fromDataTableState } from '@emporix/api-calls/primereact'
|
|
167
|
+
|
|
168
|
+
const params = fromDataTableState(paginationState) // ListParams for a ./next list call
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### `./platform` entry point
|
|
172
|
+
|
|
173
|
+
`@emporix/api-calls/platform` holds what the Management Dashboard shell shares with its remotes: the dashboard's configuration keys, `parseBasicConfiguration`, the shell models, and the operations, which combine several `./next` calls with the dashboard's rules. Each single call, including those to the dashboard's backends, is in `./next` (see above).
|
|
174
|
+
|
|
175
|
+
| Area | Exports |
|
|
176
|
+
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
177
|
+
| Basic configuration | `parseBasicConfiguration(configs)`, which turns the result of `listBasicConfigurationsCall` from `./next` into a `BasicConfiguration` (currencies, languages, table settings, theme, logos, …) without throwing on missing keys |
|
|
178
|
+
| Keys and models | `KEY_*` configuration keys (e.g. `KEY_COPF_EXT_VERSION` for `getGlobalConfigurationCall`), `TABLE_CONFIGURATION_KEY_PREFIXES`, and shell types such as `Currency`, `Language`, `TableConfiguration`, `ColumnVisibility`, `PerspectiveConfig` |
|
|
179
|
+
|
|
180
|
+
```ts
|
|
181
|
+
import { listBasicConfigurationsCall } from '@emporix/api-calls/next'
|
|
182
|
+
import { parseBasicConfiguration } from '@emporix/api-calls/platform'
|
|
183
|
+
|
|
184
|
+
const { currencies, languages, tableConfigurations } = parseBasicConfiguration(
|
|
185
|
+
await listBasicConfigurationsCall()
|
|
186
|
+
)
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Operations combine several requests and have no `Call` suffix. `./platform` also exports the `./next` types their signatures use, such as `LegalEntity`, `ShippingMethod` and `RequestOptions`:
|
|
190
|
+
|
|
191
|
+
- Configuration: `upsertConfiguration(key, { value, secured })` updates a configuration and creates it when the update gets a 404. It sends only the fields you pass and never `version`; pass `secured: true` on every save of a secret.
|
|
192
|
+
- Order: `sendShippingConfirmation(orderId)` emails the order's shipping confirmation and raises `extendedOrderStatus` to 70. `sendInvoice(orderId)` generates the invoice if the order has none, emails it, and raises `extendedOrderStatus` to 80.
|
|
193
|
+
- Customer Management: `createLegalEntityLocation(legalEntityId, location)` creates a location and adds it to the legal entity's `entitiesAddresses` (POST location, GET legal entity, PUT legal entity); `getLegalEntityWithContacts(legalEntityId)` and `listLegalEntitiesWithContacts(params)` return legal entities with all of their contact assignments in `contacts` (one contact-assignment listing per legal entity, all pages)
|
|
194
|
+
- Shipping: `listShippingMethodsWithTaxClasses(siteCode, zoneId, params)` lists a zone's shipping methods and adds the tax class of each `shippingTaxCode`, with one tax listing per distinct code that loads every page (one request unless more than 60 configurations match)
|
|
195
|
+
|
|
196
|
+
Management Dashboard resolves the subpaths through `typesVersions` (TypeScript 4.9 with `moduleResolution: node`); CI checks that with `npm run compat:md`.
|
|
44
197
|
|
|
45
198
|
## Package layout
|
|
46
199
|
|
|
47
|
-
| Path
|
|
48
|
-
|
|
|
49
|
-
| `src/client/`
|
|
50
|
-
| `src/calls/`
|
|
51
|
-
| `src/models/`
|
|
52
|
-
| `src/types/`
|
|
53
|
-
| `src/
|
|
200
|
+
| Path | Purpose |
|
|
201
|
+
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
202
|
+
| `src/client/` | Axios singleton (`createApiClient`, `getApiClient`, …), shared by the root and `./next` |
|
|
203
|
+
| `src/calls/` | API calls of the root, grouped by Emporix service (see the module table below) |
|
|
204
|
+
| `src/models/` | Domain types, exported from the package root |
|
|
205
|
+
| `src/types/` | Cross-cutting types and constants (errors, pagination types) |
|
|
206
|
+
| `src/shims/`, `src/configs/` | Dashboard shell types (`NavigationNode`, `ColumnVisibility`, exported by `./platform`) and constants (`RoleCode`, app ids) |
|
|
207
|
+
| `src/utils/` | Internal helpers (formatting, query params, `fetchAllRecords`); not all are re-exported |
|
|
208
|
+
| `src/core/` | Building blocks of `./next`: request options, list params and the `q` builder, errors |
|
|
209
|
+
| `src/services/` | `./next` calls and types, one folder per backend URL prefix |
|
|
210
|
+
| `src/next/` | The `./next` entry point |
|
|
211
|
+
| `src/platform/` | The `./platform` entry point: configuration keys, `parseBasicConfiguration`, shell models, and the operations (`operations/`) |
|
|
212
|
+
| `src/adapters/` | UI adapters; `primereact.ts` is the `./primereact` entry point |
|
|
213
|
+
|
|
214
|
+
`src/calls/`, `src/models/`, `src/types/`, `src/shims/`, `src/configs/` and `src/utils/` hold the 1.x root API, which `./next` replaces in 2.0, and a few declarations the new entry points share: `PaginatedResponse` and `FieldError` (`src/types/`), the shell models `./platform` exports (`src/models/`, `src/shims/`), and helpers that `./next` and `./primereact` use (`src/utils/`). The root is frozen: new calls go to `src/services/` only, as [CONTRIBUTING.md](CONTRIBUTING.md) describes.
|
|
215
|
+
|
|
216
|
+
Function names are not uniform yet: most end with `Call`, others use prefixes such as `fetch`, `get`, `add` or `remove` without it.
|
|
217
|
+
|
|
218
|
+
Domain models are exported from the package root as types; enums are exported as runtime values too. Embedded types whose names would collide carry the parent entity as a prefix (`CartProduct`, `QuoteProduct`, `OrderCustomer`, `VendorLocation`, …). Pagination uses `PaginationProps` for list parameters and `PaginatedResponse` for results. Management Dashboard shell models (navigation, settings, configuration menu and theme, perspectives, status colours) are not exported.
|
|
54
219
|
|
|
55
220
|
Import everything from the package entry point:
|
|
56
221
|
|
|
@@ -63,7 +228,7 @@ import {
|
|
|
63
228
|
} from '@emporix/api-calls'
|
|
64
229
|
```
|
|
65
230
|
|
|
66
|
-
Do not deep-import from `src
|
|
231
|
+
Do not deep-import from `src/…` in consumers; only the package root, `./next`, `./platform` and `./primereact` entry points are public API.
|
|
67
232
|
|
|
68
233
|
## Shared exports (non-call helpers)
|
|
69
234
|
|
|
@@ -184,10 +349,10 @@ Official documentation lives on the [Emporix Documentation Portal](https://devel
|
|
|
184
349
|
|
|
185
350
|
Many helpers in this package use Emporix pagination, filtering, and sorting conventions:
|
|
186
351
|
|
|
187
|
-
| Topic | Link
|
|
188
|
-
| --------------------- |
|
|
189
|
-
| Query parameter (`q`) | [Standard Practices — Query parameter](https://developer.emporix.io/api-
|
|
190
|
-
| Mixins | [Standard Practices — Mixins](https://developer.emporix.io/api-
|
|
352
|
+
| Topic | Link |
|
|
353
|
+
| --------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
354
|
+
| Query parameter (`q`) | [Standard Practices — Query parameter](https://developer.emporix.io/api-documentation/standard-practices/q-param) |
|
|
355
|
+
| Mixins | [Standard Practices — Mixins](https://developer.emporix.io/api-documentation/standard-practices/mixins) |
|
|
191
356
|
|
|
192
357
|
### Package modules and API guides
|
|
193
358
|
|
|
@@ -204,6 +369,7 @@ Each file under `src/calls/` maps to one or more Emporix API services. Use the g
|
|
|
204
369
|
| `catalogs.ts` | Catalog Service | [Catalog Tutorial](https://developer.emporix.io/api-references/api-guides/catalogs-and-categories/catalog/catalog) |
|
|
205
370
|
| `categories.ts` | Category Service | [Category Tutorial](https://developer.emporix.io/api-references/api-guides/catalogs-and-categories/category-tree/category) |
|
|
206
371
|
| `categoryProductRow.ts` | (view-model helpers) | Used with Product Service data in tables; see [Product Tutorial](https://developer.emporix.io/api-references/api-guides/products-labels-and-brands/product-service/product) |
|
|
372
|
+
| `changelog.ts` | Audit Logs (Changelog) Service | [Audit Logs (Changelog) Service](https://developer.emporix.io/api-documentation/api-guides/utilities/audit-logs-changelog) |
|
|
207
373
|
| `configuration.ts` | Configuration Service | [Configuration Service Tutorial](https://developer.emporix.io/api-references/api-guides/configuration/configuration-service/configuration-service-tutorial) |
|
|
208
374
|
| `countries.ts` | Country Service | [Country Tutorial](https://developer.emporix.io/api-references/api-guides/configuration/country-service/country) |
|
|
209
375
|
| `coupons.ts` | Coupon Service | [Coupon Tutorial](https://developer.emporix.io/api-references/api-guides/rewards-and-promotions/coupon/coupon) |
|
|
@@ -212,6 +378,7 @@ Each file under `src/calls/` maps to one or more Emporix API services. Use the g
|
|
|
212
378
|
| `customerManagement.ts` | Client Management Service | [Customer Management Tutorial](https://developer.emporix.io/api-references/api-guides/companies-and-customers/client-management/customer-management) |
|
|
213
379
|
| `customers.ts` | Customer Service (tenant-managed) | [Customer Service (Tenant Managed) Tutorial](https://developer.emporix.io/api-references/api-guides/companies-and-customers/customer-service/customer-service-tenant) |
|
|
214
380
|
| `delivery.ts`, `shipping.ts` | Delivery & Shipping | [Delivery and Shipping Tutorial](https://developer.emporix.io/api-references/api-guides/delivery-and-shipping/shipping) |
|
|
381
|
+
| `featureToggles.ts` | Feature toggles (MD platform) | No public documentation |
|
|
215
382
|
| `globalConfig.ts` | Configuration Service | [Configuration Service Tutorial](https://developer.emporix.io/api-references/api-guides/configuration/configuration-service/configuration-service-tutorial) |
|
|
216
383
|
| `iam.ts` | IAM Service | [IAM Tutorial](https://developer.emporix.io/api-references/api-guides/users-and-permissions/iam/iam) |
|
|
217
384
|
| `invoice.ts` | Invoice Service | [Invoice Tutorial](https://developer.emporix.io/api-references/api-guides/orders/invoice/invoice) |
|
|
@@ -219,16 +386,16 @@ Each file under `src/calls/` maps to one or more Emporix API services. Use the g
|
|
|
219
386
|
| `mediaAssets.ts` | Media Service | [Media Tutorial](https://developer.emporix.io/api-references/api-guides/media/media/media) |
|
|
220
387
|
| `orders.ts` | Order Service | [Order Tutorial](https://developer.emporix.io/api-references/api-guides/orders/order/order) |
|
|
221
388
|
| `paymentGateway.ts` | Payment Gateway Service | [Payment-gateway Service](https://developer.emporix.io/api-references/api-guides/checkout/payment-gateway) |
|
|
222
|
-
| `picklists.ts` | Pick
|
|
389
|
+
| `picklists.ts` | Pick list PDFs (MD platform) | No public documentation; calls `html2pdf` and `pdfmashup` |
|
|
223
390
|
| `priceLists.ts`, `priceModels.ts`, `prices.ts`, `prices_v2.ts` | Price Service | [Price Tutorials](https://developer.emporix.io/api-references/api-guides/prices-and-taxes/price-service/price) |
|
|
224
391
|
| `products.ts`, `productsMedia.ts` | Product Service | [Product Tutorial](https://developer.emporix.io/api-references/api-guides/products-labels-and-brands/product-service/product). Includes force-delete and dynamic-variant recalculation. |
|
|
225
392
|
| `quotes.ts` | Quote Service | [Quote Tutorial](https://developer.emporix.io/api-references/api-guides/quotes/quote/quote) |
|
|
226
393
|
| `returns.ts` | Returns Service | [Returns Tutorial](https://developer.emporix.io/api-references/api-guides/orders/returns/returns) |
|
|
227
394
|
| `segments.ts` | Customer Segments Service | [Segments Tutorial](https://developer.emporix.io/api-references/api-guides/companies-and-customers/customer-segments/segments) |
|
|
228
|
-
| `sepa.ts` | SEPA
|
|
395
|
+
| `sepa.ts` | SEPA export (MD platform) | No public documentation |
|
|
229
396
|
| `sites.ts` | Site-Settings Service | [Site Settings Tutorial](https://developer.emporix.io/api-references/api-guides/configuration/site-settings-service/site-settings) |
|
|
230
|
-
| `statistics.ts` |
|
|
231
|
-
| `suppliers.ts` | Supplier
|
|
397
|
+
| `statistics.ts` | Statistics (MD platform) | No public documentation |
|
|
398
|
+
| `suppliers.ts` | Supplier Service | No longer in the [List of API Services](https://developer.emporix.io/api-references/quickstart/list-of-api-services); no known consumers |
|
|
232
399
|
| `taxes.ts` | Tax Service | [Tax Service](https://developer.emporix.io/api-references/api-guides/prices-and-taxes/tax-service) |
|
|
233
400
|
| `units.ts` | Unit-Handling Service | [Unit Handling Tutorial](https://developer.emporix.io/api-references/api-guides/configuration/unit-handling-service/unit-handling) |
|
|
234
401
|
| `vendors.ts` | Vendor Service | [Vendor Tutorial](https://developer.emporix.io/api-references/api-guides/companies-and-customers/vendor-service/vendor) |
|
|
@@ -237,19 +404,34 @@ Each file under `src/calls/` maps to one or more Emporix API services. Use the g
|
|
|
237
404
|
|
|
238
405
|
OpenAPI specifications for all services are listed on the [List of API Services](https://developer.emporix.io/api-references/quickstart/list-of-api-services) page and in the [Emporix GitHub repository](https://github.com/emporix).
|
|
239
406
|
|
|
240
|
-
|
|
407
|
+
Public symbols are listed in `src/index.ts` (root), `src/next/index.ts` (`./next`), `src/platform/index.ts` (`./platform`) and `src/adapters/primereact.ts` (`./primereact`); [`api-report/`](api-report) shows each entry point's API.
|
|
241
408
|
|
|
242
409
|
## Development
|
|
243
410
|
|
|
411
|
+
Rules for adding or changing calls, operations, types and tests are in [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
412
|
+
|
|
244
413
|
```bash
|
|
245
414
|
npm install
|
|
246
415
|
npm run lint
|
|
247
416
|
npm run typecheck
|
|
248
|
-
npm test
|
|
417
|
+
npm run test:coverage
|
|
249
418
|
npm run build
|
|
419
|
+
npm run api:check
|
|
420
|
+
npm run smoke
|
|
421
|
+
npm run compat:md
|
|
250
422
|
npm run pack:verify
|
|
251
423
|
```
|
|
252
424
|
|
|
425
|
+
`test:coverage` runs the tests and fails when coverage of the new API (`src/client`, `core`, `services`, `platform`, `adapters`) drops below the thresholds in `vitest.config.ts`, which go up with each release; the frozen root API is not measured. `smoke` imports every entry point by package name as native ESM; `compat:md` type-checks a small consumer with TypeScript 4.9 and `moduleResolution: node`, as Management Dashboard does.
|
|
426
|
+
|
|
427
|
+
### API report
|
|
428
|
+
|
|
429
|
+
[`api-report/`](api-report) holds one report per entry point (`api-calls.api.md` for the root, `api-calls-next.api.md` for `./next`, `api-calls-platform.api.md` for `./platform`, `api-calls-primereact.api.md` for `./primereact`), generated by [API Extractor](https://api-extractor.com/) from the built `.d.ts` files. CI fails when a committed report does not match the build. After changing anything the package exports (a function signature, a type, a field), run `npm run api:report` and commit the updated reports, so the change shows up in the pull request diff.
|
|
430
|
+
|
|
431
|
+
### Name mapping
|
|
432
|
+
|
|
433
|
+
[`migration/name-map.json`](migration/README.md) maps root exports to their replacements in `./next` and `./platform`; mapped root exports carry `@deprecated` notes that name the replacement.
|
|
434
|
+
|
|
253
435
|
## Publishing
|
|
254
436
|
|
|
255
437
|
Releases are published to npm automatically when a version tag is pushed to GitHub. The workflow is defined in [`.github/workflows/publish.yml`](.github/workflows/publish.yml).
|
|
@@ -262,7 +444,7 @@ Configure [npm trusted publishing](https://docs.npmjs.com/trusted-publishers) fo
|
|
|
262
444
|
2. Open the package settings for `@emporix/api-calls`.
|
|
263
445
|
3. Add a trusted publisher:
|
|
264
446
|
- **Provider:** GitHub Actions
|
|
265
|
-
- **Repository:** `emporix/
|
|
447
|
+
- **Repository:** `emporix/api-calls`
|
|
266
448
|
- **Workflow filename:** `publish.yml`
|
|
267
449
|
|
|
268
450
|
No `NPM_TOKEN` GitHub secret is required when trusted publishing is configured.
|
|
@@ -271,32 +453,31 @@ No `NPM_TOKEN` GitHub secret is required when trusted publishing is configured.
|
|
|
271
453
|
|
|
272
454
|
Before tagging a release, make sure:
|
|
273
455
|
|
|
274
|
-
- Changes are merged to
|
|
456
|
+
- Changes are merged to `master`.
|
|
275
457
|
- `version` in `package.json` is bumped (follow [semver](https://semver.org/)).
|
|
458
|
+
- `CHANGELOG.md` has a section for the new version (see [`.cursor/skills/update-changelog/SKILL.md`](.cursor/skills/update-changelog/SKILL.md)).
|
|
276
459
|
- Local quality checks pass:
|
|
277
460
|
|
|
278
461
|
```bash
|
|
279
462
|
npm run lint
|
|
280
463
|
npm run typecheck
|
|
281
|
-
npm test
|
|
464
|
+
npm run test:coverage
|
|
282
465
|
npm run build
|
|
466
|
+
npm run api:check
|
|
467
|
+
npm run smoke
|
|
468
|
+
npm run compat:md
|
|
283
469
|
npm run pack:verify
|
|
284
470
|
```
|
|
285
471
|
|
|
286
472
|
### Publish a new version
|
|
287
473
|
|
|
288
|
-
1. Update the version in `package.json`, for example `0.2.0`.
|
|
289
|
-
2.
|
|
290
|
-
|
|
291
|
-
```bash
|
|
292
|
-
git add package.json
|
|
293
|
-
git commit -m "chore: release v0.2.0"
|
|
294
|
-
git push origin main
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
3. Create and push a tag that matches the version exactly (prefix with `v`):
|
|
474
|
+
1. Update the version in `package.json` and `package-lock.json`, for example to `0.2.0`, and add the matching section to `CHANGELOG.md`.
|
|
475
|
+
2. Merge the release commit to `master` through a pull request.
|
|
476
|
+
3. Tag the merged commit on `master` with the exact version (prefix with `v`) and push the tag:
|
|
298
477
|
|
|
299
478
|
```bash
|
|
479
|
+
git checkout master
|
|
480
|
+
git pull
|
|
300
481
|
git tag v0.2.0
|
|
301
482
|
git push origin v0.2.0
|
|
302
483
|
```
|
|
@@ -309,7 +490,8 @@ On every `v*` tag push, GitHub Actions:
|
|
|
309
490
|
|
|
310
491
|
1. Validates the tag format (`v1.2.3` or `v1.2.3-beta.1`).
|
|
311
492
|
2. Checks that the tag matches `package.json` (tag `v0.2.0` requires version `0.2.0`).
|
|
312
|
-
3.
|
|
493
|
+
3. Checks that the tagged commit is on `master`.
|
|
494
|
+
4. Publishes to [npm](https://www.npmjs.com/package/@emporix/api-calls) with `npm publish` (the `prepublishOnly` script runs `lint`, `typecheck`, `clean`, `build`, `test:coverage`, `api:check`, `smoke` and `compat:md` automatically).
|
|
313
495
|
|
|
314
496
|
Formatting is enforced by the [CI workflow](.github/workflows/ci.yml) on pull requests and branch pushes.
|
|
315
497
|
|
|
@@ -343,10 +525,11 @@ npm pack --dry-run
|
|
|
343
525
|
| Problem | Likely cause |
|
|
344
526
|
| ----------------------------- | ----------------------------------------------------------------------------- |
|
|
345
527
|
| Tag validation failed | Tag is not `v{version}` or does not match `package.json`. |
|
|
528
|
+
| Tag is not on master | The tag points to a commit outside `master`. Tag the merged commit instead. |
|
|
346
529
|
| Publish failed with 403 | Trusted publishing is not configured for this repo/workflow. |
|
|
347
530
|
| Version already exists on npm | Bump `package.json` and create a new tag; npm versions cannot be overwritten. |
|
|
348
531
|
|
|
349
532
|
## CI
|
|
350
533
|
|
|
351
|
-
- **`ci.yml`** — runs on push/PR: format, lint, typecheck, test, build, `npm pack --dry-run`.
|
|
352
|
-
- **`publish.yml`** — runs on version tags (`v*`)
|
|
534
|
+
- **`ci.yml`** — runs on push/PR: format, lint, typecheck (including tests), test, build, API report check, native ESM import of every entry point, TypeScript 4.9 consumer check, `npm pack --dry-run`.
|
|
535
|
+
- **`publish.yml`** — runs on version tags (`v*`): checks the tag against `package.json` and `master`, then publishes to npm.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ListParams } from '../core/pagination.js';
|
|
2
|
+
export type { ListParams } from '../core/pagination.js';
|
|
3
|
+
export type { QueryFilter, QueryValue } from '../core/query.js';
|
|
4
|
+
/** A column filter as a PrimeReact DataTable keeps it in row filter mode. */
|
|
5
|
+
export interface DataTableColumnFilter {
|
|
6
|
+
readonly value?: unknown;
|
|
7
|
+
readonly matchMode?: string;
|
|
8
|
+
/** Menu filters (operator and constraints) are not supported and are skipped. */
|
|
9
|
+
readonly operator?: string;
|
|
10
|
+
readonly constraints?: unknown;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The DataTable state the adapter reads. Both Management Dashboard's
|
|
14
|
+
* usePagination state (DataTableProps plus currentPage) and the remotes'
|
|
15
|
+
* pagination type fit; other properties are ignored.
|
|
16
|
+
*/
|
|
17
|
+
export interface DataTableState {
|
|
18
|
+
/** Page number starting at 1; 0 or missing means 1. */
|
|
19
|
+
readonly currentPage?: number;
|
|
20
|
+
/** Page size; 0 or missing means 10. */
|
|
21
|
+
readonly rows?: number;
|
|
22
|
+
/** Field to sort by; the part from the first `[` on is dropped. */
|
|
23
|
+
readonly sortField?: string | null;
|
|
24
|
+
/** 1 sorts ascending; -1, 0 and null sort descending. */
|
|
25
|
+
readonly sortOrder?: number | null;
|
|
26
|
+
readonly filters?: {
|
|
27
|
+
readonly [field: string]: DataTableColumnFilter | readonly DataTableColumnFilter[] | null | undefined;
|
|
28
|
+
} | null;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Maps a PrimeReact DataTable state to ListParams for ./next list calls, with the
|
|
32
|
+
* semantics the table filters have today: equals is an exact match, startsWith
|
|
33
|
+
* an anchored regex, every other match mode a regex search, arrays an in-list,
|
|
34
|
+
* `{ value, mode }` number filters a comparison, and date picks the same date
|
|
35
|
+
* range as before (sent in `q`). Empty filters are skipped.
|
|
36
|
+
*/
|
|
37
|
+
export declare const fromDataTableState: (state?: DataTableState) => ListParams;
|
|
38
|
+
//# sourceMappingURL=primereact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primereact.d.ts","sourceRoot":"","sources":["../../src/adapters/primereact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAKvD,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE/D,6EAA6E;AAC7E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,uDAAuD;IACvD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,wCAAwC;IACxC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,mEAAmE;IACnE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,yDAAyD;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE;QACjB,QAAQ,EAAE,KAAK,EAAE,MAAM,GACnB,qBAAqB,GACrB,SAAS,qBAAqB,EAAE,GAChC,IAAI,GACJ,SAAS,CAAA;KACd,GAAG,IAAI,CAAA;CACT;AA2CD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAO,cAAmB,KAAG,UAiD/D,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { getDateFilter } from '../utils/dateRange.js';
|
|
2
|
+
import { hasFilterValue } from '../utils/params.js';
|
|
3
|
+
/** The value of a number filter template: `{ value, mode: 'gt' | 'lt' | 'equals' }`. */
|
|
4
|
+
const isNumberFilter = (value) => typeof value === 'object' &&
|
|
5
|
+
value !== null &&
|
|
6
|
+
'mode' in value &&
|
|
7
|
+
'value' in value;
|
|
8
|
+
const isIsoDateRange = (value) => Array.isArray(value) &&
|
|
9
|
+
value.length === 2 &&
|
|
10
|
+
value.every((entry) => typeof entry === 'string' && /^\d{4}-\d{2}-\d{2}T/.test(entry));
|
|
11
|
+
const isQueryValue = (value) => typeof value === 'string' ||
|
|
12
|
+
typeof value === 'boolean' ||
|
|
13
|
+
(typeof value === 'number' && Number.isFinite(value));
|
|
14
|
+
const COMPARISONS = new Set(['lt', 'lte', 'gt', 'gte']);
|
|
15
|
+
const toFilter = (field, matchMode, value) => {
|
|
16
|
+
if (matchMode === 'equals') {
|
|
17
|
+
return { field, op: 'eq', value };
|
|
18
|
+
}
|
|
19
|
+
if (matchMode === 'startsWith') {
|
|
20
|
+
return { field, op: 'startsWith', value };
|
|
21
|
+
}
|
|
22
|
+
if (matchMode && COMPARISONS.has(matchMode)) {
|
|
23
|
+
return { field, op: matchMode, value };
|
|
24
|
+
}
|
|
25
|
+
// Any other match mode searches with a regex, as the table filters always have
|
|
26
|
+
return { field, op: 'contains', value };
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Maps a PrimeReact DataTable state to ListParams for ./next list calls, with the
|
|
30
|
+
* semantics the table filters have today: equals is an exact match, startsWith
|
|
31
|
+
* an anchored regex, every other match mode a regex search, arrays an in-list,
|
|
32
|
+
* `{ value, mode }` number filters a comparison, and date picks the same date
|
|
33
|
+
* range as before (sent in `q`). Empty filters are skipped.
|
|
34
|
+
*/
|
|
35
|
+
export const fromDataTableState = (state = {}) => {
|
|
36
|
+
const filters = [];
|
|
37
|
+
const dateClauses = [];
|
|
38
|
+
for (const [field, entry] of Object.entries(state.filters ?? {})) {
|
|
39
|
+
if (!entry || Array.isArray(entry)) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
const { value, matchMode } = entry;
|
|
43
|
+
if (!hasFilterValue(value)) {
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
if (isNumberFilter(value)) {
|
|
47
|
+
if (isQueryValue(value.value)) {
|
|
48
|
+
const op = value.mode === 'gt' ? 'gt' : value.mode === 'lt' ? 'lt' : 'eq';
|
|
49
|
+
filters.push({ field, op, value: value.value });
|
|
50
|
+
}
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (matchMode === 'dateIs' || isIsoDateRange(value)) {
|
|
54
|
+
const range = getDateFilter(value);
|
|
55
|
+
if (range) {
|
|
56
|
+
dateClauses.push(`${field}:${range}`);
|
|
57
|
+
}
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
if (Array.isArray(value)) {
|
|
61
|
+
const values = value.filter((item) => isQueryValue(item) && item !== '');
|
|
62
|
+
if (values.length > 0) {
|
|
63
|
+
filters.push({ field, op: 'in', value: values });
|
|
64
|
+
}
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
if (isQueryValue(value)) {
|
|
68
|
+
filters.push(toFilter(field, matchMode, value));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const sortField = state.sortField?.split('[')[0];
|
|
72
|
+
return {
|
|
73
|
+
pageNumber: state.currentPage || 1,
|
|
74
|
+
pageSize: state.rows || 10,
|
|
75
|
+
...(sortField
|
|
76
|
+
? { sort: `${sortField}:${(state.sortOrder ?? 0) > 0 ? 'ASC' : 'DESC'}` }
|
|
77
|
+
: {}),
|
|
78
|
+
...(filters.length > 0 ? { filters } : {}),
|
|
79
|
+
...(dateClauses.length > 0 ? { q: dateClauses.join(' ') } : {}),
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=primereact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primereact.js","sourceRoot":"","sources":["../../src/adapters/primereact.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAqCnD,wFAAwF;AACxF,MAAM,cAAc,GAAG,CACrB,KAAc,EAC8B,EAAE,CAC9C,OAAO,KAAK,KAAK,QAAQ;IACzB,KAAK,KAAK,IAAI;IACd,MAAM,IAAI,KAAK;IACf,OAAO,IAAI,KAAK,CAAA;AAElB,MAAM,cAAc,GAAG,CAAC,KAAc,EAAW,EAAE,CACjD,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;IACpB,KAAK,CAAC,MAAM,KAAK,CAAC;IAClB,KAAK,CAAC,KAAK,CACT,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,CAC1E,CAAA;AAEH,MAAM,YAAY,GAAG,CAAC,KAAc,EAAuB,EAAE,CAC3D,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,KAAK,SAAS;IAC1B,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAA;AAEvD,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAEvD,MAAM,QAAQ,GAAG,CACf,KAAa,EACb,SAA6B,EAC7B,KAAiB,EACJ,EAAE;IACf,IAAI,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;IACnC,CAAC;IACD,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;QAC/B,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAA;IAC3C,CAAC;IACD,IAAI,SAAS,IAAI,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;QAC5C,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,SAAwC,EAAE,KAAK,EAAE,CAAA;IACvE,CAAC;IACD,+EAA+E;IAC/E,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACzC,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,QAAwB,EAAE,EAAc,EAAE;IAC3E,MAAM,OAAO,GAAkB,EAAE,CAAA;IACjC,MAAM,WAAW,GAAa,EAAE,CAAA;IAChC,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,CAAC;QACjE,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACnC,SAAQ;QACV,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAA8B,CAAA;QAC3D,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3B,SAAQ;QACV,CAAC;QACD,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,IAAI,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC9B,MAAM,EAAE,GACN,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;gBAChE,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAA;YACjD,CAAC;YACD,SAAQ;QACV,CAAC;QACD,IAAI,SAAS,KAAK,QAAQ,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;YACpD,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;YAClC,IAAI,KAAK,EAAE,CAAC;gBACV,WAAW,CAAC,IAAI,CAAC,GAAG,KAAK,IAAI,KAAK,EAAE,CAAC,CAAA;YACvC,CAAC;YACD,SAAQ;QACV,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CACzB,CAAC,IAAI,EAAsB,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,EAAE,CAChE,CAAA;YACD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACtB,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;YAClD,CAAC;YACD,SAAQ;QACV,CAAC;QACD,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;QACjD,CAAC;IACH,CAAC;IACD,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IAChD,OAAO;QACL,UAAU,EAAE,KAAK,CAAC,WAAW,IAAI,CAAC;QAClC,QAAQ,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE;QAC1B,GAAG,CAAC,SAAS;YACX,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,SAAS,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;YACzE,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1C,GAAG,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAChE,CAAA;AACH,CAAC,CAAA"}
|
package/dist/calls/ai.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { AiTextRequest, AiTextResponse } from '../models/Ai';
|
|
1
|
+
import { AiTextRequest, AiTextResponse } from '../models/Ai.js';
|
|
2
|
+
/** @deprecated Use `generateTextCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `generateTextCall(request)`. The request's `id` is optional and it can set `maxTokens`. */
|
|
2
3
|
export declare const generateTextRequest: (tenant: string, aiTextRequest: AiTextRequest) => Promise<AiTextResponse>;
|
|
3
4
|
//# sourceMappingURL=ai.d.ts.map
|
package/dist/calls/ai.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/calls/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/calls/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAI/D,yMAAyM;AACzM,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,MAAM,EACd,eAAe,aAAa,KAC3B,OAAO,CAAC,cAAc,CAMxB,CAAA"}
|
package/dist/calls/ai.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { getApiClient } from '../client/apiInstance';
|
|
1
|
+
import { getApiClient } from '../client/apiInstance.js';
|
|
2
|
+
/** @deprecated Use `generateTextCall` from `@emporix/api-calls/next`, which takes the tenant from the client: `generateTextCall(request)`. The request's `id` is optional and it can set `maxTokens`. */
|
|
2
3
|
export const generateTextRequest = async (tenant, aiTextRequest) => {
|
|
3
4
|
const { data } = await getApiClient().post(`ai-service/${tenant}/texts`, aiTextRequest);
|
|
4
5
|
return data;
|
package/dist/calls/ai.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.js","sourceRoot":"","sources":["../../src/calls/ai.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ai.js","sourceRoot":"","sources":["../../src/calls/ai.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEvD,yMAAyM;AACzM,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAAc,EACd,aAA4B,EACH,EAAE;IAC3B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,YAAY,EAAE,CAAC,IAAI,CACxC,cAAc,MAAM,QAAQ,EAC5B,aAAa,CACd,CAAA;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
|