@homespot-sdk/api 0.0.635 → 0.0.636
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 +30 -10
- package/README.md +26 -18
- package/dist/apis/AgencyControllerApi.d.ts +1 -63
- package/dist/apis/AgencyControllerApi.js +1 -100
- package/dist/apis/InvitationControllerApi.d.ts +10 -10
- package/dist/apis/InvitationControllerApi.js +9 -9
- package/dist/apis/InvitationQueryControllerApi.d.ts +12 -30
- package/dist/apis/InvitationQueryControllerApi.js +12 -47
- package/dist/apis/MemberControllerApi.d.ts +68 -0
- package/dist/apis/MemberControllerApi.js +101 -0
- package/dist/apis/MemberQueryControllerApi.d.ts +10 -4
- package/dist/apis/MemberQueryControllerApi.js +13 -7
- package/dist/apis/{AgencyQueryControllerApi.d.ts → PublicAgencyControllerApi.d.ts} +26 -38
- package/dist/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +19 -44
- package/dist/apis/PublicInvitationControllerApi.d.ts +48 -0
- package/dist/apis/PublicInvitationControllerApi.js +71 -0
- package/dist/apis/PublicRoleControllerApi.d.ts +42 -0
- package/dist/apis/PublicRoleControllerApi.js +61 -0
- package/dist/apis/RoleControllerApi.d.ts +88 -0
- package/dist/apis/RoleControllerApi.js +133 -0
- package/dist/apis/RoleQueryControllerApi.d.ts +50 -0
- package/dist/apis/RoleQueryControllerApi.js +70 -0
- package/dist/apis/index.d.ts +6 -1
- package/dist/apis/index.js +6 -1
- package/dist/esm/apis/AgencyControllerApi.d.ts +1 -63
- package/dist/esm/apis/AgencyControllerApi.js +2 -101
- package/dist/esm/apis/InvitationControllerApi.d.ts +10 -10
- package/dist/esm/apis/InvitationControllerApi.js +9 -9
- package/dist/esm/apis/InvitationQueryControllerApi.d.ts +12 -30
- package/dist/esm/apis/InvitationQueryControllerApi.js +13 -48
- package/dist/esm/apis/MemberControllerApi.d.ts +68 -0
- package/dist/esm/apis/MemberControllerApi.js +97 -0
- package/dist/esm/apis/MemberQueryControllerApi.d.ts +10 -4
- package/dist/esm/apis/MemberQueryControllerApi.js +13 -7
- package/dist/esm/apis/{AgencyQueryControllerApi.d.ts → PublicAgencyControllerApi.d.ts} +26 -38
- package/dist/esm/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +18 -43
- package/dist/esm/apis/PublicInvitationControllerApi.d.ts +48 -0
- package/dist/esm/apis/PublicInvitationControllerApi.js +67 -0
- package/dist/esm/apis/PublicRoleControllerApi.d.ts +42 -0
- package/dist/esm/apis/PublicRoleControllerApi.js +57 -0
- package/dist/esm/apis/RoleControllerApi.d.ts +88 -0
- package/dist/esm/apis/RoleControllerApi.js +129 -0
- package/dist/esm/apis/RoleQueryControllerApi.d.ts +50 -0
- package/dist/esm/apis/RoleQueryControllerApi.js +66 -0
- package/dist/esm/apis/index.d.ts +6 -1
- package/dist/esm/apis/index.js +6 -1
- package/dist/esm/models/AgencyProfileResponse.d.ts +69 -0
- package/dist/esm/models/{AgencyViewResponse.js → AgencyProfileResponse.js} +8 -8
- package/dist/esm/models/AgencySummaryResponse.d.ts +102 -0
- package/dist/esm/models/{AgencyPeekViewResponse.js → AgencySummaryResponse.js} +9 -9
- package/dist/esm/models/AssignRoleRequest.d.ts +32 -0
- package/dist/esm/models/AssignRoleRequest.js +43 -0
- package/dist/esm/models/BatchAssignRoleRequest.d.ts +38 -0
- package/dist/esm/models/BatchAssignRoleRequest.js +47 -0
- package/dist/esm/models/GroupedPermissionsResponse.d.ts +1 -0
- package/dist/esm/models/GroupedPermissionsResponse.js +2 -1
- package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +2 -0
- package/dist/esm/models/OrganizationSummaryViewResponse.js +3 -1
- package/dist/esm/models/PageRoleResponse.d.ts +95 -0
- package/dist/esm/models/PageRoleResponse.js +64 -0
- package/dist/esm/models/PageableObject.d.ts +63 -0
- package/dist/esm/models/PageableObject.js +52 -0
- package/dist/esm/models/PagedModelAgencySummaryResponse.d.ts +40 -0
- package/dist/esm/models/{PagedModelAgencyPeekViewResponse.js → PagedModelAgencySummaryResponse.js} +11 -11
- package/dist/esm/models/PermissionResponse.d.ts +4 -0
- package/dist/esm/models/PermissionResponse.js +6 -2
- package/dist/esm/models/RoleResponse.d.ts +63 -0
- package/dist/esm/models/RoleResponse.js +67 -0
- package/dist/esm/models/RolesRequest.d.ts +2 -0
- package/dist/esm/models/RolesRequest.js +3 -1
- package/dist/esm/models/SortObject.d.ts +44 -0
- package/dist/esm/models/SortObject.js +45 -0
- package/dist/esm/models/index.d.ts +9 -4
- package/dist/esm/models/index.js +9 -4
- package/dist/models/AgencyProfileResponse.d.ts +69 -0
- package/dist/models/{AgencyViewResponse.js → AgencyProfileResponse.js} +13 -13
- package/dist/models/AgencySummaryResponse.d.ts +102 -0
- package/dist/models/{AgencyPeekViewResponse.js → AgencySummaryResponse.js} +15 -15
- package/dist/models/AssignRoleRequest.d.ts +32 -0
- package/dist/models/AssignRoleRequest.js +50 -0
- package/dist/models/BatchAssignRoleRequest.d.ts +38 -0
- package/dist/models/BatchAssignRoleRequest.js +54 -0
- package/dist/models/GroupedPermissionsResponse.d.ts +1 -0
- package/dist/models/GroupedPermissionsResponse.js +2 -1
- package/dist/models/OrganizationSummaryViewResponse.d.ts +2 -0
- package/dist/models/OrganizationSummaryViewResponse.js +3 -1
- package/dist/models/PageRoleResponse.d.ts +95 -0
- package/dist/models/PageRoleResponse.js +71 -0
- package/dist/models/PageableObject.d.ts +63 -0
- package/dist/models/PageableObject.js +59 -0
- package/dist/models/PagedModelAgencySummaryResponse.d.ts +40 -0
- package/dist/models/PagedModelAgencySummaryResponse.js +52 -0
- package/dist/models/PermissionResponse.d.ts +4 -0
- package/dist/models/PermissionResponse.js +6 -2
- package/dist/models/RoleResponse.d.ts +63 -0
- package/dist/models/RoleResponse.js +75 -0
- package/dist/models/RolesRequest.d.ts +2 -0
- package/dist/models/RolesRequest.js +3 -1
- package/dist/models/SortObject.d.ts +44 -0
- package/dist/models/SortObject.js +52 -0
- package/dist/models/index.d.ts +9 -4
- package/dist/models/index.js +9 -4
- package/docs/AgencyControllerApi.md +1 -214
- package/docs/{AgencyViewResponse.md → AgencyProfileResponse.md} +4 -4
- package/docs/{AgencyPeekViewResponse.md → AgencySummaryResponse.md} +4 -4
- package/docs/{Pageable.md → AssignRoleRequest.md} +6 -10
- package/docs/BatchAssignRoleRequest.md +36 -0
- package/docs/InvitationControllerApi.md +12 -12
- package/docs/InvitationQueryControllerApi.md +15 -82
- package/docs/MemberControllerApi.md +151 -0
- package/docs/MemberQueryControllerApi.md +13 -4
- package/docs/PageRoleResponse.md +54 -0
- package/docs/PageableObject.md +44 -0
- package/docs/{PagedModelAgencyPeekViewResponse.md → PagedModelAgencySummaryResponse.md} +5 -5
- package/docs/{AgencyQueryControllerApi.md → PublicAgencyControllerApi.md} +25 -81
- package/docs/PublicInvitationControllerApi.md +81 -0
- package/docs/PublicRoleControllerApi.md +70 -0
- package/docs/RoleControllerApi.md +221 -0
- package/docs/RoleQueryControllerApi.md +84 -0
- package/docs/RoleResponse.md +40 -0
- package/docs/SortObject.md +38 -0
- package/package.json +1 -1
- package/src/apis/AgencyControllerApi.ts +1 -186
- package/src/apis/InvitationControllerApi.ts +15 -15
- package/src/apis/InvitationQueryControllerApi.ts +20 -91
- package/src/apis/MemberControllerApi.ts +168 -0
- package/src/apis/MemberQueryControllerApi.ts +22 -14
- package/src/apis/{AgencyQueryControllerApi.ts → PublicAgencyControllerApi.ts} +48 -93
- package/src/apis/PublicInvitationControllerApi.ts +109 -0
- package/src/apis/PublicRoleControllerApi.ts +83 -0
- package/src/apis/RoleControllerApi.ts +225 -0
- package/src/apis/RoleQueryControllerApi.ts +104 -0
- package/src/apis/index.ts +6 -1
- package/src/models/{AgencyViewResponse.ts → AgencyProfileResponse.ts} +17 -17
- package/src/models/{AgencyPeekViewResponse.ts → AgencySummaryResponse.ts} +24 -24
- package/src/models/AssignRoleRequest.ts +66 -0
- package/src/models/BatchAssignRoleRequest.ts +75 -0
- package/src/models/GroupedPermissionsResponse.ts +2 -1
- package/src/models/OrganizationSummaryViewResponse.ts +3 -1
- package/src/models/PageRoleResponse.ts +167 -0
- package/src/models/PageableObject.ts +113 -0
- package/src/models/PagedModelAgencySummaryResponse.ts +88 -0
- package/src/models/PermissionResponse.ts +6 -2
- package/src/models/RoleResponse.ts +109 -0
- package/src/models/RolesRequest.ts +3 -1
- package/src/models/SortObject.ts +81 -0
- package/src/models/index.ts +9 -4
- package/dist/esm/models/AgencyPeekViewResponse.d.ts +0 -102
- package/dist/esm/models/AgencyViewResponse.d.ts +0 -69
- package/dist/esm/models/Pageable.d.ts +0 -44
- package/dist/esm/models/Pageable.js +0 -45
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
- package/dist/models/AgencyPeekViewResponse.d.ts +0 -102
- package/dist/models/AgencyViewResponse.d.ts +0 -69
- package/dist/models/Pageable.d.ts +0 -44
- package/dist/models/Pageable.js +0 -52
- package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
- package/dist/models/PagedModelAgencyPeekViewResponse.js +0 -52
- package/src/models/Pageable.ts +0 -81
- package/src/models/PagedModelAgencyPeekViewResponse.ts +0 -88
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Service API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
IdResponse,
|
|
19
|
+
RolesRequest,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
IdResponseFromJSON,
|
|
23
|
+
IdResponseToJSON,
|
|
24
|
+
RolesRequestFromJSON,
|
|
25
|
+
RolesRequestToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface CreateRoleRequest {
|
|
29
|
+
rolesRequest: RolesRequest;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface RemoveRoleRequest {
|
|
33
|
+
roleId: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface UpdateRoleRequest {
|
|
37
|
+
roleId: number;
|
|
38
|
+
rolesRequest: RolesRequest;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* RoleControllerApi - interface
|
|
43
|
+
*
|
|
44
|
+
* @export
|
|
45
|
+
* @interface RoleControllerApiInterface
|
|
46
|
+
*/
|
|
47
|
+
export interface RoleControllerApiInterface {
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @param {RolesRequest} rolesRequest
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
* @memberof RoleControllerApiInterface
|
|
54
|
+
*/
|
|
55
|
+
createRoleRaw(requestParameters: CreateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdResponse>>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
*/
|
|
59
|
+
createRole(requestParameters: CreateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponse>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param {number} roleId
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
* @memberof RoleControllerApiInterface
|
|
67
|
+
*/
|
|
68
|
+
removeRoleRaw(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
*/
|
|
72
|
+
removeRole(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @param {number} roleId
|
|
77
|
+
* @param {RolesRequest} rolesRequest
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
* @memberof RoleControllerApiInterface
|
|
81
|
+
*/
|
|
82
|
+
updateRoleRaw(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
*/
|
|
86
|
+
updateRole(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
87
|
+
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
export class RoleControllerApi extends runtime.BaseAPI implements RoleControllerApiInterface {
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
*/
|
|
97
|
+
async createRoleRaw(requestParameters: CreateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdResponse>> {
|
|
98
|
+
if (requestParameters['rolesRequest'] == null) {
|
|
99
|
+
throw new runtime.RequiredError(
|
|
100
|
+
'rolesRequest',
|
|
101
|
+
'Required parameter "rolesRequest" was null or undefined when calling createRole().'
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const queryParameters: any = {};
|
|
106
|
+
|
|
107
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
108
|
+
|
|
109
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
110
|
+
|
|
111
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
112
|
+
// oauth required
|
|
113
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
let urlPath = `/roles`;
|
|
118
|
+
|
|
119
|
+
const response = await this.request({
|
|
120
|
+
path: urlPath,
|
|
121
|
+
method: 'POST',
|
|
122
|
+
headers: headerParameters,
|
|
123
|
+
query: queryParameters,
|
|
124
|
+
body: RolesRequestToJSON(requestParameters['rolesRequest']),
|
|
125
|
+
}, initOverrides);
|
|
126
|
+
|
|
127
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IdResponseFromJSON(jsonValue));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
*/
|
|
132
|
+
async createRole(requestParameters: CreateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponse> {
|
|
133
|
+
const response = await this.createRoleRaw(requestParameters, initOverrides);
|
|
134
|
+
return await response.value();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
*/
|
|
139
|
+
async removeRoleRaw(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
140
|
+
if (requestParameters['roleId'] == null) {
|
|
141
|
+
throw new runtime.RequiredError(
|
|
142
|
+
'roleId',
|
|
143
|
+
'Required parameter "roleId" was null or undefined when calling removeRole().'
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const queryParameters: any = {};
|
|
148
|
+
|
|
149
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
150
|
+
|
|
151
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
152
|
+
// oauth required
|
|
153
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
let urlPath = `/roles/{roleId}`;
|
|
158
|
+
urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
|
|
159
|
+
|
|
160
|
+
const response = await this.request({
|
|
161
|
+
path: urlPath,
|
|
162
|
+
method: 'DELETE',
|
|
163
|
+
headers: headerParameters,
|
|
164
|
+
query: queryParameters,
|
|
165
|
+
}, initOverrides);
|
|
166
|
+
|
|
167
|
+
return new runtime.VoidApiResponse(response);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
*/
|
|
172
|
+
async removeRole(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
173
|
+
await this.removeRoleRaw(requestParameters, initOverrides);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
*/
|
|
178
|
+
async updateRoleRaw(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
179
|
+
if (requestParameters['roleId'] == null) {
|
|
180
|
+
throw new runtime.RequiredError(
|
|
181
|
+
'roleId',
|
|
182
|
+
'Required parameter "roleId" was null or undefined when calling updateRole().'
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (requestParameters['rolesRequest'] == null) {
|
|
187
|
+
throw new runtime.RequiredError(
|
|
188
|
+
'rolesRequest',
|
|
189
|
+
'Required parameter "rolesRequest" was null or undefined when calling updateRole().'
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
const queryParameters: any = {};
|
|
194
|
+
|
|
195
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
196
|
+
|
|
197
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
198
|
+
|
|
199
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
200
|
+
// oauth required
|
|
201
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
let urlPath = `/roles/{roleId}`;
|
|
206
|
+
urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
|
|
207
|
+
|
|
208
|
+
const response = await this.request({
|
|
209
|
+
path: urlPath,
|
|
210
|
+
method: 'PUT',
|
|
211
|
+
headers: headerParameters,
|
|
212
|
+
query: queryParameters,
|
|
213
|
+
body: RolesRequestToJSON(requestParameters['rolesRequest']),
|
|
214
|
+
}, initOverrides);
|
|
215
|
+
|
|
216
|
+
return new runtime.VoidApiResponse(response);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
*/
|
|
221
|
+
async updateRole(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
222
|
+
await this.updateRoleRaw(requestParameters, initOverrides);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Service API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
PageRoleResponse,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
PageRoleResponseFromJSON,
|
|
22
|
+
PageRoleResponseToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface ListRolesRequest {
|
|
26
|
+
page?: number;
|
|
27
|
+
size?: number;
|
|
28
|
+
sort?: Array<string>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* RoleQueryControllerApi - interface
|
|
33
|
+
*
|
|
34
|
+
* @export
|
|
35
|
+
* @interface RoleQueryControllerApiInterface
|
|
36
|
+
*/
|
|
37
|
+
export interface RoleQueryControllerApiInterface {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @param {number} [page] Zero-based page index (0..N)
|
|
41
|
+
* @param {number} [size] The size of the page to be returned
|
|
42
|
+
* @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
* @memberof RoleQueryControllerApiInterface
|
|
46
|
+
*/
|
|
47
|
+
listRolesRaw(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageRoleResponse>>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
*/
|
|
51
|
+
listRoles(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageRoleResponse>;
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
export class RoleQueryControllerApi extends runtime.BaseAPI implements RoleQueryControllerApiInterface {
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
*/
|
|
62
|
+
async listRolesRaw(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageRoleResponse>> {
|
|
63
|
+
const queryParameters: any = {};
|
|
64
|
+
|
|
65
|
+
if (requestParameters['page'] != null) {
|
|
66
|
+
queryParameters['page'] = requestParameters['page'];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (requestParameters['size'] != null) {
|
|
70
|
+
queryParameters['size'] = requestParameters['size'];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (requestParameters['sort'] != null) {
|
|
74
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
78
|
+
|
|
79
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
80
|
+
// oauth required
|
|
81
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
let urlPath = `/roles`;
|
|
86
|
+
|
|
87
|
+
const response = await this.request({
|
|
88
|
+
path: urlPath,
|
|
89
|
+
method: 'GET',
|
|
90
|
+
headers: headerParameters,
|
|
91
|
+
query: queryParameters,
|
|
92
|
+
}, initOverrides);
|
|
93
|
+
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PageRoleResponseFromJSON(jsonValue));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
*/
|
|
99
|
+
async listRoles(requestParameters: ListRolesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageRoleResponse> {
|
|
100
|
+
const response = await this.listRolesRaw(requestParameters, initOverrides);
|
|
101
|
+
return await response.value();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AgencyControllerApi';
|
|
4
|
-
export * from './AgencyQueryControllerApi';
|
|
5
4
|
export * from './InvitationControllerApi';
|
|
6
5
|
export * from './InvitationQueryControllerApi';
|
|
6
|
+
export * from './MemberControllerApi';
|
|
7
7
|
export * from './MemberQueryControllerApi';
|
|
8
|
+
export * from './PublicAgencyControllerApi';
|
|
9
|
+
export * from './PublicInvitationControllerApi';
|
|
10
|
+
export * from './PublicRoleControllerApi';
|
|
11
|
+
export * from './RoleControllerApi';
|
|
12
|
+
export * from './RoleQueryControllerApi';
|
|
8
13
|
export * from './UserQueryControllerApi';
|
|
@@ -24,57 +24,57 @@ import {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface AgencyProfileResponse
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface AgencyProfileResponse {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof AgencyProfileResponse
|
|
34
34
|
*/
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof AgencyProfileResponse
|
|
40
40
|
*/
|
|
41
41
|
email: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof AgencyProfileResponse
|
|
46
46
|
*/
|
|
47
47
|
seats: number;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof AgencyProfileResponse
|
|
52
52
|
*/
|
|
53
53
|
subDomain: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
|
-
* @memberof
|
|
57
|
+
* @memberof AgencyProfileResponse
|
|
58
58
|
*/
|
|
59
59
|
phone: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {AddressViewResponse}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof AgencyProfileResponse
|
|
64
64
|
*/
|
|
65
65
|
address: AddressViewResponse;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {number}
|
|
69
|
-
* @memberof
|
|
69
|
+
* @memberof AgencyProfileResponse
|
|
70
70
|
*/
|
|
71
71
|
yearSince: number;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Check if a given object implements the
|
|
75
|
+
* Check if a given object implements the AgencyProfileResponse interface.
|
|
76
76
|
*/
|
|
77
|
-
export function
|
|
77
|
+
export function instanceOfAgencyProfileResponse(value: object): value is AgencyProfileResponse {
|
|
78
78
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
79
79
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
80
80
|
if (!('seats' in value) || value['seats'] === undefined) return false;
|
|
@@ -85,11 +85,11 @@ export function instanceOfAgencyViewResponse(value: object): value is AgencyView
|
|
|
85
85
|
return true;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export function
|
|
89
|
-
return
|
|
88
|
+
export function AgencyProfileResponseFromJSON(json: any): AgencyProfileResponse {
|
|
89
|
+
return AgencyProfileResponseFromJSONTyped(json, false);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
export function
|
|
92
|
+
export function AgencyProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyProfileResponse {
|
|
93
93
|
if (json == null) {
|
|
94
94
|
return json;
|
|
95
95
|
}
|
|
@@ -105,11 +105,11 @@ export function AgencyViewResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
export function
|
|
109
|
-
return
|
|
108
|
+
export function AgencyProfileResponseToJSON(json: any): AgencyProfileResponse {
|
|
109
|
+
return AgencyProfileResponseToJSONTyped(json, false);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
export function
|
|
112
|
+
export function AgencyProfileResponseToJSONTyped(value?: AgencyProfileResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
113
113
|
if (value == null) {
|
|
114
114
|
return value;
|
|
115
115
|
}
|
|
@@ -16,73 +16,73 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface AgencySummaryResponse
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface AgencySummaryResponse {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof AgencySummaryResponse
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof AgencySummaryResponse
|
|
32
32
|
*/
|
|
33
33
|
owner: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof AgencySummaryResponse
|
|
38
38
|
*/
|
|
39
39
|
name: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof AgencySummaryResponse
|
|
44
44
|
*/
|
|
45
45
|
email: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof AgencySummaryResponse
|
|
50
50
|
*/
|
|
51
51
|
seats: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof AgencySummaryResponse
|
|
56
56
|
*/
|
|
57
57
|
subDomain: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof AgencySummaryResponse
|
|
62
62
|
*/
|
|
63
63
|
phone: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof AgencySummaryResponse
|
|
68
68
|
*/
|
|
69
69
|
website?: string;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {string}
|
|
73
|
-
* @memberof
|
|
73
|
+
* @memberof AgencySummaryResponse
|
|
74
74
|
*/
|
|
75
75
|
yearSince: string;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {string}
|
|
79
|
-
* @memberof
|
|
79
|
+
* @memberof AgencySummaryResponse
|
|
80
80
|
*/
|
|
81
|
-
status:
|
|
81
|
+
status: AgencySummaryResponseStatusEnum;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
85
|
-
* @memberof
|
|
85
|
+
* @memberof AgencySummaryResponse
|
|
86
86
|
*/
|
|
87
87
|
logo?: string;
|
|
88
88
|
}
|
|
@@ -91,19 +91,19 @@ export interface AgencyPeekViewResponse {
|
|
|
91
91
|
/**
|
|
92
92
|
* @export
|
|
93
93
|
*/
|
|
94
|
-
export const
|
|
94
|
+
export const AgencySummaryResponseStatusEnum = {
|
|
95
95
|
New: 'NEW',
|
|
96
96
|
Active: 'ACTIVE',
|
|
97
97
|
PaymentFailed: 'PAYMENT_FAILED',
|
|
98
98
|
Inactive: 'INACTIVE'
|
|
99
99
|
} as const;
|
|
100
|
-
export type
|
|
100
|
+
export type AgencySummaryResponseStatusEnum = typeof AgencySummaryResponseStatusEnum[keyof typeof AgencySummaryResponseStatusEnum];
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* Check if a given object implements the
|
|
104
|
+
* Check if a given object implements the AgencySummaryResponse interface.
|
|
105
105
|
*/
|
|
106
|
-
export function
|
|
106
|
+
export function instanceOfAgencySummaryResponse(value: object): value is AgencySummaryResponse {
|
|
107
107
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
108
108
|
if (!('owner' in value) || value['owner'] === undefined) return false;
|
|
109
109
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
@@ -116,11 +116,11 @@ export function instanceOfAgencyPeekViewResponse(value: object): value is Agency
|
|
|
116
116
|
return true;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export function
|
|
120
|
-
return
|
|
119
|
+
export function AgencySummaryResponseFromJSON(json: any): AgencySummaryResponse {
|
|
120
|
+
return AgencySummaryResponseFromJSONTyped(json, false);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export function
|
|
123
|
+
export function AgencySummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencySummaryResponse {
|
|
124
124
|
if (json == null) {
|
|
125
125
|
return json;
|
|
126
126
|
}
|
|
@@ -140,11 +140,11 @@ export function AgencyPeekViewResponseFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
export function
|
|
144
|
-
return
|
|
143
|
+
export function AgencySummaryResponseToJSON(json: any): AgencySummaryResponse {
|
|
144
|
+
return AgencySummaryResponseToJSONTyped(json, false);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
export function
|
|
147
|
+
export function AgencySummaryResponseToJSONTyped(value?: AgencySummaryResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
148
148
|
if (value == null) {
|
|
149
149
|
return value;
|
|
150
150
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Service API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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 AssignRoleRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AssignRoleRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AssignRoleRequest
|
|
26
|
+
*/
|
|
27
|
+
roleId: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AssignRoleRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAssignRoleRequest(value: object): value is AssignRoleRequest {
|
|
34
|
+
if (!('roleId' in value) || value['roleId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AssignRoleRequestFromJSON(json: any): AssignRoleRequest {
|
|
39
|
+
return AssignRoleRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AssignRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignRoleRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'roleId': json['roleId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AssignRoleRequestToJSON(json: any): AssignRoleRequest {
|
|
53
|
+
return AssignRoleRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AssignRoleRequestToJSONTyped(value?: AssignRoleRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'roleId': value['roleId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|