@medusajs/types 1.12.0-snapshot-20240531102054 → 1.12.0-snapshot-20240701122250
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-key/service.d.ts +24 -24
- package/dist/api-key/service.d.ts.map +1 -1
- package/dist/auth/common/auth-identity.d.ts +77 -21
- package/dist/auth/common/auth-identity.d.ts.map +1 -1
- package/dist/auth/common/provider.d.ts +2 -1
- package/dist/auth/common/provider.d.ts.map +1 -1
- package/dist/auth/provider.d.ts +6 -3
- package/dist/auth/provider.d.ts.map +1 -1
- package/dist/auth/service.d.ts +30 -30
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bundles.d.ts +2 -1
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +3 -2
- package/dist/bundles.js.map +1 -1
- package/dist/cart/mutations.d.ts +8 -0
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/service.d.ts +30 -52
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/common/batch.d.ts +3 -3
- package/dist/common/batch.d.ts.map +1 -1
- package/dist/common/common.d.ts +6 -1
- package/dist/common/common.d.ts.map +1 -1
- package/dist/currency/service.d.ts +9 -9
- package/dist/currency/service.d.ts.map +1 -1
- package/dist/customer/mutations.d.ts +27 -26
- package/dist/customer/mutations.d.ts.map +1 -1
- package/dist/customer/service.d.ts +40 -43
- package/dist/customer/service.d.ts.map +1 -1
- package/dist/dal/repository-service.d.ts +15 -3
- package/dist/dal/repository-service.d.ts.map +1 -1
- package/dist/dml/index.d.ts +161 -0
- package/dist/dml/index.d.ts.map +1 -0
- package/dist/dml/index.js +5 -0
- package/dist/dml/index.js.map +1 -0
- package/dist/event-bus/common.d.ts +17 -25
- package/dist/event-bus/common.d.ts.map +1 -1
- package/dist/event-bus/event-bus-module.d.ts +4 -4
- package/dist/event-bus/event-bus-module.d.ts.map +1 -1
- package/dist/event-bus/event-bus.d.ts +2 -4
- package/dist/event-bus/event-bus.d.ts.map +1 -1
- package/dist/file/provider.d.ts +1 -8
- package/dist/file/provider.d.ts.map +1 -1
- package/dist/file/service.d.ts +12 -12
- package/dist/file/service.d.ts.map +1 -1
- package/dist/fulfillment/mutations/fulfillment.d.ts +3 -1
- package/dist/fulfillment/mutations/fulfillment.d.ts.map +1 -1
- package/dist/fulfillment/mutations/service-zone.d.ts +3 -3
- package/dist/fulfillment/mutations/service-zone.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-option.d.ts +0 -22
- package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-profile.d.ts +20 -2
- package/dist/fulfillment/mutations/shipping-profile.d.ts.map +1 -1
- package/dist/fulfillment/service.d.ts +71 -32
- package/dist/fulfillment/service.d.ts.map +1 -1
- package/dist/http/currency/admin/entities.d.ts +14 -0
- package/dist/http/currency/admin/entities.d.ts.map +1 -0
- package/dist/http/{fulfillment/admin/geo-zone.js → currency/admin/entities.js} +1 -1
- package/dist/http/currency/admin/entities.js.map +1 -0
- package/dist/http/currency/admin/index.d.ts +2 -0
- package/dist/http/currency/admin/index.d.ts.map +1 -0
- package/dist/http/{tax → currency}/admin/index.js +1 -2
- package/dist/http/currency/admin/index.js.map +1 -0
- package/dist/http/currency/index.d.ts.map +1 -0
- package/dist/http/currency/index.js.map +1 -0
- package/dist/http/file/admin.d.ts +5 -0
- package/dist/http/file/admin.d.ts.map +1 -0
- package/dist/http/{product → file}/admin.js.map +1 -1
- package/dist/http/file/common.d.ts +11 -0
- package/dist/http/file/common.d.ts.map +1 -0
- package/dist/{inventory → http/file}/common.js.map +1 -1
- package/dist/http/file/index.d.ts +3 -0
- package/dist/http/file/index.d.ts.map +1 -0
- package/dist/{inventory/bundle.js → http/file/index.js} +3 -3
- package/dist/http/file/index.js.map +1 -0
- package/dist/http/file/store.d.ts +4 -0
- package/dist/http/file/store.d.ts.map +1 -0
- package/dist/http/{product → file}/store.js.map +1 -1
- package/dist/http/fulfillment/admin/entitites.d.ts +62 -0
- package/dist/http/fulfillment/admin/entitites.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/entitites.js +3 -0
- package/dist/http/fulfillment/admin/entitites.js.map +1 -0
- package/dist/http/fulfillment/admin/index.d.ts +3 -12
- package/dist/http/fulfillment/admin/index.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/index.js +3 -12
- package/dist/http/fulfillment/admin/index.js.map +1 -1
- package/dist/http/fulfillment/admin/payloads.d.ts +41 -0
- package/dist/http/fulfillment/admin/payloads.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/payloads.js +3 -0
- package/dist/http/fulfillment/admin/payloads.js.map +1 -0
- package/dist/http/fulfillment/admin/responses.d.ts +5 -0
- package/dist/http/fulfillment/admin/responses.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/responses.js +3 -0
- package/dist/http/fulfillment/admin/responses.js.map +1 -0
- package/dist/http/fulfillment-provider/admin/entities.d.ts +5 -0
- package/dist/http/fulfillment-provider/admin/entities.d.ts.map +1 -0
- package/dist/http/fulfillment-provider/admin/entities.js +3 -0
- package/dist/http/fulfillment-provider/admin/entities.js.map +1 -0
- package/dist/http/fulfillment-provider/admin/index.d.ts +4 -0
- package/dist/http/fulfillment-provider/admin/index.d.ts.map +1 -0
- package/dist/http/fulfillment-provider/admin/index.js +20 -0
- package/dist/http/fulfillment-provider/admin/index.js.map +1 -0
- package/dist/http/fulfillment-provider/admin/queries.d.ts +7 -0
- package/dist/http/fulfillment-provider/admin/queries.d.ts.map +1 -0
- package/dist/http/{pricing/price.js → fulfillment-provider/admin/queries.js} +1 -1
- package/dist/http/fulfillment-provider/admin/queries.js.map +1 -0
- package/dist/http/fulfillment-provider/admin/responses.d.ts +7 -0
- package/dist/http/fulfillment-provider/admin/responses.d.ts.map +1 -0
- package/dist/http/{inventory/inventory.js → fulfillment-provider/admin/responses.js} +1 -1
- package/dist/http/fulfillment-provider/admin/responses.js.map +1 -0
- package/dist/http/fulfillment-provider/index.d.ts +2 -0
- package/dist/http/fulfillment-provider/index.d.ts.map +1 -0
- package/dist/{region__legacy → http/fulfillment-provider}/index.js +1 -1
- package/dist/http/fulfillment-provider/index.js.map +1 -0
- package/dist/http/fulfillment-set/admin/entities.d.ts +33 -0
- package/dist/http/fulfillment-set/admin/entities.d.ts.map +1 -0
- package/dist/http/fulfillment-set/admin/entities.js +3 -0
- package/dist/http/fulfillment-set/admin/entities.js.map +1 -0
- package/dist/http/fulfillment-set/admin/index.d.ts +4 -0
- package/dist/http/fulfillment-set/admin/index.d.ts.map +1 -0
- package/dist/http/fulfillment-set/admin/index.js +20 -0
- package/dist/http/fulfillment-set/admin/index.js.map +1 -0
- package/dist/http/fulfillment-set/admin/payloads.d.ts +56 -0
- package/dist/http/fulfillment-set/admin/payloads.d.ts.map +1 -0
- package/dist/http/fulfillment-set/admin/payloads.js +3 -0
- package/dist/http/fulfillment-set/admin/payloads.js.map +1 -0
- package/dist/http/fulfillment-set/admin/queries.d.ts +12 -0
- package/dist/http/fulfillment-set/admin/queries.d.ts.map +1 -0
- package/dist/http/{product/admin.js → fulfillment-set/admin/queries.js} +1 -1
- package/dist/http/fulfillment-set/admin/queries.js.map +1 -0
- package/dist/http/fulfillment-set/admin/responses.d.ts +13 -0
- package/dist/http/fulfillment-set/admin/responses.d.ts.map +1 -0
- package/dist/http/fulfillment-set/admin/responses.js +3 -0
- package/dist/http/fulfillment-set/admin/responses.js.map +1 -0
- package/dist/http/fulfillment-set/index.d.ts +2 -0
- package/dist/http/fulfillment-set/index.d.ts.map +1 -0
- package/dist/http/fulfillment-set/index.js +18 -0
- package/dist/http/fulfillment-set/index.js.map +1 -0
- package/dist/http/index.d.ts +12 -1
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +12 -1
- package/dist/http/index.js.map +1 -1
- package/dist/http/inventory/{inventory.d.ts → admin/entities.d.ts} +2 -10
- package/dist/http/inventory/admin/entities.d.ts.map +1 -0
- package/dist/http/inventory/admin/entities.js +3 -0
- package/dist/http/inventory/admin/entities.js.map +1 -0
- package/dist/http/inventory/admin/index.d.ts +5 -0
- package/dist/http/inventory/admin/index.d.ts.map +1 -0
- package/dist/http/inventory/admin/index.js +21 -0
- package/dist/http/inventory/admin/index.js.map +1 -0
- package/dist/http/inventory/admin/payloads.d.ts +19 -0
- package/dist/http/inventory/admin/payloads.d.ts.map +1 -0
- package/dist/http/inventory/admin/payloads.js +3 -0
- package/dist/http/inventory/admin/payloads.js.map +1 -0
- package/dist/http/inventory/admin/queries.d.ts +18 -0
- package/dist/http/inventory/admin/queries.d.ts.map +1 -0
- package/dist/http/inventory/admin/queries.js +3 -0
- package/dist/http/inventory/admin/queries.js.map +1 -0
- package/dist/http/inventory/admin/responses.d.ts +10 -0
- package/dist/http/inventory/admin/responses.d.ts.map +1 -0
- package/dist/http/inventory/admin/responses.js +3 -0
- package/dist/http/inventory/admin/responses.js.map +1 -0
- package/dist/http/inventory/index.d.ts +1 -2
- package/dist/http/inventory/index.d.ts.map +1 -1
- package/dist/http/inventory/index.js +1 -2
- package/dist/http/inventory/index.js.map +1 -1
- package/dist/http/inventory-level/admin/entities.d.ts +11 -0
- package/dist/http/inventory-level/admin/entities.d.ts.map +1 -0
- package/dist/http/inventory-level/admin/entities.js +3 -0
- package/dist/http/inventory-level/admin/entities.js.map +1 -0
- package/dist/http/inventory-level/admin/index.d.ts +5 -0
- package/dist/http/inventory-level/admin/index.d.ts.map +1 -0
- package/dist/http/inventory-level/admin/index.js +21 -0
- package/dist/http/inventory-level/admin/index.js.map +1 -0
- package/dist/http/inventory-level/admin/payloads.d.ts +15 -0
- package/dist/http/inventory-level/admin/payloads.d.ts.map +1 -0
- package/dist/http/inventory-level/admin/payloads.js +3 -0
- package/dist/http/inventory-level/admin/payloads.js.map +1 -0
- package/dist/http/inventory-level/admin/queries.d.ts +5 -0
- package/dist/http/inventory-level/admin/queries.d.ts.map +1 -0
- package/dist/http/inventory-level/admin/queries.js +3 -0
- package/dist/http/inventory-level/admin/queries.js.map +1 -0
- package/dist/http/inventory-level/admin/responses.d.ts +9 -0
- package/dist/http/inventory-level/admin/responses.d.ts.map +1 -0
- package/dist/http/inventory-level/admin/responses.js +3 -0
- package/dist/http/inventory-level/admin/responses.js.map +1 -0
- package/dist/http/inventory-level/index.d.ts +2 -0
- package/dist/http/inventory-level/index.d.ts.map +1 -0
- package/dist/http/inventory-level/index.js +18 -0
- package/dist/http/inventory-level/index.js.map +1 -0
- package/dist/http/order/admin.d.ts +15 -1
- package/dist/http/order/admin.d.ts.map +1 -1
- package/dist/http/order/common.d.ts +2 -0
- package/dist/http/order/common.d.ts.map +1 -1
- package/dist/http/price-list/admin/entities.d.ts +21 -0
- package/dist/http/price-list/admin/entities.d.ts.map +1 -0
- package/dist/http/price-list/admin/entities.js +3 -0
- package/dist/http/price-list/admin/entities.js.map +1 -0
- package/dist/http/price-list/admin/index.d.ts +5 -0
- package/dist/http/price-list/admin/index.d.ts.map +1 -0
- package/dist/http/price-list/admin/index.js +21 -0
- package/dist/http/price-list/admin/index.js.map +1 -0
- package/dist/http/price-list/admin/payloads.d.ts +46 -0
- package/dist/http/price-list/admin/payloads.d.ts.map +1 -0
- package/dist/http/price-list/admin/payloads.js +3 -0
- package/dist/http/price-list/admin/payloads.js.map +1 -0
- package/dist/http/price-list/admin/queries.d.ts +14 -0
- package/dist/http/price-list/admin/queries.d.ts.map +1 -0
- package/dist/http/price-list/admin/queries.js +3 -0
- package/dist/http/price-list/admin/queries.js.map +1 -0
- package/dist/http/price-list/admin/responses.d.ts +12 -0
- package/dist/http/price-list/admin/responses.d.ts.map +1 -0
- package/dist/http/price-list/admin/responses.js +3 -0
- package/dist/http/price-list/admin/responses.js.map +1 -0
- package/dist/http/price-list/index.d.ts +2 -0
- package/dist/http/price-list/index.d.ts.map +1 -0
- package/dist/http/price-list/index.js +18 -0
- package/dist/http/price-list/index.js.map +1 -0
- package/dist/http/pricing/admin/entities.d.ts +32 -0
- package/dist/http/pricing/admin/entities.d.ts.map +1 -0
- package/dist/http/pricing/admin/entities.js +3 -0
- package/dist/http/pricing/admin/entities.js.map +1 -0
- package/dist/http/pricing/admin/index.d.ts +2 -0
- package/dist/http/pricing/admin/index.d.ts.map +1 -0
- package/dist/http/pricing/admin/index.js +18 -0
- package/dist/http/pricing/admin/index.js.map +1 -0
- package/dist/http/pricing/index.d.ts +1 -1
- package/dist/http/pricing/index.js +1 -1
- package/dist/http/product/admin/entitites.d.ts +26 -0
- package/dist/http/product/admin/entitites.d.ts.map +1 -0
- package/dist/http/product/admin/entitites.js +3 -0
- package/dist/http/product/admin/entitites.js.map +1 -0
- package/dist/http/product/admin/index.d.ts +5 -0
- package/dist/http/product/admin/index.d.ts.map +1 -0
- package/dist/http/product/admin/index.js +21 -0
- package/dist/http/product/admin/index.js.map +1 -0
- package/dist/http/product/admin/payloads.d.ts +152 -0
- package/dist/http/product/admin/payloads.d.ts.map +1 -0
- package/dist/http/product/admin/payloads.js +3 -0
- package/dist/http/product/admin/payloads.js.map +1 -0
- package/dist/http/product/admin/queries.d.ts +12 -0
- package/dist/http/product/admin/queries.d.ts.map +1 -0
- package/dist/http/product/admin/queries.js +3 -0
- package/dist/http/product/admin/queries.js.map +1 -0
- package/dist/http/product/admin/responses.d.ts +35 -0
- package/dist/http/product/admin/responses.d.ts.map +1 -0
- package/dist/http/product/admin/responses.js +3 -0
- package/dist/http/product/admin/responses.js.map +1 -0
- package/dist/http/product/common.d.ts +72 -106
- package/dist/http/product/common.d.ts.map +1 -1
- package/dist/http/product/store/entitites.d.ts +19 -0
- package/dist/http/product/store/entitites.d.ts.map +1 -0
- package/dist/http/product/store/entitites.js +3 -0
- package/dist/http/product/store/entitites.js.map +1 -0
- package/dist/http/product/store/index.d.ts +4 -0
- package/dist/http/product/store/index.d.ts.map +1 -0
- package/dist/http/product/store/index.js +20 -0
- package/dist/http/product/store/index.js.map +1 -0
- package/dist/http/product/store/queries.d.ts +13 -0
- package/dist/http/product/store/queries.d.ts.map +1 -0
- package/dist/http/product/store/queries.js +3 -0
- package/dist/http/product/store/queries.js.map +1 -0
- package/dist/http/product/store/responses.d.ts +9 -0
- package/dist/http/product/store/responses.d.ts.map +1 -0
- package/dist/http/product/store/responses.js +3 -0
- package/dist/http/product/store/responses.js.map +1 -0
- package/dist/http/product-category/admin/entities.d.ts +8 -0
- package/dist/http/product-category/admin/entities.d.ts.map +1 -0
- package/dist/http/product-category/admin/entities.js +3 -0
- package/dist/http/product-category/admin/entities.js.map +1 -0
- package/dist/http/product-category/admin/index.d.ts +5 -0
- package/dist/http/product-category/admin/index.d.ts.map +1 -0
- package/dist/http/product-category/admin/index.js +21 -0
- package/dist/http/product-category/admin/index.js.map +1 -0
- package/dist/http/product-category/admin/payloads.d.ts +25 -0
- package/dist/http/product-category/admin/payloads.d.ts.map +1 -0
- package/dist/http/product-category/admin/payloads.js +3 -0
- package/dist/http/product-category/admin/payloads.js.map +1 -0
- package/dist/http/product-category/admin/queries.d.ts +8 -0
- package/dist/http/product-category/admin/queries.d.ts.map +1 -0
- package/dist/http/product-category/admin/queries.js +3 -0
- package/dist/http/product-category/admin/queries.js.map +1 -0
- package/dist/http/product-category/admin/responses.d.ts +12 -0
- package/dist/http/product-category/admin/responses.d.ts.map +1 -0
- package/dist/http/product-category/admin/responses.js +3 -0
- package/dist/http/product-category/admin/responses.js.map +1 -0
- package/dist/http/product-category/common.d.ts +31 -7
- package/dist/http/product-category/common.d.ts.map +1 -1
- package/dist/http/product-category/store/entities.d.ts +6 -0
- package/dist/http/product-category/store/entities.d.ts.map +1 -0
- package/dist/http/product-category/store/entities.js +3 -0
- package/dist/http/product-category/store/entities.js.map +1 -0
- package/dist/http/product-category/store/index.d.ts +4 -0
- package/dist/http/product-category/store/index.d.ts.map +1 -0
- package/dist/http/product-category/store/index.js +20 -0
- package/dist/http/product-category/store/index.js.map +1 -0
- package/dist/http/product-category/store/queries.d.ts +6 -0
- package/dist/http/product-category/store/queries.d.ts.map +1 -0
- package/dist/http/product-category/store/queries.js +3 -0
- package/dist/http/product-category/store/queries.js.map +1 -0
- package/dist/http/product-category/store/responses.d.ts +10 -0
- package/dist/http/product-category/store/responses.d.ts.map +1 -0
- package/dist/http/product-category/store/responses.js +3 -0
- package/dist/http/product-category/store/responses.js.map +1 -0
- package/dist/http/product-type/admin/entities.d.ts +4 -0
- package/dist/http/product-type/admin/entities.d.ts.map +1 -0
- package/dist/http/product-type/admin/entities.js +3 -0
- package/dist/http/product-type/admin/entities.js.map +1 -0
- package/dist/http/product-type/admin/index.d.ts +5 -0
- package/dist/http/product-type/admin/index.d.ts.map +1 -0
- package/dist/http/product-type/admin/index.js +21 -0
- package/dist/http/product-type/admin/index.js.map +1 -0
- package/dist/http/product-type/admin/payloads.d.ts +9 -0
- package/dist/http/product-type/admin/payloads.d.ts.map +1 -0
- package/dist/http/product-type/admin/payloads.js +3 -0
- package/dist/http/product-type/admin/payloads.js.map +1 -0
- package/dist/http/product-type/admin/queries.d.ts +13 -0
- package/dist/http/product-type/admin/queries.d.ts.map +1 -0
- package/dist/http/product-type/admin/queries.js +3 -0
- package/dist/http/product-type/admin/queries.js.map +1 -0
- package/dist/http/product-type/admin/responses.d.ts +12 -0
- package/dist/http/product-type/admin/responses.d.ts.map +1 -0
- package/dist/http/product-type/admin/responses.js +3 -0
- package/dist/http/product-type/admin/responses.js.map +1 -0
- package/dist/http/product-type/common.d.ts +9 -0
- package/dist/http/product-type/common.d.ts.map +1 -0
- package/dist/{region__legacy → http/product-type}/common.js.map +1 -1
- package/dist/http/product-type/index.d.ts +3 -0
- package/dist/http/product-type/index.d.ts.map +1 -0
- package/dist/http/product-type/index.js +19 -0
- package/dist/http/product-type/index.js.map +1 -0
- package/dist/http/product-type/store/entities.d.ts +4 -0
- package/dist/http/product-type/store/entities.d.ts.map +1 -0
- package/dist/http/product-type/store/entities.js +3 -0
- package/dist/http/product-type/store/entities.js.map +1 -0
- package/dist/http/product-type/store/index.d.ts +2 -0
- package/dist/http/product-type/store/index.d.ts.map +1 -0
- package/dist/http/product-type/store/index.js +18 -0
- package/dist/http/product-type/store/index.js.map +1 -0
- package/dist/http/promotion/admin/promotion-rule.d.ts +1 -1
- package/dist/http/promotion/admin/promotion-rule.d.ts.map +1 -1
- package/dist/http/promotion/admin/rule-attribute-options.d.ts +5 -0
- package/dist/http/promotion/admin/rule-attribute-options.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/entities.d.ts +11 -0
- package/dist/http/sales-channel/admin/entities.d.ts.map +1 -0
- package/dist/http/sales-channel/admin/entities.js +3 -0
- package/dist/http/sales-channel/admin/entities.js.map +1 -0
- package/dist/http/sales-channel/admin/index.d.ts +4 -1
- package/dist/http/sales-channel/admin/index.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/index.js +4 -1
- package/dist/http/sales-channel/admin/index.js.map +1 -1
- package/dist/http/sales-channel/admin/payloads.d.ts +17 -0
- package/dist/http/sales-channel/admin/payloads.d.ts.map +1 -0
- package/dist/http/sales-channel/admin/payloads.js +3 -0
- package/dist/http/sales-channel/admin/payloads.js.map +1 -0
- package/dist/http/sales-channel/admin/queries.d.ts +15 -0
- package/dist/http/sales-channel/admin/queries.d.ts.map +1 -0
- package/dist/http/sales-channel/admin/queries.js +3 -0
- package/dist/http/sales-channel/admin/queries.js.map +1 -0
- package/dist/http/sales-channel/admin/responses.d.ts +11 -0
- package/dist/http/sales-channel/admin/responses.d.ts.map +1 -0
- package/dist/http/sales-channel/admin/responses.js +3 -0
- package/dist/http/sales-channel/admin/responses.js.map +1 -0
- package/dist/http/shipping-option/admin/entities.d.ts +54 -0
- package/dist/http/shipping-option/admin/entities.d.ts.map +1 -0
- package/dist/http/shipping-option/admin/entities.js +3 -0
- package/dist/http/shipping-option/admin/entities.js.map +1 -0
- package/dist/http/shipping-option/admin/index.d.ts +5 -0
- package/dist/http/shipping-option/admin/index.d.ts.map +1 -0
- package/dist/http/shipping-option/admin/index.js +21 -0
- package/dist/http/shipping-option/admin/index.js.map +1 -0
- package/dist/http/shipping-option/admin/payloads.d.ts +60 -0
- package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -0
- package/dist/http/shipping-option/admin/payloads.js +3 -0
- package/dist/http/shipping-option/admin/payloads.js.map +1 -0
- package/dist/http/shipping-option/admin/queries.d.ts +14 -0
- package/dist/http/shipping-option/admin/queries.d.ts.map +1 -0
- package/dist/http/shipping-option/admin/queries.js +3 -0
- package/dist/http/shipping-option/admin/queries.js.map +1 -0
- package/dist/http/shipping-option/admin/responses.d.ts +20 -0
- package/dist/http/shipping-option/admin/responses.d.ts.map +1 -0
- package/dist/http/shipping-option/admin/responses.js +3 -0
- package/dist/http/shipping-option/admin/responses.js.map +1 -0
- package/dist/http/shipping-option/index.d.ts +2 -0
- package/dist/http/shipping-option/index.d.ts.map +1 -0
- package/dist/http/shipping-option/index.js +18 -0
- package/dist/http/shipping-option/index.js.map +1 -0
- package/dist/http/shipping-profile/admin/entities.d.ts +10 -0
- package/dist/http/shipping-profile/admin/entities.d.ts.map +1 -0
- package/dist/http/shipping-profile/admin/entities.js +3 -0
- package/dist/http/shipping-profile/admin/entities.js.map +1 -0
- package/dist/http/shipping-profile/admin/index.d.ts +5 -0
- package/dist/http/shipping-profile/admin/index.d.ts.map +1 -0
- package/dist/http/shipping-profile/admin/index.js +21 -0
- package/dist/http/shipping-profile/admin/index.js.map +1 -0
- package/dist/http/shipping-profile/admin/payloads.d.ts +11 -0
- package/dist/http/shipping-profile/admin/payloads.d.ts.map +1 -0
- package/dist/http/shipping-profile/admin/payloads.js +3 -0
- package/dist/http/shipping-profile/admin/payloads.js.map +1 -0
- package/dist/http/shipping-profile/admin/queries.d.ts +14 -0
- package/dist/http/shipping-profile/admin/queries.d.ts.map +1 -0
- package/dist/http/shipping-profile/admin/queries.js +3 -0
- package/dist/http/shipping-profile/admin/queries.js.map +1 -0
- package/dist/http/shipping-profile/admin/responses.d.ts +11 -0
- package/dist/http/shipping-profile/admin/responses.d.ts.map +1 -0
- package/dist/http/shipping-profile/admin/responses.js +3 -0
- package/dist/http/shipping-profile/admin/responses.js.map +1 -0
- package/dist/http/shipping-profile/index.d.ts +2 -0
- package/dist/http/shipping-profile/index.d.ts.map +1 -0
- package/dist/http/shipping-profile/index.js +18 -0
- package/dist/http/shipping-profile/index.js.map +1 -0
- package/dist/http/stock-locations/admin/entities.d.ts +22 -0
- package/dist/http/stock-locations/admin/entities.d.ts.map +1 -0
- package/dist/http/stock-locations/admin/entities.js +3 -0
- package/dist/http/stock-locations/admin/entities.js.map +1 -0
- package/dist/http/stock-locations/admin/index.d.ts +5 -0
- package/dist/http/stock-locations/admin/index.d.ts.map +1 -0
- package/dist/http/stock-locations/admin/index.js +21 -0
- package/dist/http/stock-locations/admin/index.js.map +1 -0
- package/dist/http/stock-locations/admin/payloads.d.ts +32 -0
- package/dist/http/stock-locations/admin/payloads.d.ts.map +1 -0
- package/dist/http/stock-locations/admin/payloads.js +3 -0
- package/dist/http/stock-locations/admin/payloads.js.map +1 -0
- package/dist/http/stock-locations/admin/queries.d.ts +11 -0
- package/dist/http/stock-locations/admin/queries.d.ts.map +1 -0
- package/dist/http/stock-locations/admin/queries.js +3 -0
- package/dist/http/stock-locations/admin/queries.js.map +1 -0
- package/dist/http/stock-locations/admin/responses.d.ts +12 -0
- package/dist/http/stock-locations/admin/responses.d.ts.map +1 -0
- package/dist/http/stock-locations/admin/responses.js +3 -0
- package/dist/http/stock-locations/admin/responses.js.map +1 -0
- package/dist/http/stock-locations/index.d.ts +1 -1
- package/dist/http/stock-locations/index.d.ts.map +1 -1
- package/dist/http/stock-locations/index.js +1 -1
- package/dist/http/stock-locations/index.js.map +1 -1
- package/dist/http/store/admin/entities.d.ts +23 -0
- package/dist/http/store/admin/entities.d.ts.map +1 -0
- package/dist/http/store/admin/entities.js +3 -0
- package/dist/http/store/admin/entities.js.map +1 -0
- package/dist/http/store/admin/index.d.ts +5 -0
- package/dist/http/store/admin/index.d.ts.map +1 -0
- package/dist/http/store/admin/index.js +21 -0
- package/dist/http/store/admin/index.js.map +1 -0
- package/dist/http/store/admin/payloads.d.ts +14 -0
- package/dist/http/store/admin/payloads.d.ts.map +1 -0
- package/dist/http/store/admin/payloads.js +3 -0
- package/dist/http/store/admin/payloads.js.map +1 -0
- package/dist/http/store/admin/queries.d.ts +10 -0
- package/dist/http/store/admin/queries.d.ts.map +1 -0
- package/dist/http/store/admin/queries.js +3 -0
- package/dist/http/store/admin/queries.js.map +1 -0
- package/dist/http/store/admin/responses.d.ts +10 -0
- package/dist/http/store/admin/responses.d.ts.map +1 -0
- package/dist/http/store/admin/responses.js +3 -0
- package/dist/http/store/admin/responses.js.map +1 -0
- package/dist/http/store/index.d.ts +2 -0
- package/dist/http/store/index.d.ts.map +1 -0
- package/dist/http/store/index.js +18 -0
- package/dist/http/store/index.js.map +1 -0
- package/dist/http/tax-rate/admin/entities.d.ts +22 -0
- package/dist/http/tax-rate/admin/entities.d.ts.map +1 -0
- package/dist/http/tax-rate/admin/entities.js +3 -0
- package/dist/http/tax-rate/admin/entities.js.map +1 -0
- package/dist/http/tax-rate/admin/index.d.ts +5 -0
- package/dist/http/tax-rate/admin/index.d.ts.map +1 -0
- package/dist/http/tax-rate/admin/index.js +21 -0
- package/dist/http/tax-rate/admin/index.js.map +1 -0
- package/dist/http/tax-rate/admin/payloads.d.ts +25 -0
- package/dist/http/tax-rate/admin/payloads.d.ts.map +1 -0
- package/dist/http/tax-rate/admin/payloads.js +3 -0
- package/dist/http/tax-rate/admin/payloads.js.map +1 -0
- package/dist/http/tax-rate/admin/queries.d.ts +16 -0
- package/dist/http/tax-rate/admin/queries.d.ts.map +1 -0
- package/dist/http/tax-rate/admin/queries.js +3 -0
- package/dist/http/tax-rate/admin/queries.js.map +1 -0
- package/dist/http/tax-rate/admin/responses.d.ts +11 -0
- package/dist/http/tax-rate/admin/responses.d.ts.map +1 -0
- package/dist/http/tax-rate/admin/responses.js +3 -0
- package/dist/http/tax-rate/admin/responses.js.map +1 -0
- package/dist/http/tax-rate/index.d.ts +2 -0
- package/dist/http/tax-rate/index.d.ts.map +1 -0
- package/dist/http/tax-rate/index.js +18 -0
- package/dist/http/tax-rate/index.js.map +1 -0
- package/dist/http/tax-region/admin/entities.d.ts +21 -0
- package/dist/http/tax-region/admin/entities.d.ts.map +1 -0
- package/dist/http/tax-region/admin/entities.js +3 -0
- package/dist/http/tax-region/admin/entities.js.map +1 -0
- package/dist/http/tax-region/admin/index.d.ts +5 -0
- package/dist/http/tax-region/admin/index.d.ts.map +1 -0
- package/dist/http/tax-region/admin/index.js +21 -0
- package/dist/http/tax-region/admin/index.js.map +1 -0
- package/dist/http/tax-region/admin/payloads.d.ts +14 -0
- package/dist/http/tax-region/admin/payloads.d.ts.map +1 -0
- package/dist/http/tax-region/admin/payloads.js +3 -0
- package/dist/http/tax-region/admin/payloads.js.map +1 -0
- package/dist/http/tax-region/admin/queries.d.ts +14 -0
- package/dist/http/tax-region/admin/queries.d.ts.map +1 -0
- package/dist/http/tax-region/admin/queries.js +3 -0
- package/dist/http/tax-region/admin/queries.js.map +1 -0
- package/dist/http/tax-region/admin/responses.d.ts +11 -0
- package/dist/http/tax-region/admin/responses.d.ts.map +1 -0
- package/dist/http/tax-region/admin/responses.js +3 -0
- package/dist/http/tax-region/admin/responses.js.map +1 -0
- package/dist/http/tax-region/index.d.ts +2 -0
- package/dist/http/tax-region/index.d.ts.map +1 -0
- package/dist/http/tax-region/index.js +18 -0
- package/dist/http/tax-region/index.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inventory/common/reservation-item.d.ts +5 -1
- package/dist/inventory/common/reservation-item.d.ts.map +1 -1
- package/dist/inventory/index.d.ts +1 -2
- package/dist/inventory/index.d.ts.map +1 -1
- package/dist/inventory/index.js +1 -15
- package/dist/inventory/index.js.map +1 -1
- package/dist/inventory/mutations/inventory-level.d.ts +0 -4
- package/dist/inventory/mutations/inventory-level.d.ts.map +1 -1
- package/dist/inventory/mutations/reservation-item.d.ts +11 -7
- package/dist/inventory/mutations/reservation-item.d.ts.map +1 -1
- package/dist/inventory/service.d.ts +671 -640
- package/dist/inventory/service.d.ts.map +1 -1
- package/dist/joiner/index.d.ts +5 -2
- package/dist/joiner/index.d.ts.map +1 -1
- package/dist/modules-sdk/index.d.ts +17 -11
- package/dist/modules-sdk/index.d.ts.map +1 -1
- package/dist/modules-sdk/index.js +1 -1
- package/dist/modules-sdk/index.js.map +1 -1
- package/dist/modules-sdk/{internal-module-service.d.ts → medusa-internal-service.d.ts} +22 -18
- package/dist/modules-sdk/medusa-internal-service.d.ts.map +1 -0
- package/dist/{http/fulfillment/admin/fulfillment-label.js → modules-sdk/medusa-internal-service.js} +1 -1
- package/dist/modules-sdk/medusa-internal-service.js.map +1 -0
- package/dist/notification/provider.d.ts +0 -6
- package/dist/notification/provider.d.ts.map +1 -1
- package/dist/notification/service.d.ts +15 -15
- package/dist/notification/service.d.ts.map +1 -1
- package/dist/order/common.d.ts +57 -4
- package/dist/order/common.d.ts.map +1 -1
- package/dist/order/mutations.d.ts +74 -53
- package/dist/order/mutations.d.ts.map +1 -1
- package/dist/order/service.d.ts +44 -30
- package/dist/order/service.d.ts.map +1 -1
- package/dist/payment/common.d.ts +2 -2
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/pricing/common/index.d.ts +0 -2
- package/dist/pricing/common/index.d.ts.map +1 -1
- package/dist/pricing/common/index.js +0 -2
- package/dist/pricing/common/index.js.map +1 -1
- package/dist/pricing/common/money-amount.d.ts +2 -2
- package/dist/pricing/common/money-amount.d.ts.map +1 -1
- package/dist/pricing/common/price-list.d.ts +25 -125
- package/dist/pricing/common/price-list.d.ts.map +1 -1
- package/dist/pricing/common/price-rule.d.ts +8 -16
- package/dist/pricing/common/price-rule.d.ts.map +1 -1
- package/dist/pricing/common/price-set.d.ts +6 -55
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/pricing/service.d.ts +31 -324
- package/dist/pricing/service.d.ts.map +1 -1
- package/dist/pricing/workflows.d.ts +5 -5
- package/dist/pricing/workflows.d.ts.map +1 -1
- package/dist/product/common.d.ts +99 -79
- package/dist/product/common.d.ts.map +1 -1
- package/dist/product/service.d.ts +429 -207
- package/dist/product/service.d.ts.map +1 -1
- package/dist/promotion/common/application-method.d.ts +1 -1
- package/dist/promotion/common/application-method.d.ts.map +1 -1
- package/dist/promotion/common/promotion.d.ts +4 -0
- package/dist/promotion/common/promotion.d.ts.map +1 -1
- package/dist/promotion/mutations.d.ts +6 -6
- package/dist/promotion/mutations.d.ts.map +1 -1
- package/dist/promotion/service.d.ts +29 -29
- package/dist/promotion/service.d.ts.map +1 -1
- package/dist/region/common.d.ts.map +1 -1
- package/dist/region/mutations.d.ts +4 -3
- package/dist/region/mutations.d.ts.map +1 -1
- package/dist/region/service.d.ts +31 -31
- package/dist/region/service.d.ts.map +1 -1
- package/dist/sales-channel/mutations.d.ts +5 -4
- package/dist/sales-channel/mutations.d.ts.map +1 -1
- package/dist/sales-channel/service.d.ts +28 -28
- package/dist/sales-channel/service.d.ts.map +1 -1
- package/dist/shared-context.d.ts +3 -4
- package/dist/shared-context.d.ts.map +1 -1
- package/dist/stock-location/common.d.ts +12 -17
- package/dist/stock-location/common.d.ts.map +1 -1
- package/dist/stock-location/index.d.ts +0 -1
- package/dist/stock-location/index.d.ts.map +1 -1
- package/dist/stock-location/index.js +0 -1
- package/dist/stock-location/index.js.map +1 -1
- package/dist/stock-location/service.d.ts +193 -180
- package/dist/stock-location/service.d.ts.map +1 -1
- package/dist/store/common/store.d.ts +31 -5
- package/dist/store/common/store.d.ts.map +1 -1
- package/dist/store/mutations/store.d.ts +14 -40
- package/dist/store/mutations/store.d.ts.map +1 -1
- package/dist/store/service.d.ts +32 -37
- package/dist/store/service.d.ts.map +1 -1
- package/dist/tax/mutations.d.ts +7 -6
- package/dist/tax/mutations.d.ts.map +1 -1
- package/dist/tax/service.d.ts +35 -35
- package/dist/tax/service.d.ts.map +1 -1
- package/dist/user/service.d.ts +22 -22
- package/dist/user/service.d.ts.map +1 -1
- package/dist/workflow/fulfillment/service-zones.d.ts +1 -1
- package/dist/workflow/fulfillment/service-zones.d.ts.map +1 -1
- package/dist/workflow/order/cancel-fulfillment.d.ts +6 -0
- package/dist/workflow/order/cancel-fulfillment.d.ts.map +1 -0
- package/dist/{http/fulfillment/admin/fulfillment-item.js → workflow/order/cancel-fulfillment.js} +1 -1
- package/dist/workflow/order/cancel-fulfillment.js.map +1 -0
- package/dist/workflow/order/cancel-order.d.ts +5 -0
- package/dist/workflow/order/cancel-order.d.ts.map +1 -0
- package/dist/{http/fulfillment/admin/service-zone.js → workflow/order/cancel-order.js} +1 -1
- package/dist/workflow/order/cancel-order.js.map +1 -0
- package/dist/workflow/order/create-fulfillment.d.ts +2 -2
- package/dist/workflow/order/create-fulfillment.d.ts.map +1 -1
- package/dist/workflow/order/create-return-order.d.ts +8 -7
- package/dist/workflow/order/create-return-order.d.ts.map +1 -1
- package/dist/workflow/order/create-shipment.d.ts +2 -1
- package/dist/workflow/order/create-shipment.d.ts.map +1 -1
- package/dist/workflow/order/index.d.ts +3 -0
- package/dist/workflow/order/index.d.ts.map +1 -1
- package/dist/workflow/order/index.js +3 -0
- package/dist/workflow/order/index.js.map +1 -1
- package/dist/workflow/order/receive-return.d.ts +17 -0
- package/dist/workflow/order/receive-return.d.ts.map +1 -0
- package/dist/{http/fulfillment/admin/fulfillment.js → workflow/order/receive-return.js} +1 -1
- package/dist/workflow/order/receive-return.js.map +1 -0
- package/dist/workflow/price-list/create-price-list.d.ts +1 -2
- package/dist/workflow/price-list/create-price-list.d.ts.map +1 -1
- package/dist/workflow/product-category/index.d.ts +6 -6
- package/dist/workflow/product-category/index.d.ts.map +1 -1
- package/dist/workflow/reservation/create-reservations.d.ts +3 -3
- package/dist/workflow/reservation/create-reservations.d.ts.map +1 -1
- package/dist/workflow/reservation/update-reservations.d.ts +3 -3
- package/dist/workflow/reservation/update-reservations.d.ts.map +1 -1
- package/dist/workflows/products/mutations.d.ts +2 -2
- package/dist/workflows/products/mutations.d.ts.map +1 -1
- package/dist/workflows-sdk/service.d.ts +2 -2
- package/dist/workflows-sdk/service.d.ts.map +1 -1
- package/package.json +1 -2
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts +0 -19
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-address.js +0 -3
- package/dist/http/fulfillment/admin/fulfillment-address.js.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts +0 -14
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-item.js.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts +0 -11
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-label.js.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +0 -9
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-provider.js +0 -3
- package/dist/http/fulfillment/admin/fulfillment-provider.js.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts +0 -15
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-set.js +0 -3
- package/dist/http/fulfillment/admin/fulfillment-set.js.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment.d.ts +0 -27
- package/dist/http/fulfillment/admin/fulfillment.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment.js.map +0 -1
- package/dist/http/fulfillment/admin/geo-zone.d.ts +0 -14
- package/dist/http/fulfillment/admin/geo-zone.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/geo-zone.js.map +0 -1
- package/dist/http/fulfillment/admin/service-zone.d.ts +0 -21
- package/dist/http/fulfillment/admin/service-zone.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/service-zone.js.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +0 -13
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option-rule.js +0 -3
- package/dist/http/fulfillment/admin/shipping-option-rule.js.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts +0 -11
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option-type.js +0 -3
- package/dist/http/fulfillment/admin/shipping-option-type.js.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option.d.ts +0 -38
- package/dist/http/fulfillment/admin/shipping-option.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option.js +0 -3
- package/dist/http/fulfillment/admin/shipping-option.js.map +0 -1
- package/dist/http/fulfillment/admin/shipping-profile.d.ts +0 -19
- package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/shipping-profile.js +0 -3
- package/dist/http/fulfillment/admin/shipping-profile.js.map +0 -1
- package/dist/http/inventory/inventory-level.d.ts +0 -20
- package/dist/http/inventory/inventory-level.d.ts.map +0 -1
- package/dist/http/inventory/inventory-level.js +0 -3
- package/dist/http/inventory/inventory-level.js.map +0 -1
- package/dist/http/inventory/inventory.d.ts.map +0 -1
- package/dist/http/inventory/inventory.js.map +0 -1
- package/dist/http/pricing/price.d.ts +0 -8
- package/dist/http/pricing/price.d.ts.map +0 -1
- package/dist/http/pricing/price.js.map +0 -1
- package/dist/http/product/admin.d.ts +0 -99
- package/dist/http/product/admin.d.ts.map +0 -1
- package/dist/http/product/store.d.ts +0 -33
- package/dist/http/product/store.d.ts.map +0 -1
- package/dist/http/product/store.js +0 -3
- package/dist/http/product-category/admin.d.ts +0 -9
- package/dist/http/product-category/admin.d.ts.map +0 -1
- package/dist/http/product-category/admin.js.map +0 -1
- package/dist/http/product-category/store.d.ts +0 -9
- package/dist/http/product-category/store.d.ts.map +0 -1
- package/dist/http/product-category/store.js.map +0 -1
- package/dist/http/sales-channel/admin/sales-channel.d.ts +0 -16
- package/dist/http/sales-channel/admin/sales-channel.d.ts.map +0 -1
- package/dist/http/sales-channel/admin/sales-channel.js +0 -3
- package/dist/http/sales-channel/admin/sales-channel.js.map +0 -1
- package/dist/http/stock-locations/common.d.ts +0 -28
- package/dist/http/stock-locations/common.d.ts.map +0 -1
- package/dist/http/stock-locations/common.js.map +0 -1
- package/dist/http/tax/admin/index.d.ts +0 -3
- package/dist/http/tax/admin/index.d.ts.map +0 -1
- package/dist/http/tax/admin/index.js.map +0 -1
- package/dist/http/tax/admin/tax-rates.d.ts +0 -28
- package/dist/http/tax/admin/tax-rates.d.ts.map +0 -1
- package/dist/http/tax/admin/tax-rates.js +0 -3
- package/dist/http/tax/admin/tax-rates.js.map +0 -1
- package/dist/http/tax/admin/tax-regions.d.ts +0 -28
- package/dist/http/tax/admin/tax-regions.d.ts.map +0 -1
- package/dist/http/tax/admin/tax-regions.js +0 -3
- package/dist/http/tax/admin/tax-regions.js.map +0 -1
- package/dist/http/tax/index.d.ts.map +0 -1
- package/dist/http/tax/index.js.map +0 -1
- package/dist/inventory/bundle.d.ts +0 -3
- package/dist/inventory/bundle.d.ts.map +0 -1
- package/dist/inventory/bundle.js.map +0 -1
- package/dist/inventory/common.d.ts +0 -494
- package/dist/inventory/common.d.ts.map +0 -1
- package/dist/inventory/service-next.d.ts +0 -914
- package/dist/inventory/service-next.d.ts.map +0 -1
- package/dist/inventory/service-next.js +0 -3
- package/dist/inventory/service-next.js.map +0 -1
- package/dist/modules-sdk/internal-module-service.d.ts.map +0 -1
- package/dist/modules-sdk/internal-module-service.js +0 -3
- package/dist/modules-sdk/internal-module-service.js.map +0 -1
- package/dist/modules-sdk/module-service.d.ts +0 -1
- package/dist/modules-sdk/module-service.d.ts.map +0 -1
- package/dist/modules-sdk/module-service.js +0 -1
- package/dist/modules-sdk/module-service.js.map +0 -1
- package/dist/pricing/common/price-set-rule-type.d.ts +0 -24
- package/dist/pricing/common/price-set-rule-type.d.ts.map +0 -1
- package/dist/pricing/common/price-set-rule-type.js +0 -3
- package/dist/pricing/common/price-set-rule-type.js.map +0 -1
- package/dist/pricing/common/rule-type.d.ts +0 -102
- package/dist/pricing/common/rule-type.d.ts.map +0 -1
- package/dist/pricing/common/rule-type.js +0 -3
- package/dist/pricing/common/rule-type.js.map +0 -1
- package/dist/region__legacy/common.d.ts +0 -44
- package/dist/region__legacy/common.d.ts.map +0 -1
- package/dist/region__legacy/common.js +0 -3
- package/dist/region__legacy/index.d.ts +0 -2
- package/dist/region__legacy/index.d.ts.map +0 -1
- package/dist/region__legacy/index.js.map +0 -1
- package/dist/stock-location/service-next.d.ts +0 -279
- package/dist/stock-location/service-next.d.ts.map +0 -1
- package/dist/stock-location/service-next.js +0 -3
- package/dist/stock-location/service-next.js.map +0 -1
- /package/dist/http/{tax → currency}/index.d.ts +0 -0
- /package/dist/http/{tax → currency}/index.js +0 -0
- /package/dist/http/{product-category → file}/admin.js +0 -0
- /package/dist/http/{stock-locations → file}/common.js +0 -0
- /package/dist/http/{product-category → file}/store.js +0 -0
- /package/dist/{inventory → http/product-type}/common.js +0 -0
@@ -1,914 +0,0 @@
|
|
1
|
-
import { RestoreReturn, SoftDeleteReturn } from "../dal";
|
2
|
-
import { InventoryNext } from ".";
|
3
|
-
import { FindConfig } from "../common";
|
4
|
-
import { IModuleService } from "../modules-sdk";
|
5
|
-
import { Context } from "../shared-context";
|
6
|
-
/**
|
7
|
-
* The main service interface for the Inventory Module.
|
8
|
-
*/
|
9
|
-
export interface IInventoryServiceNext extends IModuleService {
|
10
|
-
/**
|
11
|
-
* This method retrieves a paginated list of inventory items based on optional filters and configuration.
|
12
|
-
*
|
13
|
-
* @param {FilterableInventoryItemProps} selector - The filters to apply on the retrieved inventory items.
|
14
|
-
* @param {FindConfig<InventoryItemDTO>} config - The configurations determining how the inventory item is retrieved. Its properties, such as `select` or `relations`, accept the
|
15
|
-
* attributes or relations associated with a inventory item.
|
16
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
17
|
-
* @returns {Promise<InventoryItemDTO[]>} The list of inventory items.
|
18
|
-
*
|
19
|
-
* @example
|
20
|
-
* To retrieve a list of inventory items using their IDs:
|
21
|
-
*
|
22
|
-
* ```ts
|
23
|
-
* const inventoryItems = await inventoryModuleService.list({
|
24
|
-
* id: ["iitem_123", "iitem_321"],
|
25
|
-
* })
|
26
|
-
* ```
|
27
|
-
*
|
28
|
-
* To specify relations that should be retrieved within the inventory items:
|
29
|
-
*
|
30
|
-
* ```ts
|
31
|
-
* const inventoryItems = await inventoryModuleService.list(
|
32
|
-
* {
|
33
|
-
* id: ["iitem_123", "iitem_321"],
|
34
|
-
* },
|
35
|
-
* {
|
36
|
-
* relations: ["location_levels"],
|
37
|
-
* }
|
38
|
-
* )
|
39
|
-
* ```
|
40
|
-
*
|
41
|
-
* By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
42
|
-
*
|
43
|
-
* ```ts
|
44
|
-
* const inventoryItems = await inventoryModuleService.list(
|
45
|
-
* {
|
46
|
-
* id: ["iitem_123", "iitem_321"],
|
47
|
-
* },
|
48
|
-
* {
|
49
|
-
* relations: ["location_levels"],
|
50
|
-
* take: 20,
|
51
|
-
* skip: 2,
|
52
|
-
* }
|
53
|
-
* )
|
54
|
-
* ```
|
55
|
-
*/
|
56
|
-
list(selector: InventoryNext.FilterableInventoryItemProps, config?: FindConfig<InventoryNext.InventoryItemDTO>, context?: Context): Promise<InventoryNext.InventoryItemDTO[]>;
|
57
|
-
/**
|
58
|
-
* This method retrieves a paginated list of inventory items along with the total count of available inventory items satisfying the provided filters.
|
59
|
-
*
|
60
|
-
* @param {FilterableInventoryItemProps} selector - The filters to apply on the retrieved inventory items.
|
61
|
-
* @param {FindConfig<InventoryItemDTO>} config - The configurations determining how the inventory item is retrieved. Its properties, such as `select` or `relations`, accept the
|
62
|
-
* attributes or relations associated with a inventory item.
|
63
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
64
|
-
* @returns {Promise<[InventoryItemDTO[], number]>} The list of inventory items along with their total count.
|
65
|
-
*
|
66
|
-
* @example
|
67
|
-
* To retrieve a list of inventory items using their IDs:
|
68
|
-
*
|
69
|
-
* ```ts
|
70
|
-
* const [inventoryItems, count] =
|
71
|
-
* await inventoryModuleService.listAndCount({
|
72
|
-
* id: ["iitem_123", "iitem_321"],
|
73
|
-
* })
|
74
|
-
* ```
|
75
|
-
*
|
76
|
-
* To specify relations that should be retrieved within the inventory items:
|
77
|
-
*
|
78
|
-
* ```ts
|
79
|
-
* const [inventoryItems, count] =
|
80
|
-
* await inventoryModuleService.listAndCount(
|
81
|
-
* {
|
82
|
-
* id: ["iitem_123", "iitem_321"],
|
83
|
-
* },
|
84
|
-
* {
|
85
|
-
* relations: ["location_levels"],
|
86
|
-
* }
|
87
|
-
* )
|
88
|
-
* ```
|
89
|
-
*
|
90
|
-
* By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
91
|
-
*
|
92
|
-
* ```ts
|
93
|
-
* const [inventoryItems, count] =
|
94
|
-
* await inventoryModuleService.listAndCount(
|
95
|
-
* {
|
96
|
-
* id: ["iitem_123", "iitem_321"],
|
97
|
-
* },
|
98
|
-
* {
|
99
|
-
* relations: ["location_levels"],
|
100
|
-
* take: 20,
|
101
|
-
* skip: 2,
|
102
|
-
* }
|
103
|
-
* )
|
104
|
-
* ```
|
105
|
-
*/
|
106
|
-
listAndCount(selector: InventoryNext.FilterableInventoryItemProps, config?: FindConfig<InventoryNext.InventoryItemDTO>, context?: Context): Promise<[InventoryNext.InventoryItemDTO[], number]>;
|
107
|
-
/**
|
108
|
-
* This method retrieves a paginated list of reservation items based on optional filters and configuration.
|
109
|
-
*
|
110
|
-
* @param {FilterableReservationItemProps} selector - The filters to apply on the retrieved reservation items.
|
111
|
-
* @param {FindConfig<ReservationItemDTO>} config - The configurations determining how the reservation item is retrieved. Its properties, such as `select` or `relations`, accept the
|
112
|
-
* attributes or relations associated with a reservation item.
|
113
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
114
|
-
* @returns {Promise<ReservationItemDTO[]>} The list of reservation items.
|
115
|
-
*
|
116
|
-
* @example
|
117
|
-
* To retrieve a list of reservation items using their IDs:
|
118
|
-
*
|
119
|
-
* ```ts
|
120
|
-
* const reservationItems =
|
121
|
-
* await inventoryModuleService.listReservationItems({
|
122
|
-
* id: ["resitem_123", "resitem_321"],
|
123
|
-
* })
|
124
|
-
* ```
|
125
|
-
*
|
126
|
-
* To specify relations that should be retrieved within the reservation items:
|
127
|
-
*
|
128
|
-
* ```ts
|
129
|
-
* const reservationItems =
|
130
|
-
* await inventoryModuleService.listReservationItems(
|
131
|
-
* {
|
132
|
-
* id: ["resitem_123", "resitem_321"],
|
133
|
-
* },
|
134
|
-
* {
|
135
|
-
* relations: ["inventory_item"],
|
136
|
-
* }
|
137
|
-
* )
|
138
|
-
* ```
|
139
|
-
*
|
140
|
-
* By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
141
|
-
*
|
142
|
-
* ```ts
|
143
|
-
* const reservationItems =
|
144
|
-
* await inventoryModuleService.listReservationItems(
|
145
|
-
* {
|
146
|
-
* id: ["resitem_123", "resitem_321"],
|
147
|
-
* },
|
148
|
-
* {
|
149
|
-
* relations: ["inventory_item"],
|
150
|
-
* take: 20,
|
151
|
-
* skip: 2,
|
152
|
-
* }
|
153
|
-
* )
|
154
|
-
* ```
|
155
|
-
*/
|
156
|
-
listReservationItems(selector: InventoryNext.FilterableReservationItemProps, config?: FindConfig<InventoryNext.ReservationItemDTO>, context?: Context): Promise<InventoryNext.ReservationItemDTO[]>;
|
157
|
-
/**
|
158
|
-
* This method retrieves a paginated list of reservation items along with the total count of available reservation items satisfying the provided filters.
|
159
|
-
*
|
160
|
-
* @param {FilterableReservationItemProps} selector - The filters to apply on the retrieved reservation items.
|
161
|
-
* @param {FindConfig<ReservationItemDTO>} config - The configurations determining how the reservation item is retrieved. Its properties, such as `select` or `relations`, accept the
|
162
|
-
* attributes or relations associated with a reservation item.
|
163
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
164
|
-
* @returns {Promise<[ReservationItemDTO[], number]>} The list of reservation items along with their total count.
|
165
|
-
*
|
166
|
-
* @example
|
167
|
-
* To retrieve a list of reservation items using their IDs:
|
168
|
-
*
|
169
|
-
* ```ts
|
170
|
-
* const [reservationItems, count] =
|
171
|
-
* await inventoryModuleService.listAndCountReservationItems({
|
172
|
-
* id: ["resitem_123", "resitem_321"],
|
173
|
-
* })
|
174
|
-
* ```
|
175
|
-
*
|
176
|
-
* To specify relations that should be retrieved within the reservation items:
|
177
|
-
*
|
178
|
-
* ```ts
|
179
|
-
* const [reservationItems, count] =
|
180
|
-
* await inventoryModuleService.listAndCountReservationItems(
|
181
|
-
* {
|
182
|
-
* id: ["resitem_123", "resitem_321"],
|
183
|
-
* },
|
184
|
-
* {
|
185
|
-
* relations: ["inventory_item"],
|
186
|
-
* }
|
187
|
-
* )
|
188
|
-
* ```
|
189
|
-
*
|
190
|
-
* By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
191
|
-
*
|
192
|
-
* ```ts
|
193
|
-
* const [reservationItems, count] =
|
194
|
-
* await inventoryModuleService.listAndCountReservationItems(
|
195
|
-
* {
|
196
|
-
* id: ["resitem_123", "resitem_321"],
|
197
|
-
* },
|
198
|
-
* {
|
199
|
-
* relations: ["inventory_item"],
|
200
|
-
* take: 20,
|
201
|
-
* skip: 2,
|
202
|
-
* }
|
203
|
-
* )
|
204
|
-
* ```
|
205
|
-
*/
|
206
|
-
listAndCountReservationItems(selector: InventoryNext.FilterableReservationItemProps, config?: FindConfig<InventoryNext.ReservationItemDTO>, context?: Context): Promise<[InventoryNext.ReservationItemDTO[], number]>;
|
207
|
-
/**
|
208
|
-
* This method retrieves a paginated list of inventory levels based on optional filters and configuration.
|
209
|
-
*
|
210
|
-
* @param {FilterableInventoryLevelProps} selector - The filters to apply on the retrieved inventory levels.
|
211
|
-
* @param {FindConfig<InventoryLevelDTO>} config - The configurations determining how the inventory level is retrieved. Its properties, such as `select` or `relations`, accept the
|
212
|
-
* attributes or relations associated with a inventory level.
|
213
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
214
|
-
* @returns {Promise<InventoryLevelDTO[]>} The list of inventory levels.
|
215
|
-
*
|
216
|
-
* @example
|
217
|
-
* To retrieve a list of inventory levels using the IDs of their associated inventory items:
|
218
|
-
*
|
219
|
-
* ```ts
|
220
|
-
* const inventoryLevels =
|
221
|
-
* await inventoryModuleService.listInventoryLevels({
|
222
|
-
* inventory_item_id: ["iitem_123", "iitem_321"],
|
223
|
-
* })
|
224
|
-
* ```
|
225
|
-
*
|
226
|
-
* To specify relations that should be retrieved within the inventory levels:
|
227
|
-
*
|
228
|
-
* ```ts
|
229
|
-
* const inventoryLevels =
|
230
|
-
* await inventoryModuleService.listInventoryLevels(
|
231
|
-
* {
|
232
|
-
* inventory_item_id: ["iitem_123", "iitem_321"],
|
233
|
-
* },
|
234
|
-
* {
|
235
|
-
* relations: ["inventory_item"],
|
236
|
-
* }
|
237
|
-
* )
|
238
|
-
* ```
|
239
|
-
*
|
240
|
-
* By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
241
|
-
*
|
242
|
-
* ```ts
|
243
|
-
* const inventoryLevels =
|
244
|
-
* await inventoryModuleService.listInventoryLevels(
|
245
|
-
* {
|
246
|
-
* inventory_item_id: ["iitem_123", "iitem_321"],
|
247
|
-
* },
|
248
|
-
* {
|
249
|
-
* relations: ["inventory_item"],
|
250
|
-
* take: 20,
|
251
|
-
* skip: 2,
|
252
|
-
* }
|
253
|
-
* )
|
254
|
-
* ```
|
255
|
-
*/
|
256
|
-
listInventoryLevels(selector: InventoryNext.FilterableInventoryLevelProps, config?: FindConfig<InventoryNext.InventoryLevelDTO>, context?: Context): Promise<InventoryNext.InventoryLevelDTO[]>;
|
257
|
-
/**
|
258
|
-
* This method retrieves a paginated list of inventory levels along with the total count of available inventory levels satisfying the provided filters.
|
259
|
-
*
|
260
|
-
* @param {FilterableInventoryLevelProps} selector - The filters to apply on the retrieved inventory levels.
|
261
|
-
* @param {FindConfig<InventoryLevelDTO>} config - The configurations determining how the inventory level is retrieved. Its properties, such as `select` or `relations`, accept the
|
262
|
-
* attributes or relations associated with a inventory level.
|
263
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
264
|
-
* @returns {Promise<[InventoryLevelDTO[], number]>} The list of inventory levels along with their total count.
|
265
|
-
*
|
266
|
-
* @example
|
267
|
-
* To retrieve a list of inventory levels using the IDs of their associated inventory items:
|
268
|
-
*
|
269
|
-
* ```ts
|
270
|
-
* const [inventoryLevels, count] =
|
271
|
-
* await inventoryModuleService.listAndCountInventoryLevels(
|
272
|
-
* {
|
273
|
-
* inventory_item_id: ["iitem_123", "iitem_321"],
|
274
|
-
* },
|
275
|
-
* {
|
276
|
-
* relations: ["inventory_item"],
|
277
|
-
* take: 20,
|
278
|
-
* skip: 2,
|
279
|
-
* }
|
280
|
-
* )
|
281
|
-
* ```
|
282
|
-
*
|
283
|
-
* To specify relations that should be retrieved within the inventory levels:
|
284
|
-
*
|
285
|
-
* ```ts
|
286
|
-
* const [inventoryLevels, count] =
|
287
|
-
* await inventoryModuleService.listAndCountInventoryLevels(
|
288
|
-
* {
|
289
|
-
* inventory_item_id: ["iitem_123", "iitem_321"],
|
290
|
-
* },
|
291
|
-
* {
|
292
|
-
* relations: ["inventory_item"],
|
293
|
-
* }
|
294
|
-
* )
|
295
|
-
* ```
|
296
|
-
*
|
297
|
-
* By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
298
|
-
*
|
299
|
-
* ```ts
|
300
|
-
* const [inventoryLevels, count] =
|
301
|
-
* await inventoryModuleService.listAndCountInventoryLevels({
|
302
|
-
* inventory_item_id: ["iitem_123", "iitem_321"],
|
303
|
-
* })
|
304
|
-
* ```
|
305
|
-
*/
|
306
|
-
listAndCountInventoryLevels(selector: InventoryNext.FilterableInventoryLevelProps, config?: FindConfig<InventoryNext.InventoryLevelDTO>, context?: Context): Promise<[InventoryNext.InventoryLevelDTO[], number]>;
|
307
|
-
/**
|
308
|
-
* This method retrieves an inventory item by its ID.
|
309
|
-
*
|
310
|
-
* @param {string} inventoryItemId - The inventory item's ID.
|
311
|
-
* @param {FindConfig<InventoryItemDTO>} config - The configurations determining how the inventory item is retrieved. Its properties, such as `select` or `relations`, accept the
|
312
|
-
* attributes or relations associated with a inventory item.
|
313
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
314
|
-
* @returns {Promise<InventoryItemDTO>} The retrieved inventory item.
|
315
|
-
*
|
316
|
-
* @example
|
317
|
-
* A simple example that retrieves a inventory item by its ID:
|
318
|
-
*
|
319
|
-
* ```ts
|
320
|
-
* const inventoryItem =
|
321
|
-
* await inventoryModuleService.retrieve("iitem_123")
|
322
|
-
* ```
|
323
|
-
*
|
324
|
-
* To specify relations that should be retrieved:
|
325
|
-
*
|
326
|
-
* ```ts
|
327
|
-
* const inventoryItem = await inventoryModuleService.retrieve(
|
328
|
-
* "iitem_123",
|
329
|
-
* {
|
330
|
-
* relations: ["location_levels"],
|
331
|
-
* }
|
332
|
-
* )
|
333
|
-
* ```
|
334
|
-
*/
|
335
|
-
retrieve(inventoryItemId: string, config?: FindConfig<InventoryNext.InventoryItemDTO>, context?: Context): Promise<InventoryNext.InventoryItemDTO>;
|
336
|
-
/**
|
337
|
-
* This method retrieves an inventory level based on its associated inventory item and location.
|
338
|
-
*
|
339
|
-
* @param {string} inventoryItemId - The inventory item's ID.
|
340
|
-
* @param {string} locationId - The location's ID.
|
341
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
342
|
-
* @returns {Promise<InventoryLevelDTO>} The retrieved inventory level.
|
343
|
-
*
|
344
|
-
* @example
|
345
|
-
* const inventoryLevel =
|
346
|
-
* await inventoryModuleService.retrieveInventoryLevelByItemAndLocation(
|
347
|
-
* "iitem_123",
|
348
|
-
* "loc_123"
|
349
|
-
* )
|
350
|
-
*/
|
351
|
-
retrieveInventoryLevelByItemAndLocation(inventoryItemId: string, locationId: string, context?: Context): Promise<InventoryNext.InventoryLevelDTO>;
|
352
|
-
/**
|
353
|
-
* This method retrieves an inventory level by its ID.
|
354
|
-
*
|
355
|
-
* @param {string} inventoryLevelId - The inventory level's ID.
|
356
|
-
* @param {FindConfig<InventoryLevelDTO>} config - The configurations determining how the inventory level is retrieved. Its properties, such as `select` or `relations`, accept the
|
357
|
-
* attributes or relations associated with a inventory level.
|
358
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
359
|
-
* @returns {Promise<InventoryLevelDTO>} The retrieved inventory level.
|
360
|
-
*
|
361
|
-
* @example
|
362
|
-
* A simple example that retrieves a inventory level by its ID:
|
363
|
-
*
|
364
|
-
* ```ts
|
365
|
-
* const inventoryLevel =
|
366
|
-
* await inventoryModuleService.retrieveInventoryLevel(
|
367
|
-
* "iitem_123"
|
368
|
-
* )
|
369
|
-
* ```
|
370
|
-
*
|
371
|
-
* To specify relations that should be retrieved:
|
372
|
-
*
|
373
|
-
* ```ts
|
374
|
-
* const inventoryLevel =
|
375
|
-
* await inventoryModuleService.retrieveInventoryLevel(
|
376
|
-
* "iitem_123",
|
377
|
-
* {
|
378
|
-
* relations: ["inventory_item"],
|
379
|
-
* }
|
380
|
-
* )
|
381
|
-
* ```
|
382
|
-
*/
|
383
|
-
retrieveInventoryLevel(inventoryLevelId: string, config?: FindConfig<InventoryNext.InventoryLevelDTO>, context?: Context): Promise<InventoryNext.InventoryLevelDTO>;
|
384
|
-
/**
|
385
|
-
* This method retrieves a reservation item by its ID.
|
386
|
-
*
|
387
|
-
* @param {string} reservationId - The reservation's ID.
|
388
|
-
* @param {FindConfig<ReservationItemDTO>} config - The configurations determining how the reservation item is retrieved. Its properties, such as `select` or `relations`, accept the
|
389
|
-
* attributes or relations associated with a reservation item.
|
390
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
391
|
-
* @returns {Promise<ReservationItemDTO>} The retrieved reservation item.
|
392
|
-
*
|
393
|
-
* @example
|
394
|
-
* A simple example that retrieves a reservation item by its ID:
|
395
|
-
*
|
396
|
-
* ```ts
|
397
|
-
* const reservationItem =
|
398
|
-
* await inventoryModuleService.retrieveReservationItem(
|
399
|
-
* "resitem"
|
400
|
-
* )
|
401
|
-
* ```
|
402
|
-
*
|
403
|
-
* To specify relations that should be retrieved:
|
404
|
-
*
|
405
|
-
* ```ts
|
406
|
-
* const reservationItem =
|
407
|
-
* await inventoryModuleService.retrieveReservationItem(
|
408
|
-
* "resitem",
|
409
|
-
* {
|
410
|
-
* relations: ["inventory_item"],
|
411
|
-
* }
|
412
|
-
* )
|
413
|
-
* ```
|
414
|
-
*/
|
415
|
-
retrieveReservationItem(reservationId: string, config?: FindConfig<InventoryNext.ReservationItemDTO>, context?: Context): Promise<InventoryNext.ReservationItemDTO>;
|
416
|
-
/**
|
417
|
-
* This method creates reservation items.
|
418
|
-
*
|
419
|
-
* @param {CreateReservationItemInput[]} input - The details of the reservation items to be created.
|
420
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
421
|
-
* @returns {Promise<ReservationItemDTO[]>} The created reservation items.
|
422
|
-
*
|
423
|
-
* @example
|
424
|
-
* const reservationItems =
|
425
|
-
* await inventoryModuleService.createReservationItems([
|
426
|
-
* {
|
427
|
-
* inventory_item_id: "iitem_123",
|
428
|
-
* location_id: "loc_123",
|
429
|
-
* quantity: 10,
|
430
|
-
* },
|
431
|
-
* ])
|
432
|
-
*/
|
433
|
-
createReservationItems(input: InventoryNext.CreateReservationItemInput[], context?: Context): Promise<InventoryNext.ReservationItemDTO[]>;
|
434
|
-
/**
|
435
|
-
* This method creates a reservation item.
|
436
|
-
*
|
437
|
-
* @param {CreateReservationItemInput} input - The details of the reservation item to be created.
|
438
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
439
|
-
* @returns {Promise<ReservationItemDTO>} The created reservation item.
|
440
|
-
*
|
441
|
-
* @example
|
442
|
-
* const reservationItem =
|
443
|
-
* await inventoryModuleService.createReservationItems({
|
444
|
-
* inventory_item_id: "iitem_123",
|
445
|
-
* location_id: "loc_123",
|
446
|
-
* quantity: 10,
|
447
|
-
* })
|
448
|
-
*/
|
449
|
-
createReservationItems(input: InventoryNext.CreateReservationItemInput, context?: Context): Promise<InventoryNext.ReservationItemDTO>;
|
450
|
-
/**
|
451
|
-
* This method creates inventory items.
|
452
|
-
*
|
453
|
-
* @param {CreateInventoryItemInput[]} input - The details of the inventory items to be created.
|
454
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
455
|
-
* @returns {Promise<InventoryItemDTO[]>} The created inventory items.
|
456
|
-
*
|
457
|
-
* @example
|
458
|
-
* const inventoryItems = await inventoryModuleService.create([
|
459
|
-
* {
|
460
|
-
* sku: "SHIRT",
|
461
|
-
* },
|
462
|
-
* ])
|
463
|
-
*/
|
464
|
-
create(input: InventoryNext.CreateInventoryItemInput[], context?: Context): Promise<InventoryNext.InventoryItemDTO[]>;
|
465
|
-
/**
|
466
|
-
* This method creates an inventory item.
|
467
|
-
*
|
468
|
-
* @param {CreateInventoryItemInput} input - The details of the inventory item to be created.
|
469
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
470
|
-
* @returns {Promise<InventoryItemDTO>} The created inventory item.
|
471
|
-
*
|
472
|
-
* @example
|
473
|
-
* const inventoryItem = await inventoryModuleService.create({
|
474
|
-
* sku: "SHIRT",
|
475
|
-
* })
|
476
|
-
*/
|
477
|
-
create(input: InventoryNext.CreateInventoryItemInput, context?: Context): Promise<InventoryNext.InventoryItemDTO>;
|
478
|
-
/**
|
479
|
-
* This method creates inventory levels.
|
480
|
-
*
|
481
|
-
* @param {CreateInventoryLevelInput[]} data - The details of the inventory levels to be created.
|
482
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
483
|
-
* @returns {Promise<InventoryLevelDTO[]>} The created inventory levels.
|
484
|
-
*
|
485
|
-
* @example
|
486
|
-
* const inventoryLevels =
|
487
|
-
* await inventoryModuleService.createInventoryLevels([
|
488
|
-
* {
|
489
|
-
* inventory_item_id: "iitem_123",
|
490
|
-
* location_id: "loc_123",
|
491
|
-
* stocked_quantity: 10,
|
492
|
-
* },
|
493
|
-
* {
|
494
|
-
* inventory_item_id: "iitem_321",
|
495
|
-
* location_id: "loc_321",
|
496
|
-
* stocked_quantity: 20,
|
497
|
-
* reserved_quantity: 10,
|
498
|
-
* },
|
499
|
-
* ])
|
500
|
-
*/
|
501
|
-
createInventoryLevels(data: InventoryNext.CreateInventoryLevelInput[], context?: Context): Promise<InventoryNext.InventoryLevelDTO[]>;
|
502
|
-
/**
|
503
|
-
* This method creates an inventory level.
|
504
|
-
*
|
505
|
-
* @param {CreateInventoryLevelInput} data - The details of the inventory level to be created.
|
506
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
507
|
-
* @returns {Promise<InventoryLevelDTO>} The created inventory level.
|
508
|
-
*
|
509
|
-
* @example
|
510
|
-
* const inventoryLevels =
|
511
|
-
* await inventoryModuleService.createInventoryLevels({
|
512
|
-
* inventory_item_id: "iitem_123",
|
513
|
-
* location_id: "loc_123",
|
514
|
-
* stocked_quantity: 10,
|
515
|
-
* })
|
516
|
-
*/
|
517
|
-
createInventoryLevels(data: InventoryNext.CreateInventoryLevelInput, context?: Context): Promise<InventoryNext.InventoryLevelDTO>;
|
518
|
-
/**
|
519
|
-
* This method updates existing inventory levels.
|
520
|
-
*
|
521
|
-
* @param {BulkUpdateInventoryLevelInput[]} updates - The list of The attributes to update in an inventory level. The inventory level is identified by the IDs of its associated inventory item and location.
|
522
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
523
|
-
* @returns {Promise<InventoryLevelDTO[]>} The updated inventory levels.
|
524
|
-
*
|
525
|
-
* @example
|
526
|
-
* const inventoryLevels =
|
527
|
-
* await inventoryModuleService.updateInventoryLevels([
|
528
|
-
* {
|
529
|
-
* inventory_item_id: "iitem_123",
|
530
|
-
* location_id: "loc_123",
|
531
|
-
* id: "ilev_123",
|
532
|
-
* stocked_quantity: 20,
|
533
|
-
* },
|
534
|
-
* ])
|
535
|
-
*/
|
536
|
-
updateInventoryLevels(updates: InventoryNext.BulkUpdateInventoryLevelInput[], context?: Context): Promise<InventoryNext.InventoryLevelDTO[]>;
|
537
|
-
/**
|
538
|
-
* This method updates an existing inventory level.
|
539
|
-
*
|
540
|
-
* @param {BulkUpdateInventoryLevelInput} updates - The attributes to update in an inventory level. The inventory level is identified by the IDs of its associated inventory item and location.
|
541
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
542
|
-
* @returns {Promise<InventoryLevelDTO>} The updated inventory level.
|
543
|
-
*
|
544
|
-
* @example
|
545
|
-
* const inventoryLevel =
|
546
|
-
* await inventoryModuleService.updateInventoryLevels({
|
547
|
-
* inventory_item_id: "iitem_123",
|
548
|
-
* location_id: "loc_123",
|
549
|
-
* stocked_quantity: 20,
|
550
|
-
* })
|
551
|
-
*/
|
552
|
-
updateInventoryLevels(updates: InventoryNext.BulkUpdateInventoryLevelInput, context?: Context): Promise<InventoryNext.InventoryLevelDTO>;
|
553
|
-
/**
|
554
|
-
* This method updates an existing inventory item.
|
555
|
-
*
|
556
|
-
* @param {UpdateInventoryItemInput} input - The attributes to update in the inventory item.
|
557
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
558
|
-
* @returns {Promise<InventoryItemDTO>} The updated inventory item.
|
559
|
-
*
|
560
|
-
* @example
|
561
|
-
* const inventoryItem = await inventoryModuleService.update({
|
562
|
-
* id: "iitem_123",
|
563
|
-
* title: "Medusa Shirt Inventory",
|
564
|
-
* })
|
565
|
-
*/
|
566
|
-
update(input: InventoryNext.UpdateInventoryItemInput, context?: Context): Promise<InventoryNext.InventoryItemDTO>;
|
567
|
-
/**
|
568
|
-
* This method updates existing inventory items.
|
569
|
-
*
|
570
|
-
* @param {UpdateInventoryItemInput[]} input - The attributes to update in the inventory items.
|
571
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
572
|
-
* @returns {Promise<InventoryItemDTO[]>} The updated inventory items.
|
573
|
-
*
|
574
|
-
* @example
|
575
|
-
* const inventoryItems = await inventoryModuleService.update([
|
576
|
-
* {
|
577
|
-
* id: "iitem_123",
|
578
|
-
* title: "Medusa Shirt Inventory",
|
579
|
-
* },
|
580
|
-
* {
|
581
|
-
* id: "iitem_321",
|
582
|
-
* description: "The inventory of Medusa pants",
|
583
|
-
* },
|
584
|
-
* ])
|
585
|
-
*/
|
586
|
-
update(input: InventoryNext.UpdateInventoryItemInput[], context?: Context): Promise<InventoryNext.InventoryItemDTO[]>;
|
587
|
-
/**
|
588
|
-
* This method updates an existing reservation item.
|
589
|
-
*
|
590
|
-
* @param {UpdateReservationItemInput} input - The attributes to update in a reservation item.
|
591
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
592
|
-
* @returns {Promise<ReservationItemDTO>} The updated reservation item.
|
593
|
-
*
|
594
|
-
* @example
|
595
|
-
* const reservationItem =
|
596
|
-
* await inventoryModuleService.updateReservationItems({
|
597
|
-
* id: "resitem_123",
|
598
|
-
* quantity: 10,
|
599
|
-
* })
|
600
|
-
*/
|
601
|
-
updateReservationItems(input: InventoryNext.UpdateReservationItemInput, context?: Context): Promise<InventoryNext.ReservationItemDTO>;
|
602
|
-
/**
|
603
|
-
* This method updates existing reservation items.
|
604
|
-
*
|
605
|
-
* @param {UpdateReservationItemInput[]} input - The attributes to update in the reservation items.
|
606
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
607
|
-
* @returns {Promise<ReservationItemDTO[]>} The updated reservation items.
|
608
|
-
*
|
609
|
-
* @example
|
610
|
-
* const reservationItems =
|
611
|
-
* await inventoryModuleService.updateReservationItems([
|
612
|
-
* {
|
613
|
-
* id: "resitem_123",
|
614
|
-
* quantity: 10,
|
615
|
-
* },
|
616
|
-
* ])
|
617
|
-
*/
|
618
|
-
updateReservationItems(input: InventoryNext.UpdateReservationItemInput[], context?: Context): Promise<InventoryNext.ReservationItemDTO[]>;
|
619
|
-
/**
|
620
|
-
* This method deletes a reservation item by its associated line item.
|
621
|
-
*
|
622
|
-
* @param {string | string[]} lineItemId - The line item's ID.
|
623
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
624
|
-
* @returns {Promise<void>} Resolves when the reservation item is deleted.
|
625
|
-
*
|
626
|
-
* @example
|
627
|
-
* await inventoryModuleService.deleteReservationItemByLocationId(
|
628
|
-
* "cali_123"
|
629
|
-
* )
|
630
|
-
*/
|
631
|
-
deleteReservationItemsByLineItem(lineItemId: string | string[], context?: Context): Promise<void>;
|
632
|
-
/**
|
633
|
-
* This method deletes reservation items by their IDs.
|
634
|
-
*
|
635
|
-
* @param {string | string[]} reservationItemId - The reservation items' IDs.
|
636
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
637
|
-
* @returns {Promise<void>} Resolves when the reservation item is deleted.
|
638
|
-
*
|
639
|
-
* @example
|
640
|
-
* await inventoryModuleService.deleteReservationItems(
|
641
|
-
* "resitem_123"
|
642
|
-
* )
|
643
|
-
*/
|
644
|
-
deleteReservationItems(reservationItemId: string | string[], context?: Context): Promise<void>;
|
645
|
-
/**
|
646
|
-
* This method soft deletes reservations by their IDs.
|
647
|
-
*
|
648
|
-
* @param {string[]} inventoryLevelIds - The reservations' IDs.
|
649
|
-
* @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
|
650
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
651
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted.
|
652
|
-
* If there are no related records, the promise resolves to `void`.
|
653
|
-
*
|
654
|
-
* @example
|
655
|
-
* await inventoryModuleService.softDeleteReservationItems([
|
656
|
-
* "ilev_123",
|
657
|
-
* ])
|
658
|
-
*/
|
659
|
-
softDeleteReservationItems<TReturnableLinkableKeys extends string = string>(ReservationItemIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
660
|
-
/**
|
661
|
-
* This method restores soft deleted reservations by their IDs.
|
662
|
-
*
|
663
|
-
* @param {string[]} ReservationItemIds - The reservations' IDs.
|
664
|
-
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the reservation. You can pass to its `returnLinkableKeys`
|
665
|
-
* property any of the reservation's relation attribute names, such as `{type relation name}`.
|
666
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
667
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored.
|
668
|
-
* If there are no related records restored, the promise resolves to `void`.
|
669
|
-
*
|
670
|
-
* @example
|
671
|
-
* await inventoryModuleService.restoreReservationItems([
|
672
|
-
* "ilev_123",
|
673
|
-
* ])
|
674
|
-
*/
|
675
|
-
restoreReservationItems<TReturnableLinkableKeys extends string = string>(ReservationItemIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
676
|
-
/**
|
677
|
-
* This method deletes inventory items by their IDs.
|
678
|
-
*
|
679
|
-
* @param {string | string[]} inventoryItemId - The inventory item's ID.
|
680
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
681
|
-
* @returns {Promise<void>} Resolves when the inventory items are deleted.
|
682
|
-
*
|
683
|
-
* @example
|
684
|
-
* await inventoryModuleService.delete("iitem_123")
|
685
|
-
*/
|
686
|
-
delete(inventoryItemId: string | string[], context?: Context): Promise<void>;
|
687
|
-
/**
|
688
|
-
* This method soft deletes inventory items by their IDs.
|
689
|
-
*
|
690
|
-
* @param {string[]} inventoryItemIds - The inventory items' IDs.
|
691
|
-
* @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
|
692
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
693
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted, such as the ID of the associated location levels.
|
694
|
-
* The object's keys are the ID attribute names of the inventory service next entity's relations, such as `location_level_id`, and its value is an array of strings, each being the ID of a record associated
|
695
|
-
* with the inventory item through this relation, such as the IDs of associated location levels.
|
696
|
-
*
|
697
|
-
* If there are no related records, the promise resolves to `void`.
|
698
|
-
*
|
699
|
-
* @example
|
700
|
-
* await inventoryModuleService.softDelete(
|
701
|
-
* ["iitem_123", "iitem_321"],
|
702
|
-
* {
|
703
|
-
* returnLinkableKeys: ["location_level"],
|
704
|
-
* }
|
705
|
-
* )
|
706
|
-
*/
|
707
|
-
softDelete<TReturnableLinkableKeys extends string = string>(inventoryItemIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
708
|
-
/**
|
709
|
-
* This method restores soft deleted inventory items by their IDs.
|
710
|
-
*
|
711
|
-
* @param {string[]} inventoryItemIds - The inventory items' IDs.
|
712
|
-
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the inventory items. You can pass to its `returnLinkableKeys`
|
713
|
-
* property any of the inventory item's relation attribute names, such as `location_levels`.
|
714
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
715
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored, such as the ID of associated location levels.
|
716
|
-
* The object's keys are the ID attribute names of the inventory item entity's relations, such as `location_level_id`,
|
717
|
-
* and its value is an array of strings, each being the ID of the record associated with the inventory item through this relation,
|
718
|
-
* such as the IDs of associated location levels.
|
719
|
-
*
|
720
|
-
* If there are no related records restored, the promise resolves to `void`.
|
721
|
-
*
|
722
|
-
* @example
|
723
|
-
* await inventoryModuleService.restore(
|
724
|
-
* ["iitem_123", "iitem_321"],
|
725
|
-
* {
|
726
|
-
* returnLinkableKeys: ["location_level"],
|
727
|
-
* }
|
728
|
-
* )
|
729
|
-
*/
|
730
|
-
restore<TReturnableLinkableKeys extends string = string>(inventoryItemIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
731
|
-
/**
|
732
|
-
* This method soft deletes inventory item's level by the associated location.
|
733
|
-
*
|
734
|
-
* @param {string | string[]} locationId - The locations' IDs.
|
735
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
736
|
-
* @returns {Promise<[object[], Record<string, unknown[]>]>} An array, where the first item is an array includes the soft-deleted inventory levels,
|
737
|
-
* and the second is an object that includes the IDs of related records that were soft-deleted.
|
738
|
-
*
|
739
|
-
* @example
|
740
|
-
* await inventoryModuleService.deleteInventoryItemLevelByLocationId(
|
741
|
-
* "loc_123"
|
742
|
-
* )
|
743
|
-
*/
|
744
|
-
deleteInventoryItemLevelByLocationId(locationId: string | string[], context?: Context): Promise<[object[], Record<string, unknown[]>]>;
|
745
|
-
/**
|
746
|
-
* This method deletes reservation items by their associated location.
|
747
|
-
*
|
748
|
-
* @param {string | string[]} locationId - The location's ID.
|
749
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
750
|
-
* @returns {Promise<void>} Resolves when then reservation items are deleted successfully.
|
751
|
-
*
|
752
|
-
* @example
|
753
|
-
* await inventoryModuleService.deleteReservationItemByLocationId(
|
754
|
-
* "loc_123"
|
755
|
-
* )
|
756
|
-
*/
|
757
|
-
deleteReservationItemByLocationId(locationId: string | string[], context?: Context): Promise<void>;
|
758
|
-
/**
|
759
|
-
* This method deletes an inventory level by its associated inventory item and location.
|
760
|
-
*
|
761
|
-
* @param {string} inventoryItemId - The inventory item's ID.
|
762
|
-
* @param {string} locationId - The location's ID.
|
763
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
764
|
-
* @returns {Promise<void>} Resolves when the inventory level is deleted successfully.
|
765
|
-
*
|
766
|
-
* @example
|
767
|
-
* await inventoryModuleService.deleteInventoryLevel(
|
768
|
-
* "iitem_123",
|
769
|
-
* "loc_123"
|
770
|
-
* )
|
771
|
-
*/
|
772
|
-
deleteInventoryLevel(inventoryItemId: string, locationId: string, context?: Context): Promise<void>;
|
773
|
-
/**
|
774
|
-
* This method deletes inventory levels by their IDs.
|
775
|
-
*
|
776
|
-
* @param {string | string[]} inventoryLevelIds - The inventory levels' IDs.
|
777
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
778
|
-
* @returns {Promise<void>} Resolves when the inventory levels are deleted.
|
779
|
-
*
|
780
|
-
* @example
|
781
|
-
* await inventoryModuleService.deleteInventoryLevels("ilev_123")
|
782
|
-
*/
|
783
|
-
deleteInventoryLevels(inventoryLevelIds: string | string[], context?: Context): Promise<void>;
|
784
|
-
/**
|
785
|
-
* This method soft deletes inventory levels by their IDs.
|
786
|
-
*
|
787
|
-
* @param {string[]} inventoryLevelIds - The inventory levels' IDs.
|
788
|
-
* @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
|
789
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
790
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted.
|
791
|
-
* If there are no related records, the promise resolves to `void`.
|
792
|
-
*
|
793
|
-
* @example
|
794
|
-
* await inventoryModuleService.softDeleteInventoryLevels([
|
795
|
-
* "ilev_123",
|
796
|
-
* ])
|
797
|
-
*/
|
798
|
-
softDeleteInventoryLevels<TReturnableLinkableKeys extends string = string>(inventoryLevelIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
799
|
-
/**
|
800
|
-
* This method restores soft deleted inventory levels by their IDs.
|
801
|
-
*
|
802
|
-
* @param {string[]} inventoryLevelIds - The inventory levels' IDs.
|
803
|
-
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the inventory level. You can pass to its `returnLinkableKeys`
|
804
|
-
* property any of the inventory level's relation attribute names, such as `{type relation name}`.
|
805
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
806
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored.
|
807
|
-
* If there are no related records restored, the promise resolves to `void`.
|
808
|
-
*
|
809
|
-
* @example
|
810
|
-
* await inventoryModuleService.restoreInventoryLevels([
|
811
|
-
* "ilev_123",
|
812
|
-
* ])
|
813
|
-
*/
|
814
|
-
restoreInventoryLevels<TReturnableLinkableKeys extends string = string>(inventoryLevelIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
815
|
-
/**
|
816
|
-
* This method adjusts the inventory quantity of an item in a location.
|
817
|
-
*
|
818
|
-
* @param {string} inventoryItemId - The inventory item's ID.
|
819
|
-
* @param {string} locationId - The location's ID.
|
820
|
-
* @param {number} adjustment - the adjustment to make to the quantity.
|
821
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
822
|
-
* @returns {Promise<InventoryLevelDTO>} The updated inventory level.
|
823
|
-
*
|
824
|
-
* @example
|
825
|
-
* // add to the inventory quantity
|
826
|
-
* const inventoryLevel1 =
|
827
|
-
* await inventoryModuleService.adjustInventory(
|
828
|
-
* "iitem_123",
|
829
|
-
* "loc_123",
|
830
|
-
* 5
|
831
|
-
* )
|
832
|
-
*
|
833
|
-
* // subtract from the inventory quantity
|
834
|
-
* const inventoryLevel2 =
|
835
|
-
* await inventoryModuleService.adjustInventory(
|
836
|
-
* "iitem_123",
|
837
|
-
* "loc_123",
|
838
|
-
* -5
|
839
|
-
* )
|
840
|
-
*/
|
841
|
-
adjustInventory(data: {
|
842
|
-
inventoryItemId: string;
|
843
|
-
locationId: string;
|
844
|
-
adjustment: number;
|
845
|
-
}[], context?: Context): Promise<InventoryNext.InventoryLevelDTO[]>;
|
846
|
-
adjustInventory(inventoryItemId: string, locationId: string, adjustment: number, context?: Context): Promise<InventoryNext.InventoryLevelDTO>;
|
847
|
-
/**
|
848
|
-
* This method confirms that a quantity is available of an inventory item in the specified locations.
|
849
|
-
*
|
850
|
-
* @param {string} inventoryItemId - The inventory item's ID.
|
851
|
-
* @param {string[]} locationIds - The locations' IDs.
|
852
|
-
* @param {number} quantity - The quantity to confirm its availability.
|
853
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
854
|
-
* @returns {Promise<boolean>} Whether the quantity is available.
|
855
|
-
*
|
856
|
-
* @example
|
857
|
-
* const isAvailable =
|
858
|
-
* await inventoryModuleService.confirmInventory(
|
859
|
-
* "iitem_123",
|
860
|
-
* ["loc_123", "loc_321"],
|
861
|
-
* 10
|
862
|
-
* )
|
863
|
-
*/
|
864
|
-
confirmInventory(inventoryItemId: string, locationIds: string[], quantity: number, context?: Context): Promise<boolean>;
|
865
|
-
/**
|
866
|
-
* This method retrieves the available quantity of an inventory item in the specified locations.
|
867
|
-
*
|
868
|
-
* @param {string} inventoryItemId - The inventory item's ID.
|
869
|
-
* @param {string[]} locationIds - The locations' IDs.
|
870
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
871
|
-
* @returns {Promise<number>} The available quantity of the item.
|
872
|
-
*
|
873
|
-
* @example
|
874
|
-
* const availableQuantity =
|
875
|
-
* await inventoryModuleService.retrieveAvailableQuantity(
|
876
|
-
* "iitem_123",
|
877
|
-
* ["loc_123", "loc_321"]
|
878
|
-
* )
|
879
|
-
*/
|
880
|
-
retrieveAvailableQuantity(inventoryItemId: string, locationIds: string[], context?: Context): Promise<number>;
|
881
|
-
/**
|
882
|
-
* This method retrieves the stocked quantity of an inventory item in the specified location.
|
883
|
-
*
|
884
|
-
* @param {string} inventoryItemId - The inventory item's ID.
|
885
|
-
* @param {string[]} locationIds - The locations' IDs.
|
886
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
887
|
-
* @returns {Promise<number>} The stocked quantity of the item.
|
888
|
-
*
|
889
|
-
* @example
|
890
|
-
* const stockedQuantity =
|
891
|
-
* await inventoryModuleService.retrieveStockedQuantity(
|
892
|
-
* "iitem_123",
|
893
|
-
* ["loc_123", "loc_321"]
|
894
|
-
* )
|
895
|
-
*/
|
896
|
-
retrieveStockedQuantity(inventoryItemId: string, locationIds: string[], context?: Context): Promise<number>;
|
897
|
-
/**
|
898
|
-
* This method retrieves the reserved quantity of an inventory item in the specified location.
|
899
|
-
*
|
900
|
-
* @param {string} inventoryItemId - The inventory item's ID.
|
901
|
-
* @param {string[]} locationIds - The locations' IDs.
|
902
|
-
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
903
|
-
* @returns {Promise<number>} The reserved quantity of the item.
|
904
|
-
*
|
905
|
-
* @example
|
906
|
-
* const reservedQuantity =
|
907
|
-
* await inventoryModuleService.retrieveReservedQuantity(
|
908
|
-
* "iitem_123",
|
909
|
-
* ["loc_123", "loc_321"]
|
910
|
-
* )
|
911
|
-
*/
|
912
|
-
retrieveReservedQuantity(inventoryItemId: string, locationIds: string[], context?: Context): Promise<number>;
|
913
|
-
}
|
914
|
-
//# sourceMappingURL=service-next.d.ts.map
|