@nomalism-com/types 0.22.95 → 0.22.97
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.
|
@@ -117,12 +117,6 @@ export interface IProductSheetBasicSearchResponse {
|
|
|
117
117
|
active: boolean;
|
|
118
118
|
dnt_come_anymore: boolean;
|
|
119
119
|
}
|
|
120
|
-
export interface ISimilarProductsSheetsResponse {
|
|
121
|
-
id: string;
|
|
122
|
-
reference: string;
|
|
123
|
-
designation: string;
|
|
124
|
-
thumbnail?: string | null;
|
|
125
|
-
}
|
|
126
120
|
export interface IProductSheetEntityWithStock extends Omit<Entity, "values"> {
|
|
127
121
|
unit_of_measure_quantity: UnitOfMeasure;
|
|
128
122
|
name: string | null;
|
|
@@ -139,7 +133,6 @@ export interface IProductSheetEntityWithStock extends Omit<Entity, "values"> {
|
|
|
139
133
|
maintenances: string;
|
|
140
134
|
attributes: string;
|
|
141
135
|
extended_virtual: ProductVirtuals | null;
|
|
142
|
-
similar_products: ISimilarProductsSheetsResponse[];
|
|
143
136
|
}
|
|
144
137
|
export interface IBasicSearchRequest extends IShared.IPaginationRequest {
|
|
145
138
|
search_value: string | null;
|
|
@@ -185,6 +178,14 @@ export interface IFindByReferenceRequest {
|
|
|
185
178
|
export interface IValidateByReferenceRequest extends IFindByReferenceRequest {
|
|
186
179
|
billing_country_id?: string;
|
|
187
180
|
}
|
|
181
|
+
export interface IFindSimilarProductsByNameRequest {
|
|
182
|
+
name: string;
|
|
183
|
+
}
|
|
184
|
+
export interface IFindSimilarProductsByNameResponse {
|
|
185
|
+
id: string;
|
|
186
|
+
reference: string;
|
|
187
|
+
thumbnail: string | null;
|
|
188
|
+
}
|
|
188
189
|
export interface IRepository {
|
|
189
190
|
findByReferenceOnSheets(params: IFindProductSheetByReference): Promise<IProductSheetsWithIndex>;
|
|
190
191
|
findByReferenceOnNoma(params: IFindProductSheetByReference): Promise<IProduct | null>;
|
|
@@ -193,5 +194,6 @@ export interface IRepository {
|
|
|
193
194
|
findRowPositionOnSheetsWithColumns(params: IFindProductSheetByReference): Promise<string>;
|
|
194
195
|
basicSearch(params: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
|
|
195
196
|
validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
|
|
197
|
+
findSimilarProductsByName(params: IFindSimilarProductsByNameRequest): Promise<IFindSimilarProductsByNameResponse[]>;
|
|
196
198
|
deleteOne(params: IShared.IFindByIdRequest): Promise<void>;
|
|
197
199
|
}
|