@@ -4,12 +4,18 @@ export const productInventoryLocation: VariantInventory = {
44 isInStock : true ,
55 aggregated : {
66 availableToSell : 31 ,
7+ availableOnHand : 31 ,
78 warningLevel : 2 ,
9+ unlimitedBackorder : false ,
810 } ,
911 byLocation : {
12+ pageInfo : {
13+ hasNextPage : false ,
14+ hasPreviousPage : false ,
15+ } ,
1016 edges : [
1117 {
12- // @ts -expect-error: error is due to required but deprecated field locationEntityServiceTypeIds
18+ cursor : 'cursor1' ,
1319 node : {
1420 locationEntityId : 1 ,
1521 locationEntityCode : 'BC-LOCATION-1' ,
@@ -18,10 +24,12 @@ export const productInventoryLocation: VariantInventory = {
1824 availableToSell : 11 ,
1925 warningLevel : 2 ,
2026 isInStock : true ,
27+ backorderMessage : '' ,
28+ locationEntityServiceTypeIds : [ ] ,
2129 } ,
2230 } ,
2331 {
24- // @ts -expect-error: error is due to required but deprecated field locationEntityServiceTypeIds
32+ cursor : 'cursor2' ,
2533 node : {
2634 locationEntityId : 2 ,
2735 locationEntityCode : 'BIGC-2' ,
@@ -30,10 +38,12 @@ export const productInventoryLocation: VariantInventory = {
3038 availableToSell : 20 ,
3139 warningLevel : 0 ,
3240 isInStock : true ,
41+ backorderMessage : '' ,
42+ locationEntityServiceTypeIds : [ ] ,
3343 } ,
3444 } ,
3545 {
36- // @ts -expect-error: error is due to required but deprecated field locationEntityServiceTypeIds
46+ cursor : 'cursor3' ,
3747 node : {
3848 locationEntityId : 3 ,
3949 locationEntityCode : '' ,
@@ -42,6 +52,8 @@ export const productInventoryLocation: VariantInventory = {
4252 availableToSell : 0 ,
4353 warningLevel : 0 ,
4454 isInStock : false ,
55+ backorderMessage : '' ,
56+ locationEntityServiceTypeIds : [ ] ,
4557 } ,
4658 } ,
4759 ] ,
@@ -57,6 +69,8 @@ export const transformedProductLocations = [
5769 availableToSell : 11 ,
5870 warningLevel : 2 ,
5971 isInStock : true ,
72+ backorderMessage : '' ,
73+ locationEntityServiceTypeIds : [ ] ,
6074 __typename : 'ByLocation' ,
6175 } ,
6276 {
@@ -67,6 +81,8 @@ export const transformedProductLocations = [
6781 availableToSell : 20 ,
6882 warningLevel : 0 ,
6983 isInStock : true ,
84+ backorderMessage : '' ,
85+ locationEntityServiceTypeIds : [ ] ,
7086 __typename : 'ByLocation' ,
7187 } ,
7288 {
@@ -77,6 +93,8 @@ export const transformedProductLocations = [
7793 availableToSell : 0 ,
7894 warningLevel : 0 ,
7995 isInStock : false ,
96+ backorderMessage : '' ,
97+ locationEntityServiceTypeIds : [ ] ,
8098 __typename : 'ByLocation' ,
8199 } ,
82100] ;
0 commit comments