@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 +1 -1
- package/dist/@types.d.cts +4 -3
- package/dist/@types.d.mts +4 -3
- package/dist/@types.d.ts +4 -3
- package/dist/@types.mjs +1 -1
- package/dist/export/worker.cjs +1 -1
- package/dist/export/worker.d.cts +2 -4
- package/dist/export/worker.d.mts +2 -4
- package/dist/export/worker.d.ts +2 -4
- package/dist/export/worker.mjs +1 -1
- package/dist/shared/{notification.Bc0Z2CT6.d.cts → notification.-hsQiolw.d.ts} +4 -1
- package/dist/shared/{notification.Bc0Z2CT6.d.mts → notification.CDgVHdh3.d.mts} +4 -1
- package/dist/shared/{notification.Bc0Z2CT6.d.ts → notification.CNZwNhWN.d.cts} +4 -1
- package/dist/shared/{notification.B8IIgYsS.cjs → notification.Cqu8_iNk.cjs} +1 -3
- package/dist/shared/{notification.D1sgZDH0.mjs → notification.DCazEi4Y.mjs} +1 -3
- package/package.json +1 -1
package/dist/@types.cjs
CHANGED
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -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.
|
|
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');
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -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.
|
|
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[]);
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -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.
|
|
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[]);
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -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.
|
|
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[]);
|
package/dist/export/worker.mjs
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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) {
|