@bprotsyk/aso-core 2.0.44 → 2.0.45
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
|
@@ -29,6 +29,13 @@ export interface IApp extends Document {
|
|
|
29
29
|
domainParams: IDomainParams;
|
|
30
30
|
developerParams: IDeveloperParams;
|
|
31
31
|
offersListId: number;
|
|
32
|
+
externalParams?: IExternalParams;
|
|
33
|
+
}
|
|
34
|
+
export interface IExternalParams {
|
|
35
|
+
showButton: boolean;
|
|
36
|
+
schema: string;
|
|
37
|
+
autoRedirect: boolean;
|
|
38
|
+
repeatAutoRedirect: boolean;
|
|
32
39
|
}
|
|
33
40
|
export interface IRemoteServerParams {
|
|
34
41
|
ip: string;
|
|
@@ -150,6 +157,12 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
|
|
|
150
157
|
onesignalAppId?: string | undefined;
|
|
151
158
|
onesignalRestApiKey?: string | undefined;
|
|
152
159
|
linkPath?: string | undefined;
|
|
160
|
+
externalParams?: {
|
|
161
|
+
schema?: string | undefined;
|
|
162
|
+
showButton?: boolean | undefined;
|
|
163
|
+
autoRedirect?: boolean | undefined;
|
|
164
|
+
repeatAutoRedirect?: boolean | undefined;
|
|
165
|
+
} | undefined;
|
|
153
166
|
generationOptions?: {
|
|
154
167
|
splashName?: string | undefined;
|
|
155
168
|
webViewName?: string | undefined;
|
package/lib/app/app.js
CHANGED
|
@@ -70,6 +70,12 @@ exports.AppSchema = new mongoose_1.Schema({
|
|
|
70
70
|
linkPath: {
|
|
71
71
|
type: String
|
|
72
72
|
},
|
|
73
|
+
externalParams: {
|
|
74
|
+
showButton: Boolean,
|
|
75
|
+
schema: String,
|
|
76
|
+
autoRedirect: Boolean,
|
|
77
|
+
repeatAutoRedirect: Boolean
|
|
78
|
+
},
|
|
73
79
|
integrationVersion: {
|
|
74
80
|
type: String,
|
|
75
81
|
default: IntegrationVersion.OFFER_STUB,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAppGenerationOptions, IAppKeitaroData, IBannerParams, IDeveloperParams, IDirectParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoteServerParams, IRemoveDataParams, IntegrationVersion } from "app/app";
|
|
1
|
+
import { IAppGenerationOptions, IAppKeitaroData, IBannerParams, IDeveloperParams, IDirectParams, IDomainParams, IExternalParams, IOffersStubParams, IPrivacyPolicyParams, IRemoteServerParams, IRemoveDataParams, IntegrationVersion } from "app/app";
|
|
2
2
|
export interface IUpsertAppRequest {
|
|
3
3
|
id: number;
|
|
4
4
|
name?: string;
|
|
@@ -19,9 +19,11 @@ export interface IUpsertAppRequest {
|
|
|
19
19
|
remoteServerParams?: IRemoteServerParams;
|
|
20
20
|
domainParams: IDomainParams;
|
|
21
21
|
directParams?: IDirectParams;
|
|
22
|
+
externalParams?: IExternalParams;
|
|
22
23
|
}
|
|
23
24
|
export interface IUpsertAppResponse {
|
|
24
25
|
data: IUpsertAppRequest;
|
|
25
26
|
linkName: string;
|
|
26
27
|
archive: string;
|
|
28
|
+
externalParams?: IExternalParams;
|
|
27
29
|
}
|
package/package.json
CHANGED
package/src/app/app.ts
CHANGED
|
@@ -37,6 +37,14 @@ export interface IApp extends Document {
|
|
|
37
37
|
developerParams: IDeveloperParams
|
|
38
38
|
|
|
39
39
|
offersListId: number
|
|
40
|
+
externalParams?:IExternalParams
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface IExternalParams {
|
|
44
|
+
showButton: boolean;
|
|
45
|
+
schema: string;
|
|
46
|
+
autoRedirect: boolean;
|
|
47
|
+
repeatAutoRedirect:boolean;
|
|
40
48
|
}
|
|
41
49
|
|
|
42
50
|
export interface IRemoteServerParams {
|
|
@@ -206,6 +214,12 @@ export const AppSchema = new Schema({
|
|
|
206
214
|
linkPath: {
|
|
207
215
|
type: String
|
|
208
216
|
},
|
|
217
|
+
externalParams : {
|
|
218
|
+
showButton: Boolean,
|
|
219
|
+
schema: String,
|
|
220
|
+
autoRedirect: Boolean,
|
|
221
|
+
repeatAutoRedirect:Boolean
|
|
222
|
+
},
|
|
209
223
|
|
|
210
224
|
integrationVersion: {
|
|
211
225
|
type: String,
|
|
@@ -305,6 +319,7 @@ export const AppSchema = new Schema({
|
|
|
305
319
|
type: String,
|
|
306
320
|
},
|
|
307
321
|
}
|
|
322
|
+
|
|
308
323
|
})
|
|
309
324
|
|
|
310
325
|
// TODO app type (casino / fin)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAppGenerationOptions, IAppKeitaroData, IBannerParams, IDeveloperParams, IDirectParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoteServerParams, IRemoveDataParams, IntegrationVersion } from "app/app"
|
|
1
|
+
import { IAppGenerationOptions, IAppKeitaroData, IBannerParams, IDeveloperParams, IDirectParams, IDomainParams, IExternalParams, IOffersStubParams, IPrivacyPolicyParams, IRemoteServerParams, IRemoveDataParams, IntegrationVersion } from "app/app"
|
|
2
2
|
import { PlugType } from "index"
|
|
3
3
|
|
|
4
4
|
export interface IUpsertAppRequest {
|
|
@@ -27,11 +27,14 @@ export interface IUpsertAppRequest {
|
|
|
27
27
|
remoteServerParams?: IRemoteServerParams,
|
|
28
28
|
domainParams: IDomainParams,
|
|
29
29
|
directParams?: IDirectParams,
|
|
30
|
+
externalParams?:IExternalParams,
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
|
|
32
34
|
export interface IUpsertAppResponse {
|
|
33
35
|
data: IUpsertAppRequest,
|
|
34
36
|
linkName: string,
|
|
35
|
-
archive: string
|
|
37
|
+
archive: string,
|
|
38
|
+
externalParams?:IExternalParams,
|
|
36
39
|
}
|
|
37
40
|
|