@medusajs/types 1.12.0-snapshot-20240531102054 → 1.12.0-snapshot-20240701122250
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-key/service.d.ts +24 -24
- package/dist/api-key/service.d.ts.map +1 -1
- package/dist/auth/common/auth-identity.d.ts +77 -21
- package/dist/auth/common/auth-identity.d.ts.map +1 -1
- package/dist/auth/common/provider.d.ts +2 -1
- package/dist/auth/common/provider.d.ts.map +1 -1
- package/dist/auth/provider.d.ts +6 -3
- package/dist/auth/provider.d.ts.map +1 -1
- package/dist/auth/service.d.ts +30 -30
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bundles.d.ts +2 -1
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +3 -2
- package/dist/bundles.js.map +1 -1
- package/dist/cart/mutations.d.ts +8 -0
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/service.d.ts +30 -52
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/common/batch.d.ts +3 -3
- package/dist/common/batch.d.ts.map +1 -1
- package/dist/common/common.d.ts +6 -1
- package/dist/common/common.d.ts.map +1 -1
- package/dist/currency/service.d.ts +9 -9
- package/dist/currency/service.d.ts.map +1 -1
- package/dist/customer/mutations.d.ts +27 -26
- package/dist/customer/mutations.d.ts.map +1 -1
- package/dist/customer/service.d.ts +40 -43
- package/dist/customer/service.d.ts.map +1 -1
- package/dist/dal/repository-service.d.ts +15 -3
- package/dist/dal/repository-service.d.ts.map +1 -1
- package/dist/dml/index.d.ts +161 -0
- package/dist/dml/index.d.ts.map +1 -0
- package/dist/dml/index.js +5 -0
- package/dist/dml/index.js.map +1 -0
- package/dist/event-bus/common.d.ts +17 -25
- package/dist/event-bus/common.d.ts.map +1 -1
- package/dist/event-bus/event-bus-module.d.ts +4 -4
- package/dist/event-bus/event-bus-module.d.ts.map +1 -1
- package/dist/event-bus/event-bus.d.ts +2 -4
- package/dist/event-bus/event-bus.d.ts.map +1 -1
- package/dist/file/provider.d.ts +1 -8
- package/dist/file/provider.d.ts.map +1 -1
- package/dist/file/service.d.ts +12 -12
- package/dist/file/service.d.ts.map +1 -1
- package/dist/fulfillment/mutations/fulfillment.d.ts +3 -1
- package/dist/fulfillment/mutations/fulfillment.d.ts.map +1 -1
- package/dist/fulfillment/mutations/service-zone.d.ts +3 -3
- package/dist/fulfillment/mutations/service-zone.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-option.d.ts +0 -22
- package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-profile.d.ts +20 -2
- package/dist/fulfillment/mutations/shipping-profile.d.ts.map +1 -1
- package/dist/fulfillment/service.d.ts +71 -32
- package/dist/fulfillment/service.d.ts.map +1 -1
- package/dist/http/currency/admin/entities.d.ts +14 -0
- package/dist/http/currency/admin/entities.d.ts.map +1 -0
- package/dist/http/{fulfillment/admin/geo-zone.js → currency/admin/entities.js} +1 -1
- package/dist/http/currency/admin/entities.js.map +1 -0
- package/dist/http/currency/admin/index.d.ts +2 -0
- package/dist/http/currency/admin/index.d.ts.map +1 -0
- package/dist/http/{tax → currency}/admin/index.js +1 -2
- package/dist/http/currency/admin/index.js.map +1 -0
- package/dist/http/currency/index.d.ts.map +1 -0
- package/dist/http/currency/index.js.map +1 -0
- package/dist/http/file/admin.d.ts +5 -0
- package/dist/http/file/admin.d.ts.map +1 -0
- package/dist/http/{product → file}/admin.js.map +1 -1
- package/dist/http/file/common.d.ts +11 -0
- package/dist/http/file/common.d.ts.map +1 -0
- package/dist/{inventory → http/file}/common.js.map +1 -1
- package/dist/http/file/index.d.ts +3 -0
- package/dist/http/file/index.d.ts.map +1 -0
- package/dist/{inventory/bundle.js → http/file/index.js} +3 -3
- package/dist/http/file/index.js.map +1 -0
- package/dist/http/file/store.d.ts +4 -0
- package/dist/http/file/store.d.ts.map +1 -0
- package/dist/http/{product → file}/store.js.map +1 -1
- package/dist/http/fulfillment/admin/entitites.d.ts +62 -0
- package/dist/http/fulfillment/admin/entitites.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/entitites.js +3 -0
- package/dist/http/fulfillment/admin/entitites.js.map +1 -0
- package/dist/http/fulfillment/admin/index.d.ts +3 -12
- package/dist/http/fulfillment/admin/index.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/index.js +3 -12
- package/dist/http/fulfillment/admin/index.js.map +1 -1
- package/dist/http/fulfillment/admin/payloads.d.ts +41 -0
- package/dist/http/fulfillment/admin/payloads.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/payloads.js +3 -0
- package/dist/http/fulfillment/admin/payloads.js.map +1 -0
- package/dist/http/fulfillment/admin/responses.d.ts +5 -0
- package/dist/http/fulfillment/admin/responses.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/responses.js +3 -0
- package/dist/http/fulfillment/admin/responses.js.map +1 -0
- package/dist/http/fulfillment-provider/admin/entities.d.ts +5 -0
- package/dist/http/fulfillment-provider/admin/entities.d.ts.map +1 -0
- package/dist/http/fulfillment-provider/admin/entities.js +3 -0
- package/dist/http/fulfillment-provider/admin/entities.js.map +1 -0
- package/dist/http/fulfillment-provider/admin/index.d.ts +4 -0
- package/dist/http/fulfillment-provider/admin/index.d.ts.map +1 -0
- package/dist/http/fulfillment-provider/admin/index.js +20 -0
- package/dist/http/fulfillment-provider/admin/index.js.map +1 -0
- package/dist/http/fulfillment-provider/admin/queries.d.ts +7 -0
- package/dist/http/fulfillment-provider/admin/queries.d.ts.map +1 -0
- package/dist/http/{pricing/price.js → fulfillment-provider/admin/queries.js} +1 -1
- package/dist/http/fulfillment-provider/admin/queries.js.map +1 -0
- package/dist/http/fulfillment-provider/admin/responses.d.ts +7 -0
- package/dist/http/fulfillment-provider/admin/responses.d.ts.map +1 -0
- package/dist/http/{inventory/inventory.js → fulfillment-provider/admin/responses.js} +1 -1
- package/dist/http/fulfillment-provider/admin/responses.js.map +1 -0
- package/dist/http/fulfillment-provider/index.d.ts +2 -0
- package/dist/http/fulfillment-provider/index.d.ts.map +1 -0
- package/dist/{region__legacy → http/fulfillment-provider}/index.js +1 -1
- package/dist/http/fulfillment-provider/index.js.map +1 -0
- package/dist/http/fulfillment-set/admin/entities.d.ts +33 -0
- package/dist/http/fulfillment-set/admin/entities.d.ts.map +1 -0
- package/dist/http/fulfillment-set/admin/entities.js +3 -0
- package/dist/http/fulfillment-set/admin/entities.js.map +1 -0
- package/dist/http/fulfillment-set/admin/index.d.ts +4 -0
- package/dist/http/fulfillment-set/admin/index.d.ts.map +1 -0
- package/dist/http/fulfillment-set/admin/index.js +20 -0
- package/dist/http/fulfillment-set/admin/index.js.map +1 -0
- package/dist/http/fulfillment-set/admin/payloads.d.ts +56 -0
- package/dist/http/fulfillment-set/admin/payloads.d.ts.map +1 -0
- package/dist/http/fulfillment-set/admin/payloads.js +3 -0
- package/dist/http/fulfillment-set/admin/payloads.js.map +1 -0
- package/dist/http/fulfillment-set/admin/queries.d.ts +12 -0
- package/dist/http/fulfillment-set/admin/queries.d.ts.map +1 -0
- package/dist/http/{product/admin.js → fulfillment-set/admin/queries.js} +1 -1
- package/dist/http/fulfillment-set/admin/queries.js.map +1 -0
- package/dist/http/fulfillment-set/admin/responses.d.ts +13 -0
- package/dist/http/fulfillment-set/admin/responses.d.ts.map +1 -0
- package/dist/http/fulfillment-set/admin/responses.js +3 -0
- package/dist/http/fulfillment-set/admin/responses.js.map +1 -0
- package/dist/http/fulfillment-set/index.d.ts +2 -0
- package/dist/http/fulfillment-set/index.d.ts.map +1 -0
- package/dist/http/fulfillment-set/index.js +18 -0
- package/dist/http/fulfillment-set/index.js.map +1 -0
- package/dist/http/index.d.ts +12 -1
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +12 -1
- package/dist/http/index.js.map +1 -1
- package/dist/http/inventory/{inventory.d.ts → admin/entities.d.ts} +2 -10
- package/dist/http/inventory/admin/entities.d.ts.map +1 -0
- package/dist/http/inventory/admin/entities.js +3 -0
- package/dist/http/inventory/admin/entities.js.map +1 -0
- package/dist/http/inventory/admin/index.d.ts +5 -0
- package/dist/http/inventory/admin/index.d.ts.map +1 -0
- package/dist/http/inventory/admin/index.js +21 -0
- package/dist/http/inventory/admin/index.js.map +1 -0
- package/dist/http/inventory/admin/payloads.d.ts +19 -0
- package/dist/http/inventory/admin/payloads.d.ts.map +1 -0
- package/dist/http/inventory/admin/payloads.js +3 -0
- package/dist/http/inventory/admin/payloads.js.map +1 -0
- package/dist/http/inventory/admin/queries.d.ts +18 -0
- package/dist/http/inventory/admin/queries.d.ts.map +1 -0
- package/dist/http/inventory/admin/queries.js +3 -0
- package/dist/http/inventory/admin/queries.js.map +1 -0
- package/dist/http/inventory/admin/responses.d.ts +10 -0
- package/dist/http/inventory/admin/responses.d.ts.map +1 -0
- package/dist/http/inventory/admin/responses.js +3 -0
- package/dist/http/inventory/admin/responses.js.map +1 -0
- package/dist/http/inventory/index.d.ts +1 -2
- package/dist/http/inventory/index.d.ts.map +1 -1
- package/dist/http/inventory/index.js +1 -2
- package/dist/http/inventory/index.js.map +1 -1
- package/dist/http/inventory-level/admin/entities.d.ts +11 -0
- package/dist/http/inventory-level/admin/entities.d.ts.map +1 -0
- package/dist/http/inventory-level/admin/entities.js +3 -0
- package/dist/http/inventory-level/admin/entities.js.map +1 -0
- package/dist/http/inventory-level/admin/index.d.ts +5 -0
- package/dist/http/inventory-level/admin/index.d.ts.map +1 -0
- package/dist/http/inventory-level/admin/index.js +21 -0
- package/dist/http/inventory-level/admin/index.js.map +1 -0
- package/dist/http/inventory-level/admin/payloads.d.ts +15 -0
- package/dist/http/inventory-level/admin/payloads.d.ts.map +1 -0
- package/dist/http/inventory-level/admin/payloads.js +3 -0
- package/dist/http/inventory-level/admin/payloads.js.map +1 -0
- package/dist/http/inventory-level/admin/queries.d.ts +5 -0
- package/dist/http/inventory-level/admin/queries.d.ts.map +1 -0
- package/dist/http/inventory-level/admin/queries.js +3 -0
- package/dist/http/inventory-level/admin/queries.js.map +1 -0
- package/dist/http/inventory-level/admin/responses.d.ts +9 -0
- package/dist/http/inventory-level/admin/responses.d.ts.map +1 -0
- package/dist/http/inventory-level/admin/responses.js +3 -0
- package/dist/http/inventory-level/admin/responses.js.map +1 -0
- package/dist/http/inventory-level/index.d.ts +2 -0
- package/dist/http/inventory-level/index.d.ts.map +1 -0
- package/dist/http/inventory-level/index.js +18 -0
- package/dist/http/inventory-level/index.js.map +1 -0
- package/dist/http/order/admin.d.ts +15 -1
- package/dist/http/order/admin.d.ts.map +1 -1
- package/dist/http/order/common.d.ts +2 -0
- package/dist/http/order/common.d.ts.map +1 -1
- package/dist/http/price-list/admin/entities.d.ts +21 -0
- package/dist/http/price-list/admin/entities.d.ts.map +1 -0
- package/dist/http/price-list/admin/entities.js +3 -0
- package/dist/http/price-list/admin/entities.js.map +1 -0
- package/dist/http/price-list/admin/index.d.ts +5 -0
- package/dist/http/price-list/admin/index.d.ts.map +1 -0
- package/dist/http/price-list/admin/index.js +21 -0
- package/dist/http/price-list/admin/index.js.map +1 -0
- package/dist/http/price-list/admin/payloads.d.ts +46 -0
- package/dist/http/price-list/admin/payloads.d.ts.map +1 -0
- package/dist/http/price-list/admin/payloads.js +3 -0
- package/dist/http/price-list/admin/payloads.js.map +1 -0
- package/dist/http/price-list/admin/queries.d.ts +14 -0
- package/dist/http/price-list/admin/queries.d.ts.map +1 -0
- package/dist/http/price-list/admin/queries.js +3 -0
- package/dist/http/price-list/admin/queries.js.map +1 -0
- package/dist/http/price-list/admin/responses.d.ts +12 -0
- package/dist/http/price-list/admin/responses.d.ts.map +1 -0
- package/dist/http/price-list/admin/responses.js +3 -0
- package/dist/http/price-list/admin/responses.js.map +1 -0
- package/dist/http/price-list/index.d.ts +2 -0
- package/dist/http/price-list/index.d.ts.map +1 -0
- package/dist/http/price-list/index.js +18 -0
- package/dist/http/price-list/index.js.map +1 -0
- package/dist/http/pricing/admin/entities.d.ts +32 -0
- package/dist/http/pricing/admin/entities.d.ts.map +1 -0
- package/dist/http/pricing/admin/entities.js +3 -0
- package/dist/http/pricing/admin/entities.js.map +1 -0
- package/dist/http/pricing/admin/index.d.ts +2 -0
- package/dist/http/pricing/admin/index.d.ts.map +1 -0
- package/dist/http/pricing/admin/index.js +18 -0
- package/dist/http/pricing/admin/index.js.map +1 -0
- package/dist/http/pricing/index.d.ts +1 -1
- package/dist/http/pricing/index.js +1 -1
- package/dist/http/product/admin/entitites.d.ts +26 -0
- package/dist/http/product/admin/entitites.d.ts.map +1 -0
- package/dist/http/product/admin/entitites.js +3 -0
- package/dist/http/product/admin/entitites.js.map +1 -0
- package/dist/http/product/admin/index.d.ts +5 -0
- package/dist/http/product/admin/index.d.ts.map +1 -0
- package/dist/http/product/admin/index.js +21 -0
- package/dist/http/product/admin/index.js.map +1 -0
- package/dist/http/product/admin/payloads.d.ts +152 -0
- package/dist/http/product/admin/payloads.d.ts.map +1 -0
- package/dist/http/product/admin/payloads.js +3 -0
- package/dist/http/product/admin/payloads.js.map +1 -0
- package/dist/http/product/admin/queries.d.ts +12 -0
- package/dist/http/product/admin/queries.d.ts.map +1 -0
- package/dist/http/product/admin/queries.js +3 -0
- package/dist/http/product/admin/queries.js.map +1 -0
- package/dist/http/product/admin/responses.d.ts +35 -0
- package/dist/http/product/admin/responses.d.ts.map +1 -0
- package/dist/http/product/admin/responses.js +3 -0
- package/dist/http/product/admin/responses.js.map +1 -0
- package/dist/http/product/common.d.ts +72 -106
- package/dist/http/product/common.d.ts.map +1 -1
- package/dist/http/product/store/entitites.d.ts +19 -0
- package/dist/http/product/store/entitites.d.ts.map +1 -0
- package/dist/http/product/store/entitites.js +3 -0
- package/dist/http/product/store/entitites.js.map +1 -0
- package/dist/http/product/store/index.d.ts +4 -0
- package/dist/http/product/store/index.d.ts.map +1 -0
- package/dist/http/product/store/index.js +20 -0
- package/dist/http/product/store/index.js.map +1 -0
- package/dist/http/product/store/queries.d.ts +13 -0
- package/dist/http/product/store/queries.d.ts.map +1 -0
- package/dist/http/product/store/queries.js +3 -0
- package/dist/http/product/store/queries.js.map +1 -0
- package/dist/http/product/store/responses.d.ts +9 -0
- package/dist/http/product/store/responses.d.ts.map +1 -0
- package/dist/http/product/store/responses.js +3 -0
- package/dist/http/product/store/responses.js.map +1 -0
- package/dist/http/product-category/admin/entities.d.ts +8 -0
- package/dist/http/product-category/admin/entities.d.ts.map +1 -0
- package/dist/http/product-category/admin/entities.js +3 -0
- package/dist/http/product-category/admin/entities.js.map +1 -0
- package/dist/http/product-category/admin/index.d.ts +5 -0
- package/dist/http/product-category/admin/index.d.ts.map +1 -0
- package/dist/http/product-category/admin/index.js +21 -0
- package/dist/http/product-category/admin/index.js.map +1 -0
- package/dist/http/product-category/admin/payloads.d.ts +25 -0
- package/dist/http/product-category/admin/payloads.d.ts.map +1 -0
- package/dist/http/product-category/admin/payloads.js +3 -0
- package/dist/http/product-category/admin/payloads.js.map +1 -0
- package/dist/http/product-category/admin/queries.d.ts +8 -0
- package/dist/http/product-category/admin/queries.d.ts.map +1 -0
- package/dist/http/product-category/admin/queries.js +3 -0
- package/dist/http/product-category/admin/queries.js.map +1 -0
- package/dist/http/product-category/admin/responses.d.ts +12 -0
- package/dist/http/product-category/admin/responses.d.ts.map +1 -0
- package/dist/http/product-category/admin/responses.js +3 -0
- package/dist/http/product-category/admin/responses.js.map +1 -0
- package/dist/http/product-category/common.d.ts +31 -7
- package/dist/http/product-category/common.d.ts.map +1 -1
- package/dist/http/product-category/store/entities.d.ts +6 -0
- package/dist/http/product-category/store/entities.d.ts.map +1 -0
- package/dist/http/product-category/store/entities.js +3 -0
- package/dist/http/product-category/store/entities.js.map +1 -0
- package/dist/http/product-category/store/index.d.ts +4 -0
- package/dist/http/product-category/store/index.d.ts.map +1 -0
- package/dist/http/product-category/store/index.js +20 -0
- package/dist/http/product-category/store/index.js.map +1 -0
- package/dist/http/product-category/store/queries.d.ts +6 -0
- package/dist/http/product-category/store/queries.d.ts.map +1 -0
- package/dist/http/product-category/store/queries.js +3 -0
- package/dist/http/product-category/store/queries.js.map +1 -0
- package/dist/http/product-category/store/responses.d.ts +10 -0
- package/dist/http/product-category/store/responses.d.ts.map +1 -0
- package/dist/http/product-category/store/responses.js +3 -0
- package/dist/http/product-category/store/responses.js.map +1 -0
- package/dist/http/product-type/admin/entities.d.ts +4 -0
- package/dist/http/product-type/admin/entities.d.ts.map +1 -0
- package/dist/http/product-type/admin/entities.js +3 -0
- package/dist/http/product-type/admin/entities.js.map +1 -0
- package/dist/http/product-type/admin/index.d.ts +5 -0
- package/dist/http/product-type/admin/index.d.ts.map +1 -0
- package/dist/http/product-type/admin/index.js +21 -0
- package/dist/http/product-type/admin/index.js.map +1 -0
- package/dist/http/product-type/admin/payloads.d.ts +9 -0
- package/dist/http/product-type/admin/payloads.d.ts.map +1 -0
- package/dist/http/product-type/admin/payloads.js +3 -0
- package/dist/http/product-type/admin/payloads.js.map +1 -0
- package/dist/http/product-type/admin/queries.d.ts +13 -0
- package/dist/http/product-type/admin/queries.d.ts.map +1 -0
- package/dist/http/product-type/admin/queries.js +3 -0
- package/dist/http/product-type/admin/queries.js.map +1 -0
- package/dist/http/product-type/admin/responses.d.ts +12 -0
- package/dist/http/product-type/admin/responses.d.ts.map +1 -0
- package/dist/http/product-type/admin/responses.js +3 -0
- package/dist/http/product-type/admin/responses.js.map +1 -0
- package/dist/http/product-type/common.d.ts +9 -0
- package/dist/http/product-type/common.d.ts.map +1 -0
- package/dist/{region__legacy → http/product-type}/common.js.map +1 -1
- package/dist/http/product-type/index.d.ts +3 -0
- package/dist/http/product-type/index.d.ts.map +1 -0
- package/dist/http/product-type/index.js +19 -0
- package/dist/http/product-type/index.js.map +1 -0
- package/dist/http/product-type/store/entities.d.ts +4 -0
- package/dist/http/product-type/store/entities.d.ts.map +1 -0
- package/dist/http/product-type/store/entities.js +3 -0
- package/dist/http/product-type/store/entities.js.map +1 -0
- package/dist/http/product-type/store/index.d.ts +2 -0
- package/dist/http/product-type/store/index.d.ts.map +1 -0
- package/dist/http/product-type/store/index.js +18 -0
- package/dist/http/product-type/store/index.js.map +1 -0
- package/dist/http/promotion/admin/promotion-rule.d.ts +1 -1
- package/dist/http/promotion/admin/promotion-rule.d.ts.map +1 -1
- package/dist/http/promotion/admin/rule-attribute-options.d.ts +5 -0
- package/dist/http/promotion/admin/rule-attribute-options.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/entities.d.ts +11 -0
- package/dist/http/sales-channel/admin/entities.d.ts.map +1 -0
- package/dist/http/sales-channel/admin/entities.js +3 -0
- package/dist/http/sales-channel/admin/entities.js.map +1 -0
- package/dist/http/sales-channel/admin/index.d.ts +4 -1
- package/dist/http/sales-channel/admin/index.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/index.js +4 -1
- package/dist/http/sales-channel/admin/index.js.map +1 -1
- package/dist/http/sales-channel/admin/payloads.d.ts +17 -0
- package/dist/http/sales-channel/admin/payloads.d.ts.map +1 -0
- package/dist/http/sales-channel/admin/payloads.js +3 -0
- package/dist/http/sales-channel/admin/payloads.js.map +1 -0
- package/dist/http/sales-channel/admin/queries.d.ts +15 -0
- package/dist/http/sales-channel/admin/queries.d.ts.map +1 -0
- package/dist/http/sales-channel/admin/queries.js +3 -0
- package/dist/http/sales-channel/admin/queries.js.map +1 -0
- package/dist/http/sales-channel/admin/responses.d.ts +11 -0
- package/dist/http/sales-channel/admin/responses.d.ts.map +1 -0
- package/dist/http/sales-channel/admin/responses.js +3 -0
- package/dist/http/sales-channel/admin/responses.js.map +1 -0
- package/dist/http/shipping-option/admin/entities.d.ts +54 -0
- package/dist/http/shipping-option/admin/entities.d.ts.map +1 -0
- package/dist/http/shipping-option/admin/entities.js +3 -0
- package/dist/http/shipping-option/admin/entities.js.map +1 -0
- package/dist/http/shipping-option/admin/index.d.ts +5 -0
- package/dist/http/shipping-option/admin/index.d.ts.map +1 -0
- package/dist/http/shipping-option/admin/index.js +21 -0
- package/dist/http/shipping-option/admin/index.js.map +1 -0
- package/dist/http/shipping-option/admin/payloads.d.ts +60 -0
- package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -0
- package/dist/http/shipping-option/admin/payloads.js +3 -0
- package/dist/http/shipping-option/admin/payloads.js.map +1 -0
- package/dist/http/shipping-option/admin/queries.d.ts +14 -0
- package/dist/http/shipping-option/admin/queries.d.ts.map +1 -0
- package/dist/http/shipping-option/admin/queries.js +3 -0
- package/dist/http/shipping-option/admin/queries.js.map +1 -0
- package/dist/http/shipping-option/admin/responses.d.ts +20 -0
- package/dist/http/shipping-option/admin/responses.d.ts.map +1 -0
- package/dist/http/shipping-option/admin/responses.js +3 -0
- package/dist/http/shipping-option/admin/responses.js.map +1 -0
- package/dist/http/shipping-option/index.d.ts +2 -0
- package/dist/http/shipping-option/index.d.ts.map +1 -0
- package/dist/http/shipping-option/index.js +18 -0
- package/dist/http/shipping-option/index.js.map +1 -0
- package/dist/http/shipping-profile/admin/entities.d.ts +10 -0
- package/dist/http/shipping-profile/admin/entities.d.ts.map +1 -0
- package/dist/http/shipping-profile/admin/entities.js +3 -0
- package/dist/http/shipping-profile/admin/entities.js.map +1 -0
- package/dist/http/shipping-profile/admin/index.d.ts +5 -0
- package/dist/http/shipping-profile/admin/index.d.ts.map +1 -0
- package/dist/http/shipping-profile/admin/index.js +21 -0
- package/dist/http/shipping-profile/admin/index.js.map +1 -0
- package/dist/http/shipping-profile/admin/payloads.d.ts +11 -0
- package/dist/http/shipping-profile/admin/payloads.d.ts.map +1 -0
- package/dist/http/shipping-profile/admin/payloads.js +3 -0
- package/dist/http/shipping-profile/admin/payloads.js.map +1 -0
- package/dist/http/shipping-profile/admin/queries.d.ts +14 -0
- package/dist/http/shipping-profile/admin/queries.d.ts.map +1 -0
- package/dist/http/shipping-profile/admin/queries.js +3 -0
- package/dist/http/shipping-profile/admin/queries.js.map +1 -0
- package/dist/http/shipping-profile/admin/responses.d.ts +11 -0
- package/dist/http/shipping-profile/admin/responses.d.ts.map +1 -0
- package/dist/http/shipping-profile/admin/responses.js +3 -0
- package/dist/http/shipping-profile/admin/responses.js.map +1 -0
- package/dist/http/shipping-profile/index.d.ts +2 -0
- package/dist/http/shipping-profile/index.d.ts.map +1 -0
- package/dist/http/shipping-profile/index.js +18 -0
- package/dist/http/shipping-profile/index.js.map +1 -0
- package/dist/http/stock-locations/admin/entities.d.ts +22 -0
- package/dist/http/stock-locations/admin/entities.d.ts.map +1 -0
- package/dist/http/stock-locations/admin/entities.js +3 -0
- package/dist/http/stock-locations/admin/entities.js.map +1 -0
- package/dist/http/stock-locations/admin/index.d.ts +5 -0
- package/dist/http/stock-locations/admin/index.d.ts.map +1 -0
- package/dist/http/stock-locations/admin/index.js +21 -0
- package/dist/http/stock-locations/admin/index.js.map +1 -0
- package/dist/http/stock-locations/admin/payloads.d.ts +32 -0
- package/dist/http/stock-locations/admin/payloads.d.ts.map +1 -0
- package/dist/http/stock-locations/admin/payloads.js +3 -0
- package/dist/http/stock-locations/admin/payloads.js.map +1 -0
- package/dist/http/stock-locations/admin/queries.d.ts +11 -0
- package/dist/http/stock-locations/admin/queries.d.ts.map +1 -0
- package/dist/http/stock-locations/admin/queries.js +3 -0
- package/dist/http/stock-locations/admin/queries.js.map +1 -0
- package/dist/http/stock-locations/admin/responses.d.ts +12 -0
- package/dist/http/stock-locations/admin/responses.d.ts.map +1 -0
- package/dist/http/stock-locations/admin/responses.js +3 -0
- package/dist/http/stock-locations/admin/responses.js.map +1 -0
- package/dist/http/stock-locations/index.d.ts +1 -1
- package/dist/http/stock-locations/index.d.ts.map +1 -1
- package/dist/http/stock-locations/index.js +1 -1
- package/dist/http/stock-locations/index.js.map +1 -1
- package/dist/http/store/admin/entities.d.ts +23 -0
- package/dist/http/store/admin/entities.d.ts.map +1 -0
- package/dist/http/store/admin/entities.js +3 -0
- package/dist/http/store/admin/entities.js.map +1 -0
- package/dist/http/store/admin/index.d.ts +5 -0
- package/dist/http/store/admin/index.d.ts.map +1 -0
- package/dist/http/store/admin/index.js +21 -0
- package/dist/http/store/admin/index.js.map +1 -0
- package/dist/http/store/admin/payloads.d.ts +14 -0
- package/dist/http/store/admin/payloads.d.ts.map +1 -0
- package/dist/http/store/admin/payloads.js +3 -0
- package/dist/http/store/admin/payloads.js.map +1 -0
- package/dist/http/store/admin/queries.d.ts +10 -0
- package/dist/http/store/admin/queries.d.ts.map +1 -0
- package/dist/http/store/admin/queries.js +3 -0
- package/dist/http/store/admin/queries.js.map +1 -0
- package/dist/http/store/admin/responses.d.ts +10 -0
- package/dist/http/store/admin/responses.d.ts.map +1 -0
- package/dist/http/store/admin/responses.js +3 -0
- package/dist/http/store/admin/responses.js.map +1 -0
- package/dist/http/store/index.d.ts +2 -0
- package/dist/http/store/index.d.ts.map +1 -0
- package/dist/http/store/index.js +18 -0
- package/dist/http/store/index.js.map +1 -0
- package/dist/http/tax-rate/admin/entities.d.ts +22 -0
- package/dist/http/tax-rate/admin/entities.d.ts.map +1 -0
- package/dist/http/tax-rate/admin/entities.js +3 -0
- package/dist/http/tax-rate/admin/entities.js.map +1 -0
- package/dist/http/tax-rate/admin/index.d.ts +5 -0
- package/dist/http/tax-rate/admin/index.d.ts.map +1 -0
- package/dist/http/tax-rate/admin/index.js +21 -0
- package/dist/http/tax-rate/admin/index.js.map +1 -0
- package/dist/http/tax-rate/admin/payloads.d.ts +25 -0
- package/dist/http/tax-rate/admin/payloads.d.ts.map +1 -0
- package/dist/http/tax-rate/admin/payloads.js +3 -0
- package/dist/http/tax-rate/admin/payloads.js.map +1 -0
- package/dist/http/tax-rate/admin/queries.d.ts +16 -0
- package/dist/http/tax-rate/admin/queries.d.ts.map +1 -0
- package/dist/http/tax-rate/admin/queries.js +3 -0
- package/dist/http/tax-rate/admin/queries.js.map +1 -0
- package/dist/http/tax-rate/admin/responses.d.ts +11 -0
- package/dist/http/tax-rate/admin/responses.d.ts.map +1 -0
- package/dist/http/tax-rate/admin/responses.js +3 -0
- package/dist/http/tax-rate/admin/responses.js.map +1 -0
- package/dist/http/tax-rate/index.d.ts +2 -0
- package/dist/http/tax-rate/index.d.ts.map +1 -0
- package/dist/http/tax-rate/index.js +18 -0
- package/dist/http/tax-rate/index.js.map +1 -0
- package/dist/http/tax-region/admin/entities.d.ts +21 -0
- package/dist/http/tax-region/admin/entities.d.ts.map +1 -0
- package/dist/http/tax-region/admin/entities.js +3 -0
- package/dist/http/tax-region/admin/entities.js.map +1 -0
- package/dist/http/tax-region/admin/index.d.ts +5 -0
- package/dist/http/tax-region/admin/index.d.ts.map +1 -0
- package/dist/http/tax-region/admin/index.js +21 -0
- package/dist/http/tax-region/admin/index.js.map +1 -0
- package/dist/http/tax-region/admin/payloads.d.ts +14 -0
- package/dist/http/tax-region/admin/payloads.d.ts.map +1 -0
- package/dist/http/tax-region/admin/payloads.js +3 -0
- package/dist/http/tax-region/admin/payloads.js.map +1 -0
- package/dist/http/tax-region/admin/queries.d.ts +14 -0
- package/dist/http/tax-region/admin/queries.d.ts.map +1 -0
- package/dist/http/tax-region/admin/queries.js +3 -0
- package/dist/http/tax-region/admin/queries.js.map +1 -0
- package/dist/http/tax-region/admin/responses.d.ts +11 -0
- package/dist/http/tax-region/admin/responses.d.ts.map +1 -0
- package/dist/http/tax-region/admin/responses.js +3 -0
- package/dist/http/tax-region/admin/responses.js.map +1 -0
- package/dist/http/tax-region/index.d.ts +2 -0
- package/dist/http/tax-region/index.d.ts.map +1 -0
- package/dist/http/tax-region/index.js +18 -0
- package/dist/http/tax-region/index.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inventory/common/reservation-item.d.ts +5 -1
- package/dist/inventory/common/reservation-item.d.ts.map +1 -1
- package/dist/inventory/index.d.ts +1 -2
- package/dist/inventory/index.d.ts.map +1 -1
- package/dist/inventory/index.js +1 -15
- package/dist/inventory/index.js.map +1 -1
- package/dist/inventory/mutations/inventory-level.d.ts +0 -4
- package/dist/inventory/mutations/inventory-level.d.ts.map +1 -1
- package/dist/inventory/mutations/reservation-item.d.ts +11 -7
- package/dist/inventory/mutations/reservation-item.d.ts.map +1 -1
- package/dist/inventory/service.d.ts +671 -640
- package/dist/inventory/service.d.ts.map +1 -1
- package/dist/joiner/index.d.ts +5 -2
- package/dist/joiner/index.d.ts.map +1 -1
- package/dist/modules-sdk/index.d.ts +17 -11
- package/dist/modules-sdk/index.d.ts.map +1 -1
- package/dist/modules-sdk/index.js +1 -1
- package/dist/modules-sdk/index.js.map +1 -1
- package/dist/modules-sdk/{internal-module-service.d.ts → medusa-internal-service.d.ts} +22 -18
- package/dist/modules-sdk/medusa-internal-service.d.ts.map +1 -0
- package/dist/{http/fulfillment/admin/fulfillment-label.js → modules-sdk/medusa-internal-service.js} +1 -1
- package/dist/modules-sdk/medusa-internal-service.js.map +1 -0
- package/dist/notification/provider.d.ts +0 -6
- package/dist/notification/provider.d.ts.map +1 -1
- package/dist/notification/service.d.ts +15 -15
- package/dist/notification/service.d.ts.map +1 -1
- package/dist/order/common.d.ts +57 -4
- package/dist/order/common.d.ts.map +1 -1
- package/dist/order/mutations.d.ts +74 -53
- package/dist/order/mutations.d.ts.map +1 -1
- package/dist/order/service.d.ts +44 -30
- package/dist/order/service.d.ts.map +1 -1
- package/dist/payment/common.d.ts +2 -2
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/pricing/common/index.d.ts +0 -2
- package/dist/pricing/common/index.d.ts.map +1 -1
- package/dist/pricing/common/index.js +0 -2
- package/dist/pricing/common/index.js.map +1 -1
- package/dist/pricing/common/money-amount.d.ts +2 -2
- package/dist/pricing/common/money-amount.d.ts.map +1 -1
- package/dist/pricing/common/price-list.d.ts +25 -125
- package/dist/pricing/common/price-list.d.ts.map +1 -1
- package/dist/pricing/common/price-rule.d.ts +8 -16
- package/dist/pricing/common/price-rule.d.ts.map +1 -1
- package/dist/pricing/common/price-set.d.ts +6 -55
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/pricing/service.d.ts +31 -324
- package/dist/pricing/service.d.ts.map +1 -1
- package/dist/pricing/workflows.d.ts +5 -5
- package/dist/pricing/workflows.d.ts.map +1 -1
- package/dist/product/common.d.ts +99 -79
- package/dist/product/common.d.ts.map +1 -1
- package/dist/product/service.d.ts +429 -207
- package/dist/product/service.d.ts.map +1 -1
- package/dist/promotion/common/application-method.d.ts +1 -1
- package/dist/promotion/common/application-method.d.ts.map +1 -1
- package/dist/promotion/common/promotion.d.ts +4 -0
- package/dist/promotion/common/promotion.d.ts.map +1 -1
- package/dist/promotion/mutations.d.ts +6 -6
- package/dist/promotion/mutations.d.ts.map +1 -1
- package/dist/promotion/service.d.ts +29 -29
- package/dist/promotion/service.d.ts.map +1 -1
- package/dist/region/common.d.ts.map +1 -1
- package/dist/region/mutations.d.ts +4 -3
- package/dist/region/mutations.d.ts.map +1 -1
- package/dist/region/service.d.ts +31 -31
- package/dist/region/service.d.ts.map +1 -1
- package/dist/sales-channel/mutations.d.ts +5 -4
- package/dist/sales-channel/mutations.d.ts.map +1 -1
- package/dist/sales-channel/service.d.ts +28 -28
- package/dist/sales-channel/service.d.ts.map +1 -1
- package/dist/shared-context.d.ts +3 -4
- package/dist/shared-context.d.ts.map +1 -1
- package/dist/stock-location/common.d.ts +12 -17
- package/dist/stock-location/common.d.ts.map +1 -1
- package/dist/stock-location/index.d.ts +0 -1
- package/dist/stock-location/index.d.ts.map +1 -1
- package/dist/stock-location/index.js +0 -1
- package/dist/stock-location/index.js.map +1 -1
- package/dist/stock-location/service.d.ts +193 -180
- package/dist/stock-location/service.d.ts.map +1 -1
- package/dist/store/common/store.d.ts +31 -5
- package/dist/store/common/store.d.ts.map +1 -1
- package/dist/store/mutations/store.d.ts +14 -40
- package/dist/store/mutations/store.d.ts.map +1 -1
- package/dist/store/service.d.ts +32 -37
- package/dist/store/service.d.ts.map +1 -1
- package/dist/tax/mutations.d.ts +7 -6
- package/dist/tax/mutations.d.ts.map +1 -1
- package/dist/tax/service.d.ts +35 -35
- package/dist/tax/service.d.ts.map +1 -1
- package/dist/user/service.d.ts +22 -22
- package/dist/user/service.d.ts.map +1 -1
- package/dist/workflow/fulfillment/service-zones.d.ts +1 -1
- package/dist/workflow/fulfillment/service-zones.d.ts.map +1 -1
- package/dist/workflow/order/cancel-fulfillment.d.ts +6 -0
- package/dist/workflow/order/cancel-fulfillment.d.ts.map +1 -0
- package/dist/{http/fulfillment/admin/fulfillment-item.js → workflow/order/cancel-fulfillment.js} +1 -1
- package/dist/workflow/order/cancel-fulfillment.js.map +1 -0
- package/dist/workflow/order/cancel-order.d.ts +5 -0
- package/dist/workflow/order/cancel-order.d.ts.map +1 -0
- package/dist/{http/fulfillment/admin/service-zone.js → workflow/order/cancel-order.js} +1 -1
- package/dist/workflow/order/cancel-order.js.map +1 -0
- package/dist/workflow/order/create-fulfillment.d.ts +2 -2
- package/dist/workflow/order/create-fulfillment.d.ts.map +1 -1
- package/dist/workflow/order/create-return-order.d.ts +8 -7
- package/dist/workflow/order/create-return-order.d.ts.map +1 -1
- package/dist/workflow/order/create-shipment.d.ts +2 -1
- package/dist/workflow/order/create-shipment.d.ts.map +1 -1
- package/dist/workflow/order/index.d.ts +3 -0
- package/dist/workflow/order/index.d.ts.map +1 -1
- package/dist/workflow/order/index.js +3 -0
- package/dist/workflow/order/index.js.map +1 -1
- package/dist/workflow/order/receive-return.d.ts +17 -0
- package/dist/workflow/order/receive-return.d.ts.map +1 -0
- package/dist/{http/fulfillment/admin/fulfillment.js → workflow/order/receive-return.js} +1 -1
- package/dist/workflow/order/receive-return.js.map +1 -0
- package/dist/workflow/price-list/create-price-list.d.ts +1 -2
- package/dist/workflow/price-list/create-price-list.d.ts.map +1 -1
- package/dist/workflow/product-category/index.d.ts +6 -6
- package/dist/workflow/product-category/index.d.ts.map +1 -1
- package/dist/workflow/reservation/create-reservations.d.ts +3 -3
- package/dist/workflow/reservation/create-reservations.d.ts.map +1 -1
- package/dist/workflow/reservation/update-reservations.d.ts +3 -3
- package/dist/workflow/reservation/update-reservations.d.ts.map +1 -1
- package/dist/workflows/products/mutations.d.ts +2 -2
- package/dist/workflows/products/mutations.d.ts.map +1 -1
- package/dist/workflows-sdk/service.d.ts +2 -2
- package/dist/workflows-sdk/service.d.ts.map +1 -1
- package/package.json +1 -2
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts +0 -19
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-address.js +0 -3
- package/dist/http/fulfillment/admin/fulfillment-address.js.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts +0 -14
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-item.js.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts +0 -11
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-label.js.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +0 -9
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-provider.js +0 -3
- package/dist/http/fulfillment/admin/fulfillment-provider.js.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts +0 -15
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment-set.js +0 -3
- package/dist/http/fulfillment/admin/fulfillment-set.js.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment.d.ts +0 -27
- package/dist/http/fulfillment/admin/fulfillment.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/fulfillment.js.map +0 -1
- package/dist/http/fulfillment/admin/geo-zone.d.ts +0 -14
- package/dist/http/fulfillment/admin/geo-zone.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/geo-zone.js.map +0 -1
- package/dist/http/fulfillment/admin/service-zone.d.ts +0 -21
- package/dist/http/fulfillment/admin/service-zone.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/service-zone.js.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +0 -13
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option-rule.js +0 -3
- package/dist/http/fulfillment/admin/shipping-option-rule.js.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts +0 -11
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option-type.js +0 -3
- package/dist/http/fulfillment/admin/shipping-option-type.js.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option.d.ts +0 -38
- package/dist/http/fulfillment/admin/shipping-option.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/shipping-option.js +0 -3
- package/dist/http/fulfillment/admin/shipping-option.js.map +0 -1
- package/dist/http/fulfillment/admin/shipping-profile.d.ts +0 -19
- package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/shipping-profile.js +0 -3
- package/dist/http/fulfillment/admin/shipping-profile.js.map +0 -1
- package/dist/http/inventory/inventory-level.d.ts +0 -20
- package/dist/http/inventory/inventory-level.d.ts.map +0 -1
- package/dist/http/inventory/inventory-level.js +0 -3
- package/dist/http/inventory/inventory-level.js.map +0 -1
- package/dist/http/inventory/inventory.d.ts.map +0 -1
- package/dist/http/inventory/inventory.js.map +0 -1
- package/dist/http/pricing/price.d.ts +0 -8
- package/dist/http/pricing/price.d.ts.map +0 -1
- package/dist/http/pricing/price.js.map +0 -1
- package/dist/http/product/admin.d.ts +0 -99
- package/dist/http/product/admin.d.ts.map +0 -1
- package/dist/http/product/store.d.ts +0 -33
- package/dist/http/product/store.d.ts.map +0 -1
- package/dist/http/product/store.js +0 -3
- package/dist/http/product-category/admin.d.ts +0 -9
- package/dist/http/product-category/admin.d.ts.map +0 -1
- package/dist/http/product-category/admin.js.map +0 -1
- package/dist/http/product-category/store.d.ts +0 -9
- package/dist/http/product-category/store.d.ts.map +0 -1
- package/dist/http/product-category/store.js.map +0 -1
- package/dist/http/sales-channel/admin/sales-channel.d.ts +0 -16
- package/dist/http/sales-channel/admin/sales-channel.d.ts.map +0 -1
- package/dist/http/sales-channel/admin/sales-channel.js +0 -3
- package/dist/http/sales-channel/admin/sales-channel.js.map +0 -1
- package/dist/http/stock-locations/common.d.ts +0 -28
- package/dist/http/stock-locations/common.d.ts.map +0 -1
- package/dist/http/stock-locations/common.js.map +0 -1
- package/dist/http/tax/admin/index.d.ts +0 -3
- package/dist/http/tax/admin/index.d.ts.map +0 -1
- package/dist/http/tax/admin/index.js.map +0 -1
- package/dist/http/tax/admin/tax-rates.d.ts +0 -28
- package/dist/http/tax/admin/tax-rates.d.ts.map +0 -1
- package/dist/http/tax/admin/tax-rates.js +0 -3
- package/dist/http/tax/admin/tax-rates.js.map +0 -1
- package/dist/http/tax/admin/tax-regions.d.ts +0 -28
- package/dist/http/tax/admin/tax-regions.d.ts.map +0 -1
- package/dist/http/tax/admin/tax-regions.js +0 -3
- package/dist/http/tax/admin/tax-regions.js.map +0 -1
- package/dist/http/tax/index.d.ts.map +0 -1
- package/dist/http/tax/index.js.map +0 -1
- package/dist/inventory/bundle.d.ts +0 -3
- package/dist/inventory/bundle.d.ts.map +0 -1
- package/dist/inventory/bundle.js.map +0 -1
- package/dist/inventory/common.d.ts +0 -494
- package/dist/inventory/common.d.ts.map +0 -1
- package/dist/inventory/service-next.d.ts +0 -914
- package/dist/inventory/service-next.d.ts.map +0 -1
- package/dist/inventory/service-next.js +0 -3
- package/dist/inventory/service-next.js.map +0 -1
- package/dist/modules-sdk/internal-module-service.d.ts.map +0 -1
- package/dist/modules-sdk/internal-module-service.js +0 -3
- package/dist/modules-sdk/internal-module-service.js.map +0 -1
- package/dist/modules-sdk/module-service.d.ts +0 -1
- package/dist/modules-sdk/module-service.d.ts.map +0 -1
- package/dist/modules-sdk/module-service.js +0 -1
- package/dist/modules-sdk/module-service.js.map +0 -1
- package/dist/pricing/common/price-set-rule-type.d.ts +0 -24
- package/dist/pricing/common/price-set-rule-type.d.ts.map +0 -1
- package/dist/pricing/common/price-set-rule-type.js +0 -3
- package/dist/pricing/common/price-set-rule-type.js.map +0 -1
- package/dist/pricing/common/rule-type.d.ts +0 -102
- package/dist/pricing/common/rule-type.d.ts.map +0 -1
- package/dist/pricing/common/rule-type.js +0 -3
- package/dist/pricing/common/rule-type.js.map +0 -1
- package/dist/region__legacy/common.d.ts +0 -44
- package/dist/region__legacy/common.d.ts.map +0 -1
- package/dist/region__legacy/common.js +0 -3
- package/dist/region__legacy/index.d.ts +0 -2
- package/dist/region__legacy/index.d.ts.map +0 -1
- package/dist/region__legacy/index.js.map +0 -1
- package/dist/stock-location/service-next.d.ts +0 -279
- package/dist/stock-location/service-next.d.ts.map +0 -1
- package/dist/stock-location/service-next.js +0 -3
- package/dist/stock-location/service-next.js.map +0 -1
- /package/dist/http/{tax → currency}/index.d.ts +0 -0
- /package/dist/http/{tax → currency}/index.js +0 -0
- /package/dist/http/{product-category → file}/admin.js +0 -0
- /package/dist/http/{stock-locations → file}/common.js +0 -0
- /package/dist/http/{product-category → file}/store.js +0 -0
- /package/dist/{inventory → http/product-type}/common.js +0 -0
@@ -1,3 +1,4 @@
|
|
1
|
+
import { MetadataType } from "../common";
|
1
2
|
/**
|
2
3
|
* The customer address to be created.
|
3
4
|
*/
|
@@ -5,7 +6,7 @@ export interface CreateCustomerAddressDTO {
|
|
5
6
|
/**
|
6
7
|
* The address's name.
|
7
8
|
*/
|
8
|
-
address_name?: string;
|
9
|
+
address_name?: string | null;
|
9
10
|
/**
|
10
11
|
* Whether the address is default shipping.
|
11
12
|
*/
|
@@ -21,47 +22,47 @@ export interface CreateCustomerAddressDTO {
|
|
21
22
|
/**
|
22
23
|
* The company.
|
23
24
|
*/
|
24
|
-
company?: string;
|
25
|
+
company?: string | null;
|
25
26
|
/**
|
26
27
|
* The first name.
|
27
28
|
*/
|
28
|
-
first_name?: string;
|
29
|
+
first_name?: string | null;
|
29
30
|
/**
|
30
31
|
* The last name.
|
31
32
|
*/
|
32
|
-
last_name?: string;
|
33
|
+
last_name?: string | null;
|
33
34
|
/**
|
34
35
|
* The address 1.
|
35
36
|
*/
|
36
|
-
address_1?: string;
|
37
|
+
address_1?: string | null;
|
37
38
|
/**
|
38
39
|
* The address 2.
|
39
40
|
*/
|
40
|
-
address_2?: string;
|
41
|
+
address_2?: string | null;
|
41
42
|
/**
|
42
43
|
* The city.
|
43
44
|
*/
|
44
|
-
city?: string;
|
45
|
+
city?: string | null;
|
45
46
|
/**
|
46
47
|
* The country code.
|
47
48
|
*/
|
48
|
-
country_code?: string;
|
49
|
+
country_code?: string | null;
|
49
50
|
/**
|
50
51
|
* The province.
|
51
52
|
*/
|
52
|
-
province?: string;
|
53
|
+
province?: string | null;
|
53
54
|
/**
|
54
55
|
* The postal code.
|
55
56
|
*/
|
56
|
-
postal_code?: string;
|
57
|
+
postal_code?: string | null;
|
57
58
|
/**
|
58
59
|
* The phone.
|
59
60
|
*/
|
60
|
-
phone?: string;
|
61
|
+
phone?: string | null;
|
61
62
|
/**
|
62
63
|
* Holds custom data in key-value pairs.
|
63
64
|
*/
|
64
|
-
metadata?:
|
65
|
+
metadata?: MetadataType;
|
65
66
|
}
|
66
67
|
/**
|
67
68
|
* The attributes to update in the customer's address.
|
@@ -130,7 +131,7 @@ export interface UpdateCustomerAddressDTO {
|
|
130
131
|
/**
|
131
132
|
* Holds custom data in key-value pairs.
|
132
133
|
*/
|
133
|
-
metadata?:
|
134
|
+
metadata?: MetadataType;
|
134
135
|
}
|
135
136
|
/**
|
136
137
|
* The customer to be created.
|
@@ -139,27 +140,27 @@ export interface CreateCustomerDTO {
|
|
139
140
|
/**
|
140
141
|
* The company name of the customer.
|
141
142
|
*/
|
142
|
-
company_name?: string;
|
143
|
+
company_name?: string | null;
|
143
144
|
/**
|
144
145
|
* The first name of the customer.
|
145
146
|
*/
|
146
|
-
first_name?: string;
|
147
|
+
first_name?: string | null;
|
147
148
|
/**
|
148
149
|
* The last name of the customer.
|
149
150
|
*/
|
150
|
-
last_name?: string;
|
151
|
+
last_name?: string | null;
|
151
152
|
/**
|
152
153
|
* The email of the customer.
|
153
154
|
*/
|
154
|
-
email?: string;
|
155
|
+
email?: string | null;
|
155
156
|
/**
|
156
157
|
* The phone of the customer.
|
157
158
|
*/
|
158
|
-
phone?: string;
|
159
|
+
phone?: string | null;
|
159
160
|
/**
|
160
161
|
* Who created the customer.
|
161
162
|
*/
|
162
|
-
created_by?: string;
|
163
|
+
created_by?: string | null;
|
163
164
|
/**
|
164
165
|
* The addresses of the customer.
|
165
166
|
*/
|
@@ -167,7 +168,7 @@ export interface CreateCustomerDTO {
|
|
167
168
|
/**
|
168
169
|
* Holds custom data in key-value pairs.
|
169
170
|
*/
|
170
|
-
metadata?:
|
171
|
+
metadata?: MetadataType;
|
171
172
|
}
|
172
173
|
/**
|
173
174
|
* The attributes to update in the customer.
|
@@ -200,7 +201,7 @@ export interface UpdateCustomerDTO {
|
|
200
201
|
/**
|
201
202
|
* Holds custom data in key-value pairs.
|
202
203
|
*/
|
203
|
-
metadata?:
|
204
|
+
metadata?: MetadataType;
|
204
205
|
}
|
205
206
|
/**
|
206
207
|
* The updatable fields of a customer.
|
@@ -229,7 +230,7 @@ export interface CustomerUpdatableFields {
|
|
229
230
|
/**
|
230
231
|
* Holds custom data in key-value pairs.
|
231
232
|
*/
|
232
|
-
metadata?:
|
233
|
+
metadata?: MetadataType;
|
233
234
|
}
|
234
235
|
/**
|
235
236
|
* The updatable fields of a customer group.
|
@@ -242,7 +243,7 @@ export interface CustomerGroupUpdatableFields {
|
|
242
243
|
/**
|
243
244
|
* Holds custom data in key-value pairs.
|
244
245
|
*/
|
245
|
-
metadata?:
|
246
|
+
metadata?: MetadataType;
|
246
247
|
}
|
247
248
|
/**
|
248
249
|
* The attributes to update in the customer group.
|
@@ -263,7 +264,7 @@ export interface UpdateCustomerGroupDTO {
|
|
263
264
|
/**
|
264
265
|
* Holds custom data in key-value pairs.
|
265
266
|
*/
|
266
|
-
metadata?:
|
267
|
+
metadata?: MetadataType;
|
267
268
|
}
|
268
269
|
/**
|
269
270
|
* The customer group to be created.
|
@@ -276,7 +277,7 @@ export interface CreateCustomerGroupDTO {
|
|
276
277
|
/**
|
277
278
|
* Holds custom data in key-value pairs.
|
278
279
|
*/
|
279
|
-
metadata?:
|
280
|
+
metadata?: MetadataType;
|
280
281
|
/**
|
281
282
|
* Who created the customer group. For example,
|
282
283
|
* the ID of the user that created the customer group.
|
@@ -298,6 +299,6 @@ export interface UpdateCustomerGroupDTO {
|
|
298
299
|
/**
|
299
300
|
* Holds custom data in key-value pairs.
|
300
301
|
*/
|
301
|
-
metadata?:
|
302
|
+
metadata?: MetadataType;
|
302
303
|
}
|
303
304
|
//# sourceMappingURL=mutations.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/customer/mutations.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/customer/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAE5B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,SAAS,CA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;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;IAEvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB"}
|
@@ -22,13 +22,13 @@ export interface ICustomerModuleService extends IModuleService {
|
|
22
22
|
*
|
23
23
|
* ```ts
|
24
24
|
* const customer =
|
25
|
-
* await customerModuleService.
|
25
|
+
* await customerModuleService.retrieveCustomer("cus_123")
|
26
26
|
* ```
|
27
27
|
*
|
28
28
|
* To specify relations that should be retrieved:
|
29
29
|
*
|
30
30
|
* ```ts
|
31
|
-
* const customer = await customerModuleService.
|
31
|
+
* const customer = await customerModuleService.retrieveCustomer(
|
32
32
|
* "cus_123",
|
33
33
|
* {
|
34
34
|
* relations: ["groups"],
|
@@ -36,7 +36,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
36
36
|
* )
|
37
37
|
* ```
|
38
38
|
*/
|
39
|
-
|
39
|
+
retrieveCustomer(customerId: string, config?: FindConfig<CustomerDTO>, sharedContext?: Context): Promise<CustomerDTO>;
|
40
40
|
/**
|
41
41
|
* This method creates customers.
|
42
42
|
*
|
@@ -45,7 +45,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
45
45
|
* @returns {Promise<CustomerDTO[]>} The created customers.
|
46
46
|
*
|
47
47
|
* @example
|
48
|
-
* const customers = await customerModuleService.
|
48
|
+
* const customers = await customerModuleService.createCustomers([Customers
|
49
49
|
* {
|
50
50
|
* email: "john@smith.com",
|
51
51
|
* first_name: "John",
|
@@ -53,7 +53,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
53
53
|
* },
|
54
54
|
* ])
|
55
55
|
*/
|
56
|
-
|
56
|
+
createCustomers(data: CreateCustomerDTO[], sharedContext?: Context): Promise<CustomerDTO[]>;
|
57
57
|
/**
|
58
58
|
* This method creates a customer.
|
59
59
|
*
|
@@ -62,13 +62,13 @@ export interface ICustomerModuleService extends IModuleService {
|
|
62
62
|
* @returns {Promise<CustomerDTO>} The created customer.
|
63
63
|
*
|
64
64
|
* @example
|
65
|
-
* const customer = await customerModuleService.
|
65
|
+
* const customer = await customerModuleService.createCustomers({Customers
|
66
66
|
* email: "john@smith.com",
|
67
67
|
* first_name: "John",
|
68
68
|
* last_name: "Smith",
|
69
69
|
* })
|
70
70
|
*/
|
71
|
-
|
71
|
+
createCustomers(data: CreateCustomerDTO, sharedContext?: Context): Promise<CustomerDTO>;
|
72
72
|
/**
|
73
73
|
* This method updates an existing customer.
|
74
74
|
*
|
@@ -78,14 +78,14 @@ export interface ICustomerModuleService extends IModuleService {
|
|
78
78
|
* @returns {Promise<CustomerDTO>} The updated customer.
|
79
79
|
*
|
80
80
|
* @example
|
81
|
-
* const customer = await customerModuleService.
|
81
|
+
* const customer = await customerModuleService.updateCustomers(
|
82
82
|
* "cus_123",
|
83
83
|
* {
|
84
84
|
* first_name: "Matt",
|
85
85
|
* }
|
86
86
|
* )
|
87
87
|
*/
|
88
|
-
|
88
|
+
updateCustomers(customerId: string, data: CustomerUpdatableFields, sharedContext?: Context): Promise<CustomerDTO>;
|
89
89
|
/**
|
90
90
|
* This method updates existing customers.
|
91
91
|
*
|
@@ -95,14 +95,14 @@ export interface ICustomerModuleService extends IModuleService {
|
|
95
95
|
* @returns {Promise<CustomerDTO[]>} The updated customers.
|
96
96
|
*
|
97
97
|
* @example
|
98
|
-
* const customers = await customerModuleService.
|
98
|
+
* const customers = await customerModuleService.updateCustomers(
|
99
99
|
* ["cus_123", "cus_321"],
|
100
100
|
* {
|
101
101
|
* company_name: "Acme",
|
102
102
|
* }
|
103
103
|
* )
|
104
104
|
*/
|
105
|
-
|
105
|
+
updateCustomers(customerIds: string[], data: CustomerUpdatableFields, sharedContext?: Context): Promise<CustomerDTO[]>;
|
106
106
|
/**
|
107
107
|
* This method updates existing customers.
|
108
108
|
*
|
@@ -112,14 +112,14 @@ export interface ICustomerModuleService extends IModuleService {
|
|
112
112
|
* @returns {Promise<CustomerDTO[]>} The updated customers.
|
113
113
|
*
|
114
114
|
* @example
|
115
|
-
* const customers = await customerModuleService.
|
115
|
+
* const customers = await customerModuleService.updateCustomers(
|
116
116
|
* { company_name: "Acme" },
|
117
117
|
* {
|
118
118
|
* company_name: "Acme Inc.",
|
119
119
|
* }
|
120
120
|
* )
|
121
121
|
*/
|
122
|
-
|
122
|
+
updateCustomers(selector: FilterableCustomerProps, data: CustomerUpdatableFields, sharedContext?: Context): Promise<CustomerDTO[]>;
|
123
123
|
/**
|
124
124
|
* This method deletes a customer by its ID.
|
125
125
|
*
|
@@ -128,9 +128,9 @@ export interface ICustomerModuleService extends IModuleService {
|
|
128
128
|
* @returns {Promise<void>} Resolves when the customer is deleted successfully.
|
129
129
|
*
|
130
130
|
* @example
|
131
|
-
* await customerModuleService.
|
131
|
+
* await customerModuleService.deleteCustomers("cus_123")
|
132
132
|
*/
|
133
|
-
|
133
|
+
deleteCustomers(customerId: string, sharedContext?: Context): Promise<void>;
|
134
134
|
/**
|
135
135
|
* This method deletes customers by their IDs.
|
136
136
|
*
|
@@ -139,9 +139,9 @@ export interface ICustomerModuleService extends IModuleService {
|
|
139
139
|
* @returns {Promise<void>} Resolves when the customers are deleted successfully.
|
140
140
|
*
|
141
141
|
* @example
|
142
|
-
* await customerModuleService.
|
142
|
+
* await customerModuleService.deleteCustomers(["cus_123", "cus_321"])
|
143
143
|
*/
|
144
|
-
|
144
|
+
deleteCustomers(customerIds: string[], sharedContext?: Context): Promise<void>;
|
145
145
|
/**
|
146
146
|
* This method deletes a customer matching the specified filters.
|
147
147
|
*
|
@@ -150,11 +150,11 @@ export interface ICustomerModuleService extends IModuleService {
|
|
150
150
|
* @returns {Promise<void>} Resolves when the customers are deleted successfully.
|
151
151
|
*
|
152
152
|
* @example
|
153
|
-
* await customerModuleService.
|
153
|
+
* await customerModuleService.deleteCustomers({
|
154
154
|
* id: ["cus_123"],
|
155
155
|
* })
|
156
156
|
*/
|
157
|
-
|
157
|
+
deleteCustomers(selector: FilterableCustomerProps, sharedContext?: Context): Promise<void>;
|
158
158
|
/**
|
159
159
|
* This method creates customer groups.
|
160
160
|
*
|
@@ -162,18 +162,15 @@ export interface ICustomerModuleService extends IModuleService {
|
|
162
162
|
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
163
163
|
* @returns {Promise<CustomerGroupDTO[]>} The created customer groups.
|
164
164
|
*
|
165
|
-
* @privateRemarks
|
166
|
-
* TODO should be pluralized
|
167
|
-
*
|
168
165
|
* @example
|
169
166
|
* const customerGroup =
|
170
|
-
* await customerModuleService.
|
167
|
+
* await customerModuleService.createCustomerGroups([
|
171
168
|
* {
|
172
169
|
* name: "VIP",
|
173
170
|
* },
|
174
171
|
* ])
|
175
172
|
*/
|
176
|
-
|
173
|
+
createCustomerGroups(data: CreateCustomerGroupDTO[], sharedContext?: Context): Promise<CustomerGroupDTO[]>;
|
177
174
|
/**
|
178
175
|
* This method creates a customer group.
|
179
176
|
*
|
@@ -186,11 +183,11 @@ export interface ICustomerModuleService extends IModuleService {
|
|
186
183
|
*
|
187
184
|
* @example
|
188
185
|
* const customerGroup =
|
189
|
-
* await customerModuleService.
|
186
|
+
* await customerModuleService.createCustomerGroups({
|
190
187
|
* name: "VIP",
|
191
188
|
* })
|
192
189
|
*/
|
193
|
-
|
190
|
+
createCustomerGroups(data: CreateCustomerGroupDTO, sharedContext?: Context): Promise<CustomerGroupDTO>;
|
194
191
|
/**
|
195
192
|
* This method retrieves a customer group by its ID.
|
196
193
|
*
|
@@ -202,7 +199,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
202
199
|
*
|
203
200
|
* @example
|
204
201
|
* const customerGroup =
|
205
|
-
* await customerModuleService.
|
202
|
+
* await customerModuleService.retrieveCustomerGroup("cusgroup_123")
|
206
203
|
*/
|
207
204
|
retrieveCustomerGroup(groupId: string, config?: FindConfig<CustomerGroupDTO>, sharedContext?: Context): Promise<CustomerGroupDTO>;
|
208
205
|
/**
|
@@ -387,7 +384,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
387
384
|
* @returns {Promise<CustomerAddressDTO[]>} The list of created addresses.
|
388
385
|
*
|
389
386
|
* @example
|
390
|
-
* const addresses = await customerModuleService.
|
387
|
+
* const addresses = await customerModuleService.createAddresses([
|
391
388
|
* {
|
392
389
|
* customer_id: "cus_123",
|
393
390
|
* address_name: "Home",
|
@@ -397,7 +394,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
397
394
|
* },
|
398
395
|
* ])
|
399
396
|
*/
|
400
|
-
|
397
|
+
createAddresses(addresses: CreateCustomerAddressDTO[], sharedContext?: Context): Promise<CustomerAddressDTO[]>;
|
401
398
|
/**
|
402
399
|
* This method adds an address to a customer.
|
403
400
|
*
|
@@ -406,7 +403,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
406
403
|
* @returns {Promise<CustomerAddressDTO>} The created address.
|
407
404
|
*
|
408
405
|
* @example
|
409
|
-
* const address = await customerModuleService.
|
406
|
+
* const address = await customerModuleService.createAddresses({
|
410
407
|
* customer_id: "cus_123",
|
411
408
|
* address_name: "Home",
|
412
409
|
* address_1: "432 Stierlin Rd",
|
@@ -414,7 +411,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
414
411
|
* country_code: "us",
|
415
412
|
* })
|
416
413
|
*/
|
417
|
-
|
414
|
+
createAddresses(address: CreateCustomerAddressDTO, sharedContext?: Context): Promise<CustomerAddressDTO>;
|
418
415
|
/**
|
419
416
|
* This method updates an address.
|
420
417
|
*
|
@@ -667,7 +664,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
667
664
|
* To retrieve a list of customers using their IDs:
|
668
665
|
*
|
669
666
|
* ```ts
|
670
|
-
* const customers = await customerModuleService.
|
667
|
+
* const customers = await customerModuleService.listCustomers({
|
671
668
|
* id: ["cus_123", "cus_321"],
|
672
669
|
* })
|
673
670
|
* ```
|
@@ -675,7 +672,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
675
672
|
* To specify relations that should be retrieved within the customers:
|
676
673
|
*
|
677
674
|
* ```ts
|
678
|
-
* const customers = await customerModuleService.
|
675
|
+
* const customers = await customerModuleService.listCustomers(
|
679
676
|
* {
|
680
677
|
* id: ["cus_123", "cus_321"],
|
681
678
|
* },
|
@@ -688,7 +685,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
688
685
|
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
689
686
|
*
|
690
687
|
* ```ts
|
691
|
-
* const customers = await customerModuleService.
|
688
|
+
* const customers = await customerModuleService.listCustomers(
|
692
689
|
* {
|
693
690
|
* id: ["cus_123", "cus_321"],
|
694
691
|
* },
|
@@ -700,7 +697,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
700
697
|
* )
|
701
698
|
* ```
|
702
699
|
*/
|
703
|
-
|
700
|
+
listCustomers(filters?: FilterableCustomerProps, config?: FindConfig<CustomerDTO>, sharedContext?: Context): Promise<CustomerDTO[]>;
|
704
701
|
/**
|
705
702
|
* This method retrieves a paginated list of customers along with the total count of available customers satisfying the provided filters.
|
706
703
|
*
|
@@ -714,7 +711,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
714
711
|
* To retrieve a list of customers using their IDs:
|
715
712
|
*
|
716
713
|
* ```ts
|
717
|
-
* const [customers, count] = await customerModuleService.
|
714
|
+
* const [customers, count] = await customerModuleService.listAndCountCustomers({
|
718
715
|
* id: ["cus_123", "cus_321"],
|
719
716
|
* })
|
720
717
|
* ```
|
@@ -722,7 +719,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
722
719
|
* To specify relations that should be retrieved within the customers:
|
723
720
|
*
|
724
721
|
* ```ts
|
725
|
-
* const [customers, count] = await customerModuleService.
|
722
|
+
* const [customers, count] = await customerModuleService.listAndCountCustomers(
|
726
723
|
* {
|
727
724
|
* id: ["cus_123", "cus_321"],
|
728
725
|
* },
|
@@ -735,7 +732,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
735
732
|
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
736
733
|
*
|
737
734
|
* ```ts
|
738
|
-
* const [customers, count] = await customerModuleService.
|
735
|
+
* const [customers, count] = await customerModuleService.listAndCountCustomers(
|
739
736
|
* {
|
740
737
|
* id: ["cus_123", "cus_321"],
|
741
738
|
* },
|
@@ -747,7 +744,7 @@ export interface ICustomerModuleService extends IModuleService {
|
|
747
744
|
* )
|
748
745
|
* ```
|
749
746
|
*/
|
750
|
-
|
747
|
+
listAndCountCustomers(filters?: FilterableCustomerProps, config?: FindConfig<CustomerDTO>, sharedContext?: Context): Promise<[CustomerDTO[], number]>;
|
751
748
|
/**
|
752
749
|
* This method retrieves a paginated list of customer groups based on optional filters and configuration.
|
753
750
|
*
|
@@ -861,9 +858,9 @@ export interface ICustomerModuleService extends IModuleService {
|
|
861
858
|
* If there are no related records, the promise resolves to `void`.
|
862
859
|
*
|
863
860
|
* @example
|
864
|
-
* await customerModuleService.
|
861
|
+
* await customerModuleService.softDeleteCustomers(["cus_123"])
|
865
862
|
*/
|
866
|
-
|
863
|
+
softDeleteCustomers<TReturnableLinkableKeys extends string = string>(customerIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<TReturnableLinkableKeys, string[]> | void>;
|
867
864
|
/**
|
868
865
|
* This method restores soft deleted customer by their IDs.
|
869
866
|
*
|
@@ -875,9 +872,9 @@ export interface ICustomerModuleService extends IModuleService {
|
|
875
872
|
* If there are no related records restored, the promise resolves to `void`.
|
876
873
|
*
|
877
874
|
* @example
|
878
|
-
* await customerModuleService.
|
875
|
+
* await customerModuleService.restoreCustomers(["cus_123"])
|
879
876
|
*/
|
880
|
-
|
877
|
+
restoreCustomers<TReturnableLinkableKeys extends string = string>(customerIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<TReturnableLinkableKeys, string[]> | void>;
|
881
878
|
/**
|
882
879
|
* This method soft deletes customer groups by their IDs.
|
883
880
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/customer/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,gB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;;;;;;;;;;;OAcG;IACH,mBAAmB,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACjE,WAAW,EAAE,MAAM,EAAE,EACrB,MAAM,CAAC,EAAE,gBAAgB,CAAC,uBAAuB,CAAC,EAClD,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;IAE5D;;;;;;;;;;;;OAYG;IACH,gBAAgB,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EAC9D,WAAW,EAAE,MAAM,EAAE,EACrB,MAAM,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAC/C,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;IAE5D;;;;;;;;;;;;;OAaG;IACH,wBAAwB,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACtE,QAAQ,EAAE,MAAM,EAAE,EAClB,MAAM,CAAC,EAAE,gBAAgB,CAAC,uBAAuB,CAAC,EAClD,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;IAE5D;;;;;;;;;;;;;;OAcG;IACH,qBAAqB,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACnE,QAAQ,EAAE,MAAM,EAAE,EAClB,MAAM,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAC/C,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;CAC7D"}
|
@@ -1,6 +1,15 @@
|
|
1
1
|
import { RepositoryTransformOptions } from "../common";
|
2
2
|
import { Context } from "../shared-context";
|
3
3
|
import { BaseFilterable, FilterQuery, FilterQuery as InternalFilterQuery, FindOptions, UpsertWithReplaceConfig } from "./index";
|
4
|
+
type EntityClassName = string;
|
5
|
+
type EntityValues = {
|
6
|
+
id: string;
|
7
|
+
}[];
|
8
|
+
export type PerformedActions = {
|
9
|
+
created: Record<EntityClassName, EntityValues>;
|
10
|
+
updated: Record<EntityClassName, EntityValues>;
|
11
|
+
deleted: Record<EntityClassName, EntityValues>;
|
12
|
+
};
|
4
13
|
/**
|
5
14
|
* Data access layer (DAL) interface to implements for any repository service.
|
6
15
|
* This layer helps to separate the business logic (service layer) from accessing the
|
@@ -36,13 +45,16 @@ export interface RepositoryService<T = any> extends BaseRepositoryService<T> {
|
|
36
45
|
softDelete(idsOrFilter: string | string[] | InternalFilterQuery | InternalFilterQuery[], context?: Context): Promise<[T[], Record<string, unknown[]>]>;
|
37
46
|
restore(idsOrFilter: string[] | InternalFilterQuery, context?: Context): Promise<[T[], Record<string, unknown[]>]>;
|
38
47
|
upsert(data: any[], context?: Context): Promise<T[]>;
|
39
|
-
upsertWithReplace(data: any[], config?: UpsertWithReplaceConfig<T>, context?: Context): Promise<
|
48
|
+
upsertWithReplace(data: any[], config?: UpsertWithReplaceConfig<T>, context?: Context): Promise<{
|
49
|
+
entities: T[];
|
50
|
+
performedActions: PerformedActions;
|
51
|
+
}>;
|
40
52
|
}
|
41
53
|
export interface TreeRepositoryService<T = any> extends BaseRepositoryService<T> {
|
42
54
|
find(options?: FindOptions<T>, transformOptions?: RepositoryTransformOptions, context?: Context): Promise<T[]>;
|
43
55
|
findAndCount(options?: FindOptions<T>, transformOptions?: RepositoryTransformOptions, context?: Context): Promise<[T[], number]>;
|
44
|
-
create(data: unknown, context?: Context): Promise<T>;
|
45
|
-
delete(
|
56
|
+
create(data: unknown[], context?: Context): Promise<T[]>;
|
57
|
+
delete(ids: string[], context?: Context): Promise<void>;
|
46
58
|
}
|
47
59
|
/**
|
48
60
|
* @interface
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"repository-service.d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