@bprotsyk/aso-core 1.2.143 → 1.2.145

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.
@@ -52,6 +52,7 @@ export interface IPrivacyPolicyParams {
52
52
  adverisingIdQuery: string;
53
53
  confirmFunctionName: string;
54
54
  redirectFunctionName: string;
55
+ redirect: boolean;
55
56
  }
56
57
  export declare enum IntegrationVersion {
57
58
  MVVM = "MVVM",
@@ -11,3 +11,4 @@ export declare function createFlashCampaigns(app: IFlashApp): Promise<{
11
11
  tracking: IKeitaroCampaign;
12
12
  redirect: IKeitaroCampaign;
13
13
  }>;
14
+ export declare function createOWCampaign(app: IFlashApp): Promise<IKeitaroCampaign>;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createFlashCampaigns = exports.createOWStreamPartialPayload = exports.prepareOWCampaignParameters = exports.createOrFindFlashRedirectCampaign = exports.removeGeosFromAllRedirectCampaigns = exports.addGeosToAllRedirectCampaigns = exports.TRAFFIC_SOURCE_ID_FLASH_AI = void 0;
6
+ exports.createOWCampaign = exports.createFlashCampaigns = exports.createOWStreamPartialPayload = exports.prepareOWCampaignParameters = exports.createOrFindFlashRedirectCampaign = exports.removeGeosFromAllRedirectCampaigns = exports.addGeosToAllRedirectCampaigns = exports.TRAFFIC_SOURCE_ID_FLASH_AI = void 0;
7
7
  const keitaro_service_1 = require("../network/keitaro/keitaro-service");
8
8
  const sleep_promise_1 = __importDefault(require("sleep-promise"));
9
9
  const FLASH_REDIRECT_GROUP_ID = 82;
@@ -335,6 +335,11 @@ async function createFlashCampaigns(app) {
335
335
  };
336
336
  }
337
337
  exports.createFlashCampaigns = createFlashCampaigns;
338
+ async function createOWCampaign(app) {
339
+ let owCampaign = await keitaro_service_1.KeitaroService.cloneOWCampaign(app);
340
+ return owCampaign;
341
+ }
342
+ exports.createOWCampaign = createOWCampaign;
338
343
  // TODO separate files for offers, campaigns etc.
339
344
  let removeBrokenDomain = async () => {
340
345
  let regexp = new RegExp(`^FA #`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.143",
3
+ "version": "1.2.145",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -26,12 +26,12 @@ export interface IFlashApp extends Document {
26
26
  onesignalAppId: string
27
27
  onesignalRestApiKey: string
28
28
 
29
- generationOptions: IAppGenerationOptions,
30
- keitaroData: IAppKeitaroData | null,
29
+ generationOptions: IAppGenerationOptions
30
+ keitaroData: IAppKeitaroData | null
31
31
  integrationVersion: IntegrationVersion
32
- integrationAlterations?: IntegrationAlterations,
32
+ integrationAlterations?: IntegrationAlterations
33
33
 
34
- removeDataParams?: IRemoveDataParams,
34
+ removeDataParams?: IRemoveDataParams
35
35
  privacyPolicyParams?: IPrivacyPolicyParams
36
36
  domainParams: IDomainParams
37
37
  developerParams: IDeveloperParams
@@ -63,7 +63,9 @@ export interface IPrivacyPolicyParams {
63
63
  path: string,
64
64
  adverisingIdQuery: string
65
65
  confirmFunctionName: string,
66
- redirectFunctionName: string
66
+ redirectFunctionName: string,
67
+
68
+ redirect: boolean
67
69
  }
68
70
 
69
71
  export enum IntegrationVersion {
@@ -365,6 +365,13 @@ export async function createFlashCampaigns(app: IFlashApp) {
365
365
  }
366
366
  }
367
367
 
368
+ export async function createOWCampaign(app: IFlashApp) {
369
+ let owCampaign = await KeitaroService.cloneOWCampaign(app)
370
+
371
+ return owCampaign
372
+ }
373
+
374
+
368
375
  // TODO separate files for offers, campaigns etc.
369
376
 
370
377
  let removeBrokenDomain = async () => {