@brimble/models 1.5.30 → 1.5.32
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/LICENSE +201 -0
- package/dist/domain/index.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -3
- package/dist/project/index.js +1 -5
- package/dist/types/domain/index.d.ts +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/project/index.d.ts +1 -2
- package/dist/types/team.d.ts +1 -2
- package/dist/types/user.d.ts +2 -3
- package/dist/user.js +1 -1
- package/domain/index.ts +1 -1
- package/index.ts +0 -3
- package/package.json +3 -3
- package/project/index.ts +1 -5
- package/types/domain/index.ts +1 -1
- package/types/index.ts +0 -1
- package/types/project/index.ts +2 -3
- package/types/team.ts +1 -2
- package/types/user.ts +3 -4
- package/user.ts +1 -1
- package/yarn-error.log +8880 -0
- package/brimble.json +0 -3
- package/dist/tenancy.d.ts +0 -4
- package/dist/tenancy.js +0 -32
- package/dist/types/tenancy.d.ts +0 -13
- package/dist/types/tenancy.js +0 -2
- package/tenancy.ts +0 -36
- package/types/tenancy.ts +0 -20
package/brimble.json
DELETED
package/dist/tenancy.d.ts
DELETED
package/dist/tenancy.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const tenancySchema = new mongoose_1.Schema({
|
|
5
|
-
user: {
|
|
6
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
-
ref: "User",
|
|
8
|
-
required: true,
|
|
9
|
-
},
|
|
10
|
-
team: {
|
|
11
|
-
ref: "Team",
|
|
12
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
13
|
-
},
|
|
14
|
-
server: {
|
|
15
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
16
|
-
ref: "Server",
|
|
17
|
-
required: true,
|
|
18
|
-
},
|
|
19
|
-
username: {
|
|
20
|
-
type: String,
|
|
21
|
-
required: true,
|
|
22
|
-
},
|
|
23
|
-
password: {
|
|
24
|
-
type: String,
|
|
25
|
-
required: true,
|
|
26
|
-
},
|
|
27
|
-
is_activated: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: false,
|
|
30
|
-
},
|
|
31
|
-
}, { timestamps: true });
|
|
32
|
-
exports.default = (0, mongoose_1.model)("Tenancy", tenancySchema);
|
package/dist/types/tenancy.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IServer } from "./server";
|
|
3
|
-
import { ITeam } from "./team";
|
|
4
|
-
import { IUser } from "./user";
|
|
5
|
-
export interface ITenancy extends Document {
|
|
6
|
-
user: IUser;
|
|
7
|
-
team: ITeam;
|
|
8
|
-
server: IServer;
|
|
9
|
-
username: string;
|
|
10
|
-
password: string;
|
|
11
|
-
is_activated: boolean;
|
|
12
|
-
directory: string;
|
|
13
|
-
}
|
package/dist/types/tenancy.js
DELETED
package/tenancy.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { ITenancy } from "./types";
|
|
3
|
-
|
|
4
|
-
const tenancySchema = new Schema(
|
|
5
|
-
{
|
|
6
|
-
user: {
|
|
7
|
-
type: Schema.Types.ObjectId,
|
|
8
|
-
ref: "User",
|
|
9
|
-
required: true,
|
|
10
|
-
},
|
|
11
|
-
team: {
|
|
12
|
-
ref: "Team",
|
|
13
|
-
type: Schema.Types.ObjectId,
|
|
14
|
-
},
|
|
15
|
-
server: {
|
|
16
|
-
type: Schema.Types.ObjectId,
|
|
17
|
-
ref: "Server",
|
|
18
|
-
required: true,
|
|
19
|
-
},
|
|
20
|
-
username: {
|
|
21
|
-
type: String,
|
|
22
|
-
required: true,
|
|
23
|
-
},
|
|
24
|
-
password: {
|
|
25
|
-
type: String,
|
|
26
|
-
required: true,
|
|
27
|
-
},
|
|
28
|
-
is_activated: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: false,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
{ timestamps: true },
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
export default model<ITenancy>("Tenancy", tenancySchema);
|
package/types/tenancy.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IServer } from "./server";
|
|
3
|
-
import { ITeam } from "./team";
|
|
4
|
-
import { IUser } from "./user";
|
|
5
|
-
|
|
6
|
-
export interface ITenancy extends Document {
|
|
7
|
-
user: IUser;
|
|
8
|
-
|
|
9
|
-
team: ITeam;
|
|
10
|
-
|
|
11
|
-
server: IServer;
|
|
12
|
-
|
|
13
|
-
username: string;
|
|
14
|
-
|
|
15
|
-
password: string;
|
|
16
|
-
|
|
17
|
-
is_activated: boolean;
|
|
18
|
-
|
|
19
|
-
directory: string;
|
|
20
|
-
}
|