@mercurjs/core 2.2.0-canary.5 → 2.2.0-canary.51
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/collections/query-config.d.ts +12 -0
- 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/admin/customer-groups/middlewares.d.ts +2 -0
- 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 -36
- package/.medusa/server/src/api/admin/offers/batch/route.js +3 -3
- package/.medusa/server/src/api/admin/offers/middlewares.js +3 -1
- package/.medusa/server/src/api/admin/offers/query-config.js +3 -1
- package/.medusa/server/src/api/admin/offers/validators.d.ts +79 -57
- package/.medusa/server/src/api/admin/offers/validators.js +10 -2
- 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/helpers.d.ts +2 -0
- package/.medusa/server/src/api/admin/order-groups/helpers.js +53 -0
- package/.medusa/server/src/api/admin/order-groups/middlewares.js +3 -1
- package/.medusa/server/src/api/admin/order-groups/route.js +4 -2
- package/.medusa/server/src/api/admin/order-groups/validators.d.ts +20 -21
- 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 +2 -2
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.js +2 -2
- package/.medusa/server/src/api/admin/product-attributes/middlewares.js +1 -3
- package/.medusa/server/src/api/admin/product-attributes/query-config.js +4 -1
- package/.medusa/server/src/api/admin/product-attributes/route.d.ts +2 -2
- package/.medusa/server/src/api/admin/product-attributes/route.js +2 -5
- package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +129 -140
- package/.medusa/server/src/api/admin/product-attributes/validators.js +1 -3
- 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 -11
- package/.medusa/server/src/api/admin/product-categories/query-config.js +7 -1
- 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 +2 -8
- 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 +2 -8
- package/.medusa/server/src/api/admin/product-changes/validators.d.ts +8 -4
- package/.medusa/server/src/api/admin/product-changes/validators.js +6 -3
- package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +6 -9
- package/.medusa/server/src/api/admin/products/[id]/confirm/route.d.ts +0 -12
- package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +2 -13
- package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/products/[id]/preview/route.js +1 -8
- package/.medusa/server/src/api/admin/products/[id]/reject/route.d.ts +0 -8
- package/.medusa/server/src/api/admin/products/[id]/reject/route.js +2 -9
- package/.medusa/server/src/api/admin/products/[id]/request-changes/route.d.ts +0 -9
- package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +2 -10
- package/.medusa/server/src/api/admin/products/[id]/route.js +9 -3
- 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/middlewares.js +6 -42
- package/.medusa/server/src/api/admin/products/query-config.js +41 -16
- package/.medusa/server/src/api/admin/products/route.js +9 -1
- package/.medusa/server/src/api/admin/products/validators.d.ts +570 -1314
- package/.medusa/server/src/api/admin/products/validators.js +66 -90
- 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/[id]/address/route.js +4 -2
- package/.medusa/server/src/api/admin/sellers/[id]/approve/route.d.ts +2 -1
- package/.medusa/server/src/api/admin/sellers/[id]/approve/route.js +2 -1
- package/.medusa/server/src/api/admin/sellers/[id]/payment-details/route.js +4 -2
- package/.medusa/server/src/api/admin/sellers/[id]/professional-details/route.js +4 -2
- package/.medusa/server/src/api/admin/sellers/[id]/route.js +4 -2
- package/.medusa/server/src/api/admin/sellers/[id]/suspend/route.js +2 -1
- package/.medusa/server/src/api/admin/sellers/[id]/terminate/route.js +2 -1
- package/.medusa/server/src/api/admin/sellers/[id]/unsuspend/route.d.ts +2 -1
- package/.medusa/server/src/api/admin/sellers/[id]/unsuspend/route.js +2 -1
- package/.medusa/server/src/api/admin/sellers/[id]/unterminate/route.d.ts +2 -1
- package/.medusa/server/src/api/admin/sellers/[id]/unterminate/route.js +2 -1
- package/.medusa/server/src/api/admin/sellers/middlewares.js +4 -20
- package/.medusa/server/src/api/admin/sellers/route.js +4 -2
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +89 -100
- package/.medusa/server/src/api/admin/sellers/validators.js +12 -7
- 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 +13 -1
- 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/carts/[id]/shipping-methods/route.js +6 -2
- package/.medusa/server/src/api/store/middlewares.js +15 -11
- 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/offers/query-config.d.ts +12 -0
- 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 -5
- 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 -24
- package/.medusa/server/src/api/store/products/query-config.js +23 -7
- package/.medusa/server/src/api/store/products/route.js +9 -1
- package/.medusa/server/src/api/store/products/validators.d.ts +69 -65
- package/.medusa/server/src/api/store/search/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/search/middlewares.js +73 -0
- package/.medusa/server/src/api/store/search/route.d.ts +8 -0
- package/.medusa/server/src/api/store/search/route.js +25 -0
- package/.medusa/server/src/api/store/search/validators.d.ts +27 -0
- package/.medusa/server/src/api/store/search/validators.js +17 -0
- 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 +0 -15
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +22 -26
- package/.medusa/server/src/api/utils/format-product-attributes.d.ts +5 -50
- package/.medusa/server/src/api/utils/format-product-attributes.js +90 -164
- package/.medusa/server/src/api/utils/index.d.ts +2 -0
- package/.medusa/server/src/api/utils/index.js +3 -1
- package/.medusa/server/src/api/utils/offers.d.ts +50 -0
- package/.medusa/server/src/api/utils/offers.js +286 -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 +22 -23
- 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/customer-groups/query-config.d.ts +11 -0
- 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/members/me/route.js +3 -2
- package/.medusa/server/src/api/vendor/members/validators.d.ts +4 -2
- package/.medusa/server/src/api/vendor/members/validators.js +5 -3
- package/.medusa/server/src/api/vendor/middlewares.js +77 -67
- package/.medusa/server/src/api/vendor/offers/[id]/route.js +4 -2
- package/.medusa/server/src/api/vendor/offers/batch/route.js +3 -2
- package/.medusa/server/src/api/vendor/offers/query-config.js +2 -1
- package/.medusa/server/src/api/vendor/offers/route.js +4 -2
- package/.medusa/server/src/api/vendor/offers/validators.d.ts +68 -67
- package/.medusa/server/src/api/vendor/offers/validators.js +12 -12
- 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.d.ts +2 -1
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +4 -1
- package/.medusa/server/src/api/vendor/orders/middlewares.js +2 -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 +37 -26
- package/.medusa/server/src/api/vendor/orders/validators.js +10 -3
- 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 +38 -40
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +14 -15
- package/.medusa/server/src/api/vendor/product-attributes/query-config.js +4 -2
- package/.medusa/server/src/api/vendor/product-attributes/route.js +1 -3
- package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +92 -104
- package/.medusa/server/src/api/vendor/product-attributes/validators.js +1 -1
- 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 -1
- 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 +2 -7
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +2 -9
- 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 +0 -14
- package/.medusa/server/src/api/vendor/products/[id]/route.js +12 -21
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +0 -8
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +3 -14
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +0 -7
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +2 -11
- package/.medusa/server/src/api/vendor/products/helpers.d.ts +6 -5
- package/.medusa/server/src/api/vendor/products/helpers.js +54 -10
- package/.medusa/server/src/api/vendor/products/middlewares.js +16 -48
- package/.medusa/server/src/api/vendor/products/query-config.js +52 -15
- package/.medusa/server/src/api/vendor/products/route.d.ts +0 -9
- package/.medusa/server/src/api/vendor/products/route.js +14 -17
- package/.medusa/server/src/api/vendor/products/validators.d.ts +458 -770
- package/.medusa/server/src/api/vendor/products/validators.js +90 -78
- 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/vendor/reservations/middlewares.d.ts +2 -0
- 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/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/[id]/address/route.js +4 -2
- package/.medusa/server/src/api/vendor/sellers/[id]/payment-details/route.js +4 -2
- package/.medusa/server/src/api/vendor/sellers/[id]/professional-details/route.js +4 -2
- package/.medusa/server/src/api/vendor/sellers/[id]/route.js +4 -2
- package/.medusa/server/src/api/vendor/sellers/me/route.js +10 -1
- package/.medusa/server/src/api/vendor/sellers/middlewares.js +1 -18
- package/.medusa/server/src/api/vendor/sellers/route.js +8 -3
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +25 -46
- 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 +100 -98
- 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/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-product-link.js +15 -0
- package/.medusa/server/src/links/order-line-item-offer-link.js +10 -2
- package/.medusa/server/src/links/product-attribute-category-link.d.ts +0 -14
- package/.medusa/server/src/links/product-attribute-category-link.js +4 -21
- 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 +0 -5
- package/.medusa/server/src/links/product-attribute-product-link.js +2 -7
- 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-variant-attribute-value-link.d.ts → product-attribute-value-pivot-link.d.ts} +3 -0
- package/.medusa/server/src/links/product-attribute-value-pivot-link.js +23 -0
- 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/migration-scripts/rename-default-store.d.ts +2 -0
- package/.medusa/server/src/migration-scripts/rename-default-store.js +12 -0
- 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/commission/migrations/Migration20260615120000.d.ts +5 -0
- 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/media/index.js +12 -0
- package/.medusa/server/src/modules/media/migrations/Migration20260616000000.d.ts +5 -0
- 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/offer/migrations/Migration20260622000000.d.ts +5 -0
- package/.medusa/server/src/modules/offer/migrations/Migration20260622000000.js +16 -0
- package/.medusa/server/src/modules/offer/models/offer.d.ts +2 -0
- package/.medusa/server/src/modules/offer/models/offer.js +8 -1
- package/.medusa/server/src/modules/offer/service.d.ts +10 -0
- package/.medusa/server/src/modules/offer/service.js +100 -1
- 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/product-attribute-value.d.ts +2 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +2 -1
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +2 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +2 -1
- package/.medusa/server/src/modules/product-attribute/service.d.ts +18 -3
- package/.medusa/server/src/modules/product-attribute/service.js +213 -1
- package/.medusa/server/src/modules/search/abstract-search-provider.d.ts +9 -0
- package/.medusa/server/src/modules/search/abstract-search-provider.js +20 -0
- package/.medusa/server/src/modules/search/index.d.ts +10 -0
- package/.medusa/server/src/modules/search/index.js +31 -0
- package/.medusa/server/src/modules/search/lib/build-docs.d.ts +84 -0
- package/.medusa/server/src/modules/search/lib/build-docs.js +207 -0
- package/.medusa/server/src/modules/search/lib/reindex.d.ts +7 -0
- package/.medusa/server/src/modules/search/lib/reindex.js +61 -0
- package/.medusa/server/src/modules/search/lib/sync.d.ts +9 -0
- package/.medusa/server/src/modules/search/lib/sync.js +73 -0
- package/.medusa/server/src/modules/search/loaders/providers.d.ts +5 -0
- package/.medusa/server/src/modules/search/loaders/providers.js +26 -0
- package/.medusa/server/src/modules/search/providers/index.d.ts +1 -0
- package/.medusa/server/src/modules/search/providers/index.js +6 -0
- package/.medusa/server/src/modules/search/providers/orama/index.d.ts +4 -0
- package/.medusa/server/src/modules/search/providers/orama/index.js +12 -0
- package/.medusa/server/src/modules/search/providers/orama/service.d.ts +19 -0
- package/.medusa/server/src/modules/search/providers/orama/service.js +148 -0
- package/.medusa/server/src/modules/search/providers/orama/types.d.ts +10 -0
- package/.medusa/server/src/modules/search/providers/orama/types.js +3 -0
- package/.medusa/server/src/modules/search/services/index.d.ts +2 -0
- package/.medusa/server/src/modules/search/services/index.js +24 -0
- package/.medusa/server/src/modules/search/services/search-module-service.d.ts +25 -0
- package/.medusa/server/src/modules/search/services/search-module-service.js +60 -0
- package/.medusa/server/src/modules/search/services/search-provider-service.d.ts +15 -0
- package/.medusa/server/src/modules/search/services/search-provider-service.js +30 -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/subscribers/search-offer-changed.d.ts +6 -0
- package/.medusa/server/src/subscribers/search-offer-changed.js +34 -0
- package/.medusa/server/src/subscribers/search-product-changed.d.ts +5 -0
- package/.medusa/server/src/subscribers/search-product-changed.js +29 -0
- package/.medusa/server/src/subscribers/search-product-deleted.d.ts +5 -0
- package/.medusa/server/src/subscribers/search-product-deleted.js +23 -0
- package/.medusa/server/src/subscribers/search-reindex.d.ts +3 -0
- package/.medusa/server/src/subscribers/search-reindex.js +23 -0
- package/.medusa/server/src/subscribers/search-seller-changed.d.ts +5 -0
- package/.medusa/server/src/subscribers/search-seller-changed.js +44 -0
- 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/workflows/cart/hooks/validate.js +1 -12
- 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 -9
- 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/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/customer-group/index.d.ts +2 -0
- package/.medusa/server/src/workflows/customer-group/index.js +19 -0
- 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/customer-group/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/index.d.ts +2 -0
- package/.medusa/server/src/workflows/index.js +3 -1
- package/.medusa/server/src/workflows/media/index.d.ts +2 -0
- package/.medusa/server/src/workflows/media/index.js +19 -0
- 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 +0 -12
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +1 -16
- package/.medusa/server/src/workflows/offer/steps/create-offers.d.ts +2 -0
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +0 -9
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +1 -10
- package/.medusa/server/src/workflows/offer/steps/update-offers.d.ts +2 -5
- 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 +0 -11
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +1 -12
- 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/create-offers.js +4 -16
- package/.medusa/server/src/workflows/offer/workflows/delete-offers.js +7 -2
- package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +0 -11
- package/.medusa/server/src/workflows/offer/workflows/update-offers.js +2 -23
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +1 -2
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +1 -2
- 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.js +1 -9
- package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +2 -3
- 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/order-group/workflows/get-order-groups-list.d.ts +1 -0
- package/.medusa/server/src/workflows/order-group/workflows/get-order-groups-list.js +11 -2
- package/.medusa/server/src/workflows/payout/workflows/create-payout.js +34 -21
- package/.medusa/server/src/workflows/product/events.d.ts +0 -6
- package/.medusa/server/src/workflows/product/events.js +1 -7
- package/.medusa/server/src/workflows/product/steps/index.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/index.js +1 -3
- package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +0 -8
- package/.medusa/server/src/workflows/product/steps/validate-products-status.js +1 -9
- package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +1 -3
- package/.medusa/server/src/workflows/product/workflows/assign-products-to-category.d.ts +12 -0
- package/.medusa/server/src/workflows/product/workflows/assign-products-to-category.js +23 -0
- package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +4 -20
- package/.medusa/server/src/workflows/product/workflows/confirm-products.js +2 -13
- package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +4 -52
- package/.medusa/server/src/workflows/product/workflows/create-products.js +69 -142
- package/.medusa/server/src/workflows/product/workflows/index.d.ts +1 -1
- package/.medusa/server/src/workflows/product/workflows/index.js +2 -2
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +1 -1
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +1 -1
- package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +4 -11
- package/.medusa/server/src/workflows/product/workflows/reject-product.js +2 -8
- package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +4 -18
- package/.medusa/server/src/workflows/product/workflows/request-product-change.js +2 -15
- package/.medusa/server/src/workflows/product-attribute/events.d.ts +0 -9
- package/.medusa/server/src/workflows/product-attribute/events.js +1 -10
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.d.ts +1 -31
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.d.ts +1 -41
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +1 -1
- 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 +3 -4
- package/.medusa/server/src/workflows/product-attribute/steps/index.js +4 -5
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +6 -3
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +17 -2
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attributes.d.ts +1 -31
- 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 +15 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-product-attributes.js +28 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.js +44 -3
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.js +41 -17
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.js +36 -15
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +0 -7
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +11 -8
- package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +4 -5
- package/.medusa/server/src/workflows/product-attribute/workflows/index.js +5 -6
- 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.js +34 -1
- 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.js +15 -1
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +4 -11
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +19 -19
- package/.medusa/server/src/workflows/product-edit/events.d.ts +0 -7
- package/.medusa/server/src/workflows/product-edit/events.js +1 -8
- 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/confirm-product-change-validation.d.ts +0 -4
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +1 -5
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +0 -6
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +1 -7
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +0 -5
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +1 -6
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +0 -6
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +1 -1
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +0 -5
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +1 -6
- package/.medusa/server/src/workflows/product-edit/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/product-edit/steps/index.js +2 -1
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +0 -5
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +1 -6
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +0 -6
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +2 -8
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.d.ts +5 -19
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +11 -128
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +0 -31
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +43 -50
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +1 -9
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +3 -11
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.d.ts +0 -11
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +1 -12
- package/.medusa/server/src/workflows/product-edit/workflows/index.d.ts +1 -1
- package/.medusa/server/src/workflows/product-edit/workflows/index.js +2 -2
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +0 -7
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +10 -9
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +4 -46
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +11 -162
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-product.d.ts +16 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-product.js +139 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.d.ts +0 -10
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +71 -17
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +0 -24
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +1 -15
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.d.ts +1 -25
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +2 -15
- 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/approve-seller.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/workflows/approve-seller.js +2 -1
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +1 -2
- package/.medusa/server/src/workflows/seller/workflows/suspend-seller.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/workflows/suspend-seller.js +2 -1
- package/.medusa/server/src/workflows/seller/workflows/terminate-seller.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/workflows/terminate-seller.js +2 -1
- package/.medusa/server/src/workflows/seller/workflows/unsuspend-seller.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/workflows/unsuspend-seller.js +2 -1
- package/.medusa/server/src/workflows/seller/workflows/unterminate-seller.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/workflows/unterminate-seller.js +2 -1
- package/.medusa/server/src/workflows/seller/workflows/update-member.d.ts +12 -101
- package/.medusa/server/src/workflows/seller/workflows/update-member.js +6 -2
- package/package.json +22 -21
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +0 -4
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +0 -65
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +0 -5
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +0 -63
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +0 -10
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +0 -62
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +0 -15
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +0 -82
- package/.medusa/server/src/links/line-item-commission-line-link.js +0 -21
- package/.medusa/server/src/links/product-attribute-value-link.d.ts +0 -22
- package/.medusa/server/src/links/product-attribute-value-link.js +0 -46
- package/.medusa/server/src/links/product-variant-attribute-link.js +0 -21
- package/.medusa/server/src/links/product-variant-attribute-value-link.js +0 -21
- package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.d.ts +0 -28
- package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.js +0 -72
- package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.d.ts +0 -90
- package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.js +0 -185
- package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +0 -39
- package/.medusa/server/src/workflows/product/workflows/update-products.js +0 -161
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.d.ts +0 -43
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.js +0 -51
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.d.ts +0 -7
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.js +0 -59
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.d.ts +0 -6
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.js +0 -20
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.d.ts +0 -7
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.js +0 -20
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.d.ts +0 -52
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.js +0 -120
- package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.d.ts +0 -23
- package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.js +0 -252
- package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.d.ts +0 -17
- package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.js +0 -62
- package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.d.ts +0 -135
- package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.js +0 -43
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.d.ts +0 -24
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.js +0 -27
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +0 -25
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +0 -148
- /package/.medusa/server/src/links/{line-item-commission-line-link.d.ts → offer-product-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{product-variant-attribute-link.d.ts → seller-customer-group-link.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AdditionalData } from "@medusajs/framework/types";
|
|
3
3
|
export type VendorGetProductsParamsType = z.infer<typeof VendorGetProductsParams>;
|
|
4
|
-
export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
4
|
+
export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
7
7
|
q: z.ZodOptional<z.ZodString>;
|
|
@@ -22,7 +22,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
22
22
|
ean: z.ZodOptional<z.ZodString>;
|
|
23
23
|
upc: z.ZodOptional<z.ZodString>;
|
|
24
24
|
barcode: z.ZodOptional<z.ZodString>;
|
|
25
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
25
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
26
26
|
$eq: any;
|
|
27
27
|
$ne: any;
|
|
28
28
|
$in: any;
|
|
@@ -35,7 +35,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
35
35
|
$gte: any;
|
|
36
36
|
$lt: any;
|
|
37
37
|
$lte: any;
|
|
38
|
-
},
|
|
38
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
39
39
|
$eq?: any;
|
|
40
40
|
$ne?: any;
|
|
41
41
|
$in?: any;
|
|
@@ -62,7 +62,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
62
62
|
$lt?: any;
|
|
63
63
|
$lte?: any;
|
|
64
64
|
}>]>>;
|
|
65
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
65
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
66
66
|
$eq: any;
|
|
67
67
|
$ne: any;
|
|
68
68
|
$in: any;
|
|
@@ -75,7 +75,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
75
75
|
$gte: any;
|
|
76
76
|
$lt: any;
|
|
77
77
|
$lte: any;
|
|
78
|
-
},
|
|
78
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
79
79
|
$eq?: any;
|
|
80
80
|
$ne?: any;
|
|
81
81
|
$in?: any;
|
|
@@ -102,7 +102,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
102
102
|
$lt?: any;
|
|
103
103
|
$lte?: any;
|
|
104
104
|
}>]>>;
|
|
105
|
-
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
105
|
+
deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
106
106
|
$eq: any;
|
|
107
107
|
$ne: any;
|
|
108
108
|
$in: any;
|
|
@@ -115,7 +115,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
115
115
|
$gte: any;
|
|
116
116
|
$lt: any;
|
|
117
117
|
$lte: any;
|
|
118
|
-
},
|
|
118
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
119
119
|
$eq?: any;
|
|
120
120
|
$ne?: any;
|
|
121
121
|
$in?: any;
|
|
@@ -142,40 +142,45 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
142
142
|
$lt?: any;
|
|
143
143
|
$lte?: any;
|
|
144
144
|
}>]>>;
|
|
145
|
+
has_offer: any;
|
|
145
146
|
}, "strip", z.ZodTypeAny, {
|
|
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
|
-
|
|
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;
|
|
179
184
|
}>, "many">>>;
|
|
180
185
|
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
181
186
|
q: z.ZodOptional<z.ZodString>;
|
|
@@ -196,7 +201,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
196
201
|
ean: z.ZodOptional<z.ZodString>;
|
|
197
202
|
upc: z.ZodOptional<z.ZodString>;
|
|
198
203
|
barcode: z.ZodOptional<z.ZodString>;
|
|
199
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
204
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
200
205
|
$eq: any;
|
|
201
206
|
$ne: any;
|
|
202
207
|
$in: any;
|
|
@@ -209,7 +214,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
209
214
|
$gte: any;
|
|
210
215
|
$lt: any;
|
|
211
216
|
$lte: any;
|
|
212
|
-
},
|
|
217
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
213
218
|
$eq?: any;
|
|
214
219
|
$ne?: any;
|
|
215
220
|
$in?: any;
|
|
@@ -236,7 +241,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
236
241
|
$lt?: any;
|
|
237
242
|
$lte?: any;
|
|
238
243
|
}>]>>;
|
|
239
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
244
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
240
245
|
$eq: any;
|
|
241
246
|
$ne: any;
|
|
242
247
|
$in: any;
|
|
@@ -249,7 +254,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
249
254
|
$gte: any;
|
|
250
255
|
$lt: any;
|
|
251
256
|
$lte: any;
|
|
252
|
-
},
|
|
257
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
253
258
|
$eq?: any;
|
|
254
259
|
$ne?: any;
|
|
255
260
|
$in?: any;
|
|
@@ -276,7 +281,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
276
281
|
$lt?: any;
|
|
277
282
|
$lte?: any;
|
|
278
283
|
}>]>>;
|
|
279
|
-
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
284
|
+
deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
280
285
|
$eq: any;
|
|
281
286
|
$ne: any;
|
|
282
287
|
$in: any;
|
|
@@ -289,7 +294,7 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
289
294
|
$gte: any;
|
|
290
295
|
$lt: any;
|
|
291
296
|
$lte: any;
|
|
292
|
-
},
|
|
297
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
293
298
|
$eq?: any;
|
|
294
299
|
$ne?: any;
|
|
295
300
|
$in?: any;
|
|
@@ -316,42 +321,47 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
316
321
|
$lt?: any;
|
|
317
322
|
$lte?: any;
|
|
318
323
|
}>]>>;
|
|
324
|
+
has_offer: any;
|
|
319
325
|
}, "strip", z.ZodTypeAny, {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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;
|
|
336
344
|
}, {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
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;
|
|
353
363
|
}>, "many">>>;
|
|
354
|
-
},
|
|
364
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
355
365
|
[x: string]: any;
|
|
356
366
|
$and?: unknown;
|
|
357
367
|
$or?: unknown;
|
|
@@ -359,11 +369,15 @@ export declare const VendorGetProductsParams: z.ZodObject<{} & {
|
|
|
359
369
|
[x: string]: any;
|
|
360
370
|
$and?: unknown;
|
|
361
371
|
$or?: unknown;
|
|
372
|
+
}>, Record<string, unknown>, {
|
|
373
|
+
[x: string]: any;
|
|
374
|
+
$and?: unknown;
|
|
375
|
+
$or?: unknown;
|
|
362
376
|
}>;
|
|
363
377
|
export type VendorGetProductParamsType = z.infer<typeof VendorGetProductParams>;
|
|
364
378
|
export declare const VendorGetProductParams: z.ZodObject<{
|
|
365
379
|
fields: z.ZodOptional<z.ZodString>;
|
|
366
|
-
},
|
|
380
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
367
381
|
fields?: string | undefined;
|
|
368
382
|
}, {
|
|
369
383
|
fields?: string | undefined;
|
|
@@ -379,8 +393,8 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
379
393
|
readonly PUBLISHED: "published";
|
|
380
394
|
readonly REJECTED: "rejected";
|
|
381
395
|
}>>;
|
|
382
|
-
is_giftcard:
|
|
383
|
-
discountable:
|
|
396
|
+
is_giftcard: any;
|
|
397
|
+
discountable: any;
|
|
384
398
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
385
399
|
url: z.ZodString;
|
|
386
400
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -407,7 +421,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
407
421
|
}, {
|
|
408
422
|
id: string;
|
|
409
423
|
}>, "many">>;
|
|
410
|
-
/** Stock Medusa product options: drives variant generation. */
|
|
411
424
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
412
425
|
title: z.ZodString;
|
|
413
426
|
values: z.ZodArray<z.ZodString, "many">;
|
|
@@ -418,87 +431,49 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
418
431
|
values: string[];
|
|
419
432
|
title: string;
|
|
420
433
|
}>, "many">>;
|
|
421
|
-
|
|
422
|
-
|
|
434
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
435
|
+
id: z.ZodString;
|
|
423
436
|
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
424
|
-
|
|
437
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
425
438
|
}, "strict", z.ZodTypeAny, {
|
|
426
|
-
|
|
427
|
-
|
|
439
|
+
id: string;
|
|
440
|
+
value?: string | number | boolean | undefined;
|
|
428
441
|
value_ids?: string[] | undefined;
|
|
429
442
|
}, {
|
|
430
|
-
|
|
431
|
-
|
|
443
|
+
id: string;
|
|
444
|
+
value?: string | number | boolean | undefined;
|
|
432
445
|
value_ids?: string[] | undefined;
|
|
433
446
|
}>, z.ZodObject<{
|
|
434
|
-
|
|
435
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]
|
|
447
|
+
title: z.ZodString;
|
|
448
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
436
449
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
450
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
437
451
|
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
438
452
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
439
453
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
440
454
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
441
455
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
442
456
|
}, "strict", z.ZodTypeAny, {
|
|
443
|
-
|
|
444
|
-
name: string;
|
|
457
|
+
title: string;
|
|
445
458
|
values?: string[] | undefined;
|
|
446
459
|
metadata?: Record<string, unknown> | null | undefined;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
is_filterable?: boolean | undefined;
|
|
460
|
+
value?: string | number | boolean | undefined;
|
|
461
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
450
462
|
is_variant_axis?: boolean | undefined;
|
|
451
|
-
}, {
|
|
452
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
453
|
-
name: string;
|
|
454
|
-
values?: string[] | undefined;
|
|
455
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
456
|
-
description?: string | null | undefined;
|
|
457
463
|
is_required?: boolean | undefined;
|
|
458
|
-
is_filterable?: boolean | undefined;
|
|
459
|
-
is_variant_axis?: boolean | undefined;
|
|
460
|
-
}>]>, "many">>;
|
|
461
|
-
variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
462
|
-
attribute_id: z.ZodString;
|
|
463
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
464
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
465
|
-
}, "strict", z.ZodTypeAny, {
|
|
466
|
-
attribute_id: string;
|
|
467
|
-
values?: string[] | undefined;
|
|
468
|
-
value_ids?: string[] | undefined;
|
|
469
|
-
}, {
|
|
470
|
-
attribute_id: string;
|
|
471
|
-
values?: string[] | undefined;
|
|
472
|
-
value_ids?: string[] | undefined;
|
|
473
|
-
}>, z.ZodObject<{
|
|
474
|
-
name: z.ZodString;
|
|
475
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
476
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
477
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
478
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
479
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
480
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
481
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
482
|
-
}, "strict", z.ZodTypeAny, {
|
|
483
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
484
|
-
name: string;
|
|
485
|
-
values?: string[] | undefined;
|
|
486
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
487
464
|
description?: string | null | undefined;
|
|
488
|
-
is_required?: boolean | undefined;
|
|
489
465
|
is_filterable?: boolean | undefined;
|
|
490
|
-
is_variant_axis?: boolean | undefined;
|
|
491
466
|
}, {
|
|
492
|
-
|
|
493
|
-
name: string;
|
|
467
|
+
title: string;
|
|
494
468
|
values?: string[] | undefined;
|
|
495
469
|
metadata?: Record<string, unknown> | null | undefined;
|
|
496
|
-
|
|
470
|
+
value?: string | number | boolean | undefined;
|
|
471
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
472
|
+
is_variant_axis?: boolean | undefined;
|
|
497
473
|
is_required?: boolean | undefined;
|
|
474
|
+
description?: string | null | undefined;
|
|
498
475
|
is_filterable?: boolean | undefined;
|
|
499
|
-
is_variant_axis?: boolean | undefined;
|
|
500
476
|
}>]>, "many">>;
|
|
501
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
502
477
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
503
478
|
title: z.ZodString;
|
|
504
479
|
sku: z.ZodOptional<z.ZodString>;
|
|
@@ -518,17 +493,15 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
518
493
|
origin_country: z.ZodOptional<z.ZodString>;
|
|
519
494
|
material: z.ZodOptional<z.ZodString>;
|
|
520
495
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
521
|
-
/** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
|
|
522
496
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
523
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
524
497
|
}, "strict", z.ZodTypeAny, {
|
|
525
498
|
title: string;
|
|
526
499
|
options?: Record<string, string> | undefined;
|
|
527
500
|
length?: number | undefined;
|
|
501
|
+
metadata?: Record<string, unknown> | undefined;
|
|
528
502
|
sku?: string | undefined;
|
|
529
503
|
ean?: string | undefined;
|
|
530
504
|
upc?: string | undefined;
|
|
531
|
-
metadata?: Record<string, unknown> | undefined;
|
|
532
505
|
weight?: number | undefined;
|
|
533
506
|
height?: number | undefined;
|
|
534
507
|
width?: number | undefined;
|
|
@@ -541,15 +514,14 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
541
514
|
gtin?: string | undefined;
|
|
542
515
|
barcode?: string | undefined;
|
|
543
516
|
variant_rank?: number | undefined;
|
|
544
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
545
517
|
}, {
|
|
546
518
|
title: string;
|
|
547
519
|
options?: Record<string, string> | undefined;
|
|
548
520
|
length?: number | undefined;
|
|
521
|
+
metadata?: Record<string, unknown> | undefined;
|
|
549
522
|
sku?: string | undefined;
|
|
550
523
|
ean?: string | undefined;
|
|
551
524
|
upc?: string | undefined;
|
|
552
|
-
metadata?: Record<string, unknown> | undefined;
|
|
553
525
|
weight?: number | undefined;
|
|
554
526
|
height?: number | undefined;
|
|
555
527
|
width?: number | undefined;
|
|
@@ -562,7 +534,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
562
534
|
gtin?: string | undefined;
|
|
563
535
|
barcode?: string | undefined;
|
|
564
536
|
variant_rank?: number | undefined;
|
|
565
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
566
537
|
}>, "many">>;
|
|
567
538
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
568
539
|
length: z.ZodOptional<z.ZodNumber>;
|
|
@@ -574,188 +545,70 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
574
545
|
material: z.ZodOptional<z.ZodString>;
|
|
575
546
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
576
547
|
}, "strict", z.ZodTypeAny, {
|
|
577
|
-
title: string;
|
|
578
|
-
is_giftcard: boolean;
|
|
579
|
-
discountable: boolean;
|
|
580
|
-
options?: {
|
|
581
|
-
values: string[];
|
|
582
|
-
title: string;
|
|
583
|
-
}[] | undefined;
|
|
584
|
-
length?: number | undefined;
|
|
585
|
-
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
586
|
-
metadata?: Record<string, unknown> | undefined;
|
|
587
|
-
handle?: string | undefined;
|
|
588
|
-
description?: string | undefined;
|
|
589
|
-
external_id?: string | undefined;
|
|
590
|
-
thumbnail?: string | undefined;
|
|
591
|
-
collection_id?: string | undefined;
|
|
592
|
-
type_id?: string | undefined;
|
|
593
|
-
subtitle?: string | undefined;
|
|
594
|
-
weight?: number | undefined;
|
|
595
|
-
height?: number | undefined;
|
|
596
|
-
width?: number | undefined;
|
|
597
|
-
hs_code?: string | undefined;
|
|
598
|
-
origin_country?: string | undefined;
|
|
599
|
-
mid_code?: string | undefined;
|
|
600
|
-
material?: string | undefined;
|
|
601
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
602
|
-
images?: {
|
|
603
|
-
url: string;
|
|
604
|
-
}[] | undefined;
|
|
605
|
-
categories?: {
|
|
606
|
-
id: string;
|
|
607
|
-
}[] | undefined;
|
|
608
|
-
tags?: {
|
|
609
|
-
id: string;
|
|
610
|
-
}[] | undefined;
|
|
611
|
-
variant_attributes?: ({
|
|
612
|
-
attribute_id: string;
|
|
613
|
-
values?: string[] | undefined;
|
|
614
|
-
value_ids?: string[] | undefined;
|
|
615
|
-
} | {
|
|
616
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
617
|
-
name: string;
|
|
618
|
-
values?: string[] | undefined;
|
|
619
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
620
|
-
description?: string | null | undefined;
|
|
621
|
-
is_required?: boolean | undefined;
|
|
622
|
-
is_filterable?: boolean | undefined;
|
|
623
|
-
is_variant_axis?: boolean | undefined;
|
|
624
|
-
})[] | undefined;
|
|
625
|
-
product_attributes?: ({
|
|
626
|
-
attribute_id: string;
|
|
627
|
-
values?: string[] | undefined;
|
|
628
|
-
value_ids?: string[] | undefined;
|
|
629
|
-
} | {
|
|
630
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
631
|
-
name: string;
|
|
632
|
-
values?: string[] | undefined;
|
|
633
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
634
|
-
description?: string | null | undefined;
|
|
635
|
-
is_required?: boolean | undefined;
|
|
636
|
-
is_filterable?: boolean | undefined;
|
|
637
|
-
is_variant_axis?: boolean | undefined;
|
|
638
|
-
})[] | undefined;
|
|
639
|
-
variants?: {
|
|
640
|
-
title: string;
|
|
641
|
-
options?: Record<string, string> | undefined;
|
|
642
|
-
length?: number | undefined;
|
|
643
|
-
sku?: string | undefined;
|
|
644
|
-
ean?: string | undefined;
|
|
645
|
-
upc?: string | undefined;
|
|
646
|
-
metadata?: Record<string, unknown> | undefined;
|
|
647
|
-
weight?: number | undefined;
|
|
648
|
-
height?: number | undefined;
|
|
649
|
-
width?: number | undefined;
|
|
650
|
-
hs_code?: string | undefined;
|
|
651
|
-
origin_country?: string | undefined;
|
|
652
|
-
mid_code?: string | undefined;
|
|
653
|
-
material?: string | undefined;
|
|
654
|
-
isbn?: string | undefined;
|
|
655
|
-
asin?: string | undefined;
|
|
656
|
-
gtin?: string | undefined;
|
|
657
|
-
barcode?: string | undefined;
|
|
658
|
-
variant_rank?: number | undefined;
|
|
659
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
660
|
-
}[] | undefined;
|
|
661
|
-
}, {
|
|
662
|
-
title: string;
|
|
663
|
-
options?: {
|
|
664
|
-
values: string[];
|
|
665
|
-
title: string;
|
|
666
|
-
}[] | undefined;
|
|
667
|
-
length?: number | undefined;
|
|
668
|
-
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
669
|
-
metadata?: Record<string, unknown> | undefined;
|
|
670
|
-
handle?: string | undefined;
|
|
671
|
-
description?: string | undefined;
|
|
672
|
-
external_id?: string | undefined;
|
|
673
|
-
thumbnail?: string | undefined;
|
|
674
|
-
collection_id?: string | undefined;
|
|
675
|
-
type_id?: string | undefined;
|
|
676
|
-
subtitle?: string | undefined;
|
|
677
|
-
is_giftcard?: string | boolean | undefined;
|
|
678
|
-
discountable?: string | boolean | undefined;
|
|
679
|
-
weight?: number | undefined;
|
|
680
|
-
height?: number | undefined;
|
|
681
|
-
width?: number | undefined;
|
|
682
|
-
hs_code?: string | undefined;
|
|
683
|
-
origin_country?: string | undefined;
|
|
684
|
-
mid_code?: string | undefined;
|
|
685
|
-
material?: string | undefined;
|
|
686
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
687
|
-
images?: {
|
|
688
|
-
url: string;
|
|
689
|
-
}[] | undefined;
|
|
690
|
-
categories?: {
|
|
691
|
-
id: string;
|
|
692
|
-
}[] | undefined;
|
|
693
|
-
tags?: {
|
|
694
|
-
id: string;
|
|
695
|
-
}[] | undefined;
|
|
696
|
-
variant_attributes?: ({
|
|
697
|
-
attribute_id: string;
|
|
698
|
-
values?: string[] | undefined;
|
|
699
|
-
value_ids?: string[] | undefined;
|
|
700
|
-
} | {
|
|
701
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
702
|
-
name: string;
|
|
703
|
-
values?: string[] | undefined;
|
|
704
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
705
|
-
description?: string | null | undefined;
|
|
706
|
-
is_required?: boolean | undefined;
|
|
707
|
-
is_filterable?: boolean | undefined;
|
|
708
|
-
is_variant_axis?: boolean | undefined;
|
|
709
|
-
})[] | undefined;
|
|
710
|
-
product_attributes?: ({
|
|
711
|
-
attribute_id: string;
|
|
712
|
-
values?: string[] | undefined;
|
|
713
|
-
value_ids?: string[] | undefined;
|
|
714
|
-
} | {
|
|
715
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
716
|
-
name: string;
|
|
717
|
-
values?: string[] | undefined;
|
|
718
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
719
|
-
description?: string | null | undefined;
|
|
720
|
-
is_required?: boolean | undefined;
|
|
721
|
-
is_filterable?: boolean | undefined;
|
|
722
|
-
is_variant_axis?: boolean | undefined;
|
|
723
|
-
})[] | undefined;
|
|
724
|
-
variants?: {
|
|
725
|
-
title: string;
|
|
726
|
-
options?: Record<string, string> | undefined;
|
|
727
|
-
length?: number | undefined;
|
|
728
|
-
sku?: string | undefined;
|
|
729
|
-
ean?: string | undefined;
|
|
730
|
-
upc?: string | undefined;
|
|
731
|
-
metadata?: Record<string, unknown> | undefined;
|
|
732
|
-
weight?: number | undefined;
|
|
733
|
-
height?: number | undefined;
|
|
734
|
-
width?: number | undefined;
|
|
735
|
-
hs_code?: string | undefined;
|
|
736
|
-
origin_country?: string | undefined;
|
|
737
|
-
mid_code?: string | undefined;
|
|
738
|
-
material?: string | undefined;
|
|
739
|
-
isbn?: string | undefined;
|
|
740
|
-
asin?: string | undefined;
|
|
741
|
-
gtin?: string | undefined;
|
|
742
|
-
barcode?: string | undefined;
|
|
743
|
-
variant_rank?: number | undefined;
|
|
744
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
745
|
-
}[] | undefined;
|
|
746
|
-
}>;
|
|
747
|
-
export declare const VendorCreateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
748
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;
|
|
749
575
|
}, {
|
|
750
576
|
[x: string]: any;
|
|
751
|
-
|
|
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>;
|
|
752
605
|
export type VendorUpdateProductType = z.infer<typeof UpdateProduct> & AdditionalData;
|
|
753
606
|
declare const UpdateProduct: z.ZodObject<{
|
|
754
607
|
title: z.ZodOptional<z.ZodString>;
|
|
755
608
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
756
609
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
757
|
-
discountable:
|
|
758
|
-
is_giftcard:
|
|
610
|
+
discountable: any;
|
|
611
|
+
is_giftcard: any;
|
|
759
612
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
760
613
|
id: z.ZodOptional<z.ZodString>;
|
|
761
614
|
url: z.ZodString;
|
|
@@ -795,87 +648,6 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
795
648
|
values: string[];
|
|
796
649
|
title: string;
|
|
797
650
|
}>, "many">>;
|
|
798
|
-
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
799
|
-
attribute_id: z.ZodString;
|
|
800
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
801
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
802
|
-
}, "strict", z.ZodTypeAny, {
|
|
803
|
-
attribute_id: string;
|
|
804
|
-
values?: string[] | undefined;
|
|
805
|
-
value_ids?: string[] | undefined;
|
|
806
|
-
}, {
|
|
807
|
-
attribute_id: string;
|
|
808
|
-
values?: string[] | undefined;
|
|
809
|
-
value_ids?: string[] | undefined;
|
|
810
|
-
}>, z.ZodObject<{
|
|
811
|
-
name: z.ZodString;
|
|
812
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
813
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
814
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
815
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
816
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
817
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
818
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
819
|
-
}, "strict", z.ZodTypeAny, {
|
|
820
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
821
|
-
name: string;
|
|
822
|
-
values?: string[] | undefined;
|
|
823
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
824
|
-
description?: string | null | undefined;
|
|
825
|
-
is_required?: boolean | undefined;
|
|
826
|
-
is_filterable?: boolean | undefined;
|
|
827
|
-
is_variant_axis?: boolean | undefined;
|
|
828
|
-
}, {
|
|
829
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
830
|
-
name: string;
|
|
831
|
-
values?: string[] | undefined;
|
|
832
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
833
|
-
description?: string | null | undefined;
|
|
834
|
-
is_required?: boolean | undefined;
|
|
835
|
-
is_filterable?: boolean | undefined;
|
|
836
|
-
is_variant_axis?: boolean | undefined;
|
|
837
|
-
}>]>, "many">>;
|
|
838
|
-
variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
839
|
-
attribute_id: z.ZodString;
|
|
840
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
841
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
842
|
-
}, "strict", z.ZodTypeAny, {
|
|
843
|
-
attribute_id: string;
|
|
844
|
-
values?: string[] | undefined;
|
|
845
|
-
value_ids?: string[] | undefined;
|
|
846
|
-
}, {
|
|
847
|
-
attribute_id: string;
|
|
848
|
-
values?: string[] | undefined;
|
|
849
|
-
value_ids?: string[] | undefined;
|
|
850
|
-
}>, z.ZodObject<{
|
|
851
|
-
name: z.ZodString;
|
|
852
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
853
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
854
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
855
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
856
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
857
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
858
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
859
|
-
}, "strict", z.ZodTypeAny, {
|
|
860
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
861
|
-
name: string;
|
|
862
|
-
values?: string[] | undefined;
|
|
863
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
864
|
-
description?: string | null | undefined;
|
|
865
|
-
is_required?: boolean | undefined;
|
|
866
|
-
is_filterable?: boolean | undefined;
|
|
867
|
-
is_variant_axis?: boolean | undefined;
|
|
868
|
-
}, {
|
|
869
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
870
|
-
name: string;
|
|
871
|
-
values?: string[] | undefined;
|
|
872
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
873
|
-
description?: string | null | undefined;
|
|
874
|
-
is_required?: boolean | undefined;
|
|
875
|
-
is_filterable?: boolean | undefined;
|
|
876
|
-
is_variant_axis?: boolean | undefined;
|
|
877
|
-
}>]>, "many">>;
|
|
878
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
879
651
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
880
652
|
id: z.ZodOptional<z.ZodString>;
|
|
881
653
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -898,16 +670,15 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
898
670
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
899
671
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
900
672
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
901
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
902
673
|
}, "strict", z.ZodTypeAny, {
|
|
903
674
|
options?: Record<string, string> | undefined;
|
|
904
675
|
length?: number | null | undefined;
|
|
676
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
905
677
|
id?: string | undefined;
|
|
678
|
+
title?: string | undefined;
|
|
906
679
|
sku?: string | null | undefined;
|
|
907
680
|
ean?: string | null | undefined;
|
|
908
681
|
upc?: string | null | undefined;
|
|
909
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
910
|
-
title?: string | undefined;
|
|
911
682
|
thumbnail?: string | null | undefined;
|
|
912
683
|
weight?: number | null | undefined;
|
|
913
684
|
height?: number | null | undefined;
|
|
@@ -921,16 +692,15 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
921
692
|
gtin?: string | null | undefined;
|
|
922
693
|
barcode?: string | null | undefined;
|
|
923
694
|
variant_rank?: number | undefined;
|
|
924
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
925
695
|
}, {
|
|
926
696
|
options?: Record<string, string> | undefined;
|
|
927
697
|
length?: number | null | undefined;
|
|
698
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
928
699
|
id?: string | undefined;
|
|
700
|
+
title?: string | undefined;
|
|
929
701
|
sku?: string | null | undefined;
|
|
930
702
|
ean?: string | null | undefined;
|
|
931
703
|
upc?: string | null | undefined;
|
|
932
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
933
|
-
title?: string | undefined;
|
|
934
704
|
thumbnail?: string | null | undefined;
|
|
935
705
|
weight?: number | null | undefined;
|
|
936
706
|
height?: number | null | undefined;
|
|
@@ -944,7 +714,6 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
944
714
|
gtin?: string | null | undefined;
|
|
945
715
|
barcode?: string | null | undefined;
|
|
946
716
|
variant_rank?: number | undefined;
|
|
947
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
948
717
|
}>, "many">>;
|
|
949
718
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
950
719
|
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -956,193 +725,67 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
956
725
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
726
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
958
727
|
}, "strict", z.ZodTypeAny, {
|
|
959
|
-
options?: {
|
|
960
|
-
values: string[];
|
|
961
|
-
title: string;
|
|
962
|
-
}[] | undefined;
|
|
963
|
-
length?: number | null | undefined;
|
|
964
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
965
|
-
title?: string | undefined;
|
|
966
|
-
handle?: string | null | undefined;
|
|
967
|
-
description?: string | null | undefined;
|
|
968
|
-
external_id?: string | null | undefined;
|
|
969
|
-
thumbnail?: string | null | undefined;
|
|
970
|
-
collection_id?: string | null | undefined;
|
|
971
|
-
type_id?: string | null | undefined;
|
|
972
|
-
subtitle?: string | null | undefined;
|
|
973
|
-
is_giftcard?: boolean | undefined;
|
|
974
|
-
discountable?: boolean | undefined;
|
|
975
|
-
weight?: number | null | undefined;
|
|
976
|
-
height?: number | null | undefined;
|
|
977
|
-
width?: number | null | undefined;
|
|
978
|
-
hs_code?: string | null | undefined;
|
|
979
|
-
origin_country?: string | null | undefined;
|
|
980
|
-
mid_code?: string | null | undefined;
|
|
981
|
-
material?: string | null | undefined;
|
|
982
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
983
|
-
images?: {
|
|
984
|
-
url: string;
|
|
985
|
-
id?: string | undefined;
|
|
986
|
-
}[] | undefined;
|
|
987
|
-
categories?: {
|
|
988
|
-
id: string;
|
|
989
|
-
}[] | undefined;
|
|
990
|
-
tags?: {
|
|
991
|
-
id: string;
|
|
992
|
-
}[] | undefined;
|
|
993
|
-
variant_attributes?: ({
|
|
994
|
-
attribute_id: string;
|
|
995
|
-
values?: string[] | undefined;
|
|
996
|
-
value_ids?: string[] | undefined;
|
|
997
|
-
} | {
|
|
998
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
999
|
-
name: string;
|
|
1000
|
-
values?: string[] | undefined;
|
|
1001
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1002
|
-
description?: string | null | undefined;
|
|
1003
|
-
is_required?: boolean | undefined;
|
|
1004
|
-
is_filterable?: boolean | undefined;
|
|
1005
|
-
is_variant_axis?: boolean | undefined;
|
|
1006
|
-
})[] | undefined;
|
|
1007
|
-
product_attributes?: ({
|
|
1008
|
-
attribute_id: string;
|
|
1009
|
-
values?: string[] | undefined;
|
|
1010
|
-
value_ids?: string[] | undefined;
|
|
1011
|
-
} | {
|
|
1012
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1013
|
-
name: string;
|
|
1014
|
-
values?: string[] | undefined;
|
|
1015
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1016
|
-
description?: string | null | undefined;
|
|
1017
|
-
is_required?: boolean | undefined;
|
|
1018
|
-
is_filterable?: boolean | undefined;
|
|
1019
|
-
is_variant_axis?: boolean | undefined;
|
|
1020
|
-
})[] | undefined;
|
|
1021
|
-
variants?: {
|
|
1022
|
-
options?: Record<string, string> | undefined;
|
|
1023
|
-
length?: number | null | undefined;
|
|
1024
|
-
id?: string | undefined;
|
|
1025
|
-
sku?: string | null | undefined;
|
|
1026
|
-
ean?: string | null | undefined;
|
|
1027
|
-
upc?: string | null | undefined;
|
|
1028
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1029
|
-
title?: string | undefined;
|
|
1030
|
-
thumbnail?: string | null | undefined;
|
|
1031
|
-
weight?: number | null | undefined;
|
|
1032
|
-
height?: number | null | undefined;
|
|
1033
|
-
width?: number | null | undefined;
|
|
1034
|
-
hs_code?: string | null | undefined;
|
|
1035
|
-
origin_country?: string | null | undefined;
|
|
1036
|
-
mid_code?: string | null | undefined;
|
|
1037
|
-
material?: string | null | undefined;
|
|
1038
|
-
isbn?: string | null | undefined;
|
|
1039
|
-
asin?: string | null | undefined;
|
|
1040
|
-
gtin?: string | null | undefined;
|
|
1041
|
-
barcode?: string | null | undefined;
|
|
1042
|
-
variant_rank?: number | undefined;
|
|
1043
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1044
|
-
}[] | undefined;
|
|
1045
|
-
}, {
|
|
1046
|
-
options?: {
|
|
1047
|
-
values: string[];
|
|
1048
|
-
title: string;
|
|
1049
|
-
}[] | undefined;
|
|
1050
|
-
length?: number | null | undefined;
|
|
1051
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1052
|
-
title?: string | undefined;
|
|
1053
|
-
handle?: string | null | undefined;
|
|
1054
|
-
description?: string | null | undefined;
|
|
1055
|
-
external_id?: string | null | undefined;
|
|
1056
|
-
thumbnail?: string | null | undefined;
|
|
1057
|
-
collection_id?: string | null | undefined;
|
|
1058
|
-
type_id?: string | null | undefined;
|
|
1059
|
-
subtitle?: string | null | undefined;
|
|
1060
|
-
is_giftcard?: string | boolean | undefined;
|
|
1061
|
-
discountable?: string | boolean | undefined;
|
|
1062
|
-
weight?: number | null | undefined;
|
|
1063
|
-
height?: number | null | undefined;
|
|
1064
|
-
width?: number | null | undefined;
|
|
1065
|
-
hs_code?: string | null | undefined;
|
|
1066
|
-
origin_country?: string | null | undefined;
|
|
1067
|
-
mid_code?: string | null | undefined;
|
|
1068
|
-
material?: string | null | undefined;
|
|
1069
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1070
|
-
images?: {
|
|
1071
|
-
url: string;
|
|
1072
|
-
id?: string | undefined;
|
|
1073
|
-
}[] | undefined;
|
|
1074
|
-
categories?: {
|
|
1075
|
-
id: string;
|
|
1076
|
-
}[] | undefined;
|
|
1077
|
-
tags?: {
|
|
1078
|
-
id: string;
|
|
1079
|
-
}[] | undefined;
|
|
1080
|
-
variant_attributes?: ({
|
|
1081
|
-
attribute_id: string;
|
|
1082
|
-
values?: string[] | undefined;
|
|
1083
|
-
value_ids?: string[] | undefined;
|
|
1084
|
-
} | {
|
|
1085
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1086
|
-
name: string;
|
|
1087
|
-
values?: string[] | undefined;
|
|
1088
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1089
|
-
description?: string | null | undefined;
|
|
1090
|
-
is_required?: boolean | undefined;
|
|
1091
|
-
is_filterable?: boolean | undefined;
|
|
1092
|
-
is_variant_axis?: boolean | undefined;
|
|
1093
|
-
})[] | undefined;
|
|
1094
|
-
product_attributes?: ({
|
|
1095
|
-
attribute_id: string;
|
|
1096
|
-
values?: string[] | undefined;
|
|
1097
|
-
value_ids?: string[] | undefined;
|
|
1098
|
-
} | {
|
|
1099
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1100
|
-
name: string;
|
|
1101
|
-
values?: string[] | undefined;
|
|
1102
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1103
|
-
description?: string | null | undefined;
|
|
1104
|
-
is_required?: boolean | undefined;
|
|
1105
|
-
is_filterable?: boolean | undefined;
|
|
1106
|
-
is_variant_axis?: boolean | undefined;
|
|
1107
|
-
})[] | undefined;
|
|
1108
|
-
variants?: {
|
|
1109
|
-
options?: Record<string, string> | undefined;
|
|
1110
|
-
length?: number | null | undefined;
|
|
1111
|
-
id?: string | undefined;
|
|
1112
|
-
sku?: string | null | undefined;
|
|
1113
|
-
ean?: string | null | undefined;
|
|
1114
|
-
upc?: string | null | undefined;
|
|
1115
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1116
|
-
title?: string | undefined;
|
|
1117
|
-
thumbnail?: string | null | undefined;
|
|
1118
|
-
weight?: number | null | undefined;
|
|
1119
|
-
height?: number | null | undefined;
|
|
1120
|
-
width?: number | null | undefined;
|
|
1121
|
-
hs_code?: string | null | undefined;
|
|
1122
|
-
origin_country?: string | null | undefined;
|
|
1123
|
-
mid_code?: string | null | undefined;
|
|
1124
|
-
material?: string | null | undefined;
|
|
1125
|
-
isbn?: string | null | undefined;
|
|
1126
|
-
asin?: string | null | undefined;
|
|
1127
|
-
gtin?: string | null | undefined;
|
|
1128
|
-
barcode?: string | null | undefined;
|
|
1129
|
-
variant_rank?: number | undefined;
|
|
1130
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1131
|
-
}[] | undefined;
|
|
1132
|
-
}>;
|
|
1133
|
-
export declare const VendorUpdateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
1134
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;
|
|
1135
753
|
}, {
|
|
1136
754
|
[x: string]: any;
|
|
1137
|
-
|
|
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>;
|
|
1138
781
|
export type VendorGetProductVariantsParamsType = z.infer<typeof VendorGetProductVariantsParams>;
|
|
1139
782
|
export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
1140
783
|
[x: string]: any;
|
|
1141
784
|
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
1142
785
|
q: z.ZodOptional<z.ZodString>;
|
|
1143
|
-
manage_inventory:
|
|
1144
|
-
allow_backorder:
|
|
1145
|
-
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<{
|
|
1146
789
|
$eq: any;
|
|
1147
790
|
$ne: any;
|
|
1148
791
|
$in: any;
|
|
@@ -1155,7 +798,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1155
798
|
$gte: any;
|
|
1156
799
|
$lt: any;
|
|
1157
800
|
$lte: any;
|
|
1158
|
-
},
|
|
801
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1159
802
|
$eq?: any;
|
|
1160
803
|
$ne?: any;
|
|
1161
804
|
$in?: any;
|
|
@@ -1182,7 +825,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1182
825
|
$lt?: any;
|
|
1183
826
|
$lte?: any;
|
|
1184
827
|
}>]>>;
|
|
1185
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
828
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
1186
829
|
$eq: any;
|
|
1187
830
|
$ne: any;
|
|
1188
831
|
$in: any;
|
|
@@ -1195,7 +838,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1195
838
|
$gte: any;
|
|
1196
839
|
$lt: any;
|
|
1197
840
|
$lte: any;
|
|
1198
|
-
},
|
|
841
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1199
842
|
$eq?: any;
|
|
1200
843
|
$ne?: any;
|
|
1201
844
|
$in?: any;
|
|
@@ -1223,23 +866,25 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1223
866
|
$lte?: any;
|
|
1224
867
|
}>]>>;
|
|
1225
868
|
}, "strip", z.ZodTypeAny, {
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
869
|
+
[x: string]: any;
|
|
870
|
+
q?: unknown;
|
|
871
|
+
manage_inventory?: unknown;
|
|
872
|
+
allow_backorder?: unknown;
|
|
873
|
+
created_at?: unknown;
|
|
874
|
+
updated_at?: unknown;
|
|
1231
875
|
}, {
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
876
|
+
[x: string]: any;
|
|
877
|
+
q?: unknown;
|
|
878
|
+
manage_inventory?: unknown;
|
|
879
|
+
allow_backorder?: unknown;
|
|
880
|
+
created_at?: unknown;
|
|
881
|
+
updated_at?: unknown;
|
|
1237
882
|
}>, "many">>>;
|
|
1238
883
|
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
1239
884
|
q: z.ZodOptional<z.ZodString>;
|
|
1240
|
-
manage_inventory:
|
|
1241
|
-
allow_backorder:
|
|
1242
|
-
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<{
|
|
1243
888
|
$eq: any;
|
|
1244
889
|
$ne: any;
|
|
1245
890
|
$in: any;
|
|
@@ -1252,7 +897,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1252
897
|
$gte: any;
|
|
1253
898
|
$lt: any;
|
|
1254
899
|
$lte: any;
|
|
1255
|
-
},
|
|
900
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1256
901
|
$eq?: any;
|
|
1257
902
|
$ne?: any;
|
|
1258
903
|
$in?: any;
|
|
@@ -1279,7 +924,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1279
924
|
$lt?: any;
|
|
1280
925
|
$lte?: any;
|
|
1281
926
|
}>]>>;
|
|
1282
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
927
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
1283
928
|
$eq: any;
|
|
1284
929
|
$ne: any;
|
|
1285
930
|
$in: any;
|
|
@@ -1292,7 +937,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1292
937
|
$gte: any;
|
|
1293
938
|
$lt: any;
|
|
1294
939
|
$lte: any;
|
|
1295
|
-
},
|
|
940
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1296
941
|
$eq?: any;
|
|
1297
942
|
$ne?: any;
|
|
1298
943
|
$in?: any;
|
|
@@ -1320,19 +965,21 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1320
965
|
$lte?: any;
|
|
1321
966
|
}>]>>;
|
|
1322
967
|
}, "strip", z.ZodTypeAny, {
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
968
|
+
[x: string]: any;
|
|
969
|
+
q?: unknown;
|
|
970
|
+
manage_inventory?: unknown;
|
|
971
|
+
allow_backorder?: unknown;
|
|
972
|
+
created_at?: unknown;
|
|
973
|
+
updated_at?: unknown;
|
|
1328
974
|
}, {
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
975
|
+
[x: string]: any;
|
|
976
|
+
q?: unknown;
|
|
977
|
+
manage_inventory?: unknown;
|
|
978
|
+
allow_backorder?: unknown;
|
|
979
|
+
created_at?: unknown;
|
|
980
|
+
updated_at?: unknown;
|
|
1334
981
|
}>, "many">>>;
|
|
1335
|
-
},
|
|
982
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1336
983
|
[x: string]: any;
|
|
1337
984
|
$and?: unknown;
|
|
1338
985
|
$or?: unknown;
|
|
@@ -1344,7 +991,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1344
991
|
export type VendorGetProductVariantParamsType = z.infer<typeof VendorGetProductVariantParams>;
|
|
1345
992
|
export declare const VendorGetProductVariantParams: z.ZodObject<{
|
|
1346
993
|
fields: z.ZodOptional<z.ZodString>;
|
|
1347
|
-
},
|
|
994
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1348
995
|
fields?: string | undefined;
|
|
1349
996
|
}, {
|
|
1350
997
|
fields?: string | undefined;
|
|
@@ -1373,15 +1020,14 @@ export declare const VendorAddProductVariant: z.ZodObject<{
|
|
|
1373
1020
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
1374
1021
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1375
1022
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1376
|
-
attribute_values: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>]>>;
|
|
1377
1023
|
}, "strict", z.ZodTypeAny, {
|
|
1378
1024
|
title: string;
|
|
1379
1025
|
options?: Record<string, string> | undefined;
|
|
1380
1026
|
length?: number | undefined;
|
|
1027
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1381
1028
|
sku?: string | undefined;
|
|
1382
1029
|
ean?: string | undefined;
|
|
1383
1030
|
upc?: string | undefined;
|
|
1384
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1385
1031
|
thumbnail?: string | undefined;
|
|
1386
1032
|
weight?: number | undefined;
|
|
1387
1033
|
height?: number | undefined;
|
|
@@ -1397,15 +1043,14 @@ export declare const VendorAddProductVariant: z.ZodObject<{
|
|
|
1397
1043
|
variant_rank?: number | undefined;
|
|
1398
1044
|
manage_inventory?: boolean | undefined;
|
|
1399
1045
|
allow_backorder?: boolean | undefined;
|
|
1400
|
-
attribute_values?: string[] | Record<string, string | string[]> | undefined;
|
|
1401
1046
|
}, {
|
|
1402
1047
|
title: string;
|
|
1403
1048
|
options?: Record<string, string> | undefined;
|
|
1404
1049
|
length?: number | undefined;
|
|
1050
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1405
1051
|
sku?: string | undefined;
|
|
1406
1052
|
ean?: string | undefined;
|
|
1407
1053
|
upc?: string | undefined;
|
|
1408
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1409
1054
|
thumbnail?: string | undefined;
|
|
1410
1055
|
weight?: number | undefined;
|
|
1411
1056
|
height?: number | undefined;
|
|
@@ -1421,7 +1066,6 @@ export declare const VendorAddProductVariant: z.ZodObject<{
|
|
|
1421
1066
|
variant_rank?: number | undefined;
|
|
1422
1067
|
manage_inventory?: boolean | undefined;
|
|
1423
1068
|
allow_backorder?: boolean | undefined;
|
|
1424
|
-
attribute_values?: string[] | Record<string, string | string[]> | undefined;
|
|
1425
1069
|
}>;
|
|
1426
1070
|
export type VendorUpdateProductVariantType = z.infer<typeof VendorUpdateProductVariant>;
|
|
1427
1071
|
export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
@@ -1447,15 +1091,24 @@ export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
|
1447
1091
|
manage_inventory: z.ZodOptional<z.ZodBoolean>;
|
|
1448
1092
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1449
1093
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1450
|
-
|
|
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
|
+
}>>;
|
|
1451
1104
|
}, "strict", z.ZodTypeAny, {
|
|
1452
1105
|
options?: Record<string, string> | undefined;
|
|
1453
1106
|
length?: number | null | undefined;
|
|
1107
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1108
|
+
title?: string | undefined;
|
|
1454
1109
|
sku?: string | null | undefined;
|
|
1455
1110
|
ean?: string | null | undefined;
|
|
1456
1111
|
upc?: string | null | undefined;
|
|
1457
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1458
|
-
title?: string | undefined;
|
|
1459
1112
|
thumbnail?: string | null | undefined;
|
|
1460
1113
|
weight?: number | null | undefined;
|
|
1461
1114
|
height?: number | null | undefined;
|
|
@@ -1471,15 +1124,18 @@ export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
|
1471
1124
|
variant_rank?: number | undefined;
|
|
1472
1125
|
manage_inventory?: boolean | undefined;
|
|
1473
1126
|
allow_backorder?: boolean | undefined;
|
|
1474
|
-
|
|
1127
|
+
images?: {
|
|
1128
|
+
add?: string[] | undefined;
|
|
1129
|
+
remove?: string[] | undefined;
|
|
1130
|
+
} | undefined;
|
|
1475
1131
|
}, {
|
|
1476
1132
|
options?: Record<string, string> | undefined;
|
|
1477
1133
|
length?: number | null | undefined;
|
|
1134
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1135
|
+
title?: string | undefined;
|
|
1478
1136
|
sku?: string | null | undefined;
|
|
1479
1137
|
ean?: string | null | undefined;
|
|
1480
1138
|
upc?: string | null | undefined;
|
|
1481
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1482
|
-
title?: string | undefined;
|
|
1483
1139
|
thumbnail?: string | null | undefined;
|
|
1484
1140
|
weight?: number | null | undefined;
|
|
1485
1141
|
height?: number | null | undefined;
|
|
@@ -1495,154 +1151,186 @@ export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
|
1495
1151
|
variant_rank?: number | undefined;
|
|
1496
1152
|
manage_inventory?: boolean | undefined;
|
|
1497
1153
|
allow_backorder?: boolean | undefined;
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
fields: z.ZodOptional<z.ZodString>;
|
|
1503
|
-
} & {
|
|
1504
|
-
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
1505
|
-
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
1506
|
-
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1507
|
-
with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
1508
|
-
}, "strip", z.ZodTypeAny, {
|
|
1509
|
-
offset: number;
|
|
1510
|
-
limit: number;
|
|
1511
|
-
order?: string | undefined;
|
|
1512
|
-
fields?: string | undefined;
|
|
1513
|
-
with_deleted?: boolean | undefined;
|
|
1514
|
-
}, {
|
|
1515
|
-
order?: string | undefined;
|
|
1516
|
-
fields?: string | undefined;
|
|
1517
|
-
offset?: unknown;
|
|
1518
|
-
limit?: unknown;
|
|
1519
|
-
with_deleted?: unknown;
|
|
1520
|
-
}>;
|
|
1521
|
-
export type VendorGetProductAttributeParamsType = z.infer<typeof VendorGetProductAttributeParams>;
|
|
1522
|
-
export declare const VendorGetProductAttributeParams: z.ZodObject<{
|
|
1523
|
-
fields: z.ZodOptional<z.ZodString>;
|
|
1524
|
-
}, "strip", z.ZodTypeAny, {
|
|
1525
|
-
fields?: string | undefined;
|
|
1526
|
-
}, {
|
|
1527
|
-
fields?: string | undefined;
|
|
1528
|
-
}>;
|
|
1529
|
-
/**
|
|
1530
|
-
* Two shapes share a single flat body (the middleware-friendly form);
|
|
1531
|
-
* the route branches on the presence of `attribute_id` vs `name`:
|
|
1532
|
-
*
|
|
1533
|
-
* 1. **Attach existing** — `{ attribute_id, attribute_value_ids? | values? }`.
|
|
1534
|
-
* 2. **Inline create** — `{ name, type, values?, is_variant_axis?, ... }`.
|
|
1535
|
-
* Creates a product-scoped `ProductAttribute` (hidden from the
|
|
1536
|
-
* global `/vendor/product-attributes` catalogue), materialises its
|
|
1537
|
-
* values, and links them to the product.
|
|
1538
|
-
*/
|
|
1539
|
-
export type VendorAddProductAttributeType = z.infer<typeof VendorAddProductAttribute>;
|
|
1540
|
-
export declare const VendorAddProductAttribute: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1541
|
-
attribute_id: z.ZodOptional<z.ZodString>;
|
|
1542
|
-
attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1543
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1544
|
-
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
1545
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1546
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1547
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1548
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1549
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1550
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1551
|
-
}, "strict", z.ZodTypeAny, {
|
|
1552
|
-
values?: string[] | undefined;
|
|
1553
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1554
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1555
|
-
name?: string | undefined;
|
|
1556
|
-
description?: string | null | undefined;
|
|
1557
|
-
is_required?: boolean | undefined;
|
|
1558
|
-
is_filterable?: boolean | undefined;
|
|
1559
|
-
is_variant_axis?: boolean | undefined;
|
|
1560
|
-
attribute_id?: string | undefined;
|
|
1561
|
-
attribute_value_ids?: string[] | undefined;
|
|
1562
|
-
}, {
|
|
1563
|
-
values?: string[] | undefined;
|
|
1564
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1565
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1566
|
-
name?: string | undefined;
|
|
1567
|
-
description?: string | null | undefined;
|
|
1568
|
-
is_required?: boolean | undefined;
|
|
1569
|
-
is_filterable?: boolean | undefined;
|
|
1570
|
-
is_variant_axis?: boolean | undefined;
|
|
1571
|
-
attribute_id?: string | undefined;
|
|
1572
|
-
attribute_value_ids?: string[] | undefined;
|
|
1573
|
-
}>, {
|
|
1574
|
-
values?: string[] | undefined;
|
|
1575
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1576
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1577
|
-
name?: string | undefined;
|
|
1578
|
-
description?: string | null | undefined;
|
|
1579
|
-
is_required?: boolean | undefined;
|
|
1580
|
-
is_filterable?: boolean | undefined;
|
|
1581
|
-
is_variant_axis?: boolean | undefined;
|
|
1582
|
-
attribute_id?: string | undefined;
|
|
1583
|
-
attribute_value_ids?: string[] | undefined;
|
|
1584
|
-
}, {
|
|
1585
|
-
values?: string[] | undefined;
|
|
1586
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1587
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1588
|
-
name?: string | undefined;
|
|
1589
|
-
description?: string | null | undefined;
|
|
1590
|
-
is_required?: boolean | undefined;
|
|
1591
|
-
is_filterable?: boolean | undefined;
|
|
1592
|
-
is_variant_axis?: boolean | undefined;
|
|
1593
|
-
attribute_id?: string | undefined;
|
|
1594
|
-
attribute_value_ids?: string[] | undefined;
|
|
1595
|
-
}>, {
|
|
1596
|
-
values?: string[] | undefined;
|
|
1597
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1598
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1599
|
-
name?: string | undefined;
|
|
1600
|
-
description?: string | null | undefined;
|
|
1601
|
-
is_required?: boolean | undefined;
|
|
1602
|
-
is_filterable?: boolean | undefined;
|
|
1603
|
-
is_variant_axis?: boolean | undefined;
|
|
1604
|
-
attribute_id?: string | undefined;
|
|
1605
|
-
attribute_value_ids?: string[] | undefined;
|
|
1606
|
-
}, {
|
|
1607
|
-
values?: string[] | undefined;
|
|
1608
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1609
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1610
|
-
name?: string | undefined;
|
|
1611
|
-
description?: string | null | undefined;
|
|
1612
|
-
is_required?: boolean | undefined;
|
|
1613
|
-
is_filterable?: boolean | undefined;
|
|
1614
|
-
is_variant_axis?: boolean | undefined;
|
|
1615
|
-
attribute_id?: string | undefined;
|
|
1616
|
-
attribute_value_ids?: string[] | undefined;
|
|
1617
|
-
}>, {
|
|
1618
|
-
values?: string[] | undefined;
|
|
1619
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1620
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1621
|
-
name?: string | undefined;
|
|
1622
|
-
description?: string | null | undefined;
|
|
1623
|
-
is_required?: boolean | undefined;
|
|
1624
|
-
is_filterable?: boolean | undefined;
|
|
1625
|
-
is_variant_axis?: boolean | undefined;
|
|
1626
|
-
attribute_id?: string | undefined;
|
|
1627
|
-
attribute_value_ids?: string[] | undefined;
|
|
1628
|
-
}, {
|
|
1629
|
-
values?: string[] | undefined;
|
|
1630
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1631
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1632
|
-
name?: string | undefined;
|
|
1633
|
-
description?: string | null | undefined;
|
|
1634
|
-
is_required?: boolean | undefined;
|
|
1635
|
-
is_filterable?: boolean | undefined;
|
|
1636
|
-
is_variant_axis?: boolean | undefined;
|
|
1637
|
-
attribute_id?: string | undefined;
|
|
1638
|
-
attribute_value_ids?: string[] | undefined;
|
|
1154
|
+
images?: {
|
|
1155
|
+
add?: string[] | undefined;
|
|
1156
|
+
remove?: string[] | undefined;
|
|
1157
|
+
} | undefined;
|
|
1639
1158
|
}>;
|
|
1640
|
-
|
|
1641
|
-
export declare const VendorCancelProductChange: z.ZodObject<{
|
|
1159
|
+
declare const CancelProductChange: z.ZodObject<{
|
|
1642
1160
|
internal_note: z.ZodOptional<z.ZodString>;
|
|
1643
1161
|
}, "strict", z.ZodTypeAny, {
|
|
1644
1162
|
internal_note?: string | undefined;
|
|
1645
1163
|
}, {
|
|
1646
1164
|
internal_note?: string | undefined;
|
|
1647
1165
|
}>;
|
|
1166
|
+
export type VendorCancelProductChangeType = z.infer<typeof CancelProductChange> & AdditionalData;
|
|
1167
|
+
export declare const VendorCancelProductChange: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
1168
|
+
export type VendorBatchProductAttributesType = z.infer<typeof VendorBatchProductAttributes>;
|
|
1169
|
+
export declare const VendorBatchProductAttributes: z.ZodObject<{
|
|
1170
|
+
add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1171
|
+
id: z.ZodString;
|
|
1172
|
+
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1173
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1174
|
+
}, "strict", z.ZodTypeAny, {
|
|
1175
|
+
id: string;
|
|
1176
|
+
value?: string | number | boolean | undefined;
|
|
1177
|
+
value_ids?: string[] | undefined;
|
|
1178
|
+
}, {
|
|
1179
|
+
id: string;
|
|
1180
|
+
value?: string | number | boolean | undefined;
|
|
1181
|
+
value_ids?: string[] | undefined;
|
|
1182
|
+
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1183
|
+
title: z.ZodString;
|
|
1184
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
1185
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1186
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1187
|
+
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1188
|
+
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1189
|
+
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1190
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1191
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1192
|
+
}, "strict", z.ZodTypeAny, {
|
|
1193
|
+
title: string;
|
|
1194
|
+
values?: string[] | undefined;
|
|
1195
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1196
|
+
value?: string | number | boolean | undefined;
|
|
1197
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1198
|
+
is_variant_axis?: boolean | undefined;
|
|
1199
|
+
is_required?: boolean | undefined;
|
|
1200
|
+
description?: string | null | undefined;
|
|
1201
|
+
is_filterable?: boolean | undefined;
|
|
1202
|
+
}, {
|
|
1203
|
+
title: string;
|
|
1204
|
+
values?: string[] | undefined;
|
|
1205
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1206
|
+
value?: string | number | boolean | undefined;
|
|
1207
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1208
|
+
is_variant_axis?: boolean | undefined;
|
|
1209
|
+
is_required?: boolean | undefined;
|
|
1210
|
+
description?: string | null | undefined;
|
|
1211
|
+
is_filterable?: boolean | undefined;
|
|
1212
|
+
}>, {
|
|
1213
|
+
title: string;
|
|
1214
|
+
values?: string[] | undefined;
|
|
1215
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1216
|
+
value?: string | number | boolean | undefined;
|
|
1217
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1218
|
+
is_variant_axis?: boolean | undefined;
|
|
1219
|
+
is_required?: boolean | undefined;
|
|
1220
|
+
description?: string | null | undefined;
|
|
1221
|
+
is_filterable?: boolean | undefined;
|
|
1222
|
+
}, {
|
|
1223
|
+
title: string;
|
|
1224
|
+
values?: string[] | undefined;
|
|
1225
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1226
|
+
value?: string | number | boolean | undefined;
|
|
1227
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1228
|
+
is_variant_axis?: boolean | undefined;
|
|
1229
|
+
is_required?: boolean | undefined;
|
|
1230
|
+
description?: string | null | undefined;
|
|
1231
|
+
is_filterable?: boolean | undefined;
|
|
1232
|
+
}>, {
|
|
1233
|
+
title: string;
|
|
1234
|
+
values?: string[] | undefined;
|
|
1235
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1236
|
+
value?: string | number | boolean | undefined;
|
|
1237
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1238
|
+
is_variant_axis?: boolean | undefined;
|
|
1239
|
+
is_required?: boolean | undefined;
|
|
1240
|
+
description?: string | null | undefined;
|
|
1241
|
+
is_filterable?: boolean | undefined;
|
|
1242
|
+
}, {
|
|
1243
|
+
title: string;
|
|
1244
|
+
values?: string[] | undefined;
|
|
1245
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1246
|
+
value?: string | number | boolean | undefined;
|
|
1247
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1248
|
+
is_variant_axis?: boolean | undefined;
|
|
1249
|
+
is_required?: boolean | undefined;
|
|
1250
|
+
description?: string | null | undefined;
|
|
1251
|
+
is_filterable?: boolean | undefined;
|
|
1252
|
+
}>]>, "many">>;
|
|
1253
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1254
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1255
|
+
id: z.ZodString;
|
|
1256
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1258
|
+
value: z.ZodString;
|
|
1259
|
+
}, "strict", z.ZodTypeAny, {
|
|
1260
|
+
value: string;
|
|
1261
|
+
}, {
|
|
1262
|
+
value: string;
|
|
1263
|
+
}>]>, "many">>;
|
|
1264
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1265
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1266
|
+
}, "strict", z.ZodTypeAny, {
|
|
1267
|
+
id: string;
|
|
1268
|
+
value?: string | number | boolean | undefined;
|
|
1269
|
+
title?: string | undefined;
|
|
1270
|
+
add?: (string | {
|
|
1271
|
+
value: string;
|
|
1272
|
+
})[] | undefined;
|
|
1273
|
+
remove?: string[] | undefined;
|
|
1274
|
+
}, {
|
|
1275
|
+
id: string;
|
|
1276
|
+
value?: string | number | boolean | undefined;
|
|
1277
|
+
title?: string | undefined;
|
|
1278
|
+
add?: (string | {
|
|
1279
|
+
value: string;
|
|
1280
|
+
})[] | undefined;
|
|
1281
|
+
remove?: string[] | undefined;
|
|
1282
|
+
}>, "many">>;
|
|
1283
|
+
}, "strict", z.ZodTypeAny, {
|
|
1284
|
+
update?: {
|
|
1285
|
+
id: string;
|
|
1286
|
+
value?: string | number | boolean | undefined;
|
|
1287
|
+
title?: string | undefined;
|
|
1288
|
+
add?: (string | {
|
|
1289
|
+
value: string;
|
|
1290
|
+
})[] | undefined;
|
|
1291
|
+
remove?: string[] | undefined;
|
|
1292
|
+
}[] | undefined;
|
|
1293
|
+
add?: ({
|
|
1294
|
+
id: string;
|
|
1295
|
+
value?: string | number | boolean | undefined;
|
|
1296
|
+
value_ids?: string[] | undefined;
|
|
1297
|
+
} | {
|
|
1298
|
+
title: string;
|
|
1299
|
+
values?: string[] | undefined;
|
|
1300
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1301
|
+
value?: string | number | boolean | undefined;
|
|
1302
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1303
|
+
is_variant_axis?: boolean | undefined;
|
|
1304
|
+
is_required?: boolean | undefined;
|
|
1305
|
+
description?: string | null | undefined;
|
|
1306
|
+
is_filterable?: boolean | undefined;
|
|
1307
|
+
})[] | undefined;
|
|
1308
|
+
remove?: string[] | undefined;
|
|
1309
|
+
}, {
|
|
1310
|
+
update?: {
|
|
1311
|
+
id: string;
|
|
1312
|
+
value?: string | number | boolean | undefined;
|
|
1313
|
+
title?: string | undefined;
|
|
1314
|
+
add?: (string | {
|
|
1315
|
+
value: string;
|
|
1316
|
+
})[] | undefined;
|
|
1317
|
+
remove?: string[] | undefined;
|
|
1318
|
+
}[] | undefined;
|
|
1319
|
+
add?: ({
|
|
1320
|
+
id: string;
|
|
1321
|
+
value?: string | number | boolean | undefined;
|
|
1322
|
+
value_ids?: string[] | undefined;
|
|
1323
|
+
} | {
|
|
1324
|
+
title: string;
|
|
1325
|
+
values?: string[] | undefined;
|
|
1326
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1327
|
+
value?: string | number | boolean | undefined;
|
|
1328
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1329
|
+
is_variant_axis?: boolean | undefined;
|
|
1330
|
+
is_required?: boolean | undefined;
|
|
1331
|
+
description?: string | null | undefined;
|
|
1332
|
+
is_filterable?: boolean | undefined;
|
|
1333
|
+
})[] | undefined;
|
|
1334
|
+
remove?: string[] | undefined;
|
|
1335
|
+
}>;
|
|
1648
1336
|
export {};
|