shared-ritm 1.3.133 → 1.3.136

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.
@@ -17,6 +17,7 @@ export type Api_ControlZones_Dto = {
17
17
  export type ControlsParams = {
18
18
  search?: string;
19
19
  page?: number;
20
+ per_page?: number;
20
21
  filter?: Record<string, string[]>;
21
22
  };
22
23
  export interface ControlMeta {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.3.133",
3
+ "version": "1.3.136",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -123,7 +123,7 @@ class UserService extends ApiService {
123
123
  }
124
124
 
125
125
  public async getListVisitorLog(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>> {
126
- return await this.get(`get_list_visitor_log?per_page=${params.per_page}&page=${params.page}`)
126
+ return await this.get(`get_list_visitor_log`, { params })
127
127
  }
128
128
 
129
129
  public entryVisitorLog(body: { user_id: string; task_id: string }): Promise<Api_Visitor_Dto> {
@@ -1,112 +1,113 @@
1
- export type Api_User_Dto = {
2
- id: string
3
- full_name: string
4
- }
5
- export type Api_ControlsZone_Dto = {
6
- id: string
7
- name: string
8
- }
9
- export type Api_ControlZones_Dto = {
10
- id: string
11
- name: string
12
- inventory_number: string
13
- uuid: string
14
- controller_zone: string
15
- users?: Api_User_Dto[]
16
- }
17
- export type ControlsParams = {
18
- search?: string
19
- page?: number
20
- filter?: Record<string, string[]>
21
- }
22
-
23
- export interface ControlMeta {
24
- total: number
25
- perPage: number
26
- totalPages: number
27
- currentPage: number
28
- }
29
-
30
- export type FiltersValue = {
31
- users?: {
32
- users: Api_User_Dto[]
33
- }
34
- controller?: {
35
- controller: Api_User_Dto[]
36
- }
37
- controllers?: {
38
- controllers: Api_User_Dto[]
39
- }
40
- responsible?: {
41
- responsible: Api_User_Dto[]
42
- }
43
- controller_zones?: {
44
- controller_zones: Api_ControlsZone_Dto[]
45
- }
46
- status?: {
47
- status: boolean
48
- }
49
- }
50
- export type Api_Instrument_Dto = {
51
- id: string
52
- name: string
53
- storage_id?: string
54
- }
55
- export type Api_Warehouse_Dto = {
56
- id: string
57
- invoice_ref_key: string
58
- inventory_number: string
59
- instrument: Api_Instrument_Dto[]
60
- }
61
-
62
- export type Api_ControlLogs_Dto = {
63
- id: string
64
- automatically: string
65
- in_zone: string
66
- uuid: string
67
- controller_zone: string
68
- controller: Api_User_Dto[]
69
- user: Api_User_Dto[]
70
- frame: Api_ControlZones_Dto[]
71
- warehouse: Api_Warehouse_Dto[]
72
- description: string | null
73
- }
74
- export type Api_New_Items = {
75
- title: string
76
- inventory_numbers: string
77
- storage_id: string
78
- }
79
- export type Api_ManualEntry_Dto = {
80
- user: string
81
- items?: string[]
82
- new_items?: Api_New_Items[]
83
- }
84
-
85
- export type Api_Instrument_Type_Search = {
86
- id: string
87
- icon: string
88
- name: string
89
- storages: {
90
- id: string
91
- title: string
92
- }[]
93
- warehouse_statuses: boolean
94
- }
95
-
96
- export type Api_Instrument_Category = {
97
- id: string
98
- title: string[]
99
- }
100
-
101
- export type Api_instrument_Type_Create = {
102
- name: string
103
- storage_id: string
104
- }
105
-
106
- export type Api_instrument_Type = {
107
- id: string
108
- name: string
109
- storage_id: string
110
- created_at: string
111
- updated_at: string
112
- }
1
+ export type Api_User_Dto = {
2
+ id: string
3
+ full_name: string
4
+ }
5
+ export type Api_ControlsZone_Dto = {
6
+ id: string
7
+ name: string
8
+ }
9
+ export type Api_ControlZones_Dto = {
10
+ id: string
11
+ name: string
12
+ inventory_number: string
13
+ uuid: string
14
+ controller_zone: string
15
+ users?: Api_User_Dto[]
16
+ }
17
+ export type ControlsParams = {
18
+ search?: string
19
+ page?: number
20
+ per_page?: number
21
+ filter?: Record<string, string[]>
22
+ }
23
+
24
+ export interface ControlMeta {
25
+ total: number
26
+ perPage: number
27
+ totalPages: number
28
+ currentPage: number
29
+ }
30
+
31
+ export type FiltersValue = {
32
+ users?: {
33
+ users: Api_User_Dto[]
34
+ }
35
+ controller?: {
36
+ controller: Api_User_Dto[]
37
+ }
38
+ controllers?: {
39
+ controllers: Api_User_Dto[]
40
+ }
41
+ responsible?: {
42
+ responsible: Api_User_Dto[]
43
+ }
44
+ controller_zones?: {
45
+ controller_zones: Api_ControlsZone_Dto[]
46
+ }
47
+ status?: {
48
+ status: boolean
49
+ }
50
+ }
51
+ export type Api_Instrument_Dto = {
52
+ id: string
53
+ name: string
54
+ storage_id?: string
55
+ }
56
+ export type Api_Warehouse_Dto = {
57
+ id: string
58
+ invoice_ref_key: string
59
+ inventory_number: string
60
+ instrument: Api_Instrument_Dto[]
61
+ }
62
+
63
+ export type Api_ControlLogs_Dto = {
64
+ id: string
65
+ automatically: string
66
+ in_zone: string
67
+ uuid: string
68
+ controller_zone: string
69
+ controller: Api_User_Dto[]
70
+ user: Api_User_Dto[]
71
+ frame: Api_ControlZones_Dto[]
72
+ warehouse: Api_Warehouse_Dto[]
73
+ description: string | null
74
+ }
75
+ export type Api_New_Items = {
76
+ title: string
77
+ inventory_numbers: string
78
+ storage_id: string
79
+ }
80
+ export type Api_ManualEntry_Dto = {
81
+ user: string
82
+ items?: string[]
83
+ new_items?: Api_New_Items[]
84
+ }
85
+
86
+ export type Api_Instrument_Type_Search = {
87
+ id: string
88
+ icon: string
89
+ name: string
90
+ storages: {
91
+ id: string
92
+ title: string
93
+ }[]
94
+ warehouse_statuses: boolean
95
+ }
96
+
97
+ export type Api_Instrument_Category = {
98
+ id: string
99
+ title: string[]
100
+ }
101
+
102
+ export type Api_instrument_Type_Create = {
103
+ name: string
104
+ storage_id: string
105
+ }
106
+
107
+ export type Api_instrument_Type = {
108
+ id: string
109
+ name: string
110
+ storage_id: string
111
+ created_at: string
112
+ updated_at: string
113
+ }