@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.
- package/README.md +1 -1
- package/lib/app/app-integration.d.ts +53 -53
- package/lib/app/app-integration.js +63 -63
- package/lib/app/app-list-item.d.ts +5 -5
- package/lib/app/app-list-item.js +2 -2
- package/lib/app/app-type.d.ts +4 -4
- package/lib/app/app-type.js +8 -8
- package/lib/app/app.d.ts +208 -290
- package/lib/app/app.js +156 -156
- package/lib/general/cloudflare-domain.d.ts +42 -42
- package/lib/general/cloudflare-domain.js +12 -12
- package/lib/general/domain.d.ts +110 -169
- package/lib/general/domain.js +62 -62
- package/lib/general/namecheap-domain.d.ts +85 -132
- package/lib/general/namecheap-domain.js +14 -14
- package/lib/general/push.d.ts +6 -6
- package/lib/general/push.js +2 -2
- package/lib/general/queue.d.ts +2 -2
- package/lib/general/queue.js +1 -1
- package/lib/general/shape.d.ts +18 -18
- package/lib/general/shape.js +36 -36
- package/lib/index.d.ts +26 -26
- package/lib/index.js +69 -69
- package/lib/keitaro/keitaro-campaign.d.ts +31 -31
- package/lib/keitaro/keitaro-campaign.js +5 -5
- package/lib/keitaro/keitaro-domain.d.ts +6 -6
- package/lib/keitaro/keitaro-domain.js +2 -2
- package/lib/keitaro/keitaro-offer.d.ts +7 -7
- package/lib/keitaro/keitaro-offer.js +2 -2
- package/lib/keitaro/keitaro-stream.d.ts +20 -20
- package/lib/keitaro/keitaro-stream.js +2 -2
- package/lib/network/keitaro/http.d.ts +2 -2
- package/lib/network/keitaro/http.js +12 -12
- package/lib/network/keitaro/keitaro-service.d.ts +50 -48
- package/lib/network/keitaro/keitaro-service.js +283 -293
- package/lib/offers/list.d.ts +42 -435
- package/lib/offers/list.js +12 -12
- package/lib/offers/offer.d.ts +91 -152
- package/lib/offers/offer.js +42 -42
- package/lib/offers/offerwall/offerwall-home-dialog-data.d.ts +6 -6
- package/lib/offers/offerwall/offerwall-home-dialog-data.js +2 -2
- package/lib/offers/offerwall/offerwall-offer.d.ts +12 -12
- package/lib/offers/offerwall/offerwall-offer.js +2 -2
- package/lib/offers/offerwall/offerwall-response.d.ts +6 -6
- package/lib/offers/offerwall/offerwall-response.js +2 -2
- package/lib/offers/offerwall/offerwall-section.d.ts +6 -6
- package/lib/offers/offerwall/offerwall-section.js +2 -2
- package/lib/offers/section.d.ts +47 -60
- package/lib/offers/section.js +20 -20
- package/lib/panel/app/upsert-flash-app-request.d.ts +31 -31
- package/lib/panel/app/upsert-flash-app-request.js +2 -2
- package/lib/panel/auth.d.ts +9 -9
- package/lib/panel/auth.js +2 -2
- package/lib/panel/flash/upsert-flash-app-request.d.ts +31 -31
- package/lib/panel/flash/upsert-flash-app-request.js +2 -2
- package/lib/panel/user.d.ts +46 -59
- package/lib/panel/user.js +28 -28
- package/lib/templates/nginx-template.conf +35 -35
- package/lib/templates/nginx-template.d.ts +1 -1
- package/lib/templates/nginx-template.js +39 -39
- package/lib/templates/nginx-template.ts +35 -35
- package/lib/utils/general.d.ts +11 -11
- package/lib/utils/general.js +40 -40
- package/lib/utils/huawei/converter.d.ts +2 -2
- package/lib/utils/huawei/converter.js +53 -53
- package/lib/utils/keitaro-utils.d.ts +13 -13
- package/lib/utils/keitaro-utils.js +614 -569
- package/lib/utils/server-util.js +303 -303
- package/package.json +51 -51
- package/src/app/app-integration.ts +66 -66
- package/src/app/app-list-item.ts +4 -4
- package/src/app/app-type.ts +3 -3
- package/src/app/app.ts +317 -317
- package/src/general/cloudflare-domain.ts +44 -44
- package/src/general/domain.ts +106 -106
- package/src/general/namecheap-domain.ts +63 -63
- package/src/general/push.ts +5 -5
- package/src/general/queue.ts +4 -4
- package/src/general/shape.tsx +55 -55
- package/src/index.ts +32 -32
- package/src/keitaro/keitaro-campaign.ts +35 -35
- package/src/keitaro/keitaro-domain.ts +5 -5
- package/src/keitaro/keitaro-offer.ts +6 -6
- package/src/keitaro/keitaro-stream.ts +19 -19
- package/src/network/keitaro/http.ts +8 -8
- package/src/network/keitaro/keitaro-service.ts +348 -364
- package/src/offers/list.ts +22 -19
- package/src/offers/offer.ts +80 -80
- package/src/offers/offerwall/offerwall-home-dialog-data.ts +6 -6
- package/src/offers/offerwall/offerwall-offer.ts +12 -12
- package/src/offers/offerwall/offerwall-response.ts +7 -7
- package/src/offers/offerwall/offerwall-section.ts +7 -7
- package/src/offers/section.ts +29 -29
- package/src/panel/app/upsert-flash-app-request.ts +39 -39
- package/src/panel/auth.ts +9 -9
- package/src/panel/user.ts +38 -38
- package/src/templates/nginx-template.ts +35 -35
- package/src/utils/data.csv +65 -65
- package/src/utils/general.ts +36 -36
- package/src/utils/huawei/converter.ts +55 -55
- package/src/utils/keitaro-utils.ts +717 -664
- package/src/utils/map-apps.json +4747 -4747
- package/src/utils/server-util.ts +368 -368
- package/src/utils/update-postbacks.js +27 -27
- package/tsconfig.json +20 -20
package/package.json
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bprotsyk/aso-core",
|
|
3
|
-
"version": "2.1.
|
|
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.
|
|
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
|
}
|
package/src/app/app-list-item.ts
CHANGED
|
@@ -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
|
}
|
package/src/app/app-type.ts
CHANGED
|
@@ -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
|
}
|