@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
|
@@ -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
|
|
|
@@ -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
|
+
`pageable` | [PageableObject](PageableObject.md)
|
|
18
|
+
`sort` | [SortObject](SortObject.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
|
+
"pageable": null,
|
|
37
|
+
"sort": 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
|
+
`paged` | boolean
|
|
11
|
+
`pageNumber` | number
|
|
12
|
+
`pageSize` | number
|
|
13
|
+
`sort` | [SortObject](SortObject.md)
|
|
14
|
+
`unpaged` | boolean
|
|
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
|
+
"paged": null,
|
|
25
|
+
"pageNumber": null,
|
|
26
|
+
"pageSize": null,
|
|
27
|
+
"sort": null,
|
|
28
|
+
"unpaged": 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
|
|
|
@@ -1,19 +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**](
|
|
10
|
-
| [**getAllPermissions**](AgencyQueryControllerApi.md#getallpermissions) | **GET** /agency/roles/permissions | |
|
|
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 | |
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
## getAgency
|
|
15
14
|
|
|
16
|
-
>
|
|
15
|
+
> AgencyProfileResponse getAgency(agencyId)
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
|
|
@@ -22,7 +21,7 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
22
21
|
```ts
|
|
23
22
|
import {
|
|
24
23
|
Configuration,
|
|
25
|
-
|
|
24
|
+
PublicAgencyControllerApi,
|
|
26
25
|
} from '@homespot-sdk/api';
|
|
27
26
|
import type { GetAgencyRequest } from '@homespot-sdk/api';
|
|
28
27
|
|
|
@@ -32,7 +31,7 @@ async function example() {
|
|
|
32
31
|
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
33
32
|
accessToken: "YOUR ACCESS TOKEN",
|
|
34
33
|
});
|
|
35
|
-
const api = new
|
|
34
|
+
const api = new PublicAgencyControllerApi(config);
|
|
36
35
|
|
|
37
36
|
const body = {
|
|
38
37
|
// string
|
|
@@ -60,7 +59,7 @@ example().catch(console.error);
|
|
|
60
59
|
|
|
61
60
|
### Return type
|
|
62
61
|
|
|
63
|
-
[**
|
|
62
|
+
[**AgencyProfileResponse**](AgencyProfileResponse.md)
|
|
64
63
|
|
|
65
64
|
### Authorization
|
|
66
65
|
|
|
@@ -82,7 +81,7 @@ example().catch(console.error);
|
|
|
82
81
|
|
|
83
82
|
## getAgencyBySubdomain
|
|
84
83
|
|
|
85
|
-
>
|
|
84
|
+
> AgencySummaryResponse getAgencyBySubdomain(subDomain)
|
|
86
85
|
|
|
87
86
|
|
|
88
87
|
|
|
@@ -91,7 +90,7 @@ example().catch(console.error);
|
|
|
91
90
|
```ts
|
|
92
91
|
import {
|
|
93
92
|
Configuration,
|
|
94
|
-
|
|
93
|
+
PublicAgencyControllerApi,
|
|
95
94
|
} from '@homespot-sdk/api';
|
|
96
95
|
import type { GetAgencyBySubdomainRequest } from '@homespot-sdk/api';
|
|
97
96
|
|
|
@@ -101,7 +100,7 @@ async function example() {
|
|
|
101
100
|
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
102
101
|
accessToken: "YOUR ACCESS TOKEN",
|
|
103
102
|
});
|
|
104
|
-
const api = new
|
|
103
|
+
const api = new PublicAgencyControllerApi(config);
|
|
105
104
|
|
|
106
105
|
const body = {
|
|
107
106
|
// string
|
|
@@ -129,7 +128,7 @@ example().catch(console.error);
|
|
|
129
128
|
|
|
130
129
|
### Return type
|
|
131
130
|
|
|
132
|
-
[**
|
|
131
|
+
[**AgencySummaryResponse**](AgencySummaryResponse.md)
|
|
133
132
|
|
|
134
133
|
### Authorization
|
|
135
134
|
|
|
@@ -151,7 +150,7 @@ example().catch(console.error);
|
|
|
151
150
|
|
|
152
151
|
## getAllAgencies
|
|
153
152
|
|
|
154
|
-
>
|
|
153
|
+
> PagedModelAgencySummaryResponse getAllAgencies(status, page, size, sort)
|
|
155
154
|
|
|
156
155
|
|
|
157
156
|
|
|
@@ -160,7 +159,7 @@ example().catch(console.error);
|
|
|
160
159
|
```ts
|
|
161
160
|
import {
|
|
162
161
|
Configuration,
|
|
163
|
-
|
|
162
|
+
PublicAgencyControllerApi,
|
|
164
163
|
} from '@homespot-sdk/api';
|
|
165
164
|
import type { GetAllAgenciesRequest } from '@homespot-sdk/api';
|
|
166
165
|
|
|
@@ -170,13 +169,17 @@ async function example() {
|
|
|
170
169
|
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
171
170
|
accessToken: "YOUR ACCESS TOKEN",
|
|
172
171
|
});
|
|
173
|
-
const api = new
|
|
172
|
+
const api = new PublicAgencyControllerApi(config);
|
|
174
173
|
|
|
175
174
|
const body = {
|
|
176
|
-
// Pageable
|
|
177
|
-
pageable: ...,
|
|
178
175
|
// 'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE' (optional)
|
|
179
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: ...,
|
|
180
183
|
} satisfies GetAllAgenciesRequest;
|
|
181
184
|
|
|
182
185
|
try {
|
|
@@ -196,73 +199,14 @@ example().catch(console.error);
|
|
|
196
199
|
|
|
197
200
|
| Name | Type | Description | Notes |
|
|
198
201
|
|------------- | ------------- | ------------- | -------------|
|
|
199
|
-
| **pageable** | [](.md) | | [Defaults to `undefined`] |
|
|
200
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] |
|
|
201
206
|
|
|
202
207
|
### Return type
|
|
203
208
|
|
|
204
|
-
[**
|
|
205
|
-
|
|
206
|
-
### Authorization
|
|
207
|
-
|
|
208
|
-
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
209
|
-
|
|
210
|
-
### HTTP request headers
|
|
211
|
-
|
|
212
|
-
- **Content-Type**: Not defined
|
|
213
|
-
- **Accept**: `*/*`
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
### HTTP response details
|
|
217
|
-
| Status code | Description | Response headers |
|
|
218
|
-
|-------------|-------------|------------------|
|
|
219
|
-
| **200** | OK | - |
|
|
220
|
-
|
|
221
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
## getAllPermissions
|
|
225
|
-
|
|
226
|
-
> Array<GroupedPermissionsResponse> getAllPermissions()
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
### Example
|
|
231
|
-
|
|
232
|
-
```ts
|
|
233
|
-
import {
|
|
234
|
-
Configuration,
|
|
235
|
-
AgencyQueryControllerApi,
|
|
236
|
-
} from '@homespot-sdk/api';
|
|
237
|
-
import type { GetAllPermissionsRequest } from '@homespot-sdk/api';
|
|
238
|
-
|
|
239
|
-
async function example() {
|
|
240
|
-
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
241
|
-
const config = new Configuration({
|
|
242
|
-
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
243
|
-
accessToken: "YOUR ACCESS TOKEN",
|
|
244
|
-
});
|
|
245
|
-
const api = new AgencyQueryControllerApi(config);
|
|
246
|
-
|
|
247
|
-
try {
|
|
248
|
-
const data = await api.getAllPermissions();
|
|
249
|
-
console.log(data);
|
|
250
|
-
} catch (error) {
|
|
251
|
-
console.error(error);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// Run the test
|
|
256
|
-
example().catch(console.error);
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
### Parameters
|
|
260
|
-
|
|
261
|
-
This endpoint does not need any parameter.
|
|
262
|
-
|
|
263
|
-
### Return type
|
|
264
|
-
|
|
265
|
-
[**Array<GroupedPermissionsResponse>**](GroupedPermissionsResponse.md)
|
|
209
|
+
[**PagedModelAgencySummaryResponse**](PagedModelAgencySummaryResponse.md)
|
|
266
210
|
|
|
267
211
|
### Authorization
|
|
268
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** /public/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
|
+
|