@homespot-sdk/api 0.0.635 → 0.0.637

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.
Files changed (160) hide show
  1. package/.openapi-generator/FILES +30 -10
  2. package/README.md +26 -18
  3. package/dist/apis/AgencyControllerApi.d.ts +1 -63
  4. package/dist/apis/AgencyControllerApi.js +1 -100
  5. package/dist/apis/InvitationControllerApi.d.ts +10 -10
  6. package/dist/apis/InvitationControllerApi.js +9 -9
  7. package/dist/apis/InvitationQueryControllerApi.d.ts +12 -30
  8. package/dist/apis/InvitationQueryControllerApi.js +12 -47
  9. package/dist/apis/MemberControllerApi.d.ts +68 -0
  10. package/dist/apis/MemberControllerApi.js +101 -0
  11. package/dist/apis/MemberQueryControllerApi.d.ts +10 -4
  12. package/dist/apis/MemberQueryControllerApi.js +13 -7
  13. package/dist/apis/{AgencyQueryControllerApi.d.ts → PublicAgencyControllerApi.d.ts} +26 -38
  14. package/dist/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +19 -44
  15. package/dist/apis/PublicInvitationControllerApi.d.ts +48 -0
  16. package/dist/apis/PublicInvitationControllerApi.js +71 -0
  17. package/dist/apis/PublicRoleControllerApi.d.ts +42 -0
  18. package/dist/apis/PublicRoleControllerApi.js +61 -0
  19. package/dist/apis/RoleControllerApi.d.ts +88 -0
  20. package/dist/apis/RoleControllerApi.js +133 -0
  21. package/dist/apis/RoleQueryControllerApi.d.ts +50 -0
  22. package/dist/apis/RoleQueryControllerApi.js +70 -0
  23. package/dist/apis/index.d.ts +6 -1
  24. package/dist/apis/index.js +6 -1
  25. package/dist/esm/apis/AgencyControllerApi.d.ts +1 -63
  26. package/dist/esm/apis/AgencyControllerApi.js +2 -101
  27. package/dist/esm/apis/InvitationControllerApi.d.ts +10 -10
  28. package/dist/esm/apis/InvitationControllerApi.js +9 -9
  29. package/dist/esm/apis/InvitationQueryControllerApi.d.ts +12 -30
  30. package/dist/esm/apis/InvitationQueryControllerApi.js +13 -48
  31. package/dist/esm/apis/MemberControllerApi.d.ts +68 -0
  32. package/dist/esm/apis/MemberControllerApi.js +97 -0
  33. package/dist/esm/apis/MemberQueryControllerApi.d.ts +10 -4
  34. package/dist/esm/apis/MemberQueryControllerApi.js +13 -7
  35. package/dist/esm/apis/{AgencyQueryControllerApi.d.ts → PublicAgencyControllerApi.d.ts} +26 -38
  36. package/dist/esm/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +18 -43
  37. package/dist/esm/apis/PublicInvitationControllerApi.d.ts +48 -0
  38. package/dist/esm/apis/PublicInvitationControllerApi.js +67 -0
  39. package/dist/esm/apis/PublicRoleControllerApi.d.ts +42 -0
  40. package/dist/esm/apis/PublicRoleControllerApi.js +57 -0
  41. package/dist/esm/apis/RoleControllerApi.d.ts +88 -0
  42. package/dist/esm/apis/RoleControllerApi.js +129 -0
  43. package/dist/esm/apis/RoleQueryControllerApi.d.ts +50 -0
  44. package/dist/esm/apis/RoleQueryControllerApi.js +66 -0
  45. package/dist/esm/apis/index.d.ts +6 -1
  46. package/dist/esm/apis/index.js +6 -1
  47. package/dist/esm/models/AgencyProfileResponse.d.ts +69 -0
  48. package/dist/esm/models/{AgencyViewResponse.js → AgencyProfileResponse.js} +8 -8
  49. package/dist/esm/models/AgencySummaryResponse.d.ts +102 -0
  50. package/dist/esm/models/{AgencyPeekViewResponse.js → AgencySummaryResponse.js} +9 -9
  51. package/dist/esm/models/AssignRoleRequest.d.ts +32 -0
  52. package/dist/esm/models/AssignRoleRequest.js +43 -0
  53. package/dist/esm/models/BatchAssignRoleRequest.d.ts +38 -0
  54. package/dist/esm/models/BatchAssignRoleRequest.js +47 -0
  55. package/dist/esm/models/GroupedPermissionsResponse.d.ts +1 -0
  56. package/dist/esm/models/GroupedPermissionsResponse.js +2 -1
  57. package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +2 -0
  58. package/dist/esm/models/OrganizationSummaryViewResponse.js +3 -1
  59. package/dist/esm/models/PageRoleResponse.d.ts +95 -0
  60. package/dist/esm/models/PageRoleResponse.js +64 -0
  61. package/dist/esm/models/PageableObject.d.ts +63 -0
  62. package/dist/esm/models/PageableObject.js +52 -0
  63. package/dist/esm/models/PagedModelAgencySummaryResponse.d.ts +40 -0
  64. package/dist/esm/models/{PagedModelAgencyPeekViewResponse.js → PagedModelAgencySummaryResponse.js} +11 -11
  65. package/dist/esm/models/PermissionResponse.d.ts +4 -0
  66. package/dist/esm/models/PermissionResponse.js +6 -2
  67. package/dist/esm/models/RoleResponse.d.ts +63 -0
  68. package/dist/esm/models/RoleResponse.js +67 -0
  69. package/dist/esm/models/RolesRequest.d.ts +2 -0
  70. package/dist/esm/models/RolesRequest.js +3 -1
  71. package/dist/esm/models/SortObject.d.ts +44 -0
  72. package/dist/esm/models/SortObject.js +45 -0
  73. package/dist/esm/models/index.d.ts +9 -4
  74. package/dist/esm/models/index.js +9 -4
  75. package/dist/models/AgencyProfileResponse.d.ts +69 -0
  76. package/dist/models/{AgencyViewResponse.js → AgencyProfileResponse.js} +13 -13
  77. package/dist/models/AgencySummaryResponse.d.ts +102 -0
  78. package/dist/models/{AgencyPeekViewResponse.js → AgencySummaryResponse.js} +15 -15
  79. package/dist/models/AssignRoleRequest.d.ts +32 -0
  80. package/dist/models/AssignRoleRequest.js +50 -0
  81. package/dist/models/BatchAssignRoleRequest.d.ts +38 -0
  82. package/dist/models/BatchAssignRoleRequest.js +54 -0
  83. package/dist/models/GroupedPermissionsResponse.d.ts +1 -0
  84. package/dist/models/GroupedPermissionsResponse.js +2 -1
  85. package/dist/models/OrganizationSummaryViewResponse.d.ts +2 -0
  86. package/dist/models/OrganizationSummaryViewResponse.js +3 -1
  87. package/dist/models/PageRoleResponse.d.ts +95 -0
  88. package/dist/models/PageRoleResponse.js +71 -0
  89. package/dist/models/PageableObject.d.ts +63 -0
  90. package/dist/models/PageableObject.js +59 -0
  91. package/dist/models/PagedModelAgencySummaryResponse.d.ts +40 -0
  92. package/dist/models/PagedModelAgencySummaryResponse.js +52 -0
  93. package/dist/models/PermissionResponse.d.ts +4 -0
  94. package/dist/models/PermissionResponse.js +6 -2
  95. package/dist/models/RoleResponse.d.ts +63 -0
  96. package/dist/models/RoleResponse.js +75 -0
  97. package/dist/models/RolesRequest.d.ts +2 -0
  98. package/dist/models/RolesRequest.js +3 -1
  99. package/dist/models/SortObject.d.ts +44 -0
  100. package/dist/models/SortObject.js +52 -0
  101. package/dist/models/index.d.ts +9 -4
  102. package/dist/models/index.js +9 -4
  103. package/docs/AgencyControllerApi.md +1 -214
  104. package/docs/{AgencyViewResponse.md → AgencyProfileResponse.md} +4 -4
  105. package/docs/{AgencyPeekViewResponse.md → AgencySummaryResponse.md} +4 -4
  106. package/docs/{Pageable.md → AssignRoleRequest.md} +6 -10
  107. package/docs/BatchAssignRoleRequest.md +36 -0
  108. package/docs/InvitationControllerApi.md +12 -12
  109. package/docs/InvitationQueryControllerApi.md +15 -82
  110. package/docs/MemberControllerApi.md +151 -0
  111. package/docs/MemberQueryControllerApi.md +13 -4
  112. package/docs/PageRoleResponse.md +54 -0
  113. package/docs/PageableObject.md +44 -0
  114. package/docs/{PagedModelAgencyPeekViewResponse.md → PagedModelAgencySummaryResponse.md} +5 -5
  115. package/docs/{AgencyQueryControllerApi.md → PublicAgencyControllerApi.md} +25 -81
  116. package/docs/PublicInvitationControllerApi.md +81 -0
  117. package/docs/PublicRoleControllerApi.md +70 -0
  118. package/docs/RoleControllerApi.md +221 -0
  119. package/docs/RoleQueryControllerApi.md +84 -0
  120. package/docs/RoleResponse.md +40 -0
  121. package/docs/SortObject.md +38 -0
  122. package/package.json +1 -1
  123. package/src/apis/AgencyControllerApi.ts +1 -186
  124. package/src/apis/InvitationControllerApi.ts +15 -15
  125. package/src/apis/InvitationQueryControllerApi.ts +20 -91
  126. package/src/apis/MemberControllerApi.ts +168 -0
  127. package/src/apis/MemberQueryControllerApi.ts +22 -14
  128. package/src/apis/{AgencyQueryControllerApi.ts → PublicAgencyControllerApi.ts} +48 -93
  129. package/src/apis/PublicInvitationControllerApi.ts +109 -0
  130. package/src/apis/PublicRoleControllerApi.ts +83 -0
  131. package/src/apis/RoleControllerApi.ts +225 -0
  132. package/src/apis/RoleQueryControllerApi.ts +104 -0
  133. package/src/apis/index.ts +6 -1
  134. package/src/models/{AgencyViewResponse.ts → AgencyProfileResponse.ts} +17 -17
  135. package/src/models/{AgencyPeekViewResponse.ts → AgencySummaryResponse.ts} +24 -24
  136. package/src/models/AssignRoleRequest.ts +66 -0
  137. package/src/models/BatchAssignRoleRequest.ts +75 -0
  138. package/src/models/GroupedPermissionsResponse.ts +2 -1
  139. package/src/models/OrganizationSummaryViewResponse.ts +3 -1
  140. package/src/models/PageRoleResponse.ts +167 -0
  141. package/src/models/PageableObject.ts +113 -0
  142. package/src/models/PagedModelAgencySummaryResponse.ts +88 -0
  143. package/src/models/PermissionResponse.ts +6 -2
  144. package/src/models/RoleResponse.ts +109 -0
  145. package/src/models/RolesRequest.ts +3 -1
  146. package/src/models/SortObject.ts +81 -0
  147. package/src/models/index.ts +9 -4
  148. package/dist/esm/models/AgencyPeekViewResponse.d.ts +0 -102
  149. package/dist/esm/models/AgencyViewResponse.d.ts +0 -69
  150. package/dist/esm/models/Pageable.d.ts +0 -44
  151. package/dist/esm/models/Pageable.js +0 -45
  152. package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
  153. package/dist/models/AgencyPeekViewResponse.d.ts +0 -102
  154. package/dist/models/AgencyViewResponse.d.ts +0 -69
  155. package/dist/models/Pageable.d.ts +0 -44
  156. package/dist/models/Pageable.js +0 -52
  157. package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
  158. package/dist/models/PagedModelAgencyPeekViewResponse.js +0 -52
  159. package/src/models/Pageable.ts +0 -81
  160. 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&lt;string&gt;
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
+
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homespot-sdk/api",
3
- "version": "0.0.635",
3
+ "version": "0.0.637",
4
4
  "description": "OpenAPI client for @homespot-sdk/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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: 'POST',
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>> {