@bprotsyk/aso-core 1.2.148 → 1.2.149

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.
@@ -100,6 +100,7 @@ export declare enum PlugType {
100
100
  }
101
101
  export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
102
102
  type: string;
103
+ enabled: boolean;
103
104
  id: number;
104
105
  bundle: string;
105
106
  trackingUrl: string;
@@ -107,7 +108,6 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
107
108
  onesignalAppId: string;
108
109
  onesignalRestApiKey: string;
109
110
  name?: string | undefined;
110
- enabled?: boolean | undefined;
111
111
  pushesEnabled?: boolean | undefined;
112
112
  sourceUrl?: string | undefined;
113
113
  integrationVersion?: number | undefined;
@@ -27,7 +27,11 @@ exports.FlashAppSchema = new mongoose_1.Schema({
27
27
  unique: true,
28
28
  required: true
29
29
  },
30
- enabled: Boolean,
30
+ enabled: {
31
+ type: Boolean,
32
+ required: true,
33
+ default: false
34
+ },
31
35
  bundle: {
32
36
  type: String,
33
37
  unique: true,
@@ -4,6 +4,7 @@ export interface IUpsertFlashAppRequest {
4
4
  name: string;
5
5
  bundle: string;
6
6
  sourceUrl?: string;
7
+ enabled: boolean;
7
8
  onesignalAppId: string;
8
9
  onesignalRestApiKey: string;
9
10
  policyUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.148",
3
+ "version": "1.2.149",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -125,7 +125,11 @@ export const FlashAppSchema = new Schema({
125
125
  unique: true,
126
126
  required: true
127
127
  },
128
- enabled: Boolean,
128
+ enabled: {
129
+ type: Boolean,
130
+ required: true,
131
+ default: false
132
+ },
129
133
  bundle: {
130
134
  type: String,
131
135
  unique: true,
@@ -6,6 +6,7 @@ export interface IUpsertFlashAppRequest {
6
6
  name: string
7
7
  bundle: string
8
8
  sourceUrl?: string,
9
+ enabled: boolean,
9
10
 
10
11
  onesignalAppId: string
11
12
  onesignalRestApiKey: string