@tagsamurai/gsts-api-services 2.0.1-alpha.12 → 2.0.1-alpha.13
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
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { DropdownOption } from '../types/options.type';
|
|
3
2
|
import { FetchDetailResponse, FetchListResponse } from '../types/fetchResponse.type';
|
|
4
3
|
import { CreateEditDivisionPayload, CreateEditPositionPayload, GetDivisionListParams, GetPositionListParams, LoginPayload, SetPasswordPayload, CreateUserPayload, GetGlobalUserListParams, GetGlobalUserOptionsParams, SetActiveGlobalUserPayload, EditUserPayload, EditUserFcmTokenPayload, ResendActivationEmailPayload, ChangePasswordPayload, ModuleAuthPayload, GetConcurrentUsersParams, LogoutSessionPayload } from '../dto/iam.dto';
|
|
5
|
-
import { PositionList, LoginResponse, RequestOtpResponse, RequestResetLinkResponse, DivisionList, DivisionListDetail, GlobalUserList, GlobalUserOptions, GlobalUserDetail, LoginModuleResponse, ConcurrentUserList, VerifyTokenResponse, PositionDetail, ChangePasswordResponse } from '../types/iam.type';
|
|
4
|
+
import { PositionList, LoginResponse, RequestOtpResponse, RequestResetLinkResponse, DivisionList, DivisionListDetail, GlobalUserList, GlobalUserOptions, GlobalUserDetail, LoginModuleResponse, ConcurrentUserList, VerifyTokenResponse, PositionDetail, ChangePasswordResponse, Position, Division } from '../types/iam.type';
|
|
6
5
|
declare const IamServices: {
|
|
7
6
|
login: (payload: LoginPayload) => Promise<AxiosResponse<FetchDetailResponse<LoginResponse>>>;
|
|
8
7
|
logout: () => Promise<AxiosResponse>;
|
|
@@ -36,8 +35,8 @@ declare const IamServices: {
|
|
|
36
35
|
loginModule: (payload: ModuleAuthPayload) => Promise<AxiosResponse<FetchDetailResponse<LoginModuleResponse>>>;
|
|
37
36
|
getConcurrentUsers: (params: GetConcurrentUsersParams, moduleId?: string) => Promise<AxiosResponse<FetchDetailResponse<ConcurrentUserList>>>;
|
|
38
37
|
logoutSession: (payload: LogoutSessionPayload, moduleId?: string) => Promise<AxiosResponse>;
|
|
39
|
-
getPositionDropdown: () => Promise<AxiosResponse<FetchDetailResponse<
|
|
40
|
-
getDivisionDropdown: () => Promise<AxiosResponse<FetchDetailResponse<
|
|
38
|
+
getPositionDropdown: () => Promise<AxiosResponse<FetchDetailResponse<Position[]>>>;
|
|
39
|
+
getDivisionDropdown: () => Promise<AxiosResponse<FetchDetailResponse<Division[]>>>;
|
|
41
40
|
exportPositionTable: () => Promise<AxiosResponse<Blob>>;
|
|
42
41
|
exportDivisionTable: () => Promise<AxiosResponse<Blob>>;
|
|
43
42
|
exportUserTable: () => Promise<AxiosResponse<Blob>>;
|
package/src/types/iam.type.d.ts
CHANGED
|
@@ -141,4 +141,12 @@ export interface ConcurrentUserList {
|
|
|
141
141
|
activeSessions: ConcurrentUser[];
|
|
142
142
|
count: number;
|
|
143
143
|
}
|
|
144
|
+
interface DropdownOption {
|
|
145
|
+
_id: string;
|
|
146
|
+
name: string;
|
|
147
|
+
}
|
|
148
|
+
export interface Position extends DropdownOption {
|
|
149
|
+
}
|
|
150
|
+
export interface Division extends DropdownOption {
|
|
151
|
+
}
|
|
144
152
|
export {};
|