@arkstack/notifications 0.15.3 → 0.15.4

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -5
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -3,8 +3,6 @@ import { Transporter } from "nodemailer";
3
3
  import { Model } from "@arkstack/database";
4
4
  import { User } from "@app/models/User";
5
5
  import { User as User$1 } from "@arkstack/auth";
6
- import * as _$twilio_lib_rest_api_v2010_account_message0 from "twilio/lib/rest/api/v2010/account/message.js";
7
- import * as _$arkormx from "arkormx";
8
6
 
9
7
  //#region src/Contracts/UserNotification.d.ts
10
8
  declare abstract class UserNotification extends Model {
@@ -238,7 +236,7 @@ declare class TwilioSmsDriver {
238
236
  private client;
239
237
  private fromNumber;
240
238
  constructor(options?: SmsDriverOptions['twilio']);
241
- send(message: string, recipient: NotificationRecipient, data?: NotificationData): Promise<_$twilio_lib_rest_api_v2010_account_message0.MessageInstance[]>;
239
+ send(message: string, recipient: NotificationRecipient, data?: NotificationData): Promise<import("twilio/lib/rest/api/v2010/account/message").MessageInstance[]>;
242
240
  }
243
241
  //#endregion
244
242
  //#region src/drivers/SmsNotification.d.ts
@@ -279,8 +277,8 @@ declare class Notification<D extends keyof DriverMap = keyof DriverMap> {
279
277
  declare class UserNotificationCenter {
280
278
  private static getModel;
281
279
  static create(user: User, payload: DbNotificationPayload): Promise<UserNotification>;
282
- static forUser(user: User): Promise<_$arkormx.ArkormCollection<UserNotification, UserNotification[]>>;
283
- static unreadForUser(user: User): Promise<_$arkormx.ArkormCollection<UserNotification, UserNotification[]>>;
280
+ static forUser(user: User): Promise<import("arkormx").ArkormCollection<UserNotification, UserNotification[]>>;
281
+ static unreadForUser(user: User): Promise<import("arkormx").ArkormCollection<UserNotification, UserNotification[]>>;
284
282
  static markRead(notification: UserNotification | UserNotification['id']): Promise<void>;
285
283
  static markAllRead(user: User): Promise<void>;
286
284
  static delete(notification: UserNotification | UserNotification['id']): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/notifications",
3
- "version": "0.15.3",
3
+ "version": "0.15.4",
4
4
  "type": "module",
5
5
  "description": "Framework-agnostic notification module for Arkstack and Nodejs, providing support for multi-channel notification delivery.",
6
6
  "homepage": "https://arkstack.toneflix.net/guide/notifications",
@@ -34,11 +34,11 @@
34
34
  "africastalking": "^0.8.0",
35
35
  "nodemailer": "^8.0.7",
36
36
  "twilio": "^6.0.0",
37
- "@arkstack/common": "^0.15.3"
37
+ "@arkstack/common": "^0.15.4"
38
38
  },
39
39
  "peerDependencies": {
40
- "@arkstack/database": "^0.15.3",
41
- "@arkstack/contract": "^0.15.3"
40
+ "@arkstack/database": "^0.15.4",
41
+ "@arkstack/contract": "^0.15.4"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/nodemailer": "^7.0.11"