@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,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ASOConfig_v0 {
|
|
1
|
+
export interface IConfig {
|
|
3
2
|
id: number;
|
|
4
3
|
name: string;
|
|
5
4
|
email: string;
|
|
@@ -36,10 +35,10 @@ export interface ASOConfig_v0 {
|
|
|
36
35
|
smscPassword: string;
|
|
37
36
|
autoSmsCodeCatch: boolean;
|
|
38
37
|
autoCallCodeCatch: boolean;
|
|
39
|
-
localization
|
|
40
|
-
authorizationActionMapping:
|
|
38
|
+
localization?: ILocalizationMap | ILocalization;
|
|
39
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
41
40
|
offersSectionMapping: IOfferSectionMapping;
|
|
42
|
-
configMapping:
|
|
41
|
+
configMapping: IConfigMapping;
|
|
43
42
|
configEndpoint: string;
|
|
44
43
|
offersEndpoint: string;
|
|
45
44
|
offerEndpoint: string;
|
|
@@ -72,9 +71,9 @@ export interface ASOConfig_v0 {
|
|
|
72
71
|
oldHosts?: string[];
|
|
73
72
|
version: number;
|
|
74
73
|
}
|
|
75
|
-
export interface
|
|
76
|
-
hasNextAction: string;
|
|
74
|
+
export interface IAuthorizationActionMapping {
|
|
77
75
|
nextActionIn: string;
|
|
76
|
+
hasNextAction: string;
|
|
78
77
|
changeNumberCaption: string;
|
|
79
78
|
nextActionCaption: string;
|
|
80
79
|
nextActionPatternCaption: string;
|
|
@@ -85,8 +84,8 @@ export interface AuthorizationActionMapping {
|
|
|
85
84
|
authorized: string;
|
|
86
85
|
canChangeNumber: string;
|
|
87
86
|
}
|
|
88
|
-
interface
|
|
89
|
-
[key: string]:
|
|
87
|
+
export interface ILocalizationMap {
|
|
88
|
+
[key: string]: ILocalization;
|
|
90
89
|
}
|
|
91
90
|
export interface ISectionPalette {
|
|
92
91
|
titleBorder: string;
|
|
@@ -102,14 +101,14 @@ export interface ISectionPalette {
|
|
|
102
101
|
emojiCaptionBackground: string;
|
|
103
102
|
emojiCaption: string;
|
|
104
103
|
}
|
|
105
|
-
interface IOfferResult {
|
|
104
|
+
export interface IOfferResult {
|
|
106
105
|
id: string;
|
|
107
106
|
backgroundImage: string;
|
|
108
107
|
foregroundImage: string;
|
|
109
108
|
emoji: IOfferResultEmoji | null;
|
|
110
109
|
buttonText: string;
|
|
111
110
|
}
|
|
112
|
-
interface IOfferResultEmoji {
|
|
111
|
+
export interface IOfferResultEmoji {
|
|
113
112
|
emoji: string | null;
|
|
114
113
|
caption: string | null;
|
|
115
114
|
}
|
|
@@ -119,12 +118,6 @@ export interface IOffersSection {
|
|
|
119
118
|
title: string;
|
|
120
119
|
palette: ISectionPalette;
|
|
121
120
|
}
|
|
122
|
-
export interface IOffersSection {
|
|
123
|
-
id: number;
|
|
124
|
-
offers: IOfferResult[];
|
|
125
|
-
title: string;
|
|
126
|
-
palette: ISectionPalette;
|
|
127
|
-
}
|
|
128
121
|
export interface ISectionPaletteMapping {
|
|
129
122
|
titleBorder: string;
|
|
130
123
|
titleText: string;
|
|
@@ -161,7 +154,7 @@ export interface IOfferSectionMapping {
|
|
|
161
154
|
title: string;
|
|
162
155
|
internal: [string, any][];
|
|
163
156
|
}
|
|
164
|
-
export interface
|
|
157
|
+
export interface ILocalization {
|
|
165
158
|
numberWillReceiveACallPattern: string;
|
|
166
159
|
numberReceivedACallPattern: string;
|
|
167
160
|
numberReceivedASmsPattern: string;
|
|
@@ -216,38 +209,38 @@ export interface Localization {
|
|
|
216
209
|
game_min_rate_error_pattern: string;
|
|
217
210
|
auth_changeTitle: string;
|
|
218
211
|
auth_changeMessage: string;
|
|
219
|
-
auth_titleTop:
|
|
220
|
-
auth_titleBottom:
|
|
212
|
+
auth_titleTop: IColoredString;
|
|
213
|
+
auth_titleBottom: IColoredString;
|
|
221
214
|
auth_getAccess: string;
|
|
222
|
-
auth_subtitle:
|
|
215
|
+
auth_subtitle: IColoredString;
|
|
223
216
|
auth_cantBeEmpty: string;
|
|
224
217
|
auth_nameHint: string;
|
|
225
|
-
auth_changeNumber:
|
|
218
|
+
auth_changeNumber: IColoredString;
|
|
226
219
|
auth_enterAsGuest: string;
|
|
227
220
|
auth_privacyPolicyAcceptance: string;
|
|
228
|
-
auth_privacyPolicy:
|
|
221
|
+
auth_privacyPolicy: IColoredString;
|
|
229
222
|
}
|
|
230
|
-
export interface
|
|
223
|
+
export interface IColoredString {
|
|
231
224
|
text: string;
|
|
232
|
-
colors:
|
|
225
|
+
colors: IColoredSpan[];
|
|
233
226
|
mappingName: string;
|
|
234
227
|
}
|
|
235
|
-
interface
|
|
228
|
+
export interface IColoredSpan {
|
|
236
229
|
from: number;
|
|
237
230
|
to: number;
|
|
238
231
|
color: string;
|
|
239
232
|
}
|
|
240
|
-
export interface
|
|
233
|
+
export interface IColoredStringMapping {
|
|
241
234
|
text: string;
|
|
242
235
|
colors: string;
|
|
243
|
-
internal: [string,
|
|
236
|
+
internal: [string, IColoredSpanMapping][];
|
|
244
237
|
}
|
|
245
|
-
export interface
|
|
238
|
+
export interface IColoredSpanMapping {
|
|
246
239
|
from: string;
|
|
247
240
|
to: string;
|
|
248
241
|
color: string;
|
|
249
242
|
}
|
|
250
|
-
export interface
|
|
243
|
+
export interface IConfigMapping {
|
|
251
244
|
id: string;
|
|
252
245
|
fullAccess: string;
|
|
253
246
|
showVideo: string;
|
|
@@ -270,9 +263,9 @@ export interface ConfigMapping {
|
|
|
270
263
|
autoSmsCodeCatch: string;
|
|
271
264
|
autoCallCodeCatch: string;
|
|
272
265
|
localization: string;
|
|
273
|
-
internal: [string,
|
|
266
|
+
internal: [string, ILocalizationMapping][];
|
|
274
267
|
}
|
|
275
|
-
export interface
|
|
268
|
+
export interface ILocalizationMapping {
|
|
276
269
|
numberWillReceiveACallPattern: string;
|
|
277
270
|
numberReceivedACallPattern: string;
|
|
278
271
|
numberReceivedASmsPattern: string;
|
|
@@ -334,7 +327,5 @@ export interface LocalizationMapping {
|
|
|
334
327
|
auth_enterAsGuest: string;
|
|
335
328
|
auth_privacyPolicyAcceptance: string;
|
|
336
329
|
auth_privacyPolicy: string;
|
|
337
|
-
internal: [string,
|
|
330
|
+
internal: [string, IColoredStringMapping][];
|
|
338
331
|
}
|
|
339
|
-
export declare let asoConfigToDefault_v0: (config: ASOConfig_v0) => ASODefaultConfig;
|
|
340
|
-
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
let asoConfigToDefault_v0 = (config) => {
|
|
3
|
+
let toDefault = (config) => {
|
|
5
4
|
return {
|
|
6
5
|
id: config.id,
|
|
7
6
|
bundle: config.bundle,
|
|
@@ -56,4 +55,3 @@ let asoConfigToDefault_v0 = (config) => {
|
|
|
56
55
|
version: 0
|
|
57
56
|
};
|
|
58
57
|
};
|
|
59
|
-
exports.asoConfigToDefault_v0 = asoConfigToDefault_v0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { IASODefaultConfig } from "./aso-default-config";
|
|
2
|
+
export interface IConfig {
|
|
3
3
|
id: number;
|
|
4
4
|
name: string;
|
|
5
5
|
email: string;
|
|
@@ -35,10 +35,10 @@ export interface ASOConfig_v1 {
|
|
|
35
35
|
smscPassword: string;
|
|
36
36
|
autoSmsCodeCatch: boolean;
|
|
37
37
|
autoCallCodeCatch: boolean;
|
|
38
|
-
localization?:
|
|
39
|
-
authorizationActionMapping:
|
|
38
|
+
localization?: ILocalizationMap | ILocalization;
|
|
39
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
40
40
|
offersSectionMapping: IOfferSectionMapping;
|
|
41
|
-
configMapping:
|
|
41
|
+
configMapping: IConfigMapping;
|
|
42
42
|
configEndpoint: string;
|
|
43
43
|
offersEndpoint: string;
|
|
44
44
|
offerEndpoint: string;
|
|
@@ -85,7 +85,7 @@ export interface ISectionPalette {
|
|
|
85
85
|
emojiCaptionBackground: string;
|
|
86
86
|
emojiCaption: string;
|
|
87
87
|
}
|
|
88
|
-
export interface
|
|
88
|
+
export interface IAuthorizationActionMapping {
|
|
89
89
|
hasNextAction: string;
|
|
90
90
|
nextActionIn: string;
|
|
91
91
|
changeNumberCaption: string;
|
|
@@ -98,14 +98,14 @@ export interface AuthorizationActionMapping {
|
|
|
98
98
|
authorized: string;
|
|
99
99
|
canChangeNumber: string;
|
|
100
100
|
}
|
|
101
|
-
interface IOfferResult {
|
|
101
|
+
export interface IOfferResult {
|
|
102
102
|
id: string;
|
|
103
103
|
backgroundImage: string;
|
|
104
104
|
foregroundImage: string;
|
|
105
105
|
emoji: IOfferResultEmoji | null;
|
|
106
106
|
buttonText: string;
|
|
107
107
|
}
|
|
108
|
-
interface IOfferResultEmoji {
|
|
108
|
+
export interface IOfferResultEmoji {
|
|
109
109
|
emoji: string | null;
|
|
110
110
|
caption: string | null;
|
|
111
111
|
}
|
|
@@ -157,7 +157,7 @@ export interface IOfferSectionMapping {
|
|
|
157
157
|
title: string;
|
|
158
158
|
internal: [string, any][];
|
|
159
159
|
}
|
|
160
|
-
export interface
|
|
160
|
+
export interface ILocalization {
|
|
161
161
|
numberWillReceiveACallPattern: string;
|
|
162
162
|
numberReceivedACallPattern: string;
|
|
163
163
|
numberReceivedASmsPattern: string;
|
|
@@ -209,36 +209,36 @@ export interface Localization {
|
|
|
209
209
|
game_min_rate_error_pattern: string;
|
|
210
210
|
auth_changeTitle: string;
|
|
211
211
|
auth_changeMessage: string;
|
|
212
|
-
auth_titleTop:
|
|
213
|
-
auth_titleBottom:
|
|
214
|
-
auth_subtitle:
|
|
212
|
+
auth_titleTop: IColoredString;
|
|
213
|
+
auth_titleBottom: IColoredString;
|
|
214
|
+
auth_subtitle: IColoredString;
|
|
215
215
|
auth_nameHint: string;
|
|
216
216
|
auth_changeNumber: string;
|
|
217
217
|
auth_enterAsGuest: string;
|
|
218
218
|
auth_privacyPolicyAcceptance: string;
|
|
219
|
-
auth_privacyPolicy:
|
|
219
|
+
auth_privacyPolicy: IColoredString;
|
|
220
220
|
}
|
|
221
|
-
export interface
|
|
221
|
+
export interface IColoredString {
|
|
222
222
|
text: string;
|
|
223
|
-
colors:
|
|
223
|
+
colors: IColoredSpan[];
|
|
224
224
|
mappingName: string;
|
|
225
225
|
}
|
|
226
|
-
interface
|
|
226
|
+
export interface IColoredSpan {
|
|
227
227
|
from: number;
|
|
228
228
|
to: number;
|
|
229
229
|
color: string;
|
|
230
230
|
}
|
|
231
|
-
export interface
|
|
231
|
+
export interface IColoredStringMapping {
|
|
232
232
|
text: string;
|
|
233
233
|
colors: string;
|
|
234
|
-
internal: [string,
|
|
234
|
+
internal: [string, IColoredSpanMapping][];
|
|
235
235
|
}
|
|
236
|
-
export interface
|
|
236
|
+
export interface IColoredSpanMapping {
|
|
237
237
|
from: string;
|
|
238
238
|
to: string;
|
|
239
239
|
color: string;
|
|
240
240
|
}
|
|
241
|
-
export interface
|
|
241
|
+
export interface IConfigMapping {
|
|
242
242
|
id: string;
|
|
243
243
|
fullAccess: string;
|
|
244
244
|
showVideo: string;
|
|
@@ -261,12 +261,12 @@ export interface ConfigMapping {
|
|
|
261
261
|
autoSmsCodeCatch: string;
|
|
262
262
|
autoCallCodeCatch: string;
|
|
263
263
|
localization: string;
|
|
264
|
-
internal: [string,
|
|
264
|
+
internal: [string, ILocalizationMapping][];
|
|
265
265
|
}
|
|
266
|
-
interface
|
|
267
|
-
[key: string]:
|
|
266
|
+
export interface ILocalizationMap {
|
|
267
|
+
[key: string]: ILocalization;
|
|
268
268
|
}
|
|
269
|
-
export interface
|
|
269
|
+
export interface ILocalizationMapping {
|
|
270
270
|
numberWillReceiveACallPattern: string;
|
|
271
271
|
numberReceivedACallPattern: string;
|
|
272
272
|
numberReceivedASmsPattern: string;
|
|
@@ -325,7 +325,6 @@ export interface LocalizationMapping {
|
|
|
325
325
|
auth_enterAsGuest: string;
|
|
326
326
|
auth_privacyPolicyAcceptance: string;
|
|
327
327
|
auth_privacyPolicy: string;
|
|
328
|
-
internal: [string,
|
|
328
|
+
internal: [string, IColoredStringMapping][];
|
|
329
329
|
}
|
|
330
|
-
export declare let
|
|
331
|
-
export {};
|
|
330
|
+
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_v1 = (config) => {
|
|
|
55
55
|
version: 1
|
|
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
|
id: number;
|
|
4
4
|
name: string;
|
|
5
5
|
email: string;
|
|
@@ -33,10 +33,10 @@ export interface ASOConfig_v2 {
|
|
|
33
33
|
smscPassword: string;
|
|
34
34
|
autoSmsCodeCatch: boolean;
|
|
35
35
|
autoCallCodeCatch: boolean;
|
|
36
|
-
localization:
|
|
37
|
-
authorizationActionMapping:
|
|
36
|
+
localization: ILocalizationMap | ILocalization;
|
|
37
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
38
38
|
offersSectionMapping: IOfferSectionMapping;
|
|
39
|
-
configMapping:
|
|
39
|
+
configMapping: IConfigMapping;
|
|
40
40
|
configEndpoint: string;
|
|
41
41
|
offersEndpoint: string;
|
|
42
42
|
offerEndpoint: string;
|
|
@@ -63,7 +63,7 @@ export interface ASOConfig_v2 {
|
|
|
63
63
|
oldHosts?: string[];
|
|
64
64
|
version: number;
|
|
65
65
|
}
|
|
66
|
-
export interface
|
|
66
|
+
export interface IAuthorizationActionMapping {
|
|
67
67
|
hasNextAction: string;
|
|
68
68
|
nextActionIn: string;
|
|
69
69
|
changeNumberCaption: string;
|
|
@@ -75,8 +75,8 @@ export interface AuthorizationActionMapping {
|
|
|
75
75
|
when: string;
|
|
76
76
|
authorized: string;
|
|
77
77
|
}
|
|
78
|
-
interface
|
|
79
|
-
[key: string]:
|
|
78
|
+
export interface ILocalizationMap {
|
|
79
|
+
[key: string]: ILocalization;
|
|
80
80
|
}
|
|
81
81
|
export interface ISectionPalette {
|
|
82
82
|
titleBorder: string;
|
|
@@ -92,7 +92,7 @@ export interface ISectionPalette {
|
|
|
92
92
|
emojiCaptionBackground: string;
|
|
93
93
|
emojiCaption: string;
|
|
94
94
|
}
|
|
95
|
-
interface IOfferResult {
|
|
95
|
+
export interface IOfferResult {
|
|
96
96
|
id: string;
|
|
97
97
|
backgroundImage: string;
|
|
98
98
|
foregroundImage: string;
|
|
@@ -148,7 +148,7 @@ export interface IOfferSectionMapping {
|
|
|
148
148
|
title: string;
|
|
149
149
|
internal: [string, any][];
|
|
150
150
|
}
|
|
151
|
-
export interface
|
|
151
|
+
export interface ILocalization {
|
|
152
152
|
numberWillReceiveACallPattern: string;
|
|
153
153
|
numberReceivedACallPattern: string;
|
|
154
154
|
numberReceivedASmsPattern: string;
|
|
@@ -199,36 +199,36 @@ export interface Localization {
|
|
|
199
199
|
auth_changeMessage: string;
|
|
200
200
|
auth_againTitle: string;
|
|
201
201
|
auth_againMessage: string;
|
|
202
|
-
auth_title:
|
|
203
|
-
auth_subtitle:
|
|
202
|
+
auth_title: IColoredString;
|
|
203
|
+
auth_subtitle: IColoredString;
|
|
204
204
|
auth_nameHint: string;
|
|
205
205
|
auth_changeNumber: string;
|
|
206
206
|
auth_getAccess: string;
|
|
207
207
|
auth_enterAsGuest: string;
|
|
208
208
|
auth_privacyPolicyAcceptance: string;
|
|
209
|
-
auth_privacyPolicy:
|
|
209
|
+
auth_privacyPolicy: IColoredString;
|
|
210
210
|
}
|
|
211
|
-
export interface
|
|
211
|
+
export interface IColoredString {
|
|
212
212
|
text: string;
|
|
213
|
-
colors:
|
|
213
|
+
colors: IColoredSpan[];
|
|
214
214
|
mappingName: string;
|
|
215
215
|
}
|
|
216
|
-
interface
|
|
216
|
+
interface IColoredSpan {
|
|
217
217
|
from: number;
|
|
218
218
|
to: number;
|
|
219
219
|
color: string;
|
|
220
220
|
}
|
|
221
|
-
export interface
|
|
221
|
+
export interface IColoredStringMapping {
|
|
222
222
|
text: string;
|
|
223
223
|
colors: string;
|
|
224
|
-
internal: [string,
|
|
224
|
+
internal: [string, IColoredSpanMapping][];
|
|
225
225
|
}
|
|
226
|
-
export interface
|
|
226
|
+
export interface IColoredSpanMapping {
|
|
227
227
|
from: string;
|
|
228
228
|
to: string;
|
|
229
229
|
color: string;
|
|
230
230
|
}
|
|
231
|
-
export interface
|
|
231
|
+
export interface IConfigMapping {
|
|
232
232
|
id: string;
|
|
233
233
|
fullAccess: string;
|
|
234
234
|
showVideo: string;
|
|
@@ -247,9 +247,9 @@ export interface ConfigMapping {
|
|
|
247
247
|
autoSmsCodeCatch: string;
|
|
248
248
|
autoCallCodeCatch: string;
|
|
249
249
|
localization: string;
|
|
250
|
-
internal: [string,
|
|
250
|
+
internal: [string, ILocalizationMapping][];
|
|
251
251
|
}
|
|
252
|
-
export interface
|
|
252
|
+
export interface ILocalizationMapping {
|
|
253
253
|
game_spin: string;
|
|
254
254
|
game_balance_pattern: string;
|
|
255
255
|
game_win_pattern: string;
|
|
@@ -291,7 +291,7 @@ export interface LocalizationMapping {
|
|
|
291
291
|
auth_enterAsGuest: string;
|
|
292
292
|
auth_privacyPolicyAcceptance: string;
|
|
293
293
|
auth_privacyPolicy: string;
|
|
294
|
-
internal: [string,
|
|
294
|
+
internal: [string, IColoredStringMapping][];
|
|
295
295
|
}
|
|
296
|
-
export declare let
|
|
296
|
+
export declare let toDefault: (config: IConfig) => IASODefaultConfig;
|
|
297
297
|
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,
|
|
@@ -54,4 +54,4 @@ let asoConfigToDefault_v2 = (config) => {
|
|
|
54
54
|
version: 2
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
57
|
+
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
|
id: number;
|
|
4
4
|
name: string;
|
|
5
5
|
email: string;
|
|
@@ -33,10 +33,10 @@ export interface ASOConfig_v3 {
|
|
|
33
33
|
smscPassword: string;
|
|
34
34
|
autoSmsCodeCatch: boolean;
|
|
35
35
|
autoCallCodeCatch: boolean;
|
|
36
|
-
localization?:
|
|
37
|
-
authorizationActionMapping:
|
|
36
|
+
localization?: ILocalizationMap | ILocalization;
|
|
37
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
38
38
|
offersSectionMapping: IOfferSectionMapping;
|
|
39
|
-
configMapping:
|
|
39
|
+
configMapping: IConfigMapping;
|
|
40
40
|
configEndpoint: string;
|
|
41
41
|
offersEndpoint: string;
|
|
42
42
|
offerEndpoint: string;
|
|
@@ -66,7 +66,7 @@ export interface ASOConfig_v3 {
|
|
|
66
66
|
oldHosts?: string[];
|
|
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 ISectionPalette {
|
|
85
85
|
titleBorder: string;
|
|
@@ -151,7 +151,7 @@ export interface IOfferSectionMapping {
|
|
|
151
151
|
title: string;
|
|
152
152
|
internal: [string, any][];
|
|
153
153
|
}
|
|
154
|
-
export interface
|
|
154
|
+
export interface ILocalization {
|
|
155
155
|
numberWillReceiveACallPattern: string;
|
|
156
156
|
numberReceivedACallPattern: string;
|
|
157
157
|
numberReceivedASmsPattern: string;
|
|
@@ -198,36 +198,36 @@ export interface Localization {
|
|
|
198
198
|
game_demo_available_after_auth: string;
|
|
199
199
|
game_min_rate_error_pattern: string;
|
|
200
200
|
game_yourLevel: string;
|
|
201
|
-
auth_title:
|
|
202
|
-
auth_subtitle:
|
|
201
|
+
auth_title: IColoredString;
|
|
202
|
+
auth_subtitle: IColoredString;
|
|
203
203
|
auth_nameHint: string;
|
|
204
204
|
auth_changeNumber: string;
|
|
205
205
|
auth_getAccess: string;
|
|
206
206
|
auth_enterAsGuest: string;
|
|
207
207
|
auth_privacyPolicyAcceptance: string;
|
|
208
|
-
auth_privacyPolicy:
|
|
208
|
+
auth_privacyPolicy: IColoredString;
|
|
209
209
|
}
|
|
210
|
-
export interface
|
|
210
|
+
export interface IColoredString {
|
|
211
211
|
text: string;
|
|
212
|
-
colors:
|
|
212
|
+
colors: IColoredSpan[];
|
|
213
213
|
mappingName: string;
|
|
214
214
|
}
|
|
215
|
-
interface
|
|
215
|
+
interface IColoredSpan {
|
|
216
216
|
from: number;
|
|
217
217
|
to: number;
|
|
218
218
|
color: string;
|
|
219
219
|
}
|
|
220
|
-
export interface
|
|
220
|
+
export interface IColoredStringMapping {
|
|
221
221
|
text: string;
|
|
222
222
|
colors: string;
|
|
223
|
-
internal: [string,
|
|
223
|
+
internal: [string, IColoredSpanMapping][];
|
|
224
224
|
}
|
|
225
|
-
export interface
|
|
225
|
+
export interface IColoredSpanMapping {
|
|
226
226
|
from: string;
|
|
227
227
|
to: string;
|
|
228
228
|
color: string;
|
|
229
229
|
}
|
|
230
|
-
export interface
|
|
230
|
+
export interface IConfigMapping {
|
|
231
231
|
id: string;
|
|
232
232
|
fullAccess: string;
|
|
233
233
|
showVideo: string;
|
|
@@ -247,9 +247,9 @@ export interface ConfigMapping {
|
|
|
247
247
|
autoSmsCodeCatch: string;
|
|
248
248
|
autoCallCodeCatch: string;
|
|
249
249
|
localization: string;
|
|
250
|
-
internal: [string,
|
|
250
|
+
internal: [string, ILocalizationMapping][];
|
|
251
251
|
}
|
|
252
|
-
export interface
|
|
252
|
+
export interface ILocalizationMapping {
|
|
253
253
|
game_spin: string;
|
|
254
254
|
game_balance_pattern: string;
|
|
255
255
|
game_win_pattern: string;
|
|
@@ -288,7 +288,7 @@ export interface LocalizationMapping {
|
|
|
288
288
|
auth_enterAsGuest: string;
|
|
289
289
|
auth_privacyPolicyAcceptance: string;
|
|
290
290
|
auth_privacyPolicy: string;
|
|
291
|
-
internal: [string,
|
|
291
|
+
internal: [string, IColoredStringMapping][];
|
|
292
292
|
}
|
|
293
|
-
export declare let
|
|
293
|
+
export declare let toDefault: (config: IConfig) => IASODefaultConfig;
|
|
294
294
|
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_v3 = (config) => {
|
|
|
55
55
|
version: 3
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
58
|
+
exports.toDefault = toDefault;
|