15
15
* limitations under the License.
16
16
*/
17
17
18
- import { AuthErrorCode , AUTH_ERROR_FACTORY } from '../core /errors' ;
19
- import { Operation } from './action_code_info' ;
20
- import { Auth } from './auth' ;
18
+ import { AuthErrorCode , AUTH_ERROR_FACTORY } from './errors' ;
19
+ import { Operation } from '../model /action_code_info' ;
20
+ import { Auth } from '../model /auth' ;
21
21
22
22
/**
23
23
* Enums for fields in URL query string.
@@ -35,7 +35,7 @@ enum QueryField {
35
35
/**
36
36
* Map from mode string in action code URL to Action Code Info operation.
37
37
*/
38
- const ModeToOperationMap : { [ key : string ] : Operation } = {
38
+ const MODE_TO_OPERATION_MAP : { [ key : string ] : Operation } = {
39
39
'recoverEmail' : Operation . RECOVER_EMAIL ,
40
40
'resetPassword' : Operation . PASSWORD_RESET ,
41
41
'signIn' : Operation . EMAIL_SIGNIN ,
@@ -48,7 +48,7 @@ const ModeToOperationMap: { [key: string]: Operation } = {
48
48
* Maps the mode string in action code URL to Action Code Info operation.
49
49
*/
50
50
function parseMode ( mode : string | null ) : Operation | null {
51
- return mode ? ModeToOperationMap [ mode ] || null : null ;
51
+ return mode ? MODE_TO_OPERATION_MAP [ mode ] || null : null ;
52
52
}
53
53
54
54
function parseDeepLink ( url : string ) : string {
0 commit comments