UNPKG

5.64 kBPlain TextView Raw
1// tslint:disable
2/*
3 * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
6 * the License. A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0/
9 *
10 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
12 * and limitations under the License.
13 */
14// tslint:enable
15// Auth
16const signIn = {
17 section: 'sign-in-section',
18 headerSection: 'sign-in-header-section',
19 bodySection: 'sign-in-body-section',
20 footerSection: 'sign-in-footer-section',
21 usernameInput: 'username-input',
22 passwordInput: 'sign-in-password-input',
23 forgotPasswordLink: 'sign-in-forgot-password-link',
24 signInButton: 'sign-in-sign-in-button',
25 createAccountLink: 'sign-in-create-account-link',
26 signInError: 'authenticator-error',
27};
28
29const signOut = {
30 button: 'sign-out-button',
31 section: 'sign-out-section',
32};
33
34const signUp = {
35 section: 'sign-up-section',
36 headerSection: 'sign-up-header-section',
37 bodySection: 'sign-up-body-section',
38 nonPhoneNumberInput: 'sign-up-non-phone-number-input',
39 phoneNumberInput: 'sign-up-phone-number-input',
40 dialCodeSelect: 'sign-up-dial-code-select',
41 footerSection: 'sign-up-footer-section',
42 createAccountButton: 'sign-up-create-account-button',
43 signInLink: 'sign-up-sign-in-link',
44 signUpButton: 'sign-up-sign-up-button',
45 signInButton: 'sign-up-sign-in-button',
46 confirmButton: 'sign-up-confirm-button',
47};
48
49const verifyContact = {
50 section: 'verify-contact-section',
51 headerSection: 'verify-contact-header-section',
52 bodySection: 'verify-contact-body-section',
53 submitButton: 'verify-contact-submit-button',
54 verifyButton: 'verify-contact-verify-button',
55 skipLink: 'verify-contact-skip-link',
56};
57
58const TOTPSetup = {
59 component: 'totp-setup-component',
60};
61
62const requireNewPassword = {
63 section: 'require-new-password-section',
64 headerSection: 'require-new-password-header-section',
65 footerSection: 'require-new-password-footer-section',
66 bodySection: 'require-new-password-body-section',
67 newPasswordInput: 'require-new-password-new-password-input',
68 backToSignInLink: 'require-new-password-back-to-sign-in-link',
69 submitButton: 'require-new-password-submit-button',
70};
71
72const loading = {
73 section: 'loading-secton',
74};
75
76const greetings = {
77 navBar: 'greetings-nav-bar',
78 nav: 'greetings-nav',
79 navRight: 'greetings-nav-right',
80};
81
82// TODO: Change Angular Component (Greeting) to match React Component (Greetings)
83const greeting = {
84 signOutButton: 'sign-out-button',
85 signOutLink: 'greeting-sign-out-link',
86 navRight: 'greetings-nav-right',
87};
88
89const federatedSignIn = {
90 section: 'federated-sign-in-section',
91 bodySection: 'federated-sign-in-body-section',
92 signInButtons: 'federated-sign-in-buttons',
93};
94
95const confirmSignUp = {
96 section: 'confirm-sign-up-section',
97 headerSection: 'confirm-sign-up-header-section',
98 bodySection: 'confirm-sign-up-body-section',
99 usernameInput: 'confirm-sign-up-username-input',
100 confirmationCodeInput: 'confirm-sign-up-confirmation-code-input',
101 resendCodeLink: 'confirm-sign-up-resend-code-link',
102 confirmButton: 'confirm-sign-up-confirm-button',
103 backToSignInLink: 'confirm-sign-up-back-to-sign-in-link',
104};
105
106const confirmSignIn = {
107 section: 'confirm-sign-in-section',
108 headerSection: 'confirm-sign-in-header-section',
109 bodySection: 'confirm-sign-in-body-section',
110 codeInput: 'confirm-sign-in-code-input',
111 confirmButton: 'confirm-sign-in-confirm-button',
112 backToSignInLink: 'confirm-sign-in-back-to-sign-in-link',
113};
114
115const setMFAComp = {
116 section: 'set-mfa-section',
117 headerSection: 'set-mfa-header-section',
118 bodySection: 'set-mfa-header-body-section',
119 smsInput: 'set-mfa-sms-input',
120 totpInput: 'set-mfa-totp-input',
121 noMfaInput: 'set-mfa-nomfa-input',
122 verificationCodeInput: 'set-mfa-verification-code-input',
123 setMfaButton: 'set-mfa-set-mfa-button',
124 verifyTotpTokenButton: 'set-mfa-verify-totp-token-button',
125 cancelButton: 'set-mfa-cancel-button',
126};
127
128const forgotPassword = {
129 section: 'forgot-password-section',
130 headerSection: 'forgot-password-header-section',
131 bodySection: 'forgot-password-body-section',
132 submitButton: 'forgot-password-submit-button',
133 sendCodeButton: 'forgot-password-send-code-button',
134 resendCodeLink: 'forgot-password-resend-code-link',
135 backToSignInLink: 'forgot-password-back-to-sign-in-link',
136 usernameInput: 'username-input',
137 codeInput: 'forgot-password-code-input',
138 newPasswordInput: 'forgot-password-new-password-input',
139};
140
141export const sumerianScene = {
142 container: 'sumerian-scene-container',
143 sumerianScene: 'sumerian-scene',
144 loading: 'sumerian-scene-loading',
145 loadingLogo: 'sumerian-scene-loading-logo',
146 loadingSceneName: 'sumerian-scene-loading-scene-name',
147 loadingBar: 'sumerian-scene-loading-bar',
148 errorText: 'sumerian-scene-error-text',
149 bar: 'sumerian-scene-bar',
150 actions: 'sumerian-scene-actions',
151};
152
153export const genericAttrs = {
154 usernameInput: 'username-input',
155 emailInput: 'email-input',
156 phoneNumberInput: 'phone-number-input',
157 dialCodeSelect: 'dial-code-select',
158};
159
160export const chatBot = {
161 title: 'chatbot-title',
162 dialog: 'chatbot-dialog',
163 messageInput: 'chatbot-message-input',
164 sendMessageButton: 'chatbot-send-message-button',
165};
166
167export const auth = {
168 signIn,
169 signOut,
170 signUp,
171 verifyContact,
172 TOTPSetup,
173 requireNewPassword,
174 loading,
175 genericAttrs,
176 greetings,
177 greeting,
178 federatedSignIn,
179 confirmSignUp,
180 confirmSignIn,
181 setMFAComp,
182 forgotPassword,
183};