@tagsamurai/gsts-api-services 1.1.0-alpha.31 → 1.1.0-alpha.33

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.
@@ -272,10 +272,7 @@ const C = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
272
272
  getUsers: (t) => u.get("", { params: t }),
273
273
  getUserDetail: (t) => u.get("/".concat(t)),
274
274
  getUserSystemLogs: (t, e) => u.get("/".concat(t, "/system-logs"), { params: e }),
275
- getUserSystemLogOptions: (t, e) => {
276
- const r = {};
277
- return r[e] = !0, u.get("/".concat(t, "/system-logs/options"), { params: r });
278
- },
275
+ getUserSystemLogOptions: (t) => u.get("/".concat(t.userId, "/system-logs/options"), { params: t }),
279
276
  postCreateUser: (t) => {
280
277
  const e = { "Content-Type": "multipart/form-data" };
281
278
  return u.post("", t, { headers: e });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/gsts-api-services",
3
- "version": "1.1.0-alpha.31",
3
+ "version": "1.1.0-alpha.33",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Global Settings Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -1,12 +1,15 @@
1
1
  import { AxiosResponse } from 'axios';
2
- import { CreateUserBody, EditUserBody, GetUserDetailResponse, GetUserOptionsParam, GetUserOptionsResponse, GetUserSystemLogOptionsParam, GetUserSystemLogOptionsResponse, PostResendEmailBody, PutChangePasswordBody, PutToggleStatusUsersBody } from '../dto/user.dto';
2
+ import { CreateUserBody, EditUserBody, GetUserDetailResponse, GetUserOptionsParam, GetUserOptionsResponse, GetUserSystemLogOptionsResponse, PostResendEmailBody, PutChangePasswordBody, PutToggleStatusUsersBody, GetUserSystemLogOptionsParam } from '../dto/user.dto';
3
3
  import { FetchListResponse, QueryParams } from '../types/fetchResponse.type';
4
4
  import { SystemLog, UserItem } from '../types/user.type';
5
5
  declare const SettingUserGlobalServices: {
6
6
  getUsers: (params?: QueryParams) => Promise<AxiosResponse<FetchListResponse<UserItem>>>;
7
7
  getUserDetail: (id: string) => Promise<AxiosResponse<GetUserDetailResponse>>;
8
8
  getUserSystemLogs: (id: string, params: QueryParams) => Promise<AxiosResponse<FetchListResponse<SystemLog>>>;
9
- getUserSystemLogOptions: (id: string, optionField: keyof GetUserSystemLogOptionsParam) => Promise<AxiosResponse<GetUserSystemLogOptionsResponse>>;
9
+ getUserSystemLogOptions: (params: GetUserSystemLogOptionsParam & {
10
+ userId: string;
11
+ module?: "Fixed Asset" | "Global Settings";
12
+ }) => Promise<AxiosResponse<GetUserSystemLogOptionsResponse>>;
10
13
  postCreateUser: (body: CreateUserBody) => Promise<AxiosResponse>;
11
14
  putEditUser: (id: string, body: EditUserBody) => Promise<AxiosResponse>;
12
15
  deleteUsers: (ids: string[]) => Promise<AxiosResponse>;