my-typescript-library-rahul52us 2.1.3 → 2.1.5

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.
@@ -26,13 +26,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  const mongoose_1 = __importStar(require("mongoose"));
27
27
  ;
28
28
  const TokensSchema = new mongoose_1.default.Schema({
29
- userId: {
29
+ user_id: {
30
30
  type: mongoose_1.Schema.Types.ObjectId,
31
31
  required: true
32
32
  },
33
33
  type: {
34
34
  type: String
35
35
  },
36
+ is_active: {
37
+ type: Boolean,
38
+ default: false
39
+ },
36
40
  company: {
37
41
  type: mongoose_1.Schema.Types.ObjectId
38
42
  },
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.schema.js","sourceRoot":"","sources":["../../../src/repository/schemas/tokens.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAsD;AAOrD,CAAC;AAEF,MAAM,YAAY,GAAW,IAAI,kBAAQ,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,QAAQ,EAAE,IAAI;KACjB;IACD,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;KACf;IACD,OAAO,EAAG;QACN,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;KAC9B;IACD,UAAU,EAAC;QACP,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,IAAI,CAAC,GAAG;KACpB;CAEJ,CAAC,CAAA;AAEF,wDAAwD;AACxD,IAAI,UAAU,GAAS,IAAI,CAAC;AAE5B,IAAI,kBAAQ,CAAC,MAAM,CAAC,KAAK,EAAE;IACzB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAC3C,UAAU,GAAG,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC;CACpC;KAAM;IACL,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAC9C,UAAU,GAAG,kBAAQ,CAAC,KAAK,CAAW,OAAO,EAAE,YAAY,CAAC,CAAC;CAC9D;AAED,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"tokens.schema.js","sourceRoot":"","sources":["../../../src/repository/schemas/tokens.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAsD;AAOrD,CAAC;AAEF,MAAM,YAAY,GAAW,IAAI,kBAAQ,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE;QACL,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,QAAQ,EAAE,IAAI;KACjB;IACD,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;KACf;IACD,SAAS,EAAG;QACR,IAAI,EAAG,OAAO;QACd,OAAO,EAAG,KAAK;KAClB;IACD,OAAO,EAAG;QACN,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;KAC9B;IACD,UAAU,EAAC;QACP,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,IAAI,CAAC,GAAG;KACpB;CAEJ,CAAC,CAAA;AAEF,wDAAwD;AACxD,IAAI,UAAU,GAAS,IAAI,CAAC;AAE5B,IAAI,kBAAQ,CAAC,MAAM,CAAC,KAAK,EAAE;IACzB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAC3C,UAAU,GAAG,kBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC;CACpC;KAAM;IACL,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAC9C,UAAU,GAAG,kBAAQ,CAAC,KAAK,CAAW,OAAO,EAAE,YAAY,CAAC,CAAC;CAC9D;AAED,kBAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-typescript-library-rahul52us",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "A reusable TypeScript utility library.",
5
5
  "main": "dist/server.js",
6
6
  "types": "dist/types/server.d.ts",
@@ -1,20 +1,24 @@
1
1
  import mongoose, { Schema, Document } from "mongoose";
2
2
 
3
3
  interface ISession extends Document {
4
- userId: Schema.Types.ObjectId;
4
+ user_id: Schema.Types.ObjectId;
5
5
  type: string;
6
6
  created_at: Date;
7
7
  company:Schema.Types.ObjectId;
8
8
  };
9
9
 
10
10
  const TokensSchema: Schema = new mongoose.Schema({
11
- userId: {
11
+ user_id: {
12
12
  type: Schema.Types.ObjectId,
13
13
  required: true
14
14
  },
15
15
  type: {
16
16
  type: String
17
17
  },
18
+ is_active : {
19
+ type : Boolean,
20
+ default : false
21
+ },
18
22
  company : {
19
23
  type: Schema.Types.ObjectId
20
24
  },