@arkstack/notifications 0.17.26 → 0.18.0

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 +4 -4
  2. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -295,7 +295,7 @@ declare class DbNotification extends NotificationContract<UserNotification> {
295
295
  * @param realtime Set to false to disable realtime broadcast
296
296
  */
297
297
  broadcast(realtime?: boolean): void;
298
- create(user: User, payload: DbNotificationPayload): Promise<UserNotification>;
298
+ create(user: User, payload: DbNotificationPayload): Promise<import("arkormx").Model<string | import("arkormx").ModelQuerySchemaLike | Record<string, unknown>, Record<string, unknown>>>;
299
299
  /**
300
300
  * Send the database notification
301
301
  *
@@ -305,7 +305,7 @@ declare class DbNotification extends NotificationContract<UserNotification> {
305
305
  * @param data
306
306
  * @returns
307
307
  */
308
- send(message: string, subject?: string, _recipient?: NotificationRecipient, data?: NotificationData): Promise<UserNotification>;
308
+ send(message: string, subject?: string, _recipient?: NotificationRecipient, data?: NotificationData): Promise<import("arkormx").Model<string | import("arkormx").ModelQuerySchemaLike | Record<string, unknown>, Record<string, unknown>>>;
309
309
  }
310
310
  //#endregion
311
311
  //#region src/drivers/MailNotification.d.ts
@@ -724,8 +724,8 @@ declare class UserNotificationCenter {
724
724
  * @param user
725
725
  * @param payload
726
726
  */
727
- static create(user: User, payload: DbNotificationPayload): Promise<UserNotification>;
728
- static forUser(user: User): Promise<ArkormCollection<UserNotification, UserNotification[]>>;
727
+ static create(user: User, payload: DbNotificationPayload): Promise<import("arkormx").Model<string | import("arkormx").ModelQuerySchemaLike | Record<string, unknown>, Record<string, unknown>>>;
728
+ static forUser(user: User): Promise<ArkormCollection<import("arkormx").Model<string | import("arkormx").ModelQuerySchemaLike | Record<string, unknown>, Record<string, unknown>>, import("arkormx").Model<string | import("arkormx").ModelQuerySchemaLike | Record<string, unknown>, Record<string, unknown>>[]>>;
729
729
  /**
730
730
  * Fetch all the users unread messages
731
731
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/notifications",
3
- "version": "0.17.26",
3
+ "version": "0.18.0",
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,7 +34,7 @@
34
34
  "africastalking": "^0.8.0",
35
35
  "nodemailer": "^9.0.3",
36
36
  "twilio": "^6.0.2",
37
- "@arkstack/common": "^0.17.26"
37
+ "@arkstack/common": "^0.18.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@kanun-hq/plugin-phone": "^0.1.8",
@@ -42,9 +42,9 @@
42
42
  "pusher": "^5.2.0",
43
43
  "@arkstack/contract": "^0.17.22",
44
44
  "@arkstack/database": "^0.17.22",
45
- "@arkstack/driver-express": "^0.17.26",
46
- "@arkstack/driver-h3": "^0.17.26",
47
- "@arkstack/jobs": "^0.17.26"
45
+ "@arkstack/driver-h3": "^0.18.0",
46
+ "@arkstack/driver-express": "^0.18.0",
47
+ "@arkstack/jobs": "^0.18.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "@arkstack/driver-express": {