@bprotsyk/aso-core 1.1.16 → 1.1.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.
Files changed (33) hide show
  1. package/lib/aso/config/aso-config-v0.d.ts +4 -4
  2. package/lib/aso/config/aso-config-v1.d.ts +26 -27
  3. package/lib/aso/config/aso-config-v1.js +3 -3
  4. package/lib/aso/config/aso-config-v2.d.ts +24 -24
  5. package/lib/aso/config/aso-config-v2.js +3 -3
  6. package/lib/aso/config/aso-config-v3.d.ts +23 -23
  7. package/lib/aso/config/aso-config-v3.js +3 -3
  8. package/lib/aso/config/aso-config-v4.d.ts +26 -26
  9. package/lib/aso/config/aso-config-v4.js +3 -3
  10. package/lib/aso/config/aso-config-v5.d.ts +26 -27
  11. package/lib/aso/config/aso-config-v5.js +3 -3
  12. package/lib/aso/config/aso-default-config.d.ts +1 -1
  13. package/lib/aso/config/aso-single-response.d.ts +2 -2
  14. package/lib/aso/offer/config/aso-config-v0.d.ts +22 -22
  15. package/lib/aso/offer/config/aso-config-v1.d.ts +21 -21
  16. package/lib/aso/offer/config/aso-config-v2.d.ts +20 -20
  17. package/lib/aso/offer/config/aso-config-v3.d.ts +20 -20
  18. package/lib/aso/offer/config/aso-config-v4.d.ts +23 -23
  19. package/lib/aso/usage-logs/aso-config-fetch-entry.d.ts +28 -0
  20. package/lib/aso/usage-logs/aso-config-fetch-entry.js +2 -0
  21. package/lib/index.d.ts +6 -4
  22. package/lib/index.js +7 -9
  23. package/package.json +1 -1
  24. package/src/aso/config/aso-config-v0.ts +6 -6
  25. package/src/aso/config/aso-config-v1.ts +29 -26
  26. package/src/aso/config/aso-config-v2.ts +26 -24
  27. package/src/aso/config/aso-config-v3.ts +25 -23
  28. package/src/aso/config/aso-config-v4.ts +27 -26
  29. package/src/aso/config/aso-config-v5.ts +26 -26
  30. package/src/aso/config/aso-default-config.ts +1 -1
  31. package/src/aso/config/aso-single-response.ts +2 -2
  32. package/src/aso/usage-logs/aso-config-fetch-entry.ts +31 -0
  33. package/src/index.ts +8 -5
@@ -1,5 +1,5 @@
1
1
  import { DefaultConfig } from "./aso-default-config";
