1 |
|
2 |
|
3 |
|
4 | export enum LoginType {
|
5 | |
6 |
|
7 |
|
8 | ANONYMOUS,
|
9 | |
10 |
|
11 |
|
12 | PASSWORD,
|
13 | |
14 |
|
15 |
|
16 | PHONE,
|
17 | |
18 |
|
19 |
|
20 |
|
21 |
|
22 | CUSTOM,
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 | FACEBOOK,
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 | GOOGLE,
|
35 | |
36 |
|
37 |
|
38 |
|
39 | EMAIL_LINK
|
40 | }
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | export enum QueryOrderByType {
|
46 | KEY,
|
47 | VALUE,
|
48 | CHILD,
|
49 | PRIORITY
|
50 | }
|
51 |
|
52 |
|
53 |
|
54 |
|
55 | export enum QueryRangeType {
|
56 | START_AT,
|
57 | END_AT,
|
58 | EQUAL_TO
|
59 | }
|
60 |
|
61 |
|
62 |
|
63 |
|
64 | export enum QueryLimitType {
|
65 | FIRST,
|
66 | LAST
|
67 | }
|
68 |
|
69 | export enum ServerValue {
|
70 | |
71 |
|
72 |
|
73 |
|
74 |
|
75 | TIMESTAMP
|
76 | }
|
77 |
|
78 | export interface MessagingOptions {
|
79 | |
80 |
|
81 |
|
82 | onPushTokenReceivedCallback?: (token: string) => void;
|
83 |
|
84 | |
85 |
|
86 |
|
87 | onMessageReceivedCallback?: (message: Message) => void;
|
88 |
|
89 | |
90 |
|
91 |
|
92 |
|
93 | showNotifications?: boolean;
|
94 |
|
95 | |
96 |
|
97 |
|
98 |
|
99 | showNotificationsWhenInForeground?: boolean;
|
100 | }
|
101 |
|
102 |
|
103 |
|
104 |
|
105 | export interface InitOptions extends MessagingOptions {
|
106 | |
107 |
|
108 |
|
109 |
|
110 |
|
111 | analyticsCollectionEnabled?: boolean;
|
112 | |
113 |
|
114 |
|
115 | persist?: boolean;
|
116 | |
117 |
|
118 |
|
119 | onAuthStateChanged?: (data: AuthStateData) => void;
|
120 | |
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 | iOSEmulatorFlush?: boolean;
|
127 | |
128 |
|
129 |
|
130 |
|
131 |
|
132 | storageBucket?: string;
|
133 |
|
134 | |
135 |
|
136 |
|
137 |
|
138 | onDynamicLinkCallback?: (data: DynamicLinkData) => void;
|
139 | }
|
140 |
|
141 | export interface QueryRangeOption {
|
142 | type: QueryRangeType;
|
143 | value: any;
|
144 | }
|
145 |
|
146 |
|
147 |
|
148 |
|
149 | export interface QueryOptions {
|
150 | |
151 |
|
152 |
|
153 | orderBy: {
|
154 | type: QueryOrderByType;
|
155 | |
156 |
|
157 |
|
158 | value?: string;
|
159 | };
|
160 |
|
161 | |
162 |
|
163 |
|
164 |
|
165 | range?: QueryRangeOption;
|
166 |
|
167 | |
168 |
|
169 |
|
170 |
|
171 | ranges?: QueryRangeOption[];
|
172 |
|
173 | |
174 |
|
175 |
|
176 | limit?: {
|
177 | type: QueryLimitType;
|
178 | value: number;
|
179 | };
|
180 |
|
181 | |
182 |
|
183 |
|
184 |
|
185 |
|
186 |
|
187 | singleEvent?: boolean;
|
188 | }
|
189 |
|
190 | export interface GetAuthTokenOptions {
|
191 | |
192 |
|
193 |
|
194 | forceRefresh?: boolean;
|
195 | }
|
196 |
|
197 | export interface Provider {
|
198 | id: string;
|
199 | }
|
200 |
|
201 | export interface FirebasePasswordLoginOptions {
|
202 | email: string;
|
203 | password: string;
|
204 | }
|
205 |
|
206 | export interface FirebaseEmailLinkActionCodeSettings {
|
207 | url: string;
|
208 | iOS?: {
|
209 | bundleId: string;
|
210 | };
|
211 | android?: {
|
212 | packageName: string;
|
213 | installApp?: false;
|
214 | minimumVersion?: string;
|
215 | };
|
216 | }
|
217 |
|
218 | export interface FirebaseEmailLinkLoginOptions extends FirebaseEmailLinkActionCodeSettings {
|
219 | email: string;
|
220 | }
|
221 |
|
222 | export interface FirebasePhoneLoginOptions {
|
223 | phoneNumber: string;
|
224 | |
225 |
|
226 |
|
227 |
|
228 | verificationPrompt?: string;
|
229 | }
|
230 |
|
231 | export interface FirebaseGoogleLoginOptions {
|
232 | hostedDomain?: string;
|
233 | }
|
234 |
|
235 | export interface FirebaseFacebookLoginOptions {
|
236 | |
237 |
|
238 |
|
239 | scope?: string[];
|
240 | }
|
241 |
|
242 | export interface FirebaseCustomLoginOptions {
|
243 | |
244 |
|
245 |
|
246 |
|
247 |
|
248 | token?: string;
|
249 | |
250 |
|
251 |
|
252 |
|
253 |
|
254 | tokenProviderFn?: () => Promise<String>;
|
255 | }
|
256 |
|
257 | export interface LoginIOSOptions {
|
258 | controller?: any;
|
259 | }
|
260 |
|
261 |
|
262 |
|
263 |
|
264 | export interface LoginOptions {
|
265 | type: LoginType;
|
266 | passwordOptions?: FirebasePasswordLoginOptions;
|
267 | emailLinkOptions?: FirebaseEmailLinkLoginOptions;
|
268 | phoneOptions?: FirebasePhoneLoginOptions;
|
269 | googleOptions?: FirebaseGoogleLoginOptions;
|
270 | facebookOptions?: FirebaseFacebookLoginOptions;
|
271 | customOptions?: FirebaseCustomLoginOptions;
|
272 | ios?: LoginIOSOptions;
|
273 |
|
274 | |
275 |
|
276 |
|
277 | email?: string;
|
278 | |
279 |
|
280 |
|
281 | password?: string;
|
282 | |
283 |
|
284 |
|
285 | token?: string;
|
286 | |
287 |
|
288 |
|
289 | tokenProviderFn?: () => Promise<String>;
|
290 | |
291 |
|
292 |
|
293 | scope?: string[];
|
294 | }
|
295 |
|
296 | export interface ReauthenticateOptions {
|
297 | type: LoginType;
|
298 | passwordOptions?: FirebasePasswordLoginOptions;
|
299 | |
300 |
|
301 |
|
302 | email?: string;
|
303 | |
304 |
|
305 |
|
306 | password?: string;
|
307 | }
|
308 |
|
309 |
|
310 |
|
311 |
|
312 | export interface User {
|
313 | uid: string;
|
314 | email?: string;
|
315 | emailVerified: boolean;
|
316 | name?: string;
|
317 | phoneNumber?: string;
|
318 | anonymous: boolean;
|
319 | isAnonymous: boolean;
|
320 | providers: Array<Provider>;
|
321 | profileImageURL?: string;
|
322 | metadata: UserMetadata;
|
323 | additionalUserInfo?: AdditionalUserInfo;
|
324 |
|
325 | refreshToken?: string;
|
326 | }
|
327 |
|
328 |
|
329 |
|
330 |
|
331 | export interface UserMetadata {
|
332 | creationTimestamp: Date;
|
333 | lastSignInTimestamp: Date;
|
334 | }
|
335 |
|
336 |
|
337 |
|
338 |
|
339 | export interface AdditionalUserInfo {
|
340 | profile: Map<string, any>;
|
341 | providerId: string;
|
342 | username: string;
|
343 | isNewUser: boolean;
|
344 | }
|
345 |
|
346 |
|
347 |
|
348 |
|
349 | export interface PushResult {
|
350 | key: string;
|
351 | }
|
352 |
|
353 |
|
354 |
|
355 |
|
356 | export interface AddEventListenerResult {
|
357 | path: string;
|
358 | listeners: Array<any>;
|
359 | }
|
360 |
|
361 |
|
362 |
|
363 |
|
364 | export interface CreateUserOptions {
|
365 | email: string;
|
366 | password: string;
|
367 | }
|
368 |
|
369 |
|
370 |
|
371 |
|
372 | export interface UpdateProfileOptions {
|
373 | displayName?: string;
|
374 | photoURL?: string;
|
375 | }
|
376 |
|
377 |
|
378 |
|
379 |
|
380 | export interface ResetPasswordOptions {
|
381 | email: string;
|
382 | }
|
383 |
|
384 |
|
385 |
|
386 |
|
387 |
|
388 | export interface FBData {
|
389 | type: string;
|
390 | key: string;
|
391 | value: any;
|
392 | }
|
393 |
|
394 |
|
395 |
|
396 |
|
397 | export interface ChangePasswordOptions {
|
398 | email: string;
|
399 | oldPassword: string;
|
400 | newPassword: string;
|
401 | }
|
402 |
|
403 | export interface AuthStateData {
|
404 | loggedIn?: boolean;
|
405 | user?: User;
|
406 | }
|
407 |
|
408 | export interface AuthStateChangeListener {
|
409 | onAuthStateChanged: (data: AuthStateData) => void;
|
410 | thisArg?: any;
|
411 | }
|
412 |
|
413 | export interface RemoteConfigProperty {
|
414 | key: string;
|
415 | default: any;
|
416 | }
|
417 |
|
418 | export interface GetRemoteConfigOptions {
|
419 | |
420 |
|
421 |
|
422 |
|
423 | developerMode?: boolean;
|
424 | |
425 |
|
426 |
|
427 |
|
428 | cacheExpirationSeconds?: number;
|
429 | |
430 |
|
431 |
|
432 |
|
433 |
|
434 |
|
435 |
|
436 | properties: Array<RemoteConfigProperty>;
|
437 | }
|
438 |
|
439 |
|
440 |
|
441 |
|
442 | export interface GetRemoteConfigResult {
|
443 | |
444 |
|
445 |
|
446 |
|
447 | lastFetch: Date;
|
448 | |
449 |
|
450 |
|
451 |
|
452 | throttled: boolean;
|
453 | |
454 |
|
455 |
|
456 |
|
457 |
|
458 |
|
459 |
|
460 |
|
461 | properties: Object;
|
462 | }
|
463 |
|
464 | export interface DynamicLinkData {
|
465 | url: string;
|
466 | minimumAppVersion: string;
|
467 | }
|
468 |
|
469 |
|
470 |
|
471 |
|
472 |
|
473 |
|
474 |
|
475 | export interface Message {
|
476 | |
477 |
|
478 |
|
479 | foreground: boolean;
|
480 | |
481 |
|
482 |
|
483 |
|
484 | body?: string;
|
485 | |
486 |
|
487 |
|
488 |
|
489 | title?: string;
|
490 | |
491 |
|
492 |
|
493 | data: any;
|
494 | }
|
495 |
|
496 | export interface SendCrashLogOptions {
|
497 | |
498 |
|
499 |
|
500 | message: string;
|
501 |
|
502 | |
503 |
|
504 |
|
505 | showInConsole: boolean;
|
506 | }
|
507 |
|
508 | export function init(options?: InitOptions): Promise<any>;
|
509 |
|
510 |
|
511 | export function push(path: string, value: any): Promise<PushResult>;
|
512 |
|
513 | export function getValue(path: string): Promise<any>;
|
514 |
|
515 | export function setValue(path: string, value: any): Promise<any>;
|
516 |
|
517 | export function update(path: string, value: any): Promise<any>;
|
518 |
|
519 | export function remove(path: string): Promise<any>;
|
520 |
|
521 | export function query(onValueEvent: (data: FBData) => void, path: string, options: QueryOptions): Promise<any>;
|
522 |
|
523 | export function addChildEventListener(onChildEvent: (data: FBData) => void, path: string): Promise<AddEventListenerResult>;
|
524 |
|
525 | export function addValueEventListener(onValueEvent: (data: FBData) => void, path: string): Promise<AddEventListenerResult>;
|
526 |
|
527 | export function removeEventListeners(listeners: Array<any>, path: string): Promise<any>;
|
528 |
|
529 |
|
530 |
|
531 |
|
532 | export function keepInSync(path: string, switchOn: boolean): Promise<any>;
|
533 |
|
534 |
|
535 | export namespace admob {
|
536 |
|
537 | |
538 |
|
539 |
|
540 | export enum AD_SIZE {
|
541 | SMART_BANNER,
|
542 | LARGE_BANNER,
|
543 | BANNER,
|
544 | MEDIUM_RECTANGLE,
|
545 | FULL_BANNER,
|
546 | LEADERBOARD
|
547 | }
|
548 |
|
549 | |
550 |
|
551 |
|
552 | export enum ERROR_CODES {
|
553 | ERROR_CODE_INTERNAL_ERROR,
|
554 | ERROR_CODE_INVALID_REQUEST,
|
555 | ERROR_CODE_NETWORK_ERROR,
|
556 | ERROR_CODE_NO_FILL
|
557 | }
|
558 |
|
559 | export interface ShowBannerOptions {
|
560 | |
561 |
|
562 |
|
563 |
|
564 | size?: AD_SIZE;
|
565 |
|
566 | |
567 |
|
568 |
|
569 | testing?: boolean;
|
570 |
|
571 | |
572 |
|
573 |
|
574 | androidBannerId?: string;
|
575 |
|
576 | |
577 |
|
578 |
|
579 | iosBannerId?: string;
|
580 |
|
581 | |
582 |
|
583 |
|
584 |
|
585 |
|
586 |
|
587 | iosTestDeviceIds?: string[];
|
588 |
|
589 | |
590 |
|
591 |
|
592 |
|
593 |
|
594 |
|
595 | margins?: {
|
596 | |
597 |
|
598 |
|
599 | top?: number;
|
600 |
|
601 | |
602 |
|
603 |
|
604 | bottom?: number;
|
605 | };
|
606 |
|
607 | |
608 |
|
609 |
|
610 | keywords?: string[];
|
611 | }
|
612 |
|
613 | export interface ShowInterstitialOptions {
|
614 | |
615 |
|
616 |
|
617 | testing?: boolean;
|
618 |
|
619 | |
620 |
|
621 |
|
622 | androidInterstitialId?: string;
|
623 |
|
624 | |
625 |
|
626 |
|
627 | iosInterstitialId?: string;
|
628 |
|
629 | |
630 |
|
631 |
|
632 |
|
633 |
|
634 |
|
635 | iosTestDeviceIds?: string[];
|
636 | }
|
637 |
|
638 | function showBanner(options: ShowBannerOptions): Promise<any>;
|
639 |
|
640 | function showInterstitial(options: ShowInterstitialOptions): Promise<any>;
|
641 |
|
642 | function hideBanner(): Promise<any>;
|
643 | }
|
644 |
|
645 |
|
646 | export namespace invites {
|
647 |
|
648 | export enum MATCH_TYPE {
|
649 | WEAK,
|
650 | STRONG
|
651 | }
|
652 |
|
653 | export interface SendInvitationOptions {
|
654 | |
655 |
|
656 |
|
657 | title: string;
|
658 |
|
659 | |
660 |
|
661 |
|
662 | message: string;
|
663 |
|
664 | |
665 |
|
666 |
|
667 | deepLink?: string;
|
668 |
|
669 | |
670 |
|
671 |
|
672 | callToActionText?: string;
|
673 |
|
674 | |
675 |
|
676 |
|
677 | customImage?: string;
|
678 |
|
679 | |
680 |
|
681 |
|
682 | androidClientID?: string;
|
683 |
|
684 | |
685 |
|
686 |
|
687 | iosClientID?: string;
|
688 | }
|
689 |
|
690 | export interface SendInvitationResult {
|
691 | count: number;
|
692 | invitationIds: any;
|
693 | }
|
694 |
|
695 | export interface GetInvitationResult {
|
696 | deepLink: string;
|
697 | matchType?: MATCH_TYPE;
|
698 | invitationId: string;
|
699 | }
|
700 |
|
701 | function sendInvitation(options: SendInvitationOptions): Promise<SendInvitationResult>;
|
702 |
|
703 | function getInvitation(): Promise<GetInvitationResult>;
|
704 | }
|
705 |
|
706 | export namespace dynamicLinks {
|
707 | export enum MATCH_CONFIDENCE {
|
708 | WEAK,
|
709 | STRONG
|
710 | }
|
711 |
|
712 | export interface DynamicLinkCallbackData {
|
713 | url: string;
|
714 | matchConfidence?: MATCH_CONFIDENCE;
|
715 | minimumAppVersion?: string;
|
716 | }
|
717 | }
|
718 |
|
719 | export namespace firestore {
|
720 | export type DocumentData = { [field: string]: any };
|
721 | export type WhereFilterOp = '<' | '<=' | '==' | '>=' | '>' | 'array-contains';
|
722 | export type OrderByDirection = 'desc' | 'asc';
|
723 |
|
724 | export interface GeoPoint {
|
725 | longitude: number;
|
726 | latitude: number;
|
727 | }
|
728 |
|
729 | export function GeoPoint(latitude: number, longitude: number): GeoPoint;
|
730 |
|
731 | export interface SetOptions {
|
732 | merge?: boolean;
|
733 | }
|
734 |
|
735 | export interface DocumentSnapshot {
|
736 | ios?: any;
|
737 |
|
738 | android?: any;
|
739 |
|
740 | id: string;
|
741 | exists: boolean;
|
742 |
|
743 | data(): DocumentData;
|
744 | }
|
745 |
|
746 | export interface DocumentReference {
|
747 | discriminator: "docRef";
|
748 | id: string;
|
749 | collection: (collectionPath: string) => CollectionReference;
|
750 | set: (document: any, options?: SetOptions) => Promise<void>;
|
751 | get: () => Promise<DocumentSnapshot>;
|
752 | update: (document: any) => Promise<void>;
|
753 | delete: () => Promise<void>;
|
754 |
|
755 | onSnapshot(callback: (doc: DocumentSnapshot) => void): () => void;
|
756 |
|
757 | android?: any;
|
758 | ios?: any;
|
759 | }
|
760 |
|
761 | export interface Query {
|
762 | get(): Promise<QuerySnapshot>;
|
763 |
|
764 | where(fieldPath: string, opStr: WhereFilterOp, value: any): Query;
|
765 |
|
766 | orderBy(fieldPath: string, directionStr: firestore.OrderByDirection): Query;
|
767 |
|
768 | limit(limit: number): Query;
|
769 |
|
770 | onSnapshot(callback: (snapshot: QuerySnapshot) => void): () => void;
|
771 |
|
772 | startAt(snapshot: DocumentSnapshot): Query;
|
773 |
|
774 | startAfter(snapshot: DocumentSnapshot): Query;
|
775 |
|
776 | endAt(snapshot: DocumentSnapshot): Query;
|
777 |
|
778 | endBefore(snapshot: DocumentSnapshot): Query;
|
779 | }
|
780 |
|
781 | export interface CollectionReference extends Query {
|
782 | id: string;
|
783 |
|
784 | doc(documentPath?: string): DocumentReference;
|
785 |
|
786 | add(data: DocumentData): Promise<DocumentReference>;
|
787 | }
|
788 |
|
789 | export type UpdateData = { [fieldPath: string]: any };
|
790 |
|
791 | export class FieldPath {
|
792 | |
793 |
|
794 |
|
795 |
|
796 |
|
797 |
|
798 | constructor(...fieldNames: string[]);
|
799 |
|
800 | /**
|
801 | * Returns a special sentinel FieldPath to refer to the ID of a document.
|
802 | * It can be used in queries to sort or filter by the document ID.
|
803 | */
|
804 | static documentId(): FieldPath;
|
805 | }
|
806 |
|
807 | export interface Transaction {
|
808 | get(documentRef: DocumentReference): DocumentSnapshot;
|
809 |
|
810 | set(documentRef: DocumentReference, data: DocumentData, options?: SetOptions): Transaction;
|
811 |
|
812 | update(documentRef: DocumentReference, data: UpdateData): Transaction;
|
813 |
|
814 | update(documentRef: DocumentReference, field: string | FieldPath, value: any, ...moreFieldsAndValues: any[]): Transaction;
|
815 |
|
816 | delete(documentRef: DocumentReference): Transaction;
|
817 | }
|
818 |
|
819 | export interface WriteBatch {
|
820 | set(documentRef: DocumentReference, data: DocumentData, options?: SetOptions): WriteBatch;
|
821 |
|
822 | update(documentRef: DocumentReference, data: UpdateData): WriteBatch;
|
823 |
|
824 | update(documentRef: DocumentReference, field: string | FieldPath, value: any, ...moreFieldsAndValues: any[]): WriteBatch;
|
825 |
|
826 | delete(documentRef: DocumentReference): WriteBatch;
|
827 |
|
828 | commit(): Promise<void>;
|
829 | }
|
830 |
|
831 | export type FieldValueType = "ARRAY_UNION" | "ARRAY_REMOVE";
|
832 |
|
833 | export class FieldValue {
|
834 | constructor(type: FieldValueType, value: any);
|
835 |
|
836 | static serverTimestamp: () => "SERVER_TIMESTAMP";
|
837 | static arrayUnion: (fields: Array<any>) => FieldValue;
|
838 | static arrayRemove: (fields: Array<any>) => FieldValue;
|
839 | }
|
840 |
|
841 | export interface QuerySnapshot {
|
842 | docSnapshots: firestore.DocumentSnapshot[];
|
843 |
|
844 | forEach(callback: (result: DocumentSnapshot) => void, thisArg?: any): void;
|
845 | }
|
846 |
|
847 | function collection(collectionPath: string): CollectionReference;
|
848 |
|
849 | function doc(collectionPath: string, documentPath?: string): DocumentReference;
|
850 |
|
851 | function add(collectionPath: string, documentData: any): Promise<DocumentReference>;
|
852 |
|
853 | function set(collectionPath: string, documentPath: string, document: any, options?: any): Promise<void>;
|
854 |
|
855 | function getCollection(collectionPath: string): Promise<QuerySnapshot>;
|
856 |
|
857 | function getDocument(collectionPath: string, documentPath: string): Promise<DocumentSnapshot>;
|
858 |
|
859 | function update(collectionPath: string, documentPath: string, document: any): Promise<void>;
|
860 |
|
861 | function runTransaction(updateFunction: (transaction: firestore.Transaction) => Promise<any>): Promise<void>;
|
862 |
|
863 | function batch(): firestore.WriteBatch;
|
864 | }
|
865 |
|
866 | export namespace functions {
|
867 | export type HttpsCallable<I, O> = (callableData: I) => Promise<O>;
|
868 |
|
869 | export function httpsCallable<I, O>(callableFunctionName: string): HttpsCallable<I, O>;
|
870 | }
|
871 |
|
872 |
|
873 | export function login(options: LoginOptions): Promise<User>;
|
874 |
|
875 | export function reauthenticate(options: ReauthenticateOptions): Promise<any>;
|
876 |
|
877 | export function reloadUser(): Promise<void>;
|
878 |
|
879 | export function getAuthToken(option: GetAuthTokenOptions): Promise<string>;
|
880 |
|
881 | export function logout(): Promise<any>;
|
882 |
|
883 | export function fetchProvidersForEmail(email: string): Promise<Array<string>>;
|
884 |
|
885 | export function fetchSignInMethodsForEmail(email: string): Promise<Array<string>>;
|
886 |
|
887 | export function sendEmailVerification(): Promise<any>;
|
888 |
|
889 | export function createUser(options: CreateUserOptions): Promise<User>;
|
890 |
|
891 | export function deleteUser(): Promise<any>;
|
892 |
|
893 | export function updateProfile(options: UpdateProfileOptions): Promise<any>;
|
894 |
|
895 | export function resetPassword(options: ResetPasswordOptions): Promise<any>;
|
896 |
|
897 | export function changePassword(options: ChangePasswordOptions): Promise<any>;
|
898 |
|
899 | export function addAuthStateListener(listener: AuthStateChangeListener): boolean;
|
900 |
|
901 | export function removeAuthStateListener(listener: AuthStateChangeListener): boolean;
|
902 |
|
903 | export function hasAuthStateListener(listener: AuthStateChangeListener): boolean;
|
904 |
|
905 | export function getCurrentUser(): Promise<User>;
|
906 |
|
907 |
|
908 | export function addOnMessageReceivedCallback(onMessageReceived: (data: Message) => void): Promise<any>;
|
909 |
|
910 | export function addOnPushTokenReceivedCallback(onPushTokenReceived: (data: string) => void): Promise<any>;
|
911 |
|
912 | export function registerForInteractivePush(model: any): void;
|
913 |
|
914 | export function getCurrentPushToken(): Promise<string>;
|
915 |
|
916 | export function registerForPushNotifications(): Promise<void>;
|
917 |
|
918 | export function unregisterForPushNotifications(): Promise<void>;
|
919 |
|
920 | export function subscribeToTopic(topicName): Promise<any>;
|
921 |
|
922 | export function unsubscribeFromTopic(topicName): Promise<any>;
|
923 |
|
924 | export function areNotificationsEnabled(): boolean;
|
925 |
|
926 |
|
927 | export function addOnDynamicLinkReceivedCallback(onDynamicLinkReceived: (callBackData: dynamicLinks.DynamicLinkCallbackData) => void): Promise<any>;
|
928 |
|
929 |
|
930 | export function getRemoteConfig(options: GetRemoteConfigOptions): Promise<GetRemoteConfigResult>;
|
931 |
|
932 |
|
933 | export function sendCrashLog(options: SendCrashLogOptions): Promise<any>;
|