@bprotsyk/aso-core 2.1.196 → 2.1.197

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
@@ -36,6 +36,94 @@ export declare enum IntegrationType {
36
36
  OFFERWALL = "offerwall",
37
37
  DIRECT = "direct"
38
38
  }
39
+ export declare enum IntegrationVersion {
40
+ OFFERWALL = "offerwall",
41
+ DIRECT = "direct",
42
+ WEB_DIRECT = "web_direct",
43
+ NONE = "none",
44
+ POLICY = "policy"
45
+ }
46
+ export declare enum EPlatform {
47
+ GENERAL = "@",
48
+ SAMSUNG = "samsung"
49
+ }
50
+ export declare enum EDirectType {
51
+ ELTRAFICO = "eltrafico",
52
+ TRAFFLE = "traffle",
53
+ KEITARO_OFFER = "keitaro_offer",
54
+ OFFER_DIRECT = "offer_direct"
55
+ }
56
+ export interface IPlatformParams {
57
+ enabled?: boolean;
58
+ proxied?: boolean;
59
+ params?: any;
60
+ newPlatform?: boolean;
61
+ direct?: {
62
+ keitaroData?: IAppKeitaroData | boolean;
63
+ addDefaultStreams?: boolean;
64
+ directType?: EDirectType | string;
65
+ enabled?: boolean;
66
+ trackingUrl?: string;
67
+ };
68
+ offerwall?: {
69
+ keitaroData?: IAppKeitaroData | boolean;
70
+ };
71
+ appsflyerParams?: any;
72
+ keitaroData?: IAppKeitaroData | boolean;
73
+ metricaParams?: any;
74
+ adjustParams?: any;
75
+ geo?: string;
76
+ }
77
+ export interface IUpsertAppResponse {
78
+ success: boolean;
79
+ error?: string;
80
+ app?: IApp;
81
+ }
82
+ export declare enum AlternativeLayoutType {
83
+ DEFAULT = "default"
84
+ }
85
+ export declare enum AlternativeLogicType {
86
+ DEFAULT = "default"
87
+ }
88
+ export declare enum AlternativeNavigation {
89
+ DEFAULT = "default"
90
+ }
91
+ export declare enum AlternativeNetworkTool {
92
+ DEFAULT = "default"
93
+ }
94
+ export declare enum AlternativeOnActivityResult {
95
+ DEFAULT = "default"
96
+ }
97
+ export declare enum AlternativeOnBackPressed {
98
+ DEFAULT = "default"
99
+ }
100
+ export declare enum AlternativeSourceType {
101
+ DEFAULT = "default"
102
+ }
103
+ export declare enum AlternativeStorageType {
104
+ DEFAULT = "default"
105
+ }
106
+ export interface IUpsertAppRequest {
107
+ id: number;
108
+ enabled?: boolean;
109
+ bundle?: string;
110
+ name?: string;
111
+ keitaroData?: any;
112
+ domainParams?: Partial<IDomainParams>;
113
+ bannerParams?: any;
114
+ offersStubParams?: any;
115
+ platforms?: {
116
+ [key: string]: IPlatformParams;
117
+ };
118
+ ech?: any;
119
+ policyPath?: string;
120
+ appmetricaApiKey?: string;
121
+ appmetricaAppId?: string | number;
122
+ status?: AppStatus;
123
+ file?: any;
124
+ integrationVersion?: IntegrationVersion;
125
+ geos?: string[];
126
+ }
39
127
  export declare const OFFERWALL_TEMPLATE_CAMPAIGN_ID = 3497;
40
128
  export declare const DIRECT_TEMPLATE_CAMPAIGN_ID = 3499;
41
129
  export declare const DEFENCE_CAMPAIGN_ID = 3498;
@@ -55,6 +143,18 @@ export interface IApp extends Document {
55
143
  domainParams: IDomainParams;
56
144
  policyPath: string;
57
145
  postbacks?: IAppsflyerPostback[];
146
+ keitaroData?: IAppKeitaroData | null;
147
+ platforms?: {
148
+ [key: string]: IPlatformParams;
149
+ };
150
+ bannerParams?: any;
151
+ offersStubParams?: any;
152
+ ech?: any;
153
+ offerwallParams?: any;
154
+ appmetricaApiKey?: string;
155
+ appmetricaAppId?: string;
156
+ integrationVersion?: IntegrationVersion;
157
+ geos?: string[];
58
158
  }
59
159
  export interface IAppsflyerParams {
60
160
  apiToken: string;
@@ -122,6 +222,13 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
122
222
  notes?: string | null | undefined;
123
223
  }>;
124
224
  name?: string | null | undefined;
225
+ platforms?: any;
226
+ bannerParams?: any;
227
+ offersStubParams?: any;
228
+ ech?: any;
229
+ offerwallParams?: any;
230
+ appmetricaApiKey?: string | null | undefined;
231
+ appmetricaAppId?: string | null | undefined;
125
232
  onesignalAppId?: string | null | undefined;
