@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,19 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface AuthorizationActionMapping {
|
|
3
|
-
hasNextAction: string;
|
|
4
|
-
nextActionIn: string;
|
|
5
|
-
changeNumberCaption: string;
|
|
6
|
-
nextActionCaption: string;
|
|
7
|
-
nextActionPatternCaption: string;
|
|
8
|
-
actualTitlePattern: string;
|
|
9
|
-
expiredTitlePattern: string;
|
|
10
|
-
subtitle: string;
|
|
11
|
-
when: string;
|
|
12
|
-
authorized: string;
|
|
13
|
-
}
|
|
14
|
-
interface LocalizationMap {
|
|
15
|
-
[key: string]: Localization;
|
|
16
|
-
}
|
|
1
|
+
import { ASODefaultConfig } from "./aso-default-config";
|
|
17
2
|
export interface ASOConfig_v4 {
|
|
18
3
|
name: string;
|
|
19
4
|
email: string;
|
|
@@ -22,7 +7,9 @@ export interface ASOConfig_v4 {
|
|
|
22
7
|
host: string;
|
|
23
8
|
ip: string;
|
|
24
9
|
sshPassword: string;
|
|
10
|
+
sshPort?: string;
|
|
25
11
|
trackingLink: string;
|
|
12
|
+
newTrackingLink?: string;
|
|
26
13
|
fullAccess: boolean;
|
|
27
14
|
appsflyerKey: string;
|
|
28
15
|
onesignalKey: string;
|
|
@@ -75,15 +62,31 @@ export interface ASOConfig_v4 {
|
|
|
75
62
|
pinImitationCountries?: string;
|
|
76
63
|
exportedTranslations?: boolean;
|
|
77
64
|
readyForPanel?: boolean;
|
|
65
|
+
oldHosts?: string[];
|
|
78
66
|
betting?: boolean;
|
|
79
67
|
version: number;
|
|
80
68
|
}
|
|
81
|
-
interface
|
|
69
|
+
export interface AuthorizationActionMapping {
|
|
70
|
+
hasNextAction: string;
|
|
71
|
+
nextActionIn: string;
|
|
72
|
+
changeNumberCaption: string;
|
|
73
|
+
nextActionCaption: string;
|
|
74
|
+
nextActionPatternCaption: string;
|
|
75
|
+
actualTitlePattern: string;
|
|
76
|
+
expiredTitlePattern: string;
|
|
77
|
+
subtitle: string;
|
|
78
|
+
when: string;
|
|
79
|
+
authorized: string;
|
|
80
|
+
}
|
|
81
|
+
interface LocalizationMap {
|
|
82
|
+
[key: string]: Localization;
|
|
83
|
+
}
|
|
84
|
+
export interface IOfferSectionMapping {
|
|
82
85
|
offers: string;
|
|
83
86
|
title: string;
|
|
84
87
|
internal: [string, any][];
|
|
85
88
|
}
|
|
86
|
-
interface IOfferResultMapping {
|
|
89
|
+
export interface IOfferResultMapping {
|
|
87
90
|
id: string;
|
|
88
91
|
backgroundImage: string;
|
|
89
92
|
foregroundImage: string;
|
|
@@ -92,11 +95,11 @@ interface IOfferResultMapping {
|
|
|
92
95
|
buttonText: string;
|
|
93
96
|
mappingName: string;
|
|
94
97
|
}
|
|
95
|
-
interface LocalizedString {
|
|
98
|
+
export interface LocalizedString {
|
|
96
99
|
en: string;
|
|
97
100
|
ru: string;
|
|
98
101
|
}
|
|
99
|
-
interface Localization {
|
|
102
|
+
export interface Localization {
|
|
100
103
|
numberWillReceiveACallPattern: string;
|
|
101
104
|
numberReceivedACallPattern: string;
|
|
102
105
|
numberReceivedASmsPattern: string;
|
|
@@ -141,7 +144,7 @@ interface Localization {
|
|
|
141
144
|
auth_privacyPolicyAcceptance: string;
|
|
142
145
|
auth_privacyPolicy: ColoredString;
|
|
143
146
|
}
|
|
144
|
-
interface ColoredString {
|
|
147
|
+
export interface ColoredString {
|
|
145
148
|
text: string;
|
|
146
149
|
colors: ColoredSpan[];
|
|
147
150
|
mappingName: string;
|
|
@@ -151,17 +154,17 @@ interface ColoredSpan {
|
|
|
151
154
|
to: number;
|
|
152
155
|
color: string;
|
|
153
156
|
}
|
|
154
|
-
interface ColoredStringMapping {
|
|
157
|
+
export interface ColoredStringMapping {
|
|
155
158
|
text: string;
|
|
156
159
|
colors: string;
|
|
157
160
|
internal: [string, ColoredSpanMapping][];
|
|
158
161
|
}
|
|
159
|
-
interface ColoredSpanMapping {
|
|
162
|
+
export interface ColoredSpanMapping {
|
|
160
163
|
from: string;
|
|
161
164
|
to: string;
|
|
162
165
|
color: string;
|
|
163
166
|
}
|
|
164
|
-
interface ConfigMapping {
|
|
167
|
+
export interface ConfigMapping {
|
|
165
168
|
fullAccess: string;
|
|
166
169
|
appsflyerKey: string;
|
|
167
170
|
onesignalKey: string;
|
|
@@ -172,7 +175,7 @@ interface ConfigMapping {
|
|
|
172
175
|
localization: string;
|
|
173
176
|
internal: [string, LocalizationMapping][];
|
|
174
177
|
}
|
|
175
|
-
interface LocalizationMapping {
|
|
178
|
+
export interface LocalizationMapping {
|
|
176
179
|
game_spin: string;
|
|
177
180
|
game_balance_pattern: string;
|
|
178
181
|
game_win_pattern: string;
|
|
@@ -201,5 +204,5 @@ interface LocalizationMapping {
|
|
|
201
204
|
auth_privacyPolicy: string;
|
|
202
205
|
internal: [string, ColoredStringMapping][];
|
|
203
206
|
}
|
|
204
|
-
export declare let asoConfigToDefault_v4: (config: ASOConfig_v4) =>
|
|
207
|
+
export declare let asoConfigToDefault_v4: (config: ASOConfig_v4) => ASODefaultConfig;
|
|
205
208
|
export {};
|
|
@@ -10,7 +10,9 @@ let asoConfigToDefault_v4 = (config) => {
|
|
|
10
10
|
host: config.host,
|
|
11
11
|
ip: config.ip,
|
|
12
12
|
sshPassword: config.sshPassword,
|
|
13
|
+
sshPort: config.sshPort,
|
|
13
14
|
trackingLink: config.trackingLink,
|
|
15
|
+
newTrackingLink: config.newTrackingLink,
|
|
14
16
|
fullAccess: config.fullAccess,
|
|
15
17
|
appsflyerKey: config.appsflyerKey,
|
|
16
18
|
onesignalKey: config.onesignalKey,
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { ASODefaultConfig } from "./aso-default-config";
|
|
2
|
+
export interface ASOConfig_v5 {
|
|
3
|
+
name: string;
|
|
4
|
+
email: string;
|
|
5
|
+
id: number;
|
|
6
|
+
bundle: string;
|
|
7
|
+
host: string;
|
|
8
|
+
ip: string;
|
|
9
|
+
sshPassword: string;
|
|
10
|
+
sshPort?: string;
|
|
11
|
+
trackingLink: string;
|
|
12
|
+
newTrackingLink?: string;
|
|
13
|
+
fullAccess: boolean;
|
|
14
|
+
appsflyerKey: string;
|
|
15
|
+
onesignalKey: string;
|
|
16
|
+
onesignalRestApiKey?: string;
|
|
17
|
+
allowedCountries: string;
|
|
18
|
+
excludedCountries: string;
|
|
19
|
+
supportUrl?: string;
|
|
20
|
+
support?: {
|
|
21
|
+
[key: string]: string;
|
|
22
|
+
};
|
|
23
|
+
privacyPolicyUrl: string;
|
|
24
|
+
callCoolDown: number;
|
|
25
|
+
smsCoolDown: number;
|
|
26
|
+
maxSmsTries: number;
|
|
27
|
+
maxCallTries: number;
|
|
28
|
+
smscLogin: string;
|
|
29
|
+
smscPassword: string;
|
|
30
|
+
localization?: LocalizationMap | Localization;
|
|
31
|
+
localizationMapping: LocalizationMapping;
|
|
32
|
+
authorizationActionMapping: AuthorizationActionMapping;
|
|
33
|
+
offerSectionMapping: IOfferSectionMapping;
|
|
34
|
+
offerResultMapping: IOfferResultMapping;
|
|
35
|
+
configMapping: ConfigMapping;
|
|
36
|
+
coloredStringMapping: ColoredStringMapping;
|
|
37
|
+
coloredSpanMapping: ColoredSpanMapping;
|
|
38
|
+
configEndpoint: string;
|
|
39
|
+
offersEndpoint: string;
|
|
40
|
+
nextActionEndpoint: string;
|
|
41
|
+
currentActionEndpoint: string;
|
|
42
|
+
validationEndpoint: string;
|
|
43
|
+
imageEndpoint: string;
|
|
44
|
+
sectionsParameter: string;
|
|
45
|
+
phoneParameter: string;
|
|
46
|
+
codeParameter: string;
|
|
47
|
+
validityParameter: string;
|
|
48
|
+
appsflyerIdParameter: string;
|
|
49
|
+
advertisingIdParameter: string;
|
|
50
|
+
onesignalIdParameter: string;
|
|
51
|
+
offerIdParameter: string;
|
|
52
|
+
countryCodeParameter: string;
|
|
53
|
+
redirectFolderName?: string;
|
|
54
|
+
redirectHtmlName: string;
|
|
55
|
+
redirectJsName: string;
|
|
56
|
+
redirectJsCustomNumberParameter?: string;
|
|
57
|
+
networkErrorDialogTitle: LocalizedString;
|
|
58
|
+
networkErrorDialogMessage: LocalizedString;
|
|
59
|
+
networkErrorDialogButton: LocalizedString;
|
|
60
|
+
skipCode?: boolean;
|
|
61
|
+
externalIpGeo?: boolean;
|
|
62
|
+
pinImitationCountries?: string;
|
|
63
|
+
exportedTranslations?: boolean;
|
|
64
|
+
readyForPanel?: boolean;
|
|
65
|
+
oldHosts?: string[];
|
|
66
|
+
betting?: boolean;
|
|
67
|
+
backPressBounceTimeSeconds: number;
|
|
68
|
+
backPressesToShowHome: number;
|
|
69
|
+
homeOnBackPressEnabled: boolean;
|
|
70
|
+
homeButtonEnabled: boolean;
|
|
71
|
+
version: number;
|
|
72
|
+
}
|
|
73
|
+
export interface AuthorizationActionMapping {
|
|
74
|
+
hasNextAction: string;
|
|
75
|
+
nextActionIn: string;
|
|
76
|
+
changeNumberCaption: string;
|
|
77
|
+
nextActionCaption: string;
|
|
78
|
+
nextActionPatternCaption: string;
|
|
79
|
+
actualTitlePattern: string;
|
|
80
|
+
expiredTitlePattern: string;
|
|
81
|
+
subtitle: string;
|
|
82
|
+
when: string;
|
|
83
|
+
authorized: string;
|
|
84
|
+
}
|
|
85
|
+
interface LocalizationMap {
|
|
86
|
+
[key: string]: Localization;
|
|
87
|
+
}
|
|
88
|
+
export interface IOfferSectionMapping {
|
|
89
|
+
offers: string;
|
|
90
|
+
title: string;
|
|
91
|
+
internal: [string, any][];
|
|
92
|
+
}
|
|
93
|
+
export interface IOfferResultMapping {
|
|
94
|
+
id: string;
|
|
95
|
+
backgroundImage: string;
|
|
96
|
+
foregroundImage: string;
|
|
97
|
+
emoji: string;
|
|
98
|
+
emojiCaption: string;
|
|
99
|
+
buttonText: string;
|
|
100
|
+
mappingName: string;
|
|
101
|
+
}
|
|
102
|
+
export interface LocalizedString {
|
|
103
|
+
en: string;
|
|
104
|
+
ru: string;
|
|
105
|
+
}
|
|
106
|
+
export interface Localization {
|
|
107
|
+
numberWillReceiveACallPattern: string;
|
|
108
|
+
numberReceivedACallPattern: string;
|
|
109
|
+
numberReceivedASmsPattern: string;
|
|
110
|
+
numberWillReceiveASmsPattern: string;
|
|
111
|
+
enterLastFourDigits: string;
|
|
112
|
+
enterCodeFromSms: string;
|
|
113
|
+
callAgainSPattern: string;
|
|
114
|
+
callAgain: string;
|
|
115
|
+
smsAgain: string;
|
|
116
|
+
smsAgainSPattern: string;
|
|
117
|
+
changeNumber: string;
|
|
118
|
+
sendSms: string;
|
|
119
|
+
sendSmsSPattern: string;
|
|
120
|
+
unfortunatelyYourTriesLeft: string;
|
|
121
|
+
error_phone: string;
|
|
122
|
+
error_serverTitle: string;
|
|
123
|
+
error_serverMessage: string;
|
|
124
|
+
error_serverOkButton: string;
|
|
125
|
+
error_serverAgainButton: string;
|
|
126
|
+
error_serverExitButton: string;
|
|
127
|
+
error_invalidCode: string;
|
|
128
|
+
changeNumber_title: string;
|
|
129
|
+
changeNumber_message: string;
|
|
130
|
+
changeNumber_no: string;
|
|
131
|
+
changeNumber_yes: string;
|
|
132
|
+
next_title: string;
|
|
133
|
+
next_message: string;
|
|
134
|
+
next_yes: string;
|
|
135
|
+
next_no: string;
|
|
136
|
+
supportCaption: string;
|
|
137
|
+
appIsNotInstalledCaption: string;
|
|
138
|
+
game_spin: string;
|
|
139
|
+
game_balance: string;
|
|
140
|
+
game_balance_pattern: string;
|
|
141
|
+
game_win: string;
|
|
142
|
+
game_win_pattern: string;
|
|
143
|
+
game_authorize: string;
|
|
144
|
+
game_demo_welcome: string;
|
|
145
|
+
game_demo_available_after_auth: string;
|
|
146
|
+
game_min_rate_error_pattern: string;
|
|
147
|
+
game_yourLevel: string;
|
|
148
|
+
auth_title: ColoredString;
|
|
149
|
+
auth_subtitle: ColoredString;
|
|
150
|
+
auth_changeNumber: string;
|
|
151
|
+
auth_getAccess: string;
|
|
152
|
+
auth_enterAsGuest: string;
|
|
153
|
+
auth_privacyPolicyAcceptance: string;
|
|
154
|
+
auth_privacyPolicy: ColoredString;
|
|
155
|
+
homeHint: string;
|
|
156
|
+
}
|
|
157
|
+
export interface ColoredString {
|
|
158
|
+
text: string;
|
|
159
|
+
colors: ColoredSpan[];
|
|
160
|
+
mappingName: string;
|
|
161
|
+
}
|
|
162
|
+
interface ColoredSpan {
|
|
163
|
+
from: number;
|
|
164
|
+
to: number;
|
|
165
|
+
color: string;
|
|
166
|
+
}
|
|
167
|
+
export interface ColoredStringMapping {
|
|
168
|
+
text: string;
|
|
169
|
+
colors: string;
|
|
170
|
+
internal: [string, ColoredSpanMapping][];
|
|
171
|
+
}
|
|
172
|
+
export interface ColoredSpanMapping {
|
|
173
|
+
from: string;
|
|
174
|
+
to: string;
|
|
175
|
+
color: string;
|
|
176
|
+
}
|
|
177
|
+
export interface ConfigMapping {
|
|
178
|
+
fullAccess: string;
|
|
179
|
+
appsflyerKey: string;
|
|
180
|
+
onesignalKey: string;
|
|
181
|
+
allowedCountries: string;
|
|
182
|
+
excludedCountries: string;
|
|
183
|
+
supportUrl: string;
|
|
184
|
+
privacyPolicyUrl: string;
|
|
185
|
+
localization: string;
|
|
186
|
+
backPressBounceTimeSeconds: string;
|
|
187
|
+
backPressesToShowHome: string;
|
|
188
|
+
homeOnBackPressEnabled: string;
|
|
189
|
+
homeButtonEnabled: string;
|
|
190
|
+
internal: [string, LocalizationMapping][];
|
|
191
|
+
}
|
|
192
|
+
export interface LocalizationMapping {
|
|
193
|
+
game_spin: string;
|
|
194
|
+
game_balance_pattern: string;
|
|
195
|
+
game_win_pattern: string;
|
|
196
|
+
game_authorize: string;
|
|
197
|
+
game_demo_welcome: string;
|
|
198
|
+
game_demo_available_after_auth: string;
|
|
199
|
+
game_min_rate_error_pattern: string;
|
|
200
|
+
game_yourLevel: string;
|
|
201
|
+
error_phone: string;
|
|
202
|
+
error_serverTitle: string;
|
|
203
|
+
error_serverMessage: string;
|
|
204
|
+
error_serverOkButton: string;
|
|
205
|
+
error_serverAgainButton: string;
|
|
206
|
+
error_serverExitButton: string;
|
|
207
|
+
error_invalidCode: string;
|
|
208
|
+
changeNumber_title: string;
|
|
209
|
+
changeNumber_message: string;
|
|
210
|
+
changeNumber_no: string;
|
|
211
|
+
changeNumber_yes: string;
|
|
212
|
+
next_title: string;
|
|
213
|
+
next_message: string;
|
|
214
|
+
next_yes: string;
|
|
215
|
+
next_no: string;
|
|
216
|
+
supportCaption: string;
|
|
217
|
+
appIsNotInstalledCaption: string;
|
|
218
|
+
auth_title: string;
|
|
219
|
+
auth_subtitle: string;
|
|
220
|
+
auth_getAccess: string;
|
|
221
|
+
auth_enterAsGuest: string;
|
|
222
|
+
auth_privacyPolicyAcceptance: string;
|
|
223
|
+
auth_privacyPolicy: string;
|
|
224
|
+
homeHint: string;
|
|
225
|
+
internal: [string, ColoredStringMapping][];
|
|
226
|
+
}
|
|
227
|
+
export declare let asoConfigToDefault_v5: (config: ASOConfig_v5) => ASODefaultConfig;
|
|
228
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.asoConfigToDefault_v5 = void 0;
|
|
4
|
+
let asoConfigToDefault_v5 = (config) => {
|
|
5
|
+
return {
|
|
6
|
+
id: config.id,
|
|
7
|
+
bundle: config.bundle,
|
|
8
|
+
name: config.name,
|
|
9
|
+
email: config.email,
|
|
10
|
+
host: config.host,
|
|
11
|
+
ip: config.ip,
|
|
12
|
+
sshPassword: config.sshPassword,
|
|
13
|
+
sshPort: config.sshPort,
|
|
14
|
+
trackingLink: config.trackingLink,
|
|
15
|
+
newTrackingLink: config.newTrackingLink,
|
|
16
|
+
fullAccess: config.fullAccess,
|
|
17
|
+
appsflyerKey: config.appsflyerKey,
|
|
18
|
+
onesignalKey: config.onesignalKey,
|
|
19
|
+
onesignalRestApiKey: config.onesignalRestApiKey,
|
|
20
|
+
allowedCountries: config.allowedCountries,
|
|
21
|
+
excludedCountries: config.excludedCountries,
|
|
22
|
+
callCoolDown: config.callCoolDown,
|
|
23
|
+
smsCoolDown: config.smsCoolDown,
|
|
24
|
+
maxSmsTries: config.maxSmsTries,
|
|
25
|
+
maxCallTries: config.maxCallTries,
|
|
26
|
+
smscLogin: config.smscLogin,
|
|
27
|
+
smscPassword: config.sshPassword,
|
|
28
|
+
support: config.support,
|
|
29
|
+
configMapping: config.configMapping,
|
|
30
|
+
offerSectionMapping: config.offerSectionMapping,
|
|
31
|
+
authorizationActionMapping: config.authorizationActionMapping,
|
|
32
|
+
configEndpoint: config.configEndpoint,
|
|
33
|
+
offersEndpoint: config.offersEndpoint,
|
|
34
|
+
nextActionEndpoint: config.nextActionEndpoint,
|
|
35
|
+
currentActionEndpoint: config.currentActionEndpoint,
|
|
36
|
+
validationEndpoint: config.validationEndpoint,
|
|
37
|
+
imageEndpoint: config.imageEndpoint,
|
|
38
|
+
sectionsParameter: config.sectionsParameter,
|
|
39
|
+
phoneParameter: config.phoneParameter,
|
|
40
|
+
codeParameter: config.codeParameter,
|
|
41
|
+
validityParameter: config.validityParameter,
|
|
42
|
+
appsflyerIdParameter: config.appsflyerIdParameter,
|
|
43
|
+
advertisingIdParameter: config.advertisingIdParameter,
|
|
44
|
+
onesignalIdParameter: config.onesignalIdParameter,
|
|
45
|
+
offerIdParameter: config.offerIdParameter,
|
|
46
|
+
countryCodeParameter: config.countryCodeParameter,
|
|
47
|
+
redirectFolderName: config.redirectFolderName,
|
|
48
|
+
redirectHtmlName: config.redirectHtmlName,
|
|
49
|
+
redirectJsName: config.redirectJsName,
|
|
50
|
+
redirectJsCustomNumberParameter: config.redirectJsCustomNumberParameter,
|
|
51
|
+
skipCode: config.skipCode,
|
|
52
|
+
externalIpGeo: config.externalIpGeo,
|
|
53
|
+
exportedTranslations: config.exportedTranslations,
|
|
54
|
+
readyForPanel: config.readyForPanel,
|
|
55
|
+
version: 5
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
exports.asoConfigToDefault_v5 = asoConfigToDefault_v5;
|
|
@@ -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
|
fullAccess: boolean;
|
|
11
12
|
appsflyerKey: string;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Model, Schema } from "mongoose";
|
|
26
|
+
export interface IFlashApp {
|
|
27
|
+
id: number;
|
|
28
|
+
name: string;
|
|
29
|
+
email: string;
|
|
30
|
+
bundle: string;
|
|
31
|
+
pushesEnabled?: boolean;
|
|
32
|
+
pastebinUrl: string;
|
|
33
|
+
policyUrl: string | null;
|
|
34
|
+
onesignalAppId: string;
|
|
35
|
+
onesignalRestApiKey: string;
|
|
36
|
+
generationOptions: IAppGenerationOptions;
|
|
37
|
+
}
|
|
38
|
+
export interface IAppGenerationOptions {
|
|
39
|
+
splashActivityClassName: string;
|
|
40
|
+
mainActivityClassName: string;
|
|
41
|
+
filePickerTitle: string;
|
|
42
|
+
linkName: string;
|
|
43
|
+
savedName: string;
|
|
44
|
+
paranoidSeed: number;
|
|
45
|
+
keyFileName: string;
|
|
46
|
+
keyDeveloperName: string;
|
|
47
|
+
keyDeveloperOrganization: string;
|
|
48
|
+
keyCountryCode: string;
|
|
49
|
+
keyCity: string;
|
|
50
|
+
keyAlias: string;
|
|
51
|
+
keyPassword: string;
|
|
52
|
+
}
|
|
53
|
+
export declare const FlashAppSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
54
|
+
name: string;
|
|
55
|
+
email: string;
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
id?: number | undefined;
|
|
58
|
+
version?: number | undefined;
|
|
59
|
+
onesignalAppId?: string | undefined;
|
|
60
|
+
onesignalRestApiKey?: string | undefined;
|
|
61
|
+
appsflyerEnabled?: boolean | undefined;
|
|
62
|
+
appsflyerKey?: string | undefined;
|
|
63
|
+
uidParameter?: string | undefined;
|
|
64
|
+
geos?: string | undefined;
|
|
65
|
+
privacyPolicyActivityClassName?: string | undefined;
|
|
66
|
+
logicClassName?: string | undefined;
|
|
67
|
+
appClassName?: string | undefined;
|
|
68
|
+
paramsMapping?: any;
|
|
69
|
+
configMapping?: any;
|
|
70
|
+
bundle?: string | undefined;
|
|
71
|
+
}>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FlashAppSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.FlashAppSchema = new mongoose_1.Schema({
|
|
6
|
+
id: {
|
|
7
|
+
type: Number,
|
|
8
|
+
unique: true
|
|
9
|
+
},
|
|
10
|
+
name: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
email: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
bundle: {
|
|
19
|
+
type: String,
|
|
20
|
+
unique: false
|
|
21
|
+
},
|
|
22
|
+
enabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: true
|
|
25
|
+
},
|
|
26
|
+
onesignalAppId: String,
|
|
27
|
+
onesignalRestApiKey: String,
|
|
28
|
+
appsflyerEnabled: Boolean,
|
|
29
|
+
appsflyerKey: String,
|
|
30
|
+
uidParameter: String,
|
|
31
|
+
geos: String,
|
|
32
|
+
privacyPolicyActivityClassName: String,
|
|
33
|
+
logicClassName: String,
|
|
34
|
+
appClassName: String,
|
|
35
|
+
paramsMapping: Object,
|
|
36
|
+
configMapping: Object,
|
|
37
|
+
version: Number
|
|
38
|
+
});
|
package/lib/index.d.ts
CHANGED
|
@@ -8,3 +8,7 @@ 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
|
export { IOffer } from "./shared/offer";
|
|
11
|
+
export { IOfferWallSection } from "./aso/offerwall/offerwall-section";
|
|
12
|
+
export { IOfferWallOffer } from "./aso/offerwall/offerwall-offer";
|
|
13
|
+
export { IOfferWallResponse } from "./aso/offerwall/offerwall-response";
|
|
14
|
+
export { IFlashApp, FlashAppSchema } from "./flash/flash-app";
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.asoConfigToDefault_v4 = exports.asoConfigToDefault_v3 = exports.asoConfigToDefault_v2 = exports.asoConfigToDefault_v1 = exports.asoConfigToDefault_v0 = void 0;
|
|
3
|
+
exports.FlashAppSchema = exports.asoConfigToDefault_v4 = exports.asoConfigToDefault_v3 = exports.asoConfigToDefault_v2 = exports.asoConfigToDefault_v1 = exports.asoConfigToDefault_v0 = void 0;
|
|
4
4
|
var aso_config_v0_1 = require("./aso/config/aso-config-v0");
|
|
5
5
|
Object.defineProperty(exports, "asoConfigToDefault_v0", { enumerable: true, get: function () { return aso_config_v0_1.asoConfigToDefault_v0; } });
|
|
6
6
|
var aso_config_v1_1 = require("./aso/config/aso-config-v1");
|
|
@@ -11,3 +11,5 @@ var aso_config_v3_1 = require("./aso/config/aso-config-v3");
|
|
|
11
11
|
Object.defineProperty(exports, "asoConfigToDefault_v3", { enumerable: true, get: function () { return aso_config_v3_1.asoConfigToDefault_v3; } });
|
|
12
12
|
var aso_config_v4_1 = require("./aso/config/aso-config-v4");
|
|
13
13
|
Object.defineProperty(exports, "asoConfigToDefault_v4", { enumerable: true, get: function () { return aso_config_v4_1.asoConfigToDefault_v4; } });
|
|
14
|
+
var flash_app_1 = require("./flash/flash-app");
|
|
15
|
+
Object.defineProperty(exports, "FlashAppSchema", { enumerable: true, get: function () { return flash_app_1.FlashAppSchema; } });
|
package/lib/shared/offer.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bprotsyk/aso-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"description": "",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@types/module-alias": "^2.0.1",
|
|
24
|
-
"
|
|
24
|
+
"@types/mongoose": "^5.11.97",
|
|
25
|
+
"module-alias": "^2.2.2",
|
|
26
|
+
"mongoose": "^6.8.3"
|
|
25
27
|
},
|
|
26
28
|
"devDependencies": {
|
|
27
29
|
"typescript": "^4.8.0-dev.20220623"
|