@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,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,
|
|
@@ -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,
|
|
@@ -35,10 +35,10 @@ export interface ASOConfig_v3 {
|
|
|
35
35
|
autoSmsCodeCatch: boolean,
|
|
36
36
|
autoCallCodeCatch: boolean,
|
|
37
37
|
|
|
38
|
-
localization?:
|
|
39
|
-
authorizationActionMapping:
|
|
38
|
+
localization?: ILocalizationMap | ILocalization,
|
|
39
|
+
authorizationActionMapping: IAuthorizationActionMapping,
|
|
40
40
|
offersSectionMapping: IOfferSectionMapping
|
|
41
|
-
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
|
|
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
|
|
93
|
-
[key: string]:
|
|
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
|
|
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:
|
|
227
|
-
auth_subtitle:
|
|
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:
|
|
235
|
+
auth_privacyPolicy: IColoredString
|
|
234
236
|
}
|
|
235
237
|
|
|
236
|
-
export interface
|
|
238
|
+
export interface IColoredString {
|
|
237
239
|
text: string,
|
|
238
|
-
colors:
|
|
240
|
+
colors: IColoredSpan[]
|
|
239
241
|
mappingName: string
|
|
240
242
|
}
|
|
241
243
|
|
|
242
|
-
interface
|
|
244
|
+
interface IColoredSpan {
|
|
243
245
|
from: number,
|
|
244
246
|
to: number,
|
|
245
247
|
color: string
|
|
246
248
|
}
|
|
247
249
|
|
|
248
|
-
export interface
|
|
250
|
+
export interface IColoredStringMapping {
|
|
249
251
|
text: string,
|
|
250
252
|
colors: string,
|
|
251
|
-
internal: [string,
|
|
253
|
+
internal: [string, IColoredSpanMapping][]
|
|
252
254
|
}
|
|
253
255
|
|
|
254
|
-
export interface
|
|
256
|
+
export interface IColoredSpanMapping {
|
|
255
257
|
from: string,
|
|
256
258
|
to: string,
|
|
257
259
|
color: string
|
|
258
260
|
}
|
|
259
261
|
|
|
260
|
-
export interface
|
|
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,
|
|
282
|
+
internal: [string, ILocalizationMapping][],
|
|
281
283
|
}
|
|
282
284
|
|
|
283
|
-
export interface
|
|
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,
|
|
331
|
+
internal: [string, IColoredStringMapping][]
|
|
330
332
|
}
|
|
331
333
|
|
|
332
|
-
export let
|
|
334
|
+
export let toDefault = (config: IConfig): IASODefaultConfig => {
|
|
333
335
|
return {
|
|
334
336
|
id: config.id,
|
|
335
337
|
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
|
name: string,
|
|
5
5
|
email: string,
|
|
6
6
|
id: number,
|
|
@@ -28,14 +28,14 @@ export interface ASOConfig_v4 {
|
|
|
28
28
|
smscLogin: string,
|
|
29
29
|
smscPassword: string,
|
|
30
30
|
|
|
31
|
-
localization?:
|
|
32
|
-
localizationMapping:
|
|
33
|
-
authorizationActionMapping:
|
|
31
|
+
localization?: ILocalizationMap | ILocalization,
|
|
32
|
+
localizationMapping: ILocalizationMapping,
|
|
33
|
+
authorizationActionMapping: IAuthorizationActionMapping,
|
|
34
34
|
offerSectionMapping: IOfferSectionMapping,
|
|
35
35
|
offerResultMapping: IOfferResultMapping,
|
|
36
|
-
configMapping:
|
|
37
|
-
coloredStringMapping:
|
|
38
|
-
coloredSpanMapping:
|
|
36
|
+
configMapping: IConfigMapping,
|
|
37
|
+
coloredStringMapping: IColoredStringMapping,
|
|
38
|
+
coloredSpanMapping: IColoredSpanMapping,
|
|
39
39
|
|
|
40
40
|
configEndpoint: string,
|
|
41
41
|
offersEndpoint: string,
|
|
@@ -77,7 +77,7 @@ export interface ASOConfig_v4 {
|
|
|
77
77
|
version: number
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
export interface
|
|
80
|
+
export interface IAuthorizationActionMapping {
|
|
81
81
|
hasNextAction: string,
|
|
82
82
|
nextActionIn: string,
|
|
83
83
|
changeNumberCaption: string,
|
|
@@ -90,8 +90,8 @@ export interface AuthorizationActionMapping {
|
|
|
90
90
|
authorized: string
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
interface
|
|
94
|
-
[key: string]:
|
|
93
|
+
export interface ILocalizationMap {
|
|
94
|
+
[key: string]: ILocalization
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
export interface IOfferSectionMapping {
|
|
@@ -115,7 +115,7 @@ export interface LocalizedString {
|
|
|
115
115
|
ru: string
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export interface
|
|
118
|
+
export interface ILocalization {
|
|
119
119
|
numberWillReceiveACallPattern: string,
|
|
120
120
|
numberReceivedACallPattern: string,
|
|
121
121
|
numberReceivedASmsPattern: string,
|
|
@@ -158,39 +158,40 @@ export interface Localization {
|
|
|
158
158
|
game_min_rate_error_pattern: string,
|
|
159
159
|
game_yourLevel: string,
|
|
160
160
|
|
|
161
|
-
auth_title:
|
|
162
|
-
auth_subtitle:
|
|
161
|
+
auth_title: IColoredString,
|
|
162
|
+
auth_subtitle: IColoredString
|
|
163
163
|
auth_changeNumber: string,
|
|
164
164
|
auth_getAccess: string,
|
|
165
165
|
auth_enterAsGuest: string,
|
|
166
166
|
auth_privacyPolicyAcceptance: string,
|
|
167
|
-
auth_privacyPolicy:
|
|
167
|
+
auth_privacyPolicy: IColoredString
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
export interface
|
|
170
|
+
export interface IColoredString {
|
|
171
171
|
text: string,
|
|
172
|
-
colors:
|
|
172
|
+
colors: IColoredSpan[]
|
|
173
173
|
mappingName: string
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
interface
|
|
176
|
+
interface IColoredSpan {
|
|
177
177
|
from: number,
|
|
178
178
|
to: number,
|
|
179
179
|
color: string
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export interface
|
|
182
|
+
export interface IColoredStringMapping {
|
|
183
183
|
text: string,
|
|
184
184
|
colors: string,
|
|
185
|
-
internal: [string,
|
|
185
|
+
internal: [string, IColoredSpanMapping][]
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
export interface
|
|
188
|
+
export interface IColoredSpanMapping {
|
|
189
189
|
from: string,
|
|
190
190
|
to: string,
|
|
191
191
|
color: string
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
|
|
194
|
+
export interface IConfigMapping {
|
|
194
195
|
fullAccess: string,
|
|
195
196
|
appsflyerKey: string,
|
|
196
197
|
onesignalKey: string,
|
|
@@ -200,10 +201,10 @@ export interface ConfigMapping {
|
|
|
200
201
|
privacyPolicyUrl: string,
|
|
201
202
|
localization: string,
|
|
202
203
|
|
|
203
|
-
internal: [string,
|
|
204
|
+
internal: [string, ILocalizationMapping][],
|
|
204
205
|
}
|
|
205
206
|
|
|
206
|
-
export interface
|
|
207
|
+
export interface ILocalizationMapping {
|
|
207
208
|
game_spin: string,
|
|
208
209
|
game_balance_pattern: string,
|
|
209
210
|
game_win_pattern: string
|
|
@@ -236,10 +237,10 @@ export interface LocalizationMapping {
|
|
|
236
237
|
auth_privacyPolicyAcceptance: string,
|
|
237
238
|
auth_privacyPolicy: string,
|
|
238
239
|
|
|
239
|
-
internal: [string,
|
|
240
|
+
internal: [string, IColoredStringMapping][]
|
|
240
241
|
}
|
|
241
242
|
|
|
242
|
-
export let
|
|
243
|
+
export let toDefault = (config: IConfig): IASODefaultConfig => {
|
|
243
244
|
return {
|
|
244
245
|
id: config.id,
|
|
245
246
|
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
|
name: string,
|
|
5
5
|
email: string,
|
|
6
6
|
id: number,
|
|
@@ -28,14 +28,14 @@ export interface ASOConfig_v5 {
|
|
|
28
28
|
smscLogin: string,
|
|
29
29
|
smscPassword: string,
|
|
30
30
|
|
|
31
|
-
localization?:
|
|
32
|
-
localizationMapping:
|
|
33
|
-
authorizationActionMapping:
|
|
31
|
+
localization?: ILocalizationMap | ILocalization,
|
|
32
|
+
localizationMapping: ILocalizationMapping,
|
|
33
|
+
authorizationActionMapping: IAuthorizationActionMapping,
|
|
34
34
|
offerSectionMapping: IOfferSectionMapping,
|
|
35
35
|
offerResultMapping: IOfferResultMapping,
|
|
36
|
-
configMapping:
|
|
37
|
-
coloredStringMapping:
|
|
38
|
-
coloredSpanMapping:
|
|
36
|
+
configMapping: IConfigMapping,
|
|
37
|
+
coloredStringMapping: IColoredStringMapping,
|
|
38
|
+
coloredSpanMapping: IColoredSpanMapping,
|
|
39
39
|
|
|
40
40
|
configEndpoint: string,
|
|
41
41
|
offersEndpoint: string,
|
|
@@ -82,7 +82,7 @@ export interface ASOConfig_v5 {
|
|
|
82
82
|
version: number
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export interface
|
|
85
|
+
export interface IAuthorizationActionMapping {
|
|
86
86
|
hasNextAction: string,
|
|
87
87
|
nextActionIn: string,
|
|
88
88
|
changeNumberCaption: string,
|
|
@@ -95,8 +95,8 @@ export interface AuthorizationActionMapping {
|
|
|
95
95
|
authorized: string
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
interface
|
|
99
|
-
[key: string]:
|
|
98
|
+
export interface ILocalizationMap {
|
|
99
|
+
[key: string]: ILocalization
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export interface IOfferSectionMapping {
|
|
@@ -120,7 +120,7 @@ export interface LocalizedString {
|
|
|
120
120
|
ru: string
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export interface
|
|
123
|
+
export interface ILocalization {
|
|
124
124
|
numberWillReceiveACallPattern: string,
|
|
125
125
|
numberReceivedACallPattern: string,
|
|
126
126
|
numberReceivedASmsPattern: string,
|
|
@@ -168,41 +168,41 @@ export interface Localization {
|
|
|
168
168
|
game_min_rate_error_pattern: string,
|
|
169
169
|
game_yourLevel: string,
|
|
170
170
|
|
|
171
|
-
auth_title:
|
|
172
|
-
auth_subtitle:
|
|
171
|
+
auth_title: IColoredString,
|
|
172
|
+
auth_subtitle: IColoredString
|
|
173
173
|
auth_changeNumber: string,
|
|
174
174
|
auth_getAccess: string,
|
|
175
175
|
auth_enterAsGuest: string,
|
|
176
176
|
auth_privacyPolicyAcceptance: string,
|
|
177
|
-
auth_privacyPolicy:
|
|
177
|
+
auth_privacyPolicy: IColoredString,
|
|
178
178
|
|
|
179
179
|
homeHint: string
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export interface
|
|
182
|
+
export interface IColoredString {
|
|
183
183
|
text: string,
|
|
184
|
-
colors:
|
|
184
|
+
colors: IColoredSpan[]
|
|
185
185
|
mappingName: string
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
interface
|
|
188
|
+
export interface IColoredSpan {
|
|
189
189
|
from: number,
|
|
190
190
|
to: number,
|
|
191
191
|
color: string
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
export interface
|
|
194
|
+
export interface IColoredStringMapping {
|
|
195
195
|
text: string,
|
|
196
196
|
colors: string,
|
|
197
|
-
internal: [string,
|
|
197
|
+
internal: [string, IColoredSpanMapping][]
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
export interface
|
|
200
|
+
export interface IColoredSpanMapping {
|
|
201
201
|
from: string,
|
|
202
202
|
to: string,
|
|
203
203
|
color: string
|
|
204
204
|
}
|
|
205
|
-
export interface
|
|
205
|
+
export interface IConfigMapping {
|
|
206
206
|
fullAccess: string,
|
|
207
207
|
appsflyerKey: string,
|
|
208
208
|
onesignalKey: string,
|
|
@@ -217,10 +217,10 @@ export interface ConfigMapping {
|
|
|
217
217
|
homeOnBackPressEnabled: string,
|
|
218
218
|
homeButtonEnabled: string,
|
|
219
219
|
|
|
220
|
-
internal: [string,
|
|
220
|
+
internal: [string, ILocalizationMapping][],
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
export interface
|
|
223
|
+
export interface ILocalizationMapping {
|
|
224
224
|
game_spin: string,
|
|
225
225
|
game_balance_pattern: string,
|
|
226
226
|
game_win_pattern: string
|
|
@@ -260,10 +260,10 @@ export interface LocalizationMapping {
|
|
|
260
260
|
|
|
261
261
|
homeHint: string,
|
|
262
262
|
|
|
263
|
-
internal: [string,
|
|
263
|
+
internal: [string, IColoredStringMapping][]
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
export let
|
|
266
|
+
export let toDefault = (config: IConfig): IASODefaultConfig => {
|
|
267
267
|
return {
|
|
268
268
|
id: config.id,
|
|
269
269
|
bundle: config.bundle,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Document } from "mongoose"
|
|
2
|
+
|
|
3
|
+
export interface IASOUsageLogEntry extends Document {
|
|
4
|
+
countryCode: string,
|
|
5
|
+
ip: string,
|
|
6
|
+
timestamp: number,
|
|
7
|
+
phone: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IASOUsageLogRequest {
|
|
11
|
+
from: number,
|
|
12
|
+
to: number,
|
|
13
|
+
first: number,
|
|
14
|
+
last: number,
|
|
15
|
+
count: number
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface IASOCountryInfo {
|
|
19
|
+
all: number,
|
|
20
|
+
authorized: number
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IASOUsageLogResponse {
|
|
24
|
+
countriesInfo: {
|
|
25
|
+
[key: string]: IASOCountryInfo
|
|
26
|
+
},
|
|
27
|
+
first: number,
|
|
28
|
+
last: number,
|
|
29
|
+
entries: IASOUsageLogEntry[],
|
|
30
|
+
newEntries: IASOUsageLogEntry[]
|
|
31
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
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
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
4
|
+
export * as ASO_v0 from "./aso/config/aso-config-v0"
|
|
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
|
|
|
11
12
|
export { IOffer } from "./shared/offer"
|
|
@@ -14,4 +15,6 @@ export {IOfferWallSection} from "./aso/offerwall/offerwall-section"
|
|
|
14
15
|
export {IOfferWallOffer} from "./aso/offerwall/offerwall-offer"
|
|
15
16
|
export {IOfferWallResponse} from "./aso/offerwall/offerwall-response"
|
|
16
17
|
|
|
17
|
-
export {IFlashApp, FlashAppSchema} from "./flash/flash-app"
|
|
18
|
+
export {IFlashApp, FlashAppSchema} from "./flash/flash-app"
|
|
19
|
+
|
|
20
|
+
export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry"
|