@brimble/models 1.4.88 → 1.4.89
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 -2
- package/brimble.json +3 -0
- package/dist/activity.d.ts +4 -0
- package/dist/activity.js +25 -0
- package/dist/installed_integration.js +12 -18
- package/dist/invitation.d.ts +4 -0
- package/dist/invitation.js +24 -0
- package/dist/logs.d.ts +0 -0
- package/dist/logs.js +0 -0
- package/dist/types/activity.d.ts +10 -0
- package/dist/types/activity.js +2 -0
- package/dist/types/invitation.d.ts +8 -0
- package/dist/types/invitation.js +2 -0
- package/dist/types/logs.d.ts +0 -0
- package/dist/types/logs.js +0 -0
- package/package.json +3 -3
- package/yarn-error.log +3546 -2678
package/.turbo/turbo-build.log
CHANGED
package/brimble.json
ADDED
package/dist/activity.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const enum_1 = require("./enum");
|
|
5
|
+
const activitySchema = new mongoose_1.Schema({
|
|
6
|
+
type: {
|
|
7
|
+
type: String,
|
|
8
|
+
enum: Object.values(enum_1.ACTIVITY_TYPE),
|
|
9
|
+
required: true,
|
|
10
|
+
},
|
|
11
|
+
authUser: {
|
|
12
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
13
|
+
ref: "User",
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
project: {
|
|
17
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
18
|
+
ref: "Project",
|
|
19
|
+
},
|
|
20
|
+
user: {
|
|
21
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
22
|
+
ref: "User",
|
|
23
|
+
},
|
|
24
|
+
}, { timestamps: true });
|
|
25
|
+
exports.default = mongoose_1.model("Activity", activitySchema);
|
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
|
-
const installedIntegrationSchema = new mongoose_1.Schema(
|
|
5
|
-
{
|
|
4
|
+
const installedIntegrationSchema = new mongoose_1.Schema({
|
|
6
5
|
user_id: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "User",
|
|
8
|
+
default: null,
|
|
9
|
+
required: false,
|
|
11
10
|
},
|
|
12
11
|
integration_id: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
13
|
+
ref: "Integration",
|
|
14
|
+
required: true,
|
|
16
15
|
},
|
|
17
16
|
enabled: {
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: true,
|
|
20
19
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
);
|
|
24
|
-
exports.default = mongoose_1.model(
|
|
25
|
-
"InstalledIntegration",
|
|
26
|
-
installedIntegrationSchema,
|
|
27
|
-
);
|
|
20
|
+
}, { timestamps: true });
|
|
21
|
+
exports.default = (0, mongoose_1.model)("InstalledIntegration", installedIntegrationSchema);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const invitationSchema = new mongoose_1.Schema({
|
|
5
|
+
email: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
team: {
|
|
10
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
11
|
+
ref: "Team",
|
|
12
|
+
},
|
|
13
|
+
accepted: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false,
|
|
16
|
+
},
|
|
17
|
+
invitedBy: {
|
|
18
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
19
|
+
ref: "User",
|
|
20
|
+
},
|
|
21
|
+
}, {
|
|
22
|
+
timestamps: true,
|
|
23
|
+
});
|
|
24
|
+
exports.default = mongoose_1.model("Invitation", invitationSchema);
|
package/dist/logs.d.ts
CHANGED
|
File without changes
|
package/dist/logs.js
CHANGED
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
|
+
import { ACTIVITY_TYPE } from "../enum";
|
|
3
|
+
import { IProject } from "./project";
|
|
4
|
+
import { IUser } from "./user";
|
|
5
|
+
export interface IActivity extends Document {
|
|
6
|
+
type: ACTIVITY_TYPE;
|
|
7
|
+
project: IProject;
|
|
8
|
+
user: IUser;
|
|
9
|
+
authUser: IUser;
|
|
10
|
+
}
|
package/dist/types/logs.d.ts
CHANGED
|
File without changes
|
package/dist/types/logs.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brimble/models",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.89",
|
|
4
4
|
"description": "Brimble models",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@brimble/utils": "^1.5.
|
|
12
|
+
"@brimble/utils": "^1.5.11",
|
|
13
13
|
"dotenv": "^8.2.0",
|
|
14
14
|
"mongoose": "^5.8.11",
|
|
15
15
|
"uuid": "^8.3.2"
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"ts-node": "^8.10.2",
|
|
22
22
|
"typescript": "^4.9.4"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "21b7f00dfe504e262ca156fe04fb94e19fcbae5d"
|
|
25
25
|
}
|