@bprotsyk/aso-core 1.2.137 → 1.2.139

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.
@@ -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
- _3 = 3,
57
- _4 = 4
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
- savedName: string;
75
- paranoidSeed: number;
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;
@@ -12,8 +12,8 @@ var FlashAppPlugStatus;
12
12
  })(FlashAppPlugStatus = exports.FlashAppPlugStatus || (exports.FlashAppPlugStatus = {}));
13
13
  var IntegrationVersion;
14
14
  (function (IntegrationVersion) {
15
- IntegrationVersion[IntegrationVersion["_3"] = 3] = "_3";
16
- IntegrationVersion[IntegrationVersion["_4"] = 4] = "_4";
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, IDomainParams, 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;
@@ -8,13 +8,11 @@ export interface IUpsertFlashAppRequest {
8
8
  onesignalRestApiKey: string;
9
9
  linkPath: string;
10
10
  policyUrl: string;
11
- developerName: string;
12
- developerEmail: string;
13
- developerOrganization: string;
14
11
  generationOptions: Partial<IAppGenerationOptions>;
15
12
  keitaroData?: Partial<IAppKeitaroData>;
16
13
  removeDataParams?: IRemoveDataParams;
17
14
  privacyPolicyParams?: IPrivacyPolicyParams;
15
+ developerParams?: IDeveloperParams;
18
16
  domainParams: IDomainParams;
19
17
  }
20
18
  export interface IUpsertFlashAppResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.137",
3
+ "version": "1.2.139",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -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
- _3 = 3,
68
- _4 = 4,
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, IDomainParams, 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 {
@@ -13,14 +13,12 @@ export interface IUpsertFlashAppRequest {
13
13
  linkPath: string,
14
14
  policyUrl: string,
15
15
 
16
- developerName: string
17
- developerEmail: string
18
- developerOrganization: string
19
16
  generationOptions: Partial<IAppGenerationOptions>
20
17
  keitaroData?: Partial<IAppKeitaroData>,
21
18
  removeDataParams?: IRemoveDataParams,
22
19
  privacyPolicyParams?: IPrivacyPolicyParams,
23
- domainParams: IDomainParams
20
+ developerParams?: IDeveloperParams,
21
+ domainParams: IDomainParams,
24
22
  }
25
23
 
26
24
  export interface IUpsertFlashAppResponse {