@bprotsyk/aso-core 1.2.237 → 1.2.238

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.
Files changed (86) hide show
  1. package/lib/app/app.d.ts +3 -2
  2. package/lib/app/app.js +2 -2
  3. package/lib/general/namecheap-domain.d.ts +1 -0
  4. package/lib/general/queue.d.ts +2 -1
  5. package/lib/general/queue.js +0 -1
  6. package/lib/general/shape.js +1 -4
  7. package/lib/index.d.ts +1 -1
  8. package/lib/index.js +1 -24
  9. package/lib/network/keitaro/http.d.ts +1 -2
  10. package/lib/network/keitaro/http.js +1 -4
  11. package/lib/network/keitaro/keitaro-service.js +1 -4
  12. package/lib/utils/keitaro-utils.js +1 -4
  13. package/lib/utils/server-util.d.ts +0 -7
  14. package/lib/utils/server-util.js +7 -68
  15. package/package.json +6 -6
  16. package/src/app/app.ts +3 -3
  17. package/src/general/domain.ts +17 -1
  18. package/src/index.ts +2 -3
  19. package/src/utils/server-util.ts +71 -194
  20. package/tsconfig.json +6 -7
  21. package/lib/aso/config/aso-config-v0.d.ts +0 -333
  22. package/lib/aso/config/aso-config-v0.js +0 -59
  23. package/lib/aso/config/aso-config-v1.d.ts +0 -330
  24. package/lib/aso/config/aso-config-v1.js +0 -58
  25. package/lib/aso/config/aso-config-v2.d.ts +0 -297
  26. package/lib/aso/config/aso-config-v2.js +0 -57
  27. package/lib/aso/config/aso-config-v3.d.ts +0 -294
  28. package/lib/aso/config/aso-config-v3.js +0 -58
  29. package/lib/aso/config/aso-config-v4.d.ts +0 -208
  30. package/lib/aso/config/aso-config-v4.js +0 -58
  31. package/lib/aso/config/aso-config-v5.d.ts +0 -227
  32. package/lib/aso/config/aso-config-v5.js +0 -58
  33. package/lib/aso/config/aso-default-config.d.ts +0 -57
  34. package/lib/aso/config/aso-default-config.js +0 -2
  35. package/lib/aso/config/aso-single-response.d.ts +0 -5
  36. package/lib/aso/config/aso-single-response.js +0 -2
  37. package/lib/aso/offer/aso-customized-offer.d.ts +0 -11
  38. package/lib/aso/offer/aso-customized-offer.js +0 -2
  39. package/lib/aso/offer/aso-offer-response.d.ts +0 -6
  40. package/lib/aso/offer/aso-offer-response.js +0 -2
  41. package/lib/aso/offer/aso-offer-section.d.ts +0 -6
  42. package/lib/aso/offer/aso-offer-section.js +0 -2
  43. package/lib/aso/offer/aso-single-offer.d.ts +0 -5
  44. package/lib/aso/offer/aso-single-offer.js +0 -2
  45. package/lib/aso/offer/config/aso-config-v0.d.ts +0 -271
  46. package/lib/aso/offer/config/aso-config-v0.js +0 -57
  47. package/lib/aso/offer/config/aso-config-v1.d.ts +0 -263
  48. package/lib/aso/offer/config/aso-config-v1.js +0 -57
  49. package/lib/aso/offer/config/aso-config-v2.d.ts +0 -230
  50. package/lib/aso/offer/config/aso-config-v2.js +0 -55
  51. package/lib/aso/offer/config/aso-config-v3.d.ts +0 -227
  52. package/lib/aso/offer/config/aso-config-v3.js +0 -56
  53. package/lib/aso/offer/config/aso-config-v4.d.ts +0 -205
  54. package/lib/aso/offer/config/aso-config-v4.js +0 -56
  55. package/lib/aso/offer/config/aso-default-config.d.ts +0 -56
  56. package/lib/aso/offer/config/aso-default-config.js +0 -2
  57. package/lib/aso/offer/config/aso-single-response.d.ts +0 -5
  58. package/lib/aso/offer/config/aso-single-response.js +0 -2
  59. package/lib/aso/offerwall/auth/offerwall-auth-config.d.ts +0 -14
  60. package/lib/aso/offerwall/auth/offerwall-auth-config.js +0 -2
  61. package/lib/aso/offerwall/auth/offerwall-auth-localization.d.ts +0 -8
  62. package/lib/aso/offerwall/auth/offerwall-auth-localization.js +0 -2
  63. package/lib/aso/offerwall/auth/offerwall-auth-submit-request.d.ts +0 -3
  64. package/lib/aso/offerwall/auth/offerwall-auth-submit-request.js +0 -2
  65. package/lib/aso/offerwall/auth/offerwall-auth-submit-response.d.ts +0 -3
  66. package/lib/aso/offerwall/auth/offerwall-auth-submit-response.js +0 -2
  67. package/lib/aso/offerwall/offerwall-home-dialog-data.d.ts +0 -6
  68. package/lib/aso/offerwall/offerwall-home-dialog-data.js +0 -2
  69. package/lib/aso/offerwall/offerwall-offer.d.ts +0 -8
  70. package/lib/aso/offerwall/offerwall-offer.js +0 -2
  71. package/lib/aso/offerwall/offerwall-response.d.ts +0 -6
  72. package/lib/aso/offerwall/offerwall-response.js +0 -2
  73. package/lib/aso/offerwall/offerwall-section.d.ts +0 -6
  74. package/lib/aso/offerwall/offerwall-section.js +0 -2
  75. package/lib/aso/usage-logs/aso-config-fetch-entry.d.ts +0 -28
  76. package/lib/aso/usage-logs/aso-config-fetch-entry.js +0 -2
  77. package/lib/flash/flash-app-integration.d.ts +0 -53
  78. package/lib/flash/flash-app-integration.js +0 -63
  79. package/lib/flash/flash-app-list-item.d.ts +0 -5
  80. package/lib/flash/flash-app-list-item.js +0 -2
  81. package/lib/flash/flash-app-type.d.ts +0 -4
  82. package/lib/flash/flash-app-type.js +0 -8
  83. package/lib/flash/flash-app.d.ts +0 -169
  84. package/lib/flash/flash-app.js +0 -215
  85. package/src/templates/nginx-template.conf +0 -35
  86. package/src/types/ssh2-sftp-client.d.ts +0 -59
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toDefault = void 0;
4
- let toDefault = (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
- fullAccess: config.fullAccess,
16
- appsflyerKey: config.appsflyerKey,
17
- onesignalKey: config.onesignalKey,
18
- onesignalRestApiKey: config.onesignalRestApiKey,
19
- allowedCountries: config.allowedCountries,
20
- excludedCountries: config.excludedCountries,
21
- support: config.support,
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
- configMapping: config.configMapping,
29
- offerSectionMapping: config.offersSectionMapping,
30
- authorizationActionMapping: config.authorizationActionMapping,
31
- configEndpoint: config.configEndpoint,
32
- offersEndpoint: config.offersEndpoint,
33
- nextActionEndpoint: config.nextActionEndpoint,
34
- currentActionEndpoint: config.currentActionEndpoint,
35
- validationEndpoint: config.codeValidationEndpoint,
36
- imageEndpoint: config.imageEndpoint,
37
- sectionsParameter: config.categoriesQuery,
38
- phoneParameter: config.phoneQuery,
39
- codeParameter: config.codeQuery,
40
- validityParameter: config.validityQuery,
41
- appsflyerIdParameter: "none",
42
- advertisingIdParameter: "none",
43
- onesignalIdParameter: "none",
44
- offerIdParameter: config.offerIdParameter,
45
- countryCodeParameter: config.countryCodeParameter,
46
- redirectHtmlName: config.redirectHtmlName,
47
- redirectJsName: config.redirectJsName,
48
- redirectFolderName: config.redirectFolderName,
49
- redirectJsCustomNumberParameter: config.redirectJsCustomNumberParameter,
50
- apiPrefix: config.apiPrefix,
51
- skipCode: config.skipCode,
52
- externalIpGeo: config.externalIpGeo,
53
- newTrackingLink: config.newTrackingLink,
54
- exportedTranslations: config.exportedTranslations,
55
- readyForPanel: config.readyForPanel,
56
- version: 0
57
- };
58
- };
59
- exports.toDefault = toDefault;
@@ -1,330 +0,0 @@
1
- import { IAsoDefaultConfig } from "./aso-default-config";
2
- export interface IConfig {
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
- sshPort?: string;
12
- trackingLink: string;
13
- clientSideValidation: boolean;
14
- host: string;
15
- fullAccess: boolean;
16
- appsflyerKey: string;
17
- onesignalKey: string;
18
- onesignalRestApiKey?: string;
19
- showVideo: boolean;
20
- appsflyerEnabled: boolean;
21
- singleFirst: boolean;
22
- authAdEnabled: boolean;
23
- allowedCountries: string;
24
- excludedCountries: string;
25
- supportUrl?: string;
26
- support?: {
27
- [key: string]: string;
28
- };
29
- privacyPolicyUrl: string;
30
- callCoolDown: number;
31
- smsCoolDown: number;
32
- maxSmsTries: number;
33
- maxCallTries: number;
34
- smscLogin: string;
35
- smscPassword: string;
36
- autoSmsCodeCatch: boolean;
37
- autoCallCodeCatch: boolean;
38
- localization?: ILocalizationMap | ILocalization;
39
- authorizationActionMapping: IAuthorizationActionMapping;
40
- offersSectionMapping: IOfferSectionMapping;
41
- configMapping: IConfigMapping;
42
- configEndpoint: string;
43
- offersEndpoint: string;
44
- offerEndpoint: string;
45
- nextActionEndpoint: string;
46
- currentActionEndpoint: string;
47
- codeValidationEndpoint: string;
48
- changeNumberEndpoint: string;
49
- imageEndpoint: string;
50
- categoriesQuery: string;
51
- phoneQuery: string;
52
- nameQuery: string;
53
- codeQuery: string;
54
- validityQuery: string;
55
- resetUserQuery: string;
56
- oldPhoneQuery: string;
57
- newPhoneQuery: string;
58
- appsflyerDataQuery: string;
59
- offerIdParameter: string;
60
- countryCodeParameter?: string;
61
- redirectHtmlName: string;
62
- redirectJsName: string;
63
- redirectFolderName?: string;
64
- apiPrefix?: string;
65
- emptyEmojiRequired?: boolean;
66
- skipCode: boolean;
67
- externalIpGeo: boolean;
68
- exportedTranslations?: boolean;
69
- newTrackingLink?: string;
70
- readyForPanel?: boolean;
71
- oldHosts?: string[];
72
- version: number;
73
- }
74
- export interface ISectionPalette {
75
- titleBorder: string;
76
- titleText: string;
77
- offerBorder: string;
78
- buttonBorder: string;
79
- buttonBackground: string;
80
- buttonBackgroundPressed: string;
81
- buttonText: string;
82
- emojiBackground: string;
83
- emojiBorder: string;
84
- emojiCaptionBorder: string;
85
- emojiCaptionBackground: string;
86
- emojiCaption: string;
87
- }
88
- export interface IAuthorizationActionMapping {
89
- hasNextAction: string;
90
- nextActionIn: string;
91
- changeNumberCaption: string;
92
- nextActionCaption: string;
93
- nextActionPatternCaption: string;
94
- actualTitlePattern: string;
95
- expiredTitlePattern: string;
96
- subtitle: string;
97
- when: string;
98
- authorized: string;
99
- canChangeNumber: string;
100
- }
101
- export interface IOfferResult {
102
- id: string;
103
- backgroundImage: string;
104
- foregroundImage: string;
105
- emoji: IOfferResultEmoji | null;
106
- buttonText: string;
107
- }
108
- export interface IOfferResultEmoji {
109
- emoji: string | null;
110
- caption: string | null;
111
- }
112
- export interface IOffersSection {
113
- id: number;
114
- offers: IOfferResult[];
115
- title: string;
116
- palette: ISectionPalette;
117
- }
118
- export interface IOffersSection {
119
- id: number;
120
- offers: IOfferResult[];
121
- title: string;
122
- palette: ISectionPalette;
123
- }
124
- export interface ISectionPaletteMapping {
125
- titleBorder: string;
126
- titleText: string;
127
- offerBorder: string;
128
- buttonBorder: string;
129
- buttonBackground: string;
130
- buttonBackgroundPressed: string;
131
- buttonText: string;
132
- emojiBackground: string;
133
- emojiBorder: string;
134
- emojiCaptionBorder: string;
135
- emojiCaptionBackground: string;
136
- emojiCaption: string;
137
- }
138
- export interface IOfferSectionMapping {
139
- id: string;
140
- offers: string;
141
- title: string;
142
- palette: string;
143
- internal: [string, any][];
144
- }
145
- export interface IOfferResultMapping {
146
- id: string;
147
- backgroundImage: string;
148
- foregroundImage: string;
149
- emoji: string;
150
- emojiCaption: string;
151
- buttonText: string;
152
- mappingName: string;
153
- }
154
- export interface IOfferSectionMapping {
155
- id: string;
156
- offers: string;
157
- title: string;
158
- internal: [string, any][];
159
- }
160
- export interface ILocalization {
161
- numberWillReceiveACallPattern: string;
162
- numberReceivedACallPattern: string;
163
- numberReceivedASmsPattern: string;
164
- numberWillReceiveASmsPattern: string;
165
- enterLastFourDigits: string;
166
- enterCodeFromSms: string;
167
- callAgainSPattern: string;
168
- callAgain: string;
169
- smsAgain: string;
170
- smsAgainSPattern: string;
171
- changeNumber: string;
172
- sendSms: string;
173
- sendSmsSPattern: string;
174
- hhMm: string;
175
- unfortunatelyYourTriesLeft: string;
176
- introDialog_title: string;
177
- introDialog_message: string;
178
- introDialog_exit: string;
179
- introDialog_cancel: string;
180
- error_phone: string;
181
- error_name: string;
182
- error_server: string;
183
- error_invalidCode: string;
184
- changeNumber_title: string;
185
- changeNumber_message: string;
186
- changeNumber_no: string;
187
- changeNumber_yes: string;
188
- next_title: string;
189
- next_message: string;
190
- next_yes: string;
191
- next_no: string;
192
- yes: string;
193
- no: string;
194
- cancel: string;
195
- mainButton: string;
196
- codeButton: string;
197
- demoMode: string;
198
- yourLevel: string;
199
- supportCaption: string;
200
- somethingWentWrong: string;
201
- game_spin: string;
202
- game_balance: string;
203
- game_balance_pattern: string;
204
- game_win: string;
205
- game_win_pattern: string;
206
- game_authorize: string;
207
- game_demo_welcome: string;
208
- game_demo_available_after_auth: string;
209
- game_min_rate_error_pattern: string;
210
- auth_changeTitle: string;
211
- auth_changeMessage: string;
212
- auth_titleTop: IColoredString;
213
- auth_titleBottom: IColoredString;
214
- auth_subtitle: IColoredString;
215
- auth_nameHint: string;
216
- auth_changeNumber: string;
217
- auth_enterAsGuest: string;
218
- auth_privacyPolicyAcceptance: string;
219
- auth_privacyPolicy: IColoredString;
220
- }
221
- export interface IColoredString {
222
- text: string;
223
- colors: IColoredSpan[];
224
- mappingName: string;
225
- }
226
- export interface IColoredSpan {
227
- from: number;
228
- to: number;
229
- color: string;
230
- }
231
- export interface IColoredStringMapping {
232
- text: string;
233
- colors: string;
234
- internal: [string, IColoredSpanMapping][];
235
- }
236
- export interface IColoredSpanMapping {
237
- from: string;
238
- to: string;
239
- color: string;
240
- }
241
- export interface IConfigMapping {
242
- id: string;
243
- fullAccess: string;
244
- showVideo: string;
245
- skipping?: string;
246
- alghoritm?: string;
247
- appsflyerEnabled: string;
248
- appsflyerKey: string;
249
- onesignalKey: string;
250
- singleFirst: string;
251
- allowedCountries: string;
252
- excludedCountries: string;
253
- supportUrl: string;
254
- privacyPolicyUrl: string;
255
- callCoolDown: string;
256
- smsCoolDown: string;
257
- maxSmsTries: string;
258
- maxCallTries: string;
259
- smscLogin: string;
260
- smscPassword: string;
261
- autoSmsCodeCatch: string;
262
- autoCallCodeCatch: string;
263
- localization: string;
264
- internal: [string, ILocalizationMapping][];
265
- }
266
- export interface ILocalizationMap {
267
- [key: string]: ILocalization;
268
- }
269
- export interface ILocalizationMapping {
270
- numberWillReceiveACallPattern: string;
271
- numberReceivedACallPattern: string;
272
- numberReceivedASmsPattern: string;
273
- numberWillReceiveASmsPattern: string;
274
- enterLastFourDigits: string;
275
- enterCodeFromSms: string;
276
- callAgainSPattern: string;
277
- callAgain: string;
278
- smsAgain: string;
279
- smsAgainSPattern: string;
280
- sendSms: string;
281
- sendSmsSPattern: string;
282
- hhMm: string;
283
- unfortunatelyYourTriesLeft: string;
284
- game_spin: string;
285
- game_balance: string;
286
- game_balance_pattern: string;
287
- game_win: string;
288
- game_win_pattern: string;
289
- game_authorize: string;
290
- game_demo_welcome: string;
291
- game_demo_available_after_auth: string;
292
- game_min_rate_error_pattern: string;
293
- introDialog_title: string;
294
- introDialog_message: string;
295
- introDialog_exit: string;
296
- introDialog_cancel: string;
297
- error_phone: string;
298
- error_name: string;
299
- error_server: string;
300
- error_invalidCode: string;
301
- changeNumber_title: string;
302
- changeNumber_message: string;
303
- changeNumber_no: string;
304
- changeNumber_yes: string;
305
- next_title: string;
306
- next_message: string;
307
- next_yes: string;
308
- next_no: string;
309
- yes: string;
310
- no: string;
311
- cancel: string;
312
- mainButton: string;
313
- codeButton: string;
314
- demoMode: string;
315
- yourLevel: string;
316
- supportCaption: string;
317
- somethingWentWrong: string;
318
- auth_changeTitle: string;
319
- auth_changeMessage: string;
320
- auth_titleTop: string;
321
- auth_titleBottom: string;
322
- auth_subtitle: string;
323
- auth_nameHint: string;
324
- auth_changeNumber: string;
325
- auth_enterAsGuest: string;
326
- auth_privacyPolicyAcceptance: string;
327
- auth_privacyPolicy: string;
328
- internal: [string, IColoredStringMapping][];
329
- }
330
- export declare let toDefault: (config: IConfig) => IAsoDefaultConfig;
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toDefault = void 0;
4
- let toDefault = (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
- fullAccess: config.fullAccess,
16
- appsflyerKey: config.appsflyerKey,
17
- onesignalKey: config.onesignalKey,
18
- onesignalRestApiKey: config.onesignalRestApiKey,
19
- allowedCountries: config.allowedCountries,
20
- excludedCountries: config.excludedCountries,
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
- support: config.support,
28
- configMapping: config.configMapping,
29
- offerSectionMapping: config.offersSectionMapping,
30
- authorizationActionMapping: config.authorizationActionMapping,
31
- configEndpoint: config.configEndpoint,
32
- offersEndpoint: config.offersEndpoint,
33
- nextActionEndpoint: config.nextActionEndpoint,
34
- currentActionEndpoint: config.currentActionEndpoint,
35
- validationEndpoint: config.codeValidationEndpoint,
36
- imageEndpoint: config.imageEndpoint,
37
- sectionsParameter: config.categoriesQuery,
38
- phoneParameter: config.phoneQuery,
39
- codeParameter: config.codeQuery,
40
- validityParameter: config.validityQuery,
41
- appsflyerIdParameter: "none",
42
- advertisingIdParameter: "none",
43
- onesignalIdParameter: "none",
44
- offerIdParameter: config.offerIdParameter,
45
- countryCodeParameter: config.countryCodeParameter,
46
- redirectHtmlName: config.redirectHtmlName,
47
- redirectJsName: config.redirectJsName,
48
- redirectFolderName: config.redirectFolderName,
49
- apiPrefix: config.apiPrefix,
50
- skipCode: config.skipCode,
51
- externalIpGeo: config.externalIpGeo,
52
- exportedTranslations: config.exportedTranslations,
53
- newTrackingLink: config.newTrackingLink,
54
- readyForPanel: config.readyForPanel,
55
- version: 1
56
- };
57
- };
58
- exports.toDefault = toDefault;