gopadjs 2.4.1 → 2.6.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.
- package/.github/RELEASE +1 -1
- package/.github/renovate.json +1 -1
- package/.openapi-generator/FILES +18 -10
- package/CHANGELOG.md +26 -0
- package/README.md +2 -2
- package/api/auth-api.ts +179 -114
- package/api/{team-api.ts → group-api.ts} +466 -472
- package/api/profile-api.ts +33 -18
- package/api/user-api.ts +220 -236
- package/api.ts +1 -1
- package/flake.lock +6 -6
- package/model/create-group-request.ts +33 -0
- package/model/create-user-request.ts +57 -0
- package/model/delete-group-from-user-request.ts +27 -0
- package/model/delete-user-from-group-request.ts +27 -0
- package/model/{team.ts → group.ts} +8 -18
- package/model/index.ts +17 -9
- package/model/list-group-users200-response.ts +58 -0
- package/model/{team-users.ts → list-groups200-response.ts} +18 -15
- package/model/{teams.ts → list-providers200-response.ts} +9 -9
- package/model/{user-teams.ts → list-user-groups200-response.ts} +24 -12
- package/model/{users.ts → list-users200-response.ts} +19 -7
- package/model/{auth-login.ts → login-auth-request.ts} +4 -4
- package/model/{team-user-params.ts → permit-group-user-request.ts} +6 -15
- package/model/{user-team-params.ts → permit-user-group-request.ts} +7 -16
- package/model/profile.ts +3 -3
- package/model/provider.ts +45 -0
- package/model/update-profile-request.ts +45 -0
- package/model/update-user-request.ts +57 -0
- package/model/{user-team.ts → user-group.ts} +19 -19
- package/model/user.ts +0 -9
- package/openapi.yml +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Gopad OpenAPI
|
|
5
|
+
* API definition for Gopad, Etherpad for markdown with go
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0-alpha1
|
|
8
|
+
* Contact: gopad@webhippie.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface UpdateProfileRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface UpdateProfileRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof UpdateProfileRequest
|
|
25
|
+
*/
|
|
26
|
+
username?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof UpdateProfileRequest
|
|
31
|
+
*/
|
|
32
|
+
password?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof UpdateProfileRequest
|
|
37
|
+
*/
|
|
38
|
+
email?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof UpdateProfileRequest
|
|
43
|
+
*/
|
|
44
|
+
fullname?: string | null;
|
|
45
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Gopad OpenAPI
|
|
5
|
+
* API definition for Gopad, Etherpad for markdown with go
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0-alpha1
|
|
8
|
+
* Contact: gopad@webhippie.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface UpdateUserRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface UpdateUserRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof UpdateUserRequest
|
|
25
|
+
*/
|
|
26
|
+
username?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof UpdateUserRequest
|
|
31
|
+
*/
|
|
32
|
+
password?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof UpdateUserRequest
|
|
37
|
+
*/
|
|
38
|
+
email?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof UpdateUserRequest
|
|
43
|
+
*/
|
|
44
|
+
fullname?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
* @memberof UpdateUserRequest
|
|
49
|
+
*/
|
|
50
|
+
admin?: boolean | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof UpdateUserRequest
|
|
55
|
+
*/
|
|
56
|
+
active?: boolean | null;
|
|
57
|
+
}
|
|
@@ -14,66 +14,66 @@
|
|
|
14
14
|
|
|
15
15
|
// May contain unused imports in some cases
|
|
16
16
|
// @ts-ignore
|
|
17
|
-
import type {
|
|
17
|
+
import type { Group } from "./group";
|
|
18
18
|
// May contain unused imports in some cases
|
|
19
19
|
// @ts-ignore
|
|
20
20
|
import type { User } from "./user";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Model to represent user
|
|
23
|
+
* Model to represent user group
|
|
24
24
|
* @export
|
|
25
|
-
* @interface
|
|
25
|
+
* @interface UserGroup
|
|
26
26
|
*/
|
|
27
|
-
export interface
|
|
27
|
+
export interface UserGroup {
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof UserGroup
|
|
32
32
|
*/
|
|
33
33
|
user_id: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {User}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof UserGroup
|
|
38
38
|
*/
|
|
39
39
|
user?: User;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof UserGroup
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
group_id: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
|
-
* @type {
|
|
49
|
-
* @memberof
|
|
48
|
+
* @type {Group}
|
|
49
|
+
* @memberof UserGroup
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
group?: Group;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof UserGroup
|
|
56
56
|
*/
|
|
57
|
-
perm?:
|
|
57
|
+
perm?: UserGroupPermEnum;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof UserGroup
|
|
62
62
|
*/
|
|
63
63
|
created_at?: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof UserGroup
|
|
68
68
|
*/
|
|
69
69
|
updated_at?: string;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export const
|
|
72
|
+
export const UserGroupPermEnum = {
|
|
73
|
+
Owner: "owner",
|
|
73
74
|
User: "user",
|
|
74
75
|
Admin: "admin",
|
|
75
|
-
Owner: "owner",
|
|
76
76
|
} as const;
|
|
77
77
|
|
|
78
|
-
export type
|
|
79
|
-
(typeof
|
|
78
|
+
export type UserGroupPermEnum =
|
|
79
|
+
(typeof UserGroupPermEnum)[keyof typeof UserGroupPermEnum];
|
package/model/user.ts
CHANGED
|
@@ -15,9 +15,6 @@
|
|
|
15
15
|
// May contain unused imports in some cases
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
import type { UserAuth } from "./user-auth";
|
|
18
|
-
// May contain unused imports in some cases
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import type { UserTeam } from "./user-team";
|
|
21
18
|
|
|
22
19
|
/**
|
|
23
20
|
* Model to represent user
|
|
@@ -91,10 +88,4 @@ export interface User {
|
|
|
91
88
|
* @memberof User
|
|
92
89
|
*/
|
|
93
90
|
auths?: Array<UserAuth> | null;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {Array<UserTeam>}
|
|
97
|
-
* @memberof User
|
|
98
|
-
*/
|
|
99
|
-
teams?: Array<UserTeam> | null;
|
|
100
91
|
}
|
package/openapi.yml
CHANGED