@sitel/common 1.0.126 → 1.0.129

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.
Files changed (115) hide show
  1. package/build/absence-constants.d.ts +42 -42
  2. package/build/absence-constants.js +56 -56
  3. package/build/errors/bad-request-error.d.ts +9 -9
  4. package/build/errors/bad-request-error.js +34 -34
  5. package/build/errors/custom-error.d.ts +8 -8
  6. package/build/errors/custom-error.js +28 -28
  7. package/build/errors/database-connection-error.d.ts +9 -9
  8. package/build/errors/database-connection-error.js +34 -34
  9. package/build/errors/not-authorized-error.d.ts +9 -9
  10. package/build/errors/not-authorized-error.js +34 -34
  11. package/build/errors/not-found-error.d.ts +8 -8
  12. package/build/errors/not-found-error.js +33 -33
  13. package/build/errors/person-substitute-not-available-error.d.ts +9 -9
  14. package/build/errors/person-substitute-not-available-error.js +34 -34
  15. package/build/errors/request-validation-error.d.ts +11 -11
  16. package/build/errors/request-validation-error.js +37 -37
  17. package/build/events/base-listener.d.ts +23 -18
  18. package/build/events/base-listener.js +34 -34
  19. package/build/events/base-publisher.d.ts +13 -13
  20. package/build/events/base-publisher.js +24 -24
  21. package/build/events/manual-event-payload.d.ts +16 -16
  22. package/build/events/manual-event-payload.js +11 -11
  23. package/build/events/notify/admin/bipe-sync-event.d.ts +17 -17
  24. package/build/events/notify/admin/bipe-sync-event.js +2 -2
  25. package/build/events/notify/base-event-payload.d.ts +10 -10
  26. package/build/events/notify/base-event-payload.js +2 -2
  27. package/build/events/notify/calendar-event.d.ts +9 -9
  28. package/build/events/notify/calendar-event.js +2 -2
  29. package/build/events/notify/contact.d.ts +9 -9
  30. package/build/events/notify/contact.js +2 -2
  31. package/build/events/notify/group/approval-group-reminded-event.d.ts +6 -6
  32. package/build/events/notify/group/approval-group-reminded-event.js +2 -2
  33. package/build/events/notify/group/approval-group-requested-event.d.ts +12 -12
  34. package/build/events/notify/group/approval-group-requested-event.js +2 -2
  35. package/build/events/notify/index.d.ts +23 -23
  36. package/build/events/notify/index.js +39 -39
  37. package/build/events/notify/manual/manual-event.d.ts +6 -6
  38. package/build/events/notify/manual/manual-event.js +2 -2
  39. package/build/events/notify/member/annual-vacation-info-event.d.ts +25 -25
  40. package/build/events/notify/member/annual-vacation-info-event.js +2 -2
  41. package/build/events/notify/member/ts-validation-reminded-event.d.ts +6 -6
  42. package/build/events/notify/member/ts-validation-reminded-event.js +2 -2
  43. package/build/events/notify/notify-completed-event.d.ts +5 -5
  44. package/build/events/notify/notify-completed-event.js +2 -2
  45. package/build/events/notify/notify-type-value.d.ts +21 -21
  46. package/build/events/notify/notify-type-value.js +25 -25
  47. package/build/events/notify/requestor/absence-cancelled-event.d.ts +18 -18
  48. package/build/events/notify/requestor/absence-cancelled-event.js +2 -2
  49. package/build/events/notify/requestor/absence-created-event.d.ts +9 -9
  50. package/build/events/notify/requestor/absence-created-event.js +2 -2
  51. package/build/events/notify/requestor/absence-updated-event.d.ts +20 -20
  52. package/build/events/notify/requestor/absence-updated-event.js +2 -2
  53. package/build/events/notify/requestor/approval-group-accepted-event.d.ts +14 -14
  54. package/build/events/notify/requestor/approval-group-accepted-event.js +2 -2
  55. package/build/events/notify/requestor/approval-group-refused-event.d.ts +16 -16
  56. package/build/events/notify/requestor/approval-group-refused-event.js +2 -2
  57. package/build/events/notify/requestor/approval-service-accepted-event.d.ts +18 -18
  58. package/build/events/notify/requestor/approval-service-accepted-event.js +2 -2
  59. package/build/events/notify/requestor/approval-service-refused-event.d.ts +16 -16
  60. package/build/events/notify/requestor/approval-service-refused-event.js +2 -2
  61. package/build/events/notify/requestor/approval-substitute-accepted-event.d.ts +14 -14
  62. package/build/events/notify/requestor/approval-substitute-accepted-event.js +2 -2
  63. package/build/events/notify/requestor/approval-substitute-refused-event.d.ts +16 -16
  64. package/build/events/notify/requestor/approval-substitute-refused-event.js +2 -2
  65. package/build/events/notify/service/approval-service-reminded-event.d.ts +6 -6
  66. package/build/events/notify/service/approval-service-reminded-event.js +2 -2
  67. package/build/events/notify/service/approval-service-requested-event.d.ts +12 -12
  68. package/build/events/notify/service/approval-service-requested-event.js +2 -2
  69. package/build/events/notify/service/ts-validation-reported-event.d.ts +11 -11
  70. package/build/events/notify/service/ts-validation-reported-event.js +2 -2
  71. package/build/events/notify/substitute/approval-substitute-reminded-event.d.ts +6 -6
  72. package/build/events/notify/substitute/approval-substitute-reminded-event.js +2 -2
  73. package/build/events/notify/substitute/approval-substitute-requested-event.d.ts +12 -12
  74. package/build/events/notify/substitute/approval-substitute-requested-event.js +2 -2
  75. package/build/events/notify/substitute/information-substitute-reminded-event.d.ts +11 -11
  76. package/build/events/notify/substitute/information-substitute-reminded-event.js +2 -2
  77. package/build/events/presence/index.d.ts +4 -4
  78. package/build/events/presence/index.js +20 -20
  79. package/build/events/presence/person-archived-event.d.ts +9 -9
  80. package/build/events/presence/person-archived-event.js +2 -2
  81. package/build/events/presence/person-created-event.d.ts +8 -8
  82. package/build/events/presence/person-created-event.js +2 -2
  83. package/build/events/presence/person-updated-event.d.ts +10 -10
  84. package/build/events/presence/person-updated-event.js +2 -2
  85. package/build/events/presence/person-work-rate-changed-event.d.ts +9 -9
  86. package/build/events/presence/person-work-rate-changed-event.js +2 -2
  87. package/build/events/subjects.d.ts +55 -55
  88. package/build/events/subjects.js +75 -75
  89. package/build/events/worker/absence-approval-event.d.ts +16 -16
  90. package/build/events/worker/absence-approval-event.js +9 -9
  91. package/build/events/worker/absence-created-event.d.ts +13 -13
  92. package/build/events/worker/absence-created-event.js +8 -8
  93. package/build/events/worker/absence-deleted-event.d.ts +15 -15
  94. package/build/events/worker/absence-deleted-event.js +9 -9
  95. package/build/events/worker/absence-updated-event.d.ts +15 -15
  96. package/build/events/worker/absence-updated-event.js +9 -9
  97. package/build/events/worker/index.d.ts +5 -5
  98. package/build/events/worker/index.js +21 -21
  99. package/build/events/worker/manuel-event.d.ts +6 -6
  100. package/build/events/worker/manuel-event.js +2 -2
  101. package/build/index.d.ts +22 -22
  102. package/build/index.js +38 -38
  103. package/build/middlewares/current-user.d.ts +10 -10
  104. package/build/middlewares/current-user.js +17 -17
  105. package/build/middlewares/error-handler.d.ts +5 -5
  106. package/build/middlewares/error-handler.js +18 -18
  107. package/build/middlewares/require-auth.d.ts +10 -10
  108. package/build/middlewares/require-auth.js +11 -11
  109. package/build/middlewares/user-payload.d.ts +18 -18
  110. package/build/middlewares/user-payload.js +2 -2
  111. package/build/middlewares/validate-request.d.ts +2 -2
  112. package/build/middlewares/validate-request.js +13 -13
  113. package/build/services/jwt-utils.d.ts +3 -3
  114. package/build/services/jwt-utils.js +16 -16
  115. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
