@nomalism-com/types 0.22.119 → 0.22.120
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.
|
@@ -240,10 +240,18 @@ export type IFindForMobileRequest = {
|
|
|
240
240
|
reference?: never;
|
|
241
241
|
id: string;
|
|
242
242
|
};
|
|
243
|
-
export
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
export type AuthMode = "NONE" | "LIMITED" | "FULL";
|
|
244
|
+
export type ChangeType = "INSERT_ROW" | "REMOVE_ROW" | "UPDATE_ROW" | "INSERT_COLUMN" | "REMOVE_COLUMN" | "UPDATE_COLUMN" | "FORMAT" | "OTHER";
|
|
245
|
+
export type ProductSheetActionData = {
|
|
246
|
+
authMode: AuthMode;
|
|
247
|
+
changeType: ChangeType;
|
|
248
|
+
source: Record<string, any>;
|
|
249
|
+
triggerUid: string;
|
|
250
|
+
user: {
|
|
251
|
+
email: string;
|
|
252
|
+
nickname: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
247
255
|
export interface IRepository {
|
|
248
256
|
findForMobile(params: IFindForMobileRequest): Promise<IFindForMobileResponse | null>;
|
|
249
257
|
findByReferenceOnSheets(params: IFindProductSheetByReference): Promise<IProductSheetsWithIndex>;
|
|
@@ -258,5 +266,5 @@ export interface IRepository {
|
|
|
258
266
|
checkStockByIds(data: ICheckStockByIdsRequest): Promise<ICheckStockByIdsResponse[]>;
|
|
259
267
|
create(data: ICreateRequest): Promise<string>;
|
|
260
268
|
deleteOne(params: IShared.IFindByIdRequest): Promise<void>;
|
|
261
|
-
formSheets(data:
|
|
269
|
+
formSheets(data: ProductSheetActionData): Promise<void>;
|
|
262
270
|
}
|