@bprotsyk/aso-core 1.2.155 → 1.2.157

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.
@@ -116,11 +116,11 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
116
116
  geos: string;
117
117
  onesignalAppId: string;
118
118
  onesignalRestApiKey: string;
119
+ integrationVersion: string;
119
120
  name?: string | undefined;
120
121
  webInterfaceName?: string | undefined;
121
122
  pushesEnabled?: boolean | undefined;
122
123
  sourceUrl?: string | undefined;
123
- integrationVersion?: number | undefined;
124
124
  integrationAlterations?: any;
125
125
  removeDataParams?: any;
126
126
  privacyPolicyParams?: any;
@@ -71,7 +71,11 @@ exports.FlashAppSchema = new mongoose_1.Schema({
71
71
  linkPath: {
72
72
  type: String
73
73
  },
74
- integrationVersion: Number,
74
+ integrationVersion: {
75
+ type: String,
76
+ default: IntegrationVersion.MVVM,
77
+ enum: IntegrationVersion
78
+ },
75
79
  integrationAlterations: Object,
76
80
  generationOptions: {
77
81
  splashName: {
@@ -1,4 +1,4 @@
1
- import { IAppGenerationOptions, IAppKeitaroData, IDeveloperParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app";
1
+ import { IAppGenerationOptions, IAppKeitaroData, IDeveloperParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoveDataParams, IntegrationVersion } from "flash/flash-app";
2
2
  export interface IUpsertFlashAppRequest {
3
3
  id: number;
4
4
  name: string;
@@ -10,6 +10,7 @@ export interface IUpsertFlashAppRequest {
10
10
  onesignalRestApiKey: string;
11
11
  webInterfaceName: string;
12
12
  policyUrl: string;
13
+ integrationVersion: IntegrationVersion;
13
14
  generationOptions: Partial<IAppGenerationOptions>;
14
15
  keitaroData?: Partial<IAppKeitaroData>;
15
16
  removeDataParams?: IRemoveDataParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.155",
3
+ "version": "1.2.157",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -184,7 +184,11 @@ export const FlashAppSchema = new Schema({
184
184
  type: String
185
185
  },
186
186
 
187
- integrationVersion: Number,
187
+ integrationVersion: {
188
+ type: String,
189
+ default: IntegrationVersion.MVVM,
190
+ enum: IntegrationVersion
191
+ },
188
192
  integrationAlterations: Object,
189
193
 
190
194
  generationOptions: {
@@ -1,4 +1,4 @@
1
- import { IAppGenerationOptions, IAppKeitaroData, IDeveloperParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app"
1
+ import { IAppGenerationOptions, IAppKeitaroData, IDeveloperParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoveDataParams, IntegrationVersion } from "flash/flash-app"
2
2
  import { PlugType } from "index"
3
3
 
4
4
  export interface IUpsertFlashAppRequest {
@@ -15,6 +15,8 @@ export interface IUpsertFlashAppRequest {
15
15
 
16
16
  policyUrl: string,
17
17
 
18
+ integrationVersion: IntegrationVersion,
19
+
18
20
  generationOptions: Partial<IAppGenerationOptions>
19
21
  keitaroData?: Partial<IAppKeitaroData>,
20
22
  removeDataParams?: IRemoveDataParams,