@aneuhold/core-ts-db-lib 1.0.3 → 1.0.4

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.
@@ -7,7 +7,7 @@ import BaseDocument from '../BaseDocument';
7
7
  export default class ApiKey implements BaseDocument {
8
8
  _id: ObjectId;
9
9
  /**
10
- * The API key for the user.
10
+ * The API key for the user. This is indexed in the DB.
11
11
  */
12
12
  key: `${string}-${string}-${string}-${string}-${string}`;
13
13
  /**
@@ -12,7 +12,7 @@ const crypto_1 = __importDefault(require("crypto"));
12
12
  class ApiKey {
13
13
  _id = new bson_1.ObjectId();
14
14
  /**
15
- * The API key for the user.
15
+ * The API key for the user. This is indexed in the DB.
16
16
  */
17
17
  key = crypto_1.default.randomUUID();
18
18
  /**
@@ -13,6 +13,9 @@ export default class User implements BaseDocument {
13
13
  auth: {
14
14
  googleId?: string;
15
15
  };
16
+ projectAccess: {
17
+ dashboard: boolean;
18
+ };
16
19
  /**
17
20
  * Constructs a new {@link User} with default values.
18
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/documents/common/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,YAAW,YAAY;IAC/C,GAAG,WAAkB;IAErB,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,EAAE;QACJ,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAM;IAEP;;OAEG;gBACS,QAAQ,EAAE,MAAM;CAG7B"}
1
+ {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/documents/common/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,YAAW,YAAY;IAC/C,GAAG,WAAkB;IAErB,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,EAAE;QACJ,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAM;IAEP,aAAa;;MAEX;IAEF;;OAEG;gBACS,QAAQ,EAAE,MAAM;CAG7B"}
@@ -12,6 +12,9 @@ class User {
12
12
  password;
13
13
  email;
14
14
  auth = {};
15
+ projectAccess = {
16
+ dashboard: true
17
+ };
15
18
  /**
16
19
  * Constructs a new {@link User} with default values.
17
20
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aneuhold/core-ts-db-lib",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A core database library used for personal projects",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "link:local": "cd lib && yarn link",
29
29
  "unlink:local": "cd lib && yarn unlink",
30
30
  "upgrade:all": "yarn upgrade --latest",
31
- "upgrade:core": "yarn upgrade --latest @aneuhold",
31
+ "upgrade:core": "yarn upgrade --latest --pattern @aneuhold",
32
32
  "test": "jest"
33
33
  },
34
34
  "dependencies": {