@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,803 @@
|
|
|
1
|
+
# PropertyApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://v2.api.caraer.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**copyPropertiesToObject**](#copypropertiestoobject) | **POST** /api/v2/objects/{objectUuid}/properties/copy | Copy properties to object|
|
|
8
|
+
|[**createProperty**](#createproperty) | **POST** /api/v2/objects/{objectUuid}/properties/ | Create a new property|
|
|
9
|
+
|[**deleteProperty**](#deleteproperty) | **DELETE** /api/v2/objects/{objectUuid}/properties/{propertyUuid} | Delete a property|
|
|
10
|
+
|[**getCalculationTypes**](#getcalculationtypes) | **GET** /api/v2/objects/{objectUuid}/properties/calculation-types | Retrieve allowed calculation types per property type|
|
|
11
|
+
|[**getFormats**](#getformats) | **GET** /api/v2/objects/{objectUuid}/properties/formats | Retrieve property formats|
|
|
12
|
+
|[**getProperties**](#getproperties) | **POST** /api/v2/objects/{objectUuid}/properties/index | Fetch paginated properties|
|
|
13
|
+
|[**getProperty**](#getproperty) | **GET** /api/v2/objects/{objectUuid}/properties/{propertyUuid} | Fetch a specific property|
|
|
14
|
+
|[**getPropertyCalculationTypes**](#getpropertycalculationtypes) | **GET** /api/v2/objects/{objectUuid}/properties/{propertyUuid}/calculation-types | Retrieve allowed calculation types for a property|
|
|
15
|
+
|[**permanentlyDeleteArchivedProperty**](#permanentlydeletearchivedproperty) | **DELETE** /api/v2/objects/{objectUuid}/properties/{propertyUuid}/permanent | Permanently remove archived property|
|
|
16
|
+
|[**pinProperty**](#pinproperty) | **PUT** /api/v2/objects/{objectUuid}/properties/{propertyUuid}/pin | Pin a property|
|
|
17
|
+
|[**restoreProperty**](#restoreproperty) | **POST** /api/v2/objects/{objectUuid}/properties/{propertyUuid}/restore | Restore a soft-deleted property|
|
|
18
|
+
|[**unpinProperty**](#unpinproperty) | **DELETE** /api/v2/objects/{objectUuid}/properties/{propertyUuid}/pin | Unpin a property|
|
|
19
|
+
|[**updateIndices2**](#updateindices2) | **PUT** /api/v2/objects/{objectUuid}/properties/updateIndices | Update property indices|
|
|
20
|
+
|[**updateProperty**](#updateproperty) | **PUT** /api/v2/objects/{objectUuid}/properties/{propertyUuid} | Update an existing property|
|
|
21
|
+
|
|
22
|
+
# **copyPropertiesToObject**
|
|
23
|
+
> SuccessResponse copyPropertiesToObject(copyPropertiesToObjectRequest)
|
|
24
|
+
|
|
25
|
+
Attaches existing properties from other objects to the target object in a single request. Archived links on the target object are restored. Properties already active on the target are rejected.
|
|
26
|
+
|
|
27
|
+
### Example
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import {
|
|
31
|
+
PropertyApi,
|
|
32
|
+
Configuration,
|
|
33
|
+
CopyPropertiesToObjectRequest
|
|
34
|
+
} from '@caraer/client';
|
|
35
|
+
|
|
36
|
+
const configuration = new Configuration();
|
|
37
|
+
const apiInstance = new PropertyApi(configuration);
|
|
38
|
+
|
|
39
|
+
let objectUuid: string; // (default to undefined)
|
|
40
|
+
let copyPropertiesToObjectRequest: CopyPropertiesToObjectRequest; //
|
|
41
|
+
|
|
42
|
+
const { status, data } = await apiInstance.copyPropertiesToObject(
|
|
43
|
+
objectUuid,
|
|
44
|
+
copyPropertiesToObjectRequest
|
|
45
|
+
);
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Parameters
|
|
49
|
+
|
|
50
|
+
|Name | Type | Description | Notes|
|
|
51
|
+
|------------- | ------------- | ------------- | -------------|
|
|
52
|
+
| **copyPropertiesToObjectRequest** | **CopyPropertiesToObjectRequest**| | |
|
|
53
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
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**: application/json
|
|
67
|
+
- **Accept**: application/json
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### HTTP response details
|
|
71
|
+
| Status code | Description | Response headers |
|
|
72
|
+
|-------------|-------------|------------------|
|
|
73
|
+
|**200** | Properties copied successfully | - |
|
|
74
|
+
|**400** | Invalid input data | - |
|
|
75
|
+
|**404** | Object or property not found | - |
|
|
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
|
+
# **createProperty**
|
|
80
|
+
> CreateResponse createProperty(savePropertyDTO)
|
|
81
|
+
|
|
82
|
+
Creates a new property for a specific object using the provided property details. The SavePropertyDTO must include necessary details, and the object association is determined by the objectUuid path variable. Returns a CreateResponse containing the newly created property as a PropertyDTO. Validation rules: name (required, must be unique, must be lowercase, must match name pattern (lowercase letters, numbers, underscores)), label (required), description (maximum 255 characters), type (required, must be one of valid PropertyTypes, cannot be changed after creation), format (required, must be one of valid PropertyFormats, cannot be changed after creation), rules (required, must be an array of string).
|
|
83
|
+
|
|
84
|
+
### Example
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
import {
|
|
88
|
+
PropertyApi,
|
|
89
|
+
Configuration,
|
|
90
|
+
SavePropertyDTO
|
|
91
|
+
} from '@caraer/client';
|
|
92
|
+
|
|
93
|
+
const configuration = new Configuration();
|
|
94
|
+
const apiInstance = new PropertyApi(configuration);
|
|
95
|
+
|
|
96
|
+
let objectUuid: string; // (default to undefined)
|
|
97
|
+
let savePropertyDTO: SavePropertyDTO; //Property details for creation
|
|
98
|
+
|
|
99
|
+
const { status, data } = await apiInstance.createProperty(
|
|
100
|
+
objectUuid,
|
|
101
|
+
savePropertyDTO
|
|
102
|
+
);
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Parameters
|
|
106
|
+
|
|
107
|
+
|Name | Type | Description | Notes|
|
|
108
|
+
|------------- | ------------- | ------------- | -------------|
|
|
109
|
+
| **savePropertyDTO** | **SavePropertyDTO**| Property details for creation | |
|
|
110
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### Return type
|
|
114
|
+
|
|
115
|
+
**CreateResponse**
|
|
116
|
+
|
|
117
|
+
### Authorization
|
|
118
|
+
|
|
119
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
120
|
+
|
|
121
|
+
### HTTP request headers
|
|
122
|
+
|
|
123
|
+
- **Content-Type**: application/json
|
|
124
|
+
- **Accept**: application/json, */*
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### HTTP response details
|
|
128
|
+
| Status code | Description | Response headers |
|
|
129
|
+
|-------------|-------------|------------------|
|
|
130
|
+
|**201** | Property created successfully | - |
|
|
131
|
+
|**400** | Invalid input data | - |
|
|
132
|
+
|**500** | Internal server error | - |
|
|
133
|
+
|
|
134
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
135
|
+
|
|
136
|
+
# **deleteProperty**
|
|
137
|
+
> DeleteResponse deleteProperty()
|
|
138
|
+
|
|
139
|
+
Deletes a property from the specified object, identified by the property UUID. Returns a DeleteResponse containing the deleted property\'s details.
|
|
140
|
+
|
|
141
|
+
### Example
|
|
142
|
+
|
|
143
|
+
```typescript
|
|
144
|
+
import {
|
|
145
|
+
PropertyApi,
|
|
146
|
+
Configuration
|
|
147
|
+
} from '@caraer/client';
|
|
148
|
+
|
|
149
|
+
const configuration = new Configuration();
|
|
150
|
+
const apiInstance = new PropertyApi(configuration);
|
|
151
|
+
|
|
152
|
+
let objectUuid: string; // (default to undefined)
|
|
153
|
+
let propertyUuid: string; // (default to undefined)
|
|
154
|
+
|
|
155
|
+
const { status, data } = await apiInstance.deleteProperty(
|
|
156
|
+
objectUuid,
|
|
157
|
+
propertyUuid
|
|
158
|
+
);
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Parameters
|
|
162
|
+
|
|
163
|
+
|Name | Type | Description | Notes|
|
|
164
|
+
|------------- | ------------- | ------------- | -------------|
|
|
165
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
166
|
+
| **propertyUuid** | [**string**] | | defaults to undefined|
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### Return type
|
|
170
|
+
|
|
171
|
+
**DeleteResponse**
|
|
172
|
+
|
|
173
|
+
### Authorization
|
|
174
|
+
|
|
175
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
176
|
+
|
|
177
|
+
### HTTP request headers
|
|
178
|
+
|
|
179
|
+
- **Content-Type**: Not defined
|
|
180
|
+
- **Accept**: application/json, */*
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### HTTP response details
|
|
184
|
+
| Status code | Description | Response headers |
|
|
185
|
+
|-------------|-------------|------------------|
|
|
186
|
+
|**200** | Property deleted successfully | - |
|
|
187
|
+
|**404** | Property not found | - |
|
|
188
|
+
|**500** | Internal server error | - |
|
|
189
|
+
|
|
190
|
+
[[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)
|
|
191
|
+
|
|
192
|
+
# **getCalculationTypes**
|
|
193
|
+
> PaginationResponse getCalculationTypes()
|
|
194
|
+
|
|
195
|
+
Returns the calculation functions available for each property type (for example min/max on numbers).
|
|
196
|
+
|
|
197
|
+
### Example
|
|
198
|
+
|
|
199
|
+
```typescript
|
|
200
|
+
import {
|
|
201
|
+
PropertyApi,
|
|
202
|
+
Configuration
|
|
203
|
+
} from '@caraer/client';
|
|
204
|
+
|
|
205
|
+
const configuration = new Configuration();
|
|
206
|
+
const apiInstance = new PropertyApi(configuration);
|
|
207
|
+
|
|
208
|
+
let objectUuid: string; // (default to undefined)
|
|
209
|
+
|
|
210
|
+
const { status, data } = await apiInstance.getCalculationTypes(
|
|
211
|
+
objectUuid
|
|
212
|
+
);
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Parameters
|
|
216
|
+
|
|
217
|
+
|Name | Type | Description | Notes|
|
|
218
|
+
|------------- | ------------- | ------------- | -------------|
|
|
219
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Return type
|
|
223
|
+
|
|
224
|
+
**PaginationResponse**
|
|
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** | Calculation types retrieved successfully | - |
|
|
240
|
+
|**500** | Internal server error | - |
|
|
241
|
+
|
|
242
|
+
[[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)
|
|
243
|
+
|
|
244
|
+
# **getFormats**
|
|
245
|
+
> PaginationResponse getFormats()
|
|
246
|
+
|
|
247
|
+
Fetches a sorted list of available property formats. The formats are retrieved from the PropertyFormats enum and converted to PropertyFormat instances.
|
|
248
|
+
|
|
249
|
+
### Example
|
|
250
|
+
|
|
251
|
+
```typescript
|
|
252
|
+
import {
|
|
253
|
+
PropertyApi,
|
|
254
|
+
Configuration
|
|
255
|
+
} from '@caraer/client';
|
|
256
|
+
|
|
257
|
+
const configuration = new Configuration();
|
|
258
|
+
const apiInstance = new PropertyApi(configuration);
|
|
259
|
+
|
|
260
|
+
let objectUuid: string; // (default to undefined)
|
|
261
|
+
|
|
262
|
+
const { status, data } = await apiInstance.getFormats(
|
|
263
|
+
objectUuid
|
|
264
|
+
);
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Parameters
|
|
268
|
+
|
|
269
|
+
|Name | Type | Description | Notes|
|
|
270
|
+
|------------- | ------------- | ------------- | -------------|
|
|
271
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
### Return type
|
|
275
|
+
|
|
276
|
+
**PaginationResponse**
|
|
277
|
+
|
|
278
|
+
### Authorization
|
|
279
|
+
|
|
280
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
281
|
+
|
|
282
|
+
### HTTP request headers
|
|
283
|
+
|
|
284
|
+
- **Content-Type**: Not defined
|
|
285
|
+
- **Accept**: application/json, */*
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### HTTP response details
|
|
289
|
+
| Status code | Description | Response headers |
|
|
290
|
+
|-------------|-------------|------------------|
|
|
291
|
+
|**200** | Property formats retrieved successfully | - |
|
|
292
|
+
|**500** | Internal server error | - |
|
|
293
|
+
|
|
294
|
+
[[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)
|
|
295
|
+
|
|
296
|
+
# **getProperties**
|
|
297
|
+
> PaginationResponse getProperties(body)
|
|
298
|
+
|
|
299
|
+
Retrieves a paginated list of properties for a given object. Depending on the object UUID format, a Cypher query is constructed to filter properties belonging to that object. Returns a PaginationResponse containing PropertyDTO objects.
|
|
300
|
+
|
|
301
|
+
### Example
|
|
302
|
+
|
|
303
|
+
```typescript
|
|
304
|
+
import {
|
|
305
|
+
PropertyApi,
|
|
306
|
+
Configuration
|
|
307
|
+
} from '@caraer/client';
|
|
308
|
+
|
|
309
|
+
const configuration = new Configuration();
|
|
310
|
+
const apiInstance = new PropertyApi(configuration);
|
|
311
|
+
|
|
312
|
+
let objectUuid: string; // (default to undefined)
|
|
313
|
+
let body: any; //Pagination details (limit, page, filters, sort, query)
|
|
314
|
+
|
|
315
|
+
const { status, data } = await apiInstance.getProperties(
|
|
316
|
+
objectUuid,
|
|
317
|
+
body
|
|
318
|
+
);
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Parameters
|
|
322
|
+
|
|
323
|
+
|Name | Type | Description | Notes|
|
|
324
|
+
|------------- | ------------- | ------------- | -------------|
|
|
325
|
+
| **body** | **any**| Pagination details (limit, page, filters, sort, query) | |
|
|
326
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
### Return type
|
|
330
|
+
|
|
331
|
+
**PaginationResponse**
|
|
332
|
+
|
|
333
|
+
### Authorization
|
|
334
|
+
|
|
335
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
336
|
+
|
|
337
|
+
### HTTP request headers
|
|
338
|
+
|
|
339
|
+
- **Content-Type**: application/json
|
|
340
|
+
- **Accept**: application/json
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
### HTTP response details
|
|
344
|
+
| Status code | Description | Response headers |
|
|
345
|
+
|-------------|-------------|------------------|
|
|
346
|
+
|**200** | Properties fetched successfully | - |
|
|
347
|
+
|**400** | Invalid pagination request | - |
|
|
348
|
+
|**500** | Internal server error | - |
|
|
349
|
+
|
|
350
|
+
[[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)
|
|
351
|
+
|
|
352
|
+
# **getProperty**
|
|
353
|
+
> ShowResponse getProperty()
|
|
354
|
+
|
|
355
|
+
Retrieves details of a property by its UUID and associates it with its parent object. Returns a ShowResponse containing a PropertyDTO object with complete property details.
|
|
356
|
+
|
|
357
|
+
### Example
|
|
358
|
+
|
|
359
|
+
```typescript
|
|
360
|
+
import {
|
|
361
|
+
PropertyApi,
|
|
362
|
+
Configuration
|
|
363
|
+
} from '@caraer/client';
|
|
364
|
+
|
|
365
|
+
const configuration = new Configuration();
|
|
366
|
+
const apiInstance = new PropertyApi(configuration);
|
|
367
|
+
|
|
368
|
+
let objectUuid: string; // (default to undefined)
|
|
369
|
+
let propertyUuid: string; // (default to undefined)
|
|
370
|
+
|
|
371
|
+
const { status, data } = await apiInstance.getProperty(
|
|
372
|
+
objectUuid,
|
|
373
|
+
propertyUuid
|
|
374
|
+
);
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### Parameters
|
|
378
|
+
|
|
379
|
+
|Name | Type | Description | Notes|
|
|
380
|
+
|------------- | ------------- | ------------- | -------------|
|
|
381
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
382
|
+
| **propertyUuid** | [**string**] | | defaults to undefined|
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
### Return type
|
|
386
|
+
|
|
387
|
+
**ShowResponse**
|
|
388
|
+
|
|
389
|
+
### Authorization
|
|
390
|
+
|
|
391
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
392
|
+
|
|
393
|
+
### HTTP request headers
|
|
394
|
+
|
|
395
|
+
- **Content-Type**: Not defined
|
|
396
|
+
- **Accept**: application/json, */*
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
### HTTP response details
|
|
400
|
+
| Status code | Description | Response headers |
|
|
401
|
+
|-------------|-------------|------------------|
|
|
402
|
+
|**200** | Property retrieved successfully | - |
|
|
403
|
+
|**404** | Property not found | - |
|
|
404
|
+
|**500** | Internal server error | - |
|
|
405
|
+
|
|
406
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
407
|
+
|
|
408
|
+
# **getPropertyCalculationTypes**
|
|
409
|
+
> SuccessResponse getPropertyCalculationTypes()
|
|
410
|
+
|
|
411
|
+
Returns calculation functions supported for the property\'s type.
|
|
412
|
+
|
|
413
|
+
### Example
|
|
414
|
+
|
|
415
|
+
```typescript
|
|
416
|
+
import {
|
|
417
|
+
PropertyApi,
|
|
418
|
+
Configuration
|
|
419
|
+
} from '@caraer/client';
|
|
420
|
+
|
|
421
|
+
const configuration = new Configuration();
|
|
422
|
+
const apiInstance = new PropertyApi(configuration);
|
|
423
|
+
|
|
424
|
+
let objectUuid: string; // (default to undefined)
|
|
425
|
+
let propertyUuid: string; // (default to undefined)
|
|
426
|
+
|
|
427
|
+
const { status, data } = await apiInstance.getPropertyCalculationTypes(
|
|
428
|
+
objectUuid,
|
|
429
|
+
propertyUuid
|
|
430
|
+
);
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
### Parameters
|
|
434
|
+
|
|
435
|
+
|Name | Type | Description | Notes|
|
|
436
|
+
|------------- | ------------- | ------------- | -------------|
|
|
437
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
438
|
+
| **propertyUuid** | [**string**] | | defaults to undefined|
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
### Return type
|
|
442
|
+
|
|
443
|
+
**SuccessResponse**
|
|
444
|
+
|
|
445
|
+
### Authorization
|
|
446
|
+
|
|
447
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
448
|
+
|
|
449
|
+
### HTTP request headers
|
|
450
|
+
|
|
451
|
+
- **Content-Type**: Not defined
|
|
452
|
+
- **Accept**: application/json, */*
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
### HTTP response details
|
|
456
|
+
| Status code | Description | Response headers |
|
|
457
|
+
|-------------|-------------|------------------|
|
|
458
|
+
|**200** | Calculation types retrieved successfully | - |
|
|
459
|
+
|**404** | Property or object not found | - |
|
|
460
|
+
|
|
461
|
+
[[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)
|
|
462
|
+
|
|
463
|
+
# **permanentlyDeleteArchivedProperty**
|
|
464
|
+
> DeleteResponse permanentlyDeleteArchivedProperty()
|
|
465
|
+
|
|
466
|
+
Deletes the soft-deleted HAS_PROPERTY link to this object. If the property is not linked to any other object, the property node is hard-deleted.
|
|
467
|
+
|
|
468
|
+
### Example
|
|
469
|
+
|
|
470
|
+
```typescript
|
|
471
|
+
import {
|
|
472
|
+
PropertyApi,
|
|
473
|
+
Configuration
|
|
474
|
+
} from '@caraer/client';
|
|
475
|
+
|
|
476
|
+
const configuration = new Configuration();
|
|
477
|
+
const apiInstance = new PropertyApi(configuration);
|
|
478
|
+
|
|
479
|
+
let objectUuid: string; // (default to undefined)
|
|
480
|
+
let propertyUuid: string; // (default to undefined)
|
|
481
|
+
|
|
482
|
+
const { status, data } = await apiInstance.permanentlyDeleteArchivedProperty(
|
|
483
|
+
objectUuid,
|
|
484
|
+
propertyUuid
|
|
485
|
+
);
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
### Parameters
|
|
489
|
+
|
|
490
|
+
|Name | Type | Description | Notes|
|
|
491
|
+
|------------- | ------------- | ------------- | -------------|
|
|
492
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
493
|
+
| **propertyUuid** | [**string**] | | defaults to undefined|
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
### Return type
|
|
497
|
+
|
|
498
|
+
**DeleteResponse**
|
|
499
|
+
|
|
500
|
+
### Authorization
|
|
501
|
+
|
|
502
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
503
|
+
|
|
504
|
+
### HTTP request headers
|
|
505
|
+
|
|
506
|
+
- **Content-Type**: Not defined
|
|
507
|
+
- **Accept**: application/json, */*
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
### HTTP response details
|
|
511
|
+
| Status code | Description | Response headers |
|
|
512
|
+
|-------------|-------------|------------------|
|
|
513
|
+
|**200** | Archived property permanently removed | - |
|
|
514
|
+
|**400** | Property is not archived for this object | - |
|
|
515
|
+
|**404** | Object or property not found | - |
|
|
516
|
+
|
|
517
|
+
[[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)
|
|
518
|
+
|
|
519
|
+
# **pinProperty**
|
|
520
|
+
> UpdateResponse pinProperty()
|
|
521
|
+
|
|
522
|
+
Pins the specified property for the logged-in user. Pinned properties appear at the top of record create and update forms.
|
|
523
|
+
|
|
524
|
+
### Example
|
|
525
|
+
|
|
526
|
+
```typescript
|
|
527
|
+
import {
|
|
528
|
+
PropertyApi,
|
|
529
|
+
Configuration
|
|
530
|
+
} from '@caraer/client';
|
|
531
|
+
|
|
532
|
+
const configuration = new Configuration();
|
|
533
|
+
const apiInstance = new PropertyApi(configuration);
|
|
534
|
+
|
|
535
|
+
let objectUuid: string; // (default to undefined)
|
|
536
|
+
let propertyUuid: string; // (default to undefined)
|
|
537
|
+
|
|
538
|
+
const { status, data } = await apiInstance.pinProperty(
|
|
539
|
+
objectUuid,
|
|
540
|
+
propertyUuid
|
|
541
|
+
);
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
### Parameters
|
|
545
|
+
|
|
546
|
+
|Name | Type | Description | Notes|
|
|
547
|
+
|------------- | ------------- | ------------- | -------------|
|
|
548
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
549
|
+
| **propertyUuid** | [**string**] | | defaults to undefined|
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
### Return type
|
|
553
|
+
|
|
554
|
+
**UpdateResponse**
|
|
555
|
+
|
|
556
|
+
### Authorization
|
|
557
|
+
|
|
558
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
559
|
+
|
|
560
|
+
### HTTP request headers
|
|
561
|
+
|
|
562
|
+
- **Content-Type**: Not defined
|
|
563
|
+
- **Accept**: application/json, */*
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
### HTTP response details
|
|
567
|
+
| Status code | Description | Response headers |
|
|
568
|
+
|-------------|-------------|------------------|
|
|
569
|
+
|**200** | Property pinned successfully | - |
|
|
570
|
+
|**404** | Property not found | - |
|
|
571
|
+
|**500** | Internal server error | - |
|
|
572
|
+
|
|
573
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
574
|
+
|
|
575
|
+
# **restoreProperty**
|
|
576
|
+
> RestoreResponse restoreProperty()
|
|
577
|
+
|
|
578
|
+
Restores a previously deleted property by propertyUuid for the specified objectUuid. Returns a RestoreResponse containing the restored property details.
|
|
579
|
+
|
|
580
|
+
### Example
|
|
581
|
+
|
|
582
|
+
```typescript
|
|
583
|
+
import {
|
|
584
|
+
PropertyApi,
|
|
585
|
+
Configuration
|
|
586
|
+
} from '@caraer/client';
|
|
587
|
+
|
|
588
|
+
const configuration = new Configuration();
|
|
589
|
+
const apiInstance = new PropertyApi(configuration);
|
|
590
|
+
|
|
591
|
+
let objectUuid: string; // (default to undefined)
|
|
592
|
+
let propertyUuid: string; // (default to undefined)
|
|
593
|
+
|
|
594
|
+
const { status, data } = await apiInstance.restoreProperty(
|
|
595
|
+
objectUuid,
|
|
596
|
+
propertyUuid
|
|
597
|
+
);
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
### Parameters
|
|
601
|
+
|
|
602
|
+
|Name | Type | Description | Notes|
|
|
603
|
+
|------------- | ------------- | ------------- | -------------|
|
|
604
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
605
|
+
| **propertyUuid** | [**string**] | | defaults to undefined|
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
### Return type
|
|
609
|
+
|
|
610
|
+
**RestoreResponse**
|
|
611
|
+
|
|
612
|
+
### Authorization
|
|
613
|
+
|
|
614
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
615
|
+
|
|
616
|
+
### HTTP request headers
|
|
617
|
+
|
|
618
|
+
- **Content-Type**: Not defined
|
|
619
|
+
- **Accept**: application/json, */*
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
### HTTP response details
|
|
623
|
+
| Status code | Description | Response headers |
|
|
624
|
+
|-------------|-------------|------------------|
|
|
625
|
+
|**200** | Property restored successfully | - |
|
|
626
|
+
|**404** | Property or Object not found | - |
|
|
627
|
+
|**500** | Internal server error | - |
|
|
628
|
+
|
|
629
|
+
[[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)
|
|
630
|
+
|
|
631
|
+
# **unpinProperty**
|
|
632
|
+
> UpdateResponse unpinProperty()
|
|
633
|
+
|
|
634
|
+
Removes the pin for the specified property for the logged-in user.
|
|
635
|
+
|
|
636
|
+
### Example
|
|
637
|
+
|
|
638
|
+
```typescript
|
|
639
|
+
import {
|
|
640
|
+
PropertyApi,
|
|
641
|
+
Configuration
|
|
642
|
+
} from '@caraer/client';
|
|
643
|
+
|
|
644
|
+
const configuration = new Configuration();
|
|
645
|
+
const apiInstance = new PropertyApi(configuration);
|
|
646
|
+
|
|
647
|
+
let objectUuid: string; // (default to undefined)
|
|
648
|
+
let propertyUuid: string; // (default to undefined)
|
|
649
|
+
|
|
650
|
+
const { status, data } = await apiInstance.unpinProperty(
|
|
651
|
+
objectUuid,
|
|
652
|
+
propertyUuid
|
|
653
|
+
);
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
### Parameters
|
|
657
|
+
|
|
658
|
+
|Name | Type | Description | Notes|
|
|
659
|
+
|------------- | ------------- | ------------- | -------------|
|
|
660
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
661
|
+
| **propertyUuid** | [**string**] | | defaults to undefined|
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
### Return type
|
|
665
|
+
|
|
666
|
+
**UpdateResponse**
|
|
667
|
+
|
|
668
|
+
### Authorization
|
|
669
|
+
|
|
670
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
671
|
+
|
|
672
|
+
### HTTP request headers
|
|
673
|
+
|
|
674
|
+
- **Content-Type**: Not defined
|
|
675
|
+
- **Accept**: application/json, */*
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
### HTTP response details
|
|
679
|
+
| Status code | Description | Response headers |
|
|
680
|
+
|-------------|-------------|------------------|
|
|
681
|
+
|**200** | Property unpinned successfully | - |
|
|
682
|
+
|**404** | Property not found | - |
|
|
683
|
+
|**500** | Internal server error | - |
|
|
684
|
+
|
|
685
|
+
[[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)
|
|
686
|
+
|
|
687
|
+
# **updateIndices2**
|
|
688
|
+
> SuccessResponse updateIndices2(body)
|
|
689
|
+
|
|
690
|
+
Updates the indices for properties of a specific object. The request body should contain a mapping between property UUIDs and their new index values. Returns a SuccessResponse containing a list of updated PropertyDTO objects.
|
|
691
|
+
|
|
692
|
+
### Example
|
|
693
|
+
|
|
694
|
+
```typescript
|
|
695
|
+
import {
|
|
696
|
+
PropertyApi,
|
|
697
|
+
Configuration
|
|
698
|
+
} from '@caraer/client';
|
|
699
|
+
|
|
700
|
+
const configuration = new Configuration();
|
|
701
|
+
const apiInstance = new PropertyApi(configuration);
|
|
702
|
+
|
|
703
|
+
let objectUuid: string; // (default to undefined)
|
|
704
|
+
let body: string; //Mapping of property UUIDs to new index values
|
|
705
|
+
|
|
706
|
+
const { status, data } = await apiInstance.updateIndices2(
|
|
707
|
+
objectUuid,
|
|
708
|
+
body
|
|
709
|
+
);
|
|
710
|
+
```
|
|
711
|
+
|
|
712
|
+
### Parameters
|
|
713
|
+
|
|
714
|
+
|Name | Type | Description | Notes|
|
|
715
|
+
|------------- | ------------- | ------------- | -------------|
|
|
716
|
+
| **body** | **string**| Mapping of property UUIDs to new index values | |
|
|
717
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
### Return type
|
|
721
|
+
|
|
722
|
+
**SuccessResponse**
|
|
723
|
+
|
|
724
|
+
### Authorization
|
|
725
|
+
|
|
726
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
727
|
+
|
|
728
|
+
### HTTP request headers
|
|
729
|
+
|
|
730
|
+
- **Content-Type**: application/json
|
|
731
|
+
- **Accept**: application/json, */*
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
### HTTP response details
|
|
735
|
+
| Status code | Description | Response headers |
|
|
736
|
+
|-------------|-------------|------------------|
|
|
737
|
+
|**200** | Indices updated successfully | - |
|
|
738
|
+
|**400** | Invalid input provided | - |
|
|
739
|
+
|**500** | Internal server error | - |
|
|
740
|
+
|
|
741
|
+
[[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)
|
|
742
|
+
|
|
743
|
+
# **updateProperty**
|
|
744
|
+
> UpdateResponse updateProperty(savePropertyDTO)
|
|
745
|
+
|
|
746
|
+
Updates the details of an existing property for a specific object. The property details are provided via SavePropertyDTO, and the property is identified by its UUID. Returns an UpdateResponse containing the updated property as a PropertyDTO. Validation rules: name (required, must be unique, must be lowercase, must match name pattern (lowercase letters, numbers, underscores), cannot be changed after creation), label (required), description (maximum 255 characters), type (required, must be one of valid PropertyTypes, cannot be changed after creation), format (required, must be one of valid PropertyFormats, cannot be changed after creation), rules (required, must be an array of string).
|
|
747
|
+
|
|
748
|
+
### Example
|
|
749
|
+
|
|
750
|
+
```typescript
|
|
751
|
+
import {
|
|
752
|
+
PropertyApi,
|
|
753
|
+
Configuration,
|
|
754
|
+
SavePropertyDTO
|
|
755
|
+
} from '@caraer/client';
|
|
756
|
+
|
|
757
|
+
const configuration = new Configuration();
|
|
758
|
+
const apiInstance = new PropertyApi(configuration);
|
|
759
|
+
|
|
760
|
+
let objectUuid: string; // (default to undefined)
|
|
761
|
+
let propertyUuid: string; // (default to undefined)
|
|
762
|
+
let savePropertyDTO: SavePropertyDTO; //Updated property details
|
|
763
|
+
|
|
764
|
+
const { status, data } = await apiInstance.updateProperty(
|
|
765
|
+
objectUuid,
|
|
766
|
+
propertyUuid,
|
|
767
|
+
savePropertyDTO
|
|
768
|
+
);
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
### Parameters
|
|
772
|
+
|
|
773
|
+
|Name | Type | Description | Notes|
|
|
774
|
+
|------------- | ------------- | ------------- | -------------|
|
|
775
|
+
| **savePropertyDTO** | **SavePropertyDTO**| Updated property details | |
|
|
776
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
777
|
+
| **propertyUuid** | [**string**] | | defaults to undefined|
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
### Return type
|
|
781
|
+
|
|
782
|
+
**UpdateResponse**
|
|
783
|
+
|
|
784
|
+
### Authorization
|
|
785
|
+
|
|
786
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
787
|
+
|
|
788
|
+
### HTTP request headers
|
|
789
|
+
|
|
790
|
+
- **Content-Type**: application/json
|
|
791
|
+
- **Accept**: application/json, */*
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
### HTTP response details
|
|
795
|
+
| Status code | Description | Response headers |
|
|
796
|
+
|-------------|-------------|------------------|
|
|
797
|
+
|**200** | Property updated successfully | - |
|
|
798
|
+
|**400** | Invalid input data | - |
|
|
799
|
+
|**404** | Property not found | - |
|
|
800
|
+
|**500** | Internal server error | - |
|
|
801
|
+
|
|
802
|
+
[[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)
|
|
803
|
+
|