@mis-wis/common 0.0.1

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.
Files changed (50) hide show
  1. package/README.md +24 -0
  2. package/bundles/mis-wis-common.umd.js +696 -0
  3. package/bundles/mis-wis-common.umd.js.map +1 -0
  4. package/bundles/mis-wis-common.umd.min.js +16 -0
  5. package/bundles/mis-wis-common.umd.min.js.map +1 -0
  6. package/esm2015/lib/components/loader/loader.component.js +14 -0
  7. package/esm2015/lib/components/sidenav/sidenav.component.js +14 -0
  8. package/esm2015/lib/constants/emp-web-exp.constants.js +5 -0
  9. package/esm2015/lib/functions/cookie.function.js +23 -0
  10. package/esm2015/lib/functions/nav-filter.function.js +11 -0
  11. package/esm2015/lib/interceptors/auth.interceptor.js +41 -0
  12. package/esm2015/lib/models/configurations.model.js +2 -0
  13. package/esm2015/lib/models/env.model.js +3 -0
  14. package/esm2015/lib/modules/logger/logger.constant.js +6 -0
  15. package/esm2015/lib/modules/logger/logger.functions.js +14 -0
  16. package/esm2015/lib/modules/logger/logger.model.js +2 -0
  17. package/esm2015/lib/modules/logger/logger.module.js +30 -0
  18. package/esm2015/lib/modules/logger/logger.service.js +50 -0
  19. package/esm2015/lib/services/auth.service.js +16 -0
  20. package/esm2015/lib/services/configuration.service.js +13 -0
  21. package/esm2015/lib/services/http.service.js +26 -0
  22. package/esm2015/lib/services/loader.service.js +64 -0
  23. package/esm2015/lib/wis-common.module.js +29 -0
  24. package/esm2015/mis-wis-common.js +10 -0
  25. package/esm2015/public-api.js +14 -0
  26. package/fesm2015/mis-wis-common.js +332 -0
  27. package/fesm2015/mis-wis-common.js.map +1 -0
  28. package/lib/components/loader/loader.component.d.ts +6 -0
  29. package/lib/components/sidenav/sidenav.component.d.ts +5 -0
  30. package/lib/constants/emp-web-exp.constants.d.ts +4 -0
  31. package/lib/functions/cookie.function.d.ts +13 -0
  32. package/lib/functions/nav-filter.function.d.ts +2 -0
  33. package/lib/interceptors/auth.interceptor.d.ts +11 -0
  34. package/lib/models/configurations.model.d.ts +470 -0
  35. package/lib/models/env.model.d.ts +11 -0
  36. package/lib/modules/logger/logger.constant.d.ts +5 -0
  37. package/lib/modules/logger/logger.functions.d.ts +2 -0
  38. package/lib/modules/logger/logger.model.d.ts +1 -0
  39. package/lib/modules/logger/logger.module.d.ts +5 -0
  40. package/lib/modules/logger/logger.service.d.ts +15 -0
  41. package/lib/services/auth.service.d.ts +6 -0
  42. package/lib/services/configuration.service.d.ts +3 -0
  43. package/lib/services/http.service.d.ts +12 -0
  44. package/lib/services/loader.service.d.ts +11 -0
  45. package/lib/wis-common.module.d.ts +5 -0
  46. package/mis-wis-common.d.ts +11 -0
  47. package/mis-wis-common.metadata.json +1 -0
  48. package/package.json +19 -0
  49. package/public-api.d.ts +10 -0
  50. package/styles.scss +3 -0
