@develit-services/notification 0.0.21 → 0.0.22

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
6
  export { b as NotificationServiceEnv, a as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.B2I1pTPy.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
6
  export { b as NotificationServiceEnv, a as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.B2I1pTPy.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
6
  export { b as NotificationServiceEnv, a as NotificationServiceEnvironmentConfig, N as NotificationServiceWranglerConfig } from './shared/notification.B2I1pTPy.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,15 +1,13 @@
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[]);
@@ -1,15 +1,13 @@
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[]);
@@ -1,15 +1,13 @@
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[]);
@@ -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,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 };
@@ -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.22",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {