@mercurjs/core 2.2.0-canary.2 → 2.2.0-canary.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.d.ts +20 -0
- package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.js +66 -0
- package/.medusa/server/src/api/admin/claims/[id]/request/route.d.ts +10 -0
- package/.medusa/server/src/api/admin/claims/[id]/request/route.js +80 -0
- package/.medusa/server/src/api/admin/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 +55 -0
- package/.medusa/server/src/api/admin/{product-brands → collections}/query-config.d.ts +2 -2
- package/.medusa/server/src/api/admin/collections/query-config.js +29 -0
- package/.medusa/server/src/api/admin/collections/route.d.ts +6 -0
- package/.medusa/server/src/api/admin/collections/route.js +36 -0
- package/.medusa/server/src/api/admin/collections/validators.d.ts +271 -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/validators.d.ts +53 -26
- package/.medusa/server/src/api/admin/commission-rates/validators.js +11 -8
- package/.medusa/server/src/api/{vendor/product-brands → admin/customer-groups}/middlewares.d.ts +1 -1
- package/.medusa/server/src/api/admin/customer-groups/middlewares.js +48 -0
- package/.medusa/server/src/api/admin/customer-groups/validators.d.ts +753 -0
- package/.medusa/server/src/api/admin/customer-groups/validators.js +13 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.d.ts +22 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.js +68 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/request/route.d.ts +10 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/request/route.js +81 -0
- package/.medusa/server/src/api/admin/members/validators.d.ts +2 -2
- package/.medusa/server/src/api/admin/middlewares.js +31 -40
- package/.medusa/server/src/api/admin/offers/query-config.js +8 -8
- package/.medusa/server/src/api/admin/offers/validators.d.ts +8 -8
- package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.d.ts +12 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.js +27 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/items/route.d.ts +26 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/items/route.js +57 -0
- package/.medusa/server/src/api/admin/order-groups/apply-request-filter.d.ts +2 -0
- package/.medusa/server/src/api/admin/order-groups/apply-request-filter.js +140 -0
- package/.medusa/server/src/api/admin/order-groups/middlewares.js +3 -1
- package/.medusa/server/src/api/admin/order-groups/validators.d.ts +7 -4
- package/.medusa/server/src/api/admin/order-groups/validators.js +7 -1
- package/.medusa/server/src/api/admin/orders/[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 +11 -0
- package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.js +24 -0
- package/.medusa/server/src/api/admin/orders/validators.d.ts +73 -27
- package/.medusa/server/src/api/admin/orders/validators.js +9 -29
- package/.medusa/server/src/api/admin/payouts/validators.d.ts +2 -2
- package/.medusa/server/src/api/admin/product-attributes/[id]/route.js +4 -4
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.js +4 -4
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/route.js +2 -2
- package/.medusa/server/src/api/admin/product-attributes/middlewares.js +15 -1
- package/.medusa/server/src/api/admin/product-attributes/query-config.js +1 -2
- package/.medusa/server/src/api/admin/product-attributes/route.js +7 -4
- package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +21 -25
- package/.medusa/server/src/api/admin/product-attributes/validators.js +2 -15
- package/.medusa/server/src/api/admin/product-categories/[id]/products/route.js +3 -3
- package/.medusa/server/src/api/admin/product-categories/[id]/route.js +8 -10
- package/.medusa/server/src/api/admin/product-categories/query-config.js +7 -2
- package/.medusa/server/src/api/admin/product-categories/route.js +5 -8
- package/.medusa/server/src/api/admin/product-categories/validators.d.ts +70 -8
- package/.medusa/server/src/api/admin/product-categories/validators.js +11 -1
- package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.js +5 -6
- package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.js +5 -5
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +10 -4
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +60 -23
- package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.d.ts +3 -2
- package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +11 -22
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +2 -3
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +40 -25
- package/.medusa/server/src/api/admin/products/[id]/confirm/route.d.ts +12 -0
- package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +16 -6
- package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +8 -1
- package/.medusa/server/src/api/admin/products/[id]/preview/route.js +20 -7
- package/.medusa/server/src/api/admin/products/[id]/reject/route.d.ts +8 -0
- package/.medusa/server/src/api/admin/products/[id]/reject/route.js +13 -8
- package/.medusa/server/src/api/admin/products/[id]/request-changes/route.d.ts +9 -0
- package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +16 -10
- package/.medusa/server/src/api/admin/products/[id]/route.js +16 -6
- package/.medusa/server/src/api/admin/products/[id]/variants/[variant_id]/route.js +5 -5
- package/.medusa/server/src/api/admin/products/[id]/variants/route.js +22 -4
- package/.medusa/server/src/api/admin/products/middlewares.js +10 -4
- package/.medusa/server/src/api/admin/products/query-config.js +12 -18
- package/.medusa/server/src/api/admin/products/route.js +14 -8
- package/.medusa/server/src/api/admin/products/validators.d.ts +1053 -203
- package/.medusa/server/src/api/admin/products/validators.js +119 -16
- package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.d.ts +9 -0
- package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.js +35 -0
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +20 -21
- package/.medusa/server/src/api/admin/sellers/validators.js +3 -4
- package/.medusa/server/src/api/admin/shipping-options/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/shipping-options/middlewares.js +46 -0
- package/.medusa/server/src/api/admin/shipping-profiles/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/shipping-profiles/middlewares.js +46 -0
- package/.medusa/server/src/api/admin/stock-locations/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/stock-locations/middlewares.js +46 -0
- package/.medusa/server/src/api/store/carts/[id]/line-items/route.js +23 -5
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +0 -3
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +1 -2
- package/.medusa/server/src/api/store/middlewares.js +7 -9
- package/.medusa/server/src/api/store/order-groups/validators.d.ts +2 -2
- package/.medusa/server/src/api/store/product-attributes/validators.d.ts +4 -4
- package/.medusa/server/src/api/store/products/[id]/route.js +3 -18
- package/.medusa/server/src/api/store/products/middlewares.js +1 -7
- package/.medusa/server/src/api/store/products/query-config.d.ts +1 -3
- package/.medusa/server/src/api/store/products/query-config.js +14 -17
- package/.medusa/server/src/api/store/products/route.js +3 -19
- package/.medusa/server/src/api/store/products/validators.d.ts +0 -6
- package/.medusa/server/src/api/store/products/validators.js +1 -2
- package/.medusa/server/src/api/store/sellers/validators.d.ts +2 -2
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.d.ts +17 -0
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +58 -0
- package/.medusa/server/src/api/utils/format-product-attributes.d.ts +51 -5
- package/.medusa/server/src/api/utils/format-product-attributes.js +176 -31
- 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 +48 -0
- package/.medusa/server/src/api/utils/offers.js +136 -0
- package/.medusa/server/src/api/utils/order-commission-lines.d.ts +18 -0
- package/.medusa/server/src/api/utils/order-commission-lines.js +78 -0
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.js +17 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.js +15 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.js +46 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.js +26 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.js +39 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.js +26 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.d.ts +12 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.js +47 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.js +15 -0
- package/.medusa/server/src/api/vendor/claims/[id]/request/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/request/route.js +34 -0
- package/.medusa/server/src/api/vendor/claims/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/claims/[id]/route.js +19 -0
- package/.medusa/server/src/api/vendor/claims/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/claims/helpers.js +19 -0
- package/.medusa/server/src/api/vendor/claims/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/claims/middlewares.js +184 -0
- package/.medusa/server/src/api/vendor/claims/query-config.d.ts +12 -0
- package/.medusa/server/src/api/vendor/claims/query-config.js +31 -0
- package/.medusa/server/src/api/vendor/claims/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/claims/route.js +35 -0
- package/.medusa/server/src/api/vendor/claims/validators.d.ts +378 -0
- package/.medusa/server/src/api/vendor/claims/validators.js +89 -0
- package/.medusa/server/src/api/vendor/collections/query-config.js +7 -1
- package/.medusa/server/src/api/vendor/collections/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/currencies/validators.d.ts +2 -2
- 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/{store/product-brands → vendor/customer-groups}/query-config.d.ts +2 -3
- package/.medusa/server/src/api/vendor/customer-groups/query-config.js +22 -0
- package/.medusa/server/src/api/vendor/customer-groups/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/customer-groups/route.js +35 -0
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +157 -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 +28 -0
- package/.medusa/server/src/api/vendor/customers/[id]/route.js +15 -1
- package/.medusa/server/src/api/vendor/customers/middlewares.js +9 -1
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +16 -2
- 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 +12 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.js +47 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.js +15 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.js +34 -0
- package/.medusa/server/src/api/vendor/exchanges/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/exchanges/helpers.js +19 -0
- package/.medusa/server/src/api/vendor/exchanges/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/exchanges/middlewares.js +155 -0
- package/.medusa/server/src/api/vendor/exchanges/query-config.d.ts +7 -0
- package/.medusa/server/src/api/vendor/exchanges/query-config.js +23 -0
- package/.medusa/server/src/api/vendor/exchanges/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/exchanges/route.js +35 -0
- package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +313 -0
- package/.medusa/server/src/api/vendor/exchanges/validators.js +71 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +16 -16
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +8 -8
- package/.medusa/server/src/api/vendor/middlewares.js +79 -71
- package/.medusa/server/src/api/vendor/offers/query-config.js +8 -8
- package/.medusa/server/src/api/vendor/offers/validators.d.ts +10 -10
- package/.medusa/server/src/api/vendor/offers/validators.js +4 -4
- package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.d.ts +14 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.js +29 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.d.ts +14 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.js +41 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.d.ts +10 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.js +30 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.d.ts +16 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.js +45 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.d.ts +10 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.js +25 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/route.d.ts +10 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/route.js +26 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.d.ts +14 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.js +41 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.js +20 -0
- package/.medusa/server/src/api/vendor/order-edits/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/order-edits/middlewares.js +106 -0
- package/.medusa/server/src/api/vendor/order-edits/route.d.ts +10 -0
- package/.medusa/server/src/api/vendor/order-edits/route.js +21 -0
- package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +166 -0
- package/.medusa/server/src/api/vendor/order-edits/validators.js +50 -0
- package/.medusa/server/src/api/vendor/orders/[id]/commission-lines/route.d.ts +7 -0
- package/.medusa/server/src/api/vendor/orders/[id]/commission-lines/route.js +18 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +3 -3
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.js +3 -3
- package/.medusa/server/src/api/vendor/orders/apply-request-filter.d.ts +2 -0
- package/.medusa/server/src/api/vendor/orders/apply-request-filter.js +112 -0
- package/.medusa/server/src/api/vendor/orders/middlewares.js +3 -1
- package/.medusa/server/src/api/vendor/orders/query-config.js +34 -11
- package/.medusa/server/src/api/vendor/orders/resolve-offer-items.d.ts +41 -0
- package/.medusa/server/src/api/vendor/orders/resolve-offer-items.js +75 -0
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +7 -4
- package/.medusa/server/src/api/vendor/orders/validators.js +7 -1
- package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.js +25 -0
- package/.medusa/server/src/api/vendor/payment-collections/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payment-collections/helpers.js +30 -0
- package/.medusa/server/src/api/vendor/payment-collections/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payment-collections/middlewares.js +17 -0
- package/.medusa/server/src/api/vendor/payment-collections/query-config.d.ts +7 -0
- package/.medusa/server/src/api/vendor/payment-collections/query-config.js +26 -0
- package/.medusa/server/src/api/vendor/payment-collections/validators.d.ts +17 -0
- package/.medusa/server/src/api/vendor/payment-collections/validators.js +12 -0
- package/.medusa/server/src/api/vendor/payments/helpers.d.ts +9 -0
- package/.medusa/server/src/api/vendor/payments/helpers.js +23 -8
- package/.medusa/server/src/api/vendor/payments/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/product-attributes/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/product-attributes/route.js +4 -1
- package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +19 -23
- package/.medusa/server/src/api/vendor/product-attributes/validators.js +2 -15
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +36 -0
- package/.medusa/server/src/api/vendor/product-categories/middlewares.js +9 -1
- package/.medusa/server/src/api/vendor/product-categories/query-config.js +7 -2
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +21 -4
- package/.medusa/server/src/api/vendor/product-categories/validators.js +7 -2
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +6 -6
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +18 -5
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +77 -17
- package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.d.ts +12 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.js +46 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +10 -6
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +58 -25
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.d.ts +5 -7
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +12 -15
- package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +18 -9
- package/.medusa/server/src/api/vendor/products/[id]/route.js +43 -16
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +11 -9
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +46 -21
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +9 -5
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +28 -10
- package/.medusa/server/src/api/vendor/products/helpers.d.ts +8 -0
- package/.medusa/server/src/api/vendor/products/helpers.js +26 -0
- package/.medusa/server/src/api/vendor/products/middlewares.js +36 -5
- package/.medusa/server/src/api/vendor/products/query-config.js +17 -17
- package/.medusa/server/src/api/vendor/products/route.d.ts +11 -1
- package/.medusa/server/src/api/vendor/products/route.js +35 -11
- package/.medusa/server/src/api/vendor/products/validators.d.ts +422 -79
- package/.medusa/server/src/api/vendor/products/validators.js +130 -14
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/reservations/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/reservations/[id]/route.js +39 -0
- package/.medusa/server/src/api/vendor/reservations/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/reservations/helpers.js +21 -0
- package/.medusa/server/src/api/{admin/product-brands → vendor/reservations}/middlewares.d.ts +1 -1
- package/.medusa/server/src/api/vendor/reservations/middlewares.js +44 -0
- package/.medusa/server/src/api/vendor/reservations/query-config.d.ts +19 -0
- package/.medusa/server/src/api/vendor/reservations/query-config.js +48 -0
- package/.medusa/server/src/api/vendor/reservations/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/reservations/route.js +35 -0
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +296 -0
- package/.medusa/server/src/api/vendor/reservations/validators.js +40 -0
- package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +3 -3
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/sellers/route.js +9 -2
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +7 -7
- package/.medusa/server/src/api/vendor/sellers/validators.js +5 -2
- package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +13 -1
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +43 -40
- package/.medusa/server/src/api/vendor/shipping-options/validators.js +2 -1
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/stores/validators.d.ts +2 -2
- package/.medusa/server/src/links/cart-line-item-offer-link.js +9 -2
- package/.medusa/server/src/links/category-seller-link.js +2 -2
- package/.medusa/server/src/links/media-product-category-link.d.ts +12 -0
- package/.medusa/server/src/links/media-product-category-link.js +23 -0
- package/.medusa/server/src/links/media-product-collection-link.d.ts +11 -0
- package/.medusa/server/src/links/media-product-collection-link.js +22 -0
- package/.medusa/server/src/links/offer-price-link.js +13 -0
- package/.medusa/server/src/links/offer-variant-link.js +2 -2
- package/.medusa/server/src/links/order-line-item-offer-link.js +10 -2
- package/.medusa/server/src/links/product-attribute-category-link.d.ts +16 -0
- package/.medusa/server/src/links/product-attribute-category-link.js +40 -0
- package/.medusa/server/src/links/product-attribute-product-link.d.ts +10 -0
- package/.medusa/server/src/links/product-attribute-product-link.js +29 -0
- package/.medusa/server/src/links/product-attribute-value-link.d.ts +22 -0
- package/.medusa/server/src/links/product-attribute-value-link.js +46 -0
- package/.medusa/server/src/links/product-change-link.d.ts +8 -0
- package/.medusa/server/src/links/product-change-link.js +27 -0
- package/.medusa/server/src/links/product-seller-link.js +2 -2
- package/.medusa/server/src/links/product-variant-attribute-link.js +21 -0
- package/.medusa/server/src/links/product-variant-attribute-value-link.js +21 -0
- package/.medusa/server/src/links/seller-customer-group-link.d.ts +2 -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/modules/commission/index.d.ts +14 -0
- package/.medusa/server/src/modules/commission/index.js +3 -1
- package/.medusa/server/src/modules/commission/loaders/seed-default-commission-rate.d.ts +11 -0
- package/.medusa/server/src/modules/commission/loaders/seed-default-commission-rate.js +35 -0
- package/.medusa/server/src/modules/{product/migrations/Migration20260414141012.d.ts → commission/migrations/Migration20260615120000.d.ts} +1 -1
- package/.medusa/server/src/modules/commission/migrations/Migration20260615120000.js +46 -0
- package/.medusa/server/src/modules/commission/models/commission-line.d.ts +2 -1
- package/.medusa/server/src/modules/commission/models/commission-line.js +3 -2
- package/.medusa/server/src/modules/commission/models/commission-rate-value.d.ts +25 -0
- package/.medusa/server/src/modules/commission/models/commission-rate-value.js +17 -0
- package/.medusa/server/src/modules/commission/models/commission-rate.d.ts +9 -4
- package/.medusa/server/src/modules/commission/models/commission-rate.js +9 -6
- package/.medusa/server/src/modules/commission/models/commission-rule.d.ts +8 -3
- package/.medusa/server/src/modules/commission/models/index.d.ts +1 -0
- package/.medusa/server/src/modules/commission/models/index.js +4 -2
- package/.medusa/server/src/modules/commission/service.d.ts +74 -9
- package/.medusa/server/src/modules/commission/service.js +147 -114
- package/.medusa/server/src/modules/media/index.d.ts +21 -0
- package/.medusa/server/src/modules/{subscription → media}/index.js +2 -2
- package/.medusa/server/src/modules/{product/migrations/Migration20260415151424.d.ts → media/migrations/Migration20260616000000.d.ts} +1 -1
- package/.medusa/server/src/modules/media/migrations/Migration20260616000000.js +16 -0
- package/.medusa/server/src/modules/media/models/image.d.ts +28 -0
- package/.medusa/server/src/modules/media/models/image.js +37 -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/service.d.ts +17 -0
- package/.medusa/server/src/modules/media/service.js +10 -0
- package/.medusa/server/src/modules/{product/migrations/Migration20260416104248.d.ts → offer/migrations/Migration20260526000000.d.ts} +1 -1
- package/.medusa/server/src/modules/offer/migrations/Migration20260526000000.js +16 -0
- package/.medusa/server/src/modules/offer/models/offer.d.ts +0 -1
- package/.medusa/server/src/modules/offer/models/offer.js +1 -7
- package/.medusa/server/src/modules/offer/service.d.ts +0 -1
- package/.medusa/server/src/modules/product-attribute/index.d.ts +36 -0
- package/.medusa/server/src/modules/product-attribute/index.js +14 -0
- package/.medusa/server/src/modules/product-attribute/joiner-config.d.ts +1 -0
- package/.medusa/server/src/modules/product-attribute/joiner-config.js +17 -0
- package/.medusa/server/src/modules/{product/migrations/Migration20260416105443.d.ts → product-attribute/migrations/Migration20260601000000.d.ts} +1 -1
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000000.js +62 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.d.ts +11 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.js +29 -0
- package/.medusa/server/src/modules/product-attribute/models/index.d.ts +2 -0
- package/.medusa/server/src/modules/product-attribute/models/index.js +11 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.d.ts +25 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +29 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +26 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +53 -0
- package/.medusa/server/src/modules/product-attribute/service.d.ts +55 -0
- package/.medusa/server/src/modules/product-attribute/service.js +15 -0
- package/.medusa/server/src/modules/product-edit/index.d.ts +36 -0
- package/.medusa/server/src/modules/product-edit/index.js +14 -0
- package/.medusa/server/src/modules/product-edit/joiner-config.d.ts +1 -0
- package/.medusa/server/src/modules/product-edit/joiner-config.js +17 -0
- package/.medusa/server/src/modules/product-edit/migrations/Migration20260601130000.d.ts +5 -0
- package/.medusa/server/src/modules/product-edit/migrations/Migration20260601130000.js +78 -0
- package/.medusa/server/src/modules/product-edit/models/index.d.ts +2 -0
- package/.medusa/server/src/modules/product-edit/models/index.js +11 -0
- package/.medusa/server/src/modules/product-edit/models/product-change-action.d.ts +49 -0
- package/.medusa/server/src/modules/{product → product-edit}/models/product-change-action.js +1 -1
- package/.medusa/server/src/modules/product-edit/models/product-change.d.ts +31 -0
- package/.medusa/server/src/modules/product-edit/models/product-change.js +52 -0
- package/.medusa/server/src/modules/product-edit/service.d.ts +84 -0
- package/.medusa/server/src/modules/product-edit/service.js +15 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260616120000.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260616120000.js +16 -0
- package/.medusa/server/src/modules/seller/models/address.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/member-invite.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/member.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/payment-details.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/payment-details.js +3 -3
- package/.medusa/server/src/modules/seller/models/professional-details.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/seller-member.d.ts +4 -4
- package/.medusa/server/src/modules/seller/models/seller.d.ts +2 -2
- package/.medusa/server/src/modules/seller/service.d.ts +16 -16
- package/.medusa/server/src/subscribers/link-order-line-items-to-offers.d.ts +6 -0
- package/.medusa/server/src/subscribers/link-order-line-items-to-offers.js +94 -0
- package/.medusa/server/src/subscribers/order-edit-confirmed.d.ts +12 -0
- package/.medusa/server/src/subscribers/order-edit-confirmed.js +34 -0
- package/.medusa/server/src/types/cart-line-item.d.ts +0 -9
- package/.medusa/server/src/utils/dashboard/dashboard-base.js +6 -2
- package/.medusa/server/src/utils/disable-medusa-middlewares.js +7 -1
- package/.medusa/server/src/with-mercur.js +1 -6
- package/.medusa/server/src/workflows/cart/hooks/before-refreshing-payment-collection.js +36 -0
- package/.medusa/server/src/workflows/cart/hooks/index.d.ts +3 -2
- package/.medusa/server/src/workflows/cart/hooks/index.js +4 -3
- package/.medusa/server/src/workflows/cart/hooks/set-pricing-context.js +94 -0
- package/.medusa/server/src/workflows/cart/hooks/validate.d.ts +1 -0
- package/.medusa/server/src/workflows/cart/hooks/validate.js +107 -0
- package/.medusa/server/src/workflows/cart/steps/index.d.ts +0 -3
- package/.medusa/server/src/workflows/cart/steps/index.js +1 -4
- package/.medusa/server/src/workflows/cart/utils/fields.js +29 -2
- package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +29 -3
- package/.medusa/server/src/workflows/cart/workflows/index.d.ts +0 -2
- package/.medusa/server/src/workflows/cart/workflows/index.js +1 -3
- package/.medusa/server/src/workflows/commission/steps/create-commission-rates.d.ts +13 -4
- 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 +6 -2
- package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.js +5 -1
- package/.medusa/server/src/workflows/commission/steps/validate-commission-rates-deletable.d.ts +5 -0
- package/.medusa/server/src/workflows/commission/steps/validate-commission-rates-deletable.js +22 -0
- package/.medusa/server/src/workflows/commission/workflows/create-commission-rates.d.ts +13 -4
- package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.js +3 -1
- package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.js +2 -1
- package/.medusa/server/src/workflows/commission/workflows/update-commission-rates.d.ts +13 -4
- package/.medusa/server/src/workflows/{subscription/workflows → customer-group}/index.js +3 -7
- package/.medusa/server/src/workflows/customer-group/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/customer-group/steps/index.js +18 -0
- package/.medusa/server/src/workflows/customer-group/steps/link-seller-customer-group.d.ts +6 -0
- package/.medusa/server/src/workflows/customer-group/steps/link-seller-customer-group.js +38 -0
- package/.medusa/server/src/workflows/customer-group/workflows/create-seller-customer-groups.d.ts +7 -0
- package/.medusa/server/src/workflows/customer-group/workflows/create-seller-customer-groups.js +20 -0
- package/.medusa/server/src/workflows/customer-group/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/{subscription/steps → customer-group/workflows}/index.js +2 -7
- package/.medusa/server/src/workflows/index.d.ts +3 -1
- package/.medusa/server/src/workflows/index.js +4 -2
- package/.medusa/server/src/workflows/media/index.d.ts +2 -0
- package/.medusa/server/src/workflows/{subscription → media}/index.js +1 -1
- package/.medusa/server/src/workflows/media/steps/create-images.d.ts +23 -0
- package/.medusa/server/src/workflows/media/steps/create-images.js +24 -0
- package/.medusa/server/src/workflows/media/steps/delete-images.d.ts +6 -0
- package/.medusa/server/src/workflows/media/steps/delete-images.js +24 -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 +16 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-category-with-images.js +28 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-collection-with-images.d.ts +16 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-collection-with-images.js +28 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-category-with-images.d.ts +9 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-category-with-images.js +26 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-collection-with-images.d.ts +10 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-collection-with-images.js +27 -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 +24 -0
- package/.medusa/server/src/workflows/media/workflows/set-category-images.js +80 -0
- package/.medusa/server/src/workflows/media/workflows/set-collection-images.d.ts +25 -0
- package/.medusa/server/src/workflows/media/workflows/set-collection-images.js +81 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-category-with-images.d.ts +16 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-category-with-images.js +26 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-collection-with-images.d.ts +16 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-collection-with-images.js +26 -0
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.d.ts +22 -0
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +64 -0
- package/.medusa/server/src/workflows/offer/steps/create-offers.d.ts +0 -1
- package/.medusa/server/src/workflows/offer/steps/delete-offers.d.ts +6 -1
- package/.medusa/server/src/workflows/offer/steps/delete-offers.js +10 -6
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +15 -0
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +61 -0
- package/.medusa/server/src/workflows/offer/steps/index.d.ts +4 -1
- package/.medusa/server/src/workflows/offer/steps/index.js +5 -2
- package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.d.ts +3 -0
- package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.js +15 -0
- package/.medusa/server/src/workflows/offer/steps/update-offers.d.ts +0 -1
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.d.ts +17 -0
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +27 -0
- package/.medusa/server/src/workflows/offer/utils/index.d.ts +1 -0
- package/.medusa/server/src/workflows/offer/utils/index.js +2 -1
- package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.d.ts +17 -31
- package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.js +1 -1
- package/.medusa/server/src/workflows/offer/workflows/create-offers.d.ts +12 -111
- package/.medusa/server/src/workflows/offer/workflows/create-offers.js +98 -45
- package/.medusa/server/src/workflows/offer/workflows/delete-offers.js +2 -2
- package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +21 -116
- package/.medusa/server/src/workflows/offer/workflows/update-offers.js +136 -20
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +1 -1
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +3 -4
- package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.d.ts +7 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.js +151 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.d.ts +7 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.js +159 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.d.ts +7 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.js +165 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.d.ts +1 -1
- package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +3 -4
- package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.d.ts +10 -33
- package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +3 -4
- 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/payout/workflows/create-payout.js +21 -8
- package/.medusa/server/src/workflows/product/events.d.ts +5 -47
- package/.medusa/server/src/workflows/product/events.js +7 -49
- package/.medusa/server/src/workflows/product/index.d.ts +1 -1
- package/.medusa/server/src/workflows/product/index.js +2 -2
- package/.medusa/server/src/workflows/product/steps/index.d.ts +3 -28
- package/.medusa/server/src/workflows/product/steps/index.js +4 -29
- package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.d.ts +28 -0
- package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.js +72 -0
- package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.d.ts +90 -0
- package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.js +185 -0
- package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +19 -0
- package/.medusa/server/src/workflows/product/steps/validate-products-status.js +28 -0
- package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +2 -21
- package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +13 -1
- package/.medusa/server/src/workflows/product/workflows/confirm-products.js +41 -30
- package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +81 -3
- package/.medusa/server/src/workflows/product/workflows/create-products.js +253 -17
- package/.medusa/server/src/workflows/product/workflows/index.d.ts +3 -26
- package/.medusa/server/src/workflows/product/workflows/index.js +4 -27
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +1 -1
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +3 -4
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +1 -1
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +3 -4
- package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +8 -1
- package/.medusa/server/src/workflows/product/workflows/reject-product.js +42 -38
- package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +25 -0
- package/.medusa/server/src/workflows/product/workflows/request-product-change.js +69 -0
- package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +39 -3
- package/.medusa/server/src/workflows/product/workflows/update-products.js +148 -10
- package/.medusa/server/src/workflows/product-attribute/events.d.ts +19 -0
- package/.medusa/server/src/workflows/product-attribute/events.js +23 -0
- package/.medusa/server/src/workflows/product-attribute/index.d.ts +3 -0
- package/.medusa/server/src/workflows/product-attribute/index.js +20 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.d.ts +37 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.d.ts +44 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +18 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attribute-values.d.ts +1 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attribute-values.js +18 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attributes.d.ts +1 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attributes.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +10 -0
- package/.medusa/server/src/workflows/product-attribute/steps/index.js +27 -0
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +38 -0
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +23 -0
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attributes.d.ts +38 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/update-product-attributes.js +7 -6
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.d.ts +43 -0
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.js +51 -0
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.d.ts +7 -0
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.js +59 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.d.ts +6 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.js +20 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.d.ts +7 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.js +20 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.d.ts +52 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.js +120 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.d.ts +23 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.js +252 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.js +26 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.d.ts +19 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.js +64 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.d.ts +16 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.js +40 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +23 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +31 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.d.ts +17 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.js +62 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +13 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/index.js +30 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.d.ts +135 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.js +43 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.d.ts +24 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.js +27 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.js +27 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.d.ts +23 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.js +67 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.js +27 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +26 -0
- package/.medusa/server/src/workflows/product-edit/events.d.ts +13 -0
- package/.medusa/server/src/workflows/product-edit/events.js +17 -0
- package/.medusa/server/src/workflows/product-edit/index.d.ts +1 -0
- package/.medusa/server/src/workflows/product-edit/index.js +2 -1
- package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.d.ts +38 -0
- package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.js +18 -0
- package/.medusa/server/src/workflows/product-edit/steps/apply-variant-image-links.d.ts +24 -0
- package/.medusa/server/src/workflows/product-edit/steps/apply-variant-image-links.js +41 -0
- package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.d.ts +38 -2
- package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.js +28 -10
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.d.ts +15 -0
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +25 -0
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +46 -3
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +44 -7
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +41 -14
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +20 -11
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +46 -16
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +11 -18
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +44 -3
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +37 -10
- package/.medusa/server/src/workflows/product-edit/steps/index.d.ts +6 -3
- package/.medusa/server/src/workflows/product-edit/steps/index.js +7 -4
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +49 -0
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +34 -0
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +7 -7
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +29 -13
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.d.ts +10 -0
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.js +14 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.d.ts +23 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +139 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +38 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +213 -0
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +20 -13
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +16 -23
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.d.ts +17 -0
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.js +35 -0
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.d.ts +30 -0
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +55 -0
- package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.d.ts +17 -0
- package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.js +26 -0
- package/.medusa/server/src/workflows/product-edit/workflows/index.d.ts +10 -8
- package/.medusa/server/src/workflows/product-edit/workflows/index.js +11 -9
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +18 -16
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +32 -44
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +55 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +198 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +22 -15
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +126 -50
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.d.ts +35 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +206 -0
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +36 -0
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +53 -0
- package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.d.ts +18 -0
- package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.js +36 -0
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.d.ts +41 -0
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +58 -0
- 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/add-seller-member.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.d.ts +20 -2
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +1 -1
- package/.medusa/server/src/workflows/seller/workflows/update-member.d.ts +2 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-address.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-address.js +1 -1
- package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.js +1 -1
- package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.js +1 -1
- package/.medusa/server/src/workflows/seller/workflows/update-seller.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller.js +1 -1
- package/package.json +3 -3
- package/.medusa/server/src/api/admin/product-brands/[id]/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/product-brands/[id]/route.js +0 -51
- package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.d.ts +0 -3
- package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.js +0 -20
- package/.medusa/server/src/api/admin/product-brands/middlewares.js +0 -49
- package/.medusa/server/src/api/admin/product-brands/query-config.js +0 -24
- package/.medusa/server/src/api/admin/product-brands/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/product-brands/route.js +0 -38
- package/.medusa/server/src/api/admin/product-brands/validators.d.ts +0 -284
- package/.medusa/server/src/api/admin/product-brands/validators.js +0 -41
- package/.medusa/server/src/api/admin/products/batch/route.d.ts +0 -4
- package/.medusa/server/src/api/admin/products/batch/route.js +0 -36
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.js +0 -43
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.d.ts +0 -4
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.js +0 -24
- package/.medusa/server/src/api/admin/subscription-plans/[id]/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/subscription-plans/[id]/route.js +0 -43
- package/.medusa/server/src/api/admin/subscription-plans/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/admin/subscription-plans/middlewares.js +0 -81
- package/.medusa/server/src/api/admin/subscription-plans/query-config.d.ts +0 -17
- package/.medusa/server/src/api/admin/subscription-plans/query-config.js +0 -43
- package/.medusa/server/src/api/admin/subscription-plans/route.d.ts +0 -5
- package/.medusa/server/src/api/admin/subscription-plans/route.js +0 -35
- package/.medusa/server/src/api/admin/subscription-plans/validators.d.ts +0 -117
- package/.medusa/server/src/api/admin/subscription-plans/validators.js +0 -42
- package/.medusa/server/src/api/store/product-brands/[id]/route.d.ts +0 -2
- package/.medusa/server/src/api/store/product-brands/[id]/route.js +0 -18
- package/.medusa/server/src/api/store/product-brands/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/store/product-brands/middlewares.js +0 -23
- package/.medusa/server/src/api/store/product-brands/query-config.js +0 -23
- package/.medusa/server/src/api/store/product-brands/route.d.ts +0 -2
- package/.medusa/server/src/api/store/product-brands/route.js +0 -21
- package/.medusa/server/src/api/store/product-brands/validators.d.ts +0 -215
- package/.medusa/server/src/api/store/product-brands/validators.js +0 -21
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.d.ts +0 -12
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.js +0 -165
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.d.ts +0 -12
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.js +0 -64
- package/.medusa/server/src/api/vendor/product-brands/[id]/route.d.ts +0 -3
- package/.medusa/server/src/api/vendor/product-brands/[id]/route.js +0 -18
- package/.medusa/server/src/api/vendor/product-brands/middlewares.js +0 -23
- package/.medusa/server/src/api/vendor/product-brands/query-config.d.ts +0 -12
- package/.medusa/server/src/api/vendor/product-brands/query-config.js +0 -24
- package/.medusa/server/src/api/vendor/product-brands/route.d.ts +0 -3
- package/.medusa/server/src/api/vendor/product-brands/route.js +0 -21
- package/.medusa/server/src/api/vendor/product-brands/validators.d.ts +0 -221
- package/.medusa/server/src/api/vendor/product-brands/validators.js +0 -22
- package/.medusa/server/src/api/vendor/subscription/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/vendor/subscription/middlewares.js +0 -28
- package/.medusa/server/src/api/vendor/subscription/route.d.ts +0 -3
- package/.medusa/server/src/api/vendor/subscription/route.js +0 -31
- package/.medusa/server/src/links/brand-seller-link.js +0 -16
- package/.medusa/server/src/links/line-item-commission-line-link.js +0 -21
- package/.medusa/server/src/links/offer-price-set-link.js +0 -15
- package/.medusa/server/src/modules/product/index.d.ts +0 -7
- package/.medusa/server/src/modules/product/index.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260414141012.js +0 -169
- package/.medusa/server/src/modules/product/migrations/Migration20260415151424.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260416104248.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260416105443.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260421093258.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260421093258.js +0 -22
- package/.medusa/server/src/modules/product/migrations/Migration20260422105949.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260422105949.js +0 -32
- package/.medusa/server/src/modules/product/migrations/Migration20260422112250.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260422112250.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260424120000.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260424120000.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260427140959.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260427140959.js +0 -20
- package/.medusa/server/src/modules/product/migrations/Migration20260427141021.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260427141021.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260428115720.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260428115720.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260430143600.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260430143600.js +0 -15
- package/.medusa/server/src/modules/product/migrations/Migration20260430144500.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260430144500.js +0 -23
- package/.medusa/server/src/modules/product/migrations/Migration20260430150000.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260430150000.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260520120000.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260520120000.js +0 -16
- package/.medusa/server/src/modules/product/models/index.d.ts +0 -13
- package/.medusa/server/src/modules/product/models/index.js +0 -33
- package/.medusa/server/src/modules/product/models/product-attribute-value.d.ts +0 -1698
- package/.medusa/server/src/modules/product/models/product-attribute-value.js +0 -38
- package/.medusa/server/src/modules/product/models/product-attribute.d.ts +0 -1627
- package/.medusa/server/src/modules/product/models/product-attribute.js +0 -57
- package/.medusa/server/src/modules/product/models/product-brand.d.ts +0 -551
- package/.medusa/server/src/modules/product/models/product-brand.js +0 -34
- package/.medusa/server/src/modules/product/models/product-category.d.ts +0 -1692
- package/.medusa/server/src/modules/product/models/product-category.js +0 -55
- package/.medusa/server/src/modules/product/models/product-change-action.d.ts +0 -1105
- package/.medusa/server/src/modules/product/models/product-change.d.ts +0 -559
- package/.medusa/server/src/modules/product/models/product-change.js +0 -50
- package/.medusa/server/src/modules/product/models/product-collection.d.ts +0 -552
- package/.medusa/server/src/modules/product/models/product-collection.js +0 -27
- package/.medusa/server/src/modules/product/models/product-image.d.ts +0 -1745
- package/.medusa/server/src/modules/product/models/product-image.js +0 -51
- package/.medusa/server/src/modules/product/models/product-tag.d.ts +0 -561
- package/.medusa/server/src/modules/product/models/product-tag.js +0 -26
- package/.medusa/server/src/modules/product/models/product-type.d.ts +0 -553
- package/.medusa/server/src/modules/product/models/product-type.js +0 -26
- package/.medusa/server/src/modules/product/models/product-variant-product-image.d.ts +0 -3366
- package/.medusa/server/src/modules/product/models/product-variant-product-image.js +0 -19
- package/.medusa/server/src/modules/product/models/product-variant.d.ts +0 -1619
- package/.medusa/server/src/modules/product/models/product-variant.js +0 -87
- package/.medusa/server/src/modules/product/models/product.d.ts +0 -559
- package/.medusa/server/src/modules/product/models/product.js +0 -137
- package/.medusa/server/src/modules/product/repositories/product-category.d.ts +0 -53
- package/.medusa/server/src/modules/product/repositories/product-category.js +0 -381
- package/.medusa/server/src/modules/product/service.d.ts +0 -11209
- package/.medusa/server/src/modules/product/service.js +0 -1471
- package/.medusa/server/src/modules/product/services/product-category.d.ts +0 -37
- package/.medusa/server/src/modules/product/services/product-category.js +0 -166
- package/.medusa/server/src/modules/subscription/index.d.ts +0 -35
- package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.d.ts +0 -5
- package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.js +0 -24
- package/.medusa/server/src/modules/subscription/models/index.d.ts +0 -2
- package/.medusa/server/src/modules/subscription/models/index.js +0 -11
- package/.medusa/server/src/modules/subscription/models/subscription-override.d.ts +0 -20
- package/.medusa/server/src/modules/subscription/models/subscription-override.js +0 -36
- package/.medusa/server/src/modules/subscription/models/subscription-plan.d.ts +0 -20
- package/.medusa/server/src/modules/subscription/models/subscription-plan.js +0 -32
- package/.medusa/server/src/modules/subscription/service.d.ts +0 -49
- package/.medusa/server/src/modules/subscription/service.js +0 -17
- package/.medusa/server/src/workflows/cart/hooks/validate-add-to-cart-stock.js +0 -52
- package/.medusa/server/src/workflows/cart/hooks/validate-update-line-item-stock.js +0 -60
- package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.d.ts +0 -19
- package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.js +0 -39
- package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.d.ts +0 -8
- package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.js +0 -45
- package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.d.ts +0 -21
- package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.js +0 -85
- package/.medusa/server/src/workflows/cart/workflows/add-to-cart.d.ts +0 -12
- package/.medusa/server/src/workflows/cart/workflows/add-to-cart.js +0 -235
- package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.d.ts +0 -16
- package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.js +0 -87
- package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.d.ts +0 -8
- package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.js +0 -26
- package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.d.ts +0 -7
- package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.js +0 -61
- package/.medusa/server/src/workflows/product/steps/batch-product-attributes.d.ts +0 -11
- package/.medusa/server/src/workflows/product/steps/batch-product-attributes.js +0 -16
- package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.d.ts +0 -6
- package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.js +0 -17
- package/.medusa/server/src/workflows/product/steps/create-product-attributes.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-product-attributes.js +0 -17
- package/.medusa/server/src/workflows/product/steps/create-product-brands.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-product-brands.js +0 -17
- package/.medusa/server/src/workflows/product/steps/create-product-categories.d.ts +0 -1576
- package/.medusa/server/src/workflows/product/steps/create-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/steps/create-product-variants.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-product-variants.js +0 -18
- package/.medusa/server/src/workflows/product/steps/create-products.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-products.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-attribute-values.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-attributes.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-brands.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-product-brands.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-categories.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-product-categories.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-variants.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-product-variants.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-products.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-products.js +0 -17
- package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.d.ts +0 -8
- package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.js +0 -26
- package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.d.ts +0 -6
- package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.js +0 -11
- package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.d.ts +0 -7
- package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.js +0 -22
- package/.medusa/server/src/workflows/product/steps/update-product-attributes.d.ts +0 -7
- package/.medusa/server/src/workflows/product/steps/update-product-brands.d.ts +0 -7
- package/.medusa/server/src/workflows/product/steps/update-product-brands.js +0 -28
- package/.medusa/server/src/workflows/product/steps/update-product-categories.d.ts +0 -1580
- package/.medusa/server/src/workflows/product/steps/update-product-categories.js +0 -20
- package/.medusa/server/src/workflows/product/steps/update-product-variants.d.ts +0 -10
- package/.medusa/server/src/workflows/product/steps/update-product-variants.js +0 -32
- package/.medusa/server/src/workflows/product/steps/update-products.d.ts +0 -10
- package/.medusa/server/src/workflows/product/steps/update-products.js +0 -33
- package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.js +0 -30
- package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.js +0 -19
- package/.medusa/server/src/workflows/product/steps/validate-confirm-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-confirm-products.js +0 -14
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.js +0 -19
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.js +0 -30
- package/.medusa/server/src/workflows/product/steps/validate-reject-product.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-reject-product.js +0 -12
- package/.medusa/server/src/workflows/product/steps/validate-request-changes.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-request-changes.js +0 -12
- package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.js +0 -12
- package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.js +0 -10
- package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.d.ts +0 -12
- package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.js +0 -23
- package/.medusa/server/src/workflows/product/workflows/batch-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/batch-products.js +0 -86
- package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.js +0 -21
- package/.medusa/server/src/workflows/product/workflows/create-product-attributes.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/create-product-attributes.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/create-product-brands.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/create-product-brands.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/create-product-categories.d.ts +0 -1581
- package/.medusa/server/src/workflows/product/workflows/create-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/create-product-variants.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/create-product-variants.js +0 -25
- package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.js +0 -20
- package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.js +0 -20
- package/.medusa/server/src/workflows/product/workflows/delete-product-brands.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-brands.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/delete-product-categories.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/delete-product-variants.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/delete-product-variants.js +0 -24
- package/.medusa/server/src/workflows/product/workflows/delete-products.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-products.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.d.ts +0 -14
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.js +0 -21
- package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.js +0 -20
- package/.medusa/server/src/workflows/product/workflows/request-product-changes.d.ts +0 -11
- package/.medusa/server/src/workflows/product/workflows/request-product-changes.js +0 -61
- package/.medusa/server/src/workflows/product/workflows/resubmit-product.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/resubmit-product.js +0 -48
- package/.medusa/server/src/workflows/product/workflows/submit-seller-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/submit-seller-products.js +0 -76
- package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/update-product-attributes.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/update-product-attributes.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/update-product-brands.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/update-product-brands.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/update-product-categories.d.ts +0 -1583
- package/.medusa/server/src/workflows/product/workflows/update-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/update-product-variants.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/update-product-variants.js +0 -36
- package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.js +0 -21
- package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.d.ts +0 -5
- package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.js +0 -11
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.d.ts +0 -11
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.js +0 -21
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.d.ts +0 -19
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.js +0 -40
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.d.ts +0 -21
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.js +0 -44
- package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.d.ts +0 -16
- package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.js +0 -42
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.d.ts +0 -19
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.js +0 -66
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.d.ts +0 -17
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.js +0 -58
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.d.ts +0 -17
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.js +0 -62
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.d.ts +0 -16
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.js +0 -68
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.d.ts +0 -21
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.js +0 -89
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.d.ts +0 -2
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.d.ts +0 -2
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/index.d.ts +0 -6
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.js +0 -17
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.d.ts +0 -5
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.d.ts +0 -5
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/index.d.ts +0 -6
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.js +0 -11
- package/.medusa/server/src/workflows/utils/override-workflow.d.ts +0 -12
- package/.medusa/server/src/workflows/utils/override-workflow.js +0 -21
- /package/.medusa/server/src/links/{brand-seller-link.d.ts → offer-price-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{line-item-commission-line-link.d.ts → product-variant-attribute-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{offer-price-set-link.d.ts → product-variant-attribute-value-link.d.ts} +0 -0
- /package/.medusa/server/src/workflows/cart/hooks/{validate-add-to-cart-stock.d.ts → before-refreshing-payment-collection.d.ts} +0 -0
- /package/.medusa/server/src/workflows/cart/hooks/{validate-update-line-item-stock.d.ts → set-pricing-context.d.ts} +0 -0
- /package/.medusa/server/src/workflows/{subscription → customer-group}/index.d.ts +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ProductStatus } from "@mercurjs/types";
|
|
3
2
|
import { AdditionalData } from "@medusajs/framework/types";
|
|
4
3
|
export type AdminGetProductsParamsType = z.infer<typeof AdminGetProductsParams>;
|
|
5
4
|
export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
@@ -10,9 +9,12 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
10
9
|
title: z.ZodOptional<z.ZodString>;
|
|
11
10
|
handle: z.ZodOptional<z.ZodString>;
|
|
12
11
|
seller_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
13
|
-
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
13
|
+
readonly DRAFT: "draft";
|
|
14
|
+
readonly PROPOSED: "proposed";
|
|
15
|
+
readonly PUBLISHED: "published";
|
|
16
|
+
readonly REJECTED: "rejected";
|
|
17
|
+
}>, "many">>;
|
|
16
18
|
collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
17
19
|
type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
18
20
|
category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -21,8 +23,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
21
23
|
ean: z.ZodOptional<z.ZodString>;
|
|
22
24
|
upc: z.ZodOptional<z.ZodString>;
|
|
23
25
|
barcode: z.ZodOptional<z.ZodString>;
|
|
24
|
-
|
|
25
|
-
created_by_actor: z.ZodOptional<z.ZodString>;
|
|
26
|
+
has_offer: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
26
27
|
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
27
28
|
$eq: any;
|
|
28
29
|
$ne: any;
|
|
@@ -144,47 +145,41 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
144
145
|
$lte?: any;
|
|
145
146
|
}>]>>;
|
|
146
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
seller_id?: string | string[] | undefined;
|
|
147
149
|
id?: string | string[] | undefined;
|
|
148
150
|
created_at?: any;
|
|
149
151
|
updated_at?: any;
|
|
150
|
-
status?:
|
|
152
|
+
status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
|
|
151
153
|
q?: string | undefined;
|
|
152
|
-
seller_id?: string | string[] | undefined;
|
|
153
154
|
sku?: string | undefined;
|
|
154
155
|
ean?: string | undefined;
|
|
155
156
|
upc?: string | undefined;
|
|
156
|
-
created_by?: string | undefined;
|
|
157
157
|
deleted_at?: any;
|
|
158
158
|
title?: string | undefined;
|
|
159
159
|
handle?: string | undefined;
|
|
160
160
|
collection_id?: string | string[] | undefined;
|
|
161
161
|
type_id?: string | string[] | undefined;
|
|
162
162
|
tag_id?: string | string[] | undefined;
|
|
163
|
-
|
|
164
|
-
brand_id?: string | string[] | undefined;
|
|
165
|
-
created_by_actor?: string | undefined;
|
|
163
|
+
has_offer?: boolean | undefined;
|
|
166
164
|
barcode?: string | undefined;
|
|
167
165
|
category_id?: string | string[] | undefined;
|
|
168
166
|
}, {
|
|
167
|
+
seller_id?: string | string[] | undefined;
|
|
169
168
|
id?: string | string[] | undefined;
|
|
170
169
|
created_at?: any;
|
|
171
170
|
updated_at?: any;
|
|
172
|
-
status?:
|
|
171
|
+
status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
|
|
173
172
|
q?: string | undefined;
|
|
174
|
-
seller_id?: string | string[] | undefined;
|
|
175
173
|
sku?: string | undefined;
|
|
176
174
|
ean?: string | undefined;
|
|
177
175
|
upc?: string | undefined;
|
|
178
|
-
created_by?: string | undefined;
|
|
179
176
|
deleted_at?: any;
|
|
180
177
|
title?: string | undefined;
|
|
181
178
|
handle?: string | undefined;
|
|
182
179
|
collection_id?: string | string[] | undefined;
|
|
183
180
|
type_id?: string | string[] | undefined;
|
|
184
181
|
tag_id?: string | string[] | undefined;
|
|
185
|
-
|
|
186
|
-
brand_id?: string | string[] | undefined;
|
|
187
|
-
created_by_actor?: string | undefined;
|
|
182
|
+
has_offer?: string | boolean | undefined;
|
|
188
183
|
barcode?: string | undefined;
|
|
189
184
|
category_id?: string | string[] | undefined;
|
|
190
185
|
}>, "many">>>;
|
|
@@ -194,9 +189,12 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
194
189
|
title: z.ZodOptional<z.ZodString>;
|
|
195
190
|
handle: z.ZodOptional<z.ZodString>;
|
|
196
191
|
seller_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
197
|
-
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<
|
|
198
|
-
|
|
199
|
-
|
|
192
|
+
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
193
|
+
readonly DRAFT: "draft";
|
|
194
|
+
readonly PROPOSED: "proposed";
|
|
195
|
+
readonly PUBLISHED: "published";
|
|
196
|
+
readonly REJECTED: "rejected";
|
|
197
|
+
}>, "many">>;
|
|
200
198
|
collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
201
199
|
type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
202
200
|
category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -205,8 +203,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
205
203
|
ean: z.ZodOptional<z.ZodString>;
|
|
206
204
|
upc: z.ZodOptional<z.ZodString>;
|
|
207
205
|
barcode: z.ZodOptional<z.ZodString>;
|
|
208
|
-
|
|
209
|
-
created_by_actor: z.ZodOptional<z.ZodString>;
|
|
206
|
+
has_offer: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
210
207
|
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
211
208
|
$eq: any;
|
|
212
209
|
$ne: any;
|
|
@@ -328,47 +325,41 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
328
325
|
$lte?: any;
|
|
329
326
|
}>]>>;
|
|
330
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
|
+
seller_id?: string | string[] | undefined;
|
|
331
329
|
id?: string | string[] | undefined;
|
|
332
330
|
created_at?: any;
|
|
333
331
|
updated_at?: any;
|
|
334
|
-
status?:
|
|
332
|
+
status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
|
|
335
333
|
q?: string | undefined;
|
|
336
|
-
seller_id?: string | string[] | undefined;
|
|
337
334
|
sku?: string | undefined;
|
|
338
335
|
ean?: string | undefined;
|
|
339
336
|
upc?: string | undefined;
|
|
340
|
-
created_by?: string | undefined;
|
|
341
337
|
deleted_at?: any;
|
|
342
338
|
title?: string | undefined;
|
|
343
339
|
handle?: string | undefined;
|
|
344
340
|
collection_id?: string | string[] | undefined;
|
|
345
341
|
type_id?: string | string[] | undefined;
|
|
346
342
|
tag_id?: string | string[] | undefined;
|
|
347
|
-
|
|
348
|
-
brand_id?: string | string[] | undefined;
|
|
349
|
-
created_by_actor?: string | undefined;
|
|
343
|
+
has_offer?: boolean | undefined;
|
|
350
344
|
barcode?: string | undefined;
|
|
351
345
|
category_id?: string | string[] | undefined;
|
|
352
346
|
}, {
|
|
347
|
+
seller_id?: string | string[] | undefined;
|
|
353
348
|
id?: string | string[] | undefined;
|
|
354
349
|
created_at?: any;
|
|
355
350
|
updated_at?: any;
|
|
356
|
-
status?:
|
|
351
|
+
status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
|
|
357
352
|
q?: string | undefined;
|
|
358
|
-
seller_id?: string | string[] | undefined;
|
|
359
353
|
sku?: string | undefined;
|
|
360
354
|
ean?: string | undefined;
|
|
361
355
|
upc?: string | undefined;
|
|
362
|
-
created_by?: string | undefined;
|
|
363
356
|
deleted_at?: any;
|
|
364
357
|
title?: string | undefined;
|
|
365
358
|
handle?: string | undefined;
|
|
366
359
|
collection_id?: string | string[] | undefined;
|
|
367
360
|
type_id?: string | string[] | undefined;
|
|
368
361
|
tag_id?: string | string[] | undefined;
|
|
369
|
-
|
|
370
|
-
brand_id?: string | string[] | undefined;
|
|
371
|
-
created_by_actor?: string | undefined;
|
|
362
|
+
has_offer?: string | boolean | undefined;
|
|
372
363
|
barcode?: string | undefined;
|
|
373
364
|
category_id?: string | string[] | undefined;
|
|
374
365
|
}>, "many">>>;
|
|
@@ -412,14 +403,17 @@ declare const CreateProductVariant: z.ZodObject<{
|
|
|
412
403
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
404
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
414
405
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
406
|
+
/** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
|
|
407
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
415
408
|
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
416
409
|
}, "strict", z.ZodTypeAny, {
|
|
417
410
|
title: string;
|
|
411
|
+
options?: Record<string, string> | undefined;
|
|
418
412
|
length?: number | null | undefined;
|
|
413
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
419
414
|
sku?: string | null | undefined;
|
|
420
415
|
ean?: string | null | undefined;
|
|
421
416
|
upc?: string | null | undefined;
|
|
422
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
423
417
|
weight?: number | null | undefined;
|
|
424
418
|
height?: number | null | undefined;
|
|
425
419
|
width?: number | null | undefined;
|
|
@@ -435,11 +429,12 @@ declare const CreateProductVariant: z.ZodObject<{
|
|
|
435
429
|
attribute_values?: Record<string, string | string[]> | undefined;
|
|
436
430
|
}, {
|
|
437
431
|
title: string;
|
|
432
|
+
options?: Record<string, string> | undefined;
|
|
438
433
|
length?: number | null | undefined;
|
|
434
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
439
435
|
sku?: string | null | undefined;
|
|
440
436
|
ean?: string | null | undefined;
|
|
441
437
|
upc?: string | null | undefined;
|
|
442
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
443
438
|
weight?: number | null | undefined;
|
|
444
439
|
height?: number | null | undefined;
|
|
445
440
|
width?: number | null | undefined;
|
|
@@ -497,14 +492,16 @@ declare const UpdateProductVariant: z.ZodObject<{
|
|
|
497
492
|
max_quantity?: number | null | undefined;
|
|
498
493
|
rules?: Record<string, string> | undefined;
|
|
499
494
|
}>, "many">>;
|
|
495
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
500
496
|
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
501
497
|
}, "strict", z.ZodTypeAny, {
|
|
498
|
+
options?: Record<string, string> | undefined;
|
|
502
499
|
length?: number | null | undefined;
|
|
500
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
503
501
|
id?: string | undefined;
|
|
504
502
|
sku?: string | null | undefined;
|
|
505
503
|
ean?: string | null | undefined;
|
|
506
504
|
upc?: string | null | undefined;
|
|
507
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
508
505
|
title?: string | undefined;
|
|
509
506
|
prices?: {
|
|
510
507
|
id?: string | undefined;
|
|
@@ -529,12 +526,13 @@ declare const UpdateProductVariant: z.ZodObject<{
|
|
|
529
526
|
variant_rank?: number | undefined;
|
|
530
527
|
attribute_values?: Record<string, string | string[]> | undefined;
|
|
531
528
|
}, {
|
|
529
|
+
options?: Record<string, string> | undefined;
|
|
532
530
|
length?: number | null | undefined;
|
|
531
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
533
532
|
id?: string | undefined;
|
|
534
533
|
sku?: string | null | undefined;
|
|
535
534
|
ean?: string | null | undefined;
|
|
536
535
|
upc?: string | null | undefined;
|
|
537
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
538
536
|
title?: string | undefined;
|
|
539
537
|
prices?: {
|
|
540
538
|
id?: string | undefined;
|
|
@@ -651,12 +649,15 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
651
649
|
}>, "many">>;
|
|
652
650
|
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
653
651
|
handle: z.ZodOptional<z.ZodString>;
|
|
654
|
-
status: z.ZodOptional<z.ZodNativeEnum<
|
|
652
|
+
status: z.ZodOptional<z.ZodNativeEnum<{
|
|
653
|
+
readonly DRAFT: "draft";
|
|
654
|
+
readonly PROPOSED: "proposed";
|
|
655
|
+
readonly PUBLISHED: "published";
|
|
656
|
+
readonly REJECTED: "rejected";
|
|
657
|
+
}>>;
|
|
655
658
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
656
659
|
type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
657
660
|
collection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
658
|
-
brand_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
659
|
-
is_restricted: z.ZodOptional<z.ZodBoolean>;
|
|
660
661
|
seller_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
661
662
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
662
663
|
id: z.ZodString;
|
|
@@ -672,11 +673,22 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
672
673
|
}, {
|
|
673
674
|
id: string;
|
|
674
675
|
}>, "many">>;
|
|
676
|
+
/** Stock Medusa product options: drives variant generation. */
|
|
677
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
678
|
+
title: z.ZodString;
|
|
679
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
680
|
+
}, "strip", z.ZodTypeAny, {
|
|
681
|
+
values: string[];
|
|
682
|
+
title: string;
|
|
683
|
+
}, {
|
|
684
|
+
values: string[];
|
|
685
|
+
title: string;
|
|
686
|
+
}>, "many">>;
|
|
675
687
|
variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
676
688
|
attribute_id: z.ZodString;
|
|
677
689
|
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
678
690
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
679
|
-
}, "
|
|
691
|
+
}, "strict", z.ZodTypeAny, {
|
|
680
692
|
attribute_id: string;
|
|
681
693
|
values?: string[] | undefined;
|
|
682
694
|
value_ids?: string[] | undefined;
|
|
@@ -686,37 +698,37 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
686
698
|
value_ids?: string[] | undefined;
|
|
687
699
|
}>, z.ZodObject<{
|
|
688
700
|
name: z.ZodString;
|
|
689
|
-
type: z.ZodEnum<["single_select", "multi_select", "
|
|
701
|
+
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
690
702
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
691
703
|
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
692
704
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
693
705
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
694
706
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
695
707
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
696
|
-
}, "
|
|
697
|
-
type: "single_select" | "multi_select" | "
|
|
708
|
+
}, "strict", z.ZodTypeAny, {
|
|
709
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
698
710
|
name: string;
|
|
699
711
|
values?: string[] | undefined;
|
|
700
712
|
metadata?: Record<string, unknown> | null | undefined;
|
|
701
713
|
description?: string | null | undefined;
|
|
714
|
+
is_variant_axis?: boolean | undefined;
|
|
702
715
|
is_required?: boolean | undefined;
|
|
703
716
|
is_filterable?: boolean | undefined;
|
|
704
|
-
is_variant_axis?: boolean | undefined;
|
|
705
717
|
}, {
|
|
706
|
-
type: "single_select" | "multi_select" | "
|
|
718
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
707
719
|
name: string;
|
|
708
720
|
values?: string[] | undefined;
|
|
709
721
|
metadata?: Record<string, unknown> | null | undefined;
|
|
710
722
|
description?: string | null | undefined;
|
|
723
|
+
is_variant_axis?: boolean | undefined;
|
|
711
724
|
is_required?: boolean | undefined;
|
|
712
725
|
is_filterable?: boolean | undefined;
|
|
713
|
-
is_variant_axis?: boolean | undefined;
|
|
714
726
|
}>]>, "many">>;
|
|
715
727
|
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
716
728
|
attribute_id: z.ZodString;
|
|
717
729
|
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
718
730
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
719
|
-
}, "
|
|
731
|
+
}, "strict", z.ZodTypeAny, {
|
|
720
732
|
attribute_id: string;
|
|
721
733
|
values?: string[] | undefined;
|
|
722
734
|
value_ids?: string[] | undefined;
|
|
@@ -726,32 +738,33 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
726
738
|
value_ids?: string[] | undefined;
|
|
727
739
|
}>, z.ZodObject<{
|
|
728
740
|
name: z.ZodString;
|
|
729
|
-
type: z.ZodEnum<["single_select", "multi_select", "
|
|
741
|
+
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
730
742
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
731
743
|
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
732
744
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
733
745
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
734
746
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
735
747
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
736
|
-
}, "
|
|
737
|
-
type: "single_select" | "multi_select" | "
|
|
748
|
+
}, "strict", z.ZodTypeAny, {
|
|
749
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
738
750
|
name: string;
|
|
739
751
|
values?: string[] | undefined;
|
|
740
752
|
metadata?: Record<string, unknown> | null | undefined;
|
|
741
753
|
description?: string | null | undefined;
|
|
754
|
+
is_variant_axis?: boolean | undefined;
|
|
742
755
|
is_required?: boolean | undefined;
|
|
743
756
|
is_filterable?: boolean | undefined;
|
|
744
|
-
is_variant_axis?: boolean | undefined;
|
|
745
757
|
}, {
|
|
746
|
-
type: "single_select" | "multi_select" | "
|
|
758
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
747
759
|
name: string;
|
|
748
760
|
values?: string[] | undefined;
|
|
749
761
|
metadata?: Record<string, unknown> | null | undefined;
|
|
750
762
|
description?: string | null | undefined;
|
|
763
|
+
is_variant_axis?: boolean | undefined;
|
|
751
764
|
is_required?: boolean | undefined;
|
|
752
765
|
is_filterable?: boolean | undefined;
|
|
753
|
-
is_variant_axis?: boolean | undefined;
|
|
754
766
|
}>]>, "many">>;
|
|
767
|
+
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
755
768
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
756
769
|
title: z.ZodString;
|
|
757
770
|
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -771,14 +784,17 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
771
784
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
772
785
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
773
786
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
787
|
+
/** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
|
|
788
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
774
789
|
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
775
790
|
}, "strict", z.ZodTypeAny, {
|
|
776
791
|
title: string;
|
|
792
|
+
options?: Record<string, string> | undefined;
|
|
777
793
|
length?: number | null | undefined;
|
|
794
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
778
795
|
sku?: string | null | undefined;
|
|
779
796
|
ean?: string | null | undefined;
|
|
780
797
|
upc?: string | null | undefined;
|
|
781
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
782
798
|
weight?: number | null | undefined;
|
|
783
799
|
height?: number | null | undefined;
|
|
784
800
|
width?: number | null | undefined;
|
|
@@ -794,11 +810,12 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
794
810
|
attribute_values?: Record<string, string | string[]> | undefined;
|
|
795
811
|
}, {
|
|
796
812
|
title: string;
|
|
813
|
+
options?: Record<string, string> | undefined;
|
|
797
814
|
length?: number | null | undefined;
|
|
815
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
798
816
|
sku?: string | null | undefined;
|
|
799
817
|
ean?: string | null | undefined;
|
|
800
818
|
upc?: string | null | undefined;
|
|
801
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
802
819
|
weight?: number | null | undefined;
|
|
803
820
|
height?: number | null | undefined;
|
|
804
821
|
width?: number | null | undefined;
|
|
@@ -826,9 +843,13 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
826
843
|
title: string;
|
|
827
844
|
is_giftcard: boolean;
|
|
828
845
|
discountable: boolean;
|
|
846
|
+
options?: {
|
|
847
|
+
values: string[];
|
|
848
|
+
title: string;
|
|
849
|
+
}[] | undefined;
|
|
829
850
|
length?: number | null | undefined;
|
|
830
|
-
status?: ProductStatus | undefined;
|
|
831
851
|
metadata?: Record<string, unknown> | null | undefined;
|
|
852
|
+
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
832
853
|
handle?: string | undefined;
|
|
833
854
|
description?: string | null | undefined;
|
|
834
855
|
external_id?: string | null | undefined;
|
|
@@ -836,8 +857,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
836
857
|
collection_id?: string | null | undefined;
|
|
837
858
|
type_id?: string | null | undefined;
|
|
838
859
|
subtitle?: string | null | undefined;
|
|
839
|
-
is_restricted?: boolean | undefined;
|
|
840
|
-
brand_id?: string | null | undefined;
|
|
841
860
|
weight?: number | null | undefined;
|
|
842
861
|
height?: number | null | undefined;
|
|
843
862
|
width?: number | null | undefined;
|
|
@@ -845,6 +864,7 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
845
864
|
origin_country?: string | null | undefined;
|
|
846
865
|
mid_code?: string | null | undefined;
|
|
847
866
|
material?: string | null | undefined;
|
|
867
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
848
868
|
images?: {
|
|
849
869
|
url: string;
|
|
850
870
|
}[] | undefined;
|
|
@@ -860,36 +880,37 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
860
880
|
values?: string[] | undefined;
|
|
861
881
|
value_ids?: string[] | undefined;
|
|
862
882
|
} | {
|
|
863
|
-
type: "single_select" | "multi_select" | "
|
|
883
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
864
884
|
name: string;
|
|
865
885
|
values?: string[] | undefined;
|
|
866
886
|
metadata?: Record<string, unknown> | null | undefined;
|
|
867
887
|
description?: string | null | undefined;
|
|
888
|
+
is_variant_axis?: boolean | undefined;
|
|
868
889
|
is_required?: boolean | undefined;
|
|
869
890
|
is_filterable?: boolean | undefined;
|
|
870
|
-
is_variant_axis?: boolean | undefined;
|
|
871
891
|
})[] | undefined;
|
|
872
892
|
product_attributes?: ({
|
|
873
893
|
attribute_id: string;
|
|
874
894
|
values?: string[] | undefined;
|
|
875
895
|
value_ids?: string[] | undefined;
|
|
876
896
|
} | {
|
|
877
|
-
type: "single_select" | "multi_select" | "
|
|
897
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
878
898
|
name: string;
|
|
879
899
|
values?: string[] | undefined;
|
|
880
900
|
metadata?: Record<string, unknown> | null | undefined;
|
|
881
901
|
description?: string | null | undefined;
|
|
902
|
+
is_variant_axis?: boolean | undefined;
|
|
882
903
|
is_required?: boolean | undefined;
|
|
883
904
|
is_filterable?: boolean | undefined;
|
|
884
|
-
is_variant_axis?: boolean | undefined;
|
|
885
905
|
})[] | undefined;
|
|
886
906
|
variants?: {
|
|
887
907
|
title: string;
|
|
908
|
+
options?: Record<string, string> | undefined;
|
|
888
909
|
length?: number | null | undefined;
|
|
910
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
889
911
|
sku?: string | null | undefined;
|
|
890
912
|
ean?: string | null | undefined;
|
|
891
913
|
upc?: string | null | undefined;
|
|
892
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
893
914
|
weight?: number | null | undefined;
|
|
894
915
|
height?: number | null | undefined;
|
|
895
916
|
width?: number | null | undefined;
|
|
@@ -906,9 +927,13 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
906
927
|
}[] | undefined;
|
|
907
928
|
}, {
|
|
908
929
|
title: string;
|
|
930
|
+
options?: {
|
|
931
|
+
values: string[];
|
|
932
|
+
title: string;
|
|
933
|
+
}[] | undefined;
|
|
909
934
|
length?: number | null | undefined;
|
|
910
|
-
status?: ProductStatus | undefined;
|
|
911
935
|
metadata?: Record<string, unknown> | null | undefined;
|
|
936
|
+
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
912
937
|
handle?: string | undefined;
|
|
913
938
|
description?: string | null | undefined;
|
|
914
939
|
external_id?: string | null | undefined;
|
|
@@ -916,10 +941,8 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
916
941
|
collection_id?: string | null | undefined;
|
|
917
942
|
type_id?: string | null | undefined;
|
|
918
943
|
subtitle?: string | null | undefined;
|
|
919
|
-
is_restricted?: boolean | undefined;
|
|
920
944
|
is_giftcard?: string | boolean | undefined;
|
|
921
945
|
discountable?: string | boolean | undefined;
|
|
922
|
-
brand_id?: string | null | undefined;
|
|
923
946
|
weight?: number | null | undefined;
|
|
924
947
|
height?: number | null | undefined;
|
|
925
948
|
width?: number | null | undefined;
|
|
@@ -927,6 +950,7 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
927
950
|
origin_country?: string | null | undefined;
|
|
928
951
|
mid_code?: string | null | undefined;
|
|
929
952
|
material?: string | null | undefined;
|
|
953
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
930
954
|
images?: {
|
|
931
955
|
url: string;
|
|
932
956
|
}[] | undefined;
|
|
@@ -942,36 +966,37 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
942
966
|
values?: string[] | undefined;
|
|
943
967
|
value_ids?: string[] | undefined;
|
|
944
968
|
} | {
|
|
945
|
-
type: "single_select" | "multi_select" | "
|
|
969
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
946
970
|
name: string;
|
|
947
971
|
values?: string[] | undefined;
|
|
948
972
|
metadata?: Record<string, unknown> | null | undefined;
|
|
949
973
|
description?: string | null | undefined;
|
|
974
|
+
is_variant_axis?: boolean | undefined;
|
|
950
975
|
is_required?: boolean | undefined;
|
|
951
976
|
is_filterable?: boolean | undefined;
|
|
952
|
-
is_variant_axis?: boolean | undefined;
|
|
953
977
|
})[] | undefined;
|
|
954
978
|
product_attributes?: ({
|
|
955
979
|
attribute_id: string;
|
|
956
980
|
values?: string[] | undefined;
|
|
957
981
|
value_ids?: string[] | undefined;
|
|
958
982
|
} | {
|
|
959
|
-
type: "single_select" | "multi_select" | "
|
|
983
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
960
984
|
name: string;
|
|
961
985
|
values?: string[] | undefined;
|
|
962
986
|
metadata?: Record<string, unknown> | null | undefined;
|
|
963
987
|
description?: string | null | undefined;
|
|
988
|
+
is_variant_axis?: boolean | undefined;
|
|
964
989
|
is_required?: boolean | undefined;
|
|
965
990
|
is_filterable?: boolean | undefined;
|
|
966
|
-
is_variant_axis?: boolean | undefined;
|
|
967
991
|
})[] | undefined;
|
|
968
992
|
variants?: {
|
|
969
993
|
title: string;
|
|
994
|
+
options?: Record<string, string> | undefined;
|
|
970
995
|
length?: number | null | undefined;
|
|
996
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
971
997
|
sku?: string | null | undefined;
|
|
972
998
|
ean?: string | null | undefined;
|
|
973
999
|
upc?: string | null | undefined;
|
|
974
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
975
1000
|
weight?: number | null | undefined;
|
|
976
1001
|
height?: number | null | undefined;
|
|
977
1002
|
width?: number | null | undefined;
|
|
@@ -1011,12 +1036,15 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1011
1036
|
}>, "many">>;
|
|
1012
1037
|
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1013
1038
|
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1014
|
-
status: z.ZodOptional<z.ZodNativeEnum<
|
|
1039
|
+
status: z.ZodOptional<z.ZodNativeEnum<{
|
|
1040
|
+
readonly DRAFT: "draft";
|
|
1041
|
+
readonly PROPOSED: "proposed";
|
|
1042
|
+
readonly PUBLISHED: "published";
|
|
1043
|
+
readonly REJECTED: "rejected";
|
|
1044
|
+
}>>;
|
|
1015
1045
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1016
1046
|
type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1017
1047
|
collection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1018
|
-
brand_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1019
|
-
is_restricted: z.ZodOptional<z.ZodBoolean>;
|
|
1020
1048
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1021
1049
|
id: z.ZodString;
|
|
1022
1050
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1031,11 +1059,21 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1031
1059
|
}, {
|
|
1032
1060
|
id: string;
|
|
1033
1061
|
}>, "many">>;
|
|
1062
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1063
|
+
title: z.ZodString;
|
|
1064
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
1065
|
+
}, "strip", z.ZodTypeAny, {
|
|
1066
|
+
values: string[];
|
|
1067
|
+
title: string;
|
|
1068
|
+
}, {
|
|
1069
|
+
values: string[];
|
|
1070
|
+
title: string;
|
|
1071
|
+
}>, "many">>;
|
|
1034
1072
|
variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1035
1073
|
attribute_id: z.ZodString;
|
|
1036
1074
|
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1037
1075
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1038
|
-
}, "
|
|
1076
|
+
}, "strict", z.ZodTypeAny, {
|
|
1039
1077
|
attribute_id: string;
|
|
1040
1078
|
values?: string[] | undefined;
|
|
1041
1079
|
value_ids?: string[] | undefined;
|
|
@@ -1045,37 +1083,37 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1045
1083
|
value_ids?: string[] | undefined;
|
|
1046
1084
|
}>, z.ZodObject<{
|
|
1047
1085
|
name: z.ZodString;
|
|
1048
|
-
type: z.ZodEnum<["single_select", "multi_select", "
|
|
1086
|
+
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
1049
1087
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1050
1088
|
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1051
1089
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1052
1090
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1053
1091
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1054
1092
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1055
|
-
}, "
|
|
1056
|
-
type: "single_select" | "multi_select" | "
|
|
1093
|
+
}, "strict", z.ZodTypeAny, {
|
|
1094
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1057
1095
|
name: string;
|
|
1058
1096
|
values?: string[] | undefined;
|
|
1059
1097
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1060
1098
|
description?: string | null | undefined;
|
|
1099
|
+
is_variant_axis?: boolean | undefined;
|
|
1061
1100
|
is_required?: boolean | undefined;
|
|
1062
1101
|
is_filterable?: boolean | undefined;
|
|
1063
|
-
is_variant_axis?: boolean | undefined;
|
|
1064
1102
|
}, {
|
|
1065
|
-
type: "single_select" | "multi_select" | "
|
|
1103
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1066
1104
|
name: string;
|
|
1067
1105
|
values?: string[] | undefined;
|
|
1068
1106
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1069
1107
|
description?: string | null | undefined;
|
|
1108
|
+
is_variant_axis?: boolean | undefined;
|
|
1070
1109
|
is_required?: boolean | undefined;
|
|
1071
1110
|
is_filterable?: boolean | undefined;
|
|
1072
|
-
is_variant_axis?: boolean | undefined;
|
|
1073
1111
|
}>]>, "many">>;
|
|
1074
1112
|
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1075
1113
|
attribute_id: z.ZodString;
|
|
1076
1114
|
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1077
1115
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1078
|
-
}, "
|
|
1116
|
+
}, "strict", z.ZodTypeAny, {
|
|
1079
1117
|
attribute_id: string;
|
|
1080
1118
|
values?: string[] | undefined;
|
|
1081
1119
|
value_ids?: string[] | undefined;
|
|
@@ -1085,32 +1123,33 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1085
1123
|
value_ids?: string[] | undefined;
|
|
1086
1124
|
}>, z.ZodObject<{
|
|
1087
1125
|
name: z.ZodString;
|
|
1088
|
-
type: z.ZodEnum<["single_select", "multi_select", "
|
|
1126
|
+
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
1089
1127
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1090
1128
|
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1091
1129
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1092
1130
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1093
1131
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1094
1132
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1095
|
-
}, "
|
|
1096
|
-
type: "single_select" | "multi_select" | "
|
|
1133
|
+
}, "strict", z.ZodTypeAny, {
|
|
1134
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1097
1135
|
name: string;
|
|
1098
1136
|
values?: string[] | undefined;
|
|
1099
1137
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1100
1138
|
description?: string | null | undefined;
|
|
1139
|
+
is_variant_axis?: boolean | undefined;
|
|
1101
1140
|
is_required?: boolean | undefined;
|
|
1102
1141
|
is_filterable?: boolean | undefined;
|
|
1103
|
-
is_variant_axis?: boolean | undefined;
|
|
1104
1142
|
}, {
|
|
1105
|
-
type: "single_select" | "multi_select" | "
|
|
1143
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1106
1144
|
name: string;
|
|
1107
1145
|
values?: string[] | undefined;
|
|
1108
1146
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1109
1147
|
description?: string | null | undefined;
|
|
1148
|
+
is_variant_axis?: boolean | undefined;
|
|
1110
1149
|
is_required?: boolean | undefined;
|
|
1111
1150
|
is_filterable?: boolean | undefined;
|
|
1112
|
-
is_variant_axis?: boolean | undefined;
|
|
1113
1151
|
}>]>, "many">>;
|
|
1152
|
+
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1114
1153
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1115
1154
|
id: z.ZodOptional<z.ZodString>;
|
|
1116
1155
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1154,14 +1193,16 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1154
1193
|
max_quantity?: number | null | undefined;
|
|
1155
1194
|
rules?: Record<string, string> | undefined;
|
|
1156
1195
|
}>, "many">>;
|
|
1196
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1157
1197
|
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1158
1198
|
}, "strict", z.ZodTypeAny, {
|
|
1199
|
+
options?: Record<string, string> | undefined;
|
|
1159
1200
|
length?: number | null | undefined;
|
|
1201
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1160
1202
|
id?: string | undefined;
|
|
1161
1203
|
sku?: string | null | undefined;
|
|
1162
1204
|
ean?: string | null | undefined;
|
|
1163
1205
|
upc?: string | null | undefined;
|
|
1164
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1165
1206
|
title?: string | undefined;
|
|
1166
1207
|
prices?: {
|
|
1167
1208
|
id?: string | undefined;
|
|
@@ -1186,12 +1227,13 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1186
1227
|
variant_rank?: number | undefined;
|
|
1187
1228
|
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1188
1229
|
}, {
|
|
1230
|
+
options?: Record<string, string> | undefined;
|
|
1189
1231
|
length?: number | null | undefined;
|
|
1232
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1190
1233
|
id?: string | undefined;
|
|
1191
1234
|
sku?: string | null | undefined;
|
|
1192
1235
|
ean?: string | null | undefined;
|
|
1193
1236
|
upc?: string | null | undefined;
|
|
1194
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1195
1237
|
title?: string | undefined;
|
|
1196
1238
|
prices?: {
|
|
1197
1239
|
id?: string | undefined;
|
|
@@ -1226,9 +1268,13 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1226
1268
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1227
1269
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1228
1270
|
}, "strict", z.ZodTypeAny, {
|
|
1271
|
+
options?: {
|
|
1272
|
+
values: string[];
|
|
1273
|
+
title: string;
|
|
1274
|
+
}[] | undefined;
|
|
1229
1275
|
length?: number | null | undefined;
|
|
1230
|
-
status?: ProductStatus | undefined;
|
|
1231
1276
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1277
|
+
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
1232
1278
|
title?: string | undefined;
|
|
1233
1279
|
handle?: string | null | undefined;
|
|
1234
1280
|
description?: string | null | undefined;
|
|
@@ -1237,10 +1283,8 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1237
1283
|
collection_id?: string | null | undefined;
|
|
1238
1284
|
type_id?: string | null | undefined;
|
|
1239
1285
|
subtitle?: string | null | undefined;
|
|
1240
|
-
is_restricted?: boolean | undefined;
|
|
1241
1286
|
is_giftcard?: boolean | undefined;
|
|
1242
1287
|
discountable?: boolean | undefined;
|
|
1243
|
-
brand_id?: string | null | undefined;
|
|
1244
1288
|
weight?: number | null | undefined;
|
|
1245
1289
|
height?: number | null | undefined;
|
|
1246
1290
|
width?: number | null | undefined;
|
|
@@ -1248,6 +1292,7 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1248
1292
|
origin_country?: string | null | undefined;
|
|
1249
1293
|
mid_code?: string | null | undefined;
|
|
1250
1294
|
material?: string | null | undefined;
|
|
1295
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1251
1296
|
images?: {
|
|
1252
1297
|
url: string;
|
|
1253
1298
|
id?: string | undefined;
|
|
@@ -1263,36 +1308,37 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1263
1308
|
values?: string[] | undefined;
|
|
1264
1309
|
value_ids?: string[] | undefined;
|
|
1265
1310
|
} | {
|
|
1266
|
-
type: "single_select" | "multi_select" | "
|
|
1311
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1267
1312
|
name: string;
|
|
1268
1313
|
values?: string[] | undefined;
|
|
1269
1314
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1270
1315
|
description?: string | null | undefined;
|
|
1316
|
+
is_variant_axis?: boolean | undefined;
|
|
1271
1317
|
is_required?: boolean | undefined;
|
|
1272
1318
|
is_filterable?: boolean | undefined;
|
|
1273
|
-
is_variant_axis?: boolean | undefined;
|
|
1274
1319
|
})[] | undefined;
|
|
1275
1320
|
product_attributes?: ({
|
|
1276
1321
|
attribute_id: string;
|
|
1277
1322
|
values?: string[] | undefined;
|
|
1278
1323
|
value_ids?: string[] | undefined;
|
|
1279
1324
|
} | {
|
|
1280
|
-
type: "single_select" | "multi_select" | "
|
|
1325
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1281
1326
|
name: string;
|
|
1282
1327
|
values?: string[] | undefined;
|
|
1283
1328
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1284
1329
|
description?: string | null | undefined;
|
|
1330
|
+
is_variant_axis?: boolean | undefined;
|
|
1285
1331
|
is_required?: boolean | undefined;
|
|
1286
1332
|
is_filterable?: boolean | undefined;
|
|
1287
|
-
is_variant_axis?: boolean | undefined;
|
|
1288
1333
|
})[] | undefined;
|
|
1289
1334
|
variants?: {
|
|
1335
|
+
options?: Record<string, string> | undefined;
|
|
1290
1336
|
length?: number | null | undefined;
|
|
1337
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1291
1338
|
id?: string | undefined;
|
|
1292
1339
|
sku?: string | null | undefined;
|
|
1293
1340
|
ean?: string | null | undefined;
|
|
1294
1341
|
upc?: string | null | undefined;
|
|
1295
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1296
1342
|
title?: string | undefined;
|
|
1297
1343
|
prices?: {
|
|
1298
1344
|
id?: string | undefined;
|
|
@@ -1318,9 +1364,13 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1318
1364
|
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1319
1365
|
}[] | undefined;
|
|
1320
1366
|
}, {
|
|
1367
|
+
options?: {
|
|
1368
|
+
values: string[];
|
|
1369
|
+
title: string;
|
|
1370
|
+
}[] | undefined;
|
|
1321
1371
|
length?: number | null | undefined;
|
|
1322
|
-
status?: ProductStatus | undefined;
|
|
1323
1372
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1373
|
+
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
1324
1374
|
title?: string | undefined;
|
|
1325
1375
|
handle?: string | null | undefined;
|
|
1326
1376
|
description?: string | null | undefined;
|
|
@@ -1329,10 +1379,8 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1329
1379
|
collection_id?: string | null | undefined;
|
|
1330
1380
|
type_id?: string | null | undefined;
|
|
1331
1381
|
subtitle?: string | null | undefined;
|
|
1332
|
-
is_restricted?: boolean | undefined;
|
|
1333
1382
|
is_giftcard?: string | boolean | undefined;
|
|
1334
1383
|
discountable?: string | boolean | undefined;
|
|
1335
|
-
brand_id?: string | null | undefined;
|
|
1336
1384
|
weight?: number | null | undefined;
|
|
1337
1385
|
height?: number | null | undefined;
|
|
1338
1386
|
width?: number | null | undefined;
|
|
@@ -1340,6 +1388,7 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1340
1388
|
origin_country?: string | null | undefined;
|
|
1341
1389
|
mid_code?: string | null | undefined;
|
|
1342
1390
|
material?: string | null | undefined;
|
|
1391
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1343
1392
|
images?: {
|
|
1344
1393
|
url: string;
|
|
1345
1394
|
id?: string | undefined;
|
|
@@ -1355,36 +1404,37 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1355
1404
|
values?: string[] | undefined;
|
|
1356
1405
|
value_ids?: string[] | undefined;
|
|
1357
1406
|
} | {
|
|
1358
|
-
type: "single_select" | "multi_select" | "
|
|
1407
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1359
1408
|
name: string;
|
|
1360
1409
|
values?: string[] | undefined;
|
|
1361
1410
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1362
1411
|
description?: string | null | undefined;
|
|
1412
|
+
is_variant_axis?: boolean | undefined;
|
|
1363
1413
|
is_required?: boolean | undefined;
|
|
1364
1414
|
is_filterable?: boolean | undefined;
|
|
1365
|
-
is_variant_axis?: boolean | undefined;
|
|
1366
1415
|
})[] | undefined;
|
|
1367
1416
|
product_attributes?: ({
|
|
1368
1417
|
attribute_id: string;
|
|
1369
1418
|
values?: string[] | undefined;
|
|
1370
1419
|
value_ids?: string[] | undefined;
|
|
1371
1420
|
} | {
|
|
1372
|
-
type: "single_select" | "multi_select" | "
|
|
1421
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1373
1422
|
name: string;
|
|
1374
1423
|
values?: string[] | undefined;
|
|
1375
1424
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1376
1425
|
description?: string | null | undefined;
|
|
1426
|
+
is_variant_axis?: boolean | undefined;
|
|
1377
1427
|
is_required?: boolean | undefined;
|
|
1378
1428
|
is_filterable?: boolean | undefined;
|
|
1379
|
-
is_variant_axis?: boolean | undefined;
|
|
1380
1429
|
})[] | undefined;
|
|
1381
1430
|
variants?: {
|
|
1431
|
+
options?: Record<string, string> | undefined;
|
|
1382
1432
|
length?: number | null | undefined;
|
|
1433
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1383
1434
|
id?: string | undefined;
|
|
1384
1435
|
sku?: string | null | undefined;
|
|
1385
1436
|
ean?: string | null | undefined;
|
|
1386
1437
|
upc?: string | null | undefined;
|
|
1387
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1388
1438
|
title?: string | undefined;
|
|
1389
1439
|
prices?: {
|
|
1390
1440
|
id?: string | undefined;
|
|
@@ -1439,90 +1489,751 @@ export declare const AdminRequestProductChanges: z.ZodObject<{
|
|
|
1439
1489
|
}, {
|
|
1440
1490
|
message?: string | undefined;
|
|
1441
1491
|
}>;
|
|
1442
|
-
declare const
|
|
1492
|
+
declare const BatchProductVariants: z.ZodObject<{
|
|
1493
|
+
create: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1494
|
+
title: z.ZodString;
|
|
1495
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1496
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1497
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1498
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1499
|
+
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1500
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1501
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1502
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1503
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1504
|
+
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1505
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1506
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1507
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1508
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1509
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1510
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1511
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1512
|
+
/** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
|
|
1513
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1514
|
+
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1515
|
+
}, "strict", z.ZodTypeAny, {
|
|
1516
|
+
title: string;
|
|
1517
|
+
options?: Record<string, string> | undefined;
|
|
1518
|
+
length?: number | null | undefined;
|
|
1519
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1520
|
+
sku?: string | null | undefined;
|
|
1521
|
+
ean?: string | null | undefined;
|
|
1522
|
+
upc?: string | null | undefined;
|
|
1523
|
+
weight?: number | null | undefined;
|
|
1524
|
+
height?: number | null | undefined;
|
|
1525
|
+
width?: number | null | undefined;
|
|
1526
|
+
hs_code?: string | null | undefined;
|
|
1527
|
+
origin_country?: string | null | undefined;
|
|
1528
|
+
mid_code?: string | null | undefined;
|
|
1529
|
+
material?: string | null | undefined;
|
|
1530
|
+
isbn?: string | null | undefined;
|
|
1531
|
+
asin?: string | null | undefined;
|
|
1532
|
+
gtin?: string | null | undefined;
|
|
1533
|
+
barcode?: string | null | undefined;
|
|
1534
|
+
variant_rank?: number | undefined;
|
|
1535
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1536
|
+
}, {
|
|
1537
|
+
title: string;
|
|
1538
|
+
options?: Record<string, string> | undefined;
|
|
1539
|
+
length?: number | null | undefined;
|
|
1540
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1541
|
+
sku?: string | null | undefined;
|
|
1542
|
+
ean?: string | null | undefined;
|
|
1543
|
+
upc?: string | null | undefined;
|
|
1544
|
+
weight?: number | null | undefined;
|
|
1545
|
+
height?: number | null | undefined;
|
|
1546
|
+
width?: number | null | undefined;
|
|
1547
|
+
hs_code?: string | null | undefined;
|
|
1548
|
+
origin_country?: string | null | undefined;
|
|
1549
|
+
mid_code?: string | null | undefined;
|
|
1550
|
+
material?: string | null | undefined;
|
|
1551
|
+
isbn?: string | null | undefined;
|
|
1552
|
+
asin?: string | null | undefined;
|
|
1553
|
+
gtin?: string | null | undefined;
|
|
1554
|
+
barcode?: string | null | undefined;
|
|
1555
|
+
variant_rank?: number | undefined;
|
|
1556
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1557
|
+
}>, "many">>;
|
|
1443
1558
|
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1444
1559
|
title: z.ZodOptional<z.ZodString>;
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1560
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1561
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1562
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1563
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1564
|
+
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1565
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1566
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1567
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1568
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1569
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1570
|
+
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1571
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1572
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1573
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1574
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1575
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1576
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1577
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1578
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1450
1579
|
id: z.ZodOptional<z.ZodString>;
|
|
1451
|
-
|
|
1580
|
+
currency_code: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1582
|
+
min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1583
|
+
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1584
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1452
1585
|
}, "strip", z.ZodTypeAny, {
|
|
1453
|
-
url: string;
|
|
1454
1586
|
id?: string | undefined;
|
|
1587
|
+
amount?: number | undefined;
|
|
1588
|
+
currency_code?: string | undefined;
|
|
1589
|
+
min_quantity?: number | null | undefined;
|
|
1590
|
+
max_quantity?: number | null | undefined;
|
|
1591
|
+
rules?: Record<string, string> | undefined;
|
|
1455
1592
|
}, {
|
|
1456
|
-
url: string;
|
|
1457
1593
|
id?: string | undefined;
|
|
1594
|
+
amount?: number | undefined;
|
|
1595
|
+
currency_code?: string | undefined;
|
|
1596
|
+
min_quantity?: number | null | undefined;
|
|
1597
|
+
max_quantity?: number | null | undefined;
|
|
1598
|
+
rules?: Record<string, string> | undefined;
|
|
1458
1599
|
}>, "many">>;
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1600
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1601
|
+
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1602
|
+
} & {
|
|
1603
|
+
id: z.ZodString;
|
|
1604
|
+
}, "strict", z.ZodTypeAny, {
|
|
1605
|
+
id: string;
|
|
1606
|
+
options?: Record<string, string> | undefined;
|
|
1607
|
+
length?: number | null | undefined;
|
|
1608
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1609
|
+
sku?: string | null | undefined;
|
|
1610
|
+
ean?: string | null | undefined;
|
|
1611
|
+
upc?: string | null | undefined;
|
|
1612
|
+
title?: string | undefined;
|
|
1613
|
+
prices?: {
|
|
1614
|
+
id?: string | undefined;
|
|
1615
|
+
amount?: number | undefined;
|
|
1616
|
+
currency_code?: string | undefined;
|
|
1617
|
+
min_quantity?: number | null | undefined;
|
|
1618
|
+
max_quantity?: number | null | undefined;
|
|
1619
|
+
rules?: Record<string, string> | undefined;
|
|
1620
|
+
}[] | undefined;
|
|
1621
|
+
thumbnail?: string | null | undefined;
|
|
1622
|
+
weight?: number | null | undefined;
|
|
1623
|
+
height?: number | null | undefined;
|
|
1624
|
+
width?: number | null | undefined;
|
|
1625
|
+
hs_code?: string | null | undefined;
|
|
1626
|
+
origin_country?: string | null | undefined;
|
|
1627
|
+
mid_code?: string | null | undefined;
|
|
1628
|
+
material?: string | null | undefined;
|
|
1629
|
+
isbn?: string | null | undefined;
|
|
1630
|
+
asin?: string | null | undefined;
|
|
1631
|
+
gtin?: string | null | undefined;
|
|
1632
|
+
barcode?: string | null | undefined;
|
|
1633
|
+
variant_rank?: number | undefined;
|
|
1634
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1635
|
+
}, {
|
|
1636
|
+
id: string;
|
|
1637
|
+
options?: Record<string, string> | undefined;
|
|
1638
|
+
length?: number | null | undefined;
|
|
1639
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1640
|
+
sku?: string | null | undefined;
|
|
1641
|
+
ean?: string | null | undefined;
|
|
1642
|
+
upc?: string | null | undefined;
|
|
1643
|
+
title?: string | undefined;
|
|
1644
|
+
prices?: {
|
|
1645
|
+
id?: string | undefined;
|
|
1646
|
+
amount?: number | undefined;
|
|
1647
|
+
currency_code?: string | undefined;
|
|
1648
|
+
min_quantity?: number | null | undefined;
|
|
1649
|
+
max_quantity?: number | null | undefined;
|
|
1650
|
+
rules?: Record<string, string> | undefined;
|
|
1651
|
+
}[] | undefined;
|
|
1652
|
+
thumbnail?: string | null | undefined;
|
|
1653
|
+
weight?: number | null | undefined;
|
|
1654
|
+
height?: number | null | undefined;
|
|
1655
|
+
width?: number | null | undefined;
|
|
1656
|
+
hs_code?: string | null | undefined;
|
|
1657
|
+
origin_country?: string | null | undefined;
|
|
1658
|
+
mid_code?: string | null | undefined;
|
|
1659
|
+
material?: string | null | undefined;
|
|
1660
|
+
isbn?: string | null | undefined;
|
|
1661
|
+
asin?: string | null | undefined;
|
|
1662
|
+
gtin?: string | null | undefined;
|
|
1663
|
+
barcode?: string | null | undefined;
|
|
1664
|
+
variant_rank?: number | undefined;
|
|
1665
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1666
|
+
}>, "many">>;
|
|
1667
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1668
|
+
}, "strip", z.ZodTypeAny, {
|
|
1669
|
+
create?: {
|
|
1670
|
+
title: string;
|
|
1671
|
+
options?: Record<string, string> | undefined;
|
|
1672
|
+
length?: number | null | undefined;
|
|
1673
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1674
|
+
sku?: string | null | undefined;
|
|
1675
|
+
ean?: string | null | undefined;
|
|
1676
|
+
upc?: string | null | undefined;
|
|
1677
|
+
weight?: number | null | undefined;
|
|
1678
|
+
height?: number | null | undefined;
|
|
1679
|
+
width?: number | null | undefined;
|
|
1680
|
+
hs_code?: string | null | undefined;
|
|
1681
|
+
origin_country?: string | null | undefined;
|
|
1682
|
+
mid_code?: string | null | undefined;
|
|
1683
|
+
material?: string | null | undefined;
|
|
1684
|
+
isbn?: string | null | undefined;
|
|
1685
|
+
asin?: string | null | undefined;
|
|
1686
|
+
gtin?: string | null | undefined;
|
|
1687
|
+
barcode?: string | null | undefined;
|
|
1688
|
+
variant_rank?: number | undefined;
|
|
1689
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1690
|
+
}[] | undefined;
|
|
1691
|
+
update?: {
|
|
1692
|
+
id: string;
|
|
1693
|
+
options?: Record<string, string> | undefined;
|
|
1694
|
+
length?: number | null | undefined;
|
|
1695
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1696
|
+
sku?: string | null | undefined;
|
|
1697
|
+
ean?: string | null | undefined;
|
|
1698
|
+
upc?: string | null | undefined;
|
|
1699
|
+
title?: string | undefined;
|
|
1700
|
+
prices?: {
|
|
1701
|
+
id?: string | undefined;
|
|
1702
|
+
amount?: number | undefined;
|
|
1703
|
+
currency_code?: string | undefined;
|
|
1704
|
+
min_quantity?: number | null | undefined;
|
|
1705
|
+
max_quantity?: number | null | undefined;
|
|
1706
|
+
rules?: Record<string, string> | undefined;
|
|
1707
|
+
}[] | undefined;
|
|
1708
|
+
thumbnail?: string | null | undefined;
|
|
1709
|
+
weight?: number | null | undefined;
|
|
1710
|
+
height?: number | null | undefined;
|
|
1711
|
+
width?: number | null | undefined;
|
|
1712
|
+
hs_code?: string | null | undefined;
|
|
1713
|
+
origin_country?: string | null | undefined;
|
|
1714
|
+
mid_code?: string | null | undefined;
|
|
1715
|
+
material?: string | null | undefined;
|
|
1716
|
+
isbn?: string | null | undefined;
|
|
1717
|
+
asin?: string | null | undefined;
|
|
1718
|
+
gtin?: string | null | undefined;
|
|
1719
|
+
barcode?: string | null | undefined;
|
|
1720
|
+
variant_rank?: number | undefined;
|
|
1721
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1722
|
+
}[] | undefined;
|
|
1723
|
+
delete?: string[] | undefined;
|
|
1724
|
+
}, {
|
|
1725
|
+
create?: {
|
|
1726
|
+
title: string;
|
|
1727
|
+
options?: Record<string, string> | undefined;
|
|
1728
|
+
length?: number | null | undefined;
|
|
1729
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1730
|
+
sku?: string | null | undefined;
|
|
1731
|
+
ean?: string | null | undefined;
|
|
1732
|
+
upc?: string | null | undefined;
|
|
1733
|
+
weight?: number | null | undefined;
|
|
1734
|
+
height?: number | null | undefined;
|
|
1735
|
+
width?: number | null | undefined;
|
|
1736
|
+
hs_code?: string | null | undefined;
|
|
1737
|
+
origin_country?: string | null | undefined;
|
|
1738
|
+
mid_code?: string | null | undefined;
|
|
1739
|
+
material?: string | null | undefined;
|
|
1740
|
+
isbn?: string | null | undefined;
|
|
1741
|
+
asin?: string | null | undefined;
|
|
1742
|
+
gtin?: string | null | undefined;
|
|
1743
|
+
barcode?: string | null | undefined;
|
|
1744
|
+
variant_rank?: number | undefined;
|
|
1745
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1746
|
+
}[] | undefined;
|
|
1747
|
+
update?: {
|
|
1748
|
+
id: string;
|
|
1749
|
+
options?: Record<string, string> | undefined;
|
|
1750
|
+
length?: number | null | undefined;
|
|
1751
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1752
|
+
sku?: string | null | undefined;
|
|
1753
|
+
ean?: string | null | undefined;
|
|
1754
|
+
upc?: string | null | undefined;
|
|
1755
|
+
title?: string | undefined;
|
|
1756
|
+
prices?: {
|
|
1757
|
+
id?: string | undefined;
|
|
1758
|
+
amount?: number | undefined;
|
|
1759
|
+
currency_code?: string | undefined;
|
|
1760
|
+
min_quantity?: number | null | undefined;
|
|
1761
|
+
max_quantity?: number | null | undefined;
|
|
1762
|
+
rules?: Record<string, string> | undefined;
|
|
1763
|
+
}[] | undefined;
|
|
1764
|
+
thumbnail?: string | null | undefined;
|
|
1765
|
+
weight?: number | null | undefined;
|
|
1766
|
+
height?: number | null | undefined;
|
|
1767
|
+
width?: number | null | undefined;
|
|
1768
|
+
hs_code?: string | null | undefined;
|
|
1769
|
+
origin_country?: string | null | undefined;
|
|
1770
|
+
mid_code?: string | null | undefined;
|
|
1771
|
+
material?: string | null | undefined;
|
|
1772
|
+
isbn?: string | null | undefined;
|
|
1773
|
+
asin?: string | null | undefined;
|
|
1774
|
+
gtin?: string | null | undefined;
|
|
1775
|
+
barcode?: string | null | undefined;
|
|
1776
|
+
variant_rank?: number | undefined;
|
|
1777
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1778
|
+
}[] | undefined;
|
|
1779
|
+
delete?: string[] | undefined;
|
|
1780
|
+
}>;
|
|
1781
|
+
export type AdminBatchProductVariantsType = z.infer<typeof BatchProductVariants>;
|
|
1782
|
+
export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
1783
|
+
create: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1784
|
+
title: z.ZodString;
|
|
1785
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1786
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1787
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1788
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1789
|
+
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1790
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1791
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1792
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1793
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1794
|
+
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1795
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1796
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1797
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1798
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1799
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1800
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1801
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1802
|
+
/** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
|
|
1803
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1804
|
+
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1805
|
+
}, "strict", z.ZodTypeAny, {
|
|
1806
|
+
title: string;
|
|
1807
|
+
options?: Record<string, string> | undefined;
|
|
1808
|
+
length?: number | null | undefined;
|
|
1809
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1810
|
+
sku?: string | null | undefined;
|
|
1811
|
+
ean?: string | null | undefined;
|
|
1812
|
+
upc?: string | null | undefined;
|
|
1813
|
+
weight?: number | null | undefined;
|
|
1814
|
+
height?: number | null | undefined;
|
|
1815
|
+
width?: number | null | undefined;
|
|
1816
|
+
hs_code?: string | null | undefined;
|
|
1817
|
+
origin_country?: string | null | undefined;
|
|
1818
|
+
mid_code?: string | null | undefined;
|
|
1819
|
+
material?: string | null | undefined;
|
|
1820
|
+
isbn?: string | null | undefined;
|
|
1821
|
+
asin?: string | null | undefined;
|
|
1822
|
+
gtin?: string | null | undefined;
|
|
1823
|
+
barcode?: string | null | undefined;
|
|
1824
|
+
variant_rank?: number | undefined;
|
|
1825
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1826
|
+
}, {
|
|
1827
|
+
title: string;
|
|
1828
|
+
options?: Record<string, string> | undefined;
|
|
1829
|
+
length?: number | null | undefined;
|
|
1830
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1831
|
+
sku?: string | null | undefined;
|
|
1832
|
+
ean?: string | null | undefined;
|
|
1833
|
+
upc?: string | null | undefined;
|
|
1834
|
+
weight?: number | null | undefined;
|
|
1835
|
+
height?: number | null | undefined;
|
|
1836
|
+
width?: number | null | undefined;
|
|
1837
|
+
hs_code?: string | null | undefined;
|
|
1838
|
+
origin_country?: string | null | undefined;
|
|
1839
|
+
mid_code?: string | null | undefined;
|
|
1840
|
+
material?: string | null | undefined;
|
|
1841
|
+
isbn?: string | null | undefined;
|
|
1842
|
+
asin?: string | null | undefined;
|
|
1843
|
+
gtin?: string | null | undefined;
|
|
1844
|
+
barcode?: string | null | undefined;
|
|
1845
|
+
variant_rank?: number | undefined;
|
|
1846
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1847
|
+
}>, "many">>;
|
|
1848
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1849
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1850
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1851
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1852
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1853
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1854
|
+
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1855
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1856
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1857
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1858
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1859
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1860
|
+
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1861
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1862
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1863
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1864
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1865
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1866
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1867
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1868
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1869
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1870
|
+
currency_code: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1872
|
+
min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1873
|
+
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1874
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1875
|
+
}, "strip", z.ZodTypeAny, {
|
|
1876
|
+
id?: string | undefined;
|
|
1877
|
+
amount?: number | undefined;
|
|
1878
|
+
currency_code?: string | undefined;
|
|
1879
|
+
min_quantity?: number | null | undefined;
|
|
1880
|
+
max_quantity?: number | null | undefined;
|
|
1881
|
+
rules?: Record<string, string> | undefined;
|
|
1882
|
+
}, {
|
|
1883
|
+
id?: string | undefined;
|
|
1884
|
+
amount?: number | undefined;
|
|
1885
|
+
currency_code?: string | undefined;
|
|
1886
|
+
min_quantity?: number | null | undefined;
|
|
1887
|
+
max_quantity?: number | null | undefined;
|
|
1888
|
+
rules?: Record<string, string> | undefined;
|
|
1889
|
+
}>, "many">>;
|
|
1890
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1891
|
+
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1892
|
+
} & {
|
|
1893
|
+
id: z.ZodString;
|
|
1894
|
+
}, "strict", z.ZodTypeAny, {
|
|
1895
|
+
id: string;
|
|
1896
|
+
options?: Record<string, string> | undefined;
|
|
1897
|
+
length?: number | null | undefined;
|
|
1898
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1899
|
+
sku?: string | null | undefined;
|
|
1900
|
+
ean?: string | null | undefined;
|
|
1901
|
+
upc?: string | null | undefined;
|
|
1902
|
+
title?: string | undefined;
|
|
1903
|
+
prices?: {
|
|
1904
|
+
id?: string | undefined;
|
|
1905
|
+
amount?: number | undefined;
|
|
1906
|
+
currency_code?: string | undefined;
|
|
1907
|
+
min_quantity?: number | null | undefined;
|
|
1908
|
+
max_quantity?: number | null | undefined;
|
|
1909
|
+
rules?: Record<string, string> | undefined;
|
|
1910
|
+
}[] | undefined;
|
|
1911
|
+
thumbnail?: string | null | undefined;
|
|
1912
|
+
weight?: number | null | undefined;
|
|
1913
|
+
height?: number | null | undefined;
|
|
1914
|
+
width?: number | null | undefined;
|
|
1915
|
+
hs_code?: string | null | undefined;
|
|
1916
|
+
origin_country?: string | null | undefined;
|
|
1917
|
+
mid_code?: string | null | undefined;
|
|
1918
|
+
material?: string | null | undefined;
|
|
1919
|
+
isbn?: string | null | undefined;
|
|
1920
|
+
asin?: string | null | undefined;
|
|
1921
|
+
gtin?: string | null | undefined;
|
|
1922
|
+
barcode?: string | null | undefined;
|
|
1923
|
+
variant_rank?: number | undefined;
|
|
1924
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1925
|
+
}, {
|
|
1926
|
+
id: string;
|
|
1927
|
+
options?: Record<string, string> | undefined;
|
|
1928
|
+
length?: number | null | undefined;
|
|
1929
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1930
|
+
sku?: string | null | undefined;
|
|
1931
|
+
ean?: string | null | undefined;
|
|
1932
|
+
upc?: string | null | undefined;
|
|
1933
|
+
title?: string | undefined;
|
|
1934
|
+
prices?: {
|
|
1935
|
+
id?: string | undefined;
|
|
1936
|
+
amount?: number | undefined;
|
|
1937
|
+
currency_code?: string | undefined;
|
|
1938
|
+
min_quantity?: number | null | undefined;
|
|
1939
|
+
max_quantity?: number | null | undefined;
|
|
1940
|
+
rules?: Record<string, string> | undefined;
|
|
1941
|
+
}[] | undefined;
|
|
1942
|
+
thumbnail?: string | null | undefined;
|
|
1943
|
+
weight?: number | null | undefined;
|
|
1944
|
+
height?: number | null | undefined;
|
|
1945
|
+
width?: number | null | undefined;
|
|
1946
|
+
hs_code?: string | null | undefined;
|
|
1947
|
+
origin_country?: string | null | undefined;
|
|
1948
|
+
mid_code?: string | null | undefined;
|
|
1949
|
+
material?: string | null | undefined;
|
|
1950
|
+
isbn?: string | null | undefined;
|
|
1951
|
+
asin?: string | null | undefined;
|
|
1952
|
+
gtin?: string | null | undefined;
|
|
1953
|
+
barcode?: string | null | undefined;
|
|
1954
|
+
variant_rank?: number | undefined;
|
|
1955
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1956
|
+
}>, "many">>;
|
|
1957
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1958
|
+
}, "strip", z.ZodTypeAny, {
|
|
1959
|
+
create?: {
|
|
1960
|
+
title: string;
|
|
1961
|
+
options?: Record<string, string> | undefined;
|
|
1962
|
+
length?: number | null | undefined;
|
|
1963
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1964
|
+
sku?: string | null | undefined;
|
|
1965
|
+
ean?: string | null | undefined;
|
|
1966
|
+
upc?: string | null | undefined;
|
|
1967
|
+
weight?: number | null | undefined;
|
|
1968
|
+
height?: number | null | undefined;
|
|
1969
|
+
width?: number | null | undefined;
|
|
1970
|
+
hs_code?: string | null | undefined;
|
|
1971
|
+
origin_country?: string | null | undefined;
|
|
1972
|
+
mid_code?: string | null | undefined;
|
|
1973
|
+
material?: string | null | undefined;
|
|
1974
|
+
isbn?: string | null | undefined;
|
|
1975
|
+
asin?: string | null | undefined;
|
|
1976
|
+
gtin?: string | null | undefined;
|
|
1977
|
+
barcode?: string | null | undefined;
|
|
1978
|
+
variant_rank?: number | undefined;
|
|
1979
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1980
|
+
}[] | undefined;
|
|
1981
|
+
update?: {
|
|
1982
|
+
id: string;
|
|
1983
|
+
options?: Record<string, string> | undefined;
|
|
1984
|
+
length?: number | null | undefined;
|
|
1985
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1986
|
+
sku?: string | null | undefined;
|
|
1987
|
+
ean?: string | null | undefined;
|
|
1988
|
+
upc?: string | null | undefined;
|
|
1989
|
+
title?: string | undefined;
|
|
1990
|
+
prices?: {
|
|
1991
|
+
id?: string | undefined;
|
|
1992
|
+
amount?: number | undefined;
|
|
1993
|
+
currency_code?: string | undefined;
|
|
1994
|
+
min_quantity?: number | null | undefined;
|
|
1995
|
+
max_quantity?: number | null | undefined;
|
|
1996
|
+
rules?: Record<string, string> | undefined;
|
|
1997
|
+
}[] | undefined;
|
|
1998
|
+
thumbnail?: string | null | undefined;
|
|
1999
|
+
weight?: number | null | undefined;
|
|
2000
|
+
height?: number | null | undefined;
|
|
2001
|
+
width?: number | null | undefined;
|
|
2002
|
+
hs_code?: string | null | undefined;
|
|
2003
|
+
origin_country?: string | null | undefined;
|
|
2004
|
+
mid_code?: string | null | undefined;
|
|
2005
|
+
material?: string | null | undefined;
|
|
2006
|
+
isbn?: string | null | undefined;
|
|
2007
|
+
asin?: string | null | undefined;
|
|
2008
|
+
gtin?: string | null | undefined;
|
|
2009
|
+
barcode?: string | null | undefined;
|
|
2010
|
+
variant_rank?: number | undefined;
|
|
2011
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2012
|
+
}[] | undefined;
|
|
2013
|
+
delete?: string[] | undefined;
|
|
2014
|
+
}, {
|
|
2015
|
+
create?: {
|
|
2016
|
+
title: string;
|
|
2017
|
+
options?: Record<string, string> | undefined;
|
|
2018
|
+
length?: number | null | undefined;
|
|
2019
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2020
|
+
sku?: string | null | undefined;
|
|
2021
|
+
ean?: string | null | undefined;
|
|
2022
|
+
upc?: string | null | undefined;
|
|
2023
|
+
weight?: number | null | undefined;
|
|
2024
|
+
height?: number | null | undefined;
|
|
2025
|
+
width?: number | null | undefined;
|
|
2026
|
+
hs_code?: string | null | undefined;
|
|
2027
|
+
origin_country?: string | null | undefined;
|
|
2028
|
+
mid_code?: string | null | undefined;
|
|
2029
|
+
material?: string | null | undefined;
|
|
2030
|
+
isbn?: string | null | undefined;
|
|
2031
|
+
asin?: string | null | undefined;
|
|
2032
|
+
gtin?: string | null | undefined;
|
|
2033
|
+
barcode?: string | null | undefined;
|
|
2034
|
+
variant_rank?: number | undefined;
|
|
2035
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2036
|
+
}[] | undefined;
|
|
2037
|
+
update?: {
|
|
2038
|
+
id: string;
|
|
2039
|
+
options?: Record<string, string> | undefined;
|
|
2040
|
+
length?: number | null | undefined;
|
|
2041
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2042
|
+
sku?: string | null | undefined;
|
|
2043
|
+
ean?: string | null | undefined;
|
|
2044
|
+
upc?: string | null | undefined;
|
|
2045
|
+
title?: string | undefined;
|
|
2046
|
+
prices?: {
|
|
2047
|
+
id?: string | undefined;
|
|
2048
|
+
amount?: number | undefined;
|
|
2049
|
+
currency_code?: string | undefined;
|
|
2050
|
+
min_quantity?: number | null | undefined;
|
|
2051
|
+
max_quantity?: number | null | undefined;
|
|
2052
|
+
rules?: Record<string, string> | undefined;
|
|
2053
|
+
}[] | undefined;
|
|
2054
|
+
thumbnail?: string | null | undefined;
|
|
2055
|
+
weight?: number | null | undefined;
|
|
2056
|
+
height?: number | null | undefined;
|
|
2057
|
+
width?: number | null | undefined;
|
|
2058
|
+
hs_code?: string | null | undefined;
|
|
2059
|
+
origin_country?: string | null | undefined;
|
|
2060
|
+
mid_code?: string | null | undefined;
|
|
2061
|
+
material?: string | null | undefined;
|
|
2062
|
+
isbn?: string | null | undefined;
|
|
2063
|
+
asin?: string | null | undefined;
|
|
2064
|
+
gtin?: string | null | undefined;
|
|
2065
|
+
barcode?: string | null | undefined;
|
|
2066
|
+
variant_rank?: number | undefined;
|
|
2067
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2068
|
+
}[] | undefined;
|
|
2069
|
+
delete?: string[] | undefined;
|
|
2070
|
+
}>;
|
|
2071
|
+
export type AdminBatchVariantInventoryItemsType = z.infer<typeof AdminBatchVariantInventoryItems>;
|
|
2072
|
+
export declare const AdminBatchVariantInventoryItems: z.ZodObject<{
|
|
2073
|
+
create: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2074
|
+
variant_id: z.ZodString;
|
|
2075
|
+
inventory_item_id: z.ZodString;
|
|
2076
|
+
required_quantity: z.ZodOptional<z.ZodNumber>;
|
|
2077
|
+
}, "strict", z.ZodTypeAny, {
|
|
2078
|
+
variant_id: string;
|
|
2079
|
+
inventory_item_id: string;
|
|
2080
|
+
required_quantity?: number | undefined;
|
|
2081
|
+
}, {
|
|
2082
|
+
variant_id: string;
|
|
2083
|
+
inventory_item_id: string;
|
|
2084
|
+
required_quantity?: number | undefined;
|
|
2085
|
+
}>, "many">>;
|
|
2086
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2087
|
+
variant_id: z.ZodString;
|
|
2088
|
+
inventory_item_id: z.ZodString;
|
|
2089
|
+
required_quantity: z.ZodOptional<z.ZodNumber>;
|
|
2090
|
+
}, "strict", z.ZodTypeAny, {
|
|
2091
|
+
variant_id: string;
|
|
2092
|
+
inventory_item_id: string;
|
|
2093
|
+
required_quantity?: number | undefined;
|
|
2094
|
+
}, {
|
|
2095
|
+
variant_id: string;
|
|
2096
|
+
inventory_item_id: string;
|
|
2097
|
+
required_quantity?: number | undefined;
|
|
2098
|
+
}>, "many">>;
|
|
2099
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2100
|
+
variant_id: z.ZodString;
|
|
2101
|
+
inventory_item_id: z.ZodString;
|
|
2102
|
+
}, "strict", z.ZodTypeAny, {
|
|
2103
|
+
variant_id: string;
|
|
2104
|
+
inventory_item_id: string;
|
|
2105
|
+
}, {
|
|
2106
|
+
variant_id: string;
|
|
2107
|
+
inventory_item_id: string;
|
|
2108
|
+
}>, "many">>;
|
|
2109
|
+
}, "strip", z.ZodTypeAny, {
|
|
2110
|
+
create?: {
|
|
2111
|
+
variant_id: string;
|
|
2112
|
+
inventory_item_id: string;
|
|
2113
|
+
required_quantity?: number | undefined;
|
|
2114
|
+
}[] | undefined;
|
|
2115
|
+
update?: {
|
|
2116
|
+
variant_id: string;
|
|
2117
|
+
inventory_item_id: string;
|
|
2118
|
+
required_quantity?: number | undefined;
|
|
2119
|
+
}[] | undefined;
|
|
2120
|
+
delete?: {
|
|
2121
|
+
variant_id: string;
|
|
2122
|
+
inventory_item_id: string;
|
|
2123
|
+
}[] | undefined;
|
|
2124
|
+
}, {
|
|
2125
|
+
create?: {
|
|
2126
|
+
variant_id: string;
|
|
2127
|
+
inventory_item_id: string;
|
|
2128
|
+
required_quantity?: number | undefined;
|
|
2129
|
+
}[] | undefined;
|
|
2130
|
+
update?: {
|
|
2131
|
+
variant_id: string;
|
|
2132
|
+
inventory_item_id: string;
|
|
2133
|
+
required_quantity?: number | undefined;
|
|
2134
|
+
}[] | undefined;
|
|
2135
|
+
delete?: {
|
|
2136
|
+
variant_id: string;
|
|
2137
|
+
inventory_item_id: string;
|
|
2138
|
+
}[] | undefined;
|
|
2139
|
+
}>;
|
|
2140
|
+
declare const BatchProducts: z.ZodObject<{
|
|
2141
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2142
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2143
|
+
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2144
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2145
|
+
discountable: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
2146
|
+
is_giftcard: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
2147
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2148
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2149
|
+
url: z.ZodString;
|
|
2150
|
+
}, "strip", z.ZodTypeAny, {
|
|
2151
|
+
url: string;
|
|
2152
|
+
id?: string | undefined;
|
|
2153
|
+
}, {
|
|
2154
|
+
url: string;
|
|
2155
|
+
id?: string | undefined;
|
|
2156
|
+
}>, "many">>;
|
|
2157
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2158
|
+
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2159
|
+
status: z.ZodOptional<z.ZodNativeEnum<{
|
|
2160
|
+
readonly DRAFT: "draft";
|
|
2161
|
+
readonly PROPOSED: "proposed";
|
|
2162
|
+
readonly PUBLISHED: "published";
|
|
2163
|
+
readonly REJECTED: "rejected";
|
|
2164
|
+
}>>;
|
|
2165
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2166
|
+
type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2167
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2168
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2169
|
+
id: z.ZodString;
|
|
2170
|
+
}, "strip", z.ZodTypeAny, {
|
|
2171
|
+
id: string;
|
|
2172
|
+
}, {
|
|
2173
|
+
id: string;
|
|
2174
|
+
}>, "many">>;
|
|
2175
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2176
|
+
id: z.ZodString;
|
|
2177
|
+
}, "strip", z.ZodTypeAny, {
|
|
2178
|
+
id: string;
|
|
2179
|
+
}, {
|
|
2180
|
+
id: string;
|
|
2181
|
+
}>, "many">>;
|
|
2182
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2183
|
+
title: z.ZodString;
|
|
2184
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
2185
|
+
}, "strip", z.ZodTypeAny, {
|
|
2186
|
+
values: string[];
|
|
2187
|
+
title: string;
|
|
2188
|
+
}, {
|
|
2189
|
+
values: string[];
|
|
2190
|
+
title: string;
|
|
2191
|
+
}>, "many">>;
|
|
2192
|
+
variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2193
|
+
attribute_id: z.ZodString;
|
|
2194
|
+
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2195
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2196
|
+
}, "strict", z.ZodTypeAny, {
|
|
2197
|
+
attribute_id: string;
|
|
2198
|
+
values?: string[] | undefined;
|
|
2199
|
+
value_ids?: string[] | undefined;
|
|
2200
|
+
}, {
|
|
2201
|
+
attribute_id: string;
|
|
2202
|
+
values?: string[] | undefined;
|
|
2203
|
+
value_ids?: string[] | undefined;
|
|
2204
|
+
}>, z.ZodObject<{
|
|
2205
|
+
name: z.ZodString;
|
|
2206
|
+
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
2207
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2208
|
+
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1498
2209
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1499
2210
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1500
2211
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1501
2212
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1502
|
-
}, "
|
|
1503
|
-
type: "single_select" | "multi_select" | "
|
|
2213
|
+
}, "strict", z.ZodTypeAny, {
|
|
2214
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1504
2215
|
name: string;
|
|
1505
2216
|
values?: string[] | undefined;
|
|
1506
2217
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1507
2218
|
description?: string | null | undefined;
|
|
2219
|
+
is_variant_axis?: boolean | undefined;
|
|
1508
2220
|
is_required?: boolean | undefined;
|
|
1509
2221
|
is_filterable?: boolean | undefined;
|
|
1510
|
-
is_variant_axis?: boolean | undefined;
|
|
1511
2222
|
}, {
|
|
1512
|
-
type: "single_select" | "multi_select" | "
|
|
2223
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1513
2224
|
name: string;
|
|
1514
2225
|
values?: string[] | undefined;
|
|
1515
2226
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1516
2227
|
description?: string | null | undefined;
|
|
2228
|
+
is_variant_axis?: boolean | undefined;
|
|
1517
2229
|
is_required?: boolean | undefined;
|
|
1518
2230
|
is_filterable?: boolean | undefined;
|
|
1519
|
-
is_variant_axis?: boolean | undefined;
|
|
1520
2231
|
}>]>, "many">>;
|
|
1521
2232
|
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1522
2233
|
attribute_id: z.ZodString;
|
|
1523
2234
|
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1524
2235
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1525
|
-
}, "
|
|
2236
|
+
}, "strict", z.ZodTypeAny, {
|
|
1526
2237
|
attribute_id: string;
|
|
1527
2238
|
values?: string[] | undefined;
|
|
1528
2239
|
value_ids?: string[] | undefined;
|
|
@@ -1532,32 +2243,33 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1532
2243
|
value_ids?: string[] | undefined;
|
|
1533
2244
|
}>, z.ZodObject<{
|
|
1534
2245
|
name: z.ZodString;
|
|
1535
|
-
type: z.ZodEnum<["single_select", "multi_select", "
|
|
2246
|
+
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
1536
2247
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1537
2248
|
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1538
2249
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1539
2250
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1540
2251
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1541
2252
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1542
|
-
}, "
|
|
1543
|
-
type: "single_select" | "multi_select" | "
|
|
2253
|
+
}, "strict", z.ZodTypeAny, {
|
|
2254
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1544
2255
|
name: string;
|
|
1545
2256
|
values?: string[] | undefined;
|
|
1546
2257
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1547
2258
|
description?: string | null | undefined;
|
|
2259
|
+
is_variant_axis?: boolean | undefined;
|
|
1548
2260
|
is_required?: boolean | undefined;
|
|
1549
2261
|
is_filterable?: boolean | undefined;
|
|
1550
|
-
is_variant_axis?: boolean | undefined;
|
|
1551
2262
|
}, {
|
|
1552
|
-
type: "single_select" | "multi_select" | "
|
|
2263
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1553
2264
|
name: string;
|
|
1554
2265
|
values?: string[] | undefined;
|
|
1555
2266
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1556
2267
|
description?: string | null | undefined;
|
|
2268
|
+
is_variant_axis?: boolean | undefined;
|
|
1557
2269
|
is_required?: boolean | undefined;
|
|
1558
2270
|
is_filterable?: boolean | undefined;
|
|
1559
|
-
is_variant_axis?: boolean | undefined;
|
|
1560
2271
|
}>]>, "many">>;
|
|
2272
|
+
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1561
2273
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1562
2274
|
id: z.ZodOptional<z.ZodString>;
|
|
1563
2275
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1601,14 +2313,16 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1601
2313
|
max_quantity?: number | null | undefined;
|
|
1602
2314
|
rules?: Record<string, string> | undefined;
|
|
1603
2315
|
}>, "many">>;
|
|
2316
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1604
2317
|
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1605
2318
|
}, "strict", z.ZodTypeAny, {
|
|
2319
|
+
options?: Record<string, string> | undefined;
|
|
1606
2320
|
length?: number | null | undefined;
|
|
2321
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1607
2322
|
id?: string | undefined;
|
|
1608
2323
|
sku?: string | null | undefined;
|
|
1609
2324
|
ean?: string | null | undefined;
|
|
1610
2325
|
upc?: string | null | undefined;
|
|
1611
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1612
2326
|
title?: string | undefined;
|
|
1613
2327
|
prices?: {
|
|
1614
2328
|
id?: string | undefined;
|
|
@@ -1633,12 +2347,13 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1633
2347
|
variant_rank?: number | undefined;
|
|
1634
2348
|
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1635
2349
|
}, {
|
|
2350
|
+
options?: Record<string, string> | undefined;
|
|
1636
2351
|
length?: number | null | undefined;
|
|
2352
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1637
2353
|
id?: string | undefined;
|
|
1638
2354
|
sku?: string | null | undefined;
|
|
1639
2355
|
ean?: string | null | undefined;
|
|
1640
2356
|
upc?: string | null | undefined;
|
|
1641
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1642
2357
|
title?: string | undefined;
|
|
1643
2358
|
prices?: {
|
|
1644
2359
|
id?: string | undefined;
|
|
@@ -1676,9 +2391,13 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1676
2391
|
id: z.ZodString;
|
|
1677
2392
|
}, "strict", z.ZodTypeAny, {
|
|
1678
2393
|
id: string;
|
|
2394
|
+
options?: {
|
|
2395
|
+
values: string[];
|
|
2396
|
+
title: string;
|
|
2397
|
+
}[] | undefined;
|
|
1679
2398
|
length?: number | null | undefined;
|
|
1680
|
-
status?: ProductStatus | undefined;
|
|
1681
2399
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2400
|
+
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
1682
2401
|
title?: string | undefined;
|
|
1683
2402
|
handle?: string | null | undefined;
|
|
1684
2403
|
description?: string | null | undefined;
|
|
@@ -1687,10 +2406,8 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1687
2406
|
collection_id?: string | null | undefined;
|
|
1688
2407
|
type_id?: string | null | undefined;
|
|
1689
2408
|
subtitle?: string | null | undefined;
|
|
1690
|
-
is_restricted?: boolean | undefined;
|
|
1691
2409
|
is_giftcard?: boolean | undefined;
|
|
1692
2410
|
discountable?: boolean | undefined;
|
|
1693
|
-
brand_id?: string | null | undefined;
|
|
1694
2411
|
weight?: number | null | undefined;
|
|
1695
2412
|
height?: number | null | undefined;
|
|
1696
2413
|
width?: number | null | undefined;
|
|
@@ -1698,6 +2415,7 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1698
2415
|
origin_country?: string | null | undefined;
|
|
1699
2416
|
mid_code?: string | null | undefined;
|
|
1700
2417
|
material?: string | null | undefined;
|
|
2418
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1701
2419
|
images?: {
|
|
1702
2420
|
url: string;
|
|
1703
2421
|
id?: string | undefined;
|
|
@@ -1713,36 +2431,37 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1713
2431
|
values?: string[] | undefined;
|
|
1714
2432
|
value_ids?: string[] | undefined;
|
|
1715
2433
|
} | {
|
|
1716
|
-
type: "single_select" | "multi_select" | "
|
|
2434
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1717
2435
|
name: string;
|
|
1718
2436
|
values?: string[] | undefined;
|
|
1719
2437
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1720
2438
|
description?: string | null | undefined;
|
|
2439
|
+
is_variant_axis?: boolean | undefined;
|
|
1721
2440
|
is_required?: boolean | undefined;
|
|
1722
2441
|
is_filterable?: boolean | undefined;
|
|
1723
|
-
is_variant_axis?: boolean | undefined;
|
|
1724
2442
|
})[] | undefined;
|
|
1725
2443
|
product_attributes?: ({
|
|
1726
2444
|
attribute_id: string;
|
|
1727
2445
|
values?: string[] | undefined;
|
|
1728
2446
|
value_ids?: string[] | undefined;
|
|
1729
2447
|
} | {
|
|
1730
|
-
type: "single_select" | "multi_select" | "
|
|
2448
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1731
2449
|
name: string;
|
|
1732
2450
|
values?: string[] | undefined;
|
|
1733
2451
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1734
2452
|
description?: string | null | undefined;
|
|
2453
|
+
is_variant_axis?: boolean | undefined;
|
|
1735
2454
|
is_required?: boolean | undefined;
|
|
1736
2455
|
is_filterable?: boolean | undefined;
|
|
1737
|
-
is_variant_axis?: boolean | undefined;
|
|
1738
2456
|
})[] | undefined;
|
|
1739
2457
|
variants?: {
|
|
2458
|
+
options?: Record<string, string> | undefined;
|
|
1740
2459
|
length?: number | null | undefined;
|
|
2460
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1741
2461
|
id?: string | undefined;
|
|
1742
2462
|
sku?: string | null | undefined;
|
|
1743
2463
|
ean?: string | null | undefined;
|
|
1744
2464
|
upc?: string | null | undefined;
|
|
1745
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1746
2465
|
title?: string | undefined;
|
|
1747
2466
|
prices?: {
|
|
1748
2467
|
id?: string | undefined;
|
|
@@ -1769,9 +2488,13 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1769
2488
|
}[] | undefined;
|
|
1770
2489
|
}, {
|
|
1771
2490
|
id: string;
|
|
2491
|
+
options?: {
|
|
2492
|
+
values: string[];
|
|
2493
|
+
title: string;
|
|
2494
|
+
}[] | undefined;
|
|
1772
2495
|
length?: number | null | undefined;
|
|
1773
|
-
status?: ProductStatus | undefined;
|
|
1774
2496
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2497
|
+
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
1775
2498
|
title?: string | undefined;
|
|
1776
2499
|
handle?: string | null | undefined;
|
|
1777
2500
|
description?: string | null | undefined;
|
|
@@ -1780,10 +2503,8 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1780
2503
|
collection_id?: string | null | undefined;
|
|
1781
2504
|
type_id?: string | null | undefined;
|
|
1782
2505
|
subtitle?: string | null | undefined;
|
|
1783
|
-
is_restricted?: boolean | undefined;
|
|
1784
2506
|
is_giftcard?: string | boolean | undefined;
|
|
1785
2507
|
discountable?: string | boolean | undefined;
|
|
1786
|
-
brand_id?: string | null | undefined;
|
|
1787
2508
|
weight?: number | null | undefined;
|
|
1788
2509
|
height?: number | null | undefined;
|
|
1789
2510
|
width?: number | null | undefined;
|
|
@@ -1791,6 +2512,7 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1791
2512
|
origin_country?: string | null | undefined;
|
|
1792
2513
|
mid_code?: string | null | undefined;
|
|
1793
2514
|
material?: string | null | undefined;
|
|
2515
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1794
2516
|
images?: {
|
|
1795
2517
|
url: string;
|
|
1796
2518
|
id?: string | undefined;
|
|
@@ -1806,36 +2528,37 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1806
2528
|
values?: string[] | undefined;
|
|
1807
2529
|
value_ids?: string[] | undefined;
|
|
1808
2530
|
} | {
|
|
1809
|
-
type: "single_select" | "multi_select" | "
|
|
2531
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1810
2532
|
name: string;
|
|
1811
2533
|
values?: string[] | undefined;
|
|
1812
2534
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1813
2535
|
description?: string | null | undefined;
|
|
2536
|
+
is_variant_axis?: boolean | undefined;
|
|
1814
2537
|
is_required?: boolean | undefined;
|
|
1815
2538
|
is_filterable?: boolean | undefined;
|
|
1816
|
-
is_variant_axis?: boolean | undefined;
|
|
1817
2539
|
})[] | undefined;
|
|
1818
2540
|
product_attributes?: ({
|
|
1819
2541
|
attribute_id: string;
|
|
1820
2542
|
values?: string[] | undefined;
|
|
1821
2543
|
value_ids?: string[] | undefined;
|
|
1822
2544
|
} | {
|
|
1823
|
-
type: "single_select" | "multi_select" | "
|
|
2545
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1824
2546
|
name: string;
|
|
1825
2547
|
values?: string[] | undefined;
|
|
1826
2548
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1827
2549
|
description?: string | null | undefined;
|
|
2550
|
+
is_variant_axis?: boolean | undefined;
|
|
1828
2551
|
is_required?: boolean | undefined;
|
|
1829
2552
|
is_filterable?: boolean | undefined;
|
|
1830
|
-
is_variant_axis?: boolean | undefined;
|
|
1831
2553
|
})[] | undefined;
|
|
1832
2554
|
variants?: {
|
|
2555
|
+
options?: Record<string, string> | undefined;
|
|
1833
2556
|
length?: number | null | undefined;
|
|
2557
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1834
2558
|
id?: string | undefined;
|
|
1835
2559
|
sku?: string | null | undefined;
|
|
1836
2560
|
ean?: string | null | undefined;
|
|
1837
2561
|
upc?: string | null | undefined;
|
|
1838
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1839
2562
|
title?: string | undefined;
|
|
1840
2563
|
prices?: {
|
|
1841
2564
|
id?: string | undefined;
|
|
@@ -1865,9 +2588,13 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1865
2588
|
}, "strip", z.ZodTypeAny, {
|
|
1866
2589
|
update?: {
|
|
1867
2590
|
id: string;
|
|
2591
|
+
options?: {
|
|
2592
|
+
values: string[];
|
|
2593
|
+
title: string;
|
|
2594
|
+
}[] | undefined;
|
|
1868
2595
|
length?: number | null | undefined;
|
|
1869
|
-
status?: ProductStatus | undefined;
|
|
1870
2596
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2597
|
+
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
1871
2598
|
title?: string | undefined;
|
|
1872
2599
|
handle?: string | null | undefined;
|
|
1873
2600
|
description?: string | null | undefined;
|
|
@@ -1876,10 +2603,8 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1876
2603
|
collection_id?: string | null | undefined;
|
|
1877
2604
|
type_id?: string | null | undefined;
|
|
1878
2605
|
subtitle?: string | null | undefined;
|
|
1879
|
-
is_restricted?: boolean | undefined;
|
|
1880
2606
|
is_giftcard?: boolean | undefined;
|
|
1881
2607
|
discountable?: boolean | undefined;
|
|
1882
|
-
brand_id?: string | null | undefined;
|
|
1883
2608
|
weight?: number | null | undefined;
|
|
1884
2609
|
height?: number | null | undefined;
|
|
1885
2610
|
width?: number | null | undefined;
|
|
@@ -1887,6 +2612,7 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1887
2612
|
origin_country?: string | null | undefined;
|
|
1888
2613
|
mid_code?: string | null | undefined;
|
|
1889
2614
|
material?: string | null | undefined;
|
|
2615
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1890
2616
|
images?: {
|
|
1891
2617
|
url: string;
|
|
1892
2618
|
id?: string | undefined;
|
|
@@ -1902,36 +2628,37 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1902
2628
|
values?: string[] | undefined;
|
|
1903
2629
|
value_ids?: string[] | undefined;
|
|
1904
2630
|
} | {
|
|
1905
|
-
type: "single_select" | "multi_select" | "
|
|
2631
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1906
2632
|
name: string;
|
|
1907
2633
|
values?: string[] | undefined;
|
|
1908
2634
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1909
2635
|
description?: string | null | undefined;
|
|
2636
|
+
is_variant_axis?: boolean | undefined;
|
|
1910
2637
|
is_required?: boolean | undefined;
|
|
1911
2638
|
is_filterable?: boolean | undefined;
|
|
1912
|
-
is_variant_axis?: boolean | undefined;
|
|
1913
2639
|
})[] | undefined;
|
|
1914
2640
|
product_attributes?: ({
|
|
1915
2641
|
attribute_id: string;
|
|
1916
2642
|
values?: string[] | undefined;
|
|
1917
2643
|
value_ids?: string[] | undefined;
|
|
1918
2644
|
} | {
|
|
1919
|
-
type: "single_select" | "multi_select" | "
|
|
2645
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1920
2646
|
name: string;
|
|
1921
2647
|
values?: string[] | undefined;
|
|
1922
2648
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1923
2649
|
description?: string | null | undefined;
|
|
2650
|
+
is_variant_axis?: boolean | undefined;
|
|
1924
2651
|
is_required?: boolean | undefined;
|
|
1925
2652
|
is_filterable?: boolean | undefined;
|
|
1926
|
-
is_variant_axis?: boolean | undefined;
|
|
1927
2653
|
})[] | undefined;
|
|
1928
2654
|
variants?: {
|
|
2655
|
+
options?: Record<string, string> | undefined;
|
|
1929
2656
|
length?: number | null | undefined;
|
|
2657
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1930
2658
|
id?: string | undefined;
|
|
1931
2659
|
sku?: string | null | undefined;
|
|
1932
2660
|
ean?: string | null | undefined;
|
|
1933
2661
|
upc?: string | null | undefined;
|
|
1934
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1935
2662
|
title?: string | undefined;
|
|
1936
2663
|
prices?: {
|
|
1937
2664
|
id?: string | undefined;
|
|
@@ -1961,9 +2688,13 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1961
2688
|
}, {
|
|
1962
2689
|
update?: {
|
|
1963
2690
|
id: string;
|
|
2691
|
+
options?: {
|
|
2692
|
+
values: string[];
|
|
2693
|
+
title: string;
|
|
2694
|
+
}[] | undefined;
|
|
1964
2695
|
length?: number | null | undefined;
|
|
1965
|
-
status?: ProductStatus | undefined;
|
|
1966
2696
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2697
|
+
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
1967
2698
|
title?: string | undefined;
|
|
1968
2699
|
handle?: string | null | undefined;
|
|
1969
2700
|
description?: string | null | undefined;
|
|
@@ -1972,10 +2703,8 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1972
2703
|
collection_id?: string | null | undefined;
|
|
1973
2704
|
type_id?: string | null | undefined;
|
|
1974
2705
|
subtitle?: string | null | undefined;
|
|
1975
|
-
is_restricted?: boolean | undefined;
|
|
1976
2706
|
is_giftcard?: string | boolean | undefined;
|
|
1977
2707
|
discountable?: string | boolean | undefined;
|
|
1978
|
-
brand_id?: string | null | undefined;
|
|
1979
2708
|
weight?: number | null | undefined;
|
|
1980
2709
|
height?: number | null | undefined;
|
|
1981
2710
|
width?: number | null | undefined;
|
|
@@ -1983,6 +2712,7 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1983
2712
|
origin_country?: string | null | undefined;
|
|
1984
2713
|
mid_code?: string | null | undefined;
|
|
1985
2714
|
material?: string | null | undefined;
|
|
2715
|
+
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1986
2716
|
images?: {
|
|
1987
2717
|
url: string;
|
|
1988
2718
|
id?: string | undefined;
|
|
@@ -1998,36 +2728,37 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1998
2728
|
values?: string[] | undefined;
|
|
1999
2729
|
value_ids?: string[] | undefined;
|
|
2000
2730
|
} | {
|
|
2001
|
-
type: "single_select" | "multi_select" | "
|
|
2731
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2002
2732
|
name: string;
|
|
2003
2733
|
values?: string[] | undefined;
|
|
2004
2734
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2005
2735
|
description?: string | null | undefined;
|
|
2736
|
+
is_variant_axis?: boolean | undefined;
|
|
2006
2737
|
is_required?: boolean | undefined;
|
|
2007
2738
|
is_filterable?: boolean | undefined;
|
|
2008
|
-
is_variant_axis?: boolean | undefined;
|
|
2009
2739
|
})[] | undefined;
|
|
2010
2740
|
product_attributes?: ({
|
|
2011
2741
|
attribute_id: string;
|
|
2012
2742
|
values?: string[] | undefined;
|
|
2013
2743
|
value_ids?: string[] | undefined;
|
|
2014
2744
|
} | {
|
|
2015
|
-
type: "single_select" | "multi_select" | "
|
|
2745
|
+
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2016
2746
|
name: string;
|
|
2017
2747
|
values?: string[] | undefined;
|
|
2018
2748
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2019
2749
|
description?: string | null | undefined;
|
|
2750
|
+
is_variant_axis?: boolean | undefined;
|
|
2020
2751
|
is_required?: boolean | undefined;
|
|
2021
2752
|
is_filterable?: boolean | undefined;
|
|
2022
|
-
is_variant_axis?: boolean | undefined;
|
|
2023
2753
|
})[] | undefined;
|
|
2024
2754
|
variants?: {
|
|
2755
|
+
options?: Record<string, string> | undefined;
|
|
2025
2756
|
length?: number | null | undefined;
|
|
2757
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2026
2758
|
id?: string | undefined;
|
|
2027
2759
|
sku?: string | null | undefined;
|
|
2028
2760
|
ean?: string | null | undefined;
|
|
2029
2761
|
upc?: string | null | undefined;
|
|
2030
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2031
2762
|
title?: string | undefined;
|
|
2032
2763
|
prices?: {
|
|
2033
2764
|
id?: string | undefined;
|
|
@@ -2102,4 +2833,123 @@ export declare const AdminBatchProductAttributes: z.ZodObject<{
|
|
|
2102
2833
|
})[] | undefined;
|
|
2103
2834
|
delete?: string[] | undefined;
|
|
2104
2835
|
}>;
|
|
2836
|
+
export type AdminAddProductAttributeType = z.infer<typeof AdminAddProductAttribute>;
|
|
2837
|
+
export declare const AdminAddProductAttribute: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2838
|
+
attribute_id: z.ZodOptional<z.ZodString>;
|
|
2839
|
+
attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2840
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2841
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
2842
|
+
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
2843
|
+
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
2844
|
+
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
2845
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2846
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2847
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2848
|
+
}, "strict", z.ZodTypeAny, {
|
|
2849
|
+
values?: string[] | undefined;
|
|
2850
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2851
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2852
|
+
name?: string | undefined;
|
|
2853
|
+
description?: string | null | undefined;
|
|
2854
|
+
attribute_id?: string | undefined;
|
|
2855
|
+
is_variant_axis?: boolean | undefined;
|
|
2856
|
+
is_required?: boolean | undefined;
|
|
2857
|
+
is_filterable?: boolean | undefined;
|
|
2858
|
+
attribute_value_ids?: string[] | undefined;
|
|
2859
|
+
}, {
|
|
2860
|
+
values?: string[] | undefined;
|
|
2861
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2862
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2863
|
+
name?: string | undefined;
|
|
2864
|
+
description?: string | null | undefined;
|
|
2865
|
+
attribute_id?: string | undefined;
|
|
2866
|
+
is_variant_axis?: boolean | undefined;
|
|
2867
|
+
is_required?: boolean | undefined;
|
|
2868
|
+
is_filterable?: boolean | undefined;
|
|
2869
|
+
attribute_value_ids?: string[] | undefined;
|
|
2870
|
+
}>, {
|
|
2871
|
+
values?: string[] | undefined;
|
|
2872
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2873
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2874
|
+
name?: string | undefined;
|
|
2875
|
+
description?: string | null | undefined;
|
|
2876
|
+
attribute_id?: string | undefined;
|
|
2877
|
+
is_variant_axis?: boolean | undefined;
|
|
2878
|
+
is_required?: boolean | undefined;
|
|
2879
|
+
is_filterable?: boolean | undefined;
|
|
2880
|
+
attribute_value_ids?: string[] | undefined;
|
|
2881
|
+
}, {
|
|
2882
|
+
values?: string[] | undefined;
|
|
2883
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2884
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2885
|
+
name?: string | undefined;
|
|
2886
|
+
description?: string | null | undefined;
|
|
2887
|
+
attribute_id?: string | undefined;
|
|
2888
|
+
is_variant_axis?: boolean | undefined;
|
|
2889
|
+
is_required?: boolean | undefined;
|
|
2890
|
+
is_filterable?: boolean | undefined;
|
|
2891
|
+
attribute_value_ids?: string[] | undefined;
|
|
2892
|
+
}>, {
|
|
2893
|
+
values?: string[] | undefined;
|
|
2894
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2895
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2896
|
+
name?: string | undefined;
|
|
2897
|
+
description?: string | null | undefined;
|
|
2898
|
+
attribute_id?: string | undefined;
|
|
2899
|
+
is_variant_axis?: boolean | undefined;
|
|
2900
|
+
is_required?: boolean | undefined;
|
|
2901
|
+
is_filterable?: boolean | undefined;
|
|
2902
|
+
attribute_value_ids?: string[] | undefined;
|
|
2903
|
+
}, {
|
|
2904
|
+
values?: string[] | undefined;
|
|
2905
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2906
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2907
|
+
name?: string | undefined;
|
|
2908
|
+
description?: string | null | undefined;
|
|
2909
|
+
attribute_id?: string | undefined;
|
|
2910
|
+
is_variant_axis?: boolean | undefined;
|
|
2911
|
+
is_required?: boolean | undefined;
|
|
2912
|
+
is_filterable?: boolean | undefined;
|
|
2913
|
+
attribute_value_ids?: string[] | undefined;
|
|
2914
|
+
}>, {
|
|
2915
|
+
values?: string[] | undefined;
|
|
2916
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2917
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2918
|
+
name?: string | undefined;
|
|
2919
|
+
description?: string | null | undefined;
|
|
2920
|
+
attribute_id?: string | undefined;
|
|
2921
|
+
is_variant_axis?: boolean | undefined;
|
|
2922
|
+
is_required?: boolean | undefined;
|
|
2923
|
+
is_filterable?: boolean | undefined;
|
|
2924
|
+
attribute_value_ids?: string[] | undefined;
|
|
2925
|
+
}, {
|
|
2926
|
+
values?: string[] | undefined;
|
|
2927
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2928
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2929
|
+
name?: string | undefined;
|
|
2930
|
+
description?: string | null | undefined;
|
|
2931
|
+
attribute_id?: string | undefined;
|
|
2932
|
+
is_variant_axis?: boolean | undefined;
|
|
2933
|
+
is_required?: boolean | undefined;
|
|
2934
|
+
is_filterable?: boolean | undefined;
|
|
2935
|
+
attribute_value_ids?: string[] | undefined;
|
|
2936
|
+
}>;
|
|
2937
|
+
/**
|
|
2938
|
+
* `POST /admin/products/:id/attributes/:attribute_id` — atomic value-set
|
|
2939
|
+
* replacement for an attribute on a product. Admin goes direct against
|
|
2940
|
+
* `detachProductAttributeWorkflow` + `addProductAttributeWorkflow`
|
|
2941
|
+
* (no staging — operators don't go through the ProductChange flow that
|
|
2942
|
+
* sellers do), so the route handler chains both calls.
|
|
2943
|
+
*/
|
|
2944
|
+
export type AdminUpdateProductAttributeType = z.infer<typeof AdminUpdateProductAttribute>;
|
|
2945
|
+
export declare const AdminUpdateProductAttribute: z.ZodObject<{
|
|
2946
|
+
attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2947
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2948
|
+
}, "strict", z.ZodTypeAny, {
|
|
2949
|
+
values?: string[] | undefined;
|
|
2950
|
+
attribute_value_ids?: string[] | undefined;
|
|
2951
|
+
}, {
|
|
2952
|
+
values?: string[] | undefined;
|
|
2953
|
+
attribute_value_ids?: string[] | undefined;
|
|
2954
|
+
}>;
|
|
2105
2955
|
export {};
|