126
233
  onesignalRestApiKey?: string | null | undefined;
127
234
  offerwallCampaign?: {
@@ -173,6 +280,15 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
173
280
  clouflareZone?: string | null | undefined;
174
281
  ready?: boolean | null | undefined;
175
282
  } | null | undefined;
283
+ keitaroData?: {
284
+ trackingCampaignId?: number | null | undefined;
285
+ trackingCampaignName?: string | null | undefined;
286
+ trackingCampaignAlias?: string | null | undefined;
287
+ trackingDomainId?: number | null | undefined;
288
+ trackingDomainName?: string | null | undefined;
289
+ campingToken?: string | null | undefined;
290
+ trackingParams?: any;
291
+ } | null | undefined;
176
292
  }, Document<unknown, {}, import("mongoose").FlatRecord<{
177
293
  id: number;
178
294
  enabled: boolean;
@@ -203,6 +319,13 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
203
319
  notes?: string | null | undefined;
204
320
  }>;
205
321
  name?: string | null | undefined;
322
+ platforms?: any;
323
+ bannerParams?: any;
324
+ offersStubParams?: any;
325
+ ech?: any;
326
+ offerwallParams?: any;
327
+ appmetricaApiKey?: string | null | undefined;
328
+ appmetricaAppId?: string | null | undefined;
206
329
  onesignalAppId?: string | null | undefined;
207
330
  onesignalRestApiKey?: string | null | undefined;
208
331
  offerwallCampaign?: {
@@ -254,6 +377,15 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
254
377
  clouflareZone?: string | null | undefined;
255
378
  ready?: boolean | null | undefined;
256
379
  } | null | undefined;
380
+ keitaroData?: {
381
+ trackingCampaignId?: number | null | undefined;
382
+ trackingCampaignName?: string | null | undefined;
383
+ trackingCampaignAlias?: string | null | undefined;
384
+ trackingDomainId?: number | null | undefined;
385
+ trackingDomainName?: string | null | undefined;
386
+ campingToken?: string | null | undefined;
387
+ trackingParams?: any;
388
+ } | null | undefined;
257
389
  }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
258
390
  id: number;
259
391
  enabled: boolean;
@@ -284,6 +416,13 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
284
416
  notes?: string | null | undefined;
285
417
  }>;
286
418
  name?: string | null | undefined;
419
+ platforms?: any;
420
+ bannerParams?: any;
421
+ offersStubParams?: any;
422
+ ech?: any;
423
+ offerwallParams?: any;
424
+ appmetricaApiKey?: string | null | undefined;
425
+ appmetricaAppId?: string | null | undefined;
287
426
  onesignalAppId?: string | null | undefined;
288
427
  onesignalRestApiKey?: string | null | undefined;
289
428
  offerwallCampaign?: {
@@ -335,6 +474,15 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
335
474
  clouflareZone?: string | null | undefined;
336
475
  ready?: boolean | null | undefined;
337
476
  } | null | undefined;
477
+ keitaroData?: {
478
+ trackingCampaignId?: number | null | undefined;
479
+ trackingCampaignName?: string | null | undefined;
480
+ trackingCampaignAlias?: string | null | undefined;
481
+ trackingDomainId?: number | null | undefined;
482
+ trackingDomainName?: string | null | undefined;
483
+ campingToken?: string | null | undefined;
484
+ trackingParams?: any;
485
+ } | null | undefined;
338
486
  }> & {
339
487
  _id: import("mongoose").Types.ObjectId;
340
488
  } & {
package/lib/app/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppSchema = exports.AppStatus = exports.DEFENCE_CAMPAIGN_TOKEN = exports.DEFENCE_CAMPAIGN_ID = exports.DIRECT_TEMPLATE_CAMPAIGN_ID = exports.OFFERWALL_TEMPLATE_CAMPAIGN_ID = exports.IntegrationType = void 0;
3
+ exports.AppSchema = exports.AppStatus = exports.DEFENCE_CAMPAIGN_TOKEN = exports.DEFENCE_CAMPAIGN_ID = exports.DIRECT_TEMPLATE_CAMPAIGN_ID = exports.OFFERWALL_TEMPLATE_CAMPAIGN_ID = exports.AlternativeStorageType = exports.AlternativeSourceType = exports.AlternativeOnBackPressed = exports.AlternativeOnActivityResult = exports.AlternativeNetworkTool = exports.AlternativeNavigation = exports.AlternativeLogicType = exports.AlternativeLayoutType = exports.EDirectType = exports.EPlatform = exports.IntegrationVersion = exports.IntegrationType = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  // Integration types - OFFERWALL is default
6
6
  var IntegrationType;
@@ -8,6 +8,62 @@ var IntegrationType;
8
8
  IntegrationType["OFFERWALL"] = "offerwall";
9
9
  IntegrationType["DIRECT"] = "direct";
10
10
  })(IntegrationType = exports.IntegrationType || (exports.IntegrationType = {}));
