Skip to content

Commit

Permalink
feat!(gatsby-source-shopify): upgrade from Shopify API version 2022-0…
Browse files Browse the repository at this point in the history
…4 to 2024-04 (#39082)

* chore!(gatsby-source-shopify): upgrade to api version 2024-04

See breaking changes in:
- https://shopify.dev/docs/api/release-notes/previous-versions/2022-07
- https://shopify.dev/docs/api/release-notes/previous-versions/2022-10
- https://shopify.dev/docs/api/release-notes/previous-versions/2023-01
- https://shopify.dev/docs/api/release-notes/previous-versions/2023-04

* test: fix fixture syntax and update snapshots

* chore: handle Count type

* fix: handle intentory level

* test: update snapshots and mocks

* test: update variants fixture

* test: update inventory level mock

* fix: minimize breaking changes by keeping Int type for count fields

* fix: mark productBased as deprecated

* address review comments

* test: update snapshots

---------

Co-authored-by: pieh <[email protected]>
  • Loading branch information
serhalp and pieh authored Jan 2, 2025
1 parent cddc252 commit 8252e82
Show file tree
Hide file tree
Showing 31 changed files with 2,264 additions and 219 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ Array [
}
}
}
mediaCount
mediaCount {
count
precision
}
metafields {
edges {
node {
Expand Down Expand Up @@ -196,7 +199,10 @@ Array [
productType
publishedAt
requiresSellingPlan
sellingPlanGroupCount
sellingPlanGroupsCount {
count
precision
}
seo {
description
title
Expand Down Expand Up @@ -276,7 +282,10 @@ Array [
inventoryLevels {
edges {
node {
available
quantities(names: [\\"incoming\\", \\"available\\", \\"committed\\", \\"reserved\\", \\"damaged\\", \\"safety_stock\\", \\"quality_control\\"]) {
name
quantity
}
id
location {
id
Expand All @@ -285,7 +294,10 @@ Array [
}
}
legacyResourceId
locationsCount
locationsCount {
count
precision
}
provinceCodeOfOrigin
requiresShipping
sku
Expand Down Expand Up @@ -340,7 +352,10 @@ Array [
name
value
}
sellingPlanGroupCount
sellingPlanGroupsCount {
count
precision
}
sku
storefrontId
taxCode
Expand Down Expand Up @@ -503,7 +518,10 @@ Array [
}
}
}
productsCount
productsCount {
count
precision
}
ruleSet {
appliedDisjunctively
rules {
Expand Down Expand Up @@ -793,7 +811,10 @@ Array [
}
}
}
mediaCount
mediaCount {
count
precision
}
metafields {
edges {
node {
Expand Down Expand Up @@ -842,7 +863,10 @@ Array [
productType
publishedAt
requiresSellingPlan
sellingPlanGroupCount
sellingPlanGroupsCount {
count
precision
}
seo {
description
title
Expand Down Expand Up @@ -922,7 +946,10 @@ Array [
inventoryLevels {
edges {
node {
available
quantities(names: [\\"incoming\\", \\"available\\", \\"committed\\", \\"reserved\\", \\"damaged\\", \\"safety_stock\\", \\"quality_control\\"]) {
name
quantity
}
id
location {
id
Expand All @@ -931,7 +958,10 @@ Array [
}
}
legacyResourceId
locationsCount
locationsCount {
count
precision
}
provinceCodeOfOrigin
requiresShipping
sku
Expand Down Expand Up @@ -986,7 +1016,10 @@ Array [
name
value
}
sellingPlanGroupCount
sellingPlanGroupsCount {
count
precision
}
sku
storefrontId
taxCode
Expand Down Expand Up @@ -1149,7 +1182,10 @@ Array [
}
}
}
productsCount
productsCount {
count
precision
}
ruleSet {
appliedDisjunctively
rules {
Expand Down Expand Up @@ -1439,7 +1475,10 @@ Array [
}
}
}
mediaCount
mediaCount {
count
precision
}
metafields {
edges {
node {
Expand Down Expand Up @@ -1488,7 +1527,10 @@ Array [
productType
publishedAt
requiresSellingPlan
sellingPlanGroupCount
sellingPlanGroupsCount {
count
precision
}
seo {
description
title
Expand Down Expand Up @@ -1568,7 +1610,10 @@ Array [
inventoryLevels {
edges {
node {
available
quantities(names: [\\"incoming\\", \\"available\\", \\"committed\\", \\"reserved\\", \\"damaged\\", \\"safety_stock\\", \\"quality_control\\"]) {
name
quantity
}
id
location {
id
Expand All @@ -1577,7 +1622,10 @@ Array [
}
}
legacyResourceId
locationsCount
locationsCount {
count
precision
}
provinceCodeOfOrigin
requiresShipping
sku
Expand Down Expand Up @@ -1632,7 +1680,10 @@ Array [
name
value
}
sellingPlanGroupCount
sellingPlanGroupsCount {
count
precision
}
sku
storefrontId
taxCode
Expand Down Expand Up @@ -1795,7 +1846,10 @@ Array [
}
}
}
productsCount
productsCount {
count
precision
}
ruleSet {
appliedDisjunctively
rules {
Expand Down Expand Up @@ -2085,7 +2139,10 @@ Array [
}
}
}
mediaCount
mediaCount {
count
precision
}
metafields {
edges {
node {
Expand Down Expand Up @@ -2134,7 +2191,10 @@ Array [
productType
publishedAt
requiresSellingPlan
sellingPlanGroupCount
sellingPlanGroupsCount {
count
precision
}
seo {
description
title
Expand Down Expand Up @@ -2214,7 +2274,10 @@ Array [
inventoryLevels {
edges {
node {
available
quantities(names: [\\"incoming\\", \\"available\\", \\"committed\\", \\"reserved\\", \\"damaged\\", \\"safety_stock\\", \\"quality_control\\"]) {
name
quantity
}
id
location {
id
Expand All @@ -2223,7 +2286,10 @@ Array [
}
}
legacyResourceId
locationsCount
locationsCount {
count
precision
}
provinceCodeOfOrigin
requiresShipping
sku
Expand Down Expand Up @@ -2278,7 +2344,10 @@ Array [
name
value
}
sellingPlanGroupCount
sellingPlanGroupsCount {
count
precision
}
sku
storefrontId
taxCode
Expand Down Expand Up @@ -2441,7 +2510,10 @@ Array [
}
}
}
productsCount
productsCount {
count
precision
}
ruleSet {
appliedDisjunctively
rules {
Expand Down
Loading

0 comments on commit 8252e82

Please sign in to comment.