@tagsamurai/fats-api-services 1.0.3-alpha.12 → 1.0.3-alpha.13

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.3-alpha.12",
3
+ "version": "1.0.3-alpha.13",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -84,14 +84,8 @@ export interface AssetFormDto {
84
84
  quantity?: number;
85
85
  group?: number;
86
86
  category?: number;
87
- firstImage?: File;
88
- firstImageBig?: string;
89
- firstImageMedium?: string;
90
- firstImageSmall?: string;
91
- secondImage?: File;
92
- secondImageBig?: string;
93
- secondImageMedium?: string;
94
- secondImageSmall?: string;
87
+ firstImage?: File | string;
88
+ secondImage?: File | string;
95
89
  setDefault?: string | number;
96
90
  customFields: AssetCustomFieldType[];
97
91
  dataAttribute?: AssetTableDto[];
@@ -103,14 +97,8 @@ export interface AssetBasicFormDto {
103
97
  measurement: string;
104
98
  usefulLife?: number;
105
99
  category?: string | number;
106
- firstImage?: File;
107
- firstImageBig?: string;
108
- firstImageMedium?: string;
109
- firstImageSmall?: string;
110
- secondImage?: File;
111
- secondImageBig?: string;
112
- secondImageMedium?: string;
113
- secondImageSmall?: string;
100
+ firstImage?: File | string;
101
+ secondImage?: File | string;
114
102
  setDefault?: string | number;
115
103
  customFields: AssetCustomFieldType[];
116
104
  }
@@ -89,9 +89,7 @@ export type ApprovalListItem = {
89
89
  reportedBy: ReportedBy;
90
90
  status: string;
91
91
  updatedAt: string;
92
- assetImageSmall: string | null;
93
- assetImageMedium: string | null;
94
- assetImageBig: string | null;
92
+ assetImage: string | null;
95
93
  isApproved: boolean;
96
94
  notes: string;
97
95
  };
@@ -97,9 +97,7 @@ export type TransferDetailAsset = {
97
97
  status: TransactionStatus;
98
98
  assetTagType: string;
99
99
  assetTagStatus: TagStatus;
100
- assetImageSmall: string;
101
- assetImageBig: string;
102
- assetImageMedium: string;
100
+ assetImage: string;
103
101
  tagStatus: TagStatus;
104
102
  assetStatus: AssetStatus;
105
103
  lastUpdate: string;
@@ -2,9 +2,7 @@ import { FetchListResponse } from '../types/fetchResponse.type';
2
2
  export type GetDamageReportListResponse = FetchListResponse<DamageReportList>;
3
3
  export interface DamageReportList {
4
4
  _id: string;
5
- damageImageMedium?: string;
6
- damageImageBig?: string;
7
- damageImageSmall?: string;
5
+ damageImage?: string;
8
6
  tagType?: string;
9
7
  assetName: AssetName;
10
8
  assetId: string;
@@ -73,12 +71,10 @@ export interface Request {
73
71
  asset: string;
74
72
  assetQr: null;
75
73
  assetRfid: null;
76
- assetImageMedium: string;
77
- assetImageBig: string;
78
- assetImageSmall: string;
79
- damageImageMedium: string;
80
- damageImageBig: string;
81
- damageImageSmall: string;
74
+ assetImage: string;
75
+ damageImage: string;
76
+ damageImage: string;
77
+ damageImage: string;
82
78
  reportedImage: ReportedImage;
83
79
  assetName: AssetName;
84
80
  assetBrand: AssetBrand;
@@ -49,16 +49,10 @@ export type AssetDetailDataType = {
49
49
  reason?: string;
50
50
  parent?: string;
51
51
  setDefault?: number | string;
52
- firstImageSmall?: string;
53
- firstImageMedium?: string;
54
- firstImageBig?: string;
55
- firstImageDeleted?: boolean;
56
- secondImageSmall?: string;
57
- secondImageDeleted?: boolean;
58
- secondImageMedium?: string;
59
- secondImageBig?: string;
60
52
  firstImage?: File | string;
61
53
  secondImage?: File | string;
54
+ firstImageDeleted?: boolean;
55
+ secondImageDeleted?: boolean;
62
56
  brand: AssetBrandModelValue;
63
57
  model: AssetBrandModelValue;
64
58
  name: AssetBrandModelValue;
@@ -2,8 +2,7 @@ import { AssetTreeNode } from '../dto/assetService.dto';
2
2
  import { AssetBrandModelValue, LicenseStatuses, TransactionPolicyType } from './asset.type';
3
3
  export type LinkedAssetType = {
4
4
  _id: string;
5
- firstImageSmall: string;
6
- firstImageBig: string;
5
+ firstImage?: string;
7
6
  name: AssetBrandModelValue;
8
7
  brand: AssetBrandModelValue;
9
8
  model: AssetBrandModelValue;
@@ -35,9 +35,7 @@ export type RequestDataType = {
35
35
  asset?: string;
36
36
  request?: string;
37
37
  transaction?: string;
38
- assetImageSmall?: string;
39
- assetImageMedium?: string;
40
- assetImageBig?: string;
38
+ assetImage?: string;
41
39
  status?: string;
42
40
  reportStatus?: string;
43
41
  verifyStatus?: 'Verified' | 'Unverified' | 'TAG Reported';
@@ -214,14 +212,10 @@ export type TimeLineLogs = {
214
212
  detail?: {
215
213
  notes?: string;
216
214
  assignedTo?: string;
217
- assetImageBig?: string;
218
- assetImageMedium?: string;
219
- assetImageSmall?: string;
215
+ assetImage?: string;
220
216
  oldUser?: SimpleUserType;
221
217
  newUser?: SimpleUserType;
222
- damageImageBig?: string;
223
- damageImageMedium?: string;
224
- damageImageSmall?: string;
218
+ damageImage?: string;
225
219
  from?: {
226
220
  assignedTo?: SimpleUserType;
227
221
  notes?: string;
@@ -238,9 +232,7 @@ export type TimeLineLogs = {
238
232
  createdAt: string;
239
233
  updatedAt: string;
240
234
  assignedTo: string;
241
- assetImageSmall: string;
242
- assetImageMedium: string;
243
- assetImageBig: string;
235
+ assetImage: string;
244
236
  };
245
237
  export type TransactionLogRequest = {
246
238
  _id: string;
@@ -265,12 +257,8 @@ export type TransactionLogRequest = {
265
257
  isReportDone: boolean;
266
258
  createdAt: string;
267
259
  updatedAt: string;
268
- assetImageMedium: string;
269
- assetImageBig: string;
270
- assetImageSmall: string;
271
- firstImageMedium?: string;
272
- firstImageBig?: string;
273
- firstImageSmall?: string;
260
+ assetImage: string;
261
+ firstImage?: string;
274
262
  assetId: string;
275
263
  };
276
264
  export type HistoryParams = {
@@ -3,9 +3,7 @@ import { Option } from './options.type';
3
3
  import { SimpleUserType } from './user.type';
4
4
  export type Transaction = {
5
5
  _id: string;
6
- assetImageSmall?: string;
7
- assetImageMedium?: string;
8
- assetImageBig?: string;
6
+ assetImage?: string;
9
7
  name: AssetName;
10
8
  assetId: string;
11
9
  asset: string;
@@ -43,9 +41,7 @@ export type TransactionLogRequest = {
43
41
  group: AssetFieldObject;
44
42
  borrower: SimpleUserType;
45
43
  asset: string;
46
- assetImageMedium: string;
47
- assetImageBig: string;
48
- assetImageSmall: string;
44
+ assetImage: string;
49
45
  assetName: AssetName;
50
46
  assetBrand: AssetFieldObject;
51
47
  assetModel: AssetFieldObject;
@@ -4,9 +4,7 @@ export interface DisposalReported {
4
4
  notes: string;
5
5
  reason?: string;
6
6
  asset: string;
7
- assetImageMedium: string;
8
- assetImageBig: string;
9
- assetImageSmall: string;
7
+ assetImage: string;
10
8
  assetName?: AssetName;
11
9
  assetBrand?: AssetBrand;
12
10
  assetModel?: AssetBrand;
@@ -72,9 +72,7 @@ export type TransactionLogRequest = {
72
72
  createdAt: string;
73
73
  updatedAt: string;
74
74
  __v: number;
75
- assetImageMedium: null;
76
- assetImageBig: null;
77
- assetImageSmall: null;
75
+ assetImage: null;
78
76
  transactionId: string;
79
77
  assetId: string;
80
78
  };
@@ -2,9 +2,7 @@ export type FileType = 'attachment' | 'damage' | 'disposal' | 'file-damage' | 'f
2
2
  export type FileManagerType = {
3
3
  _id: string;
4
4
  transactionId?: string;
5
- assetImageSmall?: string;
6
- assetImageMedium?: string;
7
- assetImageBig?: string;
5
+ assetImage?: string;
8
6
  assetName?: string;
9
7
  fileName: string;
10
8
  fileFormat: string;
@@ -43,9 +43,7 @@ export type AssetListCol = {
43
43
  license?: AssetLicenseStatus;
44
44
  auditStatus?: string;
45
45
  maintenanceStatus?: string;
46
- firstImageMedium: string;
47
- firstImageBig: string;
48
- firstImageSmall: string;
46
+ firstImage: string;
49
47
  };
50
48
  export type AddonLicenseCol = {
51
49
  _id: string;
@@ -87,9 +87,7 @@ export type RoutineTask = {
87
87
  name: string;
88
88
  key: number;
89
89
  };
90
- assetImageSmall?: string;
91
- assetImageMedium?: string;
92
- assetImageBig?: string;
90
+ assetImage?: string;
93
91
  taskName: string;
94
92
  status: RoutineTaskStatus;
95
93
  updatedAt: Date | string;
@@ -143,9 +141,7 @@ export type RoutineTaskDetail = {
143
141
  totalPrice: number;
144
142
  paymentProof: string;
145
143
  };
146
- maintenanceImageBig: string;
147
- maintenanceImageMedium: string;
148
- maintenanceImageSmall: string;
144
+ maintenanceImage: string;
149
145
  notes: string;
150
146
  serviceCenterId: string;
151
147
  serviceCenterName: string;
@@ -311,9 +307,7 @@ type ScheduleActiveAsset = {
311
307
  isActive: boolean;
312
308
  isActiveStr: string;
313
309
  updatedAt: Date | string;
314
- imageSmall: string;
315
- imageMedium: string;
316
- imageBig: string;
310
+ image: string;
317
311
  };
318
312
  export type MaintenanceHistoryStatus = 'Completed' | 'Canceled' | 'Reported Damaged' | 'Stopped';
319
313
  export type MaintainableAssetDetail = {
@@ -335,9 +329,7 @@ export type MaintainableAssetDetail = {
335
329
  };
336
330
  _id: string;
337
331
  assetId: string;
338
- imageSmall: string;
339
- imageBig: string;
340
- imageMedium: string;
332
+ image: string;
341
333
  };
342
334
  allTask: number;
343
335
  activeTask: number;
@@ -393,12 +385,8 @@ export type RoutineApproval = {
393
385
  };
394
386
  serviceCenterId?: string | null;
395
387
  serviceCenterName?: string | null;
396
- assetImageBig?: string | null;
397
- assetImageMedium?: string | null;
398
- assetImageSmall?: string | null;
399
- maintenanceImageBig?: string | null;
400
- maintenanceImageMedium?: string | null;
401
- maintenanceImageSmall?: string | null;
388
+ assetImage?: string | null;
389
+ maintenanceImage?: string | null;
402
390
  assetAliasCode?: string | null;
403
391
  assetId: string;
404
392
  assetCategory: {
@@ -4,9 +4,7 @@ import { SimpleUserType } from './user.type';
4
4
  export type AssignedAsset = {
5
5
  _id: string;
6
6
  asset: string;
7
- assetImageSmall: string;
8
- assetImageMedium: string;
9
- assetImageBig: string;
7
+ assetImage: string;
10
8
  name: AssetName;
11
9
  assetId: string;
12
10
  status: string;
@@ -25,9 +23,7 @@ export type AssignedAssetOption = {
25
23
  export type BorrowedAsset = {
26
24
  _id: string;
27
25
  asset: string;
28
- assetImageSmall: string;
29
- assetImageMedium: string;
30
- assetImageBig: string;
26
+ assetImage: string;
31
27
  name: AssetName;
32
28
  assetId: string;
33
29
  status: string;
@@ -51,9 +47,7 @@ export type HistoryOption = {
51
47
  export type HistoryAsset = {
52
48
  _id: string;
53
49
  asset: string;
54
- assetImageSmall: string;
55
- assetImageMedium: string;
56
- assetImageBig: string;
50
+ assetImage: string;
57
51
  module: string;
58
52
  assetName: AssetName;
59
53
  assetId: string;
@@ -15,9 +15,7 @@ interface Parent {
15
15
  group: Group;
16
16
  brand: Brand;
17
17
  model: Brand;
18
- assetImageSmall: string;
19
- assetImageMedium: string;
20
- assetImageBig: string;
18
+ assetImage: string;
21
19
  }
22
20
  interface Brand {
23
21
  _id: string;
@@ -84,15 +82,9 @@ export type Asset = {
84
82
  updatedAt?: string;
85
83
  rfid?: string;
86
84
  qr?: string;
87
- firstImageSmall?: string;
88
- firstImageMedium?: string;
89
- firstImageBig?: string;
90
- secondImageSmall?: string;
91
- secondImageMedium?: string;
92
- secondImageBig?: string;
93
- assetImageSmall?: string;
94
- assetImageMedium?: string;
95
- assetImageBig?: string;
85
+ firstImage?: string;
86
+ secondImage?: string;
87
+ assetImage?: string;
96
88
  setDefault?: 'firstImage' | 'secondImage';
97
89
  };
98
90
  export {};
@@ -140,8 +140,7 @@ export type GetAuditableAssetAmount = {
140
140
  export type ActiveAsset = {
141
141
  _id: string;
142
142
  isActive: boolean;
143
- assetImageBig: string;
144
- assetImageSmall: string;
143
+ assetImage: string;
145
144
  name: GroupCat & {
146
145
  nameWithSequence: string;
147
146
  };
@@ -23,9 +23,7 @@ export type BorrowingRequest = {
23
23
  fullName: string;
24
24
  key: number;
25
25
  };
26
- assetImageMedium: string;
27
- assetImageBig: string;
28
- assetImageSmall: string;
26
+ assetImage: string;
29
27
  name: {
30
28
  _id: string;
31
29
  nameWithSequence: string;
@@ -157,9 +155,7 @@ export type BorrowingTransactionRequest = {
157
155
  qr: boolean;
158
156
  rfid: boolean;
159
157
  tagType: string;
160
- assetImageMedium: string;
161
- assetImageBig: string;
162
- assetImageSmall: string;
158
+ assetImage: string;
163
159
  remainingDay: number;
164
160
  dueDate: Date | string;
165
161
  dueDateInt?: number;
@@ -200,9 +196,7 @@ export type BorrowingHistoryByAsset = {
200
196
  key: number;
201
197
  };
202
198
  status: string;
203
- assetImageMedium: string;
204
- assetImageBig: string;
205
- assetImageSmall: string;
199
+ assetImage: string;
206
200
  name: {
207
201
  _id: string;
208
202
  nameWithSequence: string;
@@ -284,9 +278,7 @@ export type BorrowingBorrowedByAsset = {
284
278
  rfid: boolean;
285
279
  tagType: string;
286
280
  remainingDay: number;
287
- assetImageMedium: string;
288
- assetImageBig: string;
289
- assetImageSmall: string;
281
+ assetImage: string;
290
282
  transactionId: string;
291
283
  isManager: boolean;
292
284
  children?: BorrowingRequestFormData[];
@@ -358,9 +350,7 @@ export type BorrowingTransactionLog = {
358
350
  createdAt: Date | string;
359
351
  updatedAt: Date | string;
360
352
  dueDate: Date | string;
361
- assetImageMedium: string;
362
- assetImageBig: string;
363
- assetImageSmall: string;
353
+ assetImage: string;
364
354
  assetId: string;
365
355
  } & BorrowingBorrowedByAsset;
366
356
  logs: TransactionLog[];
@@ -53,9 +53,7 @@ export type OptionParams = {
53
53
  };
54
54
  export interface IOTReaderList {
55
55
  _id: string;
56
- imageSmall: string | null;
57
- imageMedium: string | null;
58
- imageBig: string | null;
56
+ image: string | null;
59
57
  aliasName: string | null;
60
58
  name: NameEntity;
61
59
  group: BaseEntity;
@@ -109,9 +107,7 @@ export interface IOTCheckManager {
109
107
  }
110
108
  export interface IOTDetail {
111
109
  _id: string;
112
- imageSmall: string | null;
113
- imageMedium: string | null;
114
- imageBig: string | null;
110
+ image: string | null;
115
111
  name: NameEntity;
116
112
  totalPort: number;
117
113
  group: BaseEntity;
@@ -210,9 +210,7 @@ export interface AssetNameAssets {
210
210
  };
211
211
  updatedAt: string | Date;
212
212
  tagType: string;
213
- assetImageSmall: string | null;
214
- assetImageMedium: string | null;
215
- assetImageBig: string | null;
213
+ assetImage: string | null;
216
214
  sequence: number;
217
215
  maintenanceStatus: any;
218
216
  auditStatus: any;
@@ -73,9 +73,7 @@ export interface BrandListAsset {
73
73
  key: number;
74
74
  };
75
75
  updatedAt: string | Date;
76
- assetImageSmall: string | null;
77
- assetImageMedium: string | null;
78
- assetImageBig: string | null;
76
+ assetImage: string | null;
79
77
  };
80
78
  sequence: number;
81
79
  }
@@ -3,9 +3,7 @@ import { Option } from './options.type';
3
3
  import { SimpleUserType } from './user.type';
4
4
  export type TransferItem = {
5
5
  _id: string;
6
- assetImageSmall?: string;
7
- assetImageMedium?: string;
8
- assetImageBig?: string;
6
+ assetImage?: string;
9
7
  name: AssetName;
10
8
  assetId: string;
11
9
  brand: AssetFieldObject;
@@ -35,9 +33,7 @@ export type TransferLogRequest = {
35
33
  transactionId: string;
36
34
  asset: string;
37
35
  assetId: string;
38
- assetImageSmall?: string;
39
- assetImageMedium?: string;
40
- assetImageBig?: string;
36
+ assetImage?: string;
41
37
  status: string;
42
38
  assetName: AssetName;
43
39
  assetCategory: AssetFieldObject;