@bprotsyk/aso-core 2.1.197 → 2.1.198

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
@@ -41,7 +41,11 @@ export declare enum IntegrationVersion {
41
41
  DIRECT = "direct",
42
42
  WEB_DIRECT = "web_direct",
43
43
  NONE = "none",
44
- POLICY = "policy"
44
+ POLICY = "policy",
45
+ OFFER_STUB = "offer_stub",
46
+ WEB = "web",
47
+ BANNER = "banner",
48
+ PWA = "pwa"
45
49
  }
46
50
  export declare enum EPlatform {
47
51
  GENERAL = "@",
@@ -108,19 +112,22 @@ export interface IUpsertAppRequest {
108
112
  enabled?: boolean;
109
113
  bundle?: string;
110
114
  name?: string;
111
- keitaroData?: any;
115
+ integrationType?: IntegrationType;
116
+ offerwallCampaign?: IAppKeitaroData | null;
117
+ directCampaign?: IAppKeitaroData | null;
112
118
  domainParams?: Partial<IDomainParams>;
119
+ policyPath?: string;
120
+ status?: AppStatus;
121
+ file?: any;
122
+ keitaroData?: any;
113
123
  bannerParams?: any;
114
124
  offersStubParams?: any;
115
125
  platforms?: {
116
126
  [key: string]: IPlatformParams;
117
127
  };
118
128
  ech?: any;
119
- policyPath?: string;
120
129
  appmetricaApiKey?: string;
121
130
  appmetricaAppId?: string | number;
122
- status?: AppStatus;
123
- file?: any;
124
131
  integrationVersion?: IntegrationVersion;
125
132
  geos?: string[];
126
133
  }
package/lib/app/app.js CHANGED
@@ -16,6 +16,10 @@ var IntegrationVersion;
16
16
  IntegrationVersion["WEB_DIRECT"] = "web_direct";
17
17
  IntegrationVersion["NONE"] = "none";
18
18
  IntegrationVersion["POLICY"] = "policy";
19
+ IntegrationVersion["OFFER_STUB"] = "offer_stub";
20
+ IntegrationVersion["WEB"] = "web";
21
+ IntegrationVersion["BANNER"] = "banner";
22
+ IntegrationVersion["PWA"] = "pwa";
19
23
  })(IntegrationVersion = exports.IntegrationVersion || (exports.IntegrationVersion = {}));
20
24
  // @deprecated - Platform enum (no longer used)
21
25
  var EPlatform;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.197",
3
+ "version": "2.1.198",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
package/src/app/app.ts CHANGED
@@ -21,7 +21,11 @@ export enum IntegrationVersion {
21
21
  DIRECT = "direct",
22
22
  WEB_DIRECT = "web_direct",
23
23
  NONE = "none",
24
- POLICY = "policy"
24
+ POLICY = "policy",
25
+ OFFER_STUB = "offer_stub",
26
+ WEB = "web",
27
+ BANNER = "banner",
28
+ PWA = "pwa"
25
29
  }
26
30
 
27
31
  // @deprecated - Platform enum (no longer used)
@@ -78,23 +82,33 @@ export enum AlternativeOnBackPressed { DEFAULT = "default" }
78
82
  export enum AlternativeSourceType { DEFAULT = "default" }
79
83
  export enum AlternativeStorageType { DEFAULT = "default" }
80
84
 
81
- // @deprecated - Upsert request interface
85
+ // Upsert request interface
82
86
  export interface IUpsertAppRequest {
83
87
  id: number
84
88
  enabled?: boolean
85
89
  bundle?: string
86
90
  name?: string
87
- keitaroData?: any
91
+
92
+ // Integration type - offerwall or direct
93
+ integrationType?: IntegrationType
94
+
95
+ // Keitaro campaigns
96
+ offerwallCampaign?: IAppKeitaroData | null
97
+ directCampaign?: IAppKeitaroData | null
98
+
88
99
  domainParams?: Partial<IDomainParams>
100
+ policyPath?: string
101
+ status?: AppStatus
102
+ file?: any
103
+
104
+ // @deprecated fields
105
+ keitaroData?: any
89
106
  bannerParams?: any
90
107
  offersStubParams?: any
91
108
  platforms?: { [key: string]: IPlatformParams }
92
109
  ech?: any
93
- policyPath?: string
94
110
  appmetricaApiKey?: string
95
111
  appmetricaAppId?: string | number
96
- status?: AppStatus
97
- file?: any
98
112
  integrationVersion?: IntegrationVersion
99
113
  geos?: string[]
100
114
  }