@brimble/models 1.4.92 → 1.4.94

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.
@@ -1,3 +1,3 @@
1
1
  yarn run v1.22.19
2
2
  $ tsc -p .
3
- Done in 1.92s.
3
+ Done in 2.80s.
package/dist/server.js CHANGED
@@ -23,9 +23,5 @@ const serverSchema = new mongoose_1.Schema({
23
23
  default: enum_1.SERVER_STATUS.Active,
24
24
  },
25
25
  default: Boolean,
26
- private_key: {
27
- required: true,
28
- type: String
29
- }
30
26
  }, { timestamps: true });
31
27
  exports.default = (0, mongoose_1.model)("Server", serverSchema);
package/dist/tenancy.js CHANGED
@@ -24,7 +24,9 @@ const tenancySchema = new mongoose_1.Schema({
24
24
  type: String,
25
25
  required: true
26
26
  },
27
- storage_size: Number,
28
- memory: Number
27
+ is_activated: {
28
+ type: Boolean,
29
+ default: false
30
+ },
29
31
  }, { timestamps: true });
30
32
  exports.default = (0, mongoose_1.model)("Tenancy", tenancySchema);
@@ -6,7 +6,5 @@ export interface IServer extends Document {
6
6
  ip_address: string;
7
7
  provider_id: string;
8
8
  status: SERVER_STATUS;
9
- private_key: string;
10
9
  default: boolean;
11
- directory: string;
12
10
  }
@@ -8,7 +8,6 @@ export interface ITenancy extends Document {
8
8
  server: IServer;
9
9
  username: string;
10
10
  password: string;
11
- memory: number;
12
- storage: number;
11
+ is_activated: boolean;
13
12
  directory: string;
14
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.4.92",
3
+ "version": "1.4.94",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,5 +21,5 @@
21
21
  "ts-node": "^8.10.2",
22
22
  "typescript": "^4.9.4"
23
23
  },
24
- "gitHead": "41a9b7e54ca71a2675a6a5cc406a763da8a3954f"
24
+ "gitHead": "98feb972f12ff9b062608702f236cd95c9c1ae6e"
25
25
  }
package/server.ts CHANGED
@@ -24,10 +24,6 @@ const serverSchema = new Schema(
24
24
  default: SERVER_STATUS.Active,
25
25
  },
26
26
  default: Boolean,
27
- private_key: {
28
- required: true,
29
- type: String
30
- }
31
27
  },
32
28
  { timestamps: true },
33
29
  );
package/tenancy.ts CHANGED
@@ -25,8 +25,10 @@ const tenancySchema = new Schema(
25
25
  type: String,
26
26
  required: true
27
27
  },
28
- storage_size: Number,
29
- memory: Number
28
+ is_activated: {
29
+ type: Boolean,
30
+ default: false
31
+ },
30
32
  },
31
33
  { timestamps: true },
32
34
  );
package/types/server.ts CHANGED
@@ -12,9 +12,5 @@ export interface IServer extends Document {
12
12
 
13
13
  status: SERVER_STATUS;
14
14
 
15
- private_key: string;
16
-
17
15
  default: boolean;
18
-
19
- directory: string;
20
16
  }
package/types/tenancy.ts CHANGED
@@ -14,9 +14,7 @@ export interface ITenancy extends Document {
14
14
 
15
15
  password: string;
16
16
 
17
- memory: number;
18
-
19
- storage: number;
17
+ is_activated: boolean;
20
18
 
21
19
  directory: string;
22
20
  }