@nomalism-com/types 0.22.94 → 0.22.96
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.
|
@@ -178,6 +178,14 @@ export interface IFindByReferenceRequest {
|
|
|
178
178
|
export interface IValidateByReferenceRequest extends IFindByReferenceRequest {
|
|
179
179
|
billing_country_id?: string;
|
|
180
180
|
}
|
|
181
|
+
export interface IFindSimilarProductsByOwnerIdRequest {
|
|
182
|
+
name: string;
|
|
183
|
+
}
|
|
184
|
+
export interface IFindSimilarProductsByOwnerIdResponse {
|
|
185
|
+
id: string;
|
|
186
|
+
reference: string;
|
|
187
|
+
thumbnail: string | null;
|
|
188
|
+
}
|
|
181
189
|
export interface IRepository {
|
|
182
190
|
findByReferenceOnSheets(params: IFindProductSheetByReference): Promise<IProductSheetsWithIndex>;
|
|
183
191
|
findByReferenceOnNoma(params: IFindProductSheetByReference): Promise<IProduct | null>;
|
|
@@ -186,5 +194,6 @@ export interface IRepository {
|
|
|
186
194
|
findRowPositionOnSheetsWithColumns(params: IFindProductSheetByReference): Promise<string>;
|
|
187
195
|
basicSearch(params: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
|
|
188
196
|
validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
|
|
197
|
+
findSimilarProductsByOwnerId(params: IFindSimilarProductsByOwnerIdRequest): Promise<IFindSimilarProductsByOwnerIdResponse[]>;
|
|
189
198
|
deleteOne(params: IShared.IFindByIdRequest): Promise<void>;
|
|
190
199
|
}
|