@mercurjs/core 2.2.0-canary.3 → 2.2.0-canary.31
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 +13 -0
- package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.js +59 -0
- package/.medusa/server/src/api/admin/claims/[id]/request/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/claims/[id]/request/route.js +74 -0
- package/.medusa/server/src/api/admin/collections/[id]/route.d.ts +7 -0
- package/.medusa/server/src/api/admin/collections/[id]/route.js +48 -0
- package/.medusa/server/src/api/admin/collections/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/collections/middlewares.js +49 -0
- package/.medusa/server/src/api/admin/{product-brands → collections}/query-config.d.ts +2 -2
- package/.medusa/server/src/api/admin/collections/query-config.js +29 -0
- package/.medusa/server/src/api/admin/collections/route.d.ts +6 -0
- package/.medusa/server/src/api/admin/collections/route.js +36 -0
- package/.medusa/server/src/api/admin/collections/validators.d.ts +262 -0
- package/.medusa/server/src/api/admin/collections/validators.js +42 -0
- package/.medusa/server/src/api/admin/commission-rates/query-config.js +6 -4
- package/.medusa/server/src/api/admin/commission-rates/route.js +4 -1
- package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +89 -58
- package/.medusa/server/src/api/admin/commission-rates/validators.js +16 -9
- package/.medusa/server/src/api/{vendor/product-brands → admin/customer-groups}/middlewares.d.ts +1 -1
- package/.medusa/server/src/api/admin/customer-groups/middlewares.js +43 -0
- package/.medusa/server/src/api/admin/customer-groups/validators.d.ts +257 -0
- package/.medusa/server/src/api/admin/customer-groups/validators.js +12 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.d.ts +14 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.js +60 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/request/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/request/route.js +75 -0
- package/.medusa/server/src/api/admin/members/validators.d.ts +14 -15
- package/.medusa/server/src/api/admin/middlewares.js +31 -40
- package/.medusa/server/src/api/admin/offers/query-config.js +9 -8
- package/.medusa/server/src/api/admin/offers/validators.d.ts +24 -25
- package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.js +18 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/items/route.d.ts +15 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/items/route.js +46 -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 +134 -0
- package/.medusa/server/src/api/admin/order-groups/middlewares.js +3 -1
- package/.medusa/server/src/api/admin/order-groups/validators.d.ts +23 -21
- package/.medusa/server/src/api/admin/order-groups/validators.js +2 -1
- package/.medusa/server/src/api/admin/orders/[id]/commission-lines/route.d.ts +7 -0
- package/.medusa/server/src/api/admin/orders/[id]/commission-lines/route.js +17 -0
- 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 +2 -0
- package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.js +15 -0
- package/.medusa/server/src/api/admin/orders/validators.d.ts +1 -287
- package/.medusa/server/src/api/admin/orders/validators.js +9 -29
- package/.medusa/server/src/api/admin/payouts/validators.d.ts +18 -19
- package/.medusa/server/src/api/admin/product-attributes/[id]/route.js +4 -4
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.js +4 -4
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/route.js +2 -2
- package/.medusa/server/src/api/admin/product-attributes/middlewares.js +15 -3
- package/.medusa/server/src/api/admin/product-attributes/query-config.js +4 -2
- package/.medusa/server/src/api/admin/product-attributes/route.d.ts +2 -2
- package/.medusa/server/src/api/admin/product-attributes/route.js +4 -4
- package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +110 -125
- package/.medusa/server/src/api/admin/product-attributes/validators.js +2 -17
- package/.medusa/server/src/api/admin/product-categories/[id]/products/route.js +3 -3
- package/.medusa/server/src/api/admin/product-categories/[id]/route.js +8 -10
- package/.medusa/server/src/api/admin/product-categories/query-config.js +7 -2
- package/.medusa/server/src/api/admin/product-categories/route.js +5 -8
- package/.medusa/server/src/api/admin/product-categories/validators.d.ts +153 -93
- package/.medusa/server/src/api/admin/product-categories/validators.js +11 -1
- package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.js +5 -13
- package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.js +5 -12
- package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.d.ts +3 -2
- package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +11 -25
- package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +4 -6
- package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +1 -1
- package/.medusa/server/src/api/admin/products/[id]/preview/route.js +13 -7
- package/.medusa/server/src/api/admin/products/[id]/reject/route.js +5 -8
- package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +7 -10
- package/.medusa/server/src/api/admin/products/[id]/route.js +14 -8
- package/.medusa/server/src/api/admin/products/[id]/sellers/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/products/[id]/sellers/route.js +13 -0
- package/.medusa/server/src/api/admin/products/[id]/variants/[variant_id]/route.js +5 -5
- package/.medusa/server/src/api/admin/products/[id]/variants/route.js +22 -4
- package/.medusa/server/src/api/admin/products/middlewares.js +7 -39
- package/.medusa/server/src/api/admin/products/query-config.js +45 -26
- package/.medusa/server/src/api/admin/products/route.js +11 -8
- package/.medusa/server/src/api/admin/products/validators.d.ts +1223 -1149
- package/.medusa/server/src/api/admin/products/validators.js +110 -48
- package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.js +29 -0
- package/.medusa/server/src/api/admin/sellers/middlewares.js +1 -20
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +75 -96
- package/.medusa/server/src/api/admin/sellers/validators.js +3 -4
- 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]/complete/route.js +1 -5
- package/.medusa/server/src/api/store/carts/[id]/complete/validators.d.ts +1 -1
- package/.medusa/server/src/api/store/carts/[id]/line-items/route.js +23 -5
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +0 -3
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +1 -2
- package/.medusa/server/src/api/store/middlewares.js +7 -7
- package/.medusa/server/src/api/store/offers/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/store/offers/[id]/route.js +28 -0
- package/.medusa/server/src/api/store/offers/helpers.d.ts +43 -0
- package/.medusa/server/src/api/store/offers/helpers.js +191 -0
- package/.medusa/server/src/api/store/offers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/offers/middlewares.js +64 -0
- package/.medusa/server/src/api/store/{product-brands → offers}/query-config.d.ts +2 -2
- package/.medusa/server/src/api/store/offers/query-config.js +50 -0
- package/.medusa/server/src/api/store/offers/route.d.ts +3 -0
- package/.medusa/server/src/api/store/offers/route.js +30 -0
- package/.medusa/server/src/api/store/offers/validators.d.ts +158 -0
- package/.medusa/server/src/api/store/offers/validators.js +29 -0
- package/.medusa/server/src/api/store/order-groups/validators.d.ts +16 -17
- package/.medusa/server/src/api/store/product-attributes/validators.d.ts +50 -46
- package/.medusa/server/src/api/store/product-categories/validators.d.ts +59 -53
- package/.medusa/server/src/api/store/products/[id]/route.js +9 -20
- package/.medusa/server/src/api/store/products/helpers.d.ts +10 -0
- package/.medusa/server/src/api/store/products/helpers.js +20 -0
- package/.medusa/server/src/api/store/products/middlewares.js +37 -30
- package/.medusa/server/src/api/store/products/query-config.d.ts +1 -3
- package/.medusa/server/src/api/store/products/query-config.js +30 -17
- package/.medusa/server/src/api/store/products/route.js +9 -17
- package/.medusa/server/src/api/store/products/validators.d.ts +69 -71
- package/.medusa/server/src/api/store/products/validators.js +1 -2
- package/.medusa/server/src/api/store/sellers/validators.d.ts +35 -34
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.d.ts +2 -0
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +54 -0
- package/.medusa/server/src/api/utils/format-product-attributes.d.ts +7 -6
- package/.medusa/server/src/api/utils/format-product-attributes.js +104 -35
- package/.medusa/server/src/api/utils/index.d.ts +3 -0
- package/.medusa/server/src/api/utils/index.js +4 -1
- package/.medusa/server/src/api/utils/offers.d.ts +49 -0
- package/.medusa/server/src/api/utils/offers.js +238 -0
- package/.medusa/server/src/api/utils/order-commission-lines.d.ts +11 -0
- package/.medusa/server/src/api/utils/order-commission-lines.js +71 -0
- package/.medusa/server/src/api/utils/product-attribute-fields.d.ts +5 -0
- package/.medusa/server/src/api/utils/product-attribute-fields.js +35 -0
- package/.medusa/server/src/api/utils/sellers.d.ts +2 -0
- package/.medusa/server/src/api/utils/sellers.js +23 -0
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +14 -15
- 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 +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.js +41 -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 +31 -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 +377 -0
- package/.medusa/server/src/api/vendor/claims/validators.js +89 -0
- package/.medusa/server/src/api/vendor/collections/query-config.js +7 -1
- package/.medusa/server/src/api/vendor/collections/validators.d.ts +20 -21
- package/.medusa/server/src/api/vendor/currencies/validators.d.ts +14 -15
- package/.medusa/server/src/api/vendor/customer-groups/[id]/customers/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/customer-groups/[id]/customers/route.js +20 -0
- package/.medusa/server/src/api/vendor/customer-groups/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/customer-groups/[id]/route.js +43 -0
- package/.medusa/server/src/api/vendor/customer-groups/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/customer-groups/helpers.js +38 -0
- package/.medusa/server/src/api/vendor/customer-groups/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/customer-groups/middlewares.js +62 -0
- package/.medusa/server/src/api/vendor/{product-brands → customer-groups}/query-config.d.ts +2 -3
- package/.medusa/server/src/api/vendor/customer-groups/query-config.js +22 -0
- package/.medusa/server/src/api/vendor/customer-groups/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/customer-groups/route.js +35 -0
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +156 -0
- package/.medusa/server/src/api/vendor/customer-groups/validators.js +35 -0
- package/.medusa/server/src/api/vendor/customers/[id]/customer-groups/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/customers/[id]/customer-groups/route.js +27 -0
- package/.medusa/server/src/api/vendor/customers/[id]/route.js +13 -1
- package/.medusa/server/src/api/vendor/customers/middlewares.js +9 -1
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +47 -32
- package/.medusa/server/src/api/vendor/customers/validators.js +9 -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 +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.js +41 -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 +31 -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 +312 -0
- package/.medusa/server/src/api/vendor/exchanges/validators.js +71 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +24 -23
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +18 -18
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +104 -110
- package/.medusa/server/src/api/vendor/middlewares.js +79 -71
- package/.medusa/server/src/api/vendor/offers/query-config.js +9 -8
- package/.medusa/server/src/api/vendor/offers/validators.d.ts +30 -35
- package/.medusa/server/src/api/vendor/offers/validators.js +4 -8
- package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.js +18 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.js +24 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.js +33 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.js +18 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/route.js +19 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.js +15 -0
- package/.medusa/server/src/api/vendor/order-edits/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/order-edits/middlewares.js +94 -0
- package/.medusa/server/src/api/vendor/order-edits/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/order-edits/route.js +15 -0
- package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +160 -0
- package/.medusa/server/src/api/vendor/order-edits/validators.js +50 -0
- package/.medusa/server/src/api/vendor/orders/[id]/commission-lines/route.d.ts +7 -0
- package/.medusa/server/src/api/vendor/orders/[id]/commission-lines/route.js +18 -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 +109 -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 +23 -0
- package/.medusa/server/src/api/vendor/orders/resolve-offer-items.js +75 -0
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +26 -24
- 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.js +14 -8
- package/.medusa/server/src/api/vendor/payments/validators.d.ts +38 -38
- package/.medusa/server/src/api/vendor/payout-accounts/validators.d.ts +11 -12
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +28 -30
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +14 -15
- package/.medusa/server/src/api/vendor/product-attributes/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/product-attributes/query-config.js +4 -2
- package/.medusa/server/src/api/vendor/product-attributes/route.js +2 -1
- package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +85 -101
- package/.medusa/server/src/api/vendor/product-attributes/validators.js +2 -15
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +36 -0
- package/.medusa/server/src/api/vendor/product-categories/middlewares.js +9 -1
- package/.medusa/server/src/api/vendor/product-categories/query-config.js +7 -2
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +102 -79
- package/.medusa/server/src/api/vendor/product-categories/validators.js +7 -2
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +14 -15
- package/.medusa/server/src/api/vendor/product-variants/middlewares.js +11 -19
- package/.medusa/server/src/api/vendor/product-variants/query-config.js +1 -3
- package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +103 -97
- package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.js +22 -0
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.d.ts +1 -9
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +8 -17
- package/.medusa/server/src/api/vendor/products/[id]/preview/route.d.ts +0 -9
- package/.medusa/server/src/api/vendor/products/[id]/preview/route.js +1 -10
- package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +8 -13
- package/.medusa/server/src/api/vendor/products/[id]/route.js +30 -21
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +7 -13
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +36 -25
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +4 -7
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +23 -12
- package/.medusa/server/src/api/vendor/products/helpers.d.ts +9 -0
- package/.medusa/server/src/api/vendor/products/helpers.js +70 -0
- package/.medusa/server/src/api/vendor/products/middlewares.js +29 -49
- package/.medusa/server/src/api/vendor/products/query-config.js +52 -23
- package/.medusa/server/src/api/vendor/products/route.d.ts +2 -1
- package/.medusa/server/src/api/vendor/products/route.js +21 -11
- package/.medusa/server/src/api/vendor/products/validators.d.ts +499 -582
- package/.medusa/server/src/api/vendor/products/validators.js +114 -51
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +47 -49
- package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +20 -21
- 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 +18 -0
- package/.medusa/server/src/api/{admin/product-brands → vendor/reservations}/middlewares.d.ts +1 -1
- package/.medusa/server/src/api/vendor/reservations/middlewares.js +44 -0
- package/.medusa/server/src/api/vendor/reservations/query-config.d.ts +19 -0
- package/.medusa/server/src/api/vendor/reservations/query-config.js +45 -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 +295 -0
- package/.medusa/server/src/api/vendor/reservations/validators.js +40 -0
- package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +3 -3
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +25 -26
- package/.medusa/server/src/api/vendor/sales-channels/[id]/products/route.js +2 -1
- package/.medusa/server/src/api/vendor/sales-channels/helpers.d.ts +1 -0
- package/.medusa/server/src/api/vendor/sales-channels/helpers.js +25 -2
- package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +25 -24
- package/.medusa/server/src/api/vendor/sellers/middlewares.js +1 -18
- package/.medusa/server/src/api/vendor/sellers/route.js +6 -2
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +23 -44
- package/.medusa/server/src/api/vendor/sellers/validators.js +2 -2
- package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +13 -1
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +76 -74
- package/.medusa/server/src/api/vendor/shipping-options/validators.js +2 -1
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +20 -21
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/stores/validators.d.ts +14 -15
- package/.medusa/server/src/links/cart-line-item-offer-link.js +9 -2
- package/.medusa/server/src/links/category-seller-link.js +2 -2
- package/.medusa/server/src/links/media-product-category-link.d.ts +20 -0
- package/.medusa/server/src/links/media-product-category-link.js +34 -0
- package/.medusa/server/src/links/media-product-collection-link.d.ts +18 -0
- package/.medusa/server/src/links/media-product-collection-link.js +32 -0
- package/.medusa/server/src/links/offer-price-link.js +13 -0
- package/.medusa/server/src/links/offer-product-link.js +15 -0
- package/.medusa/server/src/links/offer-variant-link.js +2 -2
- package/.medusa/server/src/links/order-line-item-offer-link.js +10 -2
- package/.medusa/server/src/links/product-attribute-category-link.d.ts +11 -0
- package/.medusa/server/src/links/product-attribute-category-link.js +30 -0
- package/.medusa/server/src/links/product-attribute-option-mirror-link.d.ts +6 -0
- package/.medusa/server/src/links/product-attribute-option-mirror-link.js +24 -0
- package/.medusa/server/src/links/product-attribute-product-link.d.ts +5 -0
- package/.medusa/server/src/links/product-attribute-product-link.js +24 -0
- package/.medusa/server/src/links/product-attribute-value-option-value-mirror-link.d.ts +6 -0
- package/.medusa/server/src/links/product-attribute-value-option-value-mirror-link.js +24 -0
- package/.medusa/server/src/links/product-attribute-value-pivot-link.d.ts +5 -0
- package/.medusa/server/src/links/product-attribute-value-pivot-link.js +23 -0
- 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 +2 -2
- package/.medusa/server/src/links/seller-customer-group-link.js +15 -0
- package/.medusa/server/src/migration-scripts/drop-fulfillment-global-unique-indexes.js +6 -1
- package/.medusa/server/src/modules/commission/index.d.ts +14 -0
- package/.medusa/server/src/modules/commission/index.js +3 -1
- package/.medusa/server/src/modules/commission/loaders/seed-default-commission-rate.d.ts +11 -0
- package/.medusa/server/src/modules/commission/loaders/seed-default-commission-rate.js +35 -0
- package/.medusa/server/src/modules/{product/migrations/Migration20260414141012.d.ts → commission/migrations/Migration20260615120000.d.ts} +1 -1
- package/.medusa/server/src/modules/commission/migrations/Migration20260615120000.js +46 -0
- package/.medusa/server/src/modules/commission/models/commission-line.d.ts +2 -1
- package/.medusa/server/src/modules/commission/models/commission-line.js +3 -2
- package/.medusa/server/src/modules/commission/models/commission-rate-value.d.ts +25 -0
- package/.medusa/server/src/modules/commission/models/commission-rate-value.js +17 -0
- package/.medusa/server/src/modules/commission/models/commission-rate.d.ts +9 -4
- package/.medusa/server/src/modules/commission/models/commission-rate.js +9 -6
- package/.medusa/server/src/modules/commission/models/commission-rule.d.ts +8 -3
- package/.medusa/server/src/modules/commission/models/index.d.ts +1 -0
- package/.medusa/server/src/modules/commission/models/index.js +4 -2
- package/.medusa/server/src/modules/commission/service.d.ts +170 -10
- package/.medusa/server/src/modules/commission/service.js +270 -114
- package/.medusa/server/src/modules/media/index.d.ts +21 -0
- package/.medusa/server/src/modules/{subscription → media}/index.js +2 -2
- package/.medusa/server/src/modules/{product/migrations/Migration20260415151424.d.ts → media/migrations/Migration20260616000000.d.ts} +1 -1
- package/.medusa/server/src/modules/media/migrations/Migration20260616000000.js +16 -0
- package/.medusa/server/src/modules/media/models/index.d.ts +1 -0
- package/.medusa/server/src/modules/media/models/index.js +9 -0
- package/.medusa/server/src/modules/media/models/media-image.d.ts +32 -0
- package/.medusa/server/src/modules/media/models/media-image.js +41 -0
- package/.medusa/server/src/modules/media/service.d.ts +17 -0
- package/.medusa/server/src/modules/media/service.js +10 -0
- package/.medusa/server/src/modules/{product/migrations/Migration20260416104248.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/{product/migrations/Migration20260416105443.d.ts → offer/migrations/Migration20260622000000.d.ts} +1 -1
- package/.medusa/server/src/modules/offer/migrations/Migration20260622000000.js +16 -0
- package/.medusa/server/src/modules/offer/models/offer.d.ts +1 -1
- package/.medusa/server/src/modules/offer/models/offer.js +7 -7
- package/.medusa/server/src/modules/offer/service.d.ts +1 -1
- 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/product-attribute/migrations/Migration20260601000000.d.ts +5 -0
- 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/migrations/Migration20260601000002.d.ts +14 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000002.js +31 -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 +27 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +30 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +28 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +54 -0
- package/.medusa/server/src/modules/product-attribute/service.d.ts +70 -0
- package/.medusa/server/src/modules/product-attribute/service.js +227 -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 → product-edit}/models/product-change-action.js +1 -1
- 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/migrations/Migration20260616120000.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260616120000.js +16 -0
- package/.medusa/server/src/modules/seller/models/address.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/member-invite.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/member.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/payment-details.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/payment-details.js +3 -3
- package/.medusa/server/src/modules/seller/models/professional-details.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/seller-member.d.ts +4 -4
- package/.medusa/server/src/modules/seller/models/seller.d.ts +2 -2
- package/.medusa/server/src/modules/seller/repositories/order-group.js +1 -11
- package/.medusa/server/src/modules/seller/service.d.ts +16 -16
- package/.medusa/server/src/modules/seller/service.js +1 -2
- 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 +12 -0
- package/.medusa/server/src/subscribers/order-edit-confirmed.js +34 -0
- package/.medusa/server/src/types/cart-line-item.d.ts +0 -9
- package/.medusa/server/src/utils/dashboard/dashboard-base.js +6 -2
- package/.medusa/server/src/utils/disable-medusa-middlewares.js +7 -1
- package/.medusa/server/src/with-mercur.js +1 -6
- 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 -2
- package/.medusa/server/src/workflows/cart/hooks/index.js +4 -3
- 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 +96 -0
- package/.medusa/server/src/workflows/cart/steps/index.d.ts +0 -3
- package/.medusa/server/src/workflows/cart/steps/index.js +1 -4
- package/.medusa/server/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.js +3 -5
- package/.medusa/server/src/workflows/cart/utils/fields.js +25 -10
- package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.js +1 -3
- package/.medusa/server/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.js +1 -2
- package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +19 -16
- package/.medusa/server/src/workflows/cart/workflows/index.d.ts +0 -2
- package/.medusa/server/src/workflows/cart/workflows/index.js +1 -3
- package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.d.ts +2 -2
- package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.js +1 -2
- package/.medusa/server/src/workflows/commission/steps/create-commission-rates.d.ts +1 -28
- package/.medusa/server/src/workflows/commission/steps/create-commission-rules.d.ts +13 -4
- package/.medusa/server/src/workflows/commission/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/commission/steps/index.js +2 -1
- package/.medusa/server/src/workflows/commission/steps/update-commission-rates.d.ts +13 -4
- package/.medusa/server/src/workflows/commission/steps/update-commission-rules.d.ts +13 -4
- package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.d.ts +2 -2
- package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.js +1 -1
- package/.medusa/server/src/workflows/commission/steps/validate-commission-rates-deletable.d.ts +2 -0
- package/.medusa/server/src/workflows/commission/steps/validate-commission-rates-deletable.js +19 -0
- package/.medusa/server/src/workflows/commission/workflows/create-commission-rates.d.ts +1 -28
- package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.d.ts +1 -2
- package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.js +3 -1
- package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.js +2 -1
- package/.medusa/server/src/workflows/commission/workflows/update-commission-rates.d.ts +13 -4
- package/.medusa/server/src/workflows/{subscription/workflows → customer-group}/index.js +3 -7
- package/.medusa/server/src/workflows/customer-group/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/customer-group/steps/index.js +18 -0
- package/.medusa/server/src/workflows/customer-group/steps/link-seller-customer-group.d.ts +6 -0
- package/.medusa/server/src/workflows/customer-group/steps/link-seller-customer-group.js +38 -0
- package/.medusa/server/src/workflows/customer-group/workflows/create-seller-customer-groups.d.ts +7 -0
- package/.medusa/server/src/workflows/customer-group/workflows/create-seller-customer-groups.js +20 -0
- package/.medusa/server/src/workflows/customer-group/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/{subscription/steps → customer-group/workflows}/index.js +2 -7
- package/.medusa/server/src/workflows/index.d.ts +3 -1
- package/.medusa/server/src/workflows/index.js +4 -2
- package/.medusa/server/src/workflows/media/index.d.ts +2 -0
- package/.medusa/server/src/workflows/{subscription → media}/index.js +1 -1
- package/.medusa/server/src/workflows/media/steps/create-images.d.ts +20 -0
- package/.medusa/server/src/workflows/media/steps/create-images.js +21 -0
- package/.medusa/server/src/workflows/media/steps/delete-images.d.ts +3 -0
- package/.medusa/server/src/workflows/media/steps/delete-images.js +21 -0
- package/.medusa/server/src/workflows/media/steps/index.d.ts +2 -0
- package/.medusa/server/src/workflows/media/steps/index.js +19 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-category-with-images.d.ts +8 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-category-with-images.js +23 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-collection-with-images.d.ts +8 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-collection-with-images.js +23 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-category-with-images.d.ts +5 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-category-with-images.js +21 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-collection-with-images.d.ts +5 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-collection-with-images.js +21 -0
- package/.medusa/server/src/workflows/media/workflows/index.d.ts +8 -0
- package/.medusa/server/src/workflows/media/workflows/index.js +25 -0
- package/.medusa/server/src/workflows/media/workflows/set-category-images.d.ts +13 -0
- package/.medusa/server/src/workflows/media/workflows/set-category-images.js +71 -0
- package/.medusa/server/src/workflows/media/workflows/set-collection-images.d.ts +13 -0
- package/.medusa/server/src/workflows/media/workflows/set-collection-images.js +71 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-category-with-images.d.ts +9 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-category-with-images.js +22 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-collection-with-images.d.ts +9 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-collection-with-images.js +22 -0
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.d.ts +10 -0
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +49 -0
- package/.medusa/server/src/workflows/offer/steps/create-offers.d.ts +1 -1
- package/.medusa/server/src/workflows/offer/steps/delete-offers.d.ts +6 -1
- package/.medusa/server/src/workflows/offer/steps/delete-offers.js +10 -6
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +6 -0
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +52 -0
- package/.medusa/server/src/workflows/offer/steps/index.d.ts +4 -1
- package/.medusa/server/src/workflows/offer/steps/index.js +5 -2
- 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 +1 -6
- package/.medusa/server/src/workflows/offer/steps/update-offers.js +1 -1
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.d.ts +6 -0
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +16 -0
- package/.medusa/server/src/workflows/offer/utils/index.d.ts +1 -0
- package/.medusa/server/src/workflows/offer/utils/index.js +2 -1
- package/.medusa/server/src/workflows/offer/utils/prepare-offer-inventory-input.d.ts +0 -10
- package/.medusa/server/src/workflows/offer/utils/prepare-offer-inventory-input.js +1 -19
- package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.d.ts +17 -31
- package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.js +1 -1
- package/.medusa/server/src/workflows/offer/workflows/create-offers.d.ts +12 -111
- package/.medusa/server/src/workflows/offer/workflows/create-offers.js +86 -45
- package/.medusa/server/src/workflows/offer/workflows/delete-offers.js +2 -2
- package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +12 -118
- package/.medusa/server/src/workflows/offer/workflows/update-offers.js +115 -20
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +2 -3
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +3 -5
- 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 +149 -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 +152 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.d.ts +7 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.js +165 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.d.ts +1 -1
- package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +3 -12
- package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.d.ts +10 -33
- package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +4 -6
- package/.medusa/server/src/workflows/order/workflows/index.d.ts +3 -0
- package/.medusa/server/src/workflows/order/workflows/index.js +4 -1
- package/.medusa/server/src/workflows/order-group/utils/aggregate-status.js +1 -7
- package/.medusa/server/src/workflows/payout/workflows/create-payout.js +34 -21
- package/.medusa/server/src/workflows/product/events.d.ts +1 -49
- package/.medusa/server/src/workflows/product/events.js +3 -51
- package/.medusa/server/src/workflows/product/index.d.ts +1 -1
- package/.medusa/server/src/workflows/product/index.js +2 -2
- package/.medusa/server/src/workflows/product/steps/index.d.ts +1 -28
- package/.medusa/server/src/workflows/product/steps/index.js +2 -29
- package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +11 -0
- package/.medusa/server/src/workflows/product/steps/validate-products-status.js +20 -0
- package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +2 -23
- package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +1 -5
- package/.medusa/server/src/workflows/product/workflows/confirm-products.js +29 -30
- package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +11 -3
- package/.medusa/server/src/workflows/product/workflows/create-products.js +113 -16
- package/.medusa/server/src/workflows/product/workflows/index.d.ts +3 -27
- package/.medusa/server/src/workflows/product/workflows/index.js +4 -28
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +1 -8
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +3 -4
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +1 -8
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +3 -4
- package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +1 -1
- package/.medusa/server/src/workflows/product/workflows/reject-product.js +35 -38
- package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +11 -0
- package/.medusa/server/src/workflows/product/workflows/request-product-change.js +55 -0
- package/.medusa/server/src/workflows/product-attribute/events.d.ts +10 -0
- package/.medusa/server/src/workflows/product-attribute/events.js +14 -0
- package/.medusa/server/src/workflows/product-attribute/index.d.ts +3 -0
- package/.medusa/server/src/workflows/product-attribute/index.js +20 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/create-product-attribute-values.d.ts +1 -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 +4 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +18 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attribute-values.d.ts +1 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attribute-values.js +18 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attributes.d.ts +1 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attributes.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/detach-product-option-values-from-product.d.ts +14 -0
- package/.medusa/server/src/workflows/product-attribute/steps/detach-product-option-values-from-product.js +40 -0
- package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +9 -0
- package/.medusa/server/src/workflows/product-attribute/steps/index.js +26 -0
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +41 -0
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +38 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/update-product-attributes.d.ts +2 -1
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/update-product-attributes.js +7 -6
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-linked.d.ts +2 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-linked.js +28 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-required.d.ts +7 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-required.js +16 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attributes-to-product.d.ts +9 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attributes-to-product.js +242 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-product-attributes.d.ts +14 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-product-attributes.js +27 -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 +67 -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 +88 -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 +61 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +16 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +34 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +11 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/index.js +28 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/remove-product-attributes-from-product.d.ts +10 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/remove-product-attributes-from-product.js +83 -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 +60 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes-on-product.d.ts +11 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes-on-product.js +285 -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 +41 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +11 -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 +6 -0
- package/.medusa/server/src/workflows/product-edit/events.js +10 -0
- package/.medusa/server/src/workflows/product-edit/index.d.ts +1 -0
- package/.medusa/server/src/workflows/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/apply-variant-image-links.d.ts +16 -0
- package/.medusa/server/src/workflows/product-edit/steps/apply-variant-image-links.js +35 -0
- package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.d.ts +38 -2
- package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.js +28 -10
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.d.ts +11 -0
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +21 -0
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +40 -3
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +38 -7
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +36 -14
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +15 -11
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +40 -16
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +11 -18
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +39 -3
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +32 -10
- package/.medusa/server/src/workflows/product-edit/steps/index.d.ts +6 -3
- package/.medusa/server/src/workflows/product-edit/steps/index.js +7 -4
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +44 -0
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +29 -0
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +3 -9
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +25 -15
- 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 +9 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +22 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +7 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +184 -0
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +8 -15
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +9 -25
- 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 +19 -0
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +44 -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 +11 -9
- package/.medusa/server/src/workflows/product-edit/workflows/index.js +12 -10
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +9 -19
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +23 -47
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +13 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +47 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-product.d.ts +11 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-product.js +133 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.d.ts +25 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +162 -0
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +12 -0
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +39 -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 +11 -0
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +44 -0
- package/.medusa/server/src/workflows/promotion/steps/register-usage.d.ts +0 -3
- package/.medusa/server/src/workflows/promotion/steps/register-usage.js +1 -4
- package/.medusa/server/src/workflows/seller/steps/create-seller-member.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/steps/update-member.d.ts +2 -2
- package/.medusa/server/src/workflows/seller/steps/update-seller-member.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/workflows/accept-member-invite.js +1 -2
- package/.medusa/server/src/workflows/seller/workflows/add-seller-member.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.d.ts +20 -2
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +1 -2
- package/.medusa/server/src/workflows/seller/workflows/update-member.d.ts +2 -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 +17 -17
- package/.medusa/server/src/api/admin/product-brands/[id]/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/product-brands/[id]/route.js +0 -51
- package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.d.ts +0 -3
- package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.js +0 -20
- package/.medusa/server/src/api/admin/product-brands/middlewares.js +0 -49
- package/.medusa/server/src/api/admin/product-brands/query-config.js +0 -24
- package/.medusa/server/src/api/admin/product-brands/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/product-brands/route.js +0 -38
- package/.medusa/server/src/api/admin/product-brands/validators.d.ts +0 -284
- package/.medusa/server/src/api/admin/product-brands/validators.js +0 -41
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +0 -53
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +0 -48
- package/.medusa/server/src/api/admin/products/batch/route.d.ts +0 -4
- package/.medusa/server/src/api/admin/products/batch/route.js +0 -36
- 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.d.ts +0 -4
- 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/store/product-brands/[id]/route.d.ts +0 -2
- package/.medusa/server/src/api/store/product-brands/[id]/route.js +0 -18
- package/.medusa/server/src/api/store/product-brands/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/store/product-brands/middlewares.js +0 -23
- package/.medusa/server/src/api/store/product-brands/query-config.js +0 -23
- package/.medusa/server/src/api/store/product-brands/route.d.ts +0 -2
- package/.medusa/server/src/api/store/product-brands/route.js +0 -21
- package/.medusa/server/src/api/store/product-brands/validators.d.ts +0 -215
- package/.medusa/server/src/api/store/product-brands/validators.js +0 -21
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.d.ts +0 -12
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.js +0 -165
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.d.ts +0 -12
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.js +0 -64
- package/.medusa/server/src/api/vendor/product-brands/[id]/route.d.ts +0 -3
- package/.medusa/server/src/api/vendor/product-brands/[id]/route.js +0 -18
- package/.medusa/server/src/api/vendor/product-brands/middlewares.js +0 -23
- package/.medusa/server/src/api/vendor/product-brands/query-config.js +0 -24
- package/.medusa/server/src/api/vendor/product-brands/route.d.ts +0 -3
- package/.medusa/server/src/api/vendor/product-brands/route.js +0 -21
- package/.medusa/server/src/api/vendor/product-brands/validators.d.ts +0 -221
- package/.medusa/server/src/api/vendor/product-brands/validators.js +0 -22
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +0 -9
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +0 -37
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +0 -11
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +0 -47
- 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.d.ts +0 -3
- package/.medusa/server/src/api/vendor/subscription/route.js +0 -31
- package/.medusa/server/src/links/brand-seller-link.js +0 -16
- package/.medusa/server/src/links/line-item-commission-line-link.js +0 -21
- package/.medusa/server/src/links/offer-price-set-link.js +0 -15
- package/.medusa/server/src/modules/product/index.d.ts +0 -7
- package/.medusa/server/src/modules/product/index.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260414141012.js +0 -169
- package/.medusa/server/src/modules/product/migrations/Migration20260415151424.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260416104248.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260416105443.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260421093258.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260421093258.js +0 -22
- package/.medusa/server/src/modules/product/migrations/Migration20260422105949.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260422105949.js +0 -32
- package/.medusa/server/src/modules/product/migrations/Migration20260422112250.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260422112250.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260424120000.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260424120000.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260427140959.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260427140959.js +0 -20
- package/.medusa/server/src/modules/product/migrations/Migration20260427141021.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260427141021.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260428115720.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260428115720.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260430143600.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260430143600.js +0 -15
- package/.medusa/server/src/modules/product/migrations/Migration20260430144500.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260430144500.js +0 -23
- package/.medusa/server/src/modules/product/migrations/Migration20260430150000.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260430150000.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260520120000.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260520120000.js +0 -16
- package/.medusa/server/src/modules/product/models/index.d.ts +0 -13
- package/.medusa/server/src/modules/product/models/index.js +0 -33
- package/.medusa/server/src/modules/product/models/product-attribute-value.d.ts +0 -1698
- package/.medusa/server/src/modules/product/models/product-attribute-value.js +0 -38
- package/.medusa/server/src/modules/product/models/product-attribute.d.ts +0 -1627
- package/.medusa/server/src/modules/product/models/product-attribute.js +0 -57
- package/.medusa/server/src/modules/product/models/product-brand.d.ts +0 -551
- package/.medusa/server/src/modules/product/models/product-brand.js +0 -34
- package/.medusa/server/src/modules/product/models/product-category.d.ts +0 -1692
- package/.medusa/server/src/modules/product/models/product-category.js +0 -55
- package/.medusa/server/src/modules/product/models/product-change-action.d.ts +0 -1105
- package/.medusa/server/src/modules/product/models/product-change.d.ts +0 -559
- package/.medusa/server/src/modules/product/models/product-change.js +0 -50
- package/.medusa/server/src/modules/product/models/product-collection.d.ts +0 -552
- package/.medusa/server/src/modules/product/models/product-collection.js +0 -27
- package/.medusa/server/src/modules/product/models/product-image.d.ts +0 -1745
- package/.medusa/server/src/modules/product/models/product-image.js +0 -51
- package/.medusa/server/src/modules/product/models/product-tag.d.ts +0 -561
- package/.medusa/server/src/modules/product/models/product-tag.js +0 -26
- package/.medusa/server/src/modules/product/models/product-type.d.ts +0 -553
- package/.medusa/server/src/modules/product/models/product-type.js +0 -26
- package/.medusa/server/src/modules/product/models/product-variant-product-image.d.ts +0 -3366
- package/.medusa/server/src/modules/product/models/product-variant-product-image.js +0 -19
- package/.medusa/server/src/modules/product/models/product-variant.d.ts +0 -1619
- package/.medusa/server/src/modules/product/models/product-variant.js +0 -87
- package/.medusa/server/src/modules/product/models/product.d.ts +0 -559
- package/.medusa/server/src/modules/product/models/product.js +0 -137
- package/.medusa/server/src/modules/product/repositories/product-category.d.ts +0 -53
- package/.medusa/server/src/modules/product/repositories/product-category.js +0 -381
- package/.medusa/server/src/modules/product/service.d.ts +0 -11209
- package/.medusa/server/src/modules/product/service.js +0 -1471
- package/.medusa/server/src/modules/product/services/product-category.d.ts +0 -37
- package/.medusa/server/src/modules/product/services/product-category.js +0 -166
- package/.medusa/server/src/modules/subscription/index.d.ts +0 -35
- package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.d.ts +0 -5
- 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/workflows/cart/hooks/validate-add-to-cart-stock.js +0 -52
- package/.medusa/server/src/workflows/cart/hooks/validate-update-line-item-stock.js +0 -60
- package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.d.ts +0 -19
- package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.js +0 -39
- package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.d.ts +0 -8
- package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.js +0 -45
- package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.d.ts +0 -21
- package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.js +0 -85
- package/.medusa/server/src/workflows/cart/workflows/add-to-cart.d.ts +0 -12
- package/.medusa/server/src/workflows/cart/workflows/add-to-cart.js +0 -235
- package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.d.ts +0 -16
- package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.js +0 -87
- package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.d.ts +0 -8
- package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.js +0 -26
- package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.d.ts +0 -7
- package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.js +0 -61
- package/.medusa/server/src/workflows/product/steps/batch-product-attributes.d.ts +0 -11
- package/.medusa/server/src/workflows/product/steps/batch-product-attributes.js +0 -16
- package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.js +0 -17
- package/.medusa/server/src/workflows/product/steps/create-product-attributes.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-product-attributes.js +0 -17
- package/.medusa/server/src/workflows/product/steps/create-product-brands.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-product-brands.js +0 -17
- package/.medusa/server/src/workflows/product/steps/create-product-categories.d.ts +0 -1576
- package/.medusa/server/src/workflows/product/steps/create-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/steps/create-product-variants.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-product-variants.js +0 -18
- package/.medusa/server/src/workflows/product/steps/create-products.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-products.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-attribute-values.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-attributes.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-brands.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-product-brands.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-categories.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-product-categories.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-variants.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-product-variants.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-products.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-products.js +0 -17
- package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.d.ts +0 -8
- package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.js +0 -26
- package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.d.ts +0 -6
- package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.js +0 -11
- package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.d.ts +0 -7
- package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.js +0 -22
- package/.medusa/server/src/workflows/product/steps/update-product-brands.d.ts +0 -7
- package/.medusa/server/src/workflows/product/steps/update-product-brands.js +0 -28
- package/.medusa/server/src/workflows/product/steps/update-product-categories.d.ts +0 -1580
- package/.medusa/server/src/workflows/product/steps/update-product-categories.js +0 -20
- package/.medusa/server/src/workflows/product/steps/update-product-variants.d.ts +0 -10
- package/.medusa/server/src/workflows/product/steps/update-product-variants.js +0 -32
- package/.medusa/server/src/workflows/product/steps/update-products.d.ts +0 -10
- package/.medusa/server/src/workflows/product/steps/update-products.js +0 -33
- package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.js +0 -30
- package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.js +0 -19
- package/.medusa/server/src/workflows/product/steps/validate-confirm-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-confirm-products.js +0 -14
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.js +0 -19
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.js +0 -30
- package/.medusa/server/src/workflows/product/steps/validate-reject-product.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-reject-product.js +0 -12
- package/.medusa/server/src/workflows/product/steps/validate-request-changes.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-request-changes.js +0 -12
- package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.js +0 -12
- package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.js +0 -10
- package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.d.ts +0 -12
- package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.js +0 -23
- package/.medusa/server/src/workflows/product/workflows/batch-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/batch-products.js +0 -86
- package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.js +0 -21
- package/.medusa/server/src/workflows/product/workflows/create-product-attributes.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/create-product-attributes.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/create-product-brands.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/create-product-brands.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/create-product-categories.d.ts +0 -1581
- package/.medusa/server/src/workflows/product/workflows/create-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/create-product-variants.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/create-product-variants.js +0 -25
- package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.js +0 -20
- package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.js +0 -20
- package/.medusa/server/src/workflows/product/workflows/delete-product-brands.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-brands.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/delete-product-categories.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/delete-product-variants.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/delete-product-variants.js +0 -24
- package/.medusa/server/src/workflows/product/workflows/delete-products.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-products.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.d.ts +0 -14
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.js +0 -21
- package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.js +0 -20
- package/.medusa/server/src/workflows/product/workflows/request-product-changes.d.ts +0 -11
- package/.medusa/server/src/workflows/product/workflows/request-product-changes.js +0 -61
- package/.medusa/server/src/workflows/product/workflows/resubmit-product.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/resubmit-product.js +0 -48
- package/.medusa/server/src/workflows/product/workflows/submit-seller-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/submit-seller-products.js +0 -76
- package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/update-product-attributes.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/update-product-attributes.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/update-product-brands.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/update-product-brands.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/update-product-categories.d.ts +0 -1583
- package/.medusa/server/src/workflows/product/workflows/update-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/update-product-variants.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/update-product-variants.js +0 -36
- package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/update-products.js +0 -23
- package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.js +0 -21
- package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.d.ts +0 -5
- package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.js +0 -11
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.d.ts +0 -11
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.js +0 -21
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.d.ts +0 -19
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.js +0 -40
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.d.ts +0 -21
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.js +0 -44
- package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.d.ts +0 -16
- package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.js +0 -42
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.d.ts +0 -19
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.js +0 -66
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.d.ts +0 -17
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.js +0 -58
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.d.ts +0 -17
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.js +0 -62
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.d.ts +0 -16
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.js +0 -68
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +0 -18
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +0 -72
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.d.ts +0 -21
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.js +0 -89
- 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/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/workflows/utils/override-workflow.d.ts +0 -12
- package/.medusa/server/src/workflows/utils/override-workflow.js +0 -21
- /package/.medusa/server/src/links/{brand-seller-link.d.ts → offer-price-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{line-item-commission-line-link.d.ts → offer-product-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{offer-price-set-link.d.ts → seller-customer-group-link.d.ts} +0 -0
- /package/.medusa/server/src/workflows/cart/hooks/{validate-add-to-cart-stock.d.ts → before-refreshing-payment-collection.d.ts} +0 -0
- /package/.medusa/server/src/workflows/cart/hooks/{validate-update-line-item-stock.d.ts → set-pricing-context.d.ts} +0 -0
- /package/.medusa/server/src/workflows/{subscription → customer-group}/index.d.ts +0 -0
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ProductStatus } from "@mercurjs/types";
|
|
3
2
|
import { AdditionalData } from "@medusajs/framework/types";
|
|
4
3
|
export type VendorGetProductsParamsType = z.infer<typeof VendorGetProductsParams>;
|
|
5
|
-
export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
4
|
+
export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
6
5
|
[x: string]: any;
|
|
7
6
|
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
8
7
|
q: z.ZodOptional<z.ZodString>;
|
|
9
8
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
10
9
|
title: z.ZodOptional<z.ZodString>;
|
|
11
10
|
handle: z.ZodOptional<z.ZodString>;
|
|
12
|
-
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
12
|
+
readonly DRAFT: "draft";
|
|
13
|
+
readonly PROPOSED: "proposed";
|
|
14
|
+
readonly PUBLISHED: "published";
|
|
15
|
+
readonly REJECTED: "rejected";
|
|
16
|
+
}>, "many">>;
|
|
15
17
|
collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
16
18
|
type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
17
19
|
category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -20,7 +22,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
20
22
|
ean: z.ZodOptional<z.ZodString>;
|
|
21
23
|
upc: z.ZodOptional<z.ZodString>;
|
|
22
24
|
barcode: z.ZodOptional<z.ZodString>;
|
|
23
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
25
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
24
26
|
$eq: any;
|
|
25
27
|
$ne: any;
|
|
26
28
|
$in: any;
|
|
@@ -33,7 +35,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
33
35
|
$gte: any;
|
|
34
36
|
$lt: any;
|
|
35
37
|
$lte: any;
|
|
36
|
-
},
|
|
38
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
37
39
|
$eq?: any;
|
|
38
40
|
$ne?: any;
|
|
39
41
|
$in?: any;
|
|
@@ -60,7 +62,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
60
62
|
$lt?: any;
|
|
61
63
|
$lte?: any;
|
|
62
64
|
}>]>>;
|
|
63
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
65
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
64
66
|
$eq: any;
|
|
65
67
|
$ne: any;
|
|
66
68
|
$in: any;
|
|
@@ -73,7 +75,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
73
75
|
$gte: any;
|
|
74
76
|
$lt: any;
|
|
75
77
|
$lte: any;
|
|
76
|
-
},
|
|
78
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
77
79
|
$eq?: any;
|
|
78
80
|
$ne?: any;
|
|
79
81
|
$in?: any;
|
|
@@ -100,7 +102,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
100
102
|
$lt?: any;
|
|
101
103
|
$lte?: any;
|
|
102
104
|
}>]>>;
|
|
103
|
-
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
105
|
+
deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
104
106
|
$eq: any;
|
|
105
107
|
$ne: any;
|
|
106
108
|
$in: any;
|
|
@@ -113,7 +115,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
113
115
|
$gte: any;
|
|
114
116
|
$lt: any;
|
|
115
117
|
$lte: any;
|
|
116
|
-
},
|
|
118
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
117
119
|
$eq?: any;
|
|
118
120
|
$ne?: any;
|
|
119
121
|
$in?: any;
|
|
@@ -140,53 +142,57 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
140
142
|
$lt?: any;
|
|
141
143
|
$lte?: any;
|
|
142
144
|
}>]>>;
|
|
145
|
+
has_offer: any;
|
|
143
146
|
}, "strip", z.ZodTypeAny, {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
147
|
+
[x: string]: any;
|
|
148
|
+
q?: unknown;
|
|
149
|
+
id?: unknown;
|
|
150
|
+
title?: unknown;
|
|
151
|
+
handle?: unknown;
|
|
152
|
+
status?: unknown;
|
|
153
|
+
collection_id?: unknown;
|
|
154
|
+
type_id?: unknown;
|
|
155
|
+
category_id?: unknown;
|
|
156
|
+
tag_id?: unknown;
|
|
157
|
+
sku?: unknown;
|
|
158
|
+
ean?: unknown;
|
|
159
|
+
upc?: unknown;
|
|
160
|
+
barcode?: unknown;
|
|
161
|
+
created_at?: unknown;
|
|
162
|
+
updated_at?: unknown;
|
|
163
|
+
deleted_at?: unknown;
|
|
164
|
+
has_offer?: unknown;
|
|
162
165
|
}, {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
166
|
+
[x: string]: any;
|
|
167
|
+
q?: unknown;
|
|
168
|
+
id?: unknown;
|
|
169
|
+
title?: unknown;
|
|
170
|
+
handle?: unknown;
|
|
171
|
+
status?: unknown;
|
|
172
|
+
collection_id?: unknown;
|
|
173
|
+
type_id?: unknown;
|
|
174
|
+
category_id?: unknown;
|
|
175
|
+
tag_id?: unknown;
|
|
176
|
+
sku?: unknown;
|
|
177
|
+
ean?: unknown;
|
|
178
|
+
upc?: unknown;
|
|
179
|
+
barcode?: unknown;
|
|
180
|
+
created_at?: unknown;
|
|
181
|
+
updated_at?: unknown;
|
|
182
|
+
deleted_at?: unknown;
|
|
183
|
+
has_offer?: unknown;
|
|
181
184
|
}>, "many">>>;
|
|
182
185
|
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
183
186
|
q: z.ZodOptional<z.ZodString>;
|
|
184
187
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
185
188
|
title: z.ZodOptional<z.ZodString>;
|
|
186
189
|
handle: z.ZodOptional<z.ZodString>;
|
|
187
|
-
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
191
|
+
readonly DRAFT: "draft";
|
|
192
|
+
readonly PROPOSED: "proposed";
|
|
193
|
+
readonly PUBLISHED: "published";
|
|
194
|
+
readonly REJECTED: "rejected";
|
|
195
|
+
}>, "many">>;
|
|
190
196
|
collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
191
197
|
type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
192
198
|
category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -195,7 +201,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
195
201
|
ean: z.ZodOptional<z.ZodString>;
|
|
196
202
|
upc: z.ZodOptional<z.ZodString>;
|
|
197
203
|
barcode: z.ZodOptional<z.ZodString>;
|
|
198
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
204
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
199
205
|
$eq: any;
|
|
200
206
|
$ne: any;
|
|
201
207
|
$in: any;
|
|
@@ -208,7 +214,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
208
214
|
$gte: any;
|
|
209
215
|
$lt: any;
|
|
210
216
|
$lte: any;
|
|
211
|
-
},
|
|
217
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
212
218
|
$eq?: any;
|
|
213
219
|
$ne?: any;
|
|
214
220
|
$in?: any;
|
|
@@ -235,7 +241,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
235
241
|
$lt?: any;
|
|
236
242
|
$lte?: any;
|
|
237
243
|
}>]>>;
|
|
238
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
244
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
239
245
|
$eq: any;
|
|
240
246
|
$ne: any;
|
|
241
247
|
$in: any;
|
|
@@ -248,7 +254,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
248
254
|
$gte: any;
|
|
249
255
|
$lt: any;
|
|
250
256
|
$lte: any;
|
|
251
|
-
},
|
|
257
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
252
258
|
$eq?: any;
|
|
253
259
|
$ne?: any;
|
|
254
260
|
$in?: any;
|
|
@@ -275,7 +281,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
275
281
|
$lt?: any;
|
|
276
282
|
$lte?: any;
|
|
277
283
|
}>]>>;
|
|
278
|
-
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
284
|
+
deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
279
285
|
$eq: any;
|
|
280
286
|
$ne: any;
|
|
281
287
|
$in: any;
|
|
@@ -288,7 +294,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
288
294
|
$gte: any;
|
|
289
295
|
$lt: any;
|
|
290
296
|
$lte: any;
|
|
291
|
-
},
|
|
297
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
292
298
|
$eq?: any;
|
|
293
299
|
$ne?: any;
|
|
294
300
|
$in?: any;
|
|
@@ -315,46 +321,47 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
315
321
|
$lt?: any;
|
|
316
322
|
$lte?: any;
|
|
317
323
|
}>]>>;
|
|
324
|
+
has_offer: any;
|
|
318
325
|
}, "strip", z.ZodTypeAny, {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
326
|
+
[x: string]: any;
|
|
327
|
+
q?: unknown;
|
|
328
|
+
id?: unknown;
|
|
329
|
+
title?: unknown;
|
|
330
|
+
handle?: unknown;
|
|
331
|
+
status?: unknown;
|
|
332
|
+
collection_id?: unknown;
|
|
333
|
+
type_id?: unknown;
|
|
334
|
+
category_id?: unknown;
|
|
335
|
+
tag_id?: unknown;
|
|
336
|
+
sku?: unknown;
|
|
337
|
+
ean?: unknown;
|
|
338
|
+
upc?: unknown;
|
|
339
|
+
barcode?: unknown;
|
|
340
|
+
created_at?: unknown;
|
|
341
|
+
updated_at?: unknown;
|
|
342
|
+
deleted_at?: unknown;
|
|
343
|
+
has_offer?: unknown;
|
|
337
344
|
}, {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
345
|
+
[x: string]: any;
|
|
346
|
+
q?: unknown;
|
|
347
|
+
id?: unknown;
|
|
348
|
+
title?: unknown;
|
|
349
|
+
handle?: unknown;
|
|
350
|
+
status?: unknown;
|
|
351
|
+
collection_id?: unknown;
|
|
352
|
+
type_id?: unknown;
|
|
353
|
+
category_id?: unknown;
|
|
354
|
+
tag_id?: unknown;
|
|
355
|
+
sku?: unknown;
|
|
356
|
+
ean?: unknown;
|
|
357
|
+
upc?: unknown;
|
|
358
|
+
barcode?: unknown;
|
|
359
|
+
created_at?: unknown;
|
|
360
|
+
updated_at?: unknown;
|
|
361
|
+
deleted_at?: unknown;
|
|
362
|
+
has_offer?: unknown;
|
|
356
363
|
}>, "many">>>;
|
|
357
|
-
},
|
|
364
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
358
365
|
[x: string]: any;
|
|
359
366
|
$and?: unknown;
|
|
360
367
|
$or?: unknown;
|
|
@@ -362,11 +369,15 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
362
369
|
[x: string]: any;
|
|
363
370
|
$and?: unknown;
|
|
364
371
|
$or?: unknown;
|
|
372
|
+
}>, Record<string, unknown>, {
|
|
373
|
+
[x: string]: any;
|
|
374
|
+
$and?: unknown;
|
|
375
|
+
$or?: unknown;
|
|
365
376
|
}>;
|
|
366
377
|
export type VendorGetProductParamsType = z.infer<typeof VendorGetProductParams>;
|
|
367
378
|
export declare const VendorGetProductParams: z.ZodObject<{
|
|
368
379
|
fields: z.ZodOptional<z.ZodString>;
|
|
369
|
-
},
|
|
380
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
370
381
|
fields?: string | undefined;
|
|
371
382
|
}, {
|
|
372
383
|
fields?: string | undefined;
|
|
@@ -376,9 +387,14 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
376
387
|
title: z.ZodString;
|
|
377
388
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
378
389
|
description: z.ZodOptional<z.ZodString>;
|
|
379
|
-
status: z.ZodOptional<z.ZodNativeEnum<
|
|
380
|
-
|
|
381
|
-
|
|
390
|
+
status: z.ZodOptional<z.ZodNativeEnum<{
|
|
391
|
+
readonly DRAFT: "draft";
|
|
392
|
+
readonly PROPOSED: "proposed";
|
|
393
|
+
readonly PUBLISHED: "published";
|
|
394
|
+
readonly REJECTED: "rejected";
|
|
395
|
+
}>>;
|
|
396
|
+
is_giftcard: any;
|
|
397
|
+
discountable: any;
|
|
382
398
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
383
399
|
url: z.ZodString;
|
|
384
400
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -391,7 +407,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
391
407
|
external_id: z.ZodOptional<z.ZodString>;
|
|
392
408
|
type_id: z.ZodOptional<z.ZodString>;
|
|
393
409
|
collection_id: z.ZodOptional<z.ZodString>;
|
|
394
|
-
brand_id: z.ZodOptional<z.ZodString>;
|
|
395
410
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
396
411
|
id: z.ZodString;
|
|
397
412
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -406,81 +421,59 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
406
421
|
}, {
|
|
407
422
|
id: string;
|
|
408
423
|
}>, "many">>;
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}, "strip", z.ZodTypeAny, {
|
|
413
|
-
attribute_id: string;
|
|
414
|
-
value_ids?: string[] | undefined;
|
|
415
|
-
}, {
|
|
416
|
-
attribute_id: string;
|
|
417
|
-
value_ids?: string[] | undefined;
|
|
418
|
-
}>, z.ZodObject<{
|
|
419
|
-
name: z.ZodString;
|
|
420
|
-
type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
|
|
421
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
422
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
423
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
424
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
425
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
426
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
424
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
425
|
+
title: z.ZodString;
|
|
426
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
427
427
|
}, "strip", z.ZodTypeAny, {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
values?: string[] | undefined;
|
|
431
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
432
|
-
description?: string | null | undefined;
|
|
433
|
-
is_required?: boolean | undefined;
|
|
434
|
-
is_filterable?: boolean | undefined;
|
|
435
|
-
is_variant_axis?: boolean | undefined;
|
|
428
|
+
values: string[];
|
|
429
|
+
title: string;
|
|
436
430
|
}, {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
is_required?: boolean | undefined;
|
|
443
|
-
is_filterable?: boolean | undefined;
|
|
444
|
-
is_variant_axis?: boolean | undefined;
|
|
445
|
-
}>]>, "many">>;
|
|
446
|
-
variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
447
|
-
attribute_id: z.ZodString;
|
|
431
|
+
values: string[];
|
|
432
|
+
title: string;
|
|
433
|
+
}>, "many">>;
|
|
434
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
435
|
+
id: z.ZodString;
|
|
448
436
|
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
449
|
-
|
|
450
|
-
|
|
437
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
438
|
+
}, "strict", z.ZodTypeAny, {
|
|
439
|
+
id: string;
|
|
440
|
+
value?: string | number | boolean | undefined;
|
|
451
441
|
value_ids?: string[] | undefined;
|
|
452
442
|
}, {
|
|
453
|
-
|
|
443
|
+
id: string;
|
|
444
|
+
value?: string | number | boolean | undefined;
|
|
454
445
|
value_ids?: string[] | undefined;
|
|
455
446
|
}>, z.ZodObject<{
|
|
456
|
-
|
|
457
|
-
type: z.ZodEnum<["single_select", "multi_select", "
|
|
447
|
+
title: z.ZodString;
|
|
448
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
458
449
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
450
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
459
451
|
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
460
452
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
461
453
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
462
454
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
463
455
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
464
|
-
}, "
|
|
465
|
-
|
|
466
|
-
name: string;
|
|
456
|
+
}, "strict", z.ZodTypeAny, {
|
|
457
|
+
title: string;
|
|
467
458
|
values?: string[] | undefined;
|
|
468
459
|
metadata?: Record<string, unknown> | null | undefined;
|
|
460
|
+
value?: string | number | boolean | undefined;
|
|
461
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
469
462
|
description?: string | null | undefined;
|
|
463
|
+
is_variant_axis?: boolean | undefined;
|
|
470
464
|
is_required?: boolean | undefined;
|
|
471
465
|
is_filterable?: boolean | undefined;
|
|
472
|
-
is_variant_axis?: boolean | undefined;
|
|
473
466
|
}, {
|
|
474
|
-
|
|
475
|
-
name: string;
|
|
467
|
+
title: string;
|
|
476
468
|
values?: string[] | undefined;
|
|
477
469
|
metadata?: Record<string, unknown> | null | undefined;
|
|
470
|
+
value?: string | number | boolean | undefined;
|
|
471
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
478
472
|
description?: string | null | undefined;
|
|
473
|
+
is_variant_axis?: boolean | undefined;
|
|
479
474
|
is_required?: boolean | undefined;
|
|
480
475
|
is_filterable?: boolean | undefined;
|
|
481
|
-
is_variant_axis?: boolean | undefined;
|
|
482
476
|
}>]>, "many">>;
|
|
483
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
484
477
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
485
478
|
title: z.ZodString;
|
|
486
479
|
sku: z.ZodOptional<z.ZodString>;
|
|
@@ -500,14 +493,15 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
500
493
|
origin_country: z.ZodOptional<z.ZodString>;
|
|
501
494
|
material: z.ZodOptional<z.ZodString>;
|
|
502
495
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
503
|
-
|
|
496
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
504
497
|
}, "strict", z.ZodTypeAny, {
|
|
505
498
|
title: string;
|
|
499
|
+
options?: Record<string, string> | undefined;
|
|
506
500
|
length?: number | undefined;
|
|
501
|
+
metadata?: Record<string, unknown> | undefined;
|
|
507
502
|
sku?: string | undefined;
|
|
508
503
|
ean?: string | undefined;
|
|
509
504
|
upc?: string | undefined;
|
|
510
|
-
metadata?: Record<string, unknown> | undefined;
|
|
511
505
|
weight?: number | undefined;
|
|
512
506
|
height?: number | undefined;
|
|
513
507
|
width?: number | undefined;
|
|
@@ -520,14 +514,14 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
520
514
|
gtin?: string | undefined;
|
|
521
515
|
barcode?: string | undefined;
|
|
522
516
|
variant_rank?: number | undefined;
|
|
523
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
524
517
|
}, {
|
|
525
518
|
title: string;
|
|
519
|
+
options?: Record<string, string> | undefined;
|
|
526
520
|
length?: number | undefined;
|
|
521
|
+
metadata?: Record<string, unknown> | undefined;
|
|
527
522
|
sku?: string | undefined;
|
|
528
523
|
ean?: string | undefined;
|
|
529
524
|
upc?: string | undefined;
|
|
530
|
-
metadata?: Record<string, unknown> | undefined;
|
|
531
525
|
weight?: number | undefined;
|
|
532
526
|
height?: number | undefined;
|
|
533
527
|
width?: number | undefined;
|
|
@@ -540,7 +534,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
540
534
|
gtin?: string | undefined;
|
|
541
535
|
barcode?: string | undefined;
|
|
542
536
|
variant_rank?: number | undefined;
|
|
543
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
544
537
|
}>, "many">>;
|
|
545
538
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
546
539
|
length: z.ZodOptional<z.ZodNumber>;
|
|
@@ -552,176 +545,70 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
552
545
|
material: z.ZodOptional<z.ZodString>;
|
|
553
546
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
554
547
|
}, "strict", z.ZodTypeAny, {
|
|
555
|
-
title: string;
|
|
556
|
-
is_giftcard: boolean;
|
|
557
|
-
discountable: boolean;
|
|
558
|
-
length?: number | undefined;
|
|
559
|
-
status?: ProductStatus | undefined;
|
|
560
|
-
metadata?: Record<string, unknown> | undefined;
|
|
561
|
-
handle?: string | undefined;
|
|
562
|
-
description?: string | undefined;
|
|
563
|
-
external_id?: string | undefined;
|
|
564
|
-
thumbnail?: string | undefined;
|
|
565
|
-
collection_id?: string | undefined;
|
|
566
|
-
type_id?: string | undefined;
|
|
567
|
-
subtitle?: string | undefined;
|
|
568
|
-
brand_id?: string | undefined;
|
|
569
|
-
weight?: number | undefined;
|
|
570
|
-
height?: number | undefined;
|
|
571
|
-
width?: number | undefined;
|
|
572
|
-
hs_code?: string | undefined;
|
|
573
|
-
origin_country?: string | undefined;
|
|
574
|
-
mid_code?: string | undefined;
|
|
575
|
-
material?: string | undefined;
|
|
576
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
577
|
-
images?: {
|
|
578
|
-
url: string;
|
|
579
|
-
}[] | undefined;
|
|
580
|
-
categories?: {
|
|
581
|
-
id: string;
|
|
582
|
-
}[] | undefined;
|
|
583
|
-
tags?: {
|
|
584
|
-
id: string;
|
|
585
|
-
}[] | undefined;
|
|
586
|
-
variant_attributes?: ({
|
|
587
|
-
attribute_id: string;
|
|
588
|
-
value_ids?: string[] | undefined;
|
|
589
|
-
} | {
|
|
590
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
591
|
-
name: string;
|
|
592
|
-
values?: string[] | undefined;
|
|
593
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
594
|
-
description?: string | null | undefined;
|
|
595
|
-
is_required?: boolean | undefined;
|
|
596
|
-
is_filterable?: boolean | undefined;
|
|
597
|
-
is_variant_axis?: boolean | undefined;
|
|
598
|
-
})[] | undefined;
|
|
599
|
-
product_attributes?: ({
|
|
600
|
-
attribute_id: string;
|
|
601
|
-
value_ids?: string[] | undefined;
|
|
602
|
-
} | {
|
|
603
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
604
|
-
name: string;
|
|
605
|
-
values?: string[] | undefined;
|
|
606
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
607
|
-
description?: string | null | undefined;
|
|
608
|
-
is_required?: boolean | undefined;
|
|
609
|
-
is_filterable?: boolean | undefined;
|
|
610
|
-
is_variant_axis?: boolean | undefined;
|
|
611
|
-
})[] | undefined;
|
|
612
|
-
variants?: {
|
|
613
|
-
title: string;
|
|
614
|
-
length?: number | undefined;
|
|
615
|
-
sku?: string | undefined;
|
|
616
|
-
ean?: string | undefined;
|
|
617
|
-
upc?: string | undefined;
|
|
618
|
-
metadata?: Record<string, unknown> | undefined;
|
|
619
|
-
weight?: number | undefined;
|
|
620
|
-
height?: number | undefined;
|
|
621
|
-
width?: number | undefined;
|
|
622
|
-
hs_code?: string | undefined;
|
|
623
|
-
origin_country?: string | undefined;
|
|
624
|
-
mid_code?: string | undefined;
|
|
625
|
-
material?: string | undefined;
|
|
626
|
-
isbn?: string | undefined;
|
|
627
|
-
asin?: string | undefined;
|
|
628
|
-
gtin?: string | undefined;
|
|
629
|
-
barcode?: string | undefined;
|
|
630
|
-
variant_rank?: number | undefined;
|
|
631
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
632
|
-
}[] | undefined;
|
|
633
|
-
}, {
|
|
634
|
-
title: string;
|
|
635
|
-
length?: number | undefined;
|
|
636
|
-
status?: ProductStatus | undefined;
|
|
637
|
-
metadata?: Record<string, unknown> | undefined;
|
|
638
|
-
handle?: string | undefined;
|
|
639
|
-
description?: string | undefined;
|
|
640
|
-
external_id?: string | undefined;
|
|
641
|
-
thumbnail?: string | undefined;
|
|
642
|
-
collection_id?: string | undefined;
|
|
643
|
-
type_id?: string | undefined;
|
|
644
|
-
subtitle?: string | undefined;
|
|
645
|
-
is_giftcard?: string | boolean | undefined;
|
|
646
|
-
discountable?: string | boolean | undefined;
|
|
647
|
-
brand_id?: string | undefined;
|
|
648
|
-
weight?: number | undefined;
|
|
649
|
-
height?: number | undefined;
|
|
650
|
-
width?: number | undefined;
|
|
651
|
-
hs_code?: string | undefined;
|
|
652
|
-
origin_country?: string | undefined;
|
|
653
|
-
mid_code?: string | undefined;
|
|
654
|
-
material?: string | undefined;
|
|
655
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
656
|
-
images?: {
|
|
657
|
-
url: string;
|
|
658
|
-
}[] | undefined;
|
|
659
|
-
categories?: {
|
|
660
|
-
id: string;
|
|
661
|
-
}[] | undefined;
|
|
662
|
-
tags?: {
|
|
663
|
-
id: string;
|
|
664
|
-
}[] | undefined;
|
|
665
|
-
variant_attributes?: ({
|
|
666
|
-
attribute_id: string;
|
|
667
|
-
value_ids?: string[] | undefined;
|
|
668
|
-
} | {
|
|
669
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
670
|
-
name: string;
|
|
671
|
-
values?: string[] | undefined;
|
|
672
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
673
|
-
description?: string | null | undefined;
|
|
674
|
-
is_required?: boolean | undefined;
|
|
675
|
-
is_filterable?: boolean | undefined;
|
|
676
|
-
is_variant_axis?: boolean | undefined;
|
|
677
|
-
})[] | undefined;
|
|
678
|
-
product_attributes?: ({
|
|
679
|
-
attribute_id: string;
|
|
680
|
-
value_ids?: string[] | undefined;
|
|
681
|
-
} | {
|
|
682
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
683
|
-
name: string;
|
|
684
|
-
values?: string[] | undefined;
|
|
685
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
686
|
-
description?: string | null | undefined;
|
|
687
|
-
is_required?: boolean | undefined;
|
|
688
|
-
is_filterable?: boolean | undefined;
|
|
689
|
-
is_variant_axis?: boolean | undefined;
|
|
690
|
-
})[] | undefined;
|
|
691
|
-
variants?: {
|
|
692
|
-
title: string;
|
|
693
|
-
length?: number | undefined;
|
|
694
|
-
sku?: string | undefined;
|
|
695
|
-
ean?: string | undefined;
|
|
696
|
-
upc?: string | undefined;
|
|
697
|
-
metadata?: Record<string, unknown> | undefined;
|
|
698
|
-
weight?: number | undefined;
|
|
699
|
-
height?: number | undefined;
|
|
700
|
-
width?: number | undefined;
|
|
701
|
-
hs_code?: string | undefined;
|
|
702
|
-
origin_country?: string | undefined;
|
|
703
|
-
mid_code?: string | undefined;
|
|
704
|
-
material?: string | undefined;
|
|
705
|
-
isbn?: string | undefined;
|
|
706
|
-
asin?: string | undefined;
|
|
707
|
-
gtin?: string | undefined;
|
|
708
|
-
barcode?: string | undefined;
|
|
709
|
-
variant_rank?: number | undefined;
|
|
710
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
711
|
-
}[] | undefined;
|
|
712
|
-
}>;
|
|
713
|
-
export declare const VendorCreateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
714
548
|
[x: string]: any;
|
|
549
|
+
title?: unknown;
|
|
550
|
+
subtitle?: unknown;
|
|
551
|
+
description?: unknown;
|
|
552
|
+
status?: unknown;
|
|
553
|
+
is_giftcard?: unknown;
|
|
554
|
+
discountable?: unknown;
|
|
555
|
+
images?: unknown;
|
|
556
|
+
thumbnail?: unknown;
|
|
557
|
+
handle?: unknown;
|
|
558
|
+
external_id?: unknown;
|
|
559
|
+
type_id?: unknown;
|
|
560
|
+
collection_id?: unknown;
|
|
561
|
+
categories?: unknown;
|
|
562
|
+
tags?: unknown;
|
|
563
|
+
options?: unknown;
|
|
564
|
+
attributes?: unknown;
|
|
565
|
+
variants?: unknown;
|
|
566
|
+
weight?: unknown;
|
|
567
|
+
length?: unknown;
|
|
568
|
+
height?: unknown;
|
|
569
|
+
width?: unknown;
|
|
570
|
+
hs_code?: unknown;
|
|
571
|
+
mid_code?: unknown;
|
|
572
|
+
origin_country?: unknown;
|
|
573
|
+
material?: unknown;
|
|
574
|
+
metadata?: unknown;
|
|
715
575
|
}, {
|
|
716
576
|
[x: string]: any;
|
|
717
|
-
|
|
577
|
+
title?: unknown;
|
|
578
|
+
subtitle?: unknown;
|
|
579
|
+
description?: unknown;
|
|
580
|
+
status?: unknown;
|
|
581
|
+
is_giftcard?: unknown;
|
|
582
|
+
discountable?: unknown;
|
|
583
|
+
images?: unknown;
|
|
584
|
+
thumbnail?: unknown;
|
|
585
|
+
handle?: unknown;
|
|
586
|
+
external_id?: unknown;
|
|
587
|
+
type_id?: unknown;
|
|
588
|
+
collection_id?: unknown;
|
|
589
|
+
categories?: unknown;
|
|
590
|
+
tags?: unknown;
|
|
591
|
+
options?: unknown;
|
|
592
|
+
attributes?: unknown;
|
|
593
|
+
variants?: unknown;
|
|
594
|
+
weight?: unknown;
|
|
595
|
+
length?: unknown;
|
|
596
|
+
height?: unknown;
|
|
597
|
+
width?: unknown;
|
|
598
|
+
hs_code?: unknown;
|
|
599
|
+
mid_code?: unknown;
|
|
600
|
+
origin_country?: unknown;
|
|
601
|
+
material?: unknown;
|
|
602
|
+
metadata?: unknown;
|
|
603
|
+
}>;
|
|
604
|
+
export declare const VendorCreateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
718
605
|
export type VendorUpdateProductType = z.infer<typeof UpdateProduct> & AdditionalData;
|
|
719
606
|
declare const UpdateProduct: z.ZodObject<{
|
|
720
607
|
title: z.ZodOptional<z.ZodString>;
|
|
721
608
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
722
609
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
723
|
-
discountable:
|
|
724
|
-
is_giftcard:
|
|
610
|
+
discountable: any;
|
|
611
|
+
is_giftcard: any;
|
|
725
612
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
726
613
|
id: z.ZodOptional<z.ZodString>;
|
|
727
614
|
url: z.ZodString;
|
|
@@ -737,7 +624,6 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
737
624
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
738
625
|
type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
739
626
|
collection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
740
|
-
brand_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
741
627
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
742
628
|
id: z.ZodString;
|
|
743
629
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -752,44 +638,16 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
752
638
|
}, {
|
|
753
639
|
id: string;
|
|
754
640
|
}>, "many">>;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
}, "strip", z.ZodTypeAny, {
|
|
759
|
-
attribute_id: string;
|
|
760
|
-
value_ids?: string[] | undefined;
|
|
761
|
-
}, {
|
|
762
|
-
attribute_id: string;
|
|
763
|
-
value_ids?: string[] | undefined;
|
|
764
|
-
}>, z.ZodObject<{
|
|
765
|
-
name: z.ZodString;
|
|
766
|
-
type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
|
|
767
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
768
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
769
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
770
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
771
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
772
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
641
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
642
|
+
title: z.ZodString;
|
|
643
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
773
644
|
}, "strip", z.ZodTypeAny, {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
values?: string[] | undefined;
|
|
777
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
778
|
-
description?: string | null | undefined;
|
|
779
|
-
is_required?: boolean | undefined;
|
|
780
|
-
is_filterable?: boolean | undefined;
|
|
781
|
-
is_variant_axis?: boolean | undefined;
|
|
645
|
+
values: string[];
|
|
646
|
+
title: string;
|
|
782
647
|
}, {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
787
|
-
description?: string | null | undefined;
|
|
788
|
-
is_required?: boolean | undefined;
|
|
789
|
-
is_filterable?: boolean | undefined;
|
|
790
|
-
is_variant_axis?: boolean | undefined;
|
|
791
|
-
}>]>, "many">>;
|
|
792
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
648
|
+
values: string[];
|
|
649
|
+
title: string;
|
|
650
|
+
}>, "many">>;
|
|
793
651
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
794
652
|
id: z.ZodOptional<z.ZodString>;
|
|
795
653
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -811,14 +669,15 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
811
669
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
670
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
813
671
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
814
|
-
|
|
672
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
815
673
|
}, "strict", z.ZodTypeAny, {
|
|
674
|
+
options?: Record<string, string> | undefined;
|
|
816
675
|
length?: number | null | undefined;
|
|
676
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
817
677
|
id?: string | undefined;
|
|
818
678
|
sku?: string | null | undefined;
|
|
819
679
|
ean?: string | null | undefined;
|
|
820
680
|
upc?: string | null | undefined;
|
|
821
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
822
681
|
title?: string | undefined;
|
|
823
682
|
thumbnail?: string | null | undefined;
|
|
824
683
|
weight?: number | null | undefined;
|
|
@@ -833,14 +692,14 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
833
692
|
gtin?: string | null | undefined;
|
|
834
693
|
barcode?: string | null | undefined;
|
|
835
694
|
variant_rank?: number | undefined;
|
|
836
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
837
695
|
}, {
|
|
696
|
+
options?: Record<string, string> | undefined;
|
|
838
697
|
length?: number | null | undefined;
|
|
698
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
839
699
|
id?: string | undefined;
|
|
840
700
|
sku?: string | null | undefined;
|
|
841
701
|
ean?: string | null | undefined;
|
|
842
702
|
upc?: string | null | undefined;
|
|
843
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
844
703
|
title?: string | undefined;
|
|
845
704
|
thumbnail?: string | null | undefined;
|
|
846
705
|
weight?: number | null | undefined;
|
|
@@ -855,7 +714,6 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
855
714
|
gtin?: string | null | undefined;
|
|
856
715
|
barcode?: string | null | undefined;
|
|
857
716
|
variant_rank?: number | undefined;
|
|
858
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
859
717
|
}>, "many">>;
|
|
860
718
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
861
719
|
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -867,155 +725,67 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
867
725
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
868
726
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
869
727
|
}, "strict", z.ZodTypeAny, {
|
|
870
|
-
length?: number | null | undefined;
|
|
871
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
872
|
-
title?: string | undefined;
|
|
873
|
-
handle?: string | null | undefined;
|
|
874
|
-
description?: string | null | undefined;
|
|
875
|
-
external_id?: string | null | undefined;
|
|
876
|
-
thumbnail?: string | null | undefined;
|
|
877
|
-
collection_id?: string | null | undefined;
|
|
878
|
-
type_id?: string | null | undefined;
|
|
879
|
-
subtitle?: string | null | undefined;
|
|
880
|
-
is_giftcard?: boolean | undefined;
|
|
881
|
-
discountable?: boolean | undefined;
|
|
882
|
-
brand_id?: string | null | undefined;
|
|
883
|
-
weight?: number | null | undefined;
|
|
884
|
-
height?: number | null | undefined;
|
|
885
|
-
width?: number | null | undefined;
|
|
886
|
-
hs_code?: string | null | undefined;
|
|
887
|
-
origin_country?: string | null | undefined;
|
|
888
|
-
mid_code?: string | null | undefined;
|
|
889
|
-
material?: string | null | undefined;
|
|
890
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
891
|
-
images?: {
|
|
892
|
-
url: string;
|
|
893
|
-
id?: string | undefined;
|
|
894
|
-
}[] | undefined;
|
|
895
|
-
categories?: {
|
|
896
|
-
id: string;
|
|
897
|
-
}[] | undefined;
|
|
898
|
-
tags?: {
|
|
899
|
-
id: string;
|
|
900
|
-
}[] | undefined;
|
|
901
|
-
variant_attributes?: ({
|
|
902
|
-
attribute_id: string;
|
|
903
|
-
value_ids?: string[] | undefined;
|
|
904
|
-
} | {
|
|
905
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
906
|
-
name: string;
|
|
907
|
-
values?: string[] | undefined;
|
|
908
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
909
|
-
description?: string | null | undefined;
|
|
910
|
-
is_required?: boolean | undefined;
|
|
911
|
-
is_filterable?: boolean | undefined;
|
|
912
|
-
is_variant_axis?: boolean | undefined;
|
|
913
|
-
})[] | undefined;
|
|
914
|
-
variants?: {
|
|
915
|
-
length?: number | null | undefined;
|
|
916
|
-
id?: string | undefined;
|
|
917
|
-
sku?: string | null | undefined;
|
|
918
|
-
ean?: string | null | undefined;
|
|
919
|
-
upc?: string | null | undefined;
|
|
920
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
921
|
-
title?: string | undefined;
|
|
922
|
-
thumbnail?: string | null | undefined;
|
|
923
|
-
weight?: number | null | undefined;
|
|
924
|
-
height?: number | null | undefined;
|
|
925
|
-
width?: number | null | undefined;
|
|
926
|
-
hs_code?: string | null | undefined;
|
|
927
|
-
origin_country?: string | null | undefined;
|
|
928
|
-
mid_code?: string | null | undefined;
|
|
929
|
-
material?: string | null | undefined;
|
|
930
|
-
isbn?: string | null | undefined;
|
|
931
|
-
asin?: string | null | undefined;
|
|
932
|
-
gtin?: string | null | undefined;
|
|
933
|
-
barcode?: string | null | undefined;
|
|
934
|
-
variant_rank?: number | undefined;
|
|
935
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
936
|
-
}[] | undefined;
|
|
937
|
-
}, {
|
|
938
|
-
length?: number | null | undefined;
|
|
939
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
940
|
-
title?: string | undefined;
|
|
941
|
-
handle?: string | null | undefined;
|
|
942
|
-
description?: string | null | undefined;
|
|
943
|
-
external_id?: string | null | undefined;
|
|
944
|
-
thumbnail?: string | null | undefined;
|
|
945
|
-
collection_id?: string | null | undefined;
|
|
946
|
-
type_id?: string | null | undefined;
|
|
947
|
-
subtitle?: string | null | undefined;
|
|
948
|
-
is_giftcard?: string | boolean | undefined;
|
|
949
|
-
discountable?: string | boolean | undefined;
|
|
950
|
-
brand_id?: string | null | undefined;
|
|
951
|
-
weight?: number | null | undefined;
|
|
952
|
-
height?: number | null | undefined;
|
|
953
|
-
width?: number | null | undefined;
|
|
954
|
-
hs_code?: string | null | undefined;
|
|
955
|
-
origin_country?: string | null | undefined;
|
|
956
|
-
mid_code?: string | null | undefined;
|
|
957
|
-
material?: string | null | undefined;
|
|
958
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
959
|
-
images?: {
|
|
960
|
-
url: string;
|
|
961
|
-
id?: string | undefined;
|
|
962
|
-
}[] | undefined;
|
|
963
|
-
categories?: {
|
|
964
|
-
id: string;
|
|
965
|
-
}[] | undefined;
|
|
966
|
-
tags?: {
|
|
967
|
-
id: string;
|
|
968
|
-
}[] | undefined;
|
|
969
|
-
variant_attributes?: ({
|
|
970
|
-
attribute_id: string;
|
|
971
|
-
value_ids?: string[] | undefined;
|
|
972
|
-
} | {
|
|
973
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
974
|
-
name: string;
|
|
975
|
-
values?: string[] | undefined;
|
|
976
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
977
|
-
description?: string | null | undefined;
|
|
978
|
-
is_required?: boolean | undefined;
|
|
979
|
-
is_filterable?: boolean | undefined;
|
|
980
|
-
is_variant_axis?: boolean | undefined;
|
|
981
|
-
})[] | undefined;
|
|
982
|
-
variants?: {
|
|
983
|
-
length?: number | null | undefined;
|
|
984
|
-
id?: string | undefined;
|
|
985
|
-
sku?: string | null | undefined;
|
|
986
|
-
ean?: string | null | undefined;
|
|
987
|
-
upc?: string | null | undefined;
|
|
988
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
989
|
-
title?: string | undefined;
|
|
990
|
-
thumbnail?: string | null | undefined;
|
|
991
|
-
weight?: number | null | undefined;
|
|
992
|
-
height?: number | null | undefined;
|
|
993
|
-
width?: number | null | undefined;
|
|
994
|
-
hs_code?: string | null | undefined;
|
|
995
|
-
origin_country?: string | null | undefined;
|
|
996
|
-
mid_code?: string | null | undefined;
|
|
997
|
-
material?: string | null | undefined;
|
|
998
|
-
isbn?: string | null | undefined;
|
|
999
|
-
asin?: string | null | undefined;
|
|
1000
|
-
gtin?: string | null | undefined;
|
|
1001
|
-
barcode?: string | null | undefined;
|
|
1002
|
-
variant_rank?: number | undefined;
|
|
1003
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1004
|
-
}[] | undefined;
|
|
1005
|
-
}>;
|
|
1006
|
-
export declare const VendorUpdateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
1007
728
|
[x: string]: any;
|
|
729
|
+
title?: unknown;
|
|
730
|
+
subtitle?: unknown;
|
|
731
|
+
description?: unknown;
|
|
732
|
+
discountable?: unknown;
|
|
733
|
+
is_giftcard?: unknown;
|
|
734
|
+
images?: unknown;
|
|
735
|
+
thumbnail?: unknown;
|
|
736
|
+
handle?: unknown;
|
|
737
|
+
external_id?: unknown;
|
|
738
|
+
type_id?: unknown;
|
|
739
|
+
collection_id?: unknown;
|
|
740
|
+
categories?: unknown;
|
|
741
|
+
tags?: unknown;
|
|
742
|
+
options?: unknown;
|
|
743
|
+
variants?: unknown;
|
|
744
|
+
weight?: unknown;
|
|
745
|
+
length?: unknown;
|
|
746
|
+
height?: unknown;
|
|
747
|
+
width?: unknown;
|
|
748
|
+
hs_code?: unknown;
|
|
749
|
+
mid_code?: unknown;
|
|
750
|
+
origin_country?: unknown;
|
|
751
|
+
material?: unknown;
|
|
752
|
+
metadata?: unknown;
|
|
1008
753
|
}, {
|
|
1009
754
|
[x: string]: any;
|
|
1010
|
-
|
|
755
|
+
title?: unknown;
|
|
756
|
+
subtitle?: unknown;
|
|
757
|
+
description?: unknown;
|
|
758
|
+
discountable?: unknown;
|
|
759
|
+
is_giftcard?: unknown;
|
|
760
|
+
images?: unknown;
|
|
761
|
+
thumbnail?: unknown;
|
|
762
|
+
handle?: unknown;
|
|
763
|
+
external_id?: unknown;
|
|
764
|
+
type_id?: unknown;
|
|
765
|
+
collection_id?: unknown;
|
|
766
|
+
categories?: unknown;
|
|
767
|
+
tags?: unknown;
|
|
768
|
+
options?: unknown;
|
|
769
|
+
variants?: unknown;
|
|
770
|
+
weight?: unknown;
|
|
771
|
+
length?: unknown;
|
|
772
|
+
height?: unknown;
|
|
773
|
+
width?: unknown;
|
|
774
|
+
hs_code?: unknown;
|
|
775
|
+
mid_code?: unknown;
|
|
776
|
+
origin_country?: unknown;
|
|
777
|
+
material?: unknown;
|
|
778
|
+
metadata?: unknown;
|
|
779
|
+
}>;
|
|
780
|
+
export declare const VendorUpdateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
1011
781
|
export type VendorGetProductVariantsParamsType = z.infer<typeof VendorGetProductVariantsParams>;
|
|
1012
782
|
export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
1013
783
|
[x: string]: any;
|
|
1014
784
|
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
1015
785
|
q: z.ZodOptional<z.ZodString>;
|
|
1016
|
-
manage_inventory:
|
|
1017
|
-
allow_backorder:
|
|
1018
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
786
|
+
manage_inventory: any;
|
|
787
|
+
allow_backorder: any;
|
|
788
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
1019
789
|
$eq: any;
|
|
1020
790
|
$ne: any;
|
|
1021
791
|
$in: any;
|
|
@@ -1028,7 +798,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1028
798
|
$gte: any;
|
|
1029
799
|
$lt: any;
|
|
1030
800
|
$lte: any;
|
|
1031
|
-
},
|
|
801
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1032
802
|
$eq?: any;
|
|
1033
803
|
$ne?: any;
|
|
1034
804
|
$in?: any;
|
|
@@ -1055,7 +825,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1055
825
|
$lt?: any;
|
|
1056
826
|
$lte?: any;
|
|
1057
827
|
}>]>>;
|
|
1058
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
828
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
1059
829
|
$eq: any;
|
|
1060
830
|
$ne: any;
|
|
1061
831
|
$in: any;
|
|
@@ -1068,7 +838,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1068
838
|
$gte: any;
|
|
1069
839
|
$lt: any;
|
|
1070
840
|
$lte: any;
|
|
1071
|
-
},
|
|
841
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1072
842
|
$eq?: any;
|
|
1073
843
|
$ne?: any;
|
|
1074
844
|
$in?: any;
|
|
@@ -1096,23 +866,25 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1096
866
|
$lte?: any;
|
|
1097
867
|
}>]>>;
|
|
1098
868
|
}, "strip", z.ZodTypeAny, {
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
869
|
+
[x: string]: any;
|
|
870
|
+
q?: unknown;
|
|
871
|
+
manage_inventory?: unknown;
|
|
872
|
+
allow_backorder?: unknown;
|
|
873
|
+
created_at?: unknown;
|
|
874
|
+
updated_at?: unknown;
|
|
1104
875
|
}, {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
876
|
+
[x: string]: any;
|
|
877
|
+
q?: unknown;
|
|
878
|
+
manage_inventory?: unknown;
|
|
879
|
+
allow_backorder?: unknown;
|
|
880
|
+
created_at?: unknown;
|
|
881
|
+
updated_at?: unknown;
|
|
1110
882
|
}>, "many">>>;
|
|
1111
883
|
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
1112
884
|
q: z.ZodOptional<z.ZodString>;
|
|
1113
|
-
manage_inventory:
|
|
1114
|
-
allow_backorder:
|
|
1115
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
885
|
+
manage_inventory: any;
|
|
886
|
+
allow_backorder: any;
|
|
887
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
1116
888
|
$eq: any;
|
|
1117
889
|
$ne: any;
|
|
1118
890
|
$in: any;
|
|
@@ -1125,7 +897,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1125
897
|
$gte: any;
|
|
1126
898
|
$lt: any;
|
|
1127
899
|
$lte: any;
|
|
1128
|
-
},
|
|
900
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1129
901
|
$eq?: any;
|
|
1130
902
|
$ne?: any;
|
|
1131
903
|
$in?: any;
|
|
@@ -1152,7 +924,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1152
924
|
$lt?: any;
|
|
1153
925
|
$lte?: any;
|
|
1154
926
|
}>]>>;
|
|
1155
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
927
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
1156
928
|
$eq: any;
|
|
1157
929
|
$ne: any;
|
|
1158
930
|
$in: any;
|
|
@@ -1165,7 +937,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1165
937
|
$gte: any;
|
|
1166
938
|
$lt: any;
|
|
1167
939
|
$lte: any;
|
|
1168
|
-
},
|
|
940
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1169
941
|
$eq?: any;
|
|
1170
942
|
$ne?: any;
|
|
1171
943
|
$in?: any;
|
|
@@ -1193,19 +965,21 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1193
965
|
$lte?: any;
|
|
1194
966
|
}>]>>;
|
|
1195
967
|
}, "strip", z.ZodTypeAny, {
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
968
|
+
[x: string]: any;
|
|
969
|
+
q?: unknown;
|
|
970
|
+
manage_inventory?: unknown;
|
|
971
|
+
allow_backorder?: unknown;
|
|
972
|
+
created_at?: unknown;
|
|
973
|
+
updated_at?: unknown;
|
|
1201
974
|
}, {
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
975
|
+
[x: string]: any;
|
|
976
|
+
q?: unknown;
|
|
977
|
+
manage_inventory?: unknown;
|
|
978
|
+
allow_backorder?: unknown;
|
|
979
|
+
created_at?: unknown;
|
|
980
|
+
updated_at?: unknown;
|
|
1207
981
|
}>, "many">>>;
|
|
1208
|
-
},
|
|
982
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1209
983
|
[x: string]: any;
|
|
1210
984
|
$and?: unknown;
|
|
1211
985
|
$or?: unknown;
|
|
@@ -1217,7 +991,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1217
991
|
export type VendorGetProductVariantParamsType = z.infer<typeof VendorGetProductVariantParams>;
|
|
1218
992
|
export declare const VendorGetProductVariantParams: z.ZodObject<{
|
|
1219
993
|
fields: z.ZodOptional<z.ZodString>;
|
|
1220
|
-
},
|
|
994
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1221
995
|
fields?: string | undefined;
|
|
1222
996
|
}, {
|
|
1223
997
|
fields?: string | undefined;
|
|
@@ -1245,14 +1019,15 @@ export declare const VendorAddProductVariant: z.ZodObject<{
|
|
|
1245
1019
|
manage_inventory: z.ZodOptional<z.ZodBoolean>;
|
|
1246
1020
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
1247
1021
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1248
|
-
|
|
1022
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1249
1023
|
}, "strict", z.ZodTypeAny, {
|
|
1250
1024
|
title: string;
|
|
1025
|
+
options?: Record<string, string> | undefined;
|
|
1251
1026
|
length?: number | undefined;
|
|
1027
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1252
1028
|
sku?: string | undefined;
|
|
1253
1029
|
ean?: string | undefined;
|
|
1254
1030
|
upc?: string | undefined;
|
|
1255
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1256
1031
|
thumbnail?: string | undefined;
|
|
1257
1032
|
weight?: number | undefined;
|
|
1258
1033
|
height?: number | undefined;
|
|
@@ -1266,16 +1041,16 @@ export declare const VendorAddProductVariant: z.ZodObject<{
|
|
|
1266
1041
|
gtin?: string | undefined;
|
|
1267
1042
|
barcode?: string | undefined;
|
|
1268
1043
|
variant_rank?: number | undefined;
|
|
1269
|
-
attribute_values?: string[] | Record<string, string | string[]> | undefined;
|
|
1270
1044
|
manage_inventory?: boolean | undefined;
|
|
1271
1045
|
allow_backorder?: boolean | undefined;
|
|
1272
1046
|
}, {
|
|
1273
1047
|
title: string;
|
|
1048
|
+
options?: Record<string, string> | undefined;
|
|
1274
1049
|
length?: number | undefined;
|
|
1050
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1275
1051
|
sku?: string | undefined;
|
|
1276
1052
|
ean?: string | undefined;
|
|
1277
1053
|
upc?: string | undefined;
|
|
1278
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1279
1054
|
thumbnail?: string | undefined;
|
|
1280
1055
|
weight?: number | undefined;
|
|
1281
1056
|
height?: number | undefined;
|
|
@@ -1289,7 +1064,6 @@ export declare const VendorAddProductVariant: z.ZodObject<{
|
|
|
1289
1064
|
gtin?: string | undefined;
|
|
1290
1065
|
barcode?: string | undefined;
|
|
1291
1066
|
variant_rank?: number | undefined;
|
|
1292
|
-
attribute_values?: string[] | Record<string, string | string[]> | undefined;
|
|
1293
1067
|
manage_inventory?: boolean | undefined;
|
|
1294
1068
|
allow_backorder?: boolean | undefined;
|
|
1295
1069
|
}>;
|
|
@@ -1316,13 +1090,24 @@ export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
|
1316
1090
|
allow_backorder: z.ZodOptional<z.ZodBoolean>;
|
|
1317
1091
|
manage_inventory: z.ZodOptional<z.ZodBoolean>;
|
|
1318
1092
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1319
|
-
|
|
1093
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1094
|
+
images: z.ZodOptional<z.ZodObject<{
|
|
1095
|
+
add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1096
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1097
|
+
}, "strip", z.ZodTypeAny, {
|
|
1098
|
+
add?: string[] | undefined;
|
|
1099
|
+
remove?: string[] | undefined;
|
|
1100
|
+
}, {
|
|
1101
|
+
add?: string[] | undefined;
|
|
1102
|
+
remove?: string[] | undefined;
|
|
1103
|
+
}>>;
|
|
1320
1104
|
}, "strict", z.ZodTypeAny, {
|
|
1105
|
+
options?: Record<string, string> | undefined;
|
|
1321
1106
|
length?: number | null | undefined;
|
|
1107
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1322
1108
|
sku?: string | null | undefined;
|
|
1323
1109
|
ean?: string | null | undefined;
|
|
1324
1110
|
upc?: string | null | undefined;
|
|
1325
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1326
1111
|
title?: string | undefined;
|
|
1327
1112
|
thumbnail?: string | null | undefined;
|
|
1328
1113
|
weight?: number | null | undefined;
|
|
@@ -1337,15 +1122,19 @@ export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
|
1337
1122
|
gtin?: string | null | undefined;
|
|
1338
1123
|
barcode?: string | null | undefined;
|
|
1339
1124
|
variant_rank?: number | undefined;
|
|
1340
|
-
attribute_values?: string[] | Record<string, string | string[]> | undefined;
|
|
1341
1125
|
manage_inventory?: boolean | undefined;
|
|
1342
1126
|
allow_backorder?: boolean | undefined;
|
|
1127
|
+
images?: {
|
|
1128
|
+
add?: string[] | undefined;
|
|
1129
|
+
remove?: string[] | undefined;
|
|
1130
|
+
} | undefined;
|
|
1343
1131
|
}, {
|
|
1132
|
+
options?: Record<string, string> | undefined;
|
|
1344
1133
|
length?: number | null | undefined;
|
|
1134
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1345
1135
|
sku?: string | null | undefined;
|
|
1346
1136
|
ean?: string | null | undefined;
|
|
1347
1137
|
upc?: string | null | undefined;
|
|
1348
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1349
1138
|
title?: string | undefined;
|
|
1350
1139
|
thumbnail?: string | null | undefined;
|
|
1351
1140
|
weight?: number | null | undefined;
|
|
@@ -1360,52 +1149,12 @@ export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
|
1360
1149
|
gtin?: string | null | undefined;
|
|
1361
1150
|
barcode?: string | null | undefined;
|
|
1362
1151
|
variant_rank?: number | undefined;
|
|
1363
|
-
attribute_values?: string[] | Record<string, string | string[]> | undefined;
|
|
1364
1152
|
manage_inventory?: boolean | undefined;
|
|
1365
1153
|
allow_backorder?: boolean | undefined;
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
} & {
|
|
1371
|
-
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
1372
|
-
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
1373
|
-
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1374
|
-
with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
1375
|
-
}, "strip", z.ZodTypeAny, {
|
|
1376
|
-
offset: number;
|
|
1377
|
-
limit: number;
|
|
1378
|
-
order?: string | undefined;
|
|
1379
|
-
fields?: string | undefined;
|
|
1380
|
-
with_deleted?: boolean | undefined;
|
|
1381
|
-
}, {
|
|
1382
|
-
order?: string | undefined;
|
|
1383
|
-
fields?: string | undefined;
|
|
1384
|
-
offset?: unknown;
|
|
1385
|
-
limit?: unknown;
|
|
1386
|
-
with_deleted?: unknown;
|
|
1387
|
-
}>;
|
|
1388
|
-
export type VendorGetProductAttributeParamsType = z.infer<typeof VendorGetProductAttributeParams>;
|
|
1389
|
-
export declare const VendorGetProductAttributeParams: z.ZodObject<{
|
|
1390
|
-
fields: z.ZodOptional<z.ZodString>;
|
|
1391
|
-
}, "strip", z.ZodTypeAny, {
|
|
1392
|
-
fields?: string | undefined;
|
|
1393
|
-
}, {
|
|
1394
|
-
fields?: string | undefined;
|
|
1395
|
-
}>;
|
|
1396
|
-
export type VendorAddProductAttributeType = z.infer<typeof VendorAddProductAttribute>;
|
|
1397
|
-
export declare const VendorAddProductAttribute: z.ZodObject<{
|
|
1398
|
-
attribute_id: z.ZodString;
|
|
1399
|
-
attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1400
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1401
|
-
}, "strict", z.ZodTypeAny, {
|
|
1402
|
-
attribute_id: string;
|
|
1403
|
-
values?: string[] | undefined;
|
|
1404
|
-
attribute_value_ids?: string[] | undefined;
|
|
1405
|
-
}, {
|
|
1406
|
-
attribute_id: string;
|
|
1407
|
-
values?: string[] | undefined;
|
|
1408
|
-
attribute_value_ids?: string[] | undefined;
|
|
1154
|
+
images?: {
|
|
1155
|
+
add?: string[] | undefined;
|
|
1156
|
+
remove?: string[] | undefined;
|
|
1157
|
+
} | undefined;
|
|
1409
1158
|
}>;
|
|
1410
1159
|
export type VendorCancelProductChangeType = z.infer<typeof VendorCancelProductChange>;
|
|
1411
1160
|
export declare const VendorCancelProductChange: z.ZodObject<{
|
|
@@ -1415,4 +1164,172 @@ export declare const VendorCancelProductChange: z.ZodObject<{
|
|
|
1415
1164
|
}, {
|
|
1416
1165
|
internal_note?: string | undefined;
|
|
1417
1166
|
}>;
|
|
1167
|
+
export type VendorBatchProductAttributesType = z.infer<typeof VendorBatchProductAttributes>;
|
|
1168
|
+
export declare const VendorBatchProductAttributes: z.ZodObject<{
|
|
1169
|
+
add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1170
|
+
id: z.ZodString;
|
|
1171
|
+
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1172
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1173
|
+
}, "strict", z.ZodTypeAny, {
|
|
1174
|
+
id: string;
|
|
1175
|
+
value?: string | number | boolean | undefined;
|
|
1176
|
+
value_ids?: string[] | undefined;
|
|
1177
|
+
}, {
|
|
1178
|
+
id: string;
|
|
1179
|
+
value?: string | number | boolean | undefined;
|
|
1180
|
+
value_ids?: string[] | undefined;
|
|
1181
|
+
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1182
|
+
title: z.ZodString;
|
|
1183
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
1184
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1185
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1186
|
+
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1187
|
+
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1188
|
+
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1189
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1190
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1191
|
+
}, "strict", z.ZodTypeAny, {
|
|
1192
|
+
title: string;
|
|
1193
|
+
values?: string[] | undefined;
|
|
1194
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1195
|
+
value?: string | number | boolean | undefined;
|
|
1196
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1197
|
+
description?: string | null | undefined;
|
|
1198
|
+
is_variant_axis?: boolean | undefined;
|
|
1199
|
+
is_required?: boolean | undefined;
|
|
1200
|
+
is_filterable?: boolean | undefined;
|
|
1201
|
+
}, {
|
|
1202
|
+
title: string;
|
|
1203
|
+
values?: string[] | undefined;
|
|
1204
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1205
|
+
value?: string | number | boolean | undefined;
|
|
1206
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1207
|
+
description?: string | null | undefined;
|
|
1208
|
+
is_variant_axis?: boolean | undefined;
|
|
1209
|
+
is_required?: boolean | undefined;
|
|
1210
|
+
is_filterable?: boolean | undefined;
|
|
1211
|
+
}>, {
|
|
1212
|
+
title: string;
|
|
1213
|
+
values?: string[] | undefined;
|
|
1214
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1215
|
+
value?: string | number | boolean | undefined;
|
|
1216
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1217
|
+
description?: string | null | undefined;
|
|
1218
|
+
is_variant_axis?: boolean | undefined;
|
|
1219
|
+
is_required?: boolean | undefined;
|
|
1220
|
+
is_filterable?: boolean | undefined;
|
|
1221
|
+
}, {
|
|
1222
|
+
title: string;
|
|
1223
|
+
values?: string[] | undefined;
|
|
1224
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1225
|
+
value?: string | number | boolean | undefined;
|
|
1226
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1227
|
+
description?: string | null | undefined;
|
|
1228
|
+
is_variant_axis?: boolean | undefined;
|
|
1229
|
+
is_required?: boolean | undefined;
|
|
1230
|
+
is_filterable?: boolean | undefined;
|
|
1231
|
+
}>, {
|
|
1232
|
+
title: string;
|
|
1233
|
+
values?: string[] | undefined;
|
|
1234
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1235
|
+
value?: string | number | boolean | undefined;
|
|
1236
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1237
|
+
description?: string | null | undefined;
|
|
1238
|
+
is_variant_axis?: boolean | undefined;
|
|
1239
|
+
is_required?: boolean | undefined;
|
|
1240
|
+
is_filterable?: boolean | undefined;
|
|
1241
|
+
}, {
|
|
1242
|
+
title: string;
|
|
1243
|
+
values?: string[] | undefined;
|
|
1244
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1245
|
+
value?: string | number | boolean | undefined;
|
|
1246
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1247
|
+
description?: string | null | undefined;
|
|
1248
|
+
is_variant_axis?: boolean | undefined;
|
|
1249
|
+
is_required?: boolean | undefined;
|
|
1250
|
+
is_filterable?: boolean | undefined;
|
|
1251
|
+
}>]>, "many">>;
|
|
1252
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1253
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1254
|
+
id: z.ZodString;
|
|
1255
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1256
|
+
add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1257
|
+
value: z.ZodString;
|
|
1258
|
+
}, "strict", z.ZodTypeAny, {
|
|
1259
|
+
value: string;
|
|
1260
|
+
}, {
|
|
1261
|
+
value: string;
|
|
1262
|
+
}>]>, "many">>;
|
|
1263
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1264
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1265
|
+
}, "strict", z.ZodTypeAny, {
|
|
1266
|
+
id: string;
|
|
1267
|
+
value?: string | number | boolean | undefined;
|
|
1268
|
+
title?: string | undefined;
|
|
1269
|
+
add?: (string | {
|
|
1270
|
+
value: string;
|
|
1271
|
+
})[] | undefined;
|
|
1272
|
+
remove?: string[] | undefined;
|
|
1273
|
+
}, {
|
|
1274
|
+
id: string;
|
|
1275
|
+
value?: string | number | boolean | undefined;
|
|
1276
|
+
title?: string | undefined;
|
|
1277
|
+
add?: (string | {
|
|
1278
|
+
value: string;
|
|
1279
|
+
})[] | undefined;
|
|
1280
|
+
remove?: string[] | undefined;
|
|
1281
|
+
}>, "many">>;
|
|
1282
|
+
}, "strict", z.ZodTypeAny, {
|
|
1283
|
+
update?: {
|
|
1284
|
+
id: string;
|
|
1285
|
+
value?: string | number | boolean | undefined;
|
|
1286
|
+
title?: string | undefined;
|
|
1287
|
+
add?: (string | {
|
|
1288
|
+
value: string;
|
|
1289
|
+
})[] | undefined;
|
|
1290
|
+
remove?: string[] | undefined;
|
|
1291
|
+
}[] | undefined;
|
|
1292
|
+
add?: ({
|
|
1293
|
+
id: string;
|
|
1294
|
+
value?: string | number | boolean | undefined;
|
|
1295
|
+
value_ids?: string[] | undefined;
|
|
1296
|
+
} | {
|
|
1297
|
+
title: string;
|
|
1298
|
+
values?: string[] | undefined;
|
|
1299
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1300
|
+
value?: string | number | boolean | undefined;
|
|
1301
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1302
|
+
description?: string | null | undefined;
|
|
1303
|
+
is_variant_axis?: boolean | undefined;
|
|
1304
|
+
is_required?: boolean | undefined;
|
|
1305
|
+
is_filterable?: boolean | undefined;
|
|
1306
|
+
})[] | undefined;
|
|
1307
|
+
remove?: string[] | undefined;
|
|
1308
|
+
}, {
|
|
1309
|
+
update?: {
|
|
1310
|
+
id: string;
|
|
1311
|
+
value?: string | number | boolean | undefined;
|
|
1312
|
+
title?: string | undefined;
|
|
1313
|
+
add?: (string | {
|
|
1314
|
+
value: string;
|
|
1315
|
+
})[] | undefined;
|
|
1316
|
+
remove?: string[] | undefined;
|
|
1317
|
+
}[] | undefined;
|
|
1318
|
+
add?: ({
|
|
1319
|
+
id: string;
|
|
1320
|
+
value?: string | number | boolean | undefined;
|
|
1321
|
+
value_ids?: string[] | undefined;
|
|
1322
|
+
} | {
|
|
1323
|
+
title: string;
|
|
1324
|
+
values?: string[] | undefined;
|
|
1325
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1326
|
+
value?: string | number | boolean | undefined;
|
|
1327
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1328
|
+
description?: string | null | undefined;
|
|
1329
|
+
is_variant_axis?: boolean | undefined;
|
|
1330
|
+
is_required?: boolean | undefined;
|
|
1331
|
+
is_filterable?: boolean | undefined;
|
|
1332
|
+
})[] | undefined;
|
|
1333
|
+
remove?: string[] | undefined;
|
|
1334
|
+
}>;
|
|
1418
1335
|
export {};
|