1
- /** Declaration file generated by dts-gen */
2
-
1
+ /**
2
+ * Action types used within actions dispatched internally. These action types
3
+ * can be manually dispatched to update state.
4
+ */
3
5
export const actionTypes : {
4
- AUTHENTICATION_INIT_FINISHED : string ;
5
- AUTHENTICATION_INIT_STARTED : string ;
6
- AUTH_UPDATE_ERROR : string ;
7
- AUTH_UPDATE_START : string ;
8
- AUTH_UPDATE_SUCCESS : string ;
9
- EMAIL_UPDATE_ERROR : string ;
10
- EMAIL_UPDATE_START : string ;
11
- EMAIL_UPDATE_SUCCESS : string ;
12
- ERROR : string ;
13
- FILE_DELETE_COMPLETE : string ;
14
- FILE_DELETE_ERROR : string ;
15
- FILE_DELETE_START : string ;
16
- FILE_UPLOAD_COMPLETE : string ;
17
- FILE_UPLOAD_ERROR : string ;
18
- FILE_UPLOAD_PROGRESS : string ;
19
- FILE_UPLOAD_START : string ;
20
- LOGIN : string ;
21
- LOGIN_ERROR : string ;
22
- LOGOUT : string ;
23
- NO_VALUE : string ;
24
- PROFILE_UPDATE_ERROR : string ;
25
- PROFILE_UPDATE_START : string ;
26
- PROFILE_UPDATE_SUCCESS : string ;
27
- SET : string ;
28
- SET_PROFILE : string ;
29
- START : string ;
30
- UNAUTHORIZED_ERROR : string ;
31
- UNSET_LISTENER : string ;
6
+ START : string ;
7
+ ERROR : string ;
8
+ CLEAR_DATA : string ;
9
+ CLEAR_ERROR : string ;
10
+ CLEAR_ERRORS : string ;
11
+ SET_LISTENER : string ;
12
+ UNSET_LISTENER : string ;
13
+ GET_REQUEST : string ;
14
+ GET_SUCCESS : string ;
15
+ GET_FAILURE : string ;
16
+ SET_REQUEST : string ;
17
+ SET_SUCCESS : string ;
18
+ SET_FAILURE : string ;
19
+ ADD_REQUEST : string ;
20
+ ADD_SUCCESS : string ;
21
+ ADD_FAILURE : string ;
22
+ UPDATE_REQUEST : string ;
23
+ UPDATE_SUCCESS : string ;
24
+ UPDATE_FAILURE : string ;
25
+ DELETE_REQUEST : string ;
26
+ DELETE_SUCCESS : string ;
27
+ DELETE_FAILURE : string ;
28
+ ATTACH_LISTENER : string ;
29
+ LISTENER_RESPONSE : string ;
30
+ LISTENER_ERROR : string ;
31
+ ON_SNAPSHOT_REQUEST : string ;
32
+ ON_SNAPSHOT_SUCCESS : string ;
33
+ ON_SNAPSHOT_FAILURE : string ;
32
34
} ;
33
35
36
+ /**
37
+ * Constants used within redux-firetore. Includes actionTypes, actionsPrefix,
38
+ * and default config.
39
+ */
34
40
export const constants : {
35
- actionTypes : {
36
- AUTHENTICATION_INIT_FINISHED : string ;
37
- AUTHENTICATION_INIT_STARTED : string ;
38
- AUTH_UPDATE_ERROR : string ;
39
- AUTH_UPDATE_START : string ;
40
- AUTH_UPDATE_SUCCESS : string ;
41
- EMAIL_UPDATE_ERROR : string ;
42
- EMAIL_UPDATE_START : string ;
43
- EMAIL_UPDATE_SUCCESS : string ;
44
- ERROR : string ;
45
- FILE_DELETE_COMPLETE : string ;
46
- FILE_DELETE_ERROR : string ;
47
- FILE_DELETE_START : string ;
48
- FILE_UPLOAD_COMPLETE : string ;
49
- FILE_UPLOAD_ERROR : string ;
50
- FILE_UPLOAD_PROGRESS : string ;
51
- FILE_UPLOAD_START : string ;
52
- LOGIN : string ;
53
- LOGIN_ERROR : string ;
54
- LOGOUT : string ;
55
- NO_VALUE : string ;
56
- PROFILE_UPDATE_ERROR : string ;
57
- PROFILE_UPDATE_START : string ;
58
- PROFILE_UPDATE_SUCCESS : string ;
59
- SET : string ;
60
- SET_PROFILE : string ;
61
- START : string ;
62
- UNAUTHORIZED_ERROR : string ;
63
- UNSET_LISTENER : string ;
64
- } ;
65
- defaultConfig : {
66
- autoPopulateProfile : boolean ;
67
- dispatchOnUnsetListener : boolean ;
68
- enableEmptyAuthChanges : boolean ;
69
- enableLogging : boolean ;
70
- enableRedirectHandling : boolean ;
71
- setProfilePopulateResults : boolean ;
72
- updateProfileOnLogin : boolean ;
73
- userProfile : any ;
74
- } ;
75
- defaultInitProps : string [ ] ;
76
- defaultJWTProps : string [ ] ;
77
- metaParams : string [ ] ;
78
- paramSplitChar : string ;
79
- supportedAuthProviders : string [ ] ;
41
+ actionTypes : {
42
+ START : string ;
43
+ ERROR : string ;
44
+ CLEAR_DATA : string ;
45
+ CLEAR_ERROR : string ;
46
+ CLEAR_ERRORS : string ;
47
+ SET_LISTENER : string ;
48
+ UNSET_LISTENER : string ;
49
+ GET_REQUEST : string ;
50
+ GET_SUCCESS : string ;
51
+ GET_FAILURE : string ;
52
+ SET_REQUEST : string ;
53
+ SET_SUCCESS : string ;
54
+ SET_FAILURE : string ;
55
+ ADD_REQUEST : string ;
56
+ ADD_SUCCESS : string ;
57
+ ADD_FAILURE : string ;
58
+ UPDATE_REQUEST : string ;
59
+ UPDATE_SUCCESS : string ;
60
+ UPDATE_FAILURE : string ;
61
+ DELETE_REQUEST : string ;
62
+ DELETE_SUCCESS : string ;
63
+ DELETE_FAILURE : string ;
64
+ ATTACH_LISTENER : string ;
65
+ LISTENER_RESPONSE : string ;
66
+ LISTENER_ERROR : string ;
67
+ ON_SNAPSHOT_REQUEST : string ;
68
+ ON_SNAPSHOT_SUCCESS : string ;
69
+ ON_SNAPSHOT_FAILURE : string ;
70
+ } ;
71
+ actionsPrefix : string ;
72
+ defaultConfig : {
73
+ enableLogging : boolean ;
74
+ enhancerNamespace : string ;
75
+ helpersNamespace : string ;
76
+ preserveOnListenerError : object ;
77
+ } ;
80
78
} ;
81
79
82
80
/**
83
- * A redux store enhancer that adds store.firebase
81
+ * A redux store enhancer that adds store.firebase (passed to React component
82
+ * context through react-redux's <Provider>).
84
83
*/
85
84
export function reduxFirestore ( firebaseInstance : object , otherConfig : object ) : any ;
86
85
@@ -94,16 +93,14 @@ export function getFirestore(firebaseInstance: object, otherConfig: object): any
94
93
* A redux store reducer for Firestore state
95
94
*/
96
95
export namespace firestoreReducer {
97
- const prototype : {
98
- } ;
99
-
96
+ const prototype : {
97
+ } ;
100
98
}
101
99
102
100
/**
103
101
* A redux store reducer for Firestore state
104
102
*/
105
103
export namespace reduxFirestore {
106
- const prototype : {
107
- } ;
108
-
104
+ const prototype : {
105
+ } ;
109
106
}
0 commit comments