shared-ritm 1.3.136 → 1.3.137

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.
@@ -71,10 +71,11 @@ declare class UserService extends ApiService {
71
71
  getListVisitorLog(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>>;
72
72
  entryVisitorLog(body: {
73
73
  user_id: string;
74
- task_id: string;
74
+ task_id?: string;
75
75
  }): Promise<Api_Visitor_Dto>;
76
76
  exitVisitorLog(id: string): Promise<Api_Visitor_Dto>;
77
- deleteVisitorLog(): Promise<any>;
77
+ deleteVisitorLog(listId?: string[]): Promise<any>;
78
+ getListVisitorHistories(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>>;
78
79
  findUserByVideo(data: any): Promise<any>;
79
80
  }
80
81
  export default function useUserService(): UserService;
@@ -45,6 +45,7 @@ export type FiltersValue = {
45
45
  status?: {
46
46
  status: boolean;
47
47
  };
48
+ divisions?: string[];
48
49
  };
49
50
  export type Api_Instrument_Dto = {
50
51
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.3.136",
3
+ "version": "1.3.137",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -126,16 +126,18 @@ class UserService extends ApiService {
126
126
  return await this.get(`get_list_visitor_log`, { params })
127
127
  }
128
128
 
129
- public entryVisitorLog(body: { user_id: string; task_id: string }): Promise<Api_Visitor_Dto> {
129
+ public entryVisitorLog(body: { user_id: string; task_id?: string }): Promise<Api_Visitor_Dto> {
130
130
  return this.post('entry_visitor_log', body)
131
131
  }
132
132
  public async exitVisitorLog(id: string): Promise<Api_Visitor_Dto> {
133
133
  return await this.post(`exit_visitor_log/${id}`, {})
134
134
  }
135
- public async deleteVisitorLog(): Promise<any> {
136
- return await this.post(`delete_not_in_zone_visitor_log`, {})
135
+ public async deleteVisitorLog(listId: string[] = []): Promise<any> {
136
+ return await this.post(`delete_not_in_zone_visitor_log`, { visitor_log_list_id: listId })
137
+ }
138
+ public async getListVisitorHistories(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>> {
139
+ return await this.get(`get_list_visitor_log_histories`, { params })
137
140
  }
138
-
139
141
  public findUserByVideo(data: any): Promise<any> {
140
142
  return this.post<any, Api_Auth_Login>(`/user/recognition`, data, {
141
143
  transformRequest: d => d,
@@ -47,6 +47,7 @@ export type FiltersValue = {
47
47
  status?: {
48
48
  status: boolean
49
49
  }
50
+ divisions?: string[]
50
51
  }
51
52
  export type Api_Instrument_Dto = {
52
53
  id: string