@@ -47,197 +47,5 @@ export declare const internal: FilterApi<
4747> ;
4848
4949export declare const components : {
50- pushNotifications : {
51- public : {
52- deleteNotificationsForUser : FunctionReference <
53- "mutation" ,
54- "internal" ,
55- { logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ; userId : string } ,
56- null
57- > ;
58- getNotification : FunctionReference <
59- "query" ,
60- "internal" ,
61- { id : string ; logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" } ,
62- null | {
63- _contentAvailable ?: boolean ;
64- _creationTime : number ;
65- badge ?: number ;
66- body ?: string ;
67- categoryId ?: string ;
68- channelId ?: string ;
69- data ?: any ;
70- expiration ?: number ;
71- interruptionLevel ?:
72- | "active"
73- | "critical"
74- | "passive"
75- | "time-sensitive" ;
76- mutableContent ?: boolean ;
77- numPreviousFailures : number ;
78- priority ?: "default" | "normal" | "high" ;
79- sound ?: string | null ;
80- state :
81- | "awaiting_delivery"
82- | "in_progress"
83- | "delivered"
84- | "needs_retry"
85- | "failed"
86- | "maybe_delivered"
87- | "unable_to_deliver" ;
88- subtitle ?: string ;
89- title ?: string ;
90- ttl ?: number ;
91- }
92- > ;
93- getNotificationsForUser : FunctionReference <
94- "query" ,
95- "internal" ,
96- {
97- limit ?: number ;
98- logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ;
99- userId : string ;
100- } ,
101- Array < {
102- _contentAvailable ?: boolean ;
103- _creationTime : number ;
104- badge ?: number ;
105- body ?: string ;
106- categoryId ?: string ;
107- channelId ?: string ;
108- data ?: any ;
109- expiration ?: number ;
110- id : string ;
111- interruptionLevel ?:
112- | "active"
113- | "critical"
114- | "passive"
115- | "time-sensitive" ;
116- mutableContent ?: boolean ;
117- numPreviousFailures : number ;
118- priority ?: "default" | "normal" | "high" ;
119- sound ?: string | null ;
120- state :
121- | "awaiting_delivery"
122- | "in_progress"
123- | "delivered"
124- | "needs_retry"
125- | "failed"
126- | "maybe_delivered"
127- | "unable_to_deliver" ;
128- subtitle ?: string ;
129- title ?: string ;
130- ttl ?: number ;
131- } >
132- > ;
133- getStatusForUser : FunctionReference <
134- "query" ,
135- "internal" ,
136- { logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ; userId : string } ,
137- { hasToken : boolean ; paused : boolean }
138- > ;
139- pauseNotificationsForUser : FunctionReference <
140- "mutation" ,
141- "internal" ,
142- { logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ; userId : string } ,
143- null
144- > ;
145- recordPushNotificationToken : FunctionReference <
146- "mutation" ,
147- "internal" ,
148- {
149- logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ;
150- pushToken : string ;
151- userId : string ;
152- } ,
153- null
154- > ;
155- removePushNotificationToken : FunctionReference <
156- "mutation" ,
157- "internal" ,
158- { logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ; userId : string } ,
159- null
160- > ;
161- restart : FunctionReference <
162- "mutation" ,
163- "internal" ,
164- { logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" } ,
165- boolean
166- > ;
167- sendPushNotification : FunctionReference <
168- "mutation" ,
169- "internal" ,
170- {
171- allowUnregisteredTokens ?: boolean ;
172- logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ;
173- notification : {
174- _contentAvailable ?: boolean ;
175- badge ?: number ;
176- body ?: string ;
177- categoryId ?: string ;
178- channelId ?: string ;
179- data ?: any ;
180- expiration ?: number ;
181- interruptionLevel ?:
182- | "active"
183- | "critical"
184- | "passive"
185- | "time-sensitive" ;
186- mutableContent ?: boolean ;
187- priority ?: "default" | "normal" | "high" ;
188- sound ?: string | null ;
189- subtitle ?: string ;
190- title ?: string ;
191- ttl ?: number ;
192- } ;
193- userId : string ;
194- } ,
195- string | null
196- > ;
197- sendPushNotificationBatch : FunctionReference <
198- "mutation" ,
199- "internal" ,
200- {
201- allowUnregisteredTokens ?: boolean ;
202- logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ;
203- notifications : Array < {
204- notification : {
205- _contentAvailable ?: boolean ;
206- badge ?: number ;
207- body ?: string ;
208- categoryId ?: string ;
209- channelId ?: string ;
210- data ?: any ;
211- expiration ?: number ;
212- interruptionLevel ?:
213- | "active"
214- | "critical"
215- | "passive"
216- | "time-sensitive" ;
217- mutableContent ?: boolean ;
218- priority ?: "default" | "normal" | "high" ;
219- sound ?: string | null ;
220- subtitle ?: string ;
221- title ?: string ;
222- ttl ?: number ;
223- } ;
224- userId : string ;
225- } > ;
226- } ,
227- Array < string | null >
228- > ;
229- shutdown : FunctionReference <
230- "mutation" ,
231- "internal" ,
232- { logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" } ,
233- { data ?: any ; message : string }
234- > ;
235- unpauseNotificationsForUser : FunctionReference <
236- "mutation" ,
237- "internal" ,
238- { logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ; userId : string } ,
239- null
240- > ;
241- } ;
242- } ;
50+ pushNotifications : import ( "@convex-dev/expo-push-notifications/_generated/component.js" ) . ComponentApi < "pushNotifications" > ;
24351} ;
0 commit comments