@skysoftware-co/bayan-hr-widgets-ui 1.0.19 → 1.0.21

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.
@@ -1,17 +1,21 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { EventOption, JobInformationContract, JobInformationMain, JobInformationSalary, JobInformationServiceCharge, MyBankInfo, PersonalInfoAddressDetails, PersonalInfoContactDetails, PersonalInfoMainDetails } from '../shared/types/common';
3
+ import { Degree, EntitlementsIndemnity, EntitlementsMedicalInsurance, EntitlementsTicket, EntitlementsVacation, EventOption, Experience, JobInformationContract, JobInformationMain, JobInformationSalary, JobInformationServiceCharge, MyBankInfo, PersonalInfoAddressDetails, PersonalInfoContactDetails, PersonalInfoMainDetails } from '../shared/types/common';
4
4
  import { BankInformationCacheService } from '../shared/services/bank-information-cache.service';
5
+ import { EntitlementsCacheService } from '../shared/services/entitlements-cache.service';
5
6
  import { JobInformationCacheService } from '../shared/services/job-information-cache.service';
6
7
  import { PersonalInformationCacheService } from '../shared/services/personal-information-cache.service';
8
+ import { QualificationsCacheService } from '../shared/services/qualifications-cache.service';
7
9
  import * as i0 from "@angular/core";
