@bprotsyk/aso-core 2.1.195 → 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 +326 -171
- package/lib/app/app.js +127 -108
- package/lib/general/domain.d.ts +3 -3
- package/lib/index.d.ts +2 -7
- package/lib/index.js +16 -41
- package/lib/keitaro/keitaro-campaign.d.ts +1 -0
- package/lib/network/keitaro/http.js +1 -1
- package/lib/network/keitaro/keitaro-service.d.ts +25 -38
- package/lib/network/keitaro/keitaro-service.js +105 -450
- package/lib/offers/list.d.ts +36 -36
- package/package.json +1 -1
- package/src/app/app.ts +205 -230
- package/src/index.ts +31 -10
- package/src/keitaro/keitaro-campaign.ts +1 -0
- package/src/network/keitaro/http.ts +1 -1
- package/src/network/keitaro/keitaro-service.ts +131 -545
- package/src/keitaro/keitaro-clo-geos.ts +0 -389
- package/src/network/keitaro/traffle/traffle-keitaro-service.ts +0 -1576
- package/src/panel/app/upsert-flash-app-request.ts +0 -36
- package/src/utils/keitaro-utils.ts +0 -853
- package/src/utils/traffle-keitaro-utils.ts +0 -45
package/lib/app/app.d.ts
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/session" />
|
|
19
|
+
/// <reference types="mongoose/types/types" />
|
|
20
|
+
/// <reference types="mongoose/types/utility" />
|
|
21
|
+
/// <reference types="mongoose/types/validation" />
|
|
22
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
23
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { Document, Schema } from "mongoose";
|
|
2
27
|
export interface IAppsflyerPostback {
|
|
3
28
|
campaign_id: number;
|
|
4
29
|
id: number;
|
|
@@ -7,140 +32,146 @@ export interface IAppsflyerPostback {
|
|
|
7
32
|
url: string;
|
|
8
33
|
notes?: string;
|
|
9
34
|
}
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
appmetricaAppId?: number;
|
|
21
|
-
keitaroData: IAppKeitaroData | null;
|
|
22
|
-
bannerParams?: IBannerParams;
|
|
23
|
-
offersStubParams?: IOffersStubParams;
|
|
24
|
-
offerwallParams?: IOfferwallParams;
|
|
25
|
-
integrationVersion?: IntegrationVersion;
|
|
26
|
-
domainParams: IDomainParams;
|
|
27
|
-
platforms: {
|
|
28
|
-
[key: string]: IPlatformParams;
|
|
29
|
-
};
|
|
30
|
-
ech?: boolean;
|
|
31
|
-
policyPath: string;
|
|
32
|
-
postbacks?: IAppsflyerPostback[];
|
|
35
|
+
export declare enum IntegrationType {
|
|
36
|
+
OFFERWALL = "offerwall",
|
|
37
|
+
DIRECT = "direct"
|
|
38
|
+
}
|
|
39
|
+
export declare enum IntegrationVersion {
|
|
40
|
+
OFFERWALL = "offerwall",
|
|
41
|
+
DIRECT = "direct",
|
|
42
|
+
WEB_DIRECT = "web_direct",
|
|
43
|
+
NONE = "none",
|
|
44
|
+
POLICY = "policy"
|
|
33
45
|
}
|
|
34
46
|
export declare enum EPlatform {
|
|
35
47
|
GENERAL = "@",
|
|
36
|
-
|
|
37
|
-
SAMSUNG = "sm",
|
|
38
|
-
ruSTORE = "rs",
|
|
39
|
-
XIAOMI = "xm",
|
|
40
|
-
APKPURE = "ap",
|
|
41
|
-
TELEGRAM = "tg",
|
|
42
|
-
AMAZON = "am",
|
|
43
|
-
TEST = "test"
|
|
48
|
+
SAMSUNG = "samsung"
|
|
44
49
|
}
|
|
45
50
|
export declare enum EDirectType {
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
ELTRAFICO = "eltrafico",
|
|
52
|
+
TRAFFLE = "traffle",
|
|
53
|
+
KEITARO_OFFER = "keitaro_offer",
|
|
54
|
+
OFFER_DIRECT = "offer_direct"
|
|
48
55
|
}
|
|
49
|
-
export declare const getPlatformName: (platform: EPlatform | undefined) => string | false;
|
|
50
56
|
export interface IPlatformParams {
|
|
51
|
-
enabled
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
proxied?: boolean;
|
|
59
|
+
params?: any;
|
|
60
|
+
newPlatform?: boolean;
|
|
56
61
|
direct?: {
|
|
57
|
-
|
|
58
|
-
keitaroData: IAppKeitaroData | boolean;
|
|
59
|
-
directType?: EDirectType;
|
|
62
|
+
keitaroData?: IAppKeitaroData | boolean;
|
|
60
63
|
addDefaultStreams?: boolean;
|
|
64
|
+
directType?: EDirectType | string;
|
|
65
|
+
enabled?: boolean;
|
|
66
|
+
trackingUrl?: string;
|
|
61
67
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
postApiKey: string;
|
|
68
|
+
offerwall?: {
|
|
69
|
+
keitaroData?: IAppKeitaroData | boolean;
|
|
65
70
|
};
|
|
66
|
-
appsflyerParams?:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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;
|
|
71
117
|
};
|
|
72
|
-
|
|
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
|
+
}
|
|
127
|
+
export declare const OFFERWALL_TEMPLATE_CAMPAIGN_ID = 3497;
|
|
128
|
+
export declare const DIRECT_TEMPLATE_CAMPAIGN_ID = 3499;
|
|
129
|
+
export declare const DEFENCE_CAMPAIGN_ID = 3498;
|
|
130
|
+
export declare const DEFENCE_CAMPAIGN_TOKEN = "hnwtbnwvq5lrvmztxnc78gxgxtk24jq8";
|
|
131
|
+
export interface IApp extends Document {
|
|
132
|
+
id: number;
|
|
133
|
+
enabled: boolean;
|
|
134
|
+
name: string;
|
|
135
|
+
bundle: string;
|
|
136
|
+
status: AppStatus;
|
|
137
|
+
integrationType: IntegrationType;
|
|
138
|
+
offerwallCampaign: IAppKeitaroData | null;
|
|
139
|
+
directCampaign: IAppKeitaroData | null;
|
|
140
|
+
onesignalAppId: string;
|
|
141
|
+
onesignalRestApiKey: string;
|
|
142
|
+
appsflyerParams?: IAppsflyerParams;
|
|
143
|
+
domainParams: IDomainParams;
|
|
144
|
+
policyPath: string;
|
|
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[];
|
|
73
158
|
}
|
|
74
|
-
export interface
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
159
|
+
export interface IAppsflyerParams {
|
|
160
|
+
apiToken: string;
|
|
161
|
+
eventIds?: Record<string, string>;
|
|
162
|
+
appId?: string;
|
|
163
|
+
devKey: string;
|
|
79
164
|
}
|
|
80
165
|
export interface IDomainParams {
|
|
81
166
|
name: string;
|
|
82
167
|
clouflareZone: string;
|
|
83
168
|
ready: boolean;
|
|
84
169
|
}
|
|
85
|
-
export interface IBannerParams {
|
|
86
|
-
dataPath: string;
|
|
87
|
-
imagePath: string;
|
|
88
|
-
imageParam: string;
|
|
89
|
-
linkParam: string;
|
|
90
|
-
showStubOnError?: boolean;
|
|
91
|
-
}
|
|
92
|
-
export interface IOffersStubParams {
|
|
93
|
-
offersPath: string;
|
|
94
|
-
imagesPath: string;
|
|
95
|
-
}
|
|
96
|
-
export interface IOfferwallParams {
|
|
97
|
-
path: string;
|
|
98
|
-
version?: number;
|
|
99
|
-
}
|
|
100
170
|
export declare enum AppStatus {
|
|
101
171
|
ARCHIVED = "ARCHIVED",
|
|
102
172
|
IN_DEVELOPMENT = "IN_DEVELOPMENT",
|
|
103
173
|
READY = "READY"
|
|
104
174
|
}
|
|
105
|
-
export interface IRemoveDataParams {
|
|
106
|
-
buttonText: string;
|
|
107
|
-
resultText: string;
|
|
108
|
-
errorText: string;
|
|
109
|
-
inputHint: string;
|
|
110
|
-
dark: boolean;
|
|
111
|
-
path: string;
|
|
112
|
-
callbackFunctionName: string;
|
|
113
|
-
toSplashAfterSuccess: boolean;
|
|
114
|
-
}
|
|
115
|
-
export interface IRemovalInfo {
|
|
116
|
-
reason: string;
|
|
117
|
-
date: number;
|
|
118
|
-
status: string;
|
|
119
|
-
images: string[];
|
|
120
|
-
}
|
|
121
|
-
export interface IPrivacyPolicyParams {
|
|
122
|
-
showButtonQuery: string;
|
|
123
|
-
button?: {
|
|
124
|
-
text: string;
|
|
125
|
-
};
|
|
126
|
-
mustRead: boolean;
|
|
127
|
-
dark: boolean;
|
|
128
|
-
path: string;
|
|
129
|
-
advertisingIdQuery: string;
|
|
130
|
-
confirmFunctionName: string;
|
|
131
|
-
redirectFunctionName: string;
|
|
132
|
-
redirect: boolean;
|
|
133
|
-
}
|
|
134
|
-
export declare enum IntegrationVersion {
|
|
135
|
-
NONE = "MVVM",
|
|
136
|
-
POLICY = "POLICY",
|
|
137
|
-
OFFER_STUB = "OFFER_STUB",
|
|
138
|
-
WEB = "WEB",
|
|
139
|
-
WEB_DIRECT = "WEB_DIRECT",
|
|
140
|
-
BANNER = "BANNER",
|
|
141
|
-
PWA = "PWA",
|
|
142
|
-
OFFERWALL = "OFFERWALL"
|
|
143
|
-
}
|
|
144
175
|
export interface IKeitaroDirectTrackingParams {
|
|
145
176
|
naming: string;
|
|
146
177
|
firebase_app_instance_id: string;
|
|
@@ -161,28 +192,21 @@ export interface IAppKeitaroData {
|
|
|
161
192
|
campingToken?: string;
|
|
162
193
|
trackingParams?: IKeitaroDirectTrackingParams;
|
|
163
194
|
}
|
|
164
|
-
export declare
|
|
165
|
-
PASTEBIN = "PASTEBIN",
|
|
166
|
-
GIST = "GIST",
|
|
167
|
-
OTHER = "OTHER"
|
|
168
|
-
}
|
|
169
|
-
export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
195
|
+
export declare const AppSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
170
196
|
id: number;
|
|
171
197
|
enabled: boolean;
|
|
172
|
-
ech: boolean;
|
|
173
198
|
status: AppStatus;
|
|
199
|
+
integrationType: IntegrationType;
|
|
174
200
|
bundle: string;
|
|
175
|
-
geos: string[];
|
|
176
|
-
removeInfo: any;
|
|
177
201
|
policyPath: string;
|
|
178
|
-
postbacks: mongoose.Types.DocumentArray<{
|
|
202
|
+
postbacks: import("mongoose").Types.DocumentArray<{
|
|
179
203
|
id: number;
|
|
180
204
|
campaign_id: number;
|
|
181
205
|
method: "GET" | "POST";
|
|
182
206
|
statuses: string[];
|
|
183
207
|
url: string;
|
|
184
208
|
notes?: string | null | undefined;
|
|
185
|
-
}, mongoose.Types.Subdocument<
|
|
209
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
186
210
|
id: number;
|
|
187
211
|
campaign_id: number;
|
|
188
212
|
method: "GET" | "POST";
|
|
@@ -198,45 +222,88 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
|
|
|
198
222
|
notes?: string | null | undefined;
|
|
199
223
|
}>;
|
|
200
224
|
name?: string | null | undefined;
|
|
201
|
-
|
|
202
|
-
privacyPolicyParams?: any;
|
|
225
|
+
platforms?: any;
|
|
203
226
|
bannerParams?: any;
|
|
204
227
|
offersStubParams?: any;
|
|
228
|
+
ech?: any;
|
|
205
229
|
offerwallParams?: any;
|
|
206
|
-
|
|
207
|
-
|
|
230
|
+
appmetricaApiKey?: string | null | undefined;
|
|
231
|
+
appmetricaAppId?: string | null | undefined;
|
|
208
232
|
onesignalAppId?: string | null | undefined;
|
|
209
233
|
onesignalRestApiKey?: string | null | undefined;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
234
|
+
offerwallCampaign?: {
|
|
235
|
+
trackingCampaignId?: number | null | undefined;
|
|
236
|
+
trackingCampaignName?: string | null | undefined;
|
|
237
|
+
trackingCampaignAlias?: string | null | undefined;
|
|
238
|
+
trackingDomainId?: number | null | undefined;
|
|
239
|
+
trackingDomainName?: string | null | undefined;
|
|
240
|
+
campingToken?: string | null | undefined;
|
|
241
|
+
trackingParams?: {
|
|
242
|
+
naming?: string | null | undefined;
|
|
243
|
+
firebase_app_instance_id?: string | null | undefined;
|
|
244
|
+
firebase_user_id?: string | null | undefined;
|
|
245
|
+
firebase_device_language_code?: string | null | undefined;
|
|
246
|
+
firebase_push_token?: string | null | undefined;
|
|
247
|
+
bundle_id?: string | null | undefined;
|
|
248
|
+
advertising_id?: string | null | undefined;
|
|
249
|
+
appsflyer_device_id?: string | null | undefined;
|
|
250
|
+
campaign?: string | null | undefined;
|
|
251
|
+
} | null | undefined;
|
|
252
|
+
} | null | undefined;
|
|
253
|
+
directCampaign?: {
|
|
254
|
+
trackingCampaignId?: number | null | undefined;
|
|
255
|
+
trackingCampaignName?: string | null | undefined;
|
|
256
|
+
trackingCampaignAlias?: string | null | undefined;
|
|
257
|
+
trackingDomainId?: number | null | undefined;
|
|
258
|
+
trackingDomainName?: string | null | undefined;
|
|
259
|
+
campingToken?: string | null | undefined;
|
|
260
|
+
trackingParams?: {
|
|
261
|
+
naming?: string | null | undefined;
|
|
262
|
+
firebase_app_instance_id?: string | null | undefined;
|
|
263
|
+
firebase_user_id?: string | null | undefined;
|
|
264
|
+
firebase_device_language_code?: string | null | undefined;
|
|
265
|
+
firebase_push_token?: string | null | undefined;
|
|
266
|
+
bundle_id?: string | null | undefined;
|
|
267
|
+
advertising_id?: string | null | undefined;
|
|
268
|
+
appsflyer_device_id?: string | null | undefined;
|
|
269
|
+
campaign?: string | null | undefined;
|
|
270
|
+
} | null | undefined;
|
|
271
|
+
} | null | undefined;
|
|
272
|
+
appsflyerParams?: {
|
|
273
|
+
apiToken?: string | null | undefined;
|
|
274
|
+
eventIds?: any;
|
|
275
|
+
appId?: string | null | undefined;
|
|
276
|
+
devKey?: string | null | undefined;
|
|
218
277
|
} | null | undefined;
|
|
219
278
|
domainParams?: {
|
|
220
279
|
name?: string | null | undefined;
|
|
221
280
|
clouflareZone?: string | null | undefined;
|
|
281
|
+
ready?: boolean | null | undefined;
|
|
222
282
|
} | null | undefined;
|
|
223
|
-
|
|
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;
|
|
292
|
+
}, Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
224
293
|
id: number;
|
|
225
294
|
enabled: boolean;
|
|
226
|
-
ech: boolean;
|
|
227
295
|
status: AppStatus;
|
|
296
|
+
integrationType: IntegrationType;
|
|
228
297
|
bundle: string;
|
|
229
|
-
geos: string[];
|
|
230
|
-
removeInfo: any;
|
|
231
298
|
policyPath: string;
|
|
232
|
-
postbacks: mongoose.Types.DocumentArray<{
|
|
299
|
+
postbacks: import("mongoose").Types.DocumentArray<{
|
|
233
300
|
id: number;
|
|
234
301
|
campaign_id: number;
|
|
235
302
|
method: "GET" | "POST";
|
|
236
303
|
statuses: string[];
|
|
237
304
|
url: string;
|
|
238
305
|
notes?: string | null | undefined;
|
|
239
|
-
}, mongoose.Types.Subdocument<
|
|
306
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
240
307
|
id: number;
|
|
241
308
|
campaign_id: number;
|
|
242
309
|
method: "GET" | "POST";
|
|
@@ -252,45 +319,88 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
|
|
|
252
319
|
notes?: string | null | undefined;
|
|
253
320
|
}>;
|
|
254
321
|
name?: string | null | undefined;
|
|
255
|
-
|
|
256
|
-
privacyPolicyParams?: any;
|
|
322
|
+
platforms?: any;
|
|
257
323
|
bannerParams?: any;
|
|
258
324
|
offersStubParams?: any;
|
|
325
|
+
ech?: any;
|
|
259
326
|
offerwallParams?: any;
|
|
260
|
-
|
|
261
|
-
|
|
327
|
+
appmetricaApiKey?: string | null | undefined;
|
|
328
|
+
appmetricaAppId?: string | null | undefined;
|
|
262
329
|
onesignalAppId?: string | null | undefined;
|
|
263
330
|
onesignalRestApiKey?: string | null | undefined;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
331
|
+
offerwallCampaign?: {
|
|
332
|
+
trackingCampaignId?: number | null | undefined;
|
|
333
|
+
trackingCampaignName?: string | null | undefined;
|
|
334
|
+
trackingCampaignAlias?: string | null | undefined;
|
|
335
|
+
trackingDomainId?: number | null | undefined;
|
|
336
|
+
trackingDomainName?: string | null | undefined;
|
|
337
|
+
campingToken?: string | null | undefined;
|
|
338
|
+
trackingParams?: {
|
|
339
|
+
naming?: string | null | undefined;
|
|
340
|
+
firebase_app_instance_id?: string | null | undefined;
|
|
341
|
+
firebase_user_id?: string | null | undefined;
|
|
342
|
+
firebase_device_language_code?: string | null | undefined;
|
|
343
|
+
firebase_push_token?: string | null | undefined;
|
|
344
|
+
bundle_id?: string | null | undefined;
|
|
345
|
+
advertising_id?: string | null | undefined;
|
|
346
|
+
appsflyer_device_id?: string | null | undefined;
|
|
347
|
+
campaign?: string | null | undefined;
|
|
348
|
+
} | null | undefined;
|
|
349
|
+
} | null | undefined;
|
|
350
|
+
directCampaign?: {
|
|
351
|
+
trackingCampaignId?: number | null | undefined;
|
|
352
|
+
trackingCampaignName?: string | null | undefined;
|
|
353
|
+
trackingCampaignAlias?: string | null | undefined;
|
|
354
|
+
trackingDomainId?: number | null | undefined;
|
|
355
|
+
trackingDomainName?: string | null | undefined;
|
|
356
|
+
campingToken?: string | null | undefined;
|
|
357
|
+
trackingParams?: {
|
|
358
|
+
naming?: string | null | undefined;
|
|
359
|
+
firebase_app_instance_id?: string | null | undefined;
|
|
360
|
+
firebase_user_id?: string | null | undefined;
|
|
361
|
+
firebase_device_language_code?: string | null | undefined;
|
|
362
|
+
firebase_push_token?: string | null | undefined;
|
|
363
|
+
bundle_id?: string | null | undefined;
|
|
364
|
+
advertising_id?: string | null | undefined;
|
|
365
|
+
appsflyer_device_id?: string | null | undefined;
|
|
366
|
+
campaign?: string | null | undefined;
|
|
367
|
+
} | null | undefined;
|
|
368
|
+
} | null | undefined;
|
|
369
|
+
appsflyerParams?: {
|
|
370
|
+
apiToken?: string | null | undefined;
|
|
371
|
+
eventIds?: any;
|
|
372
|
+
appId?: string | null | undefined;
|
|
373
|
+
devKey?: string | null | undefined;
|
|
272
374
|
} | null | undefined;
|
|
273
375
|
domainParams?: {
|
|
274
376
|
name?: string | null | undefined;
|
|
275
377
|
clouflareZone?: string | null | undefined;
|
|
378
|
+
ready?: boolean | null | undefined;
|
|
276
379
|
} | null | undefined;
|
|
277
|
-
|
|
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;
|
|
389
|
+
}>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
|
|
278
390
|
id: number;
|
|
279
391
|
enabled: boolean;
|
|
280
|
-
ech: boolean;
|
|
281
392
|
status: AppStatus;
|
|
393
|
+
integrationType: IntegrationType;
|
|
282
394
|
bundle: string;
|
|
283
|
-
geos: string[];
|
|
284
|
-
removeInfo: any;
|
|
285
395
|
policyPath: string;
|
|
286
|
-
postbacks: mongoose.Types.DocumentArray<{
|
|
396
|
+
postbacks: import("mongoose").Types.DocumentArray<{
|
|
287
397
|
id: number;
|
|
288
398
|
campaign_id: number;
|
|
289
399
|
method: "GET" | "POST";
|
|
290
400
|
statuses: string[];
|
|
291
401
|
url: string;
|
|
292
402
|
notes?: string | null | undefined;
|
|
293
|
-
}, mongoose.Types.Subdocument<
|
|
403
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
294
404
|
id: number;
|
|
295
405
|
campaign_id: number;
|
|
296
406
|
method: "GET" | "POST";
|
|
@@ -306,30 +416,75 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
|
|
|
306
416
|
notes?: string | null | undefined;
|
|
307
417
|
}>;
|
|
308
418
|
name?: string | null | undefined;
|
|
309
|
-
|
|
310
|
-
privacyPolicyParams?: any;
|
|
419
|
+
platforms?: any;
|
|
311
420
|
bannerParams?: any;
|
|
312
421
|
offersStubParams?: any;
|
|
422
|
+
ech?: any;
|
|
313
423
|
offerwallParams?: any;
|
|
314
|
-
|
|
315
|
-
|
|
424
|
+
appmetricaApiKey?: string | null | undefined;
|
|
425
|
+
appmetricaAppId?: string | null | undefined;
|
|
316
426
|
onesignalAppId?: string | null | undefined;
|
|
317
427
|
onesignalRestApiKey?: string | null | undefined;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
428
|
+
offerwallCampaign?: {
|
|
429
|
+
trackingCampaignId?: number | null | undefined;
|
|
430
|
+
trackingCampaignName?: string | null | undefined;
|
|
431
|
+
trackingCampaignAlias?: string | null | undefined;
|
|
432
|
+
trackingDomainId?: number | null | undefined;
|
|
433
|
+
trackingDomainName?: string | null | undefined;
|
|
434
|
+
campingToken?: string | null | undefined;
|
|
435
|
+
trackingParams?: {
|
|
436
|
+
naming?: string | null | undefined;
|
|
437
|
+
firebase_app_instance_id?: string | null | undefined;
|
|
438
|
+
firebase_user_id?: string | null | undefined;
|
|
439
|
+
firebase_device_language_code?: string | null | undefined;
|
|
440
|
+
firebase_push_token?: string | null | undefined;
|
|
441
|
+
bundle_id?: string | null | undefined;
|
|
442
|
+
advertising_id?: string | null | undefined;
|
|
443
|
+
appsflyer_device_id?: string | null | undefined;
|
|
444
|
+
campaign?: string | null | undefined;
|
|
445
|
+
} | null | undefined;
|
|
446
|
+
} | null | undefined;
|
|
447
|
+
directCampaign?: {
|
|
448
|
+
trackingCampaignId?: number | null | undefined;
|
|
449
|
+
trackingCampaignName?: string | null | undefined;
|
|
450
|
+
trackingCampaignAlias?: string | null | undefined;
|
|
451
|
+
trackingDomainId?: number | null | undefined;
|
|
452
|
+
trackingDomainName?: string | null | undefined;
|
|
453
|
+
campingToken?: string | null | undefined;
|
|
454
|
+
trackingParams?: {
|
|
455
|
+
naming?: string | null | undefined;
|
|
456
|
+
firebase_app_instance_id?: string | null | undefined;
|
|
457
|
+
firebase_user_id?: string | null | undefined;
|
|
458
|
+
firebase_device_language_code?: string | null | undefined;
|
|
459
|
+
firebase_push_token?: string | null | undefined;
|
|
460
|
+
bundle_id?: string | null | undefined;
|
|
461
|
+
advertising_id?: string | null | undefined;
|
|
462
|
+
appsflyer_device_id?: string | null | undefined;
|
|
463
|
+
campaign?: string | null | undefined;
|
|
464
|
+
} | null | undefined;
|
|
465
|
+
} | null | undefined;
|
|
466
|
+
appsflyerParams?: {
|
|
467
|
+
apiToken?: string | null | undefined;
|
|
468
|
+
eventIds?: any;
|
|
469
|
+
appId?: string | null | undefined;
|
|
470
|
+
devKey?: string | null | undefined;
|
|
326
471
|
} | null | undefined;
|
|
327
472
|
domainParams?: {
|
|
328
473
|
name?: string | null | undefined;
|
|
329
474
|
clouflareZone?: string | null | undefined;
|
|
475
|
+
ready?: boolean | null | undefined;
|
|
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;
|
|
330
485
|
} | null | undefined;
|
|
331
486
|
}> & {
|
|
332
|
-
_id: mongoose.Types.ObjectId;
|
|
487
|
+
_id: import("mongoose").Types.ObjectId;
|
|
333
488
|
} & {
|
|
334
489
|
__v: number;
|
|
335
490
|
}>;
|