@quantum-hub/qhubctl 1.12.1 → 1.13.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/README.md +1 -1
- package/dist/lib/error.js +3 -2
- package/dist/service/auth-service.d.ts +2 -2
- package/dist/service/quantum-hub-service.js +1 -1
- package/dist/service/user-service.d.ts +3 -3
- package/dist/service/user-service.js +9 -9
- package/package.json +1 -1
- package/dist/client/users/apis/AuthenticationApi.d.ts +0 -31
- package/dist/client/users/apis/AuthenticationApi.js +0 -46
- package/dist/client/users/apis/ExpertsApi.d.ts +0 -44
- package/dist/client/users/apis/ExpertsApi.js +0 -75
- package/dist/client/users/apis/SearchApi.d.ts +0 -46
- package/dist/client/users/apis/SearchApi.js +0 -97
- package/dist/client/users/apis/UserSettingsApi.d.ts +0 -139
- package/dist/client/users/apis/UserSettingsApi.js +0 -380
- package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.d.ts +0 -64
- package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.js +0 -147
- package/dist/client/users/apis/UsersApi.d.ts +0 -70
- package/dist/client/users/apis/UsersApi.js +0 -133
- package/dist/client/users/apis/index.d.ts +0 -6
- package/dist/client/users/apis/index.js +0 -8
- package/dist/client/users/index.d.ts +0 -3
- package/dist/client/users/index.js +0 -5
- package/dist/client/users/models/AccessTokenCreateRequest.d.ts +0 -51
- package/dist/client/users/models/AccessTokenCreateRequest.js +0 -53
- package/dist/client/users/models/AccessTokenDto.d.ts +0 -75
- package/dist/client/users/models/AccessTokenDto.js +0 -61
- package/dist/client/users/models/AccessTokensResponse.d.ts +0 -38
- package/dist/client/users/models/AccessTokensResponse.js +0 -41
- package/dist/client/users/models/DefaultAccessTokenResponse.d.ts +0 -31
- package/dist/client/users/models/DefaultAccessTokenResponse.js +0 -38
- package/dist/client/users/models/Language.d.ts +0 -31
- package/dist/client/users/models/Language.js +0 -38
- package/dist/client/users/models/PageUserDto.d.ts +0 -94
- package/dist/client/users/models/PageUserDto.js +0 -61
- package/dist/client/users/models/Pageable.d.ts +0 -43
- package/dist/client/users/models/Pageable.js +0 -42
- package/dist/client/users/models/PageableObject.d.ts +0 -62
- package/dist/client/users/models/PageableObject.js +0 -49
- package/dist/client/users/models/PersonalAccessTokenPrincipal.d.ts +0 -38
- package/dist/client/users/models/PersonalAccessTokenPrincipal.js +0 -41
- package/dist/client/users/models/Skill.d.ts +0 -31
- package/dist/client/users/models/Skill.js +0 -38
- package/dist/client/users/models/SortObject.d.ts +0 -43
- package/dist/client/users/models/SortObject.js +0 -42
- package/dist/client/users/models/UpdateUserRequest.d.ts +0 -61
- package/dist/client/users/models/UpdateUserRequest.js +0 -48
- package/dist/client/users/models/UserDto.d.ts +0 -111
- package/dist/client/users/models/UserDto.js +0 -66
- package/dist/client/users/models/UserOverviewDto.d.ts +0 -67
- package/dist/client/users/models/UserOverviewDto.js +0 -50
- package/dist/client/users/models/index.d.ts +0 -14
- package/dist/client/users/models/index.js +0 -16
- package/dist/client/users/runtime.d.ts +0 -181
- package/dist/client/users/runtime.js +0 -325
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Quantum Platform User Service API
|
|
5
|
-
* Part of the OpenAPI specification for the Quantum Platform.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: support-hub@kipu-quantum.com
|
|
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
|
-
* Check if a given object implements the UpdateUserRequest interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfUpdateUserRequest(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function UpdateUserRequestFromJSON(json) {
|
|
21
|
-
return UpdateUserRequestFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'currentPosition': json['currentPosition'] == null ? undefined : json['currentPosition'],
|
|
29
|
-
'homepage': json['homepage'] == null ? undefined : json['homepage'],
|
|
30
|
-
'about': json['about'] == null ? undefined : json['about'],
|
|
31
|
-
'academicTitle': json['academicTitle'] == null ? undefined : json['academicTitle'],
|
|
32
|
-
'isExpert': json['isExpert'] == null ? undefined : json['isExpert'],
|
|
33
|
-
'isEmailPublic': json['isEmailPublic'] == null ? undefined : json['isEmailPublic'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export function UpdateUserRequestToJSON(value) {
|
|
37
|
-
if (value == null) {
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'currentPosition': value['currentPosition'],
|
|
42
|
-
'homepage': value['homepage'],
|
|
43
|
-
'about': value['about'],
|
|
44
|
-
'academicTitle': value['academicTitle'],
|
|
45
|
-
'isExpert': value['isExpert'],
|
|
46
|
-
'isEmailPublic': value['isEmailPublic'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Quantum Platform User Service API
|
|
3
|
-
* Part of the OpenAPI specification for the Quantum Platform.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: support-hub@kipu-quantum.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Skill } from './Skill.js';
|
|
13
|
-
import type { Language } from './Language.js';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface UserDto
|
|
18
|
-
*/
|
|
19
|
-
export interface UserDto {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof UserDto
|
|
24
|
-
*/
|
|
25
|
-
id?: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof UserDto
|
|
30
|
-
*/
|
|
31
|
-
username?: string;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof UserDto
|
|
36
|
-
*/
|
|
37
|
-
email?: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof UserDto
|
|
42
|
-
*/
|
|
43
|
-
firstname?: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof UserDto
|
|
48
|
-
*/
|
|
49
|
-
lastname?: string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof UserDto
|
|
54
|
-
*/
|
|
55
|
-
currentPosition?: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof UserDto
|
|
60
|
-
*/
|
|
61
|
-
homepage?: string;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof UserDto
|
|
66
|
-
*/
|
|
67
|
-
about?: string;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof UserDto
|
|
72
|
-
*/
|
|
73
|
-
academicTitle?: string;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {Set<Language>}
|
|
77
|
-
* @memberof UserDto
|
|
78
|
-
*/
|
|
79
|
-
languages?: Set<Language>;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {Set<Skill>}
|
|
83
|
-
* @memberof UserDto
|
|
84
|
-
*/
|
|
85
|
-
skills?: Set<Skill>;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {boolean}
|
|
89
|
-
* @memberof UserDto
|
|
90
|
-
*/
|
|
91
|
-
isExpert?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {boolean}
|
|
95
|
-
* @memberof UserDto
|
|
96
|
-
*/
|
|
97
|
-
isEmailPublic?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
* @type {boolean}
|
|
101
|
-
* @memberof UserDto
|
|
102
|
-
*/
|
|
103
|
-
isReceiveEmails?: boolean;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Check if a given object implements the UserDto interface.
|
|
107
|
-
*/
|
|
108
|
-
export declare function instanceOfUserDto(value: object): value is UserDto;
|
|
109
|
-
export declare function UserDtoFromJSON(json: any): UserDto;
|
|
110
|
-
export declare function UserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDto;
|
|
111
|
-
export declare function UserDtoToJSON(value?: UserDto | null): any;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Quantum Platform User Service API
|
|
5
|
-
* Part of the OpenAPI specification for the Quantum Platform.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: support-hub@kipu-quantum.com
|
|
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
|
-
import { SkillFromJSON, SkillToJSON, } from './Skill.js';
|
|
15
|
-
import { LanguageFromJSON, LanguageToJSON, } from './Language.js';
|
|
16
|
-
/**
|
|
17
|
-
* Check if a given object implements the UserDto interface.
|
|
18
|
-
*/
|
|
19
|
-
export function instanceOfUserDto(value) {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
export function UserDtoFromJSON(json) {
|
|
23
|
-
return UserDtoFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
export function UserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if (json == null) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
31
|
-
'username': json['username'] == null ? undefined : json['username'],
|
|
32
|
-
'email': json['email'] == null ? undefined : json['email'],
|
|
33
|
-
'firstname': json['firstname'] == null ? undefined : json['firstname'],
|
|
34
|
-
'lastname': json['lastname'] == null ? undefined : json['lastname'],
|
|
35
|
-
'currentPosition': json['currentPosition'] == null ? undefined : json['currentPosition'],
|
|
36
|
-
'homepage': json['homepage'] == null ? undefined : json['homepage'],
|
|
37
|
-
'about': json['about'] == null ? undefined : json['about'],
|
|
38
|
-
'academicTitle': json['academicTitle'] == null ? undefined : json['academicTitle'],
|
|
39
|
-
'languages': json['languages'] == null ? undefined : (new Set(json['languages'].map(LanguageFromJSON))),
|
|
40
|
-
'skills': json['skills'] == null ? undefined : (new Set(json['skills'].map(SkillFromJSON))),
|
|
41
|
-
'isExpert': json['isExpert'] == null ? undefined : json['isExpert'],
|
|
42
|
-
'isEmailPublic': json['isEmailPublic'] == null ? undefined : json['isEmailPublic'],
|
|
43
|
-
'isReceiveEmails': json['isReceiveEmails'] == null ? undefined : json['isReceiveEmails'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export function UserDtoToJSON(value) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'id': value['id'],
|
|
52
|
-
'username': value['username'],
|
|
53
|
-
'email': value['email'],
|
|
54
|
-
'firstname': value['firstname'],
|
|
55
|
-
'lastname': value['lastname'],
|
|
56
|
-
'currentPosition': value['currentPosition'],
|
|
57
|
-
'homepage': value['homepage'],
|
|
58
|
-
'about': value['about'],
|
|
59
|
-
'academicTitle': value['academicTitle'],
|
|
60
|
-
'languages': value['languages'] == null ? undefined : (Array.from(value['languages']).map(LanguageToJSON)),
|
|
61
|
-
'skills': value['skills'] == null ? undefined : (Array.from(value['skills']).map(SkillToJSON)),
|
|
62
|
-
'isExpert': value['isExpert'],
|
|
63
|
-
'isEmailPublic': value['isEmailPublic'],
|
|
64
|
-
'isReceiveEmails': value['isReceiveEmails'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Quantum Platform User Service API
|
|
3
|
-
* Part of the OpenAPI specification for the Quantum Platform.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: support-hub@kipu-quantum.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UserOverviewDto
|
|
16
|
-
*/
|
|
17
|
-
export interface UserOverviewDto {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof UserOverviewDto
|
|
22
|
-
*/
|
|
23
|
-
id?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UserOverviewDto
|
|
28
|
-
*/
|
|
29
|
-
username?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UserOverviewDto
|
|
34
|
-
*/
|
|
35
|
-
firstname?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof UserOverviewDto
|
|
40
|
-
*/
|
|
41
|
-
lastname?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof UserOverviewDto
|
|
46
|
-
*/
|
|
47
|
-
academicTitle?: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof UserOverviewDto
|
|
52
|
-
*/
|
|
53
|
-
isExpert?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {boolean}
|
|
57
|
-
* @memberof UserOverviewDto
|
|
58
|
-
*/
|
|
59
|
-
isReceiveEmails?: boolean;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Check if a given object implements the UserOverviewDto interface.
|
|
63
|
-
*/
|
|
64
|
-
export declare function instanceOfUserOverviewDto(value: object): value is UserOverviewDto;
|
|
65
|
-
export declare function UserOverviewDtoFromJSON(json: any): UserOverviewDto;
|
|
66
|
-
export declare function UserOverviewDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserOverviewDto;
|
|
67
|
-
export declare function UserOverviewDtoToJSON(value?: UserOverviewDto | null): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Quantum Platform User Service API
|
|
5
|
-
* Part of the OpenAPI specification for the Quantum Platform.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: support-hub@kipu-quantum.com
|
|
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
|
-
* Check if a given object implements the UserOverviewDto interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfUserOverviewDto(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function UserOverviewDtoFromJSON(json) {
|
|
21
|
-
return UserOverviewDtoFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function UserOverviewDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
-
'username': json['username'] == null ? undefined : json['username'],
|
|
30
|
-
'firstname': json['firstname'] == null ? undefined : json['firstname'],
|
|
31
|
-
'lastname': json['lastname'] == null ? undefined : json['lastname'],
|
|
32
|
-
'academicTitle': json['academicTitle'] == null ? undefined : json['academicTitle'],
|
|
33
|
-
'isExpert': json['isExpert'] == null ? undefined : json['isExpert'],
|
|
34
|
-
'isReceiveEmails': json['isReceiveEmails'] == null ? undefined : json['isReceiveEmails'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export function UserOverviewDtoToJSON(value) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'id': value['id'],
|
|
43
|
-
'username': value['username'],
|
|
44
|
-
'firstname': value['firstname'],
|
|
45
|
-
'lastname': value['lastname'],
|
|
46
|
-
'academicTitle': value['academicTitle'],
|
|
47
|
-
'isExpert': value['isExpert'],
|
|
48
|
-
'isReceiveEmails': value['isReceiveEmails'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './AccessTokenCreateRequest.js';
|
|
2
|
-
export * from './AccessTokenDto.js';
|
|
3
|
-
export * from './AccessTokensResponse.js';
|
|
4
|
-
export * from './DefaultAccessTokenResponse.js';
|
|
5
|
-
export * from './Language.js';
|
|
6
|
-
export * from './PageUserDto.js';
|
|
7
|
-
export * from './Pageable.js';
|
|
8
|
-
export * from './PageableObject.js';
|
|
9
|
-
export * from './PersonalAccessTokenPrincipal.js';
|
|
10
|
-
export * from './Skill.js';
|
|
11
|
-
export * from './SortObject.js';
|
|
12
|
-
export * from './UpdateUserRequest.js';
|
|
13
|
-
export * from './UserDto.js';
|
|
14
|
-
export * from './UserOverviewDto.js';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export * from './AccessTokenCreateRequest.js';
|
|
4
|
-
export * from './AccessTokenDto.js';
|
|
5
|
-
export * from './AccessTokensResponse.js';
|
|
6
|
-
export * from './DefaultAccessTokenResponse.js';
|
|
7
|
-
export * from './Language.js';
|
|
8
|
-
export * from './PageUserDto.js';
|
|
9
|
-
export * from './Pageable.js';
|
|
10
|
-
export * from './PageableObject.js';
|
|
11
|
-
export * from './PersonalAccessTokenPrincipal.js';
|
|
12
|
-
export * from './Skill.js';
|
|
13
|
-
export * from './SortObject.js';
|
|
14
|
-
export * from './UpdateUserRequest.js';
|
|
15
|
-
export * from './UserDto.js';
|
|
16
|
-
export * from './UserOverviewDto.js';
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Quantum Platform User Service API
|
|
3
|
-
* Part of the OpenAPI specification for the Quantum Platform.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: support-hub@kipu-quantum.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export declare const BASE_PATH: string;
|
|
13
|
-
export interface ConfigurationParameters {
|
|
14
|
-
basePath?: string;
|
|
15
|
-
fetchApi?: FetchAPI;
|
|
16
|
-
middleware?: Middleware[];
|
|
17
|
-
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
|
-
username?: string;
|
|
19
|
-
password?: string;
|
|
20
|
-
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
21
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
|
-
headers?: HTTPHeaders;
|
|
23
|
-
credentials?: RequestCredentials;
|
|
24
|
-
}
|
|
25
|
-
export declare class Configuration {
|
|
26
|
-
private configuration;
|
|
27
|
-
constructor(configuration?: ConfigurationParameters);
|
|
28
|
-
set config(configuration: Configuration);
|
|
29
|
-
get basePath(): string;
|
|
30
|
-
get fetchApi(): FetchAPI | undefined;
|
|
31
|
-
get middleware(): Middleware[];
|
|
32
|
-
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
|
-
get username(): string | undefined;
|
|
34
|
-
get password(): string | undefined;
|
|
35
|
-
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
36
|
-
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
|
-
get headers(): HTTPHeaders | undefined;
|
|
38
|
-
get credentials(): RequestCredentials | undefined;
|
|
39
|
-
}
|
|
40
|
-
export declare const DefaultConfig: Configuration;
|
|
41
|
-
/**
|
|
42
|
-
* This is the base class for all generated API classes.
|
|
43
|
-
*/
|
|
44
|
-
export declare class BaseAPI {
|
|
45
|
-
protected configuration: Configuration;
|
|
46
|
-
private static readonly jsonRegex;
|
|
47
|
-
private middleware;
|
|
48
|
-
constructor(configuration?: Configuration);
|
|
49
|
-
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
50
|
-
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
51
|
-
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
52
|
-
/**
|
|
53
|
-
* Check if the given MIME is a JSON MIME.
|
|
54
|
-
* JSON MIME examples:
|
|
55
|
-
* application/json
|
|
56
|
-
* application/json; charset=UTF8
|
|
57
|
-
* APPLICATION/JSON
|
|
58
|
-
* application/vnd.company+json
|
|
59
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
60
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
61
|
-
*/
|
|
62
|
-
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
63
|
-
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
64
|
-
private createFetchParams;
|
|
65
|
-
private fetchApi;
|
|
66
|
-
/**
|
|
67
|
-
* Create a shallow clone of `this` by constructing a new instance
|
|
68
|
-
* and then shallow cloning data members.
|
|
69
|
-
*/
|
|
70
|
-
private clone;
|
|
71
|
-
}
|
|
72
|
-
export declare class ResponseError extends Error {
|
|
73
|
-
response: Response;
|
|
74
|
-
name: "ResponseError";
|
|
75
|
-
constructor(response: Response, msg?: string);
|
|
76
|
-
}
|
|
77
|
-
export declare class FetchError extends Error {
|
|
78
|
-
cause: Error;
|
|
79
|
-
name: "FetchError";
|
|
80
|
-
constructor(cause: Error, msg?: string);
|
|
81
|
-
}
|
|
82
|
-
export declare class RequiredError extends Error {
|
|
83
|
-
field: string;
|
|
84
|
-
name: "RequiredError";
|
|
85
|
-
constructor(field: string, msg?: string);
|
|
86
|
-
}
|
|
87
|
-
export declare const COLLECTION_FORMATS: {
|
|
88
|
-
csv: string;
|
|
89
|
-
ssv: string;
|
|
90
|
-
tsv: string;
|
|
91
|
-
pipes: string;
|
|
92
|
-
};
|
|
93
|
-
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
94
|
-
export type Json = any;
|
|
95
|
-
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
96
|
-
export type HTTPHeaders = {
|
|
97
|
-
[key: string]: string;
|
|
98
|
-
};
|
|
99
|
-
export type HTTPQuery = {
|
|
100
|
-
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
101
|
-
};
|
|
102
|
-
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
103
|
-
export type HTTPRequestInit = {
|
|
104
|
-
headers?: HTTPHeaders;
|
|
105
|
-
method: HTTPMethod;
|
|
106
|
-
credentials?: RequestCredentials;
|
|
107
|
-
body?: HTTPBody;
|
|
108
|
-
};
|
|
109
|
-
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
110
|
-
export type InitOverrideFunction = (requestContext: {
|
|
111
|
-
init: HTTPRequestInit;
|
|
112
|
-
context: RequestOpts;
|
|
113
|
-
}) => Promise<RequestInit>;
|
|
114
|
-
export interface FetchParams {
|
|
115
|
-
url: string;
|
|
116
|
-
init: RequestInit;
|
|
117
|
-
}
|
|
118
|
-
export interface RequestOpts {
|
|
119
|
-
path: string;
|
|
120
|
-
method: HTTPMethod;
|
|
121
|
-
headers: HTTPHeaders;
|
|
122
|
-
query?: HTTPQuery;
|
|
123
|
-
body?: HTTPBody;
|
|
124
|
-
}
|
|
125
|
-
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
126
|
-
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
127
|
-
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
128
|
-
export interface Consume {
|
|
129
|
-
contentType: string;
|
|
130
|
-
}
|
|
131
|
-
export interface RequestContext {
|
|
132
|
-
fetch: FetchAPI;
|
|
133
|
-
url: string;
|
|
134
|
-
init: RequestInit;
|
|
135
|
-
}
|
|
136
|
-
export interface ResponseContext {
|
|
137
|
-
fetch: FetchAPI;
|
|
138
|
-
url: string;
|
|
139
|
-
init: RequestInit;
|
|
140
|
-
response: Response;
|
|
141
|
-
}
|
|
142
|
-
export interface ErrorContext {
|
|
143
|
-
fetch: FetchAPI;
|
|
144
|
-
url: string;
|
|
145
|
-
init: RequestInit;
|
|
146
|
-
error: unknown;
|
|
147
|
-
response?: Response;
|
|
148
|
-
}
|
|
149
|
-
export interface Middleware {
|
|
150
|
-
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
151
|
-
post?(context: ResponseContext): Promise<Response | void>;
|
|
152
|
-
onError?(context: ErrorContext): Promise<Response | void>;
|
|
153
|
-
}
|
|
154
|
-
export interface ApiResponse<T> {
|
|
155
|
-
raw: Response;
|
|
156
|
-
value(): Promise<T>;
|
|
157
|
-
}
|
|
158
|
-
export interface ResponseTransformer<T> {
|
|
159
|
-
(json: any): T;
|
|
160
|
-
}
|
|
161
|
-
export declare class JSONApiResponse<T> {
|
|
162
|
-
raw: Response;
|
|
163
|
-
private transformer;
|
|
164
|
-
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
165
|
-
value(): Promise<T>;
|
|
166
|
-
}
|
|
167
|
-
export declare class VoidApiResponse {
|
|
168
|
-
raw: Response;
|
|
169
|
-
constructor(raw: Response);
|
|
170
|
-
value(): Promise<void>;
|
|
171
|
-
}
|
|
172
|
-
export declare class BlobApiResponse {
|
|
173
|
-
raw: Response;
|
|
174
|
-
constructor(raw: Response);
|
|
175
|
-
value(): Promise<Blob>;
|
|
176
|
-
}
|
|
177
|
-
export declare class TextApiResponse {
|
|
178
|
-
raw: Response;
|
|
179
|
-
constructor(raw: Response);
|
|
180
|
-
value(): Promise<string>;
|
|
181
|
-
}
|