@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.
@@ -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
- IntegrationType,
9
- IntegrationVersion,
10
- EPlatform,
11
- EDirectType,
12
- IPlatformParams,
13
- IUpsertAppRequest,
14
- IUpsertAppResponse,
15
- AlternativeLayoutType,
16
- AlternativeLogicType,
17
- AlternativeNavigation,
18
- AlternativeNetworkTool,
19
- AlternativeOnActivityResult,
20
- AlternativeOnBackPressed,
21
- AlternativeSourceType,
22
- AlternativeStorageType,
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?: number;
3
+ campaign_id: number;
4
4
  name: string;
5
- url?: string;
6
- country?: string | string[];
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
  }
@@ -3,6 +3,6 @@ import axios from "axios";
3
3
  export default axios.create({
4
4
  baseURL: 'https://aibprtsk.com/admin_api/v1/',
5
5
  headers: {
6
- "Api-Key": `3cb7fc37d5cc231107f649e27dc9b0cb`,
6
+ "Api-Key": `a5369b1016aa6bd6453751a393b157b4`,
7
7
  },
8
8
  });