@homespot-sdk/api 0.0.634 → 0.0.636
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +34 -10
- package/README.md +28 -17
- package/dist/apis/AgencyControllerApi.d.ts +1 -63
- package/dist/apis/AgencyControllerApi.js +1 -100
- package/dist/apis/InvitationControllerApi.d.ts +10 -10
- package/dist/apis/InvitationControllerApi.js +9 -9
- package/dist/apis/InvitationQueryControllerApi.d.ts +12 -30
- package/dist/apis/InvitationQueryControllerApi.js +12 -47
- package/dist/apis/MemberControllerApi.d.ts +68 -0
- package/dist/apis/MemberControllerApi.js +101 -0
- package/dist/apis/MemberQueryControllerApi.d.ts +10 -4
- package/dist/apis/MemberQueryControllerApi.js +13 -7
- package/dist/apis/{AgencyQueryControllerApi.d.ts → PublicAgencyControllerApi.d.ts} +26 -22
- package/dist/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +19 -16
- package/dist/apis/PublicInvitationControllerApi.d.ts +48 -0
- package/dist/apis/PublicInvitationControllerApi.js +71 -0
- package/dist/apis/PublicRoleControllerApi.d.ts +42 -0
- package/dist/apis/PublicRoleControllerApi.js +61 -0
- package/dist/apis/RoleControllerApi.d.ts +88 -0
- package/dist/apis/RoleControllerApi.js +133 -0
- package/dist/apis/RoleQueryControllerApi.d.ts +50 -0
- package/dist/apis/RoleQueryControllerApi.js +70 -0
- package/dist/apis/index.d.ts +6 -1
- package/dist/apis/index.js +6 -1
- package/dist/esm/apis/AgencyControllerApi.d.ts +1 -63
- package/dist/esm/apis/AgencyControllerApi.js +2 -101
- package/dist/esm/apis/InvitationControllerApi.d.ts +10 -10
- package/dist/esm/apis/InvitationControllerApi.js +9 -9
- package/dist/esm/apis/InvitationQueryControllerApi.d.ts +12 -30
- package/dist/esm/apis/InvitationQueryControllerApi.js +13 -48
- package/dist/esm/apis/MemberControllerApi.d.ts +68 -0
- package/dist/esm/apis/MemberControllerApi.js +97 -0
- package/dist/esm/apis/MemberQueryControllerApi.d.ts +10 -4
- package/dist/esm/apis/MemberQueryControllerApi.js +13 -7
- package/dist/esm/apis/{AgencyQueryControllerApi.d.ts → PublicAgencyControllerApi.d.ts} +26 -22
- package/dist/esm/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +18 -15
- package/dist/esm/apis/PublicInvitationControllerApi.d.ts +48 -0
- package/dist/esm/apis/PublicInvitationControllerApi.js +67 -0
- package/dist/esm/apis/PublicRoleControllerApi.d.ts +42 -0
- package/dist/esm/apis/PublicRoleControllerApi.js +57 -0
- package/dist/esm/apis/RoleControllerApi.d.ts +88 -0
- package/dist/esm/apis/RoleControllerApi.js +129 -0
- package/dist/esm/apis/RoleQueryControllerApi.d.ts +50 -0
- package/dist/esm/apis/RoleQueryControllerApi.js +66 -0
- package/dist/esm/apis/index.d.ts +6 -1
- package/dist/esm/apis/index.js +6 -1
- package/dist/esm/models/AgencyProfileResponse.d.ts +69 -0
- package/dist/esm/models/{AgencyViewResponse.js → AgencyProfileResponse.js} +8 -8
- package/dist/esm/models/AgencySummaryResponse.d.ts +102 -0
- package/dist/esm/models/{AgencyPeekViewResponse.js → AgencySummaryResponse.js} +9 -9
- package/dist/esm/models/AssignRoleRequest.d.ts +32 -0
- package/dist/esm/models/AssignRoleRequest.js +43 -0
- package/dist/esm/models/BatchAssignRoleRequest.d.ts +38 -0
- package/dist/esm/models/BatchAssignRoleRequest.js +47 -0
- package/dist/esm/models/GroupedPermissionsResponse.d.ts +49 -0
- package/dist/esm/models/GroupedPermissionsResponse.js +57 -0
- package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +10 -7
- package/dist/esm/models/OrganizationSummaryViewResponse.js +11 -8
- package/dist/esm/models/PageRoleResponse.d.ts +95 -0
- package/dist/esm/models/PageRoleResponse.js +64 -0
- package/dist/esm/models/PageableObject.d.ts +63 -0
- package/dist/esm/models/PageableObject.js +52 -0
- package/dist/esm/models/PagedModelAgencySummaryResponse.d.ts +40 -0
- package/dist/esm/models/{PagedModelAgencyPeekViewResponse.js → PagedModelAgencySummaryResponse.js} +11 -11
- package/dist/esm/models/PermissionResponse.d.ts +64 -0
- package/dist/esm/models/PermissionResponse.js +71 -0
- package/dist/esm/models/RoleResponse.d.ts +63 -0
- package/dist/esm/models/RoleResponse.js +67 -0
- package/dist/esm/models/RolesRequest.d.ts +10 -7
- package/dist/esm/models/RolesRequest.js +11 -8
- package/dist/esm/models/SortObject.d.ts +44 -0
- package/dist/esm/models/SortObject.js +45 -0
- package/dist/esm/models/index.d.ts +11 -4
- package/dist/esm/models/index.js +11 -4
- package/dist/models/AgencyProfileResponse.d.ts +69 -0
- package/dist/models/{AgencyViewResponse.js → AgencyProfileResponse.js} +13 -13
- package/dist/models/AgencySummaryResponse.d.ts +102 -0
- package/dist/models/{AgencyPeekViewResponse.js → AgencySummaryResponse.js} +15 -15
- package/dist/models/AssignRoleRequest.d.ts +32 -0
- package/dist/models/AssignRoleRequest.js +50 -0
- package/dist/models/BatchAssignRoleRequest.d.ts +38 -0
- package/dist/models/BatchAssignRoleRequest.js +54 -0
- package/dist/models/GroupedPermissionsResponse.d.ts +49 -0
- package/dist/models/GroupedPermissionsResponse.js +65 -0
- package/dist/models/OrganizationSummaryViewResponse.d.ts +10 -7
- package/dist/models/OrganizationSummaryViewResponse.js +12 -9
- package/dist/models/PageRoleResponse.d.ts +95 -0
- package/dist/models/PageRoleResponse.js +71 -0
- package/dist/models/PageableObject.d.ts +63 -0
- package/dist/models/PageableObject.js +59 -0
- package/dist/models/PagedModelAgencySummaryResponse.d.ts +40 -0
- package/dist/models/PagedModelAgencySummaryResponse.js +52 -0
- package/dist/models/PermissionResponse.d.ts +64 -0
- package/dist/models/PermissionResponse.js +79 -0
- package/dist/models/RoleResponse.d.ts +63 -0
- package/dist/models/RoleResponse.js +75 -0
- package/dist/models/RolesRequest.d.ts +10 -7
- package/dist/models/RolesRequest.js +12 -9
- package/dist/models/SortObject.d.ts +44 -0
- package/dist/models/SortObject.js +52 -0
- package/dist/models/index.d.ts +11 -4
- package/dist/models/index.js +11 -4
- package/docs/AgencyControllerApi.md +1 -214
- package/docs/{AgencyViewResponse.md → AgencyProfileResponse.md} +4 -4
- package/docs/{AgencyPeekViewResponse.md → AgencySummaryResponse.md} +4 -4
- package/docs/{Pageable.md → AssignRoleRequest.md} +6 -10
- package/docs/BatchAssignRoleRequest.md +36 -0
- package/docs/GroupedPermissionsResponse.md +36 -0
- package/docs/InvitationControllerApi.md +12 -12
- package/docs/InvitationQueryControllerApi.md +15 -82
- package/docs/MemberControllerApi.md +151 -0
- package/docs/MemberQueryControllerApi.md +13 -4
- package/docs/OrganizationSummaryViewResponse.md +2 -2
- package/docs/PageRoleResponse.md +54 -0
- package/docs/PageableObject.md +44 -0
- package/docs/{PagedModelAgencyPeekViewResponse.md → PagedModelAgencySummaryResponse.md} +5 -5
- package/docs/PermissionResponse.md +36 -0
- package/docs/{AgencyQueryControllerApi.md → PublicAgencyControllerApi.md} +25 -19
- package/docs/PublicInvitationControllerApi.md +81 -0
- package/docs/PublicRoleControllerApi.md +70 -0
- package/docs/RoleControllerApi.md +221 -0
- package/docs/RoleQueryControllerApi.md +84 -0
- package/docs/RoleResponse.md +40 -0
- package/docs/RolesRequest.md +2 -2
- package/docs/SortObject.md +38 -0
- package/package.json +1 -1
- package/src/apis/AgencyControllerApi.ts +1 -186
- package/src/apis/InvitationControllerApi.ts +15 -15
- package/src/apis/InvitationQueryControllerApi.ts +20 -91
- package/src/apis/MemberControllerApi.ts +168 -0
- package/src/apis/MemberQueryControllerApi.ts +22 -14
- package/src/apis/{AgencyQueryControllerApi.ts → PublicAgencyControllerApi.ts} +50 -48
- package/src/apis/PublicInvitationControllerApi.ts +109 -0
- package/src/apis/PublicRoleControllerApi.ts +83 -0
- package/src/apis/RoleControllerApi.ts +225 -0
- package/src/apis/RoleQueryControllerApi.ts +104 -0
- package/src/apis/index.ts +6 -1
- package/src/models/{AgencyViewResponse.ts → AgencyProfileResponse.ts} +17 -17
- package/src/models/{AgencyPeekViewResponse.ts → AgencySummaryResponse.ts} +24 -24
- package/src/models/AssignRoleRequest.ts +66 -0
- package/src/models/BatchAssignRoleRequest.ts +75 -0
- package/src/models/GroupedPermissionsResponse.ts +96 -0
- package/src/models/OrganizationSummaryViewResponse.ts +13 -10
- package/src/models/PageRoleResponse.ts +167 -0
- package/src/models/PageableObject.ts +113 -0
- package/src/models/PagedModelAgencySummaryResponse.ts +88 -0
- package/src/models/PermissionResponse.ts +105 -0
- package/src/models/RoleResponse.ts +109 -0
- package/src/models/RolesRequest.ts +13 -10
- package/src/models/SortObject.ts +81 -0
- package/src/models/index.ts +11 -4
- package/dist/esm/models/AgencyPeekViewResponse.d.ts +0 -102
- package/dist/esm/models/AgencyViewResponse.d.ts +0 -69
- package/dist/esm/models/Pageable.d.ts +0 -44
- package/dist/esm/models/Pageable.js +0 -45
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
- package/dist/models/AgencyPeekViewResponse.d.ts +0 -102
- package/dist/models/AgencyViewResponse.d.ts +0 -69
- package/dist/models/Pageable.d.ts +0 -44
- package/dist/models/Pageable.js +0 -52
- package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
- package/dist/models/PagedModelAgencyPeekViewResponse.js +0 -52
- package/src/models/Pageable.ts +0 -81
- package/src/models/PagedModelAgencyPeekViewResponse.ts +0 -88
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# RoleControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**createRole**](RoleControllerApi.md#createrole) | **POST** /roles | |
|
|
8
|
+
| [**removeRole**](RoleControllerApi.md#removerole) | **DELETE** /roles/{roleId} | |
|
|
9
|
+
| [**updateRole**](RoleControllerApi.md#updaterole) | **PUT** /roles/{roleId} | |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## createRole
|
|
14
|
+
|
|
15
|
+
> IdResponse createRole(rolesRequest)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
Configuration,
|
|
24
|
+
RoleControllerApi,
|
|
25
|
+
} from '@homespot-sdk/api';
|
|
26
|
+
import type { CreateRoleRequest } from '@homespot-sdk/api';
|
|
27
|
+
|
|
28
|
+
async function example() {
|
|
29
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
30
|
+
const config = new Configuration({
|
|
31
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
32
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
33
|
+
});
|
|
34
|
+
const api = new RoleControllerApi(config);
|
|
35
|
+
|
|
36
|
+
const body = {
|
|
37
|
+
// RolesRequest
|
|
38
|
+
rolesRequest: ...,
|
|
39
|
+
} satisfies CreateRoleRequest;
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
const data = await api.createRole(body);
|
|
43
|
+
console.log(data);
|
|
44
|
+
} catch (error) {
|
|
45
|
+
console.error(error);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Run the test
|
|
50
|
+
example().catch(console.error);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
| Name | Type | Description | Notes |
|
|
57
|
+
|------------- | ------------- | ------------- | -------------|
|
|
58
|
+
| **rolesRequest** | [RolesRequest](RolesRequest.md) | | |
|
|
59
|
+
|
|
60
|
+
### Return type
|
|
61
|
+
|
|
62
|
+
[**IdResponse**](IdResponse.md)
|
|
63
|
+
|
|
64
|
+
### Authorization
|
|
65
|
+
|
|
66
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
67
|
+
|
|
68
|
+
### HTTP request headers
|
|
69
|
+
|
|
70
|
+
- **Content-Type**: `application/json`
|
|
71
|
+
- **Accept**: `*/*`
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### HTTP response details
|
|
75
|
+
| Status code | Description | Response headers |
|
|
76
|
+
|-------------|-------------|------------------|
|
|
77
|
+
| **201** | Created | - |
|
|
78
|
+
|
|
79
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## removeRole
|
|
83
|
+
|
|
84
|
+
> removeRole(roleId)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Example
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
import {
|
|
92
|
+
Configuration,
|
|
93
|
+
RoleControllerApi,
|
|
94
|
+
} from '@homespot-sdk/api';
|
|
95
|
+
import type { RemoveRoleRequest } from '@homespot-sdk/api';
|
|
96
|
+
|
|
97
|
+
async function example() {
|
|
98
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
99
|
+
const config = new Configuration({
|
|
100
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
101
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
102
|
+
});
|
|
103
|
+
const api = new RoleControllerApi(config);
|
|
104
|
+
|
|
105
|
+
const body = {
|
|
106
|
+
// number
|
|
107
|
+
roleId: 56,
|
|
108
|
+
} satisfies RemoveRoleRequest;
|
|
109
|
+
|
|
110
|
+
try {
|
|
111
|
+
const data = await api.removeRole(body);
|
|
112
|
+
console.log(data);
|
|
113
|
+
} catch (error) {
|
|
114
|
+
console.error(error);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Run the test
|
|
119
|
+
example().catch(console.error);
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Parameters
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
| Name | Type | Description | Notes |
|
|
126
|
+
|------------- | ------------- | ------------- | -------------|
|
|
127
|
+
| **roleId** | `number` | | [Defaults to `undefined`] |
|
|
128
|
+
|
|
129
|
+
### Return type
|
|
130
|
+
|
|
131
|
+
`void` (Empty response body)
|
|
132
|
+
|
|
133
|
+
### Authorization
|
|
134
|
+
|
|
135
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
136
|
+
|
|
137
|
+
### HTTP request headers
|
|
138
|
+
|
|
139
|
+
- **Content-Type**: Not defined
|
|
140
|
+
- **Accept**: Not defined
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### HTTP response details
|
|
144
|
+
| Status code | Description | Response headers |
|
|
145
|
+
|-------------|-------------|------------------|
|
|
146
|
+
| **204** | No Content | - |
|
|
147
|
+
|
|
148
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## updateRole
|
|
152
|
+
|
|
153
|
+
> updateRole(roleId, rolesRequest)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### Example
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
import {
|
|
161
|
+
Configuration,
|
|
162
|
+
RoleControllerApi,
|
|
163
|
+
} from '@homespot-sdk/api';
|
|
164
|
+
import type { UpdateRoleRequest } from '@homespot-sdk/api';
|
|
165
|
+
|
|
166
|
+
async function example() {
|
|
167
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
168
|
+
const config = new Configuration({
|
|
169
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
170
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
171
|
+
});
|
|
172
|
+
const api = new RoleControllerApi(config);
|
|
173
|
+
|
|
174
|
+
const body = {
|
|
175
|
+
// number
|
|
176
|
+
roleId: 56,
|
|
177
|
+
// RolesRequest
|
|
178
|
+
rolesRequest: ...,
|
|
179
|
+
} satisfies UpdateRoleRequest;
|
|
180
|
+
|
|
181
|
+
try {
|
|
182
|
+
const data = await api.updateRole(body);
|
|
183
|
+
console.log(data);
|
|
184
|
+
} catch (error) {
|
|
185
|
+
console.error(error);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// Run the test
|
|
190
|
+
example().catch(console.error);
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Parameters
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
| Name | Type | Description | Notes |
|
|
197
|
+
|------------- | ------------- | ------------- | -------------|
|
|
198
|
+
| **roleId** | `number` | | [Defaults to `undefined`] |
|
|
199
|
+
| **rolesRequest** | [RolesRequest](RolesRequest.md) | | |
|
|
200
|
+
|
|
201
|
+
### Return type
|
|
202
|
+
|
|
203
|
+
`void` (Empty response body)
|
|
204
|
+
|
|
205
|
+
### Authorization
|
|
206
|
+
|
|
207
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
208
|
+
|
|
209
|
+
### HTTP request headers
|
|
210
|
+
|
|
211
|
+
- **Content-Type**: `application/json`
|
|
212
|
+
- **Accept**: Not defined
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### HTTP response details
|
|
216
|
+
| Status code | Description | Response headers |
|
|
217
|
+
|-------------|-------------|------------------|
|
|
218
|
+
| **204** | No Content | - |
|
|
219
|
+
|
|
220
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
221
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# RoleQueryControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**listRoles**](RoleQueryControllerApi.md#listroles) | **GET** /roles | |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## listRoles
|
|
12
|
+
|
|
13
|
+
> PageRoleResponse listRoles(page, size, sort)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
Configuration,
|
|
22
|
+
RoleQueryControllerApi,
|
|
23
|
+
} from '@homespot-sdk/api';
|
|
24
|
+
import type { ListRolesRequest } from '@homespot-sdk/api';
|
|
25
|
+
|
|
26
|
+
async function example() {
|
|
27
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
28
|
+
const config = new Configuration({
|
|
29
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
30
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
31
|
+
});
|
|
32
|
+
const api = new RoleQueryControllerApi(config);
|
|
33
|
+
|
|
34
|
+
const body = {
|
|
35
|
+
// number | Zero-based page index (0..N) (optional)
|
|
36
|
+
page: 56,
|
|
37
|
+
// number | The size of the page to be returned (optional)
|
|
38
|
+
size: 56,
|
|
39
|
+
// Array<string> | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (optional)
|
|
40
|
+
sort: ...,
|
|
41
|
+
} satisfies ListRolesRequest;
|
|
42
|
+
|
|
43
|
+
try {
|
|
44
|
+
const data = await api.listRoles(body);
|
|
45
|
+
console.log(data);
|
|
46
|
+
} catch (error) {
|
|
47
|
+
console.error(error);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Run the test
|
|
52
|
+
example().catch(console.error);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Parameters
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
| Name | Type | Description | Notes |
|
|
59
|
+
|------------- | ------------- | ------------- | -------------|
|
|
60
|
+
| **page** | `number` | Zero-based page index (0..N) | [Optional] [Defaults to `0`] |
|
|
61
|
+
| **size** | `number` | The size of the page to be returned | [Optional] [Defaults to `20`] |
|
|
62
|
+
| **sort** | `Array<string>` | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [Optional] |
|
|
63
|
+
|
|
64
|
+
### Return type
|
|
65
|
+
|
|
66
|
+
[**PageRoleResponse**](PageRoleResponse.md)
|
|
67
|
+
|
|
68
|
+
### Authorization
|
|
69
|
+
|
|
70
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
71
|
+
|
|
72
|
+
### HTTP request headers
|
|
73
|
+
|
|
74
|
+
- **Content-Type**: Not defined
|
|
75
|
+
- **Accept**: `*/*`
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### HTTP response details
|
|
79
|
+
| Status code | Description | Response headers |
|
|
80
|
+
|-------------|-------------|------------------|
|
|
81
|
+
| **200** | OK | - |
|
|
82
|
+
|
|
83
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
84
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# RoleResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`description` | string
|
|
12
|
+
`permissions` | Array<string>
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { RoleResponse } from '@homespot-sdk/api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"id": null,
|
|
22
|
+
"name": null,
|
|
23
|
+
"description": null,
|
|
24
|
+
"permissions": null,
|
|
25
|
+
} satisfies RoleResponse
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as RoleResponse
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
package/docs/RolesRequest.md
CHANGED
|
@@ -8,7 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
10
|
`description` | string
|
|
11
|
-
`
|
|
11
|
+
`permissions` | Array<string>
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ import type { RolesRequest } from '@homespot-sdk/api'
|
|
|
19
19
|
const example = {
|
|
20
20
|
"name": null,
|
|
21
21
|
"description": null,
|
|
22
|
-
"
|
|
22
|
+
"permissions": null,
|
|
23
23
|
} satisfies RolesRequest
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# SortObject
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`empty` | boolean
|
|
10
|
+
`sorted` | boolean
|
|
11
|
+
`unsorted` | boolean
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { SortObject } from '@homespot-sdk/api'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"empty": null,
|
|
21
|
+
"sorted": null,
|
|
22
|
+
"unsorted": null,
|
|
23
|
+
} satisfies SortObject
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as SortObject
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
package/package.json
CHANGED
|
@@ -19,7 +19,6 @@ import type {
|
|
|
19
19
|
IdResponse,
|
|
20
20
|
PhotoRequest,
|
|
21
21
|
PresignedUrlsResponse,
|
|
22
|
-
RolesRequest,
|
|
23
22
|
SocialMediasRequest,
|
|
24
23
|
UploadAcknowledgmentResponse,
|
|
25
24
|
} from '../models/index';
|
|
@@ -32,8 +31,6 @@ import {
|
|
|
32
31
|
PhotoRequestToJSON,
|
|
33
32
|
PresignedUrlsResponseFromJSON,
|
|
34
33
|
PresignedUrlsResponseToJSON,
|
|
35
|
-
RolesRequestFromJSON,
|
|
36
|
-
RolesRequestToJSON,
|
|
37
34
|
SocialMediasRequestFromJSON,
|
|
38
35
|
SocialMediasRequestToJSON,
|
|
39
36
|
UploadAcknowledgmentResponseFromJSON,
|
|
@@ -44,10 +41,6 @@ export interface ActivateAgencyRequest {
|
|
|
44
41
|
agencyId: string;
|
|
45
42
|
}
|
|
46
43
|
|
|
47
|
-
export interface AddRoleRequest {
|
|
48
|
-
rolesRequest: RolesRequest;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
44
|
export interface CorrectRegistrationDetailsRequest {
|
|
52
45
|
agencyId: string;
|
|
53
46
|
createAgencyRequest: CreateAgencyRequest;
|
|
@@ -69,15 +62,6 @@ export interface NotifyLogoUploadCompletionRequest {
|
|
|
69
62
|
photoRequest: PhotoRequest;
|
|
70
63
|
}
|
|
71
64
|
|
|
72
|
-
export interface RemoveRoleRequest {
|
|
73
|
-
roleId: number;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface UpdateRoleRequest {
|
|
77
|
-
roleId: number;
|
|
78
|
-
rolesRequest: RolesRequest;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
65
|
export interface UpdateSocialUrlsRequest {
|
|
82
66
|
socialMediasRequest: SocialMediasRequest;
|
|
83
67
|
}
|
|
@@ -102,19 +86,6 @@ export interface AgencyControllerApiInterface {
|
|
|
102
86
|
*/
|
|
103
87
|
activateAgency(requestParameters: ActivateAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
104
88
|
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @param {RolesRequest} rolesRequest
|
|
108
|
-
* @param {*} [options] Override http request option.
|
|
109
|
-
* @throws {RequiredError}
|
|
110
|
-
* @memberof AgencyControllerApiInterface
|
|
111
|
-
*/
|
|
112
|
-
addRoleRaw(requestParameters: AddRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
*/
|
|
116
|
-
addRole(requestParameters: AddRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
117
|
-
|
|
118
89
|
/**
|
|
119
90
|
*
|
|
120
91
|
* @param {string} agencyId
|
|
@@ -181,33 +152,6 @@ export interface AgencyControllerApiInterface {
|
|
|
181
152
|
*/
|
|
182
153
|
notifyLogoUploadCompletion(requestParameters: NotifyLogoUploadCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadAcknowledgmentResponse>;
|
|
183
154
|
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @param {number} roleId
|
|
187
|
-
* @param {*} [options] Override http request option.
|
|
188
|
-
* @throws {RequiredError}
|
|
189
|
-
* @memberof AgencyControllerApiInterface
|
|
190
|
-
*/
|
|
191
|
-
removeRoleRaw(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
*/
|
|
195
|
-
removeRole(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
*
|
|
199
|
-
* @param {number} roleId
|
|
200
|
-
* @param {RolesRequest} rolesRequest
|
|
201
|
-
* @param {*} [options] Override http request option.
|
|
202
|
-
* @throws {RequiredError}
|
|
203
|
-
* @memberof AgencyControllerApiInterface
|
|
204
|
-
*/
|
|
205
|
-
updateRoleRaw(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
*/
|
|
209
|
-
updateRole(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
210
|
-
|
|
211
155
|
/**
|
|
212
156
|
*
|
|
213
157
|
* @param {SocialMediasRequest} socialMediasRequest
|
|
@@ -253,7 +197,7 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
|
|
|
253
197
|
|
|
254
198
|
const response = await this.request({
|
|
255
199
|
path: urlPath,
|
|
256
|
-
method: '
|
|
200
|
+
method: 'PUT',
|
|
257
201
|
headers: headerParameters,
|
|
258
202
|
query: queryParameters,
|
|
259
203
|
}, initOverrides);
|
|
@@ -267,47 +211,6 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
|
|
|
267
211
|
await this.activateAgencyRaw(requestParameters, initOverrides);
|
|
268
212
|
}
|
|
269
213
|
|
|
270
|
-
/**
|
|
271
|
-
*/
|
|
272
|
-
async addRoleRaw(requestParameters: AddRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
273
|
-
if (requestParameters['rolesRequest'] == null) {
|
|
274
|
-
throw new runtime.RequiredError(
|
|
275
|
-
'rolesRequest',
|
|
276
|
-
'Required parameter "rolesRequest" was null or undefined when calling addRole().'
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
const queryParameters: any = {};
|
|
281
|
-
|
|
282
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
283
|
-
|
|
284
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
285
|
-
|
|
286
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
287
|
-
// oauth required
|
|
288
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
let urlPath = `/agency/roles`;
|
|
293
|
-
|
|
294
|
-
const response = await this.request({
|
|
295
|
-
path: urlPath,
|
|
296
|
-
method: 'POST',
|
|
297
|
-
headers: headerParameters,
|
|
298
|
-
query: queryParameters,
|
|
299
|
-
body: RolesRequestToJSON(requestParameters['rolesRequest']),
|
|
300
|
-
}, initOverrides);
|
|
301
|
-
|
|
302
|
-
return new runtime.VoidApiResponse(response);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
*/
|
|
307
|
-
async addRole(requestParameters: AddRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
308
|
-
await this.addRoleRaw(requestParameters, initOverrides);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
214
|
/**
|
|
312
215
|
*/
|
|
313
216
|
async correctRegistrationDetailsRaw(requestParameters: CorrectRegistrationDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -525,94 +428,6 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
|
|
|
525
428
|
return await response.value();
|
|
526
429
|
}
|
|
527
430
|
|
|
528
|
-
/**
|
|
529
|
-
*/
|
|
530
|
-
async removeRoleRaw(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
531
|
-
if (requestParameters['roleId'] == null) {
|
|
532
|
-
throw new runtime.RequiredError(
|
|
533
|
-
'roleId',
|
|
534
|
-
'Required parameter "roleId" was null or undefined when calling removeRole().'
|
|
535
|
-
);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
const queryParameters: any = {};
|
|
539
|
-
|
|
540
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
541
|
-
|
|
542
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
543
|
-
// oauth required
|
|
544
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
let urlPath = `/agency/roles/{roleId}`;
|
|
549
|
-
urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
|
|
550
|
-
|
|
551
|
-
const response = await this.request({
|
|
552
|
-
path: urlPath,
|
|
553
|
-
method: 'DELETE',
|
|
554
|
-
headers: headerParameters,
|
|
555
|
-
query: queryParameters,
|
|
556
|
-
}, initOverrides);
|
|
557
|
-
|
|
558
|
-
return new runtime.VoidApiResponse(response);
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
*/
|
|
563
|
-
async removeRole(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
564
|
-
await this.removeRoleRaw(requestParameters, initOverrides);
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
*/
|
|
569
|
-
async updateRoleRaw(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
570
|
-
if (requestParameters['roleId'] == null) {
|
|
571
|
-
throw new runtime.RequiredError(
|
|
572
|
-
'roleId',
|
|
573
|
-
'Required parameter "roleId" was null or undefined when calling updateRole().'
|
|
574
|
-
);
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
if (requestParameters['rolesRequest'] == null) {
|
|
578
|
-
throw new runtime.RequiredError(
|
|
579
|
-
'rolesRequest',
|
|
580
|
-
'Required parameter "rolesRequest" was null or undefined when calling updateRole().'
|
|
581
|
-
);
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
const queryParameters: any = {};
|
|
585
|
-
|
|
586
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
587
|
-
|
|
588
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
589
|
-
|
|
590
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
591
|
-
// oauth required
|
|
592
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
let urlPath = `/agency/roles/{roleId}`;
|
|
597
|
-
urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
|
|
598
|
-
|
|
599
|
-
const response = await this.request({
|
|
600
|
-
path: urlPath,
|
|
601
|
-
method: 'PUT',
|
|
602
|
-
headers: headerParameters,
|
|
603
|
-
query: queryParameters,
|
|
604
|
-
body: RolesRequestToJSON(requestParameters['rolesRequest']),
|
|
605
|
-
}, initOverrides);
|
|
606
|
-
|
|
607
|
-
return new runtime.VoidApiResponse(response);
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
*/
|
|
612
|
-
async updateRole(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
613
|
-
await this.updateRoleRaw(requestParameters, initOverrides);
|
|
614
|
-
}
|
|
615
|
-
|
|
616
431
|
/**
|
|
617
432
|
*/
|
|
618
433
|
async updateSocialUrlsRaw(requestParameters: UpdateSocialUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|