@jealous-robot-dev/shared-types-responses 1.17.38 → 1.18.3

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.
@@ -7,8 +7,22 @@ export interface ObjectWithTimeStamp<Type> {
7
7
  timestamp: string;
8
8
  data: Type;
9
9
  }
10
+ export declare enum ASSIcons {
11
+ PREFS = "PREFS",
12
+ SECURITY = "SECURITY",
13
+ MAKE_SECURE = "MAKE_SECURE",
14
+ PRIVACY = "PRIVACY",
15
+ PAYMENTS = "PAYMENTS",
16
+ TRANSACTIONS = "TRANSACTIONS",
17
+ NOTIFS = "NOTIFS",
18
+ EVTS = "EVTS",
19
+ EVTS_FAQ = "EVTS_FAQ",
20
+ PERSONAL_INFO = "PERSONAL_INFO",
21
+ MSG = "MSG"
22
+ }
10
23
  export interface FAQ {
11
24
  question: string;
25
+ icon: ASSIcons;
12
26
  answer: string;
13
27
  linkText?: string;
14
28
  }
@@ -1,6 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Languages = exports.UserPreferences = exports.CurrencyPosition = void 0;
3
+ exports.Languages = exports.UserPreferences = exports.CurrencyPosition = exports.ASSIcons = void 0;
4
+ var ASSIcons;
5
+ (function (ASSIcons) {
6
+ ASSIcons["PREFS"] = "PREFS";
7
+ ASSIcons["SECURITY"] = "SECURITY";
8
+ ASSIcons["MAKE_SECURE"] = "MAKE_SECURE";
9
+ ASSIcons["PRIVACY"] = "PRIVACY";
10
+ ASSIcons["PAYMENTS"] = "PAYMENTS";
11
+ ASSIcons["TRANSACTIONS"] = "TRANSACTIONS";
12
+ ASSIcons["NOTIFS"] = "NOTIFS";
13
+ ASSIcons["EVTS"] = "EVTS";
14
+ ASSIcons["EVTS_FAQ"] = "EVTS_FAQ";
15
+ ASSIcons["PERSONAL_INFO"] = "PERSONAL_INFO";
16
+ ASSIcons["MSG"] = "MSG";
17
+ })(ASSIcons = exports.ASSIcons || (exports.ASSIcons = {}));
4
18
  var CurrencyPosition;
