@homespot-sdk/api 0.0.6
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 +43 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +149 -0
- package/dist/apis/AgencyControllerApi.d.ts +222 -0
- package/dist/apis/AgencyControllerApi.js +356 -0
- package/dist/apis/AgencyQueryControllerApi.d.ts +45 -0
- package/dist/apis/AgencyQueryControllerApi.js +63 -0
- package/dist/apis/InvitationControllerApi.d.ts +70 -0
- package/dist/apis/InvitationControllerApi.js +104 -0
- package/dist/apis/InvitationQueryControllerApi.d.ts +46 -0
- package/dist/apis/InvitationQueryControllerApi.js +65 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +22 -0
- package/dist/esm/apis/AgencyControllerApi.d.ts +222 -0
- package/dist/esm/apis/AgencyControllerApi.js +352 -0
- package/dist/esm/apis/AgencyQueryControllerApi.d.ts +45 -0
- package/dist/esm/apis/AgencyQueryControllerApi.js +59 -0
- package/dist/esm/apis/InvitationControllerApi.d.ts +70 -0
- package/dist/esm/apis/InvitationControllerApi.js +100 -0
- package/dist/esm/apis/InvitationQueryControllerApi.d.ts +46 -0
- package/dist/esm/apis/InvitationQueryControllerApi.js +61 -0
- package/dist/esm/apis/index.d.ts +4 -0
- package/dist/esm/apis/index.js +6 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AddressRequest.d.ts +56 -0
- package/dist/esm/models/AddressRequest.js +59 -0
- package/dist/esm/models/CreateAgencyRequest.d.ts +69 -0
- package/dist/esm/models/CreateAgencyRequest.js +68 -0
- package/dist/esm/models/IdResponse.d.ts +32 -0
- package/dist/esm/models/IdResponse.js +43 -0
- package/dist/esm/models/InvitationViewResponse.d.ts +79 -0
- package/dist/esm/models/InvitationViewResponse.js +73 -0
- package/dist/esm/models/InviteMemberRequest.d.ts +32 -0
- package/dist/esm/models/InviteMemberRequest.js +43 -0
- package/dist/esm/models/PhotoRequest.d.ts +60 -0
- package/dist/esm/models/PhotoRequest.js +62 -0
- package/dist/esm/models/PresignedUrlResponse.d.ts +44 -0
- package/dist/esm/models/PresignedUrlResponse.js +51 -0
- package/dist/esm/models/PresignedUrlsResponse.d.ts +33 -0
- package/dist/esm/models/PresignedUrlsResponse.js +44 -0
- package/dist/esm/models/RolesRequest.d.ts +54 -0
- package/dist/esm/models/RolesRequest.js +60 -0
- package/dist/esm/models/SocialMediaRequest.d.ts +49 -0
- package/dist/esm/models/SocialMediaRequest.js +55 -0
- package/dist/esm/models/SocialMediasRequest.d.ts +33 -0
- package/dist/esm/models/SocialMediasRequest.js +44 -0
- package/dist/esm/models/UploadAcknowledgmentResponse.d.ts +38 -0
- package/dist/esm/models/UploadAcknowledgmentResponse.js +47 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AddressRequest.d.ts +56 -0
- package/dist/models/AddressRequest.js +66 -0
- package/dist/models/CreateAgencyRequest.d.ts +69 -0
- package/dist/models/CreateAgencyRequest.js +75 -0
- package/dist/models/IdResponse.d.ts +32 -0
- package/dist/models/IdResponse.js +50 -0
- package/dist/models/InvitationViewResponse.d.ts +79 -0
- package/dist/models/InvitationViewResponse.js +81 -0
- package/dist/models/InviteMemberRequest.d.ts +32 -0
- package/dist/models/InviteMemberRequest.js +50 -0
- package/dist/models/PhotoRequest.d.ts +60 -0
- package/dist/models/PhotoRequest.js +70 -0
- package/dist/models/PresignedUrlResponse.d.ts +44 -0
- package/dist/models/PresignedUrlResponse.js +58 -0
- package/dist/models/PresignedUrlsResponse.d.ts +33 -0
- package/dist/models/PresignedUrlsResponse.js +51 -0
- package/dist/models/RolesRequest.d.ts +54 -0
- package/dist/models/RolesRequest.js +68 -0
- package/dist/models/SocialMediaRequest.d.ts +49 -0
- package/dist/models/SocialMediaRequest.js +63 -0
- package/dist/models/SocialMediasRequest.d.ts +33 -0
- package/dist/models/SocialMediasRequest.js +51 -0
- package/dist/models/UploadAcknowledgmentResponse.d.ts +38 -0
- package/dist/models/UploadAcknowledgmentResponse.js +54 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +30 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/docs/AddressRequest.md +42 -0
- package/docs/AgencyControllerApi.md +662 -0
- package/docs/AgencyQueryControllerApi.md +78 -0
- package/docs/CreateAgencyRequest.md +46 -0
- package/docs/IdResponse.md +34 -0
- package/docs/InvitationControllerApi.md +154 -0
- package/docs/InvitationQueryControllerApi.md +78 -0
- package/docs/InvitationViewResponse.md +46 -0
- package/docs/InviteMemberRequest.md +34 -0
- package/docs/PhotoRequest.md +40 -0
- package/docs/PresignedUrlResponse.md +38 -0
- package/docs/PresignedUrlsResponse.md +34 -0
- package/docs/RolesRequest.md +38 -0
- package/docs/SocialMediaRequest.md +36 -0
- package/docs/SocialMediasRequest.md +34 -0
- package/docs/UploadAcknowledgmentResponse.md +36 -0
- package/package.json +21 -0
- package/src/apis/AgencyControllerApi.ts +660 -0
- package/src/apis/AgencyQueryControllerApi.ts +88 -0
- package/src/apis/InvitationControllerApi.ts +173 -0
- package/src/apis/InvitationQueryControllerApi.ts +96 -0
- package/src/apis/index.ts +6 -0
- package/src/index.ts +5 -0
- package/src/models/AddressRequest.ts +102 -0
- package/src/models/CreateAgencyRequest.ts +128 -0
- package/src/models/IdResponse.ts +66 -0
- package/src/models/InvitationViewResponse.ts +132 -0
- package/src/models/InviteMemberRequest.ts +66 -0
- package/src/models/PhotoRequest.ts +105 -0
- package/src/models/PresignedUrlResponse.ts +84 -0
- package/src/models/PresignedUrlsResponse.ts +74 -0
- package/src/models/RolesRequest.ts +97 -0
- package/src/models/SocialMediaRequest.ts +88 -0
- package/src/models/SocialMediasRequest.ts +74 -0
- package/src/models/UploadAcknowledgmentResponse.ts +75 -0
- package/src/models/index.ts +14 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
|
|
18
|
+
export interface GetAgencyRequest {
|
|
19
|
+
agencyId: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* AgencyQueryControllerApi - interface
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface AgencyQueryControllerApiInterface
|
|
27
|
+
*/
|
|
28
|
+
export interface AgencyQueryControllerApiInterface {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param {string} agencyId
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
* @memberof AgencyQueryControllerApiInterface
|
|
35
|
+
*/
|
|
36
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*/
|
|
40
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQueryControllerApiInterface {
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
*/
|
|
51
|
+
async getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
52
|
+
if (requestParameters['agencyId'] == null) {
|
|
53
|
+
throw new runtime.RequiredError(
|
|
54
|
+
'agencyId',
|
|
55
|
+
'Required parameter "agencyId" was null or undefined when calling getAgency().'
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const queryParameters: any = {};
|
|
60
|
+
|
|
61
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
62
|
+
|
|
63
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
64
|
+
// oauth required
|
|
65
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
let urlPath = `/agency/{agencyId}`;
|
|
70
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
71
|
+
|
|
72
|
+
const response = await this.request({
|
|
73
|
+
path: urlPath,
|
|
74
|
+
method: 'GET',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
}, initOverrides);
|
|
78
|
+
|
|
79
|
+
return new runtime.VoidApiResponse(response);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
*/
|
|
84
|
+
async getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
85
|
+
await this.getAgencyRaw(requestParameters, initOverrides);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
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
|
+
InviteMemberRequest,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
InviteMemberRequestFromJSON,
|
|
22
|
+
InviteMemberRequestToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface InviteAcceptedRequest {
|
|
26
|
+
agencyId: string;
|
|
27
|
+
invitationId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface InviteMemberOperationRequest {
|
|
31
|
+
agencyId: string;
|
|
32
|
+
inviteMemberRequest: InviteMemberRequest;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* InvitationControllerApi - interface
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
* @interface InvitationControllerApiInterface
|
|
40
|
+
*/
|
|
41
|
+
export interface InvitationControllerApiInterface {
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @param {string} agencyId
|
|
45
|
+
* @param {string} invitationId
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
* @memberof InvitationControllerApiInterface
|
|
49
|
+
*/
|
|
50
|
+
inviteAcceptedRaw(requestParameters: InviteAcceptedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*/
|
|
54
|
+
inviteAccepted(requestParameters: InviteAcceptedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param {string} agencyId
|
|
59
|
+
* @param {InviteMemberRequest} inviteMemberRequest
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
* @memberof InvitationControllerApiInterface
|
|
63
|
+
*/
|
|
64
|
+
inviteMemberRaw(requestParameters: InviteMemberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
*/
|
|
68
|
+
inviteMember(requestParameters: InviteMemberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
export class InvitationControllerApi extends runtime.BaseAPI implements InvitationControllerApiInterface {
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
*/
|
|
79
|
+
async inviteAcceptedRaw(requestParameters: InviteAcceptedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
80
|
+
if (requestParameters['agencyId'] == null) {
|
|
81
|
+
throw new runtime.RequiredError(
|
|
82
|
+
'agencyId',
|
|
83
|
+
'Required parameter "agencyId" was null or undefined when calling inviteAccepted().'
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (requestParameters['invitationId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError(
|
|
89
|
+
'invitationId',
|
|
90
|
+
'Required parameter "invitationId" was null or undefined when calling inviteAccepted().'
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const queryParameters: any = {};
|
|
95
|
+
|
|
96
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
97
|
+
|
|
98
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
99
|
+
// oauth required
|
|
100
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
let urlPath = `/agency/{agencyId}/invitation/{invitationId}`;
|
|
105
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
106
|
+
urlPath = urlPath.replace(`{${"invitationId"}}`, encodeURIComponent(String(requestParameters['invitationId'])));
|
|
107
|
+
|
|
108
|
+
const response = await this.request({
|
|
109
|
+
path: urlPath,
|
|
110
|
+
method: 'POST',
|
|
111
|
+
headers: headerParameters,
|
|
112
|
+
query: queryParameters,
|
|
113
|
+
}, initOverrides);
|
|
114
|
+
|
|
115
|
+
return new runtime.VoidApiResponse(response);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
*/
|
|
120
|
+
async inviteAccepted(requestParameters: InviteAcceptedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
121
|
+
await this.inviteAcceptedRaw(requestParameters, initOverrides);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
*/
|
|
126
|
+
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
|
+
if (requestParameters['inviteMemberRequest'] == null) {
|
|
135
|
+
throw new runtime.RequiredError(
|
|
136
|
+
'inviteMemberRequest',
|
|
137
|
+
'Required parameter "inviteMemberRequest" was null or undefined when calling inviteMember().'
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const queryParameters: any = {};
|
|
142
|
+
|
|
143
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
144
|
+
|
|
145
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
146
|
+
|
|
147
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
148
|
+
// oauth required
|
|
149
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
let urlPath = `/agency/{agencyId}/invitation`;
|
|
154
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
155
|
+
|
|
156
|
+
const response = await this.request({
|
|
157
|
+
path: urlPath,
|
|
158
|
+
method: 'POST',
|
|
159
|
+
headers: headerParameters,
|
|
160
|
+
query: queryParameters,
|
|
161
|
+
body: InviteMemberRequestToJSON(requestParameters['inviteMemberRequest']),
|
|
162
|
+
}, initOverrides);
|
|
163
|
+
|
|
164
|
+
return new runtime.VoidApiResponse(response);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
*/
|
|
169
|
+
async inviteMember(requestParameters: InviteMemberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
170
|
+
await this.inviteMemberRaw(requestParameters, initOverrides);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
InvitationViewResponse,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
InvitationViewResponseFromJSON,
|
|
22
|
+
InvitationViewResponseToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface GetAllInvitationsRequest {
|
|
26
|
+
agencyId: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* InvitationQueryControllerApi - interface
|
|
31
|
+
*
|
|
32
|
+
* @export
|
|
33
|
+
* @interface InvitationQueryControllerApiInterface
|
|
34
|
+
*/
|
|
35
|
+
export interface InvitationQueryControllerApiInterface {
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @param {string} agencyId
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
* @memberof InvitationQueryControllerApiInterface
|
|
42
|
+
*/
|
|
43
|
+
getAllInvitationsRaw(requestParameters: GetAllInvitationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<InvitationViewResponse>>>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*/
|
|
47
|
+
getAllInvitations(requestParameters: GetAllInvitationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<InvitationViewResponse>>;
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
export class InvitationQueryControllerApi extends runtime.BaseAPI implements InvitationQueryControllerApiInterface {
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*/
|
|
58
|
+
async getAllInvitationsRaw(requestParameters: GetAllInvitationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<InvitationViewResponse>>> {
|
|
59
|
+
if (requestParameters['agencyId'] == null) {
|
|
60
|
+
throw new runtime.RequiredError(
|
|
61
|
+
'agencyId',
|
|
62
|
+
'Required parameter "agencyId" was null or undefined when calling getAllInvitations().'
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const queryParameters: any = {};
|
|
67
|
+
|
|
68
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
69
|
+
|
|
70
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
71
|
+
// oauth required
|
|
72
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
let urlPath = `/agency/{agencyId}/invitation`;
|
|
77
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
78
|
+
|
|
79
|
+
const response = await this.request({
|
|
80
|
+
path: urlPath,
|
|
81
|
+
method: 'GET',
|
|
82
|
+
headers: headerParameters,
|
|
83
|
+
query: queryParameters,
|
|
84
|
+
}, initOverrides);
|
|
85
|
+
|
|
86
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(InvitationViewResponseFromJSON));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
*/
|
|
91
|
+
async getAllInvitations(requestParameters: GetAllInvitationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<InvitationViewResponse>> {
|
|
92
|
+
const response = await this.getAllInvitationsRaw(requestParameters, initOverrides);
|
|
93
|
+
return await response.value();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
}
|
package/src/index.ts
ADDED
|
@@ -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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AddressRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AddressRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AddressRequest
|
|
26
|
+
*/
|
|
27
|
+
country: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AddressRequest
|
|
32
|
+
*/
|
|
33
|
+
city: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AddressRequest
|
|
38
|
+
*/
|
|
39
|
+
district: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AddressRequest
|
|
44
|
+
*/
|
|
45
|
+
subdistrict: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AddressRequest
|
|
50
|
+
*/
|
|
51
|
+
street: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AddressRequest interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAddressRequest(value: object): value is AddressRequest {
|
|
58
|
+
if (!('country' in value) || value['country'] === undefined) return false;
|
|
59
|
+
if (!('city' in value) || value['city'] === undefined) return false;
|
|
60
|
+
if (!('district' in value) || value['district'] === undefined) return false;
|
|
61
|
+
if (!('subdistrict' in value) || value['subdistrict'] === undefined) return false;
|
|
62
|
+
if (!('street' in value) || value['street'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AddressRequestFromJSON(json: any): AddressRequest {
|
|
67
|
+
return AddressRequestFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressRequest {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'country': json['country'],
|
|
77
|
+
'city': json['city'],
|
|
78
|
+
'district': json['district'],
|
|
79
|
+
'subdistrict': json['subdistrict'],
|
|
80
|
+
'street': json['street'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AddressRequestToJSON(json: any): AddressRequest {
|
|
85
|
+
return AddressRequestToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AddressRequestToJSONTyped(value?: AddressRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'country': value['country'],
|
|
96
|
+
'city': value['city'],
|
|
97
|
+
'district': value['district'],
|
|
98
|
+
'subdistrict': value['subdistrict'],
|
|
99
|
+
'street': value['street'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
import type { AddressRequest } from './AddressRequest';
|
|
17
|
+
import {
|
|
18
|
+
AddressRequestFromJSON,
|
|
19
|
+
AddressRequestFromJSONTyped,
|
|
20
|
+
AddressRequestToJSON,
|
|
21
|
+
AddressRequestToJSONTyped,
|
|
22
|
+
} from './AddressRequest';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateAgencyRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateAgencyRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateAgencyRequest
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateAgencyRequest
|
|
40
|
+
*/
|
|
41
|
+
email: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CreateAgencyRequest
|
|
46
|
+
*/
|
|
47
|
+
seats: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateAgencyRequest
|
|
52
|
+
*/
|
|
53
|
+
subDomain: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateAgencyRequest
|
|
58
|
+
*/
|
|
59
|
+
phone: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {AddressRequest}
|
|
63
|
+
* @memberof CreateAgencyRequest
|
|
64
|
+
*/
|
|
65
|
+
address: AddressRequest;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof CreateAgencyRequest
|
|
70
|
+
*/
|
|
71
|
+
yearSince: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CreateAgencyRequest interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfCreateAgencyRequest(value: object): value is CreateAgencyRequest {
|
|
78
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
79
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
80
|
+
if (!('seats' in value) || value['seats'] === undefined) return false;
|
|
81
|
+
if (!('subDomain' in value) || value['subDomain'] === undefined) return false;
|
|
82
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
83
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
84
|
+
if (!('yearSince' in value) || value['yearSince'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function CreateAgencyRequestFromJSON(json: any): CreateAgencyRequest {
|
|
89
|
+
return CreateAgencyRequestFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function CreateAgencyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgencyRequest {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'name': json['name'],
|
|
99
|
+
'email': json['email'],
|
|
100
|
+
'seats': json['seats'],
|
|
101
|
+
'subDomain': json['subDomain'],
|
|
102
|
+
'phone': json['phone'],
|
|
103
|
+
'address': AddressRequestFromJSON(json['address']),
|
|
104
|
+
'yearSince': json['yearSince'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function CreateAgencyRequestToJSON(json: any): CreateAgencyRequest {
|
|
109
|
+
return CreateAgencyRequestToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function CreateAgencyRequestToJSONTyped(value?: CreateAgencyRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'name': value['name'],
|
|
120
|
+
'email': value['email'],
|
|
121
|
+
'seats': value['seats'],
|
|
122
|
+
'subDomain': value['subDomain'],
|
|
123
|
+
'phone': value['phone'],
|
|
124
|
+
'address': AddressRequestToJSON(value['address']),
|
|
125
|
+
'yearSince': value['yearSince'],
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Service API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IdResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface IdResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IdResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the IdResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfIdResponse(value: object): value is IdResponse {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function IdResponseFromJSON(json: any): IdResponse {
|
|
39
|
+
return IdResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function IdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdResponse {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IdResponseToJSON(json: any): IdResponse {
|
|
53
|
+
return IdResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IdResponseToJSONTyped(value?: IdResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|