@homespot-sdk/api 0.0.632 → 0.0.634
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 +20 -0
- package/README.md +27 -13
- package/dist/apis/AgencyControllerApi.d.ts +0 -14
- package/dist/apis/AgencyControllerApi.js +10 -38
- package/dist/apis/AgencyQueryControllerApi.d.ts +53 -1
- package/dist/apis/AgencyQueryControllerApi.js +79 -1
- package/dist/apis/InvitationControllerApi.d.ts +0 -2
- package/dist/apis/InvitationControllerApi.js +5 -7
- package/dist/apis/InvitationQueryControllerApi.d.ts +27 -5
- package/dist/apis/InvitationQueryControllerApi.js +45 -5
- package/dist/apis/MemberQueryControllerApi.d.ts +46 -0
- package/dist/apis/MemberQueryControllerApi.js +67 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AgencyControllerApi.d.ts +0 -14
- package/dist/esm/apis/AgencyControllerApi.js +10 -38
- package/dist/esm/apis/AgencyQueryControllerApi.d.ts +53 -1
- package/dist/esm/apis/AgencyQueryControllerApi.js +79 -1
- package/dist/esm/apis/InvitationControllerApi.d.ts +0 -2
- package/dist/esm/apis/InvitationControllerApi.js +5 -7
- package/dist/esm/apis/InvitationQueryControllerApi.d.ts +27 -5
- package/dist/esm/apis/InvitationQueryControllerApi.js +46 -6
- package/dist/esm/apis/MemberQueryControllerApi.d.ts +46 -0
- package/dist/esm/apis/MemberQueryControllerApi.js +63 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgencyPeekViewResponse.d.ts +102 -0
- package/dist/esm/models/AgencyPeekViewResponse.js +88 -0
- package/dist/esm/models/InvitationDetailsRequest.d.ts +38 -0
- package/dist/esm/models/InvitationDetailsRequest.js +47 -0
- package/dist/esm/models/InvitationDetailsResponse.d.ts +72 -0
- package/dist/esm/models/InvitationDetailsResponse.js +70 -0
- package/dist/esm/models/InviteMemberRequest.d.ts +3 -2
- package/dist/esm/models/InviteMemberRequest.js +3 -2
- package/dist/esm/models/MemberViewResponse.d.ts +74 -0
- package/dist/esm/models/MemberViewResponse.js +69 -0
- package/dist/esm/models/PageMetadata.d.ts +50 -0
- package/dist/esm/models/PageMetadata.js +47 -0
- package/dist/esm/models/Pageable.d.ts +44 -0
- package/dist/esm/models/Pageable.js +45 -0
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.js +45 -0
- package/dist/esm/models/PagedModelInvitationViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelInvitationViewResponse.js +45 -0
- package/dist/esm/models/PagedModelMemberViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelMemberViewResponse.js +45 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/AgencyPeekViewResponse.d.ts +102 -0
- package/dist/models/AgencyPeekViewResponse.js +96 -0
- package/dist/models/InvitationDetailsRequest.d.ts +38 -0
- package/dist/models/InvitationDetailsRequest.js +54 -0
- package/dist/models/InvitationDetailsResponse.d.ts +72 -0
- package/dist/models/InvitationDetailsResponse.js +78 -0
- package/dist/models/InviteMemberRequest.d.ts +3 -2
- package/dist/models/InviteMemberRequest.js +3 -2
- package/dist/models/MemberViewResponse.d.ts +74 -0
- package/dist/models/MemberViewResponse.js +76 -0
- package/dist/models/PageMetadata.d.ts +50 -0
- package/dist/models/PageMetadata.js +54 -0
- package/dist/models/Pageable.d.ts +44 -0
- package/dist/models/Pageable.js +52 -0
- package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
- package/dist/models/PagedModelAgencyPeekViewResponse.js +52 -0
- package/dist/models/PagedModelInvitationViewResponse.d.ts +40 -0
- package/dist/models/PagedModelInvitationViewResponse.js +52 -0
- package/dist/models/PagedModelMemberViewResponse.d.ts +40 -0
- package/dist/models/PagedModelMemberViewResponse.js +52 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/AgencyControllerApi.md +20 -41
- package/docs/AgencyPeekViewResponse.md +54 -0
- package/docs/AgencyQueryControllerApi.md +143 -0
- package/docs/InvitationControllerApi.md +3 -6
- package/docs/InvitationDetailsRequest.md +36 -0
- package/docs/InvitationDetailsResponse.md +44 -0
- package/docs/InvitationQueryControllerApi.md +78 -5
- package/docs/InviteMemberRequest.md +1 -1
- package/docs/MemberQueryControllerApi.md +78 -0
- package/docs/MemberViewResponse.md +48 -0
- package/docs/PageMetadata.md +40 -0
- package/docs/Pageable.md +38 -0
- package/docs/PagedModelAgencyPeekViewResponse.md +36 -0
- package/docs/PagedModelInvitationViewResponse.md +36 -0
- package/docs/PagedModelMemberViewResponse.md +36 -0
- package/package.json +1 -1
- package/src/apis/AgencyControllerApi.ts +10 -80
- package/src/apis/AgencyQueryControllerApi.ts +143 -0
- package/src/apis/InvitationControllerApi.ts +6 -13
- package/src/apis/InvitationQueryControllerApi.ts +91 -12
- package/src/apis/MemberQueryControllerApi.ts +102 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AgencyPeekViewResponse.ts +167 -0
- package/src/models/InvitationDetailsRequest.ts +75 -0
- package/src/models/InvitationDetailsResponse.ts +123 -0
- package/src/models/InviteMemberRequest.ts +12 -4
- package/src/models/MemberViewResponse.ts +128 -0
- package/src/models/PageMetadata.ts +89 -0
- package/src/models/Pageable.ts +81 -0
- package/src/models/PagedModelAgencyPeekViewResponse.ts +88 -0
- package/src/models/PagedModelInvitationViewResponse.ts +88 -0
- package/src/models/PagedModelMemberViewResponse.ts +88 -0
- package/src/models/index.ts +9 -0
|
@@ -15,17 +15,35 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AgencyPeekViewResponse,
|
|
18
19
|
AgencyViewResponse,
|
|
20
|
+
Pageable,
|
|
21
|
+
PagedModelAgencyPeekViewResponse,
|
|
19
22
|
} from '../models/index';
|
|
20
23
|
import {
|
|
24
|
+
AgencyPeekViewResponseFromJSON,
|
|
25
|
+
AgencyPeekViewResponseToJSON,
|
|
21
26
|
AgencyViewResponseFromJSON,
|
|
22
27
|
AgencyViewResponseToJSON,
|
|
28
|
+
PageableFromJSON,
|
|
29
|
+
PageableToJSON,
|
|
30
|
+
PagedModelAgencyPeekViewResponseFromJSON,
|
|
31
|
+
PagedModelAgencyPeekViewResponseToJSON,
|
|
23
32
|
} from '../models/index';
|
|
24
33
|
|
|
25
34
|
export interface GetAgencyRequest {
|
|
26
35
|
agencyId: string;
|
|
27
36
|
}
|
|
28
37
|
|
|
38
|
+
export interface GetAgencyBySubdomainRequest {
|
|
39
|
+
subDomain: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface GetAllAgenciesRequest {
|
|
43
|
+
pageable: Pageable;
|
|
44
|
+
status?: GetAllAgenciesStatusEnum;
|
|
45
|
+
}
|
|
46
|
+
|
|
29
47
|
/**
|
|
30
48
|
* AgencyQueryControllerApi - interface
|
|
31
49
|
*
|
|
@@ -46,6 +64,33 @@ export interface AgencyQueryControllerApiInterface {
|
|
|
46
64
|
*/
|
|
47
65
|
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
|
|
48
66
|
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @param {string} subDomain
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
* @memberof AgencyQueryControllerApiInterface
|
|
73
|
+
*/
|
|
74
|
+
getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyPeekViewResponse>>;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
*/
|
|
78
|
+
getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyPeekViewResponse>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @param {Pageable} pageable
|
|
83
|
+
* @param {'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE'} [status]
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
* @memberof AgencyQueryControllerApiInterface
|
|
87
|
+
*/
|
|
88
|
+
getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelAgencyPeekViewResponse>>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
*/
|
|
92
|
+
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencyPeekViewResponse>;
|
|
93
|
+
|
|
49
94
|
}
|
|
50
95
|
|
|
51
96
|
/**
|
|
@@ -93,4 +138,102 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
|
|
|
93
138
|
return await response.value();
|
|
94
139
|
}
|
|
95
140
|
|
|
141
|
+
/**
|
|
142
|
+
*/
|
|
143
|
+
async getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyPeekViewResponse>> {
|
|
144
|
+
if (requestParameters['subDomain'] == null) {
|
|
145
|
+
throw new runtime.RequiredError(
|
|
146
|
+
'subDomain',
|
|
147
|
+
'Required parameter "subDomain" was null or undefined when calling getAgencyBySubdomain().'
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const queryParameters: any = {};
|
|
152
|
+
|
|
153
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
154
|
+
|
|
155
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
156
|
+
// oauth required
|
|
157
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
let urlPath = `/agency/subdomain/{subDomain}`;
|
|
162
|
+
urlPath = urlPath.replace(`{${"subDomain"}}`, encodeURIComponent(String(requestParameters['subDomain'])));
|
|
163
|
+
|
|
164
|
+
const response = await this.request({
|
|
165
|
+
path: urlPath,
|
|
166
|
+
method: 'GET',
|
|
167
|
+
headers: headerParameters,
|
|
168
|
+
query: queryParameters,
|
|
169
|
+
}, initOverrides);
|
|
170
|
+
|
|
171
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgencyPeekViewResponseFromJSON(jsonValue));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
*/
|
|
176
|
+
async getAgencyBySubdomain(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyPeekViewResponse> {
|
|
177
|
+
const response = await this.getAgencyBySubdomainRaw(requestParameters, initOverrides);
|
|
178
|
+
return await response.value();
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
*/
|
|
183
|
+
async getAllAgenciesRaw(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelAgencyPeekViewResponse>> {
|
|
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
|
+
|
|
191
|
+
const queryParameters: any = {};
|
|
192
|
+
|
|
193
|
+
if (requestParameters['status'] != null) {
|
|
194
|
+
queryParameters['status'] = requestParameters['status'];
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (requestParameters['pageable'] != null) {
|
|
198
|
+
queryParameters['pageable'] = requestParameters['pageable'];
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
202
|
+
|
|
203
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
204
|
+
// oauth required
|
|
205
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
let urlPath = `/agency`;
|
|
210
|
+
|
|
211
|
+
const response = await this.request({
|
|
212
|
+
path: urlPath,
|
|
213
|
+
method: 'GET',
|
|
214
|
+
headers: headerParameters,
|
|
215
|
+
query: queryParameters,
|
|
216
|
+
}, initOverrides);
|
|
217
|
+
|
|
218
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PagedModelAgencyPeekViewResponseFromJSON(jsonValue));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
*/
|
|
223
|
+
async getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencyPeekViewResponse> {
|
|
224
|
+
const response = await this.getAllAgenciesRaw(requestParameters, initOverrides);
|
|
225
|
+
return await response.value();
|
|
226
|
+
}
|
|
227
|
+
|
|
96
228
|
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @export
|
|
232
|
+
*/
|
|
233
|
+
export const GetAllAgenciesStatusEnum = {
|
|
234
|
+
New: 'NEW',
|
|
235
|
+
Active: 'ACTIVE',
|
|
236
|
+
PaymentFailed: 'PAYMENT_FAILED',
|
|
237
|
+
Inactive: 'INACTIVE'
|
|
238
|
+
} as const;
|
|
239
|
+
export type GetAllAgenciesStatusEnum = typeof GetAllAgenciesStatusEnum[keyof typeof GetAllAgenciesStatusEnum];
|
|
@@ -28,7 +28,6 @@ export interface InviteAcceptedRequest {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export interface InviteMemberOperationRequest {
|
|
31
|
-
agencyId: string;
|
|
32
31
|
inviteMemberRequest: InviteMemberRequest;
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -55,7 +54,6 @@ export interface InvitationControllerApiInterface {
|
|
|
55
54
|
|
|
56
55
|
/**
|
|
57
56
|
*
|
|
58
|
-
* @param {string} agencyId
|
|
59
57
|
* @param {InviteMemberRequest} inviteMemberRequest
|
|
60
58
|
* @param {*} [options] Override http request option.
|
|
61
59
|
* @throws {RequiredError}
|
|
@@ -93,6 +91,10 @@ export class InvitationControllerApi extends runtime.BaseAPI implements Invitati
|
|
|
93
91
|
|
|
94
92
|
const queryParameters: any = {};
|
|
95
93
|
|
|
94
|
+
if (requestParameters['agencyId'] != null) {
|
|
95
|
+
queryParameters['agencyId'] = requestParameters['agencyId'];
|
|
96
|
+
}
|
|
97
|
+
|
|
96
98
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
97
99
|
|
|
98
100
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -101,8 +103,7 @@ export class InvitationControllerApi extends runtime.BaseAPI implements Invitati
|
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
|
|
104
|
-
let urlPath = `/
|
|
105
|
-
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
106
|
+
let urlPath = `/invitation/{invitationId}`;
|
|
106
107
|
urlPath = urlPath.replace(`{${"invitationId"}}`, encodeURIComponent(String(requestParameters['invitationId'])));
|
|
107
108
|
|
|
108
109
|
const response = await this.request({
|
|
@@ -124,13 +125,6 @@ export class InvitationControllerApi extends runtime.BaseAPI implements Invitati
|
|
|
124
125
|
/**
|
|
125
126
|
*/
|
|
126
127
|
async inviteMemberRaw(requestParameters: InviteMemberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
127
|
-
if (requestParameters['agencyId'] == null) {
|
|
128
|
-
throw new runtime.RequiredError(
|
|
129
|
-
'agencyId',
|
|
130
|
-
'Required parameter "agencyId" was null or undefined when calling inviteMember().'
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
128
|
if (requestParameters['inviteMemberRequest'] == null) {
|
|
135
129
|
throw new runtime.RequiredError(
|
|
136
130
|
'inviteMemberRequest',
|
|
@@ -150,8 +144,7 @@ export class InvitationControllerApi extends runtime.BaseAPI implements Invitati
|
|
|
150
144
|
}
|
|
151
145
|
|
|
152
146
|
|
|
153
|
-
let urlPath = `/
|
|
154
|
-
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
147
|
+
let urlPath = `/invitation`;
|
|
155
148
|
|
|
156
149
|
const response = await this.request({
|
|
157
150
|
path: urlPath,
|
|
@@ -15,14 +15,25 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
InvitationDetailsResponse,
|
|
19
|
+
Pageable,
|
|
20
|
+
PagedModelInvitationViewResponse,
|
|
19
21
|
} from '../models/index';
|
|
20
22
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
InvitationDetailsResponseFromJSON,
|
|
24
|
+
InvitationDetailsResponseToJSON,
|
|
25
|
+
PageableFromJSON,
|
|
26
|
+
PageableToJSON,
|
|
27
|
+
PagedModelInvitationViewResponseFromJSON,
|
|
28
|
+
PagedModelInvitationViewResponseToJSON,
|
|
23
29
|
} from '../models/index';
|
|
24
30
|
|
|
25
31
|
export interface GetAllInvitationsRequest {
|
|
32
|
+
pageable: Pageable;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface GetInvitationDetailsRequest {
|
|
36
|
+
invitationId: string;
|
|
26
37
|
agencyId: string;
|
|
27
38
|
}
|
|
28
39
|
|
|
@@ -35,16 +46,30 @@ export interface GetAllInvitationsRequest {
|
|
|
35
46
|
export interface InvitationQueryControllerApiInterface {
|
|
36
47
|
/**
|
|
37
48
|
*
|
|
49
|
+
* @param {Pageable} pageable
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
* @memberof InvitationQueryControllerApiInterface
|
|
53
|
+
*/
|
|
54
|
+
getAllInvitationsRaw(requestParameters: GetAllInvitationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelInvitationViewResponse>>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*/
|
|
58
|
+
getAllInvitations(requestParameters: GetAllInvitationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelInvitationViewResponse>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @param {string} invitationId
|
|
38
63
|
* @param {string} agencyId
|
|
39
64
|
* @param {*} [options] Override http request option.
|
|
40
65
|
* @throws {RequiredError}
|
|
41
66
|
* @memberof InvitationQueryControllerApiInterface
|
|
42
67
|
*/
|
|
43
|
-
|
|
68
|
+
getInvitationDetailsRaw(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitationDetailsResponse>>;
|
|
44
69
|
|
|
45
70
|
/**
|
|
46
71
|
*/
|
|
47
|
-
|
|
72
|
+
getInvitationDetails(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitationDetailsResponse>;
|
|
48
73
|
|
|
49
74
|
}
|
|
50
75
|
|
|
@@ -55,16 +80,70 @@ export class InvitationQueryControllerApi extends runtime.BaseAPI implements Inv
|
|
|
55
80
|
|
|
56
81
|
/**
|
|
57
82
|
*/
|
|
58
|
-
async getAllInvitationsRaw(requestParameters: GetAllInvitationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
83
|
+
async getAllInvitationsRaw(requestParameters: GetAllInvitationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelInvitationViewResponse>> {
|
|
84
|
+
if (requestParameters['pageable'] == null) {
|
|
85
|
+
throw new runtime.RequiredError(
|
|
86
|
+
'pageable',
|
|
87
|
+
'Required parameter "pageable" was null or undefined when calling getAllInvitations().'
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const queryParameters: any = {};
|
|
92
|
+
|
|
93
|
+
if (requestParameters['pageable'] != null) {
|
|
94
|
+
queryParameters['pageable'] = requestParameters['pageable'];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
98
|
+
|
|
99
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
100
|
+
// oauth required
|
|
101
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
let urlPath = `/invitation`;
|
|
106
|
+
|
|
107
|
+
const response = await this.request({
|
|
108
|
+
path: urlPath,
|
|
109
|
+
method: 'GET',
|
|
110
|
+
headers: headerParameters,
|
|
111
|
+
query: queryParameters,
|
|
112
|
+
}, initOverrides);
|
|
113
|
+
|
|
114
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PagedModelInvitationViewResponseFromJSON(jsonValue));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
*/
|
|
119
|
+
async getAllInvitations(requestParameters: GetAllInvitationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelInvitationViewResponse> {
|
|
120
|
+
const response = await this.getAllInvitationsRaw(requestParameters, initOverrides);
|
|
121
|
+
return await response.value();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
*/
|
|
126
|
+
async getInvitationDetailsRaw(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvitationDetailsResponse>> {
|
|
127
|
+
if (requestParameters['invitationId'] == null) {
|
|
128
|
+
throw new runtime.RequiredError(
|
|
129
|
+
'invitationId',
|
|
130
|
+
'Required parameter "invitationId" was null or undefined when calling getInvitationDetails().'
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
59
134
|
if (requestParameters['agencyId'] == null) {
|
|
60
135
|
throw new runtime.RequiredError(
|
|
61
136
|
'agencyId',
|
|
62
|
-
'Required parameter "agencyId" was null or undefined when calling
|
|
137
|
+
'Required parameter "agencyId" was null or undefined when calling getInvitationDetails().'
|
|
63
138
|
);
|
|
64
139
|
}
|
|
65
140
|
|
|
66
141
|
const queryParameters: any = {};
|
|
67
142
|
|
|
143
|
+
if (requestParameters['agencyId'] != null) {
|
|
144
|
+
queryParameters['agencyId'] = requestParameters['agencyId'];
|
|
145
|
+
}
|
|
146
|
+
|
|
68
147
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
69
148
|
|
|
70
149
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -73,8 +152,8 @@ export class InvitationQueryControllerApi extends runtime.BaseAPI implements Inv
|
|
|
73
152
|
}
|
|
74
153
|
|
|
75
154
|
|
|
76
|
-
let urlPath = `/
|
|
77
|
-
urlPath = urlPath.replace(`{${"
|
|
155
|
+
let urlPath = `/invitation/{invitationId}`;
|
|
156
|
+
urlPath = urlPath.replace(`{${"invitationId"}}`, encodeURIComponent(String(requestParameters['invitationId'])));
|
|
78
157
|
|
|
79
158
|
const response = await this.request({
|
|
80
159
|
path: urlPath,
|
|
@@ -83,13 +162,13 @@ export class InvitationQueryControllerApi extends runtime.BaseAPI implements Inv
|
|
|
83
162
|
query: queryParameters,
|
|
84
163
|
}, initOverrides);
|
|
85
164
|
|
|
86
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
165
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InvitationDetailsResponseFromJSON(jsonValue));
|
|
87
166
|
}
|
|
88
167
|
|
|
89
168
|
/**
|
|
90
169
|
*/
|
|
91
|
-
async
|
|
92
|
-
const response = await this.
|
|
170
|
+
async getInvitationDetails(requestParameters: GetInvitationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvitationDetailsResponse> {
|
|
171
|
+
const response = await this.getInvitationDetailsRaw(requestParameters, initOverrides);
|
|
93
172
|
return await response.value();
|
|
94
173
|
}
|
|
95
174
|
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
Pageable,
|
|
19
|
+
PagedModelMemberViewResponse,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
PageableFromJSON,
|
|
23
|
+
PageableToJSON,
|
|
24
|
+
PagedModelMemberViewResponseFromJSON,
|
|
25
|
+
PagedModelMemberViewResponseToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface GetAllMembersRequest {
|
|
29
|
+
pageable: Pageable;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* MemberQueryControllerApi - interface
|
|
34
|
+
*
|
|
35
|
+
* @export
|
|
36
|
+
* @interface MemberQueryControllerApiInterface
|
|
37
|
+
*/
|
|
38
|
+
export interface MemberQueryControllerApiInterface {
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @param {Pageable} pageable
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
* @memberof MemberQueryControllerApiInterface
|
|
45
|
+
*/
|
|
46
|
+
getAllMembersRaw(requestParameters: GetAllMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelMemberViewResponse>>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
*/
|
|
50
|
+
getAllMembers(requestParameters: GetAllMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelMemberViewResponse>;
|
|
51
|
+
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
export class MemberQueryControllerApi extends runtime.BaseAPI implements MemberQueryControllerApiInterface {
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
*/
|
|
61
|
+
async getAllMembersRaw(requestParameters: GetAllMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedModelMemberViewResponse>> {
|
|
62
|
+
if (requestParameters['pageable'] == null) {
|
|
63
|
+
throw new runtime.RequiredError(
|
|
64
|
+
'pageable',
|
|
65
|
+
'Required parameter "pageable" was null or undefined when calling getAllMembers().'
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const queryParameters: any = {};
|
|
70
|
+
|
|
71
|
+
if (requestParameters['pageable'] != null) {
|
|
72
|
+
queryParameters['pageable'] = requestParameters['pageable'];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
76
|
+
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
// oauth required
|
|
79
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
let urlPath = `/member`;
|
|
84
|
+
|
|
85
|
+
const response = await this.request({
|
|
86
|
+
path: urlPath,
|
|
87
|
+
method: 'GET',
|
|
88
|
+
headers: headerParameters,
|
|
89
|
+
query: queryParameters,
|
|
90
|
+
}, initOverrides);
|
|
91
|
+
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PagedModelMemberViewResponseFromJSON(jsonValue));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
*/
|
|
97
|
+
async getAllMembers(requestParameters: GetAllMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelMemberViewResponse> {
|
|
98
|
+
const response = await this.getAllMembersRaw(requestParameters, initOverrides);
|
|
99
|
+
return await response.value();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Service API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AgencyPeekViewResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface AgencyPeekViewResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgencyPeekViewResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AgencyPeekViewResponse
|
|
32
|
+
*/
|
|
33
|
+
owner: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AgencyPeekViewResponse
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AgencyPeekViewResponse
|
|
44
|
+
*/
|
|
45
|
+
email: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AgencyPeekViewResponse
|
|
50
|
+
*/
|
|
51
|
+
seats: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AgencyPeekViewResponse
|
|
56
|
+
*/
|
|
57
|
+
subDomain: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AgencyPeekViewResponse
|
|
62
|
+
*/
|
|
63
|
+
phone: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof AgencyPeekViewResponse
|
|
68
|
+
*/
|
|
69
|
+
website?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof AgencyPeekViewResponse
|
|
74
|
+
*/
|
|
75
|
+
yearSince: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof AgencyPeekViewResponse
|
|
80
|
+
*/
|
|
81
|
+
status: AgencyPeekViewResponseStatusEnum;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof AgencyPeekViewResponse
|
|
86
|
+
*/
|
|
87
|
+
logo?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const AgencyPeekViewResponseStatusEnum = {
|
|
95
|
+
New: 'NEW',
|
|
96
|
+
Active: 'ACTIVE',
|
|
97
|
+
PaymentFailed: 'PAYMENT_FAILED',
|
|
98
|
+
Inactive: 'INACTIVE'
|
|
99
|
+
} as const;
|
|
100
|
+
export type AgencyPeekViewResponseStatusEnum = typeof AgencyPeekViewResponseStatusEnum[keyof typeof AgencyPeekViewResponseStatusEnum];
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the AgencyPeekViewResponse interface.
|
|
105
|
+
*/
|
|
106
|
+
export function instanceOfAgencyPeekViewResponse(value: object): value is AgencyPeekViewResponse {
|
|
107
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
108
|
+
if (!('owner' in value) || value['owner'] === undefined) return false;
|
|
109
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
110
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
111
|
+
if (!('seats' in value) || value['seats'] === undefined) return false;
|
|
112
|
+
if (!('subDomain' in value) || value['subDomain'] === undefined) return false;
|
|
113
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
114
|
+
if (!('yearSince' in value) || value['yearSince'] === undefined) return false;
|
|
115
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function AgencyPeekViewResponseFromJSON(json: any): AgencyPeekViewResponse {
|
|
120
|
+
return AgencyPeekViewResponseFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function AgencyPeekViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyPeekViewResponse {
|
|
124
|
+
if (json == null) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'id': json['id'],
|
|
130
|
+
'owner': json['owner'],
|
|
131
|
+
'name': json['name'],
|
|
132
|
+
'email': json['email'],
|
|
133
|
+
'seats': json['seats'],
|
|
134
|
+
'subDomain': json['subDomain'],
|
|
135
|
+
'phone': json['phone'],
|
|
136
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
137
|
+
'yearSince': json['yearSince'],
|
|
138
|
+
'status': json['status'],
|
|
139
|
+
'logo': json['logo'] == null ? undefined : json['logo'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function AgencyPeekViewResponseToJSON(json: any): AgencyPeekViewResponse {
|
|
144
|
+
return AgencyPeekViewResponseToJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function AgencyPeekViewResponseToJSONTyped(value?: AgencyPeekViewResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
148
|
+
if (value == null) {
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'id': value['id'],
|
|
155
|
+
'owner': value['owner'],
|
|
156
|
+
'name': value['name'],
|
|
157
|
+
'email': value['email'],
|
|
158
|
+
'seats': value['seats'],
|
|
159
|
+
'subDomain': value['subDomain'],
|
|
160
|
+
'phone': value['phone'],
|
|
161
|
+
'website': value['website'],
|
|
162
|
+
'yearSince': value['yearSince'],
|
|
163
|
+
'status': value['status'],
|
|
164
|
+
'logo': value['logo'],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|