@sitel/common 1.0.101 → 1.0.103

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,11 +1,4 @@
1
1
  import { Subjects } from '../../subjects';
2
- /**
3
- * This enum to distinguish between the age reason and the years of service reason
4
- */
5
- declare enum BalanceReason {
6
- age = "age",
7
- yearsOfService = "yearsOfService"
8
- }
9
2
  /**
10
3
  * This is an informational email sent to the member to inform him that the RH is aware about
11
4
  * the new annual vacation balance .
@@ -25,7 +18,7 @@ interface NotifyMemberAnnualVacationPayload {
25
18
  rhSentDate: string;
26
19
  displayName: string;
27
20
  newBalance: number;
28
- reason: BalanceReason;
21
+ reason: 'age' | 'yearsOfService';
29
22
  };
30
23
  }
31
24
  export interface NotifyMemberAnnualVacationEvent {
@@ -1,10 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * This enum to distinguish between the age reason and the years of service reason
5
- */
6
- var BalanceReason;
7
- (function (BalanceReason) {
8
- BalanceReason["age"] = "age";
9
- BalanceReason["yearsOfService"] = "yearsOfService";
10
- })(BalanceReason || (BalanceReason = {}));
@@ -1,11 +1,4 @@
1
1
  import { Subjects } from '../../subjects';
2
- /**
3
- * This enum to distinguish between the age reason and the years of service reason
4
- */
5
- declare enum BalanceReason {
6
- age = "age",
7
- yearsOfService = "yearsOfService"
8
- }
9
2
  /**
10
3
  * This email sent to the RH to modify the balance of the annual vacation
11
4
  *
@@ -22,7 +15,7 @@ interface NotifyRHAnnualVacationPayload {
22
15
  member: {
23
16
  displayName: string;
24
17
  newBalance: number;
25
- reason: BalanceReason;
18
+ reason: 'age' | 'yearsOfService';
26
19
  };
27
20
  }
28
21
  export interface NotifyRHAnnualVacationEvent {
@@ -1,10 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * This enum to distinguish between the age reason and the years of service reason
5
- */
6
- var BalanceReason;
7
- (function (BalanceReason) {
8
- BalanceReason["age"] = "age";
9
- BalanceReason["yearsOfService"] = "yearsOfService";
10
- })(BalanceReason || (BalanceReason = {}));
@@ -0,0 +1,8 @@
1
+ import { Subjects } from '../subjects';
2
+ export interface ConfigPersonArchivedEvent {
3
+ subject: Subjects.ConfigPersonArchived;
4
+ data: {
5
+ personId: number;
6
+ archiveDateUnix: number;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { Subjects } from '../subjects';
2
+ export interface ConfigPersonQuotaChangedEvent {
3
+ subject: Subjects.ConfigPersonQuotaChange;
4
+ data: {
5
+ personId: number;
6
+ archiveDateUnix: number;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,4 @@
1
1
  export * from './config-person-created-event';
2
2
  export * from './config-person-updated-event';
3
+ export * from './config-person-archived-event';
4
+ export * from './config-person-quota-changed-event';
@@ -12,3 +12,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./config-person-created-event"), exports);
14
14
  __exportStar(require("./config-person-updated-event"), exports);
15
+ __exportStar(require("./config-person-archived-event"), exports);
16
+ __exportStar(require("./config-person-quota-changed-event"), exports);
@@ -36,6 +36,8 @@ export declare enum Subjects {
36
36
  */
37
37
  ConfigPersonCreated = "config:person:created",
38
38
  ConfigPersonUpdated = "config:person:updated",
39
+ ConfigPersonArchived = "config:person:archived",
40
+ ConfigPersonQuotaChange = "config:person:quota:change",
39
41
  /**
40
42
  * EXTRA This a totaly manuel email to verify the email sending
41
43
  * to be used only by admin
@@ -55,6 +55,9 @@ var Subjects;
55
55
  */
56
56
  Subjects["ConfigPersonCreated"] = "config:person:created";
57
57
  Subjects["ConfigPersonUpdated"] = "config:person:updated";
58
+ // added on 02.08.2023 to handle archive and quota change
59
+ Subjects["ConfigPersonArchived"] = "config:person:archived";
60
+ Subjects["ConfigPersonQuotaChange"] = "config:person:quota:change";
58
61
  /**
59
62
  * EXTRA This a totaly manuel email to verify the email sending
60
63
  * to be used only by admin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitel/common",
3
- "version": "1.0.101",
3
+ "version": "1.0.103",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",