@brimble/models 3.0.3 → 3.0.5

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.
package/dist/server.js CHANGED
@@ -62,6 +62,10 @@ const serverSchema = new mongoose_1.Schema({
62
62
  required: false,
63
63
  type: String,
64
64
  },
65
+ provider: {
66
+ type: String,
67
+ required: true
68
+ },
65
69
  provider_location: {
66
70
  type: String,
67
71
  required: false,
@@ -4,7 +4,10 @@ export interface IDbImage extends Document {
4
4
  name: DatabaseEngine;
5
5
  image_url: string;
6
6
  version: string;
7
- envs: string[];
7
+ envs: Array<{
8
+ value: string;
9
+ type: string;
10
+ }>;
8
11
  is_available: boolean;
9
12
  is_default: boolean;
10
13
  image: string;
@@ -22,6 +22,7 @@ export interface IServer extends Document {
22
22
  firewall_id?: string;
23
23
  specifications: Record<any, any>;
24
24
  plugin_id?: string;
25
+ provider: string;
25
26
  provider_location?: string;
26
27
  provider_identifier?: string;
27
28
  topology_path?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/server.ts CHANGED
@@ -63,6 +63,10 @@ const serverSchema = new Schema(
63
63
  required: false,
64
64
  type: String,
65
65
  },
66
+ provider: {
67
+ type: String,
68
+ required: true
69
+ },
66
70
  provider_location: {
67
71
  type: String,
68
72
  required: false,
package/types/db-image.ts CHANGED
@@ -5,7 +5,7 @@ export interface IDbImage extends Document {
5
5
  name: DatabaseEngine;
6
6
  image_url: string;
7
7
  version: string;
8
- envs: string[];
8
+ envs: Array<{ value: string; type: string }>;
9
9
  is_available: boolean;
10
10
  is_default: boolean;
11
11
  image: string;
package/types/server.ts CHANGED
@@ -43,6 +43,8 @@ export interface IServer extends Document {
43
43
 
44
44
  plugin_id?: string;
45
45
 
46
+ provider: string;
47
+
46
48
  provider_location?: string;
47
49
 
48
50
  provider_identifier?: string;