@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,948 @@
|
|
|
1
|
+
# RecordsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://v2.api.caraer.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**_delete**](#_delete) | **DELETE** /api/v2/records/{uuid} | Delete a record|
|
|
8
|
+
|[**create**](#create) | **POST** /api/v2/records/{objectName} | Create a new record|
|
|
9
|
+
|[**createOrUpdate**](#createorupdate) | **POST** /api/v2/records/{objectName}/createOrUpdate | Create or update a record|
|
|
10
|
+
|[**createRelation**](#createrelation) | **POST** /api/v2/records/relations/{fromUuid}/{relationName}/{toUuid} | Create a relation between records|
|
|
11
|
+
|[**deleteRelation**](#deleterelation) | **DELETE** /api/v2/records/relations/{fromUuid}/{relationName}/{toUuid} | Delete a relation between records|
|
|
12
|
+
|[**index**](#index) | **POST** /api/v2/records/index | Fetch paginated records|
|
|
13
|
+
|[**indexFlow**](#indexflow) | **POST** /api/v2/records/index/flow | Fetch records for flow view|
|
|
14
|
+
|[**indexPage**](#indexpage) | **POST** /api/v2/records/index/page | Fetch records for page view|
|
|
15
|
+
|[**indexTable**](#indextable) | **POST** /api/v2/records/index/table | Fetch records for table view|
|
|
16
|
+
|[**morph**](#morph) | **POST** /api/v2/records/{uuid}/morph | Morph a record|
|
|
17
|
+
|[**preview**](#preview) | **GET** /api/v2/records/{uuid}/previews/{name} | Get record preview|
|
|
18
|
+
|[**restore**](#restore) | **POST** /api/v2/records/{uuid}/restore | Restore a deleted record|
|
|
19
|
+
|[**search**](#search) | **POST** /api/v2/records/search | Search records|
|
|
20
|
+
|[**show1**](#show1) | **GET** /api/v2/records/{uuid} | Get record details|
|
|
21
|
+
|[**update**](#update) | **PUT** /api/v2/records/{objectName}/{uuid} | Update a record|
|
|
22
|
+
|
|
23
|
+
# **_delete**
|
|
24
|
+
> SuccessResponse _delete()
|
|
25
|
+
|
|
26
|
+
Deletes a record specified by its UUID.
|
|
27
|
+
|
|
28
|
+
### Example
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import {
|
|
32
|
+
RecordsApi,
|
|
33
|
+
Configuration
|
|
34
|
+
} from '@caraer/client';
|
|
35
|
+
|
|
36
|
+
const configuration = new Configuration();
|
|
37
|
+
const apiInstance = new RecordsApi(configuration);
|
|
38
|
+
|
|
39
|
+
let uuid: string; // (default to undefined)
|
|
40
|
+
let mode: string; //Controls how the record is removed. Allowed values: \'archive\' (soft delete, keep all data), \'anonymize\' (remove data but keep relationships), \'delete\' (hard delete). Defaults to \'archive\'. (optional) (default to 'archive')
|
|
41
|
+
|
|
42
|
+
const { status, data } = await apiInstance._delete(
|
|
43
|
+
uuid,
|
|
44
|
+
mode
|
|
45
|
+
);
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Parameters
|
|
49
|
+
|
|
50
|
+
|Name | Type | Description | Notes|
|
|
51
|
+
|------------- | ------------- | ------------- | -------------|
|
|
52
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
53
|
+
| **mode** | [**string**] | Controls how the record is removed. Allowed values: \'archive\' (soft delete, keep all data), \'anonymize\' (remove data but keep relationships), \'delete\' (hard delete). Defaults to \'archive\'. | (optional) defaults to 'archive'|
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Return type
|
|
57
|
+
|
|
58
|
+
**SuccessResponse**
|
|
59
|
+
|
|
60
|
+
### Authorization
|
|
61
|
+
|
|
62
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
63
|
+
|
|
64
|
+
### HTTP request headers
|
|
65
|
+
|
|
66
|
+
- **Content-Type**: Not defined
|
|
67
|
+
- **Accept**: application/json
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### HTTP response details
|
|
71
|
+
| Status code | Description | Response headers |
|
|
72
|
+
|-------------|-------------|------------------|
|
|
73
|
+
|**200** | Record deleted successfully | - |
|
|
74
|
+
|**404** | Record not found | - |
|
|
75
|
+
|**500** | Internal server error | - |
|
|
76
|
+
|
|
77
|
+
[[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)
|
|
78
|
+
|
|
79
|
+
# **create**
|
|
80
|
+
> CreateResponse create(recordDTO)
|
|
81
|
+
|
|
82
|
+
Creates a new record for the specified object using the provided RecordDTO data. Returns a CreateResponse with the newly created record. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc.
|
|
83
|
+
|
|
84
|
+
### Example
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
import {
|
|
88
|
+
RecordsApi,
|
|
89
|
+
Configuration,
|
|
90
|
+
RecordDTO
|
|
91
|
+
} from '@caraer/client';
|
|
92
|
+
|
|
93
|
+
const configuration = new Configuration();
|
|
94
|
+
const apiInstance = new RecordsApi(configuration);
|
|
95
|
+
|
|
96
|
+
let objectName: string; // (default to undefined)
|
|
97
|
+
let recordDTO: RecordDTO; //Record data to create
|
|
98
|
+
let parse: boolean; //If \'true\', parses the created record to human-readable values before returning. (optional) (default to false)
|
|
99
|
+
let ignoreErrors: boolean; //If \'true\', allows the creation to proceed while ignoring certain non-critical validation errors, when supported. (optional) (default to false)
|
|
100
|
+
let recordReturnFormat: string; //Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. (optional) (default to 'LEGACY')
|
|
101
|
+
|
|
102
|
+
const { status, data } = await apiInstance.create(
|
|
103
|
+
objectName,
|
|
104
|
+
recordDTO,
|
|
105
|
+
parse,
|
|
106
|
+
ignoreErrors,
|
|
107
|
+
recordReturnFormat
|
|
108
|
+
);
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Parameters
|
|
112
|
+
|
|
113
|
+
|Name | Type | Description | Notes|
|
|
114
|
+
|------------- | ------------- | ------------- | -------------|
|
|
115
|
+
| **recordDTO** | **RecordDTO**| Record data to create | |
|
|
116
|
+
| **objectName** | [**string**] | | defaults to undefined|
|
|
117
|
+
| **parse** | [**boolean**] | If \'true\', parses the created record to human-readable values before returning. | (optional) defaults to false|
|
|
118
|
+
| **ignoreErrors** | [**boolean**] | If \'true\', allows the creation to proceed while ignoring certain non-critical validation errors, when supported. | (optional) defaults to false|
|
|
119
|
+
| **recordReturnFormat** | [**string**] | Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. | (optional) defaults to 'LEGACY'|
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Return type
|
|
123
|
+
|
|
124
|
+
**CreateResponse**
|
|
125
|
+
|
|
126
|
+
### Authorization
|
|
127
|
+
|
|
128
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
129
|
+
|
|
130
|
+
### HTTP request headers
|
|
131
|
+
|
|
132
|
+
- **Content-Type**: application/json
|
|
133
|
+
- **Accept**: application/json
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### HTTP response details
|
|
137
|
+
| Status code | Description | Response headers |
|
|
138
|
+
|-------------|-------------|------------------|
|
|
139
|
+
|**201** | Record created successfully | - |
|
|
140
|
+
|**400** | Invalid input data | - |
|
|
141
|
+
|**500** | Internal server error | - |
|
|
142
|
+
|
|
143
|
+
[[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)
|
|
144
|
+
|
|
145
|
+
# **createOrUpdate**
|
|
146
|
+
> createOrUpdate(recordDTO)
|
|
147
|
+
|
|
148
|
+
Creates a new record or updates an existing one based on uniqueness criteria for the given object. If a matching record exists, it is updated; otherwise, a new record is created. Returns a CreateResponse or UpdateResponse with the record details. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc.
|
|
149
|
+
|
|
150
|
+
### Example
|
|
151
|
+
|
|
152
|
+
```typescript
|
|
153
|
+
import {
|
|
154
|
+
RecordsApi,
|
|
155
|
+
Configuration,
|
|
156
|
+
RecordDTO
|
|
157
|
+
} from '@caraer/client';
|
|
158
|
+
|
|
159
|
+
const configuration = new Configuration();
|
|
160
|
+
const apiInstance = new RecordsApi(configuration);
|
|
161
|
+
|
|
162
|
+
let objectName: string; // (default to undefined)
|
|
163
|
+
let recordDTO: RecordDTO; //Record data to create or update
|
|
164
|
+
let parse: boolean; // (optional) (default to false)
|
|
165
|
+
let ignoreErrors: boolean; // (optional) (default to false)
|
|
166
|
+
let recordReturnFormat: string; //Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. (optional) (default to 'LEGACY')
|
|
167
|
+
|
|
168
|
+
const { status, data } = await apiInstance.createOrUpdate(
|
|
169
|
+
objectName,
|
|
170
|
+
recordDTO,
|
|
171
|
+
parse,
|
|
172
|
+
ignoreErrors,
|
|
173
|
+
recordReturnFormat
|
|
174
|
+
);
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Parameters
|
|
178
|
+
|
|
179
|
+
|Name | Type | Description | Notes|
|
|
180
|
+
|------------- | ------------- | ------------- | -------------|
|
|
181
|
+
| **recordDTO** | **RecordDTO**| Record data to create or update | |
|
|
182
|
+
| **objectName** | [**string**] | | defaults to undefined|
|
|
183
|
+
| **parse** | [**boolean**] | | (optional) defaults to false|
|
|
184
|
+
| **ignoreErrors** | [**boolean**] | | (optional) defaults to false|
|
|
185
|
+
| **recordReturnFormat** | [**string**] | Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. | (optional) defaults to 'LEGACY'|
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### Return type
|
|
189
|
+
|
|
190
|
+
void (empty response body)
|
|
191
|
+
|
|
192
|
+
### Authorization
|
|
193
|
+
|
|
194
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
195
|
+
|
|
196
|
+
### HTTP request headers
|
|
197
|
+
|
|
198
|
+
- **Content-Type**: application/json
|
|
199
|
+
- **Accept**: application/json
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### HTTP response details
|
|
203
|
+
| Status code | Description | Response headers |
|
|
204
|
+
|-------------|-------------|------------------|
|
|
205
|
+
|**200** | Record updated successfully | - |
|
|
206
|
+
|**201** | Record created successfully | - |
|
|
207
|
+
|**400** | Invalid input data | - |
|
|
208
|
+
|**500** | Internal server error | - |
|
|
209
|
+
|
|
210
|
+
[[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)
|
|
211
|
+
|
|
212
|
+
# **createRelation**
|
|
213
|
+
> SuccessResponse createRelation()
|
|
214
|
+
|
|
215
|
+
Creates a relation between two records identified by their UUIDs using the provided relation name.
|
|
216
|
+
|
|
217
|
+
### Example
|
|
218
|
+
|
|
219
|
+
```typescript
|
|
220
|
+
import {
|
|
221
|
+
RecordsApi,
|
|
222
|
+
Configuration
|
|
223
|
+
} from '@caraer/client';
|
|
224
|
+
|
|
225
|
+
const configuration = new Configuration();
|
|
226
|
+
const apiInstance = new RecordsApi(configuration);
|
|
227
|
+
|
|
228
|
+
let fromUuid: string; // (default to undefined)
|
|
229
|
+
let relationName: string; // (default to undefined)
|
|
230
|
+
let toUuid: string; // (default to undefined)
|
|
231
|
+
let primary: object; //When \'true\', marks the created relation as primary. Defaults to \'false\'. (optional) (default to undefined)
|
|
232
|
+
|
|
233
|
+
const { status, data } = await apiInstance.createRelation(
|
|
234
|
+
fromUuid,
|
|
235
|
+
relationName,
|
|
236
|
+
toUuid,
|
|
237
|
+
primary
|
|
238
|
+
);
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Parameters
|
|
242
|
+
|
|
243
|
+
|Name | Type | Description | Notes|
|
|
244
|
+
|------------- | ------------- | ------------- | -------------|
|
|
245
|
+
| **fromUuid** | [**string**] | | defaults to undefined|
|
|
246
|
+
| **relationName** | [**string**] | | defaults to undefined|
|
|
247
|
+
| **toUuid** | [**string**] | | defaults to undefined|
|
|
248
|
+
| **primary** | **object** | When \'true\', marks the created relation as primary. Defaults to \'false\'. | (optional) defaults to undefined|
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
### Return type
|
|
252
|
+
|
|
253
|
+
**SuccessResponse**
|
|
254
|
+
|
|
255
|
+
### Authorization
|
|
256
|
+
|
|
257
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
258
|
+
|
|
259
|
+
### HTTP request headers
|
|
260
|
+
|
|
261
|
+
- **Content-Type**: Not defined
|
|
262
|
+
- **Accept**: application/json
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
### HTTP response details
|
|
266
|
+
| Status code | Description | Response headers |
|
|
267
|
+
|-------------|-------------|------------------|
|
|
268
|
+
|**200** | Relation created successfully | - |
|
|
269
|
+
|**404** | One or more entities not found | - |
|
|
270
|
+
|**500** | Internal server error | - |
|
|
271
|
+
|
|
272
|
+
[[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)
|
|
273
|
+
|
|
274
|
+
# **deleteRelation**
|
|
275
|
+
> SuccessResponse deleteRelation()
|
|
276
|
+
|
|
277
|
+
Deletes a relation between two records identified by their UUIDs and the relation name.
|
|
278
|
+
|
|
279
|
+
### Example
|
|
280
|
+
|
|
281
|
+
```typescript
|
|
282
|
+
import {
|
|
283
|
+
RecordsApi,
|
|
284
|
+
Configuration
|
|
285
|
+
} from '@caraer/client';
|
|
286
|
+
|
|
287
|
+
const configuration = new Configuration();
|
|
288
|
+
const apiInstance = new RecordsApi(configuration);
|
|
289
|
+
|
|
290
|
+
let fromUuid: string; // (default to undefined)
|
|
291
|
+
let relationName: string; // (default to undefined)
|
|
292
|
+
let toUuid: string; // (default to undefined)
|
|
293
|
+
|
|
294
|
+
const { status, data } = await apiInstance.deleteRelation(
|
|
295
|
+
fromUuid,
|
|
296
|
+
relationName,
|
|
297
|
+
toUuid
|
|
298
|
+
);
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
### Parameters
|
|
302
|
+
|
|
303
|
+
|Name | Type | Description | Notes|
|
|
304
|
+
|------------- | ------------- | ------------- | -------------|
|
|
305
|
+
| **fromUuid** | [**string**] | | defaults to undefined|
|
|
306
|
+
| **relationName** | [**string**] | | defaults to undefined|
|
|
307
|
+
| **toUuid** | [**string**] | | defaults to undefined|
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
### Return type
|
|
311
|
+
|
|
312
|
+
**SuccessResponse**
|
|
313
|
+
|
|
314
|
+
### Authorization
|
|
315
|
+
|
|
316
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
317
|
+
|
|
318
|
+
### HTTP request headers
|
|
319
|
+
|
|
320
|
+
- **Content-Type**: Not defined
|
|
321
|
+
- **Accept**: application/json
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
### HTTP response details
|
|
325
|
+
| Status code | Description | Response headers |
|
|
326
|
+
|-------------|-------------|------------------|
|
|
327
|
+
|**200** | Relation deleted successfully | - |
|
|
328
|
+
|**404** | One or more entities not found | - |
|
|
329
|
+
|**500** | Internal server error | - |
|
|
330
|
+
|
|
331
|
+
[[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)
|
|
332
|
+
|
|
333
|
+
# **index**
|
|
334
|
+
> PaginationResponse index(body)
|
|
335
|
+
|
|
336
|
+
Retrieves a paginated list of records. If a preview type is specified in the request, returns records formatted for preview; otherwise, returns full record details.
|
|
337
|
+
|
|
338
|
+
### Example
|
|
339
|
+
|
|
340
|
+
```typescript
|
|
341
|
+
import {
|
|
342
|
+
RecordsApi,
|
|
343
|
+
Configuration
|
|
344
|
+
} from '@caraer/client';
|
|
345
|
+
|
|
346
|
+
const configuration = new Configuration();
|
|
347
|
+
const apiInstance = new RecordsApi(configuration);
|
|
348
|
+
|
|
349
|
+
let body: string; //Pagination request for records
|
|
350
|
+
let parse: boolean; //If set to \'true\', records are parsed to human-readable values (for example, unix timestamps are formatted as dates). (optional) (default to undefined)
|
|
351
|
+
let archived: boolean; //When \'true\', archived records are returned instead of active records. Defaults to \'false\'. (optional) (default to false)
|
|
352
|
+
let relatedRecordUuid: string; //UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. (optional) (default to undefined)
|
|
353
|
+
let recordReturnFormat: string; //Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. (optional) (default to 'LEGACY')
|
|
354
|
+
|
|
355
|
+
const { status, data } = await apiInstance.index(
|
|
356
|
+
body,
|
|
357
|
+
parse,
|
|
358
|
+
archived,
|
|
359
|
+
relatedRecordUuid,
|
|
360
|
+
recordReturnFormat
|
|
361
|
+
);
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
### Parameters
|
|
365
|
+
|
|
366
|
+
|Name | Type | Description | Notes|
|
|
367
|
+
|------------- | ------------- | ------------- | -------------|
|
|
368
|
+
| **body** | **string**| Pagination request for records | |
|
|
369
|
+
| **parse** | [**boolean**] | If set to \'true\', records are parsed to human-readable values (for example, unix timestamps are formatted as dates). | (optional) defaults to undefined|
|
|
370
|
+
| **archived** | [**boolean**] | When \'true\', archived records are returned instead of active records. Defaults to \'false\'. | (optional) defaults to false|
|
|
371
|
+
| **relatedRecordUuid** | [**string**] | UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. | (optional) defaults to undefined|
|
|
372
|
+
| **recordReturnFormat** | [**string**] | Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. | (optional) defaults to 'LEGACY'|
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
### Return type
|
|
376
|
+
|
|
377
|
+
**PaginationResponse**
|
|
378
|
+
|
|
379
|
+
### Authorization
|
|
380
|
+
|
|
381
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
382
|
+
|
|
383
|
+
### HTTP request headers
|
|
384
|
+
|
|
385
|
+
- **Content-Type**: application/json
|
|
386
|
+
- **Accept**: application/json
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
### HTTP response details
|
|
390
|
+
| Status code | Description | Response headers |
|
|
391
|
+
|-------------|-------------|------------------|
|
|
392
|
+
|**200** | Records fetched successfully | - |
|
|
393
|
+
|**400** | Invalid pagination request | - |
|
|
394
|
+
|**500** | Internal server error | - |
|
|
395
|
+
|
|
396
|
+
[[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)
|
|
397
|
+
|
|
398
|
+
# **indexFlow**
|
|
399
|
+
> SuccessResponse indexFlow(body)
|
|
400
|
+
|
|
401
|
+
Retrieves a list of records formatted for flow view based on a specific property. If the property is not provided in the request, defaults to the \'status\' property of the main object. Returns a SuccessResponse containing the flow records.
|
|
402
|
+
|
|
403
|
+
### Example
|
|
404
|
+
|
|
405
|
+
```typescript
|
|
406
|
+
import {
|
|
407
|
+
RecordsApi,
|
|
408
|
+
Configuration
|
|
409
|
+
} from '@caraer/client';
|
|
410
|
+
|
|
411
|
+
const configuration = new Configuration();
|
|
412
|
+
const apiInstance = new RecordsApi(configuration);
|
|
413
|
+
|
|
414
|
+
let body: string; //Pagination request for flow view
|
|
415
|
+
let relatedRecordUuid: string; //UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. (optional) (default to undefined)
|
|
416
|
+
let parse: boolean; //Whether to parse the record before returning it. (optional) (default to undefined)
|
|
417
|
+
|
|
418
|
+
const { status, data } = await apiInstance.indexFlow(
|
|
419
|
+
body,
|
|
420
|
+
relatedRecordUuid,
|
|
421
|
+
parse
|
|
422
|
+
);
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
### Parameters
|
|
426
|
+
|
|
427
|
+
|Name | Type | Description | Notes|
|
|
428
|
+
|------------- | ------------- | ------------- | -------------|
|
|
429
|
+
| **body** | **string**| Pagination request for flow view | |
|
|
430
|
+
| **relatedRecordUuid** | [**string**] | UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. | (optional) defaults to undefined|
|
|
431
|
+
| **parse** | [**boolean**] | Whether to parse the record before returning it. | (optional) defaults to undefined|
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
### Return type
|
|
435
|
+
|
|
436
|
+
**SuccessResponse**
|
|
437
|
+
|
|
438
|
+
### Authorization
|
|
439
|
+
|
|
440
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
441
|
+
|
|
442
|
+
### HTTP request headers
|
|
443
|
+
|
|
444
|
+
- **Content-Type**: application/json
|
|
445
|
+
- **Accept**: application/json
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
### HTTP response details
|
|
449
|
+
| Status code | Description | Response headers |
|
|
450
|
+
|-------------|-------------|------------------|
|
|
451
|
+
|**200** | Records for flow view fetched successfully | - |
|
|
452
|
+
|**400** | Required property not found | - |
|
|
453
|
+
|**500** | Internal server error | - |
|
|
454
|
+
|
|
455
|
+
[[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)
|
|
456
|
+
|
|
457
|
+
# **indexPage**
|
|
458
|
+
> PaginationResponse indexPage(body)
|
|
459
|
+
|
|
460
|
+
Retrieves a paginated list of webpages for page view. The search query is temporarily removed from the pagination request and passed separately. Returns a PaginationResponse containing WebpageDTO objects.
|
|
461
|
+
|
|
462
|
+
### Example
|
|
463
|
+
|
|
464
|
+
```typescript
|
|
465
|
+
import {
|
|
466
|
+
RecordsApi,
|
|
467
|
+
Configuration
|
|
468
|
+
} from '@caraer/client';
|
|
469
|
+
|
|
470
|
+
const configuration = new Configuration();
|
|
471
|
+
const apiInstance = new RecordsApi(configuration);
|
|
472
|
+
|
|
473
|
+
let body: string; //Pagination request for page view
|
|
474
|
+
let environment: string; //Target environment for resolving webpages (for example \'staging\' or \'production\'). Defaults to \'staging\'. (optional) (default to 'staging')
|
|
475
|
+
let relatedRecordUuid: string; //UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. (optional) (default to undefined)
|
|
476
|
+
let fields: string; //Comma-separated WebpageDTO fields to return (for example: uuid,title). When omitted, the full WebpageDTO is returned. (optional) (default to undefined)
|
|
477
|
+
let publishedOnly: boolean; //When true, only returns pages published in the selected environment. (optional) (default to false)
|
|
478
|
+
let excludeTemplateRelated: boolean; //When true, excludes pages whose options mark them as related to a template. (optional) (default to false)
|
|
479
|
+
|
|
480
|
+
const { status, data } = await apiInstance.indexPage(
|
|
481
|
+
body,
|
|
482
|
+
environment,
|
|
483
|
+
relatedRecordUuid,
|
|
484
|
+
fields,
|
|
485
|
+
publishedOnly,
|
|
486
|
+
excludeTemplateRelated
|
|
487
|
+
);
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
### Parameters
|
|
491
|
+
|
|
492
|
+
|Name | Type | Description | Notes|
|
|
493
|
+
|------------- | ------------- | ------------- | -------------|
|
|
494
|
+
| **body** | **string**| Pagination request for page view | |
|
|
495
|
+
| **environment** | [**string**] | Target environment for resolving webpages (for example \'staging\' or \'production\'). Defaults to \'staging\'. | (optional) defaults to 'staging'|
|
|
496
|
+
| **relatedRecordUuid** | [**string**] | UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. | (optional) defaults to undefined|
|
|
497
|
+
| **fields** | [**string**] | Comma-separated WebpageDTO fields to return (for example: uuid,title). When omitted, the full WebpageDTO is returned. | (optional) defaults to undefined|
|
|
498
|
+
| **publishedOnly** | [**boolean**] | When true, only returns pages published in the selected environment. | (optional) defaults to false|
|
|
499
|
+
| **excludeTemplateRelated** | [**boolean**] | When true, excludes pages whose options mark them as related to a template. | (optional) defaults to false|
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
### Return type
|
|
503
|
+
|
|
504
|
+
**PaginationResponse**
|
|
505
|
+
|
|
506
|
+
### Authorization
|
|
507
|
+
|
|
508
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
509
|
+
|
|
510
|
+
### HTTP request headers
|
|
511
|
+
|
|
512
|
+
- **Content-Type**: application/json
|
|
513
|
+
- **Accept**: application/json
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
### HTTP response details
|
|
517
|
+
| Status code | Description | Response headers |
|
|
518
|
+
|-------------|-------------|------------------|
|
|
519
|
+
|**200** | Webpages fetched successfully | - |
|
|
520
|
+
|**400** | Invalid pagination request | - |
|
|
521
|
+
|
|
522
|
+
[[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)
|
|
523
|
+
|
|
524
|
+
# **indexTable**
|
|
525
|
+
> PaginationResponse indexTable(body)
|
|
526
|
+
|
|
527
|
+
Retrieves records formatted for table display. Returns a PaginationResponse containing records formatted for table view.
|
|
528
|
+
|
|
529
|
+
### Example
|
|
530
|
+
|
|
531
|
+
```typescript
|
|
532
|
+
import {
|
|
533
|
+
RecordsApi,
|
|
534
|
+
Configuration
|
|
535
|
+
} from '@caraer/client';
|
|
536
|
+
|
|
537
|
+
const configuration = new Configuration();
|
|
538
|
+
const apiInstance = new RecordsApi(configuration);
|
|
539
|
+
|
|
540
|
+
let body: string; //Pagination request for table view
|
|
541
|
+
let relatedRecordUuid: string; //UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. (optional) (default to undefined)
|
|
542
|
+
|
|
543
|
+
const { status, data } = await apiInstance.indexTable(
|
|
544
|
+
body,
|
|
545
|
+
relatedRecordUuid
|
|
546
|
+
);
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
### Parameters
|
|
550
|
+
|
|
551
|
+
|Name | Type | Description | Notes|
|
|
552
|
+
|------------- | ------------- | ------------- | -------------|
|
|
553
|
+
| **body** | **string**| Pagination request for table view | |
|
|
554
|
+
| **relatedRecordUuid** | [**string**] | UUID of a record used for relation-aware filtering. If supplied and the request body contains a filter, that filter will be smartened based on this related record. If no filter is supplied, a default filter will be applied that returns all records related in any way (any relation) to this record. | (optional) defaults to undefined|
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
### Return type
|
|
558
|
+
|
|
559
|
+
**PaginationResponse**
|
|
560
|
+
|
|
561
|
+
### Authorization
|
|
562
|
+
|
|
563
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
564
|
+
|
|
565
|
+
### HTTP request headers
|
|
566
|
+
|
|
567
|
+
- **Content-Type**: application/json
|
|
568
|
+
- **Accept**: application/json
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
### HTTP response details
|
|
572
|
+
| Status code | Description | Response headers |
|
|
573
|
+
|-------------|-------------|------------------|
|
|
574
|
+
|**200** | Records for table view fetched successfully | - |
|
|
575
|
+
|**400** | Invalid request | - |
|
|
576
|
+
|
|
577
|
+
[[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)
|
|
578
|
+
|
|
579
|
+
# **morph**
|
|
580
|
+
> SuccessResponse morph(morphRecordRequest)
|
|
581
|
+
|
|
582
|
+
Morphs a record identified by its UUID to one or more objects. You can use this to move a record or add it to another object so it\'ll be visible in the new object.Returns a SuccessResponse confirming that the record has been morphed.
|
|
583
|
+
|
|
584
|
+
### Example
|
|
585
|
+
|
|
586
|
+
```typescript
|
|
587
|
+
import {
|
|
588
|
+
RecordsApi,
|
|
589
|
+
Configuration,
|
|
590
|
+
MorphRecordRequest
|
|
591
|
+
} from '@caraer/client';
|
|
592
|
+
|
|
593
|
+
const configuration = new Configuration();
|
|
594
|
+
const apiInstance = new RecordsApi(configuration);
|
|
595
|
+
|
|
596
|
+
let uuid: string; // (default to undefined)
|
|
597
|
+
let morphRecordRequest: MorphRecordRequest; //
|
|
598
|
+
let recordReturnFormat: string; //Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. (optional) (default to 'LEGACY')
|
|
599
|
+
let parse: boolean; //Whether to parse the record before returning it. (optional) (default to undefined)
|
|
600
|
+
|
|
601
|
+
const { status, data } = await apiInstance.morph(
|
|
602
|
+
uuid,
|
|
603
|
+
morphRecordRequest,
|
|
604
|
+
recordReturnFormat,
|
|
605
|
+
parse
|
|
606
|
+
);
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
### Parameters
|
|
610
|
+
|
|
611
|
+
|Name | Type | Description | Notes|
|
|
612
|
+
|------------- | ------------- | ------------- | -------------|
|
|
613
|
+
| **morphRecordRequest** | **MorphRecordRequest**| | |
|
|
614
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
615
|
+
| **recordReturnFormat** | [**string**] | Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. | (optional) defaults to 'LEGACY'|
|
|
616
|
+
| **parse** | [**boolean**] | Whether to parse the record before returning it. | (optional) defaults to undefined|
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
### Return type
|
|
620
|
+
|
|
621
|
+
**SuccessResponse**
|
|
622
|
+
|
|
623
|
+
### Authorization
|
|
624
|
+
|
|
625
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
626
|
+
|
|
627
|
+
### HTTP request headers
|
|
628
|
+
|
|
629
|
+
- **Content-Type**: application/json
|
|
630
|
+
- **Accept**: application/json
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
### HTTP response details
|
|
634
|
+
| Status code | Description | Response headers |
|
|
635
|
+
|-------------|-------------|------------------|
|
|
636
|
+
|**200** | Record morphed successfully | - |
|
|
637
|
+
|**404** | Record not found | - |
|
|
638
|
+
|**500** | Internal server error | - |
|
|
639
|
+
|
|
640
|
+
[[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)
|
|
641
|
+
|
|
642
|
+
# **preview**
|
|
643
|
+
> ShowResponse preview()
|
|
644
|
+
|
|
645
|
+
Retrieves a preview for a record specified by its UUID and preview name. Returns a ShowResponse containing the preview data.
|
|
646
|
+
|
|
647
|
+
### Example
|
|
648
|
+
|
|
649
|
+
```typescript
|
|
650
|
+
import {
|
|
651
|
+
RecordsApi,
|
|
652
|
+
Configuration
|
|
653
|
+
} from '@caraer/client';
|
|
654
|
+
|
|
655
|
+
const configuration = new Configuration();
|
|
656
|
+
const apiInstance = new RecordsApi(configuration);
|
|
657
|
+
|
|
658
|
+
let uuid: string; // (default to undefined)
|
|
659
|
+
let name: string; // (default to undefined)
|
|
660
|
+
let object: string; //Optional object name used to resolve the record before building the preview. (optional) (default to undefined)
|
|
661
|
+
let parse: boolean; //Whether to parse the record before returning it. (optional) (default to undefined)
|
|
662
|
+
|
|
663
|
+
const { status, data } = await apiInstance.preview(
|
|
664
|
+
uuid,
|
|
665
|
+
name,
|
|
666
|
+
object,
|
|
667
|
+
parse
|
|
668
|
+
);
|
|
669
|
+
```
|
|
670
|
+
|
|
671
|
+
### Parameters
|
|
672
|
+
|
|
673
|
+
|Name | Type | Description | Notes|
|
|
674
|
+
|------------- | ------------- | ------------- | -------------|
|
|
675
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
676
|
+
| **name** | [**string**] | | defaults to undefined|
|
|
677
|
+
| **object** | [**string**] | Optional object name used to resolve the record before building the preview. | (optional) defaults to undefined|
|
|
678
|
+
| **parse** | [**boolean**] | Whether to parse the record before returning it. | (optional) defaults to undefined|
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
### Return type
|
|
682
|
+
|
|
683
|
+
**ShowResponse**
|
|
684
|
+
|
|
685
|
+
### Authorization
|
|
686
|
+
|
|
687
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
688
|
+
|
|
689
|
+
### HTTP request headers
|
|
690
|
+
|
|
691
|
+
- **Content-Type**: Not defined
|
|
692
|
+
- **Accept**: application/json
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
### HTTP response details
|
|
696
|
+
| Status code | Description | Response headers |
|
|
697
|
+
|-------------|-------------|------------------|
|
|
698
|
+
|**200** | Preview retrieved successfully | - |
|
|
699
|
+
|**404** | Record or preview not found | - |
|
|
700
|
+
|
|
701
|
+
[[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)
|
|
702
|
+
|
|
703
|
+
# **restore**
|
|
704
|
+
> SuccessResponse restore()
|
|
705
|
+
|
|
706
|
+
Restores a soft-deleted record identified by its UUID. Returns a SuccessResponse confirming that the record has been restored.
|
|
707
|
+
|
|
708
|
+
### Example
|
|
709
|
+
|
|
710
|
+
```typescript
|
|
711
|
+
import {
|
|
712
|
+
RecordsApi,
|
|
713
|
+
Configuration
|
|
714
|
+
} from '@caraer/client';
|
|
715
|
+
|
|
716
|
+
const configuration = new Configuration();
|
|
717
|
+
const apiInstance = new RecordsApi(configuration);
|
|
718
|
+
|
|
719
|
+
let uuid: string; // (default to undefined)
|
|
720
|
+
|
|
721
|
+
const { status, data } = await apiInstance.restore(
|
|
722
|
+
uuid
|
|
723
|
+
);
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
### Parameters
|
|
727
|
+
|
|
728
|
+
|Name | Type | Description | Notes|
|
|
729
|
+
|------------- | ------------- | ------------- | -------------|
|
|
730
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
### Return type
|
|
734
|
+
|
|
735
|
+
**SuccessResponse**
|
|
736
|
+
|
|
737
|
+
### Authorization
|
|
738
|
+
|
|
739
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
740
|
+
|
|
741
|
+
### HTTP request headers
|
|
742
|
+
|
|
743
|
+
- **Content-Type**: Not defined
|
|
744
|
+
- **Accept**: application/json
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
### HTTP response details
|
|
748
|
+
| Status code | Description | Response headers |
|
|
749
|
+
|-------------|-------------|------------------|
|
|
750
|
+
|**200** | Record restored successfully | - |
|
|
751
|
+
|**404** | Record not found | - |
|
|
752
|
+
|**500** | Internal server error | - |
|
|
753
|
+
|
|
754
|
+
[[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)
|
|
755
|
+
|
|
756
|
+
# **search**
|
|
757
|
+
> PaginationResponse search(body)
|
|
758
|
+
|
|
759
|
+
Performs a search for records based on the specified criteria in the request body. Returns a PaginationResponse containing matching records.
|
|
760
|
+
|
|
761
|
+
### Example
|
|
762
|
+
|
|
763
|
+
```typescript
|
|
764
|
+
import {
|
|
765
|
+
RecordsApi,
|
|
766
|
+
Configuration
|
|
767
|
+
} from '@caraer/client';
|
|
768
|
+
|
|
769
|
+
const configuration = new Configuration();
|
|
770
|
+
const apiInstance = new RecordsApi(configuration);
|
|
771
|
+
|
|
772
|
+
let body: string; //Search criteria
|
|
773
|
+
let archived: boolean; //When set to \'true\', includes soft-deleted records in the search results. (optional) (default to false)
|
|
774
|
+
let parse: boolean; //If \'true\', parses returned records to human-readable values. (optional) (default to false)
|
|
775
|
+
let recordReturnFormat: string; //Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. (optional) (default to 'LEGACY')
|
|
776
|
+
|
|
777
|
+
const { status, data } = await apiInstance.search(
|
|
778
|
+
body,
|
|
779
|
+
archived,
|
|
780
|
+
parse,
|
|
781
|
+
recordReturnFormat
|
|
782
|
+
);
|
|
783
|
+
```
|
|
784
|
+
|
|
785
|
+
### Parameters
|
|
786
|
+
|
|
787
|
+
|Name | Type | Description | Notes|
|
|
788
|
+
|------------- | ------------- | ------------- | -------------|
|
|
789
|
+
| **body** | **string**| Search criteria | |
|
|
790
|
+
| **archived** | [**boolean**] | When set to \'true\', includes soft-deleted records in the search results. | (optional) defaults to false|
|
|
791
|
+
| **parse** | [**boolean**] | If \'true\', parses returned records to human-readable values. | (optional) defaults to false|
|
|
792
|
+
| **recordReturnFormat** | [**string**] | Format of the records to return. LEGACY, USER_FRIENDLY, EXPANDED. | (optional) defaults to 'LEGACY'|
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
### Return type
|
|
796
|
+
|
|
797
|
+
**PaginationResponse**
|
|
798
|
+
|
|
799
|
+
### Authorization
|
|
800
|
+
|
|
801
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
802
|
+
|
|
803
|
+
### HTTP request headers
|
|
804
|
+
|
|
805
|
+
- **Content-Type**: application/json
|
|
806
|
+
- **Accept**: application/json
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
### HTTP response details
|
|
810
|
+
| Status code | Description | Response headers |
|
|
811
|
+
|-------------|-------------|------------------|
|
|
812
|
+
|**200** | Search completed successfully | - |
|
|
813
|
+
|**400** | Invalid search parameters | - |
|
|
814
|
+
|**500** | Internal server error | - |
|
|
815
|
+
|
|
816
|
+
[[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)
|
|
817
|
+
|
|
818
|
+
# **show1**
|
|
819
|
+
> ShowResponse show1()
|
|
820
|
+
|
|
821
|
+
Retrieves detailed information about a record by its UUID. Returns a ShowResponse containing the record details.
|
|
822
|
+
|
|
823
|
+
### Example
|
|
824
|
+
|
|
825
|
+
```typescript
|
|
826
|
+
import {
|
|
827
|
+
RecordsApi,
|
|
828
|
+
Configuration
|
|
829
|
+
} from '@caraer/client';
|
|
830
|
+
|
|
831
|
+
const configuration = new Configuration();
|
|
832
|
+
const apiInstance = new RecordsApi(configuration);
|
|
833
|
+
|
|
834
|
+
let uuid: string; // (default to undefined)
|
|
835
|
+
let object: string; //Optional object name to resolve the record in a specific object context. (optional) (default to undefined)
|
|
836
|
+
let recordReturnFormat: string; //Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. (optional) (default to 'LEGACY')
|
|
837
|
+
let parse: boolean; //Whether to parse the record before returning it. (optional) (default to undefined)
|
|
838
|
+
|
|
839
|
+
const { status, data } = await apiInstance.show1(
|
|
840
|
+
uuid,
|
|
841
|
+
object,
|
|
842
|
+
recordReturnFormat,
|
|
843
|
+
parse
|
|
844
|
+
);
|
|
845
|
+
```
|
|
846
|
+
|
|
847
|
+
### Parameters
|
|
848
|
+
|
|
849
|
+
|Name | Type | Description | Notes|
|
|
850
|
+
|------------- | ------------- | ------------- | -------------|
|
|
851
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
852
|
+
| **object** | [**string**] | Optional object name to resolve the record in a specific object context. | (optional) defaults to undefined|
|
|
853
|
+
| **recordReturnFormat** | [**string**] | Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. | (optional) defaults to 'LEGACY'|
|
|
854
|
+
| **parse** | [**boolean**] | Whether to parse the record before returning it. | (optional) defaults to undefined|
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
### Return type
|
|
858
|
+
|
|
859
|
+
**ShowResponse**
|
|
860
|
+
|
|
861
|
+
### Authorization
|
|
862
|
+
|
|
863
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
864
|
+
|
|
865
|
+
### HTTP request headers
|
|
866
|
+
|
|
867
|
+
- **Content-Type**: Not defined
|
|
868
|
+
- **Accept**: application/json
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
### HTTP response details
|
|
872
|
+
| Status code | Description | Response headers |
|
|
873
|
+
|-------------|-------------|------------------|
|
|
874
|
+
|**200** | Record retrieved successfully | - |
|
|
875
|
+
|**404** | Record not found | - |
|
|
876
|
+
|
|
877
|
+
[[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)
|
|
878
|
+
|
|
879
|
+
# **update**
|
|
880
|
+
> UpdateResponse update(recordDTO)
|
|
881
|
+
|
|
882
|
+
Updates a record\'s details identified by its UUID. The record data is provided as a RecordDTO. Returns an UpdateResponse with the updated record. Validation: Record properties are validated according to the property rules defined for the object. Each property may have validation rules such as required, type constraints, character limits, uniqueness, etc.
|
|
883
|
+
|
|
884
|
+
### Example
|
|
885
|
+
|
|
886
|
+
```typescript
|
|
887
|
+
import {
|
|
888
|
+
RecordsApi,
|
|
889
|
+
Configuration,
|
|
890
|
+
RecordDTO
|
|
891
|
+
} from '@caraer/client';
|
|
892
|
+
|
|
893
|
+
const configuration = new Configuration();
|
|
894
|
+
const apiInstance = new RecordsApi(configuration);
|
|
895
|
+
|
|
896
|
+
let uuid: string; // (default to undefined)
|
|
897
|
+
let objectName: string; // (default to undefined)
|
|
898
|
+
let recordDTO: RecordDTO; //Record data to update
|
|
899
|
+
let parse: boolean; //If \'true\', parses the updated record to human-readable values before returning. (optional) (default to false)
|
|
900
|
+
let ignoreErrors: boolean; //If \'true\', allows the update to proceed while ignoring certain non-critical validation errors, when supported. (optional) (default to false)
|
|
901
|
+
let recordReturnFormat: string; //Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. (optional) (default to 'LEGACY')
|
|
902
|
+
|
|
903
|
+
const { status, data } = await apiInstance.update(
|
|
904
|
+
uuid,
|
|
905
|
+
objectName,
|
|
906
|
+
recordDTO,
|
|
907
|
+
parse,
|
|
908
|
+
ignoreErrors,
|
|
909
|
+
recordReturnFormat
|
|
910
|
+
);
|
|
911
|
+
```
|
|
912
|
+
|
|
913
|
+
### Parameters
|
|
914
|
+
|
|
915
|
+
|Name | Type | Description | Notes|
|
|
916
|
+
|------------- | ------------- | ------------- | -------------|
|
|
917
|
+
| **recordDTO** | **RecordDTO**| Record data to update | |
|
|
918
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
919
|
+
| **objectName** | [**string**] | | defaults to undefined|
|
|
920
|
+
| **parse** | [**boolean**] | If \'true\', parses the updated record to human-readable values before returning. | (optional) defaults to false|
|
|
921
|
+
| **ignoreErrors** | [**boolean**] | If \'true\', allows the update to proceed while ignoring certain non-critical validation errors, when supported. | (optional) defaults to false|
|
|
922
|
+
| **recordReturnFormat** | [**string**] | Format of the record to return. LEGACY, USER_FRIENDLY, EXPANDED. | (optional) defaults to 'LEGACY'|
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
### Return type
|
|
926
|
+
|
|
927
|
+
**UpdateResponse**
|
|
928
|
+
|
|
929
|
+
### Authorization
|
|
930
|
+
|
|
931
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
932
|
+
|
|
933
|
+
### HTTP request headers
|
|
934
|
+
|
|
935
|
+
- **Content-Type**: application/json
|
|
936
|
+
- **Accept**: application/json
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
### HTTP response details
|
|
940
|
+
| Status code | Description | Response headers |
|
|
941
|
+
|-------------|-------------|------------------|
|
|
942
|
+
|**200** | Record updated successfully | - |
|
|
943
|
+
|**400** | Invalid input data | - |
|
|
944
|
+
|**404** | Record not found | - |
|
|
945
|
+
|**500** | Internal server error | - |
|
|
946
|
+
|
|
947
|
+
[[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)
|
|
948
|
+
|