@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
|
@@ -23,8 +23,8 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
23
23
|
ean: z.ZodOptional<z.ZodString>;
|
|
24
24
|
upc: z.ZodOptional<z.ZodString>;
|
|
25
25
|
barcode: z.ZodOptional<z.ZodString>;
|
|
26
|
-
has_offer:
|
|
27
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
26
|
+
has_offer: any;
|
|
27
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
28
28
|
$eq: any;
|
|
29
29
|
$ne: any;
|
|
30
30
|
$in: any;
|
|
@@ -37,7 +37,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
37
37
|
$gte: any;
|
|
38
38
|
$lt: any;
|
|
39
39
|
$lte: any;
|
|
40
|
-
},
|
|
40
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
41
41
|
$eq?: any;
|
|
42
42
|
$ne?: any;
|
|
43
43
|
$in?: any;
|
|
@@ -64,7 +64,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
64
64
|
$lt?: any;
|
|
65
65
|
$lte?: any;
|
|
66
66
|
}>]>>;
|
|
67
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
67
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
68
68
|
$eq: any;
|
|
69
69
|
$ne: any;
|
|
70
70
|
$in: any;
|
|
@@ -77,7 +77,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
77
77
|
$gte: any;
|
|
78
78
|
$lt: any;
|
|
79
79
|
$lte: any;
|
|
80
|
-
},
|
|
80
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
81
81
|
$eq?: any;
|
|
82
82
|
$ne?: any;
|
|
83
83
|
$in?: any;
|
|
@@ -104,7 +104,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
104
104
|
$lt?: any;
|
|
105
105
|
$lte?: any;
|
|
106
106
|
}>]>>;
|
|
107
|
-
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
107
|
+
deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
108
108
|
$eq: any;
|
|
109
109
|
$ne: any;
|
|
110
110
|
$in: any;
|
|
@@ -117,7 +117,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
117
117
|
$gte: any;
|
|
118
118
|
$lt: any;
|
|
119
119
|
$lte: any;
|
|
120
|
-
},
|
|
120
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
121
121
|
$eq?: any;
|
|
122
122
|
$ne?: any;
|
|
123
123
|
$in?: any;
|
|
@@ -145,43 +145,45 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
145
145
|
$lte?: any;
|
|
146
146
|
}>]>>;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
has_offer?:
|
|
164
|
-
|
|
165
|
-
|
|
148
|
+
[x: string]: any;
|
|
149
|
+
q?: unknown;
|
|
150
|
+
id?: unknown;
|
|
151
|
+
title?: unknown;
|
|
152
|
+
handle?: unknown;
|
|
153
|
+
seller_id?: unknown;
|
|
154
|
+
status?: unknown;
|
|
155
|
+
collection_id?: unknown;
|
|
156
|
+
type_id?: unknown;
|
|
157
|
+
category_id?: unknown;
|
|
158
|
+
tag_id?: unknown;
|
|
159
|
+
sku?: unknown;
|
|
160
|
+
ean?: unknown;
|
|
161
|
+
upc?: unknown;
|
|
162
|
+
barcode?: unknown;
|
|
163
|
+
has_offer?: unknown;
|
|
164
|
+
created_at?: unknown;
|
|
165
|
+
updated_at?: unknown;
|
|
166
|
+
deleted_at?: unknown;
|
|
166
167
|
}, {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
has_offer?:
|
|
183
|
-
|
|
184
|
-
|
|
168
|
+
[x: string]: any;
|
|
169
|
+
q?: unknown;
|
|
170
|
+
id?: unknown;
|
|
171
|
+
title?: unknown;
|
|
172
|
+
handle?: unknown;
|
|
173
|
+
seller_id?: unknown;
|
|
174
|
+
status?: unknown;
|
|
175
|
+
collection_id?: unknown;
|
|
176
|
+
type_id?: unknown;
|
|
177
|
+
category_id?: unknown;
|
|
178
|
+
tag_id?: unknown;
|
|
179
|
+
sku?: unknown;
|
|
180
|
+
ean?: unknown;
|
|
181
|
+
upc?: unknown;
|
|
182
|
+
barcode?: unknown;
|
|
183
|
+
has_offer?: unknown;
|
|
184
|
+
created_at?: unknown;
|
|
185
|
+
updated_at?: unknown;
|
|
186
|
+
deleted_at?: unknown;
|
|
185
187
|
}>, "many">>>;
|
|
186
188
|
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
187
189
|
q: z.ZodOptional<z.ZodString>;
|
|
@@ -203,8 +205,8 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
203
205
|
ean: z.ZodOptional<z.ZodString>;
|
|
204
206
|
upc: z.ZodOptional<z.ZodString>;
|
|
205
207
|
barcode: z.ZodOptional<z.ZodString>;
|
|
206
|
-
has_offer:
|
|
207
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
208
|
+
has_offer: any;
|
|
209
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
208
210
|
$eq: any;
|
|
209
211
|
$ne: any;
|
|
210
212
|
$in: any;
|
|
@@ -217,7 +219,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
217
219
|
$gte: any;
|
|
218
220
|
$lt: any;
|
|
219
221
|
$lte: any;
|
|
220
|
-
},
|
|
222
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
221
223
|
$eq?: any;
|
|
222
224
|
$ne?: any;
|
|
223
225
|
$in?: any;
|
|
@@ -244,7 +246,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
244
246
|
$lt?: any;
|
|
245
247
|
$lte?: any;
|
|
246
248
|
}>]>>;
|
|
247
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
249
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
248
250
|
$eq: any;
|
|
249
251
|
$ne: any;
|
|
250
252
|
$in: any;
|
|
@@ -257,7 +259,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
257
259
|
$gte: any;
|
|
258
260
|
$lt: any;
|
|
259
261
|
$lte: any;
|
|
260
|
-
},
|
|
262
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
261
263
|
$eq?: any;
|
|
262
264
|
$ne?: any;
|
|
263
265
|
$in?: any;
|
|
@@ -284,7 +286,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
284
286
|
$lt?: any;
|
|
285
287
|
$lte?: any;
|
|
286
288
|
}>]>>;
|
|
287
|
-
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
289
|
+
deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
288
290
|
$eq: any;
|
|
289
291
|
$ne: any;
|
|
290
292
|
$in: any;
|
|
@@ -297,7 +299,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
297
299
|
$gte: any;
|
|
298
300
|
$lt: any;
|
|
299
301
|
$lte: any;
|
|
300
|
-
},
|
|
302
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
301
303
|
$eq?: any;
|
|
302
304
|
$ne?: any;
|
|
303
305
|
$in?: any;
|
|
@@ -325,45 +327,47 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
325
327
|
$lte?: any;
|
|
326
328
|
}>]>>;
|
|
327
329
|
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
has_offer?:
|
|
344
|
-
|
|
345
|
-
|
|
330
|
+
[x: string]: any;
|
|
331
|
+
q?: unknown;
|
|
332
|
+
id?: unknown;
|
|
333
|
+
title?: unknown;
|
|
334
|
+
handle?: unknown;
|
|
335
|
+
seller_id?: unknown;
|
|
336
|
+
status?: unknown;
|
|
337
|
+
collection_id?: unknown;
|
|
338
|
+
type_id?: unknown;
|
|
339
|
+
category_id?: unknown;
|
|
340
|
+
tag_id?: unknown;
|
|
341
|
+
sku?: unknown;
|
|
342
|
+
ean?: unknown;
|
|
343
|
+
upc?: unknown;
|
|
344
|
+
barcode?: unknown;
|
|
345
|
+
has_offer?: unknown;
|
|
346
|
+
created_at?: unknown;
|
|
347
|
+
updated_at?: unknown;
|
|
348
|
+
deleted_at?: unknown;
|
|
346
349
|
}, {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
has_offer?:
|
|
363
|
-
|
|
364
|
-
|
|
350
|
+
[x: string]: any;
|
|
351
|
+
q?: unknown;
|
|
352
|
+
id?: unknown;
|
|
353
|
+
title?: unknown;
|
|
354
|
+
handle?: unknown;
|
|
355
|
+
seller_id?: unknown;
|
|
356
|
+
status?: unknown;
|
|
357
|
+
collection_id?: unknown;
|
|
358
|
+
type_id?: unknown;
|
|
359
|
+
category_id?: unknown;
|
|
360
|
+
tag_id?: unknown;
|
|
361
|
+
sku?: unknown;
|
|
362
|
+
ean?: unknown;
|
|
363
|
+
upc?: unknown;
|
|
364
|
+
barcode?: unknown;
|
|
365
|
+
has_offer?: unknown;
|
|
366
|
+
created_at?: unknown;
|
|
367
|
+
updated_at?: unknown;
|
|
368
|
+
deleted_at?: unknown;
|
|
365
369
|
}>, "many">>>;
|
|
366
|
-
},
|
|
370
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
367
371
|
[x: string]: any;
|
|
368
372
|
$and?: unknown;
|
|
369
373
|
$or?: unknown;
|
|
@@ -379,7 +383,7 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
|
|
|
379
383
|
export type AdminGetProductParamsType = z.infer<typeof AdminGetProductParams>;
|
|
380
384
|
export declare const AdminGetProductParams: z.ZodObject<{
|
|
381
385
|
fields: z.ZodOptional<z.ZodString>;
|
|
382
|
-
},
|
|
386
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
383
387
|
fields?: string | undefined;
|
|
384
388
|
}, {
|
|
385
389
|
fields?: string | undefined;
|
|
@@ -403,9 +407,7 @@ declare const CreateProductVariant: z.ZodObject<{
|
|
|
403
407
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
404
408
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
405
409
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
406
|
-
/** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
|
|
407
410
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
408
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
409
411
|
}, "strict", z.ZodTypeAny, {
|
|
410
412
|
title: string;
|
|
411
413
|
options?: Record<string, string> | undefined;
|
|
@@ -426,7 +428,6 @@ declare const CreateProductVariant: z.ZodObject<{
|
|
|
426
428
|
gtin?: string | null | undefined;
|
|
427
429
|
barcode?: string | null | undefined;
|
|
428
430
|
variant_rank?: number | undefined;
|
|
429
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
430
431
|
}, {
|
|
431
432
|
title: string;
|
|
432
433
|
options?: Record<string, string> | undefined;
|
|
@@ -447,7 +448,6 @@ declare const CreateProductVariant: z.ZodObject<{
|
|
|
447
448
|
gtin?: string | null | undefined;
|
|
448
449
|
barcode?: string | null | undefined;
|
|
449
450
|
variant_rank?: number | undefined;
|
|
450
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
451
451
|
}>;
|
|
452
452
|
declare const UpdateProductVariant: z.ZodObject<{
|
|
453
453
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -493,7 +493,6 @@ declare const UpdateProductVariant: z.ZodObject<{
|
|
|
493
493
|
rules?: Record<string, string> | undefined;
|
|
494
494
|
}>, "many">>;
|
|
495
495
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
496
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
497
496
|
}, "strict", z.ZodTypeAny, {
|
|
498
497
|
options?: Record<string, string> | undefined;
|
|
499
498
|
length?: number | null | undefined;
|
|
@@ -524,7 +523,6 @@ declare const UpdateProductVariant: z.ZodObject<{
|
|
|
524
523
|
gtin?: string | null | undefined;
|
|
525
524
|
barcode?: string | null | undefined;
|
|
526
525
|
variant_rank?: number | undefined;
|
|
527
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
528
526
|
}, {
|
|
529
527
|
options?: Record<string, string> | undefined;
|
|
530
528
|
length?: number | null | undefined;
|
|
@@ -555,12 +553,11 @@ declare const UpdateProductVariant: z.ZodObject<{
|
|
|
555
553
|
gtin?: string | null | undefined;
|
|
556
554
|
barcode?: string | null | undefined;
|
|
557
555
|
variant_rank?: number | undefined;
|
|
558
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
559
556
|
}>;
|
|
560
557
|
export type AdminGetProductVariantParamsType = z.infer<typeof AdminGetProductVariantParams>;
|
|
561
558
|
export declare const AdminGetProductVariantParams: z.ZodObject<{
|
|
562
559
|
fields: z.ZodOptional<z.ZodString>;
|
|
563
|
-
},
|
|
560
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
564
561
|
fields?: string | undefined;
|
|
565
562
|
}, {
|
|
566
563
|
fields?: string | undefined;
|
|
@@ -612,7 +609,7 @@ export declare const AdminGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
612
609
|
upc?: string | undefined;
|
|
613
610
|
barcode?: string | undefined;
|
|
614
611
|
}>, "many">>>;
|
|
615
|
-
},
|
|
612
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
616
613
|
[x: string]: any;
|
|
617
614
|
$and?: unknown;
|
|
618
615
|
$or?: unknown;
|
|
@@ -622,24 +619,16 @@ export declare const AdminGetProductVariantsParams: z.ZodObject<{} & {
|
|
|
622
619
|
$or?: unknown;
|
|
623
620
|
}>;
|
|
624
621
|
export type AdminCreateProductVariantType = z.infer<typeof CreateProductVariant> & AdditionalData;
|
|
625
|
-
export declare const AdminCreateProductVariant: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any
|
|
626
|
-
[x: string]: any;
|
|
627
|
-
}, {
|
|
628
|
-
[x: string]: any;
|
|
629
|
-
}> | z.ZodEffects<any, any, any>;
|
|
622
|
+
export declare const AdminCreateProductVariant: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
630
623
|
export type AdminUpdateProductVariantType = z.infer<typeof UpdateProductVariant> & AdditionalData;
|
|
631
|
-
export declare const AdminUpdateProductVariant: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any
|
|
632
|
-
[x: string]: any;
|
|
633
|
-
}, {
|
|
634
|
-
[x: string]: any;
|
|
635
|
-
}> | z.ZodEffects<any, any, any>;
|
|
624
|
+
export declare const AdminUpdateProductVariant: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
636
625
|
export type AdminCreateProductType = z.infer<typeof CreateProduct> & AdditionalData;
|
|
637
626
|
declare const CreateProduct: z.ZodObject<{
|
|
638
627
|
title: z.ZodString;
|
|
639
628
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
640
629
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
641
|
-
is_giftcard:
|
|
642
|
-
discountable:
|
|
630
|
+
is_giftcard: any;
|
|
631
|
+
discountable: any;
|
|
643
632
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
644
633
|
url: z.ZodString;
|
|
645
634
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -673,7 +662,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
673
662
|
}, {
|
|
674
663
|
id: string;
|
|
675
664
|
}>, "many">>;
|
|
676
|
-
/** Stock Medusa product options: drives variant generation. */
|
|
677
665
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
678
666
|
title: z.ZodString;
|
|
679
667
|
values: z.ZodArray<z.ZodString, "many">;
|
|
@@ -684,87 +672,49 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
684
672
|
values: string[];
|
|
685
673
|
title: string;
|
|
686
674
|
}>, "many">>;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
690
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
691
|
-
}, "strict", z.ZodTypeAny, {
|
|
692
|
-
attribute_id: string;
|
|
693
|
-
values?: string[] | undefined;
|
|
694
|
-
value_ids?: string[] | undefined;
|
|
695
|
-
}, {
|
|
696
|
-
attribute_id: string;
|
|
697
|
-
values?: string[] | undefined;
|
|
698
|
-
value_ids?: string[] | undefined;
|
|
699
|
-
}>, z.ZodObject<{
|
|
700
|
-
name: z.ZodString;
|
|
701
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
702
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
703
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
704
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
705
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
706
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
707
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
708
|
-
}, "strict", z.ZodTypeAny, {
|
|
709
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
710
|
-
name: string;
|
|
711
|
-
values?: string[] | undefined;
|
|
712
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
713
|
-
description?: string | null | undefined;
|
|
714
|
-
is_variant_axis?: boolean | undefined;
|
|
715
|
-
is_required?: boolean | undefined;
|
|
716
|
-
is_filterable?: boolean | undefined;
|
|
717
|
-
}, {
|
|
718
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
719
|
-
name: string;
|
|
720
|
-
values?: string[] | undefined;
|
|
721
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
722
|
-
description?: string | null | undefined;
|
|
723
|
-
is_variant_axis?: boolean | undefined;
|
|
724
|
-
is_required?: boolean | undefined;
|
|
725
|
-
is_filterable?: boolean | undefined;
|
|
726
|
-
}>]>, "many">>;
|
|
727
|
-
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
728
|
-
attribute_id: z.ZodString;
|
|
675
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
676
|
+
id: z.ZodString;
|
|
729
677
|
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
730
|
-
|
|
678
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
731
679
|
}, "strict", z.ZodTypeAny, {
|
|
732
|
-
|
|
733
|
-
|
|
680
|
+
id: string;
|
|
681
|
+
value?: string | number | boolean | undefined;
|
|
734
682
|
value_ids?: string[] | undefined;
|
|
735
683
|
}, {
|
|
736
|
-
|
|
737
|
-
|
|
684
|
+
id: string;
|
|
685
|
+
value?: string | number | boolean | undefined;
|
|
738
686
|
value_ids?: string[] | undefined;
|
|
739
687
|
}>, z.ZodObject<{
|
|
740
|
-
|
|
741
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]
|
|
688
|
+
title: z.ZodString;
|
|
689
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
742
690
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
691
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
743
692
|
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
744
693
|
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
745
694
|
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
746
695
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
747
696
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
748
697
|
}, "strict", z.ZodTypeAny, {
|
|
749
|
-
|
|
750
|
-
name: string;
|
|
698
|
+
title: string;
|
|
751
699
|
values?: string[] | undefined;
|
|
752
700
|
metadata?: Record<string, unknown> | null | undefined;
|
|
701
|
+
value?: string | number | boolean | undefined;
|
|
702
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
753
703
|
description?: string | null | undefined;
|
|
754
704
|
is_variant_axis?: boolean | undefined;
|
|
755
705
|
is_required?: boolean | undefined;
|
|
756
706
|
is_filterable?: boolean | undefined;
|
|
757
707
|
}, {
|
|
758
|
-
|
|
759
|
-
name: string;
|
|
708
|
+
title: string;
|
|
760
709
|
values?: string[] | undefined;
|
|
761
710
|
metadata?: Record<string, unknown> | null | undefined;
|
|
711
|
+
value?: string | number | boolean | undefined;
|
|
712
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
762
713
|
description?: string | null | undefined;
|
|
763
714
|
is_variant_axis?: boolean | undefined;
|
|
764
715
|
is_required?: boolean | undefined;
|
|
765
716
|
is_filterable?: boolean | undefined;
|
|
766
717
|
}>]>, "many">>;
|
|
767
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
768
718
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
769
719
|
title: z.ZodString;
|
|
770
720
|
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -784,9 +734,7 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
784
734
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
735
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
786
736
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
787
|
-
/** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
|
|
788
737
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
789
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
790
738
|
}, "strict", z.ZodTypeAny, {
|
|
791
739
|
title: string;
|
|
792
740
|
options?: Record<string, string> | undefined;
|
|
@@ -807,7 +755,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
807
755
|
gtin?: string | null | undefined;
|
|
808
756
|
barcode?: string | null | undefined;
|
|
809
757
|
variant_rank?: number | undefined;
|
|
810
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
811
758
|
}, {
|
|
812
759
|
title: string;
|
|
813
760
|
options?: Record<string, string> | undefined;
|
|
@@ -828,7 +775,6 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
828
775
|
gtin?: string | null | undefined;
|
|
829
776
|
barcode?: string | null | undefined;
|
|
830
777
|
variant_rank?: number | undefined;
|
|
831
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
832
778
|
}>, "many">>;
|
|
833
779
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
834
780
|
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -840,190 +786,72 @@ declare const CreateProduct: z.ZodObject<{
|
|
|
840
786
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
841
787
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
842
788
|
}, "strict", z.ZodTypeAny, {
|
|
843
|
-
title: string;
|
|
844
|
-
is_giftcard: boolean;
|
|
845
|
-
discountable: boolean;
|
|
846
|
-
options?: {
|
|
847
|
-
values: string[];
|
|
848
|
-
title: string;
|
|
849
|
-
}[] | undefined;
|
|
850
|
-
length?: number | null | undefined;
|
|
851
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
852
|
-
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
853
|
-
handle?: string | undefined;
|
|
854
|
-
description?: string | null | undefined;
|
|
855
|
-
external_id?: string | null | undefined;
|
|
856
|
-
thumbnail?: string | null | undefined;
|
|
857
|
-
collection_id?: string | null | undefined;
|
|
858
|
-
type_id?: string | null | undefined;
|
|
859
|
-
subtitle?: string | null | undefined;
|
|
860
|
-
weight?: number | null | undefined;
|
|
861
|
-
height?: number | null | undefined;
|
|
862
|
-
width?: number | null | undefined;
|
|
863
|
-
hs_code?: string | null | undefined;
|
|
864
|
-
origin_country?: string | null | undefined;
|
|
865
|
-
mid_code?: string | null | undefined;
|
|
866
|
-
material?: string | null | undefined;
|
|
867
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
868
|
-
images?: {
|
|
869
|
-
url: string;
|
|
870
|
-
}[] | undefined;
|
|
871
|
-
seller_ids?: string[] | undefined;
|
|
872
|
-
categories?: {
|
|
873
|
-
id: string;
|
|
874
|
-
}[] | undefined;
|
|
875
|
-
tags?: {
|
|
876
|
-
id: string;
|
|
877
|
-
}[] | undefined;
|
|
878
|
-
variant_attributes?: ({
|
|
879
|
-
attribute_id: string;
|
|
880
|
-
values?: string[] | undefined;
|
|
881
|
-
value_ids?: string[] | undefined;
|
|
882
|
-
} | {
|
|
883
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
884
|
-
name: string;
|
|
885
|
-
values?: string[] | undefined;
|
|
886
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
887
|
-
description?: string | null | undefined;
|
|
888
|
-
is_variant_axis?: boolean | undefined;
|
|
889
|
-
is_required?: boolean | undefined;
|
|
890
|
-
is_filterable?: boolean | undefined;
|
|
891
|
-
})[] | undefined;
|
|
892
|
-
product_attributes?: ({
|
|
893
|
-
attribute_id: string;
|
|
894
|
-
values?: string[] | undefined;
|
|
895
|
-
value_ids?: string[] | undefined;
|
|
896
|
-
} | {
|
|
897
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
898
|
-
name: string;
|
|
899
|
-
values?: string[] | undefined;
|
|
900
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
901
|
-
description?: string | null | undefined;
|
|
902
|
-
is_variant_axis?: boolean | undefined;
|
|
903
|
-
is_required?: boolean | undefined;
|
|
904
|
-
is_filterable?: boolean | undefined;
|
|
905
|
-
})[] | undefined;
|
|
906
|
-
variants?: {
|
|
907
|
-
title: string;
|
|
908
|
-
options?: Record<string, string> | undefined;
|
|
909
|
-
length?: number | null | undefined;
|
|
910
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
911
|
-
sku?: string | null | undefined;
|
|
912
|
-
ean?: string | null | undefined;
|
|
913
|
-
upc?: string | null | undefined;
|
|
914
|
-
weight?: number | null | undefined;
|
|
915
|
-
height?: number | null | undefined;
|
|
916
|
-
width?: number | null | undefined;
|
|
917
|
-
hs_code?: string | null | undefined;
|
|
918
|
-
origin_country?: string | null | undefined;
|
|
919
|
-
mid_code?: string | null | undefined;
|
|
920
|
-
material?: string | null | undefined;
|
|
921
|
-
isbn?: string | null | undefined;
|
|
922
|
-
asin?: string | null | undefined;
|
|
923
|
-
gtin?: string | null | undefined;
|
|
924
|
-
barcode?: string | null | undefined;
|
|
925
|
-
variant_rank?: number | undefined;
|
|
926
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
927
|
-
}[] | undefined;
|
|
928
|
-
}, {
|
|
929
|
-
title: string;
|
|
930
|
-
options?: {
|
|
931
|
-
values: string[];
|
|
932
|
-
title: string;
|
|
933
|
-
}[] | undefined;
|
|
934
|
-
length?: number | null | undefined;
|
|
935
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
936
|
-
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
937
|
-
handle?: string | undefined;
|
|
938
|
-
description?: string | null | undefined;
|
|
939
|
-
external_id?: string | null | undefined;
|
|
940
|
-
thumbnail?: string | null | undefined;
|
|
941
|
-
collection_id?: string | null | undefined;
|
|
942
|
-
type_id?: string | null | undefined;
|
|
943
|
-
subtitle?: string | null | undefined;
|
|
944
|
-
is_giftcard?: string | boolean | undefined;
|
|
945
|
-
discountable?: string | boolean | undefined;
|
|
946
|
-
weight?: number | null | undefined;
|
|
947
|
-
height?: number | null | undefined;
|
|
948
|
-
width?: number | null | undefined;
|
|
949
|
-
hs_code?: string | null | undefined;
|
|
950
|
-
origin_country?: string | null | undefined;
|
|
951
|
-
mid_code?: string | null | undefined;
|
|
952
|
-
material?: string | null | undefined;
|
|
953
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
954
|
-
images?: {
|
|
955
|
-
url: string;
|
|
956
|
-
}[] | undefined;
|
|
957
|
-
seller_ids?: string[] | undefined;
|
|
958
|
-
categories?: {
|
|
959
|
-
id: string;
|
|
960
|
-
}[] | undefined;
|
|
961
|
-
tags?: {
|
|
962
|
-
id: string;
|
|
963
|
-
}[] | undefined;
|
|
964
|
-
variant_attributes?: ({
|
|
965
|
-
attribute_id: string;
|
|
966
|
-
values?: string[] | undefined;
|
|
967
|
-
value_ids?: string[] | undefined;
|
|
968
|
-
} | {
|
|
969
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
970
|
-
name: string;
|
|
971
|
-
values?: string[] | undefined;
|
|
972
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
973
|
-
description?: string | null | undefined;
|
|
974
|
-
is_variant_axis?: boolean | undefined;
|
|
975
|
-
is_required?: boolean | undefined;
|
|
976
|
-
is_filterable?: boolean | undefined;
|
|
977
|
-
})[] | undefined;
|
|
978
|
-
product_attributes?: ({
|
|
979
|
-
attribute_id: string;
|
|
980
|
-
values?: string[] | undefined;
|
|
981
|
-
value_ids?: string[] | undefined;
|
|
982
|
-
} | {
|
|
983
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
984
|
-
name: string;
|
|
985
|
-
values?: string[] | undefined;
|
|
986
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
987
|
-
description?: string | null | undefined;
|
|
988
|
-
is_variant_axis?: boolean | undefined;
|
|
989
|
-
is_required?: boolean | undefined;
|
|
990
|
-
is_filterable?: boolean | undefined;
|
|
991
|
-
})[] | undefined;
|
|
992
|
-
variants?: {
|
|
993
|
-
title: string;
|
|
994
|
-
options?: Record<string, string> | undefined;
|
|
995
|
-
length?: number | null | undefined;
|
|
996
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
997
|
-
sku?: string | null | undefined;
|
|
998
|
-
ean?: string | null | undefined;
|
|
999
|
-
upc?: string | null | undefined;
|
|
1000
|
-
weight?: number | null | undefined;
|
|
1001
|
-
height?: number | null | undefined;
|
|
1002
|
-
width?: number | null | undefined;
|
|
1003
|
-
hs_code?: string | null | undefined;
|
|
1004
|
-
origin_country?: string | null | undefined;
|
|
1005
|
-
mid_code?: string | null | undefined;
|
|
1006
|
-
material?: string | null | undefined;
|
|
1007
|
-
isbn?: string | null | undefined;
|
|
1008
|
-
asin?: string | null | undefined;
|
|
1009
|
-
gtin?: string | null | undefined;
|
|
1010
|
-
barcode?: string | null | undefined;
|
|
1011
|
-
variant_rank?: number | undefined;
|
|
1012
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1013
|
-
}[] | undefined;
|
|
1014
|
-
}>;
|
|
1015
|
-
export declare const AdminCreateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
1016
789
|
[x: string]: any;
|
|
790
|
+
title?: unknown;
|
|
791
|
+
subtitle?: unknown;
|
|
792
|
+
description?: unknown;
|
|
793
|
+
is_giftcard?: unknown;
|
|
794
|
+
discountable?: unknown;
|
|
795
|
+
images?: unknown;
|
|
796
|
+
thumbnail?: unknown;
|
|
797
|
+
handle?: unknown;
|
|
798
|
+
status?: unknown;
|
|
799
|
+
external_id?: unknown;
|
|
800
|
+
type_id?: unknown;
|
|
801
|
+
collection_id?: unknown;
|
|
802
|
+
seller_ids?: unknown;
|
|
803
|
+
categories?: unknown;
|
|
804
|
+
tags?: unknown;
|
|
805
|
+
options?: unknown;
|
|
806
|
+
attributes?: unknown;
|
|
807
|
+
variants?: unknown;
|
|
808
|
+
weight?: unknown;
|
|
809
|
+
length?: unknown;
|
|
810
|
+
height?: unknown;
|
|
811
|
+
width?: unknown;
|
|
812
|
+
hs_code?: unknown;
|
|
813
|
+
mid_code?: unknown;
|
|
814
|
+
origin_country?: unknown;
|
|
815
|
+
material?: unknown;
|
|
816
|
+
metadata?: unknown;
|
|
1017
817
|
}, {
|
|
1018
818
|
[x: string]: any;
|
|
1019
|
-
|
|
819
|
+
title?: unknown;
|
|
820
|
+
subtitle?: unknown;
|
|
821
|
+
description?: unknown;
|
|
822
|
+
is_giftcard?: unknown;
|
|
823
|
+
discountable?: unknown;
|
|
824
|
+
images?: unknown;
|
|
825
|
+
thumbnail?: unknown;
|
|
826
|
+
handle?: unknown;
|
|
827
|
+
status?: unknown;
|
|
828
|
+
external_id?: unknown;
|
|
829
|
+
type_id?: unknown;
|
|
830
|
+
collection_id?: unknown;
|
|
831
|
+
seller_ids?: unknown;
|
|
832
|
+
categories?: unknown;
|
|
833
|
+
tags?: unknown;
|
|
834
|
+
options?: unknown;
|
|
835
|
+
attributes?: unknown;
|
|
836
|
+
variants?: unknown;
|
|
837
|
+
weight?: unknown;
|
|
838
|
+
length?: unknown;
|
|
839
|
+
height?: unknown;
|
|
840
|
+
width?: unknown;
|
|
841
|
+
hs_code?: unknown;
|
|
842
|
+
mid_code?: unknown;
|
|
843
|
+
origin_country?: unknown;
|
|
844
|
+
material?: unknown;
|
|
845
|
+
metadata?: unknown;
|
|
846
|
+
}>;
|
|
847
|
+
export declare const AdminCreateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
1020
848
|
export type AdminUpdateProductType = z.infer<typeof UpdateProduct> & AdditionalData;
|
|
1021
849
|
export declare const UpdateProduct: z.ZodObject<{
|
|
1022
850
|
title: z.ZodOptional<z.ZodString>;
|
|
1023
851
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1024
852
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1025
|
-
discountable:
|
|
1026
|
-
is_giftcard:
|
|
853
|
+
discountable: any;
|
|
854
|
+
is_giftcard: any;
|
|
1027
855
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1028
856
|
id: z.ZodOptional<z.ZodString>;
|
|
1029
857
|
url: z.ZodString;
|
|
@@ -1069,107 +897,26 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1069
897
|
values: string[];
|
|
1070
898
|
title: string;
|
|
1071
899
|
}>, "many">>;
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1093
|
-
}, "strict", z.ZodTypeAny, {
|
|
1094
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1095
|
-
name: string;
|
|
1096
|
-
values?: string[] | undefined;
|
|
1097
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1098
|
-
description?: string | null | undefined;
|
|
1099
|
-
is_variant_axis?: boolean | undefined;
|
|
1100
|
-
is_required?: boolean | undefined;
|
|
1101
|
-
is_filterable?: boolean | undefined;
|
|
1102
|
-
}, {
|
|
1103
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1104
|
-
name: string;
|
|
1105
|
-
values?: string[] | undefined;
|
|
1106
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1107
|
-
description?: string | null | undefined;
|
|
1108
|
-
is_variant_axis?: boolean | undefined;
|
|
1109
|
-
is_required?: boolean | undefined;
|
|
1110
|
-
is_filterable?: boolean | undefined;
|
|
1111
|
-
}>]>, "many">>;
|
|
1112
|
-
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1113
|
-
attribute_id: z.ZodString;
|
|
1114
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1115
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1116
|
-
}, "strict", z.ZodTypeAny, {
|
|
1117
|
-
attribute_id: string;
|
|
1118
|
-
values?: string[] | undefined;
|
|
1119
|
-
value_ids?: string[] | undefined;
|
|
1120
|
-
}, {
|
|
1121
|
-
attribute_id: string;
|
|
1122
|
-
values?: string[] | undefined;
|
|
1123
|
-
value_ids?: string[] | undefined;
|
|
1124
|
-
}>, z.ZodObject<{
|
|
1125
|
-
name: z.ZodString;
|
|
1126
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
1127
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1128
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
1129
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1130
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
1131
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1132
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1133
|
-
}, "strict", z.ZodTypeAny, {
|
|
1134
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1135
|
-
name: string;
|
|
1136
|
-
values?: string[] | undefined;
|
|
1137
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1138
|
-
description?: string | null | undefined;
|
|
1139
|
-
is_variant_axis?: boolean | undefined;
|
|
1140
|
-
is_required?: boolean | undefined;
|
|
1141
|
-
is_filterable?: boolean | undefined;
|
|
1142
|
-
}, {
|
|
1143
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1144
|
-
name: string;
|
|
1145
|
-
values?: string[] | undefined;
|
|
1146
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1147
|
-
description?: string | null | undefined;
|
|
1148
|
-
is_variant_axis?: boolean | undefined;
|
|
1149
|
-
is_required?: boolean | undefined;
|
|
1150
|
-
is_filterable?: boolean | undefined;
|
|
1151
|
-
}>]>, "many">>;
|
|
1152
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1153
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1154
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1155
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1156
|
-
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1157
|
-
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1158
|
-
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1159
|
-
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1160
|
-
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
|
-
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1162
|
-
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1163
|
-
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1164
|
-
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1165
|
-
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1166
|
-
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
1167
|
-
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1168
|
-
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1169
|
-
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1170
|
-
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1171
|
-
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1172
|
-
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
900
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
901
|
+
id: z.ZodOptional<z.ZodString>;
|
|
902
|
+
title: z.ZodOptional<z.ZodString>;
|
|
903
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
904
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
905
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
906
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
907
|
+
asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
908
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
909
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
910
|
+
hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
911
|
+
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
912
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
913
|
+
variant_rank: z.ZodOptional<z.ZodNumber>;
|
|
914
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
915
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
916
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
917
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
918
|
+
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
919
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1173
920
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1174
921
|
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1175
922
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1194,7 +941,6 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1194
941
|
rules?: Record<string, string> | undefined;
|
|
1195
942
|
}>, "many">>;
|
|
1196
943
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1197
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1198
944
|
}, "strict", z.ZodTypeAny, {
|
|
1199
945
|
options?: Record<string, string> | undefined;
|
|
1200
946
|
length?: number | null | undefined;
|
|
@@ -1225,7 +971,6 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1225
971
|
gtin?: string | null | undefined;
|
|
1226
972
|
barcode?: string | null | undefined;
|
|
1227
973
|
variant_rank?: number | undefined;
|
|
1228
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1229
974
|
}, {
|
|
1230
975
|
options?: Record<string, string> | undefined;
|
|
1231
976
|
length?: number | null | undefined;
|
|
@@ -1256,7 +1001,6 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1256
1001
|
gtin?: string | null | undefined;
|
|
1257
1002
|
barcode?: string | null | undefined;
|
|
1258
1003
|
variant_rank?: number | undefined;
|
|
1259
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1260
1004
|
}>, "many">>;
|
|
1261
1005
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1262
1006
|
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1268,203 +1012,61 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1268
1012
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1269
1013
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1270
1014
|
}, "strict", z.ZodTypeAny, {
|
|
1271
|
-
options?: {
|
|
1272
|
-
values: string[];
|
|
1273
|
-
title: string;
|
|
1274
|
-
}[] | undefined;
|
|
1275
|
-
length?: number | null | undefined;
|
|
1276
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1277
|
-
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
1278
|
-
title?: string | undefined;
|
|
1279
|
-
handle?: string | null | undefined;
|
|
1280
|
-
description?: string | null | undefined;
|
|
1281
|
-
external_id?: string | null | undefined;
|
|
1282
|
-
thumbnail?: string | null | undefined;
|
|
1283
|
-
collection_id?: string | null | undefined;
|
|
1284
|
-
type_id?: string | null | undefined;
|
|
1285
|
-
subtitle?: string | null | undefined;
|
|
1286
|
-
is_giftcard?: boolean | undefined;
|
|
1287
|
-
discountable?: boolean | undefined;
|
|
1288
|
-
weight?: number | null | undefined;
|
|
1289
|
-
height?: number | null | undefined;
|
|
1290
|
-
width?: number | null | undefined;
|
|
1291
|
-
hs_code?: string | null | undefined;
|
|
1292
|
-
origin_country?: string | null | undefined;
|
|
1293
|
-
mid_code?: string | null | undefined;
|
|
1294
|
-
material?: string | null | undefined;
|
|
1295
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1296
|
-
images?: {
|
|
1297
|
-
url: string;
|
|
1298
|
-
id?: string | undefined;
|
|
1299
|
-
}[] | undefined;
|
|
1300
|
-
categories?: {
|
|
1301
|
-
id: string;
|
|
1302
|
-
}[] | undefined;
|
|
1303
|
-
tags?: {
|
|
1304
|
-
id: string;
|
|
1305
|
-
}[] | undefined;
|
|
1306
|
-
variant_attributes?: ({
|
|
1307
|
-
attribute_id: string;
|
|
1308
|
-
values?: string[] | undefined;
|
|
1309
|
-
value_ids?: string[] | undefined;
|
|
1310
|
-
} | {
|
|
1311
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1312
|
-
name: string;
|
|
1313
|
-
values?: string[] | undefined;
|
|
1314
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1315
|
-
description?: string | null | undefined;
|
|
1316
|
-
is_variant_axis?: boolean | undefined;
|
|
1317
|
-
is_required?: boolean | undefined;
|
|
1318
|
-
is_filterable?: boolean | undefined;
|
|
1319
|
-
})[] | undefined;
|
|
1320
|
-
product_attributes?: ({
|
|
1321
|
-
attribute_id: string;
|
|
1322
|
-
values?: string[] | undefined;
|
|
1323
|
-
value_ids?: string[] | undefined;
|
|
1324
|
-
} | {
|
|
1325
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1326
|
-
name: string;
|
|
1327
|
-
values?: string[] | undefined;
|
|
1328
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1329
|
-
description?: string | null | undefined;
|
|
1330
|
-
is_variant_axis?: boolean | undefined;
|
|
1331
|
-
is_required?: boolean | undefined;
|
|
1332
|
-
is_filterable?: boolean | undefined;
|
|
1333
|
-
})[] | undefined;
|
|
1334
|
-
variants?: {
|
|
1335
|
-
options?: Record<string, string> | undefined;
|
|
1336
|
-
length?: number | null | undefined;
|
|
1337
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1338
|
-
id?: string | undefined;
|
|
1339
|
-
sku?: string | null | undefined;
|
|
1340
|
-
ean?: string | null | undefined;
|
|
1341
|
-
upc?: string | null | undefined;
|
|
1342
|
-
title?: string | undefined;
|
|
1343
|
-
prices?: {
|
|
1344
|
-
id?: string | undefined;
|
|
1345
|
-
amount?: number | undefined;
|
|
1346
|
-
currency_code?: string | undefined;
|
|
1347
|
-
min_quantity?: number | null | undefined;
|
|
1348
|
-
max_quantity?: number | null | undefined;
|
|
1349
|
-
rules?: Record<string, string> | undefined;
|
|
1350
|
-
}[] | undefined;
|
|
1351
|
-
thumbnail?: string | null | undefined;
|
|
1352
|
-
weight?: number | null | undefined;
|
|
1353
|
-
height?: number | null | undefined;
|
|
1354
|
-
width?: number | null | undefined;
|
|
1355
|
-
hs_code?: string | null | undefined;
|
|
1356
|
-
origin_country?: string | null | undefined;
|
|
1357
|
-
mid_code?: string | null | undefined;
|
|
1358
|
-
material?: string | null | undefined;
|
|
1359
|
-
isbn?: string | null | undefined;
|
|
1360
|
-
asin?: string | null | undefined;
|
|
1361
|
-
gtin?: string | null | undefined;
|
|
1362
|
-
barcode?: string | null | undefined;
|
|
1363
|
-
variant_rank?: number | undefined;
|
|
1364
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1365
|
-
}[] | undefined;
|
|
1366
|
-
}, {
|
|
1367
|
-
options?: {
|
|
1368
|
-
values: string[];
|
|
1369
|
-
title: string;
|
|
1370
|
-
}[] | undefined;
|
|
1371
|
-
length?: number | null | undefined;
|
|
1372
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1373
|
-
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
1374
|
-
title?: string | undefined;
|
|
1375
|
-
handle?: string | null | undefined;
|
|
1376
|
-
description?: string | null | undefined;
|
|
1377
|
-
external_id?: string | null | undefined;
|
|
1378
|
-
thumbnail?: string | null | undefined;
|
|
1379
|
-
collection_id?: string | null | undefined;
|
|
1380
|
-
type_id?: string | null | undefined;
|
|
1381
|
-
subtitle?: string | null | undefined;
|
|
1382
|
-
is_giftcard?: string | boolean | undefined;
|
|
1383
|
-
discountable?: string | boolean | undefined;
|
|
1384
|
-
weight?: number | null | undefined;
|
|
1385
|
-
height?: number | null | undefined;
|
|
1386
|
-
width?: number | null | undefined;
|
|
1387
|
-
hs_code?: string | null | undefined;
|
|
1388
|
-
origin_country?: string | null | undefined;
|
|
1389
|
-
mid_code?: string | null | undefined;
|
|
1390
|
-
material?: string | null | undefined;
|
|
1391
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1392
|
-
images?: {
|
|
1393
|
-
url: string;
|
|
1394
|
-
id?: string | undefined;
|
|
1395
|
-
}[] | undefined;
|
|
1396
|
-
categories?: {
|
|
1397
|
-
id: string;
|
|
1398
|
-
}[] | undefined;
|
|
1399
|
-
tags?: {
|
|
1400
|
-
id: string;
|
|
1401
|
-
}[] | undefined;
|
|
1402
|
-
variant_attributes?: ({
|
|
1403
|
-
attribute_id: string;
|
|
1404
|
-
values?: string[] | undefined;
|
|
1405
|
-
value_ids?: string[] | undefined;
|
|
1406
|
-
} | {
|
|
1407
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1408
|
-
name: string;
|
|
1409
|
-
values?: string[] | undefined;
|
|
1410
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1411
|
-
description?: string | null | undefined;
|
|
1412
|
-
is_variant_axis?: boolean | undefined;
|
|
1413
|
-
is_required?: boolean | undefined;
|
|
1414
|
-
is_filterable?: boolean | undefined;
|
|
1415
|
-
})[] | undefined;
|
|
1416
|
-
product_attributes?: ({
|
|
1417
|
-
attribute_id: string;
|
|
1418
|
-
values?: string[] | undefined;
|
|
1419
|
-
value_ids?: string[] | undefined;
|
|
1420
|
-
} | {
|
|
1421
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
1422
|
-
name: string;
|
|
1423
|
-
values?: string[] | undefined;
|
|
1424
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1425
|
-
description?: string | null | undefined;
|
|
1426
|
-
is_variant_axis?: boolean | undefined;
|
|
1427
|
-
is_required?: boolean | undefined;
|
|
1428
|
-
is_filterable?: boolean | undefined;
|
|
1429
|
-
})[] | undefined;
|
|
1430
|
-
variants?: {
|
|
1431
|
-
options?: Record<string, string> | undefined;
|
|
1432
|
-
length?: number | null | undefined;
|
|
1433
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1434
|
-
id?: string | undefined;
|
|
1435
|
-
sku?: string | null | undefined;
|
|
1436
|
-
ean?: string | null | undefined;
|
|
1437
|
-
upc?: string | null | undefined;
|
|
1438
|
-
title?: string | undefined;
|
|
1439
|
-
prices?: {
|
|
1440
|
-
id?: string | undefined;
|
|
1441
|
-
amount?: number | undefined;
|
|
1442
|
-
currency_code?: string | undefined;
|
|
1443
|
-
min_quantity?: number | null | undefined;
|
|
1444
|
-
max_quantity?: number | null | undefined;
|
|
1445
|
-
rules?: Record<string, string> | undefined;
|
|
1446
|
-
}[] | undefined;
|
|
1447
|
-
thumbnail?: string | null | undefined;
|
|
1448
|
-
weight?: number | null | undefined;
|
|
1449
|
-
height?: number | null | undefined;
|
|
1450
|
-
width?: number | null | undefined;
|
|
1451
|
-
hs_code?: string | null | undefined;
|
|
1452
|
-
origin_country?: string | null | undefined;
|
|
1453
|
-
mid_code?: string | null | undefined;
|
|
1454
|
-
material?: string | null | undefined;
|
|
1455
|
-
isbn?: string | null | undefined;
|
|
1456
|
-
asin?: string | null | undefined;
|
|
1457
|
-
gtin?: string | null | undefined;
|
|
1458
|
-
barcode?: string | null | undefined;
|
|
1459
|
-
variant_rank?: number | undefined;
|
|
1460
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1461
|
-
}[] | undefined;
|
|
1462
|
-
}>;
|
|
1463
|
-
export declare const AdminUpdateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
|
|
1464
1015
|
[x: string]: any;
|
|
1016
|
+
title?: unknown;
|
|
1017
|
+
subtitle?: unknown;
|
|
1018
|
+
description?: unknown;
|
|
1019
|
+
discountable?: unknown;
|
|
1020
|
+
is_giftcard?: unknown;
|
|
1021
|
+
images?: unknown;
|
|
1022
|
+
thumbnail?: unknown;
|
|
1023
|
+
handle?: unknown;
|
|
1024
|
+
status?: unknown;
|
|
1025
|
+
external_id?: unknown;
|
|
1026
|
+
type_id?: unknown;
|
|
1027
|
+
collection_id?: unknown;
|
|
1028
|
+
categories?: unknown;
|
|
1029
|
+
tags?: unknown;
|
|
1030
|
+
options?: unknown;
|
|
1031
|
+
variants?: unknown;
|
|
1032
|
+
weight?: unknown;
|
|
1033
|
+
length?: unknown;
|
|
1034
|
+
height?: unknown;
|
|
1035
|
+
width?: unknown;
|
|
1036
|
+
hs_code?: unknown;
|
|
1037
|
+
mid_code?: unknown;
|
|
1038
|
+
origin_country?: unknown;
|
|
1039
|
+
material?: unknown;
|
|
1040
|
+
metadata?: unknown;
|
|
1465
1041
|
}, {
|
|
1466
1042
|
[x: string]: any;
|
|
1467
|
-
|
|
1043
|
+
title?: unknown;
|
|
1044
|
+
subtitle?: unknown;
|
|
1045
|
+
description?: unknown;
|
|
1046
|
+
discountable?: unknown;
|
|
1047
|
+
is_giftcard?: unknown;
|
|
1048
|
+
images?: unknown;
|
|
1049
|
+
thumbnail?: unknown;
|
|
1050
|
+
handle?: unknown;
|
|
1051
|
+
status?: unknown;
|
|
1052
|
+
external_id?: unknown;
|
|
1053
|
+
type_id?: unknown;
|
|
1054
|
+
collection_id?: unknown;
|
|
1055
|
+
categories?: unknown;
|
|
1056
|
+
tags?: unknown;
|
|
1057
|
+
options?: unknown;
|
|
1058
|
+
variants?: unknown;
|
|
1059
|
+
weight?: unknown;
|
|
1060
|
+
length?: unknown;
|
|
1061
|
+
height?: unknown;
|
|
1062
|
+
width?: unknown;
|
|
1063
|
+
hs_code?: unknown;
|
|
1064
|
+
mid_code?: unknown;
|
|
1065
|
+
origin_country?: unknown;
|
|
1066
|
+
material?: unknown;
|
|
1067
|
+
metadata?: unknown;
|
|
1068
|
+
}>;
|
|
1069
|
+
export declare const AdminUpdateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
1468
1070
|
export type AdminConfirmProductType = z.infer<typeof AdminConfirmProduct>;
|
|
1469
1071
|
export declare const AdminConfirmProduct: z.ZodObject<{
|
|
1470
1072
|
internal_note: z.ZodOptional<z.ZodString>;
|
|
@@ -1509,9 +1111,7 @@ declare const BatchProductVariants: z.ZodObject<{
|
|
|
1509
1111
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1510
1112
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1511
1113
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1512
|
-
/** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
|
|
1513
1114
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1514
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1515
1115
|
}, "strict", z.ZodTypeAny, {
|
|
1516
1116
|
title: string;
|
|
1517
1117
|
options?: Record<string, string> | undefined;
|
|
@@ -1532,7 +1132,6 @@ declare const BatchProductVariants: z.ZodObject<{
|
|
|
1532
1132
|
gtin?: string | null | undefined;
|
|
1533
1133
|
barcode?: string | null | undefined;
|
|
1534
1134
|
variant_rank?: number | undefined;
|
|
1535
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1536
1135
|
}, {
|
|
1537
1136
|
title: string;
|
|
1538
1137
|
options?: Record<string, string> | undefined;
|
|
@@ -1553,7 +1152,6 @@ declare const BatchProductVariants: z.ZodObject<{
|
|
|
1553
1152
|
gtin?: string | null | undefined;
|
|
1554
1153
|
barcode?: string | null | undefined;
|
|
1555
1154
|
variant_rank?: number | undefined;
|
|
1556
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1557
1155
|
}>, "many">>;
|
|
1558
1156
|
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1559
1157
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1598,7 +1196,6 @@ declare const BatchProductVariants: z.ZodObject<{
|
|
|
1598
1196
|
rules?: Record<string, string> | undefined;
|
|
1599
1197
|
}>, "many">>;
|
|
1600
1198
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1601
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1602
1199
|
} & {
|
|
1603
1200
|
id: z.ZodString;
|
|
1604
1201
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1631,7 +1228,6 @@ declare const BatchProductVariants: z.ZodObject<{
|
|
|
1631
1228
|
gtin?: string | null | undefined;
|
|
1632
1229
|
barcode?: string | null | undefined;
|
|
1633
1230
|
variant_rank?: number | undefined;
|
|
1634
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1635
1231
|
}, {
|
|
1636
1232
|
id: string;
|
|
1637
1233
|
options?: Record<string, string> | undefined;
|
|
@@ -1662,7 +1258,6 @@ declare const BatchProductVariants: z.ZodObject<{
|
|
|
1662
1258
|
gtin?: string | null | undefined;
|
|
1663
1259
|
barcode?: string | null | undefined;
|
|
1664
1260
|
variant_rank?: number | undefined;
|
|
1665
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1666
1261
|
}>, "many">>;
|
|
1667
1262
|
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1668
1263
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1686,7 +1281,6 @@ declare const BatchProductVariants: z.ZodObject<{
|
|
|
1686
1281
|
gtin?: string | null | undefined;
|
|
1687
1282
|
barcode?: string | null | undefined;
|
|
1688
1283
|
variant_rank?: number | undefined;
|
|
1689
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1690
1284
|
}[] | undefined;
|
|
1691
1285
|
update?: {
|
|
1692
1286
|
id: string;
|
|
@@ -1718,7 +1312,6 @@ declare const BatchProductVariants: z.ZodObject<{
|
|
|
1718
1312
|
gtin?: string | null | undefined;
|
|
1719
1313
|
barcode?: string | null | undefined;
|
|
1720
1314
|
variant_rank?: number | undefined;
|
|
1721
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1722
1315
|
}[] | undefined;
|
|
1723
1316
|
delete?: string[] | undefined;
|
|
1724
1317
|
}, {
|
|
@@ -1742,7 +1335,6 @@ declare const BatchProductVariants: z.ZodObject<{
|
|
|
1742
1335
|
gtin?: string | null | undefined;
|
|
1743
1336
|
barcode?: string | null | undefined;
|
|
1744
1337
|
variant_rank?: number | undefined;
|
|
1745
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1746
1338
|
}[] | undefined;
|
|
1747
1339
|
update?: {
|
|
1748
1340
|
id: string;
|
|
@@ -1774,7 +1366,6 @@ declare const BatchProductVariants: z.ZodObject<{
|
|
|
1774
1366
|
gtin?: string | null | undefined;
|
|
1775
1367
|
barcode?: string | null | undefined;
|
|
1776
1368
|
variant_rank?: number | undefined;
|
|
1777
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1778
1369
|
}[] | undefined;
|
|
1779
1370
|
delete?: string[] | undefined;
|
|
1780
1371
|
}>;
|
|
@@ -1799,9 +1390,7 @@ export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
|
1799
1390
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1800
1391
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1801
1392
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1802
|
-
/** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
|
|
1803
1393
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1804
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1805
1394
|
}, "strict", z.ZodTypeAny, {
|
|
1806
1395
|
title: string;
|
|
1807
1396
|
options?: Record<string, string> | undefined;
|
|
@@ -1822,7 +1411,6 @@ export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
|
1822
1411
|
gtin?: string | null | undefined;
|
|
1823
1412
|
barcode?: string | null | undefined;
|
|
1824
1413
|
variant_rank?: number | undefined;
|
|
1825
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1826
1414
|
}, {
|
|
1827
1415
|
title: string;
|
|
1828
1416
|
options?: Record<string, string> | undefined;
|
|
@@ -1843,7 +1431,6 @@ export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
|
1843
1431
|
gtin?: string | null | undefined;
|
|
1844
1432
|
barcode?: string | null | undefined;
|
|
1845
1433
|
variant_rank?: number | undefined;
|
|
1846
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1847
1434
|
}>, "many">>;
|
|
1848
1435
|
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1849
1436
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1888,7 +1475,6 @@ export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
|
1888
1475
|
rules?: Record<string, string> | undefined;
|
|
1889
1476
|
}>, "many">>;
|
|
1890
1477
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1891
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
1892
1478
|
} & {
|
|
1893
1479
|
id: z.ZodString;
|
|
1894
1480
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1921,7 +1507,6 @@ export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
|
1921
1507
|
gtin?: string | null | undefined;
|
|
1922
1508
|
barcode?: string | null | undefined;
|
|
1923
1509
|
variant_rank?: number | undefined;
|
|
1924
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1925
1510
|
}, {
|
|
1926
1511
|
id: string;
|
|
1927
1512
|
options?: Record<string, string> | undefined;
|
|
@@ -1952,7 +1537,6 @@ export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
|
1952
1537
|
gtin?: string | null | undefined;
|
|
1953
1538
|
barcode?: string | null | undefined;
|
|
1954
1539
|
variant_rank?: number | undefined;
|
|
1955
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1956
1540
|
}>, "many">>;
|
|
1957
1541
|
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1958
1542
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1976,7 +1560,6 @@ export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
|
1976
1560
|
gtin?: string | null | undefined;
|
|
1977
1561
|
barcode?: string | null | undefined;
|
|
1978
1562
|
variant_rank?: number | undefined;
|
|
1979
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
1980
1563
|
}[] | undefined;
|
|
1981
1564
|
update?: {
|
|
1982
1565
|
id: string;
|
|
@@ -2008,7 +1591,6 @@ export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
|
2008
1591
|
gtin?: string | null | undefined;
|
|
2009
1592
|
barcode?: string | null | undefined;
|
|
2010
1593
|
variant_rank?: number | undefined;
|
|
2011
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2012
1594
|
}[] | undefined;
|
|
2013
1595
|
delete?: string[] | undefined;
|
|
2014
1596
|
}, {
|
|
@@ -2032,7 +1614,6 @@ export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
|
2032
1614
|
gtin?: string | null | undefined;
|
|
2033
1615
|
barcode?: string | null | undefined;
|
|
2034
1616
|
variant_rank?: number | undefined;
|
|
2035
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2036
1617
|
}[] | undefined;
|
|
2037
1618
|
update?: {
|
|
2038
1619
|
id: string;
|
|
@@ -2064,7 +1645,6 @@ export declare const AdminBatchProductVariants: z.ZodObject<{
|
|
|
2064
1645
|
gtin?: string | null | undefined;
|
|
2065
1646
|
barcode?: string | null | undefined;
|
|
2066
1647
|
variant_rank?: number | undefined;
|
|
2067
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2068
1648
|
}[] | undefined;
|
|
2069
1649
|
delete?: string[] | undefined;
|
|
2070
1650
|
}>;
|
|
@@ -2142,8 +1722,8 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
2142
1722
|
title: z.ZodOptional<z.ZodString>;
|
|
2143
1723
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2144
1724
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2145
|
-
discountable:
|
|
2146
|
-
is_giftcard:
|
|
1725
|
+
discountable: any;
|
|
1726
|
+
is_giftcard: any;
|
|
2147
1727
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2148
1728
|
id: z.ZodOptional<z.ZodString>;
|
|
2149
1729
|
url: z.ZodString;
|
|
@@ -2189,87 +1769,6 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
2189
1769
|
values: string[];
|
|
2190
1770
|
title: string;
|
|
2191
1771
|
}>, "many">>;
|
|
2192
|
-
variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2193
|
-
attribute_id: z.ZodString;
|
|
2194
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2195
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2196
|
-
}, "strict", z.ZodTypeAny, {
|
|
2197
|
-
attribute_id: string;
|
|
2198
|
-
values?: string[] | undefined;
|
|
2199
|
-
value_ids?: string[] | undefined;
|
|
2200
|
-
}, {
|
|
2201
|
-
attribute_id: string;
|
|
2202
|
-
values?: string[] | undefined;
|
|
2203
|
-
value_ids?: string[] | undefined;
|
|
2204
|
-
}>, z.ZodObject<{
|
|
2205
|
-
name: z.ZodString;
|
|
2206
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
2207
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2208
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
2209
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
2210
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
2211
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2212
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2213
|
-
}, "strict", z.ZodTypeAny, {
|
|
2214
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2215
|
-
name: string;
|
|
2216
|
-
values?: string[] | undefined;
|
|
2217
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2218
|
-
description?: string | null | undefined;
|
|
2219
|
-
is_variant_axis?: boolean | undefined;
|
|
2220
|
-
is_required?: boolean | undefined;
|
|
2221
|
-
is_filterable?: boolean | undefined;
|
|
2222
|
-
}, {
|
|
2223
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2224
|
-
name: string;
|
|
2225
|
-
values?: string[] | undefined;
|
|
2226
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2227
|
-
description?: string | null | undefined;
|
|
2228
|
-
is_variant_axis?: boolean | undefined;
|
|
2229
|
-
is_required?: boolean | undefined;
|
|
2230
|
-
is_filterable?: boolean | undefined;
|
|
2231
|
-
}>]>, "many">>;
|
|
2232
|
-
product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2233
|
-
attribute_id: z.ZodString;
|
|
2234
|
-
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2235
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2236
|
-
}, "strict", z.ZodTypeAny, {
|
|
2237
|
-
attribute_id: string;
|
|
2238
|
-
values?: string[] | undefined;
|
|
2239
|
-
value_ids?: string[] | undefined;
|
|
2240
|
-
}, {
|
|
2241
|
-
attribute_id: string;
|
|
2242
|
-
values?: string[] | undefined;
|
|
2243
|
-
value_ids?: string[] | undefined;
|
|
2244
|
-
}>, z.ZodObject<{
|
|
2245
|
-
name: z.ZodString;
|
|
2246
|
-
type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
|
|
2247
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2248
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
2249
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
2250
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
2251
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2252
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2253
|
-
}, "strict", z.ZodTypeAny, {
|
|
2254
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2255
|
-
name: string;
|
|
2256
|
-
values?: string[] | undefined;
|
|
2257
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2258
|
-
description?: string | null | undefined;
|
|
2259
|
-
is_variant_axis?: boolean | undefined;
|
|
2260
|
-
is_required?: boolean | undefined;
|
|
2261
|
-
is_filterable?: boolean | undefined;
|
|
2262
|
-
}, {
|
|
2263
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2264
|
-
name: string;
|
|
2265
|
-
values?: string[] | undefined;
|
|
2266
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2267
|
-
description?: string | null | undefined;
|
|
2268
|
-
is_variant_axis?: boolean | undefined;
|
|
2269
|
-
is_required?: boolean | undefined;
|
|
2270
|
-
is_filterable?: boolean | undefined;
|
|
2271
|
-
}>]>, "many">>;
|
|
2272
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
2273
1772
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2274
1773
|
id: z.ZodOptional<z.ZodString>;
|
|
2275
1774
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2314,7 +1813,6 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
2314
1813
|
rules?: Record<string, string> | undefined;
|
|
2315
1814
|
}>, "many">>;
|
|
2316
1815
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2317
|
-
attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
2318
1816
|
}, "strict", z.ZodTypeAny, {
|
|
2319
1817
|
options?: Record<string, string> | undefined;
|
|
2320
1818
|
length?: number | null | undefined;
|
|
@@ -2345,7 +1843,6 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
2345
1843
|
gtin?: string | null | undefined;
|
|
2346
1844
|
barcode?: string | null | undefined;
|
|
2347
1845
|
variant_rank?: number | undefined;
|
|
2348
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2349
1846
|
}, {
|
|
2350
1847
|
options?: Record<string, string> | undefined;
|
|
2351
1848
|
length?: number | null | undefined;
|
|
@@ -2376,7 +1873,6 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
2376
1873
|
gtin?: string | null | undefined;
|
|
2377
1874
|
barcode?: string | null | undefined;
|
|
2378
1875
|
variant_rank?: number | undefined;
|
|
2379
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2380
1876
|
}>, "many">>;
|
|
2381
1877
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2382
1878
|
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -2389,567 +1885,295 @@ declare const BatchProducts: z.ZodObject<{
|
|
|
2389
1885
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2390
1886
|
} & {
|
|
2391
1887
|
id: z.ZodString;
|
|
1888
|
+
}, "strict", z.ZodTypeAny, {
|
|
1889
|
+
[x: string]: any;
|
|
1890
|
+
title?: unknown;
|
|
1891
|
+
subtitle?: unknown;
|
|
1892
|
+
description?: unknown;
|
|
1893
|
+
discountable?: unknown;
|
|
1894
|
+
is_giftcard?: unknown;
|
|
1895
|
+
images?: unknown;
|
|
1896
|
+
thumbnail?: unknown;
|
|
1897
|
+
handle?: unknown;
|
|
1898
|
+
status?: unknown;
|
|
1899
|
+
external_id?: unknown;
|
|
1900
|
+
type_id?: unknown;
|
|
1901
|
+
collection_id?: unknown;
|
|
1902
|
+
categories?: unknown;
|
|
1903
|
+
tags?: unknown;
|
|
1904
|
+
options?: unknown;
|
|
1905
|
+
variants?: unknown;
|
|
1906
|
+
weight?: unknown;
|
|
1907
|
+
length?: unknown;
|
|
1908
|
+
height?: unknown;
|
|
1909
|
+
width?: unknown;
|
|
1910
|
+
hs_code?: unknown;
|
|
1911
|
+
mid_code?: unknown;
|
|
1912
|
+
origin_country?: unknown;
|
|
1913
|
+
material?: unknown;
|
|
1914
|
+
metadata?: unknown;
|
|
1915
|
+
id?: unknown;
|
|
1916
|
+
}, {
|
|
1917
|
+
[x: string]: any;
|
|
1918
|
+
title?: unknown;
|
|
1919
|
+
subtitle?: unknown;
|
|
1920
|
+
description?: unknown;
|
|
1921
|
+
discountable?: unknown;
|
|
1922
|
+
is_giftcard?: unknown;
|
|
1923
|
+
images?: unknown;
|
|
1924
|
+
thumbnail?: unknown;
|
|
1925
|
+
handle?: unknown;
|
|
1926
|
+
status?: unknown;
|
|
1927
|
+
external_id?: unknown;
|
|
1928
|
+
type_id?: unknown;
|
|
1929
|
+
collection_id?: unknown;
|
|
1930
|
+
categories?: unknown;
|
|
1931
|
+
tags?: unknown;
|
|
1932
|
+
options?: unknown;
|
|
1933
|
+
variants?: unknown;
|
|
1934
|
+
weight?: unknown;
|
|
1935
|
+
length?: unknown;
|
|
1936
|
+
height?: unknown;
|
|
1937
|
+
width?: unknown;
|
|
1938
|
+
hs_code?: unknown;
|
|
1939
|
+
mid_code?: unknown;
|
|
1940
|
+
origin_country?: unknown;
|
|
1941
|
+
material?: unknown;
|
|
1942
|
+
metadata?: unknown;
|
|
1943
|
+
id?: unknown;
|
|
1944
|
+
}>, "many">>;
|
|
1945
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1946
|
+
}, "strip", z.ZodTypeAny, {
|
|
1947
|
+
update?: {
|
|
1948
|
+
[x: string]: any;
|
|
1949
|
+
title?: unknown;
|
|
1950
|
+
subtitle?: unknown;
|
|
1951
|
+
description?: unknown;
|
|
1952
|
+
discountable?: unknown;
|
|
1953
|
+
is_giftcard?: unknown;
|
|
1954
|
+
images?: unknown;
|
|
1955
|
+
thumbnail?: unknown;
|
|
1956
|
+
handle?: unknown;
|
|
1957
|
+
status?: unknown;
|
|
1958
|
+
external_id?: unknown;
|
|
1959
|
+
type_id?: unknown;
|
|
1960
|
+
collection_id?: unknown;
|
|
1961
|
+
categories?: unknown;
|
|
1962
|
+
tags?: unknown;
|
|
1963
|
+
options?: unknown;
|
|
1964
|
+
variants?: unknown;
|
|
1965
|
+
weight?: unknown;
|
|
1966
|
+
length?: unknown;
|
|
1967
|
+
height?: unknown;
|
|
1968
|
+
width?: unknown;
|
|
1969
|
+
hs_code?: unknown;
|
|
1970
|
+
mid_code?: unknown;
|
|
1971
|
+
origin_country?: unknown;
|
|
1972
|
+
material?: unknown;
|
|
1973
|
+
metadata?: unknown;
|
|
1974
|
+
id?: unknown;
|
|
1975
|
+
}[] | undefined;
|
|
1976
|
+
delete?: string[] | undefined;
|
|
1977
|
+
}, {
|
|
1978
|
+
update?: {
|
|
1979
|
+
[x: string]: any;
|
|
1980
|
+
title?: unknown;
|
|
1981
|
+
subtitle?: unknown;
|
|
1982
|
+
description?: unknown;
|
|
1983
|
+
discountable?: unknown;
|
|
1984
|
+
is_giftcard?: unknown;
|
|
1985
|
+
images?: unknown;
|
|
1986
|
+
thumbnail?: unknown;
|
|
1987
|
+
handle?: unknown;
|
|
1988
|
+
status?: unknown;
|
|
1989
|
+
external_id?: unknown;
|
|
1990
|
+
type_id?: unknown;
|
|
1991
|
+
collection_id?: unknown;
|
|
1992
|
+
categories?: unknown;
|
|
1993
|
+
tags?: unknown;
|
|
1994
|
+
options?: unknown;
|
|
1995
|
+
variants?: unknown;
|
|
1996
|
+
weight?: unknown;
|
|
1997
|
+
length?: unknown;
|
|
1998
|
+
height?: unknown;
|
|
1999
|
+
width?: unknown;
|
|
2000
|
+
hs_code?: unknown;
|
|
2001
|
+
mid_code?: unknown;
|
|
2002
|
+
origin_country?: unknown;
|
|
2003
|
+
material?: unknown;
|
|
2004
|
+
metadata?: unknown;
|
|
2005
|
+
id?: unknown;
|
|
2006
|
+
}[] | undefined;
|
|
2007
|
+
delete?: string[] | undefined;
|
|
2008
|
+
}>;
|
|
2009
|
+
export type AdminBatchProductsType = z.infer<typeof BatchProducts> & AdditionalData;
|
|
2010
|
+
export declare const AdminBatchProducts: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
2011
|
+
export type AdminBatchProductAttributesType = z.infer<typeof AdminBatchProductAttributes>;
|
|
2012
|
+
export declare const AdminBatchProductAttributes: z.ZodObject<{
|
|
2013
|
+
add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2014
|
+
id: z.ZodString;
|
|
2015
|
+
value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2016
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2392
2017
|
}, "strict", z.ZodTypeAny, {
|
|
2393
2018
|
id: string;
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2019
|
+
value?: string | number | boolean | undefined;
|
|
2020
|
+
value_ids?: string[] | undefined;
|
|
2021
|
+
}, {
|
|
2022
|
+
id: string;
|
|
2023
|
+
value?: string | number | boolean | undefined;
|
|
2024
|
+
value_ids?: string[] | undefined;
|
|
2025
|
+
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2026
|
+
title: z.ZodString;
|
|
2027
|
+
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
2028
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2029
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2030
|
+
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
2031
|
+
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
2032
|
+
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
2033
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2034
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2035
|
+
}, "strict", z.ZodTypeAny, {
|
|
2036
|
+
title: string;
|
|
2037
|
+
values?: string[] | undefined;
|
|
2399
2038
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
handle?: string | null | undefined;
|
|
2039
|
+
value?: string | number | boolean | undefined;
|
|
2040
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2403
2041
|
description?: string | null | undefined;
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
type_id?: string | null | undefined;
|
|
2408
|
-
subtitle?: string | null | undefined;
|
|
2409
|
-
is_giftcard?: boolean | undefined;
|
|
2410
|
-
discountable?: boolean | undefined;
|
|
2411
|
-
weight?: number | null | undefined;
|
|
2412
|
-
height?: number | null | undefined;
|
|
2413
|
-
width?: number | null | undefined;
|
|
2414
|
-
hs_code?: string | null | undefined;
|
|
2415
|
-
origin_country?: string | null | undefined;
|
|
2416
|
-
mid_code?: string | null | undefined;
|
|
2417
|
-
material?: string | null | undefined;
|
|
2418
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2419
|
-
images?: {
|
|
2420
|
-
url: string;
|
|
2421
|
-
id?: string | undefined;
|
|
2422
|
-
}[] | undefined;
|
|
2423
|
-
categories?: {
|
|
2424
|
-
id: string;
|
|
2425
|
-
}[] | undefined;
|
|
2426
|
-
tags?: {
|
|
2427
|
-
id: string;
|
|
2428
|
-
}[] | undefined;
|
|
2429
|
-
variant_attributes?: ({
|
|
2430
|
-
attribute_id: string;
|
|
2431
|
-
values?: string[] | undefined;
|
|
2432
|
-
value_ids?: string[] | undefined;
|
|
2433
|
-
} | {
|
|
2434
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2435
|
-
name: string;
|
|
2436
|
-
values?: string[] | undefined;
|
|
2437
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2438
|
-
description?: string | null | undefined;
|
|
2439
|
-
is_variant_axis?: boolean | undefined;
|
|
2440
|
-
is_required?: boolean | undefined;
|
|
2441
|
-
is_filterable?: boolean | undefined;
|
|
2442
|
-
})[] | undefined;
|
|
2443
|
-
product_attributes?: ({
|
|
2444
|
-
attribute_id: string;
|
|
2445
|
-
values?: string[] | undefined;
|
|
2446
|
-
value_ids?: string[] | undefined;
|
|
2447
|
-
} | {
|
|
2448
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2449
|
-
name: string;
|
|
2450
|
-
values?: string[] | undefined;
|
|
2451
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2452
|
-
description?: string | null | undefined;
|
|
2453
|
-
is_variant_axis?: boolean | undefined;
|
|
2454
|
-
is_required?: boolean | undefined;
|
|
2455
|
-
is_filterable?: boolean | undefined;
|
|
2456
|
-
})[] | undefined;
|
|
2457
|
-
variants?: {
|
|
2458
|
-
options?: Record<string, string> | undefined;
|
|
2459
|
-
length?: number | null | undefined;
|
|
2460
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2461
|
-
id?: string | undefined;
|
|
2462
|
-
sku?: string | null | undefined;
|
|
2463
|
-
ean?: string | null | undefined;
|
|
2464
|
-
upc?: string | null | undefined;
|
|
2465
|
-
title?: string | undefined;
|
|
2466
|
-
prices?: {
|
|
2467
|
-
id?: string | undefined;
|
|
2468
|
-
amount?: number | undefined;
|
|
2469
|
-
currency_code?: string | undefined;
|
|
2470
|
-
min_quantity?: number | null | undefined;
|
|
2471
|
-
max_quantity?: number | null | undefined;
|
|
2472
|
-
rules?: Record<string, string> | undefined;
|
|
2473
|
-
}[] | undefined;
|
|
2474
|
-
thumbnail?: string | null | undefined;
|
|
2475
|
-
weight?: number | null | undefined;
|
|
2476
|
-
height?: number | null | undefined;
|
|
2477
|
-
width?: number | null | undefined;
|
|
2478
|
-
hs_code?: string | null | undefined;
|
|
2479
|
-
origin_country?: string | null | undefined;
|
|
2480
|
-
mid_code?: string | null | undefined;
|
|
2481
|
-
material?: string | null | undefined;
|
|
2482
|
-
isbn?: string | null | undefined;
|
|
2483
|
-
asin?: string | null | undefined;
|
|
2484
|
-
gtin?: string | null | undefined;
|
|
2485
|
-
barcode?: string | null | undefined;
|
|
2486
|
-
variant_rank?: number | undefined;
|
|
2487
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2488
|
-
}[] | undefined;
|
|
2042
|
+
is_variant_axis?: boolean | undefined;
|
|
2043
|
+
is_required?: boolean | undefined;
|
|
2044
|
+
is_filterable?: boolean | undefined;
|
|
2489
2045
|
}, {
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
values: string[];
|
|
2493
|
-
title: string;
|
|
2494
|
-
}[] | undefined;
|
|
2495
|
-
length?: number | null | undefined;
|
|
2046
|
+
title: string;
|
|
2047
|
+
values?: string[] | undefined;
|
|
2496
2048
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
handle?: string | null | undefined;
|
|
2049
|
+
value?: string | number | boolean | undefined;
|
|
2050
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2500
2051
|
description?: string | null | undefined;
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2052
|
+
is_variant_axis?: boolean | undefined;
|
|
2053
|
+
is_required?: boolean | undefined;
|
|
2054
|
+
is_filterable?: boolean | undefined;
|
|
2055
|
+
}>, {
|
|
2056
|
+
title: string;
|
|
2057
|
+
values?: string[] | undefined;
|
|
2058
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2059
|
+
value?: string | number | boolean | undefined;
|
|
2060
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2061
|
+
description?: string | null | undefined;
|
|
2062
|
+
is_variant_axis?: boolean | undefined;
|
|
2063
|
+
is_required?: boolean | undefined;
|
|
2064
|
+
is_filterable?: boolean | undefined;
|
|
2065
|
+
}, {
|
|
2066
|
+
title: string;
|
|
2067
|
+
values?: string[] | undefined;
|
|
2068
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2069
|
+
value?: string | number | boolean | undefined;
|
|
2070
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2071
|
+
description?: string | null | undefined;
|
|
2072
|
+
is_variant_axis?: boolean | undefined;
|
|
2073
|
+
is_required?: boolean | undefined;
|
|
2074
|
+
is_filterable?: boolean | undefined;
|
|
2075
|
+
}>, {
|
|
2076
|
+
title: string;
|
|
2077
|
+
values?: string[] | undefined;
|
|
2078
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2079
|
+
value?: string | number | boolean | undefined;
|
|
2080
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2081
|
+
description?: string | null | undefined;
|
|
2082
|
+
is_variant_axis?: boolean | undefined;
|
|
2083
|
+
is_required?: boolean | undefined;
|
|
2084
|
+
is_filterable?: boolean | undefined;
|
|
2085
|
+
}, {
|
|
2086
|
+
title: string;
|
|
2087
|
+
values?: string[] | undefined;
|
|
2088
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2089
|
+
value?: string | number | boolean | undefined;
|
|
2090
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2091
|
+
description?: string | null | undefined;
|
|
2092
|
+
is_variant_axis?: boolean | undefined;
|
|
2093
|
+
is_required?: boolean | undefined;
|
|
2094
|
+
is_filterable?: boolean | undefined;
|
|
2095
|
+
}>]>, "many">>;
|
|
2096
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2097
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2098
|
+
id: z.ZodString;
|
|
2099
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2101
|
+
value: z.ZodString;
|
|
2102
|
+
}, "strict", z.ZodTypeAny, {
|
|
2103
|
+
value: string;
|
|
2104
|
+
}, {
|
|
2105
|
+
value: string;
|
|
2106
|
+
}>]>, "many">>;
|
|
2107
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2108
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2109
|
+
}, "strict", z.ZodTypeAny, {
|
|
2110
|
+
id: string;
|
|
2111
|
+
value?: string | number | boolean | undefined;
|
|
2112
|
+
title?: string | undefined;
|
|
2113
|
+
add?: (string | {
|
|
2114
|
+
value: string;
|
|
2539
2115
|
})[] | undefined;
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
values?: string[] | undefined;
|
|
2548
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2549
|
-
description?: string | null | undefined;
|
|
2550
|
-
is_variant_axis?: boolean | undefined;
|
|
2551
|
-
is_required?: boolean | undefined;
|
|
2552
|
-
is_filterable?: boolean | undefined;
|
|
2116
|
+
remove?: string[] | undefined;
|
|
2117
|
+
}, {
|
|
2118
|
+
id: string;
|
|
2119
|
+
value?: string | number | boolean | undefined;
|
|
2120
|
+
title?: string | undefined;
|
|
2121
|
+
add?: (string | {
|
|
2122
|
+
value: string;
|
|
2553
2123
|
})[] | undefined;
|
|
2554
|
-
|
|
2555
|
-
options?: Record<string, string> | undefined;
|
|
2556
|
-
length?: number | null | undefined;
|
|
2557
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2558
|
-
id?: string | undefined;
|
|
2559
|
-
sku?: string | null | undefined;
|
|
2560
|
-
ean?: string | null | undefined;
|
|
2561
|
-
upc?: string | null | undefined;
|
|
2562
|
-
title?: string | undefined;
|
|
2563
|
-
prices?: {
|
|
2564
|
-
id?: string | undefined;
|
|
2565
|
-
amount?: number | undefined;
|
|
2566
|
-
currency_code?: string | undefined;
|
|
2567
|
-
min_quantity?: number | null | undefined;
|
|
2568
|
-
max_quantity?: number | null | undefined;
|
|
2569
|
-
rules?: Record<string, string> | undefined;
|
|
2570
|
-
}[] | undefined;
|
|
2571
|
-
thumbnail?: string | null | undefined;
|
|
2572
|
-
weight?: number | null | undefined;
|
|
2573
|
-
height?: number | null | undefined;
|
|
2574
|
-
width?: number | null | undefined;
|
|
2575
|
-
hs_code?: string | null | undefined;
|
|
2576
|
-
origin_country?: string | null | undefined;
|
|
2577
|
-
mid_code?: string | null | undefined;
|
|
2578
|
-
material?: string | null | undefined;
|
|
2579
|
-
isbn?: string | null | undefined;
|
|
2580
|
-
asin?: string | null | undefined;
|
|
2581
|
-
gtin?: string | null | undefined;
|
|
2582
|
-
barcode?: string | null | undefined;
|
|
2583
|
-
variant_rank?: number | undefined;
|
|
2584
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2585
|
-
}[] | undefined;
|
|
2124
|
+
remove?: string[] | undefined;
|
|
2586
2125
|
}>, "many">>;
|
|
2587
|
-
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2588
2126
|
}, "strip", z.ZodTypeAny, {
|
|
2589
2127
|
update?: {
|
|
2590
2128
|
id: string;
|
|
2591
|
-
|
|
2592
|
-
values: string[];
|
|
2593
|
-
title: string;
|
|
2594
|
-
}[] | undefined;
|
|
2595
|
-
length?: number | null | undefined;
|
|
2596
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2597
|
-
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
2129
|
+
value?: string | number | boolean | undefined;
|
|
2598
2130
|
title?: string | undefined;
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
external_id?: string | null | undefined;
|
|
2602
|
-
thumbnail?: string | null | undefined;
|
|
2603
|
-
collection_id?: string | null | undefined;
|
|
2604
|
-
type_id?: string | null | undefined;
|
|
2605
|
-
subtitle?: string | null | undefined;
|
|
2606
|
-
is_giftcard?: boolean | undefined;
|
|
2607
|
-
discountable?: boolean | undefined;
|
|
2608
|
-
weight?: number | null | undefined;
|
|
2609
|
-
height?: number | null | undefined;
|
|
2610
|
-
width?: number | null | undefined;
|
|
2611
|
-
hs_code?: string | null | undefined;
|
|
2612
|
-
origin_country?: string | null | undefined;
|
|
2613
|
-
mid_code?: string | null | undefined;
|
|
2614
|
-
material?: string | null | undefined;
|
|
2615
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2616
|
-
images?: {
|
|
2617
|
-
url: string;
|
|
2618
|
-
id?: string | undefined;
|
|
2619
|
-
}[] | undefined;
|
|
2620
|
-
categories?: {
|
|
2621
|
-
id: string;
|
|
2622
|
-
}[] | undefined;
|
|
2623
|
-
tags?: {
|
|
2624
|
-
id: string;
|
|
2625
|
-
}[] | undefined;
|
|
2626
|
-
variant_attributes?: ({
|
|
2627
|
-
attribute_id: string;
|
|
2628
|
-
values?: string[] | undefined;
|
|
2629
|
-
value_ids?: string[] | undefined;
|
|
2630
|
-
} | {
|
|
2631
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2632
|
-
name: string;
|
|
2633
|
-
values?: string[] | undefined;
|
|
2634
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2635
|
-
description?: string | null | undefined;
|
|
2636
|
-
is_variant_axis?: boolean | undefined;
|
|
2637
|
-
is_required?: boolean | undefined;
|
|
2638
|
-
is_filterable?: boolean | undefined;
|
|
2639
|
-
})[] | undefined;
|
|
2640
|
-
product_attributes?: ({
|
|
2641
|
-
attribute_id: string;
|
|
2642
|
-
values?: string[] | undefined;
|
|
2643
|
-
value_ids?: string[] | undefined;
|
|
2644
|
-
} | {
|
|
2645
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2646
|
-
name: string;
|
|
2647
|
-
values?: string[] | undefined;
|
|
2648
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2649
|
-
description?: string | null | undefined;
|
|
2650
|
-
is_variant_axis?: boolean | undefined;
|
|
2651
|
-
is_required?: boolean | undefined;
|
|
2652
|
-
is_filterable?: boolean | undefined;
|
|
2131
|
+
add?: (string | {
|
|
2132
|
+
value: string;
|
|
2653
2133
|
})[] | undefined;
|
|
2654
|
-
|
|
2655
|
-
options?: Record<string, string> | undefined;
|
|
2656
|
-
length?: number | null | undefined;
|
|
2657
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2658
|
-
id?: string | undefined;
|
|
2659
|
-
sku?: string | null | undefined;
|
|
2660
|
-
ean?: string | null | undefined;
|
|
2661
|
-
upc?: string | null | undefined;
|
|
2662
|
-
title?: string | undefined;
|
|
2663
|
-
prices?: {
|
|
2664
|
-
id?: string | undefined;
|
|
2665
|
-
amount?: number | undefined;
|
|
2666
|
-
currency_code?: string | undefined;
|
|
2667
|
-
min_quantity?: number | null | undefined;
|
|
2668
|
-
max_quantity?: number | null | undefined;
|
|
2669
|
-
rules?: Record<string, string> | undefined;
|
|
2670
|
-
}[] | undefined;
|
|
2671
|
-
thumbnail?: string | null | undefined;
|
|
2672
|
-
weight?: number | null | undefined;
|
|
2673
|
-
height?: number | null | undefined;
|
|
2674
|
-
width?: number | null | undefined;
|
|
2675
|
-
hs_code?: string | null | undefined;
|
|
2676
|
-
origin_country?: string | null | undefined;
|
|
2677
|
-
mid_code?: string | null | undefined;
|
|
2678
|
-
material?: string | null | undefined;
|
|
2679
|
-
isbn?: string | null | undefined;
|
|
2680
|
-
asin?: string | null | undefined;
|
|
2681
|
-
gtin?: string | null | undefined;
|
|
2682
|
-
barcode?: string | null | undefined;
|
|
2683
|
-
variant_rank?: number | undefined;
|
|
2684
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2685
|
-
}[] | undefined;
|
|
2134
|
+
remove?: string[] | undefined;
|
|
2686
2135
|
}[] | undefined;
|
|
2687
|
-
|
|
2136
|
+
add?: ({
|
|
2137
|
+
id: string;
|
|
2138
|
+
value?: string | number | boolean | undefined;
|
|
2139
|
+
value_ids?: string[] | undefined;
|
|
2140
|
+
} | {
|
|
2141
|
+
title: string;
|
|
2142
|
+
values?: string[] | undefined;
|
|
2143
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2144
|
+
value?: string | number | boolean | undefined;
|
|
2145
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2146
|
+
description?: string | null | undefined;
|
|
2147
|
+
is_variant_axis?: boolean | undefined;
|
|
2148
|
+
is_required?: boolean | undefined;
|
|
2149
|
+
is_filterable?: boolean | undefined;
|
|
2150
|
+
})[] | undefined;
|
|
2151
|
+
remove?: string[] | undefined;
|
|
2688
2152
|
}, {
|
|
2689
2153
|
update?: {
|
|
2690
2154
|
id: string;
|
|
2691
|
-
|
|
2692
|
-
values: string[];
|
|
2693
|
-
title: string;
|
|
2694
|
-
}[] | undefined;
|
|
2695
|
-
length?: number | null | undefined;
|
|
2696
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2697
|
-
status?: "draft" | "proposed" | "published" | "rejected" | undefined;
|
|
2155
|
+
value?: string | number | boolean | undefined;
|
|
2698
2156
|
title?: string | undefined;
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
external_id?: string | null | undefined;
|
|
2702
|
-
thumbnail?: string | null | undefined;
|
|
2703
|
-
collection_id?: string | null | undefined;
|
|
2704
|
-
type_id?: string | null | undefined;
|
|
2705
|
-
subtitle?: string | null | undefined;
|
|
2706
|
-
is_giftcard?: string | boolean | undefined;
|
|
2707
|
-
discountable?: string | boolean | undefined;
|
|
2708
|
-
weight?: number | null | undefined;
|
|
2709
|
-
height?: number | null | undefined;
|
|
2710
|
-
width?: number | null | undefined;
|
|
2711
|
-
hs_code?: string | null | undefined;
|
|
2712
|
-
origin_country?: string | null | undefined;
|
|
2713
|
-
mid_code?: string | null | undefined;
|
|
2714
|
-
material?: string | null | undefined;
|
|
2715
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2716
|
-
images?: {
|
|
2717
|
-
url: string;
|
|
2718
|
-
id?: string | undefined;
|
|
2719
|
-
}[] | undefined;
|
|
2720
|
-
categories?: {
|
|
2721
|
-
id: string;
|
|
2722
|
-
}[] | undefined;
|
|
2723
|
-
tags?: {
|
|
2724
|
-
id: string;
|
|
2725
|
-
}[] | undefined;
|
|
2726
|
-
variant_attributes?: ({
|
|
2727
|
-
attribute_id: string;
|
|
2728
|
-
values?: string[] | undefined;
|
|
2729
|
-
value_ids?: string[] | undefined;
|
|
2730
|
-
} | {
|
|
2731
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2732
|
-
name: string;
|
|
2733
|
-
values?: string[] | undefined;
|
|
2734
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2735
|
-
description?: string | null | undefined;
|
|
2736
|
-
is_variant_axis?: boolean | undefined;
|
|
2737
|
-
is_required?: boolean | undefined;
|
|
2738
|
-
is_filterable?: boolean | undefined;
|
|
2739
|
-
})[] | undefined;
|
|
2740
|
-
product_attributes?: ({
|
|
2741
|
-
attribute_id: string;
|
|
2742
|
-
values?: string[] | undefined;
|
|
2743
|
-
value_ids?: string[] | undefined;
|
|
2744
|
-
} | {
|
|
2745
|
-
type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
|
|
2746
|
-
name: string;
|
|
2747
|
-
values?: string[] | undefined;
|
|
2748
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2749
|
-
description?: string | null | undefined;
|
|
2750
|
-
is_variant_axis?: boolean | undefined;
|
|
2751
|
-
is_required?: boolean | undefined;
|
|
2752
|
-
is_filterable?: boolean | undefined;
|
|
2157
|
+
add?: (string | {
|
|
2158
|
+
value: string;
|
|
2753
2159
|
})[] | undefined;
|
|
2754
|
-
|
|
2755
|
-
options?: Record<string, string> | undefined;
|
|
2756
|
-
length?: number | null | undefined;
|
|
2757
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2758
|
-
id?: string | undefined;
|
|
2759
|
-
sku?: string | null | undefined;
|
|
2760
|
-
ean?: string | null | undefined;
|
|
2761
|
-
upc?: string | null | undefined;
|
|
2762
|
-
title?: string | undefined;
|
|
2763
|
-
prices?: {
|
|
2764
|
-
id?: string | undefined;
|
|
2765
|
-
amount?: number | undefined;
|
|
2766
|
-
currency_code?: string | undefined;
|
|
2767
|
-
min_quantity?: number | null | undefined;
|
|
2768
|
-
max_quantity?: number | null | undefined;
|
|
2769
|
-
rules?: Record<string, string> | undefined;
|
|
2770
|
-
}[] | undefined;
|
|
2771
|
-
thumbnail?: string | null | undefined;
|
|
2772
|
-
weight?: number | null | undefined;
|
|
2773
|
-
height?: number | null | undefined;
|
|
2774
|
-
width?: number | null | undefined;
|
|
2775
|
-
hs_code?: string | null | undefined;
|
|
2776
|
-
origin_country?: string | null | undefined;
|
|
2777
|
-
mid_code?: string | null | undefined;
|
|
2778
|
-
material?: string | null | undefined;
|
|
2779
|
-
isbn?: string | null | undefined;
|
|
2780
|
-
asin?: string | null | undefined;
|
|
2781
|
-
gtin?: string | null | undefined;
|
|
2782
|
-
barcode?: string | null | undefined;
|
|
2783
|
-
variant_rank?: number | undefined;
|
|
2784
|
-
attribute_values?: Record<string, string | string[]> | undefined;
|
|
2785
|
-
}[] | undefined;
|
|
2160
|
+
remove?: string[] | undefined;
|
|
2786
2161
|
}[] | undefined;
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
[x: string]: any;
|
|
2792
|
-
}, {
|
|
2793
|
-
[x: string]: any;
|
|
2794
|
-
}> | z.ZodEffects<any, any, any>;
|
|
2795
|
-
export type AdminBatchProductAttributesType = z.infer<typeof AdminBatchProductAttributes>;
|
|
2796
|
-
export declare const AdminBatchProductAttributes: z.ZodObject<{
|
|
2797
|
-
create: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2798
|
-
attribute_id: z.ZodString;
|
|
2799
|
-
attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2800
|
-
}, "strict", z.ZodTypeAny, {
|
|
2801
|
-
attribute_id: string;
|
|
2802
|
-
attribute_value_ids?: string[] | undefined;
|
|
2803
|
-
}, {
|
|
2804
|
-
attribute_id: string;
|
|
2805
|
-
attribute_value_ids?: string[] | undefined;
|
|
2806
|
-
}>, z.ZodObject<{
|
|
2807
|
-
attribute_id: z.ZodString;
|
|
2808
|
-
values: z.ZodArray<z.ZodString, "many">;
|
|
2809
|
-
}, "strict", z.ZodTypeAny, {
|
|
2810
|
-
values: string[];
|
|
2811
|
-
attribute_id: string;
|
|
2812
|
-
}, {
|
|
2813
|
-
values: string[];
|
|
2814
|
-
attribute_id: string;
|
|
2815
|
-
}>]>, "many">>;
|
|
2816
|
-
delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2817
|
-
}, "strip", z.ZodTypeAny, {
|
|
2818
|
-
create?: ({
|
|
2819
|
-
attribute_id: string;
|
|
2820
|
-
attribute_value_ids?: string[] | undefined;
|
|
2821
|
-
} | {
|
|
2822
|
-
values: string[];
|
|
2823
|
-
attribute_id: string;
|
|
2824
|
-
})[] | undefined;
|
|
2825
|
-
delete?: string[] | undefined;
|
|
2826
|
-
}, {
|
|
2827
|
-
create?: ({
|
|
2828
|
-
attribute_id: string;
|
|
2829
|
-
attribute_value_ids?: string[] | undefined;
|
|
2162
|
+
add?: ({
|
|
2163
|
+
id: string;
|
|
2164
|
+
value?: string | number | boolean | undefined;
|
|
2165
|
+
value_ids?: string[] | undefined;
|
|
2830
2166
|
} | {
|
|
2831
|
-
|
|
2832
|
-
|
|
2167
|
+
title: string;
|
|
2168
|
+
values?: string[] | undefined;
|
|
2169
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2170
|
+
value?: string | number | boolean | undefined;
|
|
2171
|
+
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2172
|
+
description?: string | null | undefined;
|
|
2173
|
+
is_variant_axis?: boolean | undefined;
|
|
2174
|
+
is_required?: boolean | undefined;
|
|
2175
|
+
is_filterable?: boolean | undefined;
|
|
2833
2176
|
})[] | undefined;
|
|
2834
|
-
|
|
2835
|
-
}>;
|
|
2836
|
-
export type AdminAddProductAttributeType = z.infer<typeof AdminAddProductAttribute>;
|
|
2837
|
-
export declare const AdminAddProductAttribute: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
2838
|
-
attribute_id: z.ZodOptional<z.ZodString>;
|
|
2839
|
-
attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2840
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2841
|
-
type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
|
|
2842
|
-
is_variant_axis: z.ZodOptional<z.ZodBoolean>;
|
|
2843
|
-
is_filterable: z.ZodOptional<z.ZodBoolean>;
|
|
2844
|
-
is_required: z.ZodOptional<z.ZodBoolean>;
|
|
2845
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2846
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2847
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2848
|
-
}, "strict", z.ZodTypeAny, {
|
|
2849
|
-
values?: string[] | undefined;
|
|
2850
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2851
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2852
|
-
name?: string | undefined;
|
|
2853
|
-
description?: string | null | undefined;
|
|
2854
|
-
attribute_id?: string | undefined;
|
|
2855
|
-
is_variant_axis?: boolean | undefined;
|
|
2856
|
-
is_required?: boolean | undefined;
|
|
2857
|
-
is_filterable?: boolean | undefined;
|
|
2858
|
-
attribute_value_ids?: string[] | undefined;
|
|
2859
|
-
}, {
|
|
2860
|
-
values?: string[] | undefined;
|
|
2861
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2862
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2863
|
-
name?: string | undefined;
|
|
2864
|
-
description?: string | null | undefined;
|
|
2865
|
-
attribute_id?: string | undefined;
|
|
2866
|
-
is_variant_axis?: boolean | undefined;
|
|
2867
|
-
is_required?: boolean | undefined;
|
|
2868
|
-
is_filterable?: boolean | undefined;
|
|
2869
|
-
attribute_value_ids?: string[] | undefined;
|
|
2870
|
-
}>, {
|
|
2871
|
-
values?: string[] | undefined;
|
|
2872
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2873
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2874
|
-
name?: string | undefined;
|
|
2875
|
-
description?: string | null | undefined;
|
|
2876
|
-
attribute_id?: string | undefined;
|
|
2877
|
-
is_variant_axis?: boolean | undefined;
|
|
2878
|
-
is_required?: boolean | undefined;
|
|
2879
|
-
is_filterable?: boolean | undefined;
|
|
2880
|
-
attribute_value_ids?: string[] | undefined;
|
|
2881
|
-
}, {
|
|
2882
|
-
values?: string[] | undefined;
|
|
2883
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2884
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2885
|
-
name?: string | undefined;
|
|
2886
|
-
description?: string | null | undefined;
|
|
2887
|
-
attribute_id?: string | undefined;
|
|
2888
|
-
is_variant_axis?: boolean | undefined;
|
|
2889
|
-
is_required?: boolean | undefined;
|
|
2890
|
-
is_filterable?: boolean | undefined;
|
|
2891
|
-
attribute_value_ids?: string[] | undefined;
|
|
2892
|
-
}>, {
|
|
2893
|
-
values?: string[] | undefined;
|
|
2894
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2895
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2896
|
-
name?: string | undefined;
|
|
2897
|
-
description?: string | null | undefined;
|
|
2898
|
-
attribute_id?: string | undefined;
|
|
2899
|
-
is_variant_axis?: boolean | undefined;
|
|
2900
|
-
is_required?: boolean | undefined;
|
|
2901
|
-
is_filterable?: boolean | undefined;
|
|
2902
|
-
attribute_value_ids?: string[] | undefined;
|
|
2903
|
-
}, {
|
|
2904
|
-
values?: string[] | undefined;
|
|
2905
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2906
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2907
|
-
name?: string | undefined;
|
|
2908
|
-
description?: string | null | undefined;
|
|
2909
|
-
attribute_id?: string | undefined;
|
|
2910
|
-
is_variant_axis?: boolean | undefined;
|
|
2911
|
-
is_required?: boolean | undefined;
|
|
2912
|
-
is_filterable?: boolean | undefined;
|
|
2913
|
-
attribute_value_ids?: string[] | undefined;
|
|
2914
|
-
}>, {
|
|
2915
|
-
values?: string[] | undefined;
|
|
2916
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2917
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2918
|
-
name?: string | undefined;
|
|
2919
|
-
description?: string | null | undefined;
|
|
2920
|
-
attribute_id?: string | undefined;
|
|
2921
|
-
is_variant_axis?: boolean | undefined;
|
|
2922
|
-
is_required?: boolean | undefined;
|
|
2923
|
-
is_filterable?: boolean | undefined;
|
|
2924
|
-
attribute_value_ids?: string[] | undefined;
|
|
2925
|
-
}, {
|
|
2926
|
-
values?: string[] | undefined;
|
|
2927
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2928
|
-
type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
|
|
2929
|
-
name?: string | undefined;
|
|
2930
|
-
description?: string | null | undefined;
|
|
2931
|
-
attribute_id?: string | undefined;
|
|
2932
|
-
is_variant_axis?: boolean | undefined;
|
|
2933
|
-
is_required?: boolean | undefined;
|
|
2934
|
-
is_filterable?: boolean | undefined;
|
|
2935
|
-
attribute_value_ids?: string[] | undefined;
|
|
2936
|
-
}>;
|
|
2937
|
-
/**
|
|
2938
|
-
* `POST /admin/products/:id/attributes/:attribute_id` — atomic value-set
|
|
2939
|
-
* replacement for an attribute on a product. Admin goes direct against
|
|
2940
|
-
* `detachProductAttributeWorkflow` + `addProductAttributeWorkflow`
|
|
2941
|
-
* (no staging — operators don't go through the ProductChange flow that
|
|
2942
|
-
* sellers do), so the route handler chains both calls.
|
|
2943
|
-
*/
|
|
2944
|
-
export type AdminUpdateProductAttributeType = z.infer<typeof AdminUpdateProductAttribute>;
|
|
2945
|
-
export declare const AdminUpdateProductAttribute: z.ZodObject<{
|
|
2946
|
-
attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2947
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2948
|
-
}, "strict", z.ZodTypeAny, {
|
|
2949
|
-
values?: string[] | undefined;
|
|
2950
|
-
attribute_value_ids?: string[] | undefined;
|
|
2951
|
-
}, {
|
|
2952
|
-
values?: string[] | undefined;
|
|
2953
|
-
attribute_value_ids?: string[] | undefined;
|
|
2177
|
+
remove?: string[] | undefined;
|
|
2954
2178
|
}>;
|
|
2955
2179
|
export {};
|