@bloomscorp/ngx-bloomsight 1.4.5 → 1.4.7
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.
- package/README.md +6 -4
- package/package.json +2 -2
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 {
|
|
116
|
+
import {BloomsightMailService} from '@bloomscorp/ngx-bloomsight';
|
|
117
117
|
|
|
118
|
-
constructor(public
|
|
118
|
+
constructor(public bloomsightMailService: BloomsightMailService) { }
|
|
119
119
|
|
|
120
|
-
this.
|
|
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 |
|
|
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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloomscorp/ngx-bloomsight",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.2.0",
|
|
6
6
|
"@angular/core": "^14.2.0",
|
|
7
|
-
"@bloomscorp/bloomsight.js": "^0.3.
|
|
7
|
+
"@bloomscorp/bloomsight.js": "^0.3.4"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"tslib": "^2.3.0"
|