@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,878 @@
|
|
|
1
|
+
# ObjectsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://v2.api.caraer.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createObject**](#createobject) | **POST** /api/v2/objects/ | Create new object|
|
|
8
|
+
|[**deleteObject**](#deleteobject) | **DELETE** /api/v2/objects/{uuid} | Delete object by UUID|
|
|
9
|
+
|[**getAccessGrantCandidates**](#getaccessgrantcandidates) | **GET** /api/v2/objects/access-grant/candidates | List access grant candidates|
|
|
10
|
+
|[**getObject**](#getobject) | **GET** /api/v2/objects/{uuid} | Get object by UUID|
|
|
11
|
+
|[**getObjects**](#getobjects) | **POST** /api/v2/objects/index | Fetch paginated objects|
|
|
12
|
+
|[**getPreview**](#getpreview) | **GET** /api/v2/objects/{uuid}/previews/{name} | Get specific preview by name|
|
|
13
|
+
|[**getPreviews**](#getpreviews) | **POST** /api/v2/objects/previews | Get all previews over all objects|
|
|
14
|
+
|[**getPreviews1**](#getpreviews1) | **GET** /api/v2/objects/{uuid}/previews | Get all previews of an object|
|
|
15
|
+
|[**grantObjectAccess**](#grantobjectaccess) | **POST** /api/v2/objects/{objectUuid}/access-grant | Grant object record access|
|
|
16
|
+
|[**permanentlyDeleteArchivedObject**](#permanentlydeletearchivedobject) | **DELETE** /api/v2/objects/{uuid}/permanent | Permanently delete archived object|
|
|
17
|
+
|[**savePreview**](#savepreview) | **POST** /api/v2/objects/{uuid}/previews/{name} | Save object preview|
|
|
18
|
+
|[**syncMorphObjects**](#syncmorphobjects) | **POST** /api/v2/objects/{uuid}/syncMorphObjects | Sync morph objects for existing records|
|
|
19
|
+
|[**updateIndices3**](#updateindices3) | **PUT** /api/v2/objects/updateIndices | Update object indices|
|
|
20
|
+
|[**updateLifecycleProperties**](#updatelifecycleproperties) | **PUT** /api/v2/objects/{objectUuid}/lifecycle-properties | Configure lifecycle property tracking|
|
|
21
|
+
|[**updateObject**](#updateobject) | **PUT** /api/v2/objects/{uuid} | Update object by UUID|
|
|
22
|
+
|
|
23
|
+
# **createObject**
|
|
24
|
+
> CreateResponse createObject(caraerObjectDTO)
|
|
25
|
+
|
|
26
|
+
Creates a new Caraer object using the provided details. Optional request parameters specify whether to include views, properties, and relations in the response. Validation rules: label (required, must be a string, maximum 32 characters), plural (required, must be a string, maximum 32 characters), name (required, must be a string, must be lowercase, must be unique, must match name pattern (lowercase letters, numbers, underscores)), description (optional, maximum 255 characters), groups (required, must be an array of string, no duplicate values allowed), showInMenu (required, must be a boolean).
|
|
27
|
+
|
|
28
|
+
### Example
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import {
|
|
32
|
+
ObjectsApi,
|
|
33
|
+
Configuration,
|
|
34
|
+
CaraerObjectDTO
|
|
35
|
+
} from '@caraer/client';
|
|
36
|
+
|
|
37
|
+
const configuration = new Configuration();
|
|
38
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
39
|
+
|
|
40
|
+
let caraerObjectDTO: CaraerObjectDTO; //Details of the object to create
|
|
41
|
+
let views: string; // (optional) (default to 'false')
|
|
42
|
+
let properties: string; // (optional) (default to 'false')
|
|
43
|
+
let relations: string; // (optional) (default to 'false')
|
|
44
|
+
|
|
45
|
+
const { status, data } = await apiInstance.createObject(
|
|
46
|
+
caraerObjectDTO,
|
|
47
|
+
views,
|
|
48
|
+
properties,
|
|
49
|
+
relations
|
|
50
|
+
);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
|Name | Type | Description | Notes|
|
|
56
|
+
|------------- | ------------- | ------------- | -------------|
|
|
57
|
+
| **caraerObjectDTO** | **CaraerObjectDTO**| Details of the object to create | |
|
|
58
|
+
| **views** | [**string**] | | (optional) defaults to 'false'|
|
|
59
|
+
| **properties** | [**string**] | | (optional) defaults to 'false'|
|
|
60
|
+
| **relations** | [**string**] | | (optional) defaults to 'false'|
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
**CreateResponse**
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: application/json
|
|
74
|
+
- **Accept**: application/json, */*
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### HTTP response details
|
|
78
|
+
| Status code | Description | Response headers |
|
|
79
|
+
|-------------|-------------|------------------|
|
|
80
|
+
|**201** | Object successfully created | - |
|
|
81
|
+
|**400** | Invalid input | - |
|
|
82
|
+
|**500** | Internal server error | - |
|
|
83
|
+
|
|
84
|
+
[[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)
|
|
85
|
+
|
|
86
|
+
# **deleteObject**
|
|
87
|
+
> DeleteResponse deleteObject()
|
|
88
|
+
|
|
89
|
+
Deletes a specific object identified by its UUID.
|
|
90
|
+
|
|
91
|
+
### Example
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
import {
|
|
95
|
+
ObjectsApi,
|
|
96
|
+
Configuration
|
|
97
|
+
} from '@caraer/client';
|
|
98
|
+
|
|
99
|
+
const configuration = new Configuration();
|
|
100
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
101
|
+
|
|
102
|
+
let uuid: string; // (default to undefined)
|
|
103
|
+
|
|
104
|
+
const { status, data } = await apiInstance.deleteObject(
|
|
105
|
+
uuid
|
|
106
|
+
);
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Parameters
|
|
110
|
+
|
|
111
|
+
|Name | Type | Description | Notes|
|
|
112
|
+
|------------- | ------------- | ------------- | -------------|
|
|
113
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Return type
|
|
117
|
+
|
|
118
|
+
**DeleteResponse**
|
|
119
|
+
|
|
120
|
+
### Authorization
|
|
121
|
+
|
|
122
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
123
|
+
|
|
124
|
+
### HTTP request headers
|
|
125
|
+
|
|
126
|
+
- **Content-Type**: Not defined
|
|
127
|
+
- **Accept**: application/json, */*
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### HTTP response details
|
|
131
|
+
| Status code | Description | Response headers |
|
|
132
|
+
|-------------|-------------|------------------|
|
|
133
|
+
|**200** | Object deleted successfully | - |
|
|
134
|
+
|**404** | Object not found | - |
|
|
135
|
+
|**500** | Internal server error | - |
|
|
136
|
+
|
|
137
|
+
[[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)
|
|
138
|
+
|
|
139
|
+
# **getAccessGrantCandidates**
|
|
140
|
+
> ShowResponseObjectAccessGrantCandidatesDTO getAccessGrantCandidates()
|
|
141
|
+
|
|
142
|
+
Returns all company users, teams, and installed apps that can receive record access on an object.
|
|
143
|
+
|
|
144
|
+
### Example
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
import {
|
|
148
|
+
ObjectsApi,
|
|
149
|
+
Configuration
|
|
150
|
+
} from '@caraer/client';
|
|
151
|
+
|
|
152
|
+
const configuration = new Configuration();
|
|
153
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
154
|
+
|
|
155
|
+
const { status, data } = await apiInstance.getAccessGrantCandidates();
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Parameters
|
|
159
|
+
This endpoint does not have any parameters.
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### Return type
|
|
163
|
+
|
|
164
|
+
**ShowResponseObjectAccessGrantCandidatesDTO**
|
|
165
|
+
|
|
166
|
+
### Authorization
|
|
167
|
+
|
|
168
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
169
|
+
|
|
170
|
+
### HTTP request headers
|
|
171
|
+
|
|
172
|
+
- **Content-Type**: Not defined
|
|
173
|
+
- **Accept**: application/json
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### HTTP response details
|
|
177
|
+
| Status code | Description | Response headers |
|
|
178
|
+
|-------------|-------------|------------------|
|
|
179
|
+
|**200** | OK | - |
|
|
180
|
+
|
|
181
|
+
[[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)
|
|
182
|
+
|
|
183
|
+
# **getObject**
|
|
184
|
+
> ShowResponse getObject()
|
|
185
|
+
|
|
186
|
+
Fetches a single object by its UUID. Optional parameters determine whether to include views, properties, and relations in the response.
|
|
187
|
+
|
|
188
|
+
### Example
|
|
189
|
+
|
|
190
|
+
```typescript
|
|
191
|
+
import {
|
|
192
|
+
ObjectsApi,
|
|
193
|
+
Configuration
|
|
194
|
+
} from '@caraer/client';
|
|
195
|
+
|
|
196
|
+
const configuration = new Configuration();
|
|
197
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
198
|
+
|
|
199
|
+
let uuid: string; // (default to undefined)
|
|
200
|
+
let views: string; // (optional) (default to 'false')
|
|
201
|
+
let properties: string; // (optional) (default to 'false')
|
|
202
|
+
let relations: string; // (optional) (default to 'false')
|
|
203
|
+
|
|
204
|
+
const { status, data } = await apiInstance.getObject(
|
|
205
|
+
uuid,
|
|
206
|
+
views,
|
|
207
|
+
properties,
|
|
208
|
+
relations
|
|
209
|
+
);
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Parameters
|
|
213
|
+
|
|
214
|
+
|Name | Type | Description | Notes|
|
|
215
|
+
|------------- | ------------- | ------------- | -------------|
|
|
216
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
217
|
+
| **views** | [**string**] | | (optional) defaults to 'false'|
|
|
218
|
+
| **properties** | [**string**] | | (optional) defaults to 'false'|
|
|
219
|
+
| **relations** | [**string**] | | (optional) defaults to 'false'|
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Return type
|
|
223
|
+
|
|
224
|
+
**ShowResponse**
|
|
225
|
+
|
|
226
|
+
### Authorization
|
|
227
|
+
|
|
228
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
229
|
+
|
|
230
|
+
### HTTP request headers
|
|
231
|
+
|
|
232
|
+
- **Content-Type**: Not defined
|
|
233
|
+
- **Accept**: application/json, */*
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### HTTP response details
|
|
237
|
+
| Status code | Description | Response headers |
|
|
238
|
+
|-------------|-------------|------------------|
|
|
239
|
+
|**200** | Object fetched successfully | - |
|
|
240
|
+
|**404** | Object not found | - |
|
|
241
|
+
|**500** | Internal server error | - |
|
|
242
|
+
|
|
243
|
+
[[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)
|
|
244
|
+
|
|
245
|
+
# **getObjects**
|
|
246
|
+
> PaginationResponse getObjects(body)
|
|
247
|
+
|
|
248
|
+
Fetches a paginated list of objects, optionally including views, properties, and/or relations. The request body should contain pagination details such as limit, page, filters, sort, and query.
|
|
249
|
+
|
|
250
|
+
### Example
|
|
251
|
+
|
|
252
|
+
```typescript
|
|
253
|
+
import {
|
|
254
|
+
ObjectsApi,
|
|
255
|
+
Configuration
|
|
256
|
+
} from '@caraer/client';
|
|
257
|
+
|
|
258
|
+
const configuration = new Configuration();
|
|
259
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
260
|
+
|
|
261
|
+
let body: any; //Pagination request details
|
|
262
|
+
let views: string; // (optional) (default to 'false')
|
|
263
|
+
let properties: string; // (optional) (default to 'false')
|
|
264
|
+
let relations: string; // (optional) (default to 'false')
|
|
265
|
+
|
|
266
|
+
const { status, data } = await apiInstance.getObjects(
|
|
267
|
+
body,
|
|
268
|
+
views,
|
|
269
|
+
properties,
|
|
270
|
+
relations
|
|
271
|
+
);
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Parameters
|
|
275
|
+
|
|
276
|
+
|Name | Type | Description | Notes|
|
|
277
|
+
|------------- | ------------- | ------------- | -------------|
|
|
278
|
+
| **body** | **any**| Pagination request details | |
|
|
279
|
+
| **views** | [**string**] | | (optional) defaults to 'false'|
|
|
280
|
+
| **properties** | [**string**] | | (optional) defaults to 'false'|
|
|
281
|
+
| **relations** | [**string**] | | (optional) defaults to 'false'|
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
### Return type
|
|
285
|
+
|
|
286
|
+
**PaginationResponse**
|
|
287
|
+
|
|
288
|
+
### Authorization
|
|
289
|
+
|
|
290
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
291
|
+
|
|
292
|
+
### HTTP request headers
|
|
293
|
+
|
|
294
|
+
- **Content-Type**: application/json
|
|
295
|
+
- **Accept**: application/json
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
### HTTP response details
|
|
299
|
+
| Status code | Description | Response headers |
|
|
300
|
+
|-------------|-------------|------------------|
|
|
301
|
+
|**200** | Objects fetched successfully | - |
|
|
302
|
+
|**400** | Bad request | - |
|
|
303
|
+
|**500** | Internal server error | - |
|
|
304
|
+
|
|
305
|
+
[[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)
|
|
306
|
+
|
|
307
|
+
# **getPreview**
|
|
308
|
+
> ShowResponse getPreview()
|
|
309
|
+
|
|
310
|
+
Fetches a preview for an object by the object\'s UUID and the preview name. Returns the preview data wrapped in a ShowResponse.
|
|
311
|
+
|
|
312
|
+
### Example
|
|
313
|
+
|
|
314
|
+
```typescript
|
|
315
|
+
import {
|
|
316
|
+
ObjectsApi,
|
|
317
|
+
Configuration
|
|
318
|
+
} from '@caraer/client';
|
|
319
|
+
|
|
320
|
+
const configuration = new Configuration();
|
|
321
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
322
|
+
|
|
323
|
+
let uuid: string; // (default to undefined)
|
|
324
|
+
let name: string; // (default to undefined)
|
|
325
|
+
|
|
326
|
+
const { status, data } = await apiInstance.getPreview(
|
|
327
|
+
uuid,
|
|
328
|
+
name
|
|
329
|
+
);
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### Parameters
|
|
333
|
+
|
|
334
|
+
|Name | Type | Description | Notes|
|
|
335
|
+
|------------- | ------------- | ------------- | -------------|
|
|
336
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
337
|
+
| **name** | [**string**] | | defaults to undefined|
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
### Return type
|
|
341
|
+
|
|
342
|
+
**ShowResponse**
|
|
343
|
+
|
|
344
|
+
### Authorization
|
|
345
|
+
|
|
346
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
347
|
+
|
|
348
|
+
### HTTP request headers
|
|
349
|
+
|
|
350
|
+
- **Content-Type**: Not defined
|
|
351
|
+
- **Accept**: application/json
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
### HTTP response details
|
|
355
|
+
| Status code | Description | Response headers |
|
|
356
|
+
|-------------|-------------|------------------|
|
|
357
|
+
|**200** | Successfully fetched preview | - |
|
|
358
|
+
|**404** | Object or preview not found | - |
|
|
359
|
+
|**500** | Internal server error | - |
|
|
360
|
+
|
|
361
|
+
[[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)
|
|
362
|
+
|
|
363
|
+
# **getPreviews**
|
|
364
|
+
> PaginationResponse getPreviews(body)
|
|
365
|
+
|
|
366
|
+
Fetches all previews over all objects. Returns a PaginationResponse containing a list of preview DTOs.
|
|
367
|
+
|
|
368
|
+
### Example
|
|
369
|
+
|
|
370
|
+
```typescript
|
|
371
|
+
import {
|
|
372
|
+
ObjectsApi,
|
|
373
|
+
Configuration
|
|
374
|
+
} from '@caraer/client';
|
|
375
|
+
|
|
376
|
+
const configuration = new Configuration();
|
|
377
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
378
|
+
|
|
379
|
+
let body: any; //
|
|
380
|
+
|
|
381
|
+
const { status, data } = await apiInstance.getPreviews(
|
|
382
|
+
body
|
|
383
|
+
);
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
### Parameters
|
|
387
|
+
|
|
388
|
+
|Name | Type | Description | Notes|
|
|
389
|
+
|------------- | ------------- | ------------- | -------------|
|
|
390
|
+
| **body** | **any**| | |
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
### Return type
|
|
394
|
+
|
|
395
|
+
**PaginationResponse**
|
|
396
|
+
|
|
397
|
+
### Authorization
|
|
398
|
+
|
|
399
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
400
|
+
|
|
401
|
+
### HTTP request headers
|
|
402
|
+
|
|
403
|
+
- **Content-Type**: application/json
|
|
404
|
+
- **Accept**: application/json
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
### HTTP response details
|
|
408
|
+
| Status code | Description | Response headers |
|
|
409
|
+
|-------------|-------------|------------------|
|
|
410
|
+
|**200** | Successfully fetched previews | - |
|
|
411
|
+
|**500** | Internal server error | - |
|
|
412
|
+
|
|
413
|
+
[[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)
|
|
414
|
+
|
|
415
|
+
# **getPreviews1**
|
|
416
|
+
> PaginationResponse getPreviews1()
|
|
417
|
+
|
|
418
|
+
Fetches all previews associated with a specific object. Returns a PaginationResponse containing a list of preview DTOs.
|
|
419
|
+
|
|
420
|
+
### Example
|
|
421
|
+
|
|
422
|
+
```typescript
|
|
423
|
+
import {
|
|
424
|
+
ObjectsApi,
|
|
425
|
+
Configuration
|
|
426
|
+
} from '@caraer/client';
|
|
427
|
+
|
|
428
|
+
const configuration = new Configuration();
|
|
429
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
430
|
+
|
|
431
|
+
let uuid: string; // (default to undefined)
|
|
432
|
+
let search: string; // (optional) (default to '')
|
|
433
|
+
|
|
434
|
+
const { status, data } = await apiInstance.getPreviews1(
|
|
435
|
+
uuid,
|
|
436
|
+
search
|
|
437
|
+
);
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
### Parameters
|
|
441
|
+
|
|
442
|
+
|Name | Type | Description | Notes|
|
|
443
|
+
|------------- | ------------- | ------------- | -------------|
|
|
444
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
445
|
+
| **search** | [**string**] | | (optional) defaults to ''|
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
### Return type
|
|
449
|
+
|
|
450
|
+
**PaginationResponse**
|
|
451
|
+
|
|
452
|
+
### Authorization
|
|
453
|
+
|
|
454
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
455
|
+
|
|
456
|
+
### HTTP request headers
|
|
457
|
+
|
|
458
|
+
- **Content-Type**: Not defined
|
|
459
|
+
- **Accept**: application/json
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
### HTTP response details
|
|
463
|
+
| Status code | Description | Response headers |
|
|
464
|
+
|-------------|-------------|------------------|
|
|
465
|
+
|**200** | Successfully fetched previews | - |
|
|
466
|
+
|**404** | Object not found | - |
|
|
467
|
+
|**500** | Internal server error | - |
|
|
468
|
+
|
|
469
|
+
[[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)
|
|
470
|
+
|
|
471
|
+
# **grantObjectAccess**
|
|
472
|
+
> SuccessResponseVoid grantObjectAccess(objectAccessGrantRequestDTO)
|
|
473
|
+
|
|
474
|
+
Accepts a request to grant record-level scopes on the object to selected users, teams, and installed apps. Validation runs synchronously; grants are applied asynchronously. Returns 202 Accepted on success.
|
|
475
|
+
|
|
476
|
+
### Example
|
|
477
|
+
|
|
478
|
+
```typescript
|
|
479
|
+
import {
|
|
480
|
+
ObjectsApi,
|
|
481
|
+
Configuration,
|
|
482
|
+
ObjectAccessGrantRequestDTO
|
|
483
|
+
} from '@caraer/client';
|
|
484
|
+
|
|
485
|
+
const configuration = new Configuration();
|
|
486
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
487
|
+
|
|
488
|
+
let objectUuid: string; // (default to undefined)
|
|
489
|
+
let objectAccessGrantRequestDTO: ObjectAccessGrantRequestDTO; //
|
|
490
|
+
|
|
491
|
+
const { status, data } = await apiInstance.grantObjectAccess(
|
|
492
|
+
objectUuid,
|
|
493
|
+
objectAccessGrantRequestDTO
|
|
494
|
+
);
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
### Parameters
|
|
498
|
+
|
|
499
|
+
|Name | Type | Description | Notes|
|
|
500
|
+
|------------- | ------------- | ------------- | -------------|
|
|
501
|
+
| **objectAccessGrantRequestDTO** | **ObjectAccessGrantRequestDTO**| | |
|
|
502
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
### Return type
|
|
506
|
+
|
|
507
|
+
**SuccessResponseVoid**
|
|
508
|
+
|
|
509
|
+
### Authorization
|
|
510
|
+
|
|
511
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
512
|
+
|
|
513
|
+
### HTTP request headers
|
|
514
|
+
|
|
515
|
+
- **Content-Type**: application/json
|
|
516
|
+
- **Accept**: application/json
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
### HTTP response details
|
|
520
|
+
| Status code | Description | Response headers |
|
|
521
|
+
|-------------|-------------|------------------|
|
|
522
|
+
|**202** | Grant accepted and processing in the background | - |
|
|
523
|
+
|**400** | Invalid request | - |
|
|
524
|
+
|**404** | Object not found | - |
|
|
525
|
+
|
|
526
|
+
[[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)
|
|
527
|
+
|
|
528
|
+
# **permanentlyDeleteArchivedObject**
|
|
529
|
+
> DeleteResponse permanentlyDeleteArchivedObject()
|
|
530
|
+
|
|
531
|
+
Hard-deletes a soft-deleted object. Only objects with deletedAt set can be removed.
|
|
532
|
+
|
|
533
|
+
### Example
|
|
534
|
+
|
|
535
|
+
```typescript
|
|
536
|
+
import {
|
|
537
|
+
ObjectsApi,
|
|
538
|
+
Configuration
|
|
539
|
+
} from '@caraer/client';
|
|
540
|
+
|
|
541
|
+
const configuration = new Configuration();
|
|
542
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
543
|
+
|
|
544
|
+
let uuid: string; // (default to undefined)
|
|
545
|
+
|
|
546
|
+
const { status, data } = await apiInstance.permanentlyDeleteArchivedObject(
|
|
547
|
+
uuid
|
|
548
|
+
);
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
### Parameters
|
|
552
|
+
|
|
553
|
+
|Name | Type | Description | Notes|
|
|
554
|
+
|------------- | ------------- | ------------- | -------------|
|
|
555
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
### Return type
|
|
559
|
+
|
|
560
|
+
**DeleteResponse**
|
|
561
|
+
|
|
562
|
+
### Authorization
|
|
563
|
+
|
|
564
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
565
|
+
|
|
566
|
+
### HTTP request headers
|
|
567
|
+
|
|
568
|
+
- **Content-Type**: Not defined
|
|
569
|
+
- **Accept**: application/json, */*
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
### HTTP response details
|
|
573
|
+
| Status code | Description | Response headers |
|
|
574
|
+
|-------------|-------------|------------------|
|
|
575
|
+
|**200** | Object permanently deleted | - |
|
|
576
|
+
|**400** | Object is not archived | - |
|
|
577
|
+
|**404** | Object not found | - |
|
|
578
|
+
|
|
579
|
+
[[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)
|
|
580
|
+
|
|
581
|
+
# **savePreview**
|
|
582
|
+
> CreateResponse savePreview(previewDTO)
|
|
583
|
+
|
|
584
|
+
Creates or updates a preview for a specific object. The preview type is determined by the \'name\' path variable. Depending on the preview type (e.g., \'detail\', \'flow\', \'pill\', or \'page\'), the request body will be mapped to the corresponding PreviewDTO and converted to the appropriate Preview model.
|
|
585
|
+
|
|
586
|
+
### Example
|
|
587
|
+
|
|
588
|
+
```typescript
|
|
589
|
+
import {
|
|
590
|
+
ObjectsApi,
|
|
591
|
+
Configuration,
|
|
592
|
+
PreviewDTO
|
|
593
|
+
} from '@caraer/client';
|
|
594
|
+
|
|
595
|
+
const configuration = new Configuration();
|
|
596
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
597
|
+
|
|
598
|
+
let uuid: string; // (default to undefined)
|
|
599
|
+
let name: string; // (default to undefined)
|
|
600
|
+
let previewDTO: PreviewDTO; //Preview data
|
|
601
|
+
|
|
602
|
+
const { status, data } = await apiInstance.savePreview(
|
|
603
|
+
uuid,
|
|
604
|
+
name,
|
|
605
|
+
previewDTO
|
|
606
|
+
);
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
### Parameters
|
|
610
|
+
|
|
611
|
+
|Name | Type | Description | Notes|
|
|
612
|
+
|------------- | ------------- | ------------- | -------------|
|
|
613
|
+
| **previewDTO** | **PreviewDTO**| Preview data | |
|
|
614
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
615
|
+
| **name** | [**string**] | | defaults to undefined|
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
### Return type
|
|
619
|
+
|
|
620
|
+
**CreateResponse**
|
|
621
|
+
|
|
622
|
+
### Authorization
|
|
623
|
+
|
|
624
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
625
|
+
|
|
626
|
+
### HTTP request headers
|
|
627
|
+
|
|
628
|
+
- **Content-Type**: application/json
|
|
629
|
+
- **Accept**: application/json
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
### HTTP response details
|
|
633
|
+
| Status code | Description | Response headers |
|
|
634
|
+
|-------------|-------------|------------------|
|
|
635
|
+
|**201** | Successfully created or updated preview | - |
|
|
636
|
+
|**404** | Object or preview not found | - |
|
|
637
|
+
|**500** | Internal server error | - |
|
|
638
|
+
|
|
639
|
+
[[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)
|
|
640
|
+
|
|
641
|
+
# **syncMorphObjects**
|
|
642
|
+
> SuccessResponse syncMorphObjects()
|
|
643
|
+
|
|
644
|
+
Synchronizes existing records for an object after morph configuration changes. The object path variable accepts UUID or object name. Records that reference the object as primary object, morph object, or label are re-morphed.
|
|
645
|
+
|
|
646
|
+
### Example
|
|
647
|
+
|
|
648
|
+
```typescript
|
|
649
|
+
import {
|
|
650
|
+
ObjectsApi,
|
|
651
|
+
Configuration
|
|
652
|
+
} from '@caraer/client';
|
|
653
|
+
|
|
654
|
+
const configuration = new Configuration();
|
|
655
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
656
|
+
|
|
657
|
+
let uuid: string; // (default to undefined)
|
|
658
|
+
|
|
659
|
+
const { status, data } = await apiInstance.syncMorphObjects(
|
|
660
|
+
uuid
|
|
661
|
+
);
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
### Parameters
|
|
665
|
+
|
|
666
|
+
|Name | Type | Description | Notes|
|
|
667
|
+
|------------- | ------------- | ------------- | -------------|
|
|
668
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
### Return type
|
|
672
|
+
|
|
673
|
+
**SuccessResponse**
|
|
674
|
+
|
|
675
|
+
### Authorization
|
|
676
|
+
|
|
677
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
678
|
+
|
|
679
|
+
### HTTP request headers
|
|
680
|
+
|
|
681
|
+
- **Content-Type**: Not defined
|
|
682
|
+
- **Accept**: application/json, */*
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
### HTTP response details
|
|
686
|
+
| Status code | Description | Response headers |
|
|
687
|
+
|-------------|-------------|------------------|
|
|
688
|
+
|**200** | Morph objects synchronized successfully | - |
|
|
689
|
+
|**404** | Object not found | - |
|
|
690
|
+
|**500** | Internal server error | - |
|
|
691
|
+
|
|
692
|
+
[[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)
|
|
693
|
+
|
|
694
|
+
# **updateIndices3**
|
|
695
|
+
> updateIndices3(body)
|
|
696
|
+
|
|
697
|
+
Updates indices of objects based on the provided mapping. The request body should contain a mapping of object UUIDs to index values. Optional request parameters determine if views, properties, and relations should be included in the response.
|
|
698
|
+
|
|
699
|
+
### Example
|
|
700
|
+
|
|
701
|
+
```typescript
|
|
702
|
+
import {
|
|
703
|
+
ObjectsApi,
|
|
704
|
+
Configuration
|
|
705
|
+
} from '@caraer/client';
|
|
706
|
+
|
|
707
|
+
const configuration = new Configuration();
|
|
708
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
709
|
+
|
|
710
|
+
let body: string; //Mapping of object indices
|
|
711
|
+
let views: string; // (optional) (default to 'false')
|
|
712
|
+
let properties: string; // (optional) (default to 'false')
|
|
713
|
+
let relations: string; // (optional) (default to 'false')
|
|
714
|
+
|
|
715
|
+
const { status, data } = await apiInstance.updateIndices3(
|
|
716
|
+
body,
|
|
717
|
+
views,
|
|
718
|
+
properties,
|
|
719
|
+
relations
|
|
720
|
+
);
|
|
721
|
+
```
|
|
722
|
+
|
|
723
|
+
### Parameters
|
|
724
|
+
|
|
725
|
+
|Name | Type | Description | Notes|
|
|
726
|
+
|------------- | ------------- | ------------- | -------------|
|
|
727
|
+
| **body** | **string**| Mapping of object indices | |
|
|
728
|
+
| **views** | [**string**] | | (optional) defaults to 'false'|
|
|
729
|
+
| **properties** | [**string**] | | (optional) defaults to 'false'|
|
|
730
|
+
| **relations** | [**string**] | | (optional) defaults to 'false'|
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
### Return type
|
|
734
|
+
|
|
735
|
+
void (empty response body)
|
|
736
|
+
|
|
737
|
+
### Authorization
|
|
738
|
+
|
|
739
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
740
|
+
|
|
741
|
+
### HTTP request headers
|
|
742
|
+
|
|
743
|
+
- **Content-Type**: application/json
|
|
744
|
+
- **Accept**: application/json, */*
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
### HTTP response details
|
|
748
|
+
| Status code | Description | Response headers |
|
|
749
|
+
|-------------|-------------|------------------|
|
|
750
|
+
|**200** | Indices updated successfully | - |
|
|
751
|
+
|**400** | Bad request | - |
|
|
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
|
+
# **updateLifecycleProperties**
|
|
757
|
+
> UpdateResponse updateLifecycleProperties(updateLifecyclePropertiesDTO)
|
|
758
|
+
|
|
759
|
+
Sets which properties on this object should generate lifecycle history records when their values change.
|
|
760
|
+
|
|
761
|
+
### Example
|
|
762
|
+
|
|
763
|
+
```typescript
|
|
764
|
+
import {
|
|
765
|
+
ObjectsApi,
|
|
766
|
+
Configuration,
|
|
767
|
+
UpdateLifecyclePropertiesDTO
|
|
768
|
+
} from '@caraer/client';
|
|
769
|
+
|
|
770
|
+
const configuration = new Configuration();
|
|
771
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
772
|
+
|
|
773
|
+
let objectUuid: string; // (default to undefined)
|
|
774
|
+
let updateLifecyclePropertiesDTO: UpdateLifecyclePropertiesDTO; //
|
|
775
|
+
|
|
776
|
+
const { status, data } = await apiInstance.updateLifecycleProperties(
|
|
777
|
+
objectUuid,
|
|
778
|
+
updateLifecyclePropertiesDTO
|
|
779
|
+
);
|
|
780
|
+
```
|
|
781
|
+
|
|
782
|
+
### Parameters
|
|
783
|
+
|
|
784
|
+
|Name | Type | Description | Notes|
|
|
785
|
+
|------------- | ------------- | ------------- | -------------|
|
|
786
|
+
| **updateLifecyclePropertiesDTO** | **UpdateLifecyclePropertiesDTO**| | |
|
|
787
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
### Return type
|
|
791
|
+
|
|
792
|
+
**UpdateResponse**
|
|
793
|
+
|
|
794
|
+
### Authorization
|
|
795
|
+
|
|
796
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
797
|
+
|
|
798
|
+
### HTTP request headers
|
|
799
|
+
|
|
800
|
+
- **Content-Type**: application/json
|
|
801
|
+
- **Accept**: application/json
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
### HTTP response details
|
|
805
|
+
| Status code | Description | Response headers |
|
|
806
|
+
|-------------|-------------|------------------|
|
|
807
|
+
|**200** | Lifecycle properties updated | - |
|
|
808
|
+
|**404** | Object not found | - |
|
|
809
|
+
|
|
810
|
+
[[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)
|
|
811
|
+
|
|
812
|
+
# **updateObject**
|
|
813
|
+
> UpdateResponse updateObject(caraerObjectDTO)
|
|
814
|
+
|
|
815
|
+
Updates an existing object identified by its UUID with new details. Optional parameters determine if views, properties, and relations should be included in the response. Validation rules: label (required, must be a string, maximum 32 characters), plural (required, must be a string, maximum 32 characters), name (required, must be a string, must be lowercase, must be unique, must match name pattern (lowercase letters, numbers, underscores), cannot be changed after creation), description (optional, maximum 255 characters), groups (required, must be an array of string, no duplicate values allowed), showInMenu (required, must be a boolean).
|
|
816
|
+
|
|
817
|
+
### Example
|
|
818
|
+
|
|
819
|
+
```typescript
|
|
820
|
+
import {
|
|
821
|
+
ObjectsApi,
|
|
822
|
+
Configuration,
|
|
823
|
+
CaraerObjectDTO
|
|
824
|
+
} from '@caraer/client';
|
|
825
|
+
|
|
826
|
+
const configuration = new Configuration();
|
|
827
|
+
const apiInstance = new ObjectsApi(configuration);
|
|
828
|
+
|
|
829
|
+
let uuid: string; // (default to undefined)
|
|
830
|
+
let caraerObjectDTO: CaraerObjectDTO; //Updated details of the object
|
|
831
|
+
let views: string; // (optional) (default to 'false')
|
|
832
|
+
let properties: string; // (optional) (default to 'false')
|
|
833
|
+
let relations: string; // (optional) (default to 'false')
|
|
834
|
+
|
|
835
|
+
const { status, data } = await apiInstance.updateObject(
|
|
836
|
+
uuid,
|
|
837
|
+
caraerObjectDTO,
|
|
838
|
+
views,
|
|
839
|
+
properties,
|
|
840
|
+
relations
|
|
841
|
+
);
|
|
842
|
+
```
|
|
843
|
+
|
|
844
|
+
### Parameters
|
|
845
|
+
|
|
846
|
+
|Name | Type | Description | Notes|
|
|
847
|
+
|------------- | ------------- | ------------- | -------------|
|
|
848
|
+
| **caraerObjectDTO** | **CaraerObjectDTO**| Updated details of the object | |
|
|
849
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
850
|
+
| **views** | [**string**] | | (optional) defaults to 'false'|
|
|
851
|
+
| **properties** | [**string**] | | (optional) defaults to 'false'|
|
|
852
|
+
| **relations** | [**string**] | | (optional) defaults to 'false'|
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
### Return type
|
|
856
|
+
|
|
857
|
+
**UpdateResponse**
|
|
858
|
+
|
|
859
|
+
### Authorization
|
|
860
|
+
|
|
861
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
862
|
+
|
|
863
|
+
### HTTP request headers
|
|
864
|
+
|
|
865
|
+
- **Content-Type**: application/json
|
|
866
|
+
- **Accept**: application/json, */*
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
### HTTP response details
|
|
870
|
+
| Status code | Description | Response headers |
|
|
871
|
+
|-------------|-------------|------------------|
|
|
872
|
+
|**200** | Object updated successfully | - |
|
|
873
|
+
|**400** | Invalid input | - |
|
|
874
|
+
|**404** | Object not found | - |
|
|
875
|
+
|**500** | Internal server error | - |
|
|
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
|
+
|