@bprotsyk/aso-core 1.2.141 → 1.2.143

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.
@@ -9,6 +9,7 @@ export declare enum FlashAppPlugStatus {
9
9
  }
10
10
  export interface IFlashApp extends Document {
11
11
  id: number;
12
+ on: boolean;
12
13
  name: string;
13
14
  trackingUrl?: string;
14
15
  bundle: string;
@@ -31,7 +32,6 @@ export interface IFlashApp extends Document {
31
32
  export interface IDomainParams {
32
33
  name: string;
33
34
  clouflareZone: string;
34
- enabled: boolean;
35
35
  }
36
36
  export interface IRemoveDataParams {
37
37
  buttonText: string;
@@ -42,7 +42,6 @@ export interface IRemoveDataParams {
42
42
  path: string;
43
43
  }
44
44
  export interface IPrivacyPolicyParams {
45
- callbackMethodName: string;
46
45
  showButtonQuery: string;
47
46
  button?: {
48
47
  text: string;
@@ -51,6 +50,8 @@ export interface IPrivacyPolicyParams {
51
50
  dark: boolean;
52
51
  path: string;
53
52
  adverisingIdQuery: string;
53
+ confirmFunctionName: string;
54
+ redirectFunctionName: string;
54
55
  }
55
56
  export declare enum IntegrationVersion {
56
57
  MVVM = "MVVM",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.141",
3
+ "version": "1.2.143",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -12,6 +12,7 @@ export enum FlashAppPlugStatus {
12
12
 
13
13
  export interface IFlashApp extends Document {
14
14
  id: number
15
+ on: boolean,
15
16
  name: string
16
17
  trackingUrl?: string
17
18
  bundle: string
@@ -26,7 +27,7 @@ export interface IFlashApp extends Document {
26
27
  onesignalRestApiKey: string
27
28
 
28
29
  generationOptions: IAppGenerationOptions,
29
- keitaroData: IAppKeitaroData | null,
30
+ keitaroData: IAppKeitaroData | null,
30
31
  integrationVersion: IntegrationVersion
31
32
  integrationAlterations?: IntegrationAlterations,
32
33
 
@@ -39,7 +40,6 @@ export interface IFlashApp extends Document {
39
40
  export interface IDomainParams {
40
41
  name: string,
41
42
  clouflareZone: string,
42
- enabled: boolean
43
43
  }
44
44
 
45
45
  export interface IRemoveDataParams {
@@ -53,7 +53,6 @@ export interface IRemoveDataParams {
53
53
  }
54
54
 
55
55
  export interface IPrivacyPolicyParams {
56
- callbackMethodName: string,
57
56
  showButtonQuery: string,
58
57
  button?: {
59
58
  text: string
@@ -63,6 +62,8 @@ export interface IPrivacyPolicyParams {
63
62
 
64
63
  path: string,
65
64
  adverisingIdQuery: string
65
+ confirmFunctionName: string,
66
+ redirectFunctionName: string
66
67
  }
67
68
 
68
69
  export enum IntegrationVersion {
@@ -76,7 +77,7 @@ export interface IntegrationAlterations {
76
77
  navigation: AlternativeNavigation, // Navigation
77
78
  storageType: AlternativeStorageType, // Storage
78
79
  sourceType: AlternativeSourceType, // Source
79
- onBackPressed: AlternativeOnBackPressed,
80
+ onBackPressed: AlternativeOnBackPressed,
80
81
  onActivityResult: AlternativeOnActivityResult,
81
82
  layoutType: AlternativeLayoutType,
82
83
  fullscreen: AlternativeFullscreen
@@ -85,14 +86,14 @@ export interface IntegrationAlterations {
85
86
  export interface IAppGenerationOptions {
86
87
  splashName: string
87
88
  webViewName: string
88
- linkName:string,
89
+ linkName: string,
89
90
  }
90
91
 
91
92
  export interface IDeveloperParams {
92
93
  name: string
93
94
  email: string
94
95
  organization: string
95
- }
96
+ }
96
97
 
97
98
  export interface IAppKeitaroData {
98
99
  redirectCampaignId: number
@@ -159,7 +160,7 @@ export const FlashAppSchema = new Schema({
159
160
  required: true
160
161
  },
161
162
 
162
- linkPath : {
163
+ linkPath: {
163
164
  type: String
164
165
  },
165
166
 
@@ -244,7 +245,7 @@ export const FlashAppSchema = new Schema({
244
245
  },
245
246
  removeDataParams: Object,
246
247
  privacyPolicyParams: Object,
247
- domainParams: Object
248
+ domainParams: Object
248
249
  })
249
250
 
250
251
  // TODO app type (casino / fin)
@@ -266,8 +267,8 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise
266
267
  ]
267
268
 
268
269
  let aggregation = model.aggregate(pipelineStage)
269
- try { await model.collection.dropIndex("plugStatus") } catch(e) {}
270
- try { await model.collection.dropIndex("reservePlugStatus") } catch(e) {}
270
+ try { await model.collection.dropIndex("plugStatus") } catch (e) { }
271
+ try { await model.collection.dropIndex("reservePlugStatus") } catch (e) { }
271
272
 
272
273
  // await model.schema.dropIndex("generationOptions.keyPassword_1")
273
274
  await aggregation.exec()