@bprotsyk/aso-core 1.2.7 → 1.2.9

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.
@@ -26,8 +26,8 @@ import { Model, Schema } from "mongoose";
26
26
  export interface IFlashApp {
27
27
  id: number;
28
28
  name: string;
29
- trackingUrl: string;
30
- email: string;
29
+ trackingUrl?: string;
30
+ email?: string;
31
31
  bundle: string;
32
32
  pushesEnabled?: boolean;
33
33
  pastebinUrl: string;
@@ -54,11 +54,11 @@ export declare const FlashAppSchema: Schema<any, Model<any, any, any, any, any>,
54
54
  id: number;
55
55
  bundle: string;
56
56
  trackingUrl: string;
57
+ email: string;
57
58
  pastebinUrl: string;
58
59
  onesignalAppId: string;
59
60
  onesignalRestApiKey: string;
60
61
  name?: string | undefined;
61
- email?: string | undefined;
62
62
  pushesEnabled?: boolean | undefined;
63
63
  policyUrl?: string | undefined;
64
64
  generationOptions?: {
@@ -18,7 +18,10 @@ exports.FlashAppSchema = new mongoose_1.Schema({
18
18
  type: String,
19
19
  default: null
20
20
  },
21
- email: String,
21
+ email: {
22
+ type: String,
23
+ default: null
24
+ },
22
25
  pushesEnabled: Boolean,
23
26
  pastebinUrl: {
24
27
  type: String,
@@ -84,6 +87,6 @@ exports.FlashAppSchema = new mongoose_1.Schema({
84
87
  keyPassword: {
85
88
  type: String,
86
89
  required: true
87
- }
90
+ },
88
91
  }
89
92
  });
@@ -16,4 +16,7 @@ export interface IUpsertFlashAppRequest {
16
16
  keyCity: string;
17
17
  keyAlias: string;
18
18
  keyPassword: string;
19
+ email?: string;
20
+ trackingUrl?: string;
21
+ pushesEnabled?: boolean;
19
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -5,8 +5,8 @@ import { Model, model, Schema } from "mongoose";
5
5
  export interface IFlashApp {
6
6
  id: number
7
7
  name: string
8
- trackingUrl: string
9
- email: string
8
+ trackingUrl?: string
9
+ email?: string
10
10
  bundle: string
11
11
  pushesEnabled?: boolean,
12
12
  pastebinUrl: string,
@@ -50,7 +50,10 @@ export const FlashAppSchema = new Schema({
50
50
  type: String,
51
51
  default: null
52
52
  },
53
- email: String,
53
+ email: {
54
+ type: String,
55
+ default: null
56
+ },
54
57
 
55
58
  pushesEnabled: Boolean,
56
59
  pastebinUrl: {
@@ -119,7 +122,7 @@ export const FlashAppSchema = new Schema({
119
122
  keyPassword: {
120
123
  type: String,
121
124
  required: true
122
- }
125
+ },
123
126
  }
124
127
  })
125
128
 
@@ -18,5 +18,9 @@ export interface IUpsertFlashAppRequest {
18
18
  keyCity: string
19
19
  keyAlias: string
20
20
  keyPassword: string,
21
+
22
+ email?: string,
23
+ trackingUrl?: string
24
+ pushesEnabled?: boolean
21
25
  }
22
26