@bprotsyk/aso-core 1.2.220 → 1.2.224

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 (74) hide show
  1. package/lib/app/app-integration.d.ts +53 -0
  2. package/lib/app/app-integration.js +63 -0
  3. package/lib/app/app-list-item.d.ts +5 -0
  4. package/lib/app/app-list-item.js +2 -0
  5. package/lib/app/app-type.d.ts +4 -0
  6. package/lib/app/app-type.js +8 -0
  7. package/lib/app/app.d.ts +177 -0
  8. package/lib/app/app.js +216 -0
  9. package/lib/general/cloudflare-domain.d.ts +42 -0
  10. package/lib/general/cloudflare-domain.js +12 -0
  11. package/lib/general/colored-text.d.ts +7 -0
  12. package/lib/general/colored-text.js +28 -0
  13. package/lib/general/domain.d.ts +92 -0
  14. package/lib/general/domain.js +38 -0
  15. package/lib/general/namecheap-domain.d.ts +80 -0
  16. package/lib/general/namecheap-domain.js +14 -0
  17. package/lib/general/push.d.ts +6 -0
  18. package/lib/general/push.js +2 -0
  19. package/lib/general/queue.d.ts +1 -0
  20. package/lib/general/queue.js +2 -0
  21. package/lib/general/shape.d.ts +18 -0
  22. package/lib/general/shape.js +36 -0
  23. package/lib/index.d.ts +13 -32
  24. package/lib/index.js +28 -29
  25. package/lib/network/keitaro/keitaro-service.d.ts +4 -4
  26. package/lib/offers/list.d.ts +37 -0
  27. package/lib/offers/list.js +12 -0
  28. package/lib/offers/offer.d.ts +95 -0
  29. package/lib/offers/offer.js +38 -0
  30. package/lib/offers/section.d.ts +47 -0
  31. package/lib/offers/section.js +20 -0
  32. package/lib/panel/flash/upsert-flash-app-request.d.ts +1 -1
  33. package/lib/utils/keitaro-utils.d.ts +7 -7
  34. package/package.json +1 -1
  35. package/src/{flash/flash-app-integration.ts → app/app-integration.ts} +1 -1
  36. package/src/{flash/flash-app-list-item.ts → app/app-list-item.ts} +1 -1
  37. package/src/{flash/flash-app-type.ts → app/app-type.ts} +1 -1
  38. package/src/{flash/flash-app.ts → app/app.ts} +19 -9
  39. package/src/{models → general}/domain.ts +1 -1
  40. package/src/index.ts +13 -34
  41. package/src/network/keitaro/keitaro-service.ts +4 -4
  42. package/src/offers/list.ts +20 -0
  43. package/src/offers/offer.ts +77 -0
  44. package/src/offers/section.ts +30 -0
  45. package/src/panel/flash/upsert-flash-app-request.ts +1 -1
  46. package/src/utils/keitaro-utils.ts +10 -10
  47. package/src/aso/config/aso-config-v0.ts +0 -441
  48. package/src/aso/config/aso-config-v1.ts +0 -440
  49. package/src/aso/config/aso-config-v2.ts +0 -399
  50. package/src/aso/config/aso-config-v3.ts +0 -396
  51. package/src/aso/config/aso-config-v4.ts +0 -305
  52. package/src/aso/config/aso-config-v5.ts +0 -328
  53. package/src/aso/config/aso-default-config.ts +0 -67
  54. package/src/aso/config/aso-single-response.ts +0 -6
  55. package/src/aso/offer/aso-customized-offer.ts +0 -12
  56. package/src/aso/offer/aso-offer-response.ts +0 -7
  57. package/src/aso/offer/aso-offer-section.ts +0 -7
  58. package/src/aso/offer/aso-single-offer.ts +0 -5
  59. package/src/aso/offerwall/auth/offerwall-auth-config.ts +0 -17
  60. package/src/aso/offerwall/auth/offerwall-auth-localization.ts +0 -9
  61. package/src/aso/offerwall/auth/offerwall-auth-submit-request.ts +0 -3
  62. package/src/aso/offerwall/auth/offerwall-auth-submit-response.ts +0 -3
  63. package/src/aso/offerwall/offerwall-home-dialog-data.ts +0 -6
  64. package/src/aso/offerwall/offerwall-offer.ts +0 -9
  65. package/src/aso/offerwall/offerwall-response.ts +0 -7
  66. package/src/aso/offerwall/offerwall-section.ts +0 -7
  67. package/src/aso/usage-logs/aso-config-fetch-entry.ts +0 -31
  68. package/src/shared/offer.ts +0 -12
  69. /package/src/{models → general}/cloudflare-domain.ts +0 -0
  70. /package/src/{shared → general}/colored-text.tsx +0 -0
  71. /package/src/{models → general}/namecheap-domain.ts +0 -0
  72. /package/src/{shared → general}/push.ts +0 -0
  73. /package/src/{shared → general}/queue.ts +0 -0
  74. /package/src/{shared → general}/shape.tsx +0 -0
