@bprotsyk/aso-core 2.1.224 → 2.1.225
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/lib/app/app.d.ts +237 -363
- package/lib/app/app.js +93 -176
- package/lib/general/cloudflare-domain.d.ts +1 -0
- package/lib/general/domain.d.ts +82 -0
- package/lib/general/domain.js +5 -0
- package/lib/index.d.ts +5 -2
- package/lib/index.js +21 -17
- package/lib/keitaro/keitaro-campaign.d.ts +0 -1
- package/lib/keitaro/keitaro-offer.d.ts +3 -14
- package/lib/network/keitaro/http.js +1 -1
- package/lib/network/keitaro/keitaro-service.d.ts +37 -51
- package/lib/network/keitaro/keitaro-service.js +442 -192
- package/lib/offers/list.d.ts +18 -18
- package/lib/offers/offer.d.ts +4 -0
- package/lib/offers/offer.js +1 -0
- package/lib/panel/app/upsert-flash-app-request.d.ts +14 -14
- package/lib/server/server.d.ts +140 -0
- package/lib/server/server.js +36 -0
- package/lib/utils/keitaro-utils.d.ts +1 -1
- package/lib/utils/keitaro-utils.js +9 -722
- package/package.json +1 -1
- package/src/app/app.ts +316 -308
- package/src/general/cloudflare-domain.ts +1 -0
- package/src/general/domain.ts +8 -0
- package/src/index.ts +27 -30
- package/src/keitaro/keitaro-campaign.ts +0 -1
- package/src/keitaro/keitaro-offer.ts +3 -14
- package/src/network/keitaro/http.ts +1 -1
- package/src/network/keitaro/keitaro-service.ts +533 -232
- package/src/offers/offer.ts +2 -0
- package/src/panel/app/upsert-flash-app-request.ts +48 -0
- package/src/server/server.ts +57 -0
- package/src/utils/keitaro-utils.ts +24 -0
package/src/general/domain.ts
CHANGED
|
@@ -19,9 +19,12 @@ export interface IDomain extends Document {
|
|
|
19
19
|
createdAt: number
|
|
20
20
|
expiresAt: number
|
|
21
21
|
ip: string
|
|
22
|
+
aRecords: { host: string, value: string, proxied: boolean }[]
|
|
22
23
|
subdomain: string | null
|
|
23
24
|
txtRecords: string[]
|
|
24
25
|
mxRecord: string
|
|
26
|
+
mxPriority: number
|
|
27
|
+
aaaaRecords: { host: string, value: string }[]
|
|
25
28
|
target: DomainTarget,
|
|
26
29
|
assignedTo: number[]
|
|
27
30
|
archived: boolean,
|
|
@@ -66,8 +69,10 @@ export enum DomainTarget {
|
|
|
66
69
|
export let getDomainTargetByIp = (ip: string): DomainTarget => {
|
|
67
70
|
switch (ip) {
|
|
68
71
|
case "194.61.120.94":
|
|
72
|
+
case "185.123.53.216":
|
|
69
73
|
return DomainTarget.MAIN
|
|
70
74
|
case "46.246.96.114":
|
|
75
|
+
case "135.125.241.59":
|
|
71
76
|
return DomainTarget.KEITARO
|
|
72
77
|
case "46.246.98.201":
|
|
73
78
|
return DomainTarget.HOSTING
|
|
@@ -95,9 +100,12 @@ export const DomainSchema = new Schema({
|
|
|
95
100
|
createdAt: Number,
|
|
96
101
|
expiresAt: Number,
|
|
97
102
|
ip: String,
|
|
103
|
+
aRecords: { type: [{ host: String, value: String, proxied: Boolean }], default: [] },
|
|
98
104
|
subdomain: String,
|
|
99
105
|
txtRecords: [String],
|
|
100
106
|
mxRecord: String,
|
|
107
|
+
mxPriority: { type: Number, default: 10 },
|
|
108
|
+
aaaaRecords: { type: [{ host: String, value: String }], default: [] },
|
|
101
109
|
target: String,
|
|
102
110
|
assignedTo: [Number],
|
|
103
111
|
archived: Boolean,
|
package/src/index.ts
CHANGED
|
@@ -4,40 +4,30 @@ export { IOffer, IPartner, IOfferType } from "./offers/offer"
|
|
|
4
4
|
export { IOffersSection, OffersSectionSchema, DefaultSectionId } from "./offers/section"
|
|
5
5
|
export { IAppOffersSection, ISectionsList, SectionsListSchema, IOfferState } from "./offers/list"
|
|
6
6
|
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
IApp,
|
|
24
|
-
AppSchema,
|
|
25
|
-
IAppKeitaroData,
|
|
26
|
-
IAppsflyerParams,
|
|
27
|
-
AppStatus,
|
|
28
|
-
IAppsflyerPostback,
|
|
29
|
-
IDomainParams,
|
|
30
|
-
IKeitaroDirectTrackingParams,
|
|
31
|
-
OFFERWALL_TEMPLATE_CAMPAIGN_ID,
|
|
32
|
-
DIRECT_TEMPLATE_CAMPAIGN_ID,
|
|
33
|
-
DEFENCE_CAMPAIGN_ID,
|
|
34
|
-
DEFENCE_CAMPAIGN_TOKEN
|
|
7
|
+
export {
|
|
8
|
+
IApp, AppSchema,
|
|
9
|
+
AppMode, AppStatus,
|
|
10
|
+
IAppCampaign,
|
|
11
|
+
IAppsflyerParams, IAdjustParams, IAdjustEventIds,
|
|
12
|
+
IOfferwallParams,
|
|
13
|
+
IWebviewConfig, IWebviewPostParams,
|
|
14
|
+
IDomainParams,
|
|
15
|
+
IAppsflyerPostback,
|
|
16
|
+
// Legacy / compat exports
|
|
17
|
+
IAppKeitaroData, IPlatformParams, EPlatform, EDirectType,
|
|
18
|
+
IntegrationVersion, PlugType, IRemovalInfo,
|
|
19
|
+
IBannerParams, IOffersStubParams,
|
|
20
|
+
IKeitaroDirectTrackingParams,
|
|
21
|
+
getPlatformName,
|
|
22
|
+
ETeam
|
|
35
23
|
} from "./app/app"
|
|
36
24
|
export { IAppListItem } from "./app/app-list-item"
|
|
37
25
|
export { AppType } from "./app/app-type"
|
|
26
|
+
export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, AlternativeNetworkTool, AlternativeStorageType, AlternativeNavigation, AlternativeOnBackPressed, AlternativeOnActivityResult, IAppIntegration as IFlashIntegration } from "./app/app-integration"
|
|
38
27
|
|
|
39
28
|
export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user"
|
|
40
29
|
export { IAuthToken } from "./panel/auth"
|
|
30
|
+
export { IUpsertAppRequest, IUpsertAppResponse } from "./panel/app/upsert-flash-app-request"
|
|
41
31
|
|
|
42
32
|
export { IGradient, IStroke, IShape, ShapeDiv } from "./general/shape"
|
|
43
33
|
export { IOfferWallHomeDialogData } from "./offers/offerwall/offerwall-home-dialog-data"
|
|
@@ -45,13 +35,20 @@ export { IOfferWallOffer } from "./offers/offerwall/offerwall-offer"
|
|
|
45
35
|
export { IOfferWallResponse } from "./offers/offerwall/offerwall-response"
|
|
46
36
|
export { IOfferWallSection } from "./offers/offerwall/offerwall-section"
|
|
47
37
|
|
|
38
|
+
export { KeitaroService, IKeitaroOffersFilter } from "./network/keitaro/keitaro-service"
|
|
39
|
+
|
|
48
40
|
export { IKeitaroCampaign, IKeitaroCampaignParameters, IKeitaroCampaignParameter } from "./keitaro/keitaro-campaign"
|
|
49
41
|
export { IKeitaroDomain } from "./keitaro/keitaro-domain"
|
|
50
42
|
export { IKeitaroOffer } from "./keitaro/keitaro-offer"
|
|
51
43
|
export { IKeitaroStream } from "./keitaro/keitaro-stream"
|
|
52
|
-
export { KeitaroService } from "./network/keitaro/keitaro-service"
|
|
53
44
|
|
|
54
45
|
export { ICloudflareDomainStatus, ICloudflareDomainType, ICloudflareDomain } from "./general/cloudflare-domain"
|
|
55
46
|
export { IDomain, IDomainSetupResult, DomainStatus, DomainTarget, CONST_CLOUFLARE_STATUS_READY, IDomainsBuyRequestResponse, getDomainTargetByIp } from "./general/domain"
|
|
56
47
|
export { INamecheapDomain, INamecheapBuyRequest, INamecheapContactInfo, NamecheapBuyRequestSchema, INamecheapGetDomainsResult, INamecheapBuyResult } from "./general/namecheap-domain"
|
|
57
|
-
export { NginxTemplate } from "./templates/nginx-template"
|
|
48
|
+
export { NginxTemplate } from "./templates/nginx-template";
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
IServer, IServerSlot, ServerSchema,
|
|
52
|
+
ServerStatus, HelperAppStatus, ServerProvider
|
|
53
|
+
} from "./server/server"
|
|
54
|
+
|
|
@@ -16,7 +16,6 @@ export interface IKeitaroCampaign {
|
|
|
16
16
|
cost_auto: boolean
|
|
17
17
|
domain_id: number
|
|
18
18
|
domain: string // https://generous-slide.com/,
|
|
19
|
-
token?: string // campaign token for click API
|
|
20
19
|
uniqueness_use_cookies: boolean
|
|
21
20
|
traffic_loss: number
|
|
22
21
|
parameters: IKeitaroCampaignParameters
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
export interface IKeitaroOffer {
|
|
2
2
|
id: number;
|
|
3
|
-
campaign_id
|
|
3
|
+
campaign_id: number;
|
|
4
4
|
name: string;
|
|
5
|
-
url
|
|
6
|
-
country
|
|
7
|
-
group_id?: number;
|
|
8
|
-
action_type?: string;
|
|
9
|
-
action_payload?: string;
|
|
10
|
-
affiliate_network_id?: number;
|
|
11
|
-
payout_value?: number;
|
|
12
|
-
payout_currency?: string;
|
|
13
|
-
payout_type?: string;
|
|
14
|
-
state?: string;
|
|
15
|
-
offer_type?: string;
|
|
16
|
-
payout_auto?: boolean;
|
|
17
|
-
payout_upsell?: boolean;
|
|
5
|
+
url: string;
|
|
6
|
+
country: string
|
|
18
7
|
}
|