Skip to content

Commit 83e2d05

Browse files
committed
Merge branch 'main' into fix/line-discounts-discoverabilty
2 parents d7b1d6b + e730dcd commit 83e2d05

7 files changed

Lines changed: 624 additions & 10 deletions

schema-main.graphql

Lines changed: 98 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17538,11 +17538,21 @@ type Mutation {
1753817538
Deletes selected warehouse.
1753917539

1754017540
Requires one of the following permissions: MANAGE_PRODUCTS.
17541+
17542+
Triggers the following webhook events:
17543+
- WAREHOUSE_DELETED (async): A warehouse is deleted.
17544+
- PRODUCT_VARIANT_OUT_OF_STOCK (async): A product variant stock is removed together with the deleted warehouse.
17545+
- PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL (async): A product variant is out of stock in a channel (non click-and-collect warehouses).
17546+
17547+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
17548+
- PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is out of stock in a channel (click-and-collect warehouses).
17549+
17550+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
1754117551
"""
1754217552
deleteWarehouse(
1754317553
"""ID of a warehouse to delete."""
1754417554
id: ID!
17545-
): WarehouseDelete @doc(category: "Products")
17555+
): WarehouseDelete @doc(category: "Products") @webhookEventsInfo(asyncEvents: [WAREHOUSE_DELETED, PRODUCT_VARIANT_OUT_OF_STOCK, PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL, PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: [])
1754617556

1754717557
"""
1754817558
Add shipping zone to given warehouse.
@@ -18493,19 +18503,37 @@ type Mutation {
1849318503
Creates stocks for product variant.
1849418504

1849518505
Requires one of the following permissions: MANAGE_PRODUCTS.
18506+
18507+
Triggers the following webhook events:
18508+
- PRODUCT_VARIANT_BACK_IN_STOCK (async): A product variant stock is created in a warehouse.
18509+
- PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL (async): A product variant is back in stock in a channel (non click-and-collect warehouses).
18510+
18511+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
18512+
- PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is back in stock in a channel (click-and-collect warehouses).
18513+
18514+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
1849618515
"""
1849718516
productVariantStocksCreate(
1849818517
"""Input list of stocks to create."""
1849918518
stocks: [StockInput!]!
1850018519

1850118520
"""ID of a product variant for which stocks will be created."""
1850218521
variantId: ID!
18503-
): ProductVariantStocksCreate @doc(category: "Products")
18522+
): ProductVariantStocksCreate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_BACK_IN_STOCK, PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL, PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: [])
1850418523

1850518524
"""
1850618525
Deletes stocks from product variant.
1850718526

1850818527
Requires one of the following permissions: MANAGE_PRODUCTS.
18528+
18529+
Triggers the following webhook events:
18530+
- PRODUCT_VARIANT_OUT_OF_STOCK (async): A product variant stock is deleted from a warehouse.
18531+
- PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL (async): A product variant is out of stock in a channel (non click-and-collect warehouses).
18532+
18533+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
18534+
- PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is out of stock in a channel (click-and-collect warehouses).
18535+
18536+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
1850918537
"""
1851018538
productVariantStocksDelete(
1851118539
"""SKU of product variant for which stocks will be deleted."""
@@ -18516,12 +18544,29 @@ type Mutation {
1851618544

1851718545
"""Input list of warehouse IDs."""
1851818546
warehouseIds: [ID!]
18519-
): ProductVariantStocksDelete @doc(category: "Products")
18547+
): ProductVariantStocksDelete @doc(category: "Products") @webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_OUT_OF_STOCK, PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL, PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: [])
1852018548

1852118549
"""
1852218550
Updates stocks for product variant.
1852318551

1852418552
Requires one of the following permissions: MANAGE_PRODUCTS.
18553+
18554+
Triggers the following webhook events:
18555+
- PRODUCT_VARIANT_STOCK_UPDATED (async): A product variant stock is updated.
18556+
- PRODUCT_VARIANT_BACK_IN_STOCK (async): A product variant stock transitioned from no availability to available quantity.
18557+
- PRODUCT_VARIANT_OUT_OF_STOCK (async): A product variant stock transitioned from available quantity to no availability.
18558+
- PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL (async): A product variant is back in stock in a channel (non click-and-collect warehouses).
18559+
18560+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
18561+
- PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL (async): A product variant is out of stock in a channel (non click-and-collect warehouses).
18562+
18563+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
18564+
- PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is back in stock in a channel (click-and-collect warehouses).
18565+
18566+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
18567+
- PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is out of stock in a channel (click-and-collect warehouses).
18568+
18569+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
1852518570
"""
1852618571
productVariantStocksUpdate(
1852718572
"""SKU of product variant for which stocks will be updated."""
@@ -18532,7 +18577,7 @@ type Mutation {
1853218577

1853318578
"""ID of a product variant for which stocks will be updated."""
1853418579
variantId: ID
18535-
): ProductVariantStocksUpdate @doc(category: "Products")
18580+
): ProductVariantStocksUpdate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_STOCK_UPDATED, PRODUCT_VARIANT_BACK_IN_STOCK, PRODUCT_VARIANT_OUT_OF_STOCK, PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL, PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL, PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT, PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: [])
1853618581

1853718582
"""
1853818583
Updates an existing variant for product.
@@ -22429,8 +22474,18 @@ input WarehouseUpdateInput @doc(category: "Products") {
2242922474
Deletes selected warehouse.
2243022475

2243122476
Requires one of the following permissions: MANAGE_PRODUCTS.
22477+
22478+
Triggers the following webhook events:
22479+
- WAREHOUSE_DELETED (async): A warehouse is deleted.
22480+
- PRODUCT_VARIANT_OUT_OF_STOCK (async): A product variant stock is removed together with the deleted warehouse.
22481+
- PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL (async): A product variant is out of stock in a channel (non click-and-collect warehouses).
22482+
22483+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
22484+
- PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is out of stock in a channel (click-and-collect warehouses).
22485+
22486+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
2243222487
"""
22433-
type WarehouseDelete @doc(category: "Products") {
22488+
type WarehouseDelete @doc(category: "Products") @webhookEventsInfo(asyncEvents: [WAREHOUSE_DELETED, PRODUCT_VARIANT_OUT_OF_STOCK, PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL, PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: []) {
2243422489
warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use `errors` field instead.")
2243522490
errors: [WarehouseError!]!
2243622491
warehouse: Warehouse
@@ -25398,8 +25453,17 @@ type ProductVariantBulkDelete @doc(category: "Products") {
2539825453
Creates stocks for product variant.
2539925454

2540025455
Requires one of the following permissions: MANAGE_PRODUCTS.
25456+
25457+
Triggers the following webhook events:
25458+
- PRODUCT_VARIANT_BACK_IN_STOCK (async): A product variant stock is created in a warehouse.
25459+
- PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL (async): A product variant is back in stock in a channel (non click-and-collect warehouses).
25460+
25461+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
25462+
- PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is back in stock in a channel (click-and-collect warehouses).
25463+
25464+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
2540125465
"""
25402-
type ProductVariantStocksCreate @doc(category: "Products") {
25466+
type ProductVariantStocksCreate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_BACK_IN_STOCK, PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL, PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: []) {
2540325467
"""Updated product variant."""
2540425468
productVariant: ProductVariant
2540525469
bulkStockErrors: [BulkStockError!]! @deprecated(reason: "Use `errors` field instead.")
@@ -25432,8 +25496,17 @@ type BulkStockError @doc(category: "Products") {
2543225496
Deletes stocks from product variant.
2543325497

2543425498
Requires one of the following permissions: MANAGE_PRODUCTS.
25499+
25500+
Triggers the following webhook events:
25501+
- PRODUCT_VARIANT_OUT_OF_STOCK (async): A product variant stock is deleted from a warehouse.
25502+
- PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL (async): A product variant is out of stock in a channel (non click-and-collect warehouses).
25503+
25504+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
25505+
- PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is out of stock in a channel (click-and-collect warehouses).
25506+
25507+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
2543525508
"""
25436-
type ProductVariantStocksDelete @doc(category: "Products") {
25509+
type ProductVariantStocksDelete @doc(category: "Products") @webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_OUT_OF_STOCK, PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL, PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: []) {
2543725510
"""Updated product variant."""
2543825511
productVariant: ProductVariant
2543925512
stockErrors: [StockError!]! @deprecated(reason: "Use `errors` field instead.")
@@ -25466,8 +25539,25 @@ enum StockErrorCode @doc(category: "Products") {
2546625539
Updates stocks for product variant.
2546725540

2546825541
Requires one of the following permissions: MANAGE_PRODUCTS.
25542+
25543+
Triggers the following webhook events:
25544+
- PRODUCT_VARIANT_STOCK_UPDATED (async): A product variant stock is updated.
25545+
- PRODUCT_VARIANT_BACK_IN_STOCK (async): A product variant stock transitioned from no availability to available quantity.
25546+
- PRODUCT_VARIANT_OUT_OF_STOCK (async): A product variant stock transitioned from available quantity to no availability.
25547+
- PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL (async): A product variant is back in stock in a channel (non click-and-collect warehouses).
25548+
25549+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
25550+
- PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL (async): A product variant is out of stock in a channel (non click-and-collect warehouses).
25551+
25552+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
25553+
- PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is back in stock in a channel (click-and-collect warehouses).
25554+
25555+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
25556+
- PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT (async): A product variant is out of stock in a channel (click-and-collect warehouses).
25557+
25558+
Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
2546925559
"""
25470-
type ProductVariantStocksUpdate @doc(category: "Products") {
25560+
type ProductVariantStocksUpdate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_STOCK_UPDATED, PRODUCT_VARIANT_BACK_IN_STOCK, PRODUCT_VARIANT_OUT_OF_STOCK, PRODUCT_VARIANT_BACK_IN_STOCK_IN_CHANNEL, PRODUCT_VARIANT_OUT_OF_STOCK_IN_CHANNEL, PRODUCT_VARIANT_BACK_IN_STOCK_FOR_CLICK_AND_COLLECT, PRODUCT_VARIANT_OUT_OF_STOCK_FOR_CLICK_AND_COLLECT], syncEvents: []) {
2547125561
"""Updated product variant."""
2547225562
productVariant: ProductVariant
2547325563
bulkStockErrors: [BulkStockError!]! @deprecated(reason: "Use `errors` field instead.")

0 commit comments

Comments
 (0)