@stacksjs/notifications 0.70.112 → 0.70.113

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.
@@ -1,4 +1,11 @@
1
- /** @defaultValue `{ send: () => Promise<unknown> }` */
1
+ /**
2
+ * @defaultValue
3
+ * ```ts
4
+ * {
5
+ * send: (options: BroadcastNotificationOptions) => Promise<BroadcastNotificationResult>
6
+ * }
7
+ * ```
8
+ */
2
9
  export declare const BroadcastNotificationDriver: {
3
10
  /**
4
11
  * Emit the notification over the realtime channel. Resolves with
@@ -3,14 +3,14 @@ export declare function useDatabase(): typeof DatabaseNotificationDriver;
3
3
  * @defaultValue
4
4
  * ```ts
5
5
  * {
6
- * send: () => unknown,
7
- * getUserNotifications: () => unknown,
8
- * getUnreadNotifications: () => unknown,
9
- * markAsRead: () => unknown,
10
- * markAllAsRead: () => unknown,
11
- * unreadCount: () => unknown,
12
- * deleteNotification: () => unknown,
13
- * deleteAllNotifications: () => unknown
6
+ * send: (options: CreateNotificationOptions) => Promise<DatabaseNotification>,
7
+ * getUserNotifications: (userId: number) => Promise<DatabaseNotification[]>,
8
+ * getUnreadNotifications: (userId: number) => Promise<DatabaseNotification[]>,
9
+ * markAsRead: (id: number) => Promise<void>,
10
+ * markAllAsRead: (userId: number) => Promise<void>,
11
+ * unreadCount: (userId: number) => Promise<number>,
12
+ * deleteNotification: (id: number) => Promise<void>,
13
+ * deleteAllNotifications: (userId: number) => Promise<void>
14
14
  * }
15
15
  * ```
16
16
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/notifications",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.112",
5
+ "version": "0.70.113",
6
6
  "description": "The Stacks notifications integration.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -59,14 +59,14 @@
59
59
  "prepublishOnly": "bun run build"
60
60
  },
61
61
  "devDependencies": {
62
- "@stacksjs/chat": "0.70.112",
63
- "@stacksjs/cli": "0.70.112",
64
- "@stacksjs/config": "0.70.112",
62
+ "@stacksjs/chat": "0.70.113",
63
+ "@stacksjs/cli": "0.70.113",
64
+ "@stacksjs/config": "0.70.113",
65
65
  "better-dx": "^0.2.16",
66
- "@stacksjs/email": "0.70.112",
67
- "@stacksjs/error-handling": "0.70.112",
68
- "@stacksjs/push": "0.70.112",
69
- "@stacksjs/sms": "0.70.112",
70
- "@stacksjs/types": "0.70.112"
66
+ "@stacksjs/email": "0.70.113",
67
+ "@stacksjs/error-handling": "0.70.113",
68
+ "@stacksjs/push": "0.70.113",
69
+ "@stacksjs/sms": "0.70.113",
70
+ "@stacksjs/types": "0.70.113"
71
71
  }
72
72
  }