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