@brimble/models 1.4.56 → 1.4.60

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,21 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const mongoose_1 = require("mongoose");
4
- const installedIntegrationSchema = new mongoose_1.Schema({
4
+ const installedIntegrationSchema = new mongoose_1.Schema(
5
+ {
5
6
  user_id: {
6
- type: mongoose_1.Schema.Types.ObjectId,
7
- ref: "User",
8
- default: null,
9
- required: false,
7
+ type: mongoose_1.Schema.Types.ObjectId,
8
+ ref: "User",
9
+ default: null,
10
+ required: false,
10
11
  },
11
12
  integration_id: {
12
- type: mongoose_1.Schema.Types.ObjectId,
13
- ref: "Integration",
14
- required: true,
13
+ type: mongoose_1.Schema.Types.ObjectId,
14
+ ref: "Integration",
15
+ required: true,
15
16
  },
16
17
  enabled: {
17
- type: Boolean,
18
- default: true,
18
+ type: Boolean,
19
+ default: true,
19
20
  },
20
- }, { timestamps: true });
21
- exports.default = (0, mongoose_1.model)("InstalledIntegration", installedIntegrationSchema);
21
+ },
22
+ { timestamps: true },
23
+ );
24
+ exports.default = mongoose_1.model(
25
+ "InstalledIntegration",
26
+ installedIntegrationSchema,
27
+ );
package/dist/logs.d.ts CHANGED
File without changes
package/dist/logs.js CHANGED
File without changes
@@ -1,4 +1,4 @@
1
1
  /// <reference types="mongoose" />
2
- import { ISubscriptionPlan } from "./types/subscription_plan";
2
+ import { ISubscriptionPlan } from "./types";
3
3
  declare const _default: import("mongoose").Model<ISubscriptionPlan, {}, {}>;
4
4
  export default _default;
@@ -26,7 +26,7 @@ const subscriptionPlanSchema = new mongoose_1.Schema({
26
26
  specifications: {
27
27
  type: Object,
28
28
  default: {},
29
- select: false,
29
+ select: true
30
30
  },
31
31
  amount: Number,
32
32
  debit_date: String,
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.4.56",
3
+ "version": "1.4.60",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,5 +21,5 @@
21
21
  "ts-node": "^8.10.2",
22
22
  "typescript": "^4.9.4"
23
23
  },
24
- "gitHead": "b9e9d22d99223c2becf8438995dd8ead0975f707"
24
+ "gitHead": "f03aab4b2564fd7a402ffd085b88363a24741859"
25
25
  }
@@ -1,6 +1,6 @@
1
1
  import { model, Schema } from "mongoose";
2
2
  import {SUBSCRIPTION_STATUS} from "./enum";
3
- import {ISubscriptionPlan} from "./types/subscription_plan";
3
+ import {ISubscriptionPlan} from "./types";
4
4
 
5
5
  const subscriptionPlanSchema: Schema = new Schema({
6
6
  team_id: {
@@ -26,7 +26,7 @@ const subscriptionPlanSchema: Schema = new Schema({
26
26
  specifications: {
27
27
  type: Object,
28
28
  default: {},
29
- select: false,
29
+ select: true
30
30
  },
31
31
  amount: Number,
32
32
  debit_date: String,