@brimble/models 3.3.0 → 3.3.2

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/logs.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const mongoose_1 = require("mongoose");
4
4
  const enum_1 = require("./enum");
5
- // import { SoftDeleteModel, softDeletePlugin } from "soft-delete-plugin-mongoose";
5
+ const soft_delete_plugin_mongoose_1 = require("soft-delete-plugin-mongoose");
6
6
  const LogSchema = new mongoose_1.Schema({
7
7
  name: String,
8
8
  key: String,
@@ -38,5 +38,5 @@ const LogSchema = new mongoose_1.Schema({
38
38
  endTime: mongoose_1.Schema.Types.Date,
39
39
  deleted: mongoose_1.Schema.Types.Boolean,
40
40
  }, { timestamps: true });
41
- // LogSchema.plugin(softDeletePlugin);
41
+ LogSchema.plugin(soft_delete_plugin_mongoose_1.softDeletePlugin);
42
42
  exports.default = (0, mongoose_1.model)("Log", LogSchema);
package/dist/server.js CHANGED
@@ -88,6 +88,10 @@ const serverSchema = new mongoose_1.Schema({
88
88
  default: {},
89
89
  select: true,
90
90
  },
91
+ cert_storage_path: {
92
+ type: String,
93
+ required: false,
94
+ },
91
95
  meta: {
92
96
  type: Object,
93
97
  default: {},
@@ -27,5 +27,6 @@ export interface IServer extends Document {
27
27
  provider_location?: string;
28
28
  provider_identifier?: string;
29
29
  topology_path?: string;
30
+ cert_storage_path?: string | null;
30
31
  meta: Record<any, any>;
31
32
  }
package/logs.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { model, Schema } from "mongoose";
2
2
  import { ENVIRONMENT, PROJECT_STATUS } from "./enum";
3
3
  import { ILog } from "./types";
4
- // import { SoftDeleteModel, softDeletePlugin } from "soft-delete-plugin-mongoose";
4
+ import { softDeletePlugin } from "soft-delete-plugin-mongoose";
5
5
 
6
6
  const LogSchema = new Schema(
7
7
  {
@@ -42,6 +42,6 @@ const LogSchema = new Schema(
42
42
  { timestamps: true },
43
43
  );
44
44
 
45
- // LogSchema.plugin(softDeletePlugin);
45
+ LogSchema.plugin(softDeletePlugin);
46
46
 
47
47
  export default model<ILog>("Log", LogSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/server.ts CHANGED
@@ -89,6 +89,10 @@ const serverSchema = new Schema(
89
89
  default: {},
90
90
  select: true,
91
91
  },
92
+ cert_storage_path: {
93
+ type: String,
94
+ required: false,
95
+ },
92
96
  meta: {
93
97
  type: Object,
94
98
  default: {},
package/types/index.ts CHANGED
@@ -30,4 +30,4 @@ export { IRegion } from "./region";
30
30
  export { IVolume } from "./volume";
31
31
  export { IFramework, BrimbleFrameworkType } from "./framework";
32
32
  export { ISettings } from "./settings";
33
- export { ILoadBalancerPort } from "./load-balancer-port";
33
+ export { ILoadBalancerPort } from "./load-balancer-port";
package/types/server.ts CHANGED
@@ -53,5 +53,7 @@ export interface IServer extends Document {
53
53
 
54
54
  topology_path?: string;
55
55
 
56
+ cert_storage_path?: string | null;
57
+
56
58
  meta: Record<any, any>;
57
59
  }
@@ -1 +0,0 @@
1
- $ rm -rf dist && tsc -p .