5
19
  (function (CurrencyPosition) {
6
20
  CurrencyPosition["BEFORE"] = "before";
@@ -104,3 +104,22 @@ export interface ShortAuthFormData {
104
104
  export interface AuthFormData {
105
105
  prev_session?: ShortAuthFormData;
106
106
  }
107
+ export declare enum AUTH_ID_TYPE {
108
+ EMAIL = "EMAIL",
109
+ USERNAME = "USERNAME"
110
+ }
111
+ export declare enum AuthRespErrors {
112
+ INVALID_INPUT = "INVALID_INPUT",
113
+ INVALID_PASSWORD = "INVALID_PASSWORD",
114
+ INVALID_FIRSTNAME = "INVALID_FIRSTNAME",
115
+ INVALID_LASTNAME = "INVALID_LASTNAME",
116
+ EMAIL_UNVIERIFIED = "EMAIL_UNVIERIFIED",
117
+ EMAIL_IN_USE = "EMAIL_IN_USE",
118
+ USERNAME_IN_USE = "USERNAME_IN_USE"
119
+ }
120
+ export declare enum PositiveAuthResponse {
121
+ NEW_USER = "NEW_USER",
122
+ WELCOME_BACK = "WELCOME_BACK",
123
+ VERIFY_DEVICE = "VERIFY_DEVICE",
124
+ PASS = "PASS"
125
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthenticationWindows = exports.AuthID = exports.AuthenticationProviders = void 0;
3
+ exports.PositiveAuthResponse = exports.AuthRespErrors = exports.AUTH_ID_TYPE = exports.AuthenticationWindows = exports.AuthID = exports.AuthenticationProviders = void 0;
4
4
  var AuthenticationProviders;
5
5
  (function (AuthenticationProviders) {
6
6
  AuthenticationProviders["GOOGLE"] = "google";
@@ -19,3 +19,25 @@ var AuthenticationWindows;
19
19
  AuthenticationWindows["FINISH_SIGNUP"] = "finish sign up";
20
20
  AuthenticationWindows["WELCOME"] = "welcome";
21
21
  })(AuthenticationWindows = exports.AuthenticationWindows || (exports.AuthenticationWindows = {}));
22
+ var AUTH_ID_TYPE;
23
+ (function (AUTH_ID_TYPE) {
24
+ AUTH_ID_TYPE["EMAIL"] = "EMAIL";
25
+ AUTH_ID_TYPE["USERNAME"] = "USERNAME";
26
+ })(AUTH_ID_TYPE = exports.AUTH_ID_TYPE || (exports.AUTH_ID_TYPE = {}));
27
+ var AuthRespErrors;
28
+ (function (AuthRespErrors) {
29
+ AuthRespErrors["INVALID_INPUT"] = "INVALID_INPUT";
30
+ AuthRespErrors["INVALID_PASSWORD"] = "INVALID_PASSWORD";
31
+ AuthRespErrors["INVALID_FIRSTNAME"] = "INVALID_FIRSTNAME";
32
+ AuthRespErrors["INVALID_LASTNAME"] = "INVALID_LASTNAME";
33
+ AuthRespErrors["EMAIL_UNVIERIFIED"] = "EMAIL_UNVIERIFIED";
34
+ AuthRespErrors["EMAIL_IN_USE"] = "EMAIL_IN_USE";
35
+ AuthRespErrors["USERNAME_IN_USE"] = "USERNAME_IN_USE";
36
+ })(AuthRespErrors = exports.AuthRespErrors || (exports.AuthRespErrors = {}));
37
+ var PositiveAuthResponse;
38
+ (function (PositiveAuthResponse) {
39
+ PositiveAuthResponse["NEW_USER"] = "NEW_USER";
40
+ PositiveAuthResponse["WELCOME_BACK"] = "WELCOME_BACK";
41
+ PositiveAuthResponse["VERIFY_DEVICE"] = "VERIFY_DEVICE";
42
+ PositiveAuthResponse["PASS"] = "PASS";
43
+ })(PositiveAuthResponse = exports.PositiveAuthResponse || (exports.PositiveAuthResponse = {}));
@@ -16,7 +16,7 @@ export interface UserEventSettingsData {
16
16
  };
17
17
  }
18
18
  export interface UserEventSettingsPhrases {
19
- FAQ: FAQ;
19
+ FAQ: FAQ[];
20
20
  settings: {
21
21
  eventHost: {
22
22
  title: string;
@@ -1,4 +1,4 @@
1
- import { QueryResponse } from '../common';
1
+ import { FAQ, QueryResponse } from '../common';
2
2
  export declare enum Channels {
3
3
  EMAIL = "email",
4
4
  PUSH = "push-notifications"
@@ -27,10 +27,7 @@ export interface UserNotificationPhrases {
27
27
  id: Channels;
28
28
  value: string;
29
29
  }[];
30
- FAQ: {
31
- question: string;
32
- answer: string;
33
- };
30
+ FAQ: FAQ[];
34
31
  settings: {
35
32
  id: UserNotificationDataSettingID;
36
33
  title: string;
@@ -9,9 +9,7 @@ export interface UserPaymentSettingsData {
9
9
  paypals: PaypalAccount[];
10
10
  }
11
11
  export interface UserPaymentSettingsPhrases {
12
- FAQ: {
13
- usePaypal: FAQ;
14
- };
12
+ FAQ: FAQ[];
15
13
  settings: {
16
14
  dialogs: {
17
15
  common: {
@@ -27,12 +27,7 @@ export interface UserPersonalInfoInputField {
27
27
  }
28
28
  export interface UserPersonalInfoPhrases {
29
29
  genders: Gender[];
30
- FAQ: {
31
- fields: {
32
- publicFields: FAQ;
33
- emailChanged: FAQ;
34
- };
35
- };
30
+ FAQ: FAQ[];
36
31
  notSpecified: string;
37
32
  SectionNames: {
38
33
  names: string;
@@ -1,12 +1,14 @@
1
1
  import { FAQ, LND } from '../common';
2
+ export declare enum UserPreferenceSections {
3
+ LANG = "LANG",
4
+ CURRENCY = "CURRENCY",
5
+ THEME = "THEME"
6
+ }
7
+ export interface UserPreferenceSection extends LND {
8
+ type: UserPreferenceSections;
9
+ }
2
10
  export interface UserPreferencePhrases {
3
- FAQ: {
4
- notice_on_currencies: FAQ;
5
- };
11
+ FAQ: FAQ[];
6
12
  title: string;
7
- sections: {
8
- theme: LND;
9
- currency: LND;
10
- language: LND;
11
- };
13
+ sections: UserPreferenceSection[];
12
14
  }
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserPreferenceSections = void 0;
4
+ var UserPreferenceSections;
5
+ (function (UserPreferenceSections) {
6
+ UserPreferenceSections["LANG"] = "LANG";
7
+ UserPreferenceSections["CURRENCY"] = "CURRENCY";
8
+ UserPreferenceSections["THEME"] = "THEME";
9
+ })(UserPreferenceSections = exports.UserPreferenceSections || (exports.UserPreferenceSections = {}));
@@ -32,9 +32,7 @@ export interface UserPrivacyPhrases {
32
32
  connect: string;
33
33
  disconnect: string;
34
34
  };
35
- FAQ: {
36
- enablingPrivacy: FAQ;
37
- };
35
+ FAQ: FAQ[];
38
36
  }
39
37
  export interface UserPrivacyResponse extends QueryResponse<UserPrivacy, UserPrivacyPhrases> {
40
38
  }
@@ -24,10 +24,7 @@ export interface UserSecurity {
24
24
  };
25
25
  }
26
26
  export interface UserSecurityPhrases {
27
- FAQ: {
28
- secureAuth: FAQ;
29
- makeSecure: FAQ;
30
- };
27
+ FAQ: FAQ[];
31
28
  device: {
32
29
  label: string;
33
30
  currentDevice: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.17.38",
3
+ "version": "1.18.3",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",