11
+ // @deprecated - use IntegrationType instead
12
+ var IntegrationVersion;
13
+ (function (IntegrationVersion) {
14
+ IntegrationVersion["OFFERWALL"] = "offerwall";
15
+ IntegrationVersion["DIRECT"] = "direct";
16
+ IntegrationVersion["WEB_DIRECT"] = "web_direct";
17
+ IntegrationVersion["NONE"] = "none";
18
+ IntegrationVersion["POLICY"] = "policy";
19
+ })(IntegrationVersion = exports.IntegrationVersion || (exports.IntegrationVersion = {}));
20
+ // @deprecated - Platform enum (no longer used)
21
+ var EPlatform;
22
+ (function (EPlatform) {
23
+ EPlatform["GENERAL"] = "@";
24
+ EPlatform["SAMSUNG"] = "samsung";
25
+ })(EPlatform = exports.EPlatform || (exports.EPlatform = {}));
26
+ // @deprecated - Direct type enum
27
+ var EDirectType;
28
+ (function (EDirectType) {
29
+ EDirectType["ELTRAFICO"] = "eltrafico";
30
+ EDirectType["TRAFFLE"] = "traffle";
31
+ EDirectType["KEITARO_OFFER"] = "keitaro_offer";
32
+ EDirectType["OFFER_DIRECT"] = "offer_direct";
33
+ })(EDirectType = exports.EDirectType || (exports.EDirectType = {}));
34
+ // @deprecated - Constructor types
35
+ var AlternativeLayoutType;
36
+ (function (AlternativeLayoutType) {
37
+ AlternativeLayoutType["DEFAULT"] = "default";
38
+ })(AlternativeLayoutType = exports.AlternativeLayoutType || (exports.AlternativeLayoutType = {}));
39
+ var AlternativeLogicType;
40
+ (function (AlternativeLogicType) {
41
+ AlternativeLogicType["DEFAULT"] = "default";
42
+ })(AlternativeLogicType = exports.AlternativeLogicType || (exports.AlternativeLogicType = {}));
43
+ var AlternativeNavigation;
44
+ (function (AlternativeNavigation) {
45
+ AlternativeNavigation["DEFAULT"] = "default";
46
+ })(AlternativeNavigation = exports.AlternativeNavigation || (exports.AlternativeNavigation = {}));
47
+ var AlternativeNetworkTool;
48
+ (function (AlternativeNetworkTool) {
49
+ AlternativeNetworkTool["DEFAULT"] = "default";
50
+ })(AlternativeNetworkTool = exports.AlternativeNetworkTool || (exports.AlternativeNetworkTool = {}));
51
+ var AlternativeOnActivityResult;
52
+ (function (AlternativeOnActivityResult) {
53
+ AlternativeOnActivityResult["DEFAULT"] = "default";
54
+ })(AlternativeOnActivityResult = exports.AlternativeOnActivityResult || (exports.AlternativeOnActivityResult = {}));
55
+ var AlternativeOnBackPressed;
56
+ (function (AlternativeOnBackPressed) {
57
+ AlternativeOnBackPressed["DEFAULT"] = "default";
58
+ })(AlternativeOnBackPressed = exports.AlternativeOnBackPressed || (exports.AlternativeOnBackPressed = {}));
59
+ var AlternativeSourceType;
60
+ (function (AlternativeSourceType) {
61
+ AlternativeSourceType["DEFAULT"] = "default";
62
+ })(AlternativeSourceType = exports.AlternativeSourceType || (exports.AlternativeSourceType = {}));
63
+ var AlternativeStorageType;
64
+ (function (AlternativeStorageType) {
65
+ AlternativeStorageType["DEFAULT"] = "default";
66
+ })(AlternativeStorageType = exports.AlternativeStorageType || (exports.AlternativeStorageType = {}));
11
67
  // Campaign IDs for cloning
12
68
  exports.OFFERWALL_TEMPLATE_CAMPAIGN_ID = 3497;
13
69
  exports.DIRECT_TEMPLATE_CAMPAIGN_ID = 3499;
@@ -136,5 +192,22 @@ exports.AppSchema = new mongoose_1.Schema({
136
192
  type: String,
137
193
  required: false
138
194
  }
139
- }]
195
+ }],
196
+ // @deprecated fields for backwards compatibility
197
+ keitaroData: {
198
+ trackingCampaignId: Number,
199
+ trackingCampaignName: String,
200
+ trackingCampaignAlias: String,
201
+ trackingDomainId: Number,
202
+ trackingDomainName: String,
203
+ campingToken: String,
204
+ trackingParams: mongoose_1.Schema.Types.Mixed
205
+ },
206
+ platforms: mongoose_1.Schema.Types.Mixed,
207
+ bannerParams: mongoose_1.Schema.Types.Mixed,
208
+ offersStubParams: mongoose_1.Schema.Types.Mixed,
209
+ ech: mongoose_1.Schema.Types.Mixed,
210
+ offerwallParams: mongoose_1.Schema.Types.Mixed,
211
+ appmetricaApiKey: String,
212
+ appmetricaAppId: String
140
213
  });
package/lib/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { IPush } from "./general/push";
2
2
  export { IOffer, IPartner, IOfferType } from "./offers/offer";
3
3
  export { IOffersSection, OffersSectionSchema, DefaultSectionId } from "./offers/section";
4
4
  export { IAppOffersSection, ISectionsList, SectionsListSchema, IOfferState } from "./offers/list";
5
- export { IntegrationType, IApp, AppSchema, IAppKeitaroData, IAppsflyerParams, AppStatus, IAppsflyerPostback, IDomainParams, IKeitaroDirectTrackingParams, OFFERWALL_TEMPLATE_CAMPAIGN_ID, DIRECT_TEMPLATE_CAMPAIGN_ID, DEFENCE_CAMPAIGN_ID, DEFENCE_CAMPAIGN_TOKEN } from "./app/app";
5
+ export { IntegrationType, IntegrationVersion, EPlatform, EDirectType, IPlatformParams, IUpsertAppRequest, IUpsertAppResponse, AlternativeLayoutType, AlternativeLogicType, AlternativeNavigation, AlternativeNetworkTool, AlternativeOnActivityResult, AlternativeOnBackPressed, AlternativeSourceType, AlternativeStorageType, IApp, AppSchema, IAppKeitaroData, IAppsflyerParams, AppStatus, IAppsflyerPostback, IDomainParams, IKeitaroDirectTrackingParams, OFFERWALL_TEMPLATE_CAMPAIGN_ID, DIRECT_TEMPLATE_CAMPAIGN_ID, DEFENCE_CAMPAIGN_ID, DEFENCE_CAMPAIGN_TOKEN } from "./app/app";
6
6
  export { IAppListItem } from "./app/app-list-item";
7
7
  export { AppType } from "./app/app-type";
8
8
  export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user";
@@ -16,6 +16,7 @@ export { IKeitaroCampaign, IKeitaroCampaignParameters, IKeitaroCampaignParameter
16
16
  export { IKeitaroDomain } from "./keitaro/keitaro-domain";
17
17
  export { IKeitaroOffer } from "./keitaro/keitaro-offer";
18
18
  export { IKeitaroStream } from "./keitaro/keitaro-stream";
19
+ export { KeitaroService } from "./network/keitaro/keitaro-service";
19
20
  export { ICloudflareDomainStatus, ICloudflareDomainType, ICloudflareDomain } from "./general/cloudflare-domain";
20
21
  export { IDomain, IDomainSetupResult, DomainStatus, DomainTarget, CONST_CLOUFLARE_STATUS_READY, IDomainsBuyRequestResponse, getDomainTargetByIp } from "./general/domain";
21
22
  export { INamecheapDomain, INamecheapBuyRequest, INamecheapContactInfo, NamecheapBuyRequestSchema, INamecheapGetDomainsResult, INamecheapBuyResult } from "./general/namecheap-domain";
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NginxTemplate = exports.NamecheapBuyRequestSchema = exports.getDomainTargetByIp = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.AppType = exports.DEFENCE_CAMPAIGN_TOKEN = exports.DEFENCE_CAMPAIGN_ID = exports.DIRECT_TEMPLATE_CAMPAIGN_ID = exports.OFFERWALL_TEMPLATE_CAMPAIGN_ID = exports.AppStatus = exports.AppSchema = exports.IntegrationType = exports.SectionsListSchema = exports.DefaultSectionId = exports.OffersSectionSchema = exports.IOfferType = void 0;
3
+ exports.NginxTemplate = exports.NamecheapBuyRequestSchema = exports.getDomainTargetByIp = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroService = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.AppType = exports.DEFENCE_CAMPAIGN_TOKEN = exports.DEFENCE_CAMPAIGN_ID = exports.DIRECT_TEMPLATE_CAMPAIGN_ID = exports.OFFERWALL_TEMPLATE_CAMPAIGN_ID = exports.AppStatus = exports.AppSchema = exports.AlternativeStorageType = exports.AlternativeSourceType = exports.AlternativeOnBackPressed = exports.AlternativeOnActivityResult = exports.AlternativeNetworkTool = exports.AlternativeNavigation = exports.AlternativeLogicType = exports.AlternativeLayoutType = exports.EDirectType = exports.EPlatform = exports.IntegrationVersion = exports.IntegrationType = exports.SectionsListSchema = exports.DefaultSectionId = exports.OffersSectionSchema = exports.IOfferType = void 0;
4
4
  var offer_1 = require("./offers/offer");
5
5
  Object.defineProperty(exports, "IOfferType", { enumerable: true, get: function () { return offer_1.IOfferType; } });
6
6
  var section_1 = require("./offers/section");
@@ -10,6 +10,17 @@ var list_1 = require("./offers/list");
10
10
  Object.defineProperty(exports, "SectionsListSchema", { enumerable: true, get: function () { return list_1.SectionsListSchema; } });
11
11
  var app_1 = require("./app/app");
12
12
  Object.defineProperty(exports, "IntegrationType", { enumerable: true, get: function () { return app_1.IntegrationType; } });
13
+ Object.defineProperty(exports, "IntegrationVersion", { enumerable: true, get: function () { return app_1.IntegrationVersion; } });
14
+ Object.defineProperty(exports, "EPlatform", { enumerable: true, get: function () { return app_1.EPlatform; } });
15
+ Object.defineProperty(exports, "EDirectType", { enumerable: true, get: function () { return app_1.EDirectType; } });
16
+ Object.defineProperty(exports, "AlternativeLayoutType", { enumerable: true, get: function () { return app_1.AlternativeLayoutType; } });
17
+ Object.defineProperty(exports, "AlternativeLogicType", { enumerable: true, get: function () { return app_1.AlternativeLogicType; } });
18
+ Object.defineProperty(exports, "AlternativeNavigation", { enumerable: true, get: function () { return app_1.AlternativeNavigation; } });
19
+ Object.defineProperty(exports, "AlternativeNetworkTool", { enumerable: true, get: function () { return app_1.AlternativeNetworkTool; } });
20
+ Object.defineProperty(exports, "AlternativeOnActivityResult", { enumerable: true, get: function () { return app_1.AlternativeOnActivityResult; } });
21
+ Object.defineProperty(exports, "AlternativeOnBackPressed", { enumerable: true, get: function () { return app_1.AlternativeOnBackPressed; } });
22
+ Object.defineProperty(exports, "AlternativeSourceType", { enumerable: true, get: function () { return app_1.AlternativeSourceType; } });
23
+ Object.defineProperty(exports, "AlternativeStorageType", { enumerable: true, get: function () { return app_1.AlternativeStorageType; } });
13
24
  Object.defineProperty(exports, "AppSchema", { enumerable: true, get: function () { return app_1.AppSchema; } });
14
25
  Object.defineProperty(exports, "AppStatus", { enumerable: true, get: function () { return app_1.AppStatus; } });
15
26
  Object.defineProperty(exports, "OFFERWALL_TEMPLATE_CAMPAIGN_ID", { enumerable: true, get: function () { return app_1.OFFERWALL_TEMPLATE_CAMPAIGN_ID; } });
@@ -23,6 +34,8 @@ Object.defineProperty(exports, "PanelUserAccessScope", { enumerable: true, get:
23
34
  Object.defineProperty(exports, "PanelUserSchema", { enumerable: true, get: function () { return user_1.PanelUserSchema; } });
24
35
  var shape_1 = require("./general/shape");
25
36
  Object.defineProperty(exports, "ShapeDiv", { enumerable: true, get: function () { return shape_1.ShapeDiv; } });
37
+ var keitaro_service_1 = require("./network/keitaro/keitaro-service");
38
+ Object.defineProperty(exports, "KeitaroService", { enumerable: true, get: function () { return keitaro_service_1.KeitaroService; } });
26
39
  var cloudflare_domain_1 = require("./general/cloudflare-domain");
27
40
  Object.defineProperty(exports, "ICloudflareDomainStatus", { enumerable: true, get: function () { return cloudflare_domain_1.ICloudflareDomainStatus; } });
28
41
  Object.defineProperty(exports, "ICloudflareDomainType", { enumerable: true, get: function () { return cloudflare_domain_1.ICloudflareDomainType; } });
@@ -44,21 +44,21 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
44
44
  name: string;
45
45
  content: import("mongoose").Types.DocumentArray<{
46
46
  prototype?: {
47
+ toString: {} | null;
48
+ valueOf: {} | null;
49
+ toLocaleString: {} | null;
47
50
  constructor: {
48
51
  name?: unknown;
49
52
  [Symbol.hasInstance]?: {} | null | undefined;
50
53
  prototype?: unknown;
51
54
  length?: unknown;
55
+ toString: {} | null;
52
56
  caller?: any | null | undefined;
53
57
  arguments?: unknown;
54
- toString: {} | null;
55
58
  apply?: {} | null | undefined;
56
59
  call?: {} | null | undefined;
57
60
  bind?: {} | null | undefined;
58
61
  } | null;
59
- toString: {} | null;
60
- toLocaleString: {} | null;
61
- valueOf: {} | null;
62
62
  hasOwnProperty: {} | null;
63
63
  isPrototypeOf: {} | null;
64
64
  propertyIsEnumerable: {} | null;
@@ -87,21 +87,21 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
87
87
  hasOwn?: {} | null | undefined;
88
88
  }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
89
89
  prototype?: {
90
+ toString: {} | null;
91
+ valueOf: {} | null;
92
+ toLocaleString: {} | null;
90
93
  constructor: {
91
94
  name?: unknown;
92
95
  [Symbol.hasInstance]?: {} | null | undefined;
93
96
  prototype?: unknown;
94
97
  length?: unknown;
98
+ toString: {} | null;
95
99
  caller?: any | null | undefined;
96
100
  arguments?: unknown;
97
- toString: {} | null;
98
101
  apply?: {} | null | undefined;
99
102
  call?: {} | null | undefined;
100
103
  bind?: {} | null | undefined;
101
104
  } | null;
102
- toString: {} | null;
103
- toLocaleString: {} | null;
104
- valueOf: {} | null;
105
105
  hasOwnProperty: {} | null;
106
106
  isPrototypeOf: {} | null;
107
107
  propertyIsEnumerable: {} | null;
@@ -130,21 +130,21 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
130
130
  hasOwn?: {} | null | undefined;
131
131
  }> & {
132
132
  prototype?: {
133
+ toString: {} | null;
134
+ valueOf: {} | null;
135
+ toLocaleString: {} | null;
133
136
  constructor: {
134
137
  name?: unknown;
135
138
  [Symbol.hasInstance]?: {} | null | undefined;
136
139
  prototype?: unknown;
137
140
  length?: unknown;
141
+ toString: {} | null;
138
142
  caller?: any | null | undefined;
139
143
  arguments?: unknown;
140
- toString: {} | null;
141
144
  apply?: {} | null | undefined;
142
145
  call?: {} | null | undefined;
143
146
  bind?: {} | null | undefined;
144
147
  } | null;
145
- toString: {} | null;
146
- toLocaleString: {} | null;
147
- valueOf: {} | null;
148
148
  hasOwnProperty: {} | null;
149
149
  isPrototypeOf: {} | null;
150
150
  propertyIsEnumerable: {} | null;
@@ -177,21 +177,21 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
177
177
  name: string;
178
178
  content: import("mongoose").Types.DocumentArray<{
179
179
  prototype?: {
180
+ toString: {} | null;
181
+ valueOf: {} | null;
182
+ toLocaleString: {} | null;
180
183
  constructor: {
181
184
  name?: unknown;
182
185
  [Symbol.hasInstance]?: {} | null | undefined;
183
186
  prototype?: unknown;
184
187
  length?: unknown;
188
+ toString: {} | null;
185
189
  caller?: any | null | undefined;
186
190
  arguments?: unknown;
187
- toString: {} | null;
188
191
  apply?: {} | null | undefined;
189
192
  call?: {} | null | undefined;
190
193
  bind?: {} | null | undefined;
191
194
  } | null;
192
- toString: {} | null;
193
- toLocaleString: {} | null;
194
- valueOf: {} | null;
195
195
  hasOwnProperty: {} | null;
196
196
  isPrototypeOf: {} | null;
197
197
  propertyIsEnumerable: {} | null;
@@ -220,21 +220,21 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
220
220
  hasOwn?: {} | null | undefined;
221
221
  }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
222
222
  prototype?: {
223
+ toString: {} | null;
224
+ valueOf: {} | null;
225
+ toLocaleString: {} | null;
223
226
  constructor: {
224
227
  name?: unknown;
225
228
  [Symbol.hasInstance]?: {} | null | undefined;
226
229
  prototype?: unknown;
227
230
  length?: unknown;
231
+ toString: {} | null;
228
232
  caller?: any | null | undefined;
229
233
  arguments?: unknown;
230
- toString: {} | null;
231
234
  apply?: {} | null | undefined;
232
235
  call?: {} | null | undefined;
233
236
  bind?: {} | null | undefined;
234
237
  } | null;
235
- toString: {} | null;
236
- toLocaleString: {} | null;
237
- valueOf: {} | null;
238
238
  hasOwnProperty: {} | null;
239
239
  isPrototypeOf: {} | null;
240
240
  propertyIsEnumerable: {} | null;
@@ -263,21 +263,21 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
263
263
  hasOwn?: {} | null | undefined;
264
264
  }> & {
265
265
  prototype?: {
266
+ toString: {} | null;
267
+ valueOf: {} | null;
268
+ toLocaleString: {} | null;
266
269
  constructor: {
267
270
  name?: unknown;
268
271
  [Symbol.hasInstance]?: {} | null | undefined;
269
272
  prototype?: unknown;
270
273
  length?: unknown;
274
+ toString: {} | null;
271
275
  caller?: any | null | undefined;
272
276
  arguments?: unknown;
273
- toString: {} | null;
274
277
  apply?: {} | null | undefined;
275
278
  call?: {} | null | undefined;
276
279
  bind?: {} | null | undefined;
277
280
  } | null;
278
- toString: {} | null;
279
- toLocaleString: {} | null;
280
- valueOf: {} | null;
281
281
  hasOwnProperty: {} | null;
282
282
  isPrototypeOf: {} | null;
283
283
  propertyIsEnumerable: {} | null;
@@ -310,21 +310,21 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
310
310
  name: string;
311
311
  content: import("mongoose").Types.DocumentArray<{
312
312
  prototype?: {
313
+ toString: {} | null;
314
+ valueOf: {} | null;
315
+ toLocaleString: {} | null;
313
316
  constructor: {
314
317
  name?: unknown;
315
318
  [Symbol.hasInstance]?: {} | null | undefined;
316
319
  prototype?: unknown;
317
320
  length?: unknown;
321
+ toString: {} | null;
318
322
  caller?: any | null | undefined;
319
323
  arguments?: unknown;
320
- toString: {} | null;
321
324
  apply?: {} | null | undefined;
322
325
  call?: {} | null | undefined;
323
326
  bind?: {} | null | undefined;
324
327
  } | null;
325
- toString: {} | null;
326
- toLocaleString: {} | null;
327
- valueOf: {} | null;
328
328
  hasOwnProperty: {} | null;
329
329
  isPrototypeOf: {} | null;
330
330
  propertyIsEnumerable: {} | null;
@@ -353,21 +353,21 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
353
353
  hasOwn?: {} | null | undefined;
354
354
  }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
355
355
  prototype?: {
356
+ toString: {} | null;
357
+ valueOf: {} | null;
358
+ toLocaleString: {} | null;
356
359
  constructor: {
357
360
  name?: unknown;
358
361
  [Symbol.hasInstance]?: {} | null | undefined;
359
362
  prototype?: unknown;
360
363
  length?: unknown;
364
+ toString: {} | null;
361
365
  caller?: any | null | undefined;
362
366
  arguments?: unknown;
363
- toString: {} | null;
364
367
  apply?: {} | null | undefined;
365
368
  call?: {} | null | undefined;
366
369
  bind?: {} | null | undefined;
367
370
  } | null;
368
- toString: {} | null;
369
- toLocaleString: {} | null;
370
- valueOf: {} | null;
371
371
  hasOwnProperty: {} | null;
372
372
  isPrototypeOf: {} | null;
373
373
  propertyIsEnumerable: {} | null;
@@ -396,21 +396,21 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
396
396
  hasOwn?: {} | null | undefined;
397
397
  }> & {
398
398
  prototype?: {
399
+ toString: {} | null;
400
+ valueOf: {} | null;
401
+ toLocaleString: {} | null;
399
402
  constructor: {
400
403
  name?: unknown;
401
404
  [Symbol.hasInstance]?: {} | null | undefined;
402
405
  prototype?: unknown;
403
406
  length?: unknown;
407
+ toString: {} | null;
404
408
  caller?: any | null | undefined;
405
409
  arguments?: unknown;
406
- toString: {} | null;
407
410
  apply?: {} | null | undefined;
408
411
  call?: {} | null | undefined;
409
412
  bind?: {} | null | undefined;
410
413
  } | null;
411
- toString: {} | null;
412
- toLocaleString: {} | null;
413
- valueOf: {} | null;
414
414
  hasOwnProperty: {} | null;
415
415
  isPrototypeOf: {} | null;
416
416
  propertyIsEnumerable: {} | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.196",
3
+ "version": "2.1.197",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
package/src/app/app.ts CHANGED
@@ -15,6 +15,90 @@ export enum IntegrationType {
15
15
  DIRECT = "direct"
16
16
  }
17
17
 
18
+ // @deprecated - use IntegrationType instead
19
+ export enum IntegrationVersion {
20
+ OFFERWALL = "offerwall",
21
+ DIRECT = "direct",
22
+ WEB_DIRECT = "web_direct",
23
+ NONE = "none",
24
+ POLICY = "policy"
25
+ }
26
+
27
+ // @deprecated - Platform enum (no longer used)
28
+ export enum EPlatform {
29
+ GENERAL = "@",
30
+ SAMSUNG = "samsung"
31
+ }
32
+
33
+ // @deprecated - Direct type enum
34
+ export enum EDirectType {
35
+ ELTRAFICO = "eltrafico",
36
+ TRAFFLE = "traffle",
37
+ KEITARO_OFFER = "keitaro_offer",
38
+ OFFER_DIRECT = "offer_direct"
39
+ }
40
+
41
+ // @deprecated - Platform params (use offerwallCampaign/directCampaign instead)
42
+ export interface IPlatformParams {
43
+ enabled?: boolean
44
+ proxied?: boolean
45
+ params?: any
46
+ newPlatform?: boolean
47
+ direct?: {
48
+ keitaroData?: IAppKeitaroData | boolean
49
+ addDefaultStreams?: boolean
50
+ directType?: EDirectType | string
51
+ enabled?: boolean
52
+ trackingUrl?: string
53
+ }
54
+ offerwall?: {
55
+ keitaroData?: IAppKeitaroData | boolean
56
+ }
57
+ appsflyerParams?: any
58
+ keitaroData?: IAppKeitaroData | boolean
59
+ metricaParams?: any
60
+ adjustParams?: any
61
+ geo?: string
62
+ }
63
+
64
+ // @deprecated - Response interface
65
+ export interface IUpsertAppResponse {
66
+ success: boolean
67
+ error?: string
68
+ app?: IApp
69
+ }
70
+
71
+ // @deprecated - Constructor types
72
+ export enum AlternativeLayoutType { DEFAULT = "default" }
73
+ export enum AlternativeLogicType { DEFAULT = "default" }
74
+ export enum AlternativeNavigation { DEFAULT = "default" }
75
+ export enum AlternativeNetworkTool { DEFAULT = "default" }
76
+ export enum AlternativeOnActivityResult { DEFAULT = "default" }
77
+ export enum AlternativeOnBackPressed { DEFAULT = "default" }
78
+ export enum AlternativeSourceType { DEFAULT = "default" }
79
+ export enum AlternativeStorageType { DEFAULT = "default" }
80
+
81
+ // @deprecated - Upsert request interface
82
+ export interface IUpsertAppRequest {
83
+ id: number
84
+ enabled?: boolean
85
+ bundle?: string
86
+ name?: string
87
+ keitaroData?: any
88
+ domainParams?: Partial<IDomainParams>
89
+ bannerParams?: any
90
+ offersStubParams?: any
91
+ platforms?: { [key: string]: IPlatformParams }
92
+ ech?: any
93
+ policyPath?: string
94
+ appmetricaApiKey?: string
95
+ appmetricaAppId?: string | number
96
+ status?: AppStatus
97
+ file?: any
98
+ integrationVersion?: IntegrationVersion
99
+ geos?: string[]
100
+ }
101
+
18
102
  // Campaign IDs for cloning
19
103
  export const OFFERWALL_TEMPLATE_CAMPAIGN_ID = 3497
20
104
  export const DIRECT_TEMPLATE_CAMPAIGN_ID = 3499
@@ -50,6 +134,18 @@ export interface IApp extends Document {
50
134
 
51
135
  // Postbacks
52
136
  postbacks?: IAppsflyerPostback[]
137
+
138
+ // @deprecated - use offerwallCampaign/directCampaign instead
139
+ keitaroData?: IAppKeitaroData | null
140
+ platforms?: { [key: string]: IPlatformParams }
141
+ bannerParams?: any
142
+ offersStubParams?: any
143
+ ech?: any
144
+ offerwallParams?: any
145
+ appmetricaApiKey?: string
146
+ appmetricaAppId?: string
147
+ integrationVersion?: IntegrationVersion
148
+ geos?: string[]
53
149
  }
54
150
 
55
151
  export interface IAppsflyerParams {
@@ -210,5 +306,22 @@ export const AppSchema = new Schema({
210
306
  type: String,
211
307
  required: false
212
308
  }
213
- }]
309
+ }],
310
+ // @deprecated fields for backwards compatibility
311
+ keitaroData: {
312
+ trackingCampaignId: Number,
313
+ trackingCampaignName: String,
314
+ trackingCampaignAlias: String,
315
+ trackingDomainId: Number,
316
+ trackingDomainName: String,
317
+ campingToken: String,
318
+ trackingParams: Schema.Types.Mixed
319
+ },
320
+ platforms: Schema.Types.Mixed,
321
+ bannerParams: Schema.Types.Mixed,
322
+ offersStubParams: Schema.Types.Mixed,
323
+ ech: Schema.Types.Mixed,
324
+ offerwallParams: Schema.Types.Mixed,
325
+ appmetricaApiKey: String,
326
+ appmetricaAppId: String
214
327
  })
package/src/index.ts CHANGED
@@ -6,6 +6,20 @@ export { IAppOffersSection, ISectionsList, SectionsListSchema, IOfferState } fro
6
6
 
7
7
  export {
8
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,
9
23
  IApp,
10
24
  AppSchema,
11
25
  IAppKeitaroData,
@@ -35,6 +49,7 @@ export { IKeitaroCampaign, IKeitaroCampaignParameters, IKeitaroCampaignParameter
35
49
  export { IKeitaroDomain } from "./keitaro/keitaro-domain"
36
50
  export { IKeitaroOffer } from "./keitaro/keitaro-offer"
37
51
  export { IKeitaroStream } from "./keitaro/keitaro-stream"
52
+ export { KeitaroService } from "./network/keitaro/keitaro-service"
38
53
 
39
54
  export { ICloudflareDomainStatus, ICloudflareDomainType, ICloudflareDomain } from "./general/cloudflare-domain"
40
55
  export { IDomain, IDomainSetupResult, DomainStatus, DomainTarget, CONST_CLOUFLARE_STATUS_READY, IDomainsBuyRequestResponse, getDomainTargetByIp } from "./general/domain"