@brimble/models 1.4.91 → 1.4.92

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 +1,3 @@
1
+ yarn run v1.22.19
1
2
  $ tsc -p .
3
+ Done in 1.92s.
@@ -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
File without changes
File without changes
@@ -6,6 +6,7 @@ export interface ISubscription extends Document {
6
6
  plan_code: string;
7
7
  status: SUBSCRIPTION_STATUS;
8
8
  amount: number;
9
+ transaction_retries: number;
9
10
  debit_date: string;
10
11
  start_date: string;
11
12
  expiry_date: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "1.4.91",
3
+ "version": "1.4.92",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@brimble/utils": "^1.5.13",
12
+ "@brimble/utils": "^1.5.14",
13
13
  "dotenv": "^8.2.0",
14
14
  "mongoose": "^5.8.11",
15
15
  "uuid": "^8.3.2"
@@ -21,5 +21,5 @@
21
21
  "ts-node": "^8.10.2",
22
22
  "typescript": "^4.9.4"
23
23
  },
24
- "gitHead": "9c0c4ea58ebffdeef386658cf892ff8c189a7775"
24
+ "gitHead": "41a9b7e54ca71a2675a6a5cc406a763da8a3954f"
25
25
  }
@@ -7,6 +7,7 @@ export interface ISubscription extends Document {
7
7
  plan_code: string;
8
8
  status: SUBSCRIPTION_STATUS;
9
9
  amount: number;
10
+ transaction_retries: number;
10
11
  debit_date: string;
11
12
  start_date: string;
12
13
  expiry_date: string;