@nomalism-com/types 0.22.118 → 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,6 +240,18 @@ export type IFindForMobileRequest = {
240
240
  reference?: never;
241
241
  id: string;
242
242
  };
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
+ };
243
255
  export interface IRepository {
244
256
  findForMobile(params: IFindForMobileRequest): Promise<IFindForMobileResponse | null>;
245
257
  findByReferenceOnSheets(params: IFindProductSheetByReference): Promise<IProductSheetsWithIndex>;
@@ -254,4 +266,5 @@ export interface IRepository {
254
266
  checkStockByIds(data: ICheckStockByIdsRequest): Promise<ICheckStockByIdsResponse[]>;
255
267
  create(data: ICreateRequest): Promise<string>;
256
268
  deleteOne(params: IShared.IFindByIdRequest): Promise<void>;
269
+ formSheets(data: ProductSheetActionData): Promise<void>;
257
270
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.22.118",
12
+ "version": "0.22.120",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [