@nomalism-com/types 0.22.89 → 0.22.91
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.
|
@@ -210,7 +210,6 @@ export interface IRepository {
|
|
|
210
210
|
bulkUpdate(data: IBulkUpdateRequest): Promise<IShared.IUpdateManyResponse>;
|
|
211
211
|
create(data: ICreateRequest): Promise<string>;
|
|
212
212
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
213
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
214
213
|
duplicateProduct(selector: IShared.IFindByIdRequest, body: IDuplicateProductRequest): Promise<string>;
|
|
215
214
|
googleSheetsFieldsByRef(selector: IFindByReferenceRequest): Promise<string>;
|
|
216
215
|
updateGoogleSheetsLinesProduct(selector: IShared.IFindByIdRequest[]): Promise<void>;
|
|
@@ -154,6 +154,27 @@ export interface IBasicSearchResponse {
|
|
|
154
154
|
updated_at: Date;
|
|
155
155
|
state: IProductSheetState;
|
|
156
156
|
}
|
|
157
|
+
export interface IEntityMinified {
|
|
158
|
+
id: string;
|
|
159
|
+
id_provider: number;
|
|
160
|
+
reference: string;
|
|
161
|
+
designation: string;
|
|
162
|
+
price_sale: number;
|
|
163
|
+
price_cost: number;
|
|
164
|
+
tax: number;
|
|
165
|
+
multimedia_id: string | null;
|
|
166
|
+
integer_only: boolean;
|
|
167
|
+
}
|
|
168
|
+
export interface IFindByReferenceRequest {
|
|
169
|
+
reference: string;
|
|
170
|
+
allowProviderWildcard?: boolean;
|
|
171
|
+
id_provider?: number;
|
|
172
|
+
available?: boolean;
|
|
173
|
+
type?: IProductType;
|
|
174
|
+
}
|
|
175
|
+
export interface IValidateByReferenceRequest extends IFindByReferenceRequest {
|
|
176
|
+
billing_country_id?: string;
|
|
177
|
+
}
|
|
157
178
|
export interface IRepository {
|
|
158
179
|
findByReferenceOnSheets(params: IFindProductSheetByReference): Promise<IProductSheetsWithIndex>;
|
|
159
180
|
findByReferenceOnNoma(params: IFindProductSheetByReference): Promise<IProduct | null>;
|
|
@@ -161,5 +182,6 @@ export interface IRepository {
|
|
|
161
182
|
createOrUpdateByReferenceSheetsAndNoma(params: IFindProductSheetByReference, body: IProduct): Promise<IProductsForSheetsResponse>;
|
|
162
183
|
findRowPositionOnSheetsWithColumns(params: IFindProductSheetByReference): Promise<string>;
|
|
163
184
|
basicSearch(params: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
|
|
185
|
+
validateByRef(selector: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
|
|
164
186
|
deleteOne(params: IShared.IFindByIdRequest): Promise<void>;
|
|
165
187
|
}
|