@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
|
@@ -15,20 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
PagedModelAgencyPeekViewResponse,
|
|
18
|
+
AgencyProfileResponse,
|
|
19
|
+
AgencySummaryResponse,
|
|
20
|
+
PagedModelAgencySummaryResponse,
|
|
22
21
|
} from '../models/index';
|
|
23
22
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
PagedModelAgencyPeekViewResponseFromJSON,
|
|
31
|
-
PagedModelAgencyPeekViewResponseToJSON,
|
|
23
|
+
AgencyProfileResponseFromJSON,
|
|
24
|
+
AgencyProfileResponseToJSON,
|
|
25
|
+
AgencySummaryResponseFromJSON,
|
|
26
|
+
AgencySummaryResponseToJSON,
|
|
27
|
+
PagedModelAgencySummaryResponseFromJSON,
|
|
28
|
+
PagedModelAgencySummaryResponseToJSON,
|
|
32
29
|
} from '../models/index';
|
|
33
30
|
|
|
34
31
|
export interface GetAgencyRequest {
|
|
@@ -40,67 +37,71 @@ export interface GetAgencyBySubdomainRequest {
|
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
export interface GetAllAgenciesRequest {
|
|
43
|
-
pageable: Pageable;
|
|
44
40
|
status?: GetAllAgenciesStatusEnum;
|
|
41
|
+
page?: number;
|
|
42
|
+
size?: number;
|
|
43
|
+
sort?: Array<string>;
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
/**
|
|
48
|
-
*
|
|
47
|
+
* PublicAgencyControllerApi - interface
|
|
49
48
|
*
|
|
50
49
|
* @export
|
|
51
|
-
* @interface
|
|
50
|
+
* @interface PublicAgencyControllerApiInterface
|
|
52
51
|
*/
|
|
53
|
-
export interface
|
|
52
|
+
export interface PublicAgencyControllerApiInterface {
|
|
54
53
|
/**
|
|
55
54
|
*
|
|
56
55
|
* @param {string} agencyId
|
|
57
56
|
* @param {*} [options] Override http request option.
|
|
58
57
|
* @throws {RequiredError}
|
|
59
|
-
* @memberof
|
|
58
|
+
* @memberof PublicAgencyControllerApiInterface
|
|
60
59
|
*/
|
|
61
|
-
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
60
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyProfileResponse>>;
|
|
62
61
|
|
|
63
62
|
/**
|
|
64
63
|
*/
|
|
65
|
-
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
64
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyProfileResponse>;
|
|
66
65
|
|
|
67
66
|
/**
|
|
68
67
|
*
|
|
69
68
|
* @param {string} subDomain
|
|
70
69
|
* @param {*} [options] Override http request option.
|
|
71
70
|
* @throws {RequiredError}
|
|
72
|
-
* @memberof
|
|
71
|
+
* @memberof PublicAgencyControllerApiInterface
|
|
73
72
|
*/
|
|
74
|
-
getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
73
|
+
getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencySummaryResponse>>;
|
|
75
74
|
|
|
76
75
|
/**
|
|
77
76
|
*/
|
|
78
|
-
getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
77
|
+
getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencySummaryResponse>;
|
|
79
78
|
|
|
80
79
|
/**
|
|
81
80
|
*
|
|
82
|
-
* @param {Pageable} pageable
|
|
83
81
|
* @param {'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE'} [status]
|
|
82
|
+
* @param {number} [page] Zero-based page index (0..N)
|
|
83
|
+
* @param {number} [size] The size of the page to be returned
|
|
84
|
+
* @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
84
85
|
* @param {*} [options] Override http request option.
|
|
85
86
|
* @throws {RequiredError}
|
|
86
|
-
* @memberof
|
|
87
|
+
* @memberof PublicAgencyControllerApiInterface
|
|
87
88
|
*/
|
|
88
|
-
getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
89
|
+
getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelAgencySummaryResponse>>;
|
|
89
90
|
|
|
90
91
|
/**
|
|
91
92
|
*/
|
|
92
|
-
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
93
|
+
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencySummaryResponse>;
|
|
93
94
|
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
/**
|
|
97
98
|
*
|
|
98
99
|
*/
|
|
99
|
-
export class
|
|
100
|
+
export class PublicAgencyControllerApi extends runtime.BaseAPI implements PublicAgencyControllerApiInterface {
|
|
100
101
|
|
|
101
102
|
/**
|
|
102
103
|
*/
|
|
103
|
-
async getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
104
|
+
async getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyProfileResponse>> {
|
|
104
105
|
if (requestParameters['agencyId'] == null) {
|
|
105
106
|
throw new runtime.RequiredError(
|
|
106
107
|
'agencyId',
|
|
@@ -118,7 +119,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
|
|
121
|
-
let urlPath = `/agency/{agencyId}`;
|
|
122
|
+
let urlPath = `/public/agency/{agencyId}`;
|
|
122
123
|
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
123
124
|
|
|
124
125
|
const response = await this.request({
|
|
@@ -128,19 +129,19 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
128
129
|
query: queryParameters,
|
|
129
130
|
}, initOverrides);
|
|
130
131
|
|
|
131
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgencyProfileResponseFromJSON(jsonValue));
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
/**
|
|
135
136
|
*/
|
|
136
|
-
async getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
137
|
+
async getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyProfileResponse> {
|
|
137
138
|
const response = await this.getAgencyRaw(requestParameters, initOverrides);
|
|
138
139
|
return await response.value();
|
|
139
140
|
}
|
|
140
141
|
|
|
141
142
|
/**
|
|
142
143
|
*/
|
|
143
|
-
async getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
144
|
+
async getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencySummaryResponse>> {
|
|
144
145
|
if (requestParameters['subDomain'] == null) {
|
|
145
146
|
throw new runtime.RequiredError(
|
|
146
147
|
'subDomain',
|
|
@@ -158,7 +159,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
158
159
|
}
|
|
159
160
|
|
|
160
161
|
|
|
161
|
-
let urlPath = `/agency/subdomain/{subDomain}`;
|
|
162
|
+
let urlPath = `/public/agency/subdomain/{subDomain}`;
|
|
162
163
|
urlPath = urlPath.replace(`{${"subDomain"}}`, encodeURIComponent(String(requestParameters['subDomain'])));
|
|
163
164
|
|
|
164
165
|
const response = await this.request({
|
|
@@ -168,34 +169,35 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
168
169
|
query: queryParameters,
|
|
169
170
|
}, initOverrides);
|
|
170
171
|
|
|
171
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
172
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgencySummaryResponseFromJSON(jsonValue));
|
|
172
173
|
}
|
|
173
174
|
|
|
174
175
|
/**
|
|
175
176
|
*/
|
|
176
|
-
async getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
177
|
+
async getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencySummaryResponse> {
|
|
177
178
|
const response = await this.getAgencyBySubdomainRaw(requestParameters, initOverrides);
|
|
178
179
|
return await response.value();
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
/**
|
|
182
183
|
*/
|
|
183
|
-
async getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
184
|
-
if (requestParameters['pageable'] == null) {
|
|
185
|
-
throw new runtime.RequiredError(
|
|
186
|
-
'pageable',
|
|
187
|
-
'Required parameter "pageable" was null or undefined when calling getAllAgencies().'
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
|
|
184
|
+
async getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelAgencySummaryResponse>> {
|
|
191
185
|
const queryParameters: any = {};
|
|
192
186
|
|
|
193
187
|
if (requestParameters['status'] != null) {
|
|
194
188
|
queryParameters['status'] = requestParameters['status'];
|
|
195
189
|
}
|
|
196
190
|
|
|
197
|
-
if (requestParameters['
|
|
198
|
-
queryParameters['
|
|
191
|
+
if (requestParameters['page'] != null) {
|
|
192
|
+
queryParameters['page'] = requestParameters['page'];
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (requestParameters['size'] != null) {
|
|
196
|
+
queryParameters['size'] = requestParameters['size'];
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (requestParameters['sort'] != null) {
|
|
200
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
199
201
|
}
|
|
200
202
|
|
|
201
203
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -206,7 +208,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
206
208
|
}
|
|
207
209
|
|
|
208
210
|
|
|
209
|
-
let urlPath = `/agency`;
|
|
211
|
+
let urlPath = `/public/agency`;
|
|
210
212
|
|
|
211
213
|
const response = await this.request({
|
|
212
214
|
path: urlPath,
|
|
@@ -215,12 +217,12 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
215
217
|
query: queryParameters,
|
|
216
218
|
}, initOverrides);
|
|
217
219
|
|
|
218
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
220
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PagedModelAgencySummaryResponseFromJSON(jsonValue));
|
|
219
221
|
}
|
|
220
222
|
|
|
221
223
|
/**
|
|
222
224
|
*/
|
|
223
|
-
async getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
225
|
+
async getAllAgencies(requestParameters: GetAllAgenciesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencySummaryResponse> {
|
|
224
226
|
const response = await this.getAllAgenciesRaw(requestParameters, initOverrides);
|
|
225
227
|
return await response.value();
|
|
226
228
|
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
InvitationDetailsResponse,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
InvitationDetailsResponseFromJSON,
|
|
22
|
+
InvitationDetailsResponseToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface GetInvitationDetailsRequest {
|
|
26
|
+
invitationId: string;
|
|
27
|
+
agencyId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* PublicInvitationControllerApi - interface
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PublicInvitationControllerApiInterface
|
|
35
|
+
*/
|
|
36
|
+
export interface PublicInvitationControllerApiInterface {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param {string} invitationId
|
|
40
|
+
* @param {string} agencyId
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
* @memberof PublicInvitationControllerApiInterface
|
|
44
|
+
*/
|
|
45
|
+
getInvitationDetailsRaw(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitationDetailsResponse>>;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
*/
|
|
49
|
+
getInvitationDetails(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitationDetailsResponse>;
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
export class PublicInvitationControllerApi extends runtime.BaseAPI implements PublicInvitationControllerApiInterface {
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
*/
|
|
60
|
+
async getInvitationDetailsRaw(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitationDetailsResponse>> {
|
|
61
|
+
if (requestParameters['invitationId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError(
|
|
63
|
+
'invitationId',
|
|
64
|
+
'Required parameter "invitationId" was null or undefined when calling getInvitationDetails().'
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (requestParameters['agencyId'] == null) {
|
|
69
|
+
throw new runtime.RequiredError(
|
|
70
|
+
'agencyId',
|
|
71
|
+
'Required parameter "agencyId" was null or undefined when calling getInvitationDetails().'
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const queryParameters: any = {};
|
|
76
|
+
|
|
77
|
+
if (requestParameters['agencyId'] != null) {
|
|
78
|
+
queryParameters['agencyId'] = requestParameters['agencyId'];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
82
|
+
|
|
83
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
84
|
+
// oauth required
|
|
85
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
let urlPath = `/public/invitation/{invitationId}`;
|
|
90
|
+
urlPath = urlPath.replace(`{${"invitationId"}}`, encodeURIComponent(String(requestParameters['invitationId'])));
|
|
91
|
+
|
|
92
|
+
const response = await this.request({
|
|
93
|
+
path: urlPath,
|
|
94
|
+
method: 'GET',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
}, initOverrides);
|
|
98
|
+
|
|
99
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InvitationDetailsResponseFromJSON(jsonValue));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
*/
|
|
104
|
+
async getInvitationDetails(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitationDetailsResponse> {
|
|
105
|
+
const response = await this.getInvitationDetailsRaw(requestParameters, initOverrides);
|
|
106
|
+
return await response.value();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
GroupedPermissionsResponse,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
GroupedPermissionsResponseFromJSON,
|
|
22
|
+
GroupedPermissionsResponseToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* PublicRoleControllerApi - interface
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface PublicRoleControllerApiInterface
|
|
30
|
+
*/
|
|
31
|
+
export interface PublicRoleControllerApiInterface {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
* @memberof PublicRoleControllerApiInterface
|
|
37
|
+
*/
|
|
38
|
+
listPermissionCatalogRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GroupedPermissionsResponse>>>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
*/
|
|
42
|
+
listPermissionCatalog(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GroupedPermissionsResponse>>;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export class PublicRoleControllerApi extends runtime.BaseAPI implements PublicRoleControllerApiInterface {
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*/
|
|
53
|
+
async listPermissionCatalogRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GroupedPermissionsResponse>>> {
|
|
54
|
+
const queryParameters: any = {};
|
|
55
|
+
|
|
56
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
57
|
+
|
|
58
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
59
|
+
// oauth required
|
|
60
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
let urlPath = `/agency/roles/permissions`;
|
|
65
|
+
|
|
66
|
+
const response = await this.request({
|
|
67
|
+
path: urlPath,
|
|
68
|
+
method: 'GET',
|
|
69
|
+
headers: headerParameters,
|
|
70
|
+
query: queryParameters,
|
|
71
|
+
}, initOverrides);
|
|
72
|
+
|
|
73
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GroupedPermissionsResponseFromJSON));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
*/
|
|
78
|
+
async listPermissionCatalog(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GroupedPermissionsResponse>> {
|
|
79
|
+
const response = await this.listPermissionCatalogRaw(initOverrides);
|
|
80
|
+
return await response.value();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
}
|
|
@@ -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
|
+
}
|