refactor: remove usage of inventory_quantity from the codebase (#7323)

This commit is contained in:
Harminder Virk authored and GitHub committed 2024-05-14 13:01:49 +02:00
1 parent 9ca302d33f
commit a502222582
18 files changed
+159 -118

No files matched your search

-12
View File
@@ -188,10 +188,6 @@ export interface ProductVariantDTO {
* The UPC of the product variant.
*/
upc?: string | null
/**
* The inventory quantiy of the product variant.
*/
inventory_quantity: number
/**
* Whether the product variant can be ordered when it's out of stock.
*/
@@ -1209,10 +1205,6 @@ export interface CreateProductVariantDTO {
* Whether the product variant can be ordered when it's out of stock.
*/
allow_backorder?: boolean
/**
* The inventory quantiy of the product variant.
*/
inventory_quantity?: number
/**
* Whether the product variant's inventory should be managed by the core system.
*/
@@ -1310,10 +1302,6 @@ export interface UpdateProductVariantDTO {
* Whether the product variant can be ordered when it's out of stock.
*/
allow_backorder?: boolean
/**
* The inventory quantiy of the product variant.
*/
inventory_quantity?: number
/**
* Whether the product variant's inventory should be managed by the core system.
*/
@@ -11,7 +11,6 @@ export interface CreateProductVariantsInputDTO {
upc?: string
barcode?: string
hs_code?: string
inventory_quantity?: number
allow_backorder?: boolean
manage_inventory?: boolean
weight?: number
@@ -44,7 +44,6 @@ export interface CreateProductVariantInputDTO {
upc?: string
barcode?: string
hs_code?: string
inventory_quantity?: number
allow_backorder?: boolean
manage_inventory?: boolean
weight?: number
@@ -20,7 +20,6 @@ export interface UpdateProductVariantsInputDTO {
upc?: string
barcode?: string
hs_code?: string
inventory_quantity?: number
allow_backorder?: boolean
manage_inventory?: boolean
weight?: number
@@ -40,7 +40,6 @@ export interface UpdateProductVariantInputDTO {
upc?: string
barcode?: string
hs_code?: string
inventory_quantity?: number
allow_backorder?: boolean
manage_inventory?: boolean
weight?: number
@@ -79,7 +79,6 @@ const remoteQueryObject = {
"ean",
"upc",
"variant_rank",
"inventory_quantity",
"allow_backorder",
"manage_inventory",
"hs_code",
@@ -188,7 +187,6 @@ describe("remoteQueryObjectToString", function () {
"variants.ean",
"variants.upc",
"variants.variant_rank",
"variants.inventory_quantity",
"variants.allow_backorder",
"variants.manage_inventory",
"variants.hs_code",