@jealous-robot-dev/shared-types-responses 1.16.13 → 1.16.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormWarning,
|
|
1
|
+
import { FormWarning, LND, PasswordCharacteristics } from '../common';
|
|
2
2
|
export declare enum AuthenticationProviders {
|
|
3
3
|
GOOGLE = "google",
|
|
4
4
|
FACEBOOK = "facebook",
|
|
@@ -33,7 +33,12 @@ export interface FormIntrinsicProps {
|
|
|
33
33
|
title: string;
|
|
34
34
|
greeting?: string;
|
|
35
35
|
}
|
|
36
|
-
export interface
|
|
36
|
+
export interface CommonAuthPhrases {
|
|
37
|
+
or: string;
|
|
38
|
+
button_label: string;
|
|
39
|
+
auth_providers: AuthenticationProvidersPhrases;
|
|
40
|
+
}
|
|
41
|
+
export interface WelcomePhrases {
|
|
37
42
|
title: string;
|
|
38
43
|
greeting: string;
|
|
39
44
|
inputs: {
|
|
@@ -45,35 +50,42 @@ export interface AuthFormPhrases {
|
|
|
45
50
|
enter: string;
|
|
46
51
|
};
|
|
47
52
|
};
|
|
53
|
+
};
|
|
54
|
+
verify_email: LND;
|
|
55
|
+
no_password: LND;
|
|
56
|
+
checkboxes: {
|
|
57
|
+
remember_me: string;
|
|
58
|
+
};
|
|
59
|
+
external_links: {
|
|
60
|
+
forgot_pw: AuthFormExternalLinks;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export interface SignupPhrases {
|
|
64
|
+
title: string;
|
|
65
|
+
inputs: {
|
|
48
66
|
firstname: AuthFormInputField;
|
|
49
67
|
lastname: AuthFormInputField;
|
|
50
68
|
username: AuthFormInputField;
|
|
51
69
|
email: AuthFormInputField;
|
|
52
70
|
password: AuthFormInputField;
|
|
53
71
|
};
|
|
54
|
-
or: string;
|
|
55
|
-
button_label: string;
|
|
56
72
|
password_characteristics: PasswordCharacteristics;
|
|
57
73
|
successfully_created: LND;
|
|
58
|
-
verify_email: LND;
|
|
59
|
-
no_password: LND;
|
|
60
|
-
unexpected_error: LND;
|
|
61
74
|
checkboxes: {
|
|
62
75
|
emailer_enabled: string;
|
|
63
|
-
remember_me: string;
|
|
64
76
|
};
|
|
65
|
-
signup: FormIntrinsicProps;
|
|
66
77
|
agreement: {
|
|
67
78
|
sign_up_label: string;
|
|
68
79
|
terms_of_use: string;
|
|
69
80
|
agreement: string;
|
|
70
81
|
};
|
|
71
|
-
|
|
82
|
+
}
|
|
83
|
+
export interface WelcomeBackPhrases {
|
|
84
|
+
title: string;
|
|
85
|
+
password: AuthFormInputField;
|
|
72
86
|
external_links: {
|
|
73
|
-
forgot_pw: AuthFormExternalLinks;
|
|
74
87
|
not_me: AuthFormExternalLinks;
|
|
75
88
|
};
|
|
76
|
-
auth_providers: AuthenticationProvidersPhrases;
|
|
77
89
|
}
|
|
78
90
|
export interface ShortAuthFormData {
|
|
79
91
|
email: string;
|
|
@@ -84,5 +96,3 @@ export interface ShortAuthFormData {
|
|
|
84
96
|
export interface AuthFormData {
|
|
85
97
|
prev_session?: ShortAuthFormData;
|
|
86
98
|
}
|
|
87
|
-
export interface AuthFormResponse extends QueryResponse<AuthFormData, AuthFormPhrases> {
|
|
88
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UrgentEvent } from '..';
|
|
2
|
-
import { Currency, QueryResponse } from './common';
|
|
2
|
+
import { Currency, Locale, QueryResponse } from './common';
|
|
3
3
|
import { UrgentEventPhrases } from './events';
|
|
4
4
|
export declare enum Pages {
|
|
5
5
|
NOTIFICATIONS = "notifications",
|
|
@@ -67,13 +67,11 @@ export declare enum Paths {
|
|
|
67
67
|
}
|
|
68
68
|
export interface CommonData {
|
|
69
69
|
currentUser: MainUserData | null;
|
|
70
|
-
no_consent
|
|
70
|
+
no_consent?: boolean;
|
|
71
71
|
page: Pages;
|
|
72
72
|
direction: TextDirection;
|
|
73
73
|
preferences: {
|
|
74
|
-
|
|
75
|
-
locale: string;
|
|
76
|
-
moment_locale: string;
|
|
74
|
+
locale: Locale;
|
|
77
75
|
currency: Currency;
|
|
78
76
|
theme: UITHEME;
|
|
79
77
|
};
|