wfm-mobile-core
Version:
WFM Mobile Core
40 lines (39 loc) • 1.88 kB
TypeScript
import { HalLink, HalResource } from 'hal-types';
import { EFetchingStatus } from '../enums/EFetchingStatus';
import { DataDay, IBioRecord, IBioRecordsResourceList, IEmployeeHours, IEmployeePosition, IEmployeeTags, IEventType, IOrgUnit, IResourceEmployeePositions, IResourceTags, IUserEmployee, IUserTagsLinks } from '../interfaces';
export declare class UserApi {
static userEmployee: IUserEmployee;
static error: {};
static totalArrayByRender: DataDay[];
static userLinks: {
[rel: string]: HalLink | HalLink[];
};
static position: string;
static positionCategoryId: number;
static employeePositions: IEmployeePosition[];
static orgUnitId: number;
static eventTypes: IEventType[];
static employeeHours: IEmployeeHours;
static isComplete: boolean;
static userTags: string;
static userTagsLinks: IUserTagsLinks;
static availableTags: string[];
static bioRecord: IBioRecord;
static fetchingStatusUser: EFetchingStatus;
static setFetchingUserStatus(newStatus: EFetchingStatus): void;
private static rejected;
private static resolved;
static getUser({ startDate, endDate }: {
[key: string]: string;
}): Promise<IUserEmployee | Error>;
static getEventTypes(): Promise<IEventType[] | Error>;
static getEmployeeHours(): Promise<IEmployeeHours | Error>;
static getUserEmployeePositions(): Promise<IResourceEmployeePositions>;
static getUserTags(): Promise<IResourceTags | Error>;
static getAvailableTags(): Promise<HalResource | Error>;
static getUserBio(): Promise<IBioRecordsResourceList | IOrgUnit | Error>;
static putUserTags(link: string, tags: IEmployeeTags | IUserEmployee): Promise<Response>;
private static shiftAction;
static putUserEmployee(link: string, userEmployee: IUserEmployee): Promise<Response>;
private static loadUserData;
}