8
10
  export declare class HRSelfWidgetsService {
9
11
  private http;
10
12
  private readonly bankInformationCacheService;
13
+ private readonly entitlementsCacheService;
11
14
  private readonly jobInformationCacheService;
12
15
  private readonly personalInformationCacheService;
16
+ private readonly qualificationsCacheService;
13
17
  private readonly headers;
14
- constructor(http: HttpClient, bankInformationCacheService: BankInformationCacheService, jobInformationCacheService: JobInformationCacheService, personalInformationCacheService: PersonalInformationCacheService);
18
+ constructor(http: HttpClient, bankInformationCacheService: BankInformationCacheService, entitlementsCacheService: EntitlementsCacheService, jobInformationCacheService: JobInformationCacheService, personalInformationCacheService: PersonalInformationCacheService, qualificationsCacheService: QualificationsCacheService);
15
19
  getMainDetails(baseUrl: string): Observable<any>;
16
20
  getUpcomingEvents(baseUrl: string, eventOption: EventOption): Observable<any>;
17
21
  getCalendar(baseUrl: string, month: number, year: number, monthsCount: number): Observable<any>;
@@ -28,6 +32,12 @@ export declare class HRSelfWidgetsService {
28
32
  clearPersonalInformationCache(): void;
29
33
  clearJobInformationCache(): void;
30
34
  getVacationSummary(baseUrl: string): Observable<any>;
35
+ getEntitlementsVacations(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsVacation[] | null>;
36
+ getEntitlementsIndemnity(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsIndemnity | null>;
37
+ getEntitlementsTicket(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsTicket | null>;
38
+ getEntitlementsMedicalInsurance(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsMedicalInsurance | null>;
39
+ getEmployeeDegrees(baseUrl: string, forceRefresh?: boolean): Observable<Degree[]>;
40
+ getEmployeeExperiences(baseUrl: string, forceRefresh?: boolean): Observable<Experience[]>;
31
41
  static ɵfac: i0.ɵɵFactoryDeclaration<HRSelfWidgetsService, never>;
32
42
  static ɵprov: i0.ɵɵInjectableDeclaration<HRSelfWidgetsService>;
33
43
  }
@@ -0,0 +1,22 @@
1
+ import { Observable } from 'rxjs';
2
+ import { EntitlementsIndemnity, EntitlementsMedicalInsurance, EntitlementsTicket, EntitlementsVacation } from '../types/common';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EntitlementsCacheService {
5
+ private baseUrl;
6
+ private vacationDetails$;
7
+ private indemnityDetails$;
8
+ private ticketDetails$;
9
+ private medicalInsuranceDetails$;
10
+ getVacationDetails(baseUrl: string): Observable<EntitlementsVacation[] | null> | null;
11
+ setVacationDetails(baseUrl: string, value: Observable<EntitlementsVacation[] | null>): void;
12
+ getIndemnityDetails(baseUrl: string): Observable<EntitlementsIndemnity | null> | null;
13
+ setIndemnityDetails(baseUrl: string, value: Observable<EntitlementsIndemnity | null>): void;
14
+ getTicketDetails(baseUrl: string): Observable<EntitlementsTicket | null> | null;
15
+ setTicketDetails(baseUrl: string, value: Observable<EntitlementsTicket | null>): void;
16
+ getMedicalInsuranceDetails(baseUrl: string): Observable<EntitlementsMedicalInsurance | null> | null;
17
+ setMedicalInsuranceDetails(baseUrl: string, value: Observable<EntitlementsMedicalInsurance | null>): void;
18
+ clear(): void;
19
+ private ensureBaseUrl;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntitlementsCacheService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<EntitlementsCacheService>;
22
+ }
@@ -0,0 +1,16 @@
1
+ import { Observable } from 'rxjs';
2
+ import { Degree, Experience } from '../types/common';
3
+ import * as i0 from "@angular/core";
4
+ export declare class QualificationsCacheService {
5
+ private baseUrl;
6
+ private degrees$;
7
+ private experiences$;
8
+ getDegrees(baseUrl: string): Observable<Degree[]> | null;
9
+ setDegrees(baseUrl: string, value: Observable<Degree[]>): void;
10
+ getExperiences(baseUrl: string): Observable<Experience[]> | null;
11
+ setExperiences(baseUrl: string, value: Observable<Experience[]>): void;
12
+ clear(): void;
13
+ private ensureBaseUrl;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<QualificationsCacheService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<QualificationsCacheService>;
16
+ }
@@ -186,6 +186,50 @@ export declare enum VacationPopupType {
186
186
  Upcoming = 1,
187
187
  ExpectedToReturn = 2
188
188
  }
189
+ export type EntitlementsVacation = {
190
+ VacationTypeName: string;
191
+ EntitlementDays: string;
192
+ };
193
+ export type EntitlementsIndemnity = {
194
+ IsEligibleForIndemnity: boolean | null;
195
+ IndemnityServiceYears: number | null;
196
+ IndemnityStartDate: Date | null;
197
+ IndemnitySalary: number | null;
198
+ };
199
+ export type EmployeeTicketDetails = {
200
+ EmployeeFirstName: string | null;
201
+ TicketSectorName: string | null;
202
+ TicketClassName: string | null;
203
+ MonthsPerTicketEntitlement: number | null;
204
+ };
205
+ export type DependantTicketDetails = {
206
+ DependantName: string | null;
207
+ DependantTypeName: string | null;
208
+ MonthsPerTicketEntitlement: number | null;
209
+ };
210
+ export type EntitlementsTicket = {
211
+ EmployeeTicketDetails: EmployeeTicketDetails | null;
212
+ DependantTicketDetails: DependantTicketDetails[] | null;
213
+ };
214
+ export type EmployeeMedicalInsurance = {
215
+ EmployeeFirstName: string | null;
216
+ MedicalInsuranceClassName: string | null;
217
+ MedicalInsuranceNumber: string | null;
218
+ CoverageDate: Date | null;
219
+ };
220
+ export type DependantsMedicalInsurance = {
221
+ DependantName: string | null;
222
+ DependantTypeName: string | null;
223
+ MedicalInsuranceClassName: string | null;
224
+ MedicalInsuranceNumber: string | null;
225
+ CoverageDate: Date | null;
226
+ };
227
+ export type EntitlementsMedicalInsurance = {
228
+ EmployeeMedicalInsurance: EmployeeMedicalInsurance | null;
229
+ DependantsMedicalInsurance: DependantsMedicalInsurance[] | null;
230
+ TotalEmployeeShare: number | null;
231
+ TotalEmployerShare: number | null;
232
+ };
189
233
  export type ScheduleRequestsResponse = {
190
234
  PendingVacationRequests: {
191
235
  VacationTypeName: string;
@@ -199,3 +243,23 @@ export type ScheduleRequestsResponse = {
199
243
  EndDate: Date;
200
244
  }[];
201
245
  };
246
+ export type DocumentModel = {
247
+ Key: string;
248
+ ContentType: string;
249
+ };
250
+ export type Degree = {
251
+ DegreeName: string;
252
+ DegreeYear: string;
253
+ CountryName: string;
254
+ Specialty: string | null;
255
+ Institute: string | null;
256
+ Document: DocumentModel | null;
257
+ };
258
+ export type Experience = {
259
+ StartDate: string | Date;
260
+ EndDate: string | Date;
261
+ Employer: string;
262
+ Position: string;
263
+ TerminationReason: string;
264
+ Document: DocumentModel | null;
265
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skysoftware-co/bayan-hr-widgets-ui",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "19.2.14",
6
6
  "@angular/core": "19.2.14",