@mercurjs/core 2.2.0-canary.3 → 2.2.0-canary.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.d.ts +13 -0
- package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.js +59 -0
- package/.medusa/server/src/api/admin/claims/[id]/request/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/claims/[id]/request/route.js +74 -0
- package/.medusa/server/src/api/admin/collections/[id]/route.d.ts +7 -0
- package/.medusa/server/src/api/admin/collections/[id]/route.js +48 -0
- package/.medusa/server/src/api/admin/collections/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/collections/middlewares.js +49 -0
- package/.medusa/server/src/api/admin/{product-brands → collections}/query-config.d.ts +2 -2
- package/.medusa/server/src/api/admin/collections/query-config.js +29 -0
- package/.medusa/server/src/api/admin/collections/route.d.ts +6 -0
- package/.medusa/server/src/api/admin/collections/route.js +36 -0
- package/.medusa/server/src/api/admin/collections/validators.d.ts +262 -0
- package/.medusa/server/src/api/admin/collections/validators.js +42 -0
- package/.medusa/server/src/api/admin/commission-rates/query-config.js +6 -4
- package/.medusa/server/src/api/admin/commission-rates/route.js +4 -1
- package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +89 -58
- package/.medusa/server/src/api/admin/commission-rates/validators.js +16 -9
- package/.medusa/server/src/api/{vendor/product-brands → admin/customer-groups}/middlewares.d.ts +1 -1
- package/.medusa/server/src/api/admin/customer-groups/middlewares.js +43 -0
- package/.medusa/server/src/api/admin/customer-groups/validators.d.ts +257 -0
- package/.medusa/server/src/api/admin/customer-groups/validators.js +12 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.d.ts +14 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.js +60 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/request/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/exchanges/[id]/request/route.js +75 -0
- package/.medusa/server/src/api/admin/members/validators.d.ts +14 -15
- package/.medusa/server/src/api/admin/middlewares.js +31 -40
- package/.medusa/server/src/api/admin/offers/query-config.js +9 -8
- package/.medusa/server/src/api/admin/offers/validators.d.ts +24 -25
- package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.js +18 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/items/route.d.ts +15 -0
- package/.medusa/server/src/api/admin/order-edits/[id]/items/route.js +46 -0
- package/.medusa/server/src/api/admin/order-groups/apply-request-filter.d.ts +2 -0
- package/.medusa/server/src/api/admin/order-groups/apply-request-filter.js +134 -0
- package/.medusa/server/src/api/admin/order-groups/middlewares.js +3 -1
- package/.medusa/server/src/api/admin/order-groups/validators.d.ts +23 -21
- package/.medusa/server/src/api/admin/order-groups/validators.js +2 -1
- package/.medusa/server/src/api/admin/orders/[id]/commission-lines/route.d.ts +7 -0
- package/.medusa/server/src/api/admin/orders/[id]/commission-lines/route.js +17 -0
- package/.medusa/server/src/api/admin/orders/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/orders/middlewares.js +42 -0
- package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.d.ts +2 -0
- package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.js +15 -0
- package/.medusa/server/src/api/admin/orders/validators.d.ts +1 -287
- package/.medusa/server/src/api/admin/orders/validators.js +9 -29
- package/.medusa/server/src/api/admin/payouts/validators.d.ts +18 -19
- package/.medusa/server/src/api/admin/product-attributes/[id]/route.js +4 -4
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.js +4 -4
- package/.medusa/server/src/api/admin/product-attributes/[id]/values/route.js +2 -2
- package/.medusa/server/src/api/admin/product-attributes/middlewares.js +15 -3
- package/.medusa/server/src/api/admin/product-attributes/query-config.js +4 -2
- package/.medusa/server/src/api/admin/product-attributes/route.d.ts +2 -2
- package/.medusa/server/src/api/admin/product-attributes/route.js +4 -4
- package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +110 -125
- package/.medusa/server/src/api/admin/product-attributes/validators.js +2 -17
- package/.medusa/server/src/api/admin/product-categories/[id]/products/route.js +3 -3
- package/.medusa/server/src/api/admin/product-categories/[id]/route.js +8 -10
- package/.medusa/server/src/api/admin/product-categories/query-config.js +7 -2
- package/.medusa/server/src/api/admin/product-categories/route.js +5 -8
- package/.medusa/server/src/api/admin/product-categories/validators.d.ts +153 -93
- package/.medusa/server/src/api/admin/product-categories/validators.js +11 -1
- package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.js +5 -13
- package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.js +5 -12
- package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.d.ts +3 -2
- package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +11 -25
- package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +4 -6
- package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +1 -1
- package/.medusa/server/src/api/admin/products/[id]/preview/route.js +13 -7
- package/.medusa/server/src/api/admin/products/[id]/reject/route.js +5 -8
- package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +7 -10
- package/.medusa/server/src/api/admin/products/[id]/route.js +14 -8
- package/.medusa/server/src/api/admin/products/[id]/sellers/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/products/[id]/sellers/route.js +13 -0
- package/.medusa/server/src/api/admin/products/[id]/variants/[variant_id]/route.js +5 -5
- package/.medusa/server/src/api/admin/products/[id]/variants/route.js +22 -4
- package/.medusa/server/src/api/admin/products/middlewares.js +7 -39
- package/.medusa/server/src/api/admin/products/query-config.js +45 -26
- package/.medusa/server/src/api/admin/products/route.js +11 -8
- package/.medusa/server/src/api/admin/products/validators.d.ts +1223 -1149
- package/.medusa/server/src/api/admin/products/validators.js +110 -48
- package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.js +29 -0
- package/.medusa/server/src/api/admin/sellers/middlewares.js +1 -20
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +75 -96
- package/.medusa/server/src/api/admin/sellers/validators.js +3 -4
- package/.medusa/server/src/api/admin/shipping-options/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/shipping-options/middlewares.js +46 -0
- package/.medusa/server/src/api/admin/shipping-profiles/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/shipping-profiles/middlewares.js +46 -0
- package/.medusa/server/src/api/admin/stock-locations/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/stock-locations/middlewares.js +46 -0
- package/.medusa/server/src/api/store/carts/[id]/complete/route.js +1 -5
- package/.medusa/server/src/api/store/carts/[id]/complete/validators.d.ts +1 -1
- package/.medusa/server/src/api/store/carts/[id]/line-items/route.js +23 -5
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +0 -3
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +1 -2
- package/.medusa/server/src/api/store/middlewares.js +7 -7
- package/.medusa/server/src/api/store/offers/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/store/offers/[id]/route.js +28 -0
- package/.medusa/server/src/api/store/offers/helpers.d.ts +43 -0
- package/.medusa/server/src/api/store/offers/helpers.js +191 -0
- package/.medusa/server/src/api/store/offers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/offers/middlewares.js +64 -0
- package/.medusa/server/src/api/store/{product-brands → offers}/query-config.d.ts +2 -2
- package/.medusa/server/src/api/store/offers/query-config.js +50 -0
- package/.medusa/server/src/api/store/offers/route.d.ts +3 -0
- package/.medusa/server/src/api/store/offers/route.js +30 -0
- package/.medusa/server/src/api/store/offers/validators.d.ts +158 -0
- package/.medusa/server/src/api/store/offers/validators.js +29 -0
- package/.medusa/server/src/api/store/order-groups/validators.d.ts +16 -17
- package/.medusa/server/src/api/store/product-attributes/validators.d.ts +50 -46
- package/.medusa/server/src/api/store/product-categories/validators.d.ts +59 -53
- package/.medusa/server/src/api/store/products/[id]/route.js +9 -20
- package/.medusa/server/src/api/store/products/helpers.d.ts +10 -0
- package/.medusa/server/src/api/store/products/helpers.js +20 -0
- package/.medusa/server/src/api/store/products/middlewares.js +37 -30
- package/.medusa/server/src/api/store/products/query-config.d.ts +1 -3
- package/.medusa/server/src/api/store/products/query-config.js +30 -17
- package/.medusa/server/src/api/store/products/route.js +9 -17
- package/.medusa/server/src/api/store/products/validators.d.ts +69 -71
- package/.medusa/server/src/api/store/products/validators.js +1 -2
- package/.medusa/server/src/api/store/sellers/validators.d.ts +35 -34
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.d.ts +2 -0
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +54 -0
- package/.medusa/server/src/api/utils/format-product-attributes.d.ts +7 -6
- package/.medusa/server/src/api/utils/format-product-attributes.js +104 -35
- package/.medusa/server/src/api/utils/index.d.ts +3 -0
- package/.medusa/server/src/api/utils/index.js +4 -1
- package/.medusa/server/src/api/utils/offers.d.ts +49 -0
- package/.medusa/server/src/api/utils/offers.js +238 -0
- package/.medusa/server/src/api/utils/order-commission-lines.d.ts +11 -0
- package/.medusa/server/src/api/utils/order-commission-lines.js +71 -0
- package/.medusa/server/src/api/utils/product-attribute-fields.d.ts +5 -0
- package/.medusa/server/src/api/utils/product-attribute-fields.js +35 -0
- package/.medusa/server/src/api/utils/sellers.d.ts +2 -0
- package/.medusa/server/src/api/utils/sellers.js +23 -0
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +14 -15
- package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.js +17 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.js +15 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.js +46 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.js +26 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.js +39 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.js +26 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.js +41 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.js +15 -0
- package/.medusa/server/src/api/vendor/claims/[id]/request/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/claims/[id]/request/route.js +31 -0
- package/.medusa/server/src/api/vendor/claims/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/claims/[id]/route.js +19 -0
- package/.medusa/server/src/api/vendor/claims/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/claims/helpers.js +19 -0
- package/.medusa/server/src/api/vendor/claims/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/claims/middlewares.js +184 -0
- package/.medusa/server/src/api/vendor/claims/query-config.d.ts +12 -0
- package/.medusa/server/src/api/vendor/claims/query-config.js +31 -0
- package/.medusa/server/src/api/vendor/claims/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/claims/route.js +35 -0
- package/.medusa/server/src/api/vendor/claims/validators.d.ts +377 -0
- package/.medusa/server/src/api/vendor/claims/validators.js +89 -0
- package/.medusa/server/src/api/vendor/collections/query-config.js +7 -1
- package/.medusa/server/src/api/vendor/collections/validators.d.ts +20 -21
- package/.medusa/server/src/api/vendor/currencies/validators.d.ts +14 -15
- package/.medusa/server/src/api/vendor/customer-groups/[id]/customers/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/customer-groups/[id]/customers/route.js +20 -0
- package/.medusa/server/src/api/vendor/customer-groups/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/customer-groups/[id]/route.js +43 -0
- package/.medusa/server/src/api/vendor/customer-groups/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/customer-groups/helpers.js +38 -0
- package/.medusa/server/src/api/vendor/customer-groups/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/customer-groups/middlewares.js +62 -0
- package/.medusa/server/src/api/vendor/{product-brands → customer-groups}/query-config.d.ts +2 -3
- package/.medusa/server/src/api/vendor/customer-groups/query-config.js +22 -0
- package/.medusa/server/src/api/vendor/customer-groups/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/customer-groups/route.js +35 -0
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +156 -0
- package/.medusa/server/src/api/vendor/customer-groups/validators.js +35 -0
- package/.medusa/server/src/api/vendor/customers/[id]/customer-groups/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/customers/[id]/customer-groups/route.js +27 -0
- package/.medusa/server/src/api/vendor/customers/[id]/route.js +13 -1
- package/.medusa/server/src/api/vendor/customers/middlewares.js +9 -1
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +47 -32
- package/.medusa/server/src/api/vendor/customers/validators.js +9 -2
- package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.js +17 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.js +46 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.js +26 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.js +45 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.js +26 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.js +41 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.js +15 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.js +31 -0
- package/.medusa/server/src/api/vendor/exchanges/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/exchanges/helpers.js +19 -0
- package/.medusa/server/src/api/vendor/exchanges/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/exchanges/middlewares.js +155 -0
- package/.medusa/server/src/api/vendor/exchanges/query-config.d.ts +7 -0
- package/.medusa/server/src/api/vendor/exchanges/query-config.js +23 -0
- package/.medusa/server/src/api/vendor/exchanges/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/exchanges/route.js +35 -0
- package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +312 -0
- package/.medusa/server/src/api/vendor/exchanges/validators.js +71 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +24 -23
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +18 -18
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +104 -110
- package/.medusa/server/src/api/vendor/middlewares.js +79 -71
- package/.medusa/server/src/api/vendor/offers/query-config.js +9 -8
- package/.medusa/server/src/api/vendor/offers/validators.d.ts +30 -35
- package/.medusa/server/src/api/vendor/offers/validators.js +4 -8
- package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.js +18 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.js +24 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.js +33 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.js +18 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/route.js +19 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.js +32 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.js +15 -0
- package/.medusa/server/src/api/vendor/order-edits/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/order-edits/middlewares.js +94 -0
- package/.medusa/server/src/api/vendor/order-edits/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/order-edits/route.js +15 -0
- package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +160 -0
- package/.medusa/server/src/api/vendor/order-edits/validators.js +50 -0
- package/.medusa/server/src/api/vendor/orders/[id]/commission-lines/route.d.ts +7 -0
- package/.medusa/server/src/api/vendor/orders/[id]/commission-lines/route.js +18 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +3 -3
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.js +3 -3
- package/.medusa/server/src/api/vendor/orders/apply-request-filter.d.ts +2 -0
- package/.medusa/server/src/api/vendor/orders/apply-request-filter.js +109 -0
- package/.medusa/server/src/api/vendor/orders/middlewares.js +3 -1
- package/.medusa/server/src/api/vendor/orders/query-config.js +34 -11
- package/.medusa/server/src/api/vendor/orders/resolve-offer-items.d.ts +23 -0
- package/.medusa/server/src/api/vendor/orders/resolve-offer-items.js +75 -0
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +26 -24
- package/.medusa/server/src/api/vendor/orders/validators.js +7 -1
- package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.js +25 -0
- package/.medusa/server/src/api/vendor/payment-collections/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payment-collections/helpers.js +30 -0
- package/.medusa/server/src/api/vendor/payment-collections/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payment-collections/middlewares.js +17 -0
- package/.medusa/server/src/api/vendor/payment-collections/query-config.d.ts +7 -0
- package/.medusa/server/src/api/vendor/payment-collections/query-config.js +26 -0
- package/.medusa/server/src/api/vendor/payment-collections/validators.d.ts +17 -0
- package/.medusa/server/src/api/vendor/payment-collections/validators.js +12 -0
- package/.medusa/server/src/api/vendor/payments/helpers.js +14 -8
- package/.medusa/server/src/api/vendor/payments/validators.d.ts +38 -38
- package/.medusa/server/src/api/vendor/payout-accounts/validators.d.ts +11 -12
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +28 -30
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +14 -15
- package/.medusa/server/src/api/vendor/product-attributes/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/product-attributes/query-config.js +4 -2
- package/.medusa/server/src/api/vendor/product-attributes/route.js +2 -1
- package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +85 -101
- package/.medusa/server/src/api/vendor/product-attributes/validators.js +2 -15
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +36 -0
- package/.medusa/server/src/api/vendor/product-categories/middlewares.js +9 -1
- package/.medusa/server/src/api/vendor/product-categories/query-config.js +7 -2
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +102 -79
- package/.medusa/server/src/api/vendor/product-categories/validators.js +7 -2
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +14 -15
- package/.medusa/server/src/api/vendor/product-variants/middlewares.js +11 -19
- package/.medusa/server/src/api/vendor/product-variants/query-config.js +1 -3
- package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +103 -97
- package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.js +22 -0
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.d.ts +1 -9
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +8 -17
- package/.medusa/server/src/api/vendor/products/[id]/preview/route.d.ts +0 -9
- package/.medusa/server/src/api/vendor/products/[id]/preview/route.js +1 -10
- package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +8 -13
- package/.medusa/server/src/api/vendor/products/[id]/route.js +30 -21
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +7 -13
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +36 -25
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +4 -7
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +23 -12
- package/.medusa/server/src/api/vendor/products/helpers.d.ts +9 -0
- package/.medusa/server/src/api/vendor/products/helpers.js +70 -0
- package/.medusa/server/src/api/vendor/products/middlewares.js +29 -49
- package/.medusa/server/src/api/vendor/products/query-config.js +52 -23
- package/.medusa/server/src/api/vendor/products/route.d.ts +2 -1
- package/.medusa/server/src/api/vendor/products/route.js +21 -11
- package/.medusa/server/src/api/vendor/products/validators.d.ts +499 -582
- package/.medusa/server/src/api/vendor/products/validators.js +114 -51
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +47 -49
- package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +20 -21
- package/.medusa/server/src/api/vendor/reservations/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/reservations/[id]/route.js +39 -0
- package/.medusa/server/src/api/vendor/reservations/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/reservations/helpers.js +18 -0
- package/.medusa/server/src/api/{admin/product-brands → vendor/reservations}/middlewares.d.ts +1 -1
- package/.medusa/server/src/api/vendor/reservations/middlewares.js +44 -0
- package/.medusa/server/src/api/vendor/reservations/query-config.d.ts +19 -0
- package/.medusa/server/src/api/vendor/reservations/query-config.js +45 -0
- package/.medusa/server/src/api/vendor/reservations/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/reservations/route.js +35 -0
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +295 -0
- package/.medusa/server/src/api/vendor/reservations/validators.js +40 -0
- package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +3 -3
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +25 -26
- package/.medusa/server/src/api/vendor/sales-channels/[id]/products/route.js +2 -1
- package/.medusa/server/src/api/vendor/sales-channels/helpers.d.ts +1 -0
- package/.medusa/server/src/api/vendor/sales-channels/helpers.js +25 -2
- package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +25 -24
- package/.medusa/server/src/api/vendor/sellers/middlewares.js +1 -18
- package/.medusa/server/src/api/vendor/sellers/route.js +6 -2
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +23 -44
- package/.medusa/server/src/api/vendor/sellers/validators.js +2 -2
- package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +13 -1
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +76 -74
- package/.medusa/server/src/api/vendor/shipping-options/validators.js +2 -1
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +20 -21
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/stores/validators.d.ts +14 -15
- package/.medusa/server/src/links/cart-line-item-offer-link.js +9 -2
- package/.medusa/server/src/links/category-seller-link.js +2 -2
- package/.medusa/server/src/links/media-product-category-link.d.ts +20 -0
- package/.medusa/server/src/links/media-product-category-link.js +34 -0
- package/.medusa/server/src/links/media-product-collection-link.d.ts +18 -0
- package/.medusa/server/src/links/media-product-collection-link.js +32 -0
- package/.medusa/server/src/links/offer-price-link.js +13 -0
- package/.medusa/server/src/links/offer-product-link.js +15 -0
- package/.medusa/server/src/links/offer-variant-link.js +2 -2
- package/.medusa/server/src/links/order-line-item-offer-link.js +10 -2
- package/.medusa/server/src/links/product-attribute-category-link.d.ts +11 -0
- package/.medusa/server/src/links/product-attribute-category-link.js +30 -0
- package/.medusa/server/src/links/product-attribute-option-mirror-link.d.ts +6 -0
- package/.medusa/server/src/links/product-attribute-option-mirror-link.js +24 -0
- package/.medusa/server/src/links/product-attribute-product-link.d.ts +5 -0
- package/.medusa/server/src/links/product-attribute-product-link.js +24 -0
- package/.medusa/server/src/links/product-attribute-value-option-value-mirror-link.d.ts +6 -0
- package/.medusa/server/src/links/product-attribute-value-option-value-mirror-link.js +24 -0
- package/.medusa/server/src/links/product-attribute-value-pivot-link.d.ts +5 -0
- package/.medusa/server/src/links/product-attribute-value-pivot-link.js +23 -0
- package/.medusa/server/src/links/product-change-link.d.ts +8 -0
- package/.medusa/server/src/links/product-change-link.js +27 -0
- package/.medusa/server/src/links/product-seller-link.js +2 -2
- package/.medusa/server/src/links/seller-customer-group-link.js +15 -0
- package/.medusa/server/src/migration-scripts/drop-fulfillment-global-unique-indexes.js +6 -1
- package/.medusa/server/src/modules/commission/index.d.ts +14 -0
- package/.medusa/server/src/modules/commission/index.js +3 -1
- package/.medusa/server/src/modules/commission/loaders/seed-default-commission-rate.d.ts +11 -0
- package/.medusa/server/src/modules/commission/loaders/seed-default-commission-rate.js +35 -0
- package/.medusa/server/src/modules/{product/migrations/Migration20260414141012.d.ts → commission/migrations/Migration20260615120000.d.ts} +1 -1
- package/.medusa/server/src/modules/commission/migrations/Migration20260615120000.js +46 -0
- package/.medusa/server/src/modules/commission/models/commission-line.d.ts +2 -1
- package/.medusa/server/src/modules/commission/models/commission-line.js +3 -2
- package/.medusa/server/src/modules/commission/models/commission-rate-value.d.ts +25 -0
- package/.medusa/server/src/modules/commission/models/commission-rate-value.js +17 -0
- package/.medusa/server/src/modules/commission/models/commission-rate.d.ts +9 -4
- package/.medusa/server/src/modules/commission/models/commission-rate.js +9 -6
- package/.medusa/server/src/modules/commission/models/commission-rule.d.ts +8 -3
- package/.medusa/server/src/modules/commission/models/index.d.ts +1 -0
- package/.medusa/server/src/modules/commission/models/index.js +4 -2
- package/.medusa/server/src/modules/commission/service.d.ts +170 -10
- package/.medusa/server/src/modules/commission/service.js +270 -114
- package/.medusa/server/src/modules/media/index.d.ts +21 -0
- package/.medusa/server/src/modules/{subscription → media}/index.js +2 -2
- package/.medusa/server/src/modules/{product/migrations/Migration20260415151424.d.ts → media/migrations/Migration20260616000000.d.ts} +1 -1
- package/.medusa/server/src/modules/media/migrations/Migration20260616000000.js +16 -0
- package/.medusa/server/src/modules/media/models/index.d.ts +1 -0
- package/.medusa/server/src/modules/media/models/index.js +9 -0
- package/.medusa/server/src/modules/media/models/media-image.d.ts +32 -0
- package/.medusa/server/src/modules/media/models/media-image.js +41 -0
- package/.medusa/server/src/modules/media/service.d.ts +17 -0
- package/.medusa/server/src/modules/media/service.js +10 -0
- package/.medusa/server/src/modules/{product/migrations/Migration20260416104248.d.ts → offer/migrations/Migration20260526000000.d.ts} +1 -1
- package/.medusa/server/src/modules/offer/migrations/Migration20260526000000.js +16 -0
- package/.medusa/server/src/modules/{product/migrations/Migration20260416105443.d.ts → offer/migrations/Migration20260622000000.d.ts} +1 -1
- package/.medusa/server/src/modules/offer/migrations/Migration20260622000000.js +16 -0
- package/.medusa/server/src/modules/offer/models/offer.d.ts +1 -1
- package/.medusa/server/src/modules/offer/models/offer.js +7 -7
- package/.medusa/server/src/modules/offer/service.d.ts +1 -1
- package/.medusa/server/src/modules/product-attribute/index.d.ts +36 -0
- package/.medusa/server/src/modules/product-attribute/index.js +14 -0
- package/.medusa/server/src/modules/product-attribute/joiner-config.d.ts +1 -0
- package/.medusa/server/src/modules/product-attribute/joiner-config.js +17 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000000.d.ts +5 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000000.js +62 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.d.ts +11 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.js +29 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000002.d.ts +14 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000002.js +31 -0
- package/.medusa/server/src/modules/product-attribute/models/index.d.ts +2 -0
- package/.medusa/server/src/modules/product-attribute/models/index.js +11 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.d.ts +27 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +30 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +28 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +54 -0
- package/.medusa/server/src/modules/product-attribute/service.d.ts +70 -0
- package/.medusa/server/src/modules/product-attribute/service.js +227 -0
- package/.medusa/server/src/modules/product-edit/index.d.ts +36 -0
- package/.medusa/server/src/modules/product-edit/index.js +14 -0
- package/.medusa/server/src/modules/product-edit/joiner-config.d.ts +1 -0
- package/.medusa/server/src/modules/product-edit/joiner-config.js +17 -0
- package/.medusa/server/src/modules/product-edit/migrations/Migration20260601130000.d.ts +5 -0
- package/.medusa/server/src/modules/product-edit/migrations/Migration20260601130000.js +78 -0
- package/.medusa/server/src/modules/product-edit/models/index.d.ts +2 -0
- package/.medusa/server/src/modules/product-edit/models/index.js +11 -0
- package/.medusa/server/src/modules/product-edit/models/product-change-action.d.ts +49 -0
- package/.medusa/server/src/modules/{product → product-edit}/models/product-change-action.js +1 -1
- package/.medusa/server/src/modules/product-edit/models/product-change.d.ts +31 -0
- package/.medusa/server/src/modules/product-edit/models/product-change.js +52 -0
- package/.medusa/server/src/modules/product-edit/service.d.ts +84 -0
- package/.medusa/server/src/modules/product-edit/service.js +15 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260616120000.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260616120000.js +16 -0
- package/.medusa/server/src/modules/seller/models/address.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/member-invite.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/member.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/payment-details.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/payment-details.js +3 -3
- package/.medusa/server/src/modules/seller/models/professional-details.d.ts +2 -2
- package/.medusa/server/src/modules/seller/models/seller-member.d.ts +4 -4
- package/.medusa/server/src/modules/seller/models/seller.d.ts +2 -2
- package/.medusa/server/src/modules/seller/repositories/order-group.js +1 -11
- package/.medusa/server/src/modules/seller/service.d.ts +16 -16
- package/.medusa/server/src/modules/seller/service.js +1 -2
- package/.medusa/server/src/subscribers/link-order-line-items-to-offers.d.ts +6 -0
- package/.medusa/server/src/subscribers/link-order-line-items-to-offers.js +94 -0
- package/.medusa/server/src/subscribers/order-edit-confirmed.d.ts +12 -0
- package/.medusa/server/src/subscribers/order-edit-confirmed.js +34 -0
- package/.medusa/server/src/types/cart-line-item.d.ts +0 -9
- package/.medusa/server/src/utils/dashboard/dashboard-base.js +6 -2
- package/.medusa/server/src/utils/disable-medusa-middlewares.js +7 -1
- package/.medusa/server/src/with-mercur.js +1 -6
- package/.medusa/server/src/workflows/cart/hooks/before-refreshing-payment-collection.js +36 -0
- package/.medusa/server/src/workflows/cart/hooks/index.d.ts +3 -2
- package/.medusa/server/src/workflows/cart/hooks/index.js +4 -3
- package/.medusa/server/src/workflows/cart/hooks/set-pricing-context.js +94 -0
- package/.medusa/server/src/workflows/cart/hooks/validate.d.ts +1 -0
- package/.medusa/server/src/workflows/cart/hooks/validate.js +96 -0
- package/.medusa/server/src/workflows/cart/steps/index.d.ts +0 -3
- package/.medusa/server/src/workflows/cart/steps/index.js +1 -4
- package/.medusa/server/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.js +3 -5
- package/.medusa/server/src/workflows/cart/utils/fields.js +25 -10
- package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.js +1 -3
- package/.medusa/server/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.js +1 -2
- package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +19 -16
- package/.medusa/server/src/workflows/cart/workflows/index.d.ts +0 -2
- package/.medusa/server/src/workflows/cart/workflows/index.js +1 -3
- package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.d.ts +2 -2
- package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.js +1 -2
- package/.medusa/server/src/workflows/commission/steps/create-commission-rates.d.ts +1 -28
- package/.medusa/server/src/workflows/commission/steps/create-commission-rules.d.ts +13 -4
- package/.medusa/server/src/workflows/commission/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/commission/steps/index.js +2 -1
- package/.medusa/server/src/workflows/commission/steps/update-commission-rates.d.ts +13 -4
- package/.medusa/server/src/workflows/commission/steps/update-commission-rules.d.ts +13 -4
- package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.d.ts +2 -2
- package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.js +1 -1
- package/.medusa/server/src/workflows/commission/steps/validate-commission-rates-deletable.d.ts +2 -0
- package/.medusa/server/src/workflows/commission/steps/validate-commission-rates-deletable.js +19 -0
- package/.medusa/server/src/workflows/commission/workflows/create-commission-rates.d.ts +1 -28
- package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.d.ts +1 -2
- package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.js +3 -1
- package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.js +2 -1
- package/.medusa/server/src/workflows/commission/workflows/update-commission-rates.d.ts +13 -4
- package/.medusa/server/src/workflows/{subscription/workflows → customer-group}/index.js +3 -7
- package/.medusa/server/src/workflows/customer-group/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/customer-group/steps/index.js +18 -0
- package/.medusa/server/src/workflows/customer-group/steps/link-seller-customer-group.d.ts +6 -0
- package/.medusa/server/src/workflows/customer-group/steps/link-seller-customer-group.js +38 -0
- package/.medusa/server/src/workflows/customer-group/workflows/create-seller-customer-groups.d.ts +7 -0
- package/.medusa/server/src/workflows/customer-group/workflows/create-seller-customer-groups.js +20 -0
- package/.medusa/server/src/workflows/customer-group/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/{subscription/steps → customer-group/workflows}/index.js +2 -7
- package/.medusa/server/src/workflows/index.d.ts +3 -1
- package/.medusa/server/src/workflows/index.js +4 -2
- package/.medusa/server/src/workflows/media/index.d.ts +2 -0
- package/.medusa/server/src/workflows/{subscription → media}/index.js +1 -1
- package/.medusa/server/src/workflows/media/steps/create-images.d.ts +20 -0
- package/.medusa/server/src/workflows/media/steps/create-images.js +21 -0
- package/.medusa/server/src/workflows/media/steps/delete-images.d.ts +3 -0
- package/.medusa/server/src/workflows/media/steps/delete-images.js +21 -0
- package/.medusa/server/src/workflows/media/steps/index.d.ts +2 -0
- package/.medusa/server/src/workflows/media/steps/index.js +19 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-category-with-images.d.ts +8 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-category-with-images.js +23 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-collection-with-images.d.ts +8 -0
- package/.medusa/server/src/workflows/media/workflows/create-product-collection-with-images.js +23 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-category-with-images.d.ts +5 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-category-with-images.js +21 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-collection-with-images.d.ts +5 -0
- package/.medusa/server/src/workflows/media/workflows/delete-product-collection-with-images.js +21 -0
- package/.medusa/server/src/workflows/media/workflows/index.d.ts +8 -0
- package/.medusa/server/src/workflows/media/workflows/index.js +25 -0
- package/.medusa/server/src/workflows/media/workflows/set-category-images.d.ts +13 -0
- package/.medusa/server/src/workflows/media/workflows/set-category-images.js +71 -0
- package/.medusa/server/src/workflows/media/workflows/set-collection-images.d.ts +13 -0
- package/.medusa/server/src/workflows/media/workflows/set-collection-images.js +71 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-category-with-images.d.ts +9 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-category-with-images.js +22 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-collection-with-images.d.ts +9 -0
- package/.medusa/server/src/workflows/media/workflows/update-product-collection-with-images.js +22 -0
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.d.ts +10 -0
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +49 -0
- package/.medusa/server/src/workflows/offer/steps/create-offers.d.ts +1 -1
- package/.medusa/server/src/workflows/offer/steps/delete-offers.d.ts +6 -1
- package/.medusa/server/src/workflows/offer/steps/delete-offers.js +10 -6
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +6 -0
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +52 -0
- package/.medusa/server/src/workflows/offer/steps/index.d.ts +4 -1
- package/.medusa/server/src/workflows/offer/steps/index.js +5 -2
- package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.d.ts +3 -0
- package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.js +15 -0
- package/.medusa/server/src/workflows/offer/steps/update-offers.d.ts +1 -6
- package/.medusa/server/src/workflows/offer/steps/update-offers.js +1 -1
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.d.ts +6 -0
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +16 -0
- package/.medusa/server/src/workflows/offer/utils/index.d.ts +1 -0
- package/.medusa/server/src/workflows/offer/utils/index.js +2 -1
- package/.medusa/server/src/workflows/offer/utils/prepare-offer-inventory-input.d.ts +0 -10
- package/.medusa/server/src/workflows/offer/utils/prepare-offer-inventory-input.js +1 -19
- package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.d.ts +17 -31
- package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.js +1 -1
- package/.medusa/server/src/workflows/offer/workflows/create-offers.d.ts +12 -111
- package/.medusa/server/src/workflows/offer/workflows/create-offers.js +86 -45
- package/.medusa/server/src/workflows/offer/workflows/delete-offers.js +2 -2
- package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +12 -118
- package/.medusa/server/src/workflows/offer/workflows/update-offers.js +115 -20
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +2 -3
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +3 -5
- package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.d.ts +7 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.js +149 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.d.ts +7 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.js +152 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.d.ts +7 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.js +165 -0
- package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.d.ts +1 -1
- package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +3 -12
- package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.d.ts +10 -33
- package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +4 -6
- package/.medusa/server/src/workflows/order/workflows/index.d.ts +3 -0
- package/.medusa/server/src/workflows/order/workflows/index.js +4 -1
- package/.medusa/server/src/workflows/order-group/utils/aggregate-status.js +1 -7
- package/.medusa/server/src/workflows/payout/workflows/create-payout.js +34 -21
- package/.medusa/server/src/workflows/product/events.d.ts +1 -49
- package/.medusa/server/src/workflows/product/events.js +3 -51
- package/.medusa/server/src/workflows/product/index.d.ts +1 -1
- package/.medusa/server/src/workflows/product/index.js +2 -2
- package/.medusa/server/src/workflows/product/steps/index.d.ts +1 -28
- package/.medusa/server/src/workflows/product/steps/index.js +2 -29
- package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +11 -0
- package/.medusa/server/src/workflows/product/steps/validate-products-status.js +20 -0
- package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +2 -23
- package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +1 -5
- package/.medusa/server/src/workflows/product/workflows/confirm-products.js +29 -30
- package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +11 -3
- package/.medusa/server/src/workflows/product/workflows/create-products.js +113 -16
- package/.medusa/server/src/workflows/product/workflows/index.d.ts +3 -27
- package/.medusa/server/src/workflows/product/workflows/index.js +4 -28
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +1 -8
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +3 -4
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +1 -8
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +3 -4
- package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +1 -1
- package/.medusa/server/src/workflows/product/workflows/reject-product.js +35 -38
- package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +11 -0
- package/.medusa/server/src/workflows/product/workflows/request-product-change.js +55 -0
- package/.medusa/server/src/workflows/product-attribute/events.d.ts +10 -0
- package/.medusa/server/src/workflows/product-attribute/events.js +14 -0
- package/.medusa/server/src/workflows/product-attribute/index.d.ts +3 -0
- package/.medusa/server/src/workflows/product-attribute/index.js +20 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/create-product-attribute-values.d.ts +1 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.d.ts +4 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +18 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attribute-values.d.ts +1 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attribute-values.js +18 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attributes.d.ts +1 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attributes.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/detach-product-option-values-from-product.d.ts +14 -0
- package/.medusa/server/src/workflows/product-attribute/steps/detach-product-option-values-from-product.js +40 -0
- package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +9 -0
- package/.medusa/server/src/workflows/product-attribute/steps/index.js +26 -0
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +41 -0
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +38 -0
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/update-product-attributes.d.ts +2 -1
- package/.medusa/server/src/workflows/{product → product-attribute}/steps/update-product-attributes.js +7 -6
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-linked.d.ts +2 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-linked.js +28 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-required.d.ts +7 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-required.js +16 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attributes-to-product.d.ts +9 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attributes-to-product.js +242 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-product-attributes.d.ts +14 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-product-attributes.js +27 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.js +67 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.d.ts +19 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.js +88 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.d.ts +16 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.js +61 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +16 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +34 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +11 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/index.js +28 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/remove-product-attributes-from-product.d.ts +10 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/remove-product-attributes-from-product.js +83 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.js +60 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes-on-product.d.ts +11 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes-on-product.js +285 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.d.ts +18 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.js +41 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +11 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +26 -0
- package/.medusa/server/src/workflows/product-edit/events.d.ts +6 -0
- package/.medusa/server/src/workflows/product-edit/events.js +10 -0
- package/.medusa/server/src/workflows/product-edit/index.d.ts +1 -0
- package/.medusa/server/src/workflows/product-edit/index.js +2 -1
- package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.d.ts +38 -0
- package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.js +18 -0
- package/.medusa/server/src/workflows/product-edit/steps/apply-variant-image-links.d.ts +16 -0
- package/.medusa/server/src/workflows/product-edit/steps/apply-variant-image-links.js +35 -0
- package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.d.ts +38 -2
- package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.js +28 -10
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.d.ts +11 -0
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +21 -0
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +40 -3
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +38 -7
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +36 -14
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +15 -11
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +40 -16
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +11 -18
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +39 -3
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +32 -10
- package/.medusa/server/src/workflows/product-edit/steps/index.d.ts +6 -3
- package/.medusa/server/src/workflows/product-edit/steps/index.js +7 -4
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +44 -0
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +29 -0
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +3 -9
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +25 -15
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.d.ts +10 -0
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.js +14 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.d.ts +9 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +22 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +7 -0
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +184 -0
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +8 -15
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +9 -25
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.d.ts +17 -0
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.js +35 -0
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.d.ts +19 -0
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +44 -0
- package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.d.ts +17 -0
- package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.js +26 -0
- package/.medusa/server/src/workflows/product-edit/workflows/index.d.ts +11 -9
- package/.medusa/server/src/workflows/product-edit/workflows/index.js +12 -10
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +9 -19
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +23 -47
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +13 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +47 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-product.d.ts +11 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-product.js +133 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.d.ts +25 -0
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +162 -0
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +12 -0
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +39 -0
- package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.d.ts +18 -0
- package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.js +36 -0
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.d.ts +11 -0
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +44 -0
- package/.medusa/server/src/workflows/promotion/steps/register-usage.d.ts +0 -3
- package/.medusa/server/src/workflows/promotion/steps/register-usage.js +1 -4
- package/.medusa/server/src/workflows/seller/steps/create-seller-member.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/steps/update-member.d.ts +2 -2
- package/.medusa/server/src/workflows/seller/steps/update-seller-member.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/workflows/accept-member-invite.js +1 -2
- package/.medusa/server/src/workflows/seller/workflows/add-seller-member.d.ts +4 -4
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.d.ts +20 -2
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +1 -2
- package/.medusa/server/src/workflows/seller/workflows/update-member.d.ts +2 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-address.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-address.js +1 -1
- package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.js +1 -1
- package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.js +1 -1
- package/.medusa/server/src/workflows/seller/workflows/update-seller.d.ts +14 -2
- package/.medusa/server/src/workflows/seller/workflows/update-seller.js +1 -1
- package/package.json +17 -17
- package/.medusa/server/src/api/admin/product-brands/[id]/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/product-brands/[id]/route.js +0 -51
- package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.d.ts +0 -3
- package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.js +0 -20
- package/.medusa/server/src/api/admin/product-brands/middlewares.js +0 -49
- package/.medusa/server/src/api/admin/product-brands/query-config.js +0 -24
- package/.medusa/server/src/api/admin/product-brands/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/product-brands/route.js +0 -38
- package/.medusa/server/src/api/admin/product-brands/validators.d.ts +0 -284
- package/.medusa/server/src/api/admin/product-brands/validators.js +0 -41
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +0 -53
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +0 -48
- package/.medusa/server/src/api/admin/products/batch/route.d.ts +0 -4
- package/.medusa/server/src/api/admin/products/batch/route.js +0 -36
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.js +0 -43
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.d.ts +0 -4
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.js +0 -24
- package/.medusa/server/src/api/admin/subscription-plans/[id]/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/subscription-plans/[id]/route.js +0 -43
- package/.medusa/server/src/api/admin/subscription-plans/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/admin/subscription-plans/middlewares.js +0 -81
- package/.medusa/server/src/api/admin/subscription-plans/query-config.d.ts +0 -17
- package/.medusa/server/src/api/admin/subscription-plans/query-config.js +0 -43
- package/.medusa/server/src/api/admin/subscription-plans/route.d.ts +0 -5
- package/.medusa/server/src/api/admin/subscription-plans/route.js +0 -35
- package/.medusa/server/src/api/admin/subscription-plans/validators.d.ts +0 -117
- package/.medusa/server/src/api/admin/subscription-plans/validators.js +0 -42
- package/.medusa/server/src/api/store/product-brands/[id]/route.d.ts +0 -2
- package/.medusa/server/src/api/store/product-brands/[id]/route.js +0 -18
- package/.medusa/server/src/api/store/product-brands/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/store/product-brands/middlewares.js +0 -23
- package/.medusa/server/src/api/store/product-brands/query-config.js +0 -23
- package/.medusa/server/src/api/store/product-brands/route.d.ts +0 -2
- package/.medusa/server/src/api/store/product-brands/route.js +0 -21
- package/.medusa/server/src/api/store/product-brands/validators.d.ts +0 -215
- package/.medusa/server/src/api/store/product-brands/validators.js +0 -21
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.d.ts +0 -12
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.js +0 -165
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.d.ts +0 -12
- package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.js +0 -64
- package/.medusa/server/src/api/vendor/product-brands/[id]/route.d.ts +0 -3
- package/.medusa/server/src/api/vendor/product-brands/[id]/route.js +0 -18
- package/.medusa/server/src/api/vendor/product-brands/middlewares.js +0 -23
- package/.medusa/server/src/api/vendor/product-brands/query-config.js +0 -24
- package/.medusa/server/src/api/vendor/product-brands/route.d.ts +0 -3
- package/.medusa/server/src/api/vendor/product-brands/route.js +0 -21
- package/.medusa/server/src/api/vendor/product-brands/validators.d.ts +0 -221
- package/.medusa/server/src/api/vendor/product-brands/validators.js +0 -22
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +0 -9
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +0 -37
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +0 -11
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +0 -47
- package/.medusa/server/src/api/vendor/subscription/middlewares.d.ts +0 -2
- package/.medusa/server/src/api/vendor/subscription/middlewares.js +0 -28
- package/.medusa/server/src/api/vendor/subscription/route.d.ts +0 -3
- package/.medusa/server/src/api/vendor/subscription/route.js +0 -31
- package/.medusa/server/src/links/brand-seller-link.js +0 -16
- package/.medusa/server/src/links/line-item-commission-line-link.js +0 -21
- package/.medusa/server/src/links/offer-price-set-link.js +0 -15
- package/.medusa/server/src/modules/product/index.d.ts +0 -7
- package/.medusa/server/src/modules/product/index.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260414141012.js +0 -169
- package/.medusa/server/src/modules/product/migrations/Migration20260415151424.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260416104248.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260416105443.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260421093258.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260421093258.js +0 -22
- package/.medusa/server/src/modules/product/migrations/Migration20260422105949.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260422105949.js +0 -32
- package/.medusa/server/src/modules/product/migrations/Migration20260422112250.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260422112250.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260424120000.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260424120000.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260427140959.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260427140959.js +0 -20
- package/.medusa/server/src/modules/product/migrations/Migration20260427141021.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260427141021.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260428115720.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260428115720.js +0 -16
- package/.medusa/server/src/modules/product/migrations/Migration20260430143600.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260430143600.js +0 -15
- package/.medusa/server/src/modules/product/migrations/Migration20260430144500.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260430144500.js +0 -23
- package/.medusa/server/src/modules/product/migrations/Migration20260430150000.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260430150000.js +0 -14
- package/.medusa/server/src/modules/product/migrations/Migration20260520120000.d.ts +0 -5
- package/.medusa/server/src/modules/product/migrations/Migration20260520120000.js +0 -16
- package/.medusa/server/src/modules/product/models/index.d.ts +0 -13
- package/.medusa/server/src/modules/product/models/index.js +0 -33
- package/.medusa/server/src/modules/product/models/product-attribute-value.d.ts +0 -1698
- package/.medusa/server/src/modules/product/models/product-attribute-value.js +0 -38
- package/.medusa/server/src/modules/product/models/product-attribute.d.ts +0 -1627
- package/.medusa/server/src/modules/product/models/product-attribute.js +0 -57
- package/.medusa/server/src/modules/product/models/product-brand.d.ts +0 -551
- package/.medusa/server/src/modules/product/models/product-brand.js +0 -34
- package/.medusa/server/src/modules/product/models/product-category.d.ts +0 -1692
- package/.medusa/server/src/modules/product/models/product-category.js +0 -55
- package/.medusa/server/src/modules/product/models/product-change-action.d.ts +0 -1105
- package/.medusa/server/src/modules/product/models/product-change.d.ts +0 -559
- package/.medusa/server/src/modules/product/models/product-change.js +0 -50
- package/.medusa/server/src/modules/product/models/product-collection.d.ts +0 -552
- package/.medusa/server/src/modules/product/models/product-collection.js +0 -27
- package/.medusa/server/src/modules/product/models/product-image.d.ts +0 -1745
- package/.medusa/server/src/modules/product/models/product-image.js +0 -51
- package/.medusa/server/src/modules/product/models/product-tag.d.ts +0 -561
- package/.medusa/server/src/modules/product/models/product-tag.js +0 -26
- package/.medusa/server/src/modules/product/models/product-type.d.ts +0 -553
- package/.medusa/server/src/modules/product/models/product-type.js +0 -26
- package/.medusa/server/src/modules/product/models/product-variant-product-image.d.ts +0 -3366
- package/.medusa/server/src/modules/product/models/product-variant-product-image.js +0 -19
- package/.medusa/server/src/modules/product/models/product-variant.d.ts +0 -1619
- package/.medusa/server/src/modules/product/models/product-variant.js +0 -87
- package/.medusa/server/src/modules/product/models/product.d.ts +0 -559
- package/.medusa/server/src/modules/product/models/product.js +0 -137
- package/.medusa/server/src/modules/product/repositories/product-category.d.ts +0 -53
- package/.medusa/server/src/modules/product/repositories/product-category.js +0 -381
- package/.medusa/server/src/modules/product/service.d.ts +0 -11209
- package/.medusa/server/src/modules/product/service.js +0 -1471
- package/.medusa/server/src/modules/product/services/product-category.d.ts +0 -37
- package/.medusa/server/src/modules/product/services/product-category.js +0 -166
- package/.medusa/server/src/modules/subscription/index.d.ts +0 -35
- package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.d.ts +0 -5
- package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.js +0 -24
- package/.medusa/server/src/modules/subscription/models/index.d.ts +0 -2
- package/.medusa/server/src/modules/subscription/models/index.js +0 -11
- package/.medusa/server/src/modules/subscription/models/subscription-override.d.ts +0 -20
- package/.medusa/server/src/modules/subscription/models/subscription-override.js +0 -36
- package/.medusa/server/src/modules/subscription/models/subscription-plan.d.ts +0 -20
- package/.medusa/server/src/modules/subscription/models/subscription-plan.js +0 -32
- package/.medusa/server/src/modules/subscription/service.d.ts +0 -49
- package/.medusa/server/src/modules/subscription/service.js +0 -17
- package/.medusa/server/src/workflows/cart/hooks/validate-add-to-cart-stock.js +0 -52
- package/.medusa/server/src/workflows/cart/hooks/validate-update-line-item-stock.js +0 -60
- package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.d.ts +0 -19
- package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.js +0 -39
- package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.d.ts +0 -8
- package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.js +0 -45
- package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.d.ts +0 -21
- package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.js +0 -85
- package/.medusa/server/src/workflows/cart/workflows/add-to-cart.d.ts +0 -12
- package/.medusa/server/src/workflows/cart/workflows/add-to-cart.js +0 -235
- package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.d.ts +0 -16
- package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.js +0 -87
- package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.d.ts +0 -8
- package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.js +0 -26
- package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.d.ts +0 -7
- package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.js +0 -61
- package/.medusa/server/src/workflows/product/steps/batch-product-attributes.d.ts +0 -11
- package/.medusa/server/src/workflows/product/steps/batch-product-attributes.js +0 -16
- package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.js +0 -17
- package/.medusa/server/src/workflows/product/steps/create-product-attributes.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-product-attributes.js +0 -17
- package/.medusa/server/src/workflows/product/steps/create-product-brands.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-product-brands.js +0 -17
- package/.medusa/server/src/workflows/product/steps/create-product-categories.d.ts +0 -1576
- package/.medusa/server/src/workflows/product/steps/create-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/steps/create-product-variants.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-product-variants.js +0 -18
- package/.medusa/server/src/workflows/product/steps/create-products.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/create-products.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-attribute-values.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-attributes.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-brands.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-product-brands.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-categories.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-product-categories.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-product-variants.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-product-variants.js +0 -17
- package/.medusa/server/src/workflows/product/steps/delete-products.d.ts +0 -1
- package/.medusa/server/src/workflows/product/steps/delete-products.js +0 -17
- package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.d.ts +0 -8
- package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.js +0 -26
- package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.d.ts +0 -6
- package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.js +0 -11
- package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.d.ts +0 -7
- package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.js +0 -22
- package/.medusa/server/src/workflows/product/steps/update-product-brands.d.ts +0 -7
- package/.medusa/server/src/workflows/product/steps/update-product-brands.js +0 -28
- package/.medusa/server/src/workflows/product/steps/update-product-categories.d.ts +0 -1580
- package/.medusa/server/src/workflows/product/steps/update-product-categories.js +0 -20
- package/.medusa/server/src/workflows/product/steps/update-product-variants.d.ts +0 -10
- package/.medusa/server/src/workflows/product/steps/update-product-variants.js +0 -32
- package/.medusa/server/src/workflows/product/steps/update-products.d.ts +0 -10
- package/.medusa/server/src/workflows/product/steps/update-products.js +0 -33
- package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.js +0 -30
- package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.js +0 -19
- package/.medusa/server/src/workflows/product/steps/validate-confirm-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-confirm-products.js +0 -14
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.js +0 -19
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.d.ts +0 -5
- package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.js +0 -30
- package/.medusa/server/src/workflows/product/steps/validate-reject-product.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-reject-product.js +0 -12
- package/.medusa/server/src/workflows/product/steps/validate-request-changes.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-request-changes.js +0 -12
- package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.d.ts +0 -3
- package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.js +0 -12
- package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.js +0 -10
- package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.d.ts +0 -12
- package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.js +0 -23
- package/.medusa/server/src/workflows/product/workflows/batch-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/batch-products.js +0 -86
- package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.js +0 -21
- package/.medusa/server/src/workflows/product/workflows/create-product-attributes.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/create-product-attributes.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/create-product-brands.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/create-product-brands.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/create-product-categories.d.ts +0 -1581
- package/.medusa/server/src/workflows/product/workflows/create-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/create-product-variants.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/create-product-variants.js +0 -25
- package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.js +0 -20
- package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.js +0 -20
- package/.medusa/server/src/workflows/product/workflows/delete-product-brands.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-brands.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/delete-product-categories.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/delete-product-variants.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/delete-product-variants.js +0 -24
- package/.medusa/server/src/workflows/product/workflows/delete-products.d.ts +0 -6
- package/.medusa/server/src/workflows/product/workflows/delete-products.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.d.ts +0 -14
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.js +0 -21
- package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.js +0 -20
- package/.medusa/server/src/workflows/product/workflows/request-product-changes.d.ts +0 -11
- package/.medusa/server/src/workflows/product/workflows/request-product-changes.js +0 -61
- package/.medusa/server/src/workflows/product/workflows/resubmit-product.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/resubmit-product.js +0 -48
- package/.medusa/server/src/workflows/product/workflows/submit-seller-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/submit-seller-products.js +0 -76
- package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/update-product-attributes.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/update-product-attributes.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/update-product-brands.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/update-product-brands.js +0 -19
- package/.medusa/server/src/workflows/product/workflows/update-product-categories.d.ts +0 -1583
- package/.medusa/server/src/workflows/product/workflows/update-product-categories.js +0 -18
- package/.medusa/server/src/workflows/product/workflows/update-product-variants.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/update-product-variants.js +0 -36
- package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +0 -3
- package/.medusa/server/src/workflows/product/workflows/update-products.js +0 -23
- package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.d.ts +0 -8
- package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.js +0 -21
- package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.d.ts +0 -5
- package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.js +0 -11
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.d.ts +0 -11
- package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.js +0 -21
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.d.ts +0 -19
- package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.js +0 -40
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.d.ts +0 -21
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.js +0 -44
- package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.d.ts +0 -16
- package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.js +0 -42
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.d.ts +0 -19
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.js +0 -66
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.d.ts +0 -17
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.js +0 -58
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.d.ts +0 -17
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.js +0 -62
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.d.ts +0 -16
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.js +0 -68
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +0 -18
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +0 -72
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.d.ts +0 -21
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.js +0 -89
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.d.ts +0 -2
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.d.ts +0 -2
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/index.d.ts +0 -6
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.js +0 -17
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.js +0 -17
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.d.ts +0 -5
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.d.ts +0 -5
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/index.d.ts +0 -6
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.js +0 -11
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.d.ts +0 -31
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.js +0 -11
- package/.medusa/server/src/workflows/utils/override-workflow.d.ts +0 -12
- package/.medusa/server/src/workflows/utils/override-workflow.js +0 -21
- /package/.medusa/server/src/links/{brand-seller-link.d.ts → offer-price-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{line-item-commission-line-link.d.ts → offer-product-link.d.ts} +0 -0
- /package/.medusa/server/src/links/{offer-price-set-link.d.ts → seller-customer-group-link.d.ts} +0 -0
- /package/.medusa/server/src/workflows/cart/hooks/{validate-add-to-cart-stock.d.ts → before-refreshing-payment-collection.d.ts} +0 -0
- /package/.medusa/server/src/workflows/cart/hooks/{validate-update-line-item-stock.d.ts → set-pricing-context.d.ts} +0 -0
- /package/.medusa/server/src/workflows/{subscription → customer-group}/index.d.ts +0 -0
|
@@ -1,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,9 +23,8 @@ 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
|
-
|
|
26
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
26
|
+
has_offer: any;
|
|
27
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
27
28
|
$eq: any;
|
|
28
29
|
$ne: any;
|
|
29
30
|
$in: any;
|
|
@@ -36,7 +37,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
36
37
|
$gte: any;
|
|
37
38
|
$lt: any;
|
|
38
39
|
$lte: any;
|
|
39
|
-
},
|
|
40
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
40
41
|
$eq?: any;
|
|
41
42
|
$ne?: any;
|
|
42
43
|
$in?: any;
|
|
@@ -63,7 +64,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
63
64
|
$lt?: any;
|
|
64
65
|
$lte?: any;
|
|
65
66
|
}>]>>;
|
|
66
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
67
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
67
68
|
$eq: any;
|
|
68
69
|
$ne: any;
|
|
69
70
|
$in: any;
|
|
@@ -76,7 +77,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
76
77
|
$gte: any;
|
|
77
78
|
$lt: any;
|
|
78
79
|
$lte: any;
|
|
79
|
-
},
|
|
80
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
80
81
|
$eq?: any;
|
|
81
82
|
$ne?: any;
|
|
82
83
|
$in?: any;
|
|
@@ -103,7 +104,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
103
104
|
$lt?: any;
|
|
104
105
|
$lte?: any;
|
|
105
106
|
}>]>>;
|
|
106
|
-
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
107
|
+
deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
107
108
|
$eq: any;
|
|
108
109
|
$ne: any;
|
|
109
110
|
$in: any;
|
|
@@ -116,7 +117,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
116
117
|
$gte: any;
|
|
117
118
|
$lt: any;
|
|
118
119
|
$lte: any;
|
|
119
|
-
},
|
|
120
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
120
121
|
$eq?: any;
|
|
121
122
|
$ne?: any;
|
|
122
123
|
$in?: any;
|
|
@@ -144,49 +145,45 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
144
145
|
$lte?: any;
|
|
145
146
|
}>]>>;
|
|
146
147
|
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
seller_id?:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
barcode?: string | undefined;
|
|
167
|
-
category_id?: string | string[] | undefined;
|
|
148
|
+
[x: string]: any;
|
|
149
|
+
q?: unknown;
|
|
150
|
+
id?: unknown;
|
|
151
|
+
title?: unknown;
|
|
152
|
+
handle?: unknown;
|
|
153
|
+
seller_id?: unknown;
|
|
154
|
+
status?: unknown;
|
|
155
|
+
collection_id?: unknown;
|
|
156
|
+
type_id?: unknown;
|
|
157
|
+
category_id?: unknown;
|
|
158
|
+
tag_id?: unknown;
|
|
159
|
+
sku?: unknown;
|
|
160
|
+
ean?: unknown;
|
|
161
|
+
upc?: unknown;
|
|
162
|
+
barcode?: unknown;
|
|
163
|
+
has_offer?: unknown;
|
|
164
|
+
created_at?: unknown;
|
|
165
|
+
updated_at?: unknown;
|
|
166
|
+
deleted_at?: unknown;
|
|
168
167
|
}, {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
seller_id?:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
barcode?: string | undefined;
|
|
189
|
-
category_id?: string | string[] | undefined;
|
|
168
|
+
[x: string]: any;
|
|
169
|
+
q?: unknown;
|
|
170
|
+
id?: unknown;
|
|
171
|
+
title?: unknown;
|
|
172
|
+
handle?: unknown;
|
|
173
|
+
seller_id?: unknown;
|
|
174
|
+
status?: unknown;
|
|
175
|
+
collection_id?: unknown;
|
|
176
|
+
type_id?: unknown;
|
|
177
|
+
category_id?: unknown;
|
|
178
|
+
tag_id?: unknown;
|
|
179
|
+
sku?: unknown;
|
|
180
|
+
ean?: unknown;
|
|
181
|
+
upc?: unknown;
|
|
182
|
+
barcode?: unknown;
|
|
183
|
+
has_offer?: unknown;
|
|
184
|
+
created_at?: unknown;
|
|
185
|
+
updated_at?: unknown;
|
|
186
|
+
deleted_at?: unknown;
|
|
190
187
|
}>, "many">>>;
|
|
191
188
|
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
192
189
|
q: z.ZodOptional<z.ZodString>;
|
|
@@ -194,9 +191,12 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
194
191
|
title: z.ZodOptional<z.ZodString>;
|
|
195
192
|
handle: z.ZodOptional<z.ZodString>;
|
|
196
193
|
seller_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
197
|
-
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<
|
|
198
|
-
|
|
199
|
-
|
|
194
|
+
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
195
|
+
readonly DRAFT: "draft";
|
|
196
|
+
readonly PROPOSED: "proposed";
|
|
197
|
+
readonly PUBLISHED: "published";
|
|
198
|
+
readonly REJECTED: "rejected";
|
|
199
|
+
}>, "many">>;
|
|
200
200
|
collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
201
201
|
type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
202
202
|
category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -205,9 +205,8 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
205
205
|
ean: z.ZodOptional<z.ZodString>;
|
|
206
206
|
upc: z.ZodOptional<z.ZodString>;
|
|
207
207
|
barcode: z.ZodOptional<z.ZodString>;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
208
|
+
has_offer: any;
|
|
209
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
211
210
|
$eq: any;
|
|
212
211
|
$ne: any;
|
|
213
212
|
$in: any;
|
|
@@ -220,7 +219,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
220
219
|
$gte: any;
|
|
221
220
|
$lt: any;
|
|
222
221
|
$lte: any;
|
|
223
|
-
},
|
|
222
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
224
223
|
$eq?: any;
|
|
225
224
|
$ne?: any;
|
|
226
225
|
$in?: any;
|
|
@@ -247,7 +246,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
247
246
|
$lt?: any;
|
|
248
247
|
$lte?: any;
|
|
249
248
|
}>]>>;
|
|
250
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
249
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
251
250
|
$eq: any;
|
|
252
251
|
$ne: any;
|
|
253
252
|
$in: any;
|
|
@@ -260,7 +259,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
260
259
|
$gte: any;
|
|
261
260
|
$lt: any;
|
|
262
261
|
$lte: any;
|
|
263
|
-
},
|
|
262
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
264
263
|
$eq?: any;
|
|
265
264
|
$ne?: any;
|
|
266
265
|
$in?: any;
|
|
@@ -287,7 +286,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
287
286
|
$lt?: any;
|
|
288
287
|
$lte?: any;
|
|
289
288
|
}>]>>;
|
|
290
|
-
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
289
|
+
deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
291
290
|
$eq: any;
|
|
292
291
|
$ne: any;
|
|
293
292
|
$in: any;
|
|
@@ -300,7 +299,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
300
299
|
$gte: any;
|
|
301
300
|
$lt: any;
|
|
302
301
|
$lte: any;
|
|
303
|
-
},
|
|
302
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
304
303
|
$eq?: any;
|
|
305
304
|
$ne?: any;
|
|
306
305
|
$in?: any;
|
|
@@ -328,51 +327,47 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
328
327
|
$lte?: any;
|
|
329
328
|
}>]>>;
|
|
330
329
|
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
seller_id?:
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
barcode?: string | undefined;
|
|
351
|
-
category_id?: string | string[] | undefined;
|
|
330
|
+
[x: string]: any;
|
|
331
|
+
q?: unknown;
|
|
332
|
+
id?: unknown;
|
|
333
|
+
title?: unknown;
|
|
334
|
+
handle?: unknown;
|
|
335
|
+
seller_id?: unknown;
|
|
336
|
+
status?: unknown;
|
|
337
|
+
collection_id?: unknown;
|
|
338
|
+
type_id?: unknown;
|
|
339
|
+
category_id?: unknown;
|
|
340
|
+
tag_id?: unknown;
|
|
341
|
+
sku?: unknown;
|
|
342
|
+
ean?: unknown;
|
|
343
|
+
upc?: unknown;
|
|
344
|
+
barcode?: unknown;
|
|
345
|
+
has_offer?: unknown;
|
|
346
|
+
created_at?: unknown;
|
|
347
|
+
updated_at?: unknown;
|
|
348
|
+
deleted_at?: unknown;
|
|
352
349
|
}, {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
seller_id?:
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
barcode?: string | undefined;
|
|
373
|
-
category_id?: string | string[] | undefined;
|
|
350
|
+
[x: string]: any;
|
|
351
|
+
q?: unknown;
|
|
352
|
+
id?: unknown;
|
|
353
|
+
title?: unknown;
|
|
354
|
+
handle?: unknown;
|
|
355
|
+
seller_id?: unknown;
|
|
356
|
+
status?: unknown;
|
|
357
|
+
collection_id?: unknown;
|
|
358
|
+
type_id?: unknown;
|
|
359
|
+
category_id?: unknown;
|
|
360
|
+
tag_id?: unknown;
|
|
361
|
+
sku?: unknown;
|
|
362
|
+
ean?: unknown;
|
|
363
|
+
upc?: unknown;
|
|
364
|
+
barcode?: unknown;
|
|
365
|
+
has_offer?: unknown;
|
|
366
|
+
created_at?: unknown;
|
|
367
|
+
updated_at?: unknown;
|
|
368
|
+
deleted_at?: unknown;
|
|
374
369
|
}>, "many">>>;
|
|
375
|
-
},
|
|
370
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
376
371
|
[x: string]: any;
|
|
377
372
|
$and?: unknown;
|
|
378
373
|
$or?: unknown;
|
|
@@ -388,7 +383,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
388
383
|
export type AdminGetProductParamsType = z.infer<typeof AdminGetProductParams>;
|
|
389
384
|
export declare const AdminGetProductParams: z.ZodObject<{
|
|
390
385
|
fields: z.ZodOptional<z.ZodString>;
|
|
391
|
-
},
|
|
386
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
392
387
|
fields?: string | undefined;
|
|
393
388
|
}, {
|
|
394
389
|
fields?: string | undefined;
|
|
@@ -412,14 +407,15 @@ declare const CreateProductVariant: z.ZodObject<{
|
|
|
412
407
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
408
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
414
409
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
415
|
-
|
|
410
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
416
411
|
}, "strict", z.ZodTypeAny, {
|
|
417
412
|
title: string;
|
|
413
|
+
options?: Record<string, string> | undefined;
|
|
418
414
|
length?: number | null | undefined;
|
|
415
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
419
416
|
sku?: string | null | undefined;
|
|
420
417
|
ean?: string | null | undefined;
|
|
421
418
|
upc?: string | null | undefined;
|
|
422
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
423
419
|
weight?: number | null | undefined;
|
|
424
420
|
height?: number | null | undefined;
|
|
425
421
|
width?: number | null | undefined;
|
|
@@ -432,14 +428,14 @@ declare const CreateProductVariant: z.ZodObject<{
|
|
|
432
428
|
gtin?: string | null | undefined;
|
|
433
429
|
barcode?: string | null | undefined;
|
|
434
430
|
variant_rank?: number | undefined;
|
|
435
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
436
431
|
}, {
|
|
437
432
|
title: string;
|
|
433
|
+
options?: Record<string, string> | undefined;
|
|
438
434
|
length?: number | null | undefined;
|
|
435
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
439
436
|
sku?: string | null | undefined;
|
|
440
437
|
ean?: string | null | undefined;
|
|
441
438
|
upc?: string | null | undefined;
|
|
442
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
443
439
|
weight?: number | null | undefined;
|
|
444
440
|
height?: number | null | undefined;
|
|
445
441
|
width?: number | null | undefined;
|
|
@@ -452,7 +448,6 @@ declare const CreateProductVariant: z.ZodObject<{
|
|
|
452
448
|
gtin?: string | null | undefined;
|
|
453
449
|
barcode?: string | null | undefined;
|
|
454
450
|
variant_rank?: number | undefined;
|
|
455
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
456
451
|
}>;
|
|
457
452
|
declare const UpdateProductVariant: z.ZodObject<{
|
|
458
453
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -497,14 +492,15 @@ declare const UpdateProductVariant: z.ZodObject<{
|
|
|
497
492
|
max_quantity?: number | null | undefined;
|
|
498
493
|
rules?: Record<string, string> | undefined;
|
|
499
494
|
}>, "many">>;
|
|
500
|
-
|
|
495
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
501
496
|
}, "strict", z.ZodTypeAny, {
|
|
497
|
+
options?: Record<string, string> | undefined;
|
|
502
498
|
length?: number | null | undefined;
|
|
499
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
503
500
|
id?: string | undefined;
|
|
504
501
|
sku?: string | null | undefined;
|
|
505
502
|
ean?: string | null | undefined;
|
|
506
503
|
upc?: string | null | undefined;
|
|
507
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
508
504
|
title?: string | undefined;
|
|
509
505
|
prices?: {
|
|
510
506
|
id?: string | undefined;
|
|
@@ -527,14 +523,14 @@ declare const UpdateProductVariant: z.ZodObject<{
|
|
|
527
523
|
gtin?: string | null | undefined;
|
|
528
524
|
barcode?: string | null | undefined;
|
|
529
525
|
variant_rank?: number | undefined;
|
|
530
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
531
526
|
}, {
|
|
527
|
+
options?: Record<string, string> | undefined;
|
|
532
528
|
length?: number | null | undefined;
|
|
529
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
533
530
|
id?: string | undefined;
|
|
534
531
|
sku?: string | null | undefined;
|
|
535
532
|
ean?: string | null | undefined;
|
|
536
533
|
upc?: string | null | undefined;
|
|
537
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
538
534
|
title?: string | undefined;
|
|
539
535
|
prices?: {
|
|
540
536
|
id?: string | undefined;
|
|
@@ -557,12 +553,11 @@ declare const UpdateProductVariant: z.ZodObject<{
|
|
|
557
553
|
gtin?: string | null | undefined;
|
|
558
554
|
barcode?: string | null | undefined;
|
|
559
555
|
variant_rank?: number | undefined;
|
|
560
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
561
556
|
}>;
|
|
562
557
|
export type AdminGetProductVariantParamsType = z.infer<typeof AdminGetProductVariantParams>;
|
|
563
558
|
export declare const AdminGetProductVariantParams: z.ZodObject<{
|
|
564
559
|
fields: z.ZodOptional<z.ZodString>;
|
|
565
|
-
},
|
|
560
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
566
561
|
fields?: string | undefined;
|
|
567
562
|
}, {
|
|
568
563
|
fields?: string | undefined;
|
|
@@ -614,7 +609,7 @@ export declare const AdminGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
614
609
|
upc?: string | undefined;
|
|
615
610
|
barcode?: string | undefined;
|
|
616
611
|
}>, "many">>>;
|
|
617
|
-
},
|
|
612
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
618
613
|
[x: string]: any;
|
|
619
614
|
$and?: unknown;
|
|
620
615
|
$or?: unknown;
|
|
@@ -624,24 +619,16 @@ export declare const AdminGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
624
619
|
$or?: unknown;
|
|
625
620
|
}>;
|
|
626
621
|
export type AdminCreateProductVariantType = z.infer<typeof CreateProductVariant> & AdditionalData;
|
|
627
|
-
export declare const AdminCreateProductVariant: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any
|
|
628
|
-
[x: string]: any;
|
|
629
|
-
}, {
|
|
630
|
-
[x: string]: any;
|
|
631
|
-
}> | z.ZodEffects<any, any, any>;
|
|
622
|
+
export declare const AdminCreateProductVariant: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
632
623
|
export type AdminUpdateProductVariantType = z.infer<typeof UpdateProductVariant> & AdditionalData;
|
|
633
|
-
export declare const AdminUpdateProductVariant: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any
|
|
634
|
-
[x: string]: any;
|
|
635
|
-
}, {
|
|
636
|
-
[x: string]: any;
|
|
637
|
-
}> | z.ZodEffects<any, any, any>;
|
|
624
|
+
export declare const AdminUpdateProductVariant: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
638
625
|
export type AdminCreateProductType = z.infer<typeof CreateProduct> & AdditionalData;
|
|
639
626
|
declare const CreateProduct: z.ZodObject<{
|
|
640
627
|
title: z.ZodString;
|
|
641
628
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
642
629
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
643
|
-
is_giftcard:
|
|
644
|
-
discountable:
|
|
630
|
+
is_giftcard: any;
|
|
631
|
+
discountable: any;
|
|
645
632
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
646
633
|
url: z.ZodString;
|
|
647
634
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -651,12 +638,15 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
651
638
|
}>, "many">>;
|
|
652
639
|
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
653
640
|
handle: z.ZodOptional<z.ZodString>;
|
|
654
|
-
status: z.ZodOptional<z.ZodNativeEnum<
|
|
641
|
+
status: z.ZodOptional<z.ZodNativeEnum<{
|
|
642
|
+
readonly DRAFT: "draft";
|
|
643
|
+
readonly PROPOSED: "proposed";
|
|
644
|
+
readonly PUBLISHED: "published";
|
|
645
|
+
readonly REJECTED: "rejected";
|
|
646
|
+
}>>;
|
|
655
647
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
656
648
|
type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
657
649
|
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
650
|
seller_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
661
651
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
662
652
|
id: z.ZodString;
|
|
@@ -672,85 +662,58 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
672
662
|
}, {
|
|
673
663
|
id: string;
|
|
674
664
|
}>, "many">>;
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
679
|
-
}, "strip", z.ZodTypeAny, {
|
|
680
|
-
attribute_id: string;
|
|
681
|
-
values?: string[] | undefined;
|
|
682
|
-
value_ids?: string[] | undefined;
|
|
683
|
-
}, {
|
|
684
|
-
attribute_id: string;
|
|
685
|
-
values?: string[] | undefined;
|
|
686
|
-
value_ids?: string[] | undefined;
|
|
687
|
-
}>, z.ZodObject<{
|
|
688
|
-
name: z.ZodString;
|
|
689
|
-
type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
|
|
690
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
691
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
692
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
693
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
694
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
695
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
665
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
666
|
+
title: z.ZodString;
|
|
667
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
696
668
|
}, "strip", z.ZodTypeAny, {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
values?: string[] | undefined;
|
|
700
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
701
|
-
description?: string | null | undefined;
|
|
702
|
-
is_required?: boolean | undefined;
|
|
703
|
-
is_filterable?: boolean | undefined;
|
|
704
|
-
is_variant_axis?: boolean | undefined;
|
|
669
|
+
values: string[];
|
|
670
|
+
title: string;
|
|
705
671
|
}, {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
is_required?: boolean | undefined;
|
|
712
|
-
is_filterable?: boolean | undefined;
|
|
713
|
-
is_variant_axis?: boolean | undefined;
|
|
714
|
-
}>]>, "many">>;
|
|
715
|
-
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
716
|
-
attribute_id: z.ZodString;
|
|
672
|
+
values: string[];
|
|
673
|
+
title: string;
|
|
674
|
+
}>, "many">>;
|
|
675
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
676
|
+
id: z.ZodString;
|
|
717
677
|
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
718
|
-
|
|
719
|
-
}, "
|
|
720
|
-
|
|
721
|
-
|
|
678
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
679
|
+
}, "strict", z.ZodTypeAny, {
|
|
680
|
+
id: string;
|
|
681
|
+
value?: string | number | boolean | undefined;
|
|
722
682
|
value_ids?: string[] | undefined;
|
|
723
683
|
}, {
|
|
724
|
-
|
|
725
|
-
|
|
684
|
+
id: string;
|
|
685
|
+
value?: string | number | boolean | undefined;
|
|
726
686
|
value_ids?: string[] | undefined;
|
|
727
687
|
}>, z.ZodObject<{
|
|
728
|
-
|
|
729
|
-
type: z.ZodEnum<["single_select", "multi_select", "
|
|
688
|
+
title: z.ZodString;
|
|
689
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
730
690
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
691
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
731
692
|
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
732
693
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
733
694
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
734
695
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
735
696
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
736
|
-
}, "
|
|
737
|
-
|
|
738
|
-
name: string;
|
|
697
|
+
}, "strict", z.ZodTypeAny, {
|
|
698
|
+
title: string;
|
|
739
699
|
values?: string[] | undefined;
|
|
740
700
|
metadata?: Record<string, unknown> | null | undefined;
|
|
701
|
+
value?: string | number | boolean | undefined;
|
|
702
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
741
703
|
description?: string | null | undefined;
|
|
704
|
+
is_variant_axis?: boolean | undefined;
|
|
742
705
|
is_required?: boolean | undefined;
|
|
743
706
|
is_filterable?: boolean | undefined;
|
|
744
|
-
is_variant_axis?: boolean | undefined;
|
|
745
707
|
}, {
|
|
746
|
-
|
|
747
|
-
name: string;
|
|
708
|
+
title: string;
|
|
748
709
|
values?: string[] | undefined;
|
|
749
710
|
metadata?: Record<string, unknown> | null | undefined;
|
|
711
|
+
value?: string | number | boolean | undefined;
|
|
712
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
750
713
|
description?: string | null | undefined;
|
|
714
|
+
is_variant_axis?: boolean | undefined;
|
|
751
715
|
is_required?: boolean | undefined;
|
|
752
716
|
is_filterable?: boolean | undefined;
|
|
753
|
-
is_variant_axis?: boolean | undefined;
|
|
754
717
|
}>]>, "many">>;
|
|
755
718
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
756
719
|
title: z.ZodString;
|
|
@@ -771,14 +734,15 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
771
734
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
772
735
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
773
736
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
774
|
-
|
|
737
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
775
738
|
}, "strict", z.ZodTypeAny, {
|
|
776
739
|
title: string;
|
|
740
|
+
options?: Record<string, string> | undefined;
|
|
777
741
|
length?: number | null | undefined;
|
|
742
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
778
743
|
sku?: string | null | undefined;
|
|
779
744
|
ean?: string | null | undefined;
|
|
780
745
|
upc?: string | null | undefined;
|
|
781
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
782
746
|
weight?: number | null | undefined;
|
|
783
747
|
height?: number | null | undefined;
|
|
784
748
|
width?: number | null | undefined;
|
|
@@ -791,14 +755,14 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
791
755
|
gtin?: string | null | undefined;
|
|
792
756
|
barcode?: string | null | undefined;
|
|
793
757
|
variant_rank?: number | undefined;
|
|
794
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
795
758
|
}, {
|
|
796
759
|
title: string;
|
|
760
|
+
options?: Record<string, string> | undefined;
|
|
797
761
|
length?: number | null | undefined;
|
|
762
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
798
763
|
sku?: string | null | undefined;
|
|
799
764
|
ean?: string | null | undefined;
|
|
800
765
|
upc?: string | null | undefined;
|
|
801
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
802
766
|
weight?: number | null | undefined;
|
|
803
767
|
height?: number | null | undefined;
|
|
804
768
|
width?: number | null | undefined;
|
|
@@ -811,7 +775,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
811
775
|
gtin?: string | null | undefined;
|
|
812
776
|
barcode?: string | null | undefined;
|
|
813
777
|
variant_rank?: number | undefined;
|
|
814
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
815
778
|
}>, "many">>;
|
|
816
779
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
817
780
|
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -823,182 +786,72 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
823
786
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
824
787
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
825
788
|
}, "strict", z.ZodTypeAny, {
|
|
826
|
-
title: string;
|
|
827
|
-
is_giftcard: boolean;
|
|
828
|
-
discountable: boolean;
|
|
829
|
-
length?: number | null | undefined;
|
|
830
|
-
status?: ProductStatus | undefined;
|
|
831
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
832
|
-
handle?: string | undefined;
|
|
833
|
-
description?: string | null | undefined;
|
|
834
|
-
external_id?: string | null | undefined;
|
|
835
|
-
thumbnail?: string | null | undefined;
|
|
836
|
-
collection_id?: string | null | undefined;
|
|
837
|
-
type_id?: string | null | undefined;
|
|
838
|
-
subtitle?: string | null | undefined;
|
|
839
|
-
is_restricted?: boolean | undefined;
|
|
840
|
-
brand_id?: string | null | undefined;
|
|
841
|
-
weight?: number | null | undefined;
|
|
842
|
-
height?: number | null | undefined;
|
|
843
|
-
width?: number | null | undefined;
|
|
844
|
-
hs_code?: string | null | undefined;
|
|
845
|
-
origin_country?: string | null | undefined;
|
|
846
|
-
mid_code?: string | null | undefined;
|
|
847
|
-
material?: string | null | undefined;
|
|
848
|
-
images?: {
|
|
849
|
-
url: string;
|
|
850
|
-
}[] | undefined;
|
|
851
|
-
seller_ids?: string[] | undefined;
|
|
852
|
-
categories?: {
|
|
853
|
-
id: string;
|
|
854
|
-
}[] | undefined;
|
|
855
|
-
tags?: {
|
|
856
|
-
id: string;
|
|
857
|
-
}[] | undefined;
|
|
858
|
-
variant_attributes?: ({
|
|
859
|
-
attribute_id: string;
|
|
860
|
-
values?: string[] | undefined;
|
|
861
|
-
value_ids?: string[] | undefined;
|
|
862
|
-
} | {
|
|
863
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
864
|
-
name: string;
|
|
865
|
-
values?: string[] | undefined;
|
|
866
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
867
|
-
description?: string | null | undefined;
|
|
868
|
-
is_required?: boolean | undefined;
|
|
869
|
-
is_filterable?: boolean | undefined;
|
|
870
|
-
is_variant_axis?: boolean | undefined;
|
|
871
|
-
})[] | undefined;
|
|
872
|
-
product_attributes?: ({
|
|
873
|
-
attribute_id: string;
|
|
874
|
-
values?: string[] | undefined;
|
|
875
|
-
value_ids?: string[] | undefined;
|
|
876
|
-
} | {
|
|
877
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
878
|
-
name: string;
|
|
879
|
-
values?: string[] | undefined;
|
|
880
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
881
|
-
description?: string | null | undefined;
|
|
882
|
-
is_required?: boolean | undefined;
|
|
883
|
-
is_filterable?: boolean | undefined;
|
|
884
|
-
is_variant_axis?: boolean | undefined;
|
|
885
|
-
})[] | undefined;
|
|
886
|
-
variants?: {
|
|
887
|
-
title: string;
|
|
888
|
-
length?: number | null | undefined;
|
|
889
|
-
sku?: string | null | undefined;
|
|
890
|
-
ean?: string | null | undefined;
|
|
891
|
-
upc?: string | null | undefined;
|
|
892
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
893
|
-
weight?: number | null | undefined;
|
|
894
|
-
height?: number | null | undefined;
|
|
895
|
-
width?: number | null | undefined;
|
|
896
|
-
hs_code?: string | null | undefined;
|
|
897
|
-
origin_country?: string | null | undefined;
|
|
898
|
-
mid_code?: string | null | undefined;
|
|
899
|
-
material?: string | null | undefined;
|
|
900
|
-
isbn?: string | null | undefined;
|
|
901
|
-
asin?: string | null | undefined;
|
|
902
|
-
gtin?: string | null | undefined;
|
|
903
|
-
barcode?: string | null | undefined;
|
|
904
|
-
variant_rank?: number | undefined;
|
|
905
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
906
|
-
}[] | undefined;
|
|
907
|
-
}, {
|
|
908
|
-
title: string;
|
|
909
|
-
length?: number | null | undefined;
|
|
910
|
-
status?: ProductStatus | undefined;
|
|
911
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
912
|
-
handle?: string | undefined;
|
|
913
|
-
description?: string | null | undefined;
|
|
914
|
-
external_id?: string | null | undefined;
|
|
915
|
-
thumbnail?: string | null | undefined;
|
|
916
|
-
collection_id?: string | null | undefined;
|
|
917
|
-
type_id?: string | null | undefined;
|
|
918
|
-
subtitle?: string | null | undefined;
|
|
919
|
-
is_restricted?: boolean | undefined;
|
|
920
|
-
is_giftcard?: string | boolean | undefined;
|
|
921
|
-
discountable?: string | boolean | undefined;
|
|
922
|
-
brand_id?: string | null | undefined;
|
|
923
|
-
weight?: number | null | undefined;
|
|
924
|
-
height?: number | null | undefined;
|
|
925
|
-
width?: number | null | undefined;
|
|
926
|
-
hs_code?: string | null | undefined;
|
|
927
|
-
origin_country?: string | null | undefined;
|
|
928
|
-
mid_code?: string | null | undefined;
|
|
929
|
-
material?: string | null | undefined;
|
|
930
|
-
images?: {
|
|
931
|
-
url: string;
|
|
932
|
-
}[] | undefined;
|
|
933
|
-
seller_ids?: string[] | undefined;
|
|
934
|
-
categories?: {
|
|
935
|
-
id: string;
|
|
936
|
-
}[] | undefined;
|
|
937
|
-
tags?: {
|
|
938
|
-
id: string;
|
|
939
|
-
}[] | undefined;
|
|
940
|
-
variant_attributes?: ({
|
|
941
|
-
attribute_id: string;
|
|
942
|
-
values?: string[] | undefined;
|
|
943
|
-
value_ids?: string[] | undefined;
|
|
944
|
-
} | {
|
|
945
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
946
|
-
name: string;
|
|
947
|
-
values?: string[] | undefined;
|
|
948
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
949
|
-
description?: string | null | undefined;
|
|
950
|
-
is_required?: boolean | undefined;
|
|
951
|
-
is_filterable?: boolean | undefined;
|
|
952
|
-
is_variant_axis?: boolean | undefined;
|
|
953
|
-
})[] | undefined;
|
|
954
|
-
product_attributes?: ({
|
|
955
|
-
attribute_id: string;
|
|
956
|
-
values?: string[] | undefined;
|
|
957
|
-
value_ids?: string[] | undefined;
|
|
958
|
-
} | {
|
|
959
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
960
|
-
name: string;
|
|
961
|
-
values?: string[] | undefined;
|
|
962
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
963
|
-
description?: string | null | undefined;
|
|
964
|
-
is_required?: boolean | undefined;
|
|
965
|
-
is_filterable?: boolean | undefined;
|
|
966
|
-
is_variant_axis?: boolean | undefined;
|
|
967
|
-
})[] | undefined;
|
|
968
|
-
variants?: {
|
|
969
|
-
title: string;
|
|
970
|
-
length?: number | null | undefined;
|
|
971
|
-
sku?: string | null | undefined;
|
|
972
|
-
ean?: string | null | undefined;
|
|
973
|
-
upc?: string | null | undefined;
|
|
974
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
975
|
-
weight?: number | null | undefined;
|
|
976
|
-
height?: number | null | undefined;
|
|
977
|
-
width?: number | null | undefined;
|
|
978
|
-
hs_code?: string | null | undefined;
|
|
979
|
-
origin_country?: string | null | undefined;
|
|
980
|
-
mid_code?: string | null | undefined;
|
|
981
|
-
material?: string | null | undefined;
|
|
982
|
-
isbn?: string | null | undefined;
|
|
983
|
-
asin?: string | null | undefined;
|
|
984
|
-
gtin?: string | null | undefined;
|
|
985
|
-
barcode?: string | null | undefined;
|
|
986
|
-
variant_rank?: number | undefined;
|
|
987
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
988
|
-
}[] | undefined;
|
|
989
|
-
}>;
|
|
990
|
-
export declare const AdminCreateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
991
789
|
[x: string]: any;
|
|
790
|
+
title?: unknown;
|
|
791
|
+
subtitle?: unknown;
|
|
792
|
+
description?: unknown;
|
|
793
|
+
is_giftcard?: unknown;
|
|
794
|
+
discountable?: unknown;
|
|
795
|
+
images?: unknown;
|
|
796
|
+
thumbnail?: unknown;
|
|
797
|
+
handle?: unknown;
|
|
798
|
+
status?: unknown;
|
|
799
|
+
external_id?: unknown;
|
|
800
|
+
type_id?: unknown;
|
|
801
|
+
collection_id?: unknown;
|
|
802
|
+
seller_ids?: unknown;
|
|
803
|
+
categories?: unknown;
|
|
804
|
+
tags?: unknown;
|
|
805
|
+
options?: unknown;
|
|
806
|
+
attributes?: unknown;
|
|
807
|
+
variants?: unknown;
|
|
808
|
+
weight?: unknown;
|
|
809
|
+
length?: unknown;
|
|
810
|
+
height?: unknown;
|
|
811
|
+
width?: unknown;
|
|
812
|
+
hs_code?: unknown;
|
|
813
|
+
mid_code?: unknown;
|
|
814
|
+
origin_country?: unknown;
|
|
815
|
+
material?: unknown;
|
|
816
|
+
metadata?: unknown;
|
|
992
817
|
}, {
|
|
993
818
|
[x: string]: any;
|
|
994
|
-
|
|
819
|
+
title?: unknown;
|
|
820
|
+
subtitle?: unknown;
|
|
821
|
+
description?: unknown;
|
|
822
|
+
is_giftcard?: unknown;
|
|
823
|
+
discountable?: unknown;
|
|
824
|
+
images?: unknown;
|
|
825
|
+
thumbnail?: unknown;
|
|
826
|
+
handle?: unknown;
|
|
827
|
+
status?: unknown;
|
|
828
|
+
external_id?: unknown;
|
|
829
|
+
type_id?: unknown;
|
|
830
|
+
collection_id?: unknown;
|
|
831
|
+
seller_ids?: unknown;
|
|
832
|
+
categories?: unknown;
|
|
833
|
+
tags?: unknown;
|
|
834
|
+
options?: unknown;
|
|
835
|
+
attributes?: unknown;
|
|
836
|
+
variants?: unknown;
|
|
837
|
+
weight?: unknown;
|
|
838
|
+
length?: unknown;
|
|
839
|
+
height?: unknown;
|
|
840
|
+
width?: unknown;
|
|
841
|
+
hs_code?: unknown;
|
|
842
|
+
mid_code?: unknown;
|
|
843
|
+
origin_country?: unknown;
|
|
844
|
+
material?: unknown;
|
|
845
|
+
metadata?: unknown;
|
|
846
|
+
}>;
|
|
847
|
+
export declare const AdminCreateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
995
848
|
export type AdminUpdateProductType = z.infer<typeof UpdateProduct> & AdditionalData;
|
|
996
849
|
export declare const UpdateProduct: z.ZodObject<{
|
|
997
850
|
title: z.ZodOptional<z.ZodString>;
|
|
998
851
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
999
852
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1000
|
-
discountable:
|
|
1001
|
-
is_giftcard:
|
|
853
|
+
discountable: any;
|
|
854
|
+
is_giftcard: any;
|
|
1002
855
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1003
856
|
id: z.ZodOptional<z.ZodString>;
|
|
1004
857
|
url: z.ZodString;
|
|
@@ -1011,12 +864,15 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1011
864
|
}>, "many">>;
|
|
1012
865
|
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1013
866
|
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1014
|
-
status: z.ZodOptional<z.ZodNativeEnum<
|
|
867
|
+
status: z.ZodOptional<z.ZodNativeEnum<{
|
|
868
|
+
readonly DRAFT: "draft";
|
|
869
|
+
readonly PROPOSED: "proposed";
|
|
870
|
+
readonly PUBLISHED: "published";
|
|
871
|
+
readonly REJECTED: "rejected";
|
|
872
|
+
}>>;
|
|
1015
873
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1016
874
|
type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1017
875
|
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
876
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1021
877
|
id: z.ZodString;
|
|
1022
878
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1031,86 +887,16 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1031
887
|
}, {
|
|
1032
888
|
id: string;
|
|
1033
889
|
}>, "many">>;
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1038
|
-
}, "strip", z.ZodTypeAny, {
|
|
1039
|
-
attribute_id: string;
|
|
1040
|
-
values?: string[] | undefined;
|
|
1041
|
-
value_ids?: string[] | undefined;
|
|
1042
|
-
}, {
|
|
1043
|
-
attribute_id: string;
|
|
1044
|
-
values?: string[] | undefined;
|
|
1045
|
-
value_ids?: string[] | undefined;
|
|
1046
|
-
}>, z.ZodObject<{
|
|
1047
|
-
name: z.ZodString;
|
|
1048
|
-
type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
|
|
1049
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1050
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1051
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1052
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1053
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1054
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
890
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
891
|
+
title: z.ZodString;
|
|
892
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
1055
893
|
}, "strip", z.ZodTypeAny, {
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
values?: string[] | undefined;
|
|
1059
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1060
|
-
description?: string | null | undefined;
|
|
1061
|
-
is_required?: boolean | undefined;
|
|
1062
|
-
is_filterable?: boolean | undefined;
|
|
1063
|
-
is_variant_axis?: boolean | undefined;
|
|
894
|
+
values: string[];
|
|
895
|
+
title: string;
|
|
1064
896
|
}, {
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1069
|
-
description?: string | null | undefined;
|
|
1070
|
-
is_required?: boolean | undefined;
|
|
1071
|
-
is_filterable?: boolean | undefined;
|
|
1072
|
-
is_variant_axis?: boolean | undefined;
|
|
1073
|
-
}>]>, "many">>;
|
|
1074
|
-
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1075
|
-
attribute_id: z.ZodString;
|
|
1076
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1077
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1078
|
-
}, "strip", z.ZodTypeAny, {
|
|
1079
|
-
attribute_id: string;
|
|
1080
|
-
values?: string[] | undefined;
|
|
1081
|
-
value_ids?: string[] | undefined;
|
|
1082
|
-
}, {
|
|
1083
|
-
attribute_id: string;
|
|
1084
|
-
values?: string[] | undefined;
|
|
1085
|
-
value_ids?: string[] | undefined;
|
|
1086
|
-
}>, z.ZodObject<{
|
|
1087
|
-
name: z.ZodString;
|
|
1088
|
-
type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
|
|
1089
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1090
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1091
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1092
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1093
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1094
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1095
|
-
}, "strip", z.ZodTypeAny, {
|
|
1096
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
1097
|
-
name: string;
|
|
1098
|
-
values?: string[] | undefined;
|
|
1099
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1100
|
-
description?: string | null | undefined;
|
|
1101
|
-
is_required?: boolean | undefined;
|
|
1102
|
-
is_filterable?: boolean | undefined;
|
|
1103
|
-
is_variant_axis?: boolean | undefined;
|
|
1104
|
-
}, {
|
|
1105
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
1106
|
-
name: string;
|
|
1107
|
-
values?: string[] | undefined;
|
|
1108
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1109
|
-
description?: string | null | undefined;
|
|
1110
|
-
is_required?: boolean | undefined;
|
|
1111
|
-
is_filterable?: boolean | undefined;
|
|
1112
|
-
is_variant_axis?: boolean | undefined;
|
|
1113
|
-
}>]>, "many">>;
|
|
897
|
+
values: string[];
|
|
898
|
+
title: string;
|
|
899
|
+
}>, "many">>;
|
|
1114
900
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1115
901
|
id: z.ZodOptional<z.ZodString>;
|
|
1116
902
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1154,14 +940,15 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1154
940
|
max_quantity?: number | null | undefined;
|
|
1155
941
|
rules?: Record<string, string> | undefined;
|
|
1156
942
|
}>, "many">>;
|
|
1157
|
-
|
|
943
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1158
944
|
}, "strict", z.ZodTypeAny, {
|
|
945
|
+
options?: Record<string, string> | undefined;
|
|
1159
946
|
length?: number | null | undefined;
|
|
947
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1160
948
|
id?: string | undefined;
|
|
1161
949
|
sku?: string | null | undefined;
|
|
1162
950
|
ean?: string | null | undefined;
|
|
1163
951
|
upc?: string | null | undefined;
|
|
1164
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1165
952
|
title?: string | undefined;
|
|
1166
953
|
prices?: {
|
|
1167
954
|
id?: string | undefined;
|
|
@@ -1184,14 +971,14 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1184
971
|
gtin?: string | null | undefined;
|
|
1185
972
|
barcode?: string | null | undefined;
|
|
1186
973
|
variant_rank?: number | undefined;
|
|
1187
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1188
974
|
}, {
|
|
975
|
+
options?: Record<string, string> | undefined;
|
|
1189
976
|
length?: number | null | undefined;
|
|
977
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1190
978
|
id?: string | undefined;
|
|
1191
979
|
sku?: string | null | undefined;
|
|
1192
980
|
ean?: string | null | undefined;
|
|
1193
981
|
upc?: string | null | undefined;
|
|
1194
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1195
982
|
title?: string | undefined;
|
|
1196
983
|
prices?: {
|
|
1197
984
|
id?: string | undefined;
|
|
@@ -1214,7 +1001,6 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1214
1001
|
gtin?: string | null | undefined;
|
|
1215
1002
|
barcode?: string | null | undefined;
|
|
1216
1003
|
variant_rank?: number | undefined;
|
|
1217
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1218
1004
|
}>, "many">>;
|
|
1219
1005
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1220
1006
|
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1226,73 +1012,200 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1226
1012
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1227
1013
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1228
1014
|
}, "strict", z.ZodTypeAny, {
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
thumbnail?:
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1015
|
+
[x: string]: any;
|
|
1016
|
+
title?: unknown;
|
|
1017
|
+
subtitle?: unknown;
|
|
1018
|
+
description?: unknown;
|
|
1019
|
+
discountable?: unknown;
|
|
1020
|
+
is_giftcard?: unknown;
|
|
1021
|
+
images?: unknown;
|
|
1022
|
+
thumbnail?: unknown;
|
|
1023
|
+
handle?: unknown;
|
|
1024
|
+
status?: unknown;
|
|
1025
|
+
external_id?: unknown;
|
|
1026
|
+
type_id?: unknown;
|
|
1027
|
+
collection_id?: unknown;
|
|
1028
|
+
categories?: unknown;
|
|
1029
|
+
tags?: unknown;
|
|
1030
|
+
options?: unknown;
|
|
1031
|
+
variants?: unknown;
|
|
1032
|
+
weight?: unknown;
|
|
1033
|
+
length?: unknown;
|
|
1034
|
+
height?: unknown;
|
|
1035
|
+
width?: unknown;
|
|
1036
|
+
hs_code?: unknown;
|
|
1037
|
+
mid_code?: unknown;
|
|
1038
|
+
origin_country?: unknown;
|
|
1039
|
+
material?: unknown;
|
|
1040
|
+
metadata?: unknown;
|
|
1041
|
+
}, {
|
|
1042
|
+
[x: string]: any;
|
|
1043
|
+
title?: unknown;
|
|
1044
|
+
subtitle?: unknown;
|
|
1045
|
+
description?: unknown;
|
|
1046
|
+
discountable?: unknown;
|
|
1047
|
+
is_giftcard?: unknown;
|
|
1048
|
+
images?: unknown;
|
|
1049
|
+
thumbnail?: unknown;
|
|
1050
|
+
handle?: unknown;
|
|
1051
|
+
status?: unknown;
|
|
1052
|
+
external_id?: unknown;
|
|
1053
|
+
type_id?: unknown;
|
|
1054
|
+
collection_id?: unknown;
|
|
1055
|
+
categories?: unknown;
|
|
1056
|
+
tags?: unknown;
|
|
1057
|
+
options?: unknown;
|
|
1058
|
+
variants?: unknown;
|
|
1059
|
+
weight?: unknown;
|
|
1060
|
+
length?: unknown;
|
|
1061
|
+
height?: unknown;
|
|
1062
|
+
width?: unknown;
|
|
1063
|
+
hs_code?: unknown;
|
|
1064
|
+
mid_code?: unknown;
|
|
1065
|
+
origin_country?: unknown;
|
|
1066
|
+
material?: unknown;
|
|
1067
|
+
metadata?: unknown;
|
|
1068
|
+
}>;
|
|
1069
|
+
export declare const AdminUpdateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
1070
|
+
export type AdminConfirmProductType = z.infer<typeof AdminConfirmProduct>;
|
|
1071
|
+
export declare const AdminConfirmProduct: z.ZodObject<{
|
|
1072
|
+
internal_note: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
}, "strict", z.ZodTypeAny, {
|
|
1074
|
+
internal_note?: string | undefined;
|
|
1075
|
+
}, {
|
|
1076
|
+
internal_note?: string | undefined;
|
|
1077
|
+
}>;
|
|
1078
|
+
export type AdminRejectProductType = z.infer<typeof AdminRejectProduct>;
|
|
1079
|
+
export declare const AdminRejectProduct: z.ZodObject<{
|
|
1080
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
}, "strip", z.ZodTypeAny, {
|
|
1082
|
+
message?: string | undefined;
|
|
1083
|
+
}, {
|
|
1084
|
+
message?: string | undefined;
|
|
1085
|
+
}>;
|
|
1086
|
+
export type AdminRequestProductChangesType = z.infer<typeof AdminRequestProductChanges>;
|
|
1087
|
+
export declare const AdminRequestProductChanges: z.ZodObject<{
|
|
1088
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1089
|
+
}, "strip", z.ZodTypeAny, {
|
|
1090
|
+
message?: string | undefined;
|
|
1091
|
+
}, {
|
|
1092
|
+
message?: string | undefined;
|
|
1093
|
+
}>;
|
|
1094
|
+
declare const BatchProductVariants: z.ZodObject<{
|
|
1095
|
+
create: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1096
|
+
title: z.ZodString;
|
|
1097
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1098
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1099
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1100
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1101
|
+
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1102
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1103
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1104
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1105
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1106
|
+
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1107
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1108
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1109
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1110
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1111
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1112
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1113
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1114
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1115
|
+
}, "strict", z.ZodTypeAny, {
|
|
1116
|
+
title: string;
|
|
1117
|
+
options?: Record<string, string> | undefined;
|
|
1118
|
+
length?: number | null | undefined;
|
|
1283
1119
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1120
|
+
sku?: string | null | undefined;
|
|
1121
|
+
ean?: string | null | undefined;
|
|
1122
|
+
upc?: string | null | undefined;
|
|
1123
|
+
weight?: number | null | undefined;
|
|
1124
|
+
height?: number | null | undefined;
|
|
1125
|
+
width?: number | null | undefined;
|
|
1126
|
+
hs_code?: string | null | undefined;
|
|
1127
|
+
origin_country?: string | null | undefined;
|
|
1128
|
+
mid_code?: string | null | undefined;
|
|
1129
|
+
material?: string | null | undefined;
|
|
1130
|
+
isbn?: string | null | undefined;
|
|
1131
|
+
asin?: string | null | undefined;
|
|
1132
|
+
gtin?: string | null | undefined;
|
|
1133
|
+
barcode?: string | null | undefined;
|
|
1134
|
+
variant_rank?: number | undefined;
|
|
1135
|
+
}, {
|
|
1136
|
+
title: string;
|
|
1137
|
+
options?: Record<string, string> | undefined;
|
|
1290
1138
|
length?: number | null | undefined;
|
|
1291
|
-
|
|
1139
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1292
1140
|
sku?: string | null | undefined;
|
|
1293
1141
|
ean?: string | null | undefined;
|
|
1294
1142
|
upc?: string | null | undefined;
|
|
1143
|
+
weight?: number | null | undefined;
|
|
1144
|
+
height?: number | null | undefined;
|
|
1145
|
+
width?: number | null | undefined;
|
|
1146
|
+
hs_code?: string | null | undefined;
|
|
1147
|
+
origin_country?: string | null | undefined;
|
|
1148
|
+
mid_code?: string | null | undefined;
|
|
1149
|
+
material?: string | null | undefined;
|
|
1150
|
+
isbn?: string | null | undefined;
|
|
1151
|
+
asin?: string | null | undefined;
|
|
1152
|
+
gtin?: string | null | undefined;
|
|
1153
|
+
barcode?: string | null | undefined;
|
|
1154
|
+
variant_rank?: number | undefined;
|
|
1155
|
+
}>, "many">>;
|
|
1156
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1157
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1158
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1159
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1160
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1162
|
+
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1163
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1164
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1165
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1166
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1167
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1168
|
+
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1169
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1170
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1171
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1172
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1173
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1174
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1175
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1176
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1177
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
currency_code: z.ZodOptional<z.ZodString>;
|
|
1179
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1180
|
+
min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1181
|
+
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1182
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1183
|
+
}, "strip", z.ZodTypeAny, {
|
|
1184
|
+
id?: string | undefined;
|
|
1185
|
+
amount?: number | undefined;
|
|
1186
|
+
currency_code?: string | undefined;
|
|
1187
|
+
min_quantity?: number | null | undefined;
|
|
1188
|
+
max_quantity?: number | null | undefined;
|
|
1189
|
+
rules?: Record<string, string> | undefined;
|
|
1190
|
+
}, {
|
|
1191
|
+
id?: string | undefined;
|
|
1192
|
+
amount?: number | undefined;
|
|
1193
|
+
currency_code?: string | undefined;
|
|
1194
|
+
min_quantity?: number | null | undefined;
|
|
1195
|
+
max_quantity?: number | null | undefined;
|
|
1196
|
+
rules?: Record<string, string> | undefined;
|
|
1197
|
+
}>, "many">>;
|
|
1198
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1199
|
+
} & {
|
|
1200
|
+
id: z.ZodString;
|
|
1201
|
+
}, "strict", z.ZodTypeAny, {
|
|
1202
|
+
id: string;
|
|
1203
|
+
options?: Record<string, string> | undefined;
|
|
1204
|
+
length?: number | null | undefined;
|
|
1295
1205
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1206
|
+
sku?: string | null | undefined;
|
|
1207
|
+
ean?: string | null | undefined;
|
|
1208
|
+
upc?: string | null | undefined;
|
|
1296
1209
|
title?: string | undefined;
|
|
1297
1210
|
prices?: {
|
|
1298
1211
|
id?: string | undefined;
|
|
@@ -1315,76 +1228,14 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1315
1228
|
gtin?: string | null | undefined;
|
|
1316
1229
|
barcode?: string | null | undefined;
|
|
1317
1230
|
variant_rank?: number | undefined;
|
|
1318
|
-
|
|
1319
|
-
}[] | undefined;
|
|
1320
|
-
}, {
|
|
1321
|
-
length?: number | null | undefined;
|
|
1322
|
-
status?: ProductStatus | undefined;
|
|
1323
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1324
|
-
title?: string | undefined;
|
|
1325
|
-
handle?: string | null | undefined;
|
|
1326
|
-
description?: string | null | undefined;
|
|
1327
|
-
external_id?: string | null | undefined;
|
|
1328
|
-
thumbnail?: string | null | undefined;
|
|
1329
|
-
collection_id?: string | null | undefined;
|
|
1330
|
-
type_id?: string | null | undefined;
|
|
1331
|
-
subtitle?: string | null | undefined;
|
|
1332
|
-
is_restricted?: boolean | undefined;
|
|
1333
|
-
is_giftcard?: string | boolean | undefined;
|
|
1334
|
-
discountable?: string | boolean | undefined;
|
|
1335
|
-
brand_id?: string | null | undefined;
|
|
1336
|
-
weight?: number | null | undefined;
|
|
1337
|
-
height?: number | null | undefined;
|
|
1338
|
-
width?: number | null | undefined;
|
|
1339
|
-
hs_code?: string | null | undefined;
|
|
1340
|
-
origin_country?: string | null | undefined;
|
|
1341
|
-
mid_code?: string | null | undefined;
|
|
1342
|
-
material?: string | null | undefined;
|
|
1343
|
-
images?: {
|
|
1344
|
-
url: string;
|
|
1345
|
-
id?: string | undefined;
|
|
1346
|
-
}[] | undefined;
|
|
1347
|
-
categories?: {
|
|
1348
|
-
id: string;
|
|
1349
|
-
}[] | undefined;
|
|
1350
|
-
tags?: {
|
|
1231
|
+
}, {
|
|
1351
1232
|
id: string;
|
|
1352
|
-
|
|
1353
|
-
variant_attributes?: ({
|
|
1354
|
-
attribute_id: string;
|
|
1355
|
-
values?: string[] | undefined;
|
|
1356
|
-
value_ids?: string[] | undefined;
|
|
1357
|
-
} | {
|
|
1358
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
1359
|
-
name: string;
|
|
1360
|
-
values?: string[] | undefined;
|
|
1361
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1362
|
-
description?: string | null | undefined;
|
|
1363
|
-
is_required?: boolean | undefined;
|
|
1364
|
-
is_filterable?: boolean | undefined;
|
|
1365
|
-
is_variant_axis?: boolean | undefined;
|
|
1366
|
-
})[] | undefined;
|
|
1367
|
-
product_attributes?: ({
|
|
1368
|
-
attribute_id: string;
|
|
1369
|
-
values?: string[] | undefined;
|
|
1370
|
-
value_ids?: string[] | undefined;
|
|
1371
|
-
} | {
|
|
1372
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
1373
|
-
name: string;
|
|
1374
|
-
values?: string[] | undefined;
|
|
1375
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1376
|
-
description?: string | null | undefined;
|
|
1377
|
-
is_required?: boolean | undefined;
|
|
1378
|
-
is_filterable?: boolean | undefined;
|
|
1379
|
-
is_variant_axis?: boolean | undefined;
|
|
1380
|
-
})[] | undefined;
|
|
1381
|
-
variants?: {
|
|
1233
|
+
options?: Record<string, string> | undefined;
|
|
1382
1234
|
length?: number | null | undefined;
|
|
1383
|
-
|
|
1235
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1384
1236
|
sku?: string | null | undefined;
|
|
1385
1237
|
ean?: string | null | undefined;
|
|
1386
1238
|
upc?: string | null | undefined;
|
|
1387
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1388
1239
|
title?: string | undefined;
|
|
1389
1240
|
prices?: {
|
|
1390
1241
|
id?: string | undefined;
|
|
@@ -1407,290 +1258,243 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1407
1258
|
gtin?: string | null | undefined;
|
|
1408
1259
|
barcode?: string | null | undefined;
|
|
1409
1260
|
variant_rank?: number | undefined;
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
}>;
|
|
1413
|
-
export declare const AdminUpdateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
1414
|
-
[x: string]: any;
|
|
1415
|
-
}, {
|
|
1416
|
-
[x: string]: any;
|
|
1417
|
-
}> | z.ZodEffects<any, any, any>;
|
|
1418
|
-
export type AdminConfirmProductType = z.infer<typeof AdminConfirmProduct>;
|
|
1419
|
-
export declare const AdminConfirmProduct: z.ZodObject<{
|
|
1420
|
-
internal_note: z.ZodOptional<z.ZodString>;
|
|
1421
|
-
}, "strict", z.ZodTypeAny, {
|
|
1422
|
-
internal_note?: string | undefined;
|
|
1423
|
-
}, {
|
|
1424
|
-
internal_note?: string | undefined;
|
|
1425
|
-
}>;
|
|
1426
|
-
export type AdminRejectProductType = z.infer<typeof AdminRejectProduct>;
|
|
1427
|
-
export declare const AdminRejectProduct: z.ZodObject<{
|
|
1428
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1429
|
-
}, "strip", z.ZodTypeAny, {
|
|
1430
|
-
message?: string | undefined;
|
|
1431
|
-
}, {
|
|
1432
|
-
message?: string | undefined;
|
|
1433
|
-
}>;
|
|
1434
|
-
export type AdminRequestProductChangesType = z.infer<typeof AdminRequestProductChanges>;
|
|
1435
|
-
export declare const AdminRequestProductChanges: z.ZodObject<{
|
|
1436
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1261
|
+
}>, "many">>;
|
|
1262
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1437
1263
|
}, "strip", z.ZodTypeAny, {
|
|
1438
|
-
|
|
1264
|
+
create?: {
|
|
1265
|
+
title: string;
|
|
1266
|
+
options?: Record<string, string> | undefined;
|
|
1267
|
+
length?: number | null | undefined;
|
|
1268
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1269
|
+
sku?: string | null | undefined;
|
|
1270
|
+
ean?: string | null | undefined;
|
|
1271
|
+
upc?: string | null | undefined;
|
|
1272
|
+
weight?: number | null | undefined;
|
|
1273
|
+
height?: number | null | undefined;
|
|
1274
|
+
width?: number | null | undefined;
|
|
1275
|
+
hs_code?: string | null | undefined;
|
|
1276
|
+
origin_country?: string | null | undefined;
|
|
1277
|
+
mid_code?: string | null | undefined;
|
|
1278
|
+
material?: string | null | undefined;
|
|
1279
|
+
isbn?: string | null | undefined;
|
|
1280
|
+
asin?: string | null | undefined;
|
|
1281
|
+
gtin?: string | null | undefined;
|
|
1282
|
+
barcode?: string | null | undefined;
|
|
1283
|
+
variant_rank?: number | undefined;
|
|
1284
|
+
}[] | undefined;
|
|
1285
|
+
update?: {
|
|
1286
|
+
id: string;
|
|
1287
|
+
options?: Record<string, string> | undefined;
|
|
1288
|
+
length?: number | null | undefined;
|
|
1289
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1290
|
+
sku?: string | null | undefined;
|
|
1291
|
+
ean?: string | null | undefined;
|
|
1292
|
+
upc?: string | null | undefined;
|
|
1293
|
+
title?: string | undefined;
|
|
1294
|
+
prices?: {
|
|
1295
|
+
id?: string | undefined;
|
|
1296
|
+
amount?: number | undefined;
|
|
1297
|
+
currency_code?: string | undefined;
|
|
1298
|
+
min_quantity?: number | null | undefined;
|
|
1299
|
+
max_quantity?: number | null | undefined;
|
|
1300
|
+
rules?: Record<string, string> | undefined;
|
|
1301
|
+
}[] | undefined;
|
|
1302
|
+
thumbnail?: string | null | undefined;
|
|
1303
|
+
weight?: number | null | undefined;
|
|
1304
|
+
height?: number | null | undefined;
|
|
1305
|
+
width?: number | null | undefined;
|
|
1306
|
+
hs_code?: string | null | undefined;
|
|
1307
|
+
origin_country?: string | null | undefined;
|
|
1308
|
+
mid_code?: string | null | undefined;
|
|
1309
|
+
material?: string | null | undefined;
|
|
1310
|
+
isbn?: string | null | undefined;
|
|
1311
|
+
asin?: string | null | undefined;
|
|
1312
|
+
gtin?: string | null | undefined;
|
|
1313
|
+
barcode?: string | null | undefined;
|
|
1314
|
+
variant_rank?: number | undefined;
|
|
1315
|
+
}[] | undefined;
|
|
1316
|
+
delete?: string[] | undefined;
|
|
1439
1317
|
}, {
|
|
1440
|
-
|
|
1318
|
+
create?: {
|
|
1319
|
+
title: string;
|
|
1320
|
+
options?: Record<string, string> | undefined;
|
|
1321
|
+
length?: number | null | undefined;
|
|
1322
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1323
|
+
sku?: string | null | undefined;
|
|
1324
|
+
ean?: string | null | undefined;
|
|
1325
|
+
upc?: string | null | undefined;
|
|
1326
|
+
weight?: number | null | undefined;
|
|
1327
|
+
height?: number | null | undefined;
|
|
1328
|
+
width?: number | null | undefined;
|
|
1329
|
+
hs_code?: string | null | undefined;
|
|
1330
|
+
origin_country?: string | null | undefined;
|
|
1331
|
+
mid_code?: string | null | undefined;
|
|
1332
|
+
material?: string | null | undefined;
|
|
1333
|
+
isbn?: string | null | undefined;
|
|
1334
|
+
asin?: string | null | undefined;
|
|
1335
|
+
gtin?: string | null | undefined;
|
|
1336
|
+
barcode?: string | null | undefined;
|
|
1337
|
+
variant_rank?: number | undefined;
|
|
1338
|
+
}[] | undefined;
|
|
1339
|
+
update?: {
|
|
1340
|
+
id: string;
|
|
1341
|
+
options?: Record<string, string> | undefined;
|
|
1342
|
+
length?: number | null | undefined;
|
|
1343
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1344
|
+
sku?: string | null | undefined;
|
|
1345
|
+
ean?: string | null | undefined;
|
|
1346
|
+
upc?: string | null | undefined;
|
|
1347
|
+
title?: string | undefined;
|
|
1348
|
+
prices?: {
|
|
1349
|
+
id?: string | undefined;
|
|
1350
|
+
amount?: number | undefined;
|
|
1351
|
+
currency_code?: string | undefined;
|
|
1352
|
+
min_quantity?: number | null | undefined;
|
|
1353
|
+
max_quantity?: number | null | undefined;
|
|
1354
|
+
rules?: Record<string, string> | undefined;
|
|
1355
|
+
}[] | undefined;
|
|
1356
|
+
thumbnail?: string | null | undefined;
|
|
1357
|
+
weight?: number | null | undefined;
|
|
1358
|
+
height?: number | null | undefined;
|
|
1359
|
+
width?: number | null | undefined;
|
|
1360
|
+
hs_code?: string | null | undefined;
|
|
1361
|
+
origin_country?: string | null | undefined;
|
|
1362
|
+
mid_code?: string | null | undefined;
|
|
1363
|
+
material?: string | null | undefined;
|
|
1364
|
+
isbn?: string | null | undefined;
|
|
1365
|
+
asin?: string | null | undefined;
|
|
1366
|
+
gtin?: string | null | undefined;
|
|
1367
|
+
barcode?: string | null | undefined;
|
|
1368
|
+
variant_rank?: number | undefined;
|
|
1369
|
+
}[] | undefined;
|
|
1370
|
+
delete?: string[] | undefined;
|
|
1441
1371
|
}>;
|
|
1442
|
-
|
|
1372
|
+
export type AdminBatchProductVariantsType = z.infer<typeof BatchProductVariants>;
|
|
1373
|
+
export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
1374
|
+
create: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1375
|
+
title: z.ZodString;
|
|
1376
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1377
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1378
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1379
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1380
|
+
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1381
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1382
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1383
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1384
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1385
|
+
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1386
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1387
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1388
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1389
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1390
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1391
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1392
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1393
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1394
|
+
}, "strict", z.ZodTypeAny, {
|
|
1395
|
+
title: string;
|
|
1396
|
+
options?: Record<string, string> | undefined;
|
|
1397
|
+
length?: number | null | undefined;
|
|
1398
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1399
|
+
sku?: string | null | undefined;
|
|
1400
|
+
ean?: string | null | undefined;
|
|
1401
|
+
upc?: string | null | undefined;
|
|
1402
|
+
weight?: number | null | undefined;
|
|
1403
|
+
height?: number | null | undefined;
|
|
1404
|
+
width?: number | null | undefined;
|
|
1405
|
+
hs_code?: string | null | undefined;
|
|
1406
|
+
origin_country?: string | null | undefined;
|
|
1407
|
+
mid_code?: string | null | undefined;
|
|
1408
|
+
material?: string | null | undefined;
|
|
1409
|
+
isbn?: string | null | undefined;
|
|
1410
|
+
asin?: string | null | undefined;
|
|
1411
|
+
gtin?: string | null | undefined;
|
|
1412
|
+
barcode?: string | null | undefined;
|
|
1413
|
+
variant_rank?: number | undefined;
|
|
1414
|
+
}, {
|
|
1415
|
+
title: string;
|
|
1416
|
+
options?: Record<string, string> | undefined;
|
|
1417
|
+
length?: number | null | undefined;
|
|
1418
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1419
|
+
sku?: string | null | undefined;
|
|
1420
|
+
ean?: string | null | undefined;
|
|
1421
|
+
upc?: string | null | undefined;
|
|
1422
|
+
weight?: number | null | undefined;
|
|
1423
|
+
height?: number | null | undefined;
|
|
1424
|
+
width?: number | null | undefined;
|
|
1425
|
+
hs_code?: string | null | undefined;
|
|
1426
|
+
origin_country?: string | null | undefined;
|
|
1427
|
+
mid_code?: string | null | undefined;
|
|
1428
|
+
material?: string | null | undefined;
|
|
1429
|
+
isbn?: string | null | undefined;
|
|
1430
|
+
asin?: string | null | undefined;
|
|
1431
|
+
gtin?: string | null | undefined;
|
|
1432
|
+
barcode?: string | null | undefined;
|
|
1433
|
+
variant_rank?: number | undefined;
|
|
1434
|
+
}>, "many">>;
|
|
1443
1435
|
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1444
1436
|
title: z.ZodOptional<z.ZodString>;
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
id?: string | undefined;
|
|
1455
|
-
}, {
|
|
1456
|
-
url: string;
|
|
1457
|
-
id?: string | undefined;
|
|
1458
|
-
}>, "many">>;
|
|
1437
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1438
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1439
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1440
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1441
|
+
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1442
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1443
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1444
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1445
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1459
1446
|
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
}, "strip", z.ZodTypeAny, {
|
|
1470
|
-
id: string;
|
|
1471
|
-
}, {
|
|
1472
|
-
id: string;
|
|
1473
|
-
}>, "many">>;
|
|
1474
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1475
|
-
id: z.ZodString;
|
|
1476
|
-
}, "strip", z.ZodTypeAny, {
|
|
1477
|
-
id: string;
|
|
1478
|
-
}, {
|
|
1479
|
-
id: string;
|
|
1480
|
-
}>, "many">>;
|
|
1481
|
-
variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1482
|
-
attribute_id: z.ZodString;
|
|
1483
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1484
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1485
|
-
}, "strip", z.ZodTypeAny, {
|
|
1486
|
-
attribute_id: string;
|
|
1487
|
-
values?: string[] | undefined;
|
|
1488
|
-
value_ids?: string[] | undefined;
|
|
1489
|
-
}, {
|
|
1490
|
-
attribute_id: string;
|
|
1491
|
-
values?: string[] | undefined;
|
|
1492
|
-
value_ids?: string[] | undefined;
|
|
1493
|
-
}>, z.ZodObject<{
|
|
1494
|
-
name: z.ZodString;
|
|
1495
|
-
type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
|
|
1496
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1497
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1498
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1499
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1500
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1501
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1502
|
-
}, "strip", z.ZodTypeAny, {
|
|
1503
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
1504
|
-
name: string;
|
|
1505
|
-
values?: string[] | undefined;
|
|
1506
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1507
|
-
description?: string | null | undefined;
|
|
1508
|
-
is_required?: boolean | undefined;
|
|
1509
|
-
is_filterable?: boolean | undefined;
|
|
1510
|
-
is_variant_axis?: boolean | undefined;
|
|
1511
|
-
}, {
|
|
1512
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
1513
|
-
name: string;
|
|
1514
|
-
values?: string[] | undefined;
|
|
1515
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1516
|
-
description?: string | null | undefined;
|
|
1517
|
-
is_required?: boolean | undefined;
|
|
1518
|
-
is_filterable?: boolean | undefined;
|
|
1519
|
-
is_variant_axis?: boolean | undefined;
|
|
1520
|
-
}>]>, "many">>;
|
|
1521
|
-
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1522
|
-
attribute_id: z.ZodString;
|
|
1523
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1524
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1525
|
-
}, "strip", z.ZodTypeAny, {
|
|
1526
|
-
attribute_id: string;
|
|
1527
|
-
values?: string[] | undefined;
|
|
1528
|
-
value_ids?: string[] | undefined;
|
|
1529
|
-
}, {
|
|
1530
|
-
attribute_id: string;
|
|
1531
|
-
values?: string[] | undefined;
|
|
1532
|
-
value_ids?: string[] | undefined;
|
|
1533
|
-
}>, z.ZodObject<{
|
|
1534
|
-
name: z.ZodString;
|
|
1535
|
-
type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
|
|
1536
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1537
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1538
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1539
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1540
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1541
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1542
|
-
}, "strip", z.ZodTypeAny, {
|
|
1543
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
1544
|
-
name: string;
|
|
1545
|
-
values?: string[] | undefined;
|
|
1546
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1547
|
-
description?: string | null | undefined;
|
|
1548
|
-
is_required?: boolean | undefined;
|
|
1549
|
-
is_filterable?: boolean | undefined;
|
|
1550
|
-
is_variant_axis?: boolean | undefined;
|
|
1551
|
-
}, {
|
|
1552
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
1553
|
-
name: string;
|
|
1554
|
-
values?: string[] | undefined;
|
|
1555
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1556
|
-
description?: string | null | undefined;
|
|
1557
|
-
is_required?: boolean | undefined;
|
|
1558
|
-
is_filterable?: boolean | undefined;
|
|
1559
|
-
is_variant_axis?: boolean | undefined;
|
|
1560
|
-
}>]>, "many">>;
|
|
1561
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1447
|
+
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1448
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1449
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1450
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1451
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1452
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1453
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1454
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1455
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1562
1456
|
id: z.ZodOptional<z.ZodString>;
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1570
|
-
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1571
|
-
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1572
|
-
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1573
|
-
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1574
|
-
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1575
|
-
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1576
|
-
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1577
|
-
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1578
|
-
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1579
|
-
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1580
|
-
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1581
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1582
|
-
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1583
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1584
|
-
currency_code: z.ZodOptional<z.ZodString>;
|
|
1585
|
-
amount: z.ZodOptional<z.ZodNumber>;
|
|
1586
|
-
min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1587
|
-
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1588
|
-
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1589
|
-
}, "strip", z.ZodTypeAny, {
|
|
1590
|
-
id?: string | undefined;
|
|
1591
|
-
amount?: number | undefined;
|
|
1592
|
-
currency_code?: string | undefined;
|
|
1593
|
-
min_quantity?: number | null | undefined;
|
|
1594
|
-
max_quantity?: number | null | undefined;
|
|
1595
|
-
rules?: Record<string, string> | undefined;
|
|
1596
|
-
}, {
|
|
1597
|
-
id?: string | undefined;
|
|
1598
|
-
amount?: number | undefined;
|
|
1599
|
-
currency_code?: string | undefined;
|
|
1600
|
-
min_quantity?: number | null | undefined;
|
|
1601
|
-
max_quantity?: number | null | undefined;
|
|
1602
|
-
rules?: Record<string, string> | undefined;
|
|
1603
|
-
}>, "many">>;
|
|
1604
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1605
|
-
}, "strict", z.ZodTypeAny, {
|
|
1606
|
-
length?: number | null | undefined;
|
|
1607
|
-
id?: string | undefined;
|
|
1608
|
-
sku?: string | null | undefined;
|
|
1609
|
-
ean?: string | null | undefined;
|
|
1610
|
-
upc?: string | null | undefined;
|
|
1611
|
-
metadata?: Record<string, unknown> | 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
|
-
length?: number | null | undefined;
|
|
1457
|
+
currency_code: z.ZodOptional<z.ZodString>;
|
|
1458
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1459
|
+
min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1460
|
+
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1461
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1462
|
+
}, "strip", z.ZodTypeAny, {
|
|
1637
1463
|
id?: string | undefined;
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
}[] | undefined;
|
|
1651
|
-
thumbnail?: string | null | undefined;
|
|
1652
|
-
weight?: number | null | undefined;
|
|
1653
|
-
height?: number | null | undefined;
|
|
1654
|
-
width?: number | null | undefined;
|
|
1655
|
-
hs_code?: string | null | undefined;
|
|
1656
|
-
origin_country?: string | null | undefined;
|
|
1657
|
-
mid_code?: string | null | undefined;
|
|
1658
|
-
material?: string | null | undefined;
|
|
1659
|
-
isbn?: string | null | undefined;
|
|
1660
|
-
asin?: string | null | undefined;
|
|
1661
|
-
gtin?: string | null | undefined;
|
|
1662
|
-
barcode?: string | null | undefined;
|
|
1663
|
-
variant_rank?: number | undefined;
|
|
1664
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1464
|
+
amount?: number | undefined;
|
|
1465
|
+
currency_code?: string | undefined;
|
|
1466
|
+
min_quantity?: number | null | undefined;
|
|
1467
|
+
max_quantity?: number | null | undefined;
|
|
1468
|
+
rules?: Record<string, string> | undefined;
|
|
1469
|
+
}, {
|
|
1470
|
+
id?: string | undefined;
|
|
1471
|
+
amount?: number | undefined;
|
|
1472
|
+
currency_code?: string | undefined;
|
|
1473
|
+
min_quantity?: number | null | undefined;
|
|
1474
|
+
max_quantity?: number | null | undefined;
|
|
1475
|
+
rules?: Record<string, string> | undefined;
|
|
1665
1476
|
}>, "many">>;
|
|
1666
|
-
|
|
1667
|
-
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1668
|
-
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1669
|
-
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1670
|
-
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1671
|
-
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1672
|
-
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1673
|
-
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1674
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1477
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1675
1478
|
} & {
|
|
1676
1479
|
id: z.ZodString;
|
|
1677
1480
|
}, "strict", z.ZodTypeAny, {
|
|
1678
1481
|
id: string;
|
|
1482
|
+
options?: Record<string, string> | undefined;
|
|
1679
1483
|
length?: number | null | undefined;
|
|
1680
|
-
status?: ProductStatus | undefined;
|
|
1681
1484
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1485
|
+
sku?: string | null | undefined;
|
|
1486
|
+
ean?: string | null | undefined;
|
|
1487
|
+
upc?: string | null | undefined;
|
|
1682
1488
|
title?: string | undefined;
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1489
|
+
prices?: {
|
|
1490
|
+
id?: string | undefined;
|
|
1491
|
+
amount?: number | undefined;
|
|
1492
|
+
currency_code?: string | undefined;
|
|
1493
|
+
min_quantity?: number | null | undefined;
|
|
1494
|
+
max_quantity?: number | null | undefined;
|
|
1495
|
+
rules?: Record<string, string> | undefined;
|
|
1496
|
+
}[] | undefined;
|
|
1686
1497
|
thumbnail?: string | null | undefined;
|
|
1687
|
-
collection_id?: string | null | undefined;
|
|
1688
|
-
type_id?: string | null | undefined;
|
|
1689
|
-
subtitle?: string | null | undefined;
|
|
1690
|
-
is_restricted?: boolean | undefined;
|
|
1691
|
-
is_giftcard?: boolean | undefined;
|
|
1692
|
-
discountable?: boolean | undefined;
|
|
1693
|
-
brand_id?: string | null | undefined;
|
|
1694
1498
|
weight?: number | null | undefined;
|
|
1695
1499
|
height?: number | null | undefined;
|
|
1696
1500
|
width?: number | null | undefined;
|
|
@@ -1698,92 +1502,137 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1698
1502
|
origin_country?: string | null | undefined;
|
|
1699
1503
|
mid_code?: string | null | undefined;
|
|
1700
1504
|
material?: string | null | undefined;
|
|
1701
|
-
|
|
1702
|
-
|
|
1505
|
+
isbn?: string | null | undefined;
|
|
1506
|
+
asin?: string | null | undefined;
|
|
1507
|
+
gtin?: string | null | undefined;
|
|
1508
|
+
barcode?: string | null | undefined;
|
|
1509
|
+
variant_rank?: number | undefined;
|
|
1510
|
+
}, {
|
|
1511
|
+
id: string;
|
|
1512
|
+
options?: Record<string, string> | undefined;
|
|
1513
|
+
length?: number | null | undefined;
|
|
1514
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1515
|
+
sku?: string | null | undefined;
|
|
1516
|
+
ean?: string | null | undefined;
|
|
1517
|
+
upc?: string | null | undefined;
|
|
1518
|
+
title?: string | undefined;
|
|
1519
|
+
prices?: {
|
|
1703
1520
|
id?: string | undefined;
|
|
1521
|
+
amount?: number | undefined;
|
|
1522
|
+
currency_code?: string | undefined;
|
|
1523
|
+
min_quantity?: number | null | undefined;
|
|
1524
|
+
max_quantity?: number | null | undefined;
|
|
1525
|
+
rules?: Record<string, string> | undefined;
|
|
1704
1526
|
}[] | undefined;
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1527
|
+
thumbnail?: string | null | undefined;
|
|
1528
|
+
weight?: number | null | undefined;
|
|
1529
|
+
height?: number | null | undefined;
|
|
1530
|
+
width?: number | null | undefined;
|
|
1531
|
+
hs_code?: string | null | undefined;
|
|
1532
|
+
origin_country?: string | null | undefined;
|
|
1533
|
+
mid_code?: string | null | undefined;
|
|
1534
|
+
material?: string | null | undefined;
|
|
1535
|
+
isbn?: string | null | undefined;
|
|
1536
|
+
asin?: string | null | undefined;
|
|
1537
|
+
gtin?: string | null | undefined;
|
|
1538
|
+
barcode?: string | null | undefined;
|
|
1539
|
+
variant_rank?: number | undefined;
|
|
1540
|
+
}>, "many">>;
|
|
1541
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1542
|
+
}, "strip", z.ZodTypeAny, {
|
|
1543
|
+
create?: {
|
|
1544
|
+
title: string;
|
|
1545
|
+
options?: Record<string, string> | undefined;
|
|
1546
|
+
length?: number | null | undefined;
|
|
1547
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1548
|
+
sku?: string | null | undefined;
|
|
1549
|
+
ean?: string | null | undefined;
|
|
1550
|
+
upc?: string | null | undefined;
|
|
1551
|
+
weight?: number | null | undefined;
|
|
1552
|
+
height?: number | null | undefined;
|
|
1553
|
+
width?: number | null | undefined;
|
|
1554
|
+
hs_code?: string | null | undefined;
|
|
1555
|
+
origin_country?: string | null | undefined;
|
|
1556
|
+
mid_code?: string | null | undefined;
|
|
1557
|
+
material?: string | null | undefined;
|
|
1558
|
+
isbn?: string | null | undefined;
|
|
1559
|
+
asin?: string | null | undefined;
|
|
1560
|
+
gtin?: string | null | undefined;
|
|
1561
|
+
barcode?: string | null | undefined;
|
|
1562
|
+
variant_rank?: number | undefined;
|
|
1563
|
+
}[] | undefined;
|
|
1564
|
+
update?: {
|
|
1565
|
+
id: string;
|
|
1566
|
+
options?: Record<string, string> | undefined;
|
|
1567
|
+
length?: number | null | undefined;
|
|
1568
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1569
|
+
sku?: string | null | undefined;
|
|
1570
|
+
ean?: string | null | undefined;
|
|
1571
|
+
upc?: string | null | undefined;
|
|
1572
|
+
title?: string | undefined;
|
|
1573
|
+
prices?: {
|
|
1741
1574
|
id?: string | undefined;
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
prices?: {
|
|
1748
|
-
id?: string | undefined;
|
|
1749
|
-
amount?: number | undefined;
|
|
1750
|
-
currency_code?: string | undefined;
|
|
1751
|
-
min_quantity?: number | null | undefined;
|
|
1752
|
-
max_quantity?: number | null | undefined;
|
|
1753
|
-
rules?: Record<string, string> | undefined;
|
|
1754
|
-
}[] | undefined;
|
|
1755
|
-
thumbnail?: string | null | undefined;
|
|
1756
|
-
weight?: number | null | undefined;
|
|
1757
|
-
height?: number | null | undefined;
|
|
1758
|
-
width?: number | null | undefined;
|
|
1759
|
-
hs_code?: string | null | undefined;
|
|
1760
|
-
origin_country?: string | null | undefined;
|
|
1761
|
-
mid_code?: string | null | undefined;
|
|
1762
|
-
material?: string | null | undefined;
|
|
1763
|
-
isbn?: string | null | undefined;
|
|
1764
|
-
asin?: string | null | undefined;
|
|
1765
|
-
gtin?: string | null | undefined;
|
|
1766
|
-
barcode?: string | null | undefined;
|
|
1767
|
-
variant_rank?: number | undefined;
|
|
1768
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1575
|
+
amount?: number | undefined;
|
|
1576
|
+
currency_code?: string | undefined;
|
|
1577
|
+
min_quantity?: number | null | undefined;
|
|
1578
|
+
max_quantity?: number | null | undefined;
|
|
1579
|
+
rules?: Record<string, string> | undefined;
|
|
1769
1580
|
}[] | undefined;
|
|
1770
|
-
|
|
1581
|
+
thumbnail?: string | null | undefined;
|
|
1582
|
+
weight?: number | null | undefined;
|
|
1583
|
+
height?: number | null | undefined;
|
|
1584
|
+
width?: number | null | undefined;
|
|
1585
|
+
hs_code?: string | null | undefined;
|
|
1586
|
+
origin_country?: string | null | undefined;
|
|
1587
|
+
mid_code?: string | null | undefined;
|
|
1588
|
+
material?: string | null | undefined;
|
|
1589
|
+
isbn?: string | null | undefined;
|
|
1590
|
+
asin?: string | null | undefined;
|
|
1591
|
+
gtin?: string | null | undefined;
|
|
1592
|
+
barcode?: string | null | undefined;
|
|
1593
|
+
variant_rank?: number | undefined;
|
|
1594
|
+
}[] | undefined;
|
|
1595
|
+
delete?: string[] | undefined;
|
|
1596
|
+
}, {
|
|
1597
|
+
create?: {
|
|
1598
|
+
title: string;
|
|
1599
|
+
options?: Record<string, string> | undefined;
|
|
1600
|
+
length?: number | null | undefined;
|
|
1601
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1602
|
+
sku?: string | null | undefined;
|
|
1603
|
+
ean?: string | null | undefined;
|
|
1604
|
+
upc?: string | null | undefined;
|
|
1605
|
+
weight?: number | null | undefined;
|
|
1606
|
+
height?: number | null | undefined;
|
|
1607
|
+
width?: number | null | undefined;
|
|
1608
|
+
hs_code?: string | null | undefined;
|
|
1609
|
+
origin_country?: string | null | undefined;
|
|
1610
|
+
mid_code?: string | null | undefined;
|
|
1611
|
+
material?: string | null | undefined;
|
|
1612
|
+
isbn?: string | null | undefined;
|
|
1613
|
+
asin?: string | null | undefined;
|
|
1614
|
+
gtin?: string | null | undefined;
|
|
1615
|
+
barcode?: string | null | undefined;
|
|
1616
|
+
variant_rank?: number | undefined;
|
|
1617
|
+
}[] | undefined;
|
|
1618
|
+
update?: {
|
|
1771
1619
|
id: string;
|
|
1620
|
+
options?: Record<string, string> | undefined;
|
|
1772
1621
|
length?: number | null | undefined;
|
|
1773
|
-
status?: ProductStatus | undefined;
|
|
1774
1622
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1623
|
+
sku?: string | null | undefined;
|
|
1624
|
+
ean?: string | null | undefined;
|
|
1625
|
+
upc?: string | null | undefined;
|
|
1775
1626
|
title?: string | undefined;
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1627
|
+
prices?: {
|
|
1628
|
+
id?: string | undefined;
|
|
1629
|
+
amount?: number | undefined;
|
|
1630
|
+
currency_code?: string | undefined;
|
|
1631
|
+
min_quantity?: number | null | undefined;
|
|
1632
|
+
max_quantity?: number | null | undefined;
|
|
1633
|
+
rules?: Record<string, string> | undefined;
|
|
1634
|
+
}[] | undefined;
|
|
1779
1635
|
thumbnail?: string | null | undefined;
|
|
1780
|
-
collection_id?: string | null | undefined;
|
|
1781
|
-
type_id?: string | null | undefined;
|
|
1782
|
-
subtitle?: string | null | undefined;
|
|
1783
|
-
is_restricted?: boolean | undefined;
|
|
1784
|
-
is_giftcard?: string | boolean | undefined;
|
|
1785
|
-
discountable?: string | boolean | undefined;
|
|
1786
|
-
brand_id?: string | null | undefined;
|
|
1787
1636
|
weight?: number | null | undefined;
|
|
1788
1637
|
height?: number | null | undefined;
|
|
1789
1638
|
width?: number | null | undefined;
|
|
@@ -1791,147 +1640,187 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1791
1640
|
origin_country?: string | null | undefined;
|
|
1792
1641
|
mid_code?: string | null | undefined;
|
|
1793
1642
|
material?: string | null | undefined;
|
|
1794
|
-
|
|
1643
|
+
isbn?: string | null | undefined;
|
|
1644
|
+
asin?: string | null | undefined;
|
|
1645
|
+
gtin?: string | null | undefined;
|
|
1646
|
+
barcode?: string | null | undefined;
|
|
1647
|
+
variant_rank?: number | undefined;
|
|
1648
|
+
}[] | undefined;
|
|
1649
|
+
delete?: string[] | undefined;
|
|
1650
|
+
}>;
|
|
1651
|
+
export type AdminBatchVariantInventoryItemsType = z.infer<typeof AdminBatchVariantInventoryItems>;
|
|
1652
|
+
export declare const AdminBatchVariantInventoryItems: z.ZodObject<{
|
|
1653
|
+
create: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1654
|
+
variant_id: z.ZodString;
|
|
1655
|
+
inventory_item_id: z.ZodString;
|
|
1656
|
+
required_quantity: z.ZodOptional<z.ZodNumber>;
|
|
1657
|
+
}, "strict", z.ZodTypeAny, {
|
|
1658
|
+
variant_id: string;
|
|
1659
|
+
inventory_item_id: string;
|
|
1660
|
+
required_quantity?: number | undefined;
|
|
1661
|
+
}, {
|
|
1662
|
+
variant_id: string;
|
|
1663
|
+
inventory_item_id: string;
|
|
1664
|
+
required_quantity?: number | undefined;
|
|
1665
|
+
}>, "many">>;
|
|
1666
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1667
|
+
variant_id: z.ZodString;
|
|
1668
|
+
inventory_item_id: z.ZodString;
|
|
1669
|
+
required_quantity: z.ZodOptional<z.ZodNumber>;
|
|
1670
|
+
}, "strict", z.ZodTypeAny, {
|
|
1671
|
+
variant_id: string;
|
|
1672
|
+
inventory_item_id: string;
|
|
1673
|
+
required_quantity?: number | undefined;
|
|
1674
|
+
}, {
|
|
1675
|
+
variant_id: string;
|
|
1676
|
+
inventory_item_id: string;
|
|
1677
|
+
required_quantity?: number | undefined;
|
|
1678
|
+
}>, "many">>;
|
|
1679
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1680
|
+
variant_id: z.ZodString;
|
|
1681
|
+
inventory_item_id: z.ZodString;
|
|
1682
|
+
}, "strict", z.ZodTypeAny, {
|
|
1683
|
+
variant_id: string;
|
|
1684
|
+
inventory_item_id: string;
|
|
1685
|
+
}, {
|
|
1686
|
+
variant_id: string;
|
|
1687
|
+
inventory_item_id: string;
|
|
1688
|
+
}>, "many">>;
|
|
1689
|
+
}, "strip", z.ZodTypeAny, {
|
|
1690
|
+
create?: {
|
|
1691
|
+
variant_id: string;
|
|
1692
|
+
inventory_item_id: string;
|
|
1693
|
+
required_quantity?: number | undefined;
|
|
1694
|
+
}[] | undefined;
|
|
1695
|
+
update?: {
|
|
1696
|
+
variant_id: string;
|
|
1697
|
+
inventory_item_id: string;
|
|
1698
|
+
required_quantity?: number | undefined;
|
|
1699
|
+
}[] | undefined;
|
|
1700
|
+
delete?: {
|
|
1701
|
+
variant_id: string;
|
|
1702
|
+
inventory_item_id: string;
|
|
1703
|
+
}[] | undefined;
|
|
1704
|
+
}, {
|
|
1705
|
+
create?: {
|
|
1706
|
+
variant_id: string;
|
|
1707
|
+
inventory_item_id: string;
|
|
1708
|
+
required_quantity?: number | undefined;
|
|
1709
|
+
}[] | undefined;
|
|
1710
|
+
update?: {
|
|
1711
|
+
variant_id: string;
|
|
1712
|
+
inventory_item_id: string;
|
|
1713
|
+
required_quantity?: number | undefined;
|
|
1714
|
+
}[] | undefined;
|
|
1715
|
+
delete?: {
|
|
1716
|
+
variant_id: string;
|
|
1717
|
+
inventory_item_id: string;
|
|
1718
|
+
}[] | undefined;
|
|
1719
|
+
}>;
|
|
1720
|
+
declare const BatchProducts: z.ZodObject<{
|
|
1721
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1722
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1723
|
+
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1724
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1725
|
+
discountable: any;
|
|
1726
|
+
is_giftcard: any;
|
|
1727
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1728
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1729
|
+
url: z.ZodString;
|
|
1730
|
+
}, "strip", z.ZodTypeAny, {
|
|
1795
1731
|
url: string;
|
|
1796
1732
|
id?: string | undefined;
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1733
|
+
}, {
|
|
1734
|
+
url: string;
|
|
1735
|
+
id?: string | undefined;
|
|
1736
|
+
}>, "many">>;
|
|
1737
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1738
|
+
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1739
|
+
status: z.ZodOptional<z.ZodNativeEnum<{
|
|
1740
|
+
readonly DRAFT: "draft";
|
|
1741
|
+
readonly PROPOSED: "proposed";
|
|
1742
|
+
readonly PUBLISHED: "published";
|
|
1743
|
+
readonly REJECTED: "rejected";
|
|
1744
|
+
}>>;
|
|
1745
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1746
|
+
type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1747
|
+
collection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1748
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1749
|
+
id: z.ZodString;
|
|
1750
|
+
}, "strip", z.ZodTypeAny, {
|
|
1799
1751
|
id: string;
|
|
1800
|
-
}
|
|
1801
|
-
tags?: {
|
|
1752
|
+
}, {
|
|
1802
1753
|
id: string;
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1754
|
+
}>, "many">>;
|
|
1755
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1756
|
+
id: z.ZodString;
|
|
1757
|
+
}, "strip", z.ZodTypeAny, {
|
|
1758
|
+
id: string;
|
|
1759
|
+
}, {
|
|
1760
|
+
id: string;
|
|
1761
|
+
}>, "many">>;
|
|
1762
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1763
|
+
title: z.ZodString;
|
|
1764
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
1765
|
+
}, "strip", z.ZodTypeAny, {
|
|
1766
|
+
values: string[];
|
|
1767
|
+
title: string;
|
|
1768
|
+
}, {
|
|
1769
|
+
values: string[];
|
|
1770
|
+
title: string;
|
|
1771
|
+
}>, "many">>;
|
|
1772
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1773
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1774
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1775
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1776
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1777
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1778
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1779
|
+
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1780
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1781
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1782
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1783
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1784
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1785
|
+
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1786
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1787
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1788
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1789
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1790
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1791
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1792
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1793
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1794
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
currency_code: z.ZodOptional<z.ZodString>;
|
|
1796
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1797
|
+
min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1798
|
+
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1799
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1800
|
+
}, "strip", z.ZodTypeAny, {
|
|
1841
1801
|
id?: string | undefined;
|
|
1842
1802
|
amount?: number | undefined;
|
|
1843
1803
|
currency_code?: string | undefined;
|
|
1844
1804
|
min_quantity?: number | null | undefined;
|
|
1845
1805
|
max_quantity?: number | null | undefined;
|
|
1846
1806
|
rules?: Record<string, string> | undefined;
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
gtin?: string | null | undefined;
|
|
1859
|
-
barcode?: string | null | undefined;
|
|
1860
|
-
variant_rank?: number | undefined;
|
|
1861
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1862
|
-
}[] | undefined;
|
|
1863
|
-
}>, "many">>;
|
|
1864
|
-
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1865
|
-
}, "strip", z.ZodTypeAny, {
|
|
1866
|
-
update?: {
|
|
1867
|
-
id: string;
|
|
1868
|
-
length?: number | null | undefined;
|
|
1869
|
-
status?: ProductStatus | undefined;
|
|
1870
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1871
|
-
title?: string | undefined;
|
|
1872
|
-
handle?: string | null | undefined;
|
|
1873
|
-
description?: string | null | undefined;
|
|
1874
|
-
external_id?: string | null | undefined;
|
|
1875
|
-
thumbnail?: string | null | undefined;
|
|
1876
|
-
collection_id?: string | null | undefined;
|
|
1877
|
-
type_id?: string | null | undefined;
|
|
1878
|
-
subtitle?: string | null | undefined;
|
|
1879
|
-
is_restricted?: boolean | undefined;
|
|
1880
|
-
is_giftcard?: boolean | undefined;
|
|
1881
|
-
discountable?: boolean | undefined;
|
|
1882
|
-
brand_id?: string | null | undefined;
|
|
1883
|
-
weight?: number | null | undefined;
|
|
1884
|
-
height?: number | null | undefined;
|
|
1885
|
-
width?: number | null | undefined;
|
|
1886
|
-
hs_code?: string | null | undefined;
|
|
1887
|
-
origin_country?: string | null | undefined;
|
|
1888
|
-
mid_code?: string | null | undefined;
|
|
1889
|
-
material?: string | null | undefined;
|
|
1890
|
-
images?: {
|
|
1891
|
-
url: string;
|
|
1892
|
-
id?: string | undefined;
|
|
1893
|
-
}[] | undefined;
|
|
1894
|
-
categories?: {
|
|
1895
|
-
id: string;
|
|
1896
|
-
}[] | undefined;
|
|
1897
|
-
tags?: {
|
|
1898
|
-
id: string;
|
|
1899
|
-
}[] | undefined;
|
|
1900
|
-
variant_attributes?: ({
|
|
1901
|
-
attribute_id: string;
|
|
1902
|
-
values?: string[] | undefined;
|
|
1903
|
-
value_ids?: string[] | undefined;
|
|
1904
|
-
} | {
|
|
1905
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
1906
|
-
name: string;
|
|
1907
|
-
values?: string[] | undefined;
|
|
1908
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1909
|
-
description?: string | null | undefined;
|
|
1910
|
-
is_required?: boolean | undefined;
|
|
1911
|
-
is_filterable?: boolean | undefined;
|
|
1912
|
-
is_variant_axis?: boolean | undefined;
|
|
1913
|
-
})[] | undefined;
|
|
1914
|
-
product_attributes?: ({
|
|
1915
|
-
attribute_id: string;
|
|
1916
|
-
values?: string[] | undefined;
|
|
1917
|
-
value_ids?: string[] | undefined;
|
|
1918
|
-
} | {
|
|
1919
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
1920
|
-
name: string;
|
|
1921
|
-
values?: string[] | undefined;
|
|
1922
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1923
|
-
description?: string | null | undefined;
|
|
1924
|
-
is_required?: boolean | undefined;
|
|
1925
|
-
is_filterable?: boolean | undefined;
|
|
1926
|
-
is_variant_axis?: boolean | undefined;
|
|
1927
|
-
})[] | undefined;
|
|
1928
|
-
variants?: {
|
|
1807
|
+
}, {
|
|
1808
|
+
id?: string | undefined;
|
|
1809
|
+
amount?: number | undefined;
|
|
1810
|
+
currency_code?: string | undefined;
|
|
1811
|
+
min_quantity?: number | null | undefined;
|
|
1812
|
+
max_quantity?: number | null | undefined;
|
|
1813
|
+
rules?: Record<string, string> | undefined;
|
|
1814
|
+
}>, "many">>;
|
|
1815
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1816
|
+
}, "strict", z.ZodTypeAny, {
|
|
1817
|
+
options?: Record<string, string> | undefined;
|
|
1929
1818
|
length?: number | null | undefined;
|
|
1819
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1930
1820
|
id?: string | undefined;
|
|
1931
1821
|
sku?: string | null | undefined;
|
|
1932
1822
|
ean?: string | null | undefined;
|
|
1933
1823
|
upc?: string | null | undefined;
|
|
1934
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1935
1824
|
title?: string | undefined;
|
|
1936
1825
|
prices?: {
|
|
1937
1826
|
id?: string | undefined;
|
|
@@ -1954,80 +1843,14 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
1954
1843
|
gtin?: string | null | undefined;
|
|
1955
1844
|
barcode?: string | null | undefined;
|
|
1956
1845
|
variant_rank?: number | undefined;
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
}[] | undefined;
|
|
1960
|
-
delete?: string[] | undefined;
|
|
1961
|
-
}, {
|
|
1962
|
-
update?: {
|
|
1963
|
-
id: string;
|
|
1964
|
-
length?: number | null | undefined;
|
|
1965
|
-
status?: ProductStatus | undefined;
|
|
1966
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1967
|
-
title?: string | undefined;
|
|
1968
|
-
handle?: string | null | undefined;
|
|
1969
|
-
description?: string | null | undefined;
|
|
1970
|
-
external_id?: string | null | undefined;
|
|
1971
|
-
thumbnail?: string | null | undefined;
|
|
1972
|
-
collection_id?: string | null | undefined;
|
|
1973
|
-
type_id?: string | null | undefined;
|
|
1974
|
-
subtitle?: string | null | undefined;
|
|
1975
|
-
is_restricted?: boolean | undefined;
|
|
1976
|
-
is_giftcard?: string | boolean | undefined;
|
|
1977
|
-
discountable?: string | boolean | undefined;
|
|
1978
|
-
brand_id?: string | null | undefined;
|
|
1979
|
-
weight?: number | null | undefined;
|
|
1980
|
-
height?: number | null | undefined;
|
|
1981
|
-
width?: number | null | undefined;
|
|
1982
|
-
hs_code?: string | null | undefined;
|
|
1983
|
-
origin_country?: string | null | undefined;
|
|
1984
|
-
mid_code?: string | null | undefined;
|
|
1985
|
-
material?: string | null | undefined;
|
|
1986
|
-
images?: {
|
|
1987
|
-
url: string;
|
|
1988
|
-
id?: string | undefined;
|
|
1989
|
-
}[] | undefined;
|
|
1990
|
-
categories?: {
|
|
1991
|
-
id: string;
|
|
1992
|
-
}[] | undefined;
|
|
1993
|
-
tags?: {
|
|
1994
|
-
id: string;
|
|
1995
|
-
}[] | undefined;
|
|
1996
|
-
variant_attributes?: ({
|
|
1997
|
-
attribute_id: string;
|
|
1998
|
-
values?: string[] | undefined;
|
|
1999
|
-
value_ids?: string[] | undefined;
|
|
2000
|
-
} | {
|
|
2001
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
2002
|
-
name: string;
|
|
2003
|
-
values?: string[] | undefined;
|
|
2004
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2005
|
-
description?: string | null | undefined;
|
|
2006
|
-
is_required?: boolean | undefined;
|
|
2007
|
-
is_filterable?: boolean | undefined;
|
|
2008
|
-
is_variant_axis?: boolean | undefined;
|
|
2009
|
-
})[] | undefined;
|
|
2010
|
-
product_attributes?: ({
|
|
2011
|
-
attribute_id: string;
|
|
2012
|
-
values?: string[] | undefined;
|
|
2013
|
-
value_ids?: string[] | undefined;
|
|
2014
|
-
} | {
|
|
2015
|
-
type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
|
|
2016
|
-
name: string;
|
|
2017
|
-
values?: string[] | undefined;
|
|
2018
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2019
|
-
description?: string | null | undefined;
|
|
2020
|
-
is_required?: boolean | undefined;
|
|
2021
|
-
is_filterable?: boolean | undefined;
|
|
2022
|
-
is_variant_axis?: boolean | undefined;
|
|
2023
|
-
})[] | undefined;
|
|
2024
|
-
variants?: {
|
|
1846
|
+
}, {
|
|
1847
|
+
options?: Record<string, string> | undefined;
|
|
2025
1848
|
length?: number | null | undefined;
|
|
1849
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2026
1850
|
id?: string | undefined;
|
|
2027
1851
|
sku?: string | null | undefined;
|
|
2028
1852
|
ean?: string | null | undefined;
|
|
2029
1853
|
upc?: string | null | undefined;
|
|
2030
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2031
1854
|
title?: string | undefined;
|
|
2032
1855
|
prices?: {
|
|
2033
1856
|
id?: string | undefined;
|
|
@@ -2050,56 +1873,307 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
2050
1873
|
gtin?: string | null | undefined;
|
|
2051
1874
|
barcode?: string | null | undefined;
|
|
2052
1875
|
variant_rank?: number | undefined;
|
|
2053
|
-
|
|
2054
|
-
|
|
1876
|
+
}>, "many">>;
|
|
1877
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1878
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1879
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1880
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1881
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1882
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1883
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1884
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1885
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1886
|
+
} & {
|
|
1887
|
+
id: z.ZodString;
|
|
1888
|
+
}, "strict", z.ZodTypeAny, {
|
|
1889
|
+
[x: string]: any;
|
|
1890
|
+
title?: unknown;
|
|
1891
|
+
subtitle?: unknown;
|
|
1892
|
+
description?: unknown;
|
|
1893
|
+
discountable?: unknown;
|
|
1894
|
+
is_giftcard?: unknown;
|
|
1895
|
+
images?: unknown;
|
|
1896
|
+
thumbnail?: unknown;
|
|
1897
|
+
handle?: unknown;
|
|
1898
|
+
status?: unknown;
|
|
1899
|
+
external_id?: unknown;
|
|
1900
|
+
type_id?: unknown;
|
|
1901
|
+
collection_id?: unknown;
|
|
1902
|
+
categories?: unknown;
|
|
1903
|
+
tags?: unknown;
|
|
1904
|
+
options?: unknown;
|
|
1905
|
+
variants?: unknown;
|
|
1906
|
+
weight?: unknown;
|
|
1907
|
+
length?: unknown;
|
|
1908
|
+
height?: unknown;
|
|
1909
|
+
width?: unknown;
|
|
1910
|
+
hs_code?: unknown;
|
|
1911
|
+
mid_code?: unknown;
|
|
1912
|
+
origin_country?: unknown;
|
|
1913
|
+
material?: unknown;
|
|
1914
|
+
metadata?: unknown;
|
|
1915
|
+
id?: unknown;
|
|
1916
|
+
}, {
|
|
1917
|
+
[x: string]: any;
|
|
1918
|
+
title?: unknown;
|
|
1919
|
+
subtitle?: unknown;
|
|
1920
|
+
description?: unknown;
|
|
1921
|
+
discountable?: unknown;
|
|
1922
|
+
is_giftcard?: unknown;
|
|
1923
|
+
images?: unknown;
|
|
1924
|
+
thumbnail?: unknown;
|
|
1925
|
+
handle?: unknown;
|
|
1926
|
+
status?: unknown;
|
|
1927
|
+
external_id?: unknown;
|
|
1928
|
+
type_id?: unknown;
|
|
1929
|
+
collection_id?: unknown;
|
|
1930
|
+
categories?: unknown;
|
|
1931
|
+
tags?: unknown;
|
|
1932
|
+
options?: unknown;
|
|
1933
|
+
variants?: unknown;
|
|
1934
|
+
weight?: unknown;
|
|
1935
|
+
length?: unknown;
|
|
1936
|
+
height?: unknown;
|
|
1937
|
+
width?: unknown;
|
|
1938
|
+
hs_code?: unknown;
|
|
1939
|
+
mid_code?: unknown;
|
|
1940
|
+
origin_country?: unknown;
|
|
1941
|
+
material?: unknown;
|
|
1942
|
+
metadata?: unknown;
|
|
1943
|
+
id?: unknown;
|
|
1944
|
+
}>, "many">>;
|
|
1945
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1946
|
+
}, "strip", z.ZodTypeAny, {
|
|
1947
|
+
update?: {
|
|
1948
|
+
[x: string]: any;
|
|
1949
|
+
title?: unknown;
|
|
1950
|
+
subtitle?: unknown;
|
|
1951
|
+
description?: unknown;
|
|
1952
|
+
discountable?: unknown;
|
|
1953
|
+
is_giftcard?: unknown;
|
|
1954
|
+
images?: unknown;
|
|
1955
|
+
thumbnail?: unknown;
|
|
1956
|
+
handle?: unknown;
|
|
1957
|
+
status?: unknown;
|
|
1958
|
+
external_id?: unknown;
|
|
1959
|
+
type_id?: unknown;
|
|
1960
|
+
collection_id?: unknown;
|
|
1961
|
+
categories?: unknown;
|
|
1962
|
+
tags?: unknown;
|
|
1963
|
+
options?: unknown;
|
|
1964
|
+
variants?: unknown;
|
|
1965
|
+
weight?: unknown;
|
|
1966
|
+
length?: unknown;
|
|
1967
|
+
height?: unknown;
|
|
1968
|
+
width?: unknown;
|
|
1969
|
+
hs_code?: unknown;
|
|
1970
|
+
mid_code?: unknown;
|
|
1971
|
+
origin_country?: unknown;
|
|
1972
|
+
material?: unknown;
|
|
1973
|
+
metadata?: unknown;
|
|
1974
|
+
id?: unknown;
|
|
1975
|
+
}[] | undefined;
|
|
1976
|
+
delete?: string[] | undefined;
|
|
1977
|
+
}, {
|
|
1978
|
+
update?: {
|
|
1979
|
+
[x: string]: any;
|
|
1980
|
+
title?: unknown;
|
|
1981
|
+
subtitle?: unknown;
|
|
1982
|
+
description?: unknown;
|
|
1983
|
+
discountable?: unknown;
|
|
1984
|
+
is_giftcard?: unknown;
|
|
1985
|
+
images?: unknown;
|
|
1986
|
+
thumbnail?: unknown;
|
|
1987
|
+
handle?: unknown;
|
|
1988
|
+
status?: unknown;
|
|
1989
|
+
external_id?: unknown;
|
|
1990
|
+
type_id?: unknown;
|
|
1991
|
+
collection_id?: unknown;
|
|
1992
|
+
categories?: unknown;
|
|
1993
|
+
tags?: unknown;
|
|
1994
|
+
options?: unknown;
|
|
1995
|
+
variants?: unknown;
|
|
1996
|
+
weight?: unknown;
|
|
1997
|
+
length?: unknown;
|
|
1998
|
+
height?: unknown;
|
|
1999
|
+
width?: unknown;
|
|
2000
|
+
hs_code?: unknown;
|
|
2001
|
+
mid_code?: unknown;
|
|
2002
|
+
origin_country?: unknown;
|
|
2003
|
+
material?: unknown;
|
|
2004
|
+
metadata?: unknown;
|
|
2005
|
+
id?: unknown;
|
|
2055
2006
|
}[] | undefined;
|
|
2056
2007
|
delete?: string[] | undefined;
|
|
2057
2008
|
}>;
|
|
2058
2009
|
export type AdminBatchProductsType = z.infer<typeof BatchProducts> & AdditionalData;
|
|
2059
|
-
export declare const AdminBatchProducts: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any
|
|
2060
|
-
[x: string]: any;
|
|
2061
|
-
}, {
|
|
2062
|
-
[x: string]: any;
|
|
2063
|
-
}> | z.ZodEffects<any, any, any>;
|
|
2010
|
+
export declare const AdminBatchProducts: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
2064
2011
|
export type AdminBatchProductAttributesType = z.infer<typeof AdminBatchProductAttributes>;
|
|
2065
2012
|
export declare const AdminBatchProductAttributes: z.ZodObject<{
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2013
|
+
add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2014
|
+
id: z.ZodString;
|
|
2015
|
+
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2016
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2069
2017
|
}, "strict", z.ZodTypeAny, {
|
|
2070
|
-
|
|
2071
|
-
|
|
2018
|
+
id: string;
|
|
2019
|
+
value?: string | number | boolean | undefined;
|
|
2020
|
+
value_ids?: string[] | undefined;
|
|
2072
2021
|
}, {
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2022
|
+
id: string;
|
|
2023
|
+
value?: string | number | boolean | undefined;
|
|
2024
|
+
value_ids?: string[] | undefined;
|
|
2025
|
+
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2026
|
+
title: z.ZodString;
|
|
2027
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
2028
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2029
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2030
|
+
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
2031
|
+
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
2032
|
+
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
2033
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2034
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2078
2035
|
}, "strict", z.ZodTypeAny, {
|
|
2079
|
-
|
|
2080
|
-
|
|
2036
|
+
title: string;
|
|
2037
|
+
values?: string[] | undefined;
|
|
2038
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2039
|
+
value?: string | number | boolean | undefined;
|
|
2040
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2041
|
+
description?: string | null | undefined;
|
|
2042
|
+
is_variant_axis?: boolean | undefined;
|
|
2043
|
+
is_required?: boolean | undefined;
|
|
2044
|
+
is_filterable?: boolean | undefined;
|
|
2081
2045
|
}, {
|
|
2082
|
-
|
|
2083
|
-
|
|
2046
|
+
title: string;
|
|
2047
|
+
values?: string[] | undefined;
|
|
2048
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2049
|
+
value?: string | number | boolean | undefined;
|
|
2050
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2051
|
+
description?: string | null | undefined;
|
|
2052
|
+
is_variant_axis?: boolean | undefined;
|
|
2053
|
+
is_required?: boolean | undefined;
|
|
2054
|
+
is_filterable?: boolean | undefined;
|
|
2055
|
+
}>, {
|
|
2056
|
+
title: string;
|
|
2057
|
+
values?: string[] | undefined;
|
|
2058
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2059
|
+
value?: string | number | boolean | undefined;
|
|
2060
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2061
|
+
description?: string | null | undefined;
|
|
2062
|
+
is_variant_axis?: boolean | undefined;
|
|
2063
|
+
is_required?: boolean | undefined;
|
|
2064
|
+
is_filterable?: boolean | undefined;
|
|
2065
|
+
}, {
|
|
2066
|
+
title: string;
|
|
2067
|
+
values?: string[] | undefined;
|
|
2068
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2069
|
+
value?: string | number | boolean | undefined;
|
|
2070
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2071
|
+
description?: string | null | undefined;
|
|
2072
|
+
is_variant_axis?: boolean | undefined;
|
|
2073
|
+
is_required?: boolean | undefined;
|
|
2074
|
+
is_filterable?: boolean | undefined;
|
|
2075
|
+
}>, {
|
|
2076
|
+
title: string;
|
|
2077
|
+
values?: string[] | undefined;
|
|
2078
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2079
|
+
value?: string | number | boolean | undefined;
|
|
2080
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2081
|
+
description?: string | null | undefined;
|
|
2082
|
+
is_variant_axis?: boolean | undefined;
|
|
2083
|
+
is_required?: boolean | undefined;
|
|
2084
|
+
is_filterable?: boolean | undefined;
|
|
2085
|
+
}, {
|
|
2086
|
+
title: string;
|
|
2087
|
+
values?: string[] | undefined;
|
|
2088
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2089
|
+
value?: string | number | boolean | undefined;
|
|
2090
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2091
|
+
description?: string | null | undefined;
|
|
2092
|
+
is_variant_axis?: boolean | undefined;
|
|
2093
|
+
is_required?: boolean | undefined;
|
|
2094
|
+
is_filterable?: boolean | undefined;
|
|
2084
2095
|
}>]>, "many">>;
|
|
2085
|
-
|
|
2096
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2097
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2098
|
+
id: z.ZodString;
|
|
2099
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2101
|
+
value: z.ZodString;
|
|
2102
|
+
}, "strict", z.ZodTypeAny, {
|
|
2103
|
+
value: string;
|
|
2104
|
+
}, {
|
|
2105
|
+
value: string;
|
|
2106
|
+
}>]>, "many">>;
|
|
2107
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2108
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2109
|
+
}, "strict", z.ZodTypeAny, {
|
|
2110
|
+
id: string;
|
|
2111
|
+
value?: string | number | boolean | undefined;
|
|
2112
|
+
title?: string | undefined;
|
|
2113
|
+
add?: (string | {
|
|
2114
|
+
value: string;
|
|
2115
|
+
})[] | undefined;
|
|
2116
|
+
remove?: string[] | undefined;
|
|
2117
|
+
}, {
|
|
2118
|
+
id: string;
|
|
2119
|
+
value?: string | number | boolean | undefined;
|
|
2120
|
+
title?: string | undefined;
|
|
2121
|
+
add?: (string | {
|
|
2122
|
+
value: string;
|
|
2123
|
+
})[] | undefined;
|
|
2124
|
+
remove?: string[] | undefined;
|
|
2125
|
+
}>, "many">>;
|
|
2086
2126
|
}, "strip", z.ZodTypeAny, {
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2127
|
+
update?: {
|
|
2128
|
+
id: string;
|
|
2129
|
+
value?: string | number | boolean | undefined;
|
|
2130
|
+
title?: string | undefined;
|
|
2131
|
+
add?: (string | {
|
|
2132
|
+
value: string;
|
|
2133
|
+
})[] | undefined;
|
|
2134
|
+
remove?: string[] | undefined;
|
|
2135
|
+
}[] | undefined;
|
|
2136
|
+
add?: ({
|
|
2137
|
+
id: string;
|
|
2138
|
+
value?: string | number | boolean | undefined;
|
|
2139
|
+
value_ids?: string[] | undefined;
|
|
2090
2140
|
} | {
|
|
2091
|
-
|
|
2092
|
-
|
|
2141
|
+
title: string;
|
|
2142
|
+
values?: string[] | undefined;
|
|
2143
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2144
|
+
value?: string | number | boolean | undefined;
|
|
2145
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2146
|
+
description?: string | null | undefined;
|
|
2147
|
+
is_variant_axis?: boolean | undefined;
|
|
2148
|
+
is_required?: boolean | undefined;
|
|
2149
|
+
is_filterable?: boolean | undefined;
|
|
2093
2150
|
})[] | undefined;
|
|
2094
|
-
|
|
2151
|
+
remove?: string[] | undefined;
|
|
2095
2152
|
}, {
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2153
|
+
update?: {
|
|
2154
|
+
id: string;
|
|
2155
|
+
value?: string | number | boolean | undefined;
|
|
2156
|
+
title?: string | undefined;
|
|
2157
|
+
add?: (string | {
|
|
2158
|
+
value: string;
|
|
2159
|
+
})[] | undefined;
|
|
2160
|
+
remove?: string[] | undefined;
|
|
2161
|
+
}[] | undefined;
|
|
2162
|
+
add?: ({
|
|
2163
|
+
id: string;
|
|
2164
|
+
value?: string | number | boolean | undefined;
|
|
2165
|
+
value_ids?: string[] | undefined;
|
|
2099
2166
|
} | {
|
|
2100
|
-
|
|
2101
|
-
|
|
2167
|
+
title: string;
|
|
2168
|
+
values?: string[] | undefined;
|
|
2169
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2170
|
+
value?: string | number | boolean | undefined;
|
|
2171
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2172
|
+
description?: string | null | undefined;
|
|
2173
|
+
is_variant_axis?: boolean | undefined;
|
|
2174
|
+
is_required?: boolean | undefined;
|
|
2175
|
+
is_filterable?: boolean | undefined;
|
|
2102
2176
|
})[] | undefined;
|
|
2103
|
-
|
|
2177
|
+
remove?: string[] | undefined;
|
|
2104
2178
|
}>;
|
|
2105
2179
|
export {};
|