diff --git a/schema-main.graphql b/schema-main.graphql index dd8e3bbb67e..aec7f450a0e 100644 --- a/schema-main.graphql +++ b/schema-main.graphql @@ -2051,6 +2051,34 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") { """A product variant stock is updated""" PRODUCT_VARIANT_STOCK_UPDATED + + """ + A product variant becomes out of stock across all non click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + """ + PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL + + """ + A product variant becomes available again across non click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + """ + PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL + + """ + A product variant becomes out of stock across all click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + """ + PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT + + """ + A product variant becomes available again across click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + """ + PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT PRODUCT_VARIANT_DISCOUNTED_PRICE_UPDATED """A new checkout is created.""" @@ -2627,6 +2655,34 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") { """A product variant stock is updated""" PRODUCT_VARIANT_STOCK_UPDATED + + """ + A product variant becomes out of stock across all non click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + """ + PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL + + """ + A product variant becomes available again across non click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + """ + PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL + + """ + A product variant becomes out of stock across all click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + """ + PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT + + """ + A product variant becomes available again across click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + """ + PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT PRODUCT_VARIANT_DISCOUNTED_PRICE_UPDATED """A new checkout is created.""" @@ -14147,6 +14203,10 @@ enum WebhookSampleEventTypeEnum @doc(category: "Webhooks") { PRODUCT_VARIANT_OUT_OF_STOCK PRODUCT_VARIANT_BACK_IN_STOCK PRODUCT_VARIANT_STOCK_UPDATED + PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL + PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL + PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT + PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT PRODUCT_VARIANT_DISCOUNTED_PRICE_UPDATED CHECKOUT_CREATED CHECKOUT_UPDATED @@ -33774,6 +33834,70 @@ type Subscription @doc(category: "Miscellaneous") { """ channels: [String!] ): ProductVariantDiscountedPriceUpdated @doc(category: "Products") + + """ + Event sent when a product variant becomes out of stock across all non click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + + Added in Saleor 3.23. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariantOutOfStockInChannel( + """ + List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. + """ + channels: [String!] + ): ProductVariantOutOfStockInChannel @doc(category: "Products") + + """ + Event sent when a product variant becomes available again across non click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + + Added in Saleor 3.23. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariantBackInStockInChannel( + """ + List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. + """ + channels: [String!] + ): ProductVariantBackInStockInChannel @doc(category: "Products") + + """ + Event sent when a product variant becomes out of stock across all click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + + Added in Saleor 3.23. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariantOutOfStockForClickAndCollect( + """ + List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. + """ + channels: [String!] + ): ProductVariantOutOfStockForClickAndCollect @doc(category: "Products") + + """ + Event sent when a product variant becomes available again across click-and-collect warehouses in a channel. + + Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + + Added in Saleor 3.23. + + Note: this API is currently in Feature Preview and can be subject to changes at later point. + """ + productVariantBackInStockForClickAndCollect( + """ + List of channel slugs. The event will be sent only if the object belongs to one of the provided channels. If the channel slug list is empty, objects that belong to any channel will be sent. Maximally 500 items. + """ + channels: [String!] + ): ProductVariantBackInStockForClickAndCollect @doc(category: "Products") } interface Event { @@ -34193,6 +34317,114 @@ type ProductVariantDiscountedPriceUpdated implements Event @doc(category: "Produ newPrice: Money! } +""" +Event sent when a product variant becomes out of stock across all non click-and-collect warehouses in a channel. + +Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + +Added in Saleor 3.23. +""" +type ProductVariantOutOfStockInChannel implements Event @doc(category: "Products") { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The product variant the event relates to.""" + productVariant: ProductVariant! + + """The channel the stock availability changed in.""" + channel: Channel! +} + +""" +Event sent when a product variant becomes available again across non click-and-collect warehouses in a channel. + +Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + +Added in Saleor 3.23. +""" +type ProductVariantBackInStockInChannel implements Event @doc(category: "Products") { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The product variant the event relates to.""" + productVariant: ProductVariant! + + """The channel the stock availability changed in.""" + channel: Channel! +} + +""" +Event sent when a product variant becomes out of stock across all click-and-collect warehouses in a channel. + +Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + +Added in Saleor 3.23. +""" +type ProductVariantOutOfStockForClickAndCollect implements Event @doc(category: "Products") { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The product variant the event relates to.""" + productVariant: ProductVariant! + + """The channel the stock availability changed in.""" + channel: Channel! +} + +""" +Event sent when a product variant becomes available again across click-and-collect warehouses in a channel. + +Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + +Added in Saleor 3.23. +""" +type ProductVariantBackInStockForClickAndCollect implements Event @doc(category: "Products") { + """Time of the event.""" + issuedAt: DateTime + + """Saleor version that triggered the event.""" + version: String + + """The user or application that triggered the event.""" + issuingPrincipal: IssuingPrincipal + + """The application receiving the webhook.""" + recipient: App + + """The product variant the event relates to.""" + productVariant: ProductVariant! + + """The channel the stock availability changed in.""" + channel: Channel! +} + enum DistanceUnitsEnum { MM CM diff --git a/src/graphql/fabbrica.generated.ts b/src/graphql/fabbrica.generated.ts index 1114a4b43ea..042e4baa69a 100644 --- a/src/graphql/fabbrica.generated.ts +++ b/src/graphql/fabbrica.generated.ts @@ -801,6 +801,8 @@ import type { ProductUpdated, ProductVariant, ProductVariantBackInStock, + ProductVariantBackInStockForClickAndCollect, + ProductVariantBackInStockInChannel, ProductVariantBulkCreate, ProductVariantBulkCreateInput, ProductVariantBulkDelete, @@ -828,6 +830,8 @@ import type { ProductVariantInput, ProductVariantMetadataUpdated, ProductVariantOutOfStock, + ProductVariantOutOfStockForClickAndCollect, + ProductVariantOutOfStockInChannel, ProductVariantPreorderDeactivate, ProductVariantReorder, ProductVariantReorderAttributeValues, @@ -10903,7 +10907,7 @@ export const defineDraftOrderWhereInputFactory: DefineTypeFactoryInterface< {} > = defineTypeFactory; -export type OptionalEvent = OptionalAccountChangeEmailRequested | OptionalAccountConfirmationRequested | OptionalAccountConfirmed | OptionalAccountDeleteRequested | OptionalAccountDeleted | OptionalAccountEmailChanged | OptionalAccountSetPasswordRequested | OptionalAddressCreated | OptionalAddressDeleted | OptionalAddressUpdated | OptionalAppDeleted | OptionalAppInstalled | OptionalAppStatusChanged | OptionalAppUpdated | OptionalAttributeCreated | OptionalAttributeDeleted | OptionalAttributeUpdated | OptionalAttributeValueCreated | OptionalAttributeValueDeleted | OptionalAttributeValueUpdated | OptionalCalculateTaxes | OptionalCategoryCreated | OptionalCategoryDeleted | OptionalCategoryUpdated | OptionalChannelCreated | OptionalChannelDeleted | OptionalChannelMetadataUpdated | OptionalChannelStatusChanged | OptionalChannelUpdated | OptionalCheckoutCreated | OptionalCheckoutFilterShippingMethods | OptionalCheckoutFullyAuthorized | OptionalCheckoutFullyPaid | OptionalCheckoutMetadataUpdated | OptionalCheckoutUpdated | OptionalCollectionCreated | OptionalCollectionDeleted | OptionalCollectionMetadataUpdated | OptionalCollectionUpdated | OptionalCustomerCreated | OptionalCustomerMetadataUpdated | OptionalCustomerUpdated | OptionalDraftOrderCreated | OptionalDraftOrderDeleted | OptionalDraftOrderUpdated | OptionalFulfillmentApproved | OptionalFulfillmentCanceled | OptionalFulfillmentCreated | OptionalFulfillmentMetadataUpdated | OptionalFulfillmentTrackingNumberUpdated | OptionalGiftCardCreated | OptionalGiftCardDeleted | OptionalGiftCardExportCompleted | OptionalGiftCardMetadataUpdated | OptionalGiftCardSent | OptionalGiftCardStatusChanged | OptionalGiftCardUpdated | OptionalInvoiceDeleted | OptionalInvoiceRequested | OptionalInvoiceSent | OptionalListStoredPaymentMethods | OptionalMenuCreated | OptionalMenuDeleted | OptionalMenuItemCreated | OptionalMenuItemDeleted | OptionalMenuItemUpdated | OptionalMenuUpdated | OptionalOrderBulkCreated | OptionalOrderCancelled | OptionalOrderConfirmed | OptionalOrderCreated | OptionalOrderExpired | OptionalOrderFilterShippingMethods | OptionalOrderFulfilled | OptionalOrderFullyPaid | OptionalOrderFullyRefunded | OptionalOrderMetadataUpdated | OptionalOrderPaid | OptionalOrderRefunded | OptionalOrderUpdated | OptionalPageCreated | OptionalPageDeleted | OptionalPageTypeCreated | OptionalPageTypeDeleted | OptionalPageTypeUpdated | OptionalPageUpdated | OptionalPaymentAuthorize | OptionalPaymentCaptureEvent | OptionalPaymentConfirmEvent | OptionalPaymentGatewayInitializeSession | OptionalPaymentGatewayInitializeTokenizationSession | OptionalPaymentListGateways | OptionalPaymentMethodInitializeTokenizationSession | OptionalPaymentMethodProcessTokenizationSession | OptionalPaymentProcessEvent | OptionalPaymentRefundEvent | OptionalPaymentVoidEvent | OptionalPermissionGroupCreated | OptionalPermissionGroupDeleted | OptionalPermissionGroupUpdated | OptionalProductCreated | OptionalProductDeleted | OptionalProductExportCompleted | OptionalProductMediaCreated | OptionalProductMediaDeleted | OptionalProductMediaUpdated | OptionalProductMetadataUpdated | OptionalProductUpdated | OptionalProductVariantBackInStock | OptionalProductVariantCreated | OptionalProductVariantDeleted | OptionalProductVariantDiscountedPriceUpdated | OptionalProductVariantMetadataUpdated | OptionalProductVariantOutOfStock | OptionalProductVariantStockUpdated | OptionalProductVariantUpdated | OptionalPromotionCreated | OptionalPromotionDeleted | OptionalPromotionEnded | OptionalPromotionRuleCreated | OptionalPromotionRuleDeleted | OptionalPromotionRuleUpdated | OptionalPromotionStarted | OptionalPromotionUpdated | OptionalSaleCreated | OptionalSaleDeleted | OptionalSaleToggle | OptionalSaleUpdated | OptionalShippingListMethodsForCheckout | OptionalShippingPriceCreated | OptionalShippingPriceDeleted | OptionalShippingPriceUpdated | OptionalShippingZoneCreated | OptionalShippingZoneDeleted | OptionalShippingZoneMetadataUpdated | OptionalShippingZoneUpdated | OptionalShopMetadataUpdated | OptionalStaffCreated | OptionalStaffDeleted | OptionalStaffSetPasswordRequested | OptionalStaffUpdated | OptionalStoredPaymentMethodDeleteRequested | OptionalThumbnailCreated | OptionalTransactionCancelationRequested | OptionalTransactionChargeRequested | OptionalTransactionInitializeSession | OptionalTransactionItemMetadataUpdated | OptionalTransactionProcessSession | OptionalTransactionRefundRequested | OptionalTranslationCreated | OptionalTranslationUpdated | OptionalVoucherCodeExportCompleted | OptionalVoucherCodesCreated | OptionalVoucherCodesDeleted | OptionalVoucherCreated | OptionalVoucherDeleted | OptionalVoucherMetadataUpdated | OptionalVoucherUpdated | OptionalWarehouseCreated | OptionalWarehouseDeleted | OptionalWarehouseMetadataUpdated | OptionalWarehouseUpdated; +export type OptionalEvent = OptionalAccountChangeEmailRequested | OptionalAccountConfirmationRequested | OptionalAccountConfirmed | OptionalAccountDeleteRequested | OptionalAccountDeleted | OptionalAccountEmailChanged | OptionalAccountSetPasswordRequested | OptionalAddressCreated | OptionalAddressDeleted | OptionalAddressUpdated | OptionalAppDeleted | OptionalAppInstalled | OptionalAppStatusChanged | OptionalAppUpdated | OptionalAttributeCreated | OptionalAttributeDeleted | OptionalAttributeUpdated | OptionalAttributeValueCreated | OptionalAttributeValueDeleted | OptionalAttributeValueUpdated | OptionalCalculateTaxes | OptionalCategoryCreated | OptionalCategoryDeleted | OptionalCategoryUpdated | OptionalChannelCreated | OptionalChannelDeleted | OptionalChannelMetadataUpdated | OptionalChannelStatusChanged | OptionalChannelUpdated | OptionalCheckoutCreated | OptionalCheckoutFilterShippingMethods | OptionalCheckoutFullyAuthorized | OptionalCheckoutFullyPaid | OptionalCheckoutMetadataUpdated | OptionalCheckoutUpdated | OptionalCollectionCreated | OptionalCollectionDeleted | OptionalCollectionMetadataUpdated | OptionalCollectionUpdated | OptionalCustomerCreated | OptionalCustomerMetadataUpdated | OptionalCustomerUpdated | OptionalDraftOrderCreated | OptionalDraftOrderDeleted | OptionalDraftOrderUpdated | OptionalFulfillmentApproved | OptionalFulfillmentCanceled | OptionalFulfillmentCreated | OptionalFulfillmentMetadataUpdated | OptionalFulfillmentTrackingNumberUpdated | OptionalGiftCardCreated | OptionalGiftCardDeleted | OptionalGiftCardExportCompleted | OptionalGiftCardMetadataUpdated | OptionalGiftCardSent | OptionalGiftCardStatusChanged | OptionalGiftCardUpdated | OptionalInvoiceDeleted | OptionalInvoiceRequested | OptionalInvoiceSent | OptionalListStoredPaymentMethods | OptionalMenuCreated | OptionalMenuDeleted | OptionalMenuItemCreated | OptionalMenuItemDeleted | OptionalMenuItemUpdated | OptionalMenuUpdated | OptionalOrderBulkCreated | OptionalOrderCancelled | OptionalOrderConfirmed | OptionalOrderCreated | OptionalOrderExpired | OptionalOrderFilterShippingMethods | OptionalOrderFulfilled | OptionalOrderFullyPaid | OptionalOrderFullyRefunded | OptionalOrderMetadataUpdated | OptionalOrderPaid | OptionalOrderRefunded | OptionalOrderUpdated | OptionalPageCreated | OptionalPageDeleted | OptionalPageTypeCreated | OptionalPageTypeDeleted | OptionalPageTypeUpdated | OptionalPageUpdated | OptionalPaymentAuthorize | OptionalPaymentCaptureEvent | OptionalPaymentConfirmEvent | OptionalPaymentGatewayInitializeSession | OptionalPaymentGatewayInitializeTokenizationSession | OptionalPaymentListGateways | OptionalPaymentMethodInitializeTokenizationSession | OptionalPaymentMethodProcessTokenizationSession | OptionalPaymentProcessEvent | OptionalPaymentRefundEvent | OptionalPaymentVoidEvent | OptionalPermissionGroupCreated | OptionalPermissionGroupDeleted | OptionalPermissionGroupUpdated | OptionalProductCreated | OptionalProductDeleted | OptionalProductExportCompleted | OptionalProductMediaCreated | OptionalProductMediaDeleted | OptionalProductMediaUpdated | OptionalProductMetadataUpdated | OptionalProductUpdated | OptionalProductVariantBackInStock | OptionalProductVariantBackInStockForClickAndCollect | OptionalProductVariantBackInStockInChannel | OptionalProductVariantCreated | OptionalProductVariantDeleted | OptionalProductVariantDiscountedPriceUpdated | OptionalProductVariantMetadataUpdated | OptionalProductVariantOutOfStock | OptionalProductVariantOutOfStockForClickAndCollect | OptionalProductVariantOutOfStockInChannel | OptionalProductVariantStockUpdated | OptionalProductVariantUpdated | OptionalPromotionCreated | OptionalPromotionDeleted | OptionalPromotionEnded | OptionalPromotionRuleCreated | OptionalPromotionRuleDeleted | OptionalPromotionRuleUpdated | OptionalPromotionStarted | OptionalPromotionUpdated | OptionalSaleCreated | OptionalSaleDeleted | OptionalSaleToggle | OptionalSaleUpdated | OptionalShippingListMethodsForCheckout | OptionalShippingPriceCreated | OptionalShippingPriceDeleted | OptionalShippingPriceUpdated | OptionalShippingZoneCreated | OptionalShippingZoneDeleted | OptionalShippingZoneMetadataUpdated | OptionalShippingZoneUpdated | OptionalShopMetadataUpdated | OptionalStaffCreated | OptionalStaffDeleted | OptionalStaffSetPasswordRequested | OptionalStaffUpdated | OptionalStoredPaymentMethodDeleteRequested | OptionalThumbnailCreated | OptionalTransactionCancelationRequested | OptionalTransactionChargeRequested | OptionalTransactionInitializeSession | OptionalTransactionItemMetadataUpdated | OptionalTransactionProcessSession | OptionalTransactionRefundRequested | OptionalTranslationCreated | OptionalTranslationUpdated | OptionalVoucherCodeExportCompleted | OptionalVoucherCodesCreated | OptionalVoucherCodesDeleted | OptionalVoucherCreated | OptionalVoucherDeleted | OptionalVoucherMetadataUpdated | OptionalVoucherUpdated | OptionalWarehouseCreated | OptionalWarehouseDeleted | OptionalWarehouseMetadataUpdated | OptionalWarehouseUpdated; /** Event delivery. */ export type OptionalEventDelivery = { @@ -25716,6 +25720,74 @@ export const defineProductVariantBackInStockFactory: DefineTypeFactoryInterface< {} > = defineTypeFactory; +/** + * Event sent when a product variant becomes available again across click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + */ +export type OptionalProductVariantBackInStockForClickAndCollect = { + __typename?: 'ProductVariantBackInStockForClickAndCollect'; + /** The channel the stock availability changed in. */ + channel?: OptionalChannel | undefined; + /** Time of the event. */ + issuedAt?: ProductVariantBackInStockForClickAndCollect['issuedAt'] | undefined; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe | undefined; + /** The product variant the event relates to. */ + productVariant?: OptionalProductVariant | undefined; + /** The application receiving the webhook. */ + recipient?: Maybe | undefined; + /** Saleor version that triggered the event. */ + version?: ProductVariantBackInStockForClickAndCollect['version'] | undefined; +}; + +/** + * Define factory for {@link ProductVariantBackInStockForClickAndCollect} model. + * + * @param options + * @returns factory {@link ProductVariantBackInStockForClickAndCollectFactoryInterface} + */ +export const defineProductVariantBackInStockForClickAndCollectFactory: DefineTypeFactoryInterface< + OptionalProductVariantBackInStockForClickAndCollect, + {} +> = defineTypeFactory; + +/** + * Event sent when a product variant becomes available again across non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + */ +export type OptionalProductVariantBackInStockInChannel = { + __typename?: 'ProductVariantBackInStockInChannel'; + /** The channel the stock availability changed in. */ + channel?: OptionalChannel | undefined; + /** Time of the event. */ + issuedAt?: ProductVariantBackInStockInChannel['issuedAt'] | undefined; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe | undefined; + /** The product variant the event relates to. */ + productVariant?: OptionalProductVariant | undefined; + /** The application receiving the webhook. */ + recipient?: Maybe | undefined; + /** Saleor version that triggered the event. */ + version?: ProductVariantBackInStockInChannel['version'] | undefined; +}; + +/** + * Define factory for {@link ProductVariantBackInStockInChannel} model. + * + * @param options + * @returns factory {@link ProductVariantBackInStockInChannelFactoryInterface} + */ +export const defineProductVariantBackInStockInChannelFactory: DefineTypeFactoryInterface< + OptionalProductVariantBackInStockInChannel, + {} +> = defineTypeFactory; + /** * Creates product variants for a given product. * @@ -26487,6 +26559,74 @@ export const defineProductVariantOutOfStockFactory: DefineTypeFactoryInterface< {} > = defineTypeFactory; +/** + * Event sent when a product variant becomes out of stock across all click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + */ +export type OptionalProductVariantOutOfStockForClickAndCollect = { + __typename?: 'ProductVariantOutOfStockForClickAndCollect'; + /** The channel the stock availability changed in. */ + channel?: OptionalChannel | undefined; + /** Time of the event. */ + issuedAt?: ProductVariantOutOfStockForClickAndCollect['issuedAt'] | undefined; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe | undefined; + /** The product variant the event relates to. */ + productVariant?: OptionalProductVariant | undefined; + /** The application receiving the webhook. */ + recipient?: Maybe | undefined; + /** Saleor version that triggered the event. */ + version?: ProductVariantOutOfStockForClickAndCollect['version'] | undefined; +}; + +/** + * Define factory for {@link ProductVariantOutOfStockForClickAndCollect} model. + * + * @param options + * @returns factory {@link ProductVariantOutOfStockForClickAndCollectFactoryInterface} + */ +export const defineProductVariantOutOfStockForClickAndCollectFactory: DefineTypeFactoryInterface< + OptionalProductVariantOutOfStockForClickAndCollect, + {} +> = defineTypeFactory; + +/** + * Event sent when a product variant becomes out of stock across all non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + */ +export type OptionalProductVariantOutOfStockInChannel = { + __typename?: 'ProductVariantOutOfStockInChannel'; + /** The channel the stock availability changed in. */ + channel?: OptionalChannel | undefined; + /** Time of the event. */ + issuedAt?: ProductVariantOutOfStockInChannel['issuedAt'] | undefined; + /** The user or application that triggered the event. */ + issuingPrincipal?: Maybe | undefined; + /** The product variant the event relates to. */ + productVariant?: OptionalProductVariant | undefined; + /** The application receiving the webhook. */ + recipient?: Maybe | undefined; + /** Saleor version that triggered the event. */ + version?: ProductVariantOutOfStockInChannel['version'] | undefined; +}; + +/** + * Define factory for {@link ProductVariantOutOfStockInChannel} model. + * + * @param options + * @returns factory {@link ProductVariantOutOfStockInChannelFactoryInterface} + */ +export const defineProductVariantOutOfStockInChannelFactory: DefineTypeFactoryInterface< + OptionalProductVariantOutOfStockInChannel, + {} +> = defineTypeFactory; + /** * Deactivates product variant preorder. It changes all preorder allocation into regular allocation. * @@ -32443,6 +32583,26 @@ export type OptionalSubscription = { */ orderUpdated?: Maybe | undefined; /** + * Event sent when a product variant becomes available again across click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariantBackInStockForClickAndCollect?: Maybe | undefined; + /** + * Event sent when a product variant becomes available again across non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariantBackInStockInChannel?: Maybe | undefined; + /** * Event sent when product variant discounted price is recalculated. * * Added in Saleor 3.22. @@ -32450,6 +32610,26 @@ export type OptionalSubscription = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ productVariantDiscountedPriceUpdated?: Maybe | undefined; + /** + * Event sent when a product variant becomes out of stock across all click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariantOutOfStockForClickAndCollect?: Maybe | undefined; + /** + * Event sent when a product variant becomes out of stock across all non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariantOutOfStockInChannel?: Maybe | undefined; }; /** diff --git a/src/graphql/fabbricaTypes.generated.ts b/src/graphql/fabbricaTypes.generated.ts index e61db4e8724..946e67957ba 100644 --- a/src/graphql/fabbricaTypes.generated.ts +++ b/src/graphql/fabbricaTypes.generated.ts @@ -22707,6 +22707,52 @@ export type ProductVariantBackInStockProductVariantArgs = { channel: InputMaybe; }; +/** + * Event sent when a product variant becomes available again across click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + */ +export type ProductVariantBackInStockForClickAndCollect = Event & { + __typename: 'ProductVariantBackInStockForClickAndCollect'; + /** The channel the stock availability changed in. */ + channel: Channel; + /** Time of the event. */ + issuedAt: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal: Maybe; + /** The product variant the event relates to. */ + productVariant: ProductVariant; + /** The application receiving the webhook. */ + recipient: Maybe; + /** Saleor version that triggered the event. */ + version: Maybe; +}; + +/** + * Event sent when a product variant becomes available again across non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + */ +export type ProductVariantBackInStockInChannel = Event & { + __typename: 'ProductVariantBackInStockInChannel'; + /** The channel the stock availability changed in. */ + channel: Channel; + /** Time of the event. */ + issuedAt: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal: Maybe; + /** The product variant the event relates to. */ + productVariant: ProductVariant; + /** The application receiving the webhook. */ + recipient: Maybe; + /** Saleor version that triggered the event. */ + version: Maybe; +}; + /** * Creates product variants for a given product. * @@ -23217,6 +23263,52 @@ export type ProductVariantOutOfStockProductVariantArgs = { channel: InputMaybe; }; +/** + * Event sent when a product variant becomes out of stock across all click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + */ +export type ProductVariantOutOfStockForClickAndCollect = Event & { + __typename: 'ProductVariantOutOfStockForClickAndCollect'; + /** The channel the stock availability changed in. */ + channel: Channel; + /** Time of the event. */ + issuedAt: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal: Maybe; + /** The product variant the event relates to. */ + productVariant: ProductVariant; + /** The application receiving the webhook. */ + recipient: Maybe; + /** Saleor version that triggered the event. */ + version: Maybe; +}; + +/** + * Event sent when a product variant becomes out of stock across all non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + */ +export type ProductVariantOutOfStockInChannel = Event & { + __typename: 'ProductVariantOutOfStockInChannel'; + /** The channel the stock availability changed in. */ + channel: Channel; + /** Time of the event. */ + issuedAt: Maybe; + /** The user or application that triggered the event. */ + issuingPrincipal: Maybe; + /** The product variant the event relates to. */ + productVariant: ProductVariant; + /** The application receiving the webhook. */ + recipient: Maybe; + /** Saleor version that triggered the event. */ + version: Maybe; +}; + /** * Deactivates product variant preorder. It changes all preorder allocation into regular allocation. * @@ -28398,6 +28490,26 @@ export type Subscription = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ orderUpdated: Maybe; + /** + * Event sent when a product variant becomes available again across click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariantBackInStockForClickAndCollect: Maybe; + /** + * Event sent when a product variant becomes available again across non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariantBackInStockInChannel: Maybe; /** * Event sent when product variant discounted price is recalculated. * @@ -28406,6 +28518,26 @@ export type Subscription = { * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ productVariantDiscountedPriceUpdated: Maybe; + /** + * Event sent when a product variant becomes out of stock across all click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariantOutOfStockForClickAndCollect: Maybe; + /** + * Event sent when a product variant becomes out of stock across all non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + * + * Added in Saleor 3.23. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + productVariantOutOfStockInChannel: Maybe; }; @@ -28509,10 +28641,30 @@ export type SubscriptionOrderUpdatedArgs = { }; +export type SubscriptionProductVariantBackInStockForClickAndCollectArgs = { + channels: InputMaybe>; +}; + + +export type SubscriptionProductVariantBackInStockInChannelArgs = { + channels: InputMaybe>; +}; + + export type SubscriptionProductVariantDiscountedPriceUpdatedArgs = { channels: InputMaybe>; }; + +export type SubscriptionProductVariantOutOfStockForClickAndCollectArgs = { + channels: InputMaybe>; +}; + + +export type SubscriptionProductVariantOutOfStockInChannelArgs = { + channels: InputMaybe>; +}; + export type TaxCalculationStrategy = | 'FLAT_RATES' | 'TAX_APP'; @@ -32007,6 +32159,18 @@ export type WebhookEventTypeAsyncEnum = | 'PRODUCT_UPDATED' /** A product variant is back in stock. */ | 'PRODUCT_VARIANT_BACK_IN_STOCK' + /** + * A product variant becomes available again across click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + | 'PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT' + /** + * A product variant becomes available again across non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + | 'PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL' /** A new product variant is created. */ | 'PRODUCT_VARIANT_CREATED' /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ @@ -32016,6 +32180,18 @@ export type WebhookEventTypeAsyncEnum = | 'PRODUCT_VARIANT_METADATA_UPDATED' /** A product variant is out of stock. */ | 'PRODUCT_VARIANT_OUT_OF_STOCK' + /** + * A product variant becomes out of stock across all click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + | 'PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT' + /** + * A product variant becomes out of stock across all non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + | 'PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL' /** A product variant stock is updated */ | 'PRODUCT_VARIANT_STOCK_UPDATED' /** A product variant is updated. */ @@ -32333,6 +32509,18 @@ export type WebhookEventTypeEnum = | 'PRODUCT_UPDATED' /** A product variant is back in stock. */ | 'PRODUCT_VARIANT_BACK_IN_STOCK' + /** + * A product variant becomes available again across click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + | 'PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT' + /** + * A product variant becomes available again across non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + | 'PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL' /** A new product variant is created. */ | 'PRODUCT_VARIANT_CREATED' /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ @@ -32342,6 +32530,18 @@ export type WebhookEventTypeEnum = | 'PRODUCT_VARIANT_METADATA_UPDATED' /** A product variant is out of stock. */ | 'PRODUCT_VARIANT_OUT_OF_STOCK' + /** + * A product variant becomes out of stock across all click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + | 'PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT' + /** + * A product variant becomes out of stock across all non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + | 'PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL' /** A product variant stock is updated */ | 'PRODUCT_VARIANT_STOCK_UPDATED' /** A product variant is updated. */ @@ -32577,11 +32777,15 @@ export type WebhookSampleEventTypeEnum = | 'PRODUCT_METADATA_UPDATED' | 'PRODUCT_UPDATED' | 'PRODUCT_VARIANT_BACK_IN_STOCK' + | 'PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT' + | 'PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL' | 'PRODUCT_VARIANT_CREATED' | 'PRODUCT_VARIANT_DELETED' | 'PRODUCT_VARIANT_DISCOUNTED_PRICE_UPDATED' | 'PRODUCT_VARIANT_METADATA_UPDATED' | 'PRODUCT_VARIANT_OUT_OF_STOCK' + | 'PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT' + | 'PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL' | 'PRODUCT_VARIANT_STOCK_UPDATED' | 'PRODUCT_VARIANT_UPDATED' | 'PROMOTION_CREATED' diff --git a/src/graphql/fragmentTypes.generated.ts b/src/graphql/fragmentTypes.generated.ts index cd05b666eed..fefb943bc64 100644 --- a/src/graphql/fragmentTypes.generated.ts +++ b/src/graphql/fragmentTypes.generated.ts @@ -152,11 +152,15 @@ "ProductMetadataUpdated", "ProductUpdated", "ProductVariantBackInStock", + "ProductVariantBackInStockForClickAndCollect", + "ProductVariantBackInStockInChannel", "ProductVariantCreated", "ProductVariantDeleted", "ProductVariantDiscountedPriceUpdated", "ProductVariantMetadataUpdated", "ProductVariantOutOfStock", + "ProductVariantOutOfStockForClickAndCollect", + "ProductVariantOutOfStockInChannel", "ProductVariantStockUpdated", "ProductVariantUpdated", "PromotionCreated", diff --git a/src/graphql/typePolicies.generated.ts b/src/graphql/typePolicies.generated.ts index 1e4f70e01b9..ec2ec25fb51 100644 --- a/src/graphql/typePolicies.generated.ts +++ b/src/graphql/typePolicies.generated.ts @@ -4837,6 +4837,24 @@ export type ProductVariantBackInStockFieldPolicy = { version?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; +export type ProductVariantBackInStockForClickAndCollectKeySpecifier = ('channel' | 'issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | ProductVariantBackInStockForClickAndCollectKeySpecifier)[]; +export type ProductVariantBackInStockForClickAndCollectFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantBackInStockInChannelKeySpecifier = ('channel' | 'issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | ProductVariantBackInStockInChannelKeySpecifier)[]; +export type ProductVariantBackInStockInChannelFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; export type ProductVariantBulkCreateKeySpecifier = ('bulkProductErrors' | 'count' | 'errors' | 'productVariants' | 'results' | ProductVariantBulkCreateKeySpecifier)[]; export type ProductVariantBulkCreateFieldPolicy = { bulkProductErrors?: FieldPolicy | FieldReadFunction, @@ -4975,6 +4993,24 @@ export type ProductVariantOutOfStockFieldPolicy = { version?: FieldPolicy | FieldReadFunction, warehouse?: FieldPolicy | FieldReadFunction }; +export type ProductVariantOutOfStockForClickAndCollectKeySpecifier = ('channel' | 'issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | ProductVariantOutOfStockForClickAndCollectKeySpecifier)[]; +export type ProductVariantOutOfStockForClickAndCollectFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; +export type ProductVariantOutOfStockInChannelKeySpecifier = ('channel' | 'issuedAt' | 'issuingPrincipal' | 'productVariant' | 'recipient' | 'version' | ProductVariantOutOfStockInChannelKeySpecifier)[]; +export type ProductVariantOutOfStockInChannelFieldPolicy = { + channel?: FieldPolicy | FieldReadFunction, + issuedAt?: FieldPolicy | FieldReadFunction, + issuingPrincipal?: FieldPolicy | FieldReadFunction, + productVariant?: FieldPolicy | FieldReadFunction, + recipient?: FieldPolicy | FieldReadFunction, + version?: FieldPolicy | FieldReadFunction +}; export type ProductVariantPreorderDeactivateKeySpecifier = ('errors' | 'productVariant' | ProductVariantPreorderDeactivateKeySpecifier)[]; export type ProductVariantPreorderDeactivateFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, @@ -6195,7 +6231,7 @@ export type StoredPaymentMethodRequestDeleteFieldPolicy = { errors?: FieldPolicy | FieldReadFunction, result?: FieldPolicy | FieldReadFunction }; -export type SubscriptionKeySpecifier = ('checkoutCreated' | 'checkoutFullyAuthorized' | 'checkoutFullyPaid' | 'checkoutMetadataUpdated' | 'checkoutUpdated' | 'draftOrderCreated' | 'draftOrderDeleted' | 'draftOrderUpdated' | 'event' | 'orderBulkCreated' | 'orderCancelled' | 'orderConfirmed' | 'orderCreated' | 'orderExpired' | 'orderFulfilled' | 'orderFullyPaid' | 'orderFullyRefunded' | 'orderMetadataUpdated' | 'orderPaid' | 'orderRefunded' | 'orderUpdated' | 'productVariantDiscountedPriceUpdated' | SubscriptionKeySpecifier)[]; +export type SubscriptionKeySpecifier = ('checkoutCreated' | 'checkoutFullyAuthorized' | 'checkoutFullyPaid' | 'checkoutMetadataUpdated' | 'checkoutUpdated' | 'draftOrderCreated' | 'draftOrderDeleted' | 'draftOrderUpdated' | 'event' | 'orderBulkCreated' | 'orderCancelled' | 'orderConfirmed' | 'orderCreated' | 'orderExpired' | 'orderFulfilled' | 'orderFullyPaid' | 'orderFullyRefunded' | 'orderMetadataUpdated' | 'orderPaid' | 'orderRefunded' | 'orderUpdated' | 'productVariantBackInStockForClickAndCollect' | 'productVariantBackInStockInChannel' | 'productVariantDiscountedPriceUpdated' | 'productVariantOutOfStockForClickAndCollect' | 'productVariantOutOfStockInChannel' | SubscriptionKeySpecifier)[]; export type SubscriptionFieldPolicy = { checkoutCreated?: FieldPolicy | FieldReadFunction, checkoutFullyAuthorized?: FieldPolicy | FieldReadFunction, @@ -6218,7 +6254,11 @@ export type SubscriptionFieldPolicy = { orderPaid?: FieldPolicy | FieldReadFunction, orderRefunded?: FieldPolicy | FieldReadFunction, orderUpdated?: FieldPolicy | FieldReadFunction, - productVariantDiscountedPriceUpdated?: FieldPolicy | FieldReadFunction + productVariantBackInStockForClickAndCollect?: FieldPolicy | FieldReadFunction, + productVariantBackInStockInChannel?: FieldPolicy | FieldReadFunction, + productVariantDiscountedPriceUpdated?: FieldPolicy | FieldReadFunction, + productVariantOutOfStockForClickAndCollect?: FieldPolicy | FieldReadFunction, + productVariantOutOfStockInChannel?: FieldPolicy | FieldReadFunction }; export type TaxClassKeySpecifier = ('countries' | 'id' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | TaxClassKeySpecifier)[]; export type TaxClassFieldPolicy = { @@ -9527,6 +9567,14 @@ export type StrictTypedTypePolicies = { keyFields?: false | ProductVariantBackInStockKeySpecifier | (() => undefined | ProductVariantBackInStockKeySpecifier), fields?: ProductVariantBackInStockFieldPolicy, }, + ProductVariantBackInStockForClickAndCollect?: Omit & { + keyFields?: false | ProductVariantBackInStockForClickAndCollectKeySpecifier | (() => undefined | ProductVariantBackInStockForClickAndCollectKeySpecifier), + fields?: ProductVariantBackInStockForClickAndCollectFieldPolicy, + }, + ProductVariantBackInStockInChannel?: Omit & { + keyFields?: false | ProductVariantBackInStockInChannelKeySpecifier | (() => undefined | ProductVariantBackInStockInChannelKeySpecifier), + fields?: ProductVariantBackInStockInChannelFieldPolicy, + }, ProductVariantBulkCreate?: Omit & { keyFields?: false | ProductVariantBulkCreateKeySpecifier | (() => undefined | ProductVariantBulkCreateKeySpecifier), fields?: ProductVariantBulkCreateFieldPolicy, @@ -9603,6 +9651,14 @@ export type StrictTypedTypePolicies = { keyFields?: false | ProductVariantOutOfStockKeySpecifier | (() => undefined | ProductVariantOutOfStockKeySpecifier), fields?: ProductVariantOutOfStockFieldPolicy, }, + ProductVariantOutOfStockForClickAndCollect?: Omit & { + keyFields?: false | ProductVariantOutOfStockForClickAndCollectKeySpecifier | (() => undefined | ProductVariantOutOfStockForClickAndCollectKeySpecifier), + fields?: ProductVariantOutOfStockForClickAndCollectFieldPolicy, + }, + ProductVariantOutOfStockInChannel?: Omit & { + keyFields?: false | ProductVariantOutOfStockInChannelKeySpecifier | (() => undefined | ProductVariantOutOfStockInChannelKeySpecifier), + fields?: ProductVariantOutOfStockInChannelFieldPolicy, + }, ProductVariantPreorderDeactivate?: Omit & { keyFields?: false | ProductVariantPreorderDeactivateKeySpecifier | (() => undefined | ProductVariantPreorderDeactivateKeySpecifier), fields?: ProductVariantPreorderDeactivateFieldPolicy, diff --git a/src/graphql/types.generated.ts b/src/graphql/types.generated.ts index 1d32a9a8f67..b73d2616bd1 100644 --- a/src/graphql/types.generated.ts +++ b/src/graphql/types.generated.ts @@ -9400,6 +9400,18 @@ export enum WebhookEventTypeAsyncEnum { PRODUCT_UPDATED = 'PRODUCT_UPDATED', /** A product variant is back in stock. */ PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', + /** + * A product variant becomes available again across click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT = 'PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT', + /** + * A product variant becomes available again across non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL = 'PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL', /** A new product variant is created. */ PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ @@ -9409,6 +9421,18 @@ export enum WebhookEventTypeAsyncEnum { PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', /** A product variant is out of stock. */ PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', + /** + * A product variant becomes out of stock across all click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT = 'PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT', + /** + * A product variant becomes out of stock across all non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL = 'PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL', /** A product variant stock is updated */ PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', /** A product variant is updated. */ @@ -9733,6 +9757,18 @@ export enum WebhookEventTypeEnum { PRODUCT_UPDATED = 'PRODUCT_UPDATED', /** A product variant is back in stock. */ PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', + /** + * A product variant becomes available again across click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT = 'PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT', + /** + * A product variant becomes available again across non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL = 'PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL', /** A new product variant is created. */ PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ @@ -9742,6 +9778,18 @@ export enum WebhookEventTypeEnum { PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', /** A product variant is out of stock. */ PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', + /** + * A product variant becomes out of stock across all click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT = 'PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT', + /** + * A product variant becomes out of stock across all non click-and-collect warehouses in a channel. + * + * Note: Only triggered when the `useLegacyShippingZoneStockAvailability` shop setting is disabled. + */ + PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL = 'PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL', /** A product variant stock is updated */ PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', /** A product variant is updated. */ @@ -9979,11 +10027,15 @@ export enum WebhookSampleEventTypeEnum { PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', PRODUCT_UPDATED = 'PRODUCT_UPDATED', PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', + PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT = 'PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT', + PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL = 'PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL', PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', PRODUCT_VARIANT_DISCOUNTED_PRICE_UPDATED = 'PRODUCT_VARIANT_DISCOUNTED_PRICE_UPDATED', PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', + PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT = 'PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT', + PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL = 'PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL', PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', PROMOTION_CREATED = 'PROMOTION_CREATED',