@tagsamurai/gsts-api-services 1.1.0-alpha.32 → 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.
package/api-services.es.js
CHANGED
|
@@ -272,12 +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
|
|
276
|
-
params: {
|
|
277
|
-
[e]: !0,
|
|
278
|
-
...r
|
|
279
|
-
}
|
|
280
|
-
}),
|
|
275
|
+
getUserSystemLogOptions: (t) => u.get("/".concat(t.userId, "/system-logs/options"), { params: t }),
|
|
281
276
|
postCreateUser: (t) => {
|
|
282
277
|
const e = { "Content-Type": "multipart/form-data" };
|
|
283
278
|
return u.post("", t, { headers: e });
|
package/package.json
CHANGED
package/src/dto/user.dto.d.ts
CHANGED
|
@@ -66,12 +66,9 @@ export interface PutChangePasswordBody {
|
|
|
66
66
|
oldPassword: string;
|
|
67
67
|
newPassword: string;
|
|
68
68
|
}
|
|
69
|
-
export interface
|
|
69
|
+
export interface GetUserSystemLogOptionsParam {
|
|
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,15 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { CreateUserBody, EditUserBody, GetUserDetailResponse, GetUserOptionsParam, GetUserOptionsResponse,
|
|
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: (
|
|
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>;
|