@homespot-sdk/api 0.0.634 → 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 +34 -10
- package/README.md +28 -17
- 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 -22
- package/dist/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +19 -16
- 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 -22
- package/dist/esm/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +18 -15
- 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 +49 -0
- package/dist/esm/models/GroupedPermissionsResponse.js +57 -0
- package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +10 -7
- package/dist/esm/models/OrganizationSummaryViewResponse.js +11 -8
- 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 +64 -0
- package/dist/esm/models/PermissionResponse.js +71 -0
- package/dist/esm/models/RoleResponse.d.ts +63 -0
- package/dist/esm/models/RoleResponse.js +67 -0
- package/dist/esm/models/RolesRequest.d.ts +10 -7
- package/dist/esm/models/RolesRequest.js +11 -8
- package/dist/esm/models/SortObject.d.ts +44 -0
- package/dist/esm/models/SortObject.js +45 -0
- package/dist/esm/models/index.d.ts +11 -4
- package/dist/esm/models/index.js +11 -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 +49 -0
- package/dist/models/GroupedPermissionsResponse.js +65 -0
- package/dist/models/OrganizationSummaryViewResponse.d.ts +10 -7
- package/dist/models/OrganizationSummaryViewResponse.js +12 -9
- 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 +64 -0
- package/dist/models/PermissionResponse.js +79 -0
- package/dist/models/RoleResponse.d.ts +63 -0
- package/dist/models/RoleResponse.js +75 -0
- package/dist/models/RolesRequest.d.ts +10 -7
- package/dist/models/RolesRequest.js +12 -9
- package/dist/models/SortObject.d.ts +44 -0
- package/dist/models/SortObject.js +52 -0
- package/dist/models/index.d.ts +11 -4
- package/dist/models/index.js +11 -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/GroupedPermissionsResponse.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/OrganizationSummaryViewResponse.md +2 -2
- package/docs/PageRoleResponse.md +54 -0
- package/docs/PageableObject.md +44 -0
- package/docs/{PagedModelAgencyPeekViewResponse.md → PagedModelAgencySummaryResponse.md} +5 -5
- package/docs/PermissionResponse.md +36 -0
- package/docs/{AgencyQueryControllerApi.md → PublicAgencyControllerApi.md} +25 -19
- 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/RolesRequest.md +2 -2
- 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} +50 -48
- 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 +96 -0
- package/src/models/OrganizationSummaryViewResponse.ts +13 -10
- 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 +105 -0
- package/src/models/RoleResponse.ts +109 -0
- package/src/models/RolesRequest.ts +13 -10
- package/src/models/SortObject.ts +81 -0
- package/src/models/index.ts +11 -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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { AgencyProfileResponse, AgencySummaryResponse, PagedModelAgencySummaryResponse } from '../models/index';
|
|
14
14
|
export interface GetAgencyRequest {
|
|
15
15
|
agencyId: string;
|
|
16
16
|
}
|
|
@@ -18,73 +18,77 @@ export interface GetAgencyBySubdomainRequest {
|
|
|
18
18
|
subDomain: string;
|
|
19
19
|
}
|
|
20
20
|
export interface GetAllAgenciesRequest {
|
|
21
|
-
pageable: Pageable;
|
|
22
21
|
status?: GetAllAgenciesStatusEnum;
|
|
22
|
+
page?: number;
|
|
23
|
+
size?: number;
|
|
24
|
+
sort?: Array<string>;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
|
-
*
|
|
27
|
+
* PublicAgencyControllerApi - interface
|
|
26
28
|
*
|
|
27
29
|
* @export
|
|
28
|
-
* @interface
|
|
30
|
+
* @interface PublicAgencyControllerApiInterface
|
|
29
31
|
*/
|
|
30
|
-
export interface
|
|
32
|
+
export interface PublicAgencyControllerApiInterface {
|
|
31
33
|
/**
|
|
32
34
|
*
|
|
33
35
|
* @param {string} agencyId
|
|
34
36
|
* @param {*} [options] Override http request option.
|
|
35
37
|
* @throws {RequiredError}
|
|
36
|
-
* @memberof
|
|
38
|
+
* @memberof PublicAgencyControllerApiInterface
|
|
37
39
|
*/
|
|
38
|
-
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
40
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyProfileResponse>>;
|
|
39
41
|
/**
|
|
40
42
|
*/
|
|
41
|
-
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
43
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyProfileResponse>;
|
|
42
44
|
/**
|
|
43
45
|
*
|
|
44
46
|
* @param {string} subDomain
|
|
45
47
|
* @param {*} [options] Override http request option.
|
|
46
48
|
* @throws {RequiredError}
|
|
47
|
-
* @memberof
|
|
49
|
+
* @memberof PublicAgencyControllerApiInterface
|
|
48
50
|
*/
|
|
49
|
-
getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
51
|
+
getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencySummaryResponse>>;
|
|
50
52
|
/**
|
|
51
53
|
*/
|
|
52
|
-
getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
54
|
+
getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencySummaryResponse>;
|
|
53
55
|
/**
|
|
54
56
|
*
|
|
55
|
-
* @param {Pageable} pageable
|
|
56
57
|
* @param {'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE'} [status]
|
|
58
|
+
* @param {number} [page] Zero-based page index (0..N)
|
|
59
|
+
* @param {number} [size] The size of the page to be returned
|
|
60
|
+
* @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
57
61
|
* @param {*} [options] Override http request option.
|
|
58
62
|
* @throws {RequiredError}
|
|
59
|
-
* @memberof
|
|
63
|
+
* @memberof PublicAgencyControllerApiInterface
|
|
60
64
|
*/
|
|
61
|
-
getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
65
|
+
getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelAgencySummaryResponse>>;
|
|
62
66
|
/**
|
|
63
67
|
*/
|
|
64
|
-
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
68
|
+
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencySummaryResponse>;
|
|
65
69
|
}
|
|
66
70
|
/**
|
|
67
71
|
*
|
|
68
72
|
*/
|
|
69
|
-
export declare class
|
|
73
|
+
export declare class PublicAgencyControllerApi extends runtime.BaseAPI implements PublicAgencyControllerApiInterface {
|
|
70
74
|
/**
|
|
71
75
|
*/
|
|
72
|
-
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
76
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyProfileResponse>>;
|
|
73
77
|
/**
|
|
74
78
|
*/
|
|
75
|
-
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
79
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyProfileResponse>;
|
|
76
80
|
/**
|
|
77
81
|
*/
|
|
78
|
-
getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
82
|
+
getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencySummaryResponse>>;
|
|
79
83
|
/**
|
|
80
84
|
*/
|
|
81
|
-
getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
85
|
+
getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencySummaryResponse>;
|
|
82
86
|
/**
|
|
83
87
|
*/
|
|
84
|
-
getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
88
|
+
getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelAgencySummaryResponse>>;
|
|
85
89
|
/**
|
|
86
90
|
*/
|
|
87
|
-
getAllAgencies(requestParameters
|
|
91
|
+
getAllAgencies(requestParameters?: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencySummaryResponse>;
|
|
88
92
|
}
|
|
89
93
|
/**
|
|
90
94
|
* @export
|
|
@@ -21,11 +21,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import {
|
|
24
|
+
import { AgencyProfileResponseFromJSON, AgencySummaryResponseFromJSON, PagedModelAgencySummaryResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
|
-
export class
|
|
28
|
+
export class PublicAgencyControllerApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
30
|
*/
|
|
31
31
|
getAgencyRaw(requestParameters, initOverrides) {
|
|
@@ -39,7 +39,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI {
|
|
|
39
39
|
// oauth required
|
|
40
40
|
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
41
41
|
}
|
|
42
|
-
let urlPath = `/agency/{agencyId}`;
|
|
42
|
+
let urlPath = `/public/agency/{agencyId}`;
|
|
43
43
|
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
44
44
|
const response = yield this.request({
|
|
45
45
|
path: urlPath,
|
|
@@ -47,7 +47,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI {
|
|
|
47
47
|
headers: headerParameters,
|
|
48
48
|
query: queryParameters,
|
|
49
49
|
}, initOverrides);
|
|
50
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
50
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgencyProfileResponseFromJSON(jsonValue));
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
@@ -71,7 +71,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI {
|
|
|
71
71
|
// oauth required
|
|
72
72
|
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
73
73
|
}
|
|
74
|
-
let urlPath = `/agency/subdomain/{subDomain}`;
|
|
74
|
+
let urlPath = `/public/agency/subdomain/{subDomain}`;
|
|
75
75
|
urlPath = urlPath.replace(`{${"subDomain"}}`, encodeURIComponent(String(requestParameters['subDomain'])));
|
|
76
76
|
const response = yield this.request({
|
|
77
77
|
path: urlPath,
|
|
@@ -79,7 +79,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI {
|
|
|
79
79
|
headers: headerParameters,
|
|
80
80
|
query: queryParameters,
|
|
81
81
|
}, initOverrides);
|
|
82
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgencySummaryResponseFromJSON(jsonValue));
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
@@ -94,35 +94,38 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI {
|
|
|
94
94
|
*/
|
|
95
95
|
getAllAgenciesRaw(requestParameters, initOverrides) {
|
|
96
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
-
if (requestParameters['pageable'] == null) {
|
|
98
|
-
throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getAllAgencies().');
|
|
99
|
-
}
|
|
100
97
|
const queryParameters = {};
|
|
101
98
|
if (requestParameters['status'] != null) {
|
|
102
99
|
queryParameters['status'] = requestParameters['status'];
|
|
103
100
|
}
|
|
104
|
-
if (requestParameters['
|
|
105
|
-
queryParameters['
|
|
101
|
+
if (requestParameters['page'] != null) {
|
|
102
|
+
queryParameters['page'] = requestParameters['page'];
|
|
103
|
+
}
|
|
104
|
+
if (requestParameters['size'] != null) {
|
|
105
|
+
queryParameters['size'] = requestParameters['size'];
|
|
106
|
+
}
|
|
107
|
+
if (requestParameters['sort'] != null) {
|
|
108
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
106
109
|
}
|
|
107
110
|
const headerParameters = {};
|
|
108
111
|
if (this.configuration && this.configuration.accessToken) {
|
|
109
112
|
// oauth required
|
|
110
113
|
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
111
114
|
}
|
|
112
|
-
let urlPath = `/agency`;
|
|
115
|
+
let urlPath = `/public/agency`;
|
|
113
116
|
const response = yield this.request({
|
|
114
117
|
path: urlPath,
|
|
115
118
|
method: 'GET',
|
|
116
119
|
headers: headerParameters,
|
|
117
120
|
query: queryParameters,
|
|
118
121
|
}, initOverrides);
|
|
119
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
122
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PagedModelAgencySummaryResponseFromJSON(jsonValue));
|
|
120
123
|
});
|
|
121
124
|
}
|
|
122
125
|
/**
|
|
123
126
|
*/
|
|
124
|
-
getAllAgencies(
|
|
125
|
-
return __awaiter(this,
|
|
127
|
+
getAllAgencies() {
|
|
128
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
126
129
|
const response = yield this.getAllAgenciesRaw(requestParameters, initOverrides);
|
|
127
130
|
return yield response.value();
|
|
128
131
|
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { InvitationDetailsResponse } from '../models/index';
|
|
14
|
+
export interface GetInvitationDetailsRequest {
|
|
15
|
+
invitationId: string;
|
|
16
|
+
agencyId: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* PublicInvitationControllerApi - interface
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface PublicInvitationControllerApiInterface
|
|
23
|
+
*/
|
|
24
|
+
export interface PublicInvitationControllerApiInterface {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param {string} invitationId
|
|
28
|
+
* @param {string} agencyId
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
* @memberof PublicInvitationControllerApiInterface
|
|
32
|
+
*/
|
|
33
|
+
getInvitationDetailsRaw(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitationDetailsResponse>>;
|
|
34
|
+
/**
|
|
35
|
+
*/
|
|
36
|
+
getInvitationDetails(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitationDetailsResponse>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export declare class PublicInvitationControllerApi extends runtime.BaseAPI implements PublicInvitationControllerApiInterface {
|
|
42
|
+
/**
|
|
43
|
+
*/
|
|
44
|
+
getInvitationDetailsRaw(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitationDetailsResponse>>;
|
|
45
|
+
/**
|
|
46
|
+
*/
|
|
47
|
+
getInvitationDetails(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitationDetailsResponse>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { InvitationDetailsResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class PublicInvitationControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
*/
|
|
31
|
+
getInvitationDetailsRaw(requestParameters, initOverrides) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
if (requestParameters['invitationId'] == null) {
|
|
34
|
+
throw new runtime.RequiredError('invitationId', 'Required parameter "invitationId" was null or undefined when calling getInvitationDetails().');
|
|
35
|
+
}
|
|
36
|
+
if (requestParameters['agencyId'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling getInvitationDetails().');
|
|
38
|
+
}
|
|
39
|
+
const queryParameters = {};
|
|
40
|
+
if (requestParameters['agencyId'] != null) {
|
|
41
|
+
queryParameters['agencyId'] = requestParameters['agencyId'];
|
|
42
|
+
}
|
|
43
|
+
const headerParameters = {};
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
// oauth required
|
|
46
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
47
|
+
}
|
|
48
|
+
let urlPath = `/public/invitation/{invitationId}`;
|
|
49
|
+
urlPath = urlPath.replace(`{${"invitationId"}}`, encodeURIComponent(String(requestParameters['invitationId'])));
|
|
50
|
+
const response = yield this.request({
|
|
51
|
+
path: urlPath,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
}, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InvitationDetailsResponseFromJSON(jsonValue));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
*/
|
|
61
|
+
getInvitationDetails(requestParameters, initOverrides) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const response = yield this.getInvitationDetailsRaw(requestParameters, initOverrides);
|
|
64
|
+
return yield response.value();
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { GroupedPermissionsResponse } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
* PublicRoleControllerApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PublicRoleControllerApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface PublicRoleControllerApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
* @memberof PublicRoleControllerApiInterface
|
|
26
|
+
*/
|
|
27
|
+
listPermissionCatalogRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GroupedPermissionsResponse>>>;
|
|
28
|
+
/**
|
|
29
|
+
*/
|
|
30
|
+
listPermissionCatalog(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GroupedPermissionsResponse>>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare class PublicRoleControllerApi extends runtime.BaseAPI implements PublicRoleControllerApiInterface {
|
|
36
|
+
/**
|
|
37
|
+
*/
|
|
38
|
+
listPermissionCatalogRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GroupedPermissionsResponse>>>;
|
|
39
|
+
/**
|
|
40
|
+
*/
|
|
41
|
+
listPermissionCatalog(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GroupedPermissionsResponse>>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { GroupedPermissionsResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class PublicRoleControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
*/
|
|
31
|
+
listPermissionCatalogRaw(initOverrides) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const queryParameters = {};
|
|
34
|
+
const headerParameters = {};
|
|
35
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
36
|
+
// oauth required
|
|
37
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
38
|
+
}
|
|
39
|
+
let urlPath = `/agency/roles/permissions`;
|
|
40
|
+
const response = yield this.request({
|
|
41
|
+
path: urlPath,
|
|
42
|
+
method: 'GET',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
}, initOverrides);
|
|
46
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GroupedPermissionsResponseFromJSON));
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
*/
|
|
51
|
+
listPermissionCatalog(initOverrides) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const response = yield this.listPermissionCatalogRaw(initOverrides);
|
|
54
|
+
return yield response.value();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { IdResponse, RolesRequest } from '../models/index';
|
|
14
|
+
export interface CreateRoleRequest {
|
|
15
|
+
rolesRequest: RolesRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface RemoveRoleRequest {
|
|
18
|
+
roleId: number;
|
|
19
|
+
}
|
|
20
|
+
export interface UpdateRoleRequest {
|
|
21
|
+
roleId: number;
|
|
22
|
+
rolesRequest: RolesRequest;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* RoleControllerApi - interface
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RoleControllerApiInterface
|
|
29
|
+
*/
|
|
30
|
+
export interface RoleControllerApiInterface {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @param {RolesRequest} rolesRequest
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
* @memberof RoleControllerApiInterface
|
|
37
|
+
*/
|
|
38
|
+
createRoleRaw(requestParameters: CreateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdResponse>>;
|
|
39
|
+
/**
|
|
40
|
+
*/
|
|
41
|
+
createRole(requestParameters: CreateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponse>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @param {number} roleId
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
* @memberof RoleControllerApiInterface
|
|
48
|
+
*/
|
|
49
|
+
removeRoleRaw(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
50
|
+
/**
|
|
51
|
+
*/
|
|
52
|
+
removeRole(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @param {number} roleId
|
|
56
|
+
* @param {RolesRequest} rolesRequest
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
* @memberof RoleControllerApiInterface
|
|
60
|
+
*/
|
|
61
|
+
updateRoleRaw(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
62
|
+
/**
|
|
63
|
+
*/
|
|
64
|
+
updateRole(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
export declare class RoleControllerApi extends runtime.BaseAPI implements RoleControllerApiInterface {
|
|
70
|
+
/**
|
|
71
|
+
*/
|
|
72
|
+
createRoleRaw(requestParameters: CreateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdResponse>>;
|
|
73
|
+
/**
|
|
74
|
+
*/
|
|
75
|
+
createRole(requestParameters: CreateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponse>;
|
|
76
|
+
/**
|
|
77
|
+
*/
|
|
78
|
+
removeRoleRaw(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
79
|
+
/**
|
|
80
|
+
*/
|
|
81
|
+
removeRole(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
*/
|
|
84
|
+
updateRoleRaw(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
85
|
+
/**
|
|
86
|
+
*/
|
|
87
|
+
updateRole(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
88
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { IdResponseFromJSON, RolesRequestToJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class RoleControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
*/
|
|
31
|
+
createRoleRaw(requestParameters, initOverrides) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
if (requestParameters['rolesRequest'] == null) {
|
|
34
|
+
throw new runtime.RequiredError('rolesRequest', 'Required parameter "rolesRequest" was null or undefined when calling createRole().');
|
|
35
|
+
}
|
|
36
|
+
const queryParameters = {};
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
// oauth required
|
|
41
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
42
|
+
}
|
|
43
|
+
let urlPath = `/roles`;
|
|
44
|
+
const response = yield this.request({
|
|
45
|
+
path: urlPath,
|
|
46
|
+
method: 'POST',
|
|
47
|
+
headers: headerParameters,
|
|
48
|
+
query: queryParameters,
|
|
49
|
+
body: RolesRequestToJSON(requestParameters['rolesRequest']),
|
|
50
|
+
}, initOverrides);
|
|
51
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IdResponseFromJSON(jsonValue));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
*/
|
|
56
|
+
createRole(requestParameters, initOverrides) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const response = yield this.createRoleRaw(requestParameters, initOverrides);
|
|
59
|
+
return yield response.value();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
*/
|
|
64
|
+
removeRoleRaw(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
if (requestParameters['roleId'] == null) {
|
|
67
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling removeRole().');
|
|
68
|
+
}
|
|
69
|
+
const queryParameters = {};
|
|
70
|
+
const headerParameters = {};
|
|
71
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
72
|
+
// oauth required
|
|
73
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
74
|
+
}
|
|
75
|
+
let urlPath = `/roles/{roleId}`;
|
|
76
|
+
urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
|
|
77
|
+
const response = yield this.request({
|
|
78
|
+
path: urlPath,
|
|
79
|
+
method: 'DELETE',
|
|
80
|
+
headers: headerParameters,
|
|
81
|
+
query: queryParameters,
|
|
82
|
+
}, initOverrides);
|
|
83
|
+
return new runtime.VoidApiResponse(response);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
*/
|
|
88
|
+
removeRole(requestParameters, initOverrides) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
yield this.removeRoleRaw(requestParameters, initOverrides);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
*/
|
|
95
|
+
updateRoleRaw(requestParameters, initOverrides) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
if (requestParameters['roleId'] == null) {
|
|
98
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling updateRole().');
|
|
99
|
+
}
|
|
100
|
+
if (requestParameters['rolesRequest'] == null) {
|
|
101
|
+
throw new runtime.RequiredError('rolesRequest', 'Required parameter "rolesRequest" was null or undefined when calling updateRole().');
|
|
102
|
+
}
|
|
103
|
+
const queryParameters = {};
|
|
104
|
+
const headerParameters = {};
|
|
105
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
106
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
107
|
+
// oauth required
|
|
108
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
109
|
+
}
|
|
110
|
+
let urlPath = `/roles/{roleId}`;
|
|
111
|
+
urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
|
|
112
|
+
const response = yield this.request({
|
|
113
|
+
path: urlPath,
|
|
114
|
+
method: 'PUT',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
body: RolesRequestToJSON(requestParameters['rolesRequest']),
|
|
118
|
+
}, initOverrides);
|
|
119
|
+
return new runtime.VoidApiResponse(response);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
*/
|
|
124
|
+
updateRole(requestParameters, initOverrides) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
yield this.updateRoleRaw(requestParameters, initOverrides);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|