@tagsamurai/gsts-api-services 1.1.0-alpha.30 → 1.1.0-alpha.32

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,12 @@ 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, e, r) => u.get("/".concat(t, "/system-logs/options"), {
276
+ params: {
277
+ [e]: !0,
278
+ ...r
279
+ }
280
+ }),
279
281
  postCreateUser: (t) => {
280
282
  const e = { "Content-Type": "multipart/form-data" };
281
283
  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.30",
3
+ "version": "1.1.0-alpha.32",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Global Settings Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -66,9 +66,12 @@ export interface PutChangePasswordBody {
66
66
  oldPassword: string;
67
67
  newPassword: string;
68
68
  }
69
- export interface GetUserSystemLogOptionsParam {
69
+ export interface GetUserSystemLogOptionsBoolean {
70
70
  activityOptions?: boolean;
71
71
  fieldOptions?: boolean;
72
72
  objectNameOptions?: boolean;
73
73
  objectOptions?: boolean;
74
74
  }
75
+ export type GetUserSystemLogOptionParams = GetUserSystemLogOptionsBoolean & {
76
+ module?: string;
77
+ };
@@ -1,12 +1,12 @@
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, GetUserSystemLogOptionsBoolean, GetUserSystemLogOptionsResponse, GetUserSystemLogOptionParams, PostResendEmailBody, PutChangePasswordBody, PutToggleStatusUsersBody } 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: (id: string, optionField: keyof GetUserSystemLogOptionsBoolean, params?: GetUserSystemLogOptionParams) => Promise<AxiosResponse<GetUserSystemLogOptionsResponse>>;
10
10
  postCreateUser: (body: CreateUserBody) => Promise<AxiosResponse>;
11
11
  putEditUser: (id: string, body: EditUserBody) => Promise<AxiosResponse>;
12
12
  deleteUsers: (ids: string[]) => Promise<AxiosResponse>;
@@ -1,4 +1,4 @@
1
- import { CustomField } from './masterData.type';
1
+ import { UserCustomField } from './iam.type';
2
2
  export type UserType = 'Basic' | 'Admin';
3
3
  export type User = {
4
4
  _id: string;
@@ -44,7 +44,7 @@ export type UserDetail = {
44
44
  expiryDate: string;
45
45
  access: string[];
46
46
  isConfirmed: boolean;
47
- customFields: CustomField[];
47
+ customFields: UserCustomField[];
48
48
  name: string;
49
49
  userTag?: string;
50
50
  isSelf?: boolean;