tsv2-library 1.0.61-alpha.9 → 1.0.61-alpha.91

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.
Files changed (62) hide show
  1. package/dist/loading-0-1a7cddc8.js +4 -0
  2. package/dist/loading-1-892eee7c.js +4 -0
  3. package/dist/loading-2-bf39c889.js +4 -0
  4. package/dist/loading-3-f1ea4b15.js +4 -0
  5. package/dist/src/build-entry.d.ts +4 -2830
  6. package/dist/src/components/v2/AssetInfo/AssetInfo.vue.d.ts +4 -4
  7. package/dist/src/components/v2/ButtonScan/ButtonScan.vue.d.ts +6 -0
  8. package/dist/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +7 -1
  9. package/dist/src/components/v2/Calendar/Calendar.vue.d.ts +1 -1
  10. package/dist/src/components/v2/DialogAssetNameDetail/DialogAssetNameDetail.vue.d.ts +3 -1
  11. package/dist/src/components/v2/DialogReportDamage/DialogReportDamage.vue.d.ts +8 -0
  12. package/dist/src/components/v2/DialogReportMissing/DialogReportMissing.vue.d.ts +17 -0
  13. package/dist/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +13 -9
  14. package/dist/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +9 -1
  15. package/dist/src/components/v2/FileUpload/FileUpload.vue.d.ts +4 -0
  16. package/dist/src/components/v2/Form/Form.vue.d.ts +2 -0
  17. package/dist/src/components/v2/HardwareSync/HardwareSync.vue.d.ts +2 -2
  18. package/dist/src/components/v2/ImageCompressor/BackgroundImageCropper.vue.d.ts +1 -1
  19. package/dist/src/components/v2/InputCurrency/InputCurrency.vue.d.ts +5 -0
  20. package/dist/src/components/v2/InputCurrencyReference/InputCurrencyReference.vue.d.ts +153 -0
  21. package/dist/src/components/v2/Tree/Tree.vue.d.ts +4 -0
  22. package/dist/src/components/v2/index.d.ts +2 -1
  23. package/dist/src/dto/assets.dto.d.ts +2 -0
  24. package/dist/src/dto/missing.dto.d.ts +3 -0
  25. package/dist/src/dto/tagTransaction.dto.d.ts +9 -0
  26. package/dist/src/presets/toast/index.js +1 -1
  27. package/dist/src/services/assets.service.d.ts +1 -0
  28. package/dist/src/services/deviceIOT.service.d.ts +1 -0
  29. package/dist/src/services/tagTransaction.service.d.ts +1 -1
  30. package/dist/src/services/tree.service.d.ts +1 -0
  31. package/dist/src/types/assets.type.d.ts +8 -5
  32. package/dist/src/utils/getImageURL.util.d.ts +11 -2
  33. package/dist/src/utils/index.d.ts +5 -3
  34. package/dist/src/utils/json.util.d.ts +17 -0
  35. package/dist/src/utils/request.util.d.ts +17 -0
  36. package/dist/src/utils/role.util.d.ts +19 -1
  37. package/dist/style.css +1 -1
  38. package/dist/tsv2-library.es.js +64866 -70022
  39. package/dist/tsv2-library.umd.js +47 -609
  40. package/package.json +3 -1
  41. package/src/components/v2/ButtonScan/ButtonScan.vue.d.ts +6 -0
  42. package/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +7 -1
  43. package/src/components/v2/Calendar/Calendar.vue.d.ts +1 -1
  44. package/src/components/v2/DialogAssetNameDetail/DialogAssetNameDetail.vue.d.ts +3 -1
  45. package/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +13 -9
  46. package/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +9 -1
  47. package/src/components/v2/FileUpload/FileUpload.vue.d.ts +4 -0
  48. package/src/components/v2/Form/Form.vue.d.ts +2 -0
  49. package/src/components/v2/InputCurrency/InputCurrency.vue.d.ts +5 -0
  50. package/src/components/v2/Tree/Tree.vue.d.ts +4 -0
  51. package/src/presets/toast/index.js +1 -1
  52. package/src/services/assets.service.ts +9 -0
  53. package/src/services/damage.service.ts +1 -1
  54. package/src/services/deviceIOT.service.ts +8 -0
  55. package/src/services/missing.service.ts +1 -1
  56. package/src/services/tagTransaction.service.ts +2 -2
  57. package/src/services/tracking.service.ts +1 -1
  58. package/src/services/tree.service.ts +1 -0
  59. package/dist/loading-0-7762a473.js +0 -4
  60. package/dist/loading-1-55418796.js +0 -4
  61. package/dist/loading-2-b6abf641.js +0 -4
  62. package/dist/loading-3-705786b6.js +0 -4
