@osaas/types 0.2.1 → 0.4.0

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.
@@ -44,6 +44,11 @@ export declare const UserSchema: Schema<any, import("mongoose").Model<any, any,
44
44
  favoriteServices: string[];
45
45
  lastAccessed?: Date | undefined;
46
46
  emailVerified?: Date | undefined;
47
+ captcha?: string | undefined;
48
+ firstName?: string | undefined;
49
+ lastName?: string | undefined;
50
+ jobTitle?: string | undefined;
51
+ industry?: string | undefined;
47
52
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
48
53
  paypal: {
49
54
  payerId?: string | undefined;
@@ -63,6 +68,11 @@ export declare const UserSchema: Schema<any, import("mongoose").Model<any, any,
63
68
  favoriteServices: string[];
64
69
  lastAccessed?: Date | undefined;
65
70
  emailVerified?: Date | undefined;
71
+ captcha?: string | undefined;
72
+ firstName?: string | undefined;
73
+ lastName?: string | undefined;
74
+ jobTitle?: string | undefined;
75
+ industry?: string | undefined;
66
76
  }>> & import("mongoose").FlatRecord<{
67
77
  paypal: {
68
78
  payerId?: string | undefined;
@@ -82,6 +92,11 @@ export declare const UserSchema: Schema<any, import("mongoose").Model<any, any,
82
92
  favoriteServices: string[];
83
93
  lastAccessed?: Date | undefined;
84
94
  emailVerified?: Date | undefined;
95
+ captcha?: string | undefined;
96
+ firstName?: string | undefined;
97
+ lastName?: string | undefined;
98
+ jobTitle?: string | undefined;
99
+ industry?: string | undefined;
85
100
  }> & {
86
101
  _id: import("mongoose").Types.ObjectId;
87
102
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../src/schema/User.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;AAC9C,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAW1D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CrB,CAAC"}
1
+ {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../src/schema/User.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;AAC9C,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAW1D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmErB,CAAC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
- const SCHEMA_VERSION = 5;
5
+ const SCHEMA_VERSION = 6;
6
6
  const UserRoles = ['osaas-admin', 'user'];
7
7
  const NotificationSchema = new mongoose_1.Schema({
8
8
  message: { type: String, required: true },
@@ -15,6 +15,10 @@ exports.UserSchema = new mongoose_1.Schema({
15
15
  emailVerified: {
16
16
  type: Date
17
17
  },
18
+ captcha: {
19
+ type: String,
20
+ required: false
21
+ },
18
22
  role: {
19
23
  type: String,
20
24
  required: true,
@@ -28,6 +32,22 @@ exports.UserSchema = new mongoose_1.Schema({
28
32
  unique: true
29
33
  }
30
34
  },
35
+ firstName: {
36
+ type: String,
37
+ required: false
38
+ },
39
+ lastName: {
40
+ type: String,
41
+ required: false
42
+ },
43
+ jobTitle: {
44
+ type: String,
45
+ required: false
46
+ },
47
+ industry: {
48
+ type: String,
49
+ required: false
50
+ },
31
51
  paypal: {
32
52
  type: {
33
53
  payerId: { type: String }
@@ -1 +1 @@
1
- {"version":3,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QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC1B;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,GAAG,EAAE,KAAK;KACX;IACD,OAAO,EAAE;QACP;YACE,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YACpD,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC;gBAClC,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,QAAQ;aAClB;YACD,mBAAmB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;SACtD;KACF;IACD,aAAa,EAAE,CAAC,kBAAkB,CAAC;IACnC,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACjE,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,cAAc;KACxB;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osaas/types",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "OSaaS shared types",
5
5
  "author": "Jonas Birmé <jonas.birme@eyevinn.se>",
6
6
  "homepage": "https://github.com/Eyevinn/osaas-lib-util#readme",
@@ -31,5 +31,5 @@
31
31
  "mongoose": "^7.4.3",
32
32
  "nanoid": "^3.0.2"
33
33
  },
34
- "gitHead": "4d94a87cf2a3de9f8c2a20fe15cebac9a29687f0"
34
+ "gitHead": "d466ab7b5b60801a33edc658abc909b7db2ddcdb"
35
35
  }