@mercurjs/core 2.2.0-canary.29 → 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 +0 -7
- package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.js +1 -8
- package/.medusa/server/src/api/admin/claims/[id]/request/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/claims/[id]/request/route.js +1 -7
- package/.medusa/server/src/api/admin/collections/middlewares.js +1 -7
- package/.medusa/server/src/api/admin/collections/validators.d.ts +20 -29
- package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +40 -39
- package/.medusa/server/src/api/admin/customer-groups/middlewares.js +1 -6
- package/.medusa/server/src/api/admin/customer-groups/validators.d.ts +55 -551
- package/.medusa/server/src/api/admin/customer-groups/validators.js +2 -3
- package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.d.ts +0 -8
- package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.js +1 -9
- package/.medusa/server/src/api/admin/exchanges/[id]/request/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/exchanges/[id]/request/route.js +1 -7
- package/.medusa/server/src/api/admin/members/validators.d.ts +12 -13
- package/.medusa/server/src/api/admin/offers/validators.d.ts +16 -17
- package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.d.ts +0 -9
- package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.js +1 -10
- package/.medusa/server/src/api/admin/order-edits/[id]/items/route.d.ts +0 -11
- package/.medusa/server/src/api/admin/order-edits/[id]/items/route.js +1 -12
- package/.medusa/server/src/api/admin/order-groups/apply-request-filter.js +4 -10
- package/.medusa/server/src/api/admin/order-groups/validators.d.ts +16 -17
- package/.medusa/server/src/api/admin/order-groups/validators.js +1 -6
- package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.d.ts +0 -9
- package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.js +1 -10
- package/.medusa/server/src/api/admin/orders/validators.d.ts +1 -333
- package/.medusa/server/src/api/admin/payouts/validators.d.ts +16 -17
- package/.medusa/server/src/api/admin/product-attributes/middlewares.js +1 -3
- package/.medusa/server/src/api/admin/product-attributes/route.js +1 -4
- package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +99 -110
- package/.medusa/server/src/api/admin/product-attributes/validators.js +1 -3
- package/.medusa/server/src/api/admin/product-categories/validators.d.ts +87 -89
- 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 +1 -8
- package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.js +1 -8
- package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +6 -9
- package/.medusa/server/src/api/admin/products/[id]/confirm/route.d.ts +0 -12
- package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +1 -13
- package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +0 -7
- package/.medusa/server/src/api/admin/products/[id]/preview/route.js +1 -8
- package/.medusa/server/src/api/admin/products/[id]/reject/route.d.ts +0 -8
- package/.medusa/server/src/api/admin/products/[id]/reject/route.js +1 -9
- package/.medusa/server/src/api/admin/products/[id]/request-changes/route.d.ts +0 -9
- package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +1 -10
- package/.medusa/server/src/api/admin/products/[id]/route.js +2 -6
- package/.medusa/server/src/api/admin/products/[id]/sellers/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/products/[id]/sellers/route.js +13 -0
- package/.medusa/server/src/api/admin/products/middlewares.js +4 -42
- package/.medusa/server/src/api/admin/products/query-config.js +41 -16
- package/.medusa/server/src/api/admin/products/route.js +2 -5
- package/.medusa/server/src/api/admin/products/validators.d.ts +512 -1288
- package/.medusa/server/src/api/admin/products/validators.js +55 -96
- package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.d.ts +0 -6
- package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.js +1 -7
- package/.medusa/server/src/api/admin/sellers/middlewares.js +1 -20
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +59 -79
- 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/offers/validators.d.ts +19 -20
- package/.medusa/server/src/api/store/order-groups/validators.d.ts +14 -15
- 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 +1 -5
- package/.medusa/server/src/api/store/products/middlewares.js +1 -7
- package/.medusa/server/src/api/store/products/query-config.js +23 -7
- package/.medusa/server/src/api/store/products/validators.d.ts +69 -65
- package/.medusa/server/src/api/store/sellers/validators.d.ts +35 -34
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.d.ts +0 -15
- package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +22 -26
- package/.medusa/server/src/api/utils/format-product-attributes.d.ts +5 -50
- package/.medusa/server/src/api/utils/format-product-attributes.js +90 -166
- package/.medusa/server/src/api/utils/index.d.ts +1 -0
- package/.medusa/server/src/api/utils/index.js +2 -1
- package/.medusa/server/src/api/utils/offers.d.ts +2 -29
- package/.medusa/server/src/api/utils/offers.js +3 -40
- package/.medusa/server/src/api/utils/order-commission-lines.d.ts +0 -7
- package/.medusa/server/src/api/utils/order-commission-lines.js +1 -8
- 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/vendor/campaigns/validators.d.ts +12 -13
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.d.ts +0 -6
- package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.js +1 -7
- package/.medusa/server/src/api/vendor/claims/[id]/request/route.js +1 -4
- package/.medusa/server/src/api/vendor/claims/validators.d.ts +14 -15
- package/.medusa/server/src/api/vendor/collections/validators.d.ts +18 -19
- package/.medusa/server/src/api/vendor/currencies/validators.d.ts +12 -13
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +16 -17
- package/.medusa/server/src/api/vendor/customers/[id]/customer-groups/route.js +1 -2
- package/.medusa/server/src/api/vendor/customers/[id]/route.js +1 -3
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +35 -34
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.d.ts +0 -6
- package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.js +1 -7
- package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.js +1 -4
- package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +13 -14
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +24 -23
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +98 -104
- package/.medusa/server/src/api/vendor/offers/validators.d.ts +20 -25
- package/.medusa/server/src/api/vendor/offers/validators.js +1 -5
- package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.d.ts +0 -11
- package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.js +1 -12
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.d.ts +0 -9
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.js +1 -10
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.d.ts +0 -6
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.js +1 -7
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.d.ts +0 -12
- package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.js +1 -13
- package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.d.ts +0 -7
- package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.js +1 -8
- package/.medusa/server/src/api/vendor/order-edits/[id]/route.d.ts +0 -7
- package/.medusa/server/src/api/vendor/order-edits/[id]/route.js +1 -8
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.d.ts +0 -9
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.js +1 -10
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.d.ts +0 -5
- package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.js +1 -6
- package/.medusa/server/src/api/vendor/order-edits/middlewares.js +1 -13
- package/.medusa/server/src/api/vendor/order-edits/route.d.ts +0 -6
- package/.medusa/server/src/api/vendor/order-edits/route.js +1 -7
- package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +0 -6
- package/.medusa/server/src/api/vendor/order-edits/validators.js +1 -1
- package/.medusa/server/src/api/vendor/orders/apply-request-filter.js +1 -4
- package/.medusa/server/src/api/vendor/orders/resolve-offer-items.d.ts +0 -18
- package/.medusa/server/src/api/vendor/orders/resolve-offer-items.js +1 -1
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +19 -20
- package/.medusa/server/src/api/vendor/payment-collections/validators.d.ts +1 -1
- package/.medusa/server/src/api/vendor/payments/helpers.d.ts +0 -9
- package/.medusa/server/src/api/vendor/payments/helpers.js +1 -10
- package/.medusa/server/src/api/vendor/payments/validators.d.ts +36 -36
- package/.medusa/server/src/api/vendor/payout-accounts/validators.d.ts +11 -12
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +16 -17
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +26 -28
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +12 -13
- package/.medusa/server/src/api/vendor/product-attributes/route.js +1 -3
- package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +74 -86
- package/.medusa/server/src/api/vendor/product-attributes/validators.js +1 -1
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +2 -2
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +89 -83
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +12 -13
- 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 +2 -9
- package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.js +3 -27
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.d.ts +0 -6
- package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +1 -7
- package/.medusa/server/src/api/vendor/products/[id]/preview/route.d.ts +0 -9
- package/.medusa/server/src/api/vendor/products/[id]/preview/route.js +1 -10
- package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +0 -14
- package/.medusa/server/src/api/vendor/products/[id]/route.js +3 -21
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +0 -8
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +2 -16
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +0 -7
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +2 -9
- package/.medusa/server/src/api/vendor/products/helpers.d.ts +6 -5
- package/.medusa/server/src/api/vendor/products/helpers.js +54 -10
- package/.medusa/server/src/api/vendor/products/middlewares.js +14 -65
- package/.medusa/server/src/api/vendor/products/query-config.js +44 -15
- package/.medusa/server/src/api/vendor/products/route.d.ts +0 -9
- package/.medusa/server/src/api/vendor/products/route.js +7 -21
- package/.medusa/server/src/api/vendor/products/validators.d.ts +404 -830
- package/.medusa/server/src/api/vendor/products/validators.js +59 -112
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +43 -45
- package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +16 -17
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +16 -17
- package/.medusa/server/src/api/vendor/reservations/[id]/route.js +1 -1
- package/.medusa/server/src/api/vendor/reservations/helpers.js +1 -4
- package/.medusa/server/src/api/vendor/reservations/query-config.js +1 -4
- package/.medusa/server/src/api/vendor/reservations/route.js +1 -1
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +22 -23
- package/.medusa/server/src/api/vendor/reservations/validators.js +1 -1
- package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +16 -17
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +22 -23
- package/.medusa/server/src/api/vendor/sales-channels/helpers.js +6 -1
- 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 +1 -4
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +16 -37
- package/.medusa/server/src/api/vendor/sellers/validators.js +1 -4
- package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +16 -17
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +33 -34
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +16 -17
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +16 -17
- package/.medusa/server/src/api/vendor/stores/validators.d.ts +12 -13
- package/.medusa/server/src/links/product-attribute-category-link.d.ts +6 -11
- package/.medusa/server/src/links/product-attribute-category-link.js +10 -20
- package/.medusa/server/src/links/product-attribute-option-mirror-link.d.ts +6 -0
- package/.medusa/server/src/links/product-attribute-option-mirror-link.js +24 -0
- package/.medusa/server/src/links/product-attribute-product-link.d.ts +0 -5
- package/.medusa/server/src/links/product-attribute-product-link.js +2 -7
- package/.medusa/server/src/links/product-attribute-value-option-value-mirror-link.d.ts +6 -0
- package/.medusa/server/src/links/product-attribute-value-option-value-mirror-link.js +24 -0
- package/.medusa/server/src/links/{product-variant-attribute-link.d.ts → product-attribute-value-pivot-link.d.ts} +3 -0
- package/.medusa/server/src/links/product-attribute-value-pivot-link.js +23 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000002.d.ts +14 -0
- package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000002.js +31 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.d.ts +2 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +2 -1
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +2 -0
- package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +2 -1
- package/.medusa/server/src/modules/product-attribute/service.d.ts +18 -3
- package/.medusa/server/src/modules/product-attribute/service.js +213 -1
- package/.medusa/server/src/modules/seller/repositories/order-group.js +1 -11
- package/.medusa/server/src/modules/seller/service.js +1 -2
- package/.medusa/server/src/workflows/cart/hooks/validate.js +1 -12
- package/.medusa/server/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.js +3 -5
- package/.medusa/server/src/workflows/cart/utils/fields.js +1 -13
- 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 +1 -24
- 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/upsert-commission-lines.d.ts +0 -4
- package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.js +1 -5
- package/.medusa/server/src/workflows/commission/steps/validate-commission-rates-deletable.d.ts +0 -3
- package/.medusa/server/src/workflows/commission/steps/validate-commission-rates-deletable.js +1 -4
- package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.d.ts +1 -2
- package/.medusa/server/src/workflows/media/steps/create-images.d.ts +0 -3
- package/.medusa/server/src/workflows/media/steps/create-images.js +1 -4
- package/.medusa/server/src/workflows/media/steps/delete-images.d.ts +0 -3
- package/.medusa/server/src/workflows/media/steps/delete-images.js +1 -4
- package/.medusa/server/src/workflows/media/workflows/create-product-category-with-images.d.ts +0 -8
- package/.medusa/server/src/workflows/media/workflows/create-product-category-with-images.js +1 -6
- package/.medusa/server/src/workflows/media/workflows/create-product-collection-with-images.d.ts +0 -8
- package/.medusa/server/src/workflows/media/workflows/create-product-collection-with-images.js +1 -6
- package/.medusa/server/src/workflows/media/workflows/delete-product-category-with-images.d.ts +0 -4
- package/.medusa/server/src/workflows/media/workflows/delete-product-category-with-images.js +1 -6
- package/.medusa/server/src/workflows/media/workflows/delete-product-collection-with-images.d.ts +0 -5
- package/.medusa/server/src/workflows/media/workflows/delete-product-collection-with-images.js +1 -7
- package/.medusa/server/src/workflows/media/workflows/set-category-images.d.ts +0 -11
- package/.medusa/server/src/workflows/media/workflows/set-category-images.js +1 -10
- package/.medusa/server/src/workflows/media/workflows/set-collection-images.d.ts +0 -12
- package/.medusa/server/src/workflows/media/workflows/set-collection-images.js +1 -11
- package/.medusa/server/src/workflows/media/workflows/update-product-category-with-images.d.ts +0 -7
- package/.medusa/server/src/workflows/media/workflows/update-product-category-with-images.js +1 -5
- package/.medusa/server/src/workflows/media/workflows/update-product-collection-with-images.d.ts +0 -7
- package/.medusa/server/src/workflows/media/workflows/update-product-collection-with-images.js +1 -5
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.d.ts +0 -12
- package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +1 -16
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +0 -9
- package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +1 -10
- package/.medusa/server/src/workflows/offer/steps/update-offers.d.ts +0 -5
- package/.medusa/server/src/workflows/offer/steps/update-offers.js +1 -1
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.d.ts +0 -11
- package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +1 -12
- package/.medusa/server/src/workflows/offer/utils/prepare-offer-inventory-input.d.ts +0 -10
- package/.medusa/server/src/workflows/offer/utils/prepare-offer-inventory-input.js +1 -19
- package/.medusa/server/src/workflows/offer/workflows/create-offers.js +1 -14
- package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +0 -11
- package/.medusa/server/src/workflows/offer/workflows/update-offers.js +1 -22
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +1 -2
- package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +1 -2
- package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.js +1 -3
- package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.js +1 -8
- package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.js +1 -1
- package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +1 -9
- package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +2 -3
- package/.medusa/server/src/workflows/order-group/utils/aggregate-status.js +1 -7
- package/.medusa/server/src/workflows/product/events.d.ts +0 -6
- package/.medusa/server/src/workflows/product/events.js +1 -7
- package/.medusa/server/src/workflows/product/steps/index.d.ts +0 -2
- package/.medusa/server/src/workflows/product/steps/index.js +1 -3
- package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +0 -8
- package/.medusa/server/src/workflows/product/steps/validate-products-status.js +1 -9
- package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +1 -3
- package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +0 -16
- package/.medusa/server/src/workflows/product/workflows/confirm-products.js +1 -13
- package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +4 -74
- package/.medusa/server/src/workflows/product/workflows/create-products.js +70 -209
- package/.medusa/server/src/workflows/product/workflows/index.d.ts +0 -1
- package/.medusa/server/src/workflows/product/workflows/index.js +1 -2
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +1 -1
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +1 -1
- package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +0 -7
- package/.medusa/server/src/workflows/product/workflows/reject-product.js +1 -8
- package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +0 -14
- package/.medusa/server/src/workflows/product/workflows/request-product-change.js +1 -15
- package/.medusa/server/src/workflows/product-attribute/events.d.ts +0 -9
- package/.medusa/server/src/workflows/product-attribute/events.js +1 -10
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.d.ts +1 -31
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.d.ts +1 -41
- package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +1 -1
- package/.medusa/server/src/workflows/product-attribute/steps/detach-product-option-values-from-product.d.ts +14 -0
- package/.medusa/server/src/workflows/product-attribute/steps/detach-product-option-values-from-product.js +40 -0
- package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +3 -4
- package/.medusa/server/src/workflows/product-attribute/steps/index.js +4 -5
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +6 -3
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +17 -2
- package/.medusa/server/src/workflows/product-attribute/steps/update-product-attributes.d.ts +1 -31
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-linked.d.ts +2 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-linked.js +28 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-required.d.ts +7 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-required.js +16 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attributes-to-product.d.ts +9 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attributes-to-product.js +242 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-product-attributes.d.ts +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.js +44 -3
- package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.js +41 -17
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.js +36 -15
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +0 -7
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +11 -8
- package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +4 -6
- package/.medusa/server/src/workflows/product-attribute/workflows/index.js +5 -7
- package/.medusa/server/src/workflows/product-attribute/workflows/remove-product-attributes-from-product.d.ts +10 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/remove-product-attributes-from-product.js +83 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.js +34 -1
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes-on-product.d.ts +11 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes-on-product.js +285 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.js +15 -1
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +4 -11
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +19 -19
- package/.medusa/server/src/workflows/product-edit/events.d.ts +0 -7
- package/.medusa/server/src/workflows/product-edit/events.js +1 -8
- package/.medusa/server/src/workflows/product-edit/steps/apply-variant-image-links.d.ts +2 -10
- package/.medusa/server/src/workflows/product-edit/steps/apply-variant-image-links.js +3 -9
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.d.ts +0 -4
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +1 -5
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +0 -6
- package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +1 -7
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +0 -5
- package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +1 -6
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +0 -6
- package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +1 -1
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +0 -5
- package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +1 -6
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +0 -5
- package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +1 -6
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +0 -6
- package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +2 -8
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.d.ts +5 -19
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +11 -128
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +0 -31
- package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +27 -56
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +0 -14
- package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +1 -10
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.d.ts +0 -11
- package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +1 -12
- package/.medusa/server/src/workflows/product-edit/workflows/index.d.ts +1 -1
- package/.medusa/server/src/workflows/product-edit/workflows/index.js +2 -2
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +0 -12
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +1 -13
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +4 -46
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +11 -162
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-product.d.ts +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 +0 -10
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +1 -45
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +0 -24
- package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +1 -15
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.d.ts +0 -30
- package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +1 -15
- package/.medusa/server/src/workflows/promotion/steps/register-usage.d.ts +0 -3
- package/.medusa/server/src/workflows/promotion/steps/register-usage.js +1 -4
- package/.medusa/server/src/workflows/seller/workflows/accept-member-invite.js +1 -2
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +1 -2
- package/package.json +15 -15
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +0 -13
- package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +0 -90
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +0 -5
- package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +0 -63
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +0 -22
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +0 -97
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +0 -15
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +0 -80
- package/.medusa/server/src/links/product-attribute-value-link.d.ts +0 -22
- package/.medusa/server/src/links/product-attribute-value-link.js +0 -46
- package/.medusa/server/src/links/product-variant-attribute-link.js +0 -21
- package/.medusa/server/src/links/product-variant-attribute-value-link.d.ts +0 -2
- package/.medusa/server/src/links/product-variant-attribute-value-link.js +0 -21
- package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.d.ts +0 -28
- package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.js +0 -72
- package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.d.ts +0 -90
- package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.js +0 -185
- package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +0 -39
- package/.medusa/server/src/workflows/product/workflows/update-products.js +0 -161
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.d.ts +0 -43
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.js +0 -51
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.d.ts +0 -7
- package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.js +0 -59
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.d.ts +0 -6
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.js +0 -20
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.d.ts +0 -7
- package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.js +0 -20
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.d.ts +0 -52
- package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.js +0 -120
- package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.d.ts +0 -23
- package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.js +0 -252
- package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.d.ts +0 -17
- package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.js +0 -62
- package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.d.ts +0 -135
- package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.js +0 -43
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.d.ts +0 -24
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.js +0 -27
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.d.ts +0 -23
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.js +0 -67
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +0 -25
- package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +0 -148
|
@@ -22,7 +22,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
22
22
|
ean: z.ZodOptional<z.ZodString>;
|
|
23
23
|
upc: z.ZodOptional<z.ZodString>;
|
|
24
24
|
barcode: z.ZodOptional<z.ZodString>;
|
|
25
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
25
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
26
26
|
$eq: any;
|
|
27
27
|
$ne: any;
|
|
28
28
|
$in: any;
|
|
@@ -35,7 +35,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
35
35
|
$gte: any;
|
|
36
36
|
$lt: any;
|
|
37
37
|
$lte: any;
|
|
38
|
-
},
|
|
38
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
39
39
|
$eq?: any;
|
|
40
40
|
$ne?: any;
|
|
41
41
|
$in?: any;
|
|
@@ -62,7 +62,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
62
62
|
$lt?: any;
|
|
63
63
|
$lte?: any;
|
|
64
64
|
}>]>>;
|
|
65
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
65
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
66
66
|
$eq: any;
|
|
67
67
|
$ne: any;
|
|
68
68
|
$in: any;
|
|
@@ -75,7 +75,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
75
75
|
$gte: any;
|
|
76
76
|
$lt: any;
|
|
77
77
|
$lte: any;
|
|
78
|
-
},
|
|
78
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
79
79
|
$eq?: any;
|
|
80
80
|
$ne?: any;
|
|
81
81
|
$in?: any;
|
|
@@ -102,7 +102,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
102
102
|
$lt?: any;
|
|
103
103
|
$lte?: any;
|
|
104
104
|
}>]>>;
|
|
105
|
-
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
105
|
+
deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
106
106
|
$eq: any;
|
|
107
107
|
$ne: any;
|
|
108
108
|
$in: any;
|
|
@@ -115,7 +115,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
115
115
|
$gte: any;
|
|
116
116
|
$lt: any;
|
|
117
117
|
$lte: any;
|
|
118
|
-
},
|
|
118
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
119
119
|
$eq?: any;
|
|
120
120
|
$ne?: any;
|
|
121
121
|
$in?: any;
|
|
@@ -142,43 +142,45 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
142
142
|
$lt?: any;
|
|
143
143
|
$lte?: any;
|
|
144
144
|
}>]>>;
|
|
145
|
-
has_offer:
|
|
145
|
+
has_offer: any;
|
|
146
146
|
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
147
|
+
[x: string]: any;
|
|
148
|
+
q?: unknown;
|
|
149
|
+
id?: unknown;
|
|
150
|
+
title?: unknown;
|
|
151
|
+
handle?: unknown;
|
|
152
|
+
status?: unknown;
|
|
153
|
+
collection_id?: unknown;
|
|
154
|
+
type_id?: unknown;
|
|
155
|
+
category_id?: unknown;
|
|
156
|
+
tag_id?: unknown;
|
|
157
|
+
sku?: unknown;
|
|
158
|
+
ean?: unknown;
|
|
159
|
+
upc?: unknown;
|
|
160
|
+
barcode?: unknown;
|
|
161
|
+
created_at?: unknown;
|
|
162
|
+
updated_at?: unknown;
|
|
163
|
+
deleted_at?: unknown;
|
|
164
|
+
has_offer?: unknown;
|
|
164
165
|
}, {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
166
|
+
[x: string]: any;
|
|
167
|
+
q?: unknown;
|
|
168
|
+
id?: unknown;
|
|
169
|
+
title?: unknown;
|
|
170
|
+
handle?: unknown;
|
|
171
|
+
status?: unknown;
|
|
172
|
+
collection_id?: unknown;
|
|
173
|
+
type_id?: unknown;
|
|
174
|
+
category_id?: unknown;
|
|
175
|
+
tag_id?: unknown;
|
|
176
|
+
sku?: unknown;
|
|
177
|
+
ean?: unknown;
|
|
178
|
+
upc?: unknown;
|
|
179
|
+
barcode?: unknown;
|
|
180
|
+
created_at?: unknown;
|
|
181
|
+
updated_at?: unknown;
|
|
182
|
+
deleted_at?: unknown;
|
|
183
|
+
has_offer?: unknown;
|
|
182
184
|
}>, "many">>>;
|
|
183
185
|
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
184
186
|
q: z.ZodOptional<z.ZodString>;
|
|
@@ -199,7 +201,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
199
201
|
ean: z.ZodOptional<z.ZodString>;
|
|
200
202
|
upc: z.ZodOptional<z.ZodString>;
|
|
201
203
|
barcode: z.ZodOptional<z.ZodString>;
|
|
202
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
204
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
203
205
|
$eq: any;
|
|
204
206
|
$ne: any;
|
|
205
207
|
$in: any;
|
|
@@ -212,7 +214,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
212
214
|
$gte: any;
|
|
213
215
|
$lt: any;
|
|
214
216
|
$lte: any;
|
|
215
|
-
},
|
|
217
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
216
218
|
$eq?: any;
|
|
217
219
|
$ne?: any;
|
|
218
220
|
$in?: any;
|
|
@@ -239,7 +241,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
239
241
|
$lt?: any;
|
|
240
242
|
$lte?: any;
|
|
241
243
|
}>]>>;
|
|
242
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
244
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
243
245
|
$eq: any;
|
|
244
246
|
$ne: any;
|
|
245
247
|
$in: any;
|
|
@@ -252,7 +254,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
252
254
|
$gte: any;
|
|
253
255
|
$lt: any;
|
|
254
256
|
$lte: any;
|
|
255
|
-
},
|
|
257
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
256
258
|
$eq?: any;
|
|
257
259
|
$ne?: any;
|
|
258
260
|
$in?: any;
|
|
@@ -279,7 +281,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
279
281
|
$lt?: any;
|
|
280
282
|
$lte?: any;
|
|
281
283
|
}>]>>;
|
|
282
|
-
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
284
|
+
deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
283
285
|
$eq: any;
|
|
284
286
|
$ne: any;
|
|
285
287
|
$in: any;
|
|
@@ -292,7 +294,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
292
294
|
$gte: any;
|
|
293
295
|
$lt: any;
|
|
294
296
|
$lte: any;
|
|
295
|
-
},
|
|
297
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
296
298
|
$eq?: any;
|
|
297
299
|
$ne?: any;
|
|
298
300
|
$in?: any;
|
|
@@ -319,45 +321,47 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
319
321
|
$lt?: any;
|
|
320
322
|
$lte?: any;
|
|
321
323
|
}>]>>;
|
|
322
|
-
has_offer:
|
|
324
|
+
has_offer: any;
|
|
323
325
|
}, "strip", z.ZodTypeAny, {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
326
|
+
[x: string]: any;
|
|
327
|
+
q?: unknown;
|
|
328
|
+
id?: unknown;
|
|
329
|
+
title?: unknown;
|
|
330
|
+
handle?: unknown;
|
|
331
|
+
status?: unknown;
|
|
332
|
+
collection_id?: unknown;
|
|
333
|
+
type_id?: unknown;
|
|
334
|
+
category_id?: unknown;
|
|
335
|
+
tag_id?: unknown;
|
|
336
|
+
sku?: unknown;
|
|
337
|
+
ean?: unknown;
|
|
338
|
+
upc?: unknown;
|
|
339
|
+
barcode?: unknown;
|
|
340
|
+
created_at?: unknown;
|
|
341
|
+
updated_at?: unknown;
|
|
342
|
+
deleted_at?: unknown;
|
|
343
|
+
has_offer?: unknown;
|
|
341
344
|
}, {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
345
|
+
[x: string]: any;
|
|
346
|
+
q?: unknown;
|
|
347
|
+
id?: unknown;
|
|
348
|
+
title?: unknown;
|
|
349
|
+
handle?: unknown;
|
|
350
|
+
status?: unknown;
|
|
351
|
+
collection_id?: unknown;
|
|
352
|
+
type_id?: unknown;
|
|
353
|
+
category_id?: unknown;
|
|
354
|
+
tag_id?: unknown;
|
|
355
|
+
sku?: unknown;
|
|
356
|
+
ean?: unknown;
|
|
357
|
+
upc?: unknown;
|
|
358
|
+
barcode?: unknown;
|
|
359
|
+
created_at?: unknown;
|
|
360
|
+
updated_at?: unknown;
|
|
361
|
+
deleted_at?: unknown;
|
|
362
|
+
has_offer?: unknown;
|
|
359
363
|
}>, "many">>>;
|
|
360
|
-
},
|
|
364
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
361
365
|
[x: string]: any;
|
|
362
366
|
$and?: unknown;
|
|
363
367
|
$or?: unknown;
|
|
@@ -373,7 +377,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
373
377
|
export type VendorGetProductParamsType = z.infer<typeof VendorGetProductParams>;
|
|
374
378
|
export declare const VendorGetProductParams: z.ZodObject<{
|
|
375
379
|
fields: z.ZodOptional<z.ZodString>;
|
|
376
|
-
},
|
|
380
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
377
381
|
fields?: string | undefined;
|
|
378
382
|
}, {
|
|
379
383
|
fields?: string | undefined;
|
|
@@ -389,8 +393,8 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
389
393
|
readonly PUBLISHED: "published";
|
|
390
394
|
readonly REJECTED: "rejected";
|
|
391
395
|
}>>;
|
|
392
|
-
is_giftcard:
|
|
393
|
-
discountable:
|
|
396
|
+
is_giftcard: any;
|
|
397
|
+
discountable: any;
|
|
394
398
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
395
399
|
url: z.ZodString;
|
|
396
400
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -417,7 +421,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
417
421
|
}, {
|
|
418
422
|
id: string;
|
|
419
423
|
}>, "many">>;
|
|
420
|
-
/** Stock Medusa product options: drives variant generation. */
|
|
421
424
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
422
425
|
title: z.ZodString;
|
|
423
426
|
values: z.ZodArray<z.ZodString, "many">;
|
|
@@ -428,87 +431,49 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
428
431
|
values: string[];
|
|
429
432
|
title: string;
|
|
430
433
|
}>, "many">>;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
434
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
435
|
-
}, "strict", z.ZodTypeAny, {
|
|
436
|
-
attribute_id: string;
|
|
437
|
-
values?: string[] | undefined;
|
|
438
|
-
value_ids?: string[] | undefined;
|
|
439
|
-
}, {
|
|
440
|
-
attribute_id: string;
|
|
441
|
-
values?: string[] | undefined;
|
|
442
|
-
value_ids?: string[] | undefined;
|
|
443
|
-
}>, z.ZodObject<{
|
|
444
|
-
name: z.ZodString;
|
|
445
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
446
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
447
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
448
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
450
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
451
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
452
|
-
}, "strict", z.ZodTypeAny, {
|
|
453
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
454
|
-
name: string;
|
|
455
|
-
values?: string[] | undefined;
|
|
456
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
457
|
-
description?: string | null | undefined;
|
|
458
|
-
is_variant_axis?: boolean | undefined;
|
|
459
|
-
is_required?: boolean | undefined;
|
|
460
|
-
is_filterable?: boolean | undefined;
|
|
461
|
-
}, {
|
|
462
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
463
|
-
name: string;
|
|
464
|
-
values?: string[] | undefined;
|
|
465
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
466
|
-
description?: string | null | undefined;
|
|
467
|
-
is_variant_axis?: boolean | undefined;
|
|
468
|
-
is_required?: boolean | undefined;
|
|
469
|
-
is_filterable?: boolean | undefined;
|
|
470
|
-
}>]>, "many">>;
|
|
471
|
-
variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
472
|
-
attribute_id: z.ZodString;
|
|
434
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
435
|
+
id: z.ZodString;
|
|
473
436
|
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
474
|
-
|
|
437
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
475
438
|
}, "strict", z.ZodTypeAny, {
|
|
476
|
-
|
|
477
|
-
|
|
439
|
+
id: string;
|
|
440
|
+
value?: string | number | boolean | undefined;
|
|
478
441
|
value_ids?: string[] | undefined;
|
|
479
442
|
}, {
|
|
480
|
-
|
|
481
|
-
|
|
443
|
+
id: string;
|
|
444
|
+
value?: string | number | boolean | undefined;
|
|
482
445
|
value_ids?: string[] | undefined;
|
|
483
446
|
}>, z.ZodObject<{
|
|
484
|
-
|
|
485
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]
|
|
447
|
+
title: z.ZodString;
|
|
448
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
486
449
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
450
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
487
451
|
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
488
452
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
489
453
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
490
454
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
491
455
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
492
456
|
}, "strict", z.ZodTypeAny, {
|
|
493
|
-
|
|
494
|
-
name: string;
|
|
457
|
+
title: string;
|
|
495
458
|
values?: string[] | undefined;
|
|
496
459
|
metadata?: Record<string, unknown> | null | undefined;
|
|
460
|
+
value?: string | number | boolean | undefined;
|
|
461
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
497
462
|
description?: string | null | undefined;
|
|
498
463
|
is_variant_axis?: boolean | undefined;
|
|
499
464
|
is_required?: boolean | undefined;
|
|
500
465
|
is_filterable?: boolean | undefined;
|
|
501
466
|
}, {
|
|
502
|
-
|
|
503
|
-
name: string;
|
|
467
|
+
title: string;
|
|
504
468
|
values?: string[] | undefined;
|
|
505
469
|
metadata?: Record<string, unknown> | null | undefined;
|
|
470
|
+
value?: string | number | boolean | undefined;
|
|
471
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
506
472
|
description?: string | null | undefined;
|
|
507
473
|
is_variant_axis?: boolean | undefined;
|
|
508
474
|
is_required?: boolean | undefined;
|
|
509
475
|
is_filterable?: boolean | undefined;
|
|
510
476
|
}>]>, "many">>;
|
|
511
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
512
477
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
513
478
|
title: z.ZodString;
|
|
514
479
|
sku: z.ZodOptional<z.ZodString>;
|
|
@@ -528,9 +493,7 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
528
493
|
origin_country: z.ZodOptional<z.ZodString>;
|
|
529
494
|
material: z.ZodOptional<z.ZodString>;
|
|
530
495
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
531
|
-
/** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
|
|
532
496
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
533
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
534
497
|
}, "strict", z.ZodTypeAny, {
|
|
535
498
|
title: string;
|
|
536
499
|
options?: Record<string, string> | undefined;
|
|
@@ -551,7 +514,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
551
514
|
gtin?: string | undefined;
|
|
552
515
|
barcode?: string | undefined;
|
|
553
516
|
variant_rank?: number | undefined;
|
|
554
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
555
517
|
}, {
|
|
556
518
|
title: string;
|
|
557
519
|
options?: Record<string, string> | undefined;
|
|
@@ -572,7 +534,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
572
534
|
gtin?: string | undefined;
|
|
573
535
|
barcode?: string | undefined;
|
|
574
536
|
variant_rank?: number | undefined;
|
|
575
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
576
537
|
}>, "many">>;
|
|
577
538
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
578
539
|
length: z.ZodOptional<z.ZodNumber>;
|
|
@@ -584,188 +545,70 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
584
545
|
material: z.ZodOptional<z.ZodString>;
|
|
585
546
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
586
547
|
}, "strict", z.ZodTypeAny, {
|
|
587
|
-
title: string;
|
|
588
|
-
is_giftcard: boolean;
|
|
589
|
-
discountable: boolean;
|
|
590
|
-
options?: {
|
|
591
|
-
values: string[];
|
|
592
|
-
title: string;
|
|
593
|
-
}[] | undefined;
|
|
594
|
-
length?: number | undefined;
|
|
595
|
-
metadata?: Record<string, unknown> | undefined;
|
|
596
|
-
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
597
|
-
handle?: string | undefined;
|
|
598
|
-
description?: string | undefined;
|
|
599
|
-
external_id?: string | undefined;
|
|
600
|
-
thumbnail?: string | undefined;
|
|
601
|
-
collection_id?: string | undefined;
|
|
602
|
-
type_id?: string | undefined;
|
|
603
|
-
subtitle?: string | undefined;
|
|
604
|
-
weight?: number | undefined;
|
|
605
|
-
height?: number | undefined;
|
|
606
|
-
width?: number | undefined;
|
|
607
|
-
hs_code?: string | undefined;
|
|
608
|
-
origin_country?: string | undefined;
|
|
609
|
-
mid_code?: string | undefined;
|
|
610
|
-
material?: string | undefined;
|
|
611
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
612
|
-
images?: {
|
|
613
|
-
url: string;
|
|
614
|
-
}[] | undefined;
|
|
615
|
-
categories?: {
|
|
616
|
-
id: string;
|
|
617
|
-
}[] | undefined;
|
|
618
|
-
tags?: {
|
|
619
|
-
id: string;
|
|
620
|
-
}[] | undefined;
|
|
621
|
-
variant_attributes?: ({
|
|
622
|
-
attribute_id: string;
|
|
623
|
-
values?: string[] | undefined;
|
|
624
|
-
value_ids?: string[] | undefined;
|
|
625
|
-
} | {
|
|
626
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
627
|
-
name: string;
|
|
628
|
-
values?: string[] | undefined;
|
|
629
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
630
|
-
description?: string | null | undefined;
|
|
631
|
-
is_variant_axis?: boolean | undefined;
|
|
632
|
-
is_required?: boolean | undefined;
|
|
633
|
-
is_filterable?: boolean | undefined;
|
|
634
|
-
})[] | undefined;
|
|
635
|
-
product_attributes?: ({
|
|
636
|
-
attribute_id: string;
|
|
637
|
-
values?: string[] | undefined;
|
|
638
|
-
value_ids?: string[] | undefined;
|
|
639
|
-
} | {
|
|
640
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
641
|
-
name: string;
|
|
642
|
-
values?: string[] | undefined;
|
|
643
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
644
|
-
description?: string | null | undefined;
|
|
645
|
-
is_variant_axis?: boolean | undefined;
|
|
646
|
-
is_required?: boolean | undefined;
|
|
647
|
-
is_filterable?: boolean | undefined;
|
|
648
|
-
})[] | undefined;
|
|
649
|
-
variants?: {
|
|
650
|
-
title: string;
|
|
651
|
-
options?: Record<string, string> | undefined;
|
|
652
|
-
length?: number | undefined;
|
|
653
|
-
metadata?: Record<string, unknown> | undefined;
|
|
654
|
-
sku?: string | undefined;
|
|
655
|
-
ean?: string | undefined;
|
|
656
|
-
upc?: string | undefined;
|
|
657
|
-
weight?: number | undefined;
|
|
658
|
-
height?: number | undefined;
|
|
659
|
-
width?: number | undefined;
|
|
660
|
-
hs_code?: string | undefined;
|
|
661
|
-
origin_country?: string | undefined;
|
|
662
|
-
mid_code?: string | undefined;
|
|
663
|
-
material?: string | undefined;
|
|
664
|
-
isbn?: string | undefined;
|
|
665
|
-
asin?: string | undefined;
|
|
666
|
-
gtin?: string | undefined;
|
|
667
|
-
barcode?: string | undefined;
|
|
668
|
-
variant_rank?: number | undefined;
|
|
669
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
670
|
-
}[] | undefined;
|
|
671
|
-
}, {
|
|
672
|
-
title: string;
|
|
673
|
-
options?: {
|
|
674
|
-
values: string[];
|
|
675
|
-
title: string;
|
|
676
|
-
}[] | undefined;
|
|
677
|
-
length?: number | undefined;
|
|
678
|
-
metadata?: Record<string, unknown> | undefined;
|
|
679
|
-
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
680
|
-
handle?: string | undefined;
|
|
681
|
-
description?: string | undefined;
|
|
682
|
-
external_id?: string | undefined;
|
|
683
|
-
thumbnail?: string | undefined;
|
|
684
|
-
collection_id?: string | undefined;
|
|
685
|
-
type_id?: string | undefined;
|
|
686
|
-
subtitle?: string | undefined;
|
|
687
|
-
is_giftcard?: string | boolean | undefined;
|
|
688
|
-
discountable?: string | boolean | undefined;
|
|
689
|
-
weight?: number | undefined;
|
|
690
|
-
height?: number | undefined;
|
|
691
|
-
width?: number | undefined;
|
|
692
|
-
hs_code?: string | undefined;
|
|
693
|
-
origin_country?: string | undefined;
|
|
694
|
-
mid_code?: string | undefined;
|
|
695
|
-
material?: string | undefined;
|
|
696
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
697
|
-
images?: {
|
|
698
|
-
url: string;
|
|
699
|
-
}[] | undefined;
|
|
700
|
-
categories?: {
|
|
701
|
-
id: string;
|
|
702
|
-
}[] | undefined;
|
|
703
|
-
tags?: {
|
|
704
|
-
id: string;
|
|
705
|
-
}[] | undefined;
|
|
706
|
-
variant_attributes?: ({
|
|
707
|
-
attribute_id: string;
|
|
708
|
-
values?: string[] | undefined;
|
|
709
|
-
value_ids?: string[] | undefined;
|
|
710
|
-
} | {
|
|
711
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
712
|
-
name: string;
|
|
713
|
-
values?: string[] | undefined;
|
|
714
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
715
|
-
description?: string | null | undefined;
|
|
716
|
-
is_variant_axis?: boolean | undefined;
|
|
717
|
-
is_required?: boolean | undefined;
|
|
718
|
-
is_filterable?: boolean | undefined;
|
|
719
|
-
})[] | undefined;
|
|
720
|
-
product_attributes?: ({
|
|
721
|
-
attribute_id: string;
|
|
722
|
-
values?: string[] | undefined;
|
|
723
|
-
value_ids?: string[] | undefined;
|
|
724
|
-
} | {
|
|
725
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
726
|
-
name: string;
|
|
727
|
-
values?: string[] | undefined;
|
|
728
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
729
|
-
description?: string | null | undefined;
|
|
730
|
-
is_variant_axis?: boolean | undefined;
|
|
731
|
-
is_required?: boolean | undefined;
|
|
732
|
-
is_filterable?: boolean | undefined;
|
|
733
|
-
})[] | undefined;
|
|
734
|
-
variants?: {
|
|
735
|
-
title: string;
|
|
736
|
-
options?: Record<string, string> | undefined;
|
|
737
|
-
length?: number | undefined;
|
|
738
|
-
metadata?: Record<string, unknown> | undefined;
|
|
739
|
-
sku?: string | undefined;
|
|
740
|
-
ean?: string | undefined;
|
|
741
|
-
upc?: string | undefined;
|
|
742
|
-
weight?: number | undefined;
|
|
743
|
-
height?: number | undefined;
|
|
744
|
-
width?: number | undefined;
|
|
745
|
-
hs_code?: string | undefined;
|
|
746
|
-
origin_country?: string | undefined;
|
|
747
|
-
mid_code?: string | undefined;
|
|
748
|
-
material?: string | undefined;
|
|
749
|
-
isbn?: string | undefined;
|
|
750
|
-
asin?: string | undefined;
|
|
751
|
-
gtin?: string | undefined;
|
|
752
|
-
barcode?: string | undefined;
|
|
753
|
-
variant_rank?: number | undefined;
|
|
754
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
755
|
-
}[] | undefined;
|
|
756
|
-
}>;
|
|
757
|
-
export declare const VendorCreateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
758
548
|
[x: string]: any;
|
|
549
|
+
title?: unknown;
|
|
550
|
+
subtitle?: unknown;
|
|
551
|
+
description?: unknown;
|
|
552
|
+
status?: unknown;
|
|
553
|
+
is_giftcard?: unknown;
|
|
554
|
+
discountable?: unknown;
|
|
555
|
+
images?: unknown;
|
|
556
|
+
thumbnail?: unknown;
|
|
557
|
+
handle?: unknown;
|
|
558
|
+
external_id?: unknown;
|
|
559
|
+
type_id?: unknown;
|
|
560
|
+
collection_id?: unknown;
|
|
561
|
+
categories?: unknown;
|
|
562
|
+
tags?: unknown;
|
|
563
|
+
options?: unknown;
|
|
564
|
+
attributes?: unknown;
|
|
565
|
+
variants?: unknown;
|
|
566
|
+
weight?: unknown;
|
|
567
|
+
length?: unknown;
|
|
568
|
+
height?: unknown;
|
|
569
|
+
width?: unknown;
|
|
570
|
+
hs_code?: unknown;
|
|
571
|
+
mid_code?: unknown;
|
|
572
|
+
origin_country?: unknown;
|
|
573
|
+
material?: unknown;
|
|
574
|
+
metadata?: unknown;
|
|
759
575
|
}, {
|
|
760
576
|
[x: string]: any;
|
|
761
|
-
|
|
577
|
+
title?: unknown;
|
|
578
|
+
subtitle?: unknown;
|
|
579
|
+
description?: unknown;
|
|
580
|
+
status?: unknown;
|
|
581
|
+
is_giftcard?: unknown;
|
|
582
|
+
discountable?: unknown;
|
|
583
|
+
images?: unknown;
|
|
584
|
+
thumbnail?: unknown;
|
|
585
|
+
handle?: unknown;
|
|
586
|
+
external_id?: unknown;
|
|
587
|
+
type_id?: unknown;
|
|
588
|
+
collection_id?: unknown;
|
|
589
|
+
categories?: unknown;
|
|
590
|
+
tags?: unknown;
|
|
591
|
+
options?: unknown;
|
|
592
|
+
attributes?: unknown;
|
|
593
|
+
variants?: unknown;
|
|
594
|
+
weight?: unknown;
|
|
595
|
+
length?: unknown;
|
|
596
|
+
height?: unknown;
|
|
597
|
+
width?: unknown;
|
|
598
|
+
hs_code?: unknown;
|
|
599
|
+
mid_code?: unknown;
|
|
600
|
+
origin_country?: unknown;
|
|
601
|
+
material?: unknown;
|
|
602
|
+
metadata?: unknown;
|
|
603
|
+
}>;
|
|
604
|
+
export declare const VendorCreateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
762
605
|
export type VendorUpdateProductType = z.infer<typeof UpdateProduct> & AdditionalData;
|
|
763
606
|
declare const UpdateProduct: z.ZodObject<{
|
|
764
607
|
title: z.ZodOptional<z.ZodString>;
|
|
765
608
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
766
609
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
767
|
-
discountable:
|
|
768
|
-
is_giftcard:
|
|
610
|
+
discountable: any;
|
|
611
|
+
is_giftcard: any;
|
|
769
612
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
770
613
|
id: z.ZodOptional<z.ZodString>;
|
|
771
614
|
url: z.ZodString;
|
|
@@ -805,87 +648,6 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
805
648
|
values: string[];
|
|
806
649
|
title: string;
|
|
807
650
|
}>, "many">>;
|
|
808
|
-
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
809
|
-
attribute_id: z.ZodString;
|
|
810
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
811
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
812
|
-
}, "strict", z.ZodTypeAny, {
|
|
813
|
-
attribute_id: string;
|
|
814
|
-
values?: string[] | undefined;
|
|
815
|
-
value_ids?: string[] | undefined;
|
|
816
|
-
}, {
|
|
817
|
-
attribute_id: string;
|
|
818
|
-
values?: string[] | undefined;
|
|
819
|
-
value_ids?: string[] | undefined;
|
|
820
|
-
}>, z.ZodObject<{
|
|
821
|
-
name: z.ZodString;
|
|
822
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
823
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
824
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
825
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
826
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
827
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
828
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
829
|
-
}, "strict", z.ZodTypeAny, {
|
|
830
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
831
|
-
name: string;
|
|
832
|
-
values?: string[] | undefined;
|
|
833
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
834
|
-
description?: string | null | undefined;
|
|
835
|
-
is_variant_axis?: boolean | undefined;
|
|
836
|
-
is_required?: boolean | undefined;
|
|
837
|
-
is_filterable?: boolean | undefined;
|
|
838
|
-
}, {
|
|
839
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
840
|
-
name: string;
|
|
841
|
-
values?: string[] | undefined;
|
|
842
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
843
|
-
description?: string | null | undefined;
|
|
844
|
-
is_variant_axis?: boolean | undefined;
|
|
845
|
-
is_required?: boolean | undefined;
|
|
846
|
-
is_filterable?: boolean | undefined;
|
|
847
|
-
}>]>, "many">>;
|
|
848
|
-
variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
849
|
-
attribute_id: z.ZodString;
|
|
850
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
851
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
852
|
-
}, "strict", z.ZodTypeAny, {
|
|
853
|
-
attribute_id: string;
|
|
854
|
-
values?: string[] | undefined;
|
|
855
|
-
value_ids?: string[] | undefined;
|
|
856
|
-
}, {
|
|
857
|
-
attribute_id: string;
|
|
858
|
-
values?: string[] | undefined;
|
|
859
|
-
value_ids?: string[] | undefined;
|
|
860
|
-
}>, z.ZodObject<{
|
|
861
|
-
name: z.ZodString;
|
|
862
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
863
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
864
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
865
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
866
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
867
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
868
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
869
|
-
}, "strict", z.ZodTypeAny, {
|
|
870
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
871
|
-
name: string;
|
|
872
|
-
values?: string[] | undefined;
|
|
873
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
874
|
-
description?: string | null | undefined;
|
|
875
|
-
is_variant_axis?: boolean | undefined;
|
|
876
|
-
is_required?: boolean | undefined;
|
|
877
|
-
is_filterable?: boolean | undefined;
|
|
878
|
-
}, {
|
|
879
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
880
|
-
name: string;
|
|
881
|
-
values?: string[] | undefined;
|
|
882
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
883
|
-
description?: string | null | undefined;
|
|
884
|
-
is_variant_axis?: boolean | undefined;
|
|
885
|
-
is_required?: boolean | undefined;
|
|
886
|
-
is_filterable?: boolean | undefined;
|
|
887
|
-
}>]>, "many">>;
|
|
888
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
889
651
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
890
652
|
id: z.ZodOptional<z.ZodString>;
|
|
891
653
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -908,7 +670,6 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
908
670
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
909
671
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
910
672
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
911
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
912
673
|
}, "strict", z.ZodTypeAny, {
|
|
913
674
|
options?: Record<string, string> | undefined;
|
|
914
675
|
length?: number | null | undefined;
|
|
@@ -931,7 +692,6 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
931
692
|
gtin?: string | null | undefined;
|
|
932
693
|
barcode?: string | null | undefined;
|
|
933
694
|
variant_rank?: number | undefined;
|
|
934
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
935
695
|
}, {
|
|
936
696
|
options?: Record<string, string> | undefined;
|
|
937
697
|
length?: number | null | undefined;
|
|
@@ -954,7 +714,6 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
954
714
|
gtin?: string | null | undefined;
|
|
955
715
|
barcode?: string | null | undefined;
|
|
956
716
|
variant_rank?: number | undefined;
|
|
957
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
958
717
|
}>, "many">>;
|
|
959
718
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
960
719
|
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -966,193 +725,67 @@ declare const UpdateProduct: z.ZodObject<{
|
|
|
966
725
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
967
726
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
968
727
|
}, "strict", z.ZodTypeAny, {
|
|
969
|
-
options?: {
|
|
970
|
-
values: string[];
|
|
971
|
-
title: string;
|
|
972
|
-
}[] | undefined;
|
|
973
|
-
length?: number | null | undefined;
|
|
974
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
975
|
-
title?: string | undefined;
|
|
976
|
-
handle?: string | null | undefined;
|
|
977
|
-
description?: string | null | undefined;
|
|
978
|
-
external_id?: string | null | undefined;
|
|
979
|
-
thumbnail?: string | null | undefined;
|
|
980
|
-
collection_id?: string | null | undefined;
|
|
981
|
-
type_id?: string | null | undefined;
|
|
982
|
-
subtitle?: string | null | undefined;
|
|
983
|
-
is_giftcard?: boolean | undefined;
|
|
984
|
-
discountable?: boolean | undefined;
|
|
985
|
-
weight?: number | null | undefined;
|
|
986
|
-
height?: number | null | undefined;
|
|
987
|
-
width?: number | null | undefined;
|
|
988
|
-
hs_code?: string | null | undefined;
|
|
989
|
-
origin_country?: string | null | undefined;
|
|
990
|
-
mid_code?: string | null | undefined;
|
|
991
|
-
material?: string | null | undefined;
|
|
992
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
993
|
-
images?: {
|
|
994
|
-
url: string;
|
|
995
|
-
id?: string | undefined;
|
|
996
|
-
}[] | undefined;
|
|
997
|
-
categories?: {
|
|
998
|
-
id: string;
|
|
999
|
-
}[] | undefined;
|
|
1000
|
-
tags?: {
|
|
1001
|
-
id: string;
|
|
1002
|
-
}[] | undefined;
|
|
1003
|
-
variant_attributes?: ({
|
|
1004
|
-
attribute_id: string;
|
|
1005
|
-
values?: string[] | undefined;
|
|
1006
|
-
value_ids?: string[] | undefined;
|
|
1007
|
-
} | {
|
|
1008
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1009
|
-
name: string;
|
|
1010
|
-
values?: string[] | undefined;
|
|
1011
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1012
|
-
description?: string | null | undefined;
|
|
1013
|
-
is_variant_axis?: boolean | undefined;
|
|
1014
|
-
is_required?: boolean | undefined;
|
|
1015
|
-
is_filterable?: boolean | undefined;
|
|
1016
|
-
})[] | undefined;
|
|
1017
|
-
product_attributes?: ({
|
|
1018
|
-
attribute_id: string;
|
|
1019
|
-
values?: string[] | undefined;
|
|
1020
|
-
value_ids?: string[] | undefined;
|
|
1021
|
-
} | {
|
|
1022
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1023
|
-
name: string;
|
|
1024
|
-
values?: string[] | undefined;
|
|
1025
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1026
|
-
description?: string | null | undefined;
|
|
1027
|
-
is_variant_axis?: boolean | undefined;
|
|
1028
|
-
is_required?: boolean | undefined;
|
|
1029
|
-
is_filterable?: boolean | undefined;
|
|
1030
|
-
})[] | undefined;
|
|
1031
|
-
variants?: {
|
|
1032
|
-
options?: Record<string, string> | undefined;
|
|
1033
|
-
length?: number | null | undefined;
|
|
1034
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1035
|
-
id?: string | undefined;
|
|
1036
|
-
sku?: string | null | undefined;
|
|
1037
|
-
ean?: string | null | undefined;
|
|
1038
|
-
upc?: string | null | undefined;
|
|
1039
|
-
title?: string | undefined;
|
|
1040
|
-
thumbnail?: string | null | undefined;
|
|
1041
|
-
weight?: number | null | undefined;
|
|
1042
|
-
height?: number | null | undefined;
|
|
1043
|
-
width?: number | null | undefined;
|
|
1044
|
-
hs_code?: string | null | undefined;
|
|
1045
|
-
origin_country?: string | null | undefined;
|
|
1046
|
-
mid_code?: string | null | undefined;
|
|
1047
|
-
material?: string | null | undefined;
|
|
1048
|
-
isbn?: string | null | undefined;
|
|
1049
|
-
asin?: string | null | undefined;
|
|
1050
|
-
gtin?: string | null | undefined;
|
|
1051
|
-
barcode?: string | null | undefined;
|
|
1052
|
-
variant_rank?: number | undefined;
|
|
1053
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1054
|
-
}[] | undefined;
|
|
1055
|
-
}, {
|
|
1056
|
-
options?: {
|
|
1057
|
-
values: string[];
|
|
1058
|
-
title: string;
|
|
1059
|
-
}[] | undefined;
|
|
1060
|
-
length?: number | null | undefined;
|
|
1061
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1062
|
-
title?: string | undefined;
|
|
1063
|
-
handle?: string | null | undefined;
|
|
1064
|
-
description?: string | null | undefined;
|
|
1065
|
-
external_id?: string | null | undefined;
|
|
1066
|
-
thumbnail?: string | null | undefined;
|
|
1067
|
-
collection_id?: string | null | undefined;
|
|
1068
|
-
type_id?: string | null | undefined;
|
|
1069
|
-
subtitle?: string | null | undefined;
|
|
1070
|
-
is_giftcard?: string | boolean | undefined;
|
|
1071
|
-
discountable?: string | boolean | undefined;
|
|
1072
|
-
weight?: number | null | undefined;
|
|
1073
|
-
height?: number | null | undefined;
|
|
1074
|
-
width?: number | null | undefined;
|
|
1075
|
-
hs_code?: string | null | undefined;
|
|
1076
|
-
origin_country?: string | null | undefined;
|
|
1077
|
-
mid_code?: string | null | undefined;
|
|
1078
|
-
material?: string | null | undefined;
|
|
1079
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1080
|
-
images?: {
|
|
1081
|
-
url: string;
|
|
1082
|
-
id?: string | undefined;
|
|
1083
|
-
}[] | undefined;
|
|
1084
|
-
categories?: {
|
|
1085
|
-
id: string;
|
|
1086
|
-
}[] | undefined;
|
|
1087
|
-
tags?: {
|
|
1088
|
-
id: string;
|
|
1089
|
-
}[] | undefined;
|
|
1090
|
-
variant_attributes?: ({
|
|
1091
|
-
attribute_id: string;
|
|
1092
|
-
values?: string[] | undefined;
|
|
1093
|
-
value_ids?: string[] | undefined;
|
|
1094
|
-
} | {
|
|
1095
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1096
|
-
name: string;
|
|
1097
|
-
values?: string[] | undefined;
|
|
1098
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1099
|
-
description?: string | null | undefined;
|
|
1100
|
-
is_variant_axis?: boolean | undefined;
|
|
1101
|
-
is_required?: boolean | undefined;
|
|
1102
|
-
is_filterable?: boolean | undefined;
|
|
1103
|
-
})[] | undefined;
|
|
1104
|
-
product_attributes?: ({
|
|
1105
|
-
attribute_id: string;
|
|
1106
|
-
values?: string[] | undefined;
|
|
1107
|
-
value_ids?: string[] | undefined;
|
|
1108
|
-
} | {
|
|
1109
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1110
|
-
name: string;
|
|
1111
|
-
values?: string[] | undefined;
|
|
1112
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1113
|
-
description?: string | null | undefined;
|
|
1114
|
-
is_variant_axis?: boolean | undefined;
|
|
1115
|
-
is_required?: boolean | undefined;
|
|
1116
|
-
is_filterable?: boolean | undefined;
|
|
1117
|
-
})[] | undefined;
|
|
1118
|
-
variants?: {
|
|
1119
|
-
options?: Record<string, string> | undefined;
|
|
1120
|
-
length?: number | null | undefined;
|
|
1121
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1122
|
-
id?: string | undefined;
|
|
1123
|
-
sku?: string | null | undefined;
|
|
1124
|
-
ean?: string | null | undefined;
|
|
1125
|
-
upc?: string | null | undefined;
|
|
1126
|
-
title?: string | undefined;
|
|
1127
|
-
thumbnail?: string | null | undefined;
|
|
1128
|
-
weight?: number | null | undefined;
|
|
1129
|
-
height?: number | null | undefined;
|
|
1130
|
-
width?: number | null | undefined;
|
|
1131
|
-
hs_code?: string | null | undefined;
|
|
1132
|
-
origin_country?: string | null | undefined;
|
|
1133
|
-
mid_code?: string | null | undefined;
|
|
1134
|
-
material?: string | null | undefined;
|
|
1135
|
-
isbn?: string | null | undefined;
|
|
1136
|
-
asin?: string | null | undefined;
|
|
1137
|
-
gtin?: string | null | undefined;
|
|
1138
|
-
barcode?: string | null | undefined;
|
|
1139
|
-
variant_rank?: number | undefined;
|
|
1140
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1141
|
-
}[] | undefined;
|
|
1142
|
-
}>;
|
|
1143
|
-
export declare const VendorUpdateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
1144
728
|
[x: string]: any;
|
|
729
|
+
title?: unknown;
|
|
730
|
+
subtitle?: unknown;
|
|
731
|
+
description?: unknown;
|
|
732
|
+
discountable?: unknown;
|
|
733
|
+
is_giftcard?: unknown;
|
|
734
|
+
images?: unknown;
|
|
735
|
+
thumbnail?: unknown;
|
|
736
|
+
handle?: unknown;
|
|
737
|
+
external_id?: unknown;
|
|
738
|
+
type_id?: unknown;
|
|
739
|
+
collection_id?: unknown;
|
|
740
|
+
categories?: unknown;
|
|
741
|
+
tags?: unknown;
|
|
742
|
+
options?: unknown;
|
|
743
|
+
variants?: unknown;
|
|
744
|
+
weight?: unknown;
|
|
745
|
+
length?: unknown;
|
|
746
|
+
height?: unknown;
|
|
747
|
+
width?: unknown;
|
|
748
|
+
hs_code?: unknown;
|
|
749
|
+
mid_code?: unknown;
|
|
750
|
+
origin_country?: unknown;
|
|
751
|
+
material?: unknown;
|
|
752
|
+
metadata?: unknown;
|
|
1145
753
|
}, {
|
|
1146
754
|
[x: string]: any;
|
|
1147
|
-
|
|
755
|
+
title?: unknown;
|
|
756
|
+
subtitle?: unknown;
|
|
757
|
+
description?: unknown;
|
|
758
|
+
discountable?: unknown;
|
|
759
|
+
is_giftcard?: unknown;
|
|
760
|
+
images?: unknown;
|
|
761
|
+
thumbnail?: unknown;
|
|
762
|
+
handle?: unknown;
|
|
763
|
+
external_id?: unknown;
|
|
764
|
+
type_id?: unknown;
|
|
765
|
+
collection_id?: unknown;
|
|
766
|
+
categories?: unknown;
|
|
767
|
+
tags?: unknown;
|
|
768
|
+
options?: unknown;
|
|
769
|
+
variants?: unknown;
|
|
770
|
+
weight?: unknown;
|
|
771
|
+
length?: unknown;
|
|
772
|
+
height?: unknown;
|
|
773
|
+
width?: unknown;
|
|
774
|
+
hs_code?: unknown;
|
|
775
|
+
mid_code?: unknown;
|
|
776
|
+
origin_country?: unknown;
|
|
777
|
+
material?: unknown;
|
|
778
|
+
metadata?: unknown;
|
|
779
|
+
}>;
|
|
780
|
+
export declare const VendorUpdateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
1148
781
|
export type VendorGetProductVariantsParamsType = z.infer<typeof VendorGetProductVariantsParams>;
|
|
1149
782
|
export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
1150
783
|
[x: string]: any;
|
|
1151
784
|
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
1152
785
|
q: z.ZodOptional<z.ZodString>;
|
|
1153
|
-
manage_inventory:
|
|
1154
|
-
allow_backorder:
|
|
1155
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
786
|
+
manage_inventory: any;
|
|
787
|
+
allow_backorder: any;
|
|
788
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
1156
789
|
$eq: any;
|
|
1157
790
|
$ne: any;
|
|
1158
791
|
$in: any;
|
|
@@ -1165,7 +798,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1165
798
|
$gte: any;
|
|
1166
799
|
$lt: any;
|
|
1167
800
|
$lte: any;
|
|
1168
|
-
},
|
|
801
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1169
802
|
$eq?: any;
|
|
1170
803
|
$ne?: any;
|
|
1171
804
|
$in?: any;
|
|
@@ -1192,7 +825,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1192
825
|
$lt?: any;
|
|
1193
826
|
$lte?: any;
|
|
1194
827
|
}>]>>;
|
|
1195
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
828
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
1196
829
|
$eq: any;
|
|
1197
830
|
$ne: any;
|
|
1198
831
|
$in: any;
|
|
@@ -1205,7 +838,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1205
838
|
$gte: any;
|
|
1206
839
|
$lt: any;
|
|
1207
840
|
$lte: any;
|
|
1208
|
-
},
|
|
841
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1209
842
|
$eq?: any;
|
|
1210
843
|
$ne?: any;
|
|
1211
844
|
$in?: any;
|
|
@@ -1233,23 +866,25 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1233
866
|
$lte?: any;
|
|
1234
867
|
}>]>>;
|
|
1235
868
|
}, "strip", z.ZodTypeAny, {
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
869
|
+
[x: string]: any;
|
|
870
|
+
q?: unknown;
|
|
871
|
+
manage_inventory?: unknown;
|
|
872
|
+
allow_backorder?: unknown;
|
|
873
|
+
created_at?: unknown;
|
|
874
|
+
updated_at?: unknown;
|
|
1241
875
|
}, {
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
876
|
+
[x: string]: any;
|
|
877
|
+
q?: unknown;
|
|
878
|
+
manage_inventory?: unknown;
|
|
879
|
+
allow_backorder?: unknown;
|
|
880
|
+
created_at?: unknown;
|
|
881
|
+
updated_at?: unknown;
|
|
1247
882
|
}>, "many">>>;
|
|
1248
883
|
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
1249
884
|
q: z.ZodOptional<z.ZodString>;
|
|
1250
|
-
manage_inventory:
|
|
1251
|
-
allow_backorder:
|
|
1252
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
885
|
+
manage_inventory: any;
|
|
886
|
+
allow_backorder: any;
|
|
887
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
1253
888
|
$eq: any;
|
|
1254
889
|
$ne: any;
|
|
1255
890
|
$in: any;
|
|
@@ -1262,7 +897,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1262
897
|
$gte: any;
|
|
1263
898
|
$lt: any;
|
|
1264
899
|
$lte: any;
|
|
1265
|
-
},
|
|
900
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1266
901
|
$eq?: any;
|
|
1267
902
|
$ne?: any;
|
|
1268
903
|
$in?: any;
|
|
@@ -1289,7 +924,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1289
924
|
$lt?: any;
|
|
1290
925
|
$lte?: any;
|
|
1291
926
|
}>]>>;
|
|
1292
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
927
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
1293
928
|
$eq: any;
|
|
1294
929
|
$ne: any;
|
|
1295
930
|
$in: any;
|
|
@@ -1302,7 +937,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1302
937
|
$gte: any;
|
|
1303
938
|
$lt: any;
|
|
1304
939
|
$lte: any;
|
|
1305
|
-
},
|
|
940
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1306
941
|
$eq?: any;
|
|
1307
942
|
$ne?: any;
|
|
1308
943
|
$in?: any;
|
|
@@ -1330,19 +965,21 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1330
965
|
$lte?: any;
|
|
1331
966
|
}>]>>;
|
|
1332
967
|
}, "strip", z.ZodTypeAny, {
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
968
|
+
[x: string]: any;
|
|
969
|
+
q?: unknown;
|
|
970
|
+
manage_inventory?: unknown;
|
|
971
|
+
allow_backorder?: unknown;
|
|
972
|
+
created_at?: unknown;
|
|
973
|
+
updated_at?: unknown;
|
|
1338
974
|
}, {
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
975
|
+
[x: string]: any;
|
|
976
|
+
q?: unknown;
|
|
977
|
+
manage_inventory?: unknown;
|
|
978
|
+
allow_backorder?: unknown;
|
|
979
|
+
created_at?: unknown;
|
|
980
|
+
updated_at?: unknown;
|
|
1344
981
|
}>, "many">>>;
|
|
1345
|
-
},
|
|
982
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1346
983
|
[x: string]: any;
|
|
1347
984
|
$and?: unknown;
|
|
1348
985
|
$or?: unknown;
|
|
@@ -1354,7 +991,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
1354
991
|
export type VendorGetProductVariantParamsType = z.infer<typeof VendorGetProductVariantParams>;
|
|
1355
992
|
export declare const VendorGetProductVariantParams: z.ZodObject<{
|
|
1356
993
|
fields: z.ZodOptional<z.ZodString>;
|
|
1357
|
-
},
|
|
994
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
1358
995
|
fields?: string | undefined;
|
|
1359
996
|
}, {
|
|
1360
997
|
fields?: string | undefined;
|
|
@@ -1383,7 +1020,6 @@ export declare const VendorAddProductVariant: z.ZodObject<{
|
|
|
1383
1020
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
1384
1021
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1385
1022
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1386
|
-
attribute_values: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>]>>;
|
|
1387
1023
|
}, "strict", z.ZodTypeAny, {
|
|
1388
1024
|
title: string;
|
|
1389
1025
|
options?: Record<string, string> | undefined;
|
|
@@ -1407,7 +1043,6 @@ export declare const VendorAddProductVariant: z.ZodObject<{
|
|
|
1407
1043
|
variant_rank?: number | undefined;
|
|
1408
1044
|
manage_inventory?: boolean | undefined;
|
|
1409
1045
|
allow_backorder?: boolean | undefined;
|
|
1410
|
-
attribute_values?: string[] | Record<string, string | string[]> | undefined;
|
|
1411
1046
|
}, {
|
|
1412
1047
|
title: string;
|
|
1413
1048
|
options?: Record<string, string> | undefined;
|
|
@@ -1431,7 +1066,6 @@ export declare const VendorAddProductVariant: z.ZodObject<{
|
|
|
1431
1066
|
variant_rank?: number | undefined;
|
|
1432
1067
|
manage_inventory?: boolean | undefined;
|
|
1433
1068
|
allow_backorder?: boolean | undefined;
|
|
1434
|
-
attribute_values?: string[] | Record<string, string | string[]> | undefined;
|
|
1435
1069
|
}>;
|
|
1436
1070
|
export type VendorUpdateProductVariantType = z.infer<typeof VendorUpdateProductVariant>;
|
|
1437
1071
|
export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
@@ -1467,7 +1101,6 @@ export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
|
1467
1101
|
add?: string[] | undefined;
|
|
1468
1102
|
remove?: string[] | undefined;
|
|
1469
1103
|
}>>;
|
|
1470
|
-
attribute_values: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>]>>;
|
|
1471
1104
|
}, "strict", z.ZodTypeAny, {
|
|
1472
1105
|
options?: Record<string, string> | undefined;
|
|
1473
1106
|
length?: number | null | undefined;
|
|
@@ -1491,7 +1124,6 @@ export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
|
1491
1124
|
variant_rank?: number | undefined;
|
|
1492
1125
|
manage_inventory?: boolean | undefined;
|
|
1493
1126
|
allow_backorder?: boolean | undefined;
|
|
1494
|
-
attribute_values?: string[] | Record<string, string | string[]> | undefined;
|
|
1495
1127
|
images?: {
|
|
1496
1128
|
add?: string[] | undefined;
|
|
1497
1129
|
remove?: string[] | undefined;
|
|
@@ -1519,196 +1151,11 @@ export declare const VendorUpdateProductVariant: z.ZodObject<{
|
|
|
1519
1151
|
variant_rank?: number | undefined;
|
|
1520
1152
|
manage_inventory?: boolean | undefined;
|
|
1521
1153
|
allow_backorder?: boolean | undefined;
|
|
1522
|
-
attribute_values?: string[] | Record<string, string | string[]> | undefined;
|
|
1523
1154
|
images?: {
|
|
1524
1155
|
add?: string[] | undefined;
|
|
1525
1156
|
remove?: string[] | undefined;
|
|
1526
1157
|
} | undefined;
|
|
1527
1158
|
}>;
|
|
1528
|
-
export type VendorGetProductAttributesParamsType = z.infer<typeof VendorGetProductAttributesParams>;
|
|
1529
|
-
export declare const VendorGetProductAttributesParams: z.ZodObject<{
|
|
1530
|
-
fields: z.ZodOptional<z.ZodString>;
|
|
1531
|
-
} & {
|
|
1532
|
-
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
1533
|
-
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
1534
|
-
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1535
|
-
with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
1536
|
-
}, "strip", z.ZodTypeAny, {
|
|
1537
|
-
offset: number;
|
|
1538
|
-
limit: number;
|
|
1539
|
-
order?: string | undefined;
|
|
1540
|
-
fields?: string | undefined;
|
|
1541
|
-
with_deleted?: boolean | undefined;
|
|
1542
|
-
}, {
|
|
1543
|
-
order?: string | undefined;
|
|
1544
|
-
fields?: string | undefined;
|
|
1545
|
-
offset?: unknown;
|
|
1546
|
-
limit?: unknown;
|
|
1547
|
-
with_deleted?: unknown;
|
|
1548
|
-
}>;
|
|
1549
|
-
export type VendorGetProductAttributeParamsType = z.infer<typeof VendorGetProductAttributeParams>;
|
|
1550
|
-
export declare const VendorGetProductAttributeParams: z.ZodObject<{
|
|
1551
|
-
fields: z.ZodOptional<z.ZodString>;
|
|
1552
|
-
}, "strip", z.ZodTypeAny, {
|
|
1553
|
-
fields?: string | undefined;
|
|
1554
|
-
}, {
|
|
1555
|
-
fields?: string | undefined;
|
|
1556
|
-
}>;
|
|
1557
|
-
/**
|
|
1558
|
-
* Two shapes share a single flat body (the middleware-friendly form);
|
|
1559
|
-
* the route branches on the presence of `attribute_id` vs `name`:
|
|
1560
|
-
*
|
|
1561
|
-
* 1. **Attach existing** — `{ attribute_id, attribute_value_ids? | values? }`.
|
|
1562
|
-
* 2. **Inline create** — `{ name, type, values?, is_variant_axis?, ... }`.
|
|
1563
|
-
* Creates a product-scoped `ProductAttribute` (hidden from the
|
|
1564
|
-
* global `/vendor/product-attributes` catalogue), materialises its
|
|
1565
|
-
* values, and links them to the product.
|
|
1566
|
-
*/
|
|
1567
|
-
export type VendorAddProductAttributeType = z.infer<typeof VendorAddProductAttribute>;
|
|
1568
|
-
export declare const VendorAddProductAttribute: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1569
|
-
attribute_id: z.ZodOptional<z.ZodString>;
|
|
1570
|
-
attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1571
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1572
|
-
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
1573
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1574
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1575
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1576
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1577
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1578
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1579
|
-
}, "strict", z.ZodTypeAny, {
|
|
1580
|
-
values?: string[] | undefined;
|
|
1581
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1582
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1583
|
-
name?: string | undefined;
|
|
1584
|
-
description?: string | null | undefined;
|
|
1585
|
-
attribute_id?: string | undefined;
|
|
1586
|
-
is_variant_axis?: boolean | undefined;
|
|
1587
|
-
is_required?: boolean | undefined;
|
|
1588
|
-
is_filterable?: boolean | undefined;
|
|
1589
|
-
attribute_value_ids?: string[] | undefined;
|
|
1590
|
-
}, {
|
|
1591
|
-
values?: string[] | undefined;
|
|
1592
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1593
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1594
|
-
name?: string | undefined;
|
|
1595
|
-
description?: string | null | undefined;
|
|
1596
|
-
attribute_id?: string | undefined;
|
|
1597
|
-
is_variant_axis?: boolean | undefined;
|
|
1598
|
-
is_required?: boolean | undefined;
|
|
1599
|
-
is_filterable?: boolean | undefined;
|
|
1600
|
-
attribute_value_ids?: string[] | undefined;
|
|
1601
|
-
}>, {
|
|
1602
|
-
values?: string[] | undefined;
|
|
1603
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1604
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1605
|
-
name?: string | undefined;
|
|
1606
|
-
description?: string | null | undefined;
|
|
1607
|
-
attribute_id?: string | undefined;
|
|
1608
|
-
is_variant_axis?: boolean | undefined;
|
|
1609
|
-
is_required?: boolean | undefined;
|
|
1610
|
-
is_filterable?: boolean | undefined;
|
|
1611
|
-
attribute_value_ids?: string[] | undefined;
|
|
1612
|
-
}, {
|
|
1613
|
-
values?: string[] | undefined;
|
|
1614
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1615
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1616
|
-
name?: string | undefined;
|
|
1617
|
-
description?: string | null | undefined;
|
|
1618
|
-
attribute_id?: string | undefined;
|
|
1619
|
-
is_variant_axis?: boolean | undefined;
|
|
1620
|
-
is_required?: boolean | undefined;
|
|
1621
|
-
is_filterable?: boolean | undefined;
|
|
1622
|
-
attribute_value_ids?: string[] | undefined;
|
|
1623
|
-
}>, {
|
|
1624
|
-
values?: string[] | undefined;
|
|
1625
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1626
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1627
|
-
name?: string | undefined;
|
|
1628
|
-
description?: string | null | undefined;
|
|
1629
|
-
attribute_id?: string | undefined;
|
|
1630
|
-
is_variant_axis?: boolean | undefined;
|
|
1631
|
-
is_required?: boolean | undefined;
|
|
1632
|
-
is_filterable?: boolean | undefined;
|
|
1633
|
-
attribute_value_ids?: string[] | undefined;
|
|
1634
|
-
}, {
|
|
1635
|
-
values?: string[] | undefined;
|
|
1636
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1637
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1638
|
-
name?: string | undefined;
|
|
1639
|
-
description?: string | null | undefined;
|
|
1640
|
-
attribute_id?: string | undefined;
|
|
1641
|
-
is_variant_axis?: boolean | undefined;
|
|
1642
|
-
is_required?: boolean | undefined;
|
|
1643
|
-
is_filterable?: boolean | undefined;
|
|
1644
|
-
attribute_value_ids?: string[] | undefined;
|
|
1645
|
-
}>, {
|
|
1646
|
-
values?: string[] | undefined;
|
|
1647
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1648
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1649
|
-
name?: string | undefined;
|
|
1650
|
-
description?: string | null | undefined;
|
|
1651
|
-
attribute_id?: string | undefined;
|
|
1652
|
-
is_variant_axis?: boolean | undefined;
|
|
1653
|
-
is_required?: boolean | undefined;
|
|
1654
|
-
is_filterable?: boolean | undefined;
|
|
1655
|
-
attribute_value_ids?: string[] | undefined;
|
|
1656
|
-
}, {
|
|
1657
|
-
values?: string[] | undefined;
|
|
1658
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1659
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1660
|
-
name?: string | undefined;
|
|
1661
|
-
description?: string | null | undefined;
|
|
1662
|
-
attribute_id?: string | undefined;
|
|
1663
|
-
is_variant_axis?: boolean | undefined;
|
|
1664
|
-
is_required?: boolean | undefined;
|
|
1665
|
-
is_filterable?: boolean | undefined;
|
|
1666
|
-
attribute_value_ids?: string[] | undefined;
|
|
1667
|
-
}>, {
|
|
1668
|
-
values?: string[] | undefined;
|
|
1669
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1670
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1671
|
-
name?: string | undefined;
|
|
1672
|
-
description?: string | null | undefined;
|
|
1673
|
-
attribute_id?: string | undefined;
|
|
1674
|
-
is_variant_axis?: boolean | undefined;
|
|
1675
|
-
is_required?: boolean | undefined;
|
|
1676
|
-
is_filterable?: boolean | undefined;
|
|
1677
|
-
attribute_value_ids?: string[] | undefined;
|
|
1678
|
-
}, {
|
|
1679
|
-
values?: string[] | undefined;
|
|
1680
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1681
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1682
|
-
name?: string | undefined;
|
|
1683
|
-
description?: string | null | undefined;
|
|
1684
|
-
attribute_id?: string | undefined;
|
|
1685
|
-
is_variant_axis?: boolean | undefined;
|
|
1686
|
-
is_required?: boolean | undefined;
|
|
1687
|
-
is_filterable?: boolean | undefined;
|
|
1688
|
-
attribute_value_ids?: string[] | undefined;
|
|
1689
|
-
}>;
|
|
1690
|
-
/**
|
|
1691
|
-
* `PATCH /vendor/products/:id/attributes/:attribute_id` — atomic
|
|
1692
|
-
* value-set replacement for a product attribute. Stages `remove + add`
|
|
1693
|
-
* in a single product-change so the new value set replaces the old
|
|
1694
|
-
* one in one round-trip (the apply dispatcher processes removes first,
|
|
1695
|
-
* then adds — see `applyProductAttributeChangeActionsWorkflow`).
|
|
1696
|
-
*
|
|
1697
|
-
* Mirrors the existing-attribute branch of `VendorAddProductAttribute`:
|
|
1698
|
-
* caller may pass pre-resolved `attribute_value_ids` or names via
|
|
1699
|
-
* `values` (free-form values upsert; select-type misses error out).
|
|
1700
|
-
*/
|
|
1701
|
-
export type VendorUpdateProductAttributeType = z.infer<typeof VendorUpdateProductAttribute>;
|
|
1702
|
-
export declare const VendorUpdateProductAttribute: z.ZodObject<{
|
|
1703
|
-
attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1704
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1705
|
-
}, "strict", z.ZodTypeAny, {
|
|
1706
|
-
values?: string[] | undefined;
|
|
1707
|
-
attribute_value_ids?: string[] | undefined;
|
|
1708
|
-
}, {
|
|
1709
|
-
values?: string[] | undefined;
|
|
1710
|
-
attribute_value_ids?: string[] | undefined;
|
|
1711
|
-
}>;
|
|
1712
1159
|
export type VendorCancelProductChangeType = z.infer<typeof VendorCancelProductChange>;
|
|
1713
1160
|
export declare const VendorCancelProductChange: z.ZodObject<{
|
|
1714
1161
|
internal_note: z.ZodOptional<z.ZodString>;
|
|
@@ -1719,43 +1166,170 @@ export declare const VendorCancelProductChange: z.ZodObject<{
|
|
|
1719
1166
|
}>;
|
|
1720
1167
|
export type VendorBatchProductAttributesType = z.infer<typeof VendorBatchProductAttributes>;
|
|
1721
1168
|
export declare const VendorBatchProductAttributes: z.ZodObject<{
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1169
|
+
add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1170
|
+
id: z.ZodString;
|
|
1171
|
+
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1172
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1725
1173
|
}, "strict", z.ZodTypeAny, {
|
|
1726
|
-
|
|
1727
|
-
|
|
1174
|
+
id: string;
|
|
1175
|
+
value?: string | number | boolean | undefined;
|
|
1176
|
+
value_ids?: string[] | undefined;
|
|
1728
1177
|
}, {
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1178
|
+
id: string;
|
|
1179
|
+
value?: string | number | boolean | undefined;
|
|
1180
|
+
value_ids?: string[] | undefined;
|
|
1181
|
+
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1182
|
+
title: z.ZodString;
|
|
1183
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
1184
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1185
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1186
|
+
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1187
|
+
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1188
|
+
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1189
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1190
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1734
1191
|
}, "strict", z.ZodTypeAny, {
|
|
1735
|
-
|
|
1736
|
-
|
|
1192
|
+
title: string;
|
|
1193
|
+
values?: string[] | undefined;
|
|
1194
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1195
|
+
value?: string | number | boolean | undefined;
|
|
1196
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1197
|
+
description?: string | null | undefined;
|
|
1198
|
+
is_variant_axis?: boolean | undefined;
|
|
1199
|
+
is_required?: boolean | undefined;
|
|
1200
|
+
is_filterable?: boolean | undefined;
|
|
1737
1201
|
}, {
|
|
1738
|
-
|
|
1739
|
-
|
|
1202
|
+
title: string;
|
|
1203
|
+
values?: string[] | undefined;
|
|
1204
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1205
|
+
value?: string | number | boolean | undefined;
|
|
1206
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1207
|
+
description?: string | null | undefined;
|
|
1208
|
+
is_variant_axis?: boolean | undefined;
|
|
1209
|
+
is_required?: boolean | undefined;
|
|
1210
|
+
is_filterable?: boolean | undefined;
|
|
1211
|
+
}>, {
|
|
1212
|
+
title: string;
|
|
1213
|
+
values?: string[] | undefined;
|
|
1214
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1215
|
+
value?: string | number | boolean | undefined;
|
|
1216
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1217
|
+
description?: string | null | undefined;
|
|
1218
|
+
is_variant_axis?: boolean | undefined;
|
|
1219
|
+
is_required?: boolean | undefined;
|
|
1220
|
+
is_filterable?: boolean | undefined;
|
|
1221
|
+
}, {
|
|
1222
|
+
title: string;
|
|
1223
|
+
values?: string[] | undefined;
|
|
1224
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1225
|
+
value?: string | number | boolean | undefined;
|
|
1226
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1227
|
+
description?: string | null | undefined;
|
|
1228
|
+
is_variant_axis?: boolean | undefined;
|
|
1229
|
+
is_required?: boolean | undefined;
|
|
1230
|
+
is_filterable?: boolean | undefined;
|
|
1231
|
+
}>, {
|
|
1232
|
+
title: string;
|
|
1233
|
+
values?: string[] | undefined;
|
|
1234
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1235
|
+
value?: string | number | boolean | undefined;
|
|
1236
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1237
|
+
description?: string | null | undefined;
|
|
1238
|
+
is_variant_axis?: boolean | undefined;
|
|
1239
|
+
is_required?: boolean | undefined;
|
|
1240
|
+
is_filterable?: boolean | undefined;
|
|
1241
|
+
}, {
|
|
1242
|
+
title: string;
|
|
1243
|
+
values?: string[] | undefined;
|
|
1244
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1245
|
+
value?: string | number | boolean | undefined;
|
|
1246
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1247
|
+
description?: string | null | undefined;
|
|
1248
|
+
is_variant_axis?: boolean | undefined;
|
|
1249
|
+
is_required?: boolean | undefined;
|
|
1250
|
+
is_filterable?: boolean | undefined;
|
|
1740
1251
|
}>]>, "many">>;
|
|
1741
|
-
|
|
1252
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1253
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1254
|
+
id: z.ZodString;
|
|
1255
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1256
|
+
add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1257
|
+
value: z.ZodString;
|
|
1258
|
+
}, "strict", z.ZodTypeAny, {
|
|
1259
|
+
value: string;
|
|
1260
|
+
}, {
|
|
1261
|
+
value: string;
|
|
1262
|
+
}>]>, "many">>;
|
|
1263
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1264
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1265
|
+
}, "strict", z.ZodTypeAny, {
|
|
1266
|
+
id: string;
|
|
1267
|
+
value?: string | number | boolean | undefined;
|
|
1268
|
+
title?: string | undefined;
|
|
1269
|
+
add?: (string | {
|
|
1270
|
+
value: string;
|
|
1271
|
+
})[] | undefined;
|
|
1272
|
+
remove?: string[] | undefined;
|
|
1273
|
+
}, {
|
|
1274
|
+
id: string;
|
|
1275
|
+
value?: string | number | boolean | undefined;
|
|
1276
|
+
title?: string | undefined;
|
|
1277
|
+
add?: (string | {
|
|
1278
|
+
value: string;
|
|
1279
|
+
})[] | undefined;
|
|
1280
|
+
remove?: string[] | undefined;
|
|
1281
|
+
}>, "many">>;
|
|
1742
1282
|
}, "strict", z.ZodTypeAny, {
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1283
|
+
update?: {
|
|
1284
|
+
id: string;
|
|
1285
|
+
value?: string | number | boolean | undefined;
|
|
1286
|
+
title?: string | undefined;
|
|
1287
|
+
add?: (string | {
|
|
1288
|
+
value: string;
|
|
1289
|
+
})[] | undefined;
|
|
1290
|
+
remove?: string[] | undefined;
|
|
1291
|
+
}[] | undefined;
|
|
1292
|
+
add?: ({
|
|
1293
|
+
id: string;
|
|
1294
|
+
value?: string | number | boolean | undefined;
|
|
1295
|
+
value_ids?: string[] | undefined;
|
|
1746
1296
|
} | {
|
|
1747
|
-
|
|
1748
|
-
|
|
1297
|
+
title: string;
|
|
1298
|
+
values?: string[] | undefined;
|
|
1299
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1300
|
+
value?: string | number | boolean | undefined;
|
|
1301
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1302
|
+
description?: string | null | undefined;
|
|
1303
|
+
is_variant_axis?: boolean | undefined;
|
|
1304
|
+
is_required?: boolean | undefined;
|
|
1305
|
+
is_filterable?: boolean | undefined;
|
|
1749
1306
|
})[] | undefined;
|
|
1750
|
-
|
|
1307
|
+
remove?: string[] | undefined;
|
|
1751
1308
|
}, {
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1309
|
+
update?: {
|
|
1310
|
+
id: string;
|
|
1311
|
+
value?: string | number | boolean | undefined;
|
|
1312
|
+
title?: string | undefined;
|
|
1313
|
+
add?: (string | {
|
|
1314
|
+
value: string;
|
|
1315
|
+
})[] | undefined;
|
|
1316
|
+
remove?: string[] | undefined;
|
|
1317
|
+
}[] | undefined;
|
|
1318
|
+
add?: ({
|
|
1319
|
+
id: string;
|
|
1320
|
+
value?: string | number | boolean | undefined;
|
|
1321
|
+
value_ids?: string[] | undefined;
|
|
1755
1322
|
} | {
|
|
1756
|
-
|
|
1757
|
-
|
|
1323
|
+
title: string;
|
|
1324
|
+
values?: string[] | undefined;
|
|
1325
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1326
|
+
value?: string | number | boolean | undefined;
|
|
1327
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
1328
|
+
description?: string | null | undefined;
|
|
1329
|
+
is_variant_axis?: boolean | undefined;
|
|
1330
|
+
is_required?: boolean | undefined;
|
|
1331
|
+
is_filterable?: boolean | undefined;
|
|
1758
1332
|
})[] | undefined;
|
|
1759
|
-
|
|
1333
|
+
remove?: string[] | undefined;
|
|
1760
1334
|
}>;
|
|
1761
1335
|
export {};
|