@nomalism-com/types 0.24.8 → 0.24.10
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 {
|
|
@@ -201,8 +201,7 @@ export interface IProductFromSheets extends Record<string, string | number | und
|
|
|
201
201
|
export type AuthMode = "NONE" | "LIMITED" | "FULL";
|
|
202
202
|
export type ChangeType = "INSERT_ROW" | "REMOVE_ROW" | "UPDATE_ROW" | "RESTORE_ROW";
|
|
203
203
|
export type ProductSheetActionData = {
|
|
204
|
-
|
|
205
|
-
reference: string;
|
|
204
|
+
metadata: string;
|
|
206
205
|
authMode: AuthMode;
|
|
207
206
|
changeType: ChangeType;
|
|
208
207
|
source: {
|
|
@@ -226,6 +225,7 @@ export interface IRepository {
|
|
|
226
225
|
validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
|
|
227
226
|
findSimilarProductsByName(params: IFindSimilarProductsByNameRequest): Promise<IFindSimilarProductsByNameResponse[]>;
|
|
228
227
|
findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
|
|
228
|
+
findById(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntity>;
|
|
229
229
|
findByIdWithStock(selector: IShared.IFindByIdRequest): Promise<IProductSheetEntityWithStock>;
|
|
230
230
|
googleSheetsFieldsByRef(selector: IFindByReferenceRequest): Promise<string>;
|
|
231
231
|
findRowPositionOnSheetsWithColumns(params: IFindProductSheetByReference): Promise<string | null>;
|
|
@@ -236,3 +236,4 @@ export interface IRepository {
|
|
|
236
236
|
fromSheets(data: ProductSheetActionData): Promise<string>;
|
|
237
237
|
}
|
|
238
238
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
239
|
+
export {};
|