@tagsamurai/fats-api-services 1.0.0-alpha.25 → 1.0.0-alpha.27

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,141 +1,168 @@
1
- import $ from "axios";
2
- const T = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_ADMIN_API: "https://dev-admin-api.tagsamurai.com", VITE_APP_API: "https://dev-api.tagsamurai.com", VITE_APP_COUNTRY_STATE_API: "https://api.countrystatecity.in", VITE_APP_COUNTRY_STATE_API_KEY: "ZTc5TVc2STlwTkFFNFltYTRjc05sOHR3ODJEYzVMVTZ5UnBJaWU5SA==", VITE_APP_LOGS_NOTIFICATION_API: "https://dev-api-logs-notification.tagsamurai.com", VITE_APP_TAGSAMURAI_API: "https://dev-api.tagsamurai.com" }, m = (t = "APP_API") => T["VITE_" + t], n = (t = {}, e = !1) => {
3
- const { env: s = "APP_API", prefix: a = "", headers: A = {}, ...v } = t, _ = `${m(s)}${a}`, d = JSON.parse(localStorage.getItem("user") ?? "{}"), f = d.jwt ?? d.token ?? "";
4
- return $.create({
5
- ...v,
6
- baseURL: _,
7
- headers: e ? A : {
1
+ import f from "axios";
2
+ const L = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_ADMIN_API: "https://dev-admin-api.tagsamurai.com", VITE_APP_API: "https://dev-api.tagsamurai.com", VITE_APP_COUNTRY_STATE_API: "https://api.countrystatecity.in", VITE_APP_COUNTRY_STATE_API_KEY: "ZTc5TVc2STlwTkFFNFltYTRjc05sOHR3ODJEYzVMVTZ5UnBJaWU5SA==", VITE_APP_LOGS_NOTIFICATION_API: "https://dev-api-logs-notification.tagsamurai.com", VITE_APP_TAGSAMURAI_API: "https://dev-api.tagsamurai.com" }, A = (t = "APP_API") => L["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: o = "", headers: d = {}, ...m } = t, T = `${A(r)}${o}`, $ = JSON.parse(localStorage.getItem("user") ?? "{}"), C = $.jwt ?? $.token ?? "";
4
+ return f.create({
5
+ ...m,
6
+ baseURL: T,
7
+ headers: e ? d : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${f}`,
10
- ...A
9
+ Authorization: `Bearer ${C}`,
10
+ ...d
11
11
  }
12
12
  });
13
- }, C = (t) => {
13
+ }, E = (t) => {
14
14
  if (!t || typeof t == "string")
15
15
  return;
16
16
  const e = {};
17
- return Object.keys(t).forEach((s) => {
18
- Array.isArray(t[s]) ? t[s].length > 0 && Object.assign(e, {
19
- [s]: JSON.stringify(t[s])
20
- }) : t[s] !== void 0 && Object.assign(e, {
21
- [s]: t[s]
17
+ return Object.keys(t).forEach((r) => {
18
+ Array.isArray(t[r]) ? t[r].length > 0 && Object.assign(e, {
19
+ [r]: JSON.stringify(t[r])
20
+ }) : t[r] !== void 0 && Object.assign(e, {
21
+ [r]: t[r]
22
22
  });
23
23
  }), e;
24
- }, D = (t) => {
24
+ }, N = (t) => {
25
25
  if (!t) return;
26
- const e = m("APP_TAGSAMURAI_API");
26
+ const e = A("APP_TAGSAMURAI_API");
27
27
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
28
- }, i = n({
28
+ }, g = s({
29
29
  prefix: "/settings-attribute/v2",
30
30
  env: "APP_TAGSAMURAI_API"
31
- }), b = {
31
+ }), R = {
32
32
  getGroupCategory: (t, e) => {
33
- const s = t === "category" ? t : "groups";
34
- return i.get(`/${s}/tree`, { params: e });
33
+ const r = t === "category" ? t : "groups";
34
+ return g.get(`/${r}/tree`, { params: e });
35
35
  },
36
- getGroupCategoryList: (t, e, s) => {
37
- const a = t === "category" ? t : "groups";
38
- return i.get(`/${a}/${e}`, { params: s });
36
+ getGroupCategoryList: (t, e, r) => {
37
+ const o = t === "category" ? t : "groups";
38
+ return g.get(`/${o}/${e}`, { params: r });
39
39
  },
40
40
  getNames: (t) => {
41
41
  const e = t === "category" ? t : "groups";
42
- return i.get(`/${e}/names`);
42
+ return g.get(`/${e}/names`);
43
43
  },
44
44
  postCreateGroupCategory: (t, e) => {
45
- const s = t === "category" ? t : "groups";
46
- return i.post(`/${s}`, e);
45
+ const r = t === "category" ? t : "groups";
46
+ return g.post(`/${r}`, e);
47
47
  },
48
- putEditGroupCategory: (t, e, s) => {
49
- const a = t === "category" ? t : "groups";
50
- return i.put(`/${a}/${s}`, e);
48
+ putEditGroupCategory: (t, e, r) => {
49
+ const o = t === "category" ? t : "groups";
50
+ return g.put(`/${o}/${r}`, e);
51
51
  },
52
- putMoveGroup: (t, e) => i.put(`/groups/${e}/move-group`, t),
53
- putEditBulkGroups: async (t) => i.put("/groups/bulk", t),
54
- deleteGroupCategory: (t, e, s) => {
55
- const a = t === "category" ? t : "groups";
56
- return i.delete(`/${a}/${s}`, { data: e });
52
+ putMoveGroup: (t, e) => g.put(`/groups/${e}/move-group`, t),
53
+ putEditBulkGroups: async (t) => g.put("/groups/bulk", t),
54
+ deleteGroupCategory: (t, e, r) => {
55
+ const o = t === "category" ? t : "groups";
56
+ return g.delete(`/${o}/${r}`, { data: e });
57
57
  }
58
- }, y = n({
58
+ }, u = s({
59
+ prefix: "/settings-attribute-go/v2"
60
+ }), x = {
61
+ getGroupCategory: (t, e) => {
62
+ const r = t === "category" ? t : "groups";
63
+ return u.get(`/${r}/tree`, { params: e });
64
+ },
65
+ getGroupCategoryList: (t, e) => {
66
+ const r = t === "category" ? t : "groups";
67
+ return u.get(`/${r}/${e}`);
68
+ },
69
+ getNames: (t) => {
70
+ const e = t === "category" ? t : "groups";
71
+ return u.get(`/${e}/names`);
72
+ },
73
+ postCreateGroupCategory: (t, e) => {
74
+ const r = t === "category" ? t : "groups";
75
+ return u.post(`/${r}`, e);
76
+ },
77
+ putEditGroupCategory: (t, e, r) => {
78
+ const o = t === "category" ? t : "groups";
79
+ return u.put(`/${o}/${r}`, e);
80
+ },
81
+ deleteGroupCategory: (t, e, r) => {
82
+ const o = t === "category" ? t : "groups";
83
+ return u.delete(`/${o}/${r}`, { data: e });
84
+ }
85
+ }, O = s({
59
86
  prefix: "/v2",
60
87
  env: "APP_LOGS_NOTIFICATION_API"
61
- }), N = {
62
- getTotalApprovals: () => y.get("/approval/count")
63
- }, u = n({
88
+ }), F = {
89
+ getTotalApprovals: () => O.get("/approval/count")
90
+ }, p = s({
64
91
  prefix: "/v2",
65
92
  env: "APP_LOGS_NOTIFICATION_API"
66
- }), G = {
67
- getActionLog: (t) => u.get("/change-log", { params: t }),
68
- getActionLogOption: (t) => u.get("/change-log/options", { params: t }),
69
- getSessionLogList: (t) => u.get("/session-log", { params: t }),
70
- getUserDetailSystemLogList: (t) => u.get("/change-log", { params: t }),
71
- getUserDetailSystemLogOption: (t) => u.get("/change-log/options", { params: t })
72
- }, o = n({
93
+ }), k = {
94
+ getActionLog: (t) => p.get("/change-log", { params: t }),
95
+ getActionLogOption: (t) => p.get("/change-log/options", { params: t }),
96
+ getSessionLogList: (t) => p.get("/session-log", { params: t }),
97
+ getUserDetailSystemLogList: (t) => p.get("/change-log", { params: t }),
98
+ getUserDetailSystemLogOption: (t) => p.get("/change-log/options", { params: t })
99
+ }, a = s({
73
100
  prefix: "/assets/v2/assets"
74
- }), R = {
75
- getScanTag: (t) => o.get("/scan", { params: { tag: t } }),
76
- getAllAssets: (t) => o.get("/", { params: t }),
77
- getAvailableAssets: (t) => o.get("/available", { params: t }),
78
- scanAsset: (t) => o.get("", { params: { tag: t } }),
79
- getAssetsById: (t, e) => o.get("/by-id", { params: { _id: t, ...e } }),
80
- getOptions: (t, e) => o.get(t ? `/${t}/options` : "/options", { params: e }),
81
- getUnlinkedAssets: (t) => o.get("/unlinked", { params: t }),
82
- getAssetDetail: (t, e) => o.get(`/${t}`, { params: e }),
83
- getLinkedAssetFamily: (t) => o.get("/family", { params: { id: t } }),
101
+ }), w = {
102
+ getScanTag: (t) => a.get("/scan", { params: { tag: t } }),
103
+ getAllAssets: (t) => a.get("/", { params: t }),
104
+ getAvailableAssets: (t) => a.get("/available", { params: t }),
105
+ scanAsset: (t) => a.get("", { params: { tag: t } }),
106
+ getAssetsById: (t, e) => a.get("/by-id", { params: { _id: t, ...e } }),
107
+ getOptions: (t, e) => a.get(t ? `/${t}/options` : "/options", { params: e }),
108
+ getUnlinkedAssets: (t) => a.get("/unlinked", { params: t }),
109
+ getAssetDetail: (t, e) => a.get(`/${t}`, { params: e }),
110
+ getLinkedAssetFamily: (t) => a.get("/family", { params: { id: t } }),
84
111
  matchAssetWithTag: (t, e) => {
85
- const s = {
112
+ const r = {
86
113
  _id: JSON.stringify([t]),
87
114
  tag: e
88
115
  };
89
- return o.get("/by-id", { params: s });
116
+ return a.get("/by-id", { params: r });
90
117
  }
91
- }, L = n({
118
+ }, U = s({
92
119
  prefix: "/tracking/v2/missing"
93
- }), E = {
120
+ }), M = {
94
121
  putFoundAsset: (t, e) => {
95
- const s = { ids: [t], serialNumber: e };
96
- return L.put("/found", s);
122
+ const r = { ids: [t], serialNumber: e };
123
+ return U.put("/found", r);
97
124
  }
98
- }, P = n({
125
+ }, S = s({
99
126
  prefix: "/v2/notification",
100
127
  env: "APP_LOGS_NOTIFICATION_API"
101
- }), x = {
102
- getNotifications: (t) => P.get("/", { params: t }),
103
- readNotification: (t) => P.put(`/${t}`)
104
- }, O = n({
128
+ }), B = {
129
+ getNotifications: (t) => S.get("/", { params: t }),
130
+ readNotification: (t) => S.put(`/${t}`)
131
+ }, h = s({
105
132
  prefix: "/v2/session-log",
106
133
  env: "APP_LOGS_NOTIFICATION_API"
107
- }), F = {
108
- postLogout: () => O.post("/logout")
109
- }, p = n({
134
+ }), V = {
135
+ postLogout: () => h.post("/logout")
136
+ }, v = s({
110
137
  prefix: "/tag/v2"
111
- }), k = {
112
- getScanQR: (t) => p.get("/qr", { params: { tag: t } }),
113
- getScanRFID: (t) => p.get("/rfid", { params: { tag: t } }),
114
- getRFIDQRTAG: (t) => p.get("/rfid-qr/scan", { params: t })
115
- }, U = n({
138
+ }), Y = {
139
+ getScanQR: (t) => v.get("/qr", { params: { tag: t } }),
140
+ getScanRFID: (t) => v.get("/rfid", { params: { tag: t } }),
141
+ getRFIDQRTAG: (t) => v.get("/rfid-qr/scan", { params: t })
142
+ }, G = s({
116
143
  prefix: "/tracking/v2/tracking"
117
- }), w = {
118
- putFoundAsset: (t, e, s) => {
119
- const a = {
144
+ }), j = {
145
+ putFoundAsset: (t, e, r) => {
146
+ const o = {
120
147
  tag: t,
121
148
  group: e,
122
- serialNumber: s,
149
+ serialNumber: r,
123
150
  type: "Global"
124
151
  };
125
- return U.put("/found", { params: a });
152
+ return G.put("/found", { params: o });
126
153
  }
127
- }, r = n({
154
+ }, n = s({
128
155
  prefix: "/settings-user-role/v2"
129
- }), M = {
130
- reLogin: (t) => r.post("/auth/login", t),
131
- changePassword: (t) => r.put("/users/change-password", t),
132
- getUserDetail: (t) => r.get(`/users/${t}`),
156
+ }), J = {
157
+ reLogin: (t) => n.post("/auth/login", t),
158
+ changePassword: (t) => n.put("/users/change-password", t),
159
+ getUserDetail: (t) => n.get(`/users/${t}`),
133
160
  putEditUser: (t, e) => {
134
- const s = { "Content-Type": "multipart/form-data" };
135
- return r.put(`/users/${t}`, e, { headers: s });
161
+ const r = { "Content-Type": "multipart/form-data" };
162
+ return n.put(`/users/${t}`, e, { headers: r });
136
163
  },
137
- putDeleteProfilePicture: (t) => r.put(`/users/${t}/delete-profile-picture`),
138
- putCancelEmailChange: (t, e) => r.put("/auth/confirm-email-change/cancel", {
164
+ putDeleteProfilePicture: (t) => n.put(`/users/${t}/delete-profile-picture`),
165
+ putCancelEmailChange: (t, e) => n.put("/auth/confirm-email-change/cancel", {
139
166
  user: t,
140
167
  companyCode: e
141
168
  }),
@@ -145,39 +172,39 @@ const T = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
145
172
  * @param type {"Global" | "Group"} Whether the system role's type is global or group
146
173
  * @param params {Record<string, unknown>}
147
174
  */
148
- getUserDetailSystemRoles: (t, e, s) => r.get(`/user-detail/${t}/system-roles`, {
175
+ getUserDetailSystemRoles: (t, e, r) => n.get(`/user-detail/${t}/system-roles`, {
149
176
  params: {
150
- ...s,
177
+ ...r,
151
178
  type: e
152
179
  }
153
180
  }),
154
181
  // User Detail
155
- getUserDetailSystemRoleList: (t, e) => r.get(`/user-detail/${t}/system-role-list`, { params: e }),
156
- getUserDetailSystemRoleOptions: (t, e) => r.get(`/user-detail/${t}/system-role/option`, { params: e }),
157
- getUserDetailTransactionRoleList: (t, e) => r.get(`/user-detail/${t}/transaction-role-list`, { params: e }),
158
- getUserDetailUserLogBorrowingList: (t, e) => r.get(`/users-log/${t}/borrowing`, { params: e }),
159
- getUserDetailUserLogAssignmentList: (t, e) => r.get(`/users-log/${t}/assignment`, { params: e }),
160
- getUserDetailUserLogBorrowingOption: (t, e) => r.get(`/users-log/${t}/borrowing/option`, { params: e }),
161
- getUserDetailUserLogAssignmentOption: (t, e) => r.get(`/users-log/${t}/assignment/option`, { params: e }),
162
- getUserDetailTransactionAdminLogList: (t, e) => r.get(`/users-log/${t}/transaction-log`, { params: e }),
163
- getUserDetailTransactionAdminLogOption: (t, e) => r.get(`/users-log/${t}/transaction-log/option`, { params: e })
164
- }, c = n({
182
+ getUserDetailSystemRoleList: (t, e) => n.get(`/user-detail/${t}/system-role-list`, { params: e }),
183
+ getUserDetailSystemRoleOptions: (t, e) => n.get(`/user-detail/${t}/system-role/option`, { params: e }),
184
+ getUserDetailTransactionRoleList: (t, e) => n.get(`/user-detail/${t}/transaction-role-list`, { params: e }),
185
+ getUserDetailUserLogBorrowingList: (t, e) => n.get(`/users-log/${t}/borrowing`, { params: e }),
186
+ getUserDetailUserLogAssignmentList: (t, e) => n.get(`/users-log/${t}/assignment`, { params: e }),
187
+ getUserDetailUserLogBorrowingOption: (t, e) => n.get(`/users-log/${t}/borrowing/option`, { params: e }),
188
+ getUserDetailUserLogAssignmentOption: (t, e) => n.get(`/users-log/${t}/assignment/option`, { params: e }),
189
+ getUserDetailTransactionAdminLogList: (t, e) => n.get(`/users-log/${t}/transaction-log`, { params: e }),
190
+ getUserDetailTransactionAdminLogOption: (t, e) => n.get(`/users-log/${t}/transaction-log/option`, { params: e })
191
+ }, l = s({
165
192
  env: "APP_ADMIN_API",
166
193
  prefix: "/settings-attribute/languages"
167
- }), V = {
194
+ }), q = {
168
195
  /**
169
196
  * Fetch all translation messages for a specific locale.
170
197
  * @param locale The locale code (e.g., 'en', 'id').
171
198
  * @returns A promise resolving to a key-value record of messages.
172
199
  */
173
- getMessages: (t) => c.get(`/${t}/translations`),
200
+ getMessages: (t) => l.get(`/${t}/translations`),
174
201
  /**
175
202
  * Fetch all available lang options for LanguageDropdown and LanguageSwitcher
176
203
  *
177
204
  * @returns Promise Array of options
178
205
  */
179
206
  getLanguageOptions: async () => {
180
- const { data: t } = await c.get(
207
+ const { data: t } = await l.get(
181
208
  "/dropdown"
182
209
  );
183
210
  return t.data;
@@ -189,7 +216,7 @@ const T = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
189
216
  * @returns Promise LanguageMeta
190
217
  */
191
218
  getLanguageOptionMeta: async (t) => {
192
- const { data: e } = await c.get(
219
+ const { data: e } = await l.get(
193
220
  "/dropdown/" + t
194
221
  );
195
222
  return e.data;
@@ -201,55 +228,93 @@ const T = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
201
228
  * @param locale Target locale code.
202
229
  */
203
230
  translateText: async (t, e) => {
204
- const { data: s } = await c.post("/translate", {
231
+ const { data: r } = await l.post("/translate", {
205
232
  q: t,
206
233
  target: e
207
234
  });
208
- return s.data.translations[t];
235
+ return r.data.translations[t];
209
236
  }
210
- }, I = n({
237
+ }, _ = s({
211
238
  prefix: "/dashboard/v2/dashboard"
212
- }), B = {
213
- getLatestTask: (t) => I.get("/latest-task", { params: t }),
214
- getSummary: (t) => I.get("/summary", { params: t })
215
- }, l = n({
239
+ }), K = {
240
+ getLatestTask: (t) => _.get("/latest-task", { params: t }),
241
+ getSummary: (t) => _.get("/summary", { params: t })
242
+ }, P = s({
216
243
  prefix: "/alias-code/api/alias-code"
217
- }), j = {
218
- getAliasCode: () => l.get("/"),
219
- postAliasCode: (t) => l.post("/", t),
220
- getAliasCodeList: (t) => l.get(`/${t.object}/code-list`, { params: t })
221
- }, S = n({
244
+ }), W = {
245
+ getAliasCode: () => P.get("/"),
246
+ postAliasCode: (t) => P.post("/", t),
247
+ getAliasCodeList: (t) => P.get(`/${t.object}/code-list`, { params: t })
248
+ }, y = s({
222
249
  prefix: "/settings-attribute/v2/general-settings"
223
- }), J = {
224
- getGeneralSettings: () => S.get("/"),
225
- putUpdateGeneralSettings: (t) => S.put("/", t)
226
- }, g = n({
250
+ }), z = {
251
+ getGeneralSettings: () => y.get("/"),
252
+ putUpdateGeneralSettings: (t) => y.put("/", t)
253
+ }, c = s({
227
254
  prefix: "/settings-attribute/v2/custom-field"
228
- }), Y = {
229
- getCustomField: async (t) => g.get("/", { params: t }),
230
- getOptions: async (t) => g.get("/options", { params: t }),
231
- postCreateCustomField: async (t, e) => g.post("/", e, { params: t }),
232
- putEditCustomField: async (t, e, s) => g.put(`/${s}`, e, { params: t }),
233
- putChangeStatus: async (t, e) => g.put("/bulk", e, { params: t }),
234
- deleteCustomField: async (t) => g.delete("/bulk", { data: t })
255
+ }), Q = {
256
+ getCustomField: async (t) => c.get("/", { params: t }),
257
+ getOptions: async (t) => c.get("/options", { params: t }),
258
+ postCreateCustomField: async (t, e) => c.post("/", e, { params: t }),
259
+ putEditCustomField: async (t, e, r) => c.put(`/${r}`, e, { params: t }),
260
+ putChangeStatus: async (t, e) => c.put("/bulk", e, { params: t }),
261
+ deleteCustomField: async (t) => c.delete("/bulk", { data: t })
262
+ }, I = ({ headers: t = {}, params: e = {} } = {}) => {
263
+ const r = A("APP_COUNTRY_STATE_API"), o = A("APP_COUNTRY_STATE_API_KEY");
264
+ return f.create({
265
+ baseURL: `${r}/v1`,
266
+ headers: {
267
+ "Content-type": "application/json",
268
+ "X-CSCAPI-KEY": o,
269
+ ...t
270
+ },
271
+ params: e
272
+ });
273
+ }, Z = {
274
+ getCountry: () => I().get("/countries"),
275
+ getState: (t) => I().get(`/countries/${t}/states`),
276
+ getCity: (t, e) => I().get(`/countries/${t}/states/${e}/cities`)
277
+ }, i = s({
278
+ prefix: "/routine/v2"
279
+ }), H = {
280
+ getList: (t) => i.get("/service-center", { params: t }),
281
+ postList: (t) => i.post("/service-center", t),
282
+ putList: (t, e) => i.put(`/service-center/${t}`, e),
283
+ putActivate: (t) => i.put("/service-center/bulk", t),
284
+ getDetailList: (t) => i.get(`/service-center/${t}`),
285
+ getListOptions: (t) => i.get("/service-center/options", { params: t }),
286
+ deleteList: (t) => i.delete("/service-center", { params: t }),
287
+ // Activities
288
+ getActivities: (t) => i.get("/service-activities", { params: t }),
289
+ getActivityOptions: (t) => i.get("/service-activities/options", { params: t }),
290
+ getActivityDetail: (t) => i.get(`/service-activities/${t}`),
291
+ getActivityLog: (t) => i.get(`/service-activities/${t}/activity-log`)
292
+ }, b = s({
293
+ prefix: "/settings-attribute/v2/brands"
294
+ }), X = {
295
+ getDropdown: (t) => b.get("/dropdown", { params: t })
235
296
  };
236
297
  export {
237
- j as AliasCodeServices,
238
- R as AssetServices,
239
- G as ChangelogServices,
240
- Y as CustomFieldServices,
241
- B as DashboardServices,
242
- J as GeneralSettingsServices,
243
- b as GroupCategoryServices,
244
- V as I18nService,
245
- E as MissingServices,
246
- N as NotificationApprovalServices,
247
- x as NotificationServices,
248
- F as SessionLogServices,
249
- k as TAGServices,
250
- w as TrackingServices,
251
- M as UserServices,
252
- m as getBaseURL,
253
- D as getImageURL,
254
- C as queryParamsStringfy
298
+ W as AliasCodeServices,
299
+ w as AssetServices,
300
+ X as BrandServices,
301
+ k as ChangelogServices,
302
+ Z as CountryStateServices,
303
+ Q as CustomFieldServices,
304
+ K as DashboardServices,
305
+ z as GeneralSettingsServices,
306
+ R as GroupCategoryServices,
307
+ x as GroupCategoryServicesGo,
308
+ q as I18nService,
309
+ M as MissingServices,
310
+ F as NotificationApprovalServices,
311
+ B as NotificationServices,
312
+ H as ServiceCenterServices,
313
+ V as SessionLogServices,
314
+ Y as TAGServices,
315
+ j as TrackingServices,
316
+ J as UserServices,
317
+ A as getBaseURL,
318
+ N as getImageURL,
319
+ E as queryParamsStringfy
255
320
  };
@@ -1 +1 @@
1
- System.register(["axios"],function(r,h){"use strict";var S;return{setters:[p=>{S=p.default}],execute:function(){const p={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_ADMIN_API:"https://dev-admin-api.tagsamurai.com",VITE_APP_API:"https://dev-api.tagsamurai.com",VITE_APP_COUNTRY_STATE_API:"https://api.countrystatecity.in",VITE_APP_COUNTRY_STATE_API_KEY:"ZTc5TVc2STlwTkFFNFltYTRjc05sOHR3ODJEYzVMVTZ5UnBJaWU5SA==",VITE_APP_LOGS_NOTIFICATION_API:"https://dev-api-logs-notification.tagsamurai.com",VITE_APP_TAGSAMURAI_API:"https://dev-api.tagsamurai.com"},P=r("getBaseURL",(t="APP_API")=>p["VITE_"+t]),o=(t={},e=!1)=>{const{env:s="APP_API",prefix:a="",headers:m={},...O}=t,U=`${P(s)}${a}`,_=JSON.parse(localStorage.getItem("user")??"{}"),C=_.jwt??_.token??"";return S.create({...O,baseURL:U,headers:e?m:{"Content-Type":"application/json",Authorization:`Bearer ${C}`,...m}})},D=r("queryParamsStringfy",t=>{if(!t||typeof t=="string")return;const e={};return Object.keys(t).forEach(s=>{Array.isArray(t[s])?t[s].length>0&&Object.assign(e,{[s]:JSON.stringify(t[s])}):t[s]!==void 0&&Object.assign(e,{[s]:t[s]})}),e}),b=r("getImageURL",t=>{if(!t)return;const e=P("APP_TAGSAMURAI_API");return t.startsWith("http")?t:`${e}/file-manager/v2/files/${t}`}),g=o({prefix:"/settings-attribute/v2",env:"APP_TAGSAMURAI_API"}),G=r("GroupCategoryServices",{getGroupCategory:(t,e)=>{const s=t==="category"?t:"groups";return g.get(`/${s}/tree`,{params:e})},getGroupCategoryList:(t,e,s)=>{const a=t==="category"?t:"groups";return g.get(`/${a}/${e}`,{params:s})},getNames:t=>{const e=t==="category"?t:"groups";return g.get(`/${e}/names`)},postCreateGroupCategory:(t,e)=>{const s=t==="category"?t:"groups";return g.post(`/${s}`,e)},putEditGroupCategory:(t,e,s)=>{const a=t==="category"?t:"groups";return g.put(`/${a}/${s}`,e)},putMoveGroup:(t,e)=>g.put(`/groups/${e}/move-group`,t),putEditBulkGroups:async t=>g.put("/groups/bulk",t),deleteGroupCategory:(t,e,s)=>{const a=t==="category"?t:"groups";return g.delete(`/${a}/${s}`,{data:e})}}),$=o({prefix:"/v2",env:"APP_LOGS_NOTIFICATION_API"}),N=r("NotificationApprovalServices",{getTotalApprovals:()=>$.get("/approval/count")}),c=o({prefix:"/v2",env:"APP_LOGS_NOTIFICATION_API"}),R=r("ChangelogServices",{getActionLog:t=>c.get("/change-log",{params:t}),getActionLogOption:t=>c.get("/change-log/options",{params:t}),getSessionLogList:t=>c.get("/session-log",{params:t}),getUserDetailSystemLogList:t=>c.get("/change-log",{params:t}),getUserDetailSystemLogOption:t=>c.get("/change-log/options",{params:t})}),i=o({prefix:"/assets/v2/assets"}),E=r("AssetServices",{getScanTag:t=>i.get("/scan",{params:{tag:t}}),getAllAssets:t=>i.get("/",{params:t}),getAvailableAssets:t=>i.get("/available",{params:t}),scanAsset:t=>i.get("",{params:{tag:t}}),getAssetsById:(t,e)=>i.get("/by-id",{params:{_id:t,...e}}),getOptions:(t,e)=>i.get(t?`/${t}/options`:"/options",{params:e}),getUnlinkedAssets:t=>i.get("/unlinked",{params:t}),getAssetDetail:(t,e)=>i.get(`/${t}`,{params:e}),getLinkedAssetFamily:t=>i.get("/family",{params:{id:t}}),matchAssetWithTag:(t,e)=>{const s={_id:JSON.stringify([t]),tag:e};return i.get("/by-id",{params:s})}}),y=o({prefix:"/tracking/v2/missing"}),F=r("MissingServices",{putFoundAsset:(t,e)=>{const s={ids:[t],serialNumber:e};return y.put("/found",s)}}),v=o({prefix:"/v2/notification",env:"APP_LOGS_NOTIFICATION_API"}),k=r("NotificationServices",{getNotifications:t=>v.get("/",{params:t}),readNotification:t=>v.put(`/${t}`)}),T=o({prefix:"/v2/session-log",env:"APP_LOGS_NOTIFICATION_API"}),w=r("SessionLogServices",{postLogout:()=>T.post("/logout")}),A=o({prefix:"/tag/v2"}),M=r("TAGServices",{getScanQR:t=>A.get("/qr",{params:{tag:t}}),getScanRFID:t=>A.get("/rfid",{params:{tag:t}}),getRFIDQRTAG:t=>A.get("/rfid-qr/scan",{params:t})}),L=o({prefix:"/tracking/v2/tracking"}),V=r("TrackingServices",{putFoundAsset:(t,e,s)=>{const a={tag:t,group:e,serialNumber:s,type:"Global"};return L.put("/found",{params:a})}}),n=o({prefix:"/settings-user-role/v2"}),B=r("UserServices",{reLogin:t=>n.post("/auth/login",t),changePassword:t=>n.put("/users/change-password",t),getUserDetail:t=>n.get(`/users/${t}`),putEditUser:(t,e)=>{const s={"Content-Type":"multipart/form-data"};return n.put(`/users/${t}`,e,{headers:s})},putDeleteProfilePicture:t=>n.put(`/users/${t}/delete-profile-picture`),putCancelEmailChange:(t,e)=>n.put("/auth/confirm-email-change/cancel",{user:t,companyCode:e}),getUserDetailSystemRoles:(t,e,s)=>n.get(`/user-detail/${t}/system-roles`,{params:{...s,type:e}}),getUserDetailSystemRoleList:(t,e)=>n.get(`/user-detail/${t}/system-role-list`,{params:e}),getUserDetailSystemRoleOptions:(t,e)=>n.get(`/user-detail/${t}/system-role/option`,{params:e}),getUserDetailTransactionRoleList:(t,e)=>n.get(`/user-detail/${t}/transaction-role-list`,{params:e}),getUserDetailUserLogBorrowingList:(t,e)=>n.get(`/users-log/${t}/borrowing`,{params:e}),getUserDetailUserLogAssignmentList:(t,e)=>n.get(`/users-log/${t}/assignment`,{params:e}),getUserDetailUserLogBorrowingOption:(t,e)=>n.get(`/users-log/${t}/borrowing/option`,{params:e}),getUserDetailUserLogAssignmentOption:(t,e)=>n.get(`/users-log/${t}/assignment/option`,{params:e}),getUserDetailTransactionAdminLogList:(t,e)=>n.get(`/users-log/${t}/transaction-log`,{params:e}),getUserDetailTransactionAdminLogOption:(t,e)=>n.get(`/users-log/${t}/transaction-log/option`,{params:e})}),l=o({env:"APP_ADMIN_API",prefix:"/settings-attribute/languages"}),j=r("I18nService",{getMessages:t=>l.get(`/${t}/translations`),getLanguageOptions:async()=>{const{data:t}=await l.get("/dropdown");return t.data},getLanguageOptionMeta:async t=>{const{data:e}=await l.get("/dropdown/"+t);return e.data},translateText:async(t,e)=>{const{data:s}=await l.post("/translate",{q:t,target:e});return s.data.translations[t]}}),I=o({prefix:"/dashboard/v2/dashboard"}),q=r("DashboardServices",{getLatestTask:t=>I.get("/latest-task",{params:t}),getSummary:t=>I.get("/summary",{params:t})}),d=o({prefix:"/alias-code/api/alias-code"}),J=r("AliasCodeServices",{getAliasCode:()=>d.get("/"),postAliasCode:t=>d.post("/",t),getAliasCodeList:t=>d.get(`/${t.object}/code-list`,{params:t})}),f=o({prefix:"/settings-attribute/v2/general-settings"}),Y=r("GeneralSettingsServices",{getGeneralSettings:()=>f.get("/"),putUpdateGeneralSettings:t=>f.put("/",t)}),u=o({prefix:"/settings-attribute/v2/custom-field"}),x=r("CustomFieldServices",{getCustomField:async t=>u.get("/",{params:t}),getOptions:async t=>u.get("/options",{params:t}),postCreateCustomField:async(t,e)=>u.post("/",e,{params:t}),putEditCustomField:async(t,e,s)=>u.put(`/${s}`,e,{params:t}),putChangeStatus:async(t,e)=>u.put("/bulk",e,{params:t}),deleteCustomField:async t=>u.delete("/bulk",{data:t})})}}});
1
+ System.register(["axios"],function(s,E){"use strict";var d;return{setters:[S=>{d=S.default}],execute:function(){const S={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_ADMIN_API:"https://dev-admin-api.tagsamurai.com",VITE_APP_API:"https://dev-api.tagsamurai.com",VITE_APP_COUNTRY_STATE_API:"https://api.countrystatecity.in",VITE_APP_COUNTRY_STATE_API_KEY:"ZTc5TVc2STlwTkFFNFltYTRjc05sOHR3ODJEYzVMVTZ5UnBJaWU5SA==",VITE_APP_LOGS_NOTIFICATION_API:"https://dev-api-logs-notification.tagsamurai.com",VITE_APP_TAGSAMURAI_API:"https://dev-api.tagsamurai.com"},A=s("getBaseURL",(t="APP_API")=>S["VITE_"+t]),n=(t={},e=!1)=>{const{env:r="APP_API",prefix:o="",headers:y={},...G}=t,b=`${A(r)}${o}`,C=JSON.parse(localStorage.getItem("user")??"{}"),D=C.jwt??C.token??"";return d.create({...G,baseURL:b,headers:e?y:{"Content-Type":"application/json",Authorization:`Bearer ${D}`,...y}})},N=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}),R=s("getImageURL",t=>{if(!t)return;const e=A("APP_TAGSAMURAI_API");return t.startsWith("http")?t:`${e}/file-manager/v2/files/${t}`}),c=n({prefix:"/settings-attribute/v2",env:"APP_TAGSAMURAI_API"}),F=s("GroupCategoryServices",{getGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return c.get(`/${r}/tree`,{params:e})},getGroupCategoryList:(t,e,r)=>{const o=t==="category"?t:"groups";return c.get(`/${o}/${e}`,{params:r})},getNames:t=>{const e=t==="category"?t:"groups";return c.get(`/${e}/names`)},postCreateGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return c.post(`/${r}`,e)},putEditGroupCategory:(t,e,r)=>{const o=t==="category"?t:"groups";return c.put(`/${o}/${r}`,e)},putMoveGroup:(t,e)=>c.put(`/groups/${e}/move-group`,t),putEditBulkGroups:async t=>c.put("/groups/bulk",t),deleteGroupCategory:(t,e,r)=>{const o=t==="category"?t:"groups";return c.delete(`/${o}/${r}`,{data:e})}}),u=n({prefix:"/settings-attribute-go/v2"}),k=s("GroupCategoryServicesGo",{getGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return u.get(`/${r}/tree`,{params:e})},getGroupCategoryList:(t,e)=>{const r=t==="category"?t:"groups";return u.get(`/${r}/${e}`)},getNames:t=>{const e=t==="category"?t:"groups";return u.get(`/${e}/names`)},postCreateGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return u.post(`/${r}`,e)},putEditGroupCategory:(t,e,r)=>{const o=t==="category"?t:"groups";return u.put(`/${o}/${r}`,e)},deleteGroupCategory:(t,e,r)=>{const o=t==="category"?t:"groups";return u.delete(`/${o}/${r}`,{data:e})}}),T=n({prefix:"/v2",env:"APP_LOGS_NOTIFICATION_API"}),w=s("NotificationApprovalServices",{getTotalApprovals:()=>T.get("/approval/count")}),l=n({prefix:"/v2",env:"APP_LOGS_NOTIFICATION_API"}),B=s("ChangelogServices",{getActionLog:t=>l.get("/change-log",{params:t}),getActionLogOption:t=>l.get("/change-log/options",{params:t}),getSessionLogList:t=>l.get("/session-log",{params:t}),getUserDetailSystemLogList:t=>l.get("/change-log",{params:t}),getUserDetailSystemLogOption:t=>l.get("/change-log/options",{params:t})}),g=n({prefix:"/assets/v2/assets"}),M=s("AssetServices",{getScanTag:t=>g.get("/scan",{params:{tag:t}}),getAllAssets:t=>g.get("/",{params:t}),getAvailableAssets:t=>g.get("/available",{params:t}),scanAsset:t=>g.get("",{params:{tag:t}}),getAssetsById:(t,e)=>g.get("/by-id",{params:{_id:t,...e}}),getOptions:(t,e)=>g.get(t?`/${t}/options`:"/options",{params:e}),getUnlinkedAssets:t=>g.get("/unlinked",{params:t}),getAssetDetail:(t,e)=>g.get(`/${t}`,{params:e}),getLinkedAssetFamily:t=>g.get("/family",{params:{id:t}}),matchAssetWithTag:(t,e)=>{const r={_id:JSON.stringify([t]),tag:e};return g.get("/by-id",{params:r})}}),L=n({prefix:"/tracking/v2/missing"}),V=s("MissingServices",{putFoundAsset:(t,e)=>{const r={ids:[t],serialNumber:e};return L.put("/found",r)}}),_=n({prefix:"/v2/notification",env:"APP_LOGS_NOTIFICATION_API"}),Y=s("NotificationServices",{getNotifications:t=>_.get("/",{params:t}),readNotification:t=>_.put(`/${t}`)}),O=n({prefix:"/v2/session-log",env:"APP_LOGS_NOTIFICATION_API"}),j=s("SessionLogServices",{postLogout:()=>O.post("/logout")}),P=n({prefix:"/tag/v2"}),q=s("TAGServices",{getScanQR:t=>P.get("/qr",{params:{tag:t}}),getScanRFID:t=>P.get("/rfid",{params:{tag:t}}),getRFIDQRTAG:t=>P.get("/rfid-qr/scan",{params:t})}),U=n({prefix:"/tracking/v2/tracking"}),J=s("TrackingServices",{putFoundAsset:(t,e,r)=>{const o={tag:t,group:e,serialNumber:r,type:"Global"};return U.put("/found",{params:o})}}),i=n({prefix:"/settings-user-role/v2"}),K=s("UserServices",{reLogin:t=>i.post("/auth/login",t),changePassword:t=>i.put("/users/change-password",t),getUserDetail:t=>i.get(`/users/${t}`),putEditUser:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return i.put(`/users/${t}`,e,{headers:r})},putDeleteProfilePicture:t=>i.put(`/users/${t}/delete-profile-picture`),putCancelEmailChange:(t,e)=>i.put("/auth/confirm-email-change/cancel",{user:t,companyCode:e}),getUserDetailSystemRoles:(t,e,r)=>i.get(`/user-detail/${t}/system-roles`,{params:{...r,type:e}}),getUserDetailSystemRoleList:(t,e)=>i.get(`/user-detail/${t}/system-role-list`,{params:e}),getUserDetailSystemRoleOptions:(t,e)=>i.get(`/user-detail/${t}/system-role/option`,{params:e}),getUserDetailTransactionRoleList:(t,e)=>i.get(`/user-detail/${t}/transaction-role-list`,{params:e}),getUserDetailUserLogBorrowingList:(t,e)=>i.get(`/users-log/${t}/borrowing`,{params:e}),getUserDetailUserLogAssignmentList:(t,e)=>i.get(`/users-log/${t}/assignment`,{params:e}),getUserDetailUserLogBorrowingOption:(t,e)=>i.get(`/users-log/${t}/borrowing/option`,{params:e}),getUserDetailUserLogAssignmentOption:(t,e)=>i.get(`/users-log/${t}/assignment/option`,{params:e}),getUserDetailTransactionAdminLogList:(t,e)=>i.get(`/users-log/${t}/transaction-log`,{params:e}),getUserDetailTransactionAdminLogOption:(t,e)=>i.get(`/users-log/${t}/transaction-log/option`,{params:e})}),v=n({env:"APP_ADMIN_API",prefix:"/settings-attribute/languages"}),x=s("I18nService",{getMessages:t=>v.get(`/${t}/translations`),getLanguageOptions:async()=>{const{data:t}=await v.get("/dropdown");return t.data},getLanguageOptionMeta:async t=>{const{data:e}=await v.get("/dropdown/"+t);return e.data},translateText:async(t,e)=>{const{data:r}=await v.post("/translate",{q:t,target:e});return r.data.translations[t]}}),f=n({prefix:"/dashboard/v2/dashboard"}),W=s("DashboardServices",{getLatestTask:t=>f.get("/latest-task",{params:t}),getSummary:t=>f.get("/summary",{params:t})}),I=n({prefix:"/alias-code/api/alias-code"}),z=s("AliasCodeServices",{getAliasCode:()=>I.get("/"),postAliasCode:t=>I.post("/",t),getAliasCodeList:t=>I.get(`/${t.object}/code-list`,{params:t})}),m=n({prefix:"/settings-attribute/v2/general-settings"}),Q=s("GeneralSettingsServices",{getGeneralSettings:()=>m.get("/"),putUpdateGeneralSettings:t=>m.put("/",t)}),p=n({prefix:"/settings-attribute/v2/custom-field"}),Z=s("CustomFieldServices",{getCustomField:async t=>p.get("/",{params:t}),getOptions:async t=>p.get("/options",{params:t}),postCreateCustomField:async(t,e)=>p.post("/",e,{params:t}),putEditCustomField:async(t,e,r)=>p.put(`/${r}`,e,{params:t}),putChangeStatus:async(t,e)=>p.put("/bulk",e,{params:t}),deleteCustomField:async t=>p.delete("/bulk",{data:t})}),$=({headers:t={},params:e={}}={})=>{const r=A("APP_COUNTRY_STATE_API"),o=A("APP_COUNTRY_STATE_API_KEY");return d.create({baseURL:`${r}/v1`,headers:{"Content-type":"application/json","X-CSCAPI-KEY":o,...t},params:e})},H=s("CountryStateServices",{getCountry:()=>$().get("/countries"),getState:t=>$().get(`/countries/${t}/states`),getCity:(t,e)=>$().get(`/countries/${t}/states/${e}/cities`)}),a=n({prefix:"/routine/v2"}),X=s("ServiceCenterServices",{getList:t=>a.get("/service-center",{params:t}),postList:t=>a.post("/service-center",t),putList:(t,e)=>a.put(`/service-center/${t}`,e),putActivate:t=>a.put("/service-center/bulk",t),getDetailList:t=>a.get(`/service-center/${t}`),getListOptions:t=>a.get("/service-center/options",{params:t}),deleteList:t=>a.delete("/service-center",{params:t}),getActivities:t=>a.get("/service-activities",{params:t}),getActivityOptions:t=>a.get("/service-activities/options",{params:t}),getActivityDetail:t=>a.get(`/service-activities/${t}`),getActivityLog:t=>a.get(`/service-activities/${t}/activity-log`)}),h=n({prefix:"/settings-attribute/v2/brands"}),tt=s("BrandServices",{getDropdown:t=>h.get("/dropdown",{params:t})})}}});
package/main.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { oldGetImageURL as getImageURL, getBaseURL, queryParamsStringfy, } from './src/utils';
2
2
  export { default as GroupCategoryServices } from './src/services/oldGroupCategory.service';
3
+ export { default as GroupCategoryServicesGo } from './src/services/groupCategory.service';
3
4
  export { default as NotificationApprovalServices } from './src/services/oldNotificationApproval.service';
4
5
  export { default as ChangelogServices } from './src/services/oldLog.service';
5
6
  export { default as AssetServices } from './src/services/oldAsset.service';
@@ -14,3 +15,6 @@ export { default as DashboardServices } from './src/services/oldDashboard.servic
14
15
  export { default as AliasCodeServices } from './src/services/oldAliasCode.service';
15
16
  export { default as GeneralSettingsServices } from './src/services/oldGeneralSettings.service';
16
17
  export { default as CustomFieldServices } from './src/services/oldCustomField.service';
18
+ export { default as CountryStateServices } from './src/services/countryState.service';
19
+ export { default as ServiceCenterServices } from './src/services/oldServiceCenter.service';
20
+ export { default as BrandServices } from './src/services/oldBrand.service';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.0-alpha.25",
3
+ "version": "1.0.0-alpha.27",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -0,0 +1,22 @@
1
+ interface Region {
2
+ name?: string;
3
+ iso?: string;
4
+ }
5
+ export interface PutBody {
6
+ id: string[];
7
+ isActive?: boolean | Event;
8
+ }
9
+ export interface PostBody {
10
+ name: string;
11
+ category: number[];
12
+ brand: number[];
13
+ state: Region;
14
+ country: Region;
15
+ city: string;
16
+ zipCode: string;
17
+ phoneNumber: string;
18
+ picName: string;
19
+ address: string;
20
+ picPhoneNumber: string;
21
+ }
22
+ export {};
@@ -0,0 +1,7 @@
1
+ import { AxiosResponse } from 'axios';
2
+ declare const CountryStateServices: {
3
+ getCountry: () => Promise<AxiosResponse>;
4
+ getState: (country: string) => Promise<AxiosResponse>;
5
+ getCity: (country: string, state: string) => Promise<AxiosResponse>;
6
+ };
7
+ export default CountryStateServices;
@@ -0,0 +1,7 @@
1
+ import { AxiosResponse } from 'axios';
2
+ declare const BrandServices: {
3
+ getDropdown: (params?: {
4
+ [key: string]: string;
5
+ }) => Promise<AxiosResponse>;
6
+ };
7
+ export default BrandServices;
@@ -0,0 +1,19 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { PostBody, PutBody } from '../dto/serviceCenter.dto';
3
+ import { FilterActivityParams, FilterParams, QueryParams } from '../types/serviceCenter.type';
4
+ declare const ServiceCenterServices: {
5
+ getList: (params: QueryParams) => Promise<AxiosResponse>;
6
+ postList: (body: PostBody) => Promise<AxiosResponse>;
7
+ putList: (id: string, body: PostBody) => Promise<AxiosResponse>;
8
+ putActivate: (body: PutBody) => Promise<AxiosResponse>;
9
+ getDetailList: (id: string) => Promise<AxiosResponse>;
10
+ getListOptions: (params: FilterParams) => Promise<AxiosResponse>;
11
+ deleteList: (params: {
12
+ id: string;
13
+ }) => Promise<AxiosResponse>;
14
+ getActivities: (params: QueryParams) => Promise<AxiosResponse>;
15
+ getActivityOptions: (params: FilterActivityParams) => Promise<AxiosResponse>;
16
+ getActivityDetail: (id: string) => Promise<AxiosResponse>;
17
+ getActivityLog: (id: string) => Promise<AxiosResponse>;
18
+ };
19
+ export default ServiceCenterServices;
@@ -0,0 +1,29 @@
1
+ export type QueryParams = {
2
+ serviceCenterId?: string;
3
+ city?: string;
4
+ isActive?: string;
5
+ category?: number;
6
+ modifiedBy?: string;
7
+ brand?: string;
8
+ updatedAt?: string;
9
+ sortOrder?: number;
10
+ sortBy?: string;
11
+ page?: number;
12
+ limit?: string;
13
+ status?: string;
14
+ search?: string;
15
+ downTime?: string;
16
+ };
17
+ export type FilterParams = {
18
+ cityOptions?: string;
19
+ modifiedByOptions?: string;
20
+ categoryOptions?: string;
21
+ brandOptions?: string;
22
+ };
23
+ export type FilterActivityParams = {
24
+ serviceCenterId?: string;
25
+ assetNameOption?: string;
26
+ assetModelOption?: string;
27
+ assetGroupOption?: string;
28
+ assetBrandOption?: string;
29
+ };