@bprotsyk/aso-core 1.1.15 → 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.
- package/lib/aso/config/aso-config-v0.d.ts +26 -35
- package/lib/aso/config/aso-config-v0.js +1 -3
- package/lib/aso/config/aso-config-v1.d.ts +26 -27
- package/lib/aso/config/aso-config-v1.js +3 -3
- package/lib/aso/config/aso-config-v2.d.ts +24 -24
- package/lib/aso/config/aso-config-v2.js +3 -3
- package/lib/aso/config/aso-config-v3.d.ts +23 -23
- package/lib/aso/config/aso-config-v3.js +3 -3
- package/lib/aso/config/aso-config-v4.d.ts +26 -26
- package/lib/aso/config/aso-config-v4.js +3 -3
- package/lib/aso/config/aso-config-v5.d.ts +26 -27
- package/lib/aso/config/aso-config-v5.js +3 -3
- package/lib/aso/config/aso-default-config.d.ts +1 -1
- package/lib/aso/config/aso-single-response.d.ts +2 -2
- package/lib/aso/offer/config/aso-config-v0.d.ts +22 -22
- package/lib/aso/offer/config/aso-config-v1.d.ts +21 -21
- package/lib/aso/offer/config/aso-config-v2.d.ts +20 -20
- package/lib/aso/offer/config/aso-config-v3.d.ts +20 -20
- package/lib/aso/offer/config/aso-config-v4.d.ts +23 -23
- package/lib/aso/usage-logs/aso-config-fetch-entry.d.ts +28 -0
- package/lib/aso/usage-logs/aso-config-fetch-entry.js +2 -0
- package/lib/index.d.ts +7 -5
- package/lib/index.js +31 -11
- package/package.json +1 -1
- package/src/aso/config/aso-config-v0.ts +31 -36
- package/src/aso/config/aso-config-v1.ts +29 -26
- package/src/aso/config/aso-config-v2.ts +26 -24
- package/src/aso/config/aso-config-v3.ts +25 -23
- package/src/aso/config/aso-config-v4.ts +27 -26
- package/src/aso/config/aso-config-v5.ts +26 -26
- package/src/aso/config/aso-default-config.ts +1 -1
- package/src/aso/config/aso-single-response.ts +2 -2
- package/src/aso/usage-logs/aso-config-fetch-entry.ts +31 -0
- package/src/index.ts +9 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { IASODefaultConfig } from "./aso-default-config";
|
|
2
|
+
export interface IConfig {
|
|
3
3
|
name: string;
|
|
4
4
|
email: string;
|
|
5
5
|
id: number;
|
|
@@ -27,14 +27,14 @@ export interface ASOConfig_v4 {
|
|
|
27
27
|
maxCallTries: number;
|
|
28
28
|
smscLogin: string;
|
|
29
29
|
smscPassword: string;
|
|
30
|
-
localization?:
|
|
31
|
-
localizationMapping:
|
|
32
|
-
authorizationActionMapping:
|
|
30
|
+
localization?: ILocalizationMap | ILocalization;
|
|
31
|
+
localizationMapping: ILocalizationMapping;
|
|
32
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
33
33
|
offerSectionMapping: IOfferSectionMapping;
|
|
34
34
|
offerResultMapping: IOfferResultMapping;
|
|
35
|
-
configMapping:
|
|
36
|
-
coloredStringMapping:
|
|
37
|
-
coloredSpanMapping:
|
|
35
|
+
configMapping: IConfigMapping;
|
|
36
|
+
coloredStringMapping: IColoredStringMapping;
|
|
37
|
+
coloredSpanMapping: IColoredSpanMapping;
|
|
38
38
|
configEndpoint: string;
|
|
39
39
|
offersEndpoint: string;
|
|
40
40
|
nextActionEndpoint: string;
|
|
@@ -66,7 +66,7 @@ export interface ASOConfig_v4 {
|
|
|
66
66
|
betting?: boolean;
|
|
67
67
|
version: number;
|
|
68
68
|
}
|
|
69
|
-
export interface
|
|
69
|
+
export interface IAuthorizationActionMapping {
|
|
70
70
|
hasNextAction: string;
|
|
71
71
|
nextActionIn: string;
|
|
72
72
|
changeNumberCaption: string;
|
|
@@ -78,8 +78,8 @@ export interface AuthorizationActionMapping {
|
|
|
78
78
|
when: string;
|
|
79
79
|
authorized: string;
|
|
80
80
|
}
|
|
81
|
-
interface
|
|
82
|
-
[key: string]:
|
|
81
|
+
export interface ILocalizationMap {
|
|
82
|
+
[key: string]: ILocalization;
|
|
83
83
|
}
|
|
84
84
|
export interface IOfferSectionMapping {
|
|
85
85
|
offers: string;
|
|
@@ -99,7 +99,7 @@ export interface LocalizedString {
|
|
|
99
99
|
en: string;
|
|
100
100
|
ru: string;
|
|
101
101
|
}
|
|
102
|
-
export interface
|
|
102
|
+
export interface ILocalization {
|
|
103
103
|
numberWillReceiveACallPattern: string;
|
|
104
104
|
numberReceivedACallPattern: string;
|
|
105
105
|
numberReceivedASmsPattern: string;
|
|
@@ -136,35 +136,35 @@ export interface Localization {
|
|
|
136
136
|
game_demo_available_after_auth: string;
|
|
137
137
|
game_min_rate_error_pattern: string;
|
|
138
138
|
game_yourLevel: string;
|
|
139
|
-
auth_title:
|
|
140
|
-
auth_subtitle:
|
|
139
|
+
auth_title: IColoredString;
|
|
140
|
+
auth_subtitle: IColoredString;
|
|
141
141
|
auth_changeNumber: string;
|
|
142
142
|
auth_getAccess: string;
|
|
143
143
|
auth_enterAsGuest: string;
|
|
144
144
|
auth_privacyPolicyAcceptance: string;
|
|
145
|
-
auth_privacyPolicy:
|
|
145
|
+
auth_privacyPolicy: IColoredString;
|
|
146
146
|
}
|
|
147
|
-
export interface
|
|
147
|
+
export interface IColoredString {
|
|
148
148
|
text: string;
|
|
149
|
-
colors:
|
|
149
|
+
colors: IColoredSpan[];
|
|
150
150
|
mappingName: string;
|
|
151
151
|
}
|
|
152
|
-
interface
|
|
152
|
+
interface IColoredSpan {
|
|
153
153
|
from: number;
|
|
154
154
|
to: number;
|
|
155
155
|
color: string;
|
|
156
156
|
}
|
|
157
|
-
export interface
|
|
157
|
+
export interface IColoredStringMapping {
|
|
158
158
|
text: string;
|
|
159
159
|
colors: string;
|
|
160
|
-
internal: [string,
|
|
160
|
+
internal: [string, IColoredSpanMapping][];
|
|
161
161
|
}
|
|
162
|
-
export interface
|
|
162
|
+
export interface IColoredSpanMapping {
|
|
163
163
|
from: string;
|
|
164
164
|
to: string;
|
|
165
165
|
color: string;
|
|
166
166
|
}
|
|
167
|
-
export interface
|
|
167
|
+
export interface IConfigMapping {
|
|
168
168
|
fullAccess: string;
|
|
169
169
|
appsflyerKey: string;
|
|
170
170
|
onesignalKey: string;
|
|
@@ -173,9 +173,9 @@ export interface ConfigMapping {
|
|
|
173
173
|
supportUrl: string;
|
|
174
174
|
privacyPolicyUrl: string;
|
|
175
175
|
localization: string;
|
|
176
|
-
internal: [string,
|
|
176
|
+
internal: [string, ILocalizationMapping][];
|
|
177
177
|
}
|
|
178
|
-
export interface
|
|
178
|
+
export interface ILocalizationMapping {
|
|
179
179
|
game_spin: string;
|
|
180
180
|
game_balance_pattern: string;
|
|
181
181
|
game_win_pattern: string;
|
|
@@ -202,7 +202,7 @@ export interface LocalizationMapping {
|
|
|
202
202
|
auth_enterAsGuest: string;
|
|
203
203
|
auth_privacyPolicyAcceptance: string;
|
|
204
204
|
auth_privacyPolicy: string;
|
|
205
|
-
internal: [string,
|
|
205
|
+
internal: [string, IColoredStringMapping][];
|
|
206
206
|
}
|
|
207
|
-
export declare let
|
|
207
|
+
export declare let toDefault: (config: IConfig) => IASODefaultConfig;
|
|
208
208
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
let
|
|
3
|
+
exports.toDefault = void 0;
|
|
4
|
+
let toDefault = (config) => {
|
|
5
5
|
return {
|
|
6
6
|
id: config.id,
|
|
7
7
|
bundle: config.bundle,
|
|
@@ -55,4 +55,4 @@ let asoConfigToDefault_v4 = (config) => {
|
|
|
55
55
|
version: 4
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
58
|
+
exports.toDefault = toDefault;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { IASODefaultConfig } from "./aso-default-config";
|
|
2
|
+
export interface IConfig {
|
|
3
3
|
name: string;
|
|
4
4
|
email: string;
|
|
5
5
|
id: number;
|
|
@@ -27,14 +27,14 @@ export interface ASOConfig_v5 {
|
|
|
27
27
|
maxCallTries: number;
|
|
28
28
|
smscLogin: string;
|
|
29
29
|
smscPassword: string;
|
|
30
|
-
localization?:
|
|
31
|
-
localizationMapping:
|
|
32
|
-
authorizationActionMapping:
|
|
30
|
+
localization?: ILocalizationMap | ILocalization;
|
|
31
|
+
localizationMapping: ILocalizationMapping;
|
|
32
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
33
33
|
offerSectionMapping: IOfferSectionMapping;
|
|
34
34
|
offerResultMapping: IOfferResultMapping;
|
|
35
|
-
configMapping:
|
|
36
|
-
coloredStringMapping:
|
|
37
|
-
coloredSpanMapping:
|
|
35
|
+
configMapping: IConfigMapping;
|
|
36
|
+
coloredStringMapping: IColoredStringMapping;
|
|
37
|
+
coloredSpanMapping: IColoredSpanMapping;
|
|
38
38
|
configEndpoint: string;
|
|
39
39
|
offersEndpoint: string;
|
|
40
40
|
nextActionEndpoint: string;
|
|
@@ -70,7 +70,7 @@ export interface ASOConfig_v5 {
|
|
|
70
70
|
homeButtonEnabled: boolean;
|
|
71
71
|
version: number;
|
|
72
72
|
}
|
|
73
|
-
export interface
|
|
73
|
+
export interface IAuthorizationActionMapping {
|
|
74
74
|
hasNextAction: string;
|
|
75
75
|
nextActionIn: string;
|
|
76
76
|
changeNumberCaption: string;
|
|
@@ -82,8 +82,8 @@ export interface AuthorizationActionMapping {
|
|
|
82
82
|
when: string;
|
|
83
83
|
authorized: string;
|
|
84
84
|
}
|
|
85
|
-
interface
|
|
86
|
-
[key: string]:
|
|
85
|
+
export interface ILocalizationMap {
|
|
86
|
+
[key: string]: ILocalization;
|
|
87
87
|
}
|
|
88
88
|
export interface IOfferSectionMapping {
|
|
89
89
|
offers: string;
|
|
@@ -103,7 +103,7 @@ export interface LocalizedString {
|
|
|
103
103
|
en: string;
|
|
104
104
|
ru: string;
|
|
105
105
|
}
|
|
106
|
-
export interface
|
|
106
|
+
export interface ILocalization {
|
|
107
107
|
numberWillReceiveACallPattern: string;
|
|
108
108
|
numberReceivedACallPattern: string;
|
|
109
109
|
numberReceivedASmsPattern: string;
|
|
@@ -145,36 +145,36 @@ export interface Localization {
|
|
|
145
145
|
game_demo_available_after_auth: string;
|
|
146
146
|
game_min_rate_error_pattern: string;
|
|
147
147
|
game_yourLevel: string;
|
|
148
|
-
auth_title:
|
|
149
|
-
auth_subtitle:
|
|
148
|
+
auth_title: IColoredString;
|
|
149
|
+
auth_subtitle: IColoredString;
|
|
150
150
|
auth_changeNumber: string;
|
|
151
151
|
auth_getAccess: string;
|
|
152
152
|
auth_enterAsGuest: string;
|
|
153
153
|
auth_privacyPolicyAcceptance: string;
|
|
154
|
-
auth_privacyPolicy:
|
|
154
|
+
auth_privacyPolicy: IColoredString;
|
|
155
155
|
homeHint: string;
|
|
156
156
|
}
|
|
157
|
-
export interface
|
|
157
|
+
export interface IColoredString {
|
|
158
158
|
text: string;
|
|
159
|
-
colors:
|
|
159
|
+
colors: IColoredSpan[];
|
|
160
160
|
mappingName: string;
|
|
161
161
|
}
|
|
162
|
-
interface
|
|
162
|
+
export interface IColoredSpan {
|
|
163
163
|
from: number;
|
|
164
164
|
to: number;
|
|
165
165
|
color: string;
|
|
166
166
|
}
|
|
167
|
-
export interface
|
|
167
|
+
export interface IColoredStringMapping {
|
|
168
168
|
text: string;
|
|
169
169
|
colors: string;
|
|
170
|
-
internal: [string,
|
|
170
|
+
internal: [string, IColoredSpanMapping][];
|
|
171
171
|
}
|
|
172
|
-
export interface
|
|
172
|
+
export interface IColoredSpanMapping {
|
|
173
173
|
from: string;
|
|
174
174
|
to: string;
|
|
175
175
|
color: string;
|
|
176
176
|
}
|
|
177
|
-
export interface
|
|
177
|
+
export interface IConfigMapping {
|
|
178
178
|
fullAccess: string;
|
|
179
179
|
appsflyerKey: string;
|
|
180
180
|
onesignalKey: string;
|
|
@@ -187,9 +187,9 @@ export interface ConfigMapping {
|
|
|
187
187
|
backPressesToShowHome: string;
|
|
188
188
|
homeOnBackPressEnabled: string;
|
|
189
189
|
homeButtonEnabled: string;
|
|
190
|
-
internal: [string,
|
|
190
|
+
internal: [string, ILocalizationMapping][];
|
|
191
191
|
}
|
|
192
|
-
export interface
|
|
192
|
+
export interface ILocalizationMapping {
|
|
193
193
|
game_spin: string;
|
|
194
194
|
game_balance_pattern: string;
|
|
195
195
|
game_win_pattern: string;
|
|
@@ -222,7 +222,6 @@ export interface LocalizationMapping {
|
|
|
222
222
|
auth_privacyPolicyAcceptance: string;
|
|
223
223
|
auth_privacyPolicy: string;
|
|
224
224
|
homeHint: string;
|
|
225
|
-
internal: [string,
|
|
225
|
+
internal: [string, IColoredStringMapping][];
|
|
226
226
|
}
|
|
227
|
-
export declare let
|
|
228
|
-
export {};
|
|
227
|
+
export declare let toDefault: (config: IConfig) => IASODefaultConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
let
|
|
3
|
+
exports.toDefault = void 0;
|
|
4
|
+
let toDefault = (config) => {
|
|
5
5
|
return {
|
|
6
6
|
id: config.id,
|
|
7
7
|
bundle: config.bundle,
|
|
@@ -55,4 +55,4 @@ let asoConfigToDefault_v5 = (config) => {
|
|
|
55
55
|
version: 5
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
58
|
+
exports.toDefault = toDefault;
|
|
@@ -34,10 +34,10 @@ export interface ASOConfig_v0 {
|
|
|
34
34
|
smscPassword: string;
|
|
35
35
|
autoSmsCodeCatch: boolean;
|
|
36
36
|
autoCallCodeCatch: boolean;
|
|
37
|
-
localization:
|
|
38
|
-
authorizationActionMapping:
|
|
37
|
+
localization: ILocalizationMap | ILocalization;
|
|
38
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
39
39
|
offersSectionMapping: IOfferSectionMapping;
|
|
40
|
-
configMapping:
|
|
40
|
+
configMapping: IConfigMapping;
|
|
41
41
|
configEndpoint: string;
|
|
42
42
|
offersEndpoint: string;
|
|
43
43
|
offerEndpoint: string;
|
|
@@ -69,7 +69,7 @@ export interface ASOConfig_v0 {
|
|
|
69
69
|
readyForPanel?: boolean;
|
|
70
70
|
version: number;
|
|
71
71
|
}
|
|
72
|
-
interface
|
|
72
|
+
interface IAuthorizationActionMapping {
|
|
73
73
|
hasNextAction: string;
|
|
74
74
|
nextActionIn: string;
|
|
75
75
|
changeNumberCaption: string;
|
|
@@ -82,8 +82,8 @@ interface AuthorizationActionMapping {
|
|
|
82
82
|
authorized: string;
|
|
83
83
|
canChangeNumber: string;
|
|
84
84
|
}
|
|
85
|
-
interface
|
|
86
|
-
[key: string]:
|
|
85
|
+
interface ILocalizationMap {
|
|
86
|
+
[key: string]: ILocalization;
|
|
87
87
|
}
|
|
88
88
|
interface IOfferSectionMapping {
|
|
89
89
|
id: string;
|
|
@@ -92,7 +92,7 @@ interface IOfferSectionMapping {
|
|
|
92
92
|
palette: string;
|
|
93
93
|
internal: [string, any][];
|
|
94
94
|
}
|
|
95
|
-
interface
|
|
95
|
+
interface ILocalization {
|
|
96
96
|
numberWillReceiveACallPattern: string;
|
|
97
97
|
numberReceivedACallPattern: string;
|
|
98
98
|
numberReceivedASmsPattern: string;
|
|
@@ -147,38 +147,38 @@ interface Localization {
|
|
|
147
147
|
game_min_rate_error_pattern: string;
|
|
148
148
|
auth_changeTitle: string;
|
|
149
149
|
auth_changeMessage: string;
|
|
150
|
-
auth_titleTop:
|
|
151
|
-
auth_titleBottom:
|
|
150
|
+
auth_titleTop: IColoredString;
|
|
151
|
+
auth_titleBottom: IColoredString;
|
|
152
152
|
auth_getAccess: string;
|
|
153
|
-
auth_subtitle:
|
|
153
|
+
auth_subtitle: IColoredString;
|
|
154
154
|
auth_cantBeEmpty: string;
|
|
155
155
|
auth_nameHint: string;
|
|
156
|
-
auth_changeNumber:
|
|
156
|
+
auth_changeNumber: IColoredString;
|
|
157
157
|
auth_enterAsGuest: string;
|
|
158
158
|
auth_privacyPolicyAcceptance: string;
|
|
159
|
-
auth_privacyPolicy:
|
|
159
|
+
auth_privacyPolicy: IColoredString;
|
|
160
160
|
}
|
|
161
|
-
interface
|
|
161
|
+
interface IColoredString {
|
|
162
162
|
text: string;
|
|
163
|
-
colors:
|
|
163
|
+
colors: IColoredSpan[];
|
|
164
164
|
mappingName: string;
|
|
165
165
|
}
|
|
166
|
-
interface
|
|
166
|
+
interface IColoredSpan {
|
|
167
167
|
from: number;
|
|
168
168
|
to: number;
|
|
169
169
|
color: string;
|
|
170
170
|
}
|
|
171
|
-
interface
|
|
171
|
+
interface IColoredStringMapping {
|
|
172
172
|
text: string;
|
|
173
173
|
colors: string;
|
|
174
|
-
internal: [string,
|
|
174
|
+
internal: [string, IColoredSpanMapping][];
|
|
175
175
|
}
|
|
176
|
-
interface
|
|
176
|
+
interface IColoredSpanMapping {
|
|
177
177
|
from: string;
|
|
178
178
|
to: string;
|
|
179
179
|
color: string;
|
|
180
180
|
}
|
|
181
|
-
interface
|
|
181
|
+
interface IConfigMapping {
|
|
182
182
|
id: string;
|
|
183
183
|
fullAccess: string;
|
|
184
184
|
showVideo: string;
|
|
@@ -201,9 +201,9 @@ interface ConfigMapping {
|
|
|
201
201
|
autoSmsCodeCatch: string;
|
|
202
202
|
autoCallCodeCatch: string;
|
|
203
203
|
localization: string;
|
|
204
|
-
internal: [string,
|
|
204
|
+
internal: [string, ILocalizationMapping][];
|
|
205
205
|
}
|
|
206
|
-
interface
|
|
206
|
+
interface ILocalizationMapping {
|
|
207
207
|
numberWillReceiveACallPattern: string;
|
|
208
208
|
numberReceivedACallPattern: string;
|
|
209
209
|
numberReceivedASmsPattern: string;
|
|
@@ -265,7 +265,7 @@ interface LocalizationMapping {
|
|
|
265
265
|
auth_enterAsGuest: string;
|
|
266
266
|
auth_privacyPolicyAcceptance: string;
|
|
267
267
|
auth_privacyPolicy: string;
|
|
268
|
-
internal: [string,
|
|
268
|
+
internal: [string, IColoredStringMapping][];
|
|
269
269
|
}
|
|
270
270
|
export declare let asoConfigToDefault_v0: (config: ASOConfig_v0) => DefaultConfig;
|
|
271
271
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultConfig } from "./aso-default-config";
|
|
2
|
-
interface
|
|
2
|
+
interface IAuthorizationActionMapping {
|
|
3
3
|
hasNextAction: string;
|
|
4
4
|
nextActionIn: string;
|
|
5
5
|
changeNumberCaption: string;
|
|
@@ -47,10 +47,10 @@ export interface ASOConfig_v1 {
|
|
|
47
47
|
smscPassword: string;
|
|
48
48
|
autoSmsCodeCatch: boolean;
|
|
49
49
|
autoCallCodeCatch: boolean;
|
|
50
|
-
localization?:
|
|
51
|
-
authorizationActionMapping:
|
|
50
|
+
localization?: ILocalizationMap | ILocalization;
|
|
51
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
52
52
|
offersSectionMapping: IOfferSectionMapping;
|
|
53
|
-
configMapping:
|
|
53
|
+
configMapping: IConfigMapping;
|
|
54
54
|
configEndpoint: string;
|
|
55
55
|
offersEndpoint: string;
|
|
56
56
|
offerEndpoint: string;
|
|
@@ -89,7 +89,7 @@ interface IOfferSectionMapping {
|
|
|
89
89
|
palette: string;
|
|
90
90
|
internal: [string, any][];
|
|
91
91
|
}
|
|
92
|
-
interface
|
|
92
|
+
interface ILocalization {
|
|
93
93
|
numberWillReceiveACallPattern: string;
|
|
94
94
|
numberReceivedACallPattern: string;
|
|
95
95
|
numberReceivedASmsPattern: string;
|
|
@@ -141,36 +141,36 @@ interface Localization {
|
|
|
141
141
|
game_min_rate_error_pattern: string;
|
|
142
142
|
auth_changeTitle: string;
|
|
143
143
|
auth_changeMessage: string;
|
|
144
|
-
auth_titleTop:
|
|
145
|
-
auth_titleBottom:
|
|
146
|
-
auth_subtitle:
|
|
144
|
+
auth_titleTop: IColoredString;
|
|
145
|
+
auth_titleBottom: IColoredString;
|
|
146
|
+
auth_subtitle: IColoredString;
|
|
147
147
|
auth_nameHint: string;
|
|
148
148
|
auth_changeNumber: string;
|
|
149
149
|
auth_enterAsGuest: string;
|
|
150
150
|
auth_privacyPolicyAcceptance: string;
|
|
151
|
-
auth_privacyPolicy:
|
|
151
|
+
auth_privacyPolicy: IColoredString;
|
|
152
152
|
}
|
|
153
|
-
interface
|
|
153
|
+
interface IColoredString {
|
|
154
154
|
text: string;
|
|
155
|
-
colors:
|
|
155
|
+
colors: IColoredSpan[];
|
|
156
156
|
mappingName: string;
|
|
157
157
|
}
|
|
158
|
-
interface
|
|
158
|
+
interface IColoredSpan {
|
|
159
159
|
from: number;
|
|
160
160
|
to: number;
|
|
161
161
|
color: string;
|
|
162
162
|
}
|
|
163
|
-
interface
|
|
163
|
+
interface IColoredStringMapping {
|
|
164
164
|
text: string;
|
|
165
165
|
colors: string;
|
|
166
|
-
internal: [string,
|
|
166
|
+
internal: [string, IColoredSpanMapping][];
|
|
167
167
|
}
|
|
168
|
-
interface
|
|
168
|
+
interface IColoredSpanMapping {
|
|
169
169
|
from: string;
|
|
170
170
|
to: string;
|
|
171
171
|
color: string;
|
|
172
172
|
}
|
|
173
|
-
interface
|
|
173
|
+
interface IConfigMapping {
|
|
174
174
|
id: string;
|
|
175
175
|
fullAccess: string;
|
|
176
176
|
showVideo: string;
|
|
@@ -193,12 +193,12 @@ interface ConfigMapping {
|
|
|
193
193
|
autoSmsCodeCatch: string;
|
|
194
194
|
autoCallCodeCatch: string;
|
|
195
195
|
localization: string;
|
|
196
|
-
internal: [string,
|
|
196
|
+
internal: [string, ILocalizationMapping][];
|
|
197
197
|
}
|
|
198
|
-
interface
|
|
199
|
-
[key: string]:
|
|
198
|
+
interface ILocalizationMap {
|
|
199
|
+
[key: string]: ILocalization;
|
|
200
200
|
}
|
|
201
|
-
interface
|
|
201
|
+
interface ILocalizationMapping {
|
|
202
202
|
numberWillReceiveACallPattern: string;
|
|
203
203
|
numberReceivedACallPattern: string;
|
|
204
204
|
numberReceivedASmsPattern: string;
|
|
@@ -257,7 +257,7 @@ interface LocalizationMapping {
|
|
|
257
257
|
auth_enterAsGuest: string;
|
|
258
258
|
auth_privacyPolicyAcceptance: string;
|
|
259
259
|
auth_privacyPolicy: string;
|
|
260
|
-
internal: [string,
|
|
260
|
+
internal: [string, IColoredStringMapping][];
|
|
261
261
|
}
|
|
262
262
|
export declare let asoConfigToDefault_v1: (config: ASOConfig_v1) => DefaultConfig;
|
|
263
263
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultConfig } from "./aso-default-config";
|
|
2
|
-
interface
|
|
2
|
+
interface IAuthorizationActionMapping {
|
|
3
3
|
hasNextAction: string;
|
|
4
4
|
nextActionIn: string;
|
|
5
5
|
changeNumberCaption: string;
|
|
@@ -43,10 +43,10 @@ export interface ASOConfig_v2 {
|
|
|
43
43
|
smscPassword: string;
|
|
44
44
|
autoSmsCodeCatch: boolean;
|
|
45
45
|
autoCallCodeCatch: boolean;
|
|
46
|
-
localization:
|
|
47
|
-
authorizationActionMapping:
|
|
46
|
+
localization: ILocalizationMap | ILocalization;
|
|
47
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
48
48
|
offersSectionMapping: IOfferSectionMapping;
|
|
49
|
-
configMapping:
|
|
49
|
+
configMapping: IConfigMapping;
|
|
50
50
|
configEndpoint: string;
|
|
51
51
|
offersEndpoint: string;
|
|
52
52
|
offerEndpoint: string;
|
|
@@ -72,8 +72,8 @@ export interface ASOConfig_v2 {
|
|
|
72
72
|
readyForPanel?: boolean;
|
|
73
73
|
version: number;
|
|
74
74
|
}
|
|
75
|
-
interface
|
|
76
|
-
[key: string]:
|
|
75
|
+
interface ILocalizationMap {
|
|
76
|
+
[key: string]: ILocalization;
|
|
77
77
|
}
|
|
78
78
|
interface IOfferSectionMapping {
|
|
79
79
|
id: string;
|
|
@@ -81,7 +81,7 @@ interface IOfferSectionMapping {
|
|
|
81
81
|
title: string;
|
|
82
82
|
internal: [string, any][];
|
|
83
83
|
}
|
|
84
|
-
interface
|
|
84
|
+
interface ILocalization {
|
|
85
85
|
numberWillReceiveACallPattern: string;
|
|
86
86
|
numberReceivedACallPattern: string;
|
|
87
87
|
numberReceivedASmsPattern: string;
|
|
@@ -132,36 +132,36 @@ interface Localization {
|
|
|
132
132
|
auth_changeMessage: string;
|
|
133
133
|
auth_againTitle: string;
|
|
134
134
|
auth_againMessage: string;
|
|
135
|
-
auth_title:
|
|
136
|
-
auth_subtitle:
|
|
135
|
+
auth_title: IColoredString;
|
|
136
|
+
auth_subtitle: IColoredString;
|
|
137
137
|
auth_nameHint: string;
|
|
138
138
|
auth_changeNumber: string;
|
|
139
139
|
auth_getAccess: string;
|
|
140
140
|
auth_enterAsGuest: string;
|
|
141
141
|
auth_privacyPolicyAcceptance: string;
|
|
142
|
-
auth_privacyPolicy:
|
|
142
|
+
auth_privacyPolicy: IColoredString;
|
|
143
143
|
}
|
|
144
|
-
export interface
|
|
144
|
+
export interface IColoredString {
|
|
145
145
|
text: string;
|
|
146
|
-
colors:
|
|
146
|
+
colors: IColoredSpan[];
|
|
147
147
|
mappingName: string;
|
|
148
148
|
}
|
|
149
|
-
interface
|
|
149
|
+
interface IColoredSpan {
|
|
150
150
|
from: number;
|
|
151
151
|
to: number;
|
|
152
152
|
color: string;
|
|
153
153
|
}
|
|
154
|
-
export interface
|
|
154
|
+
export interface IColoredStringMapping {
|
|
155
155
|
text: string;
|
|
156
156
|
colors: string;
|
|
157
|
-
internal: [string,
|
|
157
|
+
internal: [string, IColoredSpanMapping][];
|
|
158
158
|
}
|
|
159
|
-
export interface
|
|
159
|
+
export interface IColoredSpanMapping {
|
|
160
160
|
from: string;
|
|
161
161
|
to: string;
|
|
162
162
|
color: string;
|
|
163
163
|
}
|
|
164
|
-
export interface
|
|
164
|
+
export interface IConfigMapping {
|
|
165
165
|
id: string;
|
|
166
166
|
fullAccess: string;
|
|
167
167
|
showVideo: string;
|
|
@@ -180,9 +180,9 @@ export interface ConfigMapping {
|
|
|
180
180
|
autoSmsCodeCatch: string;
|
|
181
181
|
autoCallCodeCatch: string;
|
|
182
182
|
localization: string;
|
|
183
|
-
internal: [string,
|
|
183
|
+
internal: [string, ILocalizationMapping][];
|
|
184
184
|
}
|
|
185
|
-
export interface
|
|
185
|
+
export interface ILocalizationMapping {
|
|
186
186
|
game_spin: string;
|
|
187
187
|
game_balance_pattern: string;
|
|
188
188
|
game_win_pattern: string;
|
|
@@ -224,7 +224,7 @@ export interface LocalizationMapping {
|
|
|
224
224
|
auth_enterAsGuest: string;
|
|
225
225
|
auth_privacyPolicyAcceptance: string;
|
|
226
226
|
auth_privacyPolicy: string;
|
|
227
|
-
internal: [string,
|
|
227
|
+
internal: [string, IColoredStringMapping][];
|
|
228
228
|
}
|
|
229
229
|
export declare let asoConfigToDefault_v2: (config: ASOConfig_v2) => DefaultConfig;
|
|
230
230
|
export {};
|