@bprotsyk/aso-core 1.2.6 → 1.2.7

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.
@@ -51,28 +51,28 @@ export interface IAppGenerationOptions {
51
51
  keyPassword: string;
52
52
  }
53
53
  export declare const FlashAppSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
54
+ id: number;
55
+ bundle: string;
54
56
  trackingUrl: string;
57
+ pastebinUrl: string;
58
+ onesignalAppId: string;
59
+ onesignalRestApiKey: string;
55
60
  name?: string | undefined;
56
- id?: number | undefined;
57
61
  email?: string | undefined;
58
62
  pushesEnabled?: boolean | undefined;
59
63
  policyUrl?: string | undefined;
60
- bundle?: string | undefined;
61
- pastebinUrl?: string | undefined;
62
- onesignalAppId?: string | undefined;
63
- onesignalRestApiKey?: string | undefined;
64
64
  generationOptions?: {
65
- splashActivityClassName?: string | undefined;
66
- mainActivityClassName?: string | undefined;
67
- linkName?: string | undefined;
68
- savedName?: string | undefined;
69
- paranoidSeed?: number | undefined;
70
- keyFileName?: string | undefined;
71
- keyDeveloperName?: string | undefined;
72
- keyDeveloperOrganization?: string | undefined;
73
- keyCountryCode?: string | undefined;
74
- keyCity?: string | undefined;
75
- keyAlias?: string | undefined;
76
- keyPassword?: string | undefined;
65
+ splashActivityClassName: string;
66
+ mainActivityClassName: string;
67
+ linkName: string;
68
+ savedName: string;
69
+ paranoidSeed: number;
70
+ keyFileName: string;
71
+ keyDeveloperName: string;
72
+ keyDeveloperOrganization: string;
73
+ keyCountryCode: string;
74
+ keyCity: string;
75
+ keyAlias: string;
76
+ keyPassword: string;
77
77
  } | undefined;
78
78
  }>;
@@ -5,11 +5,13 @@ const mongoose_1 = require("mongoose");
5
5
  exports.FlashAppSchema = new mongoose_1.Schema({
6
6
  id: {
7
7
  type: Number,
8
- unique: true
8
+ unique: true,
9
+ required: true
9
10
  },
10
11
  bundle: {
11
12
  type: String,
12
- unique: true
13
+ unique: true,
14
+ required: true
13
15
  },
14
16
  name: String,
15
17
  trackingUrl: {
@@ -20,29 +22,68 @@ exports.FlashAppSchema = new mongoose_1.Schema({
20
22
  pushesEnabled: Boolean,
21
23
  pastebinUrl: {
22
24
  type: String,
23
- unique: true
25
+ unique: true,
26
+ required: true
24
27
  },
25
28
  policyUrl: String,
26
29
  onesignalAppId: {
27
30
  type: String,
28
- unique: true
31
+ unique: true,
32
+ required: true
29
33
  },
30
34
  onesignalRestApiKey: {
31
35
  type: String,
32
- unique: true
36
+ unique: true,
37
+ required: true
33
38
  },
34
39
  generationOptions: {
35
- splashActivityClassName: String,
36
- mainActivityClassName: String,
37
- linkName: String,
38
- savedName: String,
39
- paranoidSeed: Number,
40
- keyFileName: String,
41
- keyDeveloperName: String,
42
- keyDeveloperOrganization: String,
43
- keyCountryCode: String,
44
- keyCity: String,
45
- keyAlias: String,
46
- keyPassword: String,
40
+ splashActivityClassName: {
41
+ type: String,
42
+ required: true
43
+ },
44
+ mainActivityClassName: {
45
+ type: String,
46
+ required: true
47
+ },
48
+ linkName: {
49
+ type: String,
50
+ required: true
51
+ },
52
+ savedName: {
53
+ type: String,
54
+ required: true
55
+ },
56
+ paranoidSeed: {
57
+ type: Number,
58
+ required: true
59
+ },
60
+ keyFileName: {
61
+ type: String,
62
+ required: true
63
+ },
64
+ keyDeveloperName: {
65
+ type: String,
66
+ required: true
67
+ },
68
+ keyDeveloperOrganization: {
69
+ type: String,
70
+ required: true
71
+ },
72
+ keyCountryCode: {
73
+ type: String,
74
+ required: true
75
+ },
76
+ keyCity: {
77
+ type: String,
78
+ required: true
79
+ },
80
+ keyAlias: {
81
+ type: String,
82
+ required: true
83
+ },
84
+ keyPassword: {
85
+ type: String,
86
+ required: true
87
+ }
47
88
  }
48
89
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -37,11 +37,13 @@ export interface IAppGenerationOptions {
37
37
  export const FlashAppSchema = new Schema({
38
38
  id: {
39
39
  type: Number,
40
- unique: true
40
+ unique: true,
41
+ required: true
41
42
  },
42
43
  bundle: {
43
44
  type: String,
44
- unique: true
45
+ unique: true,
46
+ required: true
45
47
  },
46
48
  name: String,
47
49
  trackingUrl: {
@@ -53,32 +55,71 @@ export const FlashAppSchema = new Schema({
53
55
  pushesEnabled: Boolean,
54
56
  pastebinUrl: {
55
57
  type: String,
56
- unique: true
58
+ unique: true,
59
+ required: true
57
60
  },
58
61
  policyUrl: String,
59
62
 
60
63
  onesignalAppId: {
61
64
  type: String,
62
- unique: true
65
+ unique: true,
66
+ required: true
63
67
  },
64
68
  onesignalRestApiKey: {
65
69
  type: String,
66
- unique: true
70
+ unique: true,
71
+ required: true
67
72
  },
68
73
 
69
74
  generationOptions: {
70
- splashActivityClassName: String,
71
- mainActivityClassName: String,
72
- linkName: String,
73
- savedName: String,
74
- paranoidSeed: Number,
75
- keyFileName: String,
76
- keyDeveloperName: String,
77
- keyDeveloperOrganization: String,
78
- keyCountryCode: String,
79
- keyCity: String,
80
- keyAlias: String,
81
- keyPassword: String,
75
+ splashActivityClassName: {
76
+ type: String,
77
+ required: true
78
+ },
79
+ mainActivityClassName: {
80
+ type: String,
81
+ required: true
82
+ },
83
+ linkName: {
84
+ type: String,
85
+ required: true
86
+ },
87
+ savedName: {
88
+ type: String,
89
+ required: true
90
+ },
91
+ paranoidSeed: {
92
+ type: Number,
93
+ required: true
94
+ },
95
+ keyFileName: {
96
+ type: String,
97
+ required: true
98
+ },
99
+ keyDeveloperName: {
100
+ type: String,
101
+ required: true
102
+ },
103
+ keyDeveloperOrganization: {
104
+ type: String,
105
+ required: true
106
+ },
107
+ keyCountryCode: {
108
+ type: String,
109
+ required: true
110
+ },
111
+ keyCity: {
112
+ type: String,
113
+ required: true
114
+ },
115
+ keyAlias: {
116
+ type: String,
117
+ required: true
118
+ },
119
+ keyPassword: {
120
+ type: String,
121
+ required: true
122
+ }
82
123
  }
83
124
  })
84
125