2
- interface AuthorizationActionMapping {
2
+ interface IAuthorizationActionMapping {
3
3
  hasNextAction: string;
4
4
  nextActionIn: string;
5
5
  changeNumberCaption: string;
@@ -11,8 +11,8 @@ interface AuthorizationActionMapping {
11
11
  when: string;
12
12
  authorized: string;
13
13
  }
14
- interface LocalizationMap {
15
- [key: string]: Localization;
14
+ interface ILocalizationMap {
15
+ [key: string]: ILocalization;
16
16
  }
17
17
  export interface ASOConfig_v4 {
18
18
  name: string;
@@ -40,14 +40,14 @@ export interface ASOConfig_v4 {
40
40
  maxCallTries: number;
41
41
  smscLogin: string;
42
42
  smscPassword: string;
43
- localization?: LocalizationMap | Localization;
44
- localizationMapping: LocalizationMapping;
45
- authorizationActionMapping: AuthorizationActionMapping;
43
+ localization?: ILocalizationMap | ILocalization;
44
+ localizationMapping: ILocalizationMapping;
45
+ authorizationActionMapping: IAuthorizationActionMapping;
46
46
  offerSectionMapping: IOfferSectionMapping;
47
47
  offerResultMapping: IOfferResultMapping;
48
- configMapping: ConfigMapping;
49
- coloredStringMapping: ColoredStringMapping;
50
- coloredSpanMapping: ColoredSpanMapping;
48
+ configMapping: IConfigMapping;
49
+ coloredStringMapping: IColoredStringMapping;
50
+ coloredSpanMapping: IColoredSpanMapping;
51
51
  configEndpoint: string;
52
52
  offersEndpoint: string;
53
53
  nextActionEndpoint: string;
@@ -96,7 +96,7 @@ interface LocalizedString {
96
96
  en: string;
97
97
  ru: string;
98
98
  }
99
- interface Localization {
99
+ interface ILocalization {
100
100
  numberWillReceiveACallPattern: string;
101
101
  numberReceivedACallPattern: string;
102
102
  numberReceivedASmsPattern: string;
@@ -133,35 +133,35 @@ interface Localization {
133
133
  game_demo_available_after_auth: string;
134
134
  game_min_rate_error_pattern: string;
135
135
  game_yourLevel: string;
136
- auth_title: ColoredString;
137
- auth_subtitle: ColoredString;
136
+ auth_title: IColoredString;
137
+ auth_subtitle: IColoredString;
138
138
  auth_changeNumber: string;
139
139
  auth_getAccess: string;
140
140
  auth_enterAsGuest: string;
141
141
  auth_privacyPolicyAcceptance: string;
142
- auth_privacyPolicy: ColoredString;
142
+ auth_privacyPolicy: IColoredString;
143
143
  }
144
- interface ColoredString {
144
+ interface IColoredString {
145
145
  text: string;
146
- colors: ColoredSpan[];
146
+ colors: IColoredSpan[];
147
147
  mappingName: string;
148
148
  }
149
- interface ColoredSpan {
149
+ interface IColoredSpan {
150
150
  from: number;
151
151
  to: number;
152
152
  color: string;
153
153
  }
154
- interface ColoredStringMapping {
154
+ interface IColoredStringMapping {
155
155
  text: string;
156
156
  colors: string;
157
- internal: [string, ColoredSpanMapping][];
157
+ internal: [string, IColoredSpanMapping][];
158
158
  }
159
- interface ColoredSpanMapping {
159
+ interface IColoredSpanMapping {
160
160
  from: string;
161
161
  to: string;
162
162
  color: string;
163
163
  }
164
- interface ConfigMapping {
164
+ interface IConfigMapping {
165
165
  fullAccess: string;
166
166
  appsflyerKey: string;
167
167
  onesignalKey: string;
@@ -170,9 +170,9 @@ interface ConfigMapping {
170
170
  supportUrl: string;
171
171
  privacyPolicyUrl: string;
172
172
  localization: string;
173
- internal: [string, LocalizationMapping][];
173
+ internal: [string, ILocalizationMapping][];
174
174
  }
175
- interface LocalizationMapping {
175
+ interface ILocalizationMapping {
176
176
  game_spin: string;
177
177
  game_balance_pattern: string;
178
178
  game_win_pattern: string;
@@ -199,7 +199,7 @@ interface LocalizationMapping {
199
199
  auth_enterAsGuest: string;
200
200
  auth_privacyPolicyAcceptance: string;
201
201
  auth_privacyPolicy: string;
202
- internal: [string, ColoredStringMapping][];
202
+ internal: [string, IColoredStringMapping][];
203
203
  }
204
204
  export declare let asoConfigToDefault_v4: (config: ASOConfig_v4) => DefaultConfig;
205
205
  export {};
@@ -0,0 +1,28 @@
1
+ import { Document } from "mongoose";
2
+ export interface IASOUsageLogEntry extends Document {
3
+ countryCode: string;
4
+ ip: string;
5
+ timestamp: number;
6
+ phone: string;
7
+ }
8
+ export interface IASOUsageLogRequest {
9
+ from: number;
10
+ to: number;
11
+ first: number;
12
+ last: number;
13
+ count: number;
14
+ }
15
+ interface IASOCountryInfo {
16
+ all: number;
17
+ authorized: number;
18
+ }
19
+ export interface IASOUsageLogResponse {
20
+ countriesInfo: {
21
+ [key: string]: IASOCountryInfo;
22
+ };
23
+ first: number;
24
+ last: number;
25
+ entries: IASOUsageLogEntry[];
26
+ newEntries: IASOUsageLogEntry[];
27
+ }
28
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/index.d.ts CHANGED
@@ -2,13 +2,15 @@ export { IAsoCustomizedOffer } from "./aso/offer/aso-customized-offer";
2
2
  export { IAsoOfferResponse } from "./aso/offer/aso-offer-response";
3
3
  export { IAsoSection } from "./aso/offer/aso-offer-section";
4
4
  export * as ASO_v0 from "./aso/config/aso-config-v0";
5
- export { ASOConfig_v1, asoConfigToDefault_v1 } from "./aso/config/aso-config-v1";
6
- export { ASOConfig_v2, asoConfigToDefault_v2 } from "./aso/config/aso-config-v2";
7
- export { ASOConfig_v3, asoConfigToDefault_v3 } from "./aso/config/aso-config-v3";
8
- export { ASOConfig_v4, asoConfigToDefault_v4 } from "./aso/config/aso-config-v4";
5
+ export * as ASO_v1 from "./aso/config/aso-config-v1";
6
+ export * as ASO_v2 from "./aso/config/aso-config-v2";
7
+ export * as ASO_v3 from "./aso/config/aso-config-v3";
8
+ export * as ASO_v4 from "./aso/config/aso-config-v4";
9
+ export * as ASO_v5 from "./aso/config/aso-config-v5";
9
10
  export { IPush } from "./shared/push";
10
11
  export { IOffer } from "./shared/offer";
11
12
  export { IOfferWallSection } from "./aso/offerwall/offerwall-section";
12
13
  export { IOfferWallOffer } from "./aso/offerwall/offerwall-offer";
13
14
  export { IOfferWallResponse } from "./aso/offerwall/offerwall-response";
14
15
  export { IFlashApp, FlashAppSchema } from "./flash/flash-app";
16
+ export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry";
package/lib/index.js CHANGED
@@ -23,15 +23,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.FlashAppSchema = exports.asoConfigToDefault_v4 = exports.asoConfigToDefault_v3 = exports.asoConfigToDefault_v2 = exports.asoConfigToDefault_v1 = exports.ASO_v0 = void 0;
26
+ exports.ASOConfigFetch = exports.FlashAppSchema = exports.ASO_v5 = exports.ASO_v4 = exports.ASO_v3 = exports.ASO_v2 = exports.ASO_v1 = exports.ASO_v0 = void 0;
27
27
  exports.ASO_v0 = __importStar(require("./aso/config/aso-config-v0"));
28
- var aso_config_v1_1 = require("./aso/config/aso-config-v1");
29
- Object.defineProperty(exports, "asoConfigToDefault_v1", { enumerable: true, get: function () { return aso_config_v1_1.asoConfigToDefault_v1; } });
30
- var aso_config_v2_1 = require("./aso/config/aso-config-v2");
31
- Object.defineProperty(exports, "asoConfigToDefault_v2", { enumerable: true, get: function () { return aso_config_v2_1.asoConfigToDefault_v2; } });
32
- var aso_config_v3_1 = require("./aso/config/aso-config-v3");
33
- Object.defineProperty(exports, "asoConfigToDefault_v3", { enumerable: true, get: function () { return aso_config_v3_1.asoConfigToDefault_v3; } });
34
- var aso_config_v4_1 = require("./aso/config/aso-config-v4");
35
- Object.defineProperty(exports, "asoConfigToDefault_v4", { enumerable: true, get: function () { return aso_config_v4_1.asoConfigToDefault_v4; } });
28
+ exports.ASO_v1 = __importStar(require("./aso/config/aso-config-v1"));
29
+ exports.ASO_v2 = __importStar(require("./aso/config/aso-config-v2"));
30
+ exports.ASO_v3 = __importStar(require("./aso/config/aso-config-v3"));
31
+ exports.ASO_v4 = __importStar(require("./aso/config/aso-config-v4"));
32
+ exports.ASO_v5 = __importStar(require("./aso/config/aso-config-v5"));
36
33
  var flash_app_1 = require("./flash/flash-app");
37
34
  Object.defineProperty(exports, "FlashAppSchema", { enumerable: true, get: function () { return flash_app_1.FlashAppSchema; } });
35
+ exports.ASOConfigFetch = __importStar(require("./aso/usage-logs/aso-config-fetch-entry"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -1,4 +1,4 @@
1
- import { ASODefaultConfig } from "./aso-default-config"
1
+ import { IASODefaultConfig } from "./aso-default-config"
2
2
 
3
3
  export interface IConfig {
4
4
  id: number,
@@ -38,8 +38,8 @@ export interface IConfig {
38
38
  autoSmsCodeCatch: boolean,
39
39
  autoCallCodeCatch: boolean,
40
40
 
41
- localization: LocalizationMap | ILocalization,
42
- authorizationActionMapping: AuthorizationActionMapping,
41
+ localization?: ILocalizationMap | ILocalization,
42
+ authorizationActionMapping: IAuthorizationActionMapping,
43
43
  offersSectionMapping: IOfferSectionMapping
44
44
  configMapping: IConfigMapping,
45
45
 
@@ -83,7 +83,7 @@ export interface IConfig {
83
83
  }
84
84
 
85
85
 
86
- export interface AuthorizationActionMapping {
86
+ export interface IAuthorizationActionMapping {
87
87
  nextActionIn: string,
88
88
  hasNextAction: string,
89
89
  changeNumberCaption: string,
@@ -97,7 +97,7 @@ export interface AuthorizationActionMapping {
97
97
  canChangeNumber: string
98
98
  }
99
99
 
100
- export interface LocalizationMap {
100
+ export interface ILocalizationMap {
101
101
  [key: string]: ILocalization
102
102
  }
103
103
 
@@ -374,7 +374,7 @@ export interface ILocalizationMapping {
374
374
  internal: [string, IColoredStringMapping][]
375
375
  }
376
376
 
377
- let toDefault = (config: IConfig): ASODefaultConfig => {
377
+ let toDefault = (config: IConfig): IASODefaultConfig => {
378
378
  return {
379
379
  id: config.id,
380
380
  bundle: config.bundle,
@@ -1,6 +1,6 @@
1
- import { ASODefaultConfig } from "./aso-default-config"
1
+ import { IASODefaultConfig } from "./aso-default-config"
2
2
 
3
- export interface ASOConfig_v1 {
3
+ export interface IConfig {
4
4
  id: number,
5
5
  name: string,
6
6
  email: string,
@@ -39,10 +39,10 @@ export interface ASOConfig_v1 {
39
39
  autoSmsCodeCatch: boolean,
40
40
  autoCallCodeCatch: boolean,
41
41
 
42
- localization?: LocalizationMap | Localization,
43
- authorizationActionMapping: AuthorizationActionMapping,
42
+ localization?: ILocalizationMap | ILocalization,
43
+ authorizationActionMapping: IAuthorizationActionMapping,
44
44
  offersSectionMapping: IOfferSectionMapping
45
- configMapping: ConfigMapping,
45
+ configMapping: IConfigMapping,
46
46
 
47
47
  configEndpoint: string,
48
48
  offersEndpoint: string,
@@ -99,7 +99,7 @@ export interface ISectionPalette {
99
99
  emojiCaption: string
100
100
  }
101
101
 
102
- export interface AuthorizationActionMapping {
102
+ export interface IAuthorizationActionMapping {
103
103
  hasNextAction: string,
104
104
  nextActionIn: string,
105
105
  changeNumberCaption: string,
@@ -113,7 +113,7 @@ export interface AuthorizationActionMapping {
113
113
  canChangeNumber: string
114
114
  }
115
115
 
116
- interface IOfferResult {
116
+ export interface IOfferResult {
117
117
  id: string,
118
118
  backgroundImage: string,
119
119
  foregroundImage: string,
@@ -121,7 +121,7 @@ interface IOfferResult {
121
121
  buttonText: string
122
122
  }
123
123
 
124
- interface IOfferResultEmoji {
124
+ export interface IOfferResultEmoji {
125
125
  emoji: string | null,
126
126
  caption: string | null,
127
127
  }
@@ -154,6 +154,7 @@ export interface ISectionPaletteMapping {
154
154
  emojiCaptionBackground: string,
155
155
  emojiCaption: string
156
156
  }
157
+
157
158
  export interface IOfferSectionMapping {
158
159
  id: string,
159
160
  offers: string
@@ -161,6 +162,7 @@ export interface IOfferSectionMapping {
161
162
  palette: string,
162
163
  internal: [string, any][]
163
164
  }
165
+
164
166
  export interface IOfferResultMapping {
165
167
  id: string,
166
168
  backgroundImage: string,
@@ -178,7 +180,7 @@ export interface IOfferSectionMapping {
178
180
  internal: [string, any][]
179
181
  }
180
182
 
181
- export interface Localization {
183
+ export interface ILocalization {
182
184
  numberWillReceiveACallPattern: string,
183
185
  numberReceivedACallPattern: string,
184
186
  numberReceivedASmsPattern: string,
@@ -238,40 +240,41 @@ export interface Localization {
238
240
  auth_changeTitle: string,
239
241
  auth_changeMessage: string,
240
242
 
241
- auth_titleTop: ColoredString,
242
- auth_titleBottom: ColoredString,
243
- auth_subtitle: ColoredString
243
+ auth_titleTop: IColoredString,
244
+ auth_titleBottom: IColoredString,
245
+ auth_subtitle: IColoredString
244
246
  auth_nameHint: string,
245
247
  auth_changeNumber: string,
246
248
  auth_enterAsGuest: string,
247
249
  auth_privacyPolicyAcceptance: string,
248
- auth_privacyPolicy: ColoredString
250
+ auth_privacyPolicy: IColoredString
249
251
  }
250
252
 
251
- export interface ColoredString {
253
+ export interface IColoredString {
252
254
  text: string,
253
- colors: ColoredSpan[]
255
+ colors: IColoredSpan[]
254
256
  mappingName: string
255
257
  }
256
258
 
257
- interface ColoredSpan {
259
+ export interface IColoredSpan {
258
260
  from: number,
259
261
  to: number,
260
262
  color: string
261
263
  }
262
264
 
263
- export interface ColoredStringMapping {
265
+ export interface IColoredStringMapping {
264
266
  text: string,
265
267
  colors: string,
266
- internal: [string, ColoredSpanMapping][]
268
+ internal: [string, IColoredSpanMapping][]
267
269
  }
268
270
 
269
- export interface ColoredSpanMapping {
271
+ export interface IColoredSpanMapping {
270
272
  from: string,
271
273
  to: string,
272
274
  color: string
273
275
  }
274
- export interface ConfigMapping {
276
+
277
+ export interface IConfigMapping {
275
278
  id: string,
276
279
  fullAccess: string,
277
280
  showVideo: string,
@@ -294,14 +297,14 @@ export interface ConfigMapping {
294
297
  autoSmsCodeCatch: string,
295
298
  autoCallCodeCatch: string,
296
299
  localization: string,
297
- internal: [string, LocalizationMapping][],
300
+ internal: [string, ILocalizationMapping][],
298
301
  }
299
302
 
300
- interface LocalizationMap {
301
- [key: string]: Localization
303
+ export interface ILocalizationMap {
304
+ [key: string]: ILocalization
302
305
  }
303
306
 
304
- export interface LocalizationMapping {
307
+ export interface ILocalizationMapping {
305
308
  numberWillReceiveACallPattern: string,
306
309
  numberReceivedACallPattern: string,
307
310
  numberReceivedASmsPattern: string,
@@ -368,10 +371,10 @@ export interface LocalizationMapping {
368
371
  auth_privacyPolicyAcceptance: string,
369
372
  auth_privacyPolicy: string,
370
373
 
371
- internal: [string, ColoredStringMapping][]
374
+ internal: [string, IColoredStringMapping][]
372
375
  }
373
376
 
374
- export let asoConfigToDefault_v1 = (config: ASOConfig_v1): ASODefaultConfig => {
377
+ export let toDefault = (config: IConfig): IASODefaultConfig => {
375
378
  return {
376
379
  id: config.id,
377
380
  bundle: config.bundle,
@@ -1,6 +1,6 @@
1
- import { ASODefaultConfig } from "./aso-default-config"
1
+ import { IASODefaultConfig } from "./aso-default-config"
2
2
 
3
- export interface ASOConfig_v2 {
3
+ export interface IConfig {
4
4
  id: number,
5
5
  name: string,
6
6
  email: string,
@@ -37,10 +37,10 @@ export interface ASOConfig_v2 {
37
37
  autoSmsCodeCatch: boolean,
38
38
  autoCallCodeCatch: boolean,
39
39
 
40
- localization: LocalizationMap | Localization,
41
- authorizationActionMapping: AuthorizationActionMapping,
40
+ localization: ILocalizationMap | ILocalization,
41
+ authorizationActionMapping: IAuthorizationActionMapping,
42
42
  offersSectionMapping: IOfferSectionMapping
43
- configMapping: ConfigMapping,
43
+ configMapping: IConfigMapping,
44
44
 
45
45
  configEndpoint: string,
46
46
  offersEndpoint: string,
@@ -74,7 +74,7 @@ export interface ASOConfig_v2 {
74
74
  version: number
75
75
  }
76
76
 
77
- export interface AuthorizationActionMapping {
77
+ export interface IAuthorizationActionMapping {
78
78
  hasNextAction: string,
79
79
  nextActionIn: string,
80
80
  changeNumberCaption: string,
@@ -87,8 +87,8 @@ export interface AuthorizationActionMapping {
87
87
  authorized: string,
88
88
  }
89
89
 
90
- interface LocalizationMap {
91
- [key: string]: Localization
90
+ export interface ILocalizationMap {
91
+ [key: string]: ILocalization
92
92
  }
93
93
 
94
94
 
@@ -107,7 +107,7 @@ export interface ISectionPalette {
107
107
  emojiCaption: string
108
108
  }
109
109
 
110
- interface IOfferResult {
110
+ export interface IOfferResult {
111
111
  id: string,
112
112
  backgroundImage: string,
113
113
  foregroundImage: string,
@@ -144,6 +144,7 @@ export interface ISectionPaletteMapping {
144
144
  emojiCaptionBackground: string,
145
145
  emojiCaption: string
146
146
  }
147
+
147
148
  export interface IOfferSectionMapping {
148
149
  id: string,
149
150
  offers: string
@@ -168,7 +169,7 @@ export interface IOfferSectionMapping {
168
169
  internal: [string, any][]
169
170
  }
170
171
 
171
- export interface Localization {
172
+ export interface ILocalization {
172
173
  numberWillReceiveACallPattern: string,
173
174
  numberReceivedACallPattern: string,
174
175
  numberReceivedASmsPattern: string,
@@ -226,40 +227,41 @@ export interface Localization {
226
227
  auth_changeMessage: string,
227
228
  auth_againTitle: string,
228
229
  auth_againMessage: string,
229
- auth_title: ColoredString,
230
- auth_subtitle: ColoredString
230
+ auth_title: IColoredString,
231
+ auth_subtitle: IColoredString
231
232
  auth_nameHint: string,
232
233
  auth_changeNumber: string,
233
234
  auth_getAccess: string,
234
235
  auth_enterAsGuest: string,
235
236
  auth_privacyPolicyAcceptance: string,
236
- auth_privacyPolicy: ColoredString
237
+ auth_privacyPolicy: IColoredString
237
238
  }
238
239
 
239
- export interface ColoredString {
240
+ export interface IColoredString {
240
241
  text: string,
241
- colors: ColoredSpan[]
242
+ colors: IColoredSpan[]
242
243
  mappingName: string
243
244
  }
244
245
 
245
- interface ColoredSpan {
246
+ interface IColoredSpan {
246
247
  from: number,
247
248
  to: number,
248
249
  color: string
249
250
  }
250
251
 
251
- export interface ColoredStringMapping {
252
+ export interface IColoredStringMapping {
252
253
  text: string,
253
254
  colors: string,
254
- internal: [string, ColoredSpanMapping][]
255
+ internal: [string, IColoredSpanMapping][]
255
256
  }
256
257
 
257
- export interface ColoredSpanMapping {
258
+ export interface IColoredSpanMapping {
258
259
  from: string,
259
260
  to: string,
260
261
  color: string
261
262
  }
262
- export interface ConfigMapping {
263
+
264
+ export interface IConfigMapping {
263
265
  id: string,
264
266
  fullAccess: string,
265
267
  showVideo: string,
@@ -278,10 +280,10 @@ export interface ConfigMapping {
278
280
  autoSmsCodeCatch: string,
279
281
  autoCallCodeCatch: string,
280
282
  localization: string,
281
- internal: [string, LocalizationMapping][],
283
+ internal: [string, ILocalizationMapping][],
282
284
  }
283
285
 
284
- export interface LocalizationMapping {
286
+ export interface ILocalizationMapping {
285
287
  game_spin: string,
286
288
  game_balance_pattern: string,
287
289
  game_win_pattern: string
@@ -330,10 +332,10 @@ export interface LocalizationMapping {
330
332
  auth_privacyPolicyAcceptance: string,
331
333
  auth_privacyPolicy: string,
332
334
 
333
- internal: [string, ColoredStringMapping][]
335
+ internal: [string, IColoredStringMapping][]
334
336
  }
335
337
 
336
- export let asoConfigToDefault_v2 = (config: ASOConfig_v2): ASODefaultConfig => {
338
+ export let toDefault = (config: IConfig): IASODefaultConfig => {
337
339
  return {
338
340
  id: config.id,
339
341
  bundle: config.bundle,
@@ -1,6 +1,6 @@
1
- import { ASODefaultConfig } from "./aso-default-config"
1
+ import { IASODefaultConfig } from "./aso-default-config"
2
2
 
3
- export interface ASOConfig_v3 {
3
+ export interface IConfig {
4
4
  id: number,
5
5
  name: string,
6
6
  email: string,
@@ -35,10 +35,10 @@ export interface ASOConfig_v3 {
35
35
  autoSmsCodeCatch: boolean,
36
36
  autoCallCodeCatch: boolean,
37
37
 
38
- localization?: LocalizationMap | Localization,
39
- authorizationActionMapping: AuthorizationActionMapping,
38
+ localization?: ILocalizationMap | ILocalization,
39
+ authorizationActionMapping: IAuthorizationActionMapping,
40
40
  offersSectionMapping: IOfferSectionMapping
41
- configMapping: ConfigMapping,
41
+ configMapping: IConfigMapping,
42
42
 
43
43
  configEndpoint: string,
44
44
  offersEndpoint: string,
@@ -76,7 +76,7 @@ export interface ASOConfig_v3 {
76
76
  version: number
77
77
  }
78
78
 
79
- export interface AuthorizationActionMapping {
79
+ export interface IAuthorizationActionMapping {
80
80
  hasNextAction: string,
81
81
  nextActionIn: string,
82
82
  changeNumberCaption: string,
@@ -89,8 +89,8 @@ export interface AuthorizationActionMapping {
89
89
  authorized: string,
90
90
  }
91
91
 
92
- interface LocalizationMap {
93
- [key: string]: Localization
92
+ export interface ILocalizationMap {
93
+ [key: string]: ILocalization
94
94
  }
95
95
 
96
96
  export interface ISectionPalette {
@@ -145,6 +145,7 @@ export interface ISectionPaletteMapping {
145
145
  emojiCaptionBackground: string,
146
146
  emojiCaption: string
147
147
  }
148
+
148
149
  export interface IOfferSectionMapping {
149
150
  id: string,
150
151
  offers: string
@@ -152,6 +153,7 @@ export interface IOfferSectionMapping {
152
153
  palette: string,
153
154
  internal: [string, any][]
154
155
  }
156
+
155
157
  export interface IOfferResultMapping {
156
158
  id: string,
157
159
  backgroundImage: string,
@@ -169,7 +171,7 @@ export interface IOfferSectionMapping {
169
171
  internal: [string, any][]
170
172
  }
171
173
 
172
- export interface Localization {
174
+ export interface ILocalization {
173
175
  numberWillReceiveACallPattern: string,
174
176
  numberReceivedACallPattern: string,
175
177
  numberReceivedASmsPattern: string,
@@ -223,41 +225,41 @@ export interface Localization {
223
225
  game_min_rate_error_pattern: string,
224
226
  game_yourLevel: string,
225
227
 
226
- auth_title: ColoredString,
227
- auth_subtitle: ColoredString
228
+ auth_title: IColoredString,
229
+ auth_subtitle: IColoredString
228
230
  auth_nameHint: string,
229
231
  auth_changeNumber: string,
230
232
  auth_getAccess: string,
231
233
  auth_enterAsGuest: string,
232
234
  auth_privacyPolicyAcceptance: string,
233
- auth_privacyPolicy: ColoredString
235
+ auth_privacyPolicy: IColoredString
234
236
  }
235
237
 
236
- export interface ColoredString {
238
+ export interface IColoredString {
237
239
  text: string,
238
- colors: ColoredSpan[]
240
+ colors: IColoredSpan[]
239
241
  mappingName: string
240
242
  }
241
243
 
242
- interface ColoredSpan {
244
+ interface IColoredSpan {
243
245
  from: number,
244
246
  to: number,
245
247
  color: string
246
248
  }
247
249
 
248
- export interface ColoredStringMapping {
250
+ export interface IColoredStringMapping {
249
251
  text: string,
250
252
  colors: string,
251
- internal: [string, ColoredSpanMapping][]
253
+ internal: [string, IColoredSpanMapping][]
252
254
  }
253
255
 
254
- export interface ColoredSpanMapping {
256
+ export interface IColoredSpanMapping {
255
257
  from: string,
256
258
  to: string,
257
259
  color: string
258
260
  }
259
261
 
260
- export interface ConfigMapping {
262
+ export interface IConfigMapping {
261
263
  id: string,
262
264
  fullAccess: string,
263
265
  showVideo: string,
@@ -277,10 +279,10 @@ export interface ConfigMapping {
277
279
  autoSmsCodeCatch: string,
278
280
  autoCallCodeCatch: string,
279
281
  localization: string,
280
- internal: [string, LocalizationMapping][],
282
+ internal: [string, ILocalizationMapping][],
281
283
  }
282
284
 
283
- export interface LocalizationMapping {
285
+ export interface ILocalizationMapping {
284
286
  game_spin: string,
285
287
  game_balance_pattern: string,
286
288
  game_win_pattern: string
@@ -326,10 +328,10 @@ export interface LocalizationMapping {
326
328
  auth_privacyPolicyAcceptance: string,
327
329
  auth_privacyPolicy: string,
328
330
 
329
- internal: [string, ColoredStringMapping][]
331
+ internal: [string, IColoredStringMapping][]
330
332
  }
331
333
 
332
- export let asoConfigToDefault_v3 = (config: ASOConfig_v3): ASODefaultConfig => {
334
+ export let toDefault = (config: IConfig): IASODefaultConfig => {
333
335
  return {
334
336
  id: config.id,
335
337
  bundle: config.bundle,