Skip to content

Commit c193c0f

Browse files
crispy101claude
andcommitted
fix(bigcommerce): update test data to match BigCommerce schema changes
AKD-305 - Add missing `availableOnHand` and `unlimitedBackorder` properties to the Aggregated type in test data - Remove obsolete @ts-expect-error directives for locationEntityServiceTypeIds which is no longer required in the schema 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2cc6f21 commit c193c0f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/modules/bigcommerce/src/factories/helpers/__tests__/__data__/transform-product-location-data.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ export const productInventoryLocation: VariantInventory = {
44
isInStock: true,
55
aggregated: {
66
availableToSell: 31,
7+
availableOnHand: 31,
78
warningLevel: 2,
9+
unlimitedBackorder: false,
810
},
911
byLocation: {
1012
edges: [
1113
{
12-
// @ts-expect-error: error is due to required but deprecated field locationEntityServiceTypeIds
1314
node: {
1415
locationEntityId: 1,
1516
locationEntityCode: 'BC-LOCATION-1',
@@ -21,7 +22,6 @@ export const productInventoryLocation: VariantInventory = {
2122
},
2223
},
2324
{
24-
// @ts-expect-error: error is due to required but deprecated field locationEntityServiceTypeIds
2525
node: {
2626
locationEntityId: 2,
2727
locationEntityCode: 'BIGC-2',
@@ -33,7 +33,6 @@ export const productInventoryLocation: VariantInventory = {
3333
},
3434
},
3535
{
36-
// @ts-expect-error: error is due to required but deprecated field locationEntityServiceTypeIds
3736
node: {
3837
locationEntityId: 3,
3938
locationEntityCode: '',

0 commit comments

Comments
 (0)