- import { Subjects } from '../../subjects';
2
- import { NotifyBaseEventPayload } from '../base-event-payload';
3
- import { Contact } from '../contact';
4
- /**
5
- * when the target substitute refuses the absence request
6
- */
7
- interface NotifySubstituteRefusedPayload extends NotifyBaseEventPayload {
8
- approver: Contact;
9
- requestor: Contact;
10
- ccRecipients?: string[];
11
- }
12
- export interface NotifySubstituteRefusedEvent {
13
- subject: Subjects.NotifySubstituteRefused;
14
- data: NotifySubstituteRefusedPayload;
15
- }
16
- export {};
1
+ import { Subjects } from '../../subjects';
2
+ import { NotifyBaseEventPayload } from '../base-event-payload';
3
+ import { Contact } from '../contact';
4
+ /**
5
+ * when the target substitute refuses the absence request
6
+ */
7
+ interface NotifySubstituteRefusedPayload extends NotifyBaseEventPayload {
8
+ approver: Contact;
9
+ requestor: Contact;
10
+ ccRecipients?: string[];
11
+ }
12
+ export interface NotifySubstituteRefusedEvent {
13
+ subject: Subjects.NotifySubstituteRefused;
14
+ data: NotifySubstituteRefusedPayload;
15
+ }
16
+ export {};
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
- import { Subjects } from '../../subjects';
2
- import { NotifyBaseEventPayload } from '../base-event-payload';
3
- export interface NotifyServiceRemindedEvent {
4
- subject: Subjects.NotifyServiceReminded;
5
- data: NotifyBaseEventPayload;
6
- }
1
+ import { Subjects } from '../../subjects';
2
+ import { NotifyBaseEventPayload } from '../base-event-payload';
3
+ export interface NotifyServiceRemindedEvent {
4
+ subject: Subjects.NotifyServiceReminded;
5
+ data: NotifyBaseEventPayload;
6
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +1,12 @@
1
- import { Subjects } from '../../subjects';
2
- import { NotifyBaseEventPayload } from '../base-event-payload';
3
- import { Contact } from '../contact';
4
- interface NotifyServiceRequestedPayload extends NotifyBaseEventPayload {
5
- requestor: Contact;
6
- approvals?: Contact[];
7
- }
8
- export interface NotifyServiceRequestedEvent {
9
- subject: Subjects.NotifyServiceRequested;
10
- data: NotifyServiceRequestedPayload;
11
- }
12
- export {};
1
+ import { Subjects } from '../../subjects';
2
+ import { NotifyBaseEventPayload } from '../base-event-payload';
3
+ import { Contact } from '../contact';
4
+ interface NotifyServiceRequestedPayload extends NotifyBaseEventPayload {
5
+ requestor: Contact;
6
+ approvals?: Contact[];
7
+ }
8
+ export interface NotifyServiceRequestedEvent {
9
+ subject: Subjects.NotifyServiceRequested;
10
+ data: NotifyServiceRequestedPayload;
11
+ }
12
+ export {};
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,11 @@
1
- import { Subjects } from '../../subjects';
2
- import { Contact } from '../contact';
3
- interface NotifyTSValidationReportedPayload {
4
- recipient: Contact;
5
- members: Contact[];
6
- }
7
- export interface NotifyTSValidationReportedEvent {
8
- subject: Subjects.NotifyTSValidationReported;
9
- data: NotifyTSValidationReportedPayload;
10
- }
11
- export {};
1
+ import { Subjects } from '../../subjects';
2
+ import { Contact } from '../contact';
3
+ interface NotifyTSValidationReportedPayload {
4
+ recipient: Contact;
5
+ members: Contact[];
6
+ }
7
+ export interface NotifyTSValidationReportedEvent {
8
+ subject: Subjects.NotifyTSValidationReported;
9
+ data: NotifyTSValidationReportedPayload;
10
+ }
11
+ export {};
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
- import { Subjects } from '../../subjects';
2
- import { NotifyBaseEventPayload } from '../base-event-payload';
3
- export interface NotifySubstituteRemindedEvent {
4
- subject: Subjects.NotifySubstituteReminded;
5
- data: NotifyBaseEventPayload;
6
- }
1
+ import { Subjects } from '../../subjects';
2
+ import { NotifyBaseEventPayload } from '../base-event-payload';
3
+ export interface NotifySubstituteRemindedEvent {
4
+ subject: Subjects.NotifySubstituteReminded;
5
+ data: NotifyBaseEventPayload;
6
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +1,12 @@
1
- import { Subjects } from '../../subjects';
2
- import { NotifyBaseEventPayload } from '../base-event-payload';
3
- import { Contact } from '../contact';
4
- interface NotifySubstituteRequestedPayload extends NotifyBaseEventPayload {
5
- requestor: Contact;
6
- approvals?: Contact[];
7
- }
8
- export interface NotifySubstituteRequestedEvent {
9
- subject: Subjects.NotifySubstituteRequested;
10
- data: NotifySubstituteRequestedPayload;
11
- }
12
- export {};
1
+ import { Subjects } from '../../subjects';
2
+ import { NotifyBaseEventPayload } from '../base-event-payload';
3
+ import { Contact } from '../contact';
4
+ interface NotifySubstituteRequestedPayload extends NotifyBaseEventPayload {
5
+ requestor: Contact;
6
+ approvals?: Contact[];
7
+ }
8
+ export interface NotifySubstituteRequestedEvent {
9
+ subject: Subjects.NotifySubstituteRequested;
10
+ data: NotifySubstituteRequestedPayload;
11
+ }
12
+ export {};
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,11 @@
1
- import { Subjects } from '../../subjects';
2
- import { NotifyBaseEventPayload } from '../base-event-payload';
3
- import { Contact } from '../contact';
4
- interface NotifySubstituteInformationPayload extends NotifyBaseEventPayload {
5
- requestor: Contact;
6
- }
7
- export interface NotifySubstituteInformationEvent {
8
- subject: Subjects.NotifySubstituteInformation;
9
- data: NotifySubstituteInformationPayload;
10
- }
11
- export {};
1
+ import { Subjects } from '../../subjects';
2
+ import { NotifyBaseEventPayload } from '../base-event-payload';
3
+ import { Contact } from '../contact';
4
+ interface NotifySubstituteInformationPayload extends NotifyBaseEventPayload {
5
+ requestor: Contact;
6
+ }
7
+ export interface NotifySubstituteInformationEvent {
8
+ subject: Subjects.NotifySubstituteInformation;
9
+ data: NotifySubstituteInformationPayload;
10
+ }
11
+ export {};
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- export * from './person-created-event';
2
- export * from './person-updated-event';
3
- export * from './person-archived-event';
4
- export * from './person-work-rate-changed-event';
1
+ export * from './person-created-event';
2
+ export * from './person-updated-event';
3
+ export * from './person-archived-event';
4
+ export * from './person-work-rate-changed-event';
@@ -1,20 +1,20 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./person-created-event"), exports);
18
- __exportStar(require("./person-updated-event"), exports);
19
- __exportStar(require("./person-archived-event"), exports);
20
- __exportStar(require("./person-work-rate-changed-event"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./person-created-event"), exports);
18
+ __exportStar(require("./person-updated-event"), exports);
19
+ __exportStar(require("./person-archived-event"), exports);
20
+ __exportStar(require("./person-work-rate-changed-event"), exports);
@@ -1,9 +1,9 @@
1
- import { Subjects } from '../subjects';
2
- export interface PresencePersonArchivedEvent {
3
- subject: Subjects.PresencePersonArchived;
4
- data: {
5
- personId: number;
6
- archiveDateUnix: number;
7
- actor: string;
8
- };
9
- }
1
+ import { Subjects } from '../subjects';
2
+ export interface PresencePersonArchivedEvent {
3
+ subject: Subjects.PresencePersonArchived;
4
+ data: {
5
+ personId: number;
6
+ archiveDateUnix: number;
7
+ actor: string;
8
+ };
9
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,8 @@
1
- import { Subjects } from '../subjects';
2
- export interface PresencePersonCreatedEvent {
3
- subject: Subjects.PresencePersonCreated;
4
- data: {
5
- personId: number;
6
- actor: string;
7
- };
8
- }
1
+ import { Subjects } from '../subjects';
2
+ export interface PresencePersonCreatedEvent {
3
+ subject: Subjects.PresencePersonCreated;
4
+ data: {
5
+ personId: number;
6
+ actor: string;
7
+ };
8
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,10 @@
1
- import { Subjects } from '../subjects';
2
- export interface PresencePersonUpdatedEvent {
3
- subject: Subjects.PresencePersonUpdated;
4
- data: {
5
- personId: number;
6
- actor: string;
7
- newAnnualVacationQuota?: number;
8
- recalculateFromMonth?: number;
9
- };
10
- }
1
+ import { Subjects } from '../subjects';
2
+ export interface PresencePersonUpdatedEvent {
3
+ subject: Subjects.PresencePersonUpdated;
4
+ data: {
5
+ personId: number;
6
+ actor: string;
7
+ newAnnualVacationQuota?: number;
8
+ recalculateFromMonth?: number;
9
+ };
10
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,9 @@
1
- import { Subjects } from '../subjects';
2
- export interface PresencePersonWorkRateChangedEvent {
3
- subject: Subjects.PresencePersonWorkRateChanged;
4
- data: {
5
- personId: number;
6
- changeRateId: number;
7
- actor: string;
8
- };
9
- }
1
+ import { Subjects } from '../subjects';
2
+ export interface PresencePersonWorkRateChangedEvent {
3
+ subject: Subjects.PresencePersonWorkRateChanged;
4
+ data: {
5
+ personId: number;
6
+ changeRateId: number;
7
+ actor: string;
8
+ };
9
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,55 +1,55 @@
1
- export declare enum Subjects {
2
- /** notify topis **/
3
- /** Requestor will receive */
4
- NotifyAbsenceCreated = "notify:requestor:absence:created",
5
- NotifyAbsenceCancelled = "notify:requestor:absence:cancelled",
6
- NotifyAbsenceUpdated = "notify:requestor:absence:updated",
7
- NotifySubstituteAccepted = "notify:substitute:approval:accepted",
8
- NotifySubstituteRefused = "notify:substitute:approval:refused",
9
- NotifyGroupAccepted = "notify:group:approval:accepted",
10
- NotifyGroupRefused = "notify:group:approval:refused",
11
- NotifyServiceAccepted = "notify:service:approval:accepted",
12
- NotifyServiceRefused = "notify:service:approval:refused",
13
- /** Substitute will receive */
14
- NotifySubstituteRequested = "notify:substitute:approval:requested",
15
- NotifySubstituteReminded = "notify:substitute:approval:reminded",
16
- NotifySubstituteInformation = "notify:substitute:information:reminded",
17
- /** Groups or Mangers will receive*/
18
- NotifyGroupRequested = "notify:groups:approval:requested",
19
- NotifyGroupReminded = "notify:groups:approval:reminded",
20
- /** Service will receive */
21
- NotifyServiceRequested = "notify:service:approval:requested",
22
- NotifyServiceReminded = "notify:service:approval:reminded",
23
- NotifyTSValidationReminded = "notify:ts:validation:reminded",
24
- NotifyTSValidationReported = "notify:ts:validation:reported",
25
- /** acknowledgement notification has been sent to the target audiences */
26
- NotifyCompleted = "notify:completed",
27
- /**
28
- * worker topics
29
- */
30
- WorkerAbsenceCreated = "worker:absence:created",
31
- WorkerAbsenceApproval = "worker:absence:approval",
32
- WorkerAbsenceUpdated = "worker:absence:updated",
33
- WorkerAbsenceDeleted = "worker:absence:deleted",
34
- /**
35
- * presence topics
36
- */
37
- PresencePersonCreated = "presence:person:created",
38
- PresencePersonUpdated = "presence:person:updated",
39
- PresencePersonArchived = "presence:person:archived",
40
- PresencePersonWorkRateChanged = "presence:person:work:rate:changed",
41
- /**
42
- * EXTRA This a totally manuel email to verify the email sending
43
- * to be used only by admin
44
- */
45
- NotifyManual = "notify:manual",
46
- WorkerManual = "worker:manual",
47
- /**
48
- * Notify Bipe Sync log
49
- */
50
- NotifyBipeSync = "notify:bipe:sync",
51
- /**
52
- * Notify Member annual vacation balance change
53
- */
54
- NotifyMemberAnnualVacation = "notify:member:annual:vacation"
55
- }
1
+ export declare enum Subjects {
2
+ /** notify topis **/
3
+ /** Requestor will receive */
4
+ NotifyAbsenceCreated = "notify:requestor:absence:created",
5
+ NotifyAbsenceCancelled = "notify:requestor:absence:cancelled",
6
+ NotifyAbsenceUpdated = "notify:requestor:absence:updated",
7
+ NotifySubstituteAccepted = "notify:substitute:approval:accepted",
8
+ NotifySubstituteRefused = "notify:substitute:approval:refused",
9
+ NotifyGroupAccepted = "notify:group:approval:accepted",
10
+ NotifyGroupRefused = "notify:group:approval:refused",
11
+ NotifyServiceAccepted = "notify:service:approval:accepted",
12
+ NotifyServiceRefused = "notify:service:approval:refused",
13
+ /** Substitute will receive */
14
+ NotifySubstituteRequested = "notify:substitute:approval:requested",
15
+ NotifySubstituteReminded = "notify:substitute:approval:reminded",
16
+ NotifySubstituteInformation = "notify:substitute:information:reminded",
17
+ /** Groups or Mangers will receive*/
18
+ NotifyGroupRequested = "notify:groups:approval:requested",
19
+ NotifyGroupReminded = "notify:groups:approval:reminded",
20
+ /** Service will receive */
21
+ NotifyServiceRequested = "notify:service:approval:requested",
22
+ NotifyServiceReminded = "notify:service:approval:reminded",
23
+ NotifyTSValidationReminded = "notify:ts:validation:reminded",
24
+ NotifyTSValidationReported = "notify:ts:validation:reported",
25
+ /** acknowledgement notification has been sent to the target audiences */
26
+ NotifyCompleted = "notify:completed",
27
+ /**
28
+ * worker topics
29
+ */
30
+ WorkerAbsenceCreated = "worker:absence:created",
31
+ WorkerAbsenceApproval = "worker:absence:approval",
32
+ WorkerAbsenceUpdated = "worker:absence:updated",
33
+ WorkerAbsenceDeleted = "worker:absence:deleted",
34
+ /**
35
+ * presence topics
36
+ */
37
+ PresencePersonCreated = "presence:person:created",
38
+ PresencePersonUpdated = "presence:person:updated",
39
+ PresencePersonArchived = "presence:person:archived",
40
+ PresencePersonWorkRateChanged = "presence:person:work:rate:changed",
41
+ /**
42
+ * EXTRA This a totally manuel email to verify the email sending
43
+ * to be used only by admin
44
+ */
45
+ NotifyManual = "notify:manual",
46
+ WorkerManual = "worker:manual",
47
+ /**
48
+ * Notify Bipe Sync log
49
+ */
50
+ NotifyBipeSync = "notify:bipe:sync",
51
+ /**
52
+ * Notify Member annual vacation balance change
53
+ */
54
+ NotifyMemberAnnualVacation = "notify:member:annual:vacation"
55
+ }
@@ -1,75 +1,75 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Subjects = void 0;
4
- var Subjects;
5
- (function (Subjects) {
6
- /** notify topis **/
7
- /** Requestor will receive */
8
- // when a requestor creates an absence request
9
- Subjects["NotifyAbsenceCreated"] = "notify:requestor:absence:created";
10
- // when the requestor or the manager[group or service] update or cancel the absence request
11
- Subjects["NotifyAbsenceCancelled"] = "notify:requestor:absence:cancelled";
12
- Subjects["NotifyAbsenceUpdated"] = "notify:requestor:absence:updated";
13
- // when the target substitute accepts or refuses the absence request
14
- Subjects["NotifySubstituteAccepted"] = "notify:substitute:approval:accepted";
15
- Subjects["NotifySubstituteRefused"] = "notify:substitute:approval:refused";
16
- // when a group manager accepts or refuses the absence request
17
- Subjects["NotifyGroupAccepted"] = "notify:group:approval:accepted";
18
- Subjects["NotifyGroupRefused"] = "notify:group:approval:refused";
19
- // when the service accepts or refuses the absence request
20
- Subjects["NotifyServiceAccepted"] = "notify:service:approval:accepted";
21
- Subjects["NotifyServiceRefused"] = "notify:service:approval:refused";
22
- /** Substitute will receive */
23
- // when a new absence request is issued with he is the target substitute
24
- Subjects["NotifySubstituteRequested"] = "notify:substitute:approval:requested";
25
- // when a received approval request is waiting to be answered after x days
26
- Subjects["NotifySubstituteReminded"] = "notify:substitute:approval:reminded";
27
- // this is a reminder for the substitute person only for information no action needed
28
- Subjects["NotifySubstituteInformation"] = "notify:substitute:information:reminded";
29
- /** Groups or Mangers will receive*/
30
- // when all the substitute approve the absence request
31
- Subjects["NotifyGroupRequested"] = "notify:groups:approval:requested";
32
- // when a received approval request is waiting to be answered after x days
33
- Subjects["NotifyGroupReminded"] = "notify:groups:approval:reminded";
34
- /** Service will receive */
35
- // when all the mangers approve the absence request
36
- Subjects["NotifyServiceRequested"] = "notify:service:approval:requested";
37
- // when a received approval request is waiting to be answered after x days
38
- Subjects["NotifyServiceReminded"] = "notify:service:approval:reminded";
39
- // at 00:05 between [2-4] of each month, if TS is not locked send an email as a reminder 'Feuille d'heures à valider'
40
- Subjects["NotifyTSValidationReminded"] = "notify:ts:validation:reminded";
41
- // at 00:05 on day-of-month 5, if TS is not locked send an email to service managers with the list of members where their TS is not locked yet
42
- Subjects["NotifyTSValidationReported"] = "notify:ts:validation:reported";
43
- /** acknowledgement notification has been sent to the target audiences */
44
- Subjects["NotifyCompleted"] = "notify:completed";
45
- /**
46
- * worker topics
47
- */
48
- // when a requestor creates an absence request via absence api
49
- Subjects["WorkerAbsenceCreated"] = "worker:absence:created";
50
- Subjects["WorkerAbsenceApproval"] = "worker:absence:approval";
51
- Subjects["WorkerAbsenceUpdated"] = "worker:absence:updated";
52
- Subjects["WorkerAbsenceDeleted"] = "worker:absence:deleted";
53
- /**
54
- * presence topics
55
- */
56
- Subjects["PresencePersonCreated"] = "presence:person:created";
57
- Subjects["PresencePersonUpdated"] = "presence:person:updated";
58
- // added on 02.08.2023 to handle archive and work rate change
59
- Subjects["PresencePersonArchived"] = "presence:person:archived";
60
- Subjects["PresencePersonWorkRateChanged"] = "presence:person:work:rate:changed";
61
- /**
62
- * EXTRA This a totally manuel email to verify the email sending
63
- * to be used only by admin
64
- */
65
- Subjects["NotifyManual"] = "notify:manual";
66
- Subjects["WorkerManual"] = "worker:manual";
67
- /**
68
- * Notify Bipe Sync log
69
- */
70
- Subjects["NotifyBipeSync"] = "notify:bipe:sync";
71
- /**
72
- * Notify Member annual vacation balance change
73
- */
74
- Subjects["NotifyMemberAnnualVacation"] = "notify:member:annual:vacation";
75
- })(Subjects = exports.Subjects || (exports.Subjects = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Subjects = void 0;
4
+ var Subjects;
5
+ (function (Subjects) {
6
+ /** notify topis **/
7
+ /** Requestor will receive */
8
+ // when a requestor creates an absence request
9
+ Subjects["NotifyAbsenceCreated"] = "notify:requestor:absence:created";
10
+ // when the requestor or the manager[group or service] update or cancel the absence request
11
+ Subjects["NotifyAbsenceCancelled"] = "notify:requestor:absence:cancelled";
12
+ Subjects["NotifyAbsenceUpdated"] = "notify:requestor:absence:updated";
13
+ // when the target substitute accepts or refuses the absence request
14
+ Subjects["NotifySubstituteAccepted"] = "notify:substitute:approval:accepted";
15
+ Subjects["NotifySubstituteRefused"] = "notify:substitute:approval:refused";
16
+ // when a group manager accepts or refuses the absence request
17
+ Subjects["NotifyGroupAccepted"] = "notify:group:approval:accepted";
18
+ Subjects["NotifyGroupRefused"] = "notify:group:approval:refused";
19
+ // when the service accepts or refuses the absence request
20
+ Subjects["NotifyServiceAccepted"] = "notify:service:approval:accepted";
21
+ Subjects["NotifyServiceRefused"] = "notify:service:approval:refused";
22
+ /** Substitute will receive */
23
+ // when a new absence request is issued with he is the target substitute
24
+ Subjects["NotifySubstituteRequested"] = "notify:substitute:approval:requested";
25
+ // when a received approval request is waiting to be answered after x days
26
+ Subjects["NotifySubstituteReminded"] = "notify:substitute:approval:reminded";
27
+ // this is a reminder for the substitute person only for information no action needed
28
+ Subjects["NotifySubstituteInformation"] = "notify:substitute:information:reminded";
29
+ /** Groups or Mangers will receive*/
30
+ // when all the substitute approve the absence request
31
+ Subjects["NotifyGroupRequested"] = "notify:groups:approval:requested";
32
+ // when a received approval request is waiting to be answered after x days
33
+ Subjects["NotifyGroupReminded"] = "notify:groups:approval:reminded";
34
+ /** Service will receive */
35
+ // when all the mangers approve the absence request
36
+ Subjects["NotifyServiceRequested"] = "notify:service:approval:requested";
37
+ // when a received approval request is waiting to be answered after x days
38
+ Subjects["NotifyServiceReminded"] = "notify:service:approval:reminded";
39
+ // at 00:05 between [2-4] of each month, if TS is not locked send an email as a reminder 'Feuille d'heures à valider'
40
+ Subjects["NotifyTSValidationReminded"] = "notify:ts:validation:reminded";
41
+ // at 00:05 on day-of-month 5, if TS is not locked send an email to service managers with the list of members where their TS is not locked yet
42
+ Subjects["NotifyTSValidationReported"] = "notify:ts:validation:reported";
43
+ /** acknowledgement notification has been sent to the target audiences */
44
+ Subjects["NotifyCompleted"] = "notify:completed";
45
+ /**
46
+ * worker topics
47
+ */
48
+ // when a requestor creates an absence request via absence api
49
+ Subjects["WorkerAbsenceCreated"] = "worker:absence:created";
50
+ Subjects["WorkerAbsenceApproval"] = "worker:absence:approval";
51
+ Subjects["WorkerAbsenceUpdated"] = "worker:absence:updated";
52
+ Subjects["WorkerAbsenceDeleted"] = "worker:absence:deleted";
53
+ /**
54
+ * presence topics
55
+ */
56
+ Subjects["PresencePersonCreated"] = "presence:person:created";
57
+ Subjects["PresencePersonUpdated"] = "presence:person:updated";
58
+ // added on 02.08.2023 to handle archive and work rate change
59
+ Subjects["PresencePersonArchived"] = "presence:person:archived";
60
+ Subjects["PresencePersonWorkRateChanged"] = "presence:person:work:rate:changed";
61
+ /**
62
+ * EXTRA This a totally manuel email to verify the email sending
63
+ * to be used only by admin
64
+ */
65
+ Subjects["NotifyManual"] = "notify:manual";
66
+ Subjects["WorkerManual"] = "worker:manual";
67
+ /**
68
+ * Notify Bipe Sync log
69
+ */
70
+ Subjects["NotifyBipeSync"] = "notify:bipe:sync";
71
+ /**
72
+ * Notify Member annual vacation balance change
73
+ */
74
+ Subjects["NotifyMemberAnnualVacation"] = "notify:member:annual:vacation";
75
+ })(Subjects = exports.Subjects || (exports.Subjects = {}));