@develit-services/notification 0.0.21 → 0.0.23

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.B8IIgYsS.cjs');
3
+ const twilio_connector = require('./shared/notification.Cqu8_iNk.cjs');
4
4
  require('zod');
5
5
  require('@develit-io/backend-sdk');
6
6
  require('zod/v4');
package/dist/@types.d.cts CHANGED
@@ -1,12 +1,13 @@
1
- import { I as IEmailConnector, g as IContact, h as IEmail, a as ISmsConnector, i as ISms } from './shared/notification.Bc0Z2CT6.cjs';
2
- export { n as IPushNotification, o as ISlack, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, e as SendSlackInput, f as SendSlackOutput, c as SendSmsInput, d as SendSmsOutput, j as iContactSchema, k as iEmailSchema, s as sendEmailInputSchema, l as sendSlackInputSchema, m as sendSmsInputSchema } from './shared/notification.Bc0Z2CT6.cjs';
1
+ import { I as IEmailConnector, g as IContact, h as IEmail, a as ISmsConnector, i as ISms, t as tables } from './shared/notification.CNZwNhWN.cjs';
2
+ export { n as IPushNotification, o as ISlack, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, e as SendSlackInput, f as SendSlackOutput, c as SendSmsInput, d as SendSmsOutput, j as iContactSchema, k as iEmailSchema, s as sendEmailInputSchema, l as sendSlackInputSchema, m as sendSmsInputSchema } from './shared/notification.CNZwNhWN.cjs';
3
3
  import { InternalError } from '@develit-io/backend-sdk';
4
4
  import twilio from 'twilio';
5
- import { tables } from '@services/notification/src/database/drizzle';
6
5
  import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
