@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.
- package/build/events/base-listener.d.ts +5 -0
- package/build/events/base-listener.js +1 -1
- package/build/events/notify/index.d.ts +2 -0
- package/build/events/notify/index.js +2 -0
- package/build/events/notify/member/trimestrial-vacation-summary-event.d.ts +6 -0
- package/build/events/notify/member/trimestrial-vacation-summary-event.js +2 -0
- package/build/events/notify/member/yearly-absence-summary-event.d.ts +6 -0
- package/build/events/notify/member/yearly-absence-summary-event.js +2 -0
- package/build/events/notify/vacation-summary.d.ts +16 -0
- package/build/events/notify/vacation-summary.js +2 -0
- package/build/events/notify/yearly-absence-summary.d.ts +11 -0
- package/build/events/notify/yearly-absence-summary.js +2 -0
- package/build/events/subjects.d.ts +7 -1
- package/build/events/subjects.js +6 -0
- package/package.json +1 -1
|
@@ -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 =
|
|
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,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
|
+
}
|
|
@@ -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
|
}
|
package/build/events/subjects.js
CHANGED
|
@@ -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 = {}));
|