@bprotsyk/aso-core 2.1.37 → 2.1.39

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 (105) hide show
  1. package/README.md +1 -1
  2. package/lib/app/app-integration.d.ts +53 -53
  3. package/lib/app/app-integration.js +63 -63
  4. package/lib/app/app-list-item.d.ts +5 -5
  5. package/lib/app/app-list-item.js +2 -2
  6. package/lib/app/app-type.d.ts +4 -4
  7. package/lib/app/app-type.js +8 -8
  8. package/lib/app/app.d.ts +208 -290
  9. package/lib/app/app.js +156 -156
  10. package/lib/general/cloudflare-domain.d.ts +42 -42
  11. package/lib/general/cloudflare-domain.js +12 -12
  12. package/lib/general/domain.d.ts +110 -169
  13. package/lib/general/domain.js +62 -62
  14. package/lib/general/namecheap-domain.d.ts +85 -132
  15. package/lib/general/namecheap-domain.js +14 -14
  16. package/lib/general/push.d.ts +6 -6
  17. package/lib/general/push.js +2 -2
  18. package/lib/general/queue.d.ts +2 -2
  19. package/lib/general/queue.js +1 -1
  20. package/lib/general/shape.d.ts +18 -18
  21. package/lib/general/shape.js +36 -36
  22. package/lib/index.d.ts +26 -26
  23. package/lib/index.js +69 -69
  24. package/lib/keitaro/keitaro-campaign.d.ts +31 -31
  25. package/lib/keitaro/keitaro-campaign.js +5 -5
  26. package/lib/keitaro/keitaro-domain.d.ts +6 -6
  27. package/lib/keitaro/keitaro-domain.js +2 -2
  28. package/lib/keitaro/keitaro-offer.d.ts +7 -7
  29. package/lib/keitaro/keitaro-offer.js +2 -2
  30. package/lib/keitaro/keitaro-stream.d.ts +20 -20
  31. package/lib/keitaro/keitaro-stream.js +2 -2
  32. package/lib/network/keitaro/http.d.ts +2 -2
  33. package/lib/network/keitaro/http.js +12 -12
  34. package/lib/network/keitaro/keitaro-service.d.ts +50 -48
  35. package/lib/network/keitaro/keitaro-service.js +283 -293
  36. package/lib/offers/list.d.ts +42 -435
  37. package/lib/offers/list.js +12 -12
  38. package/lib/offers/offer.d.ts +91 -152
  39. package/lib/offers/offer.js +42 -42
  40. package/lib/offers/offerwall/offerwall-home-dialog-data.d.ts +6 -6
  41. package/lib/offers/offerwall/offerwall-home-dialog-data.js +2 -2
  42. package/lib/offers/offerwall/offerwall-offer.d.ts +12 -12
  43. package/lib/offers/offerwall/offerwall-offer.js +2 -2
  44. package/lib/offers/offerwall/offerwall-response.d.ts +6 -6
  45. package/lib/offers/offerwall/offerwall-response.js +2 -2
  46. package/lib/offers/offerwall/offerwall-section.d.ts +6 -6
  47. package/lib/offers/offerwall/offerwall-section.js +2 -2
  48. package/lib/offers/section.d.ts +47 -60
  49. package/lib/offers/section.js +20 -20
  50. package/lib/panel/app/upsert-flash-app-request.d.ts +31 -31
  51. package/lib/panel/app/upsert-flash-app-request.js +2 -2
  52. package/lib/panel/auth.d.ts +9 -9
  53. package/lib/panel/auth.js +2 -2
  54. package/lib/panel/flash/upsert-flash-app-request.d.ts +31 -31
  55. package/lib/panel/flash/upsert-flash-app-request.js +2 -2
  56. package/lib/panel/user.d.ts +46 -59
  57. package/lib/panel/user.js +28 -28
  58. package/lib/templates/nginx-template.conf +35 -35
  59. package/lib/templates/nginx-template.d.ts +1 -1
  60. package/lib/templates/nginx-template.js +39 -39
  61. package/lib/templates/nginx-template.ts +35 -35
  62. package/lib/utils/general.d.ts +11 -11
  63. package/lib/utils/general.js +40 -40
  64. package/lib/utils/huawei/converter.d.ts +2 -2
  65. package/lib/utils/huawei/converter.js +53 -53
  66. package/lib/utils/keitaro-utils.d.ts +13 -13
  67. package/lib/utils/keitaro-utils.js +614 -569
  68. package/lib/utils/server-util.js +303 -303
  69. package/package.json +51 -51
  70. package/src/app/app-integration.ts +66 -66
  71. package/src/app/app-list-item.ts +4 -4
  72. package/src/app/app-type.ts +3 -3
  73. package/src/app/app.ts +317 -317
  74. package/src/general/cloudflare-domain.ts +44 -44
  75. package/src/general/domain.ts +106 -106
  76. package/src/general/namecheap-domain.ts +63 -63
  77. package/src/general/push.ts +5 -5
  78. package/src/general/queue.ts +4 -4
  79. package/src/general/shape.tsx +55 -55
  80. package/src/index.ts +32 -32
  81. package/src/keitaro/keitaro-campaign.ts +35 -35
  82. package/src/keitaro/keitaro-domain.ts +5 -5
  83. package/src/keitaro/keitaro-offer.ts +6 -6
  84. package/src/keitaro/keitaro-stream.ts +19 -19
  85. package/src/network/keitaro/http.ts +8 -8
  86. package/src/network/keitaro/keitaro-service.ts +348 -364
  87. package/src/offers/list.ts +22 -19
  88. package/src/offers/offer.ts +80 -80
  89. package/src/offers/offerwall/offerwall-home-dialog-data.ts +6 -6
  90. package/src/offers/offerwall/offerwall-offer.ts +12 -12
  91. package/src/offers/offerwall/offerwall-response.ts +7 -7
  92. package/src/offers/offerwall/offerwall-section.ts +7 -7
  93. package/src/offers/section.ts +29 -29
  94. package/src/panel/app/upsert-flash-app-request.ts +39 -39
  95. package/src/panel/auth.ts +9 -9
  96. package/src/panel/user.ts +38 -38
  97. package/src/templates/nginx-template.ts +35 -35
  98. package/src/utils/data.csv +65 -65
  99. package/src/utils/general.ts +36 -36
  100. package/src/utils/huawei/converter.ts +55 -55
  101. package/src/utils/keitaro-utils.ts +717 -664
  102. package/src/utils/map-apps.json +4747 -4747
  103. package/src/utils/server-util.ts +368 -368
  104. package/src/utils/update-postbacks.js +27 -27
  105. package/tsconfig.json +20 -20
