@bprotsyk/aso-core 2.1.1 → 2.1.3
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 +5 -22
- package/lib/app/app.js +8 -81
- package/lib/index.d.ts +1 -1
- package/lib/panel/flash/upsert-flash-app-request.d.ts +3 -14
- package/lib/utils/keitaro-utils.js +1 -1
- package/package.json +1 -1
- package/src/app/app.ts +14 -89
- package/src/index.ts +1 -1
- package/src/panel/flash/upsert-flash-app-request.ts +3 -17
- package/src/utils/keitaro-utils.ts +1 -1
package/lib/app/app.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AlternativeLayoutType, AlternativeLogicType, AlternativeNavigation, AlternativeNetworkTool, AlternativeOnActivityResult, AlternativeOnBackPressed, AlternativeSourceType, AlternativeStorageType } from "index";
|
|
2
2
|
import { AppType } from "./app-type";
|
|
3
|
-
import mongoose, { Document
|
|
3
|
+
import mongoose, { Document } from "mongoose";
|
|
4
4
|
import { AlternativeFullscreen } from "app/app-integration";
|
|
5
5
|
export interface IApp extends Document {
|
|
6
6
|
id: number;
|
|
@@ -9,26 +9,23 @@ export interface IApp extends Document {
|
|
|
9
9
|
trackingUrl?: string;
|
|
10
10
|
bundle: string;
|
|
11
11
|
pushesEnabled?: boolean;
|
|
12
|
-
sourceUrl?: string;
|
|
13
12
|
policyUrl?: string;
|
|
14
13
|
type: AppType;
|
|
15
14
|
geos: string;
|
|
16
15
|
geo: string[];
|
|
17
16
|
onesignalAppId: string;
|
|
18
17
|
onesignalRestApiKey: string;
|
|
18
|
+
appmetricaApiKey?: string;
|
|
19
|
+
appmetricaAppId?: number;
|
|
19
20
|
webInterfaceName: string;
|
|
20
21
|
generationOptions: IAppGenerationOptions;
|
|
21
22
|
keitaroData: IAppKeitaroData | null;
|
|
22
23
|
integrationVersion: IntegrationVersion;
|
|
23
|
-
integrationAlterations?: IntegrationAlterations;
|
|
24
|
-
removeDataParams?: IRemoveDataParams;
|
|
25
|
-
privacyPolicyParams?: IPrivacyPolicyParams;
|
|
26
24
|
offersStubParams?: IOffersStubParams;
|
|
27
25
|
directParams?: IDirectParams;
|
|
28
26
|
bannerParams?: IBannerParams;
|
|
29
27
|
remoteServerParams?: IRemoteServerParams;
|
|
30
28
|
domainParams: IDomainParams;
|
|
31
|
-
developerParams: IDeveloperParams;
|
|
32
29
|
platforms: {
|
|
33
30
|
[key: string]: IPlatformParams;
|
|
34
31
|
};
|
|
@@ -167,34 +164,23 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
|
|
|
167
164
|
bundle: string;
|
|
168
165
|
trackingUrl: string;
|
|
169
166
|
geos: string;
|
|
170
|
-
integrationVersion: string;
|
|
171
167
|
name?: string | undefined;
|
|
172
|
-
webInterfaceName?: string | undefined;
|
|
173
168
|
pushesEnabled?: boolean | undefined;
|
|
174
|
-
sourceUrl?: string | undefined;
|
|
175
|
-
integrationAlterations?: any;
|
|
176
169
|
removeDataParams?: any;
|
|
177
170
|
privacyPolicyParams?: any;
|
|
178
171
|
offersStubParams?: any;
|
|
179
172
|
bannerParams?: any;
|
|
180
173
|
directParams?: any;
|
|
181
|
-
remoteServerParams?: any;
|
|
182
174
|
platforms?: any;
|
|
183
|
-
policyUrl?: string | undefined;
|
|
184
175
|
onesignalAppId?: string | undefined;
|
|
185
176
|
onesignalRestApiKey?: string | undefined;
|
|
186
|
-
|
|
177
|
+
appmetricaApiKey?: string | undefined;
|
|
178
|
+
appmetricaAppId?: number | undefined;
|
|
187
179
|
externalParams?: {
|
|
188
180
|
schema?: string | undefined;
|
|
189
181
|
showButton?: boolean | undefined;
|
|
190
182
|
autoRedirect?: boolean | undefined;
|
|
191
183
|
} | undefined;
|
|
192
|
-
generationOptions?: {
|
|
193
|
-
splashName?: string | undefined;
|
|
194
|
-
webViewName?: string | undefined;
|
|
195
|
-
linkName?: string | undefined;
|
|
196
|
-
savedName?: string | undefined;
|
|
197
|
-
} | undefined;
|
|
198
184
|
keitaroData?: {
|
|
199
185
|
redirectCampaignId: number;
|
|
200
186
|
redirectCampaignName: string;
|
|
@@ -206,12 +192,9 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
|
|
|
206
192
|
trackingCampaignAlias: string;
|
|
207
193
|
trackingDomainId: number;
|
|
208
194
|
trackingDomainName: string;
|
|
209
|
-
clickIdParameterName?: string | undefined;
|
|
210
|
-
offerIdParameterName?: string | undefined;
|
|
211
195
|
} | undefined;
|
|
212
196
|
domainParams?: {
|
|
213
197
|
name?: string | undefined;
|
|
214
198
|
clouflareZone?: string | undefined;
|
|
215
199
|
} | undefined;
|
|
216
200
|
}>;
|
|
217
|
-
export declare function updateSchemaAndMoveValue(model: Model<IApp>): Promise<void>;
|
package/lib/app/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AppSchema = exports.PlugType = exports.IntegrationVersion = exports.EPlatform = void 0;
|
|
4
4
|
const app_type_1 = require("./app-type");
|
|
5
5
|
const mongoose_1 = require("mongoose");
|
|
6
6
|
const util = require("util");
|
|
@@ -52,14 +52,7 @@ exports.AppSchema = new mongoose_1.Schema({
|
|
|
52
52
|
type: String,
|
|
53
53
|
default: null
|
|
54
54
|
},
|
|
55
|
-
webInterfaceName: String,
|
|
56
55
|
pushesEnabled: Boolean,
|
|
57
|
-
sourceUrl: String,
|
|
58
|
-
policyUrl: {
|
|
59
|
-
type: String,
|
|
60
|
-
// unique: true,
|
|
61
|
-
required: false
|
|
62
|
-
},
|
|
63
56
|
type: {
|
|
64
57
|
type: String,
|
|
65
58
|
enum: app_type_1.AppType,
|
|
@@ -80,34 +73,19 @@ exports.AppSchema = new mongoose_1.Schema({
|
|
|
80
73
|
type: String,
|
|
81
74
|
required: false
|
|
82
75
|
},
|
|
83
|
-
|
|
84
|
-
type: String
|
|
76
|
+
appmetricaApiKey: {
|
|
77
|
+
type: String,
|
|
78
|
+
required: false
|
|
79
|
+
},
|
|
80
|
+
appmetricaAppId: {
|
|
81
|
+
type: Number,
|
|
82
|
+
required: false
|
|
85
83
|
},
|
|
86
84
|
externalParams: {
|
|
87
85
|
showButton: Boolean,
|
|
88
86
|
schema: String,
|
|
89
87
|
autoRedirect: Boolean,
|
|
90
88
|
},
|
|
91
|
-
integrationVersion: {
|
|
92
|
-
type: String,
|
|
93
|
-
default: IntegrationVersion.OFFER_STUB,
|
|
94
|
-
enum: IntegrationVersion
|
|
95
|
-
},
|
|
96
|
-
integrationAlterations: Object,
|
|
97
|
-
generationOptions: {
|
|
98
|
-
splashName: {
|
|
99
|
-
type: String,
|
|
100
|
-
},
|
|
101
|
-
webViewName: {
|
|
102
|
-
type: String,
|
|
103
|
-
},
|
|
104
|
-
linkName: {
|
|
105
|
-
type: String,
|
|
106
|
-
},
|
|
107
|
-
savedName: {
|
|
108
|
-
type: String,
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
89
|
keitaroData: {
|
|
112
90
|
redirectCampaignId: {
|
|
113
91
|
type: Number,
|
|
@@ -165,15 +143,12 @@ exports.AppSchema = new mongoose_1.Schema({
|
|
|
165
143
|
required: true,
|
|
166
144
|
default: "none"
|
|
167
145
|
},
|
|
168
|
-
clickIdParameterName: String,
|
|
169
|
-
offerIdParameterName: String,
|
|
170
146
|
},
|
|
171
147
|
removeDataParams: Object,
|
|
172
148
|
privacyPolicyParams: Object,
|
|
173
149
|
offersStubParams: Object,
|
|
174
150
|
bannerParams: Object,
|
|
175
151
|
directParams: Object,
|
|
176
|
-
remoteServerParams: Object,
|
|
177
152
|
domainParams: {
|
|
178
153
|
name: {
|
|
179
154
|
type: String,
|
|
@@ -185,51 +160,3 @@ exports.AppSchema = new mongoose_1.Schema({
|
|
|
185
160
|
},
|
|
186
161
|
platforms: Object
|
|
187
162
|
});
|
|
188
|
-
// TODO app type (casino / fin)
|
|
189
|
-
async function updateSchemaAndMoveValue(model) {
|
|
190
|
-
await model.syncIndexes();
|
|
191
|
-
let pipelineStage = [
|
|
192
|
-
{
|
|
193
|
-
// $set: {
|
|
194
|
-
// city: "$employee_addr.city",
|
|
195
|
-
// street: "$employee_addr.street",
|
|
196
|
-
// apartment: "$employee_addr.apartment",
|
|
197
|
-
// employee_addr: "$$REMOVE"
|
|
198
|
-
// },
|
|
199
|
-
$set: {
|
|
200
|
-
"plugStatus": "$$REMOVE",
|
|
201
|
-
"reservePlugStatus": "$$REMOVE",
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
];
|
|
205
|
-
let aggregation = model.aggregate(pipelineStage);
|
|
206
|
-
try {
|
|
207
|
-
await model.collection.dropIndex("plugStatus");
|
|
208
|
-
}
|
|
209
|
-
catch (e) { }
|
|
210
|
-
try {
|
|
211
|
-
await model.collection.dropIndex("reservePlugStatus");
|
|
212
|
-
}
|
|
213
|
-
catch (e) { }
|
|
214
|
-
// await model.schema.dropIndex("generationOptions.keyPassword_1")
|
|
215
|
-
await aggregation.exec();
|
|
216
|
-
const updateOperation = {
|
|
217
|
-
$set: {
|
|
218
|
-
plugId: "none"
|
|
219
|
-
},
|
|
220
|
-
// $addToSet
|
|
221
|
-
$unset: [
|
|
222
|
-
"pastebinUrl",
|
|
223
|
-
"email",
|
|
224
|
-
"generationOptions.keyFileName",
|
|
225
|
-
"generationOptions.keyDeveloperName",
|
|
226
|
-
"generationOptions.keyDeveloperOrganization",
|
|
227
|
-
"generationOptions.keyCountryCode",
|
|
228
|
-
"generationOptions.keyCity",
|
|
229
|
-
"generationOptions.keyAlias",
|
|
230
|
-
"generationOptions.keyPassword",
|
|
231
|
-
],
|
|
232
|
-
};
|
|
233
|
-
await model.updateMany({}, updateOperation);
|
|
234
|
-
}
|
|
235
|
-
exports.updateSchemaAndMoveValue = updateSchemaAndMoveValue;
|
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { AppType } from "./app/app-type";
|
|
|
8
8
|
export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, AlternativeNetworkTool, AlternativeStorageType, AlternativeNavigation, AlternativeOnBackPressed, AlternativeOnActivityResult, IAppIntegration as IFlashIntegration } from "./app/app-integration";
|
|
9
9
|
export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user";
|
|
10
10
|
export { IAuthToken } from "./panel/auth";
|
|
11
|
-
export { IUpsertAppRequest
|
|
11
|
+
export { IUpsertAppRequest } from "./panel/flash/upsert-flash-app-request";
|
|
12
12
|
export { IGradient, IStroke, IShape, ShapeDiv } from "./general/shape";
|
|
13
13
|
export { IOfferWallHomeDialogData } from "./offers/offerwall/offerwall-home-dialog-data";
|
|
14
14
|
export { IOfferWallOffer } from "./offers/offerwall/offerwall-offer";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAppKeitaroData, IBannerParams, IDirectParams, IDomainParams, IExternalParams, IOffersStubParams, IPlatformParams, IntegrationVersion } from "app/app";
|
|
2
2
|
export interface IUpsertAppRequest {
|
|
3
3
|
id: number;
|
|
4
4
|
name?: string;
|
|
@@ -7,17 +7,12 @@ export interface IUpsertAppRequest {
|
|
|
7
7
|
enabled?: boolean;
|
|
8
8
|
geos?: string;
|
|
9
9
|
geo?: string;
|
|
10
|
-
|
|
10
|
+
appmetricaApiKey?: string;
|
|
11
|
+
appmetricaAppId?: number;
|
|
11
12
|
integrationVersion?: IntegrationVersion;
|
|
12
|
-
webInterfaceName?: string;
|
|
13
|
-
generationOptions?: Partial<IAppGenerationOptions>;
|
|
14
13
|
keitaroData?: Partial<IAppKeitaroData>;
|
|
15
|
-
removeDataParams?: IRemoveDataParams;
|
|
16
|
-
privacyPolicyParams?: IPrivacyPolicyParams;
|
|
17
14
|
offersStubParams?: IOffersStubParams;
|
|
18
15
|
bannerParams?: IBannerParams;
|
|
19
|
-
developerParams?: IDeveloperParams;
|
|
20
|
-
remoteServerParams?: IRemoteServerParams;
|
|
21
16
|
domainParams: IDomainParams;
|
|
22
17
|
directParams?: IDirectParams;
|
|
23
18
|
externalParams?: IExternalParams;
|
|
@@ -25,9 +20,3 @@ export interface IUpsertAppRequest {
|
|
|
25
20
|
[key: string]: IPlatformParams;
|
|
26
21
|
};
|
|
27
22
|
}
|
|
28
|
-
export interface IUpsertAppResponse {
|
|
29
|
-
data: IUpsertAppRequest;
|
|
30
|
-
linkName: string;
|
|
31
|
-
archive: string;
|
|
32
|
-
externalParams?: IExternalParams;
|
|
33
|
-
}
|
|
@@ -333,7 +333,7 @@ function createDefenceMainStreamPartialPayload(app) {
|
|
|
333
333
|
name: "ALL",
|
|
334
334
|
type: "regular",
|
|
335
335
|
action_type: "http",
|
|
336
|
-
action_payload: app.
|
|
336
|
+
action_payload: app.directParams?.path,
|
|
337
337
|
schema: "redirect",
|
|
338
338
|
filter_or: false,
|
|
339
339
|
collect_clicks: true,
|
package/package.json
CHANGED
package/src/app/app.ts
CHANGED
|
@@ -12,30 +12,28 @@ export interface IApp extends Document {
|
|
|
12
12
|
bundle: string
|
|
13
13
|
|
|
14
14
|
pushesEnabled?: boolean
|
|
15
|
-
sourceUrl?: string,
|
|
16
15
|
policyUrl?: string
|
|
17
16
|
type: AppType
|
|
18
17
|
geos: string
|
|
19
|
-
geo: string[]
|
|
18
|
+
geo: string[] // new one, actual
|
|
20
19
|
|
|
21
20
|
onesignalAppId: string
|
|
22
21
|
onesignalRestApiKey: string
|
|
23
22
|
|
|
23
|
+
appmetricaApiKey?: string
|
|
24
|
+
appmetricaAppId?: number
|
|
25
|
+
|
|
24
26
|
webInterfaceName: string
|
|
25
27
|
|
|
26
28
|
generationOptions: IAppGenerationOptions
|
|
27
29
|
keitaroData: IAppKeitaroData | null
|
|
28
30
|
integrationVersion: IntegrationVersion
|
|
29
|
-
integrationAlterations?: IntegrationAlterations
|
|
30
31
|
|
|
31
|
-
removeDataParams?: IRemoveDataParams
|
|
32
|
-
privacyPolicyParams?: IPrivacyPolicyParams
|
|
33
32
|
offersStubParams?: IOffersStubParams
|
|
34
33
|
directParams?: IDirectParams,
|
|
35
34
|
bannerParams?: IBannerParams,
|
|
36
35
|
remoteServerParams?: IRemoteServerParams,
|
|
37
36
|
domainParams: IDomainParams
|
|
38
|
-
developerParams: IDeveloperParams,
|
|
39
37
|
platforms: { [key: string]: IPlatformParams }
|
|
40
38
|
|
|
41
39
|
offersListId: number
|
|
@@ -210,14 +208,8 @@ export const AppSchema = new Schema({
|
|
|
210
208
|
default: null
|
|
211
209
|
},
|
|
212
210
|
|
|
213
|
-
webInterfaceName: String,
|
|
214
211
|
pushesEnabled: Boolean,
|
|
215
|
-
|
|
216
|
-
policyUrl: {
|
|
217
|
-
type: String,
|
|
218
|
-
// unique: true,
|
|
219
|
-
required: false
|
|
220
|
-
},
|
|
212
|
+
|
|
221
213
|
type: {
|
|
222
214
|
type: String,
|
|
223
215
|
enum: AppType,
|
|
@@ -238,38 +230,21 @@ export const AppSchema = new Schema({
|
|
|
238
230
|
type: String,
|
|
239
231
|
required: false
|
|
240
232
|
},
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
233
|
+
appmetricaApiKey: {
|
|
234
|
+
type: String,
|
|
235
|
+
required: false
|
|
236
|
+
},
|
|
237
|
+
appmetricaAppId: {
|
|
238
|
+
type: Number,
|
|
239
|
+
required: false
|
|
244
240
|
},
|
|
241
|
+
|
|
245
242
|
externalParams: {
|
|
246
243
|
showButton: Boolean,
|
|
247
244
|
schema: String,
|
|
248
245
|
autoRedirect: Boolean,
|
|
249
246
|
},
|
|
250
247
|
|
|
251
|
-
integrationVersion: {
|
|
252
|
-
type: String,
|
|
253
|
-
default: IntegrationVersion.OFFER_STUB,
|
|
254
|
-
enum: IntegrationVersion
|
|
255
|
-
},
|
|
256
|
-
integrationAlterations: Object,
|
|
257
|
-
|
|
258
|
-
generationOptions: {
|
|
259
|
-
splashName: {
|
|
260
|
-
type: String,
|
|
261
|
-
},
|
|
262
|
-
webViewName: {
|
|
263
|
-
type: String,
|
|
264
|
-
},
|
|
265
|
-
linkName: {
|
|
266
|
-
type: String,
|
|
267
|
-
},
|
|
268
|
-
savedName: {
|
|
269
|
-
type: String,
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
|
|
273
248
|
keitaroData: {
|
|
274
249
|
redirectCampaignId: {
|
|
275
250
|
type: Number,
|
|
@@ -327,16 +302,12 @@ export const AppSchema = new Schema({
|
|
|
327
302
|
required: true,
|
|
328
303
|
default: "none"
|
|
329
304
|
},
|
|
330
|
-
|
|
331
|
-
clickIdParameterName: String,
|
|
332
|
-
offerIdParameterName: String,
|
|
333
305
|
},
|
|
334
306
|
removeDataParams: Object,
|
|
335
307
|
privacyPolicyParams: Object,
|
|
336
308
|
offersStubParams: Object,
|
|
337
309
|
bannerParams: Object,
|
|
338
310
|
directParams: Object,
|
|
339
|
-
remoteServerParams: Object,
|
|
340
311
|
domainParams: {
|
|
341
312
|
name: {
|
|
342
313
|
type: String,
|
|
@@ -347,50 +318,4 @@ export const AppSchema = new Schema({
|
|
|
347
318
|
},
|
|
348
319
|
},
|
|
349
320
|
platforms: Object
|
|
350
|
-
})
|
|
351
|
-
|
|
352
|
-
// TODO app type (casino / fin)
|
|
353
|
-
export async function updateSchemaAndMoveValue(model: Model<IApp>): Promise<void> {
|
|
354
|
-
await model.syncIndexes()
|
|
355
|
-
let pipelineStage: PipelineStage[] = [
|
|
356
|
-
{
|
|
357
|
-
// $set: {
|
|
358
|
-
// city: "$employee_addr.city",
|
|
359
|
-
// street: "$employee_addr.street",
|
|
360
|
-
// apartment: "$employee_addr.apartment",
|
|
361
|
-
// employee_addr: "$$REMOVE"
|
|
362
|
-
// },
|
|
363
|
-
$set: {
|
|
364
|
-
"plugStatus": "$$REMOVE",
|
|
365
|
-
"reservePlugStatus": "$$REMOVE",
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
]
|
|
369
|
-
|
|
370
|
-
let aggregation = model.aggregate(pipelineStage)
|
|
371
|
-
try { await model.collection.dropIndex("plugStatus") } catch (e) { }
|
|
372
|
-
try { await model.collection.dropIndex("reservePlugStatus") } catch (e) { }
|
|
373
|
-
|
|
374
|
-
// await model.schema.dropIndex("generationOptions.keyPassword_1")
|
|
375
|
-
await aggregation.exec()
|
|
376
|
-
|
|
377
|
-
const updateOperation: UpdateQuery<IApp> = {
|
|
378
|
-
$set: {
|
|
379
|
-
plugId: "none"
|
|
380
|
-
},
|
|
381
|
-
// $addToSet
|
|
382
|
-
$unset: [
|
|
383
|
-
"pastebinUrl",
|
|
384
|
-
"email",
|
|
385
|
-
"generationOptions.keyFileName",
|
|
386
|
-
"generationOptions.keyDeveloperName",
|
|
387
|
-
"generationOptions.keyDeveloperOrganization",
|
|
388
|
-
"generationOptions.keyCountryCode",
|
|
389
|
-
"generationOptions.keyCity",
|
|
390
|
-
"generationOptions.keyAlias",
|
|
391
|
-
"generationOptions.keyPassword",
|
|
392
|
-
],
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
await model.updateMany({}, updateOperation);
|
|
396
|
-
}
|
|
321
|
+
})
|
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, Alt
|
|
|
11
11
|
|
|
12
12
|
export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user"
|
|
13
13
|
export { IAuthToken } from "./panel/auth"
|
|
14
|
-
export { IUpsertAppRequest
|
|
14
|
+
export { IUpsertAppRequest } from "./panel/flash/upsert-flash-app-request"
|
|
15
15
|
|
|
16
16
|
export { IGradient, IStroke, IShape, ShapeDiv } from "./general/shape"
|
|
17
17
|
export { IOfferWallHomeDialogData } from "./offers/offerwall/offerwall-home-dialog-data"
|
|
@@ -13,30 +13,16 @@ export interface IUpsertAppRequest {
|
|
|
13
13
|
// onesignalAppId: string
|
|
14
14
|
// onesignalRestApiKey: string
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
appmetricaApiKey?: string
|
|
17
|
+
appmetricaAppId?: number
|
|
17
18
|
|
|
18
19
|
integrationVersion?: IntegrationVersion,
|
|
19
20
|
|
|
20
|
-
webInterfaceName?: string,
|
|
21
|
-
generationOptions?: Partial<IAppGenerationOptions>
|
|
22
21
|
keitaroData?: Partial<IAppKeitaroData>,
|
|
23
|
-
removeDataParams?: IRemoveDataParams,
|
|
24
|
-
privacyPolicyParams?: IPrivacyPolicyParams,
|
|
25
22
|
offersStubParams?: IOffersStubParams,
|
|
26
23
|
bannerParams?: IBannerParams,
|
|
27
|
-
developerParams?: IDeveloperParams,
|
|
28
|
-
remoteServerParams?: IRemoteServerParams,
|
|
29
24
|
domainParams: IDomainParams,
|
|
30
25
|
directParams?: IDirectParams,
|
|
31
26
|
externalParams?: IExternalParams,
|
|
32
27
|
platforms: { [key: string]: IPlatformParams },
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface IUpsertAppResponse {
|
|
37
|
-
data: IUpsertAppRequest,
|
|
38
|
-
linkName: string,
|
|
39
|
-
archive: string,
|
|
40
|
-
externalParams?: IExternalParams,
|
|
41
|
-
}
|
|
42
|
-
|
|
28
|
+
}
|
|
@@ -368,7 +368,7 @@ function createDefenceMainStreamPartialPayload(app: IApp): Partial<IKeitaroStrea
|
|
|
368
368
|
name: "ALL",
|
|
369
369
|
type: "regular",
|
|
370
370
|
action_type: "http",
|
|
371
|
-
action_payload: app.
|
|
371
|
+
action_payload: app.directParams?.path,
|
|
372
372
|
schema: "redirect",
|
|
373
373
|
filter_or: false,
|
|
374
374
|
collect_clicks: true,
|