@develit-services/notification 1.0.0 → 1.0.1

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.
@@ -259,17 +259,7 @@ let NotificationServiceBase = class extends backendSdk.develitWorker(
259
259
  );
260
260
  }
261
261
  async sendEmailSync(input) {
262
- return this.handleAction(
263
- { data: input, schema: webhook_connector.sendEmailInputSchema },
264
- { successMessage: "Email sent.", sensitiveKeys: ["attachments"] },
265
- async (params) => {
266
- const { email, metadata } = params;
267
- return this._sendEmail({
268
- email,
269
- metadata
270
- });
271
- }
272
- );
262
+ return this._sendEmail(input);
273
263
  }
274
264
  async sendSms(input) {
275
265
  return this.handleAction(
@@ -255,17 +255,7 @@ let NotificationServiceBase = class extends develitWorker(
255
255
  );
256
256
  }
257
257
  async sendEmailSync(input) {
258
- return this.handleAction(
259
- { data: input, schema: sendEmailInputSchema },
260
- { successMessage: "Email sent.", sensitiveKeys: ["attachments"] },
261
- async (params) => {
262
- const { email, metadata } = params;
263
- return this._sendEmail({
264
- email,
265
- metadata
266
- });
267
- }
268
- );
258
+ return this._sendEmail(input);
269
259
  }
270
260
  async sendSms(input) {
271
261
  return this.handleAction(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/notification",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {