@caraer/client 2.0.347
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 +189 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +5 -0
- package/LICENSE +21 -0
- package/README.md +25 -0
- package/api.ts +21719 -0
- package/base.ts +62 -0
- package/common.ts +127 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +12770 -0
- package/dist/api.js +15923 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +139 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +12770 -0
- package/dist/esm/api.js +15835 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +34 -0
- package/dist/esm/common.js +126 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AccessGrantTargetDTO.md +25 -0
- package/docs/AppBarDTO.md +55 -0
- package/docs/AppBarIframeSessionRequest.md +29 -0
- package/docs/AppBarIframeSessionValidateRequest.md +21 -0
- package/docs/AppBarIframeSessionsApi.md +119 -0
- package/docs/AppBarTriggerRequest.md +31 -0
- package/docs/AppBarVisibilityEntry.md +22 -0
- package/docs/AppBarsApi.md +130 -0
- package/docs/AppDTO.md +101 -0
- package/docs/AppDetailsDTO.md +63 -0
- package/docs/AppPricingDTO.md +55 -0
- package/docs/AppPublishDTO.md +51 -0
- package/docs/AppRequest.md +21 -0
- package/docs/AppSettingFieldMappingStructure.md +22 -0
- package/docs/AppSettingFieldMappingStructureItem.md +32 -0
- package/docs/AppSettingFieldSchema.md +40 -0
- package/docs/AppSettingOptionsSource.md +28 -0
- package/docs/AppTierDTO.md +49 -0
- package/docs/ApplicationsApi.md +1422 -0
- package/docs/AutomationsApi.md +54 -0
- package/docs/BillingSettingsDTO.md +51 -0
- package/docs/CaraerErrorType.md +24 -0
- package/docs/CaraerObjectDTO.md +65 -0
- package/docs/CompanyApi.md +538 -0
- package/docs/CompanyDTO.md +47 -0
- package/docs/CompanyDetailsDTO.md +75 -0
- package/docs/CopyPropertiesToObjectRequest.md +20 -0
- package/docs/CopyPropertyToEnvironmentsRequest.md +28 -0
- package/docs/CreateCompanyRequest.md +29 -0
- package/docs/CreateOrUpdateEnvironmentRequest.md +22 -0
- package/docs/CreatePrivateAppRequest.md +27 -0
- package/docs/CreateResponse.md +23 -0
- package/docs/CreateResponseSignedUrlResultDTO.md +23 -0
- package/docs/CreateSignedUrlRequest.md +20 -0
- package/docs/Currency.md +18 -0
- package/docs/CurrencyRange.md +18 -0
- package/docs/CursorLocation.md +25 -0
- package/docs/CustomFontDTO.md +22 -0
- package/docs/Date.md +18 -0
- package/docs/DeleteResponse.md +23 -0
- package/docs/DeleteResponseString.md +23 -0
- package/docs/DigitalIdentityDTO.md +115 -0
- package/docs/Duration.md +18 -0
- package/docs/Email.md +18 -0
- package/docs/EngagementBatchRequest.md +24 -0
- package/docs/ErrorResponse.md +31 -0
- package/docs/FeedDTO.md +66 -0
- package/docs/FeedsApi.md +58 -0
- package/docs/File.md +18 -0
- package/docs/FileManagementApi.md +228 -0
- package/docs/FilledProperty.md +28 -0
- package/docs/Filter.md +21 -0
- package/docs/FilterApi.md +286 -0
- package/docs/FilterGroup.md +21 -0
- package/docs/FilterItem.md +33 -0
- package/docs/FontVariantDTO.md +24 -0
- package/docs/FormDTO.md +59 -0
- package/docs/FormItemDTO.md +31 -0
- package/docs/FormRelationDTO.md +31 -0
- package/docs/FormWithAiPromptDTO.md +61 -0
- package/docs/FormsApi.md +864 -0
- package/docs/GridItemDTO.md +31 -0
- package/docs/GridItemSettingsDTO.md +49 -0
- package/docs/HasAppDTO.md +37 -0
- package/docs/InstallAppRequest.md +29 -0
- package/docs/Leadscore.md +37 -0
- package/docs/LinkedProperty.md +20 -0
- package/docs/LoadAppSettingOptionsRequest.md +27 -0
- package/docs/LoginRequest.md +22 -0
- package/docs/MappingDTO.md +50 -0
- package/docs/MappingItemDTO.md +46 -0
- package/docs/ModuleApi.md +561 -0
- package/docs/MorphRecordRequest.md +21 -0
- package/docs/MultiLine.md +18 -0
- package/docs/MultiSelect.md +18 -0
- package/docs/MultiValueMapStringString.md +22 -0
- package/docs/NotFoundError.md +42 -0
- package/docs/NotFoundErrorCause.md +24 -0
- package/docs/NotFoundErrorCauseStackTraceInner.md +34 -0
- package/docs/NotificationsApi.md +211 -0
- package/docs/Number.md +18 -0
- package/docs/NumberRange.md +18 -0
- package/docs/ObjectAccessGrantCandidatesDTO.md +25 -0
- package/docs/ObjectAccessGrantRequestDTO.md +25 -0
- package/docs/ObjectAccessGrantSectionDTO.md +25 -0
- package/docs/ObjectsApi.md +878 -0
- package/docs/PageContentDTO.md +73 -0
- package/docs/PageContentSettingsDTO.md +111 -0
- package/docs/PageContentStylingDTO.md +26 -0
- package/docs/PaginationResponse.md +31 -0
- package/docs/PaginationResponsePreviewDTO.md +31 -0
- package/docs/PaginationResponseWebpageAccessGrantDTO.md +31 -0
- package/docs/Phone.md +18 -0
- package/docs/PreviewDTO.md +77 -0
- package/docs/PreviewItemDTO.md +43 -0
- package/docs/PreviewItemSettingsDTO.md +43 -0
- package/docs/PreviewRelatedObjectDTO.md +23 -0
- package/docs/PropertyApi.md +803 -0
- package/docs/PropertyDTO.md +77 -0
- package/docs/PropertyDTOFormat.md +35 -0
- package/docs/PropertyFormat.md +32 -0
- package/docs/PropertyOption.md +30 -0
- package/docs/PublicUserDTO.md +36 -0
- package/docs/Record.md +48 -0
- package/docs/RecordDTO.md +45 -0
- package/docs/RecordRelationRequestDTO.md +33 -0
- package/docs/RecordsApi.md +948 -0
- package/docs/Reference.md +26 -0
- package/docs/RegisterRequest.md +26 -0
- package/docs/RelationDTO.md +47 -0
- package/docs/RelationsApi.md +627 -0
- package/docs/ResetPasswordRequest.md +24 -0
- package/docs/RestoreResponse.md +23 -0
- package/docs/RestoreResponseCaraerObjectDTO.md +23 -0
- package/docs/RestoreResponseSavedFilterDTO.md +23 -0
- package/docs/RestoreResponseTeamDTO.md +23 -0
- package/docs/RestoreResponseViewDTO.md +23 -0
- package/docs/ReviewRequest.md +25 -0
- package/docs/SavePropertyDTO.md +71 -0
- package/docs/SavedFilterDTO.md +45 -0
- package/docs/SendNotificationRequest.md +35 -0
- package/docs/ServerlessFunctionDTO.md +45 -0
- package/docs/ServerlessFunctionsApi.md +298 -0
- package/docs/SettingField.md +40 -0
- package/docs/SettingOption.md +24 -0
- package/docs/ShowItem.md +35 -0
- package/docs/ShowResponse.md +23 -0
- package/docs/ShowResponseObjectAccessGrantCandidatesDTO.md +23 -0
- package/docs/ShowResponseWebpageProtectionInfoDTO.md +23 -0
- package/docs/SignedUrlResultDTO.md +27 -0
- package/docs/SimplePublicCompanyDTO.md +69 -0
- package/docs/SingleCheckbox.md +18 -0
- package/docs/SingleLine.md +18 -0
- package/docs/SingleSelect.md +18 -0
- package/docs/SortItem.md +27 -0
- package/docs/SseEmitter.md +20 -0
- package/docs/Structure.md +18 -0
- package/docs/StyleSetDTO.md +502 -0
- package/docs/SubscribeWebhookDTO.md +79 -0
- package/docs/SuccessResponse.md +23 -0
- package/docs/SuccessResponseString.md +23 -0
- package/docs/SuccessResponseVoid.md +23 -0
- package/docs/SyncApi.md +344 -0
- package/docs/SyncDTO.md +40 -0
- package/docs/Tag.md +18 -0
- package/docs/Team.md +52 -0
- package/docs/TeamDTO.md +48 -0
- package/docs/TemplateWebpageDTO.md +69 -0
- package/docs/TestServerlessFunctionRequest.md +25 -0
- package/docs/TestWebhookRequest.md +27 -0
- package/docs/TrackingEventRequest.md +72 -0
- package/docs/TrackingSessionUpsertRequest.md +22 -0
- package/docs/TraitsApi.md +236 -0
- package/docs/Tuple2LongLong.md +22 -0
- package/docs/UpdateLifecyclePropertiesDTO.md +21 -0
- package/docs/UpdateResponse.md +23 -0
- package/docs/Url.md +18 -0
- package/docs/UsedInResult.md +22 -0
- package/docs/UserRecordResponseDTO.md +47 -0
- package/docs/UserWithCursorLocationDTO.md +33 -0
- package/docs/ValidationError.md +36 -0
- package/docs/ViewDTO.md +72 -0
- package/docs/ViewShareRequest.md +24 -0
- package/docs/ViewsApi.md +412 -0
- package/docs/WebMenuDTO.md +53 -0
- package/docs/WebMenuItem.md +26 -0
- package/docs/WebMenusApi.md +336 -0
- package/docs/WebpageAccessGrantDTO.md +51 -0
- package/docs/WebpageDTO.md +69 -0
- package/docs/WebpageEditingStatusDTO.md +25 -0
- package/docs/WebpageOptionsDTO.md +41 -0
- package/docs/WebpageProtectionInfoDTO.md +27 -0
- package/docs/WebpagePublicRecordDTO.md +25 -0
- package/docs/WebpageUnlockRequest.md +20 -0
- package/docs/WebpagesApi.md +2009 -0
- package/docs/WebsiteSettingsDTO.md +321 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +37 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+
# RelationsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://v2.api.caraer.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**addConnection**](#addconnection) | **PUT** /api/v2/relations/{relationUuid}/connection/{from}/{to} | Add a connection to a relation|
|
|
8
|
+
|[**createRelationOrUpdate**](#createrelationorupdate) | **POST** /api/v2/relations/{objectUuid} | Create or update a relation|
|
|
9
|
+
|[**deleteConnection**](#deleteconnection) | **DELETE** /api/v2/relations/{relationUuid}/connection/{from}/{to} | Delete a connection from a relation|
|
|
10
|
+
|[**deleteRelation1**](#deleterelation1) | **DELETE** /api/v2/relations/{relationUuid} | Delete a relation|
|
|
11
|
+
|[**getRelation**](#getrelation) | **GET** /api/v2/relations/{relationUuid} | Get relation details|
|
|
12
|
+
|[**getRelationForObject**](#getrelationforobject) | **GET** /api/v2/relations/{relationUuid}/{objectUuid} | Get relation details for a specific object|
|
|
13
|
+
|[**getRelations**](#getrelations) | **POST** /api/v2/relations/index | Fetch paginated relations|
|
|
14
|
+
|[**getRelationsBetweenObjects**](#getrelationsbetweenobjects) | **POST** /api/v2/relations/index/{fromObjectUuid}/{toObjectUuid} | Get all relations between two objects|
|
|
15
|
+
|[**getRelationsByObject**](#getrelationsbyobject) | **POST** /api/v2/relations/index/{objectUuid} | Fetch relations for a specific object|
|
|
16
|
+
|[**restoreRelation**](#restorerelation) | **POST** /api/v2/relations/{relationUuid}/restore | Restore a deleted relation|
|
|
17
|
+
|[**updateIndices**](#updateindices) | **PUT** /api/v2/relations/updateIndices | Update relation indices|
|
|
18
|
+
|
|
19
|
+
# **addConnection**
|
|
20
|
+
> SuccessResponse addConnection()
|
|
21
|
+
|
|
22
|
+
Creates a connection between two objects for a given relation. The \'from\' and \'to\' UUIDs identify the objects to connect.
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import {
|
|
28
|
+
RelationsApi,
|
|
29
|
+
Configuration
|
|
30
|
+
} from '@caraer/client';
|
|
31
|
+
|
|
32
|
+
const configuration = new Configuration();
|
|
33
|
+
const apiInstance = new RelationsApi(configuration);
|
|
34
|
+
|
|
35
|
+
let relationUuid: string; // (default to undefined)
|
|
36
|
+
let from: string; // (default to undefined)
|
|
37
|
+
let to: string; // (default to undefined)
|
|
38
|
+
|
|
39
|
+
const { status, data } = await apiInstance.addConnection(
|
|
40
|
+
relationUuid,
|
|
41
|
+
from,
|
|
42
|
+
to
|
|
43
|
+
);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
|
|
48
|
+
|Name | Type | Description | Notes|
|
|
49
|
+
|------------- | ------------- | ------------- | -------------|
|
|
50
|
+
| **relationUuid** | [**string**] | | defaults to undefined|
|
|
51
|
+
| **from** | [**string**] | | defaults to undefined|
|
|
52
|
+
| **to** | [**string**] | | defaults to undefined|
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
**SuccessResponse**
|
|
58
|
+
|
|
59
|
+
### Authorization
|
|
60
|
+
|
|
61
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
62
|
+
|
|
63
|
+
### HTTP request headers
|
|
64
|
+
|
|
65
|
+
- **Content-Type**: Not defined
|
|
66
|
+
- **Accept**: application/json, */*
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### HTTP response details
|
|
70
|
+
| Status code | Description | Response headers |
|
|
71
|
+
|-------------|-------------|------------------|
|
|
72
|
+
|**200** | Connection created successfully | - |
|
|
73
|
+
|**404** | One or more entities not found | - |
|
|
74
|
+
|**500** | Internal server error | - |
|
|
75
|
+
|
|
76
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
77
|
+
|
|
78
|
+
# **createRelationOrUpdate**
|
|
79
|
+
> UpdateResponse createRelationOrUpdate(relationDTO)
|
|
80
|
+
|
|
81
|
+
Creates a new relation or updates an existing one for the specified object. If a relation with the same name exists, it is updated; otherwise, a new relation is created. Returns an UpdateResponse if updated or a CreateResponse if created.
|
|
82
|
+
|
|
83
|
+
### Example
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
import {
|
|
87
|
+
RelationsApi,
|
|
88
|
+
Configuration,
|
|
89
|
+
RelationDTO
|
|
90
|
+
} from '@caraer/client';
|
|
91
|
+
|
|
92
|
+
const configuration = new Configuration();
|
|
93
|
+
const apiInstance = new RelationsApi(configuration);
|
|
94
|
+
|
|
95
|
+
let objectUuid: string; // (default to undefined)
|
|
96
|
+
let relationDTO: RelationDTO; //Relation data
|
|
97
|
+
|
|
98
|
+
const { status, data } = await apiInstance.createRelationOrUpdate(
|
|
99
|
+
objectUuid,
|
|
100
|
+
relationDTO
|
|
101
|
+
);
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Parameters
|
|
105
|
+
|
|
106
|
+
|Name | Type | Description | Notes|
|
|
107
|
+
|------------- | ------------- | ------------- | -------------|
|
|
108
|
+
| **relationDTO** | **RelationDTO**| Relation data | |
|
|
109
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Return type
|
|
113
|
+
|
|
114
|
+
**UpdateResponse**
|
|
115
|
+
|
|
116
|
+
### Authorization
|
|
117
|
+
|
|
118
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
119
|
+
|
|
120
|
+
### HTTP request headers
|
|
121
|
+
|
|
122
|
+
- **Content-Type**: application/json
|
|
123
|
+
- **Accept**: application/json, */*
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### HTTP response details
|
|
127
|
+
| Status code | Description | Response headers |
|
|
128
|
+
|-------------|-------------|------------------|
|
|
129
|
+
|**200** | Relation updated successfully | - |
|
|
130
|
+
|**201** | Relation created successfully | - |
|
|
131
|
+
|**400** | Invalid input data | - |
|
|
132
|
+
|**500** | Internal server error | - |
|
|
133
|
+
|
|
134
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
135
|
+
|
|
136
|
+
# **deleteConnection**
|
|
137
|
+
> SuccessResponse deleteConnection()
|
|
138
|
+
|
|
139
|
+
Deletes a connection between two objects for a given relation using the specified UUIDs.
|
|
140
|
+
|
|
141
|
+
### Example
|
|
142
|
+
|
|
143
|
+
```typescript
|
|
144
|
+
import {
|
|
145
|
+
RelationsApi,
|
|
146
|
+
Configuration
|
|
147
|
+
} from '@caraer/client';
|
|
148
|
+
|
|
149
|
+
const configuration = new Configuration();
|
|
150
|
+
const apiInstance = new RelationsApi(configuration);
|
|
151
|
+
|
|
152
|
+
let relationUuid: string; // (default to undefined)
|
|
153
|
+
let from: string; // (default to undefined)
|
|
154
|
+
let to: string; // (default to undefined)
|
|
155
|
+
|
|
156
|
+
const { status, data } = await apiInstance.deleteConnection(
|
|
157
|
+
relationUuid,
|
|
158
|
+
from,
|
|
159
|
+
to
|
|
160
|
+
);
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Parameters
|
|
164
|
+
|
|
165
|
+
|Name | Type | Description | Notes|
|
|
166
|
+
|------------- | ------------- | ------------- | -------------|
|
|
167
|
+
| **relationUuid** | [**string**] | | defaults to undefined|
|
|
168
|
+
| **from** | [**string**] | | defaults to undefined|
|
|
169
|
+
| **to** | [**string**] | | defaults to undefined|
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Return type
|
|
173
|
+
|
|
174
|
+
**SuccessResponse**
|
|
175
|
+
|
|
176
|
+
### Authorization
|
|
177
|
+
|
|
178
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
179
|
+
|
|
180
|
+
### HTTP request headers
|
|
181
|
+
|
|
182
|
+
- **Content-Type**: Not defined
|
|
183
|
+
- **Accept**: application/json, */*
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
### HTTP response details
|
|
187
|
+
| Status code | Description | Response headers |
|
|
188
|
+
|-------------|-------------|------------------|
|
|
189
|
+
|**200** | Connection deleted successfully | - |
|
|
190
|
+
|**404** | One or more entities not found | - |
|
|
191
|
+
|**500** | Internal server error | - |
|
|
192
|
+
|
|
193
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
194
|
+
|
|
195
|
+
# **deleteRelation1**
|
|
196
|
+
> DeleteResponse deleteRelation1()
|
|
197
|
+
|
|
198
|
+
Deletes a relation specified by its UUID. Returns a DeleteResponse with the deleted relation details.
|
|
199
|
+
|
|
200
|
+
### Example
|
|
201
|
+
|
|
202
|
+
```typescript
|
|
203
|
+
import {
|
|
204
|
+
RelationsApi,
|
|
205
|
+
Configuration
|
|
206
|
+
} from '@caraer/client';
|
|
207
|
+
|
|
208
|
+
const configuration = new Configuration();
|
|
209
|
+
const apiInstance = new RelationsApi(configuration);
|
|
210
|
+
|
|
211
|
+
let relationUuid: string; // (default to undefined)
|
|
212
|
+
|
|
213
|
+
const { status, data } = await apiInstance.deleteRelation1(
|
|
214
|
+
relationUuid
|
|
215
|
+
);
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Parameters
|
|
219
|
+
|
|
220
|
+
|Name | Type | Description | Notes|
|
|
221
|
+
|------------- | ------------- | ------------- | -------------|
|
|
222
|
+
| **relationUuid** | [**string**] | | defaults to undefined|
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
### Return type
|
|
226
|
+
|
|
227
|
+
**DeleteResponse**
|
|
228
|
+
|
|
229
|
+
### Authorization
|
|
230
|
+
|
|
231
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
232
|
+
|
|
233
|
+
### HTTP request headers
|
|
234
|
+
|
|
235
|
+
- **Content-Type**: Not defined
|
|
236
|
+
- **Accept**: application/json, */*
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
### HTTP response details
|
|
240
|
+
| Status code | Description | Response headers |
|
|
241
|
+
|-------------|-------------|------------------|
|
|
242
|
+
|**200** | Relation deleted successfully | - |
|
|
243
|
+
|**404** | Relation not found | - |
|
|
244
|
+
|**500** | Internal server error | - |
|
|
245
|
+
|
|
246
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
247
|
+
|
|
248
|
+
# **getRelation**
|
|
249
|
+
> ShowResponse getRelation()
|
|
250
|
+
|
|
251
|
+
Retrieves the details of a relation by its UUID. Returns a ShowResponse containing a RelationDTO.
|
|
252
|
+
|
|
253
|
+
### Example
|
|
254
|
+
|
|
255
|
+
```typescript
|
|
256
|
+
import {
|
|
257
|
+
RelationsApi,
|
|
258
|
+
Configuration
|
|
259
|
+
} from '@caraer/client';
|
|
260
|
+
|
|
261
|
+
const configuration = new Configuration();
|
|
262
|
+
const apiInstance = new RelationsApi(configuration);
|
|
263
|
+
|
|
264
|
+
let relationUuid: string; // (default to undefined)
|
|
265
|
+
|
|
266
|
+
const { status, data } = await apiInstance.getRelation(
|
|
267
|
+
relationUuid
|
|
268
|
+
);
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Parameters
|
|
272
|
+
|
|
273
|
+
|Name | Type | Description | Notes|
|
|
274
|
+
|------------- | ------------- | ------------- | -------------|
|
|
275
|
+
| **relationUuid** | [**string**] | | defaults to undefined|
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
### Return type
|
|
279
|
+
|
|
280
|
+
**ShowResponse**
|
|
281
|
+
|
|
282
|
+
### Authorization
|
|
283
|
+
|
|
284
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
285
|
+
|
|
286
|
+
### HTTP request headers
|
|
287
|
+
|
|
288
|
+
- **Content-Type**: Not defined
|
|
289
|
+
- **Accept**: application/json, */*
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
### HTTP response details
|
|
293
|
+
| Status code | Description | Response headers |
|
|
294
|
+
|-------------|-------------|------------------|
|
|
295
|
+
|**200** | Relation retrieved successfully | - |
|
|
296
|
+
|**404** | Relation not found | - |
|
|
297
|
+
|
|
298
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
299
|
+
|
|
300
|
+
# **getRelationForObject**
|
|
301
|
+
> ShowResponse getRelationForObject()
|
|
302
|
+
|
|
303
|
+
Retrieves a relation by its UUID and associates it with the specified object, returning a RelationDTO that includes details from the related object.
|
|
304
|
+
|
|
305
|
+
### Example
|
|
306
|
+
|
|
307
|
+
```typescript
|
|
308
|
+
import {
|
|
309
|
+
RelationsApi,
|
|
310
|
+
Configuration
|
|
311
|
+
} from '@caraer/client';
|
|
312
|
+
|
|
313
|
+
const configuration = new Configuration();
|
|
314
|
+
const apiInstance = new RelationsApi(configuration);
|
|
315
|
+
|
|
316
|
+
let relationUuid: string; // (default to undefined)
|
|
317
|
+
let objectUuid: string; // (default to undefined)
|
|
318
|
+
|
|
319
|
+
const { status, data } = await apiInstance.getRelationForObject(
|
|
320
|
+
relationUuid,
|
|
321
|
+
objectUuid
|
|
322
|
+
);
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
### Parameters
|
|
326
|
+
|
|
327
|
+
|Name | Type | Description | Notes|
|
|
328
|
+
|------------- | ------------- | ------------- | -------------|
|
|
329
|
+
| **relationUuid** | [**string**] | | defaults to undefined|
|
|
330
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
### Return type
|
|
334
|
+
|
|
335
|
+
**ShowResponse**
|
|
336
|
+
|
|
337
|
+
### Authorization
|
|
338
|
+
|
|
339
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
340
|
+
|
|
341
|
+
### HTTP request headers
|
|
342
|
+
|
|
343
|
+
- **Content-Type**: Not defined
|
|
344
|
+
- **Accept**: application/json
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
### HTTP response details
|
|
348
|
+
| Status code | Description | Response headers |
|
|
349
|
+
|-------------|-------------|------------------|
|
|
350
|
+
|**200** | Relation for object retrieved successfully | - |
|
|
351
|
+
|**404** | Relation or object not found | - |
|
|
352
|
+
|
|
353
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
354
|
+
|
|
355
|
+
# **getRelations**
|
|
356
|
+
> PaginationResponse getRelations(body)
|
|
357
|
+
|
|
358
|
+
Retrieves a paginated list of relations. Returns a PaginationResponse containing RelationDTO objects based on the provided pagination criteria.
|
|
359
|
+
|
|
360
|
+
### Example
|
|
361
|
+
|
|
362
|
+
```typescript
|
|
363
|
+
import {
|
|
364
|
+
RelationsApi,
|
|
365
|
+
Configuration
|
|
366
|
+
} from '@caraer/client';
|
|
367
|
+
|
|
368
|
+
const configuration = new Configuration();
|
|
369
|
+
const apiInstance = new RelationsApi(configuration);
|
|
370
|
+
|
|
371
|
+
let body: any; //Pagination request for relations
|
|
372
|
+
|
|
373
|
+
const { status, data } = await apiInstance.getRelations(
|
|
374
|
+
body
|
|
375
|
+
);
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
### Parameters
|
|
379
|
+
|
|
380
|
+
|Name | Type | Description | Notes|
|
|
381
|
+
|------------- | ------------- | ------------- | -------------|
|
|
382
|
+
| **body** | **any**| Pagination request for relations | |
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
### Return type
|
|
386
|
+
|
|
387
|
+
**PaginationResponse**
|
|
388
|
+
|
|
389
|
+
### Authorization
|
|
390
|
+
|
|
391
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
392
|
+
|
|
393
|
+
### HTTP request headers
|
|
394
|
+
|
|
395
|
+
- **Content-Type**: application/json
|
|
396
|
+
- **Accept**: application/json
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
### HTTP response details
|
|
400
|
+
| Status code | Description | Response headers |
|
|
401
|
+
|-------------|-------------|------------------|
|
|
402
|
+
|**200** | Relations fetched successfully | - |
|
|
403
|
+
|**400** | Invalid pagination request | - |
|
|
404
|
+
|**500** | Internal server error | - |
|
|
405
|
+
|
|
406
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
407
|
+
|
|
408
|
+
# **getRelationsBetweenObjects**
|
|
409
|
+
> PaginationResponse getRelationsBetweenObjects(body)
|
|
410
|
+
|
|
411
|
+
Retrieves all relations between two objects based on the provided object UUIDs.
|
|
412
|
+
|
|
413
|
+
### Example
|
|
414
|
+
|
|
415
|
+
```typescript
|
|
416
|
+
import {
|
|
417
|
+
RelationsApi,
|
|
418
|
+
Configuration
|
|
419
|
+
} from '@caraer/client';
|
|
420
|
+
|
|
421
|
+
const configuration = new Configuration();
|
|
422
|
+
const apiInstance = new RelationsApi(configuration);
|
|
423
|
+
|
|
424
|
+
let fromObjectUuid: string; // (default to undefined)
|
|
425
|
+
let toObjectUuid: string; // (default to undefined)
|
|
426
|
+
let body: any; //
|
|
427
|
+
|
|
428
|
+
const { status, data } = await apiInstance.getRelationsBetweenObjects(
|
|
429
|
+
fromObjectUuid,
|
|
430
|
+
toObjectUuid,
|
|
431
|
+
body
|
|
432
|
+
);
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
### Parameters
|
|
436
|
+
|
|
437
|
+
|Name | Type | Description | Notes|
|
|
438
|
+
|------------- | ------------- | ------------- | -------------|
|
|
439
|
+
| **body** | **any**| | |
|
|
440
|
+
| **fromObjectUuid** | [**string**] | | defaults to undefined|
|
|
441
|
+
| **toObjectUuid** | [**string**] | | defaults to undefined|
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
### Return type
|
|
445
|
+
|
|
446
|
+
**PaginationResponse**
|
|
447
|
+
|
|
448
|
+
### Authorization
|
|
449
|
+
|
|
450
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
451
|
+
|
|
452
|
+
### HTTP request headers
|
|
453
|
+
|
|
454
|
+
- **Content-Type**: application/json
|
|
455
|
+
- **Accept**: application/json
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
### HTTP response details
|
|
459
|
+
| Status code | Description | Response headers |
|
|
460
|
+
|-------------|-------------|------------------|
|
|
461
|
+
|**200** | Relations retrieved successfully | - |
|
|
462
|
+
|**404** | One or more objects not found | - |
|
|
463
|
+
|
|
464
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
465
|
+
|
|
466
|
+
# **getRelationsByObject**
|
|
467
|
+
> PaginationResponse getRelationsByObject(body)
|
|
468
|
+
|
|
469
|
+
Returns relation definitions where this object participates in the **schema** graph for that relation name: either as origin `(thisObject)-[:relationName]->(:Object)` or as target `(:Object)-[:relationName]->(thisObject)`. Unrelated relations (same name elsewhere, or no typed edge touching this object) are excluded. Uses the object’s `name` to filter; request path uses object UUID.
|
|
470
|
+
|
|
471
|
+
### Example
|
|
472
|
+
|
|
473
|
+
```typescript
|
|
474
|
+
import {
|
|
475
|
+
RelationsApi,
|
|
476
|
+
Configuration
|
|
477
|
+
} from '@caraer/client';
|
|
478
|
+
|
|
479
|
+
const configuration = new Configuration();
|
|
480
|
+
const apiInstance = new RelationsApi(configuration);
|
|
481
|
+
|
|
482
|
+
let objectUuid: string; // (default to undefined)
|
|
483
|
+
let body: any; //Pagination request for relations
|
|
484
|
+
|
|
485
|
+
const { status, data } = await apiInstance.getRelationsByObject(
|
|
486
|
+
objectUuid,
|
|
487
|
+
body
|
|
488
|
+
);
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
### Parameters
|
|
492
|
+
|
|
493
|
+
|Name | Type | Description | Notes|
|
|
494
|
+
|------------- | ------------- | ------------- | -------------|
|
|
495
|
+
| **body** | **any**| Pagination request for relations | |
|
|
496
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
### Return type
|
|
500
|
+
|
|
501
|
+
**PaginationResponse**
|
|
502
|
+
|
|
503
|
+
### Authorization
|
|
504
|
+
|
|
505
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
506
|
+
|
|
507
|
+
### HTTP request headers
|
|
508
|
+
|
|
509
|
+
- **Content-Type**: application/json
|
|
510
|
+
- **Accept**: application/json
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
### HTTP response details
|
|
514
|
+
| Status code | Description | Response headers |
|
|
515
|
+
|-------------|-------------|------------------|
|
|
516
|
+
|**200** | Relations fetched successfully | - |
|
|
517
|
+
|**404** | Object not found | - |
|
|
518
|
+
|**500** | Internal server error | - |
|
|
519
|
+
|
|
520
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
521
|
+
|
|
522
|
+
# **restoreRelation**
|
|
523
|
+
> RestoreResponse restoreRelation()
|
|
524
|
+
|
|
525
|
+
Restores a previously deleted relation by its UUID. Returns a RestoreResponse with the restored relation details.
|
|
526
|
+
|
|
527
|
+
### Example
|
|
528
|
+
|
|
529
|
+
```typescript
|
|
530
|
+
import {
|
|
531
|
+
RelationsApi,
|
|
532
|
+
Configuration
|
|
533
|
+
} from '@caraer/client';
|
|
534
|
+
|
|
535
|
+
const configuration = new Configuration();
|
|
536
|
+
const apiInstance = new RelationsApi(configuration);
|
|
537
|
+
|
|
538
|
+
let relationUuid: string; // (default to undefined)
|
|
539
|
+
|
|
540
|
+
const { status, data } = await apiInstance.restoreRelation(
|
|
541
|
+
relationUuid
|
|
542
|
+
);
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
### Parameters
|
|
546
|
+
|
|
547
|
+
|Name | Type | Description | Notes|
|
|
548
|
+
|------------- | ------------- | ------------- | -------------|
|
|
549
|
+
| **relationUuid** | [**string**] | | defaults to undefined|
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
### Return type
|
|
553
|
+
|
|
554
|
+
**RestoreResponse**
|
|
555
|
+
|
|
556
|
+
### Authorization
|
|
557
|
+
|
|
558
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
559
|
+
|
|
560
|
+
### HTTP request headers
|
|
561
|
+
|
|
562
|
+
- **Content-Type**: Not defined
|
|
563
|
+
- **Accept**: application/json, */*
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
### HTTP response details
|
|
567
|
+
| Status code | Description | Response headers |
|
|
568
|
+
|-------------|-------------|------------------|
|
|
569
|
+
|**200** | Relation restored successfully | - |
|
|
570
|
+
|**404** | Relation not found | - |
|
|
571
|
+
|**500** | Internal server error | - |
|
|
572
|
+
|
|
573
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
574
|
+
|
|
575
|
+
# **updateIndices**
|
|
576
|
+
> SuccessResponse updateIndices(body)
|
|
577
|
+
|
|
578
|
+
Updates the indices for relations. The request body should contain a mapping of relation UUIDs to their new index values. Returns a SuccessResponse containing the updated relation objects.
|
|
579
|
+
|
|
580
|
+
### Example
|
|
581
|
+
|
|
582
|
+
```typescript
|
|
583
|
+
import {
|
|
584
|
+
RelationsApi,
|
|
585
|
+
Configuration
|
|
586
|
+
} from '@caraer/client';
|
|
587
|
+
|
|
588
|
+
const configuration = new Configuration();
|
|
589
|
+
const apiInstance = new RelationsApi(configuration);
|
|
590
|
+
|
|
591
|
+
let body: string; //Mapping of relation UUIDs to new index values
|
|
592
|
+
|
|
593
|
+
const { status, data } = await apiInstance.updateIndices(
|
|
594
|
+
body
|
|
595
|
+
);
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
### Parameters
|
|
599
|
+
|
|
600
|
+
|Name | Type | Description | Notes|
|
|
601
|
+
|------------- | ------------- | ------------- | -------------|
|
|
602
|
+
| **body** | **string**| Mapping of relation UUIDs to new index values | |
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
### Return type
|
|
606
|
+
|
|
607
|
+
**SuccessResponse**
|
|
608
|
+
|
|
609
|
+
### Authorization
|
|
610
|
+
|
|
611
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
612
|
+
|
|
613
|
+
### HTTP request headers
|
|
614
|
+
|
|
615
|
+
- **Content-Type**: application/json
|
|
616
|
+
- **Accept**: application/json, */*
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
### HTTP response details
|
|
620
|
+
| Status code | Description | Response headers |
|
|
621
|
+
|-------------|-------------|------------------|
|
|
622
|
+
|**200** | Indices updated successfully | - |
|
|
623
|
+
|**400** | Invalid input provided | - |
|
|
624
|
+
|**500** | Internal server error | - |
|
|
625
|
+
|
|
626
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
627
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ResetPasswordRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**token** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**password** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ResetPasswordRequest } from '@caraer/client';
|
|
16
|
+
|
|
17
|
+
const instance: ResetPasswordRequest = {
|
|
18
|
+
email,
|
|
19
|
+
token,
|
|
20
|
+
password,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# RestoreResponse
|
|
2
|
+
|
|
3
|
+
Represents the response returned when a restore operation is performed successfully.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**message** | **string** | A message detailing the result of the operation. | [optional] [default to undefined]
|
|
10
|
+
**data** | **any** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RestoreResponse } from '@caraer/client';
|
|
16
|
+
|
|
17
|
+
const instance: RestoreResponse = {
|
|
18
|
+
message,
|
|
19
|
+
data,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# RestoreResponseCaraerObjectDTO
|
|
2
|
+
|
|
3
|
+
Represents the response returned when a restore operation is performed successfully.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**message** | **string** | A message detailing the result of the operation. | [optional] [default to undefined]
|
|
10
|
+
**data** | [**CaraerObjectDTO**](CaraerObjectDTO.md) | The data payload of the response, if any. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RestoreResponseCaraerObjectDTO } from '@caraer/client';
|
|
16
|
+
|
|
17
|
+
const instance: RestoreResponseCaraerObjectDTO = {
|
|
18
|
+
message,
|
|
19
|
+
data,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|