@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
|
@@ -1,48 +1,50 @@
|
|
|
1
|
-
import { IKeitaroStream } from "../../keitaro/keitaro-stream";
|
|
2
|
-
import { IOffer } from "../../offers/offer";
|
|
3
|
-
import { IKeitaroCampaign } from "../../keitaro/keitaro-campaign";
|
|
4
|
-
import { IKeitaroDomain } from "../../keitaro/keitaro-domain";
|
|
5
|
-
import { IApp } from "../../app/app";
|
|
6
|
-
import { IKeitaroOffer } from "index";
|
|
7
|
-
export interface IKeitaroOffersFilter {
|
|
8
|
-
keitaroId?: number;
|
|
9
|
-
name?: string;
|
|
10
|
-
caption?: string;
|
|
11
|
-
}
|
|
12
|
-
declare function getStreamsByCampaignId(campaignId: number): Promise<IKeitaroStream[]>;
|
|
13
|
-
declare function getAllCampaigns(): Promise<IKeitaroCampaign[]>;
|
|
14
|
-
declare function cloneStreams(originalCampaignId: number, streamPositionsToClone: number[], campaignRegExp: RegExp): Promise<void>;
|
|
15
|
-
declare function updateCampaign(id: number, payload: Partial<IKeitaroCampaign>): Promise<void>;
|
|
16
|
-
declare function getAllOffers(): Promise<IKeitaroOffer[]>;
|
|
17
|
-
declare function findKeitaroOffers(filter: IKeitaroOffersFilter): Promise<IKeitaroOffer[]>;
|
|
18
|
-
declare function getOfferByKeitaroId(id: number): Promise<IKeitaroOffer>;
|
|
19
|
-
declare function updateOffer(offer: any): Promise<IKeitaroOffer>;
|
|
20
|
-
declare function addOfferToKeitaro(offer: IOffer, affiliateId: number, link: string, avoidGroup?: number, groupId?: number): Promise<void>;
|
|
21
|
-
declare function createCampaign(campaignData: Partial<IKeitaroCampaign>): Promise<IKeitaroCampaign>;
|
|
22
|
-
declare function getCampaignById(id: number): Promise<IKeitaroCampaign>;
|
|
23
|
-
export declare function upsertStreamToCampaign(campaign: IKeitaroCampaign, stream: Partial<IKeitaroStream>): Promise<void>;
|
|
24
|
-
declare function cloneOWCampaign(app: IApp): Promise<IKeitaroCampaign>;
|
|
25
|
-
declare function cloneDCampaign(app: IApp): Promise<IKeitaroCampaign>;
|
|
26
|
-
declare function changeCampaignsGroup(fromId: number, toId: number, exceptForCampaignIds: number[], onlyForCampaignIds?: number[]): Promise<void>;
|
|
27
|
-
declare function getDomains(onlyActive?: boolean): Promise<IKeitaroDomain[]>;
|
|
28
|
-
declare function getProfitForTimeRange(from: number, to: number): Promise<number>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
1
|
+
import { IKeitaroStream } from "../../keitaro/keitaro-stream";
|
|
2
|
+
import { IOffer } from "../../offers/offer";
|
|
3
|
+
import { IKeitaroCampaign } from "../../keitaro/keitaro-campaign";
|
|
4
|
+
import { IKeitaroDomain } from "../../keitaro/keitaro-domain";
|
|
5
|
+
import { IApp } from "../../app/app";
|
|
6
|
+
import { IKeitaroOffer } from "index";
|
|
7
|
+
export interface IKeitaroOffersFilter {
|
|
8
|
+
keitaroId?: number;
|
|
9
|
+
name?: string;
|
|
10
|
+
caption?: string;
|
|
11
|
+
}
|
|
12
|
+
declare function getStreamsByCampaignId(campaignId: number): Promise<IKeitaroStream[]>;
|
|
13
|
+
declare function getAllCampaigns(): Promise<IKeitaroCampaign[]>;
|
|
14
|
+
declare function cloneStreams(originalCampaignId: number, streamPositionsToClone: number[], campaignRegExp: RegExp): Promise<void>;
|
|
15
|
+
declare function updateCampaign(id: number, payload: Partial<IKeitaroCampaign>): Promise<void>;
|
|
16
|
+
declare function getAllOffers(): Promise<IKeitaroOffer[]>;
|
|
17
|
+
declare function findKeitaroOffers(filter: IKeitaroOffersFilter): Promise<IKeitaroOffer[]>;
|
|
18
|
+
declare function getOfferByKeitaroId(id: number): Promise<IKeitaroOffer>;
|
|
19
|
+
declare function updateOffer(offer: any): Promise<IKeitaroOffer>;
|
|
20
|
+
declare function addOfferToKeitaro(offer: IOffer, affiliateId: number, link: string, avoidGroup?: number, groupId?: number): Promise<void>;
|
|
21
|
+
declare function createCampaign(campaignData: Partial<IKeitaroCampaign>): Promise<IKeitaroCampaign>;
|
|
22
|
+
declare function getCampaignById(id: number): Promise<IKeitaroCampaign>;
|
|
23
|
+
export declare function upsertStreamToCampaign(campaign: IKeitaroCampaign, stream: Partial<IKeitaroStream>): Promise<void>;
|
|
24
|
+
declare function cloneOWCampaign(app: IApp): Promise<IKeitaroCampaign>;
|
|
25
|
+
declare function cloneDCampaign(app: IApp): Promise<IKeitaroCampaign>;
|
|
26
|
+
declare function changeCampaignsGroup(fromId: number, toId: number, exceptForCampaignIds: number[], onlyForCampaignIds?: number[]): Promise<void>;
|
|
27
|
+
declare function getDomains(onlyActive?: boolean): Promise<IKeitaroDomain[]>;
|
|
28
|
+
declare function getProfitForTimeRange(from: number, to: number): Promise<number>;
|
|
29
|
+
declare function fixBrokenClickCosts(startDate: string, endDate: string): Promise<void>;
|
|
30
|
+
export declare const KeitaroService: {
|
|
31
|
+
getStreamsByCampaignId: typeof getStreamsByCampaignId;
|
|
32
|
+
updateCampaign: typeof updateCampaign;
|
|
33
|
+
getAllCampaigns: typeof getAllCampaigns;
|
|
34
|
+
getAllOffers: typeof getAllOffers;
|
|
35
|
+
cloneStreams: typeof cloneStreams;
|
|
36
|
+
addOfferToKeitaro: typeof addOfferToKeitaro;
|
|
37
|
+
getOfferByKeitaroId: typeof getOfferByKeitaroId;
|
|
38
|
+
getDomains: typeof getDomains;
|
|
39
|
+
createCampaign: typeof createCampaign;
|
|
40
|
+
getCampaignById: typeof getCampaignById;
|
|
41
|
+
upsertStreamToCampaign: typeof upsertStreamToCampaign;
|
|
42
|
+
cloneOWCampaign: typeof cloneOWCampaign;
|
|
43
|
+
updateOffer: typeof updateOffer;
|
|
44
|
+
changeCampaignsGroup: typeof changeCampaignsGroup;
|
|
45
|
+
getProfitForTimeRange: typeof getProfitForTimeRange;
|
|
46
|
+
cloneDCampaign: typeof cloneDCampaign;
|
|
47
|
+
findKeitaroOffers: typeof findKeitaroOffers;
|
|
48
|
+
fixBrokenClickCosts: typeof fixBrokenClickCosts;
|
|
49
|
+
};
|
|
50
|
+
export {};
|