@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.
- package/.openapi-generator/FILES +30 -10
- package/README.md +26 -18
- 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 -38
- package/dist/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +19 -44
- 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 -38
- package/dist/esm/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +18 -43
- 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 +1 -0
- package/dist/esm/models/GroupedPermissionsResponse.js +2 -1
- package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +2 -0
- package/dist/esm/models/OrganizationSummaryViewResponse.js +3 -1
- 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 +4 -0
- package/dist/esm/models/PermissionResponse.js +6 -2
- package/dist/esm/models/RoleResponse.d.ts +63 -0
- package/dist/esm/models/RoleResponse.js +67 -0
- package/dist/esm/models/RolesRequest.d.ts +2 -0
- package/dist/esm/models/RolesRequest.js +3 -1
- package/dist/esm/models/SortObject.d.ts +44 -0
- package/dist/esm/models/SortObject.js +45 -0
- package/dist/esm/models/index.d.ts +9 -4
- package/dist/esm/models/index.js +9 -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 +1 -0
- package/dist/models/GroupedPermissionsResponse.js +2 -1
- package/dist/models/OrganizationSummaryViewResponse.d.ts +2 -0
- package/dist/models/OrganizationSummaryViewResponse.js +3 -1
- 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 +4 -0
- package/dist/models/PermissionResponse.js +6 -2
- package/dist/models/RoleResponse.d.ts +63 -0
- package/dist/models/RoleResponse.js +75 -0
- package/dist/models/RolesRequest.d.ts +2 -0
- package/dist/models/RolesRequest.js +3 -1
- package/dist/models/SortObject.d.ts +44 -0
- package/dist/models/SortObject.js +52 -0
- package/dist/models/index.d.ts +9 -4
- package/dist/models/index.js +9 -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/InvitationControllerApi.md +12 -12
- package/docs/InvitationQueryControllerApi.md +15 -82
- package/docs/MemberControllerApi.md +151 -0
- package/docs/MemberQueryControllerApi.md +13 -4
- package/docs/PageRoleResponse.md +54 -0
- package/docs/PageableObject.md +44 -0
- package/docs/{PagedModelAgencyPeekViewResponse.md → PagedModelAgencySummaryResponse.md} +5 -5
- package/docs/{AgencyQueryControllerApi.md → PublicAgencyControllerApi.md} +25 -81
- 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/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} +48 -93
- 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 +2 -1
- package/src/models/OrganizationSummaryViewResponse.ts +3 -1
- 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 +6 -2
- package/src/models/RoleResponse.ts +109 -0
- package/src/models/RolesRequest.ts +3 -1
- package/src/models/SortObject.ts +81 -0
- package/src/models/index.ts +9 -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
package/dist/models/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './AddressRequest';
|
|
2
2
|
export * from './AddressViewResponse';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
3
|
+
export * from './AgencyProfileResponse';
|
|
4
|
+
export * from './AgencySummaryResponse';
|
|
5
|
+
export * from './AssignRoleRequest';
|
|
6
|
+
export * from './BatchAssignRoleRequest';
|
|
5
7
|
export * from './CreateAgencyRequest';
|
|
6
8
|
export * from './GroupedPermissionsResponse';
|
|
7
9
|
export * from './IdResponse';
|
|
@@ -12,17 +14,20 @@ export * from './InviteMemberRequest';
|
|
|
12
14
|
export * from './MemberViewResponse';
|
|
13
15
|
export * from './OrganizationSummaryViewResponse';
|
|
14
16
|
export * from './PageMetadata';
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
+
export * from './PageRoleResponse';
|
|
18
|
+
export * from './PageableObject';
|
|
19
|
+
export * from './PagedModelAgencySummaryResponse';
|
|
17
20
|
export * from './PagedModelInvitationViewResponse';
|
|
18
21
|
export * from './PagedModelMemberViewResponse';
|
|
19
22
|
export * from './PermissionResponse';
|
|
20
23
|
export * from './PhotoRequest';
|
|
21
24
|
export * from './PresignedUrlResponse';
|
|
22
25
|
export * from './PresignedUrlsResponse';
|
|
26
|
+
export * from './RoleResponse';
|
|
23
27
|
export * from './RolesRequest';
|
|
24
28
|
export * from './SocialMediaRequest';
|
|
25
29
|
export * from './SocialMediasRequest';
|
|
30
|
+
export * from './SortObject';
|
|
26
31
|
export * from './UploadAcknowledgmentResponse';
|
|
27
32
|
export * from './UserContextViewResponse';
|
|
28
33
|
export * from './UserSummaryViewResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -18,8 +18,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AddressRequest"), exports);
|
|
20
20
|
__exportStar(require("./AddressViewResponse"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./AgencyProfileResponse"), exports);
|
|
22
|
+
__exportStar(require("./AgencySummaryResponse"), exports);
|
|
23
|
+
__exportStar(require("./AssignRoleRequest"), exports);
|
|
24
|
+
__exportStar(require("./BatchAssignRoleRequest"), exports);
|
|
23
25
|
__exportStar(require("./CreateAgencyRequest"), exports);
|
|
24
26
|
__exportStar(require("./GroupedPermissionsResponse"), exports);
|
|
25
27
|
__exportStar(require("./IdResponse"), exports);
|
|
@@ -30,17 +32,20 @@ __exportStar(require("./InviteMemberRequest"), exports);
|
|
|
30
32
|
__exportStar(require("./MemberViewResponse"), exports);
|
|
31
33
|
__exportStar(require("./OrganizationSummaryViewResponse"), exports);
|
|
32
34
|
__exportStar(require("./PageMetadata"), exports);
|
|
33
|
-
__exportStar(require("./
|
|
34
|
-
__exportStar(require("./
|
|
35
|
+
__exportStar(require("./PageRoleResponse"), exports);
|
|
36
|
+
__exportStar(require("./PageableObject"), exports);
|
|
37
|
+
__exportStar(require("./PagedModelAgencySummaryResponse"), exports);
|
|
35
38
|
__exportStar(require("./PagedModelInvitationViewResponse"), exports);
|
|
36
39
|
__exportStar(require("./PagedModelMemberViewResponse"), exports);
|
|
37
40
|
__exportStar(require("./PermissionResponse"), exports);
|
|
38
41
|
__exportStar(require("./PhotoRequest"), exports);
|
|
39
42
|
__exportStar(require("./PresignedUrlResponse"), exports);
|
|
40
43
|
__exportStar(require("./PresignedUrlsResponse"), exports);
|
|
44
|
+
__exportStar(require("./RoleResponse"), exports);
|
|
41
45
|
__exportStar(require("./RolesRequest"), exports);
|
|
42
46
|
__exportStar(require("./SocialMediaRequest"), exports);
|
|
43
47
|
__exportStar(require("./SocialMediasRequest"), exports);
|
|
48
|
+
__exportStar(require("./SortObject"), exports);
|
|
44
49
|
__exportStar(require("./UploadAcknowledgmentResponse"), exports);
|
|
45
50
|
__exportStar(require("./UserContextViewResponse"), exports);
|
|
46
51
|
__exportStar(require("./UserSummaryViewResponse"), exports);
|
|
@@ -4,15 +4,12 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**activateAgency**](AgencyControllerApi.md#activateagency) | **
|
|
8
|
-
| [**addRole**](AgencyControllerApi.md#addrole) | **POST** /agency/roles | |
|
|
7
|
+
| [**activateAgency**](AgencyControllerApi.md#activateagency) | **PUT** /agency/{agencyId}/activate | |
|
|
9
8
|
| [**correctRegistrationDetails**](AgencyControllerApi.md#correctregistrationdetails) | **PUT** /agency/{agencyId}/details | |
|
|
10
9
|
| [**createAgency**](AgencyControllerApi.md#createagencyoperation) | **POST** /agency | |
|
|
11
10
|
| [**generatePresignedUrl**](AgencyControllerApi.md#generatepresignedurl) | **POST** /agency/presigned-urls | |
|
|
12
11
|
| [**notifyCoverUploadCompletion**](AgencyControllerApi.md#notifycoveruploadcompletion) | **POST** /agency/presigned-urls/notify/cover | |
|
|
13
12
|
| [**notifyLogoUploadCompletion**](AgencyControllerApi.md#notifylogouploadcompletion) | **POST** /agency/presigned-urls/notify/logo | |
|
|
14
|
-
| [**removeRole**](AgencyControllerApi.md#removerole) | **DELETE** /agency/roles/{roleId} | |
|
|
15
|
-
| [**updateRole**](AgencyControllerApi.md#updaterole) | **PUT** /agency/roles/{roleId} | |
|
|
16
13
|
| [**updateSocialUrls**](AgencyControllerApi.md#updatesocialurls) | **PUT** /agency/social-media | |
|
|
17
14
|
|
|
18
15
|
|
|
@@ -86,75 +83,6 @@ example().catch(console.error);
|
|
|
86
83
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
87
84
|
|
|
88
85
|
|
|
89
|
-
## addRole
|
|
90
|
-
|
|
91
|
-
> addRole(rolesRequest)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### Example
|
|
96
|
-
|
|
97
|
-
```ts
|
|
98
|
-
import {
|
|
99
|
-
Configuration,
|
|
100
|
-
AgencyControllerApi,
|
|
101
|
-
} from '@homespot-sdk/api';
|
|
102
|
-
import type { AddRoleRequest } from '@homespot-sdk/api';
|
|
103
|
-
|
|
104
|
-
async function example() {
|
|
105
|
-
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
106
|
-
const config = new Configuration({
|
|
107
|
-
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
108
|
-
accessToken: "YOUR ACCESS TOKEN",
|
|
109
|
-
});
|
|
110
|
-
const api = new AgencyControllerApi(config);
|
|
111
|
-
|
|
112
|
-
const body = {
|
|
113
|
-
// RolesRequest
|
|
114
|
-
rolesRequest: ...,
|
|
115
|
-
} satisfies AddRoleRequest;
|
|
116
|
-
|
|
117
|
-
try {
|
|
118
|
-
const data = await api.addRole(body);
|
|
119
|
-
console.log(data);
|
|
120
|
-
} catch (error) {
|
|
121
|
-
console.error(error);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Run the test
|
|
126
|
-
example().catch(console.error);
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Parameters
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
| Name | Type | Description | Notes |
|
|
133
|
-
|------------- | ------------- | ------------- | -------------|
|
|
134
|
-
| **rolesRequest** | [RolesRequest](RolesRequest.md) | | |
|
|
135
|
-
|
|
136
|
-
### Return type
|
|
137
|
-
|
|
138
|
-
`void` (Empty response body)
|
|
139
|
-
|
|
140
|
-
### Authorization
|
|
141
|
-
|
|
142
|
-
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
143
|
-
|
|
144
|
-
### HTTP request headers
|
|
145
|
-
|
|
146
|
-
- **Content-Type**: `application/json`
|
|
147
|
-
- **Accept**: Not defined
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
### HTTP response details
|
|
151
|
-
| Status code | Description | Response headers |
|
|
152
|
-
|-------------|-------------|------------------|
|
|
153
|
-
| **201** | Created | - |
|
|
154
|
-
|
|
155
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
156
|
-
|
|
157
|
-
|
|
158
86
|
## correctRegistrationDetails
|
|
159
87
|
|
|
160
88
|
> correctRegistrationDetails(agencyId, createAgencyRequest)
|
|
@@ -503,147 +431,6 @@ example().catch(console.error);
|
|
|
503
431
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
504
432
|
|
|
505
433
|
|
|
506
|
-
## removeRole
|
|
507
|
-
|
|
508
|
-
> removeRole(roleId)
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
### Example
|
|
513
|
-
|
|
514
|
-
```ts
|
|
515
|
-
import {
|
|
516
|
-
Configuration,
|
|
517
|
-
AgencyControllerApi,
|
|
518
|
-
} from '@homespot-sdk/api';
|
|
519
|
-
import type { RemoveRoleRequest } from '@homespot-sdk/api';
|
|
520
|
-
|
|
521
|
-
async function example() {
|
|
522
|
-
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
523
|
-
const config = new Configuration({
|
|
524
|
-
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
525
|
-
accessToken: "YOUR ACCESS TOKEN",
|
|
526
|
-
});
|
|
527
|
-
const api = new AgencyControllerApi(config);
|
|
528
|
-
|
|
529
|
-
const body = {
|
|
530
|
-
// number
|
|
531
|
-
roleId: 56,
|
|
532
|
-
} satisfies RemoveRoleRequest;
|
|
533
|
-
|
|
534
|
-
try {
|
|
535
|
-
const data = await api.removeRole(body);
|
|
536
|
-
console.log(data);
|
|
537
|
-
} catch (error) {
|
|
538
|
-
console.error(error);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
// Run the test
|
|
543
|
-
example().catch(console.error);
|
|
544
|
-
```
|
|
545
|
-
|
|
546
|
-
### Parameters
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
| Name | Type | Description | Notes |
|
|
550
|
-
|------------- | ------------- | ------------- | -------------|
|
|
551
|
-
| **roleId** | `number` | | [Defaults to `undefined`] |
|
|
552
|
-
|
|
553
|
-
### Return type
|
|
554
|
-
|
|
555
|
-
`void` (Empty response body)
|
|
556
|
-
|
|
557
|
-
### Authorization
|
|
558
|
-
|
|
559
|
-
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
560
|
-
|
|
561
|
-
### HTTP request headers
|
|
562
|
-
|
|
563
|
-
- **Content-Type**: Not defined
|
|
564
|
-
- **Accept**: Not defined
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
### HTTP response details
|
|
568
|
-
| Status code | Description | Response headers |
|
|
569
|
-
|-------------|-------------|------------------|
|
|
570
|
-
| **204** | No Content | - |
|
|
571
|
-
|
|
572
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
## updateRole
|
|
576
|
-
|
|
577
|
-
> updateRole(roleId, rolesRequest)
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
### Example
|
|
582
|
-
|
|
583
|
-
```ts
|
|
584
|
-
import {
|
|
585
|
-
Configuration,
|
|
586
|
-
AgencyControllerApi,
|
|
587
|
-
} from '@homespot-sdk/api';
|
|
588
|
-
import type { UpdateRoleRequest } from '@homespot-sdk/api';
|
|
589
|
-
|
|
590
|
-
async function example() {
|
|
591
|
-
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
592
|
-
const config = new Configuration({
|
|
593
|
-
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
594
|
-
accessToken: "YOUR ACCESS TOKEN",
|
|
595
|
-
});
|
|
596
|
-
const api = new AgencyControllerApi(config);
|
|
597
|
-
|
|
598
|
-
const body = {
|
|
599
|
-
// number
|
|
600
|
-
roleId: 56,
|
|
601
|
-
// RolesRequest
|
|
602
|
-
rolesRequest: ...,
|
|
603
|
-
} satisfies UpdateRoleRequest;
|
|
604
|
-
|
|
605
|
-
try {
|
|
606
|
-
const data = await api.updateRole(body);
|
|
607
|
-
console.log(data);
|
|
608
|
-
} catch (error) {
|
|
609
|
-
console.error(error);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
// Run the test
|
|
614
|
-
example().catch(console.error);
|
|
615
|
-
```
|
|
616
|
-
|
|
617
|
-
### Parameters
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
| Name | Type | Description | Notes |
|
|
621
|
-
|------------- | ------------- | ------------- | -------------|
|
|
622
|
-
| **roleId** | `number` | | [Defaults to `undefined`] |
|
|
623
|
-
| **rolesRequest** | [RolesRequest](RolesRequest.md) | | |
|
|
624
|
-
|
|
625
|
-
### Return type
|
|
626
|
-
|
|
627
|
-
`void` (Empty response body)
|
|
628
|
-
|
|
629
|
-
### Authorization
|
|
630
|
-
|
|
631
|
-
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
632
|
-
|
|
633
|
-
### HTTP request headers
|
|
634
|
-
|
|
635
|
-
- **Content-Type**: `application/json`
|
|
636
|
-
- **Accept**: Not defined
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
### HTTP response details
|
|
640
|
-
| Status code | Description | Response headers |
|
|
641
|
-
|-------------|-------------|------------------|
|
|
642
|
-
| **204** | No Content | - |
|
|
643
|
-
|
|
644
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
645
|
-
|
|
646
|
-
|
|
647
434
|
## updateSocialUrls
|
|
648
435
|
|
|
649
436
|
> updateSocialUrls(socialMediasRequest)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AgencyProfileResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -17,7 +17,7 @@ Name | Type
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
|
-
import type {
|
|
20
|
+
import type { AgencyProfileResponse } from '@homespot-sdk/api'
|
|
21
21
|
|
|
22
22
|
// TODO: Update the object below with actual values
|
|
23
23
|
const example = {
|
|
@@ -28,7 +28,7 @@ const example = {
|
|
|
28
28
|
"phone": null,
|
|
29
29
|
"address": null,
|
|
30
30
|
"yearSince": null,
|
|
31
|
-
} satisfies
|
|
31
|
+
} satisfies AgencyProfileResponse
|
|
32
32
|
|
|
33
33
|
console.log(example)
|
|
34
34
|
|
|
@@ -37,7 +37,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
37
37
|
console.log(exampleJSON)
|
|
38
38
|
|
|
39
39
|
// Parse the JSON string back to an object
|
|
40
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as AgencyProfileResponse
|
|
41
41
|
console.log(exampleParsed)
|
|
42
42
|
```
|
|
43
43
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AgencySummaryResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -21,7 +21,7 @@ Name | Type
|
|
|
21
21
|
## Example
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
|
-
import type {
|
|
24
|
+
import type { AgencySummaryResponse } from '@homespot-sdk/api'
|
|
25
25
|
|
|
26
26
|
// TODO: Update the object below with actual values
|
|
27
27
|
const example = {
|
|
@@ -36,7 +36,7 @@ const example = {
|
|
|
36
36
|
"yearSince": null,
|
|
37
37
|
"status": null,
|
|
38
38
|
"logo": null,
|
|
39
|
-
} satisfies
|
|
39
|
+
} satisfies AgencySummaryResponse
|
|
40
40
|
|
|
41
41
|
console.log(example)
|
|
42
42
|
|
|
@@ -45,7 +45,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
45
45
|
console.log(exampleJSON)
|
|
46
46
|
|
|
47
47
|
// Parse the JSON string back to an object
|
|
48
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
48
|
+
const exampleParsed = JSON.parse(exampleJSON) as AgencySummaryResponse
|
|
49
49
|
console.log(exampleParsed)
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AssignRoleRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`size` | number
|
|
11
|
-
`sort` | Array<string>
|
|
9
|
+
`roleId` | number
|
|
12
10
|
|
|
13
11
|
## Example
|
|
14
12
|
|
|
15
13
|
```typescript
|
|
16
|
-
import type {
|
|
14
|
+
import type { AssignRoleRequest } from '@homespot-sdk/api'
|
|
17
15
|
|
|
18
16
|
// TODO: Update the object below with actual values
|
|
19
17
|
const example = {
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"sort": null,
|
|
23
|
-
} satisfies Pageable
|
|
18
|
+
"roleId": null,
|
|
19
|
+
} satisfies AssignRoleRequest
|
|
24
20
|
|
|
25
21
|
console.log(example)
|
|
26
22
|
|
|
@@ -29,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
25
|
console.log(exampleJSON)
|
|
30
26
|
|
|
31
27
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as AssignRoleRequest
|
|
33
29
|
console.log(exampleParsed)
|
|
34
30
|
```
|
|
35
31
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# BatchAssignRoleRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`roleId` | number
|
|
10
|
+
`memberIds` | Array<string>
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { BatchAssignRoleRequest } from '@homespot-sdk/api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"roleId": null,
|
|
20
|
+
"memberIds": null,
|
|
21
|
+
} satisfies BatchAssignRoleRequest
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as BatchAssignRoleRequest
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -4,14 +4,14 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**
|
|
8
|
-
| [**
|
|
7
|
+
| [**acceptInvitation**](InvitationControllerApi.md#acceptinvitation) | **POST** /invitation/{invitationId} | |
|
|
8
|
+
| [**sendInvitation**](InvitationControllerApi.md#sendinvitation) | **POST** /invitation | |
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## acceptInvitation
|
|
13
13
|
|
|
14
|
-
>
|
|
14
|
+
> acceptInvitation(agencyId, invitationId)
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
Configuration,
|
|
23
23
|
InvitationControllerApi,
|
|
24
24
|
} from '@homespot-sdk/api';
|
|
25
|
-
import type {
|
|
25
|
+
import type { AcceptInvitationRequest } from '@homespot-sdk/api';
|
|
26
26
|
|
|
27
27
|
async function example() {
|
|
28
28
|
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
@@ -37,10 +37,10 @@ async function example() {
|
|
|
37
37
|
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
38
38
|
// string
|
|
39
39
|
invitationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
40
|
-
} satisfies
|
|
40
|
+
} satisfies AcceptInvitationRequest;
|
|
41
41
|
|
|
42
42
|
try {
|
|
43
|
-
const data = await api.
|
|
43
|
+
const data = await api.acceptInvitation(body);
|
|
44
44
|
console.log(data);
|
|
45
45
|
} catch (error) {
|
|
46
46
|
console.error(error);
|
|
@@ -81,9 +81,9 @@ example().catch(console.error);
|
|
|
81
81
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
##
|
|
84
|
+
## sendInvitation
|
|
85
85
|
|
|
86
|
-
>
|
|
86
|
+
> sendInvitation(inviteMemberRequest)
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
Configuration,
|
|
95
95
|
InvitationControllerApi,
|
|
96
96
|
} from '@homespot-sdk/api';
|
|
97
|
-
import type {
|
|
97
|
+
import type { SendInvitationRequest } from '@homespot-sdk/api';
|
|
98
98
|
|
|
99
99
|
async function example() {
|
|
100
100
|
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
@@ -107,10 +107,10 @@ async function example() {
|
|
|
107
107
|
const body = {
|
|
108
108
|
// InviteMemberRequest
|
|
109
109
|
inviteMemberRequest: ...,
|
|
110
|
-
} satisfies
|
|
110
|
+
} satisfies SendInvitationRequest;
|
|
111
111
|
|
|
112
112
|
try {
|
|
113
|
-
const data = await api.
|
|
113
|
+
const data = await api.sendInvitation(body);
|
|
114
114
|
console.log(data);
|
|
115
115
|
} catch (error) {
|
|
116
116
|
console.error(error);
|
|
@@ -4,14 +4,13 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**
|
|
8
|
-
| [**getInvitationDetails**](InvitationQueryControllerApi.md#getinvitationdetails) | **GET** /invitation/{invitationId} | |
|
|
7
|
+
| [**getSentInvitations**](InvitationQueryControllerApi.md#getsentinvitations) | **GET** /invitation | |
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
|
|
12
|
-
##
|
|
11
|
+
## getSentInvitations
|
|
13
12
|
|
|
14
|
-
> PagedModelInvitationViewResponse
|
|
13
|
+
> PagedModelInvitationViewResponse getSentInvitations(page, size, sort)
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
|
|
@@ -22,7 +21,7 @@ import {
|
|
|
22
21
|
Configuration,
|
|
23
22
|
InvitationQueryControllerApi,
|
|
24
23
|
} from '@homespot-sdk/api';
|
|
25
|
-
import type {
|
|
24
|
+
import type { GetSentInvitationsRequest } from '@homespot-sdk/api';
|
|
26
25
|
|
|
27
26
|
async function example() {
|
|
28
27
|
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
@@ -33,12 +32,16 @@ async function example() {
|
|
|
33
32
|
const api = new InvitationQueryControllerApi(config);
|
|
34
33
|
|
|
35
34
|
const body = {
|
|
36
|
-
//
|
|
37
|
-
|
|
38
|
-
|
|
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 GetSentInvitationsRequest;
|
|
39
42
|
|
|
40
43
|
try {
|
|
41
|
-
const data = await api.
|
|
44
|
+
const data = await api.getSentInvitations(body);
|
|
42
45
|
console.log(data);
|
|
43
46
|
} catch (error) {
|
|
44
47
|
console.error(error);
|
|
@@ -54,7 +57,9 @@ example().catch(console.error);
|
|
|
54
57
|
|
|
55
58
|
| Name | Type | Description | Notes |
|
|
56
59
|
|------------- | ------------- | ------------- | -------------|
|
|
57
|
-
| **
|
|
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 `10`] |
|
|
62
|
+
| **sort** | `Array<string>` | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [Optional] |
|
|
58
63
|
|
|
59
64
|
### Return type
|
|
60
65
|
|
|
@@ -77,75 +82,3 @@ example().catch(console.error);
|
|
|
77
82
|
|
|
78
83
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
79
84
|
|
|
80
|
-
|
|
81
|
-
## getInvitationDetails
|
|
82
|
-
|
|
83
|
-
> InvitationDetailsResponse getInvitationDetails(invitationId, agencyId)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### Example
|
|
88
|
-
|
|
89
|
-
```ts
|
|
90
|
-
import {
|
|
91
|
-
Configuration,
|
|
92
|
-
InvitationQueryControllerApi,
|
|
93
|
-
} from '@homespot-sdk/api';
|
|
94
|
-
import type { GetInvitationDetailsRequest } from '@homespot-sdk/api';
|
|
95
|
-
|
|
96
|
-
async function example() {
|
|
97
|
-
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
98
|
-
const config = new Configuration({
|
|
99
|
-
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
100
|
-
accessToken: "YOUR ACCESS TOKEN",
|
|
101
|
-
});
|
|
102
|
-
const api = new InvitationQueryControllerApi(config);
|
|
103
|
-
|
|
104
|
-
const body = {
|
|
105
|
-
// string
|
|
106
|
-
invitationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
107
|
-
// string
|
|
108
|
-
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
109
|
-
} satisfies GetInvitationDetailsRequest;
|
|
110
|
-
|
|
111
|
-
try {
|
|
112
|
-
const data = await api.getInvitationDetails(body);
|
|
113
|
-
console.log(data);
|
|
114
|
-
} catch (error) {
|
|
115
|
-
console.error(error);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Run the test
|
|
120
|
-
example().catch(console.error);
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
### Parameters
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
| Name | Type | Description | Notes |
|
|
127
|
-
|------------- | ------------- | ------------- | -------------|
|
|
128
|
-
| **invitationId** | `string` | | [Defaults to `undefined`] |
|
|
129
|
-
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
130
|
-
|
|
131
|
-
### Return type
|
|
132
|
-
|
|
133
|
-
[**InvitationDetailsResponse**](InvitationDetailsResponse.md)
|
|
134
|
-
|
|
135
|
-
### Authorization
|
|
136
|
-
|
|
137
|
-
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
138
|
-
|
|
139
|
-
### HTTP request headers
|
|
140
|
-
|
|
141
|
-
- **Content-Type**: Not defined
|
|
142
|
-
- **Accept**: `*/*`
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
### HTTP response details
|
|
146
|
-
| Status code | Description | Response headers |
|
|
147
|
-
|-------------|-------------|------------------|
|
|
148
|
-
| **200** | OK | - |
|
|
149
|
-
|
|
150
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
151
|
-
|