@brimble/models 2.2.2 → 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 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 "./liscense";
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 liscense_1 = require("./liscense");
60
- Object.defineProperty(exports, "Liscense", { enumerable: true, get: function () { return __importDefault(liscense_1).default; } });
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/liscense";
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>;
@@ -37,6 +37,7 @@ const licenseSchema = new mongoose_1.Schema({
37
37
  enum: Object.values(enum_1.LicenseStatus),
38
38
  default: enum_1.LicenseStatus.ACTIVE
39
39
  },
40
+ tag: String,
40
41
  devices: [{
41
42
  deviceId: {
42
43
  type: String,
@@ -21,4 +21,4 @@ export { IMemberPermission } from "./member-permission";
21
21
  export { IWallet } from "./wallet";
22
22
  export { IDbImage } from "./db-image";
23
23
  export { IJob } from "./job";
24
- export { ILicense } from "./liscense";
24
+ export { ILicense } from "./license";
@@ -1,17 +1,17 @@
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;
12
12
  hostname: string;
13
+ lastSeen: Date;
13
14
  isActive: boolean;
14
15
  }>;
15
16
  maxDevices: number;
16
17
  }
17
-
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 "./liscense"
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/liscense";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types/index.ts CHANGED
@@ -21,4 +21,4 @@ export { IMemberPermission } from "./member-permission";
21
21
  export { IWallet } from "./wallet";
22
22
  export { IDbImage } from "./db-image";
23
23
  export { IJob } from "./job";
24
- export { ILicense } from "./liscense"
24
+ export { ILicense } from "./license"
@@ -1,15 +1,19 @@
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;
11
13
  hostname: string;
14
+ lastSeen: Date;
12
15
  isActive: boolean;
13
16
  }>;
14
17
  maxDevices: number;
15
18
  }
19
+
File without changes