7
- export { b as NotificationServiceEnv, a as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.B2I1pTPy.cjs';
6
+ export { b as NotificationServiceEnv, a as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.CNBJ5Beq.cjs';
8
7
  import 'zod';
9
8
  import 'zod/v4';
9
+ import './shared/notification.BJyMXKGH.cjs';
10
+ import 'drizzle-orm/sqlite-core';
10
11
 
11
12
  declare class EcomailConnector extends IEmailConnector {
12
13
  static providerName: string;
package/dist/@types.d.mts CHANGED
@@ -1,12 +1,13 @@
1
- import { I as IEmailConnector, g as IContact, h as IEmail, a as ISmsConnector, i as ISms } from './shared/notification.Bc0Z2CT6.mjs';
2
- export { n as IPushNotification, o as ISlack, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, e as SendSlackInput, f as SendSlackOutput, c as SendSmsInput, d as SendSmsOutput, j as iContactSchema, k as iEmailSchema, s as sendEmailInputSchema, l as sendSlackInputSchema, m as sendSmsInputSchema } from './shared/notification.Bc0Z2CT6.mjs';
1
+ import { I as IEmailConnector, g as IContact, h as IEmail, a as ISmsConnector, i as ISms, t as tables } from './shared/notification.CDgVHdh3.mjs';
2
+ export { n as IPushNotification, o as ISlack, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, e as SendSlackInput, f as SendSlackOutput, c as SendSmsInput, d as SendSmsOutput, j as iContactSchema, k as iEmailSchema, s as sendEmailInputSchema, l as sendSlackInputSchema, m as sendSmsInputSchema } from './shared/notification.CDgVHdh3.mjs';
3
3
  import { InternalError } from '@develit-io/backend-sdk';
4
4
  import twilio from 'twilio';
5
- import { tables } from '@services/notification/src/database/drizzle';
6
5
  import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
7
- export { b as NotificationServiceEnv, a as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.B2I1pTPy.mjs';
6
+ export { b as NotificationServiceEnv, a as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.CNBJ5Beq.mjs';
8
7
  import 'zod';
9
8
  import 'zod/v4';
9
+ import './shared/notification.BJyMXKGH.mjs';
10
+ import 'drizzle-orm/sqlite-core';
10
11
 
11
12
  declare class EcomailConnector extends IEmailConnector {
12
13
  static providerName: string;
package/dist/@types.d.ts CHANGED
@@ -1,12 +1,13 @@
1
- import { I as IEmailConnector, g as IContact, h as IEmail, a as ISmsConnector, i as ISms } from './shared/notification.Bc0Z2CT6.js';
2
- export { n as IPushNotification, o as ISlack, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, e as SendSlackInput, f as SendSlackOutput, c as SendSmsInput, d as SendSmsOutput, j as iContactSchema, k as iEmailSchema, s as sendEmailInputSchema, l as sendSlackInputSchema, m as sendSmsInputSchema } from './shared/notification.Bc0Z2CT6.js';
1
+ import { I as IEmailConnector, g as IContact, h as IEmail, a as ISmsConnector, i as ISms, t as tables } from './shared/notification.-hsQiolw.js';
2
+ export { n as IPushNotification, o as ISlack, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, e as SendSlackInput, f as SendSlackOutput, c as SendSmsInput, d as SendSmsOutput, j as iContactSchema, k as iEmailSchema, s as sendEmailInputSchema, l as sendSlackInputSchema, m as sendSmsInputSchema } from './shared/notification.-hsQiolw.js';
3
3
  import { InternalError } from '@develit-io/backend-sdk';
4
4
  import twilio from 'twilio';
5
- import { tables } from '@services/notification/src/database/drizzle';
6
5
  import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
7
- export { b as NotificationServiceEnv, a as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.B2I1pTPy.js';
6
+ export { b as NotificationServiceEnv, a as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.CNBJ5Beq.js';
8
7
  import 'zod';
9
8
  import 'zod/v4';
9
+ import './shared/notification.BJyMXKGH.js';
10
+ import 'drizzle-orm/sqlite-core';
10
11
 
11
12
  declare class EcomailConnector extends IEmailConnector {
12
13
  static providerName: string;
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.D1sgZDH0.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.DCazEi4Y.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.B8IIgYsS.cjs');
6
+ const twilio_connector = require('../shared/notification.Cqu8_iNk.cjs');
7
7
  const database_schema = require('../shared/notification.4b3eUEIG.cjs');
8
8
  require('drizzle-orm');
9
9
  require('drizzle-orm/sqlite-core');
@@ -1,22 +1,20 @@
1
1
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
2
2
  import { IRPCResponse } from '@develit-io/backend-sdk';
3
- import { I as IEmailConnector, a as ISmsConnector, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, c as SendSmsInput, d as SendSmsOutput, e as SendSlackInput, f as SendSlackOutput } from '../shared/notification.Bc0Z2CT6.cjs';
4
- import { s as schema } from '../shared/notification.BJyMXKGH.cjs';
3
+ import { I as IEmailConnector, a as ISmsConnector, t as tables, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, c as SendSmsInput, d as SendSmsOutput, e as SendSlackInput, f as SendSlackOutput } from '../shared/notification.CNZwNhWN.cjs';
5
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
6
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
7
6
  import 'zod';
8
7
  import 'zod/v4';
8
+ import '../shared/notification.BJyMXKGH.cjs';
9
9
  import 'drizzle-orm/sqlite-core';
10
10
 
11
- declare const tables: typeof schema;
12
-
13
11
  declare class SlackConnector {
14
12
  private webhooks;
15
13
  constructor(webhooks: string[]);
16
14
  sendNotificationToAllSlack(message: string): Promise<void>;
17
15
  }
18
16
 
19
- declare const NotificationServiceBase_base: (abstract new (ctx: ExecutionContext, env: NotificationEnv) => WorkerEntrypoint<NotificationEnv>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
17
+ declare const NotificationServiceBase_base: (abstract new (ctx: ExecutionContext, env: NotificationEnv) => WorkerEntrypoint<NotificationEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
20
18
  declare class NotificationServiceBase extends NotificationServiceBase_base {
21
19
  readonly name: string;
22
20
  readonly slackConnector: SlackConnector;
@@ -1,22 +1,20 @@
1
1
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
2
2
  import { IRPCResponse } from '@develit-io/backend-sdk';
3
- import { I as IEmailConnector, a as ISmsConnector, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, c as SendSmsInput, d as SendSmsOutput, e as SendSlackInput, f as SendSlackOutput } from '../shared/notification.Bc0Z2CT6.mjs';
4
- import { s as schema } from '../shared/notification.BJyMXKGH.mjs';
3
+ import { I as IEmailConnector, a as ISmsConnector, t as tables, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, c as SendSmsInput, d as SendSmsOutput, e as SendSlackInput, f as SendSlackOutput } from '../shared/notification.CDgVHdh3.mjs';
5
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
6
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
7
6
  import 'zod';
8
7
  import 'zod/v4';
8
+ import '../shared/notification.BJyMXKGH.mjs';
9
9
  import 'drizzle-orm/sqlite-core';
10
10
 
11
- declare const tables: typeof schema;
12
-
13
11
  declare class SlackConnector {
14
12
  private webhooks;
15
13
  constructor(webhooks: string[]);
16
14
  sendNotificationToAllSlack(message: string): Promise<void>;
17
15
  }
18
16
 
19
- declare const NotificationServiceBase_base: (abstract new (ctx: ExecutionContext, env: NotificationEnv) => WorkerEntrypoint<NotificationEnv>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
17
+ declare const NotificationServiceBase_base: (abstract new (ctx: ExecutionContext, env: NotificationEnv) => WorkerEntrypoint<NotificationEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
20
18
  declare class NotificationServiceBase extends NotificationServiceBase_base {
21
19
  readonly name: string;
22
20
  readonly slackConnector: SlackConnector;
@@ -1,22 +1,20 @@
1
1
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
2
2
  import { IRPCResponse } from '@develit-io/backend-sdk';
3
- import { I as IEmailConnector, a as ISmsConnector, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, c as SendSmsInput, d as SendSmsOutput, e as SendSlackInput, f as SendSlackOutput } from '../shared/notification.Bc0Z2CT6.js';
4
- import { s as schema } from '../shared/notification.BJyMXKGH.js';
3
+ import { I as IEmailConnector, a as ISmsConnector, t as tables, N as NotificationQueueMessage, S as SendEmailInput, b as SendEmailOutput, c as SendSmsInput, d as SendSmsOutput, e as SendSlackInput, f as SendSlackOutput } from '../shared/notification.-hsQiolw.js';
5
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
6
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
7
6
  import 'zod';
8
7
  import 'zod/v4';
8
+ import '../shared/notification.BJyMXKGH.js';
9
9
  import 'drizzle-orm/sqlite-core';
10
10
 
11
- declare const tables: typeof schema;
12
-
13
11
  declare class SlackConnector {
14
12
  private webhooks;
15
13
  constructor(webhooks: string[]);
16
14
  sendNotificationToAllSlack(message: string): Promise<void>;
17
15
  }
18
16
 
19
- declare const NotificationServiceBase_base: (abstract new (ctx: ExecutionContext, env: NotificationEnv) => WorkerEntrypoint<NotificationEnv>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
17
+ declare const NotificationServiceBase_base: (abstract new (ctx: ExecutionContext, env: NotificationEnv) => WorkerEntrypoint<NotificationEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
20
18
  declare class NotificationServiceBase extends NotificationServiceBase_base {
21
19
  readonly name: string;
22
20
  readonly slackConnector: SlackConnector;
@@ -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.D1sgZDH0.mjs';
2
+ import { E as EcomailConnector, T as TwilioConnector, s as sendEmailInputSchema, a as sendSmsInputSchema, b as sendSlackInputSchema } from '../shared/notification.DCazEi4Y.mjs';
3
3
  import { s as schema } from '../shared/notification.C0X8Orrh.mjs';
4
4
  import 'drizzle-orm';
5
5
  import 'drizzle-orm/sqlite-core';
@@ -1,4 +1,4 @@
1
- import { N as NotificationServiceWranglerConfig } from '../shared/notification.B2I1pTPy.cjs';
1
+ import { N as NotificationServiceWranglerConfig } from '../shared/notification.CNBJ5Beq.cjs';
2
2
 
3
3
  /** biome-ignore-all lint/suspicious/noExplicitAny: allow any */
4
4
 
@@ -19,10 +19,8 @@ declare function defineNotificationServiceWrangler(config: NotificationServiceWr
19
19
  vars: {
20
20
  ENVIRONMENT: string;
21
21
  EMAIL_PROVIDER: "ecomail";
22
- EMAIL_SENDER: {
23
- name: string;
24
- email: string;
25
- };
22
+ EMAIL_SENDER_EMAIL: string;
23
+ EMAIL_SENDER_NAME: string;
26
24
  EMAIL_SMTP_HOST: string;
27
25
  SMS_PROVIDER: "twilio";
28
26
  SMS_ACCOUNT_ID: string;
@@ -1,4 +1,4 @@
1
- import { N as NotificationServiceWranglerConfig } from '../shared/notification.B2I1pTPy.mjs';
1
+ import { N as NotificationServiceWranglerConfig } from '../shared/notification.CNBJ5Beq.mjs';
2
2
 
3
3
  /** biome-ignore-all lint/suspicious/noExplicitAny: allow any */
4
4
 
@@ -19,10 +19,8 @@ declare function defineNotificationServiceWrangler(config: NotificationServiceWr
19
19
  vars: {
20
20
  ENVIRONMENT: string;
21
21
  EMAIL_PROVIDER: "ecomail";
22
- EMAIL_SENDER: {
23
- name: string;
24
- email: string;
25
- };
22
+ EMAIL_SENDER_EMAIL: string;
23
+ EMAIL_SENDER_NAME: string;
26
24
  EMAIL_SMTP_HOST: string;
27
25
  SMS_PROVIDER: "twilio";
28
26
  SMS_ACCOUNT_ID: string;
@@ -1,4 +1,4 @@
1
- import { N as NotificationServiceWranglerConfig } from '../shared/notification.B2I1pTPy.js';
1
+ import { N as NotificationServiceWranglerConfig } from '../shared/notification.CNBJ5Beq.js';
2
2
 
3
3
  /** biome-ignore-all lint/suspicious/noExplicitAny: allow any */
4
4
 
@@ -19,10 +19,8 @@ declare function defineNotificationServiceWrangler(config: NotificationServiceWr
19
19
  vars: {
20
20
  ENVIRONMENT: string;
21
21
  EMAIL_PROVIDER: "ecomail";
22
- EMAIL_SENDER: {
23
- name: string;
24
- email: string;
25
- };
22
+ EMAIL_SENDER_EMAIL: string;
23
+ EMAIL_SENDER_NAME: string;
26
24
  EMAIL_SMTP_HOST: string;
27
25
  SMS_PROVIDER: "twilio";
28
26
  SMS_ACCOUNT_ID: string;
@@ -1,6 +1,7 @@
1
1
  import z$1, { z } from 'zod';
2
2
  import { z as z$2 } from 'zod/v4';
3
3
  import { InternalError } from '@develit-io/backend-sdk';
4
+ import { s as schema } from './notification.BJyMXKGH.js';
4
5
 
5
6
  declare const iContactSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6
7
  email: z.ZodString;
@@ -195,5 +196,7 @@ interface ISlack {
195
196
  message: string;
196
197
  }
197
198
 
198
- export { IEmailConnector as I, ISmsConnector as a, iContactSchema as j, iEmailSchema as k, sendSlackInputSchema as l, sendSmsInputSchema as m, sendEmailInputSchema as s };
199
+ declare const tables: typeof schema;
200
+
201
+ export { IEmailConnector as I, ISmsConnector as a, iContactSchema as j, iEmailSchema as k, sendSlackInputSchema as l, sendSmsInputSchema as m, sendEmailInputSchema as s, tables as t };
199
202
  export type { NotificationQueueMessage as N, SendEmailInput as S, SendEmailOutput as b, SendSmsInput as c, SendSmsOutput as d, SendSlackInput as e, SendSlackOutput as f, IContact as g, IEmail as h, ISms as i, IPushNotification as n, ISlack as o };
@@ -1,6 +1,7 @@
1
1
  import z$1, { z } from 'zod';
2
2
  import { z as z$2 } from 'zod/v4';
3
3
  import { InternalError } from '@develit-io/backend-sdk';
4
+ import { s as schema } from './notification.BJyMXKGH.mjs';
4
5
 
5
6
  declare const iContactSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6
7
  email: z.ZodString;
@@ -195,5 +196,7 @@ interface ISlack {
195
196
  message: string;
196
197
  }
197
198
 
198
- export { IEmailConnector as I, ISmsConnector as a, iContactSchema as j, iEmailSchema as k, sendSlackInputSchema as l, sendSmsInputSchema as m, sendEmailInputSchema as s };
199
+ declare const tables: typeof schema;
200
+
201
+ export { IEmailConnector as I, ISmsConnector as a, iContactSchema as j, iEmailSchema as k, sendSlackInputSchema as l, sendSmsInputSchema as m, sendEmailInputSchema as s, tables as t };
199
202
  export type { NotificationQueueMessage as N, SendEmailInput as S, SendEmailOutput as b, SendSmsInput as c, SendSmsOutput as d, SendSlackInput as e, SendSlackOutput as f, IContact as g, IEmail as h, ISms as i, IPushNotification as n, ISlack as o };
@@ -8,10 +8,8 @@ interface NotificationServiceEnvironmentConfig {
8
8
  };
9
9
  vars: {
10
10
  EMAIL_PROVIDER: 'ecomail';
11
- EMAIL_SENDER: {
12
- name: string;
13
- email: string;
14
- };
11
+ EMAIL_SENDER_EMAIL: string;
12
+ EMAIL_SENDER_NAME: string;
15
13
  EMAIL_SMTP_HOST: string;
16
14
  SMS_PROVIDER: 'twilio';
17
15
  SMS_ACCOUNT_ID: string;
@@ -8,10 +8,8 @@ interface NotificationServiceEnvironmentConfig {
8
8
  };
9
9
  vars: {
10
10
  EMAIL_PROVIDER: 'ecomail';
11
- EMAIL_SENDER: {
12
- name: string;
13
- email: string;
14
- };
11
+ EMAIL_SENDER_EMAIL: string;
12
+ EMAIL_SENDER_NAME: string;
15
13
  EMAIL_SMTP_HOST: string;
16
14
  SMS_PROVIDER: 'twilio';
17
15
  SMS_ACCOUNT_ID: string;
@@ -8,10 +8,8 @@ interface NotificationServiceEnvironmentConfig {
8
8
  };
9
9
  vars: {
10
10
  EMAIL_PROVIDER: 'ecomail';
11
- EMAIL_SENDER: {
12
- name: string;
13
- email: string;
14
- };
11
+ EMAIL_SENDER_EMAIL: string;
12
+ EMAIL_SENDER_NAME: string;
15
13
  EMAIL_SMTP_HOST: string;
16
14
  SMS_PROVIDER: 'twilio';
17
15
  SMS_ACCOUNT_ID: string;
@@ -1,6 +1,7 @@
1
1
  import z$1, { z } from 'zod';
2
2
  import { z as z$2 } from 'zod/v4';
3
3
  import { InternalError } from '@develit-io/backend-sdk';
4
+ import { s as schema } from './notification.BJyMXKGH.cjs';
4
5
 
5
6
  declare const iContactSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6
7
  email: z.ZodString;
@@ -195,5 +196,7 @@ interface ISlack {
195
196
  message: string;
196
197
  }
197
198
 
198
- export { IEmailConnector as I, ISmsConnector as a, iContactSchema as j, iEmailSchema as k, sendSlackInputSchema as l, sendSmsInputSchema as m, sendEmailInputSchema as s };
199
+ declare const tables: typeof schema;
200
+
201
+ export { IEmailConnector as I, ISmsConnector as a, iContactSchema as j, iEmailSchema as k, sendSlackInputSchema as l, sendSmsInputSchema as m, sendEmailInputSchema as s, tables as t };
199
202
  export type { NotificationQueueMessage as N, SendEmailInput as S, SendEmailOutput as b, SendSmsInput as c, SendSmsOutput as d, SendSlackInput as e, SendSlackOutput as f, IContact as g, IEmail as h, ISms as i, IPushNotification as n, ISlack as o };
@@ -80,9 +80,7 @@ class EcomailConnector extends IEmailConnector {
80
80
  const replyTo = email.replyTo ? this.convertContacts(email.replyTo)[0] : void 0;
81
81
  const from = this.convertContact(email.from || this.SENDER);
82
82
  const subject = email.subject;
83
- const textAttachments = email.text ? [{ name: "plain", type: "text/plain", content: email.text }] : [];
84
- const htmlAttachments = email.html ? [{ type: "text/html", content: email.html, name: "email_body.html" }] : [];
85
- const attachments = [...textAttachments, ...htmlAttachments];
83
+ const attachments = [];
86
84
  const contacts = toContacts.flatMap((to) => {
87
85
  const entries = [];
88
86
  if (ccContacts.length > 0) {
@@ -73,9 +73,7 @@ class EcomailConnector extends IEmailConnector {
73
73
  const replyTo = email.replyTo ? this.convertContacts(email.replyTo)[0] : void 0;
74
74
  const from = this.convertContact(email.from || this.SENDER);
75
75
  const subject = email.subject;
76
- const textAttachments = email.text ? [{ name: "plain", type: "text/plain", content: email.text }] : [];
77
- const htmlAttachments = email.html ? [{ type: "text/html", content: email.html, name: "email_body.html" }] : [];
78
- const attachments = [...textAttachments, ...htmlAttachments];
76
+ const attachments = [];
79
77
  const contacts = toContacts.flatMap((to) => {
80
78
  const entries = [];
81
79
  if (ccContacts.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/notification",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -30,37 +30,33 @@
30
30
  "./dist"
31
31
  ],
32
32
  "scripts": {
33
- "postinstall": "bun cf:typegen",
33
+ "dev": "wrangler dev --port 9232",
34
34
  "wrangler:generate": "bunx develit wrangler:generate",
35
- "cf:typegen": "wrangler types --include-runtime false --env-interface NotificationEnv",
36
- "dev": "bun wrangler:generate && wrangler dev --port 9234",
37
- "lint": "biome check",
38
- "lint:fix": "biome check --fix",
39
- "typecheck": "tsc",
40
- "db:init": "wrangler d1 execute notification-db --local --persist-to ../../.wrangler/state --command=\"SELECT 'creating sqlite...' AS status;\"",
35
+ "db:init": "wrangler d1 execute notification --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
41
36
  "db:generate": "drizzle-kit generate",
42
37
  "db:migrate": "drizzle-kit migrate",
43
38
  "db:explore": "drizzle-kit studio",
39
+ "types": "wrangler types --env-interface NotificationEnv --include-runtime false",
40
+ "typecheck": "tsc",
41
+ "lint": "biome check",
42
+ "lint:fix": "biome check --fix",
44
43
  "test": "vitest",
45
44
  "test:cov": "vitest run --coverage",
46
45
  "test:unit": "vitest unit fixtures",
47
46
  "test:int": "vitest integration",
48
- "changelogen": "bunx changelogen@latest --bump",
49
47
  "build": "unbuild",
48
+ "changelogen": "bunx changelogen@latest --bump",
50
49
  "release": "bun run build && bunx changelogen@latest --release --push && npm publish --access public"
51
50
  },
52
51
  "peerDependencies": {
53
52
  "@develit-io/backend-sdk": "5.14.1",
54
- "@cloudflare/vitest-pool-workers": "^0.8.70",
55
- "@cloudflare/workers-types": "^4.20250906.0",
56
- "cloudflare": "^5.0.0",
57
- "drizzle-kit": "^0.31.4",
58
- "drizzle-orm": "^0.44.4",
53
+ "drizzle-kit": "^0.31.5",
54
+ "drizzle-orm": "^0.44.6",
59
55
  "drizzle-seed": "^0.3.1",
60
- "wrangler": "^4.34.0",
61
- "zod": "^4.1.5"
56
+ "wrangler": "^4.42.2",
57
+ "zod": "^4.1.12"
62
58
  },
63
59
  "dependencies": {
64
- "twilio": "^5.9.0"
60
+ "twilio": "^5.10.3"
65
61
  }
66
62
  }