@nomalism-com/types 0.10.25 → 0.10.26
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.
|
@@ -35,6 +35,14 @@ export interface IEntityExtended extends IFindDetailedResponse {
|
|
|
35
35
|
cabide: Cabide;
|
|
36
36
|
}) | null;
|
|
37
37
|
}
|
|
38
|
+
export interface IEntityMinified {
|
|
39
|
+
id: string;
|
|
40
|
+
price_sale: number;
|
|
41
|
+
price_cost: number;
|
|
42
|
+
tax: number;
|
|
43
|
+
multimedia_id: string;
|
|
44
|
+
integer_only: boolean;
|
|
45
|
+
}
|
|
38
46
|
export type IFindByIdResponse = Omit<IEntityExtended, ''>;
|
|
39
47
|
export type IFindRequest = Record<string, unknown>;
|
|
40
48
|
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
@@ -206,6 +214,7 @@ export interface IRepository {
|
|
|
206
214
|
findByPlot(selector: IShared.IFindByIdRequest): Promise<IEntityExtended | null>;
|
|
207
215
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
208
216
|
findByRef(selector: IFindByReferenceRequest): Promise<IEntityExtended | null>;
|
|
217
|
+
validateByRef(selector: IFindByReferenceRequest): Promise<IEntityMinified | null>;
|
|
209
218
|
findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
|
|
210
219
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
211
220
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|