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