@bprotsyk/aso-core 1.2.119 → 1.2.126
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/flash/flash-app.d.ts
CHANGED
|
@@ -19,13 +19,30 @@ export interface IFlashApp extends Document {
|
|
|
19
19
|
geos: string;
|
|
20
20
|
onesignalAppId: string;
|
|
21
21
|
onesignalRestApiKey: string;
|
|
22
|
+
domain: string;
|
|
22
23
|
developerName: string;
|
|
23
24
|
developerEmail: string;
|
|
24
25
|
developerOrganization: string;
|
|
25
26
|
generationOptions: IAppGenerationOptions;
|
|
26
27
|
keitaroData: IAppKeitaroData | null;
|
|
27
28
|
integrationVersion: IntegrationVersion;
|
|
28
|
-
integrationAlterations
|
|
29
|
+
integrationAlterations?: IntegrationAlterations;
|
|
30
|
+
removeDataParams?: IRemoveDataParams;
|
|
31
|
+
privacyPolicyParams?: IPrivacyPolicyParams;
|
|
32
|
+
}
|
|
33
|
+
export interface IRemoveDataParams {
|
|
34
|
+
titleSuffix?: string;
|
|
35
|
+
buttonText?: string;
|
|
36
|
+
resultText?: string;
|
|
37
|
+
inputHint?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IPrivacyPolicyParams {
|
|
40
|
+
callbackMethodName: string;
|
|
41
|
+
showButtonQuery: string;
|
|
42
|
+
button?: {
|
|
43
|
+
text: string;
|
|
44
|
+
};
|
|
45
|
+
mustRead: boolean;
|
|
29
46
|
}
|
|
30
47
|
export declare enum IntegrationVersion {
|
|
31
48
|
_3 = 3,
|
|
@@ -84,7 +101,9 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
84
101
|
sourceUrl?: string | undefined;
|
|
85
102
|
integrationVersion?: number | undefined;
|
|
86
103
|
integrationAlterations?: any;
|
|
104
|
+
removeDataParams?: any;
|
|
87
105
|
policyUrl?: string | undefined;
|
|
106
|
+
domain?: string | undefined;
|
|
88
107
|
generationOptions?: {
|
|
89
108
|
splashName: string;
|
|
90
109
|
webViewName: string;
|
package/lib/flash/flash-app.js
CHANGED
|
@@ -61,6 +61,9 @@ exports.FlashAppSchema = new mongoose_1.Schema({
|
|
|
61
61
|
type: String,
|
|
62
62
|
required: true
|
|
63
63
|
},
|
|
64
|
+
domain: {
|
|
65
|
+
type: String
|
|
66
|
+
},
|
|
64
67
|
developerName: {
|
|
65
68
|
type: String,
|
|
66
69
|
// unique: true,
|
|
@@ -160,7 +163,8 @@ exports.FlashAppSchema = new mongoose_1.Schema({
|
|
|
160
163
|
},
|
|
161
164
|
clickIdParameterName: String,
|
|
162
165
|
offerIdParameterName: String,
|
|
163
|
-
}
|
|
166
|
+
},
|
|
167
|
+
removeDataParams: Object,
|
|
164
168
|
});
|
|
165
169
|
// TODO app type (casino / fin)
|
|
166
170
|
async function updateSchemaAndMoveValue(model) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAppGenerationOptions, IAppKeitaroData } from "flash/flash-app";
|
|
1
|
+
import { IAppGenerationOptions, IAppKeitaroData, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app";
|
|
2
2
|
export interface IUpsertFlashAppRequest {
|
|
3
3
|
id: number;
|
|
4
4
|
name: string;
|
|
@@ -6,11 +6,14 @@ export interface IUpsertFlashAppRequest {
|
|
|
6
6
|
sourceUrl?: string;
|
|
7
7
|
onesignalAppId: string;
|
|
8
8
|
onesignalRestApiKey: string;
|
|
9
|
+
domain: string;
|
|
9
10
|
developerName: string;
|
|
10
11
|
developerEmail: string;
|
|
11
12
|
developerOrganization: string;
|
|
12
13
|
generationOptions: Partial<IAppGenerationOptions>;
|
|
13
14
|
keitaroData?: Partial<IAppKeitaroData>;
|
|
15
|
+
removeDataParams?: IRemoveDataParams;
|
|
16
|
+
privacyPolicyParams?: IPrivacyPolicyParams;
|
|
14
17
|
}
|
|
15
18
|
export interface IUpsertFlashAppResponse {
|
|
16
19
|
data: IUpsertFlashAppRequest;
|
package/package.json
CHANGED
package/src/flash/flash-app.ts
CHANGED
|
@@ -25,13 +25,32 @@ export interface IFlashApp extends Document {
|
|
|
25
25
|
onesignalAppId: string
|
|
26
26
|
onesignalRestApiKey: string
|
|
27
27
|
|
|
28
|
+
domain: string,
|
|
28
29
|
developerName: string
|
|
29
30
|
developerEmail: string
|
|
30
31
|
developerOrganization: string
|
|
31
32
|
generationOptions: IAppGenerationOptions,
|
|
32
33
|
keitaroData: IAppKeitaroData | null,
|
|
33
34
|
integrationVersion: IntegrationVersion
|
|
34
|
-
integrationAlterations
|
|
35
|
+
integrationAlterations?: IntegrationAlterations,
|
|
36
|
+
removeDataParams?: IRemoveDataParams,
|
|
37
|
+
privacyPolicyParams?: IPrivacyPolicyParams
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface IRemoveDataParams {
|
|
41
|
+
titleSuffix?: string,
|
|
42
|
+
buttonText?: string,
|
|
43
|
+
resultText?: string,
|
|
44
|
+
inputHint?: string,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface IPrivacyPolicyParams {
|
|
48
|
+
callbackMethodName: string,
|
|
49
|
+
showButtonQuery: string,
|
|
50
|
+
button?: {
|
|
51
|
+
text: string
|
|
52
|
+
},
|
|
53
|
+
mustRead: boolean,
|
|
35
54
|
}
|
|
36
55
|
|
|
37
56
|
export enum IntegrationVersion {
|
|
@@ -124,6 +143,9 @@ export const FlashAppSchema = new Schema({
|
|
|
124
143
|
required: true
|
|
125
144
|
},
|
|
126
145
|
|
|
146
|
+
domain: {
|
|
147
|
+
type: String
|
|
148
|
+
},
|
|
127
149
|
developerName: {
|
|
128
150
|
type: String,
|
|
129
151
|
// unique: true,
|
|
@@ -227,7 +249,9 @@ export const FlashAppSchema = new Schema({
|
|
|
227
249
|
|
|
228
250
|
clickIdParameterName: String,
|
|
229
251
|
offerIdParameterName: String,
|
|
230
|
-
}
|
|
252
|
+
},
|
|
253
|
+
removeDataParams: Object,
|
|
254
|
+
|
|
231
255
|
})
|
|
232
256
|
// TODO app type (casino / fin)
|
|
233
257
|
export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise<void> {
|
|
@@ -273,6 +297,4 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise
|
|
|
273
297
|
};
|
|
274
298
|
|
|
275
299
|
await model.updateMany({}, updateOperation);
|
|
276
|
-
|
|
277
|
-
|
|
278
300
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAppGenerationOptions, IAppKeitaroData } from "flash/flash-app"
|
|
1
|
+
import { IAppGenerationOptions, IAppKeitaroData, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app"
|
|
2
2
|
import { PlugType } from "index"
|
|
3
3
|
|
|
4
4
|
export interface IUpsertFlashAppRequest {
|
|
@@ -10,11 +10,15 @@ export interface IUpsertFlashAppRequest {
|
|
|
10
10
|
onesignalAppId: string
|
|
11
11
|
onesignalRestApiKey: string
|
|
12
12
|
|
|
13
|
+
domain: string,
|
|
14
|
+
|
|
13
15
|
developerName: string
|
|
14
16
|
developerEmail: string
|
|
15
17
|
developerOrganization: string
|
|
16
18
|
generationOptions: Partial<IAppGenerationOptions>
|
|
17
|
-
keitaroData?: Partial<IAppKeitaroData
|
|
19
|
+
keitaroData?: Partial<IAppKeitaroData>,
|
|
20
|
+
removeDataParams?: IRemoveDataParams,
|
|
21
|
+
privacyPolicyParams?: IPrivacyPolicyParams
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
export interface IUpsertFlashAppResponse {
|