@@ -0,0 +1,470 @@
1
+ export declare namespace NsWISConfigurations {
2
+ interface IConfigurations {
3
+ BUSettings: IBUSettings;
4
+ UserSettings: IUserSettings;
5
+ flattenedSettings: IFlattenedSettings;
6
+ common: ICommonConfigurations;
7
+ }
8
+ interface IBUSettings {
9
+ features?: IFeaturesEntity[] | null;
10
+ }
11
+ interface IFeaturesEntity {
12
+ driverExoPhoneNumber?: string | null;
13
+ thdExoPhoneNumber?: string | null;
14
+ contactDriverMobileAppEnabled?: boolean | null;
15
+ contactDriverForLogoutMobileAppDisabled?: boolean | null;
16
+ contactThdMobileAppEnabled?: boolean | null;
17
+ id: string;
18
+ enabled: boolean;
19
+ addressChangeAllowed?: boolean | null;
20
+ frequencyScannerDensity?: number | null;
21
+ showFAQ?: boolean | null;
22
+ signinEnabled?: boolean | null;
23
+ showShuttlePoints?: boolean | null;
24
+ showNodalPoint?: boolean | null;
25
+ separateLoginLogoutShuttlePoints?: boolean | null;
26
+ editOnlyGeocodes?: boolean | null;
27
+ businessUnitLogo?: string | null;
28
+ profileValidationEnabled?: boolean | null;
29
+ teamManagerEnabled?: boolean | null;
30
+ transportPolicyEnabled?: boolean | null;
31
+ displayTags?: boolean | null;
32
+ profileCompletionEnabled?: boolean | null;
33
+ appFeedbackEnable?: boolean | null;
34
+ daysBefore?: number | null;
35
+ daysAfter?: number | null;
36
+ editable?: boolean | null;
37
+ cancellable?: boolean | null;
38
+ multiOfficeEnabled?: boolean | null;
39
+ feedbackEnabled?: boolean | null;
40
+ acFeedbackEnabled?: boolean | null;
41
+ adhocEnabled?: boolean | null;
42
+ notificationEnabled?: boolean | null;
43
+ verizonHackShiftDisplay?: boolean | null;
44
+ verizonHackOffice?: string | null;
45
+ verizonHackTimeDiffMinutes?: number | null;
46
+ showEmployeeProfileOfficeOnly?: boolean | null;
47
+ scheduleWithShuttleStop?: boolean | null;
48
+ bulkScheduleAllowedDays?: string | null;
49
+ isBulkScheduleEditable?: boolean | null;
50
+ featureOptInEnabled?: boolean | null;
51
+ indemnificationDirectionFor?: string | null;
52
+ indemnificationEnabled?: boolean | null;
53
+ indemnificationEnabledFor?: string | null;
54
+ indemnificationEnabledMale?: boolean | null;
55
+ indemnificationStartWindow?: string | null;
56
+ indemnificationStopWindow?: string | null;
57
+ spotBookingEnabled?: boolean | null;
58
+ shiftPairingEnabled?: boolean | null;
59
+ busSolutionEnabled?: boolean | null;
60
+ additionalShiftEnabled?: boolean | null;
61
+ additionalShiftLagMinutes?: number | null;
62
+ adhocAlwaysEnabled?: boolean | null;
63
+ adhocRequestsPerDay?: boolean | null;
64
+ externalLeaveIntegrationEnabled?: boolean | null;
65
+ paginationEnabled?: boolean | null;
66
+ adhocToggleDisplayText?: string | null;
67
+ etsFeatureAdhocShiftAlwaysAvailable?: boolean | null;
68
+ showWeeklyOff?: boolean | null;
69
+ showTripOtp?: boolean | null;
70
+ cabDriverHealthStatus?: boolean | null;
71
+ adhocOtp?: boolean | null;
72
+ longPressDuration?: number | null;
73
+ trackingEnabled?: boolean | null;
74
+ trackingIntervalSeconds?: number | null;
75
+ trackingStopTimeMinutes?: number | null;
76
+ minTrackingDistanceChange?: number | null;
77
+ parallelCallEnabled?: boolean | null;
78
+ frequency?: number | null;
79
+ mapMilestoneDrawTime?: number | null;
80
+ retryTimeLowerLimit?: number | null;
81
+ retryTimeUpperLimit?: number | null;
82
+ shuttleTrackingEnabled?: boolean | null;
83
+ shuttleTrackingWithAllShuttleStopsEnabled?: boolean | null;
84
+ showEmployeeDetailsInTrackingPageEnabled?: boolean | null;
85
+ trackingText?: string | null;
86
+ showCopassengerMarkersOnTrackingPage?: boolean | null;
87
+ showEtaOnTrackingPage?: boolean | null;
88
+ minTrackingFrequencyInSeconds?: number | null;
89
+ shareRideEnabled?: boolean | null;
90
+ useMobileProxyServer?: boolean | null;
91
+ waypointsApiKey?: string | null;
92
+ s3PoolId?: string | null;
93
+ placesApiKey?: string | null;
94
+ notificationAPIEnabled?: boolean | null;
95
+ backgroundAppDataSecurity?: boolean | null;
96
+ shouldPreventBackgroundView?: boolean | null;
97
+ b2b2cRegistrationEnabled?: boolean | null;
98
+ bounceRentalEnabled?: boolean | null;
99
+ spotWebpageEnable?: boolean | null;
100
+ showTripHistory?: boolean | null;
101
+ enableRateLastTrip?: boolean | null;
102
+ isTripRatingMandatory?: boolean | null;
103
+ communicationRegistryEnabled?: boolean | null;
104
+ digiPassDeclarationUrl?: string | null;
105
+ timeIntervalInMinutes?: number | null;
106
+ url?: string | null;
107
+ generateGatepassAdvanceCutOff?: number | null;
108
+ generateGatepassDelayCutOff?: number | null;
109
+ gatepassExpiryMinutes?: number | null;
110
+ bookingListWindowDays?: number | null;
111
+ scheduleEnabled?: boolean | null;
112
+ parkingEnabled?: boolean | null;
113
+ editBookingEnabled?: boolean | null;
114
+ disableBookingEligibility?: boolean | null;
115
+ disableBookingWillingness?: boolean | null;
116
+ seatBookingEnabled?: boolean | null;
117
+ orderOfChallenges?: string | null;
118
+ wfhBookingAllowed?: boolean | null;
119
+ wfhCancelCutoffInMinute?: number | null;
120
+ wfhClockOutCutoffInMinute?: number | null;
121
+ floorOccupancy?: boolean | null;
122
+ createBookingEnabled?: boolean | null;
123
+ seatMandatory?: boolean | null;
124
+ showLastSanitizationTime?: boolean | null;
125
+ editableField?: string | null;
126
+ aarogyaSetuAppInstallationOrStatusEnabled?: boolean | null;
127
+ IPBasedCheckinEnabled?: boolean;
128
+ }
129
+ interface IUserSettings {
130
+ receivingNotifications: boolean;
131
+ showPremiumSubscriptionButton: boolean;
132
+ normalShiftPermission: boolean;
133
+ adhocShiftPermission: boolean;
134
+ teamManagerValue: boolean;
135
+ teamManagerUrl: string;
136
+ shuttleUrl: string;
137
+ bounceVehicleMapping: string;
138
+ consentMap: IConsentMap;
139
+ bookingApprovalPermission: boolean;
140
+ approvalWebViewUrl: string;
141
+ }
142
+ interface IConsentMap {
143
+ timeIntervalInMinutes: string;
144
+ url: string;
145
+ enabled: string;
146
+ }
147
+ interface IFlattenedSettings {
148
+ employeeFloorPlanUrl: string;
149
+ spocCancelCutOff: string;
150
+ directCheckinStartCutOffInMinute: number;
151
+ isSeatRecommenderEnabled: boolean;
152
+ cutoffTimeBetweenWISAppFeedback: ICutoffTimeBetweenWISAppFeedback;
153
+ allowBookingAfterSignOut: boolean;
154
+ contextUrlOfWebView: string;
155
+ showCabs: boolean;
156
+ TIME_FORMAT: string;
157
+ isSeatBookingAssignment: boolean;
158
+ allowedBookingForContainmentZone: string;
159
+ numOfDays: string;
160
+ showDigipassDetailsWithoutQRCode: boolean;
161
+ tokenCacheTimeInMinutes: number;
162
+ checkInWithoutAarogyasetuValidation: boolean;
163
+ autoLogoutEnabled: boolean;
164
+ employeeEndTimeBookingCutoff: string;
165
+ seatbookingassignment: boolean;
166
+ shareRideCallDriver: boolean;
167
+ enableGeofenceCheckForCheckin: boolean;
168
+ cutoffTimeForSkipWISAppFeedback: number;
169
+ isCalendarInviteEnabled: boolean;
170
+ showParking: boolean;
171
+ empID: string;
172
+ suffixWebViewUrl: string;
173
+ seatValidation: boolean;
174
+ jobTitleWiseCalenderInDays: IJobTitleWiseCalenderInDays;
175
+ cacheTimeInHoursOfAarogyaSetuUserStatus: number;
176
+ spocScheduleCutOff: string;
177
+ mealPlanningEnabled: boolean;
178
+ showSanitizationDetails: boolean;
179
+ autoSeatCheckOutEnabled: boolean;
180
+ wfhMinBetweenClockinClockout: number;
181
+ wfhBookingAllowed: boolean;
182
+ approvalFlowEnabled: boolean;
183
+ allowBookingConversionFromWfhToWfo: boolean;
184
+ isPhoneValidationOptional: boolean;
185
+ airtelBuid: string;
186
+ autoSeatCheckOutMinutes: number;
187
+ webViewUrl: string;
188
+ showEmployeeSearchOnSeatBooking: boolean;
189
+ minShiftDuration: number;
190
+ bookingEnabledOnTag: boolean;
191
+ maxShiftDuration: number;
192
+ bookingLogoutEditCutOff: string;
193
+ autoClockOutRemainder: boolean;
194
+ gender: string;
195
+ DATE_FORMAT: string;
196
+ emailToHrWhenTagChanged: boolean;
197
+ employeeScheduleCutoff: string;
198
+ wfhDisabled: boolean;
199
+ allowEmployeeToBooKAnySeatInBL: boolean;
200
+ autoAbsentMinutes: number;
201
+ USER_LOGOUT_ENABLED: boolean;
202
+ mobilityHealthStatus: string;
203
+ BOOKING_APPROVAL_CONSTRAINT: boolean;
204
+ listOfBuidForFilterConsumers?: string[] | null;
205
+ enableEmployeePreferences: boolean;
206
+ isCheckinNotificationEnabled: boolean;
207
+ DATE_FORMAT_SERVICES: string;
208
+ showDigipassOptionForDedicatedSeat: boolean;
209
+ maxBufferForCheckin: number;
210
+ email: string;
211
+ bookingPerDayEmp: number;
212
+ adminFloorPlanUrl: string;
213
+ autoClockOutRemainderMinutes: number;
214
+ dynamicBlockingAllowed: boolean;
215
+ enableBookingEmail: boolean;
216
+ CutOffTimeBetweenBookingsOnSeatInMinute: number;
217
+ gatepassDelaycutoff: number;
218
+ nodal: string;
219
+ qRScannerEndCutOffInMinute: number;
220
+ filterNoAvailableSeatInFloor: boolean;
221
+ isBulkScheduleEditable: boolean;
222
+ enableNewEmployeeExperience: boolean;
223
+ blockNumber: string;
224
+ teamCalendarEnabled: boolean;
225
+ showQRScanner: boolean;
226
+ wfhMinDurationForBooking: number;
227
+ isTripRatingMandatory: boolean;
228
+ blockGenerateDigiPassOnSeatMandatory: boolean;
229
+ adminAssignmentFloorPlanUrl: string;
230
+ sendEmailIneligibility: boolean;
231
+ deleteFutureSchedulesOnDeactivation: boolean;
232
+ minHoursAllowedForCheckin: number;
233
+ seatScanEnable: boolean;
234
+ directCheckinEndCutOffInMinute: number;
235
+ TIME_FORMAT_SERVICES: string;
236
+ timeDiffShiftsMin: number;
237
+ office: string;
238
+ isAppFeedbackEnabled: boolean;
239
+ wfhMaxDurationForBooking: number;
240
+ directCheckinExpiryInMinute: number;
241
+ employeeCancelCutOff: string;
242
+ autoAbsentHours: number;
243
+ forecastingEfficiancy: number;
244
+ mobileNumberLength: number;
245
+ landmark: string;
246
+ blockUserBasedOnNavigationType: boolean;
247
+ USER_CLOCK_OUT_REMAINDER_MINUTES: number;
248
+ wfhClockinBuffer: number;
249
+ bookingConversionCutOff: number;
250
+ autoAllocate: boolean;
251
+ multipleBookingsOnASeatInADayAllowed: boolean;
252
+ isBlSubblBuid: boolean;
253
+ wfhType: string;
254
+ isSeatValidationEnabled: boolean;
255
+ seatSanitizationCheck: boolean;
256
+ wfhClockinCutOffInMinute: number;
257
+ listOfEligibleBuidsForAutoClockout?: string[] | null;
258
+ seatMandatory: boolean;
259
+ wfhCancelCutOff: string;
260
+ showQRScannerMeetingCheckIn: boolean;
261
+ SHOW_TIMEZONE_VALUES: boolean;
262
+ name: string;
263
+ defaultLogoutShiftMinutes: number;
264
+ seatBookingV2: boolean;
265
+ qRScannerStartCutOffInMinute: number;
266
+ fileBasedAttendanceCutOffTimeInMinute: number;
267
+ qRScannerExpiry: number;
268
+ showOtherEmployeeDetailsOnSeat: boolean;
269
+ isAutoAbsentEnabled: boolean;
270
+ maxHoursAllowedForCheckin: number;
271
+ isAmenitiesFilter: boolean;
272
+ bookingEditCutOff: string;
273
+ approvalWebViewUrl: string;
274
+ autoLogoutMinutes: number;
275
+ homeGeocode: string;
276
+ showFabQRScanner: boolean;
277
+ mobile: string;
278
+ bufferTimeInSecondsOfAarogyaSetuUser: number;
279
+ listOfBusinessunitsForConfigurationMigration?: string[] | null;
280
+ isSeatValidationEnabledOnQrScan: boolean;
281
+ employeeCheckin: boolean;
282
+ isAutoLogoutEnabled: boolean;
283
+ defLogoutDuration: number;
284
+ allowBookingConversionFromWfoToWfh: boolean;
285
+ checkinType: string;
286
+ showRegistrationNumberInputFieldForParking: boolean;
287
+ meetingRoomsWidgetEnabled: boolean;
288
+ IPBasedCheckinEnabled?: boolean;
289
+ restrictBookingSingleDay?: boolean;
290
+ enableTransportByDefault?: boolean;
291
+ recurrenceBookingEnabled?: boolean;
292
+ enableGridFloorPlan?: boolean;
293
+ employeeStatusModuleEnabled?: boolean;
294
+ singleShiftOperations?: boolean;
295
+ hideUserActivityTime?: boolean;
296
+ showLanguageOptionInHamburgerMenu?: boolean;
297
+ }
298
+ interface ICutoffTimeBetweenWISAppFeedback {
299
+ employee: number;
300
+ manager: number;
301
+ admin: number;
302
+ }
303
+ interface IJobTitleWiseCalenderInDays {
304
+ "Vice President": string;
305
+ director: string;
306
+ "Seasonal Employee": string;
307
+ Exempt: string;
308
+ Associate: string;
309
+ MD: string;
310
+ }
311
+ interface ICommonConfigurations {
312
+ sendEmailIneligibility: boolean;
313
+ deleteFutureSchedulesOnDeactivation: boolean;
314
+ seatScanEnable: boolean;
315
+ cutoffTimeBetweenWISAppFeedback: ICutoffTimeBetweenWISAppFeedback;
316
+ autoSlotAllocate: boolean;
317
+ TIME_FORMAT_SERVICES: string;
318
+ office: string;
319
+ TIME_FORMAT: string;
320
+ isAppFeedbackEnabled: boolean;
321
+ autoAbsentHours: number;
322
+ checkInWithoutAarogyasetuValidation: boolean;
323
+ forecastingEfficiancy: number;
324
+ mobileNumberLength: number;
325
+ landmark: string;
326
+ shareRideCallDriver: boolean;
327
+ enableGeofenceCheckForCheckin: boolean;
328
+ cutoffTimeForSkipWISAppFeedback: number;
329
+ autoAllocate: boolean;
330
+ multipleBookingsOnASeatInADayAllowed: boolean;
331
+ isCalendarInviteEnabled: boolean;
332
+ empID: string;
333
+ isBlSubblBuid: boolean;
334
+ jobTitleWiseCalenderInDays: IJobTitleWiseCalenderInDays;
335
+ wfhType: string;
336
+ cacheTimeInHoursOfAarogyaSetuUserStatus: number;
337
+ mealPlanningEnabled: boolean;
338
+ isSeatValidationEnabled: boolean;
339
+ showSanitizationDetails: boolean;
340
+ vaccinationMaxApprovalDays: number;
341
+ seatSanitizationCheck: boolean;
342
+ wfhClockinCutOffInMinute: number;
343
+ wfhBookingAllowed: string;
344
+ approvalFlowEnabled: boolean;
345
+ listOfEligibleBuidsForAutoClockout?: string[] | null;
346
+ wfhCancelCutOff: string;
347
+ showQRScannerMeetingCheckIn: boolean;
348
+ isPhoneValidationOptional: boolean;
349
+ airtelBuid: string;
350
+ SHOW_TIMEZONE_VALUES: boolean;
351
+ name: string;
352
+ showEmployeeSearchOnSeatBooking: boolean;
353
+ defaultLogoutShiftMinutes: number;
354
+ bookingEnabledOnTag: boolean;
355
+ seatBookingV2: boolean;
356
+ bookingLogoutEditCutOff: string;
357
+ qRScannerStartCutOffInMinute: number;
358
+ gender: string;
359
+ DATE_FORMAT: string;
360
+ qRScannerExpiry: number;
361
+ showOtherEmployeeDetailsOnSeat: boolean;
362
+ isAutoAbsentEnabled: boolean;
363
+ isAmenitiesFilter: boolean;
364
+ mobilityHealthStatus: string;
365
+ bookingEditCutOff: string;
366
+ listOfBuidForFilterConsumers?: string[] | null;
367
+ isCheckinNotificationEnabled: boolean;
368
+ DATE_FORMAT_SERVICES: string;
369
+ email: string;
370
+ autoLogoutMinutes: number;
371
+ dynamicBlockingAllowed: boolean;
372
+ enableBookingEmail: boolean;
373
+ homeGeocode: string;
374
+ CutOffTimeBetweenBookingsOnSeatInMinute: number;
375
+ showFabQRScanner: boolean;
376
+ mobile: string;
377
+ bufferTimeInSecondsOfAarogyaSetuUser: number;
378
+ listOfBusinessunitsForConfigurationMigration?: string[] | null;
379
+ nodal: string;
380
+ isSeatValidationEnabledOnQrScan: boolean;
381
+ qRScannerEndCutOffInMinute: number;
382
+ filterNoAvailableSeatInFloor: boolean;
383
+ isAutoLogoutEnabled: boolean;
384
+ blockNumber: string;
385
+ teamCalendarEnabled: boolean;
386
+ showQRScanner: boolean;
387
+ blockGenerateDigiPassOnSeatMandatory: boolean;
388
+ employeeFloorPlanUrl: string;
389
+ directCheckinStartCutOffInMinute: number;
390
+ isSeatBookingAssignment: boolean;
391
+ enablePerpetualDigipassForAllUsers: boolean;
392
+ showDigipassDetailsWithoutQRCode: boolean;
393
+ tokenCacheTimeInMinutes: number;
394
+ autoLogoutEnabled: boolean;
395
+ autoSeatCheckOutEnabled: boolean;
396
+ showRegistrationNumberInputFieldForParking: boolean;
397
+ allowBookingConversionFromWfhToWfo: boolean;
398
+ autoSeatCheckOutMinutes: number;
399
+ enableRecurrenceOnTeamPlanner: boolean;
400
+ autoClockOutRemainder: boolean;
401
+ showSeparateDigipassForParking: boolean;
402
+ enableTimezoneWithOfficeName: boolean;
403
+ autoAbsentMinutes: number;
404
+ USER_LOGOUT_ENABLED: boolean;
405
+ BOOKING_APPROVAL_CONSTRAINT: boolean;
406
+ enableEmployeePreferences: boolean;
407
+ showDigipassOptionForDedicatedSeat: boolean;
408
+ showVaccinationOptionInSideMenu: boolean;
409
+ adminFloorPlanUrl: string;
410
+ autoClockOutRemainderMinutes: number;
411
+ sanitisationFloorPlanUrl: string;
412
+ isBulkScheduleEditable: boolean;
413
+ isTripRatingMandatory: boolean;
414
+ adminAssignmentFloorPlanUrl: string;
415
+ directCheckinEndCutOffInMinute: number;
416
+ attendanceManagementDisabled: boolean;
417
+ directCheckinExpiryInMinute: number;
418
+ blockUserBasedOnNavigationType: boolean;
419
+ USER_CLOCK_OUT_REMAINDER_MINUTES: number;
420
+ bookingConversionCutOff: number;
421
+ restrictRecurrenceForDaysInFuture: number;
422
+ maxBufferForOfficeBookingInMinutes: number;
423
+ blockUserIfNotVaccinated: boolean;
424
+ fileBasedAttendanceCutOffTimeInMinute: number;
425
+ showOtpWithoutDigipassGeneration: boolean;
426
+ promotionDisplayText: string;
427
+ promotionBannerUrl: string;
428
+ bookingForNonRegisteredEmpBySpoc: boolean;
429
+ lastAvailableBookingRangeInDays: number;
430
+ allowBookingConversionFromWfoToWfh: boolean;
431
+ checkinType: string;
432
+ }
433
+ interface ICutoffTimeBetweenWISAppFeedback {
434
+ employee: number;
435
+ manager: number;
436
+ admin: number;
437
+ }
438
+ interface IJobTitleWiseCalenderInDays {
439
+ "Vice President": string;
440
+ director: string;
441
+ "Seasonal Employee": string;
442
+ Exempt: string;
443
+ Associate: string;
444
+ MD: string;
445
+ }
446
+ interface IHostUrls {
447
+ empExpUi: string;
448
+ empExpStatic: string;
449
+ empExp: string;
450
+ }
451
+ interface ISidenavLink {
452
+ id: string;
453
+ icon: string;
454
+ stratusUrl: string;
455
+ etsUrl: string;
456
+ title: string;
457
+ canHavePrivileges?: string[];
458
+ canHaveBasedProperty?: string[];
459
+ mustHavePrivileges?: string[];
460
+ mustHaveBasedProperty?: string[];
461
+ hasExpander: boolean;
462
+ isExpanded: boolean;
463
+ hidden: boolean;
464
+ etsParentUrl?: string;
465
+ children: ISidenavLink[];
466
+ }
467
+ interface IFeaturesMap {
468
+ [key: string]: boolean;
469
+ }
470
+ }
@@ -0,0 +1,11 @@
1
+ /** @format */
2
+ export declare namespace NsWISCommon {
3
+ interface IEnv {
4
+ empExp: string;
5
+ tms: string;
6
+ }
7
+ interface IUserInfo {
8
+ buid: string;
9
+ empGuid: string;
10
+ }
11
+ }
@@ -0,0 +1,5 @@
1
+ /** @format */
2
+ export declare const CONSTANTS_LOGGER: {
3
+ APP_NAME: string;
4
+ ENV_VAR: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { TEnvName } from "./logger.model";
2
+ export declare function environmentHandler(env: TEnvName): string;
@@ -0,0 +1 @@
1
+ export declare type TEnvName = "dev" | "qa" | "prod" | "uat" | "prod-eu" | undefined;
@@ -0,0 +1,5 @@
1
+ import { ModuleWithProviders } from "@angular/core";
2
+ import { TEnvName } from "./logger.model";
3
+ export declare class LoggerModule {
4
+ static forChild(appName: string, env?: TEnvName): ModuleWithProviders<LoggerModule>;
5
+ }
@@ -0,0 +1,15 @@
1
+ import { TEnvName } from "./logger.model";
2
+ import { HttpClient } from "@angular/common/http";
3
+ export declare class LoggerService {
4
+ private http;
5
+ private appName;
6
+ private appEnv;
7
+ private cookies;
8
+ constructor(http: HttpClient, appName: string, appEnv: TEnvName);
9
+ useCookies(useCookies: boolean): void;
10
+ private logRequest;
11
+ private postLog;
12
+ info(data: any): void;
13
+ warn(data: any): void;
14
+ error(data: any, componentName: string, serviceUrl?: string): void;
15
+ }
@@ -0,0 +1,6 @@
1
+ import { NsWISCommon } from "../models/env.model";
2
+ export declare class AuthService {
3
+ userDetails: NsWISCommon.IUserInfo;
4
+ constructor();
5
+ init(user: NsWISCommon.IUserInfo): void;
6
+ }
@@ -0,0 +1,3 @@
1
+ export declare class ConfigurationService {
2
+ constructor();
3
+ }
@@ -0,0 +1,12 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { Observable } from "rxjs";
3
+ import { NsWISConfigurations } from "../models/configurations.model";
4
+ import { NsWISCommon } from "../models/env.model";
5
+ import { AuthService } from "./auth.service";
6
+ export declare class HttpService {
7
+ env: NsWISCommon.IEnv;
8
+ private auth;
9
+ private http;
10
+ constructor(env: NsWISCommon.IEnv, auth: AuthService, http: HttpClient);
11
+ getConfigurations(): Observable<NsWISConfigurations.IConfigurations>;
12
+ }
@@ -0,0 +1,11 @@
1
+ /** @format */
2
+ import { Overlay } from "@angular/cdk/overlay";
3
+ export declare class LoaderService {
4
+ private overlay;
5
+ private overlayRef;
6
+ loading: boolean;
7
+ constructor(overlay: Overlay);
8
+ show(message?: string): void;
9
+ hide(): void;
10
+ private calcLoaderProperties;
11
+ }
@@ -0,0 +1,5 @@
1
+ import { ModuleWithProviders } from "@angular/core";
2
+ import { NsWISCommon } from "./models/env.model";
3
+ export declare class WisCommonModule {
4
+ static forRoot(env: NsWISCommon.IEnv): ModuleWithProviders<WisCommonModule>;
5
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ export { LoaderComponent as ɵc } from './lib/components/loader/loader.component';
6
+ export { SidenavComponent as ɵd } from './lib/components/sidenav/sidenav.component';
7
+ export { CONSTANTS_WIS_COMMON as ɵf } from './lib/constants/emp-web-exp.constants';
8
+ export { NsWISCommon as ɵg } from './lib/models/env.model';
9
+ export { CONSTANTS_LOGGER as ɵa } from './lib/modules/logger/logger.constant';
10
+ export { TEnvName as ɵb } from './lib/modules/logger/logger.model';
11
+ export { HttpService as ɵe } from './lib/services/http.service';
@@ -0,0 +1 @@
1
+ {"__symbolic":"module","version":4,"exports":[{"from":"./lib/models/configurations.model"}],"metadata":{"AuthService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"init":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ConfigurationService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"filterNavList":{"__symbolic":"error","message":"Lambda not supported","line":2,"character":29,"module":"./lib/functions/nav-filter.function"},"getCookie":{"__symbolic":"function"},"setCookie":{"__symbolic":"function"},"removeCookie":{"__symbolic":"function"},"AuthInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":11,"character":29},{"__symbolic":"reference","module":"mis-design-system/toast","name":"ToastService","line":11,"character":60},{"__symbolic":"reference","name":"AuthService"}]}],"intercept":[{"__symbolic":"method"}]}},"LoaderService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/cdk/overlay","name":"Overlay","line":14,"character":31}]}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"calcLoaderProperties":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"LoggerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":12}],"providers":[]}]}],"members":{},"statics":{"forChild":{"__symbolic":"function","parameters":["appName","env"],"value":{"ngModule":{"__symbolic":"reference","name":"LoggerModule"},"providers":[{"provide":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"APP_NAME"},"useValue":{"__symbolic":"reference","name":"appName"}},{"provide":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"ENV_VAR"},"useValue":{"__symbolic":"reference","name":"env"}},{"__symbolic":"reference","name":"LoggerService"}]}}}},"LoggerService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":13,"character":5},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"APP_NAME"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":14,"character":5},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"ENV_VAR"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":12,"character":18},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵb"}]}],"useCookies":[{"__symbolic":"method"}],"logRequest":[{"__symbolic":"method"}],"postLog":[{"__symbolic":"method"}],"info":[{"__symbolic":"method"}],"warn":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"WisCommonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":12},{"__symbolic":"reference","module":"@angular/cdk/overlay","name":"OverlayModule","line":15,"character":26},{"__symbolic":"reference","module":"mis-crystal-design-system/loader","name":"LoaderModule","line":15,"character":41}],"providers":[{"__symbolic":"reference","name":"ɵe"}],"entryComponents":[{"__symbolic":"reference","name":"ɵc"}],"exports":[{"__symbolic":"reference","name":"ɵd"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["env"],"value":{"ngModule":{"__symbolic":"reference","name":"WisCommonModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵf"},"useValue":{"__symbolic":"reference","name":"env"}},{"__symbolic":"reference","name":"ConfigurationService"},{"__symbolic":"reference","name":"AuthService"},{"__symbolic":"reference","name":"LoaderService"}]}}}},"ɵa":{"APP_NAME":"wisLoggerApp","ENV_VAR":"wisLoggerEnv"},"ɵb":{"__symbolic":"interface"},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"mis-common-loader","template":"<div class=\"message-wrapper\" *ngIf=\"message; else noMessageLoader\">\n <span><mis-loader type=\"block\"></mis-loader></span>\n <p>{{ message }}</p>\n</div>\n<ng-template #noMessageLoader>\n <mis-loader></mis-loader>\n</ng-template>\n","styles":[".message-wrapper{max-width:343px;background-color:#fff;display:flex;flex-wrap:nowrap;align-items:center;padding:20px 16px;border-radius:6px}.message-wrapper span{position:relative;background-color:#fff;display:inline-block;width:40px;height:40px;margin-right:16px}.message-wrapper p{margin:0}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"wis-common-sidenav","template":"<div class=\"wis-sidenav-wrapper\">\n <div class=\"wis-sidenav-header\">\n <div class=\"wis-sidenav-header-logo\">\n <img src=\"assets/sidenav/assets/Wis-icon.svg\" alt=\"\" />\n </div>\n <div class=\"wis-sidenav-header-title\">\n <h1>WIS</h1>\n </div>\n </div>\n <div class=\"wis-sidenav-body\">\n <div class=\"wis-sidenav-body-item\">\n <div class=\"wis-sidenav-body-item-icon\">\n <i class=\"fas fa-home\"></i>\n </div>\n <div class=\"wis-sidenav-body-item-text\">\n <h3>Home</h3>\n </div>\n </div>\n <div class=\"wis-sidenav-body-item\">\n <div class=\"wis-sidenav-body-item-icon\">\n <i class=\"fas fa-user\"></i>\n </div>\n <div class=\"wis-sidenav-body-item-text\">\n <h3>Profile</h3>\n </div>\n </div>\n <div class=\"wis-sidenav-body-item\">\n <div class=\"wis-sidenav-body-item-icon\">\n <i class=\"fas fa-users\"></i>\n </div>\n <div class=\"wis-sidenav-body-item-text\">\n <h3>Users</h3>\n </div>\n </div>\n <div class=\"wis-sidenav-body-item\">\n <div class=\"wis-sidenav-body-item-icon\">\n <i class=\"fas fa-cog\"></i>\n </div>\n <div class=\"wis-sidenav-body-item-text\">\n <h3>Settings</h3>\n </div>\n </div>\n </div>\n</div>\n","styles":[".wis-sidenav-wrapper{width:72px;border-right:1px solid #e0e0e0}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":14,"character":15},"arguments":[{"__symbolic":"reference","name":"ɵf"}]}],null,null],"parameters":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵg"},"member":"IEnv"},{"__symbolic":"reference","name":"AuthService"},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":14,"character":115}]}],"getConfigurations":[{"__symbolic":"method"}]}},"ɵf":{"ENV_VAR":"wisCommonEnvironment"}},"origins":{"AuthService":"./lib/services/auth.service","ConfigurationService":"./lib/services/configuration.service","filterNavList":"./lib/functions/nav-filter.function","getCookie":"./lib/functions/cookie.function","setCookie":"./lib/functions/cookie.function","removeCookie":"./lib/functions/cookie.function","AuthInterceptor":"./lib/interceptors/auth.interceptor","LoaderService":"./lib/services/loader.service","LoggerModule":"./lib/modules/logger/logger.module","LoggerService":"./lib/modules/logger/logger.service","WisCommonModule":"./lib/wis-common.module","ɵa":"./lib/modules/logger/logger.constant","ɵb":"./lib/modules/logger/logger.model","ɵc":"./lib/components/loader/loader.component","ɵd":"./lib/components/sidenav/sidenav.component","ɵe":"./lib/services/http.service","ɵf":"./lib/constants/emp-web-exp.constants","ɵg":"./lib/models/env.model"},"importAs":"@mis-wis/common"}
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@mis-wis/common",
3
+ "main": "bundles/mis-wis-common.umd.js",
4
+ "version": "0.0.1",
5
+ "peerDependencies": {
6
+ "@angular/common": "^11.2.14",
7
+ "@angular/core": "^11.2.14"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.0.0"
11
+ },
12
+ "module": "fesm2015/mis-wis-common.js",
13
+ "es2015": "fesm2015/mis-wis-common.js",
14
+ "esm2015": "esm2015/mis-wis-common.js",
15
+ "fesm2015": "fesm2015/mis-wis-common.js",
16
+ "typings": "mis-wis-common.d.ts",
17
+ "metadata": "mis-wis-common.metadata.json",
18
+ "sideEffects": false
19
+ }
@@ -0,0 +1,10 @@
1
+ export * from "./lib/services/auth.service";
2
+ export * from "./lib/services/configuration.service";
3
+ export * from "./lib/models/configurations.model";
4
+ export * from "./lib/functions/nav-filter.function";
5
+ export * from "./lib/functions/cookie.function";
6
+ export * from "./lib/interceptors/auth.interceptor";
7
+ export * from "./lib/services/loader.service";
8
+ export * from "./lib/modules/logger/logger.module";
9
+ export * from "./lib/modules/logger/logger.service";
10
+ export * from "./lib/wis-common.module";
package/styles.scss ADDED
@@ -0,0 +1,3 @@
1
+ .wis-common-loader-bg {
2
+ background: rgba(0, 0, 0, 0.12);
3
+ }