@erp-galoper/types 1.0.823 → 1.0.824
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/openapi.ts +34 -20
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -20918,11 +20918,6 @@ export interface components {
|
|
|
20918
20918
|
/** Name */
|
|
20919
20919
|
name: string;
|
|
20920
20920
|
};
|
|
20921
|
-
/**
|
|
20922
|
-
* CommissionCalculation
|
|
20923
|
-
* @enum {string}
|
|
20924
|
-
*/
|
|
20925
|
-
CommissionCalculation: "billed" | "received";
|
|
20926
20921
|
/** CommonBrandSchema */
|
|
20927
20922
|
CommonBrandSchema: {
|
|
20928
20923
|
/** Id */
|
|
@@ -20975,6 +20970,11 @@ export interface components {
|
|
|
20975
20970
|
/** Value */
|
|
20976
20971
|
value: string;
|
|
20977
20972
|
};
|
|
20973
|
+
/**
|
|
20974
|
+
* ItemCommissionCalculation
|
|
20975
|
+
* @enum {string}
|
|
20976
|
+
*/
|
|
20977
|
+
ItemCommissionCalculation: "netSale" | "profitMargin";
|
|
20978
20978
|
/** ItemListSchema */
|
|
20979
20979
|
ItemListSchema: {
|
|
20980
20980
|
info: components["schemas"]["PageInfoSchema"];
|
|
@@ -21216,7 +21216,7 @@ export interface components {
|
|
|
21216
21216
|
/** Quantity */
|
|
21217
21217
|
quantity?: components["schemas"]["ItemsWarehouseQuantitySchema"][] | null;
|
|
21218
21218
|
costStrategy: components["schemas"]["GetCostStrategy"] | null;
|
|
21219
|
-
commissionCalculation: components["schemas"]["
|
|
21219
|
+
commissionCalculation: components["schemas"]["ItemCommissionCalculation"] | null;
|
|
21220
21220
|
inventoryMovementMethod?: components["schemas"]["INVENTORY_MOVEMENT_METHOD"] | null;
|
|
21221
21221
|
};
|
|
21222
21222
|
/**
|
|
@@ -21401,7 +21401,7 @@ export interface components {
|
|
|
21401
21401
|
/** Quantity */
|
|
21402
21402
|
quantity?: components["schemas"]["ItemsWarehouseQuantitySchema"][] | null;
|
|
21403
21403
|
costStrategy: components["schemas"]["GetCostStrategy"] | null;
|
|
21404
|
-
commissionCalculation: components["schemas"]["
|
|
21404
|
+
commissionCalculation: components["schemas"]["ItemCommissionCalculation"] | null;
|
|
21405
21405
|
inventoryMovementMethod?: components["schemas"]["INVENTORY_MOVEMENT_METHOD"] | null;
|
|
21406
21406
|
/**
|
|
21407
21407
|
* Children
|
|
@@ -21702,14 +21702,11 @@ export interface components {
|
|
|
21702
21702
|
description?: string | null;
|
|
21703
21703
|
/** Skucode */
|
|
21704
21704
|
skuCode?: string | null;
|
|
21705
|
-
/**
|
|
21706
|
-
* Barcodetype
|
|
21707
|
-
* @description
|
|
21705
|
+
/** @description
|
|
21708
21706
|
* get default barcode type from inventory settings(/api/v1/settings/inventory/) if field value exist
|
|
21709
21707
|
* - required when barcode is provided
|
|
21710
|
-
*
|
|
21711
|
-
|
|
21712
|
-
barcodeType?: string | null;
|
|
21708
|
+
* */
|
|
21709
|
+
barcodeType?: components["schemas"]["BarcodeTypeValues"] | null;
|
|
21713
21710
|
/** Barcode */
|
|
21714
21711
|
barcode?: string | null;
|
|
21715
21712
|
type: components["schemas"]["ItemType"];
|
|
@@ -21882,7 +21879,14 @@ export interface components {
|
|
|
21882
21879
|
* - visible when hasExpiryDate is true
|
|
21883
21880
|
*/
|
|
21884
21881
|
alertDate?: number | null;
|
|
21885
|
-
|
|
21882
|
+
/** @description
|
|
21883
|
+
* Hint: description for each option should be visible to users in the UI
|
|
21884
|
+
* - Net Sales: Commission is calculated on the item price after discount, excluding tax and cost.
|
|
21885
|
+
* - Formula (per item): (Price - Discount) × Commission Rate
|
|
21886
|
+
* - Profit Margin: Commission is calculated on the profit of each item, after deducting both the discount and the cost of goods sold (COGS).
|
|
21887
|
+
* - Formula (per item): (Price - Discount - Cost) × Commission Rate
|
|
21888
|
+
* */
|
|
21889
|
+
commissionCalculation?: components["schemas"]["ItemCommissionCalculation"];
|
|
21886
21890
|
/**
|
|
21887
21891
|
* Packages
|
|
21888
21892
|
* @description package and unit of measure should be unique
|
|
@@ -21966,11 +21970,8 @@ export interface components {
|
|
|
21966
21970
|
description?: string | null;
|
|
21967
21971
|
/** Skucode */
|
|
21968
21972
|
skuCode?: string | null;
|
|
21969
|
-
/**
|
|
21970
|
-
|
|
21971
|
-
* @description get default barcode type from inventory settings(/api/v1/settings/inventory/) if field value exist
|
|
21972
|
-
*/
|
|
21973
|
-
barcodeType?: string | null;
|
|
21973
|
+
/** @description get default barcode type from inventory settings(/api/v1/settings/inventory/) if field value exist */
|
|
21974
|
+
barcodeType?: components["schemas"]["BarcodeTypeValues"] | null;
|
|
21974
21975
|
/** Barcode */
|
|
21975
21976
|
barcode?: string | null;
|
|
21976
21977
|
type?: components["schemas"]["ItemType"] | null;
|
|
@@ -22096,6 +22097,7 @@ export interface components {
|
|
|
22096
22097
|
* @default false
|
|
22097
22098
|
*/
|
|
22098
22099
|
isInventoryTracked: boolean | null;
|
|
22100
|
+
/** @description if track inventory by was true and variants exist and user change it to be false you should delete the variants but notimmediately you should ask him for confirmation */
|
|
22099
22101
|
trackInventoryBy?: components["schemas"]["TrackInventoryBy"] | null;
|
|
22100
22102
|
/**
|
|
22101
22103
|
* Hasexpirydate
|
|
@@ -22150,7 +22152,14 @@ export interface components {
|
|
|
22150
22152
|
*/
|
|
22151
22153
|
children: components["schemas"]["UpdateChildrenItemSchema"] | null;
|
|
22152
22154
|
costStrategy?: components["schemas"]["CostStrategy"] | null;
|
|
22153
|
-
|
|
22155
|
+
/** @description
|
|
22156
|
+
* Hint: description for each option should be visible to users in the UI
|
|
22157
|
+
* - Net Sales: Commission is calculated on the item price after discount, excluding tax and cost.
|
|
22158
|
+
* - Formula (per item): (Price - Discount) × Commission Rate
|
|
22159
|
+
* - Profit Margin: Commission is calculated on the profit of each item, after deducting both the discount and the cost of goods sold (COGS).
|
|
22160
|
+
* - Formula (per item): (Price - Discount - Cost) × Commission Rate
|
|
22161
|
+
* */
|
|
22162
|
+
commissionCalculation?: components["schemas"]["ItemCommissionCalculation"];
|
|
22154
22163
|
};
|
|
22155
22164
|
/** UpdateChildrenItemSchema */
|
|
22156
22165
|
UpdateChildrenItemSchema: {
|
|
@@ -38596,6 +38605,11 @@ export interface components {
|
|
|
38596
38605
|
*/
|
|
38597
38606
|
password: string | null;
|
|
38598
38607
|
};
|
|
38608
|
+
/**
|
|
38609
|
+
* CommissionCalculation
|
|
38610
|
+
* @enum {string}
|
|
38611
|
+
*/
|
|
38612
|
+
CommissionCalculation: "billed" | "received";
|
|
38599
38613
|
/** CommissionDetailWithLevelsSchema */
|
|
38600
38614
|
CommissionDetailWithLevelsSchema: {
|
|
38601
38615
|
/**
|