@nomalism-com/types 0.22.65 → 0.22.66
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ProductImage, UnitOfMeasure, VatTax, VatTaxZone } from "../../../shared/entities";
|
|
1
|
+
import { Cabide, CabideProduct, ProductImage, ProductVirtuals, TypeOfInventory, UnitOfMeasure, VatTax, VatTaxZone } from "../../../shared/entities";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
import { IProductPromotionVirtuals, IProductVirtuals } from "../product/interface";
|
|
4
4
|
import { ProductSheet } from "../../../shared/entities";
|
|
5
|
+
import { IProductBase } from "modules/supply/cabideProduct/interface";
|
|
5
6
|
export declare const Route = "products_sheets";
|
|
6
7
|
export declare const UpperName = "ProductsSheets";
|
|
7
8
|
export declare const LowerName: string;
|
|
@@ -84,6 +85,23 @@ export interface IProductSheetBasicSearchResponse {
|
|
|
84
85
|
active: boolean;
|
|
85
86
|
dnt_come_anymore: boolean;
|
|
86
87
|
}
|
|
88
|
+
export interface IProductSheetEntityWithStock extends Entity {
|
|
89
|
+
unit_of_measure_quantity: UnitOfMeasure;
|
|
90
|
+
unit_of_measure_weight: UnitOfMeasure;
|
|
91
|
+
name: string | null;
|
|
92
|
+
attributes: string;
|
|
93
|
+
type_of_inventory: TypeOfInventory;
|
|
94
|
+
vat_tax: VatTax & {
|
|
95
|
+
vat_tax_zones: VatTaxZone[];
|
|
96
|
+
};
|
|
97
|
+
promotions: IProductPromotionVirtuals[];
|
|
98
|
+
product_images: ProductImage[];
|
|
99
|
+
data: IProductBase;
|
|
100
|
+
cabide_product: (CabideProduct & {
|
|
101
|
+
cabide: Cabide;
|
|
102
|
+
}) | null;
|
|
103
|
+
extended_virtual: ProductVirtuals | null;
|
|
104
|
+
}
|
|
87
105
|
export interface IRepository {
|
|
88
106
|
findByReferenceOnSheets(params: IFindProductSheetByReference): Promise<IProductSheetsWithIndex>;
|
|
89
107
|
findByReferenceOnNoma(params: IFindProductSheetByReference): Promise<IProduct | null>;
|
|
@@ -1214,29 +1214,38 @@ export type SavedProviderProposal = {
|
|
|
1214
1214
|
updated_by: string;
|
|
1215
1215
|
};
|
|
1216
1216
|
export type ProductSheet = {
|
|
1217
|
-
id: string;
|
|
1218
|
-
reference:
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1217
|
+
id: string | null;
|
|
1218
|
+
reference: number | null;
|
|
1219
|
+
id_provider: number | null;
|
|
1220
|
+
provider_ref: string | null;
|
|
1221
|
+
name_id: string | null;
|
|
1222
|
+
designation: string | null;
|
|
1223
|
+
designation_saft: string | null;
|
|
1224
|
+
barcode: string | null;
|
|
1225
|
+
online: boolean | null;
|
|
1226
|
+
dnt_come_anymore: boolean | null;
|
|
1227
|
+
comes_temporarily: boolean | null;
|
|
1228
|
+
no_discount: boolean | null;
|
|
1229
|
+
type: IProductType | null;
|
|
1229
1230
|
weight: number | null;
|
|
1230
1231
|
width: number | null;
|
|
1231
1232
|
height: number | null;
|
|
1232
1233
|
length: number | null;
|
|
1233
1234
|
diameter: number | null;
|
|
1234
|
-
no_discount: boolean;
|
|
1235
|
-
provider_ref: string | null;
|
|
1236
1235
|
margin: number | null;
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1236
|
+
cabide_product_color: string | null;
|
|
1237
|
+
unit_of_measure_weight_id: string | null;
|
|
1238
|
+
unit_of_measure_quantity_id: string | null;
|
|
1239
|
+
type_of_inventory_id: string | null;
|
|
1240
|
+
product_sub_category_id: string | null;
|
|
1241
|
+
vat_tax_id: string | null;
|
|
1242
|
+
cabide_product_id: string | null;
|
|
1243
|
+
origin_cabide_product_id: string | null;
|
|
1244
|
+
imported_from_sheets: boolean | null;
|
|
1245
|
+
external_id: string | null;
|
|
1246
|
+
origin_id: string | null;
|
|
1247
|
+
created_at: Date | null;
|
|
1248
|
+
updated_at: Date | null;
|
|
1249
|
+
created_by: string | null;
|
|
1250
|
+
updated_by: string | null;
|
|
1242
1251
|
};
|