package/package.json CHANGED
@@ -1,51 +1,51 @@
1
- {
2
- "name": "@bprotsyk/aso-core",
3
- "version": "2.1.37",
4
- "main": "lib/index.js",
5
- "types": "lib/index.d.ts",
6
- "scripts": {
7
- "prod": "tsc -p ./tsconfig.json && copyfiles -u 1 src/templates/**/* lib/ && git add . && git commit -m \"Зміни до версії\" && git push origin master && npm version patch && npm publish",
8
- "build": "tsc",
9
- "test": "echo \"Error: no test specified\" && exit 1",
10
- "keitaro": "tsc; node lib/utils/keitaro-utils.js",
11
- "server": "tsc; node lib/utils/server-util.js"
12
- },
13
- "author": "bprotsyk",
14
- "license": "ISC",
15
- "repository": {
16
- "type": "git",
17
- "url": "git+ssh://git@bitbucket.org/bprtsk/aso-core.git"
18
- },
19
- "bugs": {
20
- "url": "https://bitbucket.org/bprtsk/aso-core/issues"
21
- },
22
- "homepage": "https://bitbucket.org/bprtsk/aso-core#readme",
23
- "description": "",
24
- "dependencies": {
25
- "@types/axios": "^0.14.0",
26
- "@types/module-alias": "^2.0.1",
27
- "@types/mongoose": "^5.11.97",
28
- "@types/node-ssh": "^7.0.6",
29
- "@types/styled-components": "^5.1.26",
30
- "@types/unzipper": "^0.10.10",
31
- "axios": "^1.4.0",
32
- "module-alias": "^2.2.2",
33
- "mongoose": "^8.9.2",
34
- "mustache": "^4.2.0",
35
- "react": "^18.3.1",
36
- "react-dom": "^18.3.1",
37
- "replace-in-file": "^7.0.1",
38
- "sleep-promise": "^9.1.0",
39
- "styled-components": "^5.3.9",
40
- "unzipper": "^0.12.3"
41
- },
42
- "devDependencies": {
43
- "@types/mustache": "^4.2.5",
44
- "@types/node": "^20.14.12",
45
- "@types/react": "^18.3.12",
46
- "@types/react-dom": "^18.3.0",
47
- "copyfiles": "^2.4.1",
48
- "typedoc": "^0.23.28",
49
- "typescript": "^4.9.5"
50
- }
51
- }
1
+ {
2
+ "name": "@bprotsyk/aso-core",
3
+ "version": "2.1.39",
4
+ "main": "lib/index.js",
5
+ "types": "lib/index.d.ts",
6
+ "scripts": {
7
+ "prod": "tsc -p ./tsconfig.json && copyfiles -u 1 src/templates/**/* lib/ && git add . && git commit -m \"Зміни до версії\" && git push origin master && npm version patch && npm publish",
8
+ "build": "tsc",
9
+ "test": "echo \"Error: no test specified\" && exit 1",
10
+ "keitaro": "tsc; node lib/utils/keitaro-utils.js",
11
+ "server": "tsc; node lib/utils/server-util.js"
12
+ },
13
+ "author": "bprotsyk",
14
+ "license": "ISC",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+ssh://git@bitbucket.org/bprtsk/aso-core.git"
18
+ },
19
+ "bugs": {
20
+ "url": "https://bitbucket.org/bprtsk/aso-core/issues"
21
+ },
22
+ "homepage": "https://bitbucket.org/bprtsk/aso-core#readme",
23
+ "description": "",
24
+ "dependencies": {
25
+ "@types/axios": "^0.14.0",
26
+ "@types/module-alias": "^2.0.1",
27
+ "@types/mongoose": "^5.11.97",
28
+ "@types/node-ssh": "^7.0.6",
29
+ "@types/styled-components": "^5.1.26",
30
+ "@types/unzipper": "^0.10.10",
31
+ "axios": "^1.4.0",
32
+ "module-alias": "^2.2.2",
33
+ "mongoose": "^6.8.3",
34
+ "mustache": "^4.2.0",
35
+ "react": "^18.3.1",
36
+ "react-dom": "^18.3.1",
37
+ "replace-in-file": "^7.0.1",
38
+ "sleep-promise": "^9.1.0",
39
+ "styled-components": "^5.3.9",
40
+ "unzipper": "^0.12.3"
41
+ },
42
+ "devDependencies": {
43
+ "@types/mustache": "^4.2.5",
44
+ "@types/node": "^20.14.12",
45
+ "@types/react": "^18.3.12",
46
+ "@types/react-dom": "^18.3.0",
47
+ "copyfiles": "^2.4.1",
48
+ "typedoc": "^0.23.28",
49
+ "typescript": "^4.9.5"
50
+ }
51
+ }
@@ -1,67 +1,67 @@
1
- export enum AlternativeNetworkTool {
2
- RETROFIT = "Retrofit",
3
- VOLLEY = "Volley",
4
- HTTP_URL = "HTTPUrlConnection",
5
- }
6
-
7
- export enum AlternativeLogicType {
8
- CALLBACKS = "Callback",
9
- RX = "RX",
10
- COROUTINES = "Coroutines",
11
- }
12
-
13
- export enum AlternativeNavigation {
14
- ACTIVITY = "Activity",
15
- FRAGMENT_FM = "Fragment",
16
- FRAGMENT_NAV_HOST = "Fragment (NavHost)",
17
- }
18
-
19
- export enum AlternativeStorageType {
20
- FILE = "File",
21
- ROOM = "Room",
22
- ENCRYPTED_PREFS = "Encrypted Preferences",
23
- SHARED_PREFERENCES = "Shared Preferences",
24
- CONTENT_PROVIDER = "Content Provider",
25
- }
26
-
27
- export enum AlternativeLayoutType {
28
- DATA_BINDING = "DataBinding",
29
- BY_ID = "findViewById",
30
- PROGRAMATICALLY = "Create in code"
31
- }
32
-
33
- export enum AlternativeFullscreen {
34
- INSETS = "Insets",
35
- FLAGS = "Flags",
36
- IMMERSIVE = "Immersive"
37
- }
38
-
39
- export enum AlternativeSourceType {
40
- FIREBASE_REALTIME_DATABASE = "Firebase Realtime DB",
41
- GET_RETROFIT = "From link via Retrofit",
42
- GET_VOLLEY = "From link via Volley",
43
- GET_HTTP_URL = "From link via HTTPUrlConnection",
44
- DIRECT = "Directly from link"
45
- // WITHIN_WEBVIEW = "Within webview",
46
- }
47
-
48
- // backpress
49
- // activity result
50
- // fulscreen
51
-
52
- export enum AlternativeOnBackPressed {
53
- OLD = "Old",
54
- NEW = "New"
55
- }
56
-
57
- export enum AlternativeOnActivityResult {
58
- OVERRIDE = "Override",
59
- CALLBACK = "Callback"
60
- }
61
-
62
- export interface IAppIntegration {
63
- id: number,
64
- name: string,
65
- description: string,
66
- alterations: [any[]]
1
+ export enum AlternativeNetworkTool {
2
+ RETROFIT = "Retrofit",
3
+ VOLLEY = "Volley",
4
+ HTTP_URL = "HTTPUrlConnection",
5
+ }
6
+
7
+ export enum AlternativeLogicType {
8
+ CALLBACKS = "Callback",
9
+ RX = "RX",
10
+ COROUTINES = "Coroutines",
11
+ }
12
+
13
+ export enum AlternativeNavigation {
14
+ ACTIVITY = "Activity",
15
+ FRAGMENT_FM = "Fragment",
16
+ FRAGMENT_NAV_HOST = "Fragment (NavHost)",
17
+ }
18
+
19
+ export enum AlternativeStorageType {
20
+ FILE = "File",
21
+ ROOM = "Room",
22
+ ENCRYPTED_PREFS = "Encrypted Preferences",
23
+ SHARED_PREFERENCES = "Shared Preferences",
24
+ CONTENT_PROVIDER = "Content Provider",
25
+ }
26
+
27
+ export enum AlternativeLayoutType {
28
+ DATA_BINDING = "DataBinding",
29
+ BY_ID = "findViewById",
30
+ PROGRAMATICALLY = "Create in code"
31
+ }
32
+
33
+ export enum AlternativeFullscreen {
34
+ INSETS = "Insets",
35
+ FLAGS = "Flags",
36
+ IMMERSIVE = "Immersive"
37
+ }
38
+
39
+ export enum AlternativeSourceType {
40
+ FIREBASE_REALTIME_DATABASE = "Firebase Realtime DB",
41
+ GET_RETROFIT = "From link via Retrofit",
42
+ GET_VOLLEY = "From link via Volley",
43
+ GET_HTTP_URL = "From link via HTTPUrlConnection",
44
+ DIRECT = "Directly from link"
45
+ // WITHIN_WEBVIEW = "Within webview",
46
+ }
47
+
48
+ // backpress
49
+ // activity result
50
+ // fulscreen
51
+
52
+ export enum AlternativeOnBackPressed {
53
+ OLD = "Old",
54
+ NEW = "New"
55
+ }
56
+
57
+ export enum AlternativeOnActivityResult {
58
+ OVERRIDE = "Override",
59
+ CALLBACK = "Callback"
60
+ }
61
+
62
+ export interface IAppIntegration {
63
+ id: number,
64
+ name: string,
65
+ description: string,
66
+ alterations: [any[]]
67
67
  }
@@ -1,5 +1,5 @@
1
- export interface IAppListItem {
2
- id: number,
3
- bundle: string,
4
- name: string
1
+ export interface IAppListItem {
2
+ id: number,
3
+ bundle: string,
4
+ name: string
5
5
  }
@@ -1,4 +1,4 @@
1
- export enum AppType {
2
- GAMBLING = "gambling",
3
- FINANCES = "finances" // do not change the order!
1
+ export enum AppType {
2
+ GAMBLING = "gambling",
3
+ FINANCES = "finances" // do not change the order!
4
4
  }