@bprotsyk/aso-core 2.1.55 → 2.1.57
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IKeitaroStream } from "../keitaro/keitaro-stream";
|
|
2
|
-
import { IApp } from "../app/app";
|
|
2
|
+
import { EPlatform, IApp } from "../app/app";
|
|
3
3
|
import { IKeitaroCampaign, IKeitaroCampaignParameters } from "../keitaro/keitaro-campaign";
|
|
4
4
|
export declare const TRAFFIC_SOURCE_ID_FLASH_AI = 22;
|
|
5
5
|
export declare let addGeosToAllRedirectCampaigns: (geosToAdd: string) => Promise<void>;
|
|
@@ -7,7 +7,7 @@ export declare let removeGeosFromAllRedirectCampaigns: (geoToRemove: string) =>
|
|
|
7
7
|
export declare let prepareOWCampaignParameters: (app: IApp) => IKeitaroCampaignParameters;
|
|
8
8
|
export declare function createOWStreamPartialPayload(app: IApp): Partial<IKeitaroStream>;
|
|
9
9
|
export declare function createDirectCampaign(app: IApp): Promise<IKeitaroCampaign>;
|
|
10
|
-
export declare function createOWCampaign(app: IApp): Promise<any>;
|
|
10
|
+
export declare function createOWCampaign(app: IApp, platform?: EPlatform): Promise<any>;
|
|
11
11
|
type PostbackStatus = 'lead' | 'sale' | 'rejected';
|
|
12
12
|
export declare function sendPostbacks(subids: string[], status: PostbackStatus, payout?: number): Promise<void>;
|
|
13
13
|
export {};
|
|
@@ -368,8 +368,8 @@ async function createDirectCampaign(app) {
|
|
|
368
368
|
return campaign;
|
|
369
369
|
}
|
|
370
370
|
exports.createDirectCampaign = createDirectCampaign;
|
|
371
|
-
async function createOWCampaign(app) {
|
|
372
|
-
let owCampaign = await keitaro_service_1.KeitaroService.cloneOWCampaign(app);
|
|
371
|
+
async function createOWCampaign(app, platform) {
|
|
372
|
+
let owCampaign = await keitaro_service_1.KeitaroService.cloneOWCampaign(app, platform);
|
|
373
373
|
return owCampaign;
|
|
374
374
|
}
|
|
375
375
|
exports.createOWCampaign = createOWCampaign;
|
package/package.json
CHANGED
package/src/app/app.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IKeitaroStream } from "../keitaro/keitaro-stream"
|
|
2
|
-
import { IApp, PlugType, } from "../app/app"
|
|
2
|
+
import { EPlatform, IApp, PlugType, } from "../app/app"
|
|
3
3
|
import { AppType } from "../app/app-type"
|
|
4
4
|
import { IKeitaroCampaign, IKeitaroCampaignParameters } from "../keitaro/keitaro-campaign"
|
|
5
5
|
import { IKeitaroDomain } from "../keitaro/keitaro-domain"
|
|
@@ -408,8 +408,8 @@ export async function createDirectCampaign(app: IApp) {
|
|
|
408
408
|
return campaign
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
export async function createOWCampaign(app: IApp) {
|
|
412
|
-
let owCampaign = await KeitaroService.cloneOWCampaign(app)
|
|
411
|
+
export async function createOWCampaign(app: IApp, platform?: EPlatform ) {
|
|
412
|
+
let owCampaign = await KeitaroService.cloneOWCampaign(app, platform)
|
|
413
413
|
|
|
414
414
|
return owCampaign
|
|
415
415
|
}
|