@bloomscorp/ngx-bloomsight 1.4.5 → 1.4.6

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 (2) hide show
  1. package/README.md +6 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -113,11 +113,11 @@ this.bloomsightService.resolveDataEvent(
113
113
  Use `sendEmail` method to send email
114
114
 
115
115
  ```ts
116
- import {BloomsightEventService} from '@bloomscorp/ngx-bloomsight';
116
+ import {BloomsightMailService} from '@bloomscorp/ngx-bloomsight';
117
117
 
118
- constructor(public bloomsightService: BloomsightEventService) { }
118
+ constructor(public bloomsightMailService: BloomsightMailService) { }
119
119
 
120
- this.bloomsightService.sendEmail(
120
+ this.bloomsightMailService.sendEmail(
121
121
  '66d735b122355c8ba6a456f8',
122
122
  '63d735h822355s6ba6a4556k',
123
123
  '61d895h922355b6ba6a4587a',
@@ -130,7 +130,9 @@ this.bloomsightService.sendEmail(
130
130
  | `engineId` | `string` | Id of the engine that will be used to send email | ✅ | NA |
131
131
  | `templateId` | `string` | Id of the email template that will be used as email body | ✅ | NA |
132
132
  | `templateOwnerId` | `string` | Id of the user who has created the template | ✅ | NA |
133
- | `emailMetaData` | `FormData` | attachment & variables used in the template & their respective values in key, value format | ❌ | NA |
133
+ | `emailMetaData` | `FormData` | attachment & variables used in the template & their respective values in key, value format | ✅ | NA |
134
+ | `onSuccess` | `function` | pass a function to trigger on successfully sending email | ✅ | NA |
135
+ | `onError` | `function` | pass a function to trigger when an error occurs | ✅ | NA |
134
136
 
135
137
  ## License
136
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloomscorp/ngx-bloomsight",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0",