@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,151 @@
|
|
|
1
|
+
# MemberControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**assignRole**](MemberControllerApi.md#assignroleoperation) | **PUT** /member/{memberId}/role | |
|
|
8
|
+
| [**assignRoleBatch**](MemberControllerApi.md#assignrolebatch) | **PUT** /member/role | |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## assignRole
|
|
13
|
+
|
|
14
|
+
> assignRole(memberId, assignRoleRequest)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import {
|
|
22
|
+
Configuration,
|
|
23
|
+
MemberControllerApi,
|
|
24
|
+
} from '@homespot-sdk/api';
|
|
25
|
+
import type { AssignRoleOperationRequest } from '@homespot-sdk/api';
|
|
26
|
+
|
|
27
|
+
async function example() {
|
|
28
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
29
|
+
const config = new Configuration({
|
|
30
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
31
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
32
|
+
});
|
|
33
|
+
const api = new MemberControllerApi(config);
|
|
34
|
+
|
|
35
|
+
const body = {
|
|
36
|
+
// string
|
|
37
|
+
memberId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
38
|
+
// AssignRoleRequest
|
|
39
|
+
assignRoleRequest: ...,
|
|
40
|
+
} satisfies AssignRoleOperationRequest;
|
|
41
|
+
|
|
42
|
+
try {
|
|
43
|
+
const data = await api.assignRole(body);
|
|
44
|
+
console.log(data);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
console.error(error);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Run the test
|
|
51
|
+
example().catch(console.error);
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Parameters
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
| Name | Type | Description | Notes |
|
|
58
|
+
|------------- | ------------- | ------------- | -------------|
|
|
59
|
+
| **memberId** | `string` | | [Defaults to `undefined`] |
|
|
60
|
+
| **assignRoleRequest** | [AssignRoleRequest](AssignRoleRequest.md) | | |
|
|
61
|
+
|
|
62
|
+
### Return type
|
|
63
|
+
|
|
64
|
+
`void` (Empty response body)
|
|
65
|
+
|
|
66
|
+
### Authorization
|
|
67
|
+
|
|
68
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
69
|
+
|
|
70
|
+
### HTTP request headers
|
|
71
|
+
|
|
72
|
+
- **Content-Type**: `application/json`
|
|
73
|
+
- **Accept**: Not defined
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### HTTP response details
|
|
77
|
+
| Status code | Description | Response headers |
|
|
78
|
+
|-------------|-------------|------------------|
|
|
79
|
+
| **204** | No Content | - |
|
|
80
|
+
|
|
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
|
+
|
|
83
|
+
|
|
84
|
+
## assignRoleBatch
|
|
85
|
+
|
|
86
|
+
> assignRoleBatch(batchAssignRoleRequest)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Example
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
import {
|
|
94
|
+
Configuration,
|
|
95
|
+
MemberControllerApi,
|
|
96
|
+
} from '@homespot-sdk/api';
|
|
97
|
+
import type { AssignRoleBatchRequest } from '@homespot-sdk/api';
|
|
98
|
+
|
|
99
|
+
async function example() {
|
|
100
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
101
|
+
const config = new Configuration({
|
|
102
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
103
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
104
|
+
});
|
|
105
|
+
const api = new MemberControllerApi(config);
|
|
106
|
+
|
|
107
|
+
const body = {
|
|
108
|
+
// BatchAssignRoleRequest
|
|
109
|
+
batchAssignRoleRequest: ...,
|
|
110
|
+
} satisfies AssignRoleBatchRequest;
|
|
111
|
+
|
|
112
|
+
try {
|
|
113
|
+
const data = await api.assignRoleBatch(body);
|
|
114
|
+
console.log(data);
|
|
115
|
+
} catch (error) {
|
|
116
|
+
console.error(error);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Run the test
|
|
121
|
+
example().catch(console.error);
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Parameters
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
| Name | Type | Description | Notes |
|
|
128
|
+
|------------- | ------------- | ------------- | -------------|
|
|
129
|
+
| **batchAssignRoleRequest** | [BatchAssignRoleRequest](BatchAssignRoleRequest.md) | | |
|
|
130
|
+
|
|
131
|
+
### Return type
|
|
132
|
+
|
|
133
|
+
`void` (Empty response body)
|
|
134
|
+
|
|
135
|
+
### Authorization
|
|
136
|
+
|
|
137
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
138
|
+
|
|
139
|
+
### HTTP request headers
|
|
140
|
+
|
|
141
|
+
- **Content-Type**: `application/json`
|
|
142
|
+
- **Accept**: Not defined
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### HTTP response details
|
|
146
|
+
| Status code | Description | Response headers |
|
|
147
|
+
|-------------|-------------|------------------|
|
|
148
|
+
| **204** | No Content | - |
|
|
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
|
+
|
|
@@ -10,7 +10,7 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
10
10
|
|
|
11
11
|
## getAllMembers
|
|
12
12
|
|
|
13
|
-
> PagedModelMemberViewResponse getAllMembers(
|
|
13
|
+
> PagedModelMemberViewResponse getAllMembers(roleId, page, size, sort)
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -32,8 +32,14 @@ async function example() {
|
|
|
32
32
|
const api = new MemberQueryControllerApi(config);
|
|
33
33
|
|
|
34
34
|
const body = {
|
|
35
|
-
//
|
|
36
|
-
|
|
35
|
+
// number (optional)
|
|
36
|
+
roleId: 56,
|
|
37
|
+
// number | Zero-based page index (0..N) (optional)
|
|
38
|
+
page: 56,
|
|
39
|
+
// number | The size of the page to be returned (optional)
|
|
40
|
+
size: 56,
|
|
41
|
+
// Array<string> | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (optional)
|
|
42
|
+
sort: ...,
|
|
37
43
|
} satisfies GetAllMembersRequest;
|
|
38
44
|
|
|
39
45
|
try {
|
|
@@ -53,7 +59,10 @@ example().catch(console.error);
|
|
|
53
59
|
|
|
54
60
|
| Name | Type | Description | Notes |
|
|
55
61
|
|------------- | ------------- | ------------- | -------------|
|
|
56
|
-
| **
|
|
62
|
+
| **roleId** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
63
|
+
| **page** | `number` | Zero-based page index (0..N) | [Optional] [Defaults to `0`] |
|
|
64
|
+
| **size** | `number` | The size of the page to be returned | [Optional] [Defaults to `10`] |
|
|
65
|
+
| **sort** | `Array<string>` | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [Optional] |
|
|
57
66
|
|
|
58
67
|
### Return type
|
|
59
68
|
|
|
@@ -13,7 +13,7 @@ Name | Type
|
|
|
13
13
|
`roleId` | number
|
|
14
14
|
`memberId` | string
|
|
15
15
|
`roleName` | string
|
|
16
|
-
`
|
|
16
|
+
`permissions` | Array<string>
|
|
17
17
|
`status` | string
|
|
18
18
|
|
|
19
19
|
## Example
|
|
@@ -30,7 +30,7 @@ const example = {
|
|
|
30
30
|
"roleId": null,
|
|
31
31
|
"memberId": null,
|
|
32
32
|
"roleName": null,
|
|
33
|
-
"
|
|
33
|
+
"permissions": null,
|
|
34
34
|
"status": null,
|
|
35
35
|
} satisfies OrganizationSummaryViewResponse
|
|
36
36
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
# PageRoleResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`totalElements` | number
|
|
10
|
+
`totalPages` | number
|
|
11
|
+
`size` | number
|
|
12
|
+
`content` | [Array<RoleResponse>](RoleResponse.md)
|
|
13
|
+
`number` | number
|
|
14
|
+
`first` | boolean
|
|
15
|
+
`last` | boolean
|
|
16
|
+
`numberOfElements` | number
|
|
17
|
+
`sort` | [SortObject](SortObject.md)
|
|
18
|
+
`pageable` | [PageableObject](PageableObject.md)
|
|
19
|
+
`empty` | boolean
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { PageRoleResponse } from '@homespot-sdk/api'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"totalElements": null,
|
|
29
|
+
"totalPages": null,
|
|
30
|
+
"size": null,
|
|
31
|
+
"content": null,
|
|
32
|
+
"number": null,
|
|
33
|
+
"first": null,
|
|
34
|
+
"last": null,
|
|
35
|
+
"numberOfElements": null,
|
|
36
|
+
"sort": null,
|
|
37
|
+
"pageable": null,
|
|
38
|
+
"empty": null,
|
|
39
|
+
} satisfies PageRoleResponse
|
|
40
|
+
|
|
41
|
+
console.log(example)
|
|
42
|
+
|
|
43
|
+
// Convert the instance to a JSON string
|
|
44
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
45
|
+
console.log(exampleJSON)
|
|
46
|
+
|
|
47
|
+
// Parse the JSON string back to an object
|
|
48
|
+
const exampleParsed = JSON.parse(exampleJSON) as PageRoleResponse
|
|
49
|
+
console.log(exampleParsed)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
54
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# PageableObject
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`offset` | number
|
|
10
|
+
`sort` | [SortObject](SortObject.md)
|
|
11
|
+
`unpaged` | boolean
|
|
12
|
+
`paged` | boolean
|
|
13
|
+
`pageNumber` | number
|
|
14
|
+
`pageSize` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { PageableObject } from '@homespot-sdk/api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"offset": null,
|
|
24
|
+
"sort": null,
|
|
25
|
+
"unpaged": null,
|
|
26
|
+
"paged": null,
|
|
27
|
+
"pageNumber": null,
|
|
28
|
+
"pageSize": null,
|
|
29
|
+
} satisfies PageableObject
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as PageableObject
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PagedModelAgencySummaryResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`content` | [Array<
|
|
9
|
+
`content` | [Array<AgencySummaryResponse>](AgencySummaryResponse.md)
|
|
10
10
|
`page` | [PageMetadata](PageMetadata.md)
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { PagedModelAgencySummaryResponse } from '@homespot-sdk/api'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"content": null,
|
|
20
20
|
"page": null,
|
|
21
|
-
} satisfies
|
|
21
|
+
} satisfies PagedModelAgencySummaryResponse
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PagedModelAgencySummaryResponse
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PermissionResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`permission` | string
|
|
10
|
+
`implied` | Array<string>
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PermissionResponse } from '@homespot-sdk/api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"permission": null,
|
|
20
|
+
"implied": null,
|
|
21
|
+
} satisfies PermissionResponse
|
|
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 PermissionResponse
|
|
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
|
+
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# PublicAgencyControllerApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**getAgency**](
|
|
8
|
-
| [**getAgencyBySubdomain**](
|
|
9
|
-
| [**getAllAgencies**](
|
|
7
|
+
| [**getAgency**](PublicAgencyControllerApi.md#getagency) | **GET** /public/agency/{agencyId} | |
|
|
8
|
+
| [**getAgencyBySubdomain**](PublicAgencyControllerApi.md#getagencybysubdomain) | **GET** /public/agency/subdomain/{subDomain} | |
|
|
9
|
+
| [**getAllAgencies**](PublicAgencyControllerApi.md#getallagencies) | **GET** /public/agency | |
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
## getAgency
|
|
14
14
|
|
|
15
|
-
>
|
|
15
|
+
> AgencyProfileResponse getAgency(agencyId)
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -21,7 +21,7 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
21
21
|
```ts
|
|
22
22
|
import {
|
|
23
23
|
Configuration,
|
|
24
|
-
|
|
24
|
+
PublicAgencyControllerApi,
|
|
25
25
|
} from '@homespot-sdk/api';
|
|
26
26
|
import type { GetAgencyRequest } from '@homespot-sdk/api';
|
|
27
27
|
|
|
@@ -31,7 +31,7 @@ async function example() {
|
|
|
31
31
|
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
32
32
|
accessToken: "YOUR ACCESS TOKEN",
|
|
33
33
|
});
|
|
34
|
-
const api = new
|
|
34
|
+
const api = new PublicAgencyControllerApi(config);
|
|
35
35
|
|
|
36
36
|
const body = {
|
|
37
37
|
// string
|
|
@@ -59,7 +59,7 @@ example().catch(console.error);
|
|
|
59
59
|
|
|
60
60
|
### Return type
|
|
61
61
|
|
|
62
|
-
[**
|
|
62
|
+
[**AgencyProfileResponse**](AgencyProfileResponse.md)
|
|
63
63
|
|
|
64
64
|
### Authorization
|
|
65
65
|
|
|
@@ -81,7 +81,7 @@ example().catch(console.error);
|
|
|
81
81
|
|
|
82
82
|
## getAgencyBySubdomain
|
|
83
83
|
|
|
84
|
-
>
|
|
84
|
+
> AgencySummaryResponse getAgencyBySubdomain(subDomain)
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
@@ -90,7 +90,7 @@ example().catch(console.error);
|
|
|
90
90
|
```ts
|
|
91
91
|
import {
|
|
92
92
|
Configuration,
|
|
93
|
-
|
|
93
|
+
PublicAgencyControllerApi,
|
|
94
94
|
} from '@homespot-sdk/api';
|
|
95
95
|
import type { GetAgencyBySubdomainRequest } from '@homespot-sdk/api';
|
|
96
96
|
|
|
@@ -100,7 +100,7 @@ async function example() {
|
|
|
100
100
|
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
101
101
|
accessToken: "YOUR ACCESS TOKEN",
|
|
102
102
|
});
|
|
103
|
-
const api = new
|
|
103
|
+
const api = new PublicAgencyControllerApi(config);
|
|
104
104
|
|
|
105
105
|
const body = {
|
|
106
106
|
// string
|
|
@@ -128,7 +128,7 @@ example().catch(console.error);
|
|
|
128
128
|
|
|
129
129
|
### Return type
|
|
130
130
|
|
|
131
|
-
[**
|
|
131
|
+
[**AgencySummaryResponse**](AgencySummaryResponse.md)
|
|
132
132
|
|
|
133
133
|
### Authorization
|
|
134
134
|
|
|
@@ -150,7 +150,7 @@ example().catch(console.error);
|
|
|
150
150
|
|
|
151
151
|
## getAllAgencies
|
|
152
152
|
|
|
153
|
-
>
|
|
153
|
+
> PagedModelAgencySummaryResponse getAllAgencies(status, page, size, sort)
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
|
|
@@ -159,7 +159,7 @@ example().catch(console.error);
|
|
|
159
159
|
```ts
|
|
160
160
|
import {
|
|
161
161
|
Configuration,
|
|
162
|
-
|
|
162
|
+
PublicAgencyControllerApi,
|
|
163
163
|
} from '@homespot-sdk/api';
|
|
164
164
|
import type { GetAllAgenciesRequest } from '@homespot-sdk/api';
|
|
165
165
|
|
|
@@ -169,13 +169,17 @@ async function example() {
|
|
|
169
169
|
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
170
170
|
accessToken: "YOUR ACCESS TOKEN",
|
|
171
171
|
});
|
|
172
|
-
const api = new
|
|
172
|
+
const api = new PublicAgencyControllerApi(config);
|
|
173
173
|
|
|
174
174
|
const body = {
|
|
175
|
-
// Pageable
|
|
176
|
-
pageable: ...,
|
|
177
175
|
// 'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE' (optional)
|
|
178
176
|
status: status_example,
|
|
177
|
+
// number | Zero-based page index (0..N) (optional)
|
|
178
|
+
page: 56,
|
|
179
|
+
// number | The size of the page to be returned (optional)
|
|
180
|
+
size: 56,
|
|
181
|
+
// Array<string> | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (optional)
|
|
182
|
+
sort: ...,
|
|
179
183
|
} satisfies GetAllAgenciesRequest;
|
|
180
184
|
|
|
181
185
|
try {
|
|
@@ -195,12 +199,14 @@ example().catch(console.error);
|
|
|
195
199
|
|
|
196
200
|
| Name | Type | Description | Notes |
|
|
197
201
|
|------------- | ------------- | ------------- | -------------|
|
|
198
|
-
| **pageable** | [](.md) | | [Defaults to `undefined`] |
|
|
199
202
|
| **status** | `NEW`, `ACTIVE`, `PAYMENT_FAILED`, `INACTIVE` | | [Optional] [Defaults to `undefined`] [Enum: NEW, ACTIVE, PAYMENT_FAILED, INACTIVE] |
|
|
203
|
+
| **page** | `number` | Zero-based page index (0..N) | [Optional] [Defaults to `0`] |
|
|
204
|
+
| **size** | `number` | The size of the page to be returned | [Optional] [Defaults to `10`] |
|
|
205
|
+
| **sort** | `Array<string>` | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [Optional] |
|
|
200
206
|
|
|
201
207
|
### Return type
|
|
202
208
|
|
|
203
|
-
[**
|
|
209
|
+
[**PagedModelAgencySummaryResponse**](PagedModelAgencySummaryResponse.md)
|
|
204
210
|
|
|
205
211
|
### Authorization
|
|
206
212
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# PublicInvitationControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getInvitationDetails**](PublicInvitationControllerApi.md#getinvitationdetails) | **GET** /public/invitation/{invitationId} | |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getInvitationDetails
|
|
12
|
+
|
|
13
|
+
> InvitationDetailsResponse getInvitationDetails(invitationId, agencyId)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
Configuration,
|
|
22
|
+
PublicInvitationControllerApi,
|
|
23
|
+
} from '@homespot-sdk/api';
|
|
24
|
+
import type { GetInvitationDetailsRequest } 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 PublicInvitationControllerApi(config);
|
|
33
|
+
|
|
34
|
+
const body = {
|
|
35
|
+
// string
|
|
36
|
+
invitationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
37
|
+
// string
|
|
38
|
+
agencyId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
39
|
+
} satisfies GetInvitationDetailsRequest;
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
const data = await api.getInvitationDetails(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
|
+
| **invitationId** | `string` | | [Defaults to `undefined`] |
|
|
59
|
+
| **agencyId** | `string` | | [Defaults to `undefined`] |
|
|
60
|
+
|
|
61
|
+
### Return type
|
|
62
|
+
|
|
63
|
+
[**InvitationDetailsResponse**](InvitationDetailsResponse.md)
|
|
64
|
+
|
|
65
|
+
### Authorization
|
|
66
|
+
|
|
67
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
68
|
+
|
|
69
|
+
### HTTP request headers
|
|
70
|
+
|
|
71
|
+
- **Content-Type**: Not defined
|
|
72
|
+
- **Accept**: `*/*`
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### HTTP response details
|
|
76
|
+
| Status code | Description | Response headers |
|
|
77
|
+
|-------------|-------------|------------------|
|
|
78
|
+
| **200** | OK | - |
|
|
79
|
+
|
|
80
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
81
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# PublicRoleControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**listPermissionCatalog**](PublicRoleControllerApi.md#listpermissioncatalog) | **GET** /agency/roles/permissions | |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## listPermissionCatalog
|
|
12
|
+
|
|
13
|
+
> Array<GroupedPermissionsResponse> listPermissionCatalog()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
Configuration,
|
|
22
|
+
PublicRoleControllerApi,
|
|
23
|
+
} from '@homespot-sdk/api';
|
|
24
|
+
import type { ListPermissionCatalogRequest } 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 PublicRoleControllerApi(config);
|
|
33
|
+
|
|
34
|
+
try {
|
|
35
|
+
const data = await api.listPermissionCatalog();
|
|
36
|
+
console.log(data);
|
|
37
|
+
} catch (error) {
|
|
38
|
+
console.error(error);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Run the test
|
|
43
|
+
example().catch(console.error);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
|
|
48
|
+
This endpoint does not need any parameter.
|
|
49
|
+
|
|
50
|
+
### Return type
|
|
51
|
+
|
|
52
|
+
[**Array<GroupedPermissionsResponse>**](GroupedPermissionsResponse.md)
|
|
53
|
+
|
|
54
|
+
### Authorization
|
|
55
|
+
|
|
56
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
57
|
+
|
|
58
|
+
### HTTP request headers
|
|
59
|
+
|
|
60
|
+
- **Content-Type**: Not defined
|
|
61
|
+
- **Accept**: `*/*`
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### HTTP response details
|
|
65
|
+
| Status code | Description | Response headers |
|
|
66
|
+
|-------------|-------------|------------------|
|
|
67
|
+
| **200** | OK | - |
|
|
68
|
+
|
|
69
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
70
|
+
|