@brimble/models 1.5.5 → 1.5.7

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,4 +0,0 @@
1
- /// <reference types="mongoose" />
2
- import { IActivity } from "./types";
3
- declare const _default: import("mongoose").Model<IActivity, {}, {}>;
4
- export default _default;
package/dist/activity.js DELETED
@@ -1,25 +0,0 @@
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,4 +0,0 @@
1
- /// <reference types="mongoose" />
2
- import { IInvitation } from "./types";
3
- declare const _default: import("mongoose").Model<IInvitation, {}, {}>;
4
- export default _default;
@@ -1,24 +0,0 @@
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);
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { ITeam } from "./team";
2
- import { IUser } from "./user";
3
- export interface IInvitation extends Document {
4
- email: string;
5
- team: ITeam;
6
- accepted: boolean;
7
- invitedBy: IUser;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });