@brimble/models 1.6.4 → 1.6.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/.turbo/turbo-build.log +0 -0
- package/brimble.json +3 -0
- package/dist/enum/index.d.ts +1 -1
- package/dist/enum/index.js +1 -1
- package/dist/permission.js +0 -1
- package/dist/project/index.js +1 -0
- package/dist/project/preview.js +1 -0
- package/dist/server.js +3 -7
- package/dist/types/permission.d.ts +0 -1
- package/dist/types/project/index.d.ts +1 -0
- package/dist/types/project/preview.d.ts +1 -0
- package/enum/index.ts +1 -1
- package/package.json +1 -1
- package/permission.ts +0 -1
- package/project/index.ts +1 -0
- package/project/preview.ts +1 -0
- package/server.ts +3 -16
- package/types/permission.ts +0 -2
- package/types/project/index.ts +1 -0
- package/types/project/preview.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
File without changes
|
package/brimble.json
ADDED
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -93,6 +93,6 @@ var PERMISSION_TYPE;
|
|
|
93
93
|
PERMISSION_TYPE["DOMAIN"] = "DOMAIN";
|
|
94
94
|
PERMISSION_TYPE["BILLING"] = "BILLING";
|
|
95
95
|
PERMISSION_TYPE["PROJECT"] = "PROJECT";
|
|
96
|
-
PERMISSION_TYPE["
|
|
96
|
+
PERMISSION_TYPE["DNS"] = "DNS";
|
|
97
97
|
PERMISSION_TYPE["USERS"] = "USERS";
|
|
98
98
|
})(PERMISSION_TYPE = exports.PERMISSION_TYPE || (exports.PERMISSION_TYPE = {}));
|
package/dist/permission.js
CHANGED
|
@@ -5,7 +5,6 @@ const enum_1 = require("./enum");
|
|
|
5
5
|
const permissionSchema = new mongoose_1.Schema({
|
|
6
6
|
title: { type: String },
|
|
7
7
|
role: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Role' }],
|
|
8
|
-
route: { type: String, required: true },
|
|
9
8
|
type: { type: String, enum: Object.values(enum_1.PERMISSION_TYPE) }
|
|
10
9
|
});
|
|
11
10
|
exports.default = (0, mongoose_1.model)("Permission", permissionSchema);
|
package/dist/project/index.js
CHANGED
package/dist/project/preview.js
CHANGED
|
@@ -28,5 +28,6 @@ const previewsSchema = new mongoose_1.Schema({
|
|
|
28
28
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
29
29
|
},
|
|
30
30
|
last_requested: mongoose_1.Schema.Types.Date,
|
|
31
|
+
isPaused: Boolean,
|
|
31
32
|
}, { timestamps: true });
|
|
32
33
|
exports.default = (0, mongoose_1.model)("Preview", previewsSchema);
|
package/dist/server.js
CHANGED
|
@@ -4,18 +4,14 @@ const mongoose_1 = require("mongoose");
|
|
|
4
4
|
const enum_1 = require("./enum");
|
|
5
5
|
const serverSchema = new mongoose_1.Schema({
|
|
6
6
|
name: {
|
|
7
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
-
ref: "User",
|
|
9
|
-
required: true,
|
|
10
|
-
},
|
|
11
|
-
url: {
|
|
12
7
|
type: String,
|
|
13
8
|
required: true,
|
|
14
9
|
},
|
|
15
10
|
ip_address: {
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
18
13
|
},
|
|
14
|
+
url: String,
|
|
19
15
|
server_type: String,
|
|
20
16
|
status: {
|
|
21
17
|
type: String,
|
package/enum/index.ts
CHANGED
package/package.json
CHANGED
package/permission.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { PERMISSION_TYPE } from "./enum";
|
|
|
5
5
|
const permissionSchema = new Schema({
|
|
6
6
|
title: { type: String },
|
|
7
7
|
role: [{ type: Schema.Types.ObjectId, ref: 'Role' }],
|
|
8
|
-
route: { type: String, required: true },
|
|
9
8
|
type: { type: String, enum: Object.values(PERMISSION_TYPE) }
|
|
10
9
|
});
|
|
11
10
|
|
package/project/index.ts
CHANGED
package/project/preview.ts
CHANGED
package/server.ts
CHANGED
|
@@ -5,43 +5,30 @@ import { SERVER_STATUS } from "./enum";
|
|
|
5
5
|
const serverSchema = new Schema(
|
|
6
6
|
{
|
|
7
7
|
name: {
|
|
8
|
-
type: Schema.Types.ObjectId,
|
|
9
|
-
ref: "User",
|
|
10
|
-
required: true,
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
url: {
|
|
14
8
|
type: String,
|
|
15
9
|
required: true,
|
|
16
10
|
},
|
|
17
|
-
|
|
18
11
|
ip_address: {
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
type: String,
|
|
13
|
+
required: true,
|
|
21
14
|
},
|
|
22
|
-
|
|
15
|
+
url: String,
|
|
23
16
|
server_type: String,
|
|
24
|
-
|
|
25
17
|
status: {
|
|
26
18
|
type: String,
|
|
27
19
|
enum: Object.values(SERVER_STATUS),
|
|
28
20
|
default: SERVER_STATUS.Active,
|
|
29
21
|
},
|
|
30
|
-
|
|
31
22
|
default: Boolean,
|
|
32
|
-
|
|
33
23
|
is_custom_provision: {
|
|
34
24
|
type: Boolean,
|
|
35
25
|
default: true,
|
|
36
26
|
},
|
|
37
|
-
|
|
38
27
|
is_downscaled: {
|
|
39
28
|
type: Boolean,
|
|
40
29
|
default: false,
|
|
41
30
|
},
|
|
42
|
-
|
|
43
31
|
region: String,
|
|
44
|
-
|
|
45
32
|
tag: String,
|
|
46
33
|
},
|
|
47
34
|
{ timestamps: true },
|
package/types/permission.ts
CHANGED
package/types/project/index.ts
CHANGED