@bprotsyk/aso-core 1.2.136 → 1.2.138
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
|
@@ -20,9 +20,6 @@ export interface IFlashApp extends Document {
|
|
|
20
20
|
onesignalAppId: string;
|
|
21
21
|
onesignalRestApiKey: string;
|
|
22
22
|
linkPath: string;
|
|
23
|
-
developerName: string;
|
|
24
|
-
developerEmail: string;
|
|
25
|
-
developerOrganization: string;
|
|
26
23
|
generationOptions: IAppGenerationOptions;
|
|
27
24
|
keitaroData: IAppKeitaroData | null;
|
|
28
25
|
integrationVersion: IntegrationVersion;
|
|
@@ -30,6 +27,7 @@ export interface IFlashApp extends Document {
|
|
|
30
27
|
removeDataParams?: IRemoveDataParams;
|
|
31
28
|
privacyPolicyParams?: IPrivacyPolicyParams;
|
|
32
29
|
domainParams: IDomainParams;
|
|
30
|
+
developerParams: IDeveloperParams;
|
|
33
31
|
}
|
|
34
32
|
export interface IDomainParams {
|
|
35
33
|
name: string;
|
|
@@ -53,8 +51,8 @@ export interface IPrivacyPolicyParams {
|
|
|
53
51
|
dark: boolean;
|
|
54
52
|
}
|
|
55
53
|
export declare enum IntegrationVersion {
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
MVVM = "MVVM",
|
|
55
|
+
POLICY = "POLICY"
|
|
58
56
|
}
|
|
59
57
|
export interface IntegrationAlterations {
|
|
60
58
|
networkTool: AlternativeNetworkTool;
|
|
@@ -71,8 +69,11 @@ export interface IAppGenerationOptions {
|
|
|
71
69
|
splashName: string;
|
|
72
70
|
webViewName: string;
|
|
73
71
|
linkName: string;
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
}
|
|
73
|
+
export interface IDeveloperParams {
|
|
74
|
+
name: string;
|
|
75
|
+
email: string;
|
|
76
|
+
organization: string;
|
|
76
77
|
}
|
|
77
78
|
export interface IAppKeitaroData {
|
|
78
79
|
redirectCampaignId: number;
|
|
@@ -101,9 +102,6 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
101
102
|
geos: string;
|
|
102
103
|
onesignalAppId: string;
|
|
103
104
|
onesignalRestApiKey: string;
|
|
104
|
-
developerName: string;
|
|
105
|
-
developerEmail: string;
|
|
106
|
-
developerOrganization: string;
|
|
107
105
|
name?: string | undefined;
|
|
108
106
|
pushesEnabled?: boolean | undefined;
|
|
109
107
|
sourceUrl?: string | undefined;
|
package/lib/flash/flash-app.js
CHANGED
|
@@ -12,8 +12,8 @@ var FlashAppPlugStatus;
|
|
|
12
12
|
})(FlashAppPlugStatus = exports.FlashAppPlugStatus || (exports.FlashAppPlugStatus = {}));
|
|
13
13
|
var IntegrationVersion;
|
|
14
14
|
(function (IntegrationVersion) {
|
|
15
|
-
IntegrationVersion[
|
|
16
|
-
IntegrationVersion[
|
|
15
|
+
IntegrationVersion["MVVM"] = "MVVM";
|
|
16
|
+
IntegrationVersion["POLICY"] = "POLICY";
|
|
17
17
|
})(IntegrationVersion = exports.IntegrationVersion || (exports.IntegrationVersion = {}));
|
|
18
18
|
var PlugType;
|
|
19
19
|
(function (PlugType) {
|
|
@@ -64,21 +64,6 @@ exports.FlashAppSchema = new mongoose_1.Schema({
|
|
|
64
64
|
linkPath: {
|
|
65
65
|
type: String
|
|
66
66
|
},
|
|
67
|
-
developerName: {
|
|
68
|
-
type: String,
|
|
69
|
-
// unique: true,
|
|
70
|
-
required: true
|
|
71
|
-
},
|
|
72
|
-
developerEmail: {
|
|
73
|
-
type: String,
|
|
74
|
-
// unique: true,
|
|
75
|
-
required: true
|
|
76
|
-
},
|
|
77
|
-
developerOrganization: {
|
|
78
|
-
type: String,
|
|
79
|
-
// unique: true,
|
|
80
|
-
required: true
|
|
81
|
-
},
|
|
82
67
|
integrationVersion: Number,
|
|
83
68
|
integrationAlterations: Object,
|
|
84
69
|
generationOptions: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAppGenerationOptions, IAppKeitaroData, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app";
|
|
1
|
+
import { IAppGenerationOptions, IAppKeitaroData, IDeveloperParams, IDomainParams, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app";
|
|
2
2
|
export interface IUpsertFlashAppRequest {
|
|
3
3
|
id: number;
|
|
4
4
|
name: string;
|
|
@@ -6,7 +6,6 @@ export interface IUpsertFlashAppRequest {
|
|
|
6
6
|
sourceUrl?: string;
|
|
7
7
|
onesignalAppId: string;
|
|
8
8
|
onesignalRestApiKey: string;
|
|
9
|
-
domain: string;
|
|
10
9
|
linkPath: string;
|
|
11
10
|
policyUrl: string;
|
|
12
11
|
developerName: string;
|
|
@@ -16,6 +15,8 @@ export interface IUpsertFlashAppRequest {
|
|
|
16
15
|
keitaroData?: Partial<IAppKeitaroData>;
|
|
17
16
|
removeDataParams?: IRemoveDataParams;
|
|
18
17
|
privacyPolicyParams?: IPrivacyPolicyParams;
|
|
18
|
+
developerParams?: IDeveloperParams;
|
|
19
|
+
domainParams: IDomainParams;
|
|
19
20
|
}
|
|
20
21
|
export interface IUpsertFlashAppResponse {
|
|
21
22
|
data: IUpsertFlashAppRequest;
|
package/package.json
CHANGED
package/src/flash/flash-app.ts
CHANGED
|
@@ -27,16 +27,15 @@ export interface IFlashApp extends Document {
|
|
|
27
27
|
|
|
28
28
|
linkPath: string,
|
|
29
29
|
|
|
30
|
-
developerName: string
|
|
31
|
-
developerEmail: string
|
|
32
|
-
developerOrganization: string
|
|
33
30
|
generationOptions: IAppGenerationOptions,
|
|
34
31
|
keitaroData: IAppKeitaroData | null,
|
|
35
32
|
integrationVersion: IntegrationVersion
|
|
36
33
|
integrationAlterations?: IntegrationAlterations,
|
|
34
|
+
|
|
37
35
|
removeDataParams?: IRemoveDataParams,
|
|
38
36
|
privacyPolicyParams?: IPrivacyPolicyParams
|
|
39
37
|
domainParams: IDomainParams
|
|
38
|
+
developerParams: IDeveloperParams
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
export interface IDomainParams {
|
|
@@ -64,8 +63,8 @@ export interface IPrivacyPolicyParams {
|
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
export enum IntegrationVersion {
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
MVVM = "MVVM",
|
|
67
|
+
POLICY = "POLICY",
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
export interface IntegrationAlterations {
|
|
@@ -84,10 +83,14 @@ export interface IAppGenerationOptions {
|
|
|
84
83
|
splashName: string
|
|
85
84
|
webViewName: string
|
|
86
85
|
linkName:string,
|
|
87
|
-
savedName: string,
|
|
88
|
-
paranoidSeed: number
|
|
89
86
|
}
|
|
90
87
|
|
|
88
|
+
export interface IDeveloperParams {
|
|
89
|
+
name: string
|
|
90
|
+
email: string
|
|
91
|
+
organization: string
|
|
92
|
+
}
|
|
93
|
+
|
|
91
94
|
export interface IAppKeitaroData {
|
|
92
95
|
redirectCampaignId: number
|
|
93
96
|
redirectCampaignName: string
|
|
@@ -156,21 +159,6 @@ export const FlashAppSchema = new Schema({
|
|
|
156
159
|
linkPath : {
|
|
157
160
|
type: String
|
|
158
161
|
},
|
|
159
|
-
developerName: {
|
|
160
|
-
type: String,
|
|
161
|
-
// unique: true,
|
|
162
|
-
required: true
|
|
163
|
-
},
|
|
164
|
-
developerEmail: {
|
|
165
|
-
type: String,
|
|
166
|
-
// unique: true,
|
|
167
|
-
required: true
|
|
168
|
-
},
|
|
169
|
-
developerOrganization: {
|
|
170
|
-
type: String,
|
|
171
|
-
// unique: true,
|
|
172
|
-
required: true
|
|
173
|
-
},
|
|
174
162
|
|
|
175
163
|
integrationVersion: Number,
|
|
176
164
|
integrationAlterations: Object,
|
|
@@ -255,6 +243,7 @@ export const FlashAppSchema = new Schema({
|
|
|
255
243
|
privacyPolicyParams: Object,
|
|
256
244
|
domainParams: Object
|
|
257
245
|
})
|
|
246
|
+
|
|
258
247
|
// TODO app type (casino / fin)
|
|
259
248
|
export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise<void> {
|
|
260
249
|
await model.syncIndexes()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAppGenerationOptions, IAppKeitaroData, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app"
|
|
1
|
+
import { IAppGenerationOptions, IAppKeitaroData, IDeveloperParams, IDomainParams, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app"
|
|
2
2
|
import { PlugType } from "index"
|
|
3
3
|
|
|
4
4
|
export interface IUpsertFlashAppRequest {
|
|
@@ -10,7 +10,6 @@ export interface IUpsertFlashAppRequest {
|
|
|
10
10
|
onesignalAppId: string
|
|
11
11
|
onesignalRestApiKey: string
|
|
12
12
|
|
|
13
|
-
domain: string,
|
|
14
13
|
linkPath: string,
|
|
15
14
|
policyUrl: string,
|
|
16
15
|
|
|
@@ -20,7 +19,9 @@ export interface IUpsertFlashAppRequest {
|
|
|
20
19
|
generationOptions: Partial<IAppGenerationOptions>
|
|
21
20
|
keitaroData?: Partial<IAppKeitaroData>,
|
|
22
21
|
removeDataParams?: IRemoveDataParams,
|
|
23
|
-
privacyPolicyParams?: IPrivacyPolicyParams
|
|
22
|
+
privacyPolicyParams?: IPrivacyPolicyParams,
|
|
23
|
+
developerParams?: IDeveloperParams,
|
|
24
|
+
domainParams: IDomainParams,
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
export interface IUpsertFlashAppResponse {
|