@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
|
@@ -15,23 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Pageable,
|
|
22
|
-
PagedModelAgencyPeekViewResponse,
|
|
18
|
+
AgencyProfileResponse,
|
|
19
|
+
AgencySummaryResponse,
|
|
20
|
+
PagedModelAgencySummaryResponse,
|
|
23
21
|
} from '../models/index';
|
|
24
22
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
PageableFromJSON,
|
|
32
|
-
PageableToJSON,
|
|
33
|
-
PagedModelAgencyPeekViewResponseFromJSON,
|
|
34
|
-
PagedModelAgencyPeekViewResponseToJSON,
|
|
23
|
+
AgencyProfileResponseFromJSON,
|
|
24
|
+
AgencyProfileResponseToJSON,
|
|
25
|
+
AgencySummaryResponseFromJSON,
|
|
26
|
+
AgencySummaryResponseToJSON,
|
|
27
|
+
PagedModelAgencySummaryResponseFromJSON,
|
|
28
|
+
PagedModelAgencySummaryResponseToJSON,
|
|
35
29
|
} from '../models/index';
|
|
36
30
|
|
|
37
31
|
export interface GetAgencyRequest {
|
|
@@ -43,79 +37,71 @@ export interface GetAgencyBySubdomainRequest {
|
|
|
43
37
|
}
|
|
44
38
|
|
|
45
39
|
export interface GetAllAgenciesRequest {
|
|
46
|
-
pageable: Pageable;
|
|
47
40
|
status?: GetAllAgenciesStatusEnum;
|
|
41
|
+
page?: number;
|
|
42
|
+
size?: number;
|
|
43
|
+
sort?: Array<string>;
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
/**
|
|
51
|
-
*
|
|
47
|
+
* PublicAgencyControllerApi - interface
|
|
52
48
|
*
|
|
53
49
|
* @export
|
|
54
|
-
* @interface
|
|
50
|
+
* @interface PublicAgencyControllerApiInterface
|
|
55
51
|
*/
|
|
56
|
-
export interface
|
|
52
|
+
export interface PublicAgencyControllerApiInterface {
|
|
57
53
|
/**
|
|
58
54
|
*
|
|
59
55
|
* @param {string} agencyId
|
|
60
56
|
* @param {*} [options] Override http request option.
|
|
61
57
|
* @throws {RequiredError}
|
|
62
|
-
* @memberof
|
|
58
|
+
* @memberof PublicAgencyControllerApiInterface
|
|
63
59
|
*/
|
|
64
|
-
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
60
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyProfileResponse>>;
|
|
65
61
|
|
|
66
62
|
/**
|
|
67
63
|
*/
|
|
68
|
-
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
64
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyProfileResponse>;
|
|
69
65
|
|
|
70
66
|
/**
|
|
71
67
|
*
|
|
72
68
|
* @param {string} subDomain
|
|
73
69
|
* @param {*} [options] Override http request option.
|
|
74
70
|
* @throws {RequiredError}
|
|
75
|
-
* @memberof
|
|
71
|
+
* @memberof PublicAgencyControllerApiInterface
|
|
76
72
|
*/
|
|
77
|
-
getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
73
|
+
getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencySummaryResponse>>;
|
|
78
74
|
|
|
79
75
|
/**
|
|
80
76
|
*/
|
|
81
|
-
getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
77
|
+
getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencySummaryResponse>;
|
|
82
78
|
|
|
83
79
|
/**
|
|
84
80
|
*
|
|
85
|
-
* @param {Pageable} pageable
|
|
86
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.
|
|
87
85
|
* @param {*} [options] Override http request option.
|
|
88
86
|
* @throws {RequiredError}
|
|
89
|
-
* @memberof
|
|
87
|
+
* @memberof PublicAgencyControllerApiInterface
|
|
90
88
|
*/
|
|
91
|
-
getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
89
|
+
getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelAgencySummaryResponse>>;
|
|
92
90
|
|
|
93
91
|
/**
|
|
94
92
|
*/
|
|
95
|
-
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @param {*} [options] Override http request option.
|
|
100
|
-
* @throws {RequiredError}
|
|
101
|
-
* @memberof AgencyQueryControllerApiInterface
|
|
102
|
-
*/
|
|
103
|
-
getAllPermissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GroupedPermissionsResponse>>>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
*/
|
|
107
|
-
getAllPermissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GroupedPermissionsResponse>>;
|
|
93
|
+
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencySummaryResponse>;
|
|
108
94
|
|
|
109
95
|
}
|
|
110
96
|
|
|
111
97
|
/**
|
|
112
98
|
*
|
|
113
99
|
*/
|
|
114
|
-
export class
|
|
100
|
+
export class PublicAgencyControllerApi extends runtime.BaseAPI implements PublicAgencyControllerApiInterface {
|
|
115
101
|
|
|
116
102
|
/**
|
|
117
103
|
*/
|
|
118
|
-
async getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
104
|
+
async getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyProfileResponse>> {
|
|
119
105
|
if (requestParameters['agencyId'] == null) {
|
|
120
106
|
throw new runtime.RequiredError(
|
|
121
107
|
'agencyId',
|
|
@@ -133,7 +119,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
133
119
|
}
|
|
134
120
|
|
|
135
121
|
|
|
136
|
-
let urlPath = `/agency/{agencyId}`;
|
|
122
|
+
let urlPath = `/public/agency/{agencyId}`;
|
|
137
123
|
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
138
124
|
|
|
139
125
|
const response = await this.request({
|
|
@@ -143,19 +129,19 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
143
129
|
query: queryParameters,
|
|
144
130
|
}, initOverrides);
|
|
145
131
|
|
|
146
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgencyProfileResponseFromJSON(jsonValue));
|
|
147
133
|
}
|
|
148
134
|
|
|
149
135
|
/**
|
|
150
136
|
*/
|
|
151
|
-
async getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
137
|
+
async getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyProfileResponse> {
|
|
152
138
|
const response = await this.getAgencyRaw(requestParameters, initOverrides);
|
|
153
139
|
return await response.value();
|
|
154
140
|
}
|
|
155
141
|
|
|
156
142
|
/**
|
|
157
143
|
*/
|
|
158
|
-
async getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
144
|
+
async getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencySummaryResponse>> {
|
|
159
145
|
if (requestParameters['subDomain'] == null) {
|
|
160
146
|
throw new runtime.RequiredError(
|
|
161
147
|
'subDomain',
|
|
@@ -173,7 +159,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
173
159
|
}
|
|
174
160
|
|
|
175
161
|
|
|
176
|
-
let urlPath = `/agency/subdomain/{subDomain}`;
|
|
162
|
+
let urlPath = `/public/agency/subdomain/{subDomain}`;
|
|
177
163
|
urlPath = urlPath.replace(`{${"subDomain"}}`, encodeURIComponent(String(requestParameters['subDomain'])));
|
|
178
164
|
|
|
179
165
|
const response = await this.request({
|
|
@@ -183,67 +169,36 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
183
169
|
query: queryParameters,
|
|
184
170
|
}, initOverrides);
|
|
185
171
|
|
|
186
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
172
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgencySummaryResponseFromJSON(jsonValue));
|
|
187
173
|
}
|
|
188
174
|
|
|
189
175
|
/**
|
|
190
176
|
*/
|
|
191
|
-
async getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
177
|
+
async getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencySummaryResponse> {
|
|
192
178
|
const response = await this.getAgencyBySubdomainRaw(requestParameters, initOverrides);
|
|
193
179
|
return await response.value();
|
|
194
180
|
}
|
|
195
181
|
|
|
196
182
|
/**
|
|
197
183
|
*/
|
|
198
|
-
async getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
199
|
-
if (requestParameters['pageable'] == null) {
|
|
200
|
-
throw new runtime.RequiredError(
|
|
201
|
-
'pageable',
|
|
202
|
-
'Required parameter "pageable" was null or undefined when calling getAllAgencies().'
|
|
203
|
-
);
|
|
204
|
-
}
|
|
205
|
-
|
|
184
|
+
async getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelAgencySummaryResponse>> {
|
|
206
185
|
const queryParameters: any = {};
|
|
207
186
|
|
|
208
187
|
if (requestParameters['status'] != null) {
|
|
209
188
|
queryParameters['status'] = requestParameters['status'];
|
|
210
189
|
}
|
|
211
190
|
|
|
212
|
-
if (requestParameters['
|
|
213
|
-
queryParameters['
|
|
191
|
+
if (requestParameters['page'] != null) {
|
|
192
|
+
queryParameters['page'] = requestParameters['page'];
|
|
214
193
|
}
|
|
215
194
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
219
|
-
// oauth required
|
|
220
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
195
|
+
if (requestParameters['size'] != null) {
|
|
196
|
+
queryParameters['size'] = requestParameters['size'];
|
|
221
197
|
}
|
|
222
198
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
const response = await this.request({
|
|
227
|
-
path: urlPath,
|
|
228
|
-
method: 'GET',
|
|
229
|
-
headers: headerParameters,
|
|
230
|
-
query: queryParameters,
|
|
231
|
-
}, initOverrides);
|
|
232
|
-
|
|
233
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PagedModelAgencyPeekViewResponseFromJSON(jsonValue));
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
*/
|
|
238
|
-
async getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencyPeekViewResponse> {
|
|
239
|
-
const response = await this.getAllAgenciesRaw(requestParameters, initOverrides);
|
|
240
|
-
return await response.value();
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
*/
|
|
245
|
-
async getAllPermissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GroupedPermissionsResponse>>> {
|
|
246
|
-
const queryParameters: any = {};
|
|
199
|
+
if (requestParameters['sort'] != null) {
|
|
200
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
201
|
+
}
|
|
247
202
|
|
|
248
203
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
249
204
|
|
|
@@ -253,7 +208,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
253
208
|
}
|
|
254
209
|
|
|
255
210
|
|
|
256
|
-
let urlPath = `/agency
|
|
211
|
+
let urlPath = `/public/agency`;
|
|
257
212
|
|
|
258
213
|
const response = await this.request({
|
|
259
214
|
path: urlPath,
|
|
@@ -262,13 +217,13 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
262
217
|
query: queryParameters,
|
|
263
218
|
}, initOverrides);
|
|
264
219
|
|
|
265
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
220
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PagedModelAgencySummaryResponseFromJSON(jsonValue));
|
|
266
221
|
}
|
|
267
222
|
|
|
268
223
|
/**
|
|
269
224
|
*/
|
|
270
|
-
async
|
|
271
|
-
const response = await this.
|
|
225
|
+
async getAllAgencies(requestParameters: GetAllAgenciesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencySummaryResponse> {
|
|
226
|
+
const response = await this.getAllAgenciesRaw(requestParameters, initOverrides);
|
|
272
227
|
return await response.value();
|
|
273
228
|
}
|
|
274
229
|
|
|
@@ -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
|
+
}
|