@tagsamurai/gsts-api-services 2.0.1-alpha.7 → 2.0.1-alpha.9
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/package.json
CHANGED
package/src/dto/iam.dto.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryParams } from '../types/fetchResponse.type';
|
|
2
|
-
import { ModuleAccess } from '../types/iam.type';
|
|
2
|
+
import { GlobalUserOptions, ModuleAccess } from '../types/iam.type';
|
|
3
3
|
export interface LoginPayload {
|
|
4
4
|
email: string;
|
|
5
5
|
password: string | null;
|
|
@@ -51,12 +51,7 @@ export interface GetGlobalUserListParams extends BaseParams {
|
|
|
51
51
|
modifiedBy?: string[];
|
|
52
52
|
updatedAt?: string[];
|
|
53
53
|
}
|
|
54
|
-
export
|
|
55
|
-
isActiveOptions?: boolean;
|
|
56
|
-
positionOptions?: boolean;
|
|
57
|
-
divisionOptions?: boolean;
|
|
58
|
-
modifiedByOptions?: boolean;
|
|
59
|
-
}
|
|
54
|
+
export type GetGlobalUserOptionsParams = Partial<Record<keyof GlobalUserOptions, boolean>>;
|
|
60
55
|
export interface SetActiveGlobalUserPayload {
|
|
61
56
|
isActive: boolean;
|
|
62
57
|
}
|
|
@@ -11,7 +11,7 @@ declare const IamServices: {
|
|
|
11
11
|
requestResetLink: (email: string) => Promise<AxiosResponse<RequestResetLinkResponse>>;
|
|
12
12
|
setPassword: (payload: SetPasswordPayload) => Promise<AxiosResponse>;
|
|
13
13
|
confirmEmailChange: (token: string) => Promise<AxiosResponse>;
|
|
14
|
-
cancelEmailChange: (
|
|
14
|
+
cancelEmailChange: (id: string) => Promise<AxiosResponse>;
|
|
15
15
|
getPositionList: (params: GetPositionListParams) => Promise<AxiosResponse<FetchListResponse<PositionList>>>;
|
|
16
16
|
getPositionDetail: (id: string) => Promise<AxiosResponse<FetchDetailResponse<PositionDetail>>>;
|
|
17
17
|
createPosition: (payload: CreateEditPositionPayload) => Promise<AxiosResponse>;
|