@skysoftware-co/bayan-hr-widgets-ui 1.0.17 → 1.0.18

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,19 @@
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 { EntitlementsIndemnity, EntitlementsMedicalInsurance, EntitlementsTicket, EntitlementsVacation, EventOption, 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';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class HRSelfWidgetsService {
9
10
  private http;
10
11
  private readonly bankInformationCacheService;
12
+ private readonly entitlementsCacheService;
11
13
  private readonly jobInformationCacheService;
12
14
  private readonly personalInformationCacheService;
13
15
  private readonly headers;
14
- constructor(http: HttpClient, bankInformationCacheService: BankInformationCacheService, jobInformationCacheService: JobInformationCacheService, personalInformationCacheService: PersonalInformationCacheService);
16
+ constructor(http: HttpClient, bankInformationCacheService: BankInformationCacheService, entitlementsCacheService: EntitlementsCacheService, jobInformationCacheService: JobInformationCacheService, personalInformationCacheService: PersonalInformationCacheService);
15
17
  getMainDetails(baseUrl: string): Observable<any>;
16
18
  getUpcomingEvents(baseUrl: string, eventOption: EventOption): Observable<any>;
17
19
  getCalendar(baseUrl: string, month: number, year: number, monthsCount: number): Observable<any>;
@@ -28,6 +30,10 @@ export declare class HRSelfWidgetsService {
28
30
  clearPersonalInformationCache(): void;
29
31
  clearJobInformationCache(): void;
30
32
  getVacationSummary(baseUrl: string): Observable<any>;
33
+ getEntitlementsVacation(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsVacation[] | null>;
34
+ getEntitlementsIndemnity(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsIndemnity | null>;
35
+ getEntitlementsTicket(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsTicket | null>;
36
+ getEntitlementsMedicalInsurance(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsMedicalInsurance | null>;
31
37
  static ɵfac: i0.ɵɵFactoryDeclaration<HRSelfWidgetsService, never>;
32
38
  static ɵprov: i0.ɵɵInjectableDeclaration<HRSelfWidgetsService>;
33
39
  }
@@ -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
+ }
@@ -186,3 +186,60 @@ 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
+ };
233
+ export type ScheduleRequestsResponse = {
234
+ PendingVacationRequests: {
235
+ VacationTypeName: string;
236
+ Color: string;
237
+ StartDate: Date;
238
+ EndDate: Date;
239
+ }[];
240
+ PendingEventRequests: {
241
+ Description: string;
242
+ StartDate: Date;
243
+ EndDate: Date;
244
+ }[];
245
+ };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@skysoftware-co/bayan-hr-widgets-ui",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "19.2.14",
6
6
  "@angular/core": "19.2.14",
7
7
  "@ngx-translate/core": ">=15.0.0",
8
- "@skysoftware-co/sky-components-ui": "^1.3.1"
8
+ "@skysoftware-co/sky-components-ui": "^1.3.2"
9
9
  },
10
10
  "peerDependenciesMeta": {
11
11
  "@ngx-translate/core": {