@modular-rest/server 1.15.0 → 1.16.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.
@@ -37,7 +37,7 @@ export declare class User {
37
37
  *
38
38
  * @hidden
39
39
  */
40
- constructor(id: string, permissionGroup: string, phone: string, email: string, password: string, type: string, model: any);
40
+ constructor(id: string, permissionGroup: string, phone: string, email: string, password: string, type: 'user' | 'anonymous', model: any);
41
41
  /**
42
42
  * Get brief user information
43
43
  * @returns Brief user info object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modular-rest/server",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "TypeScript version of a nodejs module based on KOAJS for developing Rest-APIs in a modular solution.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/class/user.ts CHANGED
@@ -48,7 +48,7 @@ export class User {
48
48
  phone: string,
49
49
  email: string,
50
50
  password: string,
51
- type: string,
51
+ type: 'user' | 'anonymous',
52
52
  model: any
53
53
  ) {
54
54
  this.id = id;