@@ -1,441 +0,0 @@
1
- import { IAsoDefaultConfig } from "./aso-default-config"
2
-
3
- export interface IConfig {
4
- id: number,
5
- name: string,
6
- email: string,
7
- bundle: string,
8
- skipping?: boolean,
9
- alghoritm?: string,
10
- ip: string,
11
- sshPassword: string,
12
- sshPort?: string
13
- trackingLink: string,
14
- newTrackingLink?: string,
15
- clientSideValidation: boolean,
16
- host: string,
17
- fullAccess: boolean,
18
-
19
- appsflyerKey: string,
20
- onesignalKey: string,
21
- onesignalRestApiKey?: string,
22
-
23
- showVideo: boolean,
24
- appsflyerEnabled: boolean,
25
- singleFirst: boolean,
26
- authAdEnabled: boolean,
27
- allowedCountries: string,
28
- excludedCountries: string,
29
- supportUrl?: string,
30
- support?: { [key: string]: string }
31
- privacyPolicyUrl: string,
32
- callCoolDown: number,
33
- smsCoolDown: number,
34
- maxSmsTries: number,
35
- maxCallTries: number,
36
- smscLogin: string,
37
- smscPassword: string,
38
- autoSmsCodeCatch: boolean,
39
- autoCallCodeCatch: boolean,
40
-
41
- localization?: ILocalizationMap | ILocalization,
42
- authorizationActionMapping: IAuthorizationActionMapping,
43
- offersSectionMapping: IOfferSectionMapping
44
- configMapping: IConfigMapping,
45
-
46
- configEndpoint: string,
47
- offersEndpoint: string,
48
- offerEndpoint: string,
49
- nextActionEndpoint: string,
50
- currentActionEndpoint: string,
51
- codeValidationEndpoint: string,
52
- changeNumberEndpoint: string,
53
- imageEndpoint: string,
54
-
55
- categoriesQuery: string,
56
- phoneQuery: string,
57
- nameQuery: string,
58
- codeQuery: string
59
- validityQuery: string,
60
- resetUserQuery: string,
61
- oldPhoneQuery: string,
62
- newPhoneQuery: string,
63
- appsflyerDataQuery: string,
64
- offerIdParameter: string,
65
- countryCodeParameter?: string,
66
-
67
- redirectHtmlName: string,
68
- redirectJsName: string,
69
- redirectFolderName?: string,
70
- redirectJsCustomNumberParameter?: string,
71
-
72
- apiPrefix?: string,
73
- emptyEmojiRequired?: boolean,
74
-
75
- skipCode: boolean,
76
- externalIpGeo: boolean,
77
- exportedTranslations?: boolean,
78
- readyForPanel?: boolean,
79
-
80
- oldHosts?: string[]
81
-
82
- version: number
83
- }
84
-
85
-
86
- export interface IAuthorizationActionMapping {
87
- nextActionIn: string,
88
- hasNextAction: string,
89
- changeNumberCaption: string,
90
- nextActionCaption: string,
91
- nextActionPatternCaption: string,
92
- actualTitlePattern: string,
93
- expiredTitlePattern: string,
94
- subtitle: string,
95
- when: string,
96
- authorized: string,
97
- canChangeNumber: string
98
- }
99
-
100
- export interface ILocalizationMap {
101
- [key: string]: ILocalization
102
- }
103
-
104
- export interface ISectionPalette {
105
- titleBorder: string
106
- titleText: string
107
- offerBorder: string
108
- buttonBorder: string
109
- buttonBackground: string
110
- buttonBackgroundPressed: string
111
- buttonText: string,
112
- emojiBackground: string,
113
- emojiBorder: string,
114
- emojiCaptionBorder: string,
115
- emojiCaptionBackground: string,
116
- emojiCaption: string
117
- }
118
-
119
- export interface IOfferResult {
120
- id: string,
121
- backgroundImage: string,
122
- foregroundImage: string,
123
- emoji: IOfferResultEmoji | null,
124
- buttonText: string
125
- }
126
-
127
- export interface IOfferResultEmoji {
128
- emoji: string | null,
129
- caption: string | null,
130
- }
131
-
132
- export interface IOffersSection {
133
- id: number,
134
- offers: IOfferResult[]
135
- title: string
136
- palette: ISectionPalette
137
- }
138
-
139
- export interface ISectionPaletteMapping {
140
- titleBorder: string
141
- titleText: string
142
- offerBorder: string
143
- buttonBorder: string
144
- buttonBackground: string
145
- buttonBackgroundPressed: string
146
- buttonText: string,
147
- emojiBackground: string,
148
- emojiBorder: string,
149
- emojiCaptionBorder: string,
150
- emojiCaptionBackground: string,
151
- emojiCaption: string
152
- }
153
-
154
- export interface IOfferSectionMapping {
155
- id: string,
156
- offers: string
157
- title: string
158
- palette: string,
159
- internal: [string, any][]
160
- }
161
-
162
- export interface IOfferResultMapping {
163
- id: string,
164
- backgroundImage: string,
165
- foregroundImage: string,
166
- emoji: string,
167
- emojiCaption: string,
168
- buttonText: string,
169
- mappingName: string,
170
- }
171
-
172
- export interface IOfferSectionMapping {
173
- id: string,
174
- offers: string
175
- title: string
176
- internal: [string, any][]
177
- }
178
-
179
- export interface ILocalization {
180
- numberWillReceiveACallPattern: string,
181
- numberReceivedACallPattern: string,
182
- numberReceivedASmsPattern: string,
183
- numberWillReceiveASmsPattern: string,
184
- enterLastFourDigits: string,
185
- enterCodeFromSms: string,
186
- callAgainSPattern: string,
187
- callAgain: string,
188
- smsAgain: string,
189
- smsAgainSPattern: string,
190
- changeNumber: string,
191
- sendSms: string,
192
- sendSmsSPattern: string,
193
- hhMm: string,
194
- unfortunatelyYourTriesLeft: string,
195
-
196
- introDialog_title: string,
197
- introDialog_message: string,
198
- introDialog_exit: string
199
- introDialog_yes: string,
200
- introDialog_cancel: string,
201
-
202
- error_phone: string,
203
- error_name: string,
204
- error_server: string,
205
- error_invalidCode: string
206
-
207
- changeNumber_title: string,
208
- changeNumber_message: string,
209
- changeNumber_no: string,
210
- changeNumber_yes: string,
211
-
212
- next_title: string,
213
- next_message: string,
214
- next_yes: string,
215
- next_no: string,
216
-
217
- yes: string,
218
- no: string,
219
- cancel: string,
220
- mainButton: string,
221
- codeButton: string,
222
- getFullAccess: string,
223
- guestPlay: string,
224
- guestLocked: string,
225
- yourLevel: string,
226
- supportCaption: string,
227
- somethingWentWrong: string
228
-
229
- game_spin: string,
230
- game_balance: string,
231
- game_balance_pattern: string,
232
- game_win: string,
233
- game_win_pattern: string,
234
- game_authorize: string,
235
- game_demo_welcome: string,
236
- game_demo_available_after_auth: string,
237
- game_min_rate_error_pattern: string,
238
-
239
- auth_changeTitle: string,
240
- auth_changeMessage: string,
241
-
242
- auth_titleTop: IColoredString,
243
- auth_titleBottom: IColoredString,
244
- auth_getAccess: string,
245
- auth_subtitle: IColoredString
246
- auth_cantBeEmpty: string,
247
- auth_nameHint: string,
248
- auth_changeNumber: IColoredString,
249
- auth_enterAsGuest: string,
250
- auth_privacyPolicyAcceptance: string,
251
- auth_privacyPolicy: IColoredString,
252
- }
253
-
254
- export interface IColoredString {
255
- text: string,
256
- colors: IColoredSpan[]
257
- mappingName?: string
258
- }
259
-
260
- export interface IColoredSpan {
261
- from: number,
262
- to: number,
263
- color: string
264
- }
265
-
266
- export interface IColoredStringMapping {
267
- text: string,
268
- colors: string,
269
- internal: [string, IColoredSpanMapping][]
270
- }
271
-
272
- export interface IColoredSpanMapping {
273
- from: string,
274
- to: string,
275
- color: string
276
- }
277
-
278
- export interface IConfigMapping {
279
- id: string,
280
- fullAccess: string,
281
- showVideo: string,
282
- skipping?: string,
283
- alghoritm?: string,
284
- appsflyerEnabled: string,
285
- appsflyerKey: string,
286
- onesignalKey: string,
287
- singleFirst: string,
288
- allowedCountries: string,
289
- excludedCountries: string,
290
- supportUrl: string,
291
- privacyPolicyUrl: string,
292
- callCoolDown: string,
293
- smsCoolDown: string,
294
- maxSmsTries: string,
295
- maxCallTries: string,
296
- smscLogin: string,
297
- smscPassword: string,
298
- autoSmsCodeCatch: string,
299
- autoCallCodeCatch: string,
300
- localization: string,
301
- internal: [string, ILocalizationMapping][],
302
- }
303
-
304
- export interface ILocalizationMapping {
305
- numberWillReceiveACallPattern: string,
306
- numberReceivedACallPattern: string,
307
- numberReceivedASmsPattern: string,
308
- numberWillReceiveASmsPattern: string,
309
- enterLastFourDigits: string,
310
- enterCodeFromSms: string,
311
- callAgainSPattern: string,
312
- callAgain: string,
313
- smsAgain: string,
314
- smsAgainSPattern: string,
315
- sendSms: string,
316
- sendSmsSPattern: string,
317
- hhMm: string,
318
- unfortunatelyYourTriesLeft: string
319
-
320
- game_spin: string,
321
- game_balance: string,
322
- game_balance_pattern: string,
323
- game_win: string,
324
- game_win_pattern: string
325
- game_authorize: string,
326
- game_demo_welcome: string,
327
- game_demo_available_after_auth: string,
328
- game_min_rate_error_pattern: string,
329
-
330
- introDialog_title: string,
331
- introDialog_message: string,
332
- introDialog_yes: string,
333
- introDialog_exit: string
334
- introDialog_cancel: string,
335
-
336
- error_phone: string,
337
- error_name: string,
338
- error_server: string,
339
- error_invalidCode: string
340
-
341
- changeNumber_title: string,
342
- changeNumber_message: string,
343
- changeNumber_no: string,
344
- changeNumber_yes: string,
345
-
346
- next_title: string,
347
- next_message: string,
348
- next_yes: string,
349
- next_no: string,
350
-
351
- yes: string,
352
- no: string,
353
- cancel: string,
354
- getFullAccess: string,
355
- guestPlay: string,
356
- guestLocked: string,
357
- yourLevel: string,
358
- supportCaption: string,
359
- somethingWentWrong: string
360
-
361
- auth_changeTitle: string,
362
- auth_changeMessage: string,
363
- auth_titleTop: string,
364
- auth_titleBottom: string,
365
- auth_getAccess: string,
366
- auth_cantBeEmpty: string,
367
- auth_subtitle: string,
368
- auth_nameHint: string,
369
- auth_changeNumber: string,
370
- auth_enterAsGuest: string,
371
- auth_privacyPolicyAcceptance: string,
372
- auth_privacyPolicy: string,
373
-
374
- internal: [string, IColoredStringMapping][]
375
- }
376
-
377
- export let toDefault = (config: IConfig): IAsoDefaultConfig => {
378
- return {
379
- id: config.id,
380
- bundle: config.bundle,
381
- name: config.name,
382
- email: config.email,
383
- host: config.host,
384
- ip: config.ip,
385
- sshPassword: config.sshPassword,
386
- sshPort: config.sshPort,
387
- trackingLink: config.trackingLink,
388
-
389
- fullAccess: config.fullAccess,
390
- appsflyerKey: config.appsflyerKey,
391
- onesignalKey: config.onesignalKey,
392
- onesignalRestApiKey: config.onesignalRestApiKey,
393
- allowedCountries: config.allowedCountries,
394
- excludedCountries: config.excludedCountries,
395
-
396
- support: config.support,
397
-
398
- callCoolDown: config.callCoolDown,
399
- smsCoolDown: config.smsCoolDown,
400
- maxSmsTries: config.maxSmsTries,
401
- maxCallTries: config.maxCallTries,
402
- smscLogin: config.smscLogin,
403
- smscPassword: config.sshPassword,
404
-
405
- configMapping: config.configMapping,
406
- offerSectionMapping: config.offersSectionMapping,
407
- authorizationActionMapping: config.authorizationActionMapping,
408
-
409
- configEndpoint: config.configEndpoint,
410
- offersEndpoint: config.offersEndpoint,
411
- nextActionEndpoint: config.nextActionEndpoint,
412
- currentActionEndpoint: config.currentActionEndpoint,
413
- validationEndpoint: config.codeValidationEndpoint,
414
- imageEndpoint: config.imageEndpoint,
415
-
416
- sectionsParameter: config.categoriesQuery,
417
- phoneParameter: config.phoneQuery,
418
- codeParameter: config.codeQuery,
419
- validityParameter: config.validityQuery,
420
- appsflyerIdParameter: "none",
421
- advertisingIdParameter: "none",
422
- onesignalIdParameter: "none",
423
- offerIdParameter: config.offerIdParameter,
424
- countryCodeParameter: config.countryCodeParameter,
425
-
426
- redirectHtmlName: config.redirectHtmlName,
427
- redirectJsName: config.redirectJsName,
428
- redirectFolderName: config.redirectFolderName,
429
- redirectJsCustomNumberParameter: config.redirectJsCustomNumberParameter,
430
-
431
- apiPrefix: config.apiPrefix,
432
-
433
- skipCode: config.skipCode,
434
- externalIpGeo: config.externalIpGeo,
435
- newTrackingLink: config.newTrackingLink,
436
- exportedTranslations: config.exportedTranslations,
437
- readyForPanel: config.readyForPanel,
438
-
439
- version: 0
440
- }
441
- }