keplar-api 0.0.28 → 0.0.29
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/.openapi-generator/FILES +10 -0
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +43 -1
- package/dist/apis/DefaultApi.js +233 -6
- package/dist/models/DummyUser.d.ts +44 -0
- package/dist/models/DummyUser.js +59 -0
- package/dist/models/ImpersonateUser200Response.d.ts +39 -0
- package/dist/models/ImpersonateUser200Response.js +56 -0
- package/dist/models/ImpersonateUserRequest.d.ts +32 -0
- package/dist/models/ImpersonateUserRequest.js +51 -0
- package/dist/models/ImpersonatedUser.d.ts +44 -0
- package/dist/models/ImpersonatedUser.js +59 -0
- package/dist/models/InviteUserRequest.d.ts +38 -0
- package/dist/models/InviteUserRequest.js +55 -0
- package/dist/models/SearchUsers200Response.d.ts +33 -0
- package/dist/models/SearchUsers200Response.js +52 -0
- package/dist/models/SearchUsersRequest.d.ts +38 -0
- package/dist/models/SearchUsersRequest.js +53 -0
- package/dist/models/UserData.d.ts +6 -0
- package/dist/models/UserData.js +2 -0
- package/dist/models/UserOrg.d.ts +38 -0
- package/dist/models/UserOrg.js +55 -0
- package/dist/models/UserProject.d.ts +38 -0
- package/dist/models/UserProject.js +55 -0
- package/dist/models/UserSearchResult.d.ts +83 -0
- package/dist/models/UserSearchResult.js +86 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +223 -6
- package/src/models/DummyUser.ts +84 -0
- package/src/models/ImpersonateUser200Response.ts +83 -0
- package/src/models/ImpersonateUserRequest.ts +66 -0
- package/src/models/ImpersonatedUser.ts +84 -0
- package/src/models/InviteUserRequest.ts +75 -0
- package/src/models/SearchUsers200Response.ts +74 -0
- package/src/models/SearchUsersRequest.ts +74 -0
- package/src/models/UserData.ts +8 -0
- package/src/models/UserOrg.ts +75 -0
- package/src/models/UserProject.ts +75 -0
- package/src/models/UserSearchResult.ts +162 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DummyUser
|
|
20
|
+
*/
|
|
21
|
+
export interface DummyUser {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DummyUser
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DummyUser
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DummyUser
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the DummyUser interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfDummyUser(value: object): value is DummyUser {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DummyUserFromJSON(json: any): DummyUser {
|
|
53
|
+
return DummyUserFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DummyUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): DummyUser {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'email': json['email'],
|
|
64
|
+
'name': json['name'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DummyUserToJSON(json: any): DummyUser {
|
|
69
|
+
return DummyUserToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DummyUserToJSONTyped(value?: DummyUser | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'email': value['email'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ImpersonatedUser } from './ImpersonatedUser';
|
|
17
|
+
import {
|
|
18
|
+
ImpersonatedUserFromJSON,
|
|
19
|
+
ImpersonatedUserFromJSONTyped,
|
|
20
|
+
ImpersonatedUserToJSON,
|
|
21
|
+
ImpersonatedUserToJSONTyped,
|
|
22
|
+
} from './ImpersonatedUser';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ImpersonateUser200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ImpersonateUser200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ImpersonateUser200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {ImpersonatedUser}
|
|
39
|
+
* @memberof ImpersonateUser200Response
|
|
40
|
+
*/
|
|
41
|
+
impersonatedUser: ImpersonatedUser;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ImpersonateUser200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfImpersonateUser200Response(value: object): value is ImpersonateUser200Response {
|
|
48
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
49
|
+
if (!('impersonatedUser' in value) || value['impersonatedUser'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ImpersonateUser200ResponseFromJSON(json: any): ImpersonateUser200Response {
|
|
54
|
+
return ImpersonateUser200ResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ImpersonateUser200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImpersonateUser200Response {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'success': json['success'],
|
|
64
|
+
'impersonatedUser': ImpersonatedUserFromJSON(json['impersonatedUser']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ImpersonateUser200ResponseToJSON(json: any): ImpersonateUser200Response {
|
|
69
|
+
return ImpersonateUser200ResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ImpersonateUser200ResponseToJSONTyped(value?: ImpersonateUser200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'success': value['success'],
|
|
80
|
+
'impersonatedUser': ImpersonatedUserToJSON(value['impersonatedUser']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ImpersonateUserRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ImpersonateUserRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ImpersonateUserRequest
|
|
26
|
+
*/
|
|
27
|
+
userId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ImpersonateUserRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfImpersonateUserRequest(value: object): value is ImpersonateUserRequest {
|
|
34
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ImpersonateUserRequestFromJSON(json: any): ImpersonateUserRequest {
|
|
39
|
+
return ImpersonateUserRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ImpersonateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImpersonateUserRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'userId': json['userId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ImpersonateUserRequestToJSON(json: any): ImpersonateUserRequest {
|
|
53
|
+
return ImpersonateUserRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ImpersonateUserRequestToJSONTyped(value?: ImpersonateUserRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'userId': value['userId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ImpersonatedUser
|
|
20
|
+
*/
|
|
21
|
+
export interface ImpersonatedUser {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ImpersonatedUser
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ImpersonatedUser
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ImpersonatedUser
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ImpersonatedUser interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfImpersonatedUser(value: object): value is ImpersonatedUser {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ImpersonatedUserFromJSON(json: any): ImpersonatedUser {
|
|
53
|
+
return ImpersonatedUserFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ImpersonatedUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImpersonatedUser {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'email': json['email'],
|
|
64
|
+
'name': json['name'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ImpersonatedUserToJSON(json: any): ImpersonatedUser {
|
|
69
|
+
return ImpersonatedUserToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ImpersonatedUserToJSONTyped(value?: ImpersonatedUser | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'email': value['email'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface InviteUserRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface InviteUserRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InviteUserRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof InviteUserRequest
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the InviteUserRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfInviteUserRequest(value: object): value is InviteUserRequest {
|
|
40
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function InviteUserRequestFromJSON(json: any): InviteUserRequest {
|
|
46
|
+
return InviteUserRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function InviteUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteUserRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function InviteUserRequestToJSON(json: any): InviteUserRequest {
|
|
61
|
+
return InviteUserRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function InviteUserRequestToJSONTyped(value?: InviteUserRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { UserSearchResult } from './UserSearchResult';
|
|
17
|
+
import {
|
|
18
|
+
UserSearchResultFromJSON,
|
|
19
|
+
UserSearchResultFromJSONTyped,
|
|
20
|
+
UserSearchResultToJSON,
|
|
21
|
+
UserSearchResultToJSONTyped,
|
|
22
|
+
} from './UserSearchResult';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SearchUsers200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface SearchUsers200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<UserSearchResult>}
|
|
33
|
+
* @memberof SearchUsers200Response
|
|
34
|
+
*/
|
|
35
|
+
users: Array<UserSearchResult>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SearchUsers200Response interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSearchUsers200Response(value: object): value is SearchUsers200Response {
|
|
42
|
+
if (!('users' in value) || value['users'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SearchUsers200ResponseFromJSON(json: any): SearchUsers200Response {
|
|
47
|
+
return SearchUsers200ResponseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SearchUsers200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchUsers200Response {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'users': ((json['users'] as Array<any>).map(UserSearchResultFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SearchUsers200ResponseToJSON(json: any): SearchUsers200Response {
|
|
61
|
+
return SearchUsers200ResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SearchUsers200ResponseToJSONTyped(value?: SearchUsers200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'users': ((value['users'] as Array<any>).map(UserSearchResultToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SearchUsersRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SearchUsersRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SearchUsersRequest
|
|
26
|
+
*/
|
|
27
|
+
query: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SearchUsersRequest
|
|
32
|
+
*/
|
|
33
|
+
limit?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SearchUsersRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSearchUsersRequest(value: object): value is SearchUsersRequest {
|
|
40
|
+
if (!('query' in value) || value['query'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function SearchUsersRequestFromJSON(json: any): SearchUsersRequest {
|
|
45
|
+
return SearchUsersRequestFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function SearchUsersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchUsersRequest {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'query': json['query'],
|
|
55
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SearchUsersRequestToJSON(json: any): SearchUsersRequest {
|
|
60
|
+
return SearchUsersRequestToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SearchUsersRequestToJSONTyped(value?: SearchUsersRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'query': value['query'],
|
|
71
|
+
'limit': value['limit'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
package/src/models/UserData.ts
CHANGED
|
@@ -39,6 +39,12 @@ export interface UserData {
|
|
|
39
39
|
* @memberof UserData
|
|
40
40
|
*/
|
|
41
41
|
adminLevel?: UserAdminLevel | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof UserData
|
|
46
|
+
*/
|
|
47
|
+
isDummy?: boolean;
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
|
|
@@ -62,6 +68,7 @@ export function UserDataFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
62
68
|
|
|
63
69
|
'launchTrial': json['launchTrial'] == null ? undefined : json['launchTrial'],
|
|
64
70
|
'adminLevel': json['adminLevel'] == null ? undefined : UserAdminLevelFromJSON(json['adminLevel']),
|
|
71
|
+
'isDummy': json['isDummy'] == null ? undefined : json['isDummy'],
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
|
|
@@ -78,6 +85,7 @@ export function UserDataToJSONTyped(value?: UserData | null, ignoreDiscriminator
|
|
|
78
85
|
|
|
79
86
|
'launchTrial': value['launchTrial'],
|
|
80
87
|
'adminLevel': UserAdminLevelToJSON(value['adminLevel']),
|
|
88
|
+
'isDummy': value['isDummy'],
|
|
81
89
|
};
|
|
82
90
|
}
|
|
83
91
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserOrg
|
|
20
|
+
*/
|
|
21
|
+
export interface UserOrg {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UserOrg
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserOrg
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UserOrg interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUserOrg(value: object): value is UserOrg {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function UserOrgFromJSON(json: any): UserOrg {
|
|
46
|
+
return UserOrgFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UserOrgFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserOrg {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function UserOrgToJSON(json: any): UserOrg {
|
|
61
|
+
return UserOrgToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UserOrgToJSONTyped(value?: UserOrg | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|