@bprotsyk/aso-core 1.1.13 → 1.1.14
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 +3 -0
- 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 +5 -1
- package/src/shared/offer.ts +9 -8
- package/src/shared/single-offer.ts +0 -1
|
@@ -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_v4 {
|
|
21
4
|
name: string,
|
|
@@ -25,8 +8,10 @@ export interface ASOConfig_v4 {
|
|
|
25
8
|
host: string,
|
|
26
9
|
ip: string,
|
|
27
10
|
sshPassword: string,
|
|
11
|
+
sshPort?: string
|
|
28
12
|
|
|
29
13
|
trackingLink: string,
|
|
14
|
+
newTrackingLink?: string,
|
|
30
15
|
fullAccess: boolean,
|
|
31
16
|
appsflyerKey: string,
|
|
32
17
|
onesignalKey: string,
|
|
@@ -85,19 +70,37 @@ export interface ASOConfig_v4 {
|
|
|
85
70
|
exportedTranslations?: boolean,
|
|
86
71
|
readyForPanel?: boolean,
|
|
87
72
|
|
|
73
|
+
oldHosts?: string[]
|
|
88
74
|
|
|
89
75
|
betting?: boolean,
|
|
90
76
|
|
|
91
77
|
version: number
|
|
92
78
|
}
|
|
93
79
|
|
|
94
|
-
interface
|
|
80
|
+
export interface AuthorizationActionMapping {
|
|
81
|
+
hasNextAction: string,
|
|
82
|
+
nextActionIn: string,
|
|
83
|
+
changeNumberCaption: string,
|
|
84
|
+
nextActionCaption: string,
|
|
85
|
+
nextActionPatternCaption: string,
|
|
86
|
+
actualTitlePattern: string,
|
|
87
|
+
expiredTitlePattern: string,
|
|
88
|
+
subtitle: string,
|
|
89
|
+
when: string,
|
|
90
|
+
authorized: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface LocalizationMap {
|
|
94
|
+
[key: string]: Localization
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface IOfferSectionMapping {
|
|
95
98
|
offers: string
|
|
96
99
|
title: string
|
|
97
100
|
internal: [string, any][]
|
|
98
101
|
}
|
|
99
102
|
|
|
100
|
-
interface IOfferResultMapping {
|
|
103
|
+
export interface IOfferResultMapping {
|
|
101
104
|
id: string,
|
|
102
105
|
backgroundImage: string,
|
|
103
106
|
foregroundImage: string,
|
|
@@ -107,12 +110,12 @@ interface IOfferResultMapping {
|
|
|
107
110
|
mappingName: string
|
|
108
111
|
}
|
|
109
112
|
|
|
110
|
-
interface LocalizedString {
|
|
113
|
+
export interface LocalizedString {
|
|
111
114
|
en: string,
|
|
112
115
|
ru: string
|
|
113
116
|
}
|
|
114
117
|
|
|
115
|
-
interface Localization {
|
|
118
|
+
export interface Localization {
|
|
116
119
|
numberWillReceiveACallPattern: string,
|
|
117
120
|
numberReceivedACallPattern: string,
|
|
118
121
|
numberReceivedASmsPattern: string,
|
|
@@ -164,7 +167,7 @@ interface Localization {
|
|
|
164
167
|
auth_privacyPolicy: ColoredString
|
|
165
168
|
}
|
|
166
169
|
|
|
167
|
-
interface ColoredString {
|
|
170
|
+
export interface ColoredString {
|
|
168
171
|
text: string,
|
|
169
172
|
colors: ColoredSpan[]
|
|
170
173
|
mappingName: string
|
|
@@ -176,19 +179,18 @@ interface ColoredSpan {
|
|
|
176
179
|
color: string
|
|
177
180
|
}
|
|
178
181
|
|
|
179
|
-
interface ColoredStringMapping {
|
|
182
|
+
export interface ColoredStringMapping {
|
|
180
183
|
text: string,
|
|
181
184
|
colors: string,
|
|
182
185
|
internal: [string, ColoredSpanMapping][]
|
|
183
186
|
}
|
|
184
187
|
|
|
185
|
-
interface ColoredSpanMapping {
|
|
188
|
+
export interface ColoredSpanMapping {
|
|
186
189
|
from: string,
|
|
187
190
|
to: string,
|
|
188
191
|
color: string
|
|
189
192
|
}
|
|
190
|
-
|
|
191
|
-
interface ConfigMapping {
|
|
193
|
+
export interface ConfigMapping {
|
|
192
194
|
fullAccess: string,
|
|
193
195
|
appsflyerKey: string,
|
|
194
196
|
onesignalKey: string,
|
|
@@ -201,7 +203,7 @@ interface ConfigMapping {
|
|
|
201
203
|
internal: [string, LocalizationMapping][],
|
|
202
204
|
}
|
|
203
205
|
|
|
204
|
-
interface LocalizationMapping {
|
|
206
|
+
export interface LocalizationMapping {
|
|
205
207
|
game_spin: string,
|
|
206
208
|
game_balance_pattern: string,
|
|
207
209
|
game_win_pattern: string
|
|
@@ -237,7 +239,7 @@ interface LocalizationMapping {
|
|
|
237
239
|
internal: [string, ColoredStringMapping][]
|
|
238
240
|
}
|
|
239
241
|
|
|
240
|
-
export let asoConfigToDefault_v4 = (config: ASOConfig_v4):
|
|
242
|
+
export let asoConfigToDefault_v4 = (config: ASOConfig_v4): ASODefaultConfig => {
|
|
241
243
|
return {
|
|
242
244
|
id: config.id,
|
|
243
245
|
bundle: config.bundle,
|
|
@@ -246,7 +248,9 @@ export let asoConfigToDefault_v4 = (config: ASOConfig_v4): DefaultConfig => {
|
|
|
246
248
|
host: config.host,
|
|
247
249
|
ip: config.ip,
|
|
248
250
|
sshPassword: config.sshPassword,
|
|
251
|
+
sshPort: config.sshPort,
|
|
249
252
|
trackingLink: config.trackingLink,
|
|
253
|
+
newTrackingLink: config.newTrackingLink,
|
|
250
254
|
|
|
251
255
|
fullAccess: config.fullAccess,
|
|
252
256
|
appsflyerKey: config.appsflyerKey,
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { ASODefaultConfig } from "./aso-default-config";
|
|
2
|
+
|
|
3
|
+
export interface ASOConfig_v5 {
|
|
4
|
+
name: string,
|
|
5
|
+
email: string,
|
|
6
|
+
id: number,
|
|
7
|
+
bundle: string,
|
|
8
|
+
host: string,
|
|
9
|
+
ip: string,
|
|
10
|
+
sshPassword: string,
|
|
11
|
+
sshPort?: string
|
|
12
|
+
|
|
13
|
+
trackingLink: string,
|
|
14
|
+
newTrackingLink?: string,
|
|
15
|
+
fullAccess: boolean,
|
|
16
|
+
appsflyerKey: string,
|
|
17
|
+
onesignalKey: string,
|
|
18
|
+
onesignalRestApiKey?: string,
|
|
19
|
+
allowedCountries: string,
|
|
20
|
+
excludedCountries: string,
|
|
21
|
+
supportUrl?: string,
|
|
22
|
+
support?: {[key: string]: string},
|
|
23
|
+
privacyPolicyUrl: string,
|
|
24
|
+
callCoolDown: number,
|
|
25
|
+
smsCoolDown: number,
|
|
26
|
+
maxSmsTries: number,
|
|
27
|
+
maxCallTries: number,
|
|
28
|
+
smscLogin: string,
|
|
29
|
+
smscPassword: string,
|
|
30
|
+
|
|
31
|
+
localization?: LocalizationMap | Localization,
|
|
32
|
+
localizationMapping: LocalizationMapping,
|
|
33
|
+
authorizationActionMapping: AuthorizationActionMapping,
|
|
34
|
+
offerSectionMapping: IOfferSectionMapping,
|
|
35
|
+
offerResultMapping: IOfferResultMapping,
|
|
36
|
+
configMapping: ConfigMapping,
|
|
37
|
+
coloredStringMapping: ColoredStringMapping,
|
|
38
|
+
coloredSpanMapping: ColoredSpanMapping,
|
|
39
|
+
|
|
40
|
+
configEndpoint: string,
|
|
41
|
+
offersEndpoint: string,
|
|
42
|
+
nextActionEndpoint: string,
|
|
43
|
+
currentActionEndpoint: string,
|
|
44
|
+
validationEndpoint: string,
|
|
45
|
+
imageEndpoint: string,
|
|
46
|
+
|
|
47
|
+
sectionsParameter: string,
|
|
48
|
+
phoneParameter: string,
|
|
49
|
+
codeParameter: string
|
|
50
|
+
validityParameter: string,
|
|
51
|
+
appsflyerIdParameter: string,
|
|
52
|
+
advertisingIdParameter: string,
|
|
53
|
+
onesignalIdParameter: string,
|
|
54
|
+
offerIdParameter: string,
|
|
55
|
+
countryCodeParameter: string,
|
|
56
|
+
|
|
57
|
+
redirectFolderName?: string,
|
|
58
|
+
redirectHtmlName: string,
|
|
59
|
+
redirectJsName: string,
|
|
60
|
+
redirectJsCustomNumberParameter?: string,
|
|
61
|
+
|
|
62
|
+
networkErrorDialogTitle: LocalizedString,
|
|
63
|
+
networkErrorDialogMessage: LocalizedString,
|
|
64
|
+
networkErrorDialogButton: LocalizedString,
|
|
65
|
+
|
|
66
|
+
skipCode?: boolean,
|
|
67
|
+
externalIpGeo?: boolean,
|
|
68
|
+
pinImitationCountries?: string,
|
|
69
|
+
|
|
70
|
+
exportedTranslations?: boolean,
|
|
71
|
+
readyForPanel?: boolean,
|
|
72
|
+
|
|
73
|
+
oldHosts?: string[]
|
|
74
|
+
|
|
75
|
+
betting?: boolean,
|
|
76
|
+
|
|
77
|
+
backPressBounceTimeSeconds: number,
|
|
78
|
+
backPressesToShowHome: number,
|
|
79
|
+
homeOnBackPressEnabled: boolean,
|
|
80
|
+
homeButtonEnabled: boolean,
|
|
81
|
+
|
|
82
|
+
version: number
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface AuthorizationActionMapping {
|
|
86
|
+
hasNextAction: string,
|
|
87
|
+
nextActionIn: string,
|
|
88
|
+
changeNumberCaption: string,
|
|
89
|
+
nextActionCaption: string,
|
|
90
|
+
nextActionPatternCaption: string,
|
|
91
|
+
actualTitlePattern: string,
|
|
92
|
+
expiredTitlePattern: string,
|
|
93
|
+
subtitle: string,
|
|
94
|
+
when: string,
|
|
95
|
+
authorized: string
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface LocalizationMap {
|
|
99
|
+
[key: string]: Localization
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface IOfferSectionMapping {
|
|
103
|
+
offers: string
|
|
104
|
+
title: string
|
|
105
|
+
internal: [string, any][]
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface IOfferResultMapping {
|
|
109
|
+
id: string,
|
|
110
|
+
backgroundImage: string,
|
|
111
|
+
foregroundImage: string,
|
|
112
|
+
emoji: string,
|
|
113
|
+
emojiCaption: string,
|
|
114
|
+
buttonText: string,
|
|
115
|
+
mappingName: string
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface LocalizedString {
|
|
119
|
+
en: string,
|
|
120
|
+
ru: string
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface Localization {
|
|
124
|
+
numberWillReceiveACallPattern: string,
|
|
125
|
+
numberReceivedACallPattern: string,
|
|
126
|
+
numberReceivedASmsPattern: string,
|
|
127
|
+
numberWillReceiveASmsPattern: string,
|
|
128
|
+
enterLastFourDigits: string,
|
|
129
|
+
enterCodeFromSms: string,
|
|
130
|
+
callAgainSPattern: string,
|
|
131
|
+
callAgain: string,
|
|
132
|
+
smsAgain: string,
|
|
133
|
+
smsAgainSPattern: string,
|
|
134
|
+
changeNumber: string,
|
|
135
|
+
sendSms: string,
|
|
136
|
+
sendSmsSPattern: string,
|
|
137
|
+
unfortunatelyYourTriesLeft: string,
|
|
138
|
+
|
|
139
|
+
error_phone: string,
|
|
140
|
+
error_serverTitle: string,
|
|
141
|
+
error_serverMessage: string,
|
|
142
|
+
error_serverOkButton: string,
|
|
143
|
+
error_serverAgainButton: string,
|
|
144
|
+
error_serverExitButton: string,
|
|
145
|
+
error_invalidCode: string
|
|
146
|
+
|
|
147
|
+
changeNumber_title: string,
|
|
148
|
+
changeNumber_message: string,
|
|
149
|
+
changeNumber_no: string,
|
|
150
|
+
changeNumber_yes: string,
|
|
151
|
+
|
|
152
|
+
next_title: string,
|
|
153
|
+
next_message: string,
|
|
154
|
+
next_yes: string,
|
|
155
|
+
next_no: string,
|
|
156
|
+
|
|
157
|
+
supportCaption: string,
|
|
158
|
+
appIsNotInstalledCaption: string,
|
|
159
|
+
|
|
160
|
+
game_spin: string,
|
|
161
|
+
game_balance: string,
|
|
162
|
+
game_balance_pattern: string,
|
|
163
|
+
game_win: string,
|
|
164
|
+
game_win_pattern: string,
|
|
165
|
+
game_authorize: string,
|
|
166
|
+
game_demo_welcome: string,
|
|
167
|
+
game_demo_available_after_auth: string,
|
|
168
|
+
game_min_rate_error_pattern: string,
|
|
169
|
+
game_yourLevel: string,
|
|
170
|
+
|
|
171
|
+
auth_title: ColoredString,
|
|
172
|
+
auth_subtitle: ColoredString
|
|
173
|
+
auth_changeNumber: string,
|
|
174
|
+
auth_getAccess: string,
|
|
175
|
+
auth_enterAsGuest: string,
|
|
176
|
+
auth_privacyPolicyAcceptance: string,
|
|
177
|
+
auth_privacyPolicy: ColoredString,
|
|
178
|
+
|
|
179
|
+
homeHint: string
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface ColoredString {
|
|
183
|
+
text: string,
|
|
184
|
+
colors: ColoredSpan[]
|
|
185
|
+
mappingName: string
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
interface ColoredSpan {
|
|
189
|
+
from: number,
|
|
190
|
+
to: number,
|
|
191
|
+
color: string
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export interface ColoredStringMapping {
|
|
195
|
+
text: string,
|
|
196
|
+
colors: string,
|
|
197
|
+
internal: [string, ColoredSpanMapping][]
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface ColoredSpanMapping {
|
|
201
|
+
from: string,
|
|
202
|
+
to: string,
|
|
203
|
+
color: string
|
|
204
|
+
}
|
|
205
|
+
export interface ConfigMapping {
|
|
206
|
+
fullAccess: string,
|
|
207
|
+
appsflyerKey: string,
|
|
208
|
+
onesignalKey: string,
|
|
209
|
+
allowedCountries: string,
|
|
210
|
+
excludedCountries: string,
|
|
211
|
+
supportUrl: string,
|
|
212
|
+
privacyPolicyUrl: string,
|
|
213
|
+
localization: string,
|
|
214
|
+
|
|
215
|
+
backPressBounceTimeSeconds: string,
|
|
216
|
+
backPressesToShowHome: string,
|
|
217
|
+
homeOnBackPressEnabled: string,
|
|
218
|
+
homeButtonEnabled: string,
|
|
219
|
+
|
|
220
|
+
internal: [string, LocalizationMapping][],
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface LocalizationMapping {
|
|
224
|
+
game_spin: string,
|
|
225
|
+
game_balance_pattern: string,
|
|
226
|
+
game_win_pattern: string
|
|
227
|
+
game_authorize: string,
|
|
228
|
+
game_demo_welcome: string,
|
|
229
|
+
game_demo_available_after_auth: string,
|
|
230
|
+
game_min_rate_error_pattern: string,
|
|
231
|
+
game_yourLevel: string,
|
|
232
|
+
|
|
233
|
+
error_phone: string,
|
|
234
|
+
error_serverTitle: string,
|
|
235
|
+
error_serverMessage: string,
|
|
236
|
+
error_serverOkButton: string,
|
|
237
|
+
error_serverAgainButton: string,
|
|
238
|
+
error_serverExitButton: string,
|
|
239
|
+
error_invalidCode: string
|
|
240
|
+
|
|
241
|
+
changeNumber_title: string,
|
|
242
|
+
changeNumber_message: string,
|
|
243
|
+
changeNumber_no: string,
|
|
244
|
+
changeNumber_yes: string,
|
|
245
|
+
|
|
246
|
+
next_title: string,
|
|
247
|
+
next_message: string,
|
|
248
|
+
next_yes: string,
|
|
249
|
+
next_no: string,
|
|
250
|
+
|
|
251
|
+
supportCaption: string,
|
|
252
|
+
appIsNotInstalledCaption: string,
|
|
253
|
+
|
|
254
|
+
auth_title: string,
|
|
255
|
+
auth_subtitle: string
|
|
256
|
+
auth_getAccess: string,
|
|
257
|
+
auth_enterAsGuest: string,
|
|
258
|
+
auth_privacyPolicyAcceptance: string,
|
|
259
|
+
auth_privacyPolicy: string,
|
|
260
|
+
|
|
261
|
+
homeHint: string,
|
|
262
|
+
|
|
263
|
+
internal: [string, ColoredStringMapping][]
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export let asoConfigToDefault_v5 = (config: ASOConfig_v5): ASODefaultConfig => {
|
|
267
|
+
return {
|
|
268
|
+
id: config.id,
|
|
269
|
+
bundle: config.bundle,
|
|
270
|
+
name: config.name,
|
|
271
|
+
email: config.email,
|
|
272
|
+
host: config.host,
|
|
273
|
+
ip: config.ip,
|
|
274
|
+
sshPassword: config.sshPassword,
|
|
275
|
+
sshPort: config.sshPort,
|
|
276
|
+
trackingLink: config.trackingLink,
|
|
277
|
+
newTrackingLink: config.newTrackingLink,
|
|
278
|
+
|
|
279
|
+
fullAccess: config.fullAccess,
|
|
280
|
+
appsflyerKey: config.appsflyerKey,
|
|
281
|
+
onesignalKey: config.onesignalKey,
|
|
282
|
+
onesignalRestApiKey: config.onesignalRestApiKey,
|
|
283
|
+
allowedCountries: config.allowedCountries,
|
|
284
|
+
excludedCountries: config.excludedCountries,
|
|
285
|
+
|
|
286
|
+
callCoolDown: config.callCoolDown,
|
|
287
|
+
smsCoolDown: config.smsCoolDown,
|
|
288
|
+
maxSmsTries: config.maxSmsTries,
|
|
289
|
+
maxCallTries: config.maxCallTries,
|
|
290
|
+
smscLogin: config.smscLogin,
|
|
291
|
+
smscPassword: config.sshPassword,
|
|
292
|
+
|
|
293
|
+
support: config.support,
|
|
294
|
+
|
|
295
|
+
configMapping: config.configMapping,
|
|
296
|
+
offerSectionMapping: config.offerSectionMapping,
|
|
297
|
+
authorizationActionMapping: config.authorizationActionMapping,
|
|
298
|
+
|
|
299
|
+
configEndpoint: config.configEndpoint,
|
|
300
|
+
offersEndpoint: config.offersEndpoint,
|
|
301
|
+
nextActionEndpoint: config.nextActionEndpoint,
|
|
302
|
+
currentActionEndpoint: config.currentActionEndpoint,
|
|
303
|
+
validationEndpoint: config.validationEndpoint,
|
|
304
|
+
imageEndpoint: config.imageEndpoint,
|
|
305
|
+
|
|
306
|
+
sectionsParameter: config.sectionsParameter,
|
|
307
|
+
phoneParameter: config.phoneParameter,
|
|
308
|
+
codeParameter: config.codeParameter,
|
|
309
|
+
validityParameter: config.validityParameter,
|
|
310
|
+
appsflyerIdParameter: config.appsflyerIdParameter,
|
|
311
|
+
advertisingIdParameter: config.advertisingIdParameter,
|
|
312
|
+
onesignalIdParameter: config.onesignalIdParameter,
|
|
313
|
+
offerIdParameter: config.offerIdParameter,
|
|
314
|
+
countryCodeParameter: config.countryCodeParameter,
|
|
315
|
+
|
|
316
|
+
redirectFolderName: config.redirectFolderName,
|
|
317
|
+
redirectHtmlName: config.redirectHtmlName,
|
|
318
|
+
redirectJsName: config.redirectJsName,
|
|
319
|
+
redirectJsCustomNumberParameter: config.redirectJsCustomNumberParameter,
|
|
320
|
+
|
|
321
|
+
skipCode: config.skipCode,
|
|
322
|
+
externalIpGeo: config.externalIpGeo,
|
|
323
|
+
exportedTranslations: config.exportedTranslations,
|
|
324
|
+
readyForPanel: config.readyForPanel,
|
|
325
|
+
|
|
326
|
+
version: 5
|
|
327
|
+
}
|
|
328
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface ASODefaultConfig {
|
|
2
2
|
id: number,
|
|
3
3
|
bundle: string,
|
|
4
4
|
name: string,
|
|
@@ -6,6 +6,7 @@ export interface DefaultConfig {
|
|
|
6
6
|
host: string,
|
|
7
7
|
ip: string,
|
|
8
8
|
sshPassword: string,
|
|
9
|
+
sshPort?: string,
|
|
9
10
|
trackingLink: string,
|
|
10
11
|
|
|
11
12
|
fullAccess: boolean,
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Model, model, Schema } from "mongoose";
|
|
2
|
+
|
|
3
|
+
// TODO add date of policy in case we need to recreate it
|
|
4
|
+
// and all data necessary. test
|
|
5
|
+
export interface IApp {
|
|
6
|
+
id: number
|
|
7
|
+
name: string
|
|
8
|
+
email: string
|
|
9
|
+
bundle: string
|
|
10
|
+
pushesEnabled?: boolean,
|
|
11
|
+
pastebinUrl: string,
|
|
12
|
+
policyUrl: string | null
|
|
13
|
+
|
|
14
|
+
onesignalAppId: string
|
|
15
|
+
onesignalRestApiKey: string
|
|
16
|
+
|
|
17
|
+
generationOptions: IAppGenerationOptions
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IAppGenerationOptions {
|
|
21
|
+
splashActivityClassName: string
|
|
22
|
+
mainActivityClassName: string
|
|
23
|
+
filePickerTitle: string
|
|
24
|
+
linkName: string,
|
|
25
|
+
savedName: string
|
|
26
|
+
|
|
27
|
+
paranoidSeed: number
|
|
28
|
+
keyFileName: string
|
|
29
|
+
|
|
30
|
+
keyDeveloperName: string
|
|
31
|
+
keyDeveloperOrganization: string
|
|
32
|
+
keyCountryCode: string
|
|
33
|
+
keyCity: string
|
|
34
|
+
keyAlias: string
|
|
35
|
+
keyPassword: string
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
interface ILinks {
|
|
40
|
+
stream: string // https://host/{key}
|
|
41
|
+
organic: string // https://host/key
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const FlashAppSchema = new Schema({
|
|
45
|
+
id: {
|
|
46
|
+
type: Number,
|
|
47
|
+
unique: true
|
|
48
|
+
},
|
|
49
|
+
name: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: ""
|
|
52
|
+
},
|
|
53
|
+
email: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: ""
|
|
56
|
+
},
|
|
57
|
+
bundle: {
|
|
58
|
+
type: String,
|
|
59
|
+
unique: false
|
|
60
|
+
},
|
|
61
|
+
enabled: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: true
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
onesignalAppId: String,
|
|
67
|
+
onesignalRestApiKey: String,
|
|
68
|
+
|
|
69
|
+
appsflyerEnabled: Boolean,
|
|
70
|
+
appsflyerKey: String,
|
|
71
|
+
|
|
72
|
+
uidParameter: String,
|
|
73
|
+
|
|
74
|
+
geos: String,
|
|
75
|
+
|
|
76
|
+
privacyPolicyActivityClassName: String,
|
|
77
|
+
logicClassName: String,
|
|
78
|
+
appClassName: String,
|
|
79
|
+
|
|
80
|
+
paramsMapping: Object,
|
|
81
|
+
configMapping: Object,
|
|
82
|
+
version: Number
|
|
83
|
+
})
|
|
84
|
+
|
package/src/index.ts
CHANGED
|
@@ -8,4 +8,8 @@ export {ASOConfig_v3, asoConfigToDefault_v3} from "./aso/config/aso-config-v3"
|
|
|
8
8
|
export {ASOConfig_v4, asoConfigToDefault_v4} from "./aso/config/aso-config-v4"
|
|
9
9
|
export {IPush} from "./shared/push"
|
|
10
10
|
|
|
11
|
-
export { IOffer } from "./shared/offer"
|
|
11
|
+
export { IOffer } from "./shared/offer"
|
|
12
|
+
|
|
13
|
+
export {IOfferWallSection} from "./aso/offerwall/offerwall-section"
|
|
14
|
+
export {IOfferWallOffer} from "./aso/offerwall/offerwall-offer"
|
|
15
|
+
export {IOfferWallResponse} from "./aso/offerwall/offerwall-response"
|
package/src/shared/offer.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export interface IOffer {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
id: string
|
|
3
|
+
name: string
|
|
4
|
+
graphicFolder: string,
|
|
5
|
+
geo: string,
|
|
6
|
+
emojiIcon?: string,
|
|
7
|
+
emojiCaption?: string,
|
|
8
|
+
hidden?: boolean,
|
|
9
|
+
customUrl?: string
|
|
10
|
+
newTracker?: boolean
|
|
10
11
|
}
|