@bprotsyk/aso-core 1.1.9 → 1.1.13

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.
@@ -0,0 +1,271 @@
1
+ import { DefaultConfig } from "./aso-default-config";
2
+ export interface ASOConfig_v0 {
3
+ id: number;
4
+ name: string;
5
+ email: string;
6
+ bundle: string;
7
+ skipping?: boolean;
8
+ alghoritm?: string;
9
+ ip: string;
10
+ sshPassword: string;
11
+ trackingLink: string;
12
+ clientSideValidation: boolean;
13
+ host: string;
14
+ fullAccess: boolean;
15
+ appsflyerKey: string;
16
+ onesignalKey: string;
17
+ onesignalRestApiKey?: string;
18
+ showVideo: boolean;
19
+ appsflyerEnabled: boolean;
20
+ singleFirst: boolean;
21
+ authAdEnabled: boolean;
22
+ allowedCountries: string;
23
+ excludedCountries: string;
24
+ supportUrl?: string;
25
+ support?: {
26
+ [key: string]: string;
27
+ };
28
+ privacyPolicyUrl: string;
29
+ callCoolDown: number;
30
+ smsCoolDown: number;
31
+ maxSmsTries: number;
32
+ maxCallTries: number;
33
+ smscLogin: string;
34
+ smscPassword: string;
35
+ autoSmsCodeCatch: boolean;
36
+ autoCallCodeCatch: boolean;
37
+ localization: LocalizationMap | Localization;
38
+ authorizationActionMapping: AuthorizationActionMapping;
39
+ offersSectionMapping: IOfferSectionMapping;
40
+ configMapping: ConfigMapping;
41
+ configEndpoint: string;
42
+ offersEndpoint: string;
43
+ offerEndpoint: string;
44
+ nextActionEndpoint: string;
45
+ currentActionEndpoint: string;
46
+ codeValidationEndpoint: string;
47
+ changeNumberEndpoint: string;
48
+ imageEndpoint: string;
49
+ categoriesQuery: string;
50
+ phoneQuery: string;
51
+ nameQuery: string;
52
+ codeQuery: string;
53
+ validityQuery: string;
54
+ resetUserQuery: string;
55
+ oldPhoneQuery: string;
56
+ newPhoneQuery: string;
57
+ appsflyerDataQuery: string;
58
+ offerIdParameter: string;
59
+ countryCodeParameter?: string;
60
+ redirectHtmlName: string;
61
+ redirectJsName: string;
62
+ redirectFolderName?: string;
63
+ redirectJsCustomNumberParameter?: string;
64
+ apiPrefix?: string;
65
+ emptyEmojiRequired?: boolean;
66
+ skipCode: boolean;
67
+ externalIpGeo: boolean;
68
+ exportedTranslations?: boolean;
69
+ readyForPanel?: boolean;
70
+ version: number;
71
+ }
72
+ interface AuthorizationActionMapping {
73
+ hasNextAction: string;
74
+ nextActionIn: string;
75
+ changeNumberCaption: string;
76
+ nextActionCaption: string;
77
+ nextActionPatternCaption: string;
78
+ actualTitlePattern: string;
79
+ expiredTitlePattern: string;
80
+ subtitle: string;
81
+ when: string;
82
+ authorized: string;
83
+ canChangeNumber: string;
84
+ }
85
+ interface LocalizationMap {
86
+ [key: string]: Localization;
87
+ }
88
+ interface IOfferSectionMapping {
89
+ id: string;
90
+ offers: string;
91
+ title: string;
92
+ palette: string;
93
+ internal: [string, any][];
94
+ }
95
+ interface Localization {
96
+ numberWillReceiveACallPattern: string;
97
+ numberReceivedACallPattern: string;
98
+ numberReceivedASmsPattern: string;
99
+ numberWillReceiveASmsPattern: string;
100
+ enterLastFourDigits: string;
101
+ enterCodeFromSms: string;
102
+ callAgainSPattern: string;
103
+ callAgain: string;
104
+ smsAgain: string;
105
+ smsAgainSPattern: string;
106
+ changeNumber: string;
107
+ sendSms: string;
108
+ sendSmsSPattern: string;
109
+ hhMm: string;
110
+ unfortunatelyYourTriesLeft: string;
111
+ introDialog_title: string;
112
+ introDialog_message: string;
113
+ introDialog_exit: string;
114
+ introDialog_yes: string;
115
+ introDialog_cancel: string;
116
+ error_phone: string;
117
+ error_name: string;
118
+ error_server: string;
119
+ error_invalidCode: string;
120
+ changeNumber_title: string;
121
+ changeNumber_message: string;
122
+ changeNumber_no: string;
123
+ changeNumber_yes: string;
124
+ next_title: string;
125
+ next_message: string;
126
+ next_yes: string;
127
+ next_no: string;
128
+ yes: string;
129
+ no: string;
130
+ cancel: string;
131
+ mainButton: string;
132
+ codeButton: string;
133
+ getFullAccess: string;
134
+ guestPlay: string;
135
+ guestLocked: string;
136
+ yourLevel: string;
137
+ supportCaption: string;
138
+ somethingWentWrong: string;
139
+ game_spin: string;
140
+ game_balance: string;
141
+ game_balance_pattern: string;
142
+ game_win: string;
143
+ game_win_pattern: string;
144
+ game_authorize: string;
145
+ game_demo_welcome: string;
146
+ game_demo_available_after_auth: string;
147
+ game_min_rate_error_pattern: string;
148
+ auth_changeTitle: string;
149
+ auth_changeMessage: string;
150
+ auth_titleTop: ColoredString;
151
+ auth_titleBottom: ColoredString;
152
+ auth_getAccess: string;
153
+ auth_subtitle: ColoredString;
154
+ auth_cantBeEmpty: string;
155
+ auth_nameHint: string;
156
+ auth_changeNumber: ColoredString;
157
+ auth_enterAsGuest: string;
158
+ auth_privacyPolicyAcceptance: string;
159
+ auth_privacyPolicy: ColoredString;
160
+ }
161
+ interface ColoredString {
162
+ text: string;
163
+ colors: ColoredSpan[];
164
+ mappingName: string;
165
+ }
166
+ interface ColoredSpan {
167
+ from: number;
168
+ to: number;
169
+ color: string;
170
+ }
171
+ interface ColoredStringMapping {
172
+ text: string;
173
+ colors: string;
174
+ internal: [string, ColoredSpanMapping][];
175
+ }
176
+ interface ColoredSpanMapping {
177
+ from: string;
178
+ to: string;
179
+ color: string;
180
+ }
181
+ interface ConfigMapping {
182
+ id: string;
183
+ fullAccess: string;
184
+ showVideo: string;
185
+ skipping?: string;
186
+ alghoritm?: string;
187
+ appsflyerEnabled: string;
188
+ appsflyerKey: string;
189
+ onesignalKey: string;
190
+ singleFirst: string;
191
+ allowedCountries: string;
192
+ excludedCountries: string;
193
+ supportUrl: string;
194
+ privacyPolicyUrl: string;
195
+ callCoolDown: string;
196
+ smsCoolDown: string;
197
+ maxSmsTries: string;
198
+ maxCallTries: string;
199
+ smscLogin: string;
200
+ smscPassword: string;
201
+ autoSmsCodeCatch: string;
202
+ autoCallCodeCatch: string;
203
+ localization: string;
204
+ internal: [string, LocalizationMapping][];
205
+ }
206
+ interface LocalizationMapping {
207
+ numberWillReceiveACallPattern: string;
208
+ numberReceivedACallPattern: string;
209
+ numberReceivedASmsPattern: string;
210
+ numberWillReceiveASmsPattern: string;
211
+ enterLastFourDigits: string;
212
+ enterCodeFromSms: string;
213
+ callAgainSPattern: string;
214
+ callAgain: string;
215
+ smsAgain: string;
216
+ smsAgainSPattern: string;
217
+ sendSms: string;
218
+ sendSmsSPattern: string;
219
+ hhMm: string;
220
+ unfortunatelyYourTriesLeft: string;
221
+ game_spin: string;
222
+ game_balance: string;
223
+ game_balance_pattern: string;
224
+ game_win: string;
225
+ game_win_pattern: string;
226
+ game_authorize: string;
227
+ game_demo_welcome: string;
228
+ game_demo_available_after_auth: string;
229
+ game_min_rate_error_pattern: string;
230
+ introDialog_title: string;
231
+ introDialog_message: string;
232
+ introDialog_yes: string;
233
+ introDialog_exit: string;
234
+ introDialog_cancel: string;
235
+ error_phone: string;
236
+ error_name: string;
237
+ error_server: string;
238
+ error_invalidCode: string;
239
+ changeNumber_title: string;
240
+ changeNumber_message: string;
241
+ changeNumber_no: string;
242
+ changeNumber_yes: string;
243
+ next_title: string;
244
+ next_message: string;
245
+ next_yes: string;
246
+ next_no: string;
247
+ yes: string;
248
+ no: string;
249
+ cancel: string;
250
+ getFullAccess: string;
251
+ guestPlay: string;
252
+ guestLocked: string;
253
+ yourLevel: string;
254
+ supportCaption: string;
255
+ somethingWentWrong: string;
256
+ auth_changeTitle: string;
257
+ auth_changeMessage: string;
258
+ auth_titleTop: string;
259
+ auth_titleBottom: string;
260
+ auth_getAccess: string;
261
+ auth_cantBeEmpty: string;
262
+ auth_subtitle: string;
263
+ auth_nameHint: string;
264
+ auth_changeNumber: string;
265
+ auth_enterAsGuest: string;
266
+ auth_privacyPolicyAcceptance: string;
267
+ auth_privacyPolicy: string;
268
+ internal: [string, ColoredStringMapping][];
269
+ }
270
+ export declare let asoConfigToDefault_v0: (config: ASOConfig_v0) => DefaultConfig;
271
+ export {};
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.asoConfigToDefault_v0 = void 0;
4
+ let asoConfigToDefault_v0 = (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
+ trackingLink: config.trackingLink,
14
+ fullAccess: config.fullAccess,
15
+ appsflyerKey: config.appsflyerKey,
16
+ onesignalKey: config.onesignalKey,
17
+ onesignalRestApiKey: config.onesignalRestApiKey,
18
+ allowedCountries: config.allowedCountries,
19
+ excludedCountries: config.excludedCountries,
20
+ support: config.support,
21
+ callCoolDown: config.callCoolDown,
22
+ smsCoolDown: config.smsCoolDown,
23
+ maxSmsTries: config.maxSmsTries,
24
+ maxCallTries: config.maxCallTries,
25
+ smscLogin: config.smscLogin,
26
+ smscPassword: config.sshPassword,
27
+ configMapping: config.configMapping,
28
+ offerSectionMapping: config.offersSectionMapping,
29
+ authorizationActionMapping: config.authorizationActionMapping,
30
+ configEndpoint: config.configEndpoint,
31
+ offersEndpoint: config.offersEndpoint,
32
+ nextActionEndpoint: config.nextActionEndpoint,
33
+ currentActionEndpoint: config.currentActionEndpoint,
34
+ validationEndpoint: config.codeValidationEndpoint,
35
+ imageEndpoint: config.imageEndpoint,
36
+ sectionsParameter: config.categoriesQuery,
37
+ phoneParameter: config.phoneQuery,
38
+ codeParameter: config.codeQuery,
39
+ validityParameter: config.validityQuery,
40
+ appsflyerIdParameter: "none",
41
+ advertisingIdParameter: "none",
42
+ onesignalIdParameter: "none",
43
+ offerIdParameter: config.offerIdParameter,
44
+ countryCodeParameter: config.countryCodeParameter,
45
+ redirectHtmlName: config.redirectHtmlName,
46
+ redirectJsName: config.redirectJsName,
47
+ redirectFolderName: config.redirectFolderName,
48
+ redirectJsCustomNumberParameter: config.redirectJsCustomNumberParameter,
49
+ apiPrefix: config.apiPrefix,
50
+ skipCode: config.skipCode,
51
+ externalIpGeo: config.externalIpGeo,
52
+ exportedTranslations: config.exportedTranslations,
53
+ readyForPanel: config.readyForPanel,
54
+ version: 0
55
+ };
56
+ };
57
+ exports.asoConfigToDefault_v0 = asoConfigToDefault_v0;
@@ -0,0 +1,263 @@
1
+ import { DefaultConfig } from "./aso-default-config";
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
+ canChangeNumber: string;
14
+ }
15
+ export interface ASOConfig_v1 {
16
+ id: number;
17
+ name: string;
18
+ email: string;
19
+ bundle: string;
20
+ skipping?: boolean;
21
+ alghoritm?: string;
22
+ ip: string;
23
+ sshPassword: string;
24
+ trackingLink: string;
25
+ clientSideValidation: boolean;
26
+ host: string;
27
+ fullAccess: boolean;
28
+ appsflyerKey: string;
29
+ onesignalKey: string;
30
+ onesignalRestApiKey?: string;
31
+ showVideo: boolean;
32
+ appsflyerEnabled: boolean;
33
+ singleFirst: boolean;
34
+ authAdEnabled: boolean;
35
+ allowedCountries: string;
36
+ excludedCountries: string;
37
+ supportUrl?: string;
38
+ support?: {
39
+ [key: string]: string;
40
+ };
41
+ privacyPolicyUrl: string;
42
+ callCoolDown: number;
43
+ smsCoolDown: number;
44
+ maxSmsTries: number;
45
+ maxCallTries: number;
46
+ smscLogin: string;
47
+ smscPassword: string;
48
+ autoSmsCodeCatch: boolean;
49
+ autoCallCodeCatch: boolean;
50
+ localization?: LocalizationMap | Localization;
51
+ authorizationActionMapping: AuthorizationActionMapping;
52
+ offersSectionMapping: IOfferSectionMapping;
53
+ configMapping: ConfigMapping;
54
+ configEndpoint: string;
55
+ offersEndpoint: string;
56
+ offerEndpoint: string;
57
+ nextActionEndpoint: string;
58
+ currentActionEndpoint: string;
59
+ codeValidationEndpoint: string;
60
+ changeNumberEndpoint: string;
61
+ imageEndpoint: string;
62
+ categoriesQuery: string;
63
+ phoneQuery: string;
64
+ nameQuery: string;
65
+ codeQuery: string;
66
+ validityQuery: string;
67
+ resetUserQuery: string;
68
+ oldPhoneQuery: string;
69
+ newPhoneQuery: string;
70
+ appsflyerDataQuery: string;
71
+ offerIdParameter: string;
72
+ countryCodeParameter?: string;
73
+ redirectHtmlName: string;
74
+ redirectJsName: string;
75
+ redirectFolderName?: string;
76
+ apiPrefix?: string;
77
+ emptyEmojiRequired?: boolean;
78
+ skipCode: boolean;
79
+ externalIpGeo: boolean;
80
+ exportedTranslations?: boolean;
81
+ newTrackingLink?: string;
82
+ readyForPanel?: boolean;
83
+ version: number;
84
+ }
85
+ interface IOfferSectionMapping {
86
+ id: string;
87
+ offers: string;
88
+ title: string;
89
+ palette: string;
90
+ internal: [string, any][];
91
+ }
92
+ interface Localization {
93
+ numberWillReceiveACallPattern: string;
94
+ numberReceivedACallPattern: string;
95
+ numberReceivedASmsPattern: string;
96
+ numberWillReceiveASmsPattern: string;
97
+ enterLastFourDigits: string;
98
+ enterCodeFromSms: string;
99
+ callAgainSPattern: string;
100
+ callAgain: string;
101
+ smsAgain: string;
102
+ smsAgainSPattern: string;
103
+ changeNumber: string;
104
+ sendSms: string;
105
+ sendSmsSPattern: string;
106
+ hhMm: string;
107
+ unfortunatelyYourTriesLeft: string;
108
+ introDialog_title: string;
109
+ introDialog_message: string;
110
+ introDialog_exit: string;
111
+ introDialog_cancel: string;
112
+ error_phone: string;
113
+ error_name: string;
114
+ error_server: string;
115
+ error_invalidCode: string;
116
+ changeNumber_title: string;
117
+ changeNumber_message: string;
118
+ changeNumber_no: string;
119
+ changeNumber_yes: string;
120
+ next_title: string;
121
+ next_message: string;
122
+ next_yes: string;
123
+ next_no: string;
124
+ yes: string;
125
+ no: string;
126
+ cancel: string;
127
+ mainButton: string;
128
+ codeButton: string;
129
+ demoMode: string;
130
+ yourLevel: string;
131
+ supportCaption: string;
132
+ somethingWentWrong: string;
133
+ game_spin: string;
134
+ game_balance: string;
135
+ game_balance_pattern: string;
136
+ game_win: string;
137
+ game_win_pattern: string;
138
+ game_authorize: string;
139
+ game_demo_welcome: string;
140
+ game_demo_available_after_auth: string;
141
+ game_min_rate_error_pattern: string;
142
+ auth_changeTitle: string;
143
+ auth_changeMessage: string;
144
+ auth_titleTop: ColoredString;
145
+ auth_titleBottom: ColoredString;
146
+ auth_subtitle: ColoredString;
147
+ auth_nameHint: string;
148
+ auth_changeNumber: string;
149
+ auth_enterAsGuest: string;
150
+ auth_privacyPolicyAcceptance: string;
151
+ auth_privacyPolicy: ColoredString;
152
+ }
153
+ interface ColoredString {
154
+ text: string;
155
+ colors: ColoredSpan[];
156
+ mappingName: string;
157
+ }
158
+ interface ColoredSpan {
159
+ from: number;
160
+ to: number;
161
+ color: string;
162
+ }
163
+ interface ColoredStringMapping {
164
+ text: string;
165
+ colors: string;
166
+ internal: [string, ColoredSpanMapping][];
167
+ }
168
+ interface ColoredSpanMapping {
169
+ from: string;
170
+ to: string;
171
+ color: string;
172
+ }
173
+ interface ConfigMapping {
174
+ id: string;
175
+ fullAccess: string;
176
+ showVideo: string;
177
+ skipping?: string;
178
+ alghoritm?: string;
179
+ appsflyerEnabled: string;
180
+ appsflyerKey: string;
181
+ onesignalKey: string;
182
+ singleFirst: string;
183
+ allowedCountries: string;
184
+ excludedCountries: string;
185
+ supportUrl: string;
186
+ privacyPolicyUrl: string;
187
+ callCoolDown: string;
188
+ smsCoolDown: string;
189
+ maxSmsTries: string;
190
+ maxCallTries: string;
191
+ smscLogin: string;
192
+ smscPassword: string;
193
+ autoSmsCodeCatch: string;
194
+ autoCallCodeCatch: string;
195
+ localization: string;
196
+ internal: [string, LocalizationMapping][];
197
+ }
198
+ interface LocalizationMap {
199
+ [key: string]: Localization;
200
+ }
201
+ interface LocalizationMapping {
202
+ numberWillReceiveACallPattern: string;
203
+ numberReceivedACallPattern: string;
204
+ numberReceivedASmsPattern: string;
205
+ numberWillReceiveASmsPattern: string;
206
+ enterLastFourDigits: string;
207
+ enterCodeFromSms: string;
208
+ callAgainSPattern: string;
209
+ callAgain: string;
210
+ smsAgain: string;
211
+ smsAgainSPattern: string;
212
+ sendSms: string;
213
+ sendSmsSPattern: string;
214
+ hhMm: string;
215
+ unfortunatelyYourTriesLeft: string;
216
+ game_spin: string;
217
+ game_balance: string;
218
+ game_balance_pattern: string;
219
+ game_win: string;
220
+ game_win_pattern: string;
221
+ game_authorize: string;
222
+ game_demo_welcome: string;
223
+ game_demo_available_after_auth: string;
224
+ game_min_rate_error_pattern: string;
225
+ introDialog_title: string;
226
+ introDialog_message: string;
227
+ introDialog_exit: string;
228
+ introDialog_cancel: string;
229
+ error_phone: string;
230
+ error_name: string;
231
+ error_server: string;
232
+ error_invalidCode: string;
233
+ changeNumber_title: string;
234
+ changeNumber_message: string;
235
+ changeNumber_no: string;
236
+ changeNumber_yes: string;
237
+ next_title: string;
238
+ next_message: string;
239
+ next_yes: string;
240
+ next_no: string;
241
+ yes: string;
242
+ no: string;
243
+ cancel: string;
244
+ mainButton: string;
245
+ codeButton: string;
246
+ demoMode: string;
247
+ yourLevel: string;
248
+ supportCaption: string;
249
+ somethingWentWrong: string;
250
+ auth_changeTitle: string;
251
+ auth_changeMessage: string;
252
+ auth_titleTop: string;
253
+ auth_titleBottom: string;
254
+ auth_subtitle: string;
255
+ auth_nameHint: string;
256
+ auth_changeNumber: string;
257
+ auth_enterAsGuest: string;
258
+ auth_privacyPolicyAcceptance: string;
259
+ auth_privacyPolicy: string;
260
+ internal: [string, ColoredStringMapping][];
261
+ }
262
+ export declare let asoConfigToDefault_v1: (config: ASOConfig_v1) => DefaultConfig;
263
+ export {};
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.asoConfigToDefault_v1 = void 0;
4
+ let asoConfigToDefault_v1 = (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
+ trackingLink: config.trackingLink,
14
+ fullAccess: config.fullAccess,
15
+ appsflyerKey: config.appsflyerKey,
16
+ onesignalKey: config.onesignalKey,
17
+ onesignalRestApiKey: config.onesignalRestApiKey,
18
+ allowedCountries: config.allowedCountries,
19
+ excludedCountries: config.excludedCountries,
20
+ callCoolDown: config.callCoolDown,
21
+ smsCoolDown: config.smsCoolDown,
22
+ maxSmsTries: config.maxSmsTries,
23
+ maxCallTries: config.maxCallTries,
24
+ smscLogin: config.smscLogin,
25
+ smscPassword: config.sshPassword,
26
+ support: config.support,
27
+ configMapping: config.configMapping,
28
+ offerSectionMapping: config.offersSectionMapping,
29
+ authorizationActionMapping: config.authorizationActionMapping,
30
+ configEndpoint: config.configEndpoint,
31
+ offersEndpoint: config.offersEndpoint,
32
+ nextActionEndpoint: config.nextActionEndpoint,
33
+ currentActionEndpoint: config.currentActionEndpoint,
34
+ validationEndpoint: config.codeValidationEndpoint,
35
+ imageEndpoint: config.imageEndpoint,
36
+ sectionsParameter: config.categoriesQuery,
37
+ phoneParameter: config.phoneQuery,
38
+ codeParameter: config.codeQuery,
39
+ validityParameter: config.validityQuery,
40
+ appsflyerIdParameter: "none",
41
+ advertisingIdParameter: "none",
42
+ onesignalIdParameter: "none",
43
+ offerIdParameter: config.offerIdParameter,
44
+ countryCodeParameter: config.countryCodeParameter,
45
+ redirectHtmlName: config.redirectHtmlName,
46
+ redirectJsName: config.redirectJsName,
47
+ redirectFolderName: config.redirectFolderName,
48
+ apiPrefix: config.apiPrefix,
49
+ skipCode: config.skipCode,
50
+ externalIpGeo: config.externalIpGeo,
51
+ exportedTranslations: config.exportedTranslations,
52
+ newTrackingLink: config.newTrackingLink,
53
+ readyForPanel: config.readyForPanel,
54
+ version: 1
55
+ };
56
+ };
57
+ exports.asoConfigToDefault_v1 = asoConfigToDefault_v1;