@medusajs/types 1.12.0-snapshot-20240607093839 → 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/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 +6 -55
- 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 +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 +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
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"service-next.d.ts","sourceRoot":"","sources":["../../src/inventory/service-next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAE3C;;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rB,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,MAAM,CAAC,CAAA;CACnB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"service-next.js","sourceRoot":"","sources":["../../src/inventory/service-next.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"internal-module-service.d.ts","sourceRoot":"","sources":["../../src/modules-sdk/internal-module-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EACL,cAAc,EACd,WAAW,IAAI,mBAAmB,EAClC,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,QAAQ,CAAA;AAEf,MAAM,WAAW,qBAAqB,CACpC,OAAO,SAAS,EAAE,EAClB,UAAU,SAAS,MAAM,GAAG,MAAM;IAElC,IAAI,aAAa,IAAI,UAAU,CAAA;IAE/B,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EACxB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,OAAO,CAAC,CAAA;IACnB,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EACxB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,OAAO,CAAC,CAAA;IAEnB,IAAI,CACF,OAAO,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAC7D,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EACxB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAErB,YAAY,CACV,OAAO,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,W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CAAC;QAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;QAAC,gBAAgB,EAAE,gBAAgB,CAAA;KAAE,CAAC,CAAA;CACxE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"internal-module-service.js","sourceRoot":"","sources":["../../src/modules-sdk/internal-module-service.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=module-service.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"module-service.d.ts","sourceRoot":"","sources":["../../src/modules-sdk/module-service.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=module-service.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"module-service.js","sourceRoot":"","sources":["../../src/modules-sdk/module-service.ts"],"names":[],"mappings":""}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { BaseFilterable } from "../../dal";
|
2
|
-
import { PriceSetDTO } from "./price-set";
|
3
|
-
import { RuleTypeDTO } from "./rule-type";
|
4
|
-
export interface PriceSetRuleTypeDTO {
|
5
|
-
id: string;
|
6
|
-
price_set: PriceSetDTO;
|
7
|
-
rule_type: RuleTypeDTO;
|
8
|
-
value: string;
|
9
|
-
}
|
10
|
-
export interface CreatePriceSetRuleTypeDTO {
|
11
|
-
price_set_id: string;
|
12
|
-
rule_type_id: string;
|
13
|
-
}
|
14
|
-
export interface UpdatePriceSetRuleTypeDTO {
|
15
|
-
id: string;
|
16
|
-
price_set?: string;
|
17
|
-
rule_type?: string;
|
18
|
-
}
|
19
|
-
export interface FilterablePriceSetRuleTypeProps extends BaseFilterable<FilterablePriceSetRuleTypeProps> {
|
20
|
-
id?: string[];
|
21
|
-
rule_type_id?: string[];
|
22
|
-
price_set_id?: string[];
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=price-set-rule-type.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"price-set-rule-type.d.ts","sourceRoot":"","sources":["../../../src/pricing/common/price-set-rule-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,WAAW,CAAA;IACtB,SAAS,EAAE,WAAW,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,+BACf,SAAQ,cAAc,CAAC,+BAA+B,CAAC;IACvD,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"price-set-rule-type.js","sourceRoot":"","sources":["../../../src/pricing/common/price-set-rule-type.ts"],"names":[],"mappings":""}
|
@@ -1,102 +0,0 @@
|
|
1
|
-
import { BaseFilterable } from "../../dal";
|
2
|
-
/**
|
3
|
-
* @interface
|
4
|
-
*
|
5
|
-
* A rule type's data.
|
6
|
-
*/
|
7
|
-
export interface RuleTypeDTO {
|
8
|
-
/**
|
9
|
-
* The ID of the rule type.
|
10
|
-
*/
|
11
|
-
id: string;
|
12
|
-
/**
|
13
|
-
* The display name of the rule type.
|
14
|
-
*/
|
15
|
-
name: string;
|
16
|
-
/**
|
17
|
-
* The unique name used to later identify the rule_attribute. For example, it can be used in the `context` parameter of
|
18
|
-
* the `calculatePrices` method to specify a rule for calculating the price.
|
19
|
-
*/
|
20
|
-
rule_attribute: string;
|
21
|
-
/**
|
22
|
-
* The priority of the rule type. This is useful when calculating the price of a price set, and multiple rules satisfy
|
23
|
-
* the provided context. The higher the value, the higher the priority of the rule type.
|
24
|
-
*/
|
25
|
-
default_priority: number;
|
26
|
-
/**
|
27
|
-
* The creation date of the rule type.
|
28
|
-
*/
|
29
|
-
created_at?: Date | string;
|
30
|
-
/**
|
31
|
-
* The update date of the rule type.
|
32
|
-
*/
|
33
|
-
updated_at?: Date | string;
|
34
|
-
}
|
35
|
-
/**
|
36
|
-
* @interface
|
37
|
-
*
|
38
|
-
* The rule type to create.
|
39
|
-
*/
|
40
|
-
export interface CreateRuleTypeDTO {
|
41
|
-
/**
|
42
|
-
* The ID of the rule type.
|
43
|
-
*/
|
44
|
-
id?: string;
|
45
|
-
/**
|
46
|
-
* The display name of the rule type.
|
47
|
-
*/
|
48
|
-
name: string;
|
49
|
-
/**
|
50
|
-
* The unique name used to later identify the rule_attribute. For example, it can be used in the `context` parameter of the `calculatePrices`
|
51
|
-
* method to specify a rule for calculating the price.
|
52
|
-
*/
|
53
|
-
rule_attribute: string;
|
54
|
-
/**
|
55
|
-
* The priority of the rule type. This is useful when calculating the price of a price set, and multiple rules satisfy the provided context.
|
56
|
-
* The higher the value, the higher the priority of the rule type.
|
57
|
-
*/
|
58
|
-
default_priority?: number;
|
59
|
-
}
|
60
|
-
/**
|
61
|
-
* @interface
|
62
|
-
*
|
63
|
-
* The data to update in a rule type. The `id` is used to identify which price set to update.
|
64
|
-
*/
|
65
|
-
export interface UpdateRuleTypeDTO {
|
66
|
-
/**
|
67
|
-
* The ID of the rule type to update.
|
68
|
-
*/
|
69
|
-
id: string;
|
70
|
-
/**
|
71
|
-
* The display name of the rule type.
|
72
|
-
*/
|
73
|
-
name?: string;
|
74
|
-
/**
|
75
|
-
* The unique name used to later identify the rule_attribute. For example, it can be used in the `context` parameter of the `calculatePrices` method to specify a rule for calculating the price.
|
76
|
-
*/
|
77
|
-
rule_attribute?: string;
|
78
|
-
/**
|
79
|
-
* The priority of the rule type. This is useful when calculating the price of a price set, and multiple rules satisfy the provided context. The higher the value, the higher the priority of the rule type.
|
80
|
-
*/
|
81
|
-
default_priority?: number;
|
82
|
-
}
|
83
|
-
/**
|
84
|
-
* @interface
|
85
|
-
*
|
86
|
-
* Filters to apply on rule types.
|
87
|
-
*/
|
88
|
-
export interface FilterableRuleTypeProps extends BaseFilterable<FilterableRuleTypeProps> {
|
89
|
-
/**
|
90
|
-
* The IDs to filter rule types by.
|
91
|
-
*/
|
92
|
-
id?: string[];
|
93
|
-
/**
|
94
|
-
* The names to filter rule types by.
|
95
|
-
*/
|
96
|
-
name?: string[];
|
97
|
-
/**
|
98
|
-
* The rule attributes to filter rule types by.
|
99
|
-
*/
|
100
|
-
rule_attribute?: string[];
|
101
|
-
}
|
102
|
-
//# sourceMappingURL=rule-type.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"rule-type.d.ts","sourceRoot":"","sources":["../../../src/pricing/common/rule-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,uBACf,SAAQ,cAAc,CAAC,uBAAuB,CAAC;IAC/C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;CAC1B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"rule-type.js","sourceRoot":"","sources":["../../../src/pricing/common/rule-type.ts"],"names":[],"mappings":""}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @interface
|
3
|
-
*
|
4
|
-
* The details of a legacy region.
|
5
|
-
*/
|
6
|
-
export type RegionDTO__legacy = {
|
7
|
-
/**
|
8
|
-
* The name of the region.
|
9
|
-
*/
|
10
|
-
name: string;
|
11
|
-
/**
|
12
|
-
* The currency code of the region.
|
13
|
-
*/
|
14
|
-
currency_code: string;
|
15
|
-
/**
|
16
|
-
* The tax rate of the region.
|
17
|
-
*/
|
18
|
-
tax_rate?: number;
|
19
|
-
/**
|
20
|
-
* The tax code of the region.
|
21
|
-
*/
|
22
|
-
tax_code?: string | null;
|
23
|
-
/**
|
24
|
-
* Whether gift cards in the region are taxable.
|
25
|
-
*/
|
26
|
-
gift_cards_taxable?: boolean;
|
27
|
-
/**
|
28
|
-
* Whether taxes should be calculated automatically in the region.
|
29
|
-
*/
|
30
|
-
automatic_taxes?: boolean;
|
31
|
-
/**
|
32
|
-
* The associated tax provider's ID.
|
33
|
-
*/
|
34
|
-
tax_provider_id?: string | null;
|
35
|
-
/**
|
36
|
-
* Holds custom data in key-value pairs.
|
37
|
-
*/
|
38
|
-
metadata?: Record<string, unknown>;
|
39
|
-
/**
|
40
|
-
* Whether prices include taxes in the region.
|
41
|
-
*/
|
42
|
-
includes_tax?: boolean;
|
43
|
-
};
|
44
|
-
//# sourceMappingURL=common.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/region__legacy/common.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAE5B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAElC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/region__legacy/common.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/region__legacy/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/region__legacy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
|
@@ -1,279 +0,0 @@
|
|
1
|
-
import { CreateStockLocationInput, FilterableStockLocationProps, StockLocationDTO, UpdateStockLocationInput, UpsertStockLocationInput } from "./common";
|
2
|
-
import { RestoreReturn, SoftDeleteReturn } from "../dal";
|
3
|
-
import { Context } from "../shared-context";
|
4
|
-
import { FindConfig } from "../common/common";
|
5
|
-
import { IModuleService } from "../modules-sdk";
|
6
|
-
/**
|
7
|
-
* The main service interface for the Stock Location Module.
|
8
|
-
*/
|
9
|
-
export interface IStockLocationServiceNext extends IModuleService {
|
10
|
-
/**
|
11
|
-
* This method retrieves a paginated list of stock locations based on optional filters and configuration.
|
12
|
-
*
|
13
|
-
* @param {FilterableStockLocationProps} selector - The filters to apply on the retrieved stock locations.
|
14
|
-
* @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
|
15
|
-
* attributes or relations associated with a stock location.
|
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
|
-
*
|
19
|
-
* @example
|
20
|
-
* To retrieve a list of stock locations using their IDs:
|
21
|
-
*
|
22
|
-
* ```ts
|
23
|
-
* const stockLocations = await stockLocationModuleService.list({
|
24
|
-
* id: ["sloc_123", "sloc_321"],
|
25
|
-
* })
|
26
|
-
* ```
|
27
|
-
*
|
28
|
-
* To specify relations that should be retrieved within the stock locations:
|
29
|
-
*
|
30
|
-
* ```ts
|
31
|
-
* const stockLocations = await stockLocationModuleService.list(
|
32
|
-
* {
|
33
|
-
* id: ["sloc_123", "sloc_321"],
|
34
|
-
* },
|
35
|
-
* {
|
36
|
-
* relations: ["address"],
|
37
|
-
* }
|
38
|
-
* )
|
39
|
-
* ```
|
40
|
-
*
|
41
|
-
* By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
42
|
-
*
|
43
|
-
* ```ts
|
44
|
-
* const stockLocations = await stockLocationModuleService.list(
|
45
|
-
* {
|
46
|
-
* id: ["sloc_123", "sloc_321"],
|
47
|
-
* },
|
48
|
-
* {
|
49
|
-
* relations: ["address"],
|
50
|
-
* take: 20,
|
51
|
-
* skip: 2,
|
52
|
-
* }
|
53
|
-
* )
|
54
|
-
* ```
|
55
|
-
*/
|
56
|
-
list(selector: FilterableStockLocationProps, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<StockLocationDTO[]>;
|
57
|
-
/**
|
58
|
-
* This method retrieves a paginated list of stock locations along with the total count of available stock locations satisfying the provided filters.
|
59
|
-
*
|
60
|
-
* @param {FilterableStockLocationProps} selector - The filters to apply on the retrieved stock locations.
|
61
|
-
* @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
|
62
|
-
* attributes or relations associated with a stock location.
|
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.
|
65
|
-
*
|
66
|
-
* @example
|
67
|
-
* To retrieve a list of stock locations using their IDs:
|
68
|
-
*
|
69
|
-
* ```ts
|
70
|
-
* const [stockLocations, count] =
|
71
|
-
* await stockLocationModuleService.list({
|
72
|
-
* id: ["sloc_123", "sloc_321"],
|
73
|
-
* })
|
74
|
-
* ```
|
75
|
-
*
|
76
|
-
* To specify relations that should be retrieved within the stock locations:
|
77
|
-
*
|
78
|
-
* ```ts
|
79
|
-
* const [stockLocations, count] =
|
80
|
-
* await stockLocationModuleService.list(
|
81
|
-
* {
|
82
|
-
* id: ["sloc_123", "sloc_321"],
|
83
|
-
* },
|
84
|
-
* {
|
85
|
-
* relations: ["address"],
|
86
|
-
* }
|
87
|
-
* )
|
88
|
-
* ```
|
89
|
-
*
|
90
|
-
* By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
91
|
-
*
|
92
|
-
* ```ts
|
93
|
-
* const [stockLocations, count] =
|
94
|
-
* await stockLocationModuleService.list(
|
95
|
-
* {
|
96
|
-
* id: ["sloc_123", "sloc_321"],
|
97
|
-
* },
|
98
|
-
* {
|
99
|
-
* relations: ["address"],
|
100
|
-
* take: 20,
|
101
|
-
* skip: 2,
|
102
|
-
* }
|
103
|
-
* )
|
104
|
-
* ```
|
105
|
-
*/
|
106
|
-
listAndCount(selector: FilterableStockLocationProps, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<[StockLocationDTO[], number]>;
|
107
|
-
/**
|
108
|
-
* This method retrieves a stock location by its ID.
|
109
|
-
*
|
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
|
112
|
-
* attributes or relations associated with a 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.
|
115
|
-
*
|
116
|
-
* @example
|
117
|
-
* const stockLocation =
|
118
|
-
* await stockLocationModuleService.retrieve("sloc_123")
|
119
|
-
*/
|
120
|
-
retrieve(id: string, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<StockLocationDTO>;
|
121
|
-
/**
|
122
|
-
* This method creates a stock location.
|
123
|
-
*
|
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.
|
127
|
-
*
|
128
|
-
* @example
|
129
|
-
* const stockLocation = await stockLocationModuleService.create(
|
130
|
-
* {
|
131
|
-
* name: "Warehouse",
|
132
|
-
* address: {
|
133
|
-
* address_1: "1855 Powder Mill Rd",
|
134
|
-
* country_code: "us",
|
135
|
-
* },
|
136
|
-
* }
|
137
|
-
* )
|
138
|
-
*/
|
139
|
-
create(input: CreateStockLocationInput, context?: Context): Promise<StockLocationDTO>;
|
140
|
-
/**
|
141
|
-
* This method creates stock locations.
|
142
|
-
*
|
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.
|
146
|
-
*
|
147
|
-
* @example
|
148
|
-
* const stockLocations =
|
149
|
-
* await stockLocationModuleService.create([
|
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
|
-
create(input: CreateStockLocationInput[], context?: Context): Promise<StockLocationDTO[]>;
|
164
|
-
/**
|
165
|
-
* This method updates or creates stock location service nexts if they don't exist.
|
166
|
-
*
|
167
|
-
* @param {Partial<UpdateStockLocationNextInput>[]} 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.
|
170
|
-
*
|
171
|
-
* @example
|
172
|
-
* {example-code}
|
173
|
-
*/
|
174
|
-
upsert(data: UpsertStockLocationInput[], sharedContext?: Context): Promise<StockLocationDTO[]>;
|
175
|
-
/**
|
176
|
-
* This method updates or creates a stock location service next if it doesn't exist.
|
177
|
-
*
|
178
|
-
* @param {Partial<UpdateStockLocationNextInput>} 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.
|
181
|
-
*
|
182
|
-
* @example
|
183
|
-
* {example-code}
|
184
|
-
*/
|
185
|
-
upsert(data: UpsertStockLocationInput, sharedContext?: Context): Promise<StockLocationDTO>;
|
186
|
-
/**
|
187
|
-
* This method updates existing stock locations.
|
188
|
-
*
|
189
|
-
* @param {UpdateStockLocationNextInput[]} 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.
|
192
|
-
*
|
193
|
-
* @example
|
194
|
-
* const stockLocations =
|
195
|
-
* await stockLocationModuleService.update([
|
196
|
-
* {
|
197
|
-
* id: "sloc_123",
|
198
|
-
* name: "Warehouse",
|
199
|
-
* },
|
200
|
-
* {
|
201
|
-
* id: "sloc_321",
|
202
|
-
* address_id: "laddr_123",
|
203
|
-
* },
|
204
|
-
* ])
|
205
|
-
*/
|
206
|
-
update(id: string, input: UpdateStockLocationInput, context?: Context): Promise<StockLocationDTO>;
|
207
|
-
/**
|
208
|
-
* This method updates existing stock locations matching the specified filters.
|
209
|
-
*
|
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.
|
214
|
-
*
|
215
|
-
* @example
|
216
|
-
* const stockLocations =
|
217
|
-
* await stockLocationModuleService.update(
|
218
|
-
* {
|
219
|
-
* name: "Warehouse",
|
220
|
-
* },
|
221
|
-
* {
|
222
|
-
* address_id: "laddr_123",
|
223
|
-
* }
|
224
|
-
* )
|
225
|
-
*/
|
226
|
-
update(selector: FilterableStockLocationProps, input: UpdateStockLocationInput, context?: Context): Promise<StockLocationDTO[]>;
|
227
|
-
/**
|
228
|
-
* This method deletes a stock location by its ID.
|
229
|
-
*
|
230
|
-
* @param {string} id - The ID of the stock location.
|
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.
|
233
|
-
*
|
234
|
-
* @example
|
235
|
-
* await stockLocationModuleService.delete("sloc_123")
|
236
|
-
*/
|
237
|
-
delete(id: string | string[], context?: Context): Promise<void>;
|
238
|
-
/**
|
239
|
-
* This method soft deletes stock locations by their IDs.
|
240
|
-
*
|
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.
|
247
|
-
*
|
248
|
-
* If there are no related records, the promise resolves to `void`.
|
249
|
-
*
|
250
|
-
* @example
|
251
|
-
* await stockLocationModuleService.softDelete([
|
252
|
-
* "sloc_123",
|
253
|
-
* "sloc_321",
|
254
|
-
* ])
|
255
|
-
*/
|
256
|
-
softDelete<TReturnableLinkableKeys extends string = string>(stockLocationIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
257
|
-
/**
|
258
|
-
* This method restores soft deleted stock locations by their IDs.
|
259
|
-
*
|
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.
|
268
|
-
*
|
269
|
-
* If there are no related records restored, the promise resolves to `void`.
|
270
|
-
*
|
271
|
-
* @example
|
272
|
-
* await stockLocationModuleService.restore([
|
273
|
-
* "sloc_123",
|
274
|
-
* "sloc_321",
|
275
|
-
* ])
|
276
|
-
*/
|
277
|
-
restore<TReturnableLinkableKeys extends string = string>(stockLocationIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
278
|
-
}
|
279
|
-
//# sourceMappingURL=service-next.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"service-next.d.ts","sourceRoot":"","sources":["../../src/stock-location/service-next.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,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACH,IAAI,CACF,QAAQ,EAAE,4BAA4B,EACtC,MAAM,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,EACrC,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAA;IAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;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C/B,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAA;IAE9B;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE/D;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACxD,gBAAgB,EAAE,MAAM,EAAE,EAC1B,MAAM,CAAC,EAAE,gBAAgB,CAAC,uBAAuB,CAAC,EAClD,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;IAE3C;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACrD,gBAAgB,EAAE,MAAM,EAAE,EAC1B,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 +0,0 @@
|
|
1
|
-
{"version":3,"file":"service-next.js","sourceRoot":"","sources":["../../src/stock-location/service-next.ts"],"names":[],"mappings":""}
|
File without changes
|
File without changes
|