@develit-services/notification 0.0.24 → 0.0.25

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/dist/@types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const twilio_connector = require('./shared/notification.8VrnX6x5.cjs');
3
+ const twilio_connector = require('./shared/notification.3PxQAUeO.cjs');
4
4
  require('zod');
5
5
  require('@develit-io/backend-sdk');
6
6
  require('zod/v4');
package/dist/@types.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { E as EcomailConnector, I as IEmailConnector, d as ISmsConnector, T as TwilioConnector, i as iContactSchema, c as iEmailSchema, s as sendEmailInputSchema, b as sendSlackInputSchema, a as sendSmsInputSchema } from './shared/notification.DaWIyo2j.mjs';
1
+ export { E as EcomailConnector, I as IEmailConnector, d as ISmsConnector, T as TwilioConnector, i as iContactSchema, c as iEmailSchema, s as sendEmailInputSchema, b as sendSlackInputSchema, a as sendSmsInputSchema } from './shared/notification.CQ9G8X8X.mjs';
2
2
  import 'zod';
3
3
  import '@develit-io/backend-sdk';
4
4
  import 'zod/v4';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const backendSdk = require('@develit-io/backend-sdk');
6
- const twilio_connector = require('../shared/notification.8VrnX6x5.cjs');
6
+ const twilio_connector = require('../shared/notification.3PxQAUeO.cjs');
7
7
  const database_schema = require('../shared/notification.4b3eUEIG.cjs');
8
8
  require('drizzle-orm');
9
9
  require('drizzle-orm/sqlite-core');
@@ -1,5 +1,5 @@
1
1
  import { createInternalError, uuidv4, develitWorker, useResult, cloudflareQueue, action } from '@develit-io/backend-sdk';
2
- import { E as EcomailConnector, T as TwilioConnector, s as sendEmailInputSchema, a as sendSmsInputSchema, b as sendSlackInputSchema } from '../shared/notification.DaWIyo2j.mjs';
2
+ import { E as EcomailConnector, T as TwilioConnector, s as sendEmailInputSchema, a as sendSmsInputSchema, b as sendSlackInputSchema } from '../shared/notification.CQ9G8X8X.mjs';
3
3
  import { s as schema } from '../shared/notification.C0X8Orrh.mjs';
4
4
  import 'drizzle-orm';
5
5
  import 'drizzle-orm/sqlite-core';
@@ -81,7 +81,12 @@ class EcomailConnector extends IEmailConnector {
81
81
  const ccContacts = email.cc ? this.convertContacts(email.cc) : [];
82
82
  const bccContacts = email.bcc ? this.convertContacts(email.bcc) : [];
83
83
  const replyTo = email.replyTo ? this.convertContacts(email.replyTo)[0] : void 0;
84
- const from = this.convertContact(email.from || this.SENDER_EMAIL);
84
+ const from = this.convertContact(
85
+ email.from || {
86
+ name: this.SENDER_NAME,
87
+ email: this.SENDER_EMAIL
88
+ }
89
+ );
85
90
  const subject = email.subject;
86
91
  const attachments = [];
87
92
  const contacts = toContacts.flatMap((to) => {
@@ -74,7 +74,12 @@ class EcomailConnector extends IEmailConnector {
74
74
  const ccContacts = email.cc ? this.convertContacts(email.cc) : [];
75
75
  const bccContacts = email.bcc ? this.convertContacts(email.bcc) : [];
76
76
  const replyTo = email.replyTo ? this.convertContacts(email.replyTo)[0] : void 0;
77
- const from = this.convertContact(email.from || this.SENDER_EMAIL);
77
+ const from = this.convertContact(
78
+ email.from || {
79
+ name: this.SENDER_NAME,
80
+ email: this.SENDER_EMAIL
81
+ }
82
+ );
78
83
  const subject = email.subject;
79
84
  const attachments = [];
80
85
  const contacts = toContacts.flatMap((to) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/notification",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -30,9 +30,9 @@
30
30
  "./dist"
31
31
  ],
32
32
  "scripts": {
33
- "dev": "wrangler dev --port 9232",
33
+ "dev": "wrangler dev --port 9232 --persist-to ../../.wrangler/state",
34
34
  "wrangler:generate": "bunx develit wrangler:generate",
35
- "db:init": "wrangler d1 execute notification --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
35
+ "db:init": "wrangler d1 execute develit-notification --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
36
36
  "db:generate": "drizzle-kit generate",
37
37
  "db:migrate": "drizzle-kit migrate",
38
38
  "db:explore": "drizzle-kit studio",