@brimble/models 2.2.3 → 2.2.4
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/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{liscense.d.ts → license.d.ts} +1 -1
- package/dist/{liscense.js → license.js} +1 -0
- package/dist/types/index.d.ts +1 -1
- package/{types/liscense.ts → dist/types/license.d.ts} +1 -2
- package/index.ts +1 -1
- package/{liscense.ts → license.ts} +2 -1
- package/package.json +1 -1
- package/types/index.ts +1 -1
- package/{dist/types/liscense.d.ts → types/license.ts} +3 -0
- /package/dist/types/{liscense.js → license.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { default as Server } from "./server";
|
|
|
19
19
|
export { default as Wallet } from "./wallet";
|
|
20
20
|
export { default as DbImage } from "./db-image";
|
|
21
21
|
export { default as Job } from "./job";
|
|
22
|
-
export { default as Liscense } from "./
|
|
22
|
+
export { default as Liscense } from "./license";
|
|
23
23
|
export { IUser, IGit, IProject, IPreview, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IDns, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IJob, ILicense } from "./types";
|
|
24
24
|
export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, DatabaseEngine, JobStatus, LicenseStatus } from "./enum";
|
|
25
25
|
import mongoose from "mongoose";
|
package/dist/index.js
CHANGED
|
@@ -56,8 +56,8 @@ var db_image_1 = require("./db-image");
|
|
|
56
56
|
Object.defineProperty(exports, "DbImage", { enumerable: true, get: function () { return __importDefault(db_image_1).default; } });
|
|
57
57
|
var job_1 = require("./job");
|
|
58
58
|
Object.defineProperty(exports, "Job", { enumerable: true, get: function () { return __importDefault(job_1).default; } });
|
|
59
|
-
var
|
|
60
|
-
Object.defineProperty(exports, "Liscense", { enumerable: true, get: function () { return __importDefault(
|
|
59
|
+
var license_1 = require("./license");
|
|
60
|
+
Object.defineProperty(exports, "Liscense", { enumerable: true, get: function () { return __importDefault(license_1).default; } });
|
|
61
61
|
var enum_1 = require("./enum");
|
|
62
62
|
Object.defineProperty(exports, "GIT_TYPE", { enumerable: true, get: function () { return enum_1.GIT_TYPE; } });
|
|
63
63
|
Object.defineProperty(exports, "INTEGRATION_TYPES", { enumerable: true, get: function () { return enum_1.INTEGRATION_TYPES; } });
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
/// <reference types="mongoose/types/inferschematype" />
|
|
50
50
|
/// <reference types="mongoose-delete/node_modules/mongoose/types/inferschematype" />
|
|
51
51
|
/// <reference types="mongoose-delete/node_modules/mongoose/types/inferrawdoctype" />
|
|
52
|
-
import { ILicense } from "./types/
|
|
52
|
+
import { ILicense } from "./types/license";
|
|
53
53
|
declare const _default: import("mongoose").Model<ILicense, {}, {}, {}, import("mongoose").Document<unknown, {}, ILicense> & ILicense & {
|
|
54
54
|
_id: import("mongoose").Types.ObjectId;
|
|
55
55
|
}, any>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import mongoose, { Document } from "mongoose";
|
|
2
2
|
import { LicenseStatus } from "../enum";
|
|
3
|
-
|
|
4
3
|
export interface ILicense extends Document {
|
|
5
4
|
licenseKey: string;
|
|
6
5
|
userId: mongoose.Types.ObjectId;
|
|
7
6
|
teamId: mongoose.Types.ObjectId;
|
|
8
7
|
status: LicenseStatus;
|
|
8
|
+
tag: string;
|
|
9
9
|
subscriptionId: mongoose.Types.ObjectId;
|
|
10
10
|
devices: Array<{
|
|
11
11
|
deviceId: string;
|
|
@@ -15,4 +15,3 @@ export interface ILicense extends Document {
|
|
|
15
15
|
}>;
|
|
16
16
|
maxDevices: number;
|
|
17
17
|
}
|
|
18
|
-
|
package/index.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { default as Server } from "./server";
|
|
|
19
19
|
export { default as Wallet } from "./wallet";
|
|
20
20
|
export { default as DbImage } from "./db-image";
|
|
21
21
|
export { default as Job } from "./job";
|
|
22
|
-
export { default as Liscense } from "./
|
|
22
|
+
export { default as Liscense } from "./license"
|
|
23
23
|
|
|
24
24
|
export {
|
|
25
25
|
IUser,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { model, Schema } from "mongoose";
|
|
2
|
-
import { ILicense } from "./types/
|
|
2
|
+
import { ILicense } from "./types/license";
|
|
3
3
|
import { LicenseStatus } from "./enum";
|
|
4
4
|
|
|
5
5
|
const licenseSchema: Schema = new Schema({
|
|
@@ -28,6 +28,7 @@ const licenseSchema: Schema = new Schema({
|
|
|
28
28
|
enum: Object.values(LicenseStatus),
|
|
29
29
|
default: LicenseStatus.ACTIVE
|
|
30
30
|
},
|
|
31
|
+
tag: String,
|
|
31
32
|
devices: [{
|
|
32
33
|
deviceId: {
|
|
33
34
|
type: String,
|
package/package.json
CHANGED
package/types/index.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import mongoose, { Document } from "mongoose";
|
|
2
2
|
import { LicenseStatus } from "../enum";
|
|
3
|
+
|
|
3
4
|
export interface ILicense extends Document {
|
|
4
5
|
licenseKey: string;
|
|
5
6
|
userId: mongoose.Types.ObjectId;
|
|
6
7
|
teamId: mongoose.Types.ObjectId;
|
|
7
8
|
status: LicenseStatus;
|
|
9
|
+
tag: string;
|
|
8
10
|
subscriptionId: mongoose.Types.ObjectId;
|
|
9
11
|
devices: Array<{
|
|
10
12
|
deviceId: string;
|
|
@@ -14,3 +16,4 @@ export interface ILicense extends Document {
|
|
|
14
16
|
}>;
|
|
15
17
|
maxDevices: number;
|
|
16
18
|
}
|
|
19
|
+
|
|
File without changes
|