@develit-services/notification 0.0.22 → 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.d.cts CHANGED
@@ -3,7 +3,7 @@ export { n as IPushNotification, o as ISlack, N as NotificationQueueMessage, S a
3
3
  import { InternalError } from '@develit-io/backend-sdk';
4
4
  import twilio from 'twilio';
5
5
  import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
6
- 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';
7
7
  import 'zod';
8
8
  import 'zod/v4';
9
9
  import './shared/notification.BJyMXKGH.cjs';
package/dist/@types.d.mts CHANGED
@@ -3,7 +3,7 @@ export { n as IPushNotification, o as ISlack, N as NotificationQueueMessage, S a
3
3
  import { InternalError } from '@develit-io/backend-sdk';
4
4
  import twilio from 'twilio';
5
5
  import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
6
- 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';
7
7
  import 'zod';
8
8
  import 'zod/v4';
9
9
  import './shared/notification.BJyMXKGH.mjs';
package/dist/@types.d.ts CHANGED
@@ -3,7 +3,7 @@ export { n as IPushNotification, o as ISlack, N as NotificationQueueMessage, S a
3
3
  import { InternalError } from '@develit-io/backend-sdk';
4
4
  import twilio from 'twilio';
5
5
  import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
6
- 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';
7
7
  import 'zod';
8
8
  import 'zod/v4';
9
9
  import './shared/notification.BJyMXKGH.js';
@@ -14,7 +14,7 @@ declare class SlackConnector {
14
14
  sendNotificationToAllSlack(message: string): Promise<void>;
15
15
  }
16
16
 
17
- 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);
18
18
  declare class NotificationServiceBase extends NotificationServiceBase_base {
19
19
  readonly name: string;
20
20
  readonly slackConnector: SlackConnector;
@@ -14,7 +14,7 @@ declare class SlackConnector {
14
14
  sendNotificationToAllSlack(message: string): Promise<void>;
15
15
  }
16
16
 
17
- 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);
18
18
  declare class NotificationServiceBase extends NotificationServiceBase_base {
19
19
  readonly name: string;
20
20
  readonly slackConnector: SlackConnector;
@@ -14,7 +14,7 @@ declare class SlackConnector {
14
14
  sendNotificationToAllSlack(message: string): Promise<void>;
15
15
  }
16
16
 
17
- 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);
18
18
  declare class NotificationServiceBase extends NotificationServiceBase_base {
19
19
  readonly name: string;
20
20
  readonly slackConnector: SlackConnector;
@@ -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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/notification",
3
- "version": "0.0.22",
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
  }