@nomalism-com/types 0.24.7 → 0.24.9
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.
|
@@ -64,10 +64,8 @@ export interface ICreateRequest {
|
|
|
64
64
|
export interface IFindProductSheetByReference {
|
|
65
65
|
selector: string;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
interface IProductSheetEntityBase extends Omit<Entity, "values"> {
|
|
68
68
|
unit_of_measure_quantity: UnitOfMeasure;
|
|
69
|
-
name: string | null;
|
|
70
|
-
type_of_inventory: string;
|
|
71
69
|
vat_tax: VatTax & {
|
|
72
70
|
vat_tax_zones: VatTaxZone[];
|
|
73
71
|
};
|
|
@@ -76,9 +74,11 @@ export interface IProductSheetEntityWithStock extends Omit<Entity, "values"> {
|
|
|
76
74
|
cabide_product: (CabideProduct & {
|
|
77
75
|
cabide: Cabide;
|
|
78
76
|
}) | null;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
}
|
|
78
|
+
export interface IProductSheetEntity extends IProductSheetEntityBase {
|
|
79
|
+
base_virtual: ProductBaseVirtuals | null;
|
|
80
|
+
}
|
|
81
|
+
export interface IProductSheetEntityWithStock extends IProductSheetEntityBase {
|
|
82
82
|
extended_virtual: ProductVirtuals | null;
|
|
83
83
|
}
|
|
84
84
|
export interface IBasicSearchRequest extends IShared.IPaginationRequest {
|
|
@@ -226,12 +226,15 @@ export interface IRepository {
|
|
|
226
226
|
validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
|
|
227
227
|
findSimilarProductsByName(params: IFindSimilarProductsByNameRequest): Promise<IFindSimilarProductsByNameResponse[]>;
|
|
228
228
|
findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
|
|
229
|
+
findById(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntity>;
|
|
229
230
|
findByIdWithStock(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntityWithStock>;
|
|
230
231
|
googleSheetsFieldsByRef(selector: IFindByReferenceRequest): Promise<string>;
|
|
231
232
|
findRowPositionOnSheetsWithColumns(params: IFindProductSheetByReference): Promise<string | null>;
|
|
232
233
|
checkStockByIds(data: ICheckStockByIdsRequest): Promise<ICheckStockByIdsResponse[]>;
|
|
233
234
|
create(data: ICreateRequest): Promise<string>;
|
|
234
|
-
|
|
235
|
+
updateGoogleSheetsLinesProduct(data: IShared.IFindByIdRequest[]): Promise<void>;
|
|
235
236
|
deleteOne(params: IShared.IFindByIdRequest): Promise<void>;
|
|
237
|
+
fromSheets(data: ProductSheetActionData): Promise<string>;
|
|
236
238
|
}
|
|
237
239
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
240
|
+
export {};
|