@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,662 @@
|
|
|
1
|
+
# AgencyControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8080*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**activateAgency**](AgencyControllerApi.md#activateagency) | **POST** /agency/{agencyId}/activate | |
|
|
8
|
+
| [**addRole**](AgencyControllerApi.md#addrole) | **POST** /agency/{agencyId}/roles | |
|
|
9
|
+
| [**createAgency**](AgencyControllerApi.md#createagencyoperation) | **POST** /agency | |
|
|
10
|
+
| [**generatePresignedUrl**](AgencyControllerApi.md#generatepresignedurl) | **PUT** /agency/{agencyId}/presigned-urls | |
|
|
11
|
+
| [**notifyCoverUploadCompletion**](AgencyControllerApi.md#notifycoveruploadcompletion) | **POST** /agency/{agencyId}/presigned-urls/notify/cover | |
|
|
12
|
+
| [**notifyLogoUploadCompletion**](AgencyControllerApi.md#notifylogouploadcompletion) | **POST** /agency/{agencyId}/presigned-urls/notify/logo | |
|
|
13
|
+
| [**removeRole**](AgencyControllerApi.md#removerole) | **DELETE** /agency/{agencyId}/roles/{roleId} | |
|
|
14
|
+
| [**updateRole**](AgencyControllerApi.md#updaterole) | **PUT** /agency/{agencyId}/roles/{roleId} | |
|
|
15
|
+
| [**updateSocialUrls**](AgencyControllerApi.md#updatesocialurls) | **PUT** /agency/{agencyId}/social-media | |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## activateAgency
|
|
20
|
+
|
|
21
|
+
> IdResponse activateAgency(agencyId)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Example
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import {
|
|
29
|
+
Configuration,
|
|
30
|
+
AgencyControllerApi,
|
|
31
|
+
} from '@homespot-sdk/api';
|
|
32
|
+
import type { ActivateAgencyRequest } from '@homespot-sdk/api';
|
|
33
|
+
|
|
34
|
+
async function example() {
|
|
35
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
36
|
+
const config = new Configuration({
|
|
37
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
38
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
39
|
+
});
|
|
40
|
+
const api = new AgencyControllerApi(config);
|
|
41
|
+
|
|
42
|
+
const body = {
|
|
43
|
+
// string
|
|
44
|
+
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
45
|
+
} satisfies ActivateAgencyRequest;
|
|
46
|
+
|
|
47
|
+
try {
|
|
48
|
+
const data = await api.activateAgency(body);
|
|
49
|
+
console.log(data);
|
|
50
|
+
} catch (error) {
|
|
51
|
+
console.error(error);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Run the test
|
|
56
|
+
example().catch(console.error);
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Parameters
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
| Name | Type | Description | Notes |
|
|
63
|
+
|------------- | ------------- | ------------- | -------------|
|
|
64
|
+
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
65
|
+
|
|
66
|
+
### Return type
|
|
67
|
+
|
|
68
|
+
[**IdResponse**](IdResponse.md)
|
|
69
|
+
|
|
70
|
+
### Authorization
|
|
71
|
+
|
|
72
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
73
|
+
|
|
74
|
+
### HTTP request headers
|
|
75
|
+
|
|
76
|
+
- **Content-Type**: Not defined
|
|
77
|
+
- **Accept**: `*/*`
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### HTTP response details
|
|
81
|
+
| Status code | Description | Response headers |
|
|
82
|
+
|-------------|-------------|------------------|
|
|
83
|
+
| **200** | OK | - |
|
|
84
|
+
|
|
85
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## addRole
|
|
89
|
+
|
|
90
|
+
> addRole(agencyId, rolesRequest)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Example
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
import {
|
|
98
|
+
Configuration,
|
|
99
|
+
AgencyControllerApi,
|
|
100
|
+
} from '@homespot-sdk/api';
|
|
101
|
+
import type { AddRoleRequest } from '@homespot-sdk/api';
|
|
102
|
+
|
|
103
|
+
async function example() {
|
|
104
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
105
|
+
const config = new Configuration({
|
|
106
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
107
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
108
|
+
});
|
|
109
|
+
const api = new AgencyControllerApi(config);
|
|
110
|
+
|
|
111
|
+
const body = {
|
|
112
|
+
// string
|
|
113
|
+
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
114
|
+
// RolesRequest
|
|
115
|
+
rolesRequest: ...,
|
|
116
|
+
} satisfies AddRoleRequest;
|
|
117
|
+
|
|
118
|
+
try {
|
|
119
|
+
const data = await api.addRole(body);
|
|
120
|
+
console.log(data);
|
|
121
|
+
} catch (error) {
|
|
122
|
+
console.error(error);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Run the test
|
|
127
|
+
example().catch(console.error);
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Parameters
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
| Name | Type | Description | Notes |
|
|
134
|
+
|------------- | ------------- | ------------- | -------------|
|
|
135
|
+
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
136
|
+
| **rolesRequest** | [RolesRequest](RolesRequest.md) | | |
|
|
137
|
+
|
|
138
|
+
### Return type
|
|
139
|
+
|
|
140
|
+
`void` (Empty response body)
|
|
141
|
+
|
|
142
|
+
### Authorization
|
|
143
|
+
|
|
144
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
145
|
+
|
|
146
|
+
### HTTP request headers
|
|
147
|
+
|
|
148
|
+
- **Content-Type**: `application/json`
|
|
149
|
+
- **Accept**: Not defined
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### HTTP response details
|
|
153
|
+
| Status code | Description | Response headers |
|
|
154
|
+
|-------------|-------------|------------------|
|
|
155
|
+
| **201** | Created | - |
|
|
156
|
+
|
|
157
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## createAgency
|
|
161
|
+
|
|
162
|
+
> IdResponse createAgency(createAgencyRequest)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### Example
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
import {
|
|
170
|
+
Configuration,
|
|
171
|
+
AgencyControllerApi,
|
|
172
|
+
} from '@homespot-sdk/api';
|
|
173
|
+
import type { CreateAgencyOperationRequest } from '@homespot-sdk/api';
|
|
174
|
+
|
|
175
|
+
async function example() {
|
|
176
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
177
|
+
const config = new Configuration({
|
|
178
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
179
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
180
|
+
});
|
|
181
|
+
const api = new AgencyControllerApi(config);
|
|
182
|
+
|
|
183
|
+
const body = {
|
|
184
|
+
// CreateAgencyRequest
|
|
185
|
+
createAgencyRequest: ...,
|
|
186
|
+
} satisfies CreateAgencyOperationRequest;
|
|
187
|
+
|
|
188
|
+
try {
|
|
189
|
+
const data = await api.createAgency(body);
|
|
190
|
+
console.log(data);
|
|
191
|
+
} catch (error) {
|
|
192
|
+
console.error(error);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Run the test
|
|
197
|
+
example().catch(console.error);
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Parameters
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
| Name | Type | Description | Notes |
|
|
204
|
+
|------------- | ------------- | ------------- | -------------|
|
|
205
|
+
| **createAgencyRequest** | [CreateAgencyRequest](CreateAgencyRequest.md) | | |
|
|
206
|
+
|
|
207
|
+
### Return type
|
|
208
|
+
|
|
209
|
+
[**IdResponse**](IdResponse.md)
|
|
210
|
+
|
|
211
|
+
### Authorization
|
|
212
|
+
|
|
213
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
214
|
+
|
|
215
|
+
### HTTP request headers
|
|
216
|
+
|
|
217
|
+
- **Content-Type**: `application/json`
|
|
218
|
+
- **Accept**: `*/*`
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### HTTP response details
|
|
222
|
+
| Status code | Description | Response headers |
|
|
223
|
+
|-------------|-------------|------------------|
|
|
224
|
+
| **201** | Created | - |
|
|
225
|
+
|
|
226
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
## generatePresignedUrl
|
|
230
|
+
|
|
231
|
+
> PresignedUrlsResponse generatePresignedUrl(agencyId, photoRequest)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
### Example
|
|
236
|
+
|
|
237
|
+
```ts
|
|
238
|
+
import {
|
|
239
|
+
Configuration,
|
|
240
|
+
AgencyControllerApi,
|
|
241
|
+
} from '@homespot-sdk/api';
|
|
242
|
+
import type { GeneratePresignedUrlRequest } from '@homespot-sdk/api';
|
|
243
|
+
|
|
244
|
+
async function example() {
|
|
245
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
246
|
+
const config = new Configuration({
|
|
247
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
248
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
249
|
+
});
|
|
250
|
+
const api = new AgencyControllerApi(config);
|
|
251
|
+
|
|
252
|
+
const body = {
|
|
253
|
+
// string
|
|
254
|
+
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
255
|
+
// PhotoRequest
|
|
256
|
+
photoRequest: ...,
|
|
257
|
+
} satisfies GeneratePresignedUrlRequest;
|
|
258
|
+
|
|
259
|
+
try {
|
|
260
|
+
const data = await api.generatePresignedUrl(body);
|
|
261
|
+
console.log(data);
|
|
262
|
+
} catch (error) {
|
|
263
|
+
console.error(error);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// Run the test
|
|
268
|
+
example().catch(console.error);
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Parameters
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
| Name | Type | Description | Notes |
|
|
275
|
+
|------------- | ------------- | ------------- | -------------|
|
|
276
|
+
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
277
|
+
| **photoRequest** | [PhotoRequest](PhotoRequest.md) | | |
|
|
278
|
+
|
|
279
|
+
### Return type
|
|
280
|
+
|
|
281
|
+
[**PresignedUrlsResponse**](PresignedUrlsResponse.md)
|
|
282
|
+
|
|
283
|
+
### Authorization
|
|
284
|
+
|
|
285
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
286
|
+
|
|
287
|
+
### HTTP request headers
|
|
288
|
+
|
|
289
|
+
- **Content-Type**: `application/json`
|
|
290
|
+
- **Accept**: `*/*`
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
### HTTP response details
|
|
294
|
+
| Status code | Description | Response headers |
|
|
295
|
+
|-------------|-------------|------------------|
|
|
296
|
+
| **200** | OK | - |
|
|
297
|
+
|
|
298
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
## notifyCoverUploadCompletion
|
|
302
|
+
|
|
303
|
+
> UploadAcknowledgmentResponse notifyCoverUploadCompletion(agencyId, photoRequest)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
### Example
|
|
308
|
+
|
|
309
|
+
```ts
|
|
310
|
+
import {
|
|
311
|
+
Configuration,
|
|
312
|
+
AgencyControllerApi,
|
|
313
|
+
} from '@homespot-sdk/api';
|
|
314
|
+
import type { NotifyCoverUploadCompletionRequest } from '@homespot-sdk/api';
|
|
315
|
+
|
|
316
|
+
async function example() {
|
|
317
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
318
|
+
const config = new Configuration({
|
|
319
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
320
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
321
|
+
});
|
|
322
|
+
const api = new AgencyControllerApi(config);
|
|
323
|
+
|
|
324
|
+
const body = {
|
|
325
|
+
// string
|
|
326
|
+
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
327
|
+
// PhotoRequest
|
|
328
|
+
photoRequest: ...,
|
|
329
|
+
} satisfies NotifyCoverUploadCompletionRequest;
|
|
330
|
+
|
|
331
|
+
try {
|
|
332
|
+
const data = await api.notifyCoverUploadCompletion(body);
|
|
333
|
+
console.log(data);
|
|
334
|
+
} catch (error) {
|
|
335
|
+
console.error(error);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// Run the test
|
|
340
|
+
example().catch(console.error);
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Parameters
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
| Name | Type | Description | Notes |
|
|
347
|
+
|------------- | ------------- | ------------- | -------------|
|
|
348
|
+
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
349
|
+
| **photoRequest** | [PhotoRequest](PhotoRequest.md) | | |
|
|
350
|
+
|
|
351
|
+
### Return type
|
|
352
|
+
|
|
353
|
+
[**UploadAcknowledgmentResponse**](UploadAcknowledgmentResponse.md)
|
|
354
|
+
|
|
355
|
+
### Authorization
|
|
356
|
+
|
|
357
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
358
|
+
|
|
359
|
+
### HTTP request headers
|
|
360
|
+
|
|
361
|
+
- **Content-Type**: `application/json`
|
|
362
|
+
- **Accept**: `*/*`
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
### HTTP response details
|
|
366
|
+
| Status code | Description | Response headers |
|
|
367
|
+
|-------------|-------------|------------------|
|
|
368
|
+
| **200** | OK | - |
|
|
369
|
+
|
|
370
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
## notifyLogoUploadCompletion
|
|
374
|
+
|
|
375
|
+
> UploadAcknowledgmentResponse notifyLogoUploadCompletion(agencyId, photoRequest)
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
### Example
|
|
380
|
+
|
|
381
|
+
```ts
|
|
382
|
+
import {
|
|
383
|
+
Configuration,
|
|
384
|
+
AgencyControllerApi,
|
|
385
|
+
} from '@homespot-sdk/api';
|
|
386
|
+
import type { NotifyLogoUploadCompletionRequest } from '@homespot-sdk/api';
|
|
387
|
+
|
|
388
|
+
async function example() {
|
|
389
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
390
|
+
const config = new Configuration({
|
|
391
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
392
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
393
|
+
});
|
|
394
|
+
const api = new AgencyControllerApi(config);
|
|
395
|
+
|
|
396
|
+
const body = {
|
|
397
|
+
// string
|
|
398
|
+
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
399
|
+
// PhotoRequest
|
|
400
|
+
photoRequest: ...,
|
|
401
|
+
} satisfies NotifyLogoUploadCompletionRequest;
|
|
402
|
+
|
|
403
|
+
try {
|
|
404
|
+
const data = await api.notifyLogoUploadCompletion(body);
|
|
405
|
+
console.log(data);
|
|
406
|
+
} catch (error) {
|
|
407
|
+
console.error(error);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// Run the test
|
|
412
|
+
example().catch(console.error);
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
### Parameters
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
| Name | Type | Description | Notes |
|
|
419
|
+
|------------- | ------------- | ------------- | -------------|
|
|
420
|
+
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
421
|
+
| **photoRequest** | [PhotoRequest](PhotoRequest.md) | | |
|
|
422
|
+
|
|
423
|
+
### Return type
|
|
424
|
+
|
|
425
|
+
[**UploadAcknowledgmentResponse**](UploadAcknowledgmentResponse.md)
|
|
426
|
+
|
|
427
|
+
### Authorization
|
|
428
|
+
|
|
429
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
430
|
+
|
|
431
|
+
### HTTP request headers
|
|
432
|
+
|
|
433
|
+
- **Content-Type**: `application/json`
|
|
434
|
+
- **Accept**: `*/*`
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
### HTTP response details
|
|
438
|
+
| Status code | Description | Response headers |
|
|
439
|
+
|-------------|-------------|------------------|
|
|
440
|
+
| **200** | OK | - |
|
|
441
|
+
|
|
442
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
## removeRole
|
|
446
|
+
|
|
447
|
+
> removeRole(agencyId, roleId)
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
### Example
|
|
452
|
+
|
|
453
|
+
```ts
|
|
454
|
+
import {
|
|
455
|
+
Configuration,
|
|
456
|
+
AgencyControllerApi,
|
|
457
|
+
} from '@homespot-sdk/api';
|
|
458
|
+
import type { RemoveRoleRequest } from '@homespot-sdk/api';
|
|
459
|
+
|
|
460
|
+
async function example() {
|
|
461
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
462
|
+
const config = new Configuration({
|
|
463
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
464
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
465
|
+
});
|
|
466
|
+
const api = new AgencyControllerApi(config);
|
|
467
|
+
|
|
468
|
+
const body = {
|
|
469
|
+
// string
|
|
470
|
+
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
471
|
+
// number
|
|
472
|
+
roleId: 56,
|
|
473
|
+
} satisfies RemoveRoleRequest;
|
|
474
|
+
|
|
475
|
+
try {
|
|
476
|
+
const data = await api.removeRole(body);
|
|
477
|
+
console.log(data);
|
|
478
|
+
} catch (error) {
|
|
479
|
+
console.error(error);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// Run the test
|
|
484
|
+
example().catch(console.error);
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
### Parameters
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
| Name | Type | Description | Notes |
|
|
491
|
+
|------------- | ------------- | ------------- | -------------|
|
|
492
|
+
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
493
|
+
| **roleId** | `number` | | [Defaults to `undefined`] |
|
|
494
|
+
|
|
495
|
+
### Return type
|
|
496
|
+
|
|
497
|
+
`void` (Empty response body)
|
|
498
|
+
|
|
499
|
+
### Authorization
|
|
500
|
+
|
|
501
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
502
|
+
|
|
503
|
+
### HTTP request headers
|
|
504
|
+
|
|
505
|
+
- **Content-Type**: Not defined
|
|
506
|
+
- **Accept**: Not defined
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
### HTTP response details
|
|
510
|
+
| Status code | Description | Response headers |
|
|
511
|
+
|-------------|-------------|------------------|
|
|
512
|
+
| **200** | OK | - |
|
|
513
|
+
|
|
514
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
## updateRole
|
|
518
|
+
|
|
519
|
+
> updateRole(agencyId, roleId, rolesRequest)
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
### Example
|
|
524
|
+
|
|
525
|
+
```ts
|
|
526
|
+
import {
|
|
527
|
+
Configuration,
|
|
528
|
+
AgencyControllerApi,
|
|
529
|
+
} from '@homespot-sdk/api';
|
|
530
|
+
import type { UpdateRoleRequest } from '@homespot-sdk/api';
|
|
531
|
+
|
|
532
|
+
async function example() {
|
|
533
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
534
|
+
const config = new Configuration({
|
|
535
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
536
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
537
|
+
});
|
|
538
|
+
const api = new AgencyControllerApi(config);
|
|
539
|
+
|
|
540
|
+
const body = {
|
|
541
|
+
// string
|
|
542
|
+
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
543
|
+
// number
|
|
544
|
+
roleId: 56,
|
|
545
|
+
// RolesRequest
|
|
546
|
+
rolesRequest: ...,
|
|
547
|
+
} satisfies UpdateRoleRequest;
|
|
548
|
+
|
|
549
|
+
try {
|
|
550
|
+
const data = await api.updateRole(body);
|
|
551
|
+
console.log(data);
|
|
552
|
+
} catch (error) {
|
|
553
|
+
console.error(error);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
// Run the test
|
|
558
|
+
example().catch(console.error);
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
### Parameters
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
| Name | Type | Description | Notes |
|
|
565
|
+
|------------- | ------------- | ------------- | -------------|
|
|
566
|
+
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
567
|
+
| **roleId** | `number` | | [Defaults to `undefined`] |
|
|
568
|
+
| **rolesRequest** | [RolesRequest](RolesRequest.md) | | |
|
|
569
|
+
|
|
570
|
+
### Return type
|
|
571
|
+
|
|
572
|
+
`void` (Empty response body)
|
|
573
|
+
|
|
574
|
+
### Authorization
|
|
575
|
+
|
|
576
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
577
|
+
|
|
578
|
+
### HTTP request headers
|
|
579
|
+
|
|
580
|
+
- **Content-Type**: `application/json`
|
|
581
|
+
- **Accept**: Not defined
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
### HTTP response details
|
|
585
|
+
| Status code | Description | Response headers |
|
|
586
|
+
|-------------|-------------|------------------|
|
|
587
|
+
| **200** | OK | - |
|
|
588
|
+
|
|
589
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
## updateSocialUrls
|
|
593
|
+
|
|
594
|
+
> updateSocialUrls(agencyId, socialMediasRequest)
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
### Example
|
|
599
|
+
|
|
600
|
+
```ts
|
|
601
|
+
import {
|
|
602
|
+
Configuration,
|
|
603
|
+
AgencyControllerApi,
|
|
604
|
+
} from '@homespot-sdk/api';
|
|
605
|
+
import type { UpdateSocialUrlsRequest } from '@homespot-sdk/api';
|
|
606
|
+
|
|
607
|
+
async function example() {
|
|
608
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
609
|
+
const config = new Configuration({
|
|
610
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
611
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
612
|
+
});
|
|
613
|
+
const api = new AgencyControllerApi(config);
|
|
614
|
+
|
|
615
|
+
const body = {
|
|
616
|
+
// string
|
|
617
|
+
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
618
|
+
// SocialMediasRequest
|
|
619
|
+
socialMediasRequest: ...,
|
|
620
|
+
} satisfies UpdateSocialUrlsRequest;
|
|
621
|
+
|
|
622
|
+
try {
|
|
623
|
+
const data = await api.updateSocialUrls(body);
|
|
624
|
+
console.log(data);
|
|
625
|
+
} catch (error) {
|
|
626
|
+
console.error(error);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// Run the test
|
|
631
|
+
example().catch(console.error);
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
### Parameters
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
| Name | Type | Description | Notes |
|
|
638
|
+
|------------- | ------------- | ------------- | -------------|
|
|
639
|
+
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
640
|
+
| **socialMediasRequest** | [SocialMediasRequest](SocialMediasRequest.md) | | |
|
|
641
|
+
|
|
642
|
+
### Return type
|
|
643
|
+
|
|
644
|
+
`void` (Empty response body)
|
|
645
|
+
|
|
646
|
+
### Authorization
|
|
647
|
+
|
|
648
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
649
|
+
|
|
650
|
+
### HTTP request headers
|
|
651
|
+
|
|
652
|
+
- **Content-Type**: `application/json`
|
|
653
|
+
- **Accept**: Not defined
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
### HTTP response details
|
|
657
|
+
| Status code | Description | Response headers |
|
|
658
|
+
|-------------|-------------|------------------|
|
|
659
|
+
| **200** | OK | - |
|
|
660
|
+
|
|
661
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
662
|
+
|