@bprotsyk/aso-core 1.1.13 → 1.1.15
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 +79 -10
- package/lib/aso/config/aso-config-v0.js +2 -0
- package/lib/aso/config/aso-config-v1.d.ts +90 -22
- package/lib/aso/config/aso-config-v1.js +1 -0
- package/lib/aso/config/aso-config-v2.d.ts +83 -16
- package/lib/aso/config/aso-config-v2.js +2 -0
- package/lib/aso/config/aso-config-v3.d.ts +91 -24
- package/lib/aso/config/aso-config-v3.js +2 -0
- package/lib/aso/config/aso-config-v4.d.ts +29 -26
- package/lib/aso/config/aso-config-v4.js +2 -0
- package/lib/aso/config/aso-config-v5.d.ts +228 -0
- package/lib/aso/config/aso-config-v5.js +58 -0
- package/lib/aso/config/aso-default-config.d.ts +2 -1
- package/lib/aso/config/aso-single-response.d.ts +2 -2
- package/lib/aso/offer/aso-customized-offer.d.ts +1 -0
- package/lib/aso/offerwall/offerwall-offer.d.ts +7 -0
- package/lib/aso/offerwall/offerwall-offer.js +2 -0
- package/lib/aso/offerwall/offerwall-response.d.ts +4 -0
- package/lib/aso/offerwall/offerwall-response.js +2 -0
- package/lib/aso/offerwall/offerwall-section.d.ts +6 -0
- package/lib/aso/offerwall/offerwall-section.js +2 -0
- package/lib/flash/flash-app.d.ts +71 -0
- package/lib/flash/flash-app.js +38 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +3 -1
- package/lib/shared/offer.d.ts +1 -0
- package/lib/shared/single-offer.d.ts +0 -1
- package/package.json +4 -2
- package/src/aso/config/aso-config-v0.ts +37 -19
- package/src/aso/config/aso-config-v1.ts +45 -30
- package/src/aso/config/aso-config-v2.ts +43 -23
- package/src/aso/config/aso-config-v3.ts +56 -38
- package/src/aso/config/aso-config-v4.ts +33 -29
- package/src/aso/config/aso-config-v5.ts +328 -0
- package/src/aso/config/aso-default-config.ts +2 -1
- package/src/aso/config/aso-single-response.ts +2 -2
- package/src/aso/offer/aso-customized-offer.ts +2 -1
- package/src/aso/offerwall/offerwall-offer.ts +8 -0
- package/src/aso/offerwall/offerwall-response.ts +5 -0
- package/src/aso/offerwall/offerwall-section.ts +7 -0
- package/src/flash/flash-app.ts +84 -0
- package/src/index.ts +7 -1
- package/src/shared/offer.ts +9 -8
- package/src/shared/single-offer.ts +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ASODefaultConfig } from "./aso-default-config"
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
export interface ASOConfig_v0 {
|
|
4
5
|
id: number,
|
|
5
6
|
name: string,
|
|
6
7
|
email: string,
|
|
@@ -9,7 +10,9 @@ export interface ASOConfig_v0 {
|
|
|
9
10
|
alghoritm?: string,
|
|
10
11
|
ip: string,
|
|
11
12
|
sshPassword: string,
|
|
13
|
+
sshPort?: string
|
|
12
14
|
trackingLink: string,
|
|
15
|
+
newTrackingLink?: string,
|
|
13
16
|
clientSideValidation: boolean,
|
|
14
17
|
host: string,
|
|
15
18
|
fullAccess: boolean,
|
|
@@ -75,10 +78,13 @@ export interface ASOConfig_v0 {
|
|
|
75
78
|
exportedTranslations?: boolean,
|
|
76
79
|
readyForPanel?: boolean,
|
|
77
80
|
|
|
81
|
+
oldHosts?: string[]
|
|
82
|
+
|
|
78
83
|
version: number
|
|
79
84
|
}
|
|
80
85
|
|
|
81
|
-
|
|
86
|
+
|
|
87
|
+
export interface AuthorizationActionMapping {
|
|
82
88
|
hasNextAction: string,
|
|
83
89
|
nextActionIn: string,
|
|
84
90
|
changeNumberCaption: string,
|
|
@@ -92,12 +98,11 @@ interface AuthorizationActionMapping {
|
|
|
92
98
|
canChangeNumber: string
|
|
93
99
|
}
|
|
94
100
|
|
|
95
|
-
|
|
96
101
|
interface LocalizationMap {
|
|
97
102
|
[key: string]: Localization
|
|
98
103
|
}
|
|
99
104
|
|
|
100
|
-
interface ISectionPalette {
|
|
105
|
+
export interface ISectionPalette {
|
|
101
106
|
titleBorder: string
|
|
102
107
|
titleText: string
|
|
103
108
|
offerBorder: string
|
|
@@ -125,14 +130,21 @@ interface IOfferResultEmoji {
|
|
|
125
130
|
caption: string | null,
|
|
126
131
|
}
|
|
127
132
|
|
|
128
|
-
interface IOffersSection {
|
|
133
|
+
export interface IOffersSection {
|
|
134
|
+
id: number,
|
|
135
|
+
offers: IOfferResult[]
|
|
136
|
+
title: string
|
|
137
|
+
palette: ISectionPalette
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface IOffersSection {
|
|
129
141
|
id: number,
|
|
130
142
|
offers: IOfferResult[]
|
|
131
143
|
title: string
|
|
132
144
|
palette: ISectionPalette
|
|
133
145
|
}
|
|
134
146
|
|
|
135
|
-
interface ISectionPaletteMapping {
|
|
147
|
+
export interface ISectionPaletteMapping {
|
|
136
148
|
titleBorder: string
|
|
137
149
|
titleText: string
|
|
138
150
|
offerBorder: string
|
|
@@ -146,16 +158,14 @@ interface ISectionPaletteMapping {
|
|
|
146
158
|
emojiCaptionBackground: string,
|
|
147
159
|
emojiCaption: string
|
|
148
160
|
}
|
|
149
|
-
|
|
150
|
-
interface IOfferSectionMapping {
|
|
161
|
+
export interface IOfferSectionMapping {
|
|
151
162
|
id: string,
|
|
152
163
|
offers: string
|
|
153
164
|
title: string
|
|
154
165
|
palette: string,
|
|
155
166
|
internal: [string, any][]
|
|
156
167
|
}
|
|
157
|
-
|
|
158
|
-
interface IOfferResultMapping {
|
|
168
|
+
export interface IOfferResultMapping {
|
|
159
169
|
id: string,
|
|
160
170
|
backgroundImage: string,
|
|
161
171
|
foregroundImage: string,
|
|
@@ -165,7 +175,14 @@ interface IOfferResultMapping {
|
|
|
165
175
|
mappingName: string,
|
|
166
176
|
}
|
|
167
177
|
|
|
168
|
-
interface
|
|
178
|
+
export interface IOfferSectionMapping {
|
|
179
|
+
id: string,
|
|
180
|
+
offers: string
|
|
181
|
+
title: string
|
|
182
|
+
internal: [string, any][]
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface Localization {
|
|
169
186
|
numberWillReceiveACallPattern: string,
|
|
170
187
|
numberReceivedACallPattern: string,
|
|
171
188
|
numberReceivedASmsPattern: string,
|
|
@@ -240,7 +257,7 @@ interface Localization {
|
|
|
240
257
|
auth_privacyPolicy: ColoredString,
|
|
241
258
|
}
|
|
242
259
|
|
|
243
|
-
interface ColoredString {
|
|
260
|
+
export interface ColoredString {
|
|
244
261
|
text: string,
|
|
245
262
|
colors: ColoredSpan[]
|
|
246
263
|
mappingName: string
|
|
@@ -252,19 +269,18 @@ interface ColoredSpan {
|
|
|
252
269
|
color: string
|
|
253
270
|
}
|
|
254
271
|
|
|
255
|
-
interface ColoredStringMapping {
|
|
272
|
+
export interface ColoredStringMapping {
|
|
256
273
|
text: string,
|
|
257
274
|
colors: string,
|
|
258
275
|
internal: [string, ColoredSpanMapping][]
|
|
259
276
|
}
|
|
260
277
|
|
|
261
|
-
interface ColoredSpanMapping {
|
|
278
|
+
export interface ColoredSpanMapping {
|
|
262
279
|
from: string,
|
|
263
280
|
to: string,
|
|
264
281
|
color: string
|
|
265
282
|
}
|
|
266
|
-
|
|
267
|
-
interface ConfigMapping {
|
|
283
|
+
export interface ConfigMapping {
|
|
268
284
|
id: string,
|
|
269
285
|
fullAccess: string,
|
|
270
286
|
showVideo: string,
|
|
@@ -290,7 +306,7 @@ interface ConfigMapping {
|
|
|
290
306
|
internal: [string, LocalizationMapping][],
|
|
291
307
|
}
|
|
292
308
|
|
|
293
|
-
interface LocalizationMapping {
|
|
309
|
+
export interface LocalizationMapping {
|
|
294
310
|
numberWillReceiveACallPattern: string,
|
|
295
311
|
numberReceivedACallPattern: string,
|
|
296
312
|
numberReceivedASmsPattern: string,
|
|
@@ -363,7 +379,7 @@ interface LocalizationMapping {
|
|
|
363
379
|
internal: [string, ColoredStringMapping][]
|
|
364
380
|
}
|
|
365
381
|
|
|
366
|
-
export let asoConfigToDefault_v0 = (config: ASOConfig_v0):
|
|
382
|
+
export let asoConfigToDefault_v0 = (config: ASOConfig_v0): ASODefaultConfig => {
|
|
367
383
|
return {
|
|
368
384
|
id: config.id,
|
|
369
385
|
bundle: config.bundle,
|
|
@@ -372,6 +388,7 @@ export let asoConfigToDefault_v0 = (config: ASOConfig_v0): DefaultConfig => {
|
|
|
372
388
|
host: config.host,
|
|
373
389
|
ip: config.ip,
|
|
374
390
|
sshPassword: config.sshPassword,
|
|
391
|
+
sshPort: config.sshPort,
|
|
375
392
|
trackingLink: config.trackingLink,
|
|
376
393
|
|
|
377
394
|
fullAccess: config.fullAccess,
|
|
@@ -420,6 +437,7 @@ export let asoConfigToDefault_v0 = (config: ASOConfig_v0): DefaultConfig => {
|
|
|
420
437
|
|
|
421
438
|
skipCode: config.skipCode,
|
|
422
439
|
externalIpGeo: config.externalIpGeo,
|
|
440
|
+
newTrackingLink: config.newTrackingLink,
|
|
423
441
|
exportedTranslations: config.exportedTranslations,
|
|
424
442
|
readyForPanel: config.readyForPanel,
|
|
425
443
|
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
interface AuthorizationActionMapping {
|
|
4
|
-
hasNextAction: string,
|
|
5
|
-
nextActionIn: string,
|
|
6
|
-
changeNumberCaption: string,
|
|
7
|
-
nextActionCaption: string,
|
|
8
|
-
nextActionPatternCaption: string,
|
|
9
|
-
actualTitlePattern: string,
|
|
10
|
-
expiredTitlePattern: string,
|
|
11
|
-
subtitle: string,
|
|
12
|
-
when: string,
|
|
13
|
-
authorized: string,
|
|
14
|
-
canChangeNumber: string
|
|
15
|
-
}
|
|
1
|
+
import { ASODefaultConfig } from "./aso-default-config"
|
|
16
2
|
|
|
17
3
|
export interface ASOConfig_v1 {
|
|
18
4
|
id: number,
|
|
@@ -23,6 +9,7 @@ export interface ASOConfig_v1 {
|
|
|
23
9
|
alghoritm?: string,
|
|
24
10
|
ip: string,
|
|
25
11
|
sshPassword: string,
|
|
12
|
+
sshPort?: string
|
|
26
13
|
trackingLink: string,
|
|
27
14
|
clientSideValidation: boolean,
|
|
28
15
|
host: string,
|
|
@@ -90,12 +77,14 @@ export interface ASOConfig_v1 {
|
|
|
90
77
|
exportedTranslations?: boolean,
|
|
91
78
|
newTrackingLink?: string,
|
|
92
79
|
readyForPanel?: boolean,
|
|
80
|
+
|
|
81
|
+
oldHosts?: string[]
|
|
93
82
|
|
|
94
83
|
version: number
|
|
95
84
|
}
|
|
96
85
|
|
|
97
86
|
|
|
98
|
-
interface ISectionPalette {
|
|
87
|
+
export interface ISectionPalette {
|
|
99
88
|
titleBorder: string
|
|
100
89
|
titleText: string
|
|
101
90
|
offerBorder: string
|
|
@@ -110,6 +99,20 @@ interface ISectionPalette {
|
|
|
110
99
|
emojiCaption: string
|
|
111
100
|
}
|
|
112
101
|
|
|
102
|
+
export interface AuthorizationActionMapping {
|
|
103
|
+
hasNextAction: string,
|
|
104
|
+
nextActionIn: string,
|
|
105
|
+
changeNumberCaption: string,
|
|
106
|
+
nextActionCaption: string,
|
|
107
|
+
nextActionPatternCaption: string,
|
|
108
|
+
actualTitlePattern: string,
|
|
109
|
+
expiredTitlePattern: string,
|
|
110
|
+
subtitle: string,
|
|
111
|
+
when: string,
|
|
112
|
+
authorized: string,
|
|
113
|
+
canChangeNumber: string
|
|
114
|
+
}
|
|
115
|
+
|
|
113
116
|
interface IOfferResult {
|
|
114
117
|
id: string,
|
|
115
118
|
backgroundImage: string,
|
|
@@ -123,14 +126,21 @@ interface IOfferResultEmoji {
|
|
|
123
126
|
caption: string | null,
|
|
124
127
|
}
|
|
125
128
|
|
|
126
|
-
interface IOffersSection {
|
|
129
|
+
export interface IOffersSection {
|
|
127
130
|
id: number,
|
|
128
131
|
offers: IOfferResult[]
|
|
129
132
|
title: string
|
|
130
133
|
palette: ISectionPalette
|
|
131
134
|
}
|
|
132
135
|
|
|
133
|
-
interface
|
|
136
|
+
export interface IOffersSection {
|
|
137
|
+
id: number,
|
|
138
|
+
offers: IOfferResult[]
|
|
139
|
+
title: string
|
|
140
|
+
palette: ISectionPalette
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface ISectionPaletteMapping {
|
|
134
144
|
titleBorder: string
|
|
135
145
|
titleText: string
|
|
136
146
|
offerBorder: string
|
|
@@ -144,16 +154,14 @@ interface ISectionPaletteMapping {
|
|
|
144
154
|
emojiCaptionBackground: string,
|
|
145
155
|
emojiCaption: string
|
|
146
156
|
}
|
|
147
|
-
|
|
148
|
-
interface IOfferSectionMapping {
|
|
157
|
+
export interface IOfferSectionMapping {
|
|
149
158
|
id: string,
|
|
150
159
|
offers: string
|
|
151
160
|
title: string
|
|
152
161
|
palette: string,
|
|
153
162
|
internal: [string, any][]
|
|
154
163
|
}
|
|
155
|
-
|
|
156
|
-
interface IOfferResultMapping {
|
|
164
|
+
export interface IOfferResultMapping {
|
|
157
165
|
id: string,
|
|
158
166
|
backgroundImage: string,
|
|
159
167
|
foregroundImage: string,
|
|
@@ -163,7 +171,14 @@ interface IOfferResultMapping {
|
|
|
163
171
|
mappingName: string,
|
|
164
172
|
}
|
|
165
173
|
|
|
166
|
-
interface
|
|
174
|
+
export interface IOfferSectionMapping {
|
|
175
|
+
id: string,
|
|
176
|
+
offers: string
|
|
177
|
+
title: string
|
|
178
|
+
internal: [string, any][]
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface Localization {
|
|
167
182
|
numberWillReceiveACallPattern: string,
|
|
168
183
|
numberReceivedACallPattern: string,
|
|
169
184
|
numberReceivedASmsPattern: string,
|
|
@@ -233,7 +248,7 @@ interface Localization {
|
|
|
233
248
|
auth_privacyPolicy: ColoredString
|
|
234
249
|
}
|
|
235
250
|
|
|
236
|
-
interface ColoredString {
|
|
251
|
+
export interface ColoredString {
|
|
237
252
|
text: string,
|
|
238
253
|
colors: ColoredSpan[]
|
|
239
254
|
mappingName: string
|
|
@@ -245,19 +260,18 @@ interface ColoredSpan {
|
|
|
245
260
|
color: string
|
|
246
261
|
}
|
|
247
262
|
|
|
248
|
-
interface ColoredStringMapping {
|
|
263
|
+
export interface ColoredStringMapping {
|
|
249
264
|
text: string,
|
|
250
265
|
colors: string,
|
|
251
266
|
internal: [string, ColoredSpanMapping][]
|
|
252
267
|
}
|
|
253
268
|
|
|
254
|
-
interface ColoredSpanMapping {
|
|
269
|
+
export interface ColoredSpanMapping {
|
|
255
270
|
from: string,
|
|
256
271
|
to: string,
|
|
257
272
|
color: string
|
|
258
273
|
}
|
|
259
|
-
|
|
260
|
-
interface ConfigMapping {
|
|
274
|
+
export interface ConfigMapping {
|
|
261
275
|
id: string,
|
|
262
276
|
fullAccess: string,
|
|
263
277
|
showVideo: string,
|
|
@@ -287,7 +301,7 @@ interface LocalizationMap {
|
|
|
287
301
|
[key: string]: Localization
|
|
288
302
|
}
|
|
289
303
|
|
|
290
|
-
interface LocalizationMapping {
|
|
304
|
+
export interface LocalizationMapping {
|
|
291
305
|
numberWillReceiveACallPattern: string,
|
|
292
306
|
numberReceivedACallPattern: string,
|
|
293
307
|
numberReceivedASmsPattern: string,
|
|
@@ -357,7 +371,7 @@ interface LocalizationMapping {
|
|
|
357
371
|
internal: [string, ColoredStringMapping][]
|
|
358
372
|
}
|
|
359
373
|
|
|
360
|
-
export let asoConfigToDefault_v1 = (config: ASOConfig_v1):
|
|
374
|
+
export let asoConfigToDefault_v1 = (config: ASOConfig_v1): ASODefaultConfig => {
|
|
361
375
|
return {
|
|
362
376
|
id: config.id,
|
|
363
377
|
bundle: config.bundle,
|
|
@@ -366,6 +380,7 @@ export let asoConfigToDefault_v1 = (config: ASOConfig_v1): DefaultConfig => {
|
|
|
366
380
|
host: config.host,
|
|
367
381
|
ip: config.ip,
|
|
368
382
|
sshPassword: config.sshPassword,
|
|
383
|
+
sshPort: config.sshPort,
|
|
369
384
|
trackingLink: config.trackingLink,
|
|
370
385
|
|
|
371
386
|
fullAccess: config.fullAccess,
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
interface AuthorizationActionMapping {
|
|
4
|
-
hasNextAction: string,
|
|
5
|
-
nextActionIn: string,
|
|
6
|
-
changeNumberCaption: string,
|
|
7
|
-
nextActionCaption: string,
|
|
8
|
-
nextActionPatternCaption: string,
|
|
9
|
-
actualTitlePattern: string,
|
|
10
|
-
expiredTitlePattern: string,
|
|
11
|
-
subtitle: string,
|
|
12
|
-
when: string,
|
|
13
|
-
authorized: string,
|
|
14
|
-
}
|
|
1
|
+
import { ASODefaultConfig } from "./aso-default-config"
|
|
15
2
|
|
|
16
3
|
export interface ASOConfig_v2 {
|
|
17
4
|
id: number,
|
|
@@ -20,7 +7,9 @@ export interface ASOConfig_v2 {
|
|
|
20
7
|
bundle: string,
|
|
21
8
|
ip: string,
|
|
22
9
|
sshPassword: string,
|
|
23
|
-
|
|
10
|
+
sshPort?: string
|
|
11
|
+
trackingLink: string
|
|
12
|
+
newTrackingLink?: string
|
|
24
13
|
host: string,
|
|
25
14
|
fullAccess: boolean,
|
|
26
15
|
|
|
@@ -80,14 +69,30 @@ export interface ASOConfig_v2 {
|
|
|
80
69
|
exportedTranslations?: boolean,
|
|
81
70
|
readyForPanel?: boolean,
|
|
82
71
|
|
|
72
|
+
oldHosts?: string[]
|
|
73
|
+
|
|
83
74
|
version: number
|
|
84
75
|
}
|
|
85
76
|
|
|
77
|
+
export interface AuthorizationActionMapping {
|
|
78
|
+
hasNextAction: string,
|
|
79
|
+
nextActionIn: string,
|
|
80
|
+
changeNumberCaption: string,
|
|
81
|
+
nextActionCaption: string,
|
|
82
|
+
nextActionPatternCaption: string,
|
|
83
|
+
actualTitlePattern: string,
|
|
84
|
+
expiredTitlePattern: string,
|
|
85
|
+
subtitle: string,
|
|
86
|
+
when: string,
|
|
87
|
+
authorized: string,
|
|
88
|
+
}
|
|
89
|
+
|
|
86
90
|
interface LocalizationMap {
|
|
87
91
|
[key: string]: Localization
|
|
88
92
|
}
|
|
89
93
|
|
|
90
|
-
|
|
94
|
+
|
|
95
|
+
export interface ISectionPalette {
|
|
91
96
|
titleBorder: string
|
|
92
97
|
titleText: string
|
|
93
98
|
offerBorder: string
|
|
@@ -111,14 +116,21 @@ interface IOfferResult {
|
|
|
111
116
|
buttonText: string
|
|
112
117
|
}
|
|
113
118
|
|
|
114
|
-
interface IOffersSection {
|
|
119
|
+
export interface IOffersSection {
|
|
120
|
+
id: number,
|
|
121
|
+
offers: IOfferResult[]
|
|
122
|
+
title: string
|
|
123
|
+
palette: ISectionPalette
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface IOffersSection {
|
|
115
127
|
id: number,
|
|
116
128
|
offers: IOfferResult[]
|
|
117
129
|
title: string
|
|
118
130
|
palette: ISectionPalette
|
|
119
131
|
}
|
|
120
132
|
|
|
121
|
-
interface ISectionPaletteMapping {
|
|
133
|
+
export interface ISectionPaletteMapping {
|
|
122
134
|
titleBorder: string
|
|
123
135
|
titleText: string
|
|
124
136
|
offerBorder: string
|
|
@@ -132,8 +144,14 @@ interface ISectionPaletteMapping {
|
|
|
132
144
|
emojiCaptionBackground: string,
|
|
133
145
|
emojiCaption: string
|
|
134
146
|
}
|
|
135
|
-
|
|
136
|
-
|
|
147
|
+
export interface IOfferSectionMapping {
|
|
148
|
+
id: string,
|
|
149
|
+
offers: string
|
|
150
|
+
title: string
|
|
151
|
+
palette: string,
|
|
152
|
+
internal: [string, any][]
|
|
153
|
+
}
|
|
154
|
+
export interface IOfferResultMapping {
|
|
137
155
|
id: string,
|
|
138
156
|
backgroundImage: string,
|
|
139
157
|
foregroundImage: string,
|
|
@@ -143,14 +161,14 @@ interface IOfferResultMapping {
|
|
|
143
161
|
mappingName: string,
|
|
144
162
|
}
|
|
145
163
|
|
|
146
|
-
interface IOfferSectionMapping {
|
|
164
|
+
export interface IOfferSectionMapping {
|
|
147
165
|
id: string,
|
|
148
166
|
offers: string
|
|
149
167
|
title: string
|
|
150
168
|
internal: [string, any][]
|
|
151
169
|
}
|
|
152
170
|
|
|
153
|
-
interface Localization {
|
|
171
|
+
export interface Localization {
|
|
154
172
|
numberWillReceiveACallPattern: string,
|
|
155
173
|
numberReceivedACallPattern: string,
|
|
156
174
|
numberReceivedASmsPattern: string,
|
|
@@ -315,7 +333,7 @@ export interface LocalizationMapping {
|
|
|
315
333
|
internal: [string, ColoredStringMapping][]
|
|
316
334
|
}
|
|
317
335
|
|
|
318
|
-
export let asoConfigToDefault_v2 = (config: ASOConfig_v2):
|
|
336
|
+
export let asoConfigToDefault_v2 = (config: ASOConfig_v2): ASODefaultConfig => {
|
|
319
337
|
return {
|
|
320
338
|
id: config.id,
|
|
321
339
|
bundle: config.bundle,
|
|
@@ -324,7 +342,9 @@ export let asoConfigToDefault_v2 = (config: ASOConfig_v2): DefaultConfig => {
|
|
|
324
342
|
host: config.host,
|
|
325
343
|
ip: config.ip,
|
|
326
344
|
sshPassword: config.sshPassword,
|
|
345
|
+
sshPort: config.sshPort,
|
|
327
346
|
trackingLink: config.trackingLink,
|
|
347
|
+
newTrackingLink: config.newTrackingLink,
|
|
328
348
|
|
|
329
349
|
fullAccess: config.fullAccess,
|
|
330
350
|
appsflyerKey: config.appsflyerKey,
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
interface AuthorizationActionMapping {
|
|
4
|
-
hasNextAction: string,
|
|
5
|
-
nextActionIn: string,
|
|
6
|
-
changeNumberCaption: string,
|
|
7
|
-
nextActionCaption: string,
|
|
8
|
-
nextActionPatternCaption: string,
|
|
9
|
-
actualTitlePattern: string,
|
|
10
|
-
expiredTitlePattern: string,
|
|
11
|
-
subtitle: string,
|
|
12
|
-
when: string,
|
|
13
|
-
authorized: string,
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface LocalizationMap {
|
|
17
|
-
[key: string]: Localization
|
|
18
|
-
}
|
|
1
|
+
import { ASODefaultConfig } from "./aso-default-config"
|
|
19
2
|
|
|
20
3
|
export interface ASOConfig_v3 {
|
|
21
4
|
id: number,
|
|
@@ -23,11 +6,13 @@ export interface ASOConfig_v3 {
|
|
|
23
6
|
email: string,
|
|
24
7
|
bundle: string,
|
|
25
8
|
ip: string,
|
|
26
|
-
sshPassword: string
|
|
9
|
+
sshPassword: string
|
|
10
|
+
sshPort?: string
|
|
27
11
|
trackingLink: string,
|
|
12
|
+
newTrackingLink?: string,
|
|
28
13
|
host: string,
|
|
29
14
|
fullAccess: boolean,
|
|
30
|
-
|
|
15
|
+
|
|
31
16
|
appsflyerKey: string,
|
|
32
17
|
onesignalKey: string,
|
|
33
18
|
onesignalRestApiKey?: string,
|
|
@@ -39,7 +24,7 @@ export interface ASOConfig_v3 {
|
|
|
39
24
|
allowedCountries: string,
|
|
40
25
|
excludedCountries: string,
|
|
41
26
|
supportUrl?: string,
|
|
42
|
-
support?: {[key: string]: string},
|
|
27
|
+
support?: { [key: string]: string },
|
|
43
28
|
privacyPolicyUrl: string,
|
|
44
29
|
callCoolDown: number,
|
|
45
30
|
smsCoolDown: number,
|
|
@@ -79,18 +64,36 @@ export interface ASOConfig_v3 {
|
|
|
79
64
|
redirectJsName: string,
|
|
80
65
|
redirectFolderName?: string,
|
|
81
66
|
redirectJsCustomNumberParameter?: string,
|
|
82
|
-
|
|
67
|
+
|
|
83
68
|
skipCode: boolean,
|
|
84
69
|
externalIpGeo: boolean,
|
|
85
70
|
|
|
86
71
|
exportedTranslations?: boolean,
|
|
87
72
|
readyForPanel?: boolean,
|
|
88
|
-
|
|
73
|
+
|
|
74
|
+
oldHosts?: string[]
|
|
75
|
+
|
|
89
76
|
version: number
|
|
90
77
|
}
|
|
91
78
|
|
|
79
|
+
export interface AuthorizationActionMapping {
|
|
80
|
+
hasNextAction: string,
|
|
81
|
+
nextActionIn: string,
|
|
82
|
+
changeNumberCaption: string,
|
|
83
|
+
nextActionCaption: string,
|
|
84
|
+
nextActionPatternCaption: string,
|
|
85
|
+
actualTitlePattern: string,
|
|
86
|
+
expiredTitlePattern: string,
|
|
87
|
+
subtitle: string,
|
|
88
|
+
when: string,
|
|
89
|
+
authorized: string,
|
|
90
|
+
}
|
|
92
91
|
|
|
93
|
-
interface
|
|
92
|
+
interface LocalizationMap {
|
|
93
|
+
[key: string]: Localization
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface ISectionPalette {
|
|
94
97
|
titleBorder: string
|
|
95
98
|
titleText: string
|
|
96
99
|
offerBorder: string
|
|
@@ -114,14 +117,21 @@ interface IOfferResult {
|
|
|
114
117
|
buttonText: string
|
|
115
118
|
}
|
|
116
119
|
|
|
117
|
-
interface IOffersSection {
|
|
120
|
+
export interface IOffersSection {
|
|
118
121
|
id: number,
|
|
119
122
|
offers: IOfferResult[]
|
|
120
123
|
title: string
|
|
121
124
|
palette: ISectionPalette
|
|
122
125
|
}
|
|
123
126
|
|
|
124
|
-
interface
|
|
127
|
+
export interface IOffersSection {
|
|
128
|
+
id: number,
|
|
129
|
+
offers: IOfferResult[]
|
|
130
|
+
title: string
|
|
131
|
+
palette: ISectionPalette
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface ISectionPaletteMapping {
|
|
125
135
|
titleBorder: string
|
|
126
136
|
titleText: string
|
|
127
137
|
offerBorder: string
|
|
@@ -135,8 +145,14 @@ interface ISectionPaletteMapping {
|
|
|
135
145
|
emojiCaptionBackground: string,
|
|
136
146
|
emojiCaption: string
|
|
137
147
|
}
|
|
138
|
-
|
|
139
|
-
|
|
148
|
+
export interface IOfferSectionMapping {
|
|
149
|
+
id: string,
|
|
150
|
+
offers: string
|
|
151
|
+
title: string
|
|
152
|
+
palette: string,
|
|
153
|
+
internal: [string, any][]
|
|
154
|
+
}
|
|
155
|
+
export interface IOfferResultMapping {
|
|
140
156
|
id: string,
|
|
141
157
|
backgroundImage: string,
|
|
142
158
|
foregroundImage: string,
|
|
@@ -146,14 +162,14 @@ interface IOfferResultMapping {
|
|
|
146
162
|
mappingName: string,
|
|
147
163
|
}
|
|
148
164
|
|
|
149
|
-
interface IOfferSectionMapping {
|
|
165
|
+
export interface IOfferSectionMapping {
|
|
150
166
|
id: string,
|
|
151
167
|
offers: string
|
|
152
168
|
title: string
|
|
153
169
|
internal: [string, any][]
|
|
154
170
|
}
|
|
155
171
|
|
|
156
|
-
interface Localization {
|
|
172
|
+
export interface Localization {
|
|
157
173
|
numberWillReceiveACallPattern: string,
|
|
158
174
|
numberReceivedACallPattern: string,
|
|
159
175
|
numberReceivedASmsPattern: string,
|
|
@@ -217,7 +233,7 @@ interface Localization {
|
|
|
217
233
|
auth_privacyPolicy: ColoredString
|
|
218
234
|
}
|
|
219
235
|
|
|
220
|
-
interface ColoredString {
|
|
236
|
+
export interface ColoredString {
|
|
221
237
|
text: string,
|
|
222
238
|
colors: ColoredSpan[]
|
|
223
239
|
mappingName: string
|
|
@@ -229,19 +245,19 @@ interface ColoredSpan {
|
|
|
229
245
|
color: string
|
|
230
246
|
}
|
|
231
247
|
|
|
232
|
-
interface ColoredStringMapping {
|
|
248
|
+
export interface ColoredStringMapping {
|
|
233
249
|
text: string,
|
|
234
250
|
colors: string,
|
|
235
251
|
internal: [string, ColoredSpanMapping][]
|
|
236
252
|
}
|
|
237
253
|
|
|
238
|
-
interface ColoredSpanMapping {
|
|
254
|
+
export interface ColoredSpanMapping {
|
|
239
255
|
from: string,
|
|
240
256
|
to: string,
|
|
241
257
|
color: string
|
|
242
258
|
}
|
|
243
259
|
|
|
244
|
-
interface ConfigMapping {
|
|
260
|
+
export interface ConfigMapping {
|
|
245
261
|
id: string,
|
|
246
262
|
fullAccess: string,
|
|
247
263
|
showVideo: string,
|
|
@@ -264,7 +280,7 @@ interface ConfigMapping {
|
|
|
264
280
|
internal: [string, LocalizationMapping][],
|
|
265
281
|
}
|
|
266
282
|
|
|
267
|
-
interface LocalizationMapping {
|
|
283
|
+
export interface LocalizationMapping {
|
|
268
284
|
game_spin: string,
|
|
269
285
|
game_balance_pattern: string,
|
|
270
286
|
game_win_pattern: string
|
|
@@ -283,7 +299,7 @@ interface LocalizationMapping {
|
|
|
283
299
|
error_name: string,
|
|
284
300
|
error_postCredentials: string,
|
|
285
301
|
error_invalidCode: string
|
|
286
|
-
|
|
302
|
+
|
|
287
303
|
changeNumber_title: string,
|
|
288
304
|
changeNumber_message: string,
|
|
289
305
|
changeNumber_no: string,
|
|
@@ -313,7 +329,7 @@ interface LocalizationMapping {
|
|
|
313
329
|
internal: [string, ColoredStringMapping][]
|
|
314
330
|
}
|
|
315
331
|
|
|
316
|
-
export let asoConfigToDefault_v3 = (config: ASOConfig_v3):
|
|
332
|
+
export let asoConfigToDefault_v3 = (config: ASOConfig_v3): ASODefaultConfig => {
|
|
317
333
|
return {
|
|
318
334
|
id: config.id,
|
|
319
335
|
bundle: config.bundle,
|
|
@@ -322,7 +338,9 @@ export let asoConfigToDefault_v3 = (config: ASOConfig_v3): DefaultConfig => {
|
|
|
322
338
|
host: config.host,
|
|
323
339
|
ip: config.ip,
|
|
324
340
|
sshPassword: config.sshPassword,
|
|
341
|
+
sshPort: config.sshPort,
|
|
325
342
|
trackingLink: config.trackingLink,
|
|
343
|
+
newTrackingLink: config.newTrackingLink,
|
|
326
344
|
|
|
327
345
|
fullAccess: config.fullAccess,
|
|
328
346
|
appsflyerKey: config.appsflyerKey,
|
|
@@ -370,7 +388,7 @@ export let asoConfigToDefault_v3 = (config: ASOConfig_v3): DefaultConfig => {
|
|
|
370
388
|
externalIpGeo: config.externalIpGeo,
|
|
371
389
|
exportedTranslations: config.exportedTranslations,
|
|
372
390
|
readyForPanel: config.readyForPanel,
|
|
373
|
-
|
|
391
|
+
|
|
374
392
|
version: 3
|
|
375
393
|
}
|
|
376
394
|
}
|