@mercurjs/core 2.1.6 → 2.2.0-canary.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.d.ts +20 -0
- package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.js +66 -0
- package/.medusa/server/src/api/admin/claims/[id]/request/route.d.ts +10 -0
- package/.medusa/server/src/api/admin/claims/[id]/request/route.js +80 -0
- package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +12 -12
- package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.d.ts +22 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.js +68 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/request/route.d.ts +10 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/request/route.js +81 -0
- package/.medusa/server/src/api/admin/members/validators.d.ts +2 -2
- package/.medusa/server/src/api/admin/middlewares.js +27 -50
- package/.medusa/server/src/api/admin/offers/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/offers/[id]/route.js +37 -0
- package/.medusa/server/src/api/admin/offers/batch/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/offers/batch/route.js +37 -0
- package/.medusa/server/src/api/admin/offers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/offers/middlewares.js +31 -0
- package/.medusa/server/src/api/admin/offers/query-config.d.ts +11 -0
- package/.medusa/server/src/api/admin/offers/query-config.js +47 -0
- package/.medusa/server/src/api/admin/offers/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/offers/route.js +21 -0
- package/.medusa/server/src/api/admin/offers/validators.d.ts +299 -0
- package/.medusa/server/src/api/admin/offers/validators.js +65 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/items/route.d.ts +26 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/items/route.js +57 -0
- package/.medusa/server/src/api/admin/order-groups/apply-request-filter.d.ts +2 -0
- package/.medusa/server/src/api/admin/order-groups/apply-request-filter.js +140 -0
- package/.medusa/server/src/api/admin/order-groups/middlewares.js +3 -1
- package/.medusa/server/src/api/admin/order-groups/validators.d.ts +7 -4
- package/.medusa/server/src/api/admin/order-groups/validators.js +7 -1
- package/.medusa/server/src/api/admin/orders/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/orders/middlewares.js +42 -0
- package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.d.ts +11 -0
- package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.js +24 -0
- package/.medusa/server/src/api/admin/orders/validators.d.ts +73 -27
- package/.medusa/server/src/api/admin/orders/validators.js +9 -29
- package/.medusa/server/src/api/admin/payouts/validators.d.ts +2 -2
- package/.medusa/server/src/api/admin/product-attributes/[id]/route.d.ts +7 -0
- package/.medusa/server/src/api/admin/product-attributes/[id]/route.js +51 -0
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.d.ts +6 -0
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.js +37 -0
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/route.js +22 -0
- package/.medusa/server/src/api/admin/product-attributes/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/product-attributes/middlewares.js +89 -0
- package/.medusa/server/src/api/admin/product-attributes/query-config.d.ts +12 -0
- package/.medusa/server/src/api/admin/product-attributes/query-config.js +33 -0
- package/.medusa/server/src/api/admin/product-attributes/route.d.ts +6 -0
- package/.medusa/server/src/api/admin/product-attributes/route.js +41 -0
- package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +544 -0
- package/.medusa/server/src/api/admin/product-attributes/validators.js +115 -0
- package/.medusa/server/src/api/admin/product-categories/[id]/products/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/product-categories/[id]/products/route.js +20 -0
- package/.medusa/server/src/api/admin/product-categories/[id]/route.d.ts +7 -0
- package/.medusa/server/src/api/admin/product-categories/[id]/route.js +51 -0
- package/.medusa/server/src/api/admin/product-categories/[id]/sellers/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/product-categories/[id]/sellers/route.js +20 -0
- package/.medusa/server/src/api/admin/product-categories/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/product-categories/middlewares.js +54 -0
- package/.medusa/server/src/api/admin/product-categories/query-config.d.ts +12 -0
- package/.medusa/server/src/api/admin/product-categories/query-config.js +31 -0
- package/.medusa/server/src/api/admin/product-categories/route.d.ts +6 -0
- package/.medusa/server/src/api/admin/product-categories/route.js +39 -0
- package/.medusa/server/src/api/admin/product-categories/validators.d.ts +446 -0
- package/.medusa/server/src/api/admin/product-categories/validators.js +65 -0
- package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.d.ts +10 -0
- package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.js +32 -0
- package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.d.ts +10 -0
- package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.js +27 -0
- package/.medusa/server/src/api/admin/product-changes/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/product-changes/middlewares.js +18 -0
- package/.medusa/server/src/api/admin/product-changes/validators.d.ts +17 -0
- package/.medusa/server/src/api/admin/product-changes/validators.js +15 -0
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +13 -0
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +90 -0
- package/.medusa/server/src/api/admin/{subscription-plans/[id]/overrides → products/[id]/attributes/batch}/route.d.ts +2 -2
- package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +25 -0
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +63 -0
- package/.medusa/server/src/api/admin/products/[id]/confirm/route.d.ts +16 -0
- package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +36 -0
- package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +12 -0
- package/.medusa/server/src/api/admin/products/[id]/preview/route.js +27 -0
- package/.medusa/server/src/api/admin/products/[id]/reject/route.d.ts +12 -0
- package/.medusa/server/src/api/admin/products/[id]/reject/route.js +32 -0
- package/.medusa/server/src/api/admin/products/[id]/request-changes/route.d.ts +13 -0
- package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +33 -0
- package/.medusa/server/src/api/admin/products/[id]/route.d.ts +7 -0
- package/.medusa/server/src/api/admin/products/[id]/route.js +55 -0
- package/.medusa/server/src/api/admin/products/[id]/variants/[variant_id]/route.d.ts +7 -0
- package/.medusa/server/src/api/admin/products/[id]/variants/[variant_id]/route.js +60 -0
- package/.medusa/server/src/api/admin/products/[id]/variants/route.d.ts +6 -0
- package/.medusa/server/src/api/admin/products/[id]/variants/route.js +59 -0
- package/.medusa/server/src/api/admin/products/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/products/middlewares.js +165 -0
- package/.medusa/server/src/api/admin/products/query-config.d.ts +25 -0
- package/.medusa/server/src/api/admin/products/query-config.js +95 -0
- package/.medusa/server/src/api/admin/products/route.d.ts +4 -2
- package/.medusa/server/src/api/admin/products/route.js +43 -1
- package/.medusa/server/src/api/admin/products/validators.d.ts +2923 -802
- package/.medusa/server/src/api/admin/products/validators.js +352 -4
- package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.d.ts +9 -0
- package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.js +35 -0
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +16 -16
- package/.medusa/server/src/api/admin/shipping-options/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/shipping-options/middlewares.js +46 -0
- package/.medusa/server/src/api/admin/shipping-profiles/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/shipping-profiles/middlewares.js +46 -0
- package/.medusa/server/src/api/admin/stock-locations/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/stock-locations/middlewares.js +46 -0
- package/.medusa/server/src/api/store/carts/[id]/line-items/route.d.ts +3 -0
- package/.medusa/server/src/api/store/carts/[id]/line-items/route.js +38 -0
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +24 -0
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +15 -0
- package/.medusa/server/src/api/store/carts/middlewares.js +26 -1
- package/.medusa/server/src/api/store/middlewares.js +9 -5
- package/.medusa/server/src/api/store/order-groups/validators.d.ts +2 -2
- package/.medusa/server/src/api/store/product-attributes/[id]/route.d.ts +2 -0
- package/.medusa/server/src/api/store/product-attributes/[id]/route.js +18 -0
- package/.medusa/server/src/api/store/product-attributes/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/product-attributes/middlewares.js +31 -0
- package/.medusa/server/src/api/store/product-attributes/query-config.d.ts +12 -0
- package/.medusa/server/src/api/store/product-attributes/query-config.js +31 -0
- package/.medusa/server/src/api/store/product-attributes/route.d.ts +2 -0
- package/.medusa/server/src/api/store/product-attributes/route.js +21 -0
- package/.medusa/server/src/api/store/product-attributes/validators.d.ts +234 -0
- package/.medusa/server/src/api/store/product-attributes/validators.js +26 -0
- package/.medusa/server/src/api/store/product-categories/[id]/route.d.ts +2 -0
- package/.medusa/server/src/api/store/product-categories/[id]/route.js +18 -0
- package/.medusa/server/src/api/store/product-categories/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/product-categories/middlewares.js +31 -0
- package/.medusa/server/src/api/store/product-categories/query-config.d.ts +12 -0
- package/.medusa/server/src/api/store/product-categories/query-config.js +28 -0
- package/.medusa/server/src/api/store/product-categories/route.d.ts +2 -0
- package/.medusa/server/src/api/store/product-categories/route.js +21 -0
- package/.medusa/server/src/api/store/product-categories/validators.d.ts +240 -0
- package/.medusa/server/src/api/store/product-categories/validators.js +27 -0
- package/.medusa/server/src/api/store/products/[id]/route.d.ts +2 -0
- package/.medusa/server/src/api/store/products/[id]/route.js +32 -0
- package/.medusa/server/src/api/store/products/middlewares.d.ts +1 -1
- package/.medusa/server/src/api/store/products/middlewares.js +23 -5
- package/.medusa/server/src/api/store/products/query-config.d.ts +12 -0
- package/.medusa/server/src/api/store/products/query-config.js +55 -0
- package/.medusa/server/src/api/store/products/route.d.ts +2 -0
- package/.medusa/server/src/api/store/products/route.js +28 -0
- package/.medusa/server/src/api/store/products/validators.d.ts +270 -0
- package/.medusa/server/src/api/store/products/validators.js +32 -0
- package/.medusa/server/src/api/store/sellers/validators.d.ts +2 -2
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.d.ts +17 -0
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +58 -0
- package/.medusa/server/src/api/utils/format-product-attributes.d.ts +54 -0
- package/.medusa/server/src/api/utils/format-product-attributes.js +189 -0
- package/.medusa/server/src/api/utils/index.d.ts +2 -0
- package/.medusa/server/src/api/utils/index.js +3 -1
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.js +17 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.js +15 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.js +46 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.js +26 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.js +39 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.js +26 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.d.ts +12 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.js +47 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.js +15 -0
- package/.medusa/server/src/api/vendor/claims/[id]/request/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/request/route.js +34 -0
- package/.medusa/server/src/api/vendor/claims/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/claims/[id]/route.js +19 -0
- package/.medusa/server/src/api/vendor/claims/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/claims/helpers.js +19 -0
- package/.medusa/server/src/api/vendor/claims/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/claims/middlewares.js +184 -0
- package/.medusa/server/src/api/vendor/claims/query-config.d.ts +12 -0
- package/.medusa/server/src/api/vendor/claims/query-config.js +31 -0
- package/.medusa/server/src/api/vendor/claims/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/claims/route.js +35 -0
- package/.medusa/server/src/api/vendor/claims/validators.d.ts +378 -0
- package/.medusa/server/src/api/vendor/claims/validators.js +89 -0
- package/.medusa/server/src/api/vendor/collections/validators.d.ts +6 -6
- package/.medusa/server/src/api/vendor/currencies/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.js +17 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.js +46 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.js +26 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.js +45 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.js +26 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.d.ts +12 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.js +47 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.js +15 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.js +34 -0
- package/.medusa/server/src/api/vendor/exchanges/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/exchanges/helpers.js +19 -0
- package/.medusa/server/src/api/vendor/exchanges/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/exchanges/middlewares.js +155 -0
- package/.medusa/server/src/api/vendor/exchanges/query-config.d.ts +7 -0
- package/.medusa/server/src/api/vendor/exchanges/query-config.js +23 -0
- package/.medusa/server/src/api/vendor/exchanges/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/exchanges/route.js +35 -0
- package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +313 -0
- package/.medusa/server/src/api/vendor/exchanges/validators.js +71 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +16 -16
- package/.medusa/server/src/api/vendor/inventory-items/route.js +1 -1
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +60 -60
- package/.medusa/server/src/api/vendor/middlewares.js +77 -67
- package/.medusa/server/src/api/vendor/offers/[id]/inventory-items/batch/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/offers/[id]/inventory-items/batch/route.js +24 -0
- package/.medusa/server/src/api/vendor/offers/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/offers/[id]/route.js +38 -0
- package/.medusa/server/src/api/vendor/{products/[id]/variants/[variant_id]/media → offers/batch}/route.d.ts +2 -2
- package/.medusa/server/src/api/vendor/offers/batch/route.js +34 -0
- package/.medusa/server/src/api/vendor/offers/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/offers/helpers.js +27 -0
- package/.medusa/server/src/api/vendor/offers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/offers/middlewares.js +65 -0
- package/.medusa/server/src/api/vendor/offers/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/offers/query-config.js +47 -0
- package/.medusa/server/src/api/vendor/offers/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/offers/route.js +41 -0
- package/.medusa/server/src/api/vendor/offers/validators.d.ts +607 -0
- package/.medusa/server/src/api/vendor/offers/validators.js +119 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.js +24 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.d.ts +14 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.js +41 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.d.ts +10 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.js +30 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.d.ts +16 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.js +45 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.d.ts +10 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.js +25 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/route.d.ts +10 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/route.js +26 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.d.ts +14 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.js +41 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.js +20 -0
- package/.medusa/server/src/api/vendor/order-edits/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/order-edits/middlewares.js +106 -0
- package/.medusa/server/src/api/vendor/order-edits/route.d.ts +10 -0
- package/.medusa/server/src/api/vendor/order-edits/route.js +21 -0
- package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +166 -0
- package/.medusa/server/src/api/vendor/order-edits/validators.js +50 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +3 -3
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.js +3 -3
- package/.medusa/server/src/api/vendor/orders/apply-request-filter.d.ts +2 -0
- package/.medusa/server/src/api/vendor/orders/apply-request-filter.js +99 -0
- package/.medusa/server/src/api/vendor/orders/middlewares.js +3 -1
- package/.medusa/server/src/api/vendor/orders/query-config.js +34 -11
- package/.medusa/server/src/api/vendor/orders/resolve-offer-items.d.ts +40 -0
- package/.medusa/server/src/api/vendor/orders/resolve-offer-items.js +66 -0
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +7 -4
- package/.medusa/server/src/api/vendor/orders/validators.js +7 -1
- package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.js +25 -0
- package/.medusa/server/src/api/vendor/payment-collections/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payment-collections/helpers.js +30 -0
- package/.medusa/server/src/api/vendor/payment-collections/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payment-collections/middlewares.js +17 -0
- package/.medusa/server/src/api/vendor/payment-collections/query-config.d.ts +7 -0
- package/.medusa/server/src/api/vendor/payment-collections/query-config.js +26 -0
- package/.medusa/server/src/api/vendor/payment-collections/validators.d.ts +17 -0
- package/.medusa/server/src/api/vendor/payment-collections/validators.js +12 -0
- package/.medusa/server/src/api/vendor/payments/helpers.d.ts +9 -0
- package/.medusa/server/src/api/vendor/payments/helpers.js +23 -8
- package/.medusa/server/src/api/vendor/payments/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +26 -26
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/{subscription → product-attributes/[id]}/route.d.ts +2 -2
- package/.medusa/server/src/api/vendor/product-attributes/[id]/route.js +18 -0
- package/.medusa/server/src/api/vendor/product-attributes/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/product-attributes/middlewares.js +37 -0
- package/.medusa/server/src/api/vendor/product-attributes/query-config.d.ts +12 -0
- package/.medusa/server/src/api/vendor/product-attributes/query-config.js +34 -0
- package/.medusa/server/src/api/vendor/{attributes → product-attributes}/route.d.ts +2 -1
- package/.medusa/server/src/api/vendor/product-attributes/route.js +26 -0
- package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +390 -0
- package/.medusa/server/src/api/vendor/product-attributes/validators.js +72 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.d.ts +3 -2
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +24 -15
- package/.medusa/server/src/api/vendor/product-categories/[id]/route.js +2 -4
- package/.medusa/server/src/api/vendor/product-categories/middlewares.js +7 -41
- package/.medusa/server/src/api/vendor/product-categories/query-config.d.ts +11 -8
- package/.medusa/server/src/api/vendor/product-categories/query-config.js +16 -12
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +345 -44
- package/.medusa/server/src/api/vendor/product-categories/validators.js +24 -10
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/product-variants/middlewares.js +34 -11
- package/.medusa/server/src/api/vendor/product-variants/query-config.d.ts +2 -2
- package/.medusa/server/src/api/vendor/product-variants/query-config.js +16 -13
- package/.medusa/server/src/api/vendor/product-variants/route.d.ts +2 -1
- package/.medusa/server/src/api/vendor/product-variants/route.js +1 -1
- package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +377 -21
- package/.medusa/server/src/api/vendor/product-variants/validators.js +14 -8
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +20 -2
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +77 -129
- package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.d.ts +12 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.js +46 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +13 -1
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +70 -101
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.d.ts +11 -0
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +43 -0
- package/.medusa/server/src/api/vendor/products/[id]/preview/route.d.ts +14 -0
- package/.medusa/server/src/api/vendor/products/[id]/preview/route.js +31 -0
- package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +22 -3
- package/.medusa/server/src/api/vendor/products/[id]/route.js +41 -31
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +16 -4
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +50 -33
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +12 -3
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +28 -25
- package/.medusa/server/src/api/vendor/products/helpers.d.ts +8 -2
- package/.medusa/server/src/api/vendor/products/helpers.js +14 -8
- package/.medusa/server/src/api/vendor/products/middlewares.js +61 -34
- package/.medusa/server/src/api/vendor/products/query-config.d.ts +4 -1
- package/.medusa/server/src/api/vendor/products/query-config.js +42 -14
- package/.medusa/server/src/api/vendor/products/route.d.ts +11 -1
- package/.medusa/server/src/api/vendor/products/route.js +26 -10
- package/.medusa/server/src/api/vendor/products/validators.d.ts +1151 -1766
- package/.medusa/server/src/api/vendor/products/validators.js +278 -112
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +20 -20
- package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/reservations/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/reservations/[id]/route.js +39 -0
- package/.medusa/server/src/api/vendor/reservations/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/reservations/helpers.js +21 -0
- package/.medusa/server/src/api/vendor/reservations/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/reservations/middlewares.js +61 -0
- package/.medusa/server/src/api/vendor/reservations/query-config.d.ts +19 -0
- package/.medusa/server/src/api/vendor/reservations/query-config.js +48 -0
- package/.medusa/server/src/api/vendor/reservations/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/reservations/route.js +35 -0
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +296 -0
- package/.medusa/server/src/api/vendor/reservations/validators.js +40 -0
- package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +3 -3
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +22 -22
- package/.medusa/server/src/api/vendor/sales-channels/[id]/products/route.js +1 -5
- package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +10 -10
- package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +13 -1
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +51 -48
- package/.medusa/server/src/api/vendor/shipping-options/validators.js +2 -1
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +5 -5
- package/.medusa/server/src/api/vendor/stores/validators.d.ts +2 -2
- package/.medusa/server/src/feature-flags/product-request.d.ts +3 -0
- package/.medusa/server/src/feature-flags/product-request.js +10 -0
- package/.medusa/server/src/links/cart-line-item-offer-link.js +17 -0
- package/.medusa/server/src/links/category-seller-link.js +16 -0
- package/.medusa/server/src/links/offer-inventory-item-link.js +26 -0
- package/.medusa/server/src/links/offer-price-link.js +13 -0
- package/.medusa/server/src/links/offer-seller-link.js +15 -0
- package/.medusa/server/src/links/offer-shipping-profile-link.d.ts +2 -0
- package/.medusa/server/src/links/offer-shipping-profile-link.js +15 -0
- package/.medusa/server/src/links/offer-variant-link.d.ts +2 -0
- package/.medusa/server/src/links/offer-variant-link.js +15 -0
- package/.medusa/server/src/links/order-line-item-offer-link.d.ts +2 -0
- package/.medusa/server/src/links/order-line-item-offer-link.js +18 -0
- package/.medusa/server/src/links/product-attribute-category-link.d.ts +16 -0
- package/.medusa/server/src/links/product-attribute-category-link.js +40 -0
- package/.medusa/server/src/links/product-attribute-product-link.d.ts +10 -0
- package/.medusa/server/src/links/product-attribute-product-link.js +29 -0
- package/.medusa/server/src/links/product-attribute-value-link.d.ts +20 -0
- package/.medusa/server/src/links/product-attribute-value-link.js +34 -4
- package/.medusa/server/src/links/product-change-link.d.ts +8 -0
- package/.medusa/server/src/links/product-change-link.js +27 -0
- package/.medusa/server/src/links/product-seller-link.js +12 -2
- package/.medusa/server/src/links/product-variant-attribute-link.d.ts +2 -0
- package/.medusa/server/src/links/product-variant-attribute-link.js +21 -0
- package/.medusa/server/src/links/product-variant-attribute-value-link.d.ts +2 -0
- package/.medusa/server/src/links/product-variant-attribute-value-link.js +21 -0
- package/.medusa/server/src/modules/offer/index.d.ts +21 -0
- package/.medusa/server/src/modules/{subscription → offer}/index.js +2 -2
- package/.medusa/server/src/modules/{attribute/migrations/Migration20260325000000.d.ts → offer/migrations/Migration20260520104835.d.ts} +1 -1
- package/.medusa/server/src/modules/offer/migrations/Migration20260520104835.js +22 -0
- package/.medusa/server/src/modules/{subscription/migrations/Migration20260324135903.d.ts → offer/migrations/Migration20260526000000.d.ts} +1 -1
- package/.medusa/server/src/modules/offer/migrations/Migration20260526000000.js +16 -0
- package/.medusa/server/src/modules/offer/models/index.d.ts +1 -0
- package/.medusa/server/src/modules/offer/models/index.js +9 -0
- package/.medusa/server/src/modules/offer/models/offer.d.ts +12 -0
- package/.medusa/server/src/modules/offer/models/offer.js +50 -0
- package/.medusa/server/src/modules/offer/service.d.ts +16 -0
- package/.medusa/server/src/modules/offer/service.js +10 -0
- package/.medusa/server/src/modules/product-attribute/index.d.ts +36 -0
- package/.medusa/server/src/modules/product-attribute/index.js +14 -0
- package/.medusa/server/src/modules/product-attribute/joiner-config.d.ts +1 -0
- package/.medusa/server/src/modules/product-attribute/joiner-config.js +17 -0
- package/.medusa/server/src/modules/{vendor-product-attribute/migrations/Migration20260325000000.d.ts → product-attribute/migrations/Migration20260601000000.d.ts} +1 -1
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000000.js +62 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.d.ts +11 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.js +29 -0
- package/.medusa/server/src/modules/product-attribute/models/index.d.ts +2 -0
- package/.medusa/server/src/modules/product-attribute/models/index.js +11 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.d.ts +25 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +29 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +26 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +53 -0
- package/.medusa/server/src/modules/product-attribute/service.d.ts +55 -0
- package/.medusa/server/src/modules/product-attribute/service.js +15 -0
- package/.medusa/server/src/modules/product-edit/index.d.ts +36 -0
- package/.medusa/server/src/modules/product-edit/index.js +14 -0
- package/.medusa/server/src/modules/product-edit/joiner-config.d.ts +1 -0
- package/.medusa/server/src/modules/product-edit/joiner-config.js +17 -0
- package/.medusa/server/src/modules/product-edit/migrations/Migration20260601130000.d.ts +5 -0
- package/.medusa/server/src/modules/product-edit/migrations/Migration20260601130000.js +78 -0
- package/.medusa/server/src/modules/product-edit/models/index.d.ts +2 -0
- package/.medusa/server/src/modules/product-edit/models/index.js +11 -0
- package/.medusa/server/src/modules/product-edit/models/product-change-action.d.ts +49 -0
- package/.medusa/server/src/modules/product-edit/models/product-change-action.js +42 -0
- package/.medusa/server/src/modules/product-edit/models/product-change.d.ts +31 -0
- package/.medusa/server/src/modules/product-edit/models/product-change.js +52 -0
- package/.medusa/server/src/modules/product-edit/service.d.ts +84 -0
- package/.medusa/server/src/modules/product-edit/service.js +15 -0
- package/.medusa/server/src/modules/seller/loaders/register-feature-flags.js +7 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20260414123048.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260414123048.js +16 -0
- package/.medusa/server/src/subscribers/link-order-line-items-to-offers.d.ts +6 -0
- package/.medusa/server/src/subscribers/link-order-line-items-to-offers.js +94 -0
- package/.medusa/server/src/subscribers/order-edit-confirmed.d.ts +5 -0
- package/.medusa/server/src/subscribers/order-edit-confirmed.js +22 -0
- package/.medusa/server/src/types/cart-line-item.d.ts +6 -0
- package/.medusa/server/src/types/cart-line-item.js +3 -0
- package/.medusa/server/src/utils/disable-medusa-middlewares.d.ts +2 -0
- package/.medusa/server/src/utils/disable-medusa-middlewares.js +94 -0
- package/.medusa/server/src/with-mercur.js +4 -2
- package/.medusa/server/src/workflows/cart/hooks/before-refreshing-payment-collection.js +36 -0
- package/.medusa/server/src/workflows/cart/hooks/index.d.ts +3 -0
- package/.medusa/server/src/workflows/cart/hooks/index.js +6 -0
- package/.medusa/server/src/workflows/cart/hooks/set-pricing-context.js +94 -0
- package/.medusa/server/src/workflows/cart/hooks/validate.d.ts +1 -0
- package/.medusa/server/src/workflows/cart/hooks/validate.js +107 -0
- package/.medusa/server/src/workflows/cart/index.d.ts +1 -0
- package/.medusa/server/src/workflows/cart/index.js +2 -1
- package/.medusa/server/src/workflows/cart/steps/index.d.ts +2 -0
- package/.medusa/server/src/workflows/cart/steps/index.js +3 -1
- package/.medusa/server/src/workflows/cart/steps/link-line-item-to-offer.d.ts +13 -0
- package/.medusa/server/src/workflows/cart/steps/link-line-item-to-offer.js +31 -0
- package/.medusa/server/src/workflows/cart/steps/mirror-line-item-offer-links-to-order.d.ts +16 -0
- package/.medusa/server/src/workflows/cart/steps/mirror-line-item-offer-links-to-order.js +32 -0
- package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-items.d.ts +5 -7
- package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-items.js +6 -4
- package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-shipping.d.ts +5 -6
- package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-shipping.js +5 -4
- package/.medusa/server/src/workflows/cart/utils/fields.js +38 -20
- package/.medusa/server/src/workflows/cart/utils/index.d.ts +0 -1
- package/.medusa/server/src/workflows/cart/utils/index.js +1 -2
- package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.d.ts +1 -0
- package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.js +2 -2
- package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +104 -26
- package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.js +18 -15
- package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.js +5 -3
- package/.medusa/server/src/workflows/events.d.ts +5 -0
- package/.medusa/server/src/workflows/events.js +7 -2
- package/.medusa/server/src/workflows/index.d.ts +5 -1
- package/.medusa/server/src/workflows/index.js +6 -2
- package/.medusa/server/src/workflows/{attribute → offer}/index.d.ts +2 -1
- package/.medusa/server/src/workflows/{attribute/workflows → offer}/index.js +4 -6
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.d.ts +22 -0
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +64 -0
- package/.medusa/server/src/workflows/offer/steps/create-offers.d.ts +16 -0
- package/.medusa/server/src/workflows/offer/steps/create-offers.js +17 -0
- package/.medusa/server/src/workflows/offer/steps/delete-offers.d.ts +6 -0
- package/.medusa/server/src/workflows/offer/steps/delete-offers.js +21 -0
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +15 -0
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +61 -0
- package/.medusa/server/src/workflows/offer/steps/index.d.ts +6 -0
- package/.medusa/server/src/workflows/offer/steps/index.js +23 -0
- package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.d.ts +3 -0
- package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.js +15 -0
- package/.medusa/server/src/workflows/offer/steps/update-offers.d.ts +25 -0
- package/.medusa/server/src/workflows/offer/steps/update-offers.js +35 -0
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.d.ts +17 -0
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +27 -0
- package/.medusa/server/src/workflows/offer/utils/index.d.ts +2 -0
- package/.medusa/server/src/workflows/{subscription/steps → offer/utils}/index.js +3 -7
- package/.medusa/server/src/workflows/offer/utils/prepare-offer-inventory-input.d.ts +59 -0
- package/.medusa/server/src/workflows/offer/utils/prepare-offer-inventory-input.js +128 -0
- package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.d.ts +21 -0
- package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.js +118 -0
- package/.medusa/server/src/workflows/offer/workflows/create-offers.d.ts +17 -0
- package/.medusa/server/src/workflows/offer/workflows/create-offers.js +170 -0
- package/.medusa/server/src/workflows/offer/workflows/delete-offers.d.ts +11 -0
- package/.medusa/server/src/workflows/offer/workflows/delete-offers.js +22 -0
- package/.medusa/server/src/workflows/offer/workflows/index.d.ts +4 -0
- package/.medusa/server/src/workflows/{attribute/steps → offer/workflows}/index.js +5 -8
- package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +28 -0
- package/.medusa/server/src/workflows/offer/workflows/update-offers.js +182 -0
- package/.medusa/server/src/workflows/order/index.d.ts +1 -0
- package/.medusa/server/src/workflows/{attribute → order}/index.js +1 -2
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +15 -0
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +186 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.d.ts +7 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.js +151 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.d.ts +7 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.js +159 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.d.ts +7 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +220 -0
- package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.d.ts +16 -0
- package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +366 -0
- package/.medusa/server/src/workflows/order/workflows/index.d.ts +5 -0
- package/.medusa/server/src/workflows/order/workflows/index.js +22 -0
- package/.medusa/server/src/workflows/product/events.d.ts +12 -0
- package/.medusa/server/src/workflows/product/events.js +16 -0
- package/.medusa/server/src/workflows/product/index.d.ts +3 -0
- package/.medusa/server/src/workflows/product/index.js +20 -0
- package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-category.d.ts +8 -0
- package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-category.js +26 -0
- package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product.d.ts +8 -0
- package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product.js +26 -0
- package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-category.d.ts +8 -0
- package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-category.js +26 -0
- package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product.d.ts +8 -0
- package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product.js +26 -0
- package/.medusa/server/src/workflows/product/steps/index.d.ts +8 -0
- package/.medusa/server/src/workflows/product/steps/index.js +25 -0
- package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.d.ts +28 -0
- package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.js +72 -0
- package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.d.ts +90 -0
- package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.js +185 -0
- package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +19 -0
- package/.medusa/server/src/workflows/product/steps/validate-products-status.js +28 -0
- package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.d.ts +6 -0
- package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +26 -0
- package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +27 -0
- package/.medusa/server/src/workflows/product/workflows/confirm-products.js +68 -0
- package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +59 -0
- package/.medusa/server/src/workflows/product/workflows/create-products.js +221 -0
- package/.medusa/server/src/workflows/product/workflows/index.d.ts +7 -0
- package/.medusa/server/src/workflows/product/workflows/index.js +24 -0
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +14 -0
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +20 -0
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +14 -0
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +20 -0
- package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +18 -0
- package/.medusa/server/src/workflows/product/workflows/reject-product.js +65 -0
- package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +25 -0
- package/.medusa/server/src/workflows/product/workflows/request-product-change.js +69 -0
- package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +39 -0
- package/.medusa/server/src/workflows/product/workflows/update-products.js +161 -0
- package/.medusa/server/src/workflows/product-attribute/events.d.ts +19 -0
- package/.medusa/server/src/workflows/product-attribute/events.js +23 -0
- package/.medusa/server/src/workflows/{subscription → product-attribute}/index.d.ts +1 -0
- package/.medusa/server/src/workflows/product-attribute/index.js +20 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.d.ts +37 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.d.ts +44 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attribute-values.d.ts +2 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attribute-values.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attributes.d.ts +2 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attributes.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +10 -7
- package/.medusa/server/src/workflows/product-attribute/steps/index.js +11 -8
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +38 -0
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +23 -0
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attributes.d.ts +38 -0
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attributes.js +23 -0
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.d.ts +43 -0
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.js +51 -0
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.d.ts +7 -0
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.js +59 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.d.ts +6 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.js +20 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.d.ts +7 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.js +20 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.d.ts +52 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.js +120 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.d.ts +23 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.js +252 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.js +26 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.d.ts +19 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.js +64 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.d.ts +16 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.js +40 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +23 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +31 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.d.ts +17 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.js +62 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +13 -8
- package/.medusa/server/src/workflows/product-attribute/workflows/index.js +14 -9
- package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.d.ts +135 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.js +43 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.d.ts +24 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.js +27 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.js +27 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.d.ts +23 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.js +67 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.js +27 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +26 -0
- package/.medusa/server/src/workflows/product-edit/events.d.ts +13 -0
- package/.medusa/server/src/workflows/product-edit/events.js +17 -0
- package/.medusa/server/src/workflows/product-edit/index.d.ts +3 -0
- package/.medusa/server/src/workflows/{subscription → product-edit}/index.js +2 -1
- package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.d.ts +38 -0
- package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.js +18 -0
- package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.d.ts +43 -0
- package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.js +32 -0
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.d.ts +15 -0
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +25 -0
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +51 -0
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +48 -0
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +43 -0
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +26 -0
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +47 -0
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +18 -0
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +49 -0
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +41 -0
- package/.medusa/server/src/workflows/product-edit/steps/index.d.ts +10 -0
- package/.medusa/server/src/workflows/product-edit/steps/index.js +27 -0
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +49 -0
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +34 -0
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +12 -0
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +37 -0
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.d.ts +10 -0
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.js +14 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.d.ts +23 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +139 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +38 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +191 -0
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +17 -0
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +29 -0
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.d.ts +17 -0
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.js +35 -0
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.d.ts +30 -0
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +55 -0
- package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.d.ts +17 -0
- package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.js +26 -0
- package/.medusa/server/src/workflows/product-edit/workflows/index.d.ts +13 -0
- package/.medusa/server/src/workflows/product-edit/workflows/index.js +30 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +17 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +35 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +55 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +198 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +25 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +148 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.d.ts +35 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +108 -0
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +36 -0
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +53 -0
- package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.d.ts +18 -0
- package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.js +36 -0
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.d.ts +35 -0
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +57 -0
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.d.ts +20 -2
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +5 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-address.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-address.js +1 -1
- package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.js +1 -1
- package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.js +1 -1
- package/.medusa/server/src/workflows/seller/workflows/update-seller.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller.js +1 -1
- package/package.json +8 -4
- package/.medusa/server/src/api/admin/attributes/[id]/route.d.ts +0 -5
- package/.medusa/server/src/api/admin/attributes/[id]/route.js +0 -68
- package/.medusa/server/src/api/admin/attributes/[id]/values/[value_id]/route.d.ts +0 -4
- package/.medusa/server/src/api/admin/attributes/[id]/values/[value_id]/route.js +0 -40
- package/.medusa/server/src/api/admin/attributes/[id]/values/route.d.ts +0 -4
- package/.medusa/server/src/api/admin/attributes/[id]/values/route.js +0 -44
- package/.medusa/server/src/api/admin/attributes/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/admin/attributes/middlewares.js +0 -102
- package/.medusa/server/src/api/admin/attributes/query-config.d.ts +0 -20
- package/.medusa/server/src/api/admin/attributes/query-config.js +0 -41
- package/.medusa/server/src/api/admin/attributes/route.d.ts +0 -4
- package/.medusa/server/src/api/admin/attributes/route.js +0 -51
- package/.medusa/server/src/api/admin/attributes/validators.d.ts +0 -793
- package/.medusa/server/src/api/admin/attributes/validators.js +0 -92
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.js +0 -43
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.js +0 -24
- package/.medusa/server/src/api/admin/subscription-plans/[id]/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/subscription-plans/[id]/route.js +0 -43
- package/.medusa/server/src/api/admin/subscription-plans/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/admin/subscription-plans/middlewares.js +0 -81
- package/.medusa/server/src/api/admin/subscription-plans/query-config.d.ts +0 -17
- package/.medusa/server/src/api/admin/subscription-plans/query-config.js +0 -43
- package/.medusa/server/src/api/admin/subscription-plans/route.d.ts +0 -5
- package/.medusa/server/src/api/admin/subscription-plans/route.js +0 -35
- package/.medusa/server/src/api/admin/subscription-plans/validators.d.ts +0 -117
- package/.medusa/server/src/api/admin/subscription-plans/validators.js +0 -42
- package/.medusa/server/src/api/vendor/attributes/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/vendor/attributes/middlewares.js +0 -32
- package/.medusa/server/src/api/vendor/attributes/route.js +0 -20
- package/.medusa/server/src/api/vendor/product-categories/helpers.d.ts +0 -2
- package/.medusa/server/src/api/vendor/product-categories/helpers.js +0 -24
- package/.medusa/server/src/api/vendor/products/[id]/attributes/utils.d.ts +0 -7
- package/.medusa/server/src/api/vendor/products/[id]/attributes/utils.js +0 -16
- package/.medusa/server/src/api/vendor/products/[id]/options/[option_id]/route.d.ts +0 -5
- package/.medusa/server/src/api/vendor/products/[id]/options/[option_id]/route.js +0 -74
- package/.medusa/server/src/api/vendor/products/[id]/options/route.d.ts +0 -4
- package/.medusa/server/src/api/vendor/products/[id]/options/route.js +0 -34
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/media/route.js +0 -20
- package/.medusa/server/src/api/vendor/products/utils/transform-product-attributes.d.ts +0 -34
- package/.medusa/server/src/api/vendor/products/utils/transform-product-attributes.js +0 -71
- package/.medusa/server/src/api/vendor/subscription/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/vendor/subscription/middlewares.js +0 -28
- package/.medusa/server/src/api/vendor/subscription/route.js +0 -31
- package/.medusa/server/src/links/category-attribute-link.js +0 -16
- package/.medusa/server/src/links/product-vendor-product-attribute-link.js +0 -16
- package/.medusa/server/src/links/seller-attribute-link.js +0 -13
- package/.medusa/server/src/links/seller-attribute-value-link.js +0 -13
- package/.medusa/server/src/links/seller-vendor-product-attribute-link.js +0 -13
- package/.medusa/server/src/modules/attribute/index.d.ts +0 -51
- package/.medusa/server/src/modules/attribute/index.js +0 -15
- package/.medusa/server/src/modules/attribute/migrations/Migration20260325000000.js +0 -32
- package/.medusa/server/src/modules/attribute/models/attribute-possible-value.d.ts +0 -27
- package/.medusa/server/src/modules/attribute/models/attribute-possible-value.js +0 -26
- package/.medusa/server/src/modules/attribute/models/attribute-value.d.ts +0 -27
- package/.medusa/server/src/modules/attribute/models/attribute-value.js +0 -26
- package/.medusa/server/src/modules/attribute/models/attribute.d.ts +0 -28
- package/.medusa/server/src/modules/attribute/models/attribute.js +0 -36
- package/.medusa/server/src/modules/attribute/models/index.d.ts +0 -3
- package/.medusa/server/src/modules/attribute/models/index.js +0 -13
- package/.medusa/server/src/modules/attribute/service.d.ts +0 -105
- package/.medusa/server/src/modules/attribute/service.js +0 -74
- package/.medusa/server/src/modules/subscription/index.d.ts +0 -35
- package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.js +0 -24
- package/.medusa/server/src/modules/subscription/models/index.d.ts +0 -2
- package/.medusa/server/src/modules/subscription/models/index.js +0 -11
- package/.medusa/server/src/modules/subscription/models/subscription-override.d.ts +0 -20
- package/.medusa/server/src/modules/subscription/models/subscription-override.js +0 -36
- package/.medusa/server/src/modules/subscription/models/subscription-plan.d.ts +0 -20
- package/.medusa/server/src/modules/subscription/models/subscription-plan.js +0 -32
- package/.medusa/server/src/modules/subscription/service.d.ts +0 -49
- package/.medusa/server/src/modules/subscription/service.js +0 -17
- package/.medusa/server/src/modules/vendor-product-attribute/index.d.ts +0 -23
- package/.medusa/server/src/modules/vendor-product-attribute/index.js +0 -15
- package/.medusa/server/src/modules/vendor-product-attribute/migrations/Migration20260325000000.js +0 -16
- package/.medusa/server/src/modules/vendor-product-attribute/models/vendor-product-attribute.d.ts +0 -11
- package/.medusa/server/src/modules/vendor-product-attribute/models/vendor-product-attribute.js +0 -24
- package/.medusa/server/src/modules/vendor-product-attribute/service.d.ts +0 -14
- package/.medusa/server/src/modules/vendor-product-attribute/service.js +0 -13
- package/.medusa/server/src/workflows/attribute/steps/create-attribute-possible-values.d.ts +0 -40
- package/.medusa/server/src/workflows/attribute/steps/create-attribute-possible-values.js +0 -18
- package/.medusa/server/src/workflows/attribute/steps/create-attributes.d.ts +0 -5
- package/.medusa/server/src/workflows/attribute/steps/create-attributes.js +0 -32
- package/.medusa/server/src/workflows/attribute/steps/delete-attribute.d.ts +0 -6
- package/.medusa/server/src/workflows/attribute/steps/delete-attribute.js +0 -31
- package/.medusa/server/src/workflows/attribute/steps/index.d.ts +0 -7
- package/.medusa/server/src/workflows/attribute/steps/update-attribute-possible-value.d.ts +0 -39
- package/.medusa/server/src/workflows/attribute/steps/update-attribute-possible-value.js +0 -18
- package/.medusa/server/src/workflows/attribute/steps/update-attributes.d.ts +0 -21
- package/.medusa/server/src/workflows/attribute/steps/update-attributes.js +0 -37
- package/.medusa/server/src/workflows/attribute/steps/validate-attribute-delete.d.ts +0 -6
- package/.medusa/server/src/workflows/attribute/steps/validate-attribute-delete.js +0 -50
- package/.medusa/server/src/workflows/attribute/steps/validate-possible-values-removal.d.ts +0 -7
- package/.medusa/server/src/workflows/attribute/steps/validate-possible-values-removal.js +0 -70
- package/.medusa/server/src/workflows/attribute/workflows/create-attribute-possible-values.d.ts +0 -39
- package/.medusa/server/src/workflows/attribute/workflows/create-attribute-possible-values.js +0 -11
- package/.medusa/server/src/workflows/attribute/workflows/create-attributes.d.ts +0 -7
- package/.medusa/server/src/workflows/attribute/workflows/create-attributes.js +0 -40
- package/.medusa/server/src/workflows/attribute/workflows/delete-attribute.d.ts +0 -6
- package/.medusa/server/src/workflows/attribute/workflows/delete-attribute.js +0 -11
- package/.medusa/server/src/workflows/attribute/workflows/index.d.ts +0 -5
- package/.medusa/server/src/workflows/attribute/workflows/update-attribute-possible-value.d.ts +0 -39
- package/.medusa/server/src/workflows/attribute/workflows/update-attribute-possible-value.js +0 -11
- package/.medusa/server/src/workflows/attribute/workflows/update-attributes.d.ts +0 -24
- package/.medusa/server/src/workflows/attribute/workflows/update-attributes.js +0 -69
- package/.medusa/server/src/workflows/cart/utils/prepare-confirm-inventory-input.d.ts +0 -28
- package/.medusa/server/src/workflows/cart/utils/prepare-confirm-inventory-input.js +0 -165
- package/.medusa/server/src/workflows/hooks/product-created.js +0 -75
- package/.medusa/server/src/workflows/hooks/product-variant-created.js +0 -50
- package/.medusa/server/src/workflows/product-attribute/steps/create-attribute-value.d.ts +0 -39
- package/.medusa/server/src/workflows/product-attribute/steps/create-attribute-value.js +0 -21
- package/.medusa/server/src/workflows/product-attribute/steps/create-attribute-values.d.ts +0 -12
- package/.medusa/server/src/workflows/product-attribute/steps/create-attribute-values.js +0 -24
- package/.medusa/server/src/workflows/product-attribute/steps/create-vendor-product-attribute.d.ts +0 -14
- package/.medusa/server/src/workflows/product-attribute/steps/create-vendor-product-attribute.js +0 -18
- package/.medusa/server/src/workflows/product-attribute/steps/delete-attribute-value.d.ts +0 -2
- package/.medusa/server/src/workflows/product-attribute/steps/delete-attribute-value.js +0 -18
- package/.medusa/server/src/workflows/product-attribute/steps/restore-variant-image-associations.d.ts +0 -10
- package/.medusa/server/src/workflows/product-attribute/steps/restore-variant-image-associations.js +0 -49
- package/.medusa/server/src/workflows/product-attribute/steps/save-variant-image-associations.d.ts +0 -8
- package/.medusa/server/src/workflows/product-attribute/steps/save-variant-image-associations.js +0 -29
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-value.d.ts +0 -3
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-value.js +0 -59
- package/.medusa/server/src/workflows/product-attribute/utils/find-or-create-vendor-attribute.d.ts +0 -13
- package/.medusa/server/src/workflows/product-attribute/utils/find-or-create-vendor-attribute.js +0 -56
- package/.medusa/server/src/workflows/product-attribute/utils/get-applicable-attributes.d.ts +0 -2
- package/.medusa/server/src/workflows/product-attribute/utils/get-applicable-attributes.js +0 -58
- package/.medusa/server/src/workflows/product-attribute/utils/products-created-handler.d.ts +0 -8
- package/.medusa/server/src/workflows/product-attribute/utils/products-created-handler.js +0 -100
- package/.medusa/server/src/workflows/product-attribute/workflows/convert-attribute-to-option.d.ts +0 -3
- package/.medusa/server/src/workflows/product-attribute/workflows/convert-attribute-to-option.js +0 -46
- package/.medusa/server/src/workflows/product-attribute/workflows/convert-option-to-attribute.d.ts +0 -3
- package/.medusa/server/src/workflows/product-attribute/workflows/convert-option-to-attribute.js +0 -29
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-attribute-values.d.ts +0 -16
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-attribute-values.js +0 -72
- package/.medusa/server/src/workflows/product-attribute/workflows/create-attribute-value.d.ts +0 -39
- package/.medusa/server/src/workflows/product-attribute/workflows/create-attribute-value.js +0 -35
- package/.medusa/server/src/workflows/product-attribute/workflows/create-vendor-product-attribute.d.ts +0 -24
- package/.medusa/server/src/workflows/product-attribute/workflows/create-vendor-product-attribute.js +0 -42
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-attribute-value.d.ts +0 -3
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-attribute-value.js +0 -59
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-values.d.ts +0 -20
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-values.js +0 -67
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-with-variant-images.d.ts +0 -11
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-with-variant-images.js +0 -34
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.d.ts +0 -2
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.d.ts +0 -2
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/index.d.ts +0 -6
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.js +0 -17
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.d.ts +0 -5
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.d.ts +0 -5
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/index.d.ts +0 -6
- package/.medusa/server/src/workflows/subscription/workflows/index.js +0 -23
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.js +0 -11
- /package/.medusa/server/src/links/{category-attribute-link.d.ts → cart-line-item-offer-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{product-vendor-product-attribute-link.d.ts → category-seller-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{seller-attribute-link.d.ts → offer-inventory-item-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{seller-attribute-value-link.d.ts → offer-price-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{seller-vendor-product-attribute-link.d.ts → offer-seller-link.d.ts} +0 -0
- /package/.medusa/server/src/workflows/{hooks/product-created.d.ts → cart/hooks/before-refreshing-payment-collection.d.ts} +0 -0
- /package/.medusa/server/src/workflows/{hooks/product-variant-created.d.ts → cart/hooks/set-pricing-context.d.ts} +0 -0
|
@@ -15,20 +15,20 @@ export declare const VendorGetFulfillmentProvidersParams: z.ZodObject<{
|
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
offset: number;
|
|
17
17
|
limit: number;
|
|
18
|
+
order?: string | undefined;
|
|
18
19
|
id?: string | string[] | undefined;
|
|
19
20
|
q?: string | undefined;
|
|
20
21
|
fields?: string | undefined;
|
|
21
|
-
order?: string | undefined;
|
|
22
22
|
with_deleted?: boolean | undefined;
|
|
23
23
|
is_enabled?: boolean | undefined;
|
|
24
24
|
stock_location_id?: string | string[] | undefined;
|
|
25
25
|
}, {
|
|
26
|
+
order?: string | undefined;
|
|
26
27
|
id?: string | string[] | undefined;
|
|
27
28
|
offset?: unknown;
|
|
28
29
|
limit?: unknown;
|
|
29
30
|
q?: string | undefined;
|
|
30
31
|
fields?: string | undefined;
|
|
31
|
-
order?: string | undefined;
|
|
32
32
|
with_deleted?: unknown;
|
|
33
33
|
is_enabled?: string | boolean | undefined;
|
|
34
34
|
stock_location_id?: string | string[] | undefined;
|
|
@@ -227,13 +227,13 @@ export declare const VendorUpdateServiceZone: z.ZodObject<{
|
|
|
227
227
|
}, "strip", z.ZodTypeAny, {
|
|
228
228
|
type: "country";
|
|
229
229
|
country_code: string;
|
|
230
|
-
id?: string | undefined;
|
|
231
230
|
metadata?: Record<string, unknown> | null | undefined;
|
|
231
|
+
id?: string | undefined;
|
|
232
232
|
}, {
|
|
233
233
|
type: "country";
|
|
234
234
|
country_code: string;
|
|
235
|
-
id?: string | undefined;
|
|
236
235
|
metadata?: Record<string, unknown> | null | undefined;
|
|
236
|
+
id?: string | undefined;
|
|
237
237
|
}>, z.ZodObject<{
|
|
238
238
|
country_code: z.ZodString;
|
|
239
239
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -246,14 +246,14 @@ export declare const VendorUpdateServiceZone: z.ZodObject<{
|
|
|
246
246
|
type: "province";
|
|
247
247
|
country_code: string;
|
|
248
248
|
province_code: string;
|
|
249
|
-
id?: string | undefined;
|
|
250
249
|
metadata?: Record<string, unknown> | null | undefined;
|
|
250
|
+
id?: string | undefined;
|
|
251
251
|
}, {
|
|
252
252
|
type: "province";
|
|
253
253
|
country_code: string;
|
|
254
254
|
province_code: string;
|
|
255
|
-
id?: string | undefined;
|
|
256
255
|
metadata?: Record<string, unknown> | null | undefined;
|
|
256
|
+
id?: string | undefined;
|
|
257
257
|
}>, z.ZodObject<{
|
|
258
258
|
country_code: z.ZodString;
|
|
259
259
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -268,15 +268,15 @@ export declare const VendorUpdateServiceZone: z.ZodObject<{
|
|
|
268
268
|
city: string;
|
|
269
269
|
country_code: string;
|
|
270
270
|
province_code: string;
|
|
271
|
-
id?: string | undefined;
|
|
272
271
|
metadata?: Record<string, unknown> | null | undefined;
|
|
272
|
+
id?: string | undefined;
|
|
273
273
|
}, {
|
|
274
274
|
type: "city";
|
|
275
275
|
city: string;
|
|
276
276
|
country_code: string;
|
|
277
277
|
province_code: string;
|
|
278
|
-
id?: string | undefined;
|
|
279
278
|
metadata?: Record<string, unknown> | null | undefined;
|
|
279
|
+
id?: string | undefined;
|
|
280
280
|
}>, z.ZodObject<{
|
|
281
281
|
country_code: z.ZodString;
|
|
282
282
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -293,73 +293,73 @@ export declare const VendorUpdateServiceZone: z.ZodObject<{
|
|
|
293
293
|
country_code: string;
|
|
294
294
|
province_code: string;
|
|
295
295
|
postal_expression: Record<string, unknown>;
|
|
296
|
-
id?: string | undefined;
|
|
297
296
|
metadata?: Record<string, unknown> | null | undefined;
|
|
297
|
+
id?: string | undefined;
|
|
298
298
|
}, {
|
|
299
299
|
type: "zip";
|
|
300
300
|
city: string;
|
|
301
301
|
country_code: string;
|
|
302
302
|
province_code: string;
|
|
303
303
|
postal_expression: Record<string, unknown>;
|
|
304
|
-
id?: string | undefined;
|
|
305
304
|
metadata?: Record<string, unknown> | null | undefined;
|
|
305
|
+
id?: string | undefined;
|
|
306
306
|
}>]>, "many">>;
|
|
307
307
|
}, "strict", z.ZodTypeAny, {
|
|
308
308
|
name?: string | null | undefined;
|
|
309
309
|
geo_zones?: ({
|
|
310
310
|
type: "country";
|
|
311
311
|
country_code: string;
|
|
312
|
-
id?: string | undefined;
|
|
313
312
|
metadata?: Record<string, unknown> | null | undefined;
|
|
313
|
+
id?: string | undefined;
|
|
314
314
|
} | {
|
|
315
315
|
type: "province";
|
|
316
316
|
country_code: string;
|
|
317
317
|
province_code: string;
|
|
318
|
-
id?: string | undefined;
|
|
319
318
|
metadata?: Record<string, unknown> | null | undefined;
|
|
319
|
+
id?: string | undefined;
|
|
320
320
|
} | {
|
|
321
321
|
type: "city";
|
|
322
322
|
city: string;
|
|
323
323
|
country_code: string;
|
|
324
324
|
province_code: string;
|
|
325
|
-
id?: string | undefined;
|
|
326
325
|
metadata?: Record<string, unknown> | null | undefined;
|
|
326
|
+
id?: string | undefined;
|
|
327
327
|
} | {
|
|
328
328
|
type: "zip";
|
|
329
329
|
city: string;
|
|
330
330
|
country_code: string;
|
|
331
331
|
province_code: string;
|
|
332
332
|
postal_expression: Record<string, unknown>;
|
|
333
|
-
id?: string | undefined;
|
|
334
333
|
metadata?: Record<string, unknown> | null | undefined;
|
|
334
|
+
id?: string | undefined;
|
|
335
335
|
})[] | undefined;
|
|
336
336
|
}, {
|
|
337
337
|
name?: string | null | undefined;
|
|
338
338
|
geo_zones?: ({
|
|
339
339
|
type: "country";
|
|
340
340
|
country_code: string;
|
|
341
|
-
id?: string | undefined;
|
|
342
341
|
metadata?: Record<string, unknown> | null | undefined;
|
|
342
|
+
id?: string | undefined;
|
|
343
343
|
} | {
|
|
344
344
|
type: "province";
|
|
345
345
|
country_code: string;
|
|
346
346
|
province_code: string;
|
|
347
|
-
id?: string | undefined;
|
|
348
347
|
metadata?: Record<string, unknown> | null | undefined;
|
|
348
|
+
id?: string | undefined;
|
|
349
349
|
} | {
|
|
350
350
|
type: "city";
|
|
351
351
|
city: string;
|
|
352
352
|
country_code: string;
|
|
353
353
|
province_code: string;
|
|
354
|
-
id?: string | undefined;
|
|
355
354
|
metadata?: Record<string, unknown> | null | undefined;
|
|
355
|
+
id?: string | undefined;
|
|
356
356
|
} | {
|
|
357
357
|
type: "zip";
|
|
358
358
|
city: string;
|
|
359
359
|
country_code: string;
|
|
360
360
|
province_code: string;
|
|
361
361
|
postal_expression: Record<string, unknown>;
|
|
362
|
-
id?: string | undefined;
|
|
363
362
|
metadata?: Record<string, unknown> | null | undefined;
|
|
363
|
+
id?: string | undefined;
|
|
364
364
|
})[] | undefined;
|
|
365
365
|
}>;
|
|
@@ -32,4 +32,4 @@ const POST = async (req, res) => {
|
|
|
32
32
|
res.json({ inventory_item: inventoryItem });
|
|
33
33
|
};
|
|
34
34
|
exports.POST = POST;
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9pbnZlbnRvcnktaXRlbXMvcm91dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBSUEscURBQXFFO0FBR3JFLHNFQUFzRjtBQUN0Rix1Q0FBZ0Q7QUFNekMsTUFBTSxHQUFHLEdBQUcsS0FBSyxFQUN0QixHQUFrRSxFQUNsRSxHQUE4RCxFQUM5RCxFQUFFO0lBQ0YsTUFBTSxLQUFLLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsaUNBQXlCLENBQUMsS0FBSyxDQUFDLENBQUE7SUFFaEUsTUFBTSxFQUFFLElBQUksRUFBRSxlQUFlLEVBQUUsUUFBUSxFQUFFLEdBQUcsTUFBTSxLQUFLLENBQUMsS0FBSyxDQUFDO1FBQzVELE1BQU0sRUFBRSxnQkFBZ0I7UUFDeEIsTUFBTSxFQUFFLEdBQUcsQ0FBQyxXQUFXLENBQUMsTUFBTTtRQUM5QixPQUFPLEVBQUUsR0FBRyxDQUFDLGdCQUFnQjtRQUM3QixVQUFVLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxVQUFVO0tBQ3ZDLENBQUMsQ0FBQTtJQUVGLEdBQUcsQ0FBQyxJQUFJLENBQUM7UUFDUCxlQUFlO1FBQ2YsS0FBSyxFQUFFLFFBQVEsRUFBRSxLQUFLLElBQUksQ0FBQztRQUMzQixNQUFNLEVBQUUsUUFBUSxFQUFFLElBQUksSUFBSSxDQUFDO1FBQzNCLEtBQUssRUFBRSxRQUFRLEVBQUUsSUFBSSxJQUFJLENBQUM7S0FDM0IsQ0FBQyxDQUFBO0FBQ0osQ0FBQyxDQUFBO0FBbkJZLFFBQUEsR0FBRyxPQW1CZjtBQUVNLE1BQU0sSUFBSSxHQUFHLEtBQUssRUFDdkIsR0FBOEQsRUFDOUQsR0FBMEQsRUFDMUQsRUFBRTtJQUNGLE1BQU0sUUFBUSxHQUFHLEdBQUcsQ0FBQyxjQUFlLENBQUMsU0FBUyxDQUFBO0lBRTlDLE1BQU0sRUFBRSxNQUFNLEVBQUUsR0FBRyxNQUFNLElBQUEsbURBQWtDLEVBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQztRQUN6RSxLQUFLLEVBQUU7WUFDTCxTQUFTLEVBQUUsUUFBUTtZQUNuQixlQUFlLEVBQUUsQ0FBQyxHQUFHLENBQUMsYUFBYSxDQUFDO1NBQ3JDO0tBQ0YsQ0FBQyxDQUFBO0lBRUYsTUFBTSxhQUFhLEdBQUcsTUFBTSxJQUFBLDhCQUFvQixFQUM5QyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRSxFQUNaLEdBQUcsQ0FBQyxLQUFLLEVBQ1QsR0FBRyxDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQ3ZCLENBQUE7SUFFRCxHQUFHLENBQUMsSUFBSSxDQUFDLEVBQUUsY0FBYyxFQUFFLGFBQWEsRUFBRSxDQUFDLENBQUE7QUFDN0MsQ0FBQyxDQUFBO0FBcEJZLFFBQUEsSUFBSSxRQW9CaEIifQ==
|
|
@@ -188,14 +188,14 @@ export declare const VendorGetInventoryItemsParamsFields: z.ZodObject<{
|
|
|
188
188
|
id?: string | string[] | undefined;
|
|
189
189
|
q?: string | undefined;
|
|
190
190
|
sku?: string | string[] | undefined;
|
|
191
|
-
origin_country?: string | string[] | undefined;
|
|
192
|
-
hs_code?: string | string[] | undefined;
|
|
193
|
-
requires_shipping?: boolean | undefined;
|
|
194
|
-
mid_code?: string | string[] | undefined;
|
|
195
|
-
material?: string | string[] | undefined;
|
|
196
191
|
weight?: any;
|
|
197
192
|
height?: any;
|
|
198
193
|
width?: any;
|
|
194
|
+
hs_code?: string | string[] | undefined;
|
|
195
|
+
origin_country?: string | string[] | undefined;
|
|
196
|
+
mid_code?: string | string[] | undefined;
|
|
197
|
+
material?: string | string[] | undefined;
|
|
198
|
+
requires_shipping?: boolean | undefined;
|
|
199
199
|
location_levels?: {
|
|
200
200
|
location_id?: string | string[] | undefined;
|
|
201
201
|
} | undefined;
|
|
@@ -204,14 +204,14 @@ export declare const VendorGetInventoryItemsParamsFields: z.ZodObject<{
|
|
|
204
204
|
id?: string | string[] | undefined;
|
|
205
205
|
q?: string | undefined;
|
|
206
206
|
sku?: string | string[] | undefined;
|
|
207
|
-
origin_country?: string | string[] | undefined;
|
|
208
|
-
hs_code?: string | string[] | undefined;
|
|
209
|
-
requires_shipping?: string | boolean | undefined;
|
|
210
|
-
mid_code?: string | string[] | undefined;
|
|
211
|
-
material?: string | string[] | undefined;
|
|
212
207
|
weight?: any;
|
|
213
208
|
height?: any;
|
|
214
209
|
width?: any;
|
|
210
|
+
hs_code?: string | string[] | undefined;
|
|
211
|
+
origin_country?: string | string[] | undefined;
|
|
212
|
+
mid_code?: string | string[] | undefined;
|
|
213
|
+
material?: string | string[] | undefined;
|
|
214
|
+
requires_shipping?: string | boolean | undefined;
|
|
215
215
|
location_levels?: {
|
|
216
216
|
location_id?: string | string[] | undefined;
|
|
217
217
|
} | undefined;
|
|
@@ -404,41 +404,41 @@ export declare const VendorGetInventoryItemsParams: z.ZodObject<{
|
|
|
404
404
|
offset: number;
|
|
405
405
|
limit: number;
|
|
406
406
|
length?: any;
|
|
407
|
+
order?: string | undefined;
|
|
407
408
|
id?: string | string[] | undefined;
|
|
408
409
|
q?: string | undefined;
|
|
409
410
|
fields?: string | undefined;
|
|
410
|
-
order?: string | undefined;
|
|
411
411
|
with_deleted?: boolean | undefined;
|
|
412
412
|
sku?: string | string[] | undefined;
|
|
413
|
-
origin_country?: string | string[] | undefined;
|
|
414
|
-
hs_code?: string | string[] | undefined;
|
|
415
|
-
requires_shipping?: boolean | undefined;
|
|
416
|
-
mid_code?: string | string[] | undefined;
|
|
417
|
-
material?: string | string[] | undefined;
|
|
418
413
|
weight?: any;
|
|
419
414
|
height?: any;
|
|
420
415
|
width?: any;
|
|
416
|
+
hs_code?: string | string[] | undefined;
|
|
417
|
+
origin_country?: string | string[] | undefined;
|
|
418
|
+
mid_code?: string | string[] | undefined;
|
|
419
|
+
material?: string | string[] | undefined;
|
|
420
|
+
requires_shipping?: boolean | undefined;
|
|
421
421
|
location_levels?: {
|
|
422
422
|
location_id?: string | string[] | undefined;
|
|
423
423
|
} | undefined;
|
|
424
424
|
}, {
|
|
425
425
|
length?: any;
|
|
426
|
+
order?: string | undefined;
|
|
426
427
|
id?: string | string[] | undefined;
|
|
427
428
|
offset?: unknown;
|
|
428
429
|
limit?: unknown;
|
|
429
430
|
q?: string | undefined;
|
|
430
431
|
fields?: string | undefined;
|
|
431
|
-
order?: string | undefined;
|
|
432
432
|
with_deleted?: unknown;
|
|
433
433
|
sku?: string | string[] | undefined;
|
|
434
|
-
origin_country?: string | string[] | undefined;
|
|
435
|
-
hs_code?: string | string[] | undefined;
|
|
436
|
-
requires_shipping?: string | boolean | undefined;
|
|
437
|
-
mid_code?: string | string[] | undefined;
|
|
438
|
-
material?: string | string[] | undefined;
|
|
439
434
|
weight?: any;
|
|
440
435
|
height?: any;
|
|
441
436
|
width?: any;
|
|
437
|
+
hs_code?: string | string[] | undefined;
|
|
438
|
+
origin_country?: string | string[] | undefined;
|
|
439
|
+
mid_code?: string | string[] | undefined;
|
|
440
|
+
material?: string | string[] | undefined;
|
|
441
|
+
requires_shipping?: string | boolean | undefined;
|
|
442
442
|
location_levels?: {
|
|
443
443
|
location_id?: string | string[] | undefined;
|
|
444
444
|
} | undefined;
|
|
@@ -471,15 +471,15 @@ export declare const VendorGetInventoryLocationLevelsParams: z.ZodObject<{
|
|
|
471
471
|
}, "strip", z.ZodTypeAny, {
|
|
472
472
|
offset: number;
|
|
473
473
|
limit: number;
|
|
474
|
-
fields?: string | undefined;
|
|
475
474
|
order?: string | undefined;
|
|
475
|
+
fields?: string | undefined;
|
|
476
476
|
with_deleted?: boolean | undefined;
|
|
477
477
|
location_id?: string | string[] | undefined;
|
|
478
478
|
}, {
|
|
479
|
+
order?: string | undefined;
|
|
479
480
|
offset?: unknown;
|
|
480
481
|
limit?: unknown;
|
|
481
482
|
fields?: string | undefined;
|
|
482
|
-
order?: string | undefined;
|
|
483
483
|
with_deleted?: unknown;
|
|
484
484
|
location_id?: string | string[] | undefined;
|
|
485
485
|
}>;
|
|
@@ -584,13 +584,13 @@ export declare const VendorBatchInventoryItemLevels: z.ZodObject<{
|
|
|
584
584
|
stocked_quantity: z.ZodOptional<z.ZodNumber>;
|
|
585
585
|
incoming_quantity: z.ZodOptional<z.ZodNumber>;
|
|
586
586
|
}, "strip", z.ZodTypeAny, {
|
|
587
|
-
inventory_item_id: string;
|
|
588
587
|
location_id: string;
|
|
588
|
+
inventory_item_id: string;
|
|
589
589
|
stocked_quantity?: number | undefined;
|
|
590
590
|
incoming_quantity?: number | undefined;
|
|
591
591
|
}, {
|
|
592
|
-
inventory_item_id: string;
|
|
593
592
|
location_id: string;
|
|
593
|
+
inventory_item_id: string;
|
|
594
594
|
stocked_quantity?: number | undefined;
|
|
595
595
|
incoming_quantity?: number | undefined;
|
|
596
596
|
}>, "many">>;
|
|
@@ -600,13 +600,13 @@ export declare const VendorBatchInventoryItemLevels: z.ZodObject<{
|
|
|
600
600
|
stocked_quantity: z.ZodOptional<z.ZodNumber>;
|
|
601
601
|
incoming_quantity: z.ZodOptional<z.ZodNumber>;
|
|
602
602
|
}, "strip", z.ZodTypeAny, {
|
|
603
|
-
inventory_item_id: string;
|
|
604
603
|
location_id: string;
|
|
604
|
+
inventory_item_id: string;
|
|
605
605
|
stocked_quantity?: number | undefined;
|
|
606
606
|
incoming_quantity?: number | undefined;
|
|
607
607
|
}, {
|
|
608
|
-
inventory_item_id: string;
|
|
609
608
|
location_id: string;
|
|
609
|
+
inventory_item_id: string;
|
|
610
610
|
stocked_quantity?: number | undefined;
|
|
611
611
|
incoming_quantity?: number | undefined;
|
|
612
612
|
}>, "many">>;
|
|
@@ -614,14 +614,14 @@ export declare const VendorBatchInventoryItemLevels: z.ZodObject<{
|
|
|
614
614
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
615
615
|
}, "strict", z.ZodTypeAny, {
|
|
616
616
|
create?: {
|
|
617
|
-
inventory_item_id: string;
|
|
618
617
|
location_id: string;
|
|
618
|
+
inventory_item_id: string;
|
|
619
619
|
stocked_quantity?: number | undefined;
|
|
620
620
|
incoming_quantity?: number | undefined;
|
|
621
621
|
}[] | undefined;
|
|
622
622
|
update?: {
|
|
623
|
-
inventory_item_id: string;
|
|
624
623
|
location_id: string;
|
|
624
|
+
inventory_item_id: string;
|
|
625
625
|
stocked_quantity?: number | undefined;
|
|
626
626
|
incoming_quantity?: number | undefined;
|
|
627
627
|
}[] | undefined;
|
|
@@ -629,14 +629,14 @@ export declare const VendorBatchInventoryItemLevels: z.ZodObject<{
|
|
|
629
629
|
force?: boolean | undefined;
|
|
630
630
|
}, {
|
|
631
631
|
create?: {
|
|
632
|
-
inventory_item_id: string;
|
|
633
632
|
location_id: string;
|
|
633
|
+
inventory_item_id: string;
|
|
634
634
|
stocked_quantity?: number | undefined;
|
|
635
635
|
incoming_quantity?: number | undefined;
|
|
636
636
|
}[] | undefined;
|
|
637
637
|
update?: {
|
|
638
|
-
inventory_item_id: string;
|
|
639
638
|
location_id: string;
|
|
639
|
+
inventory_item_id: string;
|
|
640
640
|
stocked_quantity?: number | undefined;
|
|
641
641
|
incoming_quantity?: number | undefined;
|
|
642
642
|
}[] | undefined;
|
|
@@ -685,19 +685,19 @@ export declare const VendorCreateInventoryItem: z.ZodObject<{
|
|
|
685
685
|
}>, "many">>;
|
|
686
686
|
}, "strict", z.ZodTypeAny, {
|
|
687
687
|
length?: number | null | undefined;
|
|
688
|
-
description?: string | null | undefined;
|
|
689
688
|
metadata?: Record<string, unknown> | null | undefined;
|
|
689
|
+
sku?: string | null | undefined;
|
|
690
690
|
title?: string | null | undefined;
|
|
691
|
+
description?: string | null | undefined;
|
|
691
692
|
thumbnail?: string | null | undefined;
|
|
692
|
-
sku?: string | null | undefined;
|
|
693
|
-
origin_country?: string | null | undefined;
|
|
694
|
-
hs_code?: string | null | undefined;
|
|
695
|
-
requires_shipping?: boolean | undefined;
|
|
696
|
-
mid_code?: string | null | undefined;
|
|
697
|
-
material?: string | null | undefined;
|
|
698
693
|
weight?: number | null | undefined;
|
|
699
694
|
height?: number | null | undefined;
|
|
700
695
|
width?: number | null | undefined;
|
|
696
|
+
hs_code?: string | null | undefined;
|
|
697
|
+
origin_country?: string | null | undefined;
|
|
698
|
+
mid_code?: string | null | undefined;
|
|
699
|
+
material?: string | null | undefined;
|
|
700
|
+
requires_shipping?: boolean | undefined;
|
|
701
701
|
location_levels?: {
|
|
702
702
|
location_id: string;
|
|
703
703
|
stocked_quantity?: number | undefined;
|
|
@@ -705,19 +705,19 @@ export declare const VendorCreateInventoryItem: z.ZodObject<{
|
|
|
705
705
|
}[] | undefined;
|
|
706
706
|
}, {
|
|
707
707
|
length?: number | null | undefined;
|
|
708
|
-
description?: string | null | undefined;
|
|
709
708
|
metadata?: Record<string, unknown> | null | undefined;
|
|
709
|
+
sku?: string | null | undefined;
|
|
710
710
|
title?: string | null | undefined;
|
|
711
|
+
description?: string | null | undefined;
|
|
711
712
|
thumbnail?: string | null | undefined;
|
|
712
|
-
sku?: string | null | undefined;
|
|
713
|
-
origin_country?: string | null | undefined;
|
|
714
|
-
hs_code?: string | null | undefined;
|
|
715
|
-
requires_shipping?: boolean | undefined;
|
|
716
|
-
mid_code?: string | null | undefined;
|
|
717
|
-
material?: string | null | undefined;
|
|
718
713
|
weight?: number | null | undefined;
|
|
719
714
|
height?: number | null | undefined;
|
|
720
715
|
width?: number | null | undefined;
|
|
716
|
+
hs_code?: string | null | undefined;
|
|
717
|
+
origin_country?: string | null | undefined;
|
|
718
|
+
mid_code?: string | null | undefined;
|
|
719
|
+
material?: string | null | undefined;
|
|
720
|
+
requires_shipping?: boolean | undefined;
|
|
721
721
|
location_levels?: {
|
|
722
722
|
location_id: string;
|
|
723
723
|
stocked_quantity?: number | undefined;
|
|
@@ -742,32 +742,32 @@ export declare const VendorUpdateInventoryItem: z.ZodObject<{
|
|
|
742
742
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
743
743
|
}, "strict", z.ZodTypeAny, {
|
|
744
744
|
length?: number | null | undefined;
|
|
745
|
-
description?: string | null | undefined;
|
|
746
745
|
metadata?: Record<string, unknown> | null | undefined;
|
|
746
|
+
sku?: string | null | undefined;
|
|
747
747
|
title?: string | null | undefined;
|
|
748
|
+
description?: string | null | undefined;
|
|
748
749
|
thumbnail?: string | null | undefined;
|
|
749
|
-
sku?: string | null | undefined;
|
|
750
|
-
origin_country?: string | null | undefined;
|
|
751
|
-
hs_code?: string | null | undefined;
|
|
752
|
-
requires_shipping?: boolean | undefined;
|
|
753
|
-
mid_code?: string | null | undefined;
|
|
754
|
-
material?: string | null | undefined;
|
|
755
750
|
weight?: number | null | undefined;
|
|
756
751
|
height?: number | null | undefined;
|
|
757
752
|
width?: number | null | undefined;
|
|
753
|
+
hs_code?: string | null | undefined;
|
|
754
|
+
origin_country?: string | null | undefined;
|
|
755
|
+
mid_code?: string | null | undefined;
|
|
756
|
+
material?: string | null | undefined;
|
|
757
|
+
requires_shipping?: boolean | undefined;
|
|
758
758
|
}, {
|
|
759
759
|
length?: number | null | undefined;
|
|
760
|
-
description?: string | null | undefined;
|
|
761
760
|
metadata?: Record<string, unknown> | null | undefined;
|
|
761
|
+
sku?: string | null | undefined;
|
|
762
762
|
title?: string | null | undefined;
|
|
763
|
+
description?: string | null | undefined;
|
|
763
764
|
thumbnail?: string | null | undefined;
|
|
764
|
-
sku?: string | null | undefined;
|
|
765
|
-
origin_country?: string | null | undefined;
|
|
766
|
-
hs_code?: string | null | undefined;
|
|
767
|
-
requires_shipping?: boolean | undefined;
|
|
768
|
-
mid_code?: string | null | undefined;
|
|
769
|
-
material?: string | null | undefined;
|
|
770
765
|
weight?: number | null | undefined;
|
|
771
766
|
height?: number | null | undefined;
|
|
772
767
|
width?: number | null | undefined;
|
|
768
|
+
hs_code?: string | null | undefined;
|
|
769
|
+
origin_country?: string | null | undefined;
|
|
770
|
+
mid_code?: string | null | undefined;
|
|
771
|
+
material?: string | null | undefined;
|
|
772
|
+
requires_shipping?: boolean | undefined;
|
|
773
773
|
}>;
|
|
@@ -3,40 +3,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.vendorMiddlewares = void 0;
|
|
4
4
|
const framework_1 = require("@medusajs/framework");
|
|
5
5
|
const middlewares_1 = require("./campaigns/middlewares");
|
|
6
|
-
const middlewares_2 = require("./
|
|
7
|
-
const middlewares_3 = require("./
|
|
8
|
-
const middlewares_4 = require("./
|
|
9
|
-
const middlewares_5 = require("./
|
|
10
|
-
const middlewares_6 = require("./
|
|
11
|
-
const middlewares_7 = require("./
|
|
12
|
-
const middlewares_8 = require("./
|
|
13
|
-
const middlewares_9 = require("./
|
|
14
|
-
const middlewares_10 = require("./
|
|
15
|
-
const middlewares_11 = require("./
|
|
16
|
-
const middlewares_12 = require("./
|
|
17
|
-
const middlewares_13 = require("./
|
|
18
|
-
const middlewares_14 = require("./
|
|
19
|
-
const middlewares_15 = require("./
|
|
20
|
-
const middlewares_16 = require("./
|
|
21
|
-
const middlewares_17 = require("./
|
|
22
|
-
const middlewares_18 = require("./
|
|
23
|
-
const middlewares_19 = require("./
|
|
24
|
-
const middlewares_20 = require("./
|
|
25
|
-
const middlewares_21 = require("./
|
|
26
|
-
const middlewares_22 = require("./
|
|
27
|
-
const middlewares_23 = require("./
|
|
28
|
-
const middlewares_24 = require("./
|
|
29
|
-
const middlewares_25 = require("./
|
|
30
|
-
const middlewares_26 = require("./
|
|
31
|
-
const middlewares_27 = require("./
|
|
32
|
-
const middlewares_28 = require("./
|
|
33
|
-
const middlewares_29 = require("./
|
|
34
|
-
const middlewares_30 = require("./
|
|
35
|
-
const middlewares_31 = require("./
|
|
36
|
-
const middlewares_32 = require("./
|
|
6
|
+
const middlewares_2 = require("./claims/middlewares");
|
|
7
|
+
const middlewares_3 = require("./collections/middlewares");
|
|
8
|
+
const middlewares_4 = require("./members/middlewares");
|
|
9
|
+
const middlewares_5 = require("./currencies/middlewares");
|
|
10
|
+
const middlewares_6 = require("./customers/middlewares");
|
|
11
|
+
const middlewares_7 = require("./exchanges/middlewares");
|
|
12
|
+
const middlewares_8 = require("./fulfillment-providers/middlewares");
|
|
13
|
+
const middlewares_9 = require("./fulfillment-sets/middlewares");
|
|
14
|
+
const middlewares_10 = require("./inventory-items/middlewares");
|
|
15
|
+
const middlewares_11 = require("./offers/middlewares");
|
|
16
|
+
const middlewares_12 = require("./order-edits/middlewares");
|
|
17
|
+
const middlewares_13 = require("./orders/middlewares");
|
|
18
|
+
const middlewares_14 = require("./payment-collections/middlewares");
|
|
19
|
+
const middlewares_15 = require("./payments/middlewares");
|
|
20
|
+
const middlewares_16 = require("./payouts/middlewares");
|
|
21
|
+
const middlewares_17 = require("./payout-accounts/middlewares");
|
|
22
|
+
const middlewares_18 = require("./price-lists/middlewares");
|
|
23
|
+
const middlewares_19 = require("./price-preferences/middlewares");
|
|
24
|
+
const middlewares_20 = require("./product-categories/middlewares");
|
|
25
|
+
const middlewares_21 = require("./products/middlewares");
|
|
26
|
+
const middlewares_22 = require("./product-types/middlewares");
|
|
27
|
+
const middlewares_23 = require("./product-variants/middlewares");
|
|
28
|
+
const middlewares_24 = require("./promotions/middlewares");
|
|
29
|
+
const middlewares_25 = require("./regions/middlewares");
|
|
30
|
+
const middlewares_26 = require("./refund-reasons/middlewares");
|
|
31
|
+
const middlewares_27 = require("./reservations/middlewares");
|
|
32
|
+
const middlewares_28 = require("./return-reasons/middlewares");
|
|
33
|
+
const middlewares_29 = require("./returns/middlewares");
|
|
34
|
+
const middlewares_30 = require("./sales-channels/middlewares");
|
|
35
|
+
const middlewares_31 = require("./sellers/middlewares");
|
|
36
|
+
const middlewares_32 = require("./shipping-options/middlewares");
|
|
37
|
+
const middlewares_33 = require("./shipping-option-types/middlewares");
|
|
38
|
+
const middlewares_34 = require("./shipping-profiles/middlewares");
|
|
39
|
+
const middlewares_35 = require("./stock-locations/middlewares");
|
|
40
|
+
const middlewares_36 = require("./stores/middlewares");
|
|
41
|
+
const middlewares_37 = require("./uploads/middlewares");
|
|
37
42
|
const utils_1 = require("../utils");
|
|
38
|
-
const
|
|
39
|
-
const
|
|
43
|
+
const middlewares_38 = require("./product-attributes/middlewares");
|
|
44
|
+
const middlewares_39 = require("./product-tags/middlewares");
|
|
40
45
|
const unauthenticatedRoutes = [
|
|
41
46
|
/^\/vendor\/sellers$/,
|
|
42
47
|
/^\/vendor\/sellers\/select$/,
|
|
@@ -74,39 +79,44 @@ exports.vendorMiddlewares = [
|
|
|
74
79
|
(0, utils_1.unlessBaseUrl)(unauthenticatedRoutes, utils_1.ensureSellerMiddleware),
|
|
75
80
|
],
|
|
76
81
|
},
|
|
77
|
-
...
|
|
82
|
+
...middlewares_4.vendorMembersMiddlewares,
|
|
78
83
|
...middlewares_1.vendorCampaignsMiddlewares,
|
|
79
|
-
...middlewares_2.
|
|
80
|
-
...
|
|
81
|
-
...middlewares_5.
|
|
82
|
-
...middlewares_6.
|
|
83
|
-
...middlewares_7.
|
|
84
|
-
...middlewares_8.
|
|
85
|
-
...middlewares_9.
|
|
86
|
-
...middlewares_10.
|
|
87
|
-
...middlewares_11.
|
|
88
|
-
...middlewares_12.
|
|
89
|
-
...middlewares_13.
|
|
90
|
-
...middlewares_14.
|
|
91
|
-
...middlewares_15.
|
|
92
|
-
...middlewares_16.
|
|
93
|
-
...middlewares_17.
|
|
94
|
-
...middlewares_18.
|
|
95
|
-
...middlewares_19.
|
|
96
|
-
...middlewares_20.
|
|
97
|
-
...
|
|
98
|
-
...
|
|
99
|
-
...
|
|
100
|
-
...
|
|
101
|
-
...
|
|
102
|
-
...
|
|
103
|
-
...
|
|
104
|
-
...
|
|
105
|
-
...
|
|
106
|
-
...
|
|
107
|
-
...
|
|
108
|
-
...
|
|
109
|
-
...
|
|
110
|
-
...
|
|
84
|
+
...middlewares_2.vendorClaimsMiddlewares,
|
|
85
|
+
...middlewares_3.vendorCollectionsMiddlewares,
|
|
86
|
+
...middlewares_5.vendorCurrenciesMiddlewares,
|
|
87
|
+
...middlewares_6.vendorCustomersMiddlewares,
|
|
88
|
+
...middlewares_7.vendorExchangesMiddlewares,
|
|
89
|
+
...middlewares_8.vendorFulfillmentProvidersMiddlewares,
|
|
90
|
+
...middlewares_9.vendorFulfillmentSetsMiddlewares,
|
|
91
|
+
...middlewares_10.vendorInventoryItemsMiddlewares,
|
|
92
|
+
...middlewares_11.vendorOffersMiddlewares,
|
|
93
|
+
...middlewares_12.vendorOrderEditsMiddlewares,
|
|
94
|
+
...middlewares_13.vendorOrdersMiddlewares,
|
|
95
|
+
...middlewares_14.vendorPaymentCollectionsMiddlewares,
|
|
96
|
+
...middlewares_15.vendorPaymentsMiddlewares,
|
|
97
|
+
...middlewares_16.vendorPayoutsMiddlewares,
|
|
98
|
+
...middlewares_17.vendorPayoutAccountsMiddlewares,
|
|
99
|
+
...middlewares_18.vendorPriceListsMiddlewares,
|
|
100
|
+
...middlewares_19.vendorPricePreferencesMiddlewares,
|
|
101
|
+
...middlewares_20.vendorProductCategoriesMiddlewares,
|
|
102
|
+
...middlewares_38.vendorProductAttributesMiddlewares,
|
|
103
|
+
...middlewares_21.vendorProductsMiddlewares,
|
|
104
|
+
...middlewares_22.vendorProductTypesMiddlewares,
|
|
105
|
+
...middlewares_23.vendorProductVariantsMiddlewares,
|
|
106
|
+
...middlewares_24.vendorPromotionsMiddlewares,
|
|
107
|
+
...middlewares_25.vendorRegionsMiddlewares,
|
|
108
|
+
...middlewares_26.vendorRefundReasonsMiddlewares,
|
|
109
|
+
...middlewares_27.vendorReservationsMiddlewares,
|
|
110
|
+
...middlewares_28.vendorReturnReasonsMiddlewares,
|
|
111
|
+
...middlewares_29.vendorReturnsMiddlewares,
|
|
112
|
+
...middlewares_30.vendorSalesChannelsMiddlewares,
|
|
113
|
+
...middlewares_31.vendorSellersMiddlewares,
|
|
114
|
+
...middlewares_32.vendorShippingOptionsMiddlewares,
|
|
115
|
+
...middlewares_33.vendorShippingOptionTypesMiddlewares,
|
|
116
|
+
...middlewares_34.vendorShippingProfilesMiddlewares,
|
|
117
|
+
...middlewares_35.vendorStockLocationsMiddlewares,
|
|
118
|
+
...middlewares_36.vendorStoresMiddlewares,
|
|
119
|
+
...middlewares_37.vendorUploadsMiddlewares,
|
|
120
|
+
...middlewares_39.vendorProductTagsMiddlewares,
|
|
111
121
|
];
|
|
112
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
122
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlkZGxld2FyZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9taWRkbGV3YXJlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxtREFHNEI7QUFFNUIseURBQW9FO0FBQ3BFLHNEQUE4RDtBQUM5RCwyREFBd0U7QUFDeEUsdURBQWdFO0FBQ2hFLDBEQUFzRTtBQUN0RSx5REFBb0U7QUFDcEUseURBQW9FO0FBQ3BFLHFFQUEyRjtBQUMzRixnRUFBaUY7QUFDakYsZ0VBQStFO0FBQy9FLHVEQUE4RDtBQUM5RCw0REFBdUU7QUFDdkUsdURBQThEO0FBQzlELG9FQUF1RjtBQUN2Rix5REFBa0U7QUFDbEUsd0RBQWdFO0FBQ2hFLGdFQUErRTtBQUMvRSw0REFBdUU7QUFDdkUsa0VBQW1GO0FBQ25GLG1FQUFxRjtBQUNyRix5REFBa0U7QUFDbEUsOERBQTJFO0FBQzNFLGlFQUFpRjtBQUNqRiwyREFBc0U7QUFDdEUsd0RBQWdFO0FBQ2hFLCtEQUE2RTtBQUM3RSw2REFBMEU7QUFDMUUsK0RBQTZFO0FBQzdFLHdEQUFnRTtBQUNoRSwrREFBNkU7QUFDN0Usd0RBQWdFO0FBQ2hFLGlFQUFpRjtBQUNqRixzRUFBMEY7QUFDMUYsa0VBQW1GO0FBQ25GLGdFQUErRTtBQUMvRSx1REFBOEQ7QUFDOUQsd0RBQWdFO0FBQ2hFLG9DQUFpSDtBQUNqSCxtRUFBcUY7QUFDckYsNkRBQXlFO0FBRXpFLE1BQU0scUJBQXFCLEdBQUc7SUFDNUIscUJBQXFCO0lBQ3JCLDZCQUE2QjtJQUM3QiwyQkFBMkI7SUFDM0Isb0JBQW9CO0lBQ3BCLHNDQUFzQztJQUN0QyxHQUFHLElBQUEsaUNBQXlCLEVBQUMsT0FBTyxDQUFDLEdBQUcsRUFBRSxDQUFDO0NBQzVDLENBQUE7QUFFWSxRQUFBLGlCQUFpQixHQUFzQjtJQUNsRDtRQUNFLE9BQU8sRUFBRSxpQkFBaUI7UUFDMUIsTUFBTSxFQUFFLENBQUMsTUFBTSxFQUFFLEtBQUssQ0FBQztRQUN2QixXQUFXLEVBQUU7WUFDWCxJQUFBLHdCQUFZLEVBQUMsUUFBUSxFQUFFLENBQUMsU0FBUyxFQUFFLFFBQVEsQ0FBQyxFQUFFO2dCQUM1QyxpQkFBaUIsRUFBRSxJQUFJO2FBQ3hCLENBQUM7U0FDSDtLQUNGO0lBQ0Q7UUFDRSxPQUFPLEVBQUUsd0JBQXdCO1FBQ2pDLE1BQU0sRUFBRSxDQUFDLE1BQU0sQ0FBQztRQUNoQixXQUFXLEVBQUU7WUFDWCxJQUFBLHdCQUFZLEVBQUMsUUFBUSxFQUFFLENBQUMsU0FBUyxFQUFFLFFBQVEsQ0FBQyxFQUFFO2dCQUM1QyxpQkFBaUIsRUFBRSxLQUFLO2FBQ3pCLENBQUM7U0FDSDtLQUNGO0lBQ0Q7UUFDRSxPQUFPLEVBQUUsV0FBVztRQUNwQixXQUFXLEVBQUU7WUFDWCw0QkFBb0I7WUFDcEIsSUFBQSxxQkFBYSxFQUNYLHFCQUFxQixFQUNyQixJQUFBLHdCQUFZLEVBQUMsUUFBUSxFQUFFLENBQUMsU0FBUyxFQUFFLFFBQVEsQ0FBQyxFQUFFO2dCQUM1QyxpQkFBaUIsRUFBRSxLQUFLO2FBQ3pCLENBQUMsQ0FDSDtZQUNELElBQUEscUJBQWEsRUFDWCxxQkFBcUIsRUFDckIsOEJBQXNCLENBQ3ZCO1NBQ0Y7S0FDRjtJQUNELEdBQUcsc0NBQXdCO0lBQzNCLEdBQUcsd0NBQTBCO0lBQzdCLEdBQUcscUNBQXVCO0lBQzFCLEdBQUcsMENBQTRCO0lBQy9CLEdBQUcseUNBQTJCO0lBQzlCLEdBQUcsd0NBQTBCO0lBQzdCLEdBQUcsd0NBQTBCO0lBQzdCLEdBQUcsbURBQXFDO0lBQ3hDLEdBQUcsOENBQWdDO0lBQ25DLEdBQUcsOENBQStCO0lBQ2xDLEdBQUcsc0NBQXVCO0lBQzFCLEdBQUcsMENBQTJCO0lBQzlCLEdBQUcsc0NBQXVCO0lBQzFCLEdBQUcsa0RBQW1DO0lBQ3RDLEdBQUcsd0NBQXlCO0lBQzVCLEdBQUcsdUNBQXdCO0lBQzNCLEdBQUcsOENBQStCO0lBQ2xDLEdBQUcsMENBQTJCO0lBQzlCLEdBQUcsZ0RBQWlDO0lBQ3BDLEdBQUcsaURBQWtDO0lBQ3JDLEdBQUcsaURBQWtDO0lBQ3JDLEdBQUcsd0NBQXlCO0lBQzVCLEdBQUcsNENBQTZCO0lBQ2hDLEdBQUcsK0NBQWdDO0lBQ25DLEdBQUcsMENBQTJCO0lBQzlCLEdBQUcsdUNBQXdCO0lBQzNCLEdBQUcsNkNBQThCO0lBQ2pDLEdBQUcsNENBQTZCO0lBQ2hDLEdBQUcsNkNBQThCO0lBQ2pDLEdBQUcsdUNBQXdCO0lBQzNCLEdBQUcsNkNBQThCO0lBQ2pDLEdBQUcsdUNBQXdCO0lBQzNCLEdBQUcsK0NBQWdDO0lBQ25DLEdBQUcsbURBQW9DO0lBQ3ZDLEdBQUcsZ0RBQWlDO0lBQ3BDLEdBQUcsOENBQStCO0lBQ2xDLEdBQUcsc0NBQXVCO0lBQzFCLEdBQUcsdUNBQXdCO0lBQzNCLEdBQUcsMkNBQTRCO0NBQ2hDLENBQUEifQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
|
|
2
|
+
import { VendorBatchOfferInventoryItemsType } from "../../../validators";
|
|
3
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<VendorBatchOfferInventoryItemsType>, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.POST = void 0;
|
|
4
|
+
const offer_1 = require("../../../../../../workflows/offer");
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
const POST = async (req, res) => {
|
|
7
|
+
const { id } = req.params;
|
|
8
|
+
await (0, helpers_1.validateSellerOffer)(req.scope, req.seller_context.seller_id, id);
|
|
9
|
+
const { result } = await (0, offer_1.batchOfferInventoryItemsWorkflow)(req.scope).run({
|
|
10
|
+
input: {
|
|
11
|
+
offer_id: id,
|
|
12
|
+
...req.validatedBody,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
const offer = await (0, helpers_1.refetchOffer)(id, req.scope, req.queryConfig.fields);
|
|
16
|
+
res.json({
|
|
17
|
+
created: result.created,
|
|
18
|
+
updated: result.updated,
|
|
19
|
+
deleted: result.deleted,
|
|
20
|
+
offer,
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.POST = POST;
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9vZmZlcnMvW2lkXS9pbnZlbnRvcnktaXRlbXMvYmF0Y2gvcm91dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBS0EsNkRBQW9GO0FBQ3BGLDhDQUFvRTtBQUc3RCxNQUFNLElBQUksR0FBRyxLQUFLLEVBQ3ZCLEdBQW1FLEVBQ25FLEdBQW1CLEVBQ25CLEVBQUU7SUFDRixNQUFNLEVBQUUsRUFBRSxFQUFFLEdBQUcsR0FBRyxDQUFDLE1BQU0sQ0FBQTtJQUN6QixNQUFNLElBQUEsNkJBQW1CLEVBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxHQUFHLENBQUMsY0FBZSxDQUFDLFNBQVMsRUFBRSxFQUFFLENBQUMsQ0FBQTtJQUV2RSxNQUFNLEVBQUUsTUFBTSxFQUFFLEdBQUcsTUFBTSxJQUFBLHdDQUFnQyxFQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQyxHQUFHLENBQUM7UUFDdkUsS0FBSyxFQUFFO1lBQ0wsUUFBUSxFQUFFLEVBQUU7WUFDWixHQUFHLEdBQUcsQ0FBQyxhQUFhO1NBQ3JCO0tBQ0YsQ0FBQyxDQUFBO0lBRUYsTUFBTSxLQUFLLEdBQUcsTUFBTSxJQUFBLHNCQUFZLEVBQUMsRUFBRSxFQUFFLEdBQUcsQ0FBQyxLQUFLLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQUMsQ0FBQTtJQUV2RSxHQUFHLENBQUMsSUFBSSxDQUFDO1FBQ1AsT0FBTyxFQUFFLE1BQU0sQ0FBQyxPQUFPO1FBQ3ZCLE9BQU8sRUFBRSxNQUFNLENBQUMsT0FBTztRQUN2QixPQUFPLEVBQUUsTUFBTSxDQUFDLE9BQU87UUFDdkIsS0FBSztLQUNOLENBQUMsQ0FBQTtBQUNKLENBQUMsQ0FBQTtBQXRCWSxRQUFBLElBQUksUUFzQmhCIn0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
|
|
2
|
+
import { VendorUpdateOfferType } from "../validators";
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<VendorUpdateOfferType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
|