@bprotsyk/aso-core 1.1.16 → 1.1.18
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 +4 -4
- 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 +6 -4
- package/lib/index.js +7 -9
- package/package.json +1 -1
- package/src/aso/config/aso-config-v0.ts +6 -6
- 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 +8 -5
|
@@ -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;
|
|
@@ -11,8 +11,8 @@ interface AuthorizationActionMapping {
|
|
|
11
11
|
when: string;
|
|
12
12
|
authorized: string;
|
|
13
13
|
}
|
|
14
|
-
interface
|
|
15
|
-
[key: string]:
|
|
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?:
|
|
44
|
-
localizationMapping:
|
|
45
|
-
authorizationActionMapping:
|
|
43
|
+
localization?: ILocalizationMap | ILocalization;
|
|
44
|
+
localizationMapping: ILocalizationMapping;
|
|
45
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
46
46
|
offerSectionMapping: IOfferSectionMapping;
|
|
47
47
|
offerResultMapping: IOfferResultMapping;
|
|
48
|
-
configMapping:
|
|
49
|
-
coloredStringMapping:
|
|
50
|
-
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
|
|
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:
|
|
137
|
-
auth_subtitle:
|
|
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:
|
|
142
|
+
auth_privacyPolicy: IColoredString;
|
|
143
143
|
}
|
|
144
|
-
interface
|
|
144
|
+
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
|
-
interface
|
|
154
|
+
interface IColoredStringMapping {
|
|
155
155
|
text: string;
|
|
156
156
|
colors: string;
|
|
157
|
-
internal: [string,
|
|
157
|
+
internal: [string, IColoredSpanMapping][];
|
|
158
158
|
}
|
|
159
|
-
interface
|
|
159
|
+
interface IColoredSpanMapping {
|
|
160
160
|
from: string;
|
|
161
161
|
to: string;
|
|
162
162
|
color: string;
|
|
163
163
|
}
|
|
164
|
-
interface
|
|
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,
|
|
173
|
+
internal: [string, ILocalizationMapping][];
|
|
174
174
|
}
|
|
175
|
-
interface
|
|
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,
|
|
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 {};
|
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
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
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.
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
42
|
-
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
|
|
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
|
|
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):
|
|
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 {
|
|
1
|
+
import { IASODefaultConfig } from "./aso-default-config"
|
|
2
2
|
|
|
3
|
-
export interface
|
|
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?:
|
|
43
|
-
authorizationActionMapping:
|
|
42
|
+
localization?: ILocalizationMap | ILocalization,
|
|
43
|
+
authorizationActionMapping: IAuthorizationActionMapping,
|
|
44
44
|
offersSectionMapping: IOfferSectionMapping
|
|
45
|
-
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
|
|
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
|
|
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:
|
|
242
|
-
auth_titleBottom:
|
|
243
|
-
auth_subtitle:
|
|
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:
|
|
250
|
+
auth_privacyPolicy: IColoredString
|
|
249
251
|
}
|
|
250
252
|
|
|
251
|
-
export interface
|
|
253
|
+
export interface IColoredString {
|
|
252
254
|
text: string,
|
|
253
|
-
colors:
|
|
255
|
+
colors: IColoredSpan[]
|
|
254
256
|
mappingName: string
|
|
255
257
|
}
|
|
256
258
|
|
|
257
|
-
interface
|
|
259
|
+
export interface IColoredSpan {
|
|
258
260
|
from: number,
|
|
259
261
|
to: number,
|
|
260
262
|
color: string
|
|
261
263
|
}
|
|
262
264
|
|
|
263
|
-
export interface
|
|
265
|
+
export interface IColoredStringMapping {
|
|
264
266
|
text: string,
|
|
265
267
|
colors: string,
|
|
266
|
-
internal: [string,
|
|
268
|
+
internal: [string, IColoredSpanMapping][]
|
|
267
269
|
}
|
|
268
270
|
|
|
269
|
-
export interface
|
|
271
|
+
export interface IColoredSpanMapping {
|
|
270
272
|
from: string,
|
|
271
273
|
to: string,
|
|
272
274
|
color: string
|
|
273
275
|
}
|
|
274
|
-
|
|
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,
|
|
300
|
+
internal: [string, ILocalizationMapping][],
|
|
298
301
|
}
|
|
299
302
|
|
|
300
|
-
interface
|
|
301
|
-
[key: string]:
|
|
303
|
+
export interface ILocalizationMap {
|
|
304
|
+
[key: string]: ILocalization
|
|
302
305
|
}
|
|
303
306
|
|
|
304
|
-
export interface
|
|
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,
|
|
374
|
+
internal: [string, IColoredStringMapping][]
|
|
372
375
|
}
|
|
373
376
|
|
|
374
|
-
export let
|
|
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 {
|
|
1
|
+
import { IASODefaultConfig } from "./aso-default-config"
|
|
2
2
|
|
|
3
|
-
export interface
|
|
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
|
|
41
|
-
authorizationActionMapping:
|
|
40
|
+
localization?: ILocalizationMap | ILocalization,
|
|
41
|
+
authorizationActionMapping: IAuthorizationActionMapping,
|
|
42
42
|
offersSectionMapping: IOfferSectionMapping
|
|
43
|
-
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
|
|
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
|
|
91
|
-
[key: string]:
|
|
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
|
|
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:
|
|
230
|
-
auth_subtitle:
|
|
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:
|
|
237
|
+
auth_privacyPolicy: IColoredString
|
|
237
238
|
}
|
|
238
239
|
|
|
239
|
-
export interface
|
|
240
|
+
export interface IColoredString {
|
|
240
241
|
text: string,
|
|
241
|
-
colors:
|
|
242
|
+
colors: IColoredSpan[]
|
|
242
243
|
mappingName: string
|
|
243
244
|
}
|
|
244
245
|
|
|
245
|
-
interface
|
|
246
|
+
interface IColoredSpan {
|
|
246
247
|
from: number,
|
|
247
248
|
to: number,
|
|
248
249
|
color: string
|
|
249
250
|
}
|
|
250
251
|
|
|
251
|
-
export interface
|
|
252
|
+
export interface IColoredStringMapping {
|
|
252
253
|
text: string,
|
|
253
254
|
colors: string,
|
|
254
|
-
internal: [string,
|
|
255
|
+
internal: [string, IColoredSpanMapping][]
|
|
255
256
|
}
|
|
256
257
|
|
|
257
|
-
export interface
|
|
258
|
+
export interface IColoredSpanMapping {
|
|
258
259
|
from: string,
|
|
259
260
|
to: string,
|
|
260
261
|
color: string
|
|
261
262
|
}
|
|
262
|
-
|
|
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,
|
|
283
|
+
internal: [string, ILocalizationMapping][],
|
|
282
284
|
}
|
|
283
285
|
|
|
284
|
-
export interface
|
|
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,
|
|
335
|
+
internal: [string, IColoredStringMapping][]
|
|
334
336
|
}
|
|
335
337
|
|
|
336
|
-
export let
|
|
338
|
+
export let toDefault = (config: IConfig): IASODefaultConfig => {
|
|
337
339
|
return {
|
|
338
340
|
id: config.id,
|
|
339
341
|
bundle: config.bundle,
|