@aldb2b/common 1.0.1076 → 1.0.1079

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 (41) hide show
  1. package/build/decorators/get-localized-company-ids-decorator.d.ts +1 -0
  2. package/build/decorators/get-localized-company-ids-decorator.js +12 -0
  3. package/build/decorators/get-localized-company-ids-decorator.js.map +1 -0
  4. package/build/decorators/get-localized-contact-ids-decorator.d.ts +1 -0
  5. package/build/decorators/get-localized-contact-ids-decorator.js +12 -0
  6. package/build/decorators/get-localized-contact-ids-decorator.js.map +1 -0
  7. package/build/decorators/get-user-decorator.js +6 -6
  8. package/build/decorators/get-user-decorator.js.map +1 -1
  9. package/build/enums/data-source.enum.d.ts +4 -0
  10. package/build/enums/data-source.enum.js +9 -0
  11. package/build/enums/data-source.enum.js.map +1 -0
  12. package/build/events/get-external-contact-info.interface.d.ts +12 -0
  13. package/build/events/get-external-contact-info.interface.js +3 -0
  14. package/build/events/get-external-contact-info.interface.js.map +1 -0
  15. package/build/events/localize-contact.interface.d.ts +15 -0
  16. package/build/events/{badge-send-email.interface.js → localize-contact.interface.js} +1 -1
  17. package/build/events/localize-contact.interface.js.map +1 -0
  18. package/build/events/queues.d.ts +2 -1
  19. package/build/events/queues.js +2 -1
  20. package/build/events/queues.js.map +1 -1
  21. package/build/events/subjects.d.ts +2 -1
  22. package/build/events/subjects.js +2 -1
  23. package/build/events/subjects.js.map +1 -1
  24. package/build/index.d.ts +15 -9
  25. package/build/index.js +15 -9
  26. package/build/index.js.map +1 -1
  27. package/build/middlewares/get-external-contacts.middleware.d.ts +21 -0
  28. package/build/middlewares/get-external-contacts.middleware.js +69 -0
  29. package/build/middlewares/get-external-contacts.middleware.js.map +1 -0
  30. package/build/middlewares/inject-subscription.middleware.js +1 -1
  31. package/build/middlewares/inject-subscription.middleware.js.map +1 -1
  32. package/build/middlewares/localize-contact.middleware.d.ts +21 -0
  33. package/build/middlewares/localize-contact.middleware.js +114 -0
  34. package/build/middlewares/localize-contact.middleware.js.map +1 -0
  35. package/build/tsconfig.tsbuildinfo +1 -1
  36. package/build/types/notification-event.enum.d.ts +1 -2
  37. package/build/types/notification-event.enum.js +0 -1
  38. package/build/types/notification-event.enum.js.map +1 -1
  39. package/package.json +1 -1
  40. package/build/events/badge-send-email.interface.d.ts +0 -22
  41. package/build/events/badge-send-email.interface.js.map +0 -1
@@ -22,6 +22,5 @@ export declare enum NotificationEvent {
22
22
  ON_REQUEST_ORDER = "OnRequestOrder",
23
23
  APPROVE_ORDER = "ApproveOrder",
24
24
  REJECT_ORDER = "RejectOrder",
25
- MEETING_CONFIRMATION = "MeetingConfirmation",
26
- CONTACT_BADGE = "ContactBadge"
25
+ MEETING_CONFIRMATION = "MeetingConfirmation"
27
26
  }
@@ -27,6 +27,5 @@ var NotificationEvent;
27
27
  NotificationEvent["APPROVE_ORDER"] = "ApproveOrder";
28
28
  NotificationEvent["REJECT_ORDER"] = "RejectOrder";
29
29
  NotificationEvent["MEETING_CONFIRMATION"] = "MeetingConfirmation";
30
- NotificationEvent["CONTACT_BADGE"] = "ContactBadge";
31
30
  })(NotificationEvent || (exports.NotificationEvent = NotificationEvent = {}));
32
31
  //# sourceMappingURL=notification-event.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification-event.enum.js","sourceRoot":"","sources":["../../src/types/notification-event.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBA0BX;AA1BD,WAAY,iBAAiB;IAC3B,iEAA4C,CAAA;IAC5C,8DAAyC,CAAA;IACzC,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAC/C,4EAAuD,CAAA;IACvD,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAC/C,2FAAsE,CAAA;IACtE,+DAA0C,CAAA;IAC1C,4DAAuC,CAAA;IACvC,yDAAoC,CAAA;IACpC,6DAAwC,CAAA;IACxC,qDAAgC,CAAA;IAChC,yDAAoC,CAAA;IACpC,kEAA6C,CAAA;IAC7C,yEAAoD,CAAA;IACpD,8DAAyC,CAAA;IACzC,yCAAoB,CAAA;IACpB,mDAA8B,CAAA;IAC9B,uDAAkC,CAAA;IAClC,wDAAmC,CAAA;IACnC,mDAA8B,CAAA;IAC9B,iDAA4B,CAAA;IAC5B,iEAA4C,CAAA;IAC5C,mDAA8B,CAAA;AAChC,CAAC,EA1BW,iBAAiB,iCAAjB,iBAAiB,QA0B5B"}
1
+ {"version":3,"file":"notification-event.enum.js","sourceRoot":"","sources":["../../src/types/notification-event.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAyBX;AAzBD,WAAY,iBAAiB;IAC3B,iEAA4C,CAAA;IAC5C,8DAAyC,CAAA;IACzC,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAC/C,4EAAuD,CAAA;IACvD,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAC/C,2FAAsE,CAAA;IACtE,+DAA0C,CAAA;IAC1C,4DAAuC,CAAA;IACvC,yDAAoC,CAAA;IACpC,6DAAwC,CAAA;IACxC,qDAAgC,CAAA;IAChC,yDAAoC,CAAA;IACpC,kEAA6C,CAAA;IAC7C,yEAAoD,CAAA;IACpD,8DAAyC,CAAA;IACzC,yCAAoB,CAAA;IACpB,mDAA8B,CAAA;IAC9B,uDAAkC,CAAA;IAClC,wDAAmC,CAAA;IACnC,mDAA8B,CAAA;IAC9B,iDAA4B,CAAA;IAC5B,iEAA4C,CAAA;AAC9C,CAAC,EAzBW,iBAAiB,iCAAjB,iBAAiB,QAyB5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldb2b/common",
3
- "version": "1.0.1076",
3
+ "version": "1.0.1079",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,22 +0,0 @@
1
- import { Subjects } from './subjects';
2
- import { NotificationType } from "../types/notification-type.enum";
3
- import { NotificationEvent } from "../types/notification-event.enum";
4
- export declare namespace BadgeSendEmailInterface {
5
- interface Context {
6
- subject: Subjects.BadgeSendEmail;
7
- data: any;
8
- }
9
- interface Data {
10
- type: NotificationType;
11
- trigger: NotificationEvent;
12
- badgeId: string;
13
- eventId: string;
14
- receiver: string;
15
- receiverCompany: string;
16
- senderCompany?: string;
17
- senderContact?: string;
18
- subject?: string;
19
- content?: string;
20
- template?: string;
21
- }
22
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"badge-send-email.interface.js","sourceRoot":"","sources":["../../src/events/badge-send-email.interface.ts"],"names":[],"mappings":""}