@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
|
@@ -3,7 +3,7 @@ import { AdditionalData } from "@medusajs/framework/types";
|
|
|
3
3
|
export type AdminGetSellerParamsType = z.infer<typeof AdminGetSellerParams>;
|
|
4
4
|
export declare const AdminGetSellerParams: z.ZodObject<{
|
|
5
5
|
fields: z.ZodOptional<z.ZodString>;
|
|
6
|
-
},
|
|
6
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
7
7
|
fields?: string | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
fields?: string | undefined;
|
|
@@ -11,11 +11,10 @@ export declare const AdminGetSellerParams: z.ZodObject<{
|
|
|
11
11
|
export type AdminGetSellersParamsType = z.infer<typeof AdminGetSellersParams>;
|
|
12
12
|
export declare const AdminGetSellersParams: z.ZodObject<{
|
|
13
13
|
fields: z.ZodOptional<z.ZodString>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
14
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
15
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
17
16
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
18
|
-
with_deleted: z.
|
|
17
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
19
18
|
} & {
|
|
20
19
|
q: z.ZodOptional<z.ZodString>;
|
|
21
20
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -23,8 +22,8 @@ export declare const AdminGetSellersParams: z.ZodObject<{
|
|
|
23
22
|
handle: z.ZodOptional<z.ZodString>;
|
|
24
23
|
email: z.ZodOptional<z.ZodString>;
|
|
25
24
|
status: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
26
|
-
is_premium:
|
|
27
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
25
|
+
is_premium: any;
|
|
26
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
28
27
|
$eq: any;
|
|
29
28
|
$ne: any;
|
|
30
29
|
$in: any;
|
|
@@ -37,7 +36,7 @@ export declare const AdminGetSellersParams: z.ZodObject<{
|
|
|
37
36
|
$gte: any;
|
|
38
37
|
$lt: any;
|
|
39
38
|
$lte: any;
|
|
40
|
-
},
|
|
39
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
41
40
|
$eq?: any;
|
|
42
41
|
$ne?: any;
|
|
43
42
|
$in?: any;
|
|
@@ -64,7 +63,7 @@ export declare const AdminGetSellersParams: z.ZodObject<{
|
|
|
64
63
|
$lt?: any;
|
|
65
64
|
$lte?: any;
|
|
66
65
|
}>]>>;
|
|
67
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
66
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
68
67
|
$eq: any;
|
|
69
68
|
$ne: any;
|
|
70
69
|
$in: any;
|
|
@@ -77,7 +76,7 @@ export declare const AdminGetSellersParams: z.ZodObject<{
|
|
|
77
76
|
$gte: any;
|
|
78
77
|
$lt: any;
|
|
79
78
|
$lte: any;
|
|
80
|
-
},
|
|
79
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
81
80
|
$eq?: any;
|
|
82
81
|
$ne?: any;
|
|
83
82
|
$in?: any;
|
|
@@ -105,44 +104,45 @@ export declare const AdminGetSellersParams: z.ZodObject<{
|
|
|
105
104
|
$lte?: any;
|
|
106
105
|
}>]>>;
|
|
107
106
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
107
|
+
[x: string]: any;
|
|
108
|
+
fields?: unknown;
|
|
109
|
+
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
110
|
+
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
111
|
+
order?: unknown;
|
|
112
|
+
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
113
|
+
q?: unknown;
|
|
114
|
+
id?: unknown;
|
|
115
|
+
name?: unknown;
|
|
116
|
+
handle?: unknown;
|
|
117
|
+
email?: unknown;
|
|
118
|
+
status?: unknown;
|
|
119
|
+
is_premium?: unknown;
|
|
120
|
+
created_at?: unknown;
|
|
121
|
+
updated_at?: unknown;
|
|
122
122
|
}, {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
123
|
+
[x: string]: any;
|
|
124
|
+
fields?: unknown;
|
|
125
|
+
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
126
|
+
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
127
|
+
order?: unknown;
|
|
128
|
+
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
129
|
+
q?: unknown;
|
|
130
|
+
id?: unknown;
|
|
131
|
+
name?: unknown;
|
|
132
|
+
handle?: unknown;
|
|
133
|
+
email?: unknown;
|
|
134
|
+
status?: unknown;
|
|
135
|
+
is_premium?: unknown;
|
|
136
|
+
created_at?: unknown;
|
|
137
|
+
updated_at?: unknown;
|
|
137
138
|
}>;
|
|
138
139
|
export type AdminGetSellerProductsParamsType = z.infer<typeof AdminGetSellerProductsParams>;
|
|
139
140
|
export declare const AdminGetSellerProductsParams: z.ZodObject<{
|
|
140
141
|
fields: z.ZodOptional<z.ZodString>;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
142
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
143
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
144
144
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
145
|
-
with_deleted: z.
|
|
145
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
146
146
|
} & {
|
|
147
147
|
q: z.ZodOptional<z.ZodString>;
|
|
148
148
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -151,7 +151,7 @@ export declare const AdminGetSellerProductsParams: z.ZodObject<{
|
|
|
151
151
|
sales_channel_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
152
152
|
type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
153
153
|
tag_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
154
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
154
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
155
155
|
$eq: any;
|
|
156
156
|
$ne: any;
|
|
157
157
|
$in: any;
|
|
@@ -164,7 +164,7 @@ export declare const AdminGetSellerProductsParams: z.ZodObject<{
|
|
|
164
164
|
$gte: any;
|
|
165
165
|
$lt: any;
|
|
166
166
|
$lte: any;
|
|
167
|
-
},
|
|
167
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
168
168
|
$eq?: any;
|
|
169
169
|
$ne?: any;
|
|
170
170
|
$in?: any;
|
|
@@ -191,7 +191,7 @@ export declare const AdminGetSellerProductsParams: z.ZodObject<{
|
|
|
191
191
|
$lt?: any;
|
|
192
192
|
$lte?: any;
|
|
193
193
|
}>]>>;
|
|
194
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
194
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
195
195
|
$eq: any;
|
|
196
196
|
$ne: any;
|
|
197
197
|
$in: any;
|
|
@@ -204,7 +204,7 @@ export declare const AdminGetSellerProductsParams: z.ZodObject<{
|
|
|
204
204
|
$gte: any;
|
|
205
205
|
$lt: any;
|
|
206
206
|
$lte: any;
|
|
207
|
-
},
|
|
207
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
208
208
|
$eq?: any;
|
|
209
209
|
$ne?: any;
|
|
210
210
|
$in?: any;
|
|
@@ -232,17 +232,17 @@ export declare const AdminGetSellerProductsParams: z.ZodObject<{
|
|
|
232
232
|
$lte?: any;
|
|
233
233
|
}>]>>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
offset: number;
|
|
236
|
-
limit: number;
|
|
237
235
|
order?: string | undefined;
|
|
238
236
|
id?: string | string[] | undefined;
|
|
239
237
|
created_at?: any;
|
|
240
238
|
updated_at?: any;
|
|
239
|
+
fields?: string | undefined;
|
|
241
240
|
status?: string | string[] | undefined;
|
|
241
|
+
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
242
|
+
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
243
|
+
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
242
244
|
q?: string | undefined;
|
|
243
245
|
sales_channel_id?: string | string[] | undefined;
|
|
244
|
-
fields?: string | undefined;
|
|
245
|
-
with_deleted?: boolean | undefined;
|
|
246
246
|
collection_id?: string | string[] | undefined;
|
|
247
247
|
type_id?: string | string[] | undefined;
|
|
248
248
|
tag_id?: string | string[] | undefined;
|
|
@@ -251,13 +251,13 @@ export declare const AdminGetSellerProductsParams: z.ZodObject<{
|
|
|
251
251
|
id?: string | string[] | undefined;
|
|
252
252
|
created_at?: any;
|
|
253
253
|
updated_at?: any;
|
|
254
|
+
fields?: string | undefined;
|
|
254
255
|
status?: string | string[] | undefined;
|
|
255
|
-
offset?: unknown
|
|
256
|
-
limit?: unknown
|
|
256
|
+
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
257
|
+
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
258
|
+
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
257
259
|
q?: string | undefined;
|
|
258
260
|
sales_channel_id?: string | string[] | undefined;
|
|
259
|
-
fields?: string | undefined;
|
|
260
|
-
with_deleted?: unknown;
|
|
261
261
|
collection_id?: string | string[] | undefined;
|
|
262
262
|
type_id?: string | string[] | undefined;
|
|
263
263
|
tag_id?: string | string[] | undefined;
|
|
@@ -331,11 +331,7 @@ export declare const CreateSeller: z.ZodObject<{
|
|
|
331
331
|
closed_to?: Date | null | undefined;
|
|
332
332
|
closure_note?: string | null | undefined;
|
|
333
333
|
}>;
|
|
334
|
-
export declare const AdminCreateSeller: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any
|
|
335
|
-
[x: string]: any;
|
|
336
|
-
}, {
|
|
337
|
-
[x: string]: any;
|
|
338
|
-
}> | z.ZodEffects<any, any, any>;
|
|
334
|
+
export declare const AdminCreateSeller: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
339
335
|
export type AdminUpdateSellerType = z.infer<typeof UpdateSeller> & AdditionalData;
|
|
340
336
|
export declare const UpdateSeller: z.ZodObject<{
|
|
341
337
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -389,11 +385,7 @@ export declare const UpdateSeller: z.ZodObject<{
|
|
|
389
385
|
closed_to?: Date | null | undefined;
|
|
390
386
|
closure_note?: string | null | undefined;
|
|
391
387
|
}>;
|
|
392
|
-
export declare const AdminUpdateSeller: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any
|
|
393
|
-
[x: string]: any;
|
|
394
|
-
}, {
|
|
395
|
-
[x: string]: any;
|
|
396
|
-
}> | z.ZodEffects<any, any, any>;
|
|
388
|
+
export declare const AdminUpdateSeller: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
397
389
|
export type AdminSuspendSellerType = z.infer<typeof AdminSuspendSeller>;
|
|
398
390
|
export declare const AdminSuspendSeller: z.ZodObject<{
|
|
399
391
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -473,11 +465,7 @@ export declare const UpsertSellerAddress: z.ZodObject<{
|
|
|
473
465
|
province?: string | null | undefined;
|
|
474
466
|
postal_code?: string | null | undefined;
|
|
475
467
|
}>;
|
|
476
|
-
export declare const AdminUpsertSellerAddress: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any
|
|
477
|
-
[x: string]: any;
|
|
478
|
-
}, {
|
|
479
|
-
[x: string]: any;
|
|
480
|
-
}> | z.ZodEffects<any, any, any>;
|
|
468
|
+
export declare const AdminUpsertSellerAddress: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
481
469
|
export type AdminUpsertSellerPaymentDetailsType = z.infer<typeof UpsertSellerPaymentDetails> & AdditionalData;
|
|
482
470
|
export declare const UpsertSellerPaymentDetails: z.ZodObject<{
|
|
483
471
|
country_code: z.ZodOptional<z.ZodString>;
|
|
@@ -504,11 +492,7 @@ export declare const UpsertSellerPaymentDetails: z.ZodObject<{
|
|
|
504
492
|
routing_number?: string | null | undefined;
|
|
505
493
|
account_number?: string | null | undefined;
|
|
506
494
|
}>;
|
|
507
|
-
export declare const AdminUpsertSellerPaymentDetails: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any
|
|
508
|
-
[x: string]: any;
|
|
509
|
-
}, {
|
|
510
|
-
[x: string]: any;
|
|
511
|
-
}> | z.ZodEffects<any, any, any>;
|
|
495
|
+
export declare const AdminUpsertSellerPaymentDetails: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
512
496
|
export type AdminUpsertSellerProfessionalDetailsType = z.infer<typeof UpsertSellerProfessionalDetails> & AdditionalData;
|
|
513
497
|
export declare const UpsertSellerProfessionalDetails: z.ZodObject<{
|
|
514
498
|
corporate_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -523,8 +507,4 @@ export declare const UpsertSellerProfessionalDetails: z.ZodObject<{
|
|
|
523
507
|
registration_number?: string | null | undefined;
|
|
524
508
|
tax_id?: string | null | undefined;
|
|
525
509
|
}>;
|
|
526
|
-
export declare const AdminUpsertSellerProfessionalDetails: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any
|
|
527
|
-
[x: string]: any;
|
|
528
|
-
}, {
|
|
529
|
-
[x: string]: any;
|
|
530
|
-
}> | z.ZodEffects<any, any, any>;
|
|
510
|
+
export declare const AdminUpsertSellerProfessionalDetails: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
|
|
@@ -11,9 +11,6 @@ const POST = async (req, res) => {
|
|
|
11
11
|
throwOnError: false,
|
|
12
12
|
});
|
|
13
13
|
const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
|
|
14
|
-
// When an error occurs on the workflow, it's potentially to do with cart validations, payments
|
|
15
|
-
// or inventory checks. Return the cart here along with errors for the consumer to take more action
|
|
16
|
-
// and fix them
|
|
17
14
|
if (errors?.[0]) {
|
|
18
15
|
const error = errors[0].error;
|
|
19
16
|
const statusOKErrors = [
|
|
@@ -35,7 +32,6 @@ const POST = async (req, res) => {
|
|
|
35
32
|
});
|
|
36
33
|
return;
|
|
37
34
|
}
|
|
38
|
-
// Fetch the order group with orders
|
|
39
35
|
const { data: orderGroups } = await query.graph({
|
|
40
36
|
entity: "order_group",
|
|
41
37
|
fields: req.queryConfig.fields,
|
|
@@ -47,4 +43,4 @@ const POST = async (req, res) => {
|
|
|
47
43
|
});
|
|
48
44
|
};
|
|
49
45
|
exports.POST = POST;
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3N0b3JlL2NhcnRzL1tpZF0vY29tcGxldGUvcm91dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EscURBQWtGO0FBR2xGLHdEQUFtRjtBQUNuRiwyQ0FBbUU7QUFHNUQsTUFBTSxJQUFJLEdBQUcsS0FBSyxFQUNyQixHQUFtRCxFQUNuRCxHQUF3RCxFQUMxRCxFQUFFO0lBQ0EsTUFBTSxPQUFPLEdBQUcsR0FBRyxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUE7SUFFN0IsTUFBTSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUUsR0FBRyxNQUFNLElBQUEsMENBQW1DLEVBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQztRQUNoRixLQUFLLEVBQUUsRUFBRSxPQUFPLEVBQUU7UUFDbEIsWUFBWSxFQUFFLEtBQUs7S0FDdEIsQ0FBQyxDQUFBO0lBRUYsTUFBTSxLQUFLLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsaUNBQXlCLENBQUMsS0FBSyxDQUFDLENBQUE7SUFFaEUsSUFBSSxNQUFNLEVBQUUsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDO1FBQ2QsTUFBTSxLQUFLLEdBQUcsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQTtRQUM3QixNQUFNLGNBQWMsR0FBYTtZQUM3QixtQkFBVyxDQUFDLEtBQUssQ0FBQywyQkFBMkI7WUFDN0MsbUJBQVcsQ0FBQyxLQUFLLENBQUMsMkJBQTJCO1NBQ2hELENBQUE7UUFFRCxNQUFNLElBQUksR0FBRyxNQUFNLElBQUEscUJBQVcsRUFDMUIsT0FBTyxFQUNQLEdBQUcsQ0FBQyxLQUFLLEVBQ1QsZ0NBQXNCLENBQ3pCLENBQUE7UUFFRCxJQUFJLENBQUMsY0FBYyxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsSUFBSSxDQUFDLEVBQUUsQ0FBQztZQUN4QyxNQUFNLEtBQUssQ0FBQTtRQUNmLENBQUM7UUFFRCxHQUFHLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQztZQUNqQixJQUFJLEVBQUUsTUFBTTtZQUNaLElBQUk7WUFDSixLQUFLLEVBQUU7Z0JBQ0gsT0FBTyxFQUFFLEtBQUssQ0FBQyxPQUFPO2dCQUN0QixJQUFJLEVBQUUsS0FBSyxDQUFDLElBQUk7Z0JBQ2hCLElBQUksRUFBRSxLQUFLLENBQUMsSUFBSTthQUNuQjtTQUNKLENBQUMsQ0FBQTtRQUNGLE9BQU07SUFDVixDQUFDO0lBRUQsTUFBTSxFQUFFLElBQUksRUFBRSxXQUFXLEVBQUUsR0FBRyxNQUFNLEtBQUssQ0FBQyxLQUFLLENBQUM7UUFDNUMsTUFBTSxFQUFFLGFBQWE7UUFDckIsTUFBTSxFQUFFLEdBQUcsQ0FBQyxXQUFXLENBQUMsTUFBTTtRQUM5QixPQUFPLEVBQUUsRUFBRSxFQUFFLEVBQUUsTUFBTSxDQUFDLGNBQWMsRUFBRTtLQUN6QyxDQUFDLENBQUE7SUFFRixHQUFHLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQztRQUNqQixJQUFJLEVBQUUsYUFBYTtRQUNuQixXQUFXLEVBQUUsV0FBVyxDQUFDLENBQUMsQ0FBQztLQUM5QixDQUFDLENBQUE7QUFDTixDQUFDLENBQUE7QUFwRFksUUFBQSxJQUFJLFFBb0RoQiJ9
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export type StoreCompleteCartParamsType = z.infer<typeof StoreCompleteCartParams>;
|
|
3
3
|
export declare const StoreCompleteCartParams: z.ZodObject<{
|
|
4
4
|
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
-
},
|
|
5
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
6
6
|
fields?: string | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
fields?: string | undefined;
|
|
@@ -9,25 +9,24 @@ export declare const StoreGetOfferParams: z.ZodObject<{
|
|
|
9
9
|
cart_id: z.ZodOptional<z.ZodString>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
fields?: string | undefined;
|
|
12
|
+
region_id?: string | undefined;
|
|
12
13
|
country_code?: string | undefined;
|
|
13
14
|
province?: string | undefined;
|
|
14
15
|
cart_id?: string | undefined;
|
|
15
|
-
region_id?: string | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
fields?: string | undefined;
|
|
18
|
+
region_id?: string | undefined;
|
|
18
19
|
country_code?: string | undefined;
|
|
19
20
|
province?: string | undefined;
|
|
20
21
|
cart_id?: string | undefined;
|
|
21
|
-
region_id?: string | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
export type StoreGetOffersParamsType = z.infer<typeof StoreGetOffersParams>;
|
|
24
24
|
export declare const StoreGetOffersParams: z.ZodObject<{
|
|
25
25
|
fields: z.ZodOptional<z.ZodString>;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
26
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
27
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
29
28
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30
|
-
with_deleted: z.
|
|
29
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
31
30
|
} & {
|
|
32
31
|
region_id: z.ZodOptional<z.ZodString>;
|
|
33
32
|
country_code: z.ZodOptional<z.ZodString>;
|
|
@@ -40,7 +39,7 @@ export declare const StoreGetOffersParams: z.ZodObject<{
|
|
|
40
39
|
variant_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
41
40
|
seller_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
42
41
|
sku: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
43
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
42
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
44
43
|
$eq: any;
|
|
45
44
|
$ne: any;
|
|
46
45
|
$in: any;
|
|
@@ -53,7 +52,7 @@ export declare const StoreGetOffersParams: z.ZodObject<{
|
|
|
53
52
|
$gte: any;
|
|
54
53
|
$lt: any;
|
|
55
54
|
$lte: any;
|
|
56
|
-
},
|
|
55
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
57
56
|
$eq?: any;
|
|
58
57
|
$ne?: any;
|
|
59
58
|
$in?: any;
|
|
@@ -80,7 +79,7 @@ export declare const StoreGetOffersParams: z.ZodObject<{
|
|
|
80
79
|
$lt?: any;
|
|
81
80
|
$lte?: any;
|
|
82
81
|
}>]>>;
|
|
83
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
82
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
84
83
|
$eq: any;
|
|
85
84
|
$ne: any;
|
|
86
85
|
$in: any;
|
|
@@ -93,7 +92,7 @@ export declare const StoreGetOffersParams: z.ZodObject<{
|
|
|
93
92
|
$gte: any;
|
|
94
93
|
$lt: any;
|
|
95
94
|
$lte: any;
|
|
96
|
-
},
|
|
95
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
97
96
|
$eq?: any;
|
|
98
97
|
$ne?: any;
|
|
99
98
|
$in?: any;
|
|
@@ -121,39 +120,39 @@ export declare const StoreGetOffersParams: z.ZodObject<{
|
|
|
121
120
|
$lte?: any;
|
|
122
121
|
}>]>>;
|
|
123
122
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
offset: number;
|
|
125
|
-
limit: number;
|
|
126
123
|
order?: string | undefined;
|
|
127
124
|
seller_id?: string | string[] | undefined;
|
|
128
125
|
id?: string | string[] | undefined;
|
|
129
126
|
created_at?: any;
|
|
130
127
|
updated_at?: any;
|
|
131
|
-
q?: string | undefined;
|
|
132
128
|
fields?: string | undefined;
|
|
133
|
-
|
|
129
|
+
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
130
|
+
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
131
|
+
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
132
|
+
q?: string | undefined;
|
|
133
|
+
region_id?: string | undefined;
|
|
134
134
|
variant_id?: string | string[] | undefined;
|
|
135
135
|
product_id?: string | string[] | undefined;
|
|
136
136
|
sku?: string | string[] | undefined;
|
|
137
137
|
country_code?: string | undefined;
|
|
138
138
|
province?: string | undefined;
|
|
139
139
|
cart_id?: string | undefined;
|
|
140
|
-
region_id?: string | undefined;
|
|
141
140
|
}, {
|
|
142
141
|
order?: string | undefined;
|
|
143
142
|
seller_id?: string | string[] | undefined;
|
|
144
143
|
id?: string | string[] | undefined;
|
|
145
144
|
created_at?: any;
|
|
146
145
|
updated_at?: any;
|
|
147
|
-
offset?: unknown;
|
|
148
|
-
limit?: unknown;
|
|
149
|
-
q?: string | undefined;
|
|
150
146
|
fields?: string | undefined;
|
|
151
|
-
|
|
147
|
+
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
148
|
+
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
149
|
+
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
150
|
+
q?: string | undefined;
|
|
151
|
+
region_id?: string | undefined;
|
|
152
152
|
variant_id?: string | string[] | undefined;
|
|
153
153
|
product_id?: string | string[] | undefined;
|
|
154
154
|
sku?: string | string[] | undefined;
|
|
155
155
|
country_code?: string | undefined;
|
|
156
156
|
province?: string | undefined;
|
|
157
157
|
cart_id?: string | undefined;
|
|
158
|
-
region_id?: string | undefined;
|
|
159
158
|
}>;
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export type StoreGetOrderGroupParamsType = z.infer<typeof StoreGetOrderGroupParams>;
|
|
3
3
|
export declare const StoreGetOrderGroupParams: z.ZodObject<{
|
|
4
4
|
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
-
},
|
|
5
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
6
6
|
fields?: string | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
fields?: string | undefined;
|
|
@@ -10,14 +10,13 @@ export declare const StoreGetOrderGroupParams: z.ZodObject<{
|
|
|
10
10
|
export type StoreGetOrderGroupsParamsType = z.infer<typeof StoreGetOrderGroupsParams>;
|
|
11
11
|
export declare const StoreGetOrderGroupsParams: z.ZodObject<{
|
|
12
12
|
fields: z.ZodOptional<z.ZodString>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
13
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
14
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
16
15
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
17
|
-
with_deleted: z.
|
|
16
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
18
17
|
} & {
|
|
19
18
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
20
|
-
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
19
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
21
20
|
$eq: any;
|
|
22
21
|
$ne: any;
|
|
23
22
|
$in: any;
|
|
@@ -30,7 +29,7 @@ export declare const StoreGetOrderGroupsParams: z.ZodObject<{
|
|
|
30
29
|
$gte: any;
|
|
31
30
|
$lt: any;
|
|
32
31
|
$lte: any;
|
|
33
|
-
},
|
|
32
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
34
33
|
$eq?: any;
|
|
35
34
|
$ne?: any;
|
|
36
35
|
$in?: any;
|
|
@@ -57,7 +56,7 @@ export declare const StoreGetOrderGroupsParams: z.ZodObject<{
|
|
|
57
56
|
$lt?: any;
|
|
58
57
|
$lte?: any;
|
|
59
58
|
}>]>>;
|
|
60
|
-
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
59
|
+
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
61
60
|
$eq: any;
|
|
62
61
|
$ne: any;
|
|
63
62
|
$in: any;
|
|
@@ -70,7 +69,7 @@ export declare const StoreGetOrderGroupsParams: z.ZodObject<{
|
|
|
70
69
|
$gte: any;
|
|
71
70
|
$lt: any;
|
|
72
71
|
$lte: any;
|
|
73
|
-
},
|
|
72
|
+
}, z.core.$strip, z.ZodTypeAny, {
|
|
74
73
|
$eq?: any;
|
|
75
74
|
$ne?: any;
|
|
76
75
|
$in?: any;
|
|
@@ -98,21 +97,21 @@ export declare const StoreGetOrderGroupsParams: z.ZodObject<{
|
|
|
98
97
|
$lte?: any;
|
|
99
98
|
}>]>>;
|
|
100
99
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
offset: number;
|
|
102
|
-
limit: number;
|
|
103
100
|
order?: string | undefined;
|
|
104
101
|
id?: string | string[] | undefined;
|
|
105
102
|
created_at?: any;
|
|
106
103
|
updated_at?: any;
|
|
107
104
|
fields?: string | undefined;
|
|
108
|
-
|
|
105
|
+
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
106
|
+
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
107
|
+
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
109
108
|
}, {
|
|
110
109
|
order?: string | undefined;
|
|
111
110
|
id?: string | string[] | undefined;
|
|
112
111
|
created_at?: any;
|
|
113
112
|
updated_at?: any;
|
|
114
|
-
offset?: unknown;
|
|
115
|
-
limit?: unknown;
|
|
116
113
|
fields?: string | undefined;
|
|
117
|
-
|
|
114
|
+
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
115
|
+
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
116
|
+
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
118
117
|
}>;
|