@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 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/stock-location/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CA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AC,EAAE,MAAM,CAAA;CACZ,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stock-location/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stock-location/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./common"), exports);
|
18
18
|
__exportStar(require("./service"), exports);
|
19
|
-
__exportStar(require("./service-next"), exports);
|
20
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stock-location/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,4CAAyB
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stock-location/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,4CAAyB"}
|
@@ -1,266 +1,279 @@
|
|
1
|
-
import { CreateStockLocationInput, FilterableStockLocationProps, StockLocationDTO, UpdateStockLocationInput } from "./common";
|
1
|
+
import { CreateStockLocationInput, FilterableStockLocationProps, StockLocationDTO, UpdateStockLocationInput, UpsertStockLocationInput } from "./common";
|
2
|
+
import { RestoreReturn, SoftDeleteReturn } from "../dal";
|
3
|
+
import { Context } from "../shared-context";
|
2
4
|
import { FindConfig } from "../common/common";
|
3
5
|
import { IModuleService } from "../modules-sdk";
|
4
|
-
import { SharedContext } from "../shared-context";
|
5
6
|
/**
|
6
|
-
* The main service interface for the
|
7
|
+
* The main service interface for the Stock Location Module.
|
7
8
|
*/
|
8
9
|
export interface IStockLocationService extends IModuleService {
|
9
10
|
/**
|
10
|
-
* This method
|
11
|
+
* This method retrieves a paginated list of stock locations based on optional filters and configuration.
|
11
12
|
*
|
12
13
|
* @param {FilterableStockLocationProps} selector - The filters to apply on the retrieved stock locations.
|
13
|
-
* @param {FindConfig<StockLocationDTO>} config -
|
14
|
-
* The configurations determining how the stock locations are retrieved. Its properties, such as `select` or `relations`, accept the
|
14
|
+
* @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
|
15
15
|
* attributes or relations associated with a stock location.
|
16
|
-
* @param {
|
17
|
-
* @
|
16
|
+
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
17
|
+
* @returns {Promise<StockLocationDTO[]>} The list of stock locations.
|
18
18
|
*
|
19
19
|
* @example
|
20
20
|
* To retrieve a list of stock locations using their IDs:
|
21
21
|
*
|
22
22
|
* ```ts
|
23
|
-
*
|
24
|
-
*
|
25
|
-
* }
|
26
|
-
*
|
27
|
-
* async function listStockLocations (ids: string[]) {
|
28
|
-
* const stockLocationModule = await initializeStockLocationModule({})
|
29
|
-
*
|
30
|
-
* const stockLocations = await stockLocationModule.list({
|
31
|
-
* id: ids
|
32
|
-
* })
|
33
|
-
*
|
34
|
-
* // do something with the stock locations or return them
|
35
|
-
* }
|
23
|
+
* const stockLocations = await stockLocationModuleService.listStockLocations({
|
24
|
+
* id: ["sloc_123", "sloc_321"],
|
25
|
+
* })
|
36
26
|
* ```
|
37
27
|
*
|
38
28
|
* To specify relations that should be retrieved within the stock locations:
|
39
29
|
*
|
40
30
|
* ```ts
|
41
|
-
*
|
42
|
-
*
|
43
|
-
*
|
44
|
-
*
|
45
|
-
*
|
46
|
-
*
|
47
|
-
*
|
48
|
-
*
|
49
|
-
* id: ids
|
50
|
-
* }, {
|
51
|
-
* relations: ["address"]
|
52
|
-
* })
|
53
|
-
*
|
54
|
-
* // do something with the stock locations or return them
|
55
|
-
* }
|
31
|
+
* const stockLocations = await stockLocationModuleService.listStockLocations(
|
32
|
+
* {
|
33
|
+
* id: ["sloc_123", "sloc_321"],
|
34
|
+
* },
|
35
|
+
* {
|
36
|
+
* relations: ["address"],
|
37
|
+
* }
|
38
|
+
* )
|
56
39
|
* ```
|
57
40
|
*
|
58
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:
|
59
42
|
*
|
60
43
|
* ```ts
|
61
|
-
*
|
62
|
-
*
|
63
|
-
*
|
64
|
-
*
|
65
|
-
*
|
66
|
-
* const stockLocationModule = await initializeStockLocationModule({})
|
67
|
-
*
|
68
|
-
* const stockLocations = await stockLocationModule.list({
|
69
|
-
* id: ids
|
70
|
-
* }, {
|
44
|
+
* const stockLocations = await stockLocationModuleService.listStockLocations(
|
45
|
+
* {
|
46
|
+
* id: ["sloc_123", "sloc_321"],
|
47
|
+
* },
|
48
|
+
* {
|
71
49
|
* relations: ["address"],
|
72
|
-
*
|
73
|
-
*
|
74
|
-
* }
|
75
|
-
*
|
76
|
-
* // do something with the stock locations or return them
|
77
|
-
* }
|
50
|
+
* take: 20,
|
51
|
+
* skip: 2,
|
52
|
+
* }
|
53
|
+
* )
|
78
54
|
* ```
|
79
55
|
*/
|
80
|
-
|
56
|
+
listStockLocations(selector: FilterableStockLocationProps, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<StockLocationDTO[]>;
|
81
57
|
/**
|
82
|
-
* This method
|
58
|
+
* This method retrieves a paginated list of stock locations along with the total count of available stock locations satisfying the provided filters.
|
83
59
|
*
|
84
60
|
* @param {FilterableStockLocationProps} selector - The filters to apply on the retrieved stock locations.
|
85
|
-
* @param {FindConfig<StockLocationDTO>} config -
|
86
|
-
* The configurations determining how the stock locations are retrieved. Its properties, such as `select` or `relations`, accept the
|
61
|
+
* @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
|
87
62
|
* attributes or relations associated with a stock location.
|
88
|
-
* @param {
|
89
|
-
* @
|
63
|
+
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
64
|
+
* @returns {Promise<[StockLocationDTO[], number]>} The list of stock locations along with their total count.
|
90
65
|
*
|
91
66
|
* @example
|
92
67
|
* To retrieve a list of stock locations using their IDs:
|
93
68
|
*
|
94
69
|
* ```ts
|
95
|
-
*
|
96
|
-
*
|
97
|
-
*
|
98
|
-
*
|
99
|
-
* async function listStockLocations (ids: string[]) {
|
100
|
-
* const stockLocationModule = await initializeStockLocationModule({})
|
101
|
-
*
|
102
|
-
* const [stockLocations, count] = await stockLocationModule.listAndCount({
|
103
|
-
* id: ids
|
70
|
+
* const [stockLocations, count] =
|
71
|
+
* await stockLocationModuleService.listandCountStockLocations({
|
72
|
+
* id: ["sloc_123", "sloc_321"],
|
104
73
|
* })
|
105
|
-
*
|
106
|
-
* // do something with the stock locations or return them
|
107
|
-
* }
|
108
74
|
* ```
|
109
75
|
*
|
110
76
|
* To specify relations that should be retrieved within the stock locations:
|
111
77
|
*
|
112
78
|
* ```ts
|
113
|
-
*
|
114
|
-
*
|
115
|
-
*
|
116
|
-
*
|
117
|
-
*
|
118
|
-
*
|
119
|
-
*
|
120
|
-
*
|
121
|
-
*
|
122
|
-
* }, {
|
123
|
-
* relations: ["address"]
|
124
|
-
* })
|
125
|
-
*
|
126
|
-
* // do something with the stock locations or return them
|
127
|
-
* }
|
79
|
+
* const [stockLocations, count] =
|
80
|
+
* await stockLocationModuleService.listandCountStockLocations(
|
81
|
+
* {
|
82
|
+
* id: ["sloc_123", "sloc_321"],
|
83
|
+
* },
|
84
|
+
* {
|
85
|
+
* relations: ["address"],
|
86
|
+
* }
|
87
|
+
* )
|
128
88
|
* ```
|
129
89
|
*
|
130
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:
|
131
91
|
*
|
132
92
|
* ```ts
|
133
|
-
*
|
134
|
-
*
|
135
|
-
*
|
136
|
-
*
|
137
|
-
*
|
138
|
-
*
|
139
|
-
*
|
140
|
-
*
|
141
|
-
*
|
142
|
-
*
|
143
|
-
*
|
144
|
-
* skip,
|
145
|
-
* take
|
146
|
-
* })
|
147
|
-
*
|
148
|
-
* // do something with the stock locations or return them
|
149
|
-
* }
|
93
|
+
* const [stockLocations, count] =
|
94
|
+
* await stockLocationModuleService.listandCountStockLocations(
|
95
|
+
* {
|
96
|
+
* id: ["sloc_123", "sloc_321"],
|
97
|
+
* },
|
98
|
+
* {
|
99
|
+
* relations: ["address"],
|
100
|
+
* take: 20,
|
101
|
+
* skip: 2,
|
102
|
+
* }
|
103
|
+
* )
|
150
104
|
* ```
|
151
105
|
*/
|
152
|
-
|
106
|
+
listAndCountStockLocations(selector: FilterableStockLocationProps, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<[StockLocationDTO[], number]>;
|
153
107
|
/**
|
154
|
-
* This method
|
108
|
+
* This method retrieves a stock location by its ID.
|
155
109
|
*
|
156
|
-
* @param {string} id - The ID of the stock location
|
157
|
-
* @param {FindConfig<StockLocationDTO>} config -
|
158
|
-
* The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
|
110
|
+
* @param {string} id - The ID of the stock location.
|
111
|
+
* @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
|
159
112
|
* attributes or relations associated with a stock location.
|
160
|
-
* @param {
|
161
|
-
* @returns {Promise<StockLocationDTO>} The stock location
|
113
|
+
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
114
|
+
* @returns {Promise<StockLocationDTO>} The retrieved stock location.
|
162
115
|
*
|
163
116
|
* @example
|
164
|
-
*
|
165
|
-
*
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
*
|
117
|
+
* const stockLocation =
|
118
|
+
* await stockLocationModuleService.retrieveStockLocation("sloc_123")
|
119
|
+
*/
|
120
|
+
retrieveStockLocation(id: string, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<StockLocationDTO>;
|
121
|
+
/**
|
122
|
+
* This method creates a stock location.
|
170
123
|
*
|
171
|
-
*
|
172
|
-
*
|
124
|
+
* @param {CreateStockLocationInput} input - The stock location to create.
|
125
|
+
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
126
|
+
* @returns {Promise<StockLocationDTO>} The created stock location.
|
173
127
|
*
|
174
|
-
*
|
128
|
+
* @example
|
129
|
+
* const stockLocation = await stockLocationModuleService.createStockLocations(
|
130
|
+
* {
|
131
|
+
* name: "Warehouse",
|
132
|
+
* address: {
|
133
|
+
* address_1: "1855 Powder Mill Rd",
|
134
|
+
* country_code: "us",
|
135
|
+
* },
|
136
|
+
* }
|
137
|
+
* )
|
138
|
+
*/
|
139
|
+
createStockLocations(input: CreateStockLocationInput, context?: Context): Promise<StockLocationDTO>;
|
140
|
+
/**
|
141
|
+
* This method creates stock locations.
|
175
142
|
*
|
176
|
-
*
|
177
|
-
* }
|
178
|
-
*
|
143
|
+
* @param {CreateStockLocationInput[]} input - The stock locations to create.
|
144
|
+
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
145
|
+
* @returns {Promise<StockLocationDTO[]>} The created stock locations.
|
179
146
|
*
|
180
|
-
*
|
147
|
+
* @example
|
148
|
+
* const stockLocations =
|
149
|
+
* await stockLocationModuleService.createStockLocations([
|
150
|
+
* {
|
151
|
+
* name: "Warehouse",
|
152
|
+
* address: {
|
153
|
+
* address_1: "1855 Powder Mill Rd",
|
154
|
+
* country_code: "us",
|
155
|
+
* },
|
156
|
+
* },
|
157
|
+
* {
|
158
|
+
* name: "Warehouse 2",
|
159
|
+
* address_id: "laddr_123",
|
160
|
+
* },
|
161
|
+
* ])
|
162
|
+
*/
|
163
|
+
createStockLocations(input: CreateStockLocationInput[], context?: Context): Promise<StockLocationDTO[]>;
|
164
|
+
/**
|
165
|
+
* This method updates or creates stock location service nexts if they don't exist.
|
181
166
|
*
|
182
|
-
*
|
183
|
-
*
|
184
|
-
*
|
185
|
-
* } from "@medusajs/stock-location"
|
167
|
+
* @param {Partial<UpdateStockLocationInput>[]} data - The list of Make all properties in t optional
|
168
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
169
|
+
* @returns {Promise<StockLocationDTO[]>} The created or updated stock location service nexts.
|
186
170
|
*
|
187
|
-
*
|
188
|
-
*
|
171
|
+
* @example
|
172
|
+
* {example-code}
|
173
|
+
*/
|
174
|
+
upsertStockLocations(data: UpsertStockLocationInput[], sharedContext?: Context): Promise<StockLocationDTO[]>;
|
175
|
+
/**
|
176
|
+
* This method updates or creates a stock location service next if it doesn't exist.
|
189
177
|
*
|
190
|
-
*
|
191
|
-
*
|
192
|
-
*
|
178
|
+
* @param {Partial<UpdateStockLocationInput>} data - Make all properties in T optional
|
179
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
180
|
+
* @returns {Promise<StockLocationDTO>} The created or updated stock location service next.
|
193
181
|
*
|
194
|
-
*
|
195
|
-
* }
|
196
|
-
* ```
|
182
|
+
* @example
|
183
|
+
* {example-code}
|
197
184
|
*/
|
198
|
-
|
185
|
+
upsertStockLocations(data: UpsertStockLocationInput, sharedContext?: Context): Promise<StockLocationDTO>;
|
199
186
|
/**
|
200
|
-
* This method
|
187
|
+
* This method updates existing stock locations.
|
201
188
|
*
|
202
|
-
* @param {
|
203
|
-
* @param {
|
204
|
-
* @returns {Promise<StockLocationDTO>} The
|
189
|
+
* @param {UpdateStockLocationInput[]} input - The attributes to update in the stock locations.
|
190
|
+
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
191
|
+
* @returns {Promise<StockLocationDTO[]>} The updated stock locations.
|
205
192
|
*
|
206
193
|
* @example
|
207
|
-
*
|
208
|
-
*
|
209
|
-
*
|
194
|
+
* const stockLocations =
|
195
|
+
* await stockLocationModuleService.updateStockLocations([
|
196
|
+
* {
|
197
|
+
* id: "sloc_123",
|
198
|
+
* name: "Warehouse",
|
199
|
+
* },
|
200
|
+
* {
|
201
|
+
* id: "sloc_321",
|
202
|
+
* address_id: "laddr_123",
|
203
|
+
* },
|
204
|
+
* ])
|
205
|
+
*/
|
206
|
+
updateStockLocations(id: string, input: UpdateStockLocationInput, context?: Context): Promise<StockLocationDTO>;
|
207
|
+
/**
|
208
|
+
* This method updates existing stock locations matching the specified filters.
|
210
209
|
*
|
211
|
-
*
|
212
|
-
*
|
210
|
+
* @param {FilterableStockLocationProps} selector - The filters specifying which stock locations to update.
|
211
|
+
* @param {UpdateStockLocationInput} input - The attributes to update in the stock locations.
|
212
|
+
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
213
|
+
* @returns {Promise<StockLocationDTO[]>} The updated stock locations.
|
213
214
|
*
|
214
|
-
*
|
215
|
-
*
|
216
|
-
*
|
217
|
-
*
|
218
|
-
*
|
219
|
-
*
|
215
|
+
* @example
|
216
|
+
* const stockLocations =
|
217
|
+
* await stockLocationModuleService.updateStockLocations(
|
218
|
+
* {
|
219
|
+
* name: "Warehouse",
|
220
|
+
* },
|
221
|
+
* {
|
222
|
+
* address_id: "laddr_123",
|
223
|
+
* }
|
224
|
+
* )
|
220
225
|
*/
|
221
|
-
|
226
|
+
updateStockLocations(selector: FilterableStockLocationProps, input: UpdateStockLocationInput, context?: Context): Promise<StockLocationDTO[]>;
|
222
227
|
/**
|
223
|
-
* This method
|
228
|
+
* This method deletes a stock location by its ID.
|
224
229
|
*
|
225
230
|
* @param {string} id - The ID of the stock location.
|
226
|
-
* @param {
|
227
|
-
* @
|
228
|
-
* @returns {Promise<StockLocationDTO>} The stock location's details.
|
231
|
+
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
232
|
+
* @returns {Promise<void>} Resolves when the stock location is deleted successfully.
|
229
233
|
*
|
230
234
|
* @example
|
231
|
-
*
|
232
|
-
|
233
|
-
|
235
|
+
* await stockLocationModuleService.deleteStockLocations("sloc_123")
|
236
|
+
*/
|
237
|
+
deleteStockLocations(id: string | string[], context?: Context): Promise<void>;
|
238
|
+
/**
|
239
|
+
* This method soft deletes stock locations by their IDs.
|
234
240
|
*
|
235
|
-
*
|
236
|
-
*
|
241
|
+
* @param {string[]} stockLocationIds - The IDs of the stock locations.
|
242
|
+
* @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.
|
243
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
244
|
+
* @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 address.
|
245
|
+
* The object's keys are the ID attribute names of the stock location entity's relations, such as `address_id`, and its value is an array of strings, each being the ID of a record associated
|
246
|
+
* with the stock location through this relation, such as the IDs of associated address.
|
237
247
|
*
|
238
|
-
*
|
239
|
-
* name
|
240
|
-
* })
|
248
|
+
* If there are no related records, the promise resolves to `void`.
|
241
249
|
*
|
242
|
-
*
|
243
|
-
*
|
250
|
+
* @example
|
251
|
+
* await stockLocationModuleService.softDeleteStockLocations([
|
252
|
+
* "sloc_123",
|
253
|
+
* "sloc_321",
|
254
|
+
* ])
|
244
255
|
*/
|
245
|
-
|
256
|
+
softDeleteStockLocations<TReturnableLinkableKeys extends string = string>(stockLocationIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
246
257
|
/**
|
247
|
-
* This method
|
258
|
+
* This method restores soft deleted stock locations by their IDs.
|
248
259
|
*
|
249
|
-
* @param {string}
|
250
|
-
* @param {
|
251
|
-
*
|
260
|
+
* @param {string[]} stockLocationIds - The IDs of the stock locations.
|
261
|
+
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the stock location. You can pass to its `returnLinkableKeys`
|
262
|
+
* property any of the stock location's relation attribute names, such as `address`.
|
263
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
264
|
+
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored, such as the ID of associated address.
|
265
|
+
* The object's keys are the ID attribute names of the stock location entity's relations, such as `address_id`,
|
266
|
+
* and its value is an array of strings, each being the ID of the record associated with the stock location through this relation,
|
267
|
+
* such as the ID of associated address.
|
252
268
|
*
|
253
|
-
*
|
254
|
-
* import {
|
255
|
-
* initialize as initializeStockLocationModule,
|
256
|
-
* } from "@medusajs/stock-location"
|
257
|
-
*
|
258
|
-
* async function deleteStockLocation (id:string) {
|
259
|
-
* const stockLocationModule = await initializeStockLocationModule({})
|
269
|
+
* If there are no related records restored, the promise resolves to `void`.
|
260
270
|
*
|
261
|
-
*
|
262
|
-
*
|
271
|
+
* @example
|
272
|
+
* await stockLocationModuleService.restoreStockLocations([
|
273
|
+
* "sloc_123",
|
274
|
+
* "sloc_321",
|
275
|
+
* ])
|
263
276
|
*/
|
264
|
-
|
277
|
+
restoreStockLocations<TReturnableLinkableKeys extends string = string>(stockLocationIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
265
278
|
}
|
266
279
|
//# sourceMappingURL=service.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/stock-location/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,UAAU,CAAA;
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/stock-location/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,O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able } from "../../dal";
|
2
|
+
export interface StoreCurrencyDTO {
|
3
|
+
/**
|
4
|
+
* The ID of the store currency.
|
5
|
+
*/
|
6
|
+
id: string;
|
7
|
+
/**
|
8
|
+
* The currency code of the store currency.
|
9
|
+
*/
|
10
|
+
currency_code: string;
|
11
|
+
/**
|
12
|
+
* Whether the currency is the default one for the store.
|
13
|
+
*/
|
14
|
+
is_default: boolean;
|
15
|
+
/**
|
16
|
+
* The store ID associated with the currency.
|
17
|
+
*/
|
18
|
+
store_id: string;
|
19
|
+
/**
|
20
|
+
* The created date of the currency
|
21
|
+
*/
|
22
|
+
created_at: string;
|
23
|
+
/**
|
24
|
+
* The updated date of the currency
|
25
|
+
*/
|
26
|
+
updated_at: string;
|
27
|
+
/**
|
28
|
+
* The deleted date of the currency
|
29
|
+
*/
|
30
|
+
deleted_at: string | null;
|
31
|
+
}
|
2
32
|
/**
|
3
33
|
* The store details.
|
4
34
|
*/
|
@@ -14,11 +44,7 @@ export interface StoreDTO {
|
|
14
44
|
/**
|
15
45
|
* The supported currency codes of the store.
|
16
46
|
*/
|
17
|
-
|
18
|
-
/**
|
19
|
-
* The default currency code of the store.
|
20
|
-
*/
|
21
|
-
default_currency_code?: string;
|
47
|
+
supported_currencies?: StoreCurrencyDTO[];
|
22
48
|
/**
|
23
49
|
* The associated default sales channel's ID.
|
24
50
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store/common/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store/common/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;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