@medusajs/types 1.12.0-snapshot-20240607093839 → 1.12.0-snapshot-20240703074611
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/service.d.ts +18 -18
- 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/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 +2 -2
- 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 +12 -20
- 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/service.d.ts +12 -12
- package/dist/file/service.d.ts.map +1 -1
- package/dist/fulfillment/mutations/service-zone.d.ts +1 -1
- package/dist/fulfillment/mutations/service-zone.d.ts.map +1 -1
- package/dist/fulfillment/service.d.ts +27 -27
- 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/currency/admin/entities.js +3 -0
- 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/{inventory/bundle.js → http/currency/admin/index.js} +2 -3
- package/dist/http/currency/admin/index.js.map +1 -0
- package/dist/http/currency/index.d.ts +2 -0
- package/dist/http/currency/index.d.ts.map +1 -0
- package/dist/{region__legacy → http/currency}/index.js +1 -1
- package/dist/http/currency/index.js.map +1 -0
- package/dist/http/fulfillment-provider/admin/entities.d.ts +1 -5
- package/dist/http/fulfillment-provider/admin/entities.d.ts.map +1 -1
- package/dist/http/fulfillment-set/admin/entities.d.ts +3 -1
- package/dist/http/fulfillment-set/admin/entities.d.ts.map +1 -1
- package/dist/http/index.d.ts +5 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +5 -0
- 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/{product/store.js → inventory/admin/queries.js} +1 -1
- 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/{product/admin.js → inventory-level/admin/queries.js} +1 -1
- 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/inventory.js → inventory-level/admin/responses.js} +1 -1
- 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/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/{product-category/store.js → price-list/admin/queries.js} +1 -1
- 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/{entitites.d.ts → entities.d.ts} +1 -1
- 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 +1 -1
- package/dist/http/pricing/admin/index.d.ts.map +1 -1
- package/dist/http/pricing/admin/index.js +1 -1
- package/dist/http/pricing/admin/index.js.map +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.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.js → admin/queries.js} +1 -1
- 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/{inventory → 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/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/queries.d.ts +2 -4
- package/dist/http/sales-channel/admin/queries.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/entities.d.ts +9 -1
- package/dist/http/shipping-option/admin/entities.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/payloads.d.ts +8 -9
- package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/entities.d.ts +2 -1
- package/dist/http/stock-locations/admin/entities.d.ts.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/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 +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/reservation-item.d.ts +7 -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 +12 -12
- 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} +19 -18
- package/dist/modules-sdk/medusa-internal-service.d.ts.map +1 -0
- package/dist/{http/inventory/inventory-level.js → modules-sdk/medusa-internal-service.js} +1 -1
- package/dist/modules-sdk/medusa-internal-service.js.map +1 -0
- package/dist/notification/service.d.ts +15 -15
- package/dist/notification/service.d.ts.map +1 -1
- package/dist/order/common.d.ts +50 -1
- package/dist/order/common.d.ts.map +1 -1
- package/dist/order/mutations.d.ts +68 -17
- package/dist/order/mutations.d.ts.map +1 -1
- package/dist/order/service.d.ts +41 -30
- package/dist/order/service.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 +7 -56
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/pricing/service.d.ts +31 -290
- 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 +322 -203
- 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/mutations.d.ts +7 -7
- 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 +4 -3
- 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 +2 -3
- 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/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 +1 -0
- package/dist/workflow/order/index.d.ts.map +1 -1
- package/dist/workflow/order/index.js +1 -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/workflow/order/receive-return.js +3 -0
- 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/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.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/admin/entitites.d.ts.map +0 -1
- package/dist/http/pricing/admin/entitites.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/admin.js.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.map +0 -1
- 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/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 -495
- package/dist/inventory/common.d.ts.map +0 -1
- package/dist/inventory/service-next.d.ts +0 -937
- 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/common.js.map +0 -1
- 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/{pricing → product}/admin/entitites.js +0 -0
- /package/dist/{inventory → http/product-type}/common.js +0 -0
package/dist/region/service.d.ts
CHANGED
@@ -16,7 +16,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
16
16
|
* @returns {Promise<RegionDTO[]>} The created regions.
|
17
17
|
*
|
18
18
|
* @example
|
19
|
-
* const region = await regionModuleService.
|
19
|
+
* const region = await regionModuleService.createRegions([
|
20
20
|
* {
|
21
21
|
* name: "Europe",
|
22
22
|
* currency_code: "eur",
|
@@ -29,7 +29,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
29
29
|
* },
|
30
30
|
* ])
|
31
31
|
*/
|
32
|
-
|
32
|
+
createRegions(data: CreateRegionDTO[], sharedContext?: Context): Promise<RegionDTO[]>;
|
33
33
|
/**
|
34
34
|
* This method creates a region.
|
35
35
|
*
|
@@ -38,13 +38,13 @@ export interface IRegionModuleService extends IModuleService {
|
|
38
38
|
* @returns {Promise<RegionDTO>} The created region.
|
39
39
|
*
|
40
40
|
* @example
|
41
|
-
* const region = await regionModuleService.
|
41
|
+
* const region = await regionModuleService.createRegions({
|
42
42
|
* name: "Europe",
|
43
43
|
* currency_code: "eur",
|
44
44
|
* countries: ["dk", "de", "fr"],
|
45
45
|
* })
|
46
46
|
*/
|
47
|
-
|
47
|
+
createRegions(data: CreateRegionDTO, sharedContext?: Context): Promise<RegionDTO>;
|
48
48
|
/**
|
49
49
|
* This method updates or creates regions if they don't exist.
|
50
50
|
*
|
@@ -53,7 +53,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
53
53
|
* @returns {Promise<RegionDTO[]>} The created or updated regions.
|
54
54
|
*
|
55
55
|
* @example
|
56
|
-
* const region = await regionModuleService.
|
56
|
+
* const region = await regionModuleService.upsertRegions([
|
57
57
|
* {
|
58
58
|
* id: "reg_123",
|
59
59
|
* automatic_taxes: false,
|
@@ -64,7 +64,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
64
64
|
* },
|
65
65
|
* ])
|
66
66
|
*/
|
67
|
-
|
67
|
+
upsertRegions(data: UpsertRegionDTO[], sharedContext?: Context): Promise<RegionDTO[]>;
|
68
68
|
/**
|
69
69
|
* This method updates or creates a region if it doesn't exist.
|
70
70
|
*
|
@@ -73,12 +73,12 @@ export interface IRegionModuleService extends IModuleService {
|
|
73
73
|
* @returns {Promise<RegionDTO>} The created or updated region.
|
74
74
|
*
|
75
75
|
* @example
|
76
|
-
* const region = await regionModuleService.
|
76
|
+
* const region = await regionModuleService.upsertRegions({
|
77
77
|
* id: "reg_123",
|
78
78
|
* automatic_taxes: false,
|
79
79
|
* })
|
80
80
|
*/
|
81
|
-
|
81
|
+
upsertRegions(data: UpsertRegionDTO, sharedContext?: Context): Promise<RegionDTO>;
|
82
82
|
/**
|
83
83
|
* This method updates an existing region.
|
84
84
|
*
|
@@ -88,11 +88,11 @@ export interface IRegionModuleService extends IModuleService {
|
|
88
88
|
* @returns {Promise<RegionDTO>} The updated region.
|
89
89
|
*
|
90
90
|
* @example
|
91
|
-
* const region = await regionModuleService.
|
91
|
+
* const region = await regionModuleService.updateRegions("reg_123", {
|
92
92
|
* automatic_taxes: false,
|
93
93
|
* })
|
94
94
|
*/
|
95
|
-
|
95
|
+
updateRegions(id: string, data: UpdateRegionDTO, sharedContext?: Context): Promise<RegionDTO>;
|
96
96
|
/**
|
97
97
|
* This method updates existing regions.
|
98
98
|
*
|
@@ -102,7 +102,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
102
102
|
* @returns {Promise<RegionDTO[]>} The updated regions.
|
103
103
|
*
|
104
104
|
* @example
|
105
|
-
* const region = await regionModuleService.
|
105
|
+
* const region = await regionModuleService.updateRegions(
|
106
106
|
* {
|
107
107
|
* name: "Europe",
|
108
108
|
* },
|
@@ -111,7 +111,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
111
111
|
* }
|
112
112
|
* )
|
113
113
|
*/
|
114
|
-
|
114
|
+
updateRegions(selector: FilterableRegionProps, data: UpdateRegionDTO, sharedContext?: Context): Promise<RegionDTO[]>;
|
115
115
|
/**
|
116
116
|
* This method deletes regions by their IDs.
|
117
117
|
*
|
@@ -120,9 +120,9 @@ export interface IRegionModuleService extends IModuleService {
|
|
120
120
|
* @returns {Promise<void>} Resolves when the regions are deleted.
|
121
121
|
*
|
122
122
|
* @example
|
123
|
-
* await regionModuleService.
|
123
|
+
* await regionModuleService.deleteRegions(["reg_123", "reg_321"])
|
124
124
|
*/
|
125
|
-
|
125
|
+
deleteRegions(ids: string[], sharedContext?: Context): Promise<void>;
|
126
126
|
/**
|
127
127
|
* This method deletes a region by its ID.
|
128
128
|
*
|
@@ -131,9 +131,9 @@ export interface IRegionModuleService extends IModuleService {
|
|
131
131
|
* @returns {Promise<void>} Resolves when the region is deleted.
|
132
132
|
*
|
133
133
|
* @example
|
134
|
-
* await regionModuleService.
|
134
|
+
* await regionModuleService.deleteRegions("reg_123")
|
135
135
|
*/
|
136
|
-
|
136
|
+
deleteRegions(id: string, sharedContext?: Context): Promise<void>;
|
137
137
|
/**
|
138
138
|
* This method retrieves a region by its ID.
|
139
139
|
*
|
@@ -147,18 +147,18 @@ export interface IRegionModuleService extends IModuleService {
|
|
147
147
|
* A simple example that retrieves a region by its ID:
|
148
148
|
*
|
149
149
|
* ```ts
|
150
|
-
* const region = await regionModuleService.
|
150
|
+
* const region = await regionModuleService.retrieveRegion("reg_123")
|
151
151
|
* ```
|
152
152
|
*
|
153
153
|
* To specify relations that should be retrieved:
|
154
154
|
*
|
155
155
|
* ```ts
|
156
|
-
* const region = await regionModuleService.
|
156
|
+
* const region = await regionModuleService.retrieveRegion("reg_123", {
|
157
157
|
* relations: ["countries"],
|
158
158
|
* })
|
159
159
|
* ```
|
160
160
|
*/
|
161
|
-
|
161
|
+
retrieveRegion(id: string, config?: FindConfig<RegionDTO>, sharedContext?: Context): Promise<RegionDTO>;
|
162
162
|
/**
|
163
163
|
* This method retrieves a paginated list of regions based on optional filters and configuration.
|
164
164
|
*
|
@@ -172,7 +172,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
172
172
|
* To retrieve a list of regions using their IDs:
|
173
173
|
*
|
174
174
|
* ```ts
|
175
|
-
* const regions = await regionModuleService.
|
175
|
+
* const regions = await regionModuleService.listRegions({
|
176
176
|
* id: ["reg_123", "reg_321"],
|
177
177
|
* })
|
178
178
|
* ```
|
@@ -180,7 +180,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
180
180
|
* To specify relations that should be retrieved within the regions:
|
181
181
|
*
|
182
182
|
* ```ts
|
183
|
-
* const regions = await regionModuleService.
|
183
|
+
* const regions = await regionModuleService.listRegions(
|
184
184
|
* {
|
185
185
|
* id: ["reg_123", "reg_321"],
|
186
186
|
* },
|
@@ -193,7 +193,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
193
193
|
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
194
194
|
*
|
195
195
|
* ```ts
|
196
|
-
* const regions = await regionModuleService.
|
196
|
+
* const regions = await regionModuleService.listRegions(
|
197
197
|
* {
|
198
198
|
* id: ["reg_123", "reg_321"],
|
199
199
|
* },
|
@@ -205,7 +205,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
205
205
|
* )
|
206
206
|
* ```
|
207
207
|
*/
|
208
|
-
|
208
|
+
listRegions(filters?: FilterableRegionProps, config?: FindConfig<RegionDTO>, sharedContext?: Context): Promise<RegionDTO[]>;
|
209
209
|
/**
|
210
210
|
* This method retrieves a paginated list of regions along with the total count of available regions satisfying the provided filters.
|
211
211
|
*
|
@@ -220,7 +220,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
220
220
|
*
|
221
221
|
* ```ts
|
222
222
|
* const [regions, count] =
|
223
|
-
* await regionModuleService.
|
223
|
+
* await regionModuleService.listAndCountRegions({
|
224
224
|
* id: ["reg_123", "reg_321"],
|
225
225
|
* })
|
226
226
|
* ```
|
@@ -229,7 +229,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
229
229
|
*
|
230
230
|
* ```ts
|
231
231
|
* const [regions, count] =
|
232
|
-
* await regionModuleService.
|
232
|
+
* await regionModuleService.listAndCountRegions(
|
233
233
|
* {
|
234
234
|
* id: ["reg_123", "reg_321"],
|
235
235
|
* },
|
@@ -243,7 +243,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
243
243
|
*
|
244
244
|
* ```ts
|
245
245
|
* const [regions, count] =
|
246
|
-
* await regionModuleService.
|
246
|
+
* await regionModuleService.listAndCountRegions(
|
247
247
|
* {
|
248
248
|
* id: ["reg_123", "reg_321"],
|
249
249
|
* },
|
@@ -255,7 +255,7 @@ export interface IRegionModuleService extends IModuleService {
|
|
255
255
|
* )
|
256
256
|
* ```
|
257
257
|
*/
|
258
|
-
|
258
|
+
listAndCountRegions(filters?: FilterableRegionProps, config?: FindConfig<RegionDTO>, sharedContext?: Context): Promise<[RegionDTO[], number]>;
|
259
259
|
/**
|
260
260
|
* This method retrieves a country by its 2 character ISO code.
|
261
261
|
*
|
@@ -395,11 +395,11 @@ export interface IRegionModuleService extends IModuleService {
|
|
395
395
|
* If there are no related records, the promise resolves to `void`.
|
396
396
|
*
|
397
397
|
* @example
|
398
|
-
* await regionModuleService.
|
398
|
+
* await regionModuleService.softDeleteRegions(["reg_123", "reg_321"], {
|
399
399
|
* returnLinkableKeys: ["country_id"],
|
400
400
|
* })
|
401
401
|
*/
|
402
|
-
|
402
|
+
softDeleteRegions<TReturnableLinkableKeys extends string = string>(regionIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
403
403
|
/**
|
404
404
|
* This method restores soft deleted regions by their IDs.
|
405
405
|
*
|
@@ -415,10 +415,10 @@ export interface IRegionModuleService extends IModuleService {
|
|
415
415
|
* If there are no related records restored, the promise resolves to `void`.
|
416
416
|
*
|
417
417
|
* @example
|
418
|
-
* await regionModuleService.
|
418
|
+
* await regionModuleService.restoreRegions(["reg_123", "reg_321"], {
|
419
419
|
* returnLinkableKeys: ["country_id"],
|
420
420
|
* })
|
421
421
|
*/
|
422
|
-
|
422
|
+
restoreRegions<TReturnableLinkableKeys extends string = string>(regionIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
423
423
|
}
|
424
424
|
//# sourceMappingURL=service.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/region/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAA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,EAC5D,SAAS,EAAE,MAAM,EAAE,EACnB,MAAM,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAC/C,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;CAC5C"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { MetadataType } from "../common";
|
1
2
|
/**
|
2
3
|
* The sales channel to be created.
|
3
4
|
*/
|
@@ -9,7 +10,7 @@ export interface CreateSalesChannelDTO {
|
|
9
10
|
/**
|
10
11
|
* The description of the sales channel.
|
11
12
|
*/
|
12
|
-
description?: string;
|
13
|
+
description?: string | null;
|
13
14
|
/**
|
14
15
|
* Whether the sales channel is disabled.
|
15
16
|
*/
|
@@ -34,7 +35,7 @@ export interface UpdateSalesChannelDTO {
|
|
34
35
|
/**
|
35
36
|
* Holds custom data in key-value pairs.
|
36
37
|
*/
|
37
|
-
metadata?:
|
38
|
+
metadata?: MetadataType;
|
38
39
|
}
|
39
40
|
/**
|
40
41
|
* The attributes in the sales channel to be created or updated.
|
@@ -60,6 +61,6 @@ export interface UpsertSalesChannelDTO {
|
|
60
61
|
/**
|
61
62
|
* Holds custom data in key-value pairs.
|
62
63
|
*/
|
63
|
-
metadata?:
|
64
|
+
metadata?: MetadataType;
|
64
65
|
}
|
65
66
|
//# sourceMappingURL=mutations.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/sales-channel/mutations.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/sales-channel/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB"}
|
@@ -16,13 +16,13 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
16
16
|
* @returns {Promise<SalesChannelDTO[]>} The created sales channels.
|
17
17
|
*
|
18
18
|
* @example
|
19
|
-
* const salesChannels = await salesChannelModuleService.
|
19
|
+
* const salesChannels = await salesChannelModuleService.createSalesChannels([
|
20
20
|
* {
|
21
21
|
* name: "B2B",
|
22
22
|
* },
|
23
23
|
* ])
|
24
24
|
*/
|
25
|
-
|
25
|
+
createSalesChannels(data: CreateSalesChannelDTO[], sharedContext?: Context): Promise<SalesChannelDTO[]>;
|
26
26
|
/**
|
27
27
|
* This method creates a sales channel.
|
28
28
|
*
|
@@ -31,11 +31,11 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
31
31
|
* @returns {Promise<SalesChannelDTO>} The created sales channel.
|
32
32
|
*
|
33
33
|
* @example
|
34
|
-
* const salesChannel = await salesChannelModuleService.
|
34
|
+
* const salesChannel = await salesChannelModuleService.createSalesChannels({
|
35
35
|
* name: "B2B",
|
36
36
|
* })
|
37
37
|
*/
|
38
|
-
|
38
|
+
createSalesChannels(data: CreateSalesChannelDTO, sharedContext?: Context): Promise<SalesChannelDTO>;
|
39
39
|
/**
|
40
40
|
* This method updates an existing sales channel.
|
41
41
|
*
|
@@ -45,14 +45,14 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
45
45
|
* @returns {Promise<SalesChannelDTO>} The updated sales channel.
|
46
46
|
*
|
47
47
|
* @example
|
48
|
-
* const salesChannel = await salesChannelModuleService.
|
48
|
+
* const salesChannel = await salesChannelModuleService.updateSalesChannels(
|
49
49
|
* "sc_123",
|
50
50
|
* {
|
51
51
|
* description: "Sales channel for B2B customers",
|
52
52
|
* }
|
53
53
|
* )
|
54
54
|
*/
|
55
|
-
|
55
|
+
updateSalesChannels(channelId: string, data: UpdateSalesChannelDTO, sharedContext?: Context): Promise<SalesChannelDTO>;
|
56
56
|
/**
|
57
57
|
* This method updates existing sales channels matching the specified filters
|
58
58
|
*
|
@@ -62,7 +62,7 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
62
62
|
* @returns {Promise<SalesChannelDTO[]>} The updated sales channels.
|
63
63
|
*
|
64
64
|
* @example
|
65
|
-
* const salesChannels = await salesChannelModuleService.
|
65
|
+
* const salesChannels = await salesChannelModuleService.updateSalesChannels(
|
66
66
|
* {
|
67
67
|
* name: "B2B",
|
68
68
|
* },
|
@@ -71,7 +71,7 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
71
71
|
* }
|
72
72
|
* )
|
73
73
|
*/
|
74
|
-
|
74
|
+
updateSalesChannels(selector: FilterableSalesChannelProps, data: UpdateSalesChannelDTO, sharedContext?: Context): Promise<SalesChannelDTO[]>;
|
75
75
|
/**
|
76
76
|
* This method updates or creates a sales channel if it doesn't exist.
|
77
77
|
*
|
@@ -80,11 +80,11 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
80
80
|
* @returns {Promise<SalesChannelDTO>} The created or updated sales channel.
|
81
81
|
*
|
82
82
|
* @example
|
83
|
-
* const salesChannel = await salesChannelModuleService.
|
83
|
+
* const salesChannel = await salesChannelModuleService.upsertSalesChannels({
|
84
84
|
* name: "B2B",
|
85
85
|
* })
|
86
86
|
*/
|
87
|
-
|
87
|
+
upsertSalesChannels(data: UpsertSalesChannelDTO, sharedContext?: Context): Promise<SalesChannelDTO>;
|
88
88
|
/**
|
89
89
|
* This method updates or creates sales channels if they don't exist.
|
90
90
|
*
|
@@ -93,7 +93,7 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
93
93
|
* @returns {Promise<SalesChannelDTO[]>} The created or updated sales channels.
|
94
94
|
*
|
95
95
|
* @example
|
96
|
-
* const salesChannels = await salesChannelModuleService.
|
96
|
+
* const salesChannels = await salesChannelModuleService.upsertSalesChannels([
|
97
97
|
* {
|
98
98
|
* name: "B2B",
|
99
99
|
* },
|
@@ -103,7 +103,7 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
103
103
|
* },
|
104
104
|
* ])
|
105
105
|
*/
|
106
|
-
|
106
|
+
upsertSalesChannels(data: UpsertSalesChannelDTO[], sharedContext?: Context): Promise<SalesChannelDTO[]>;
|
107
107
|
/**
|
108
108
|
* This method deletes sales channel by their IDs.
|
109
109
|
*
|
@@ -112,9 +112,9 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
112
112
|
* @returns {Promise<void>} Resolves when the sales channels are deleted successfully.
|
113
113
|
*
|
114
114
|
* @example
|
115
|
-
* await salesChannelModuleService.
|
115
|
+
* await salesChannelModuleService.deleteSalesChannels(["sc_123", "sc_321"])
|
116
116
|
*/
|
117
|
-
|
117
|
+
deleteSalesChannels(ids: string[], sharedContext?: Context): Promise<void>;
|
118
118
|
/**
|
119
119
|
* This method deletes a sales channel by its ID.
|
120
120
|
*
|
@@ -123,9 +123,9 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
123
123
|
* @returns {Promise<void>} Resolves when the sales channel is deleted successfully.
|
124
124
|
*
|
125
125
|
* @example
|
126
|
-
* await salesChannelModuleService.
|
126
|
+
* await salesChannelModuleService.deleteSalesChannels("sc_123")
|
127
127
|
*/
|
128
|
-
|
128
|
+
deleteSalesChannels(id: string, sharedContext?: Context): Promise<void>;
|
129
129
|
/**
|
130
130
|
* This method retrieves a sales channel by its ID.
|
131
131
|
*
|
@@ -137,9 +137,9 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
137
137
|
*
|
138
138
|
* @example
|
139
139
|
* const salesChannel =
|
140
|
-
* await salesChannelModuleService.
|
140
|
+
* await salesChannelModuleService.retrieveSalesChannel("sc_123")
|
141
141
|
*/
|
142
|
-
|
142
|
+
retrieveSalesChannel(id: string, config?: FindConfig<SalesChannelDTO>, sharedContext?: Context): Promise<SalesChannelDTO>;
|
143
143
|
/**
|
144
144
|
* This method retrieves a paginated list of sales channels based on optional filters and configuration.
|
145
145
|
*
|
@@ -153,7 +153,7 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
153
153
|
* To retrieve a list of sales channels using their IDs:
|
154
154
|
*
|
155
155
|
* ```ts
|
156
|
-
* const salesChannels = await salesChannelModuleService.
|
156
|
+
* const salesChannels = await salesChannelModuleService.listSalesChannels({
|
157
157
|
* id: ["sc_123", "sc_321"],
|
158
158
|
* })
|
159
159
|
* ```
|
@@ -161,7 +161,7 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
161
161
|
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
162
162
|
*
|
163
163
|
* ```ts
|
164
|
-
* const salesChannels = await salesChannelModuleService.
|
164
|
+
* const salesChannels = await salesChannelModuleService.listSalesChannels(
|
165
165
|
* {
|
166
166
|
* id: ["sc_123", "sc_321"],
|
167
167
|
* },
|
@@ -172,7 +172,7 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
172
172
|
* )
|
173
173
|
* ```
|
174
174
|
*/
|
175
|
-
|
175
|
+
listSalesChannels(filters?: FilterableSalesChannelProps, config?: FindConfig<SalesChannelDTO>, sharedContext?: Context): Promise<SalesChannelDTO[]>;
|
176
176
|
/**
|
177
177
|
* This method retrieves a paginated list of sales channels along with the total count of available sales channels satisfying the provided filters.
|
178
178
|
*
|
@@ -187,7 +187,7 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
187
187
|
*
|
188
188
|
* ```ts
|
189
189
|
* const [salesChannels, count] =
|
190
|
-
* await salesChannelModuleService.
|
190
|
+
* await salesChannelModuleService.listAndCountSalesChannels({
|
191
191
|
* id: ["sc_123", "sc_321"],
|
192
192
|
* })
|
193
193
|
* ```
|
@@ -196,7 +196,7 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
196
196
|
*
|
197
197
|
* ```ts
|
198
198
|
* const [salesChannels, count] =
|
199
|
-
* await salesChannelModuleService.
|
199
|
+
* await salesChannelModuleService.listAndCountSalesChannels(
|
200
200
|
* {
|
201
201
|
* id: ["sc_123", "sc_321"],
|
202
202
|
* },
|
@@ -207,7 +207,7 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
207
207
|
* )
|
208
208
|
* ```
|
209
209
|
*/
|
210
|
-
|
210
|
+
listAndCountSalesChannels(filters?: FilterableSalesChannelProps, config?: FindConfig<SalesChannelDTO>, sharedContext?: Context): Promise<[SalesChannelDTO[], number]>;
|
211
211
|
/**
|
212
212
|
* This method soft deletes sales channels by their IDs.
|
213
213
|
*
|
@@ -218,9 +218,9 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
218
218
|
* If there are no related records, the promise resolves to `void`.
|
219
219
|
*
|
220
220
|
* @example
|
221
|
-
* await salesChannelModuleService.
|
221
|
+
* await salesChannelModuleService.softDeleteSalesChannels(["sc_123", "sc_321"])
|
222
222
|
*/
|
223
|
-
|
223
|
+
softDeleteSalesChannels<TReturnableLinkableKeys extends string = string>(salesChannelIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
224
224
|
/**
|
225
225
|
* This method restores a soft deleted sales channel by its IDs.
|
226
226
|
*
|
@@ -232,8 +232,8 @@ export interface ISalesChannelModuleService extends IModuleService {
|
|
232
232
|
* If there are no related records restored, the promise resolves to `void`.
|
233
233
|
*
|
234
234
|
* @example
|
235
|
-
* await salesChannelModuleService.
|
235
|
+
* await salesChannelModuleService.restoreSalesChannels(["sc_123", "sc_321"])
|
236
236
|
*/
|
237
|
-
|
237
|
+
restoreSalesChannels<TReturnableLinkableKeys extends string = string>(salesChannelIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
238
238
|
}
|
239
239
|
//# sourceMappingURL=service.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/sales-channel/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACvE,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,aAAa,CAAA;AAEpB;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,cAAc;IAChE;;;;;;;;;;;;;OAaG;IACH,
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/sales-channel/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,aAAa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AAM,GAAG,MAAM,EAClE,eAAe,EAAE,MAAM,EAAE,EACzB,MAAM,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAC/C,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;CAC5C"}
|
package/dist/shared-context.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { EntityManager } from "typeorm";
|
2
1
|
import { EventBusTypes } from "./bundles";
|
3
2
|
import { Message } from "./event-bus";
|
4
3
|
/**
|
@@ -11,11 +10,11 @@ export type SharedContext = {
|
|
11
10
|
/**
|
12
11
|
* An instance of a transaction manager.
|
13
12
|
*/
|
14
|
-
transactionManager?:
|
13
|
+
transactionManager?: any;
|
15
14
|
/**
|
16
15
|
* An instance of an entity manager.
|
17
16
|
*/
|
18
|
-
manager?:
|
17
|
+
manager?: any;
|
19
18
|
};
|
20
19
|
export interface MessageAggregatorFormat {
|
21
20
|
groupBy?: string[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shared-context.d.ts","sourceRoot":"","sources":["../src/shared-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"shared-context.d.ts","sourceRoot":"","sources":["../src/shared-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,GAAG,CAAA;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAA;CACd,CAAA;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACvD;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,IAAI,CAAA;IACpC,WAAW,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAA;IACxE,aAAa,IAAI,IAAI,CAAA;IACrB,kBAAkB,CAAC,CAAC,EAClB,WAAW,EACP,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,GACjC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,EACvC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,IAAI,CAAA;CACR;AAED;;;GAGG;AACH,MAAM,MAAM,OAAO,CAAC,QAAQ,GAAG,OAAO,IAAI;IACxC,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,QAAQ,CAAA;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,kBAAkB,CAAA;IAEtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { MetadataType } from "../common";
|
1
2
|
import { BaseFilterable, OperatorMap } from "../dal";
|
2
3
|
import { FulfillmentSetDTO } from "../fulfillment";
|
3
4
|
/**
|
@@ -104,7 +105,7 @@ export type StockLocationAddressDTO = {
|
|
104
105
|
/**
|
105
106
|
* Holds custom data in key-value pairs.
|
106
107
|
*/
|
107
|
-
metadata?:
|
108
|
+
metadata?: MetadataType;
|
108
109
|
/**
|
109
110
|
* The creation date of the stock location address.
|
110
111
|
*/
|
@@ -311,7 +312,7 @@ export type StockLocationAddressInput = {
|
|
311
312
|
/**
|
312
313
|
* Holds custom data in key-value pairs.
|
313
314
|
*/
|
314
|
-
metadata?:
|
315
|
+
metadata?: MetadataType;
|
315
316
|
};
|
316
317
|
/**
|
317
318
|
* @schema CreateStockLocationInput
|
@@ -345,7 +346,7 @@ export type CreateStockLocationInput = {
|
|
345
346
|
/**
|
346
347
|
* The associated address's ID.
|
347
348
|
*/
|
348
|
-
address_id?: string;
|
349
|
+
address_id?: string | null;
|
349
350
|
/**
|
350
351
|
* The associated address.
|
351
352
|
*/
|
@@ -353,7 +354,7 @@ export type CreateStockLocationInput = {
|
|
353
354
|
/**
|
354
355
|
* Holds custom data in key-value pairs.
|
355
356
|
*/
|
356
|
-
metadata?:
|
357
|
+
metadata?: MetadataType;
|
357
358
|
};
|
358
359
|
/**
|
359
360
|
* @schema UpdateStockLocationInput
|
@@ -385,7 +386,7 @@ export type UpdateStockLocationInput = {
|
|
385
386
|
/**
|
386
387
|
* The associated address's ID.
|
387
388
|
*/
|
388
|
-
address_id?: string;
|
389
|
+
address_id?: string | null;
|
389
390
|
/**
|
390
391
|
* The associated address's details.
|
391
392
|
*/
|
@@ -393,24 +394,18 @@ export type UpdateStockLocationInput = {
|
|
393
394
|
/**
|
394
395
|
* Holds custom data in key-value pairs.
|
395
396
|
*/
|
396
|
-
metadata?:
|
397
|
+
metadata?: MetadataType;
|
397
398
|
};
|
398
399
|
/**
|
399
400
|
* @interface
|
400
401
|
*
|
401
|
-
*
|
402
|
+
* A stock location to create or update. If the `id` property isn't provided,
|
403
|
+
* the stock location is created. In that case, the `name` property is required.
|
402
404
|
*/
|
403
|
-
export type
|
405
|
+
export type UpsertStockLocationInput = Partial<UpdateStockLocationInput> & {
|
404
406
|
/**
|
405
|
-
* The ID of the stock location.
|
407
|
+
* The ID of the stock location, if updating.
|
406
408
|
*/
|
407
|
-
id
|
409
|
+
id?: string;
|
408
410
|
};
|
409
|
-
/**
|
410
|
-
* @interface
|
411
|
-
*
|
412
|
-
* A stock location to create or update. If the `id` property isn't provided,
|
413
|
-
* the stock location is created. In that case, the `name` property is required.
|
414
|
-
*/
|
415
|
-
export type UpsertStockLocationInput = Partial<UpdateStockLocationNextInput>;
|
416
411
|
//# sourceMappingURL=common.d.ts.map
|
@@ -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,CAAA;IAEvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,
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AM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,yBAAyB,CAAA;IAE5C;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAA;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC,GAAG;IACzE;;OAEG;IACH,EAAE,CAAC,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"}
|