@tagsamurai/fats-api-services 1.0.0-alpha.203 → 1.0.0-alpha.205

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.0-alpha.203",
3
+ "version": "1.0.0-alpha.205",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -7,7 +7,7 @@ export interface DeleteRequestPreListDto {
7
7
  }
8
8
  export interface EnterprisePostTransactionDto {
9
9
  asset?: string;
10
- user?: string;
10
+ assignedTo?: string;
11
11
  }
12
12
  export interface EnterprisePutTransactionDto {
13
13
  asset?: string;
@@ -18,21 +18,21 @@ export interface BasicTransactionDto {
18
18
  notes?: string;
19
19
  asset?: string;
20
20
  _id?: string;
21
- user?: string;
21
+ assignedTo?: string;
22
22
  }[];
23
23
  }
24
24
  export interface AssignPreListDto {
25
25
  id: string[];
26
- user: string;
26
+ assignedTo: string;
27
27
  type: string;
28
28
  }
29
29
  export interface UnassignPreListByAssetDto {
30
30
  id: (string | undefined)[];
31
- user?: string;
31
+ assignedTo?: string;
32
32
  type: string;
33
33
  }
34
34
  export interface UnassignPreListByUserDto {
35
- user?: string;
35
+ assignedTo?: string;
36
36
  group?: string;
37
37
  }
38
38
  export interface UnassignRequestDto {
@@ -55,7 +55,7 @@ export interface ApproveAssignmentApprovalDto {
55
55
  }
56
56
  export type ApprovalFilterQuery = {
57
57
  group?: string;
58
- user?: string;
58
+ assignedTo?: string;
59
59
  manager?: string;
60
60
  updatedAt?: string;
61
61
  lastUpdate?: string;
@@ -3,7 +3,7 @@ import { Option } from './options.type';
3
3
  import { SimpleUserType } from './user.type';
4
4
  export type AssignedType = 'By User' | 'By Asset';
5
5
  export type AssignedByUser = {
6
- user: SimpleUserType;
6
+ assignedTo: SimpleUserType;
7
7
  group: {
8
8
  _id: string;
9
9
  name: string;
@@ -20,7 +20,7 @@ export type AssignedFilter = {
20
20
  group?: number[];
21
21
  brand?: number[];
22
22
  model?: number[];
23
- user?: number[];
23
+ assignedTo?: number[];
24
24
  manager?: number[];
25
25
  lastUpdate?: number[];
26
26
  _id?: string;
@@ -34,7 +34,7 @@ export type AssignedOptionFilter = {
34
34
  nameOptions?: Option[];
35
35
  statusOptions?: Option[];
36
36
  managerOptions?: Option[];
37
- userOptions?: Option[];
37
+ assignedToOptions?: Option[];
38
38
  };
39
39
  export type AssignedOptionBoolean = {
40
40
  brandOptions?: boolean;
@@ -42,11 +42,11 @@ export type AssignedOptionBoolean = {
42
42
  nameOptions?: boolean;
43
43
  statusOptions?: boolean;
44
44
  managerOptions?: boolean;
45
- userOptions?: boolean;
45
+ assignedToOptions?: boolean;
46
46
  _id?: string;
47
47
  asset?: string;
48
48
  excludeId?: string;
49
- user?: string;
49
+ assignedTo?: string;
50
50
  group?: string;
51
51
  };
52
52
  export type AssignedAssetFilter = {
@@ -17,18 +17,18 @@ export type PreListDataType = {
17
17
  isManager: boolean;
18
18
  };
19
19
  export type PreListParams = {
20
- user?: number[];
20
+ assignedTo?: number[];
21
21
  group?: number[];
22
22
  tag?: string;
23
23
  type?: string;
24
24
  };
25
25
  export type PreListFilterParams = Partial<Record<keyof PreListParams, string>>;
26
26
  export type PreListOptionFilter = {
27
- userOptions?: Option[];
27
+ assignedToOptions?: Option[];
28
28
  };
29
29
  export type PreListOptionBoolean = {
30
30
  type?: 'Assign' | 'Unassign';
31
- userOptions?: boolean;
31
+ assignedToOptions?: boolean;
32
32
  };
33
33
  export type RequestDataType = {
34
34
  _id: string;
@@ -120,7 +120,7 @@ export type RequestParams = {
120
120
  mappedBrand?: string[];
121
121
  mappedModel?: string[];
122
122
  mappedGroup?: string[];
123
- user?: string[];
123
+ assignedTo?: string[];
124
124
  group?: string[];
125
125
  tag?: string[];
126
126
  tagType?: string[];
@@ -171,7 +171,6 @@ export type TransactionDataType = {
171
171
  name: string;
172
172
  key: number;
173
173
  };
174
- user?: SimpleUserType;
175
174
  assignedTo?: SimpleUserType;
176
175
  manager: {
177
176
  _id: string;
@@ -186,7 +185,7 @@ export type TransactionParams = {
186
185
  id?: string[];
187
186
  asset?: string[];
188
187
  manager?: number[];
189
- user?: number[];
188
+ assignedTo?: number[];
190
189
  group?: number[];
191
190
  requestDate?: number[];
192
191
  lastUpdate?: number[];
@@ -195,12 +194,12 @@ export type TransactionFilterParams = Partial<Record<keyof TransactionParams, st
195
194
  export type TransactionOptionFilter = {
196
195
  managerOptions?: Option[];
197
196
  statusOptions?: Option[];
198
- userOptions?: Option[];
197
+ assignedToOptions?: Option[];
199
198
  };
200
199
  export type TransactionOptionBoolean = {
201
200
  managerOptions?: boolean;
202
201
  statusOptions?: boolean;
203
- userOptions?: boolean;
202
+ assignedToOptions?: boolean;
204
203
  status?: string;
205
204
  id?: string;
206
205
  asset?: string;
@@ -224,11 +223,11 @@ export type TimeLineLogs = {
224
223
  damageImageMedium?: string;
225
224
  damageImageSmall?: string;
226
225
  from?: {
227
- user?: SimpleUserType;
226
+ assignedTo?: SimpleUserType;
228
227
  notes?: string;
229
228
  };
230
229
  to?: {
231
- user?: SimpleUserType;
230
+ assignedTo?: SimpleUserType;
232
231
  notes?: string;
233
232
  };
234
233
  };
@@ -278,7 +277,7 @@ export type HistoryParams = {
278
277
  name?: number[];
279
278
  status?: string[];
280
279
  group?: number[];
281
- user?: number[];
280
+ assignedTo?: number[];
282
281
  manager?: number[];
283
282
  lastUpdate?: number[];
284
283
  };
@@ -289,7 +288,7 @@ export type HistoryOptionFilter = {
289
288
  modelOptions?: Option[];
290
289
  statusOptions?: Option[];
291
290
  groupOptions?: Option[];
292
- userOptions?: Option[];
291
+ assignedToOptions?: Option[];
293
292
  managerOptions?: Option[];
294
293
  };
295
294
  export type HistoryOptionBoolean = {
@@ -298,7 +297,7 @@ export type HistoryOptionBoolean = {
298
297
  modelOptions?: boolean;
299
298
  statusOptions?: boolean;
300
299
  groupOptions?: boolean;
301
- userOptions?: boolean;
300
+ assignedToOptions?: boolean;
302
301
  managerOptions?: boolean;
303
302
  };
304
303
  export interface AssignmentsTaskQueryParams {