@sitel/common 1.0.127 → 1.0.131

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.
@@ -8,6 +8,11 @@ export declare abstract class Listener<T extends Event> {
8
8
  abstract subject: T['subject'];
9
9
  abstract queueGroupName: string;
10
10
  abstract onMessage(data: T['data'], msg: Message): void;
11
+ /**
12
+ * NATS streaming server will attempt redelivery of the message.
13
+ * This timeout interval is specified by the subscription option SubscriptionOptions#setAckWait(milliseconds),
14
+ * which defaults to 30 seconds.
15
+ */
11
16
  protected client: Stan;
12
17
  protected ackWait: number;
13
18
  constructor(client: Stan);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Listener = void 0;
4
4
  var Listener = /** @class */ (function () {
5
5
  function Listener(client) {
6
- this.ackWait = 5 * 1000;
6
+ this.ackWait = 60 * 1000 * 3; // NATS streaming server will attempt redelivery of the message after 3 minutes.
7
7
  this.client = client;
8
8
  }
9
9
  Listener.prototype.subscriptionOptions = function () {
@@ -21,3 +21,5 @@ export * from './notify-type-value';
21
21
  export * from './manual/manual-event';
22
22
  export * from './admin/bipe-sync-event';
23
23
  export * from './member/annual-vacation-info-event';
24
+ export * from './member/trimestrial-vacation-summary-event';
25
+ export * from './member/yearly-absence-summary-event';
@@ -37,3 +37,5 @@ __exportStar(require("./notify-type-value"), exports);
37
37
  __exportStar(require("./manual/manual-event"), exports);
38
38
  __exportStar(require("./admin/bipe-sync-event"), exports);
39
39
  __exportStar(require("./member/annual-vacation-info-event"), exports);
40
+ __exportStar(require("./member/trimestrial-vacation-summary-event"), exports);
41
+ __exportStar(require("./member/yearly-absence-summary-event"), exports);
@@ -0,0 +1,6 @@
1
+ import { Subjects } from '../../subjects';
2
+ import { VacationSummary } from '../vacation-summary';
3
+ export interface NotifyTrimestrialVacationSummaryEvent {
4
+ subject: Subjects.NotifyTrimestrialVacationSummary;
5
+ data: VacationSummary[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { Subjects } from '../../subjects';
2
+ import { YearlyAbsenceSummary } from '../yearly-absence-summary';
3
+ export interface NotifyYearlyAbsenceSummaryEvent {
4
+ subject: Subjects.NotifyYearlyAbsenceSummary;
5
+ data: YearlyAbsenceSummary[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ export interface VacationSummary {
2
+ id: number;
3
+ email: string;
4
+ displayName: string;
5
+ serviceName: string;
6
+ futureVacations: number;
7
+ startHoliday: number | null;
8
+ holiday: number | null;
9
+ totalHolidayNumber: number | null;
10
+ remainingAfterPlanned: number | null;
11
+ locked: Date | null;
12
+ hasPresenceMonth: number;
13
+ year: number;
14
+ month: number;
15
+ period: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export interface YearlyAbsenceSummary {
2
+ id: number;
3
+ email: string;
4
+ displayName: string;
5
+ absenceBreakdown: {
6
+ absenceLabel: string;
7
+ dayCount: number;
8
+ halfDayCount: number;
9
+ hoursSum: number;
10
+ }[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -51,5 +51,11 @@ export declare enum Subjects {
51
51
  /**
52
52
  * Notify Member annual vacation balance change
53
53
  */
54
- NotifyMemberAnnualVacation = "notify:member:annual:vacation"
54
+ NotifyMemberAnnualVacation = "notify:member:annual:vacation",
55
+ /**
56
+ * topics for vacation summary notifications and for yearly absence summary
57
+ * added on 2025-11-06
58
+ */
59
+ NotifyTrimestrialVacationSummary = "notify:trimestrial:vacation:summary",
60
+ NotifyYearlyAbsenceSummary = "notify:yearly:absence:summary"
55
61
  }
@@ -72,4 +72,10 @@ var Subjects;
72
72
  * Notify Member annual vacation balance change
73
73
  */
74
74
  Subjects["NotifyMemberAnnualVacation"] = "notify:member:annual:vacation";
75
+ /**
76
+ * topics for vacation summary notifications and for yearly absence summary
77
+ * added on 2025-11-06
78
+ */
79
+ Subjects["NotifyTrimestrialVacationSummary"] = "notify:trimestrial:vacation:summary";
80
+ Subjects["NotifyYearlyAbsenceSummary"] = "notify:yearly:absence:summary";
75
81
  })(Subjects = exports.Subjects || (exports.Subjects = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitel/common",
3
- "version": "1.0.127",
3
+ "version": "1.0.131",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",