@@ -2,8 +2,8 @@ import type { PropType as __PropType } from 'vue';
2
2
  type Field = 'brand' | 'model' | 'group' | 'status';
3
3
  declare const _sfc_main: import("vue").DefineComponent<{
4
4
  id: {
5
- type: __PropType<string>;
6
- required: true;
5
+ type: __PropType<string | undefined>;
6
+ required: false;
7
7
  };
8
8
  fields: {
9
9
  type: __PropType<Field[] | undefined>;
@@ -15,8 +15,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
15
15
  };
16
16
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  id: {
18
- type: __PropType<string>;
19
- required: true;
18
+ type: __PropType<string | undefined>;
19
+ required: false;
20
20
  };
21
21
  fields: {
22
22
  type: __PropType<Field[] | undefined>;
@@ -23,6 +23,12 @@ export type Device = {
23
23
  name: string;
24
24
  };
25
25
 
26
+ export type BaseRegisteredDevice = {
27
+ _id: string;
28
+ serialNumber: string;
29
+ name: string;
30
+ };
31
+
26
32
  export type RegisteredDevice = {
27
33
  _id: string;
28
34
  imageSmall: string;
@@ -150,6 +150,10 @@ export interface ButtonSelectTreeProps {
150
150
  * @default false
151
151
  */
152
152
  fetchTreeOnButtonRender?: boolean;
153
+ /**
154
+ * Disable level 2 (All > Level 1 > Level 2)
155
+ */
156
+ disableSubChildren?: boolean;
153
157
  }
154
158
 
155
159
  export type ButtonSelectTreeEmits = {
@@ -171,7 +175,9 @@ export type ButtonSelectTreeEmits = {
171
175
  *
172
176
  * @group Component
173
177
  */
174
- declare class ButtonSelectTree extends ClassComponent<ButtonSelectTreeProps> {}
178
+ declare class ButtonSelectTree extends ClassComponent<ButtonSelectTreeProps> {
179
+ dialogTreeKey: Ref<number>;
180
+ }
175
181
 
176
182
  declare module '@vue/runtime-core' {
177
183
  interface GlobalComponents {
@@ -27,7 +27,7 @@ export interface TSCalendarProps {
27
27
  *
28
28
  * @example [DD,MM,YYY, 00.00.00, DD,MM,YYY, 23.59.59]
29
29
  *
30
- * @default false returns [DD,MM,YYY, 00.00.00, DD,MM,YYY, 00.00.00]
30
+ * @default true returns [DD,MM,YYY, 00.00.00, DD,MM,YYY, 00.00.00]
31
31
  */
32
32
  setEndDateHours?: boolean;
33
33
  /**
@@ -12,10 +12,12 @@ export interface DialogAssetNameDetailProps {
12
12
  header?: string;
13
13
 
14
14
  /**
15
- * The ID of the asset.
15
+ * The ID of the asset name.
16
16
  */
17
17
  id: string;
18
18
 
19
+ currentTagType?: 'RFID' | 'QR' | 'RFID & QR' | 'Non TAG';
20
+
19
21
  /**
20
22
  * The query params for fetching assets.
21
23
  */
@@ -17,6 +17,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
17
17
  type: __PropType<boolean | undefined>;
18
18
  required: false;
19
19
  };
20
+ isFromUser: {
21
+ type: __PropType<boolean | undefined>;
22
+ required: false;
23
+ };
20
24
  successMessage: {
21
25
  type: __PropType<string | undefined>;
22
26
  required: false;
@@ -48,6 +52,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
48
52
  type: __PropType<boolean | undefined>;
49
53
  required: false;
50
54
  };
55
+ isFromUser: {
56
+ type: __PropType<boolean | undefined>;
57
+ required: false;
58
+ };
51
59
  successMessage: {
52
60
  type: __PropType<string | undefined>;
53
61
  required: false;
@@ -1,9 +1,14 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
+ import { ReportSourceType } from '../../../dto/missing.dto';
2
3
  declare const _sfc_main: import("vue").DefineComponent<{
3
4
  id: {
4
5
  type: __PropType<string>;
5
6
  required: true;
6
7
  };
8
+ reportSource: {
9
+ type: __PropType<ReportSourceType>;
10
+ required: true;
11
+ };
7
12
  trackingId: {
8
13
  type: __PropType<string | undefined>;
9
14
  required: false;
@@ -16,6 +21,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
16
21
  type: __PropType<boolean | undefined>;
17
22
  required: false;
18
23
  };
24
+ isFromUser: {
25
+ type: __PropType<boolean | undefined>;
26
+ required: false;
27
+ };
19
28
  successMessage: {
20
29
  type: __PropType<string | undefined>;
21
30
  required: false;
@@ -38,6 +47,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
38
47
  type: __PropType<string>;
39
48
  required: true;
40
49
  };
50
+ reportSource: {
51
+ type: __PropType<ReportSourceType>;
52
+ required: true;
53
+ };
41
54
  trackingId: {
42
55
  type: __PropType<string | undefined>;
43
56
  required: false;
@@ -50,6 +63,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
50
63
  type: __PropType<boolean | undefined>;
51
64
  required: false;
52
65
  };
66
+ isFromUser: {
67
+ type: __PropType<boolean | undefined>;
68
+ required: false;
69
+ };
53
70
  successMessage: {
54
71
  type: __PropType<string | undefined>;
55
72
  required: false;
@@ -115,15 +115,9 @@ export interface Asset {
115
115
  auditStatus?: string | null;
116
116
  rfid?: boolean;
117
117
  qr?: boolean;
118
- assetImageSmall?: null | 'string';
119
- assetImageMedium?: null | 'string';
120
- assetImageBig?: null | 'string';
121
- imageSmall?: null | 'string';
122
- imageMedium?: null | 'string';
123
- imageBig?: null | 'string';
124
- firstImageSmall?: string;
125
- firstImageMedium?: string;
126
- firstImageBig?: string;
118
+ assetImage?: 'string';
119
+ image?: 'string';
120
+ firstImage?: string;
127
121
  }
128
122
 
129
123
  export type QueryParams = {
@@ -171,6 +165,16 @@ export interface DialogSelectAssetProps {
171
165
  * The list of asset name key to be excluded in fetch list
172
166
  */
173
167
  excludedKey?: string[];
168
+ /**
169
+ *
170
+ * The list of asset name _id to be excluded in fetch list
171
+ */
172
+ excludeId?: string[];
173
+ /**
174
+ *
175
+ * The list of group _id of asset names to be excluded in fetch list
176
+ */
177
+ excludeInitialGroup?: string[];
174
178
  /**
175
179
  * The header of the dialog.
176
180
  *
@@ -62,6 +62,10 @@ export interface SelectTreeDialogProps {
62
62
  * Render hidden dialog to trigger fetch tree
63
63
  */
64
64
  hidden?: boolean;
65
+ /**
66
+ * Disable level 2 (All > Level 1 > Level 2)
67
+ */
68
+ disableSubChildren?: boolean;
65
69
  }
66
70
 
67
71
  type TreeSelectPayload = {
@@ -76,6 +80,10 @@ export type SelectTreeDialogEmits = {
76
80
  'hide': [];
77
81
  };
78
82
 
83
+ export interface SelectTreeDialogSlots {
84
+ description: VNode[];
85
+ }
86
+
79
87
  /**
80
88
  * **TSVue v2 - SelectTreeDialog**
81
89
  *
@@ -86,7 +94,7 @@ export type SelectTreeDialogEmits = {
86
94
  */
87
95
  declare class SelectTreeDialog extends ClassComponent<
88
96
  SelectTreeDialogProps,
89
- Record<string, unknown>,
97
+ SelectTreeDialogSlots,
90
98
  SelectTreeDialogEmits
91
99
  > {}
92
100
 
@@ -106,6 +106,10 @@ export type FileUploadProps = {
106
106
  * Wether show validator message on invalid file input
107
107
  */
108
108
  showValidatorMessage?: boolean;
109
+ /**
110
+ * Wether show validator message on invalid file input
111
+ */
112
+ validatorMessage?: boolean;
109
113
  };
110
114
 
111
115
  export type FileUploadEmits = {
@@ -105,6 +105,8 @@ export type FormEmits = {
105
105
  * @group components
106
106
  */
107
107
  declare class Form extends ClassComponent<FormProps, FormSlots, FormEmits> {
108
+ values: GenericObject;
109
+ errors: ComputedRef<Partial<Record<string, string | undefined>>>;
108
110
  /**
109
111
  * Wether to keep the dialog remains visible or not after submit.
110
112
  */
@@ -10,7 +10,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
10
10
  required: false;
11
11
  };
12
12
  searchBy: {
13
- type: __PropType<"QR" | "RFID" | undefined>;
13
+ type: __PropType<"RFID" | "QR" | undefined>;
14
14
  required: false;
15
15
  };
16
16
  bulk: {
@@ -35,7 +35,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
35
35
  required: false;
36
36
  };
37
37
  searchBy: {
38
- type: __PropType<"QR" | "RFID" | undefined>;
38
+ type: __PropType<"RFID" | "QR" | undefined>;
39
39
  required: false;
40
40
  };
41
41
  bulk: {
@@ -34,7 +34,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
34
34
  required: false;
35
35
  };
36
36
  }>> & {
37
- onMove?: ((...args: any[]) => any) | undefined;
38
37
  onResize?: ((...args: any[]) => any) | undefined;
38
+ onMove?: ((...args: any[]) => any) | undefined;
39
39
  }, {}, {}>;
40
40
  export default _sfc_main;
@@ -90,6 +90,11 @@ export interface InputCurrencyProps {
90
90
  */
91
91
  fieldInfo?: string;
92
92
  inputnNumberId?: string;
93
+ /**
94
+ * Wether the currency dropdown should be selectable or not.
95
+ * @defaultValue false
96
+ */
97
+ selectable?: boolean;
93
98
  }
94
99
 
95
100
  /**
@@ -0,0 +1,153 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ import type { CurrencyValue } from '../InputCurrency/InputCurrency.vue.d';
3
+ declare const _sfc_main: import("vue").DefineComponent<{
4
+ modelValue: {
5
+ type: __PropType<CurrencyValue | undefined>;
6
+ required: false;
7
+ };
8
+ value: {
9
+ type: __PropType<number | undefined>;
10
+ required: false;
11
+ };
12
+ label: {
13
+ type: __PropType<string | undefined>;
14
+ required: false;
15
+ };
16
+ max: {
17
+ type: __PropType<number | undefined>;
18
+ required: false;
19
+ };
20
+ useValidator: {
21
+ type: __PropType<boolean | undefined>;
22
+ required: false;
23
+ };
24
+ fieldName: {
25
+ type: __PropType<string | undefined>;
26
+ required: false;
27
+ };
28
+ mandatory: {
29
+ type: __PropType<boolean | undefined>;
30
+ required: false;
31
+ };
32
+ validatorMessage: {
33
+ type: __PropType<string | undefined>;
34
+ required: false;
35
+ };
36
+ invalid: {
37
+ type: __PropType<boolean | undefined>;
38
+ required: false;
39
+ };
40
+ placeholder: {
41
+ type: __PropType<string | undefined>;
42
+ required: false;
43
+ };
44
+ disabled: {
45
+ type: __PropType<boolean | undefined>;
46
+ required: false;
47
+ };
48
+ showButtons: {
49
+ type: __PropType<boolean | undefined>;
50
+ required: false;
51
+ };
52
+ size: {
53
+ type: __PropType<"small" | "normal" | "full" | undefined>;
54
+ required: false;
55
+ };
56
+ mode: {
57
+ type: __PropType<"decimal" | "currency" | undefined>;
58
+ required: false;
59
+ };
60
+ useGrouping: {
61
+ type: __PropType<boolean | undefined>;
62
+ required: false;
63
+ };
64
+ fieldInfo: {
65
+ type: __PropType<string | undefined>;
66
+ required: false;
67
+ };
68
+ inputnNumberId: {
69
+ type: __PropType<string | undefined>;
70
+ required: false;
71
+ };
72
+ selectable: {
73
+ type: __PropType<boolean | undefined>;
74
+ required: false;
75
+ };
76
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "input")[], "update:modelValue" | "input", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
77
+ modelValue: {
78
+ type: __PropType<CurrencyValue | undefined>;
79
+ required: false;
80
+ };
81
+ value: {
82
+ type: __PropType<number | undefined>;
83
+ required: false;
84
+ };
85
+ label: {
86
+ type: __PropType<string | undefined>;
87
+ required: false;
88
+ };
89
+ max: {
90
+ type: __PropType<number | undefined>;
91
+ required: false;
92
+ };
93
+ useValidator: {
94
+ type: __PropType<boolean | undefined>;
95
+ required: false;
96
+ };
97
+ fieldName: {
98
+ type: __PropType<string | undefined>;
99
+ required: false;
100
+ };
101
+ mandatory: {
102
+ type: __PropType<boolean | undefined>;
103
+ required: false;
104
+ };
105
+ validatorMessage: {
106
+ type: __PropType<string | undefined>;
107
+ required: false;
108
+ };
109
+ invalid: {
110
+ type: __PropType<boolean | undefined>;
111
+ required: false;
112
+ };
113
+ placeholder: {
114
+ type: __PropType<string | undefined>;
115
+ required: false;
116
+ };
117
+ disabled: {
118
+ type: __PropType<boolean | undefined>;
119
+ required: false;
120
+ };
121
+ showButtons: {
122
+ type: __PropType<boolean | undefined>;
123
+ required: false;
124
+ };
125
+ size: {
126
+ type: __PropType<"small" | "normal" | "full" | undefined>;
127
+ required: false;
128
+ };
129
+ mode: {
130
+ type: __PropType<"decimal" | "currency" | undefined>;
131
+ required: false;
132
+ };
133
+ useGrouping: {
134
+ type: __PropType<boolean | undefined>;
135
+ required: false;
136
+ };
137
+ fieldInfo: {
138
+ type: __PropType<string | undefined>;
139
+ required: false;
140
+ };
141
+ inputnNumberId: {
142
+ type: __PropType<string | undefined>;
143
+ required: false;
144
+ };
145
+ selectable: {
146
+ type: __PropType<boolean | undefined>;
147
+ required: false;
148
+ };
149
+ }>> & {
150
+ onInput?: ((...args: any[]) => any) | undefined;
151
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
152
+ }, {}, {}>;
153
+ export default _sfc_main;
@@ -95,6 +95,10 @@ export interface TreeProps {
95
95
  * Disable node 'All' selection
96
96
  */
97
97
  disableNodeAll?: boolean;
98
+ /**
99
+ * Disable level 2 (All > Level 1 > Level 2)
100
+ */
101
+ disableSubChildren?: boolean;
98
102
  /**
99
103
  * Include node All key (-1) on Checkbox Selection
100
104
  *
@@ -54,6 +54,7 @@ import TSImageCompressor from './ImageCompressor/ImageCompressor.vue';
54
54
  import TSInlineMessage from './InlineMessage/InlineMessage.vue';
55
55
  import TSInputBadge from './InputBadge/InputBadge.vue';
56
56
  import TSInputCurrency from './InputCurrency/InputCurrency.vue';
57
+ import TSInputCurrencyReference from './InputCurrencyReference/InputCurrencyReference.vue';
57
58
  import TSInputEmail from './InputEmail/InputEmail.vue';
58
59
  import TSInputNumber from './InputNumber/InputNumber.vue';
59
60
  import TSInputOTP from './InputOTP/InputOTP.vue';
@@ -81,4 +82,4 @@ import TSTree from './Tree/Tree.vue';
81
82
  import TSTreeSearchInput from './TreeSearchInput/TreeSearchInput.vue';
82
83
  import TSUserWithIcon from './UserWithIcon/UserWithIcon.vue';
83
84
  import TSValidatorMessage from './ValidatorMessage/ValidatorMessage.vue';
84
- export { DialogTransferLog, DialogDamageLog, DialogMissingLog, TSAssetInfo, TSApproverInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonAddByScan, TSButtonBulkAction, TSButtonCopy, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearch, TSButtonSearchByScan, TSButtonSelectTree, TSButtonSelectUser, TSButtonSync, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSCustomColumn, TSDataTable, TSDatePicker, TSDayPicker, TSDialog, TSDialogApprovalList, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectTree, TSDialogSelectAsset, TSDialogSelectUser, TSDisposalReport, TSDropdown, TSFilterContainer, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputSearch, TSInputText, TSInputTextArea, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSProgressBar, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSTimeline, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSUserWithIcon, TSValidatorMessage, };
85
+ export { DialogTransferLog, DialogDamageLog, DialogMissingLog, TSAssetInfo, TSApproverInfo, TSBadge, TSBadgeGroup, TSBreadcrumb, TSButton, TSButtonAddByScan, TSButtonBulkAction, TSButtonCopy, TSButtonDownload, TSButtonFilter, TSButtonLogHistory, TSButtonRadio, TSButtonViewLog, TSButtonScan, TSButtonSearch, TSButtonSearchByScan, TSButtonSelectTree, TSButtonSelectUser, TSButtonSync, TSButtonToggle, TSCalendar, TSCard, TSCarousel, TSCheckbox, TSCustomColumn, TSDataTable, TSDatePicker, TSDayPicker, TSDialog, TSDialogApprovalList, TSDialogAssetNameDetail, TSDialogConfirm, TSDialogForm, TSDialogLinkedAsset, TSDialogPrintQR, TSDialogReportDamage, TSDialogReportMissing, TSDialogReportTag, TSDialogSelectTree, TSDialogSelectAsset, TSDialogSelectUser, TSDisposalReport, TSDropdown, TSFilterContainer, TSFileUpload, TSForm, TSIcon, TSImage, TSImageCompressor, TSInlineMessage, TSInputBadge, TSInputCurrency, TSInputCurrencyReference, TSInputEmail, TSInputNumber, TSInputOTP, TSInputPassword, TSInputPhoneNumber, TSInputRangeNumber, TSInputSearch, TSInputText, TSInputTextArea, TSInputURL, TSLoading, TSMenu, TSMultiSelect, TSOverlayPanel, TSPaginator, TSProgressBar, TSSteps, TSTabMenu, TSTagType, TSTextarea, TSTimeline, TSToast, TSTransactionRoles, TSTree, TSTreeSearchInput, TSUserWithIcon, TSValidatorMessage, };
@@ -6,6 +6,7 @@ export type GetAllAssetsQueryParams = DataTableParams & DialogSelectAssetFilterQ
6
6
  search?: string;
7
7
  excludeId?: string;
8
8
  tag?: string;
9
+ maintenanceAuditStatus?: string[];
9
10
  };
10
11
  export type GetAvailableAssetsQueryParams = DataTableParams & DialogSelectAssetFilterQueryParams & {
11
12
  search?: string;
@@ -13,6 +14,7 @@ export type GetAvailableAssetsQueryParams = DataTableParams & DialogSelectAssetF
13
14
  tag?: string;
14
15
  mode?: string;
15
16
  asset?: string;
17
+ maintenanceAuditStatus?: string[];
16
18
  };
17
19
  export type GetAssetDetailParams = DataTableParams & {
18
20
  tag?: string;
@@ -1,3 +1,6 @@
1
1
  export type ReportMissingBody = {
2
2
  notes: string;
3
+ reportSource: ReportSourceType;
4
+ isFromUser?: boolean;
3
5
  };
6
+ export type ReportSourceType = 'Available Asset' | 'Audit Asset' | 'Borrowed Asset' | 'Assigned Asset' | 'Tracking Asset' | 'Maintenance Asset';
@@ -1,4 +1,13 @@
1
1
  export type ReportTagBody = {
2
+ data: {
3
+ reportData: {
4
+ qr: boolean;
5
+ rfid: boolean;
6
+ };
7
+ asset: string;
8
+ }[];
9
+ };
10
+ export type ReportTagData = {
2
11
  qr: boolean;
3
12
  rfid: boolean;
4
13
  };
@@ -14,7 +14,7 @@ export default {
14
14
  }),
15
15
  container: ({ props }) => ({
16
16
  class: [
17
- 'border-0 border-l-4 mt-6',
17
+ 'border-l-4 mt-6',
18
18
  'rounded-[7px] w-full',
19
19
  'shadow-lg',
20
20
  // Colors
@@ -9,6 +9,7 @@ export declare const API: ({ headers, params, }?: ServiceOptions) => AxiosInstan
9
9
  declare const _default: {
10
10
  getAllAssets: (params: GetAllAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
11
11
  getAvailableAssets: (params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
12
+ postAssetAvailableList: (params?: GetAllAssetsQueryParams | GetAvailableAssetsQueryParams | undefined) => Promise<AxiosResponse<any, any>>;
12
13
  getAssetsById: (_id: string, params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
13
14
  getAssetDetail: (id: string, params?: GetAssetDetailParams | undefined) => Promise<AxiosResponse<any, any>>;
14
15
  matchAssetWithTag: (id: string, tag?: string | undefined) => Promise<AxiosResponse<any, any>>;
@@ -1,5 +1,6 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  declare const DeviceIOTServices: {
3
3
  getReader: (serialNumber: string[]) => Promise<AxiosResponse>;
4
+ validateSerialNumber: (serialNumber: string[]) => Promise<AxiosResponse>;
4
5
  };
5
6
  export default DeviceIOTServices;
@@ -6,6 +6,6 @@ export interface ServiceOptions {
6
6
  }
7
7
  export declare const API: ({ headers, params, }?: ServiceOptions) => AxiosInstance;
8
8
  declare const _default: {
9
- reportTag: (id: string, body: ReportTagBody) => Promise<AxiosResponse<any, any>>;
9
+ reportTag: (body: ReportTagBody) => Promise<AxiosResponse<any, any>>;
10
10
  };
11
11
  export default _default;
@@ -19,6 +19,7 @@ export interface TreeQueryParams {
19
19
  systemRole?: string;
20
20
  transactionAttribute?: string;
21
21
  roleType?: string;
22
+ showAll?: boolean;
22
23
  }
23
24
  export declare const API: ({ type, headers, params, }?: ServiceOptions) => AxiosInstance;
24
25
  declare const TreeServices: {
@@ -60,16 +60,19 @@ export type Asset = {
60
60
  };
61
61
  lastModifier?: string;
62
62
  updatedAt?: string;
63
- rfid?: string;
64
- qr?: string;
65
- firstImageSmall?: string;
66
- firstImageMedium?: string;
67
- firstImageBig?: string;
63
+ tagReported: {
64
+ rfid?: string;
65
+ qr?: string;
66
+ };
67
+ firstImage?: string;
68
68
  secondImageSmall?: string;
69
69
  secondImageMedium?: string;
70
70
  secondImageBig?: string;
71
71
  assetImageSmall?: string;
72
72
  assetImageMedium?: string;
73
73
  assetImageBig?: string;
74
+ assetImage?: string;
74
75
  setDefault?: 'firstImage' | 'secondImage';
76
+ auditStatus?: string;
77
+ maintenanceStatus?: string;
75
78
  };
@@ -1,2 +1,11 @@
1
- declare const getImageURL: (name?: string | null) => string | undefined;
2
- export default getImageURL;
1
+ export declare const buildFileURL: (name?: string, width?: number, height?: number) => string;
2
+ /**
3
+ *
4
+ * @param name The full URL, or the file token as it appears on the server
5
+ * @param fileName Custom File name
6
+ * @param immediateRevoke Immediately revoke the object URL after download - default to true
7
+ * @param viewNewTab View the file in a new tab - default to false
8
+ * @returns
9
+ */
10
+ export declare const downloadFile: (name: string, customFileName?: string, immediateRevoke?: boolean, viewNewTab?: boolean) => Promise<string>;
11
+ export declare const getImageURL: (name?: string | null, width?: number, height?: number, returnURLOnly?: boolean) => Promise<string | undefined>;
@@ -3,8 +3,8 @@ import handleTokenExpiration from './handleTokenExpiration.util';
3
3
  import exportToExcel from './exportToExcel.util';
4
4
  import { formatGoDate, formatDate, formatDateReadable, getUserLocale } from './date.util';
5
5
  import useToast from './toast.util';
6
- import getImageURL from './getImageURL.util';
7
- import { getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasAnyMonitoringReportRole, hasMonitoringReportRole, hasStaffRole } from './role.util';
6
+ import { getImageURL, downloadFile } from './getImageURL.util';
7
+ import { getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasAnyMonitoringReportRole, hasMonitoringReportRole, hasStaffRole, hasAccessToAssetDetail } from './role.util';
8
8
  import { getCurrency, formatCurrency } from './currency.util';
9
9
  import { unListenSidebarChanges, listenSidebarChanges } from './listenSidebarChanges.util';
10
10
  import { getBaseURL, getHostName } from './getBaseURL.util';
@@ -13,6 +13,8 @@ import { getSeverityByAssetStatus } from './getSeverityByAssetStatus.util';
13
13
  import clearStorage from './clearStorage.util';
14
14
  import forceLogout from './forceLogout.util';
15
15
  import reLogin from './reLogin.util';
16
+ import { isValidJSONString } from './json.util';
17
+ import { buildBodyParams } from './request.util';
16
18
  declare const isObjectEmpty: (object: object) => boolean;
17
19
  declare const getNestedProperyValue: (object: object, property: string) => string | boolean | number | object;
18
- export { isObjectEmpty, getNestedProperyValue, handleTokenExpiration, getImageURL, formatUserName, formatVowelSoundLabel, exportToExcel, formatGoDate, formatDate, getUserLocale, formatDateReadable, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, getBaseURL, getHostName, useI18n, getSeverityByAssetStatus, clearStorage, forceLogout, reLogin, getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasMonitoringReportRole, hasAnyMonitoringReportRole, hasStaffRole, };
20
+ export { isObjectEmpty, getNestedProperyValue, handleTokenExpiration, getImageURL, downloadFile, formatUserName, formatVowelSoundLabel, exportToExcel, formatGoDate, formatDate, getUserLocale, formatDateReadable, useToast, listenSidebarChanges, unListenSidebarChanges, getCurrency, formatCurrency, getBaseURL, getHostName, useI18n, getSeverityByAssetStatus, clearStorage, forceLogout, reLogin, isValidJSONString, buildBodyParams, getTransactionRole, getSystemRole, hasSystemRole, hasTransactionRole, checkRouteAccess, hasApprovalRole, hasManagerRole, hasAnyManagerRole, hasMonitoringReportRole, hasAnyMonitoringReportRole, hasStaffRole, hasAccessToAssetDetail, };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Checks if a given value is a valid JSON string that represents an object or array.
3
+ *
4
+ * @param value - The value to be checked
5
+ * @returns `true` if the value is a non-empty string that can be parsed into a valid JSON object or array,
6
+ * `false` otherwise
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * isValidJSONString('{"name": "John"}') // returns true
11
+ * isValidJSONString('[1, 2, 3]') // returns true
12
+ * isValidJSONString('123') // returns false (not an object/array)
13
+ * isValidJSONString('invalid json') // returns false
14
+ * isValidJSONString(null) // returns false
15
+ * ```
16
+ */
17
+ export declare const isValidJSONString: (value: unknown) => boolean;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Builds and transforms body parameters by parsing JSON strings if valid.
3
+ * @param params - Optional record of key-value pairs where values can be of any type
4
+ * @returns A new record with the same keys but JSON strings parsed into objects
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * // With JSON string value
9
+ * buildBodyParams({ data: '{"foo": "bar"}' })
10
+ * // Returns: { data: { foo: "bar" } }
11
+ *
12
+ * // With non-JSON value
13
+ * buildBodyParams({ data: "plain string" })
14
+ * // Returns: { data: "plain string" }
15
+ * ```
16
+ */
17
+ export declare const buildBodyParams: (params?: Record<string, unknown>) => Record<string, unknown>;