@tagsamurai/gsts-api-services 1.0.1-alpha.1 → 1.0.1-alpha.10

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.
@@ -1,49 +1,172 @@
1
- import p from "axios";
2
- const P = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_GLOBAL_SETTINGS_API: "https://dev-api.global-settings.tagsamurai.com" }, c = (e = "APP_API") => P["VITE_" + e], g = (e = {}, s = !1) => {
3
- const { env: t = "APP_API", prefix: o = "", headers: r = {}, ...n } = e, l = `${c(t)}${o}`, i = JSON.parse(localStorage.getItem("user") ?? "{}"), f = i.jwt ?? i.token ?? "";
4
- return p.create({
5
- ...n,
6
- baseURL: l,
7
- headers: s ? r : {
1
+ import v from "axios";
2
+ const _ = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_GLOBAL_SETTINGS_API: "https://dev-api.global-settings.tagsamurai.com", VITE_APP_LOGS_NOTIFICATION_API: "https://dev-api-logs-notification.tagsamurai.com", VITE_APP_TAGSAMURAI_API: "https://dev-api.tagsamurai.com" }, l = (t = "APP_TAGSAMURAI_API") => _["VITE_" + t], o = (t = {}, e = !1) => {
3
+ const {
4
+ env: r = "APP_GLOBAL_SETTINGS_API",
5
+ prefix: u = "",
6
+ headers: c = {},
7
+ ...I
8
+ } = t, S = `${l(r)}${u}`, A = JSON.parse(localStorage.getItem("user") ?? "{}"), $ = A.jwt ?? A.token ?? "";
9
+ return v.create({
10
+ ...I,
11
+ baseURL: S,
12
+ headers: e ? c : {
8
13
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${f}`,
10
- ...r
14
+ Authorization: `Bearer ${$}`,
15
+ ...c
11
16
  }
12
17
  });
13
- }, S = (e) => {
14
- if (!e || typeof e == "string")
18
+ }, h = (t) => {
19
+ if (!t) return;
20
+ const e = l("APP_TAGSAMURAI_API");
21
+ return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
22
+ }, m = (t) => {
23
+ if (!t || typeof t == "string")
15
24
  return;
16
- const s = {};
17
- return Object.keys(e).forEach((t) => {
18
- Array.isArray(e[t]) ? e[t].length > 0 && Object.assign(s, {
19
- [t]: JSON.stringify(e[t])
20
- }) : e[t] !== void 0 && Object.assign(s, {
21
- [t]: e[t]
25
+ const e = {};
26
+ return Object.keys(t).forEach((r) => {
27
+ Array.isArray(t[r]) ? t[r].length > 0 && Object.assign(e, {
28
+ [r]: JSON.stringify(t[r])
29
+ }) : t[r] !== void 0 && Object.assign(e, {
30
+ [r]: t[r]
22
31
  });
23
- }), s;
24
- }, u = (e, s, t) => {
25
- if (!e) return;
26
- const o = c("APP_UTILITY_API"), r = e.startsWith("http") ? e : `${o}/files/${e.replace(/^\/+/, "")}`;
27
- if (s || t) {
28
- const n = new URLSearchParams();
29
- return s && n.set("width", s.toString()), t && n.set("height", (t == null ? void 0 : t.toString()) ?? s.toString()), `${r}?${n.toString()}`;
32
+ }), e;
33
+ }, d = o({
34
+ prefix: "/v1/global-settings/change-log"
35
+ }), E = {
36
+ getChangelogs: (t) => d.get("", { params: t }),
37
+ getChangelogOptions: (t) => d.get("/options", { params: t })
38
+ }, i = o({
39
+ prefix: "/v1/global-settings/division"
40
+ }), y = {
41
+ getDivisions: (t) => i.get("", { params: t }),
42
+ getDivisionDetail: (t) => i.get(`/${t}`),
43
+ postCreateDivision: (t) => i.post("/", t),
44
+ putEditDivision: (t, e) => i.put(`/${t}`, e),
45
+ deleteDivisions: (t) => {
46
+ const e = { id: JSON.stringify(t) };
47
+ return i.delete("", { params: e });
30
48
  }
31
- return r;
32
- }, _ = g({
33
- env: "APP_GLOBAL_SETTINGS_API",
49
+ }, g = o({
50
+ env: "APP_TAGSAMURAI_API",
51
+ prefix: "/v1/global-settings"
52
+ }), G = {
53
+ getTAGAllPaired: (t, e) => g.get(`/${t}`, { params: e }),
54
+ getTAGAllPairedOptions: (t, e) => g.get(`/${t}/options`, { params: e }),
55
+ getTAGNotPaired: (t, e) => g.get(`/${t}/not-paired`, { params: e }),
56
+ getTAGNotPairedOptions: (t, e) => g.get(`/${t}/not-paired/options`, { params: e })
57
+ }, s = ({ headers: t = {}, params: e = {} } = {}) => {
58
+ const r = l("APP_GLOBAL_SETTINGS_API"), u = JSON.parse(localStorage.getItem("user") ?? "{}");
59
+ return v.create({
60
+ baseURL: `${r}/v1/global-settings`,
61
+ headers: {
62
+ "Content-type": "application/json",
63
+ Authorization: `Bearer ${u.token}`,
64
+ ...t
65
+ },
66
+ params: e
67
+ });
68
+ }, L = {
69
+ getHandheldReader: (t) => s({ params: t }).get("/reader"),
70
+ getHandheldReaderDetail: (t) => s().get(`/reader/${t}`),
71
+ getHandheldReaderOptions: (t) => s({ params: t }).get("/reader/options"),
72
+ putMarkHandheldStatus: (t) => s().put("/reader/mark-status", t),
73
+ putPingReaders: (t) => s().put("/iot-reader/ping", t),
74
+ putMarkIOTStatus: (t, e) => s().put(`/${e}/mark-status`, t),
75
+ putEditReaderGroup: (t, e, r) => s().put(
76
+ `/${t === "iot" ? "iot-" : ""}reader/${r}/set-group`,
77
+ e
78
+ ),
79
+ putEditAntennaGroup: (t, e) => s().put(`/iot-reader/${e}/set-port-group`, t),
80
+ putEditPortStatus: (t, e) => s().put(`/iot-reader/${e}/set-port-status`, t),
81
+ putEditAliasName: (t, e, r) => s().put(
82
+ `/${t === "iot" ? "iot-" : ""}reader/${r}/set-alias-name`,
83
+ e
84
+ ),
85
+ putAntennaPower: (t, e) => s().put(`/iot-reader/${e}/set-antenna-power`, t),
86
+ getIOTReaderOrAntenna: (t, e) => s({ params: e }).get(`/${t}`),
87
+ getIOTReaderDetail: (t) => s().get(`/iot-reader/${t}`),
88
+ getIOTReaderOrAntennaOptions: (t, e) => s({ params: e }).get(`/${t}/options`),
89
+ getActivityLog: (t) => s({ params: t }).get("/activity-log"),
90
+ getActivityLogOptions: (t) => s({ params: t }).get("/activity-log/options"),
91
+ getDetailActivityLog: (t) => s({ params: t }).get("/activity-log"),
92
+ getDetailActivityLogOptions: (t) => s({ params: t }).get("/activity-log/options"),
93
+ getExistingAliasNames: () => s().get("/reader/alias-names"),
94
+ getIotReaderPort: (t, e) => s({ params: e }).get(`/iot-reader/${t}/ports`)
95
+ }, T = o({
96
+ env: "APP_LOGS_NOTIFICATION_API",
97
+ prefix: "/v2"
98
+ }), R = {
99
+ getSessionLogList: (t) => T.get("/session-log", { params: t })
100
+ }, P = o({
101
+ prefix: "/v1/global-settings/option"
102
+ }), U = {
103
+ getPositions: () => P.get("/position"),
104
+ getDivisions: () => P.get("/division")
105
+ }, a = o({
106
+ prefix: "/v1/global-settings/position"
107
+ }), D = {
108
+ getPositions: (t) => a.get("", { params: t }),
109
+ getPositionDetail: (t) => a.get(`/${t}`),
110
+ postCreatePosition: (t) => a.post("/", t),
111
+ putEditPosition: (t, e) => a.put(`/${t}`, e),
112
+ deletePositions: (t) => {
113
+ const e = { id: JSON.stringify(t) };
114
+ return a.delete("", { params: e });
115
+ }
116
+ }, O = o({
117
+ env: "APP_TAGSAMURAI_API",
118
+ prefix: "/tag/v2"
119
+ }), N = {
120
+ getTagInfo: (t) => O.get("/rfid-qr/scan", { params: t })
121
+ }, p = o({
122
+ prefix: "/v1/global-settings/change-log"
123
+ }), b = {
124
+ getTAGEventlog: (t) => p.get("/tag-event-log", { params: t }),
125
+ getTAGEventlogOptions: (t) => p.get("/tag-event-log/options", { params: t }),
126
+ getDetailTAGEventlog: (t) => p.get(`/tag-event-log/${t}`)
127
+ }, n = o({
34
128
  prefix: "/v1/global-settings/user"
35
- }), I = {
36
- postResendUserEmail: (e) => _.post("/resend-email", e)
37
- }, a = g({
38
- prefix: "/utility/change-log"
39
- }), L = {
40
- getChangelogs: (e) => a.get("", { params: e }),
41
- getChangelogOptions: (e) => a.get("/options", { params: e })
129
+ }), C = {
130
+ getUsers: (t) => n.get("", { params: t }),
131
+ getUserDetail: (t) => n.get(`/${t}`),
132
+ getUserSystemLogs: (t, e) => n.get(`/${t}/system-logs`, { params: e }),
133
+ getUserSystemLogOptions: (t, e) => {
134
+ const r = {};
135
+ return r[e] = !0, n.get(`/${t}/system-logs/options`, { params: r });
136
+ },
137
+ postCreateUser: (t) => {
138
+ const e = { "Content-Type": "multipart/form-data" };
139
+ return n.post("", t, { headers: e });
140
+ },
141
+ putEditUser: (t, e) => {
142
+ const r = { "Content-Type": "multipart/form-data" };
143
+ return n.put(`/${t}`, e, { headers: r });
144
+ },
145
+ deleteUsers: (t) => {
146
+ const e = { id: JSON.stringify(t) };
147
+ return n.delete("", { params: e });
148
+ },
149
+ putToggleStatusUsers: (t) => n.put("/active-status", t),
150
+ getUserOptions: (t) => {
151
+ const e = {};
152
+ return e[t] = !0, n.get("/options", { params: e });
153
+ },
154
+ deleteCancelEmailChange: (t) => n.delete(`/cancel-email-change/${t}`),
155
+ postResendEmail: (t) => n.post("/resend-email", t),
156
+ putChangePassword: (t, e) => n.put(`/change-password/${t}`, e)
42
157
  };
43
158
  export {
44
- L as ChangelogServices,
45
- I as SettingUserGlobalServices,
46
- c as getBaseURL,
47
- u as getImageURL,
48
- S as queryParamsStringfy
159
+ E as ChangelogServices,
160
+ y as DivisionServices,
161
+ G as GlobalTagServices,
162
+ L as HardwareServices,
163
+ R as LogServices,
164
+ U as OptionServices,
165
+ D as PositionServices,
166
+ b as TagEventlogServices,
167
+ N as TagServices,
168
+ C as UserServices,
169
+ l as getBaseURL,
170
+ h as getImageURL,
171
+ m as queryParamsStringfy
49
172
  };
@@ -1 +1 @@
1
- System.register(["axios"],function(r,A){"use strict";var c;return{setters:[i=>{c=i.default}],execute:function(){const i={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_GLOBAL_SETTINGS_API:"https://dev-api.global-settings.tagsamurai.com"},g=r("getBaseURL",(e="APP_API")=>i["VITE_"+e]),l=(e={},s=!1)=>{const{env:t="APP_API",prefix:a="",headers:n={},...o}=e,P=`${g(t)}${a}`,f=JSON.parse(localStorage.getItem("user")??"{}"),_=f.jwt??f.token??"";return c.create({...o,baseURL:P,headers:s?n:{"Content-Type":"application/json",Authorization:`Bearer ${_}`,...n}})},I=r("queryParamsStringfy",e=>{if(!e||typeof e=="string")return;const s={};return Object.keys(e).forEach(t=>{Array.isArray(e[t])?e[t].length>0&&Object.assign(s,{[t]:JSON.stringify(e[t])}):e[t]!==void 0&&Object.assign(s,{[t]:e[t]})}),s}),p=r("getImageURL",(e,s,t)=>{if(!e)return;const a=g("APP_UTILITY_API"),n=e.startsWith("http")?e:`${a}/files/${e.replace(/^\/+/,"")}`;if(s||t){const o=new URLSearchParams;return s&&o.set("width",s.toString()),t&&o.set("height",(t==null?void 0:t.toString())??s.toString()),`${n}?${o.toString()}`}return n}),S=l({env:"APP_GLOBAL_SETTINGS_API",prefix:"/v1/global-settings/user"}),L=r("SettingUserGlobalServices",{postResendUserEmail:e=>S.post("/resend-email",e)}),u=l({prefix:"/utility/change-log"}),v=r("ChangelogServices",{getChangelogs:e=>u.get("",{params:e}),getChangelogOptions:e=>u.get("/options",{params:e})})}}});
1
+ System.register(["axios"],function(s,m){"use strict";var l;return{setters:[c=>{l=c.default}],execute:function(){const c={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_GLOBAL_SETTINGS_API:"https://dev-api.global-settings.tagsamurai.com",VITE_APP_LOGS_NOTIFICATION_API:"https://dev-api-logs-notification.tagsamurai.com",VITE_APP_TAGSAMURAI_API:"https://dev-api.tagsamurai.com"},p=s("getBaseURL",(t="APP_TAGSAMURAI_API")=>c["VITE_"+t]),o=(t={},e=!1)=>{const{env:r="APP_GLOBAL_SETTINGS_API",prefix:d="",headers:S={},...f}=t,_=`${p(r)}${d}`,I=JSON.parse(localStorage.getItem("user")??"{}"),O=I.jwt??I.token??"";return l.create({...f,baseURL:_,headers:e?S:{"Content-Type":"application/json",Authorization:`Bearer ${O}`,...S}})},h=s("getImageURL",t=>{if(!t)return;const e=p("APP_TAGSAMURAI_API");return t.startsWith("http")?t:`${e}/file-manager/v2/files/${t}`}),y=s("queryParamsStringfy",t=>{if(!t||typeof t=="string")return;const e={};return Object.keys(t).forEach(r=>{Array.isArray(t[r])?t[r].length>0&&Object.assign(e,{[r]:JSON.stringify(t[r])}):t[r]!==void 0&&Object.assign(e,{[r]:t[r]})}),e}),v=o({prefix:"/v1/global-settings/change-log"}),E=s("ChangelogServices",{getChangelogs:t=>v.get("",{params:t}),getChangelogOptions:t=>v.get("/options",{params:t})}),a=o({prefix:"/v1/global-settings/division"}),L=s("DivisionServices",{getDivisions:t=>a.get("",{params:t}),getDivisionDetail:t=>a.get(`/${t}`),postCreateDivision:t=>a.post("/",t),putEditDivision:(t,e)=>a.put(`/${t}`,e),deleteDivisions:t=>{const e={id:JSON.stringify(t)};return a.delete("",{params:e})}}),u=o({env:"APP_TAGSAMURAI_API",prefix:"/v1/global-settings"}),R=s("GlobalTagServices",{getTAGAllPaired:(t,e)=>u.get(`/${t}`,{params:e}),getTAGAllPairedOptions:(t,e)=>u.get(`/${t}/options`,{params:e}),getTAGNotPaired:(t,e)=>u.get(`/${t}/not-paired`,{params:e}),getTAGNotPairedOptions:(t,e)=>u.get(`/${t}/not-paired/options`,{params:e})}),n=({headers:t={},params:e={}}={})=>{const r=p("APP_GLOBAL_SETTINGS_API"),d=JSON.parse(localStorage.getItem("user")??"{}");return l.create({baseURL:`${r}/v1/global-settings`,headers:{"Content-type":"application/json",Authorization:`Bearer ${d.token}`,...t},params:e})},G=s("HardwareServices",{getHandheldReader:t=>n({params:t}).get("/reader"),getHandheldReaderDetail:t=>n().get(`/reader/${t}`),getHandheldReaderOptions:t=>n({params:t}).get("/reader/options"),putMarkHandheldStatus:t=>n().put("/reader/mark-status",t),putPingReaders:t=>n().put("/iot-reader/ping",t),putMarkIOTStatus:(t,e)=>n().put(`/${e}/mark-status`,t),putEditReaderGroup:(t,e,r)=>n().put(`/${t==="iot"?"iot-":""}reader/${r}/set-group`,e),putEditAntennaGroup:(t,e)=>n().put(`/iot-reader/${e}/set-port-group`,t),putEditPortStatus:(t,e)=>n().put(`/iot-reader/${e}/set-port-status`,t),putEditAliasName:(t,e,r)=>n().put(`/${t==="iot"?"iot-":""}reader/${r}/set-alias-name`,e),putAntennaPower:(t,e)=>n().put(`/iot-reader/${e}/set-antenna-power`,t),getIOTReaderOrAntenna:(t,e)=>n({params:e}).get(`/${t}`),getIOTReaderDetail:t=>n().get(`/iot-reader/${t}`),getIOTReaderOrAntennaOptions:(t,e)=>n({params:e}).get(`/${t}/options`),getActivityLog:t=>n({params:t}).get("/activity-log"),getActivityLogOptions:t=>n({params:t}).get("/activity-log/options"),getDetailActivityLog:t=>n({params:t}).get("/activity-log"),getDetailActivityLogOptions:t=>n({params:t}).get("/activity-log/options"),getExistingAliasNames:()=>n().get("/reader/alias-names"),getIotReaderPort:(t,e)=>n({params:e}).get(`/iot-reader/${t}/ports`)}),$=o({env:"APP_LOGS_NOTIFICATION_API",prefix:"/v2"}),U=s("LogServices",{getSessionLogList:t=>$.get("/session-log",{params:t})}),P=o({prefix:"/v1/global-settings/option"}),D=s("OptionServices",{getPositions:()=>P.get("/position"),getDivisions:()=>P.get("/division")}),g=o({prefix:"/v1/global-settings/position"}),b=s("PositionServices",{getPositions:t=>g.get("",{params:t}),getPositionDetail:t=>g.get(`/${t}`),postCreatePosition:t=>g.post("/",t),putEditPosition:(t,e)=>g.put(`/${t}`,e),deletePositions:t=>{const e={id:JSON.stringify(t)};return g.delete("",{params:e})}}),T=o({env:"APP_TAGSAMURAI_API",prefix:"/tag/v2"}),C=s("TagServices",{getTagInfo:t=>T.get("/rfid-qr/scan",{params:t})}),A=o({prefix:"/v1/global-settings/change-log"}),N=s("TagEventlogServices",{getTAGEventlog:t=>A.get("/tag-event-log",{params:t}),getTAGEventlogOptions:t=>A.get("/tag-event-log/options",{params:t}),getDetailTAGEventlog:t=>A.get(`/tag-event-log/${t}`)}),i=o({prefix:"/v1/global-settings/user"}),B=s("UserServices",{getUsers:t=>i.get("",{params:t}),getUserDetail:t=>i.get(`/${t}`),getUserSystemLogs:(t,e)=>i.get(`/${t}/system-logs`,{params:e}),getUserSystemLogOptions:(t,e)=>{const r={};return r[e]=!0,i.get(`/${t}/system-logs/options`,{params:r})},postCreateUser:t=>{const e={"Content-Type":"multipart/form-data"};return i.post("",t,{headers:e})},putEditUser:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return i.put(`/${t}`,e,{headers:r})},deleteUsers:t=>{const e={id:JSON.stringify(t)};return i.delete("",{params:e})},putToggleStatusUsers:t=>i.put("/active-status",t),getUserOptions:t=>{const e={};return e[t]=!0,i.get("/options",{params:e})},deleteCancelEmailChange:t=>i.delete(`/cancel-email-change/${t}`),postResendEmail:t=>i.post("/resend-email",t),putChangePassword:(t,e)=>i.put(`/change-password/${t}`,e)})}}});
package/main.d.ts CHANGED
@@ -1,3 +1,11 @@
1
- export { default as SettingUserGlobalServices } from './src/services/settingUserGlobal.service';
2
1
  export { default as ChangelogServices } from './src/services/changelog.service';
3
- export { getImageURL, getBaseURL, queryParamsStringfy } from './src/utils';
2
+ export { default as DivisionServices } from './src/services/division.service';
3
+ export { default as GlobalTagServices } from './src/services/globalTag.service';
4
+ export { default as HardwareServices } from './src/services/hardware.service';
5
+ export { default as LogServices } from './src/services/logNotification.service';
6
+ export { default as OptionServices } from './src/services/option.service';
7
+ export { default as PositionServices } from './src/services/position.service';
8
+ export { default as TagServices } from './src/services/tag.service';
9
+ export { default as TagEventlogServices } from './src/services/tagEventlog.service';
10
+ export { default as UserServices } from './src/services/user.service';
11
+ export { getBaseURL, getImageURL, queryParamsStringfy } from './src/utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/gsts-api-services",
3
- "version": "1.0.1-alpha.1",
3
+ "version": "1.0.1-alpha.10",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Global Settings Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -1,7 +1,8 @@
1
- import { ChangelogOptionFilter, ChangelogType } from '../types/changelog.type';
1
+ import { ChangelogType } from '../types/changelog.type';
2
2
  import { FetchListResponse, FetchOptionResponse } from '../types/fetchResponse.type';
3
+ import { FilterOptions } from './dataTable.dto';
3
4
  export type ChangelogResponse = FetchListResponse<ChangelogType>;
4
- export type ChangelogOptionResponse = FetchOptionResponse<ChangelogOptionFilter>;
5
+ export type ChangelogOptionResponse = FetchOptionResponse<FilterOptions>;
5
6
  export type ChangelogFilterQuery = {
6
7
  object?: string;
7
8
  objectName?: string;
@@ -0,0 +1,42 @@
1
+ import { MultiSelectOption } from '../types/options.type';
2
+ import { ApplicationModule } from '../types/tag.type';
3
+ export type FilterOptions = {
4
+ skuOptions?: MultiSelectOption[];
5
+ statusOptions?: MultiSelectOption[];
6
+ typeOptions?: MultiSelectOption[];
7
+ modifiedByOptions?: MultiSelectOption[];
8
+ fieldOptions?: MultiSelectOption[];
9
+ deviceNameOptions?: MultiSelectOption[];
10
+ nameOptions?: MultiSelectOption[];
11
+ userFullNameOptions?: MultiSelectOption[];
12
+ networkStatusOptions?: MultiSelectOption[];
13
+ brandOptions?: MultiSelectOption[];
14
+ modelOptions?: MultiSelectOption[];
15
+ moduleOptions?: MultiSelectOption[];
16
+ reportedByOptions?: MultiSelectOption[];
17
+ activityOptions?: MultiSelectOption[];
18
+ pairedInOptions?: MultiSelectOption[];
19
+ availabilityOptions?: MultiSelectOption[];
20
+ actionOptions?: MultiSelectOption[];
21
+ objectNameOptions?: MultiSelectOption[];
22
+ };
23
+ export type BooleanOptions = {
24
+ deviceNameOptions?: boolean;
25
+ nameOptions?: boolean;
26
+ userFullNameOptions?: boolean;
27
+ networkStatusOptions?: boolean;
28
+ brandOptions?: boolean;
29
+ modelOptions?: boolean;
30
+ moduleOptions?: boolean;
31
+ reportedByOptions?: boolean;
32
+ modifiedByOptions?: boolean;
33
+ fieldOptions?: boolean;
34
+ activityOptions?: boolean;
35
+ pairedInOptions?: boolean;
36
+ availabilityOptions?: boolean;
37
+ module?: ApplicationModule;
38
+ status?: string;
39
+ skuOptions?: boolean;
40
+ statusOptions?: boolean;
41
+ typeOptions?: boolean;
42
+ };
@@ -0,0 +1,99 @@
1
+ import { AntennaPortDetail, HardwareDataType, HardwareDetailDataType } from '../types/hardware.type';
2
+ import { MultiSelectOption } from '../types/options.type';
3
+ export interface HardwareFetchResponse<T = HardwareDataType> {
4
+ message: string;
5
+ status: number;
6
+ data: {
7
+ data: T[];
8
+ totalRecords: number;
9
+ };
10
+ }
11
+ export interface HardwareFetchDetailResponse<T = HardwareDetailDataType> {
12
+ message: string;
13
+ status: number;
14
+ data: T;
15
+ }
16
+ export type HardwareFetchOptionResponse<Opt = Record<string, boolean>> = Record<keyof Opt, MultiSelectOption[]>;
17
+ export interface HardwareShortFetchResponse<T = AntennaPortDetail> {
18
+ message: string;
19
+ status: number;
20
+ data: T[];
21
+ }
22
+ export type HardwareFilterRaw = {
23
+ deviceName?: number[];
24
+ name?: number[];
25
+ type?: string[];
26
+ readerGroup?: number[];
27
+ readerType?: string;
28
+ networkStatus?: string[];
29
+ brand?: number[];
30
+ model?: number[];
31
+ status?: string[];
32
+ tag?: string;
33
+ sku?: string[];
34
+ groupModule?: string[];
35
+ antennaGroupModule?: string[];
36
+ antennaGroup?: number[];
37
+ userFullName?: number[];
38
+ action?: string[];
39
+ reportedBy?: number[];
40
+ createdAt?: number[];
41
+ lastReportDate?: number[];
42
+ };
43
+ export type HardwareFilterQuery = Partial<Record<keyof HardwareFilterRaw, string>>;
44
+ export type HardwareDetailFilterRaw = {
45
+ date?: number[];
46
+ readerId?: string;
47
+ groupModule?: string[];
48
+ antennaGroupModule?: string[];
49
+ action?: string[];
50
+ userFullName?: number[];
51
+ modifiedBy?: number[];
52
+ isActive?: string[];
53
+ field?: string[];
54
+ };
55
+ export type HardwareDetailFilterQuery = Partial<Record<keyof HardwareDetailFilterRaw, string>>;
56
+ export type DetailTableFilterParams = {
57
+ createdAt?: string;
58
+ activity?: string;
59
+ assetName?: string;
60
+ assignedTo?: string;
61
+ borrower?: string;
62
+ type?: string;
63
+ condition?: string;
64
+ reportedBy?: string;
65
+ staff?: string;
66
+ manager?: string;
67
+ group?: string;
68
+ tag?: string;
69
+ };
70
+ export type DetailTableFilteredParams = Partial<Record<keyof DetailTableFilterParams, string>>;
71
+ export interface PutEditAliasName {
72
+ aliasName: string;
73
+ }
74
+ export interface PutEditReaderGroup {
75
+ fixedAssetGroup?: string;
76
+ supplyAssetGroup?: string;
77
+ receivingFixedAssetGroup?: string[];
78
+ receivingSupplyAssetGroup?: string[];
79
+ }
80
+ export interface PutEditAntennaGroup {
81
+ group: Omit<PutEditReaderGroup, 'receivingFixedAssetGroup' | 'receivingSupplyAssetGroup'>[];
82
+ }
83
+ export interface PutEditAntennaPower {
84
+ power: number[];
85
+ }
86
+ export interface PutEditPortStatus {
87
+ data: {
88
+ isActive: boolean;
89
+ port: number;
90
+ }[];
91
+ }
92
+ export interface PutPingReadersBody {
93
+ ids: string[];
94
+ }
95
+ export interface PutHardwareStatusBody {
96
+ status: 'Missing' | 'Damaged' | 'Available';
97
+ ids?: string[];
98
+ }
99
+ export type HardwareFormType = PutEditAliasName | PutEditAntennaGroup | PutEditAntennaPower | PutHardwareStatusBody | PutEditReaderGroup;
@@ -0,0 +1,8 @@
1
+ import { TableParams } from '../types/dataTable.type';
2
+ export type SessionLogFetchParams = TableParams & SessionLogFilterParams & {
3
+ userId: string;
4
+ };
5
+ export type SessionLogFilterParams = {
6
+ createdAt?: string;
7
+ activity?: string;
8
+ };
@@ -0,0 +1,3 @@
1
+ export interface CreateEditMasterDataBody {
2
+ name: string;
3
+ }
@@ -0,0 +1,24 @@
1
+ import { MultiSelectOption } from '../types/options.type';
2
+ import { TAGCountType, TAGDataType } from '../types/tag.type';
3
+ export interface TAGFetchResponse<T = TAGDataType> {
4
+ message: string;
5
+ status: number;
6
+ data: {
7
+ data: T[];
8
+ totalRecords: number;
9
+ } & TAGCountType;
10
+ }
11
+ export type TAGFetchOptionResponse<Opt = Record<string, boolean>> = Record<keyof Opt, MultiSelectOption[]>;
12
+ export interface TAGFilterRaw {
13
+ rfidCode?: ('Yes' | 'No')[];
14
+ qrCode?: ('Yes' | 'No')[];
15
+ nfcCode?: ('Yes' | 'No')[];
16
+ sku?: string[];
17
+ type?: string[];
18
+ status?: string[];
19
+ pairedIn?: string[];
20
+ fixedAssetGroup?: number[];
21
+ supplyAssetGroup?: number[];
22
+ tag?: string[];
23
+ }
24
+ export type TAGFilterQuery = Partial<Record<keyof TAGFilterRaw, string>>;
@@ -0,0 +1,21 @@
1
+ import { FetchListResponse, FetchOptionResponse } from '../types/fetchResponse.type';
2
+ import { MultiSelectOption } from '../types/options.type';
3
+ import { TAGType } from '../types/tag.type';
4
+ import { TAGEventlogData, TAGEventlogDetail } from '../types/tagEventlog.type';
5
+ export interface TAGEventlogFilterQuery {
6
+ status?: string[];
7
+ modifiedBy?: number[];
8
+ type?: TAGType;
9
+ }
10
+ export type TAGEventlogFetchResponse = FetchListResponse<TAGEventlogData>;
11
+ export type TAGEventlogFetchOptionResponse = FetchOptionResponse<{
12
+ modifiedByOptions?: MultiSelectOption[];
13
+ }>;
14
+ export type TAGEventlogDetailResponse = {
15
+ status: number;
16
+ message: string;
17
+ data: {
18
+ type: 'Audit' | 'Allocation';
19
+ detail: TAGEventlogDetail[];
20
+ };
21
+ };
@@ -0,0 +1,74 @@
1
+ import { FetchDetailResponse, FetchListResponse, FetchResponse } from '../types/fetchResponse.type';
2
+ import { SessionLog } from '../types/logNotification.type';
3
+ import { MasterDataItem } from '../types/masterData.type';
4
+ import { MultiSelectOption } from '../types/options.type';
5
+ import { UserDetail } from '../types/user.type';
6
+ export type GetMasterDataDetailResponse = FetchDetailResponse<MasterDataItem>;
7
+ export type GetOptionResponse = FetchResponse & {
8
+ data: MultiSelectOption[];
9
+ };
10
+ export type GetUserDetailResponse = FetchDetailResponse<UserDetail>;
11
+ export type GetUserOptionsResponse = FetchResponse & {
12
+ data: {
13
+ positionOptions: MultiSelectOption[];
14
+ divisionOptions: MultiSelectOption[];
15
+ modifiedByOptions: MultiSelectOption[];
16
+ };
17
+ };
18
+ export type GetUserSystemLogOptionsResponse = FetchResponse & {
19
+ data: {
20
+ activityOptions: MultiSelectOption[];
21
+ fieldOptions: MultiSelectOption[];
22
+ objectNameOptions: MultiSelectOption[];
23
+ objectOptions: MultiSelectOption[];
24
+ };
25
+ };
26
+ export type GetChangelogOptionsResponse = FetchResponse & {
27
+ data: {
28
+ actionOptions: MultiSelectOption[];
29
+ fieldOptions: MultiSelectOption[];
30
+ modifiedByOptions: MultiSelectOption[];
31
+ objectNameOptions: MultiSelectOption[];
32
+ };
33
+ };
34
+ export type GetSessionLogListResponse = FetchListResponse<SessionLog>;
35
+ export interface CreateUserBody {
36
+ profilePicture?: File;
37
+ firstName: string;
38
+ lastName: string;
39
+ employeeId?: string;
40
+ position?: string;
41
+ division: string;
42
+ email: string;
43
+ isTemporary?: boolean;
44
+ expiryDate?: number;
45
+ phoneNumber: string;
46
+ access: string;
47
+ userTag?: string;
48
+ }
49
+ export interface EditUserBody extends Partial<CreateUserBody> {
50
+ changeProfilePicture: boolean;
51
+ }
52
+ export interface GetUserOptionsParam {
53
+ divisionOptions?: boolean;
54
+ positionOptions?: boolean;
55
+ modifiedByOptions?: boolean;
56
+ activeStatusOption?: boolean;
57
+ }
58
+ export interface PutToggleStatusUsersBody {
59
+ user: string[];
60
+ isActive: boolean;
61
+ }
62
+ export interface PostResendEmailBody {
63
+ email: string[];
64
+ }
65
+ export interface PutChangePasswordBody {
66
+ oldPassword: string;
67
+ newPassword: string;
68
+ }
69
+ export interface GetUserSystemLogOptionsParam {
70
+ activityOptions?: boolean;
71
+ fieldOptions?: boolean;
72
+ objectNameOptions?: boolean;
73
+ objectOptions?: boolean;
74
+ }
@@ -0,0 +1,13 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { CreateEditMasterDataBody } from '../dto/masterData.dto';
3
+ import { GetMasterDataDetailResponse } from '../dto/user.dto';
4
+ import { FetchListResponse, QueryParams } from '../types/fetchResponse.type';
5
+ import { MasterDataItem } from '../types/masterData.type';
6
+ declare const DivisionServices: {
7
+ getDivisions: (params?: QueryParams) => Promise<AxiosResponse<FetchListResponse<MasterDataItem>>>;
8
+ getDivisionDetail: (id: string) => Promise<AxiosResponse<GetMasterDataDetailResponse>>;
9
+ postCreateDivision: (body: CreateEditMasterDataBody) => Promise<AxiosResponse>;
10
+ putEditDivision: (id: string, body: CreateEditMasterDataBody) => Promise<AxiosResponse>;
11
+ deleteDivisions: (ids: string[]) => Promise<AxiosResponse>;
12
+ };
13
+ export default DivisionServices;
@@ -0,0 +1,16 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { BooleanOptions } from '../dto/dataTable.dto';
3
+ import { HardwareFilterQuery } from '../dto/hardware.dto';
4
+ import { TAGFetchOptionResponse, TAGFetchResponse } from '../dto/tag.dto';
5
+ import { TAGType } from '../types/tag.type';
6
+ declare const GlobalTagServices: {
7
+ getTAGAllPaired: (tagType: TAGType, params?: HardwareFilterQuery) => Promise<AxiosResponse<TAGFetchResponse>>;
8
+ getTAGAllPairedOptions: (tagType: TAGType, params?: BooleanOptions) => Promise<AxiosResponse<{
9
+ data: TAGFetchOptionResponse;
10
+ }>>;
11
+ getTAGNotPaired: (tagType: TAGType, params?: HardwareFilterQuery) => Promise<AxiosResponse<TAGFetchResponse>>;
12
+ getTAGNotPairedOptions: (tagType: TAGType, params?: BooleanOptions) => Promise<AxiosResponse<{
13
+ data: TAGFetchOptionResponse;
14
+ }>>;
15
+ };
16
+ export default GlobalTagServices;
@@ -0,0 +1,35 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { BooleanOptions } from '../dto/dataTable.dto';
3
+ import { HardwareDetailFilterQuery, HardwareFetchDetailResponse, HardwareFetchOptionResponse, HardwareFetchResponse, HardwareFilterQuery, PutEditAliasName, PutEditAntennaGroup, PutEditAntennaPower, PutEditPortStatus, PutEditReaderGroup, PutHardwareStatusBody, PutPingReadersBody } from '../dto/hardware.dto';
4
+ import { AntennaPortDetail, HardwareDataType, HardwareDetailUserActivity } from '../types/hardware.type';
5
+ declare const HardwareServices: {
6
+ getHandheldReader: (params?: HardwareFilterQuery) => Promise<AxiosResponse<HardwareFetchResponse>>;
7
+ getHandheldReaderDetail: (handheldId?: string) => Promise<AxiosResponse<HardwareFetchDetailResponse>>;
8
+ getHandheldReaderOptions: (params?: BooleanOptions) => Promise<AxiosResponse<{
9
+ data: HardwareFetchOptionResponse;
10
+ }>>;
11
+ putMarkHandheldStatus: (body: PutHardwareStatusBody) => Promise<AxiosResponse>;
12
+ putPingReaders: (body: PutPingReadersBody) => Promise<AxiosResponse>;
13
+ putMarkIOTStatus: (body: PutHardwareStatusBody, subTab: "iot-reader" | "antenna") => Promise<AxiosResponse>;
14
+ putEditReaderGroup: (moduleTab: "iot" | "handheld", body: PutEditReaderGroup, hardwareId?: string) => Promise<AxiosResponse>;
15
+ putEditAntennaGroup: (body: PutEditAntennaGroup, hardwareId?: string) => Promise<AxiosResponse>;
16
+ putEditPortStatus: (body: PutEditPortStatus, hardwareId?: string) => Promise<AxiosResponse>;
17
+ putEditAliasName: (moduleTab: "iot" | "handheld", body: PutEditAliasName, hardwareId?: string) => Promise<AxiosResponse>;
18
+ putAntennaPower: (body: PutEditAntennaPower, iotId?: string) => Promise<AxiosResponse>;
19
+ getIOTReaderOrAntenna: (subTab: "iot-reader" | "antenna", params?: HardwareFilterQuery) => Promise<AxiosResponse<HardwareFetchResponse>>;
20
+ getIOTReaderDetail: (iotId?: string) => Promise<AxiosResponse<HardwareFetchDetailResponse>>;
21
+ getIOTReaderOrAntennaOptions: (subTab: "iot-reader" | "antenna", params?: BooleanOptions) => Promise<AxiosResponse<{
22
+ data: HardwareFetchOptionResponse;
23
+ }>>;
24
+ getActivityLog: (params?: HardwareFilterQuery) => Promise<AxiosResponse<HardwareFetchResponse<HardwareDataType>>>;
25
+ getActivityLogOptions: (params?: BooleanOptions) => Promise<AxiosResponse<{
26
+ data: HardwareFetchOptionResponse;
27
+ }>>;
28
+ getDetailActivityLog: (params?: HardwareDetailFilterQuery) => Promise<AxiosResponse<HardwareFetchResponse<HardwareDetailUserActivity>>>;
29
+ getDetailActivityLogOptions: (params?: BooleanOptions) => Promise<AxiosResponse<{
30
+ data: HardwareFetchOptionResponse;
31
+ }>>;
32
+ getExistingAliasNames: () => Promise<AxiosResponse>;
33
+ getIotReaderPort: (id: string, params?: HardwareDetailFilterQuery) => Promise<AxiosResponse<HardwareFetchResponse<AntennaPortDetail>>>;
34
+ };
35
+ export default HardwareServices;
@@ -0,0 +1,7 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { SessionLogFetchParams } from '../dto/logNotification.dto';
3
+ import { GetSessionLogListResponse } from '../dto/user.dto';
4
+ declare const LogServices: {
5
+ getSessionLogList: (params: SessionLogFetchParams) => Promise<AxiosResponse<GetSessionLogListResponse>>;
6
+ };
7
+ export default LogServices;
@@ -0,0 +1,7 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { GetOptionResponse } from '../dto/user.dto';
3
+ declare const OptionServices: {
4
+ getPositions: () => Promise<AxiosResponse<GetOptionResponse>>;
5
+ getDivisions: () => Promise<AxiosResponse<GetOptionResponse>>;
6
+ };
7
+ export default OptionServices;
@@ -0,0 +1,13 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { CreateEditMasterDataBody } from '../dto/masterData.dto';
3
+ import { GetMasterDataDetailResponse } from '../dto/user.dto';
4
+ import { FetchListResponse, QueryParams } from '../types/fetchResponse.type';
5
+ import { MasterDataItem } from '../types/masterData.type';
6
+ declare const PositionServices: {
7
+ getPositions: (params?: QueryParams) => Promise<AxiosResponse<FetchListResponse<MasterDataItem>>>;
8
+ getPositionDetail: (id: string) => Promise<AxiosResponse<GetMasterDataDetailResponse>>;
9
+ postCreatePosition: (body: CreateEditMasterDataBody) => Promise<AxiosResponse>;
10
+ putEditPosition: (id: string, body: CreateEditMasterDataBody) => Promise<AxiosResponse>;
11
+ deletePositions: (ids: string[]) => Promise<AxiosResponse>;
12
+ };
13
+ export default PositionServices;
@@ -0,0 +1,7 @@
1
+ import { AxiosResponse } from 'axios';
2
+ declare const TagServices: {
3
+ getTagInfo: (params?: {
4
+ tag?: string;
5
+ }) => Promise<AxiosResponse>;
6
+ };
7
+ export default TagServices;
@@ -0,0 +1,9 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { BooleanOptions } from '../dto/dataTable.dto';
3
+ import { TAGEventlogDetailResponse, TAGEventlogFetchOptionResponse, TAGEventlogFetchResponse, TAGEventlogFilterQuery } from '../dto/tagEventlog.dto';
4
+ declare const TagEventlogServices: {
5
+ getTAGEventlog: (params?: TAGEventlogFilterQuery) => Promise<AxiosResponse<TAGEventlogFetchResponse>>;
6
+ getTAGEventlogOptions: (params?: BooleanOptions) => Promise<AxiosResponse<TAGEventlogFetchOptionResponse>>;
7
+ getDetailTAGEventlog: (eventlogId?: string) => Promise<AxiosResponse<TAGEventlogDetailResponse>>;
8
+ };
9
+ export default TagEventlogServices;
@@ -0,0 +1,19 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { CreateUserBody, EditUserBody, GetUserDetailResponse, GetUserOptionsParam, GetUserOptionsResponse, GetUserSystemLogOptionsParam, GetUserSystemLogOptionsResponse, PostResendEmailBody, PutChangePasswordBody, PutToggleStatusUsersBody } from '../dto/user.dto';
3
+ import { FetchListResponse, QueryParams } from '../types/fetchResponse.type';
4
+ import { SystemLog, UserItem } from '../types/user.type';
5
+ declare const SettingUserGlobalServices: {
6
+ getUsers: (params?: QueryParams) => Promise<AxiosResponse<FetchListResponse<UserItem>>>;
7
+ getUserDetail: (id: string) => Promise<AxiosResponse<GetUserDetailResponse>>;
8
+ getUserSystemLogs: (id: string, params: QueryParams) => Promise<AxiosResponse<FetchListResponse<SystemLog>>>;
9
+ getUserSystemLogOptions: (id: string, optionField: keyof GetUserSystemLogOptionsParam) => Promise<AxiosResponse<GetUserSystemLogOptionsResponse>>;
10
+ postCreateUser: (body: CreateUserBody) => Promise<AxiosResponse>;
11
+ putEditUser: (id: string, body: EditUserBody) => Promise<AxiosResponse>;
12
+ deleteUsers: (ids: string[]) => Promise<AxiosResponse>;
13
+ putToggleStatusUsers: (body: PutToggleStatusUsersBody) => Promise<AxiosResponse>;
14
+ getUserOptions: (optionField: keyof GetUserOptionsParam) => Promise<AxiosResponse<GetUserOptionsResponse>>;
15
+ deleteCancelEmailChange: (id: string) => Promise<AxiosResponse>;
16
+ postResendEmail: (body: PostResendEmailBody) => Promise<AxiosResponse>;
17
+ putChangePassword: (id: string, body: PutChangePasswordBody) => Promise<AxiosResponse>;
18
+ };
19
+ export default SettingUserGlobalServices;
@@ -2,4 +2,11 @@ export type ChildGroup = {
2
2
  groupHeader: string;
3
3
  groupItems: Data[];
4
4
  };
5
+ export type TableParams = {
6
+ search?: string;
7
+ page?: number;
8
+ limit?: number;
9
+ sortBy?: string;
10
+ sortOrder?: number;
11
+ };
5
12
  export type Data = Record<string, unknown>;
@@ -0,0 +1,88 @@
1
+ export type HardwareTabType = 'activity-log' | 'handheld-damaged-missing' | 'handheld' | 'iot-reader' | 'iot-antenna' | 'iot-damaged-missing-reader' | 'iot-damaged-missing-antenna';
2
+ export type HardwareDetailTabType = 'All' | 'Tagging' | 'User' | 'Antenna' | 'Changelog';
3
+ export type ModuleGroup = {
4
+ _id: string;
5
+ key: number;
6
+ name: string;
7
+ module: 'fixedAsset' | 'supplyAsset';
8
+ };
9
+ export interface HardwareDataType {
10
+ _id: string;
11
+ imageSmall?: string;
12
+ imageBig?: string;
13
+ name: string;
14
+ sku: string;
15
+ aliasName?: string;
16
+ brand?: string;
17
+ model?: string;
18
+ type: string;
19
+ networkStatus?: 'Online' | 'Offline';
20
+ status: string;
21
+ createdAt?: string;
22
+ updatedAt?: string;
23
+ group?: ModuleGroup[];
24
+ antennaGroup?: {
25
+ port?: number;
26
+ groups?: ModuleGroup[];
27
+ }[];
28
+ activePort?: string;
29
+ reportedBy?: string;
30
+ lastReportDate?: string;
31
+ action?: string;
32
+ userFullName?: string;
33
+ readerName?: string;
34
+ }
35
+ export interface HardwareDetailDataType {
36
+ _id: string;
37
+ imageSmall?: string;
38
+ imageBig?: string;
39
+ readerName?: string;
40
+ serialNumber?: string;
41
+ name: {
42
+ _id: string;
43
+ nameWithSequence: string;
44
+ name: string;
45
+ key: number;
46
+ nameNumber?: number;
47
+ };
48
+ aliasName?: string;
49
+ networkStatus?: 'Online' | 'Offline';
50
+ lastReportDate?: string;
51
+ group?: ModuleGroup[];
52
+ brand?: {
53
+ name?: string;
54
+ key?: number;
55
+ };
56
+ model?: {
57
+ name?: string;
58
+ key?: number;
59
+ };
60
+ manager?: {
61
+ _id: string;
62
+ name?: string;
63
+ key?: number;
64
+ };
65
+ type: string;
66
+ status: string;
67
+ key: number;
68
+ }
69
+ export interface AntennaPortDetail {
70
+ _id: number;
71
+ isActive: boolean;
72
+ port: string;
73
+ group: ModuleGroup[];
74
+ antennaPower: string;
75
+ powerInt: number;
76
+ invalid?: boolean;
77
+ }
78
+ export interface HardwareDetailUserActivity {
79
+ _id: string;
80
+ createdAt: string;
81
+ userFullName?: string;
82
+ action?: string;
83
+ objectName?: string;
84
+ field?: string;
85
+ oldValue?: string;
86
+ newValue?: string;
87
+ modifiedBy?: string;
88
+ }
@@ -0,0 +1,10 @@
1
+ export type SessionLog = {
2
+ activity: string;
3
+ user: string;
4
+ userId: string;
5
+ employeeId: string;
6
+ position: string;
7
+ ipAddress: string;
8
+ createdAt: Date | string;
9
+ updatedAt: Date | string;
10
+ };
@@ -0,0 +1,7 @@
1
+ export interface MasterDataItem {
2
+ _id: string;
3
+ name: string;
4
+ inUse: boolean;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ }
@@ -0,0 +1,21 @@
1
+ export type TAGType = 'rfid' | 'nfc';
2
+ export type TAGTabType = 'all' | 'paired' | 'not-paired' | 'combine-tag';
3
+ export type ApplicationModule = 'Settings Portal' | 'Fixed Asset' | 'Supply Asset';
4
+ export interface TAGCountType {
5
+ settingsPortalAvailable?: number;
6
+ settingsPortalDamagedMissing?: number;
7
+ fixedAssetAvailable?: number;
8
+ fixedAssetDamagedMissing?: number;
9
+ supplyAssetAvailable?: number;
10
+ supplyAssetDamagedMissing?: number;
11
+ }
12
+ export interface TAGDataType {
13
+ _id: string;
14
+ rfidCode: string;
15
+ nfcCode: string;
16
+ qrCode: string;
17
+ sku: string;
18
+ type: 'Asset TAG' | 'User TAG';
19
+ status: 'Available' | 'Paired' | 'Damaged/Missing';
20
+ pairedIn: ApplicationModule;
21
+ }
@@ -0,0 +1,19 @@
1
+ export interface TAGEventlogData {
2
+ _id: string;
3
+ status?: 'Audit' | 'Allocate';
4
+ activity?: string;
5
+ totalTagScanned: number;
6
+ modifiedBy?: string;
7
+ createdAt: string;
8
+ }
9
+ export interface TAGEventlogDetail {
10
+ type: 'availableFound' | 'damagedMissingFound' | 'availableMarkDamagedMissing' | 'fixedAssetMoveToPortal' | 'supplyAssetMoveToPortal' | 'allocated';
11
+ isChecked?: boolean;
12
+ groupName?: string;
13
+ rfid?: number;
14
+ nfc?: number;
15
+ rfidQr?: number;
16
+ nfcQr?: number;
17
+ rfidNfc?: number;
18
+ rfidNfcQr?: number;
19
+ }
@@ -0,0 +1,82 @@
1
+ export type UserType = 'Basic' | 'Admin';
2
+ export type User = {
3
+ _id: string;
4
+ key: number;
5
+ isActive: boolean;
6
+ name: string;
7
+ userType: UserType;
8
+ position: string;
9
+ division: string;
10
+ email: string;
11
+ employeeId: string;
12
+ phoneNumber: string;
13
+ modifiedBy: {
14
+ _id: string;
15
+ fullName: string;
16
+ key: number;
17
+ };
18
+ updatedAt: Date | string;
19
+ isDeletable: boolean;
20
+ isConfirmed: boolean;
21
+ isDefault: boolean;
22
+ profilePictureSmall: string;
23
+ profilePictureMedium: string;
24
+ profilePictureBig: string;
25
+ exportSystemRole: string;
26
+ exportTransactionRole: string;
27
+ isSelf: boolean;
28
+ };
29
+ export type UserDetail = {
30
+ _id: string;
31
+ isActive: boolean;
32
+ isDefault: boolean;
33
+ profilePictureBig?: string;
34
+ profilePictureMedium?: string;
35
+ profilePictureSmall?: string;
36
+ firstName: string;
37
+ lastName: string;
38
+ email: string;
39
+ pendingEmailChange: string;
40
+ position?: string;
41
+ division: string;
42
+ employeeId?: string;
43
+ phoneNumber: string;
44
+ isTemporary: boolean;
45
+ expiryDate: string;
46
+ access: string[];
47
+ name: string;
48
+ userTag?: string;
49
+ isSelf?: boolean;
50
+ };
51
+ export type UserItem = {
52
+ _id: string;
53
+ isActive: boolean;
54
+ pendingEmail?: string;
55
+ isDefault: boolean;
56
+ profilePicture: string;
57
+ name: string;
58
+ email: string;
59
+ position: string;
60
+ division: string;
61
+ employeeId: string;
62
+ phoneNumber: string;
63
+ modifiedBy: ModifiedBy;
64
+ lastUpdate: string;
65
+ isSelf?: boolean;
66
+ };
67
+ interface ModifiedBy {
68
+ _id: string;
69
+ fullName: string;
70
+ key: number;
71
+ }
72
+ export type SystemLog = {
73
+ _id: string;
74
+ activity: string;
75
+ date: string;
76
+ field: string;
77
+ newValue: string;
78
+ object: string;
79
+ objectName: string;
80
+ oldValue: string;
81
+ };
82
+ export {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Retrieves the base URL from environment variables.
3
3
  *
4
- * @param {string} [env='APP_API'] - The environment variable name without the platform prefix.
4
+ * @param {string} [env='APP_TAGSAMURAI_API'] - The environment variable name without the platform prefix.
5
5
  * @returns The base URL for the specified environment.
6
6
  * @example 'APP_EXAMPLE_API'
7
7
  */
@@ -1 +1 @@
1
- export declare const getImageURL: (name?: string | null, width?: number, height?: number) => string | undefined;
1
+ export declare const getImageURL: (name?: string | null) => string | undefined;
@@ -1,4 +1,4 @@
1
1
  export { createAxiosInstance } from './createInstance.util';
2
- export { queryParamsStringfy } from './queryParamsStringify.util';
3
- export { getImageURL } from './getImageURL.util';
4
2
  export { getBaseURL } from './getBaseURL.util';
3
+ export { getImageURL } from './getImageURL.util';
4
+ export { queryParamsStringfy } from './queryParamsStringify.util';
@@ -1,7 +0,0 @@
1
- import { AxiosResponse } from 'axios';
2
- declare const SettingUserGlobalServices: {
3
- postResendUserEmail: (body: {
4
- email: string[];
5
- }) => Promise<AxiosResponse>;
6
- };
7
- export default SettingUserGlobalServices;