11import type {
2- Expand ,
3- FunctionReference ,
42 GenericDataModel ,
53 GenericMutationCtx ,
64 GenericQueryCtx ,
@@ -28,7 +26,7 @@ export class PushNotifications<UserType extends string = GenericId<"users">> {
2826 public component : ComponentApi ,
2927 config ?: {
3028 logLevel ?: LogLevel ;
31- } ,
29+ }
3230 ) {
3331 this . component = component ;
3432 this . config = {
@@ -44,7 +42,7 @@ export class PushNotifications<UserType extends string = GenericId<"users">> {
4442 */
4543 recordToken (
4644 ctx : RunMutationCtx ,
47- args : { userId : UserType ; pushToken : string } ,
45+ args : { userId : UserType ; pushToken : string }
4846 ) : Promise < null > {
4947 return ctx . runMutation ( this . component . public . recordPushNotificationToken , {
5048 ...args ,
@@ -94,7 +92,7 @@ export class PushNotifications<UserType extends string = GenericId<"users">> {
9492 userId : UserType ;
9593 notification : NotificationFields ;
9694 allowUnregisteredTokens ?: boolean ;
97- } ,
95+ }
9896 ) {
9997 return ctx . runMutation ( this . component . public . sendPushNotification , {
10098 ...args ,
@@ -117,7 +115,7 @@ export class PushNotifications<UserType extends string = GenericId<"users">> {
117115 notification : NotificationFields ;
118116 } > ;
119117 allowUnregisteredTokens ?: boolean ;
120- } ,
118+ }
121119 ) {
122120 return ctx . runMutation ( this . component . public . sendPushNotificationBatch , {
123121 ...args ,
@@ -141,7 +139,7 @@ export class PushNotifications<UserType extends string = GenericId<"users">> {
141139 */
142140 getNotificationsForUser (
143141 ctx : RunQueryCtx ,
144- args : { userId : UserType ; limit ?: number } ,
142+ args : { userId : UserType ; limit ?: number }
145143 ) {
146144 return ctx . runQuery ( this . component . public . getNotificationsForUser , {
147145 ...args ,
0 commit comments