@brimble/models 1.8.2 → 1.8.3

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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const mongoose_1 = require("mongoose");
4
4
  const enum_1 = require("./enum");
5
- const subscriptionPlanSchema = new mongoose_1.Schema({
5
+ const subscriptionSchema = new mongoose_1.Schema({
6
6
  team_id: {
7
7
  type: mongoose_1.Schema.Types.ObjectId,
8
8
  ref: "Team",
@@ -52,4 +52,4 @@ const subscriptionPlanSchema = new mongoose_1.Schema({
52
52
  timestamps: true,
53
53
  collection: "subscriptions",
54
54
  });
55
- exports.default = (0, mongoose_1.model)("Subscription", subscriptionPlanSchema);
55
+ exports.default = (0, mongoose_1.model)("Subscription", subscriptionSchema);
@@ -10,6 +10,6 @@ export interface IMember extends Document {
10
10
  invitedBy: IUser;
11
11
  email: string;
12
12
  permissions: IMemberPermission[];
13
- createdAt: any;
14
- updatedAt: any;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/subscription.ts CHANGED
@@ -2,7 +2,7 @@ import { model, Schema } from "mongoose";
2
2
  import {SUBSCRIPTION_PLAN_TYPE, SUBSCRIPTION_STATUS} from "./enum";
3
3
  import { ISubscription } from "./types";
4
4
 
5
- const subscriptionPlanSchema: Schema = new Schema(
5
+ const subscriptionSchema: Schema = new Schema(
6
6
  {
7
7
  team_id: {
8
8
  type: Schema.Types.ObjectId,
@@ -56,4 +56,4 @@ const subscriptionPlanSchema: Schema = new Schema(
56
56
  },
57
57
  );
58
58
 
59
- export default model<ISubscription>("Subscription", subscriptionPlanSchema);
59
+ export default model<ISubscription>("Subscription", subscriptionSchema);
package/types/member.ts CHANGED
@@ -11,6 +11,6 @@ export interface IMember extends Document {
11
11
  invitedBy: IUser;
12
12
  email: string;
13
13
  permissions: IMemberPermission[];
14
- createdAt: any;
15
- updatedAt: any;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
16
  }