@sitel/common 1.0.100 → 1.0.102

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,24 @@
1
1
  import { Subjects } from '../../subjects';
2
- declare enum BalanceReason {
3
- age = "age",
4
- yearsOfService = "yearsOfService"
5
- }
6
2
  /**
7
- * prev
3
+ * This is an informational email sent to the member to inform him that the RH is aware about
4
+ * the new annual vacation balance .
5
+ *
6
+ * recipient: email of the member
7
+ *
8
+ * member
9
+ * rhSentDate: date when the email is sent
10
+ * displayName: full name of the member
11
+ * newBalance: new balance of the annual vacation
12
+ * reason: reason of this email
13
+ *
8
14
  */
9
15
  interface NotifyMemberAnnualVacationPayload {
10
16
  recipient: string;
11
17
  member: {
18
+ rhSentDate: string;
12
19
  displayName: string;
13
20
  newBalance: number;
14
- reason: BalanceReason;
21
+ reason: 'age' | 'yearsOfService';
15
22
  };
16
23
  }
17
24
  export interface NotifyMemberAnnualVacationEvent {
@@ -1,7 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var BalanceReason;
4
- (function (BalanceReason) {
5
- BalanceReason["age"] = "age";
6
- BalanceReason["yearsOfService"] = "yearsOfService";
7
- })(BalanceReason || (BalanceReason = {}));
@@ -1,17 +1,21 @@
1
1
  import { Subjects } from '../../subjects';
2
- declare enum BalanceReason {
3
- age = "age",
4
- yearsOfService = "yearsOfService"
5
- }
6
2
  /**
7
- * prev
3
+ * This email sent to the RH to modify the balance of the annual vacation
4
+ *
5
+ * recipients: rh email addresses
6
+ *
7
+ * member
8
+ * displayName: full name of the member
9
+ * newBalance: new balance of the annual vacation
10
+ * reason: reason of this email
11
+ *
8
12
  */
9
13
  interface NotifyRHAnnualVacationPayload {
10
- recipient: string[];
14
+ recipients: string[];
11
15
  member: {
12
16
  displayName: string;
13
17
  newBalance: number;
14
- reason: BalanceReason;
18
+ reason: 'age' | 'yearsOfService';
15
19
  };
16
20
  }
17
21
  export interface NotifyRHAnnualVacationEvent {
@@ -1,7 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var BalanceReason;
4
- (function (BalanceReason) {
5
- BalanceReason["age"] = "age";
6
- BalanceReason["yearsOfService"] = "yearsOfService";
7
- })(BalanceReason || (BalanceReason = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitel/common",
3
- "version": "1.0.100",
3
+ "version": "1.0.102",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",