@sitel/common 1.0.95 → 1.0.98

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.
@@ -20,3 +20,5 @@ export * from './notify-completed-event';
20
20
  export * from './notify-type-value';
21
21
  export * from './manual/manual-event';
22
22
  export * from './admin/bipe-sync-event';
23
+ export * from './member/annual-vacation-info-event';
24
+ export * from './rh/annual-vacation-change-event';
@@ -32,3 +32,5 @@ __exportStar(require("./notify-completed-event"), exports);
32
32
  __exportStar(require("./notify-type-value"), exports);
33
33
  __exportStar(require("./manual/manual-event"), exports);
34
34
  __exportStar(require("./admin/bipe-sync-event"), exports);
35
+ __exportStar(require("./member/annual-vacation-info-event"), exports);
36
+ __exportStar(require("./rh/annual-vacation-change-event"), exports);
@@ -0,0 +1,22 @@
1
+ import { Subjects } from '../../subjects';
2
+ import { Contact } from '../contact';
3
+ declare enum BalanceReason {
4
+ age = "age",
5
+ yearsOfService = "yearsOfService"
6
+ }
7
+ /**
8
+ * prev
9
+ */
10
+ interface NotifyMemberAnnualVacationPayload {
11
+ recipient: Contact;
12
+ member: {
13
+ displayName: string;
14
+ newBalance: number;
15
+ reason: BalanceReason;
16
+ }[];
17
+ }
18
+ export interface NotifyMemberAnnualVacationEvent {
19
+ subject: Subjects.NotifyMemberAnnualVacation;
20
+ data: NotifyMemberAnnualVacationPayload;
21
+ }
22
+ export {};
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var BalanceReason;
4
+ (function (BalanceReason) {
5
+ BalanceReason["age"] = "age";
6
+ BalanceReason["yearsOfService"] = "yearsOfService";
7
+ })(BalanceReason || (BalanceReason = {}));
@@ -0,0 +1,22 @@
1
+ import { Subjects } from '../../subjects';
2
+ import { Contact } from '../contact';
3
+ declare enum BalanceReason {
4
+ age = "age",
5
+ yearsOfService = "yearsOfService"
6
+ }
7
+ /**
8
+ * prev
9
+ */
10
+ interface NotifyRHAnnualVacationPayload {
11
+ recipient: Contact;
12
+ member: {
13
+ displayName: string;
14
+ newBalance: number;
15
+ reason: BalanceReason;
16
+ }[];
17
+ }
18
+ export interface NotifyRHAnnualVacationEvent {
19
+ subject: Subjects.NotifyRHAnnualVacation;
20
+ data: NotifyRHAnnualVacationPayload;
21
+ }
22
+ export {};
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var BalanceReason;
4
+ (function (BalanceReason) {
5
+ BalanceReason["age"] = "age";
6
+ BalanceReason["yearsOfService"] = "yearsOfService";
7
+ })(BalanceReason || (BalanceReason = {}));
@@ -45,5 +45,11 @@ export declare enum Subjects {
45
45
  /**
46
46
  * Notify Bipe Sync log
47
47
  */
48
- NotifyBipeSync = "notify:bipe:sync"
48
+ NotifyBipeSync = "notify:bipe:sync",
49
+ /**
50
+ * Notify RH annual vacation balance change
51
+ * Notify Member annual vacation balance change
52
+ */
53
+ NotifyRHAnnualVacation = "notify:rh:annual:vacation",
54
+ NotifyMemberAnnualVacation = "notify:member:annual:vacation"
49
55
  }
@@ -65,4 +65,10 @@ var Subjects;
65
65
  * Notify Bipe Sync log
66
66
  */
67
67
  Subjects["NotifyBipeSync"] = "notify:bipe:sync";
68
+ /**
69
+ * Notify RH annual vacation balance change
70
+ * Notify Member annual vacation balance change
71
+ */
72
+ Subjects["NotifyRHAnnualVacation"] = "notify:rh:annual:vacation";
73
+ Subjects["NotifyMemberAnnualVacation"] = "notify:member:annual:vacation";
68
74
  })(Subjects = exports.Subjects || (exports.Subjects = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitel/common",
3
- "version": "1.0.95",
3
+ "version": "1.0.98",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "pub": "git add . && git commit -m \"update\" && npm version patch && npm run build && npm publish"
14
14
  },
15
15
  "keywords": [],
16
- "author": "",
16
+ "author": "SITEL/AK",
17
17
  "license": "ISC",
18
18
  "devDependencies": {
19
19
  "rimraf": "^3.0.2",