gopadjs 2.4.1 → 2.5.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.
@@ -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 { Team } from "./team";
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 team
23
+ * Model to represent user group
24
24
  * @export
25
- * @interface UserTeam
25
+ * @interface UserGroup
26
26
  */
27
- export interface UserTeam {
27
+ export interface UserGroup {
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
- * @memberof UserTeam
31
+ * @memberof UserGroup
32
32
  */
33
33
  user_id: string;
34
34
  /**
35
35
  *
36
36
  * @type {User}
37
- * @memberof UserTeam
37
+ * @memberof UserGroup
38
38
  */
39
39
  user?: User;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
- * @memberof UserTeam
43
+ * @memberof UserGroup
44
44
  */
45
- team_id: string;
45
+ group_id: string;
46
46
  /**
47
47
  *
48
- * @type {Team}
49
- * @memberof UserTeam
48
+ * @type {Group}
49
+ * @memberof UserGroup
50
50
  */
51
- team?: Team;
51
+ group?: Group;
52
52
  /**
53
53
  *
54
54
  * @type {string}
55
- * @memberof UserTeam
55
+ * @memberof UserGroup
56
56
  */
57
- perm?: UserTeamPermEnum;
57
+ perm?: UserGroupPermEnum;
58
58
  /**
59
59
  *
60
60
  * @type {string}
61
- * @memberof UserTeam
61
+ * @memberof UserGroup
62
62
  */
63
63
  created_at?: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
67
- * @memberof UserTeam
67
+ * @memberof UserGroup
68
68
  */
69
69
  updated_at?: string;
70
70
  }
71
71
 
72
- export const UserTeamPermEnum = {
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 UserTeamPermEnum =
79
- (typeof UserTeamPermEnum)[keyof typeof UserTeamPermEnum];
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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  npmName: gopadjs
3
- npmVersion: 2.4.1
3
+ npmVersion: 2.5.0
4
4
  supportsES6: true
5
5
  useSingleRequestParameter: true
6
6
  withNodeImports: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gopadjs",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
4
4
  "description": "OpenAPI client for Gopad",
5
5
  "homepage": "https://github.com/gopad/gopad-js#readme",
6
6
  "license": "Apache-2.0",