@bprotsyk/aso-core 2.1.196 → 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 +155 -0
- package/lib/app/app.js +79 -2
- package/lib/index.d.ts +2 -1
- package/lib/index.js +14 -1
- package/lib/offers/list.d.ts +36 -36
- package/package.json +1 -1
- package/src/app/app.ts +128 -1
- package/src/index.ts +15 -0
package/lib/app/app.d.ts
CHANGED
|
@@ -36,6 +36,101 @@ 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
|
+
OFFER_STUB = "offer_stub",
|
|
46
|
+
WEB = "web",
|
|
47
|
+
BANNER = "banner",
|
|
48
|
+
PWA = "pwa"
|
|
49
|
+
}
|
|
50
|
+
export declare enum EPlatform {
|
|
51
|
+
GENERAL = "@",
|
|
52
|
+
SAMSUNG = "samsung"
|
|
53
|
+
}
|
|
54
|
+
export declare enum EDirectType {
|
|
55
|
+
ELTRAFICO = "eltrafico",
|
|
56
|
+
TRAFFLE = "traffle",
|
|
57
|
+
KEITARO_OFFER = "keitaro_offer",
|
|
58
|
+
OFFER_DIRECT = "offer_direct"
|
|
59
|
+
}
|
|
60
|
+
export interface IPlatformParams {
|
|
61
|
+
enabled?: boolean;
|
|
62
|
+
proxied?: boolean;
|
|
63
|
+
params?: any;
|
|
64
|
+
newPlatform?: boolean;
|
|
65
|
+
direct?: {
|
|
66
|
+
keitaroData?: IAppKeitaroData | boolean;
|
|
67
|
+
addDefaultStreams?: boolean;
|
|
68
|
+
directType?: EDirectType | string;
|
|
69
|
+
enabled?: boolean;
|
|
70
|
+
trackingUrl?: string;
|
|
71
|
+
};
|
|
72
|
+
offerwall?: {
|
|
73
|
+
keitaroData?: IAppKeitaroData | boolean;
|
|
74
|
+
};
|
|
75
|
+
appsflyerParams?: any;
|
|
76
|
+
keitaroData?: IAppKeitaroData | boolean;
|
|
77
|
+
metricaParams?: any;
|
|
78
|
+
adjustParams?: any;
|
|
79
|
+
geo?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface IUpsertAppResponse {
|
|
82
|
+
success: boolean;
|
|
83
|
+
error?: string;
|
|
84
|
+
app?: IApp;
|
|
85
|
+
}
|
|
86
|
+
export declare enum AlternativeLayoutType {
|
|
87
|
+
DEFAULT = "default"
|
|
88
|
+
}
|
|
89
|
+
export declare enum AlternativeLogicType {
|
|
90
|
+
DEFAULT = "default"
|
|
91
|
+
}
|
|
92
|
+
export declare enum AlternativeNavigation {
|
|
93
|
+
DEFAULT = "default"
|
|
94
|
+
}
|
|
95
|
+
export declare enum AlternativeNetworkTool {
|
|
96
|
+
DEFAULT = "default"
|
|
97
|
+
}
|
|
98
|
+
export declare enum AlternativeOnActivityResult {
|
|
99
|
+
DEFAULT = "default"
|
|
100
|
+
}
|
|
101
|
+
export declare enum AlternativeOnBackPressed {
|
|
102
|
+
DEFAULT = "default"
|
|
103
|
+
}
|
|
104
|
+
export declare enum AlternativeSourceType {
|
|
105
|
+
DEFAULT = "default"
|
|
106
|
+
}
|
|
107
|
+
export declare enum AlternativeStorageType {
|
|
108
|
+
DEFAULT = "default"
|
|
109
|
+
}
|
|
110
|
+
export interface IUpsertAppRequest {
|
|
111
|
+
id: number;
|
|
112
|
+
enabled?: boolean;
|
|
113
|
+
bundle?: string;
|
|
114
|
+
name?: string;
|
|
115
|
+
integrationType?: IntegrationType;
|
|
116
|
+
offerwallCampaign?: IAppKeitaroData | null;
|
|
117
|
+
directCampaign?: IAppKeitaroData | null;
|
|
118
|
+
domainParams?: Partial<IDomainParams>;
|
|
119
|
+
policyPath?: string;
|
|
120
|
+
status?: AppStatus;
|
|
121
|
+
file?: any;
|
|
122
|
+
keitaroData?: any;
|
|
123
|
+
bannerParams?: any;
|
|
124
|
+
offersStubParams?: any;
|
|
125
|
+
platforms?: {
|
|
126
|
+
[key: string]: IPlatformParams;
|
|
127
|
+
};
|
|
128
|
+
ech?: any;
|
|
129
|
+
appmetricaApiKey?: string;
|
|
130
|
+
appmetricaAppId?: string | number;
|
|
131
|
+
integrationVersion?: IntegrationVersion;
|
|
132
|
+
geos?: string[];
|
|
133
|
+
}
|
|
39
134
|
export declare const OFFERWALL_TEMPLATE_CAMPAIGN_ID = 3497;
|
|
40
135
|
export declare const DIRECT_TEMPLATE_CAMPAIGN_ID = 3499;
|
|
41
136
|
export declare const DEFENCE_CAMPAIGN_ID = 3498;
|
|
@@ -55,6 +150,18 @@ export interface IApp extends Document {
|
|
|
55
150
|
domainParams: IDomainParams;
|
|
56
151
|
policyPath: string;
|
|
57
152
|
postbacks?: IAppsflyerPostback[];
|
|
153
|
+
keitaroData?: IAppKeitaroData | null;
|
|
154
|
+
platforms?: {
|
|
155
|
+
[key: string]: IPlatformParams;
|
|
156
|
+
};
|
|
157
|
+
bannerParams?: any;
|
|
158
|
+
offersStubParams?: any;
|
|
159
|
+
ech?: any;
|
|
160
|
+
offerwallParams?: any;
|
|
161
|
+
appmetricaApiKey?: string;
|
|
162
|
+
appmetricaAppId?: string;
|
|
163
|
+
integrationVersion?: IntegrationVersion;
|
|
164
|
+
geos?: string[];
|
|
58
165
|
}
|
|
59
166
|
export interface IAppsflyerParams {
|
|
60
167
|
apiToken: string;
|
|
@@ -122,6 +229,13 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
|
|
|
122
229
|
notes?: string | null | undefined;
|
|
123
230
|
}>;
|
|
124
231
|
name?: string | null | undefined;
|
|
232
|
+
platforms?: any;
|
|
233
|
+
bannerParams?: any;
|
|
234
|
+
offersStubParams?: any;
|
|
235
|
+
ech?: any;
|
|
236
|
+
offerwallParams?: any;
|
|
237
|
+
appmetricaApiKey?: string | null | undefined;
|
|
238
|
+
appmetricaAppId?: string | null | undefined;
|
|
125
239
|
onesignalAppId?: string | null | undefined;
|
|
126
240
|
onesignalRestApiKey?: string | null | undefined;
|
|
127
241
|
offerwallCampaign?: {
|
|
@@ -173,6 +287,15 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
|
|
|
173
287
|
clouflareZone?: string | null | undefined;
|
|
174
288
|
ready?: boolean | null | undefined;
|
|
175
289
|
} | null | undefined;
|
|
290
|
+
keitaroData?: {
|
|
291
|
+
trackingCampaignId?: number | null | undefined;
|
|
292
|
+
trackingCampaignName?: string | null | undefined;
|
|
293
|
+
trackingCampaignAlias?: string | null | undefined;
|
|
294
|
+
trackingDomainId?: number | null | undefined;
|
|
295
|
+
trackingDomainName?: string | null | undefined;
|
|
296
|
+
campingToken?: string | null | undefined;
|
|
297
|
+
trackingParams?: any;
|
|
298
|
+
} | null | undefined;
|
|
176
299
|
}, Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
177
300
|
id: number;
|
|
178
301
|
enabled: boolean;
|
|
@@ -203,6 +326,13 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
|
|
|
203
326
|
notes?: string | null | undefined;
|
|
204
327
|
}>;
|
|
205
328
|
name?: string | null | undefined;
|
|
329
|
+
platforms?: any;
|
|
330
|
+
bannerParams?: any;
|
|
331
|
+
offersStubParams?: any;
|
|
332
|
+
ech?: any;
|
|
333
|
+
offerwallParams?: any;
|
|
334
|
+
appmetricaApiKey?: string | null | undefined;
|
|
335
|
+
appmetricaAppId?: string | null | undefined;
|
|
206
336
|
onesignalAppId?: string | null | undefined;
|
|
207
337
|
onesignalRestApiKey?: string | null | undefined;
|
|
208
338
|
offerwallCampaign?: {
|
|
@@ -254,6 +384,15 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
|
|
|
254
384
|
clouflareZone?: string | null | undefined;
|
|
255
385
|
ready?: boolean | null | undefined;
|
|
256
386
|
} | null | undefined;
|
|
387
|
+
keitaroData?: {
|
|
388
|
+
trackingCampaignId?: number | null | undefined;
|
|
389
|
+
trackingCampaignName?: string | null | undefined;
|
|
390
|
+
trackingCampaignAlias?: string | null | undefined;
|
|
391
|
+
trackingDomainId?: number | null | undefined;
|
|
392
|
+
trackingDomainName?: string | null | undefined;
|
|
393
|
+
campingToken?: string | null | undefined;
|
|
394
|
+
trackingParams?: any;
|
|
395
|
+
} | null | undefined;
|
|
257
396
|
}>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
|
|
258
397
|
id: number;
|
|
259
398
|
enabled: boolean;
|
|
@@ -284,6 +423,13 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
|
|
|
284
423
|
notes?: string | null | undefined;
|
|
285
424
|
}>;
|
|
286
425
|
name?: string | null | undefined;
|
|
426
|
+
platforms?: any;
|
|
427
|
+
bannerParams?: any;
|
|
428
|
+
offersStubParams?: any;
|
|
429
|
+
ech?: any;
|
|
430
|
+
offerwallParams?: any;
|
|
431
|
+
appmetricaApiKey?: string | null | undefined;
|
|
432
|
+
appmetricaAppId?: string | null | undefined;
|
|
287
433
|
onesignalAppId?: string | null | undefined;
|
|
288
434
|
onesignalRestApiKey?: string | null | undefined;
|
|
289
435
|
offerwallCampaign?: {
|
|
@@ -335,6 +481,15 @@ export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, a
|
|
|
335
481
|
clouflareZone?: string | null | undefined;
|
|
336
482
|
ready?: boolean | null | undefined;
|
|
337
483
|
} | null | undefined;
|
|
484
|
+
keitaroData?: {
|
|
485
|
+
trackingCampaignId?: number | null | undefined;
|
|
486
|
+
trackingCampaignName?: string | null | undefined;
|
|
487
|
+
trackingCampaignAlias?: string | null | undefined;
|
|
488
|
+
trackingDomainId?: number | null | undefined;
|
|
489
|
+
trackingDomainName?: string | null | undefined;
|
|
490
|
+
campingToken?: string | null | undefined;
|
|
491
|
+
trackingParams?: any;
|
|
492
|
+
} | null | undefined;
|
|
338
493
|
}> & {
|
|
339
494
|
_id: import("mongoose").Types.ObjectId;
|
|
340
495
|
} & {
|
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,66 @@ 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["OFFER_STUB"] = "offer_stub";
|
|
20
|
+
IntegrationVersion["WEB"] = "web";
|
|
21
|
+
IntegrationVersion["BANNER"] = "banner";
|
|
22
|
+
IntegrationVersion["PWA"] = "pwa";
|
|
23
|
+
})(IntegrationVersion = exports.IntegrationVersion || (exports.IntegrationVersion = {}));
|
|
24
|
+
// @deprecated - Platform enum (no longer used)
|
|
25
|
+
var EPlatform;
|
|
26
|
+
(function (EPlatform) {
|
|
27
|
+
EPlatform["GENERAL"] = "@";
|
|
28
|
+
EPlatform["SAMSUNG"] = "samsung";
|
|
29
|
+
})(EPlatform = exports.EPlatform || (exports.EPlatform = {}));
|
|
30
|
+
// @deprecated - Direct type enum
|
|
31
|
+
var EDirectType;
|
|
32
|
+
(function (EDirectType) {
|
|
33
|
+
EDirectType["ELTRAFICO"] = "eltrafico";
|
|
34
|
+
EDirectType["TRAFFLE"] = "traffle";
|
|
35
|
+
EDirectType["KEITARO_OFFER"] = "keitaro_offer";
|
|
36
|
+
EDirectType["OFFER_DIRECT"] = "offer_direct";
|
|
37
|
+
})(EDirectType = exports.EDirectType || (exports.EDirectType = {}));
|
|
38
|
+
// @deprecated - Constructor types
|
|
39
|
+
var AlternativeLayoutType;
|
|
40
|
+
(function (AlternativeLayoutType) {
|
|
41
|
+
AlternativeLayoutType["DEFAULT"] = "default";
|
|
42
|
+
})(AlternativeLayoutType = exports.AlternativeLayoutType || (exports.AlternativeLayoutType = {}));
|
|
43
|
+
var AlternativeLogicType;
|
|
44
|
+
(function (AlternativeLogicType) {
|
|
45
|
+
AlternativeLogicType["DEFAULT"] = "default";
|
|
46
|
+
})(AlternativeLogicType = exports.AlternativeLogicType || (exports.AlternativeLogicType = {}));
|
|
47
|
+
var AlternativeNavigation;
|
|
48
|
+
(function (AlternativeNavigation) {
|
|
49
|
+
AlternativeNavigation["DEFAULT"] = "default";
|
|
50
|
+
})(AlternativeNavigation = exports.AlternativeNavigation || (exports.AlternativeNavigation = {}));
|
|
51
|
+
var AlternativeNetworkTool;
|
|
52
|
+
(function (AlternativeNetworkTool) {
|
|
53
|
+
AlternativeNetworkTool["DEFAULT"] = "default";
|
|
54
|
+
})(AlternativeNetworkTool = exports.AlternativeNetworkTool || (exports.AlternativeNetworkTool = {}));
|
|
55
|
+
var AlternativeOnActivityResult;
|
|
56
|
+
(function (AlternativeOnActivityResult) {
|
|
57
|
+
AlternativeOnActivityResult["DEFAULT"] = "default";
|
|
58
|
+
})(AlternativeOnActivityResult = exports.AlternativeOnActivityResult || (exports.AlternativeOnActivityResult = {}));
|
|
59
|
+
var AlternativeOnBackPressed;
|
|
60
|
+
(function (AlternativeOnBackPressed) {
|
|
61
|
+
AlternativeOnBackPressed["DEFAULT"] = "default";
|
|
62
|
+
})(AlternativeOnBackPressed = exports.AlternativeOnBackPressed || (exports.AlternativeOnBackPressed = {}));
|
|
63
|
+
var AlternativeSourceType;
|
|
64
|
+
(function (AlternativeSourceType) {
|
|
65
|
+
AlternativeSourceType["DEFAULT"] = "default";
|
|
66
|
+
})(AlternativeSourceType = exports.AlternativeSourceType || (exports.AlternativeSourceType = {}));
|
|
67
|
+
var AlternativeStorageType;
|
|
68
|
+
(function (AlternativeStorageType) {
|
|
69
|
+
AlternativeStorageType["DEFAULT"] = "default";
|
|
70
|
+
})(AlternativeStorageType = exports.AlternativeStorageType || (exports.AlternativeStorageType = {}));
|
|
11
71
|
// Campaign IDs for cloning
|
|
12
72
|
exports.OFFERWALL_TEMPLATE_CAMPAIGN_ID = 3497;
|
|
13
73
|
exports.DIRECT_TEMPLATE_CAMPAIGN_ID = 3499;
|
|
@@ -136,5 +196,22 @@ exports.AppSchema = new mongoose_1.Schema({
|
|
|
136
196
|
type: String,
|
|
137
197
|
required: false
|
|
138
198
|
}
|
|
139
|
-
}]
|
|
199
|
+
}],
|
|
200
|
+
// @deprecated fields for backwards compatibility
|
|
201
|
+
keitaroData: {
|
|
202
|
+
trackingCampaignId: Number,
|
|
203
|
+
trackingCampaignName: String,
|
|
204
|
+
trackingCampaignAlias: String,
|
|
205
|
+
trackingDomainId: Number,
|
|
206
|
+
trackingDomainName: String,
|
|
207
|
+
campingToken: String,
|
|
208
|
+
trackingParams: mongoose_1.Schema.Types.Mixed
|
|
209
|
+
},
|
|
210
|
+
platforms: mongoose_1.Schema.Types.Mixed,
|
|
211
|
+
bannerParams: mongoose_1.Schema.Types.Mixed,
|
|
212
|
+
offersStubParams: mongoose_1.Schema.Types.Mixed,
|
|
213
|
+
ech: mongoose_1.Schema.Types.Mixed,
|
|
214
|
+
offerwallParams: mongoose_1.Schema.Types.Mixed,
|
|
215
|
+
appmetricaApiKey: String,
|
|
216
|
+
appmetricaAppId: String
|
|
140
217
|
});
|
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; } });
|
package/lib/offers/list.d.ts
CHANGED
|
@@ -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
package/src/app/app.ts
CHANGED
|
@@ -15,6 +15,104 @@ 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
|
+
OFFER_STUB = "offer_stub",
|
|
26
|
+
WEB = "web",
|
|
27
|
+
BANNER = "banner",
|
|
28
|
+
PWA = "pwa"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// @deprecated - Platform enum (no longer used)
|
|
32
|
+
export enum EPlatform {
|
|
33
|
+
GENERAL = "@",
|
|
34
|
+
SAMSUNG = "samsung"
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// @deprecated - Direct type enum
|
|
38
|
+
export enum EDirectType {
|
|
39
|
+
ELTRAFICO = "eltrafico",
|
|
40
|
+
TRAFFLE = "traffle",
|
|
41
|
+
KEITARO_OFFER = "keitaro_offer",
|
|
42
|
+
OFFER_DIRECT = "offer_direct"
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// @deprecated - Platform params (use offerwallCampaign/directCampaign instead)
|
|
46
|
+
export interface IPlatformParams {
|
|
47
|
+
enabled?: boolean
|
|
48
|
+
proxied?: boolean
|
|
49
|
+
params?: any
|
|
50
|
+
newPlatform?: boolean
|
|
51
|
+
direct?: {
|
|
52
|
+
keitaroData?: IAppKeitaroData | boolean
|
|
53
|
+
addDefaultStreams?: boolean
|
|
54
|
+
directType?: EDirectType | string
|
|
55
|
+
enabled?: boolean
|
|
56
|
+
trackingUrl?: string
|
|
57
|
+
}
|
|
58
|
+
offerwall?: {
|
|
59
|
+
keitaroData?: IAppKeitaroData | boolean
|
|
60
|
+
}
|
|
61
|
+
appsflyerParams?: any
|
|
62
|
+
keitaroData?: IAppKeitaroData | boolean
|
|
63
|
+
metricaParams?: any
|
|
64
|
+
adjustParams?: any
|
|
65
|
+
geo?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// @deprecated - Response interface
|
|
69
|
+
export interface IUpsertAppResponse {
|
|
70
|
+
success: boolean
|
|
71
|
+
error?: string
|
|
72
|
+
app?: IApp
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// @deprecated - Constructor types
|
|
76
|
+
export enum AlternativeLayoutType { DEFAULT = "default" }
|
|
77
|
+
export enum AlternativeLogicType { DEFAULT = "default" }
|
|
78
|
+
export enum AlternativeNavigation { DEFAULT = "default" }
|
|
79
|
+
export enum AlternativeNetworkTool { DEFAULT = "default" }
|
|
80
|
+
export enum AlternativeOnActivityResult { DEFAULT = "default" }
|
|
81
|
+
export enum AlternativeOnBackPressed { DEFAULT = "default" }
|
|
82
|
+
export enum AlternativeSourceType { DEFAULT = "default" }
|
|
83
|
+
export enum AlternativeStorageType { DEFAULT = "default" }
|
|
84
|
+
|
|
85
|
+
// Upsert request interface
|
|
86
|
+
export interface IUpsertAppRequest {
|
|
87
|
+
id: number
|
|
88
|
+
enabled?: boolean
|
|
89
|
+
bundle?: string
|
|
90
|
+
name?: string
|
|
91
|
+
|
|
92
|
+
// Integration type - offerwall or direct
|
|
93
|
+
integrationType?: IntegrationType
|
|
94
|
+
|
|
95
|
+
// Keitaro campaigns
|
|
96
|
+
offerwallCampaign?: IAppKeitaroData | null
|
|
97
|
+
directCampaign?: IAppKeitaroData | null
|
|
98
|
+
|
|
99
|
+
domainParams?: Partial<IDomainParams>
|
|
100
|
+
policyPath?: string
|
|
101
|
+
status?: AppStatus
|
|
102
|
+
file?: any
|
|
103
|
+
|
|
104
|
+
// @deprecated fields
|
|
105
|
+
keitaroData?: any
|
|
106
|
+
bannerParams?: any
|
|
107
|
+
offersStubParams?: any
|
|
108
|
+
platforms?: { [key: string]: IPlatformParams }
|
|
109
|
+
ech?: any
|
|
110
|
+
appmetricaApiKey?: string
|
|
111
|
+
appmetricaAppId?: string | number
|
|
112
|
+
integrationVersion?: IntegrationVersion
|
|
113
|
+
geos?: string[]
|
|
114
|
+
}
|
|
115
|
+
|
|
18
116
|
// Campaign IDs for cloning
|
|
19
117
|
export const OFFERWALL_TEMPLATE_CAMPAIGN_ID = 3497
|
|
20
118
|
export const DIRECT_TEMPLATE_CAMPAIGN_ID = 3499
|
|
@@ -50,6 +148,18 @@ export interface IApp extends Document {
|
|
|
50
148
|
|
|
51
149
|
// Postbacks
|
|
52
150
|
postbacks?: IAppsflyerPostback[]
|
|
151
|
+
|
|
152
|
+
// @deprecated - use offerwallCampaign/directCampaign instead
|
|
153
|
+
keitaroData?: IAppKeitaroData | null
|
|
154
|
+
platforms?: { [key: string]: IPlatformParams }
|
|
155
|
+
bannerParams?: any
|
|
156
|
+
offersStubParams?: any
|
|
157
|
+
ech?: any
|
|
158
|
+
offerwallParams?: any
|
|
159
|
+
appmetricaApiKey?: string
|
|
160
|
+
appmetricaAppId?: string
|
|
161
|
+
integrationVersion?: IntegrationVersion
|
|
162
|
+
geos?: string[]
|
|
53
163
|
}
|
|
54
164
|
|
|
55
165
|
export interface IAppsflyerParams {
|
|
@@ -210,5 +320,22 @@ export const AppSchema = new Schema({
|
|
|
210
320
|
type: String,
|
|
211
321
|
required: false
|
|
212
322
|
}
|
|
213
|
-
}]
|
|
323
|
+
}],
|
|
324
|
+
// @deprecated fields for backwards compatibility
|
|
325
|
+
keitaroData: {
|
|
326
|
+
trackingCampaignId: Number,
|
|
327
|
+
trackingCampaignName: String,
|
|
328
|
+
trackingCampaignAlias: String,
|
|
329
|
+
trackingDomainId: Number,
|
|
330
|
+
trackingDomainName: String,
|
|
331
|
+
campingToken: String,
|
|
332
|
+
trackingParams: Schema.Types.Mixed
|
|
333
|
+
},
|
|
334
|
+
platforms: Schema.Types.Mixed,
|
|
335
|
+
bannerParams: Schema.Types.Mixed,
|
|
336
|
+
offersStubParams: Schema.Types.Mixed,
|
|
337
|
+
ech: Schema.Types.Mixed,
|
|
338
|
+
offerwallParams: Schema.Types.Mixed,
|
|
339
|
+
appmetricaApiKey: String,
|
|
340
|
+
appmetricaAppId: String
|
|
214
341
|
})
|
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"
|