@niledatabase/server 3.0.0-alpha.30 → 3.0.0-alpha.32
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.
- package/dist/index.d.ts +3 -0
- package/dist/server.cjs.development.js +8 -0
- package/dist/server.cjs.development.js.map +1 -1
- package/dist/server.cjs.production.min.js +1 -1
- package/dist/server.cjs.production.min.js.map +1 -1
- package/dist/server.esm.js +8 -1
- package/dist/server.esm.js.map +1 -1
- package/dist/tenants/index.d.ts +1 -4
- package/dist/tenants/types.d.ts +4 -0
- package/dist/users/index.d.ts +1 -35
- package/dist/users/types.d.ts +35 -0
- package/package.json +2 -2
package/dist/tenants/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { Config } from '../utils/Config';
|
|
2
2
|
import { NileRequest } from '../utils/Requester';
|
|
3
|
-
|
|
4
|
-
id: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
}
|
|
3
|
+
import { Tenant } from './types';
|
|
7
4
|
export default class Tenants extends Config {
|
|
8
5
|
headers?: Headers;
|
|
9
6
|
constructor(config: Config, headers?: Headers);
|
package/dist/users/index.d.ts
CHANGED
|
@@ -1,40 +1,6 @@
|
|
|
1
1
|
import { Config } from '../utils/Config';
|
|
2
2
|
import { NileRequest } from '../utils/Requester';
|
|
3
|
-
|
|
4
|
-
email: string;
|
|
5
|
-
password: string;
|
|
6
|
-
preferredName?: string;
|
|
7
|
-
newTenant?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const LoginUserResponseTokenTypeEnum: {
|
|
10
|
-
readonly AccessToken: "ACCESS_TOKEN";
|
|
11
|
-
readonly RefreshToken: "REFRESH_TOKEN";
|
|
12
|
-
readonly IdToken: "ID_TOKEN";
|
|
13
|
-
};
|
|
14
|
-
export type LoginUserResponseTokenTypeEnum = (typeof LoginUserResponseTokenTypeEnum)[keyof typeof LoginUserResponseTokenTypeEnum];
|
|
15
|
-
export interface LoginUserResponseToken {
|
|
16
|
-
jwt: string;
|
|
17
|
-
maxAge: number;
|
|
18
|
-
type: LoginUserResponseTokenTypeEnum;
|
|
19
|
-
}
|
|
20
|
-
export interface LoginUserResponse {
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
id: string;
|
|
23
|
-
token: LoginUserResponseToken;
|
|
24
|
-
}
|
|
25
|
-
export interface User {
|
|
26
|
-
id: string;
|
|
27
|
-
email: string;
|
|
28
|
-
name: string | null;
|
|
29
|
-
familyName: string | null;
|
|
30
|
-
givenName: string | null;
|
|
31
|
-
picture: string | null;
|
|
32
|
-
created: string;
|
|
33
|
-
updated: string;
|
|
34
|
-
tenants: {
|
|
35
|
-
id: string;
|
|
36
|
-
}[];
|
|
37
|
-
}
|
|
3
|
+
import { CreateBasicUserRequest, User } from './types';
|
|
38
4
|
export default class Users extends Config {
|
|
39
5
|
headers?: Headers;
|
|
40
6
|
constructor(config: Config, headers?: Headers);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface CreateBasicUserRequest {
|
|
2
|
+
email: string;
|
|
3
|
+
password: string;
|
|
4
|
+
preferredName?: string;
|
|
5
|
+
newTenant?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const LoginUserResponseTokenTypeEnum: {
|
|
8
|
+
readonly AccessToken: "ACCESS_TOKEN";
|
|
9
|
+
readonly RefreshToken: "REFRESH_TOKEN";
|
|
10
|
+
readonly IdToken: "ID_TOKEN";
|
|
11
|
+
};
|
|
12
|
+
export type LoginUserResponseTokenTypeEnum = (typeof LoginUserResponseTokenTypeEnum)[keyof typeof LoginUserResponseTokenTypeEnum];
|
|
13
|
+
export interface LoginUserResponseToken {
|
|
14
|
+
jwt: string;
|
|
15
|
+
maxAge: number;
|
|
16
|
+
type: LoginUserResponseTokenTypeEnum;
|
|
17
|
+
}
|
|
18
|
+
export interface LoginUserResponse {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
id: string;
|
|
21
|
+
token: LoginUserResponseToken;
|
|
22
|
+
}
|
|
23
|
+
export interface User {
|
|
24
|
+
id: string;
|
|
25
|
+
email: string;
|
|
26
|
+
name: string | null;
|
|
27
|
+
familyName: string | null;
|
|
28
|
+
givenName: string | null;
|
|
29
|
+
picture: string | null;
|
|
30
|
+
created: string;
|
|
31
|
+
updated: string;
|
|
32
|
+
tenants: {
|
|
33
|
+
id: string;
|
|
34
|
+
}[];
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@niledatabase/server",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.32",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/server.esm.js",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"jose": "^4.15.4",
|
|
75
75
|
"pg": "^8.11.3"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "3b38ee7982b68972cbacef9be0b8aec55d633dba"
|
|
78
78
|
}
|