@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
package/docs/ViewsApi.md
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
# ViewsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://v2.api.caraer.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createView**](#createview) | **POST** /api/v2/objects/{objectUuid}/views/ | Create a new view|
|
|
8
|
+
|[**deleteView**](#deleteview) | **DELETE** /api/v2/objects/{objectUuid}/views/{viewUuid} | Delete a view|
|
|
9
|
+
|[**favoriteView**](#favoriteview) | **PUT** /api/v2/objects/{objectUuid}/views/{viewUuid}/favorite | Toggle view favorite status|
|
|
10
|
+
|[**getView**](#getview) | **GET** /api/v2/objects/{objectUuid}/views/{viewUuid} | Get view details|
|
|
11
|
+
|[**getViews**](#getviews) | **POST** /api/v2/objects/{objectUuid}/views/index | Fetch paginated views for an object|
|
|
12
|
+
|[**updateIndices1**](#updateindices1) | **PUT** /api/v2/objects/{objectUuid}/views/updateIndices | Update view indices|
|
|
13
|
+
|[**updateView**](#updateview) | **PUT** /api/v2/objects/{objectUuid}/views/{viewUuid} | Update an existing view|
|
|
14
|
+
|
|
15
|
+
# **createView**
|
|
16
|
+
> CreateResponse createView(viewDTO)
|
|
17
|
+
|
|
18
|
+
Creates a new view for the specified object. The request body must contain the view details as a ViewDTO. Returns a CreateResponse containing the newly created view as a ViewDTO.
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import {
|
|
24
|
+
ViewsApi,
|
|
25
|
+
Configuration,
|
|
26
|
+
ViewDTO
|
|
27
|
+
} from '@caraer/client';
|
|
28
|
+
|
|
29
|
+
const configuration = new Configuration();
|
|
30
|
+
const apiInstance = new ViewsApi(configuration);
|
|
31
|
+
|
|
32
|
+
let objectUuid: string; // (default to undefined)
|
|
33
|
+
let viewDTO: ViewDTO; //View details to create
|
|
34
|
+
|
|
35
|
+
const { status, data } = await apiInstance.createView(
|
|
36
|
+
objectUuid,
|
|
37
|
+
viewDTO
|
|
38
|
+
);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
|Name | Type | Description | Notes|
|
|
44
|
+
|------------- | ------------- | ------------- | -------------|
|
|
45
|
+
| **viewDTO** | **ViewDTO**| View details to create | |
|
|
46
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Return type
|
|
50
|
+
|
|
51
|
+
**CreateResponse**
|
|
52
|
+
|
|
53
|
+
### Authorization
|
|
54
|
+
|
|
55
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
56
|
+
|
|
57
|
+
### HTTP request headers
|
|
58
|
+
|
|
59
|
+
- **Content-Type**: application/json
|
|
60
|
+
- **Accept**: application/json, */*
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### HTTP response details
|
|
64
|
+
| Status code | Description | Response headers |
|
|
65
|
+
|-------------|-------------|------------------|
|
|
66
|
+
|**201** | View created successfully | - |
|
|
67
|
+
|**400** | Invalid input data | - |
|
|
68
|
+
|**500** | Internal server error | - |
|
|
69
|
+
|
|
70
|
+
[[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)
|
|
71
|
+
|
|
72
|
+
# **deleteView**
|
|
73
|
+
> DeleteResponse deleteView()
|
|
74
|
+
|
|
75
|
+
Deletes the view identified by its UUID from the specified object. Returns a DeleteResponse confirming the deletion.
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
ViewsApi,
|
|
82
|
+
Configuration
|
|
83
|
+
} from '@caraer/client';
|
|
84
|
+
|
|
85
|
+
const configuration = new Configuration();
|
|
86
|
+
const apiInstance = new ViewsApi(configuration);
|
|
87
|
+
|
|
88
|
+
let objectUuid: string; // (default to undefined)
|
|
89
|
+
let viewUuid: string; // (default to undefined)
|
|
90
|
+
|
|
91
|
+
const { status, data } = await apiInstance.deleteView(
|
|
92
|
+
objectUuid,
|
|
93
|
+
viewUuid
|
|
94
|
+
);
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Parameters
|
|
98
|
+
|
|
99
|
+
|Name | Type | Description | Notes|
|
|
100
|
+
|------------- | ------------- | ------------- | -------------|
|
|
101
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
102
|
+
| **viewUuid** | [**string**] | | defaults to undefined|
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Return type
|
|
106
|
+
|
|
107
|
+
**DeleteResponse**
|
|
108
|
+
|
|
109
|
+
### Authorization
|
|
110
|
+
|
|
111
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
112
|
+
|
|
113
|
+
### HTTP request headers
|
|
114
|
+
|
|
115
|
+
- **Content-Type**: Not defined
|
|
116
|
+
- **Accept**: application/json, */*
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### HTTP response details
|
|
120
|
+
| Status code | Description | Response headers |
|
|
121
|
+
|-------------|-------------|------------------|
|
|
122
|
+
|**200** | View deleted successfully | - |
|
|
123
|
+
|**404** | View not found | - |
|
|
124
|
+
|**500** | Internal server error | - |
|
|
125
|
+
|
|
126
|
+
[[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)
|
|
127
|
+
|
|
128
|
+
# **favoriteView**
|
|
129
|
+
> UpdateResponse favoriteView()
|
|
130
|
+
|
|
131
|
+
Toggles the favorite status of the specified view. Returns an UpdateResponse containing the updated view details.
|
|
132
|
+
|
|
133
|
+
### Example
|
|
134
|
+
|
|
135
|
+
```typescript
|
|
136
|
+
import {
|
|
137
|
+
ViewsApi,
|
|
138
|
+
Configuration
|
|
139
|
+
} from '@caraer/client';
|
|
140
|
+
|
|
141
|
+
const configuration = new Configuration();
|
|
142
|
+
const apiInstance = new ViewsApi(configuration);
|
|
143
|
+
|
|
144
|
+
let objectUuid: string; // (default to undefined)
|
|
145
|
+
let viewUuid: string; // (default to undefined)
|
|
146
|
+
|
|
147
|
+
const { status, data } = await apiInstance.favoriteView(
|
|
148
|
+
objectUuid,
|
|
149
|
+
viewUuid
|
|
150
|
+
);
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Parameters
|
|
154
|
+
|
|
155
|
+
|Name | Type | Description | Notes|
|
|
156
|
+
|------------- | ------------- | ------------- | -------------|
|
|
157
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
158
|
+
| **viewUuid** | [**string**] | | defaults to undefined|
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Return type
|
|
162
|
+
|
|
163
|
+
**UpdateResponse**
|
|
164
|
+
|
|
165
|
+
### Authorization
|
|
166
|
+
|
|
167
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
168
|
+
|
|
169
|
+
### HTTP request headers
|
|
170
|
+
|
|
171
|
+
- **Content-Type**: Not defined
|
|
172
|
+
- **Accept**: application/json, */*
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### HTTP response details
|
|
176
|
+
| Status code | Description | Response headers |
|
|
177
|
+
|-------------|-------------|------------------|
|
|
178
|
+
|**200** | View favorite status updated successfully | - |
|
|
179
|
+
|**404** | View not found | - |
|
|
180
|
+
|**500** | Internal server error | - |
|
|
181
|
+
|
|
182
|
+
[[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)
|
|
183
|
+
|
|
184
|
+
# **getView**
|
|
185
|
+
> ShowResponse getView()
|
|
186
|
+
|
|
187
|
+
Retrieves detailed information for a view identified by its UUID for the specified object. Returns a ShowResponse containing the ViewDTO.
|
|
188
|
+
|
|
189
|
+
### Example
|
|
190
|
+
|
|
191
|
+
```typescript
|
|
192
|
+
import {
|
|
193
|
+
ViewsApi,
|
|
194
|
+
Configuration
|
|
195
|
+
} from '@caraer/client';
|
|
196
|
+
|
|
197
|
+
const configuration = new Configuration();
|
|
198
|
+
const apiInstance = new ViewsApi(configuration);
|
|
199
|
+
|
|
200
|
+
let objectUuid: string; // (default to undefined)
|
|
201
|
+
let viewUuid: string; // (default to undefined)
|
|
202
|
+
|
|
203
|
+
const { status, data } = await apiInstance.getView(
|
|
204
|
+
objectUuid,
|
|
205
|
+
viewUuid
|
|
206
|
+
);
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### Parameters
|
|
210
|
+
|
|
211
|
+
|Name | Type | Description | Notes|
|
|
212
|
+
|------------- | ------------- | ------------- | -------------|
|
|
213
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
214
|
+
| **viewUuid** | [**string**] | | defaults to undefined|
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Return type
|
|
218
|
+
|
|
219
|
+
**ShowResponse**
|
|
220
|
+
|
|
221
|
+
### Authorization
|
|
222
|
+
|
|
223
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
224
|
+
|
|
225
|
+
### HTTP request headers
|
|
226
|
+
|
|
227
|
+
- **Content-Type**: Not defined
|
|
228
|
+
- **Accept**: application/json, */*
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### HTTP response details
|
|
232
|
+
| Status code | Description | Response headers |
|
|
233
|
+
|-------------|-------------|------------------|
|
|
234
|
+
|**200** | View retrieved successfully | - |
|
|
235
|
+
|**404** | View not found | - |
|
|
236
|
+
|**500** | Internal server error | - |
|
|
237
|
+
|
|
238
|
+
[[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)
|
|
239
|
+
|
|
240
|
+
# **getViews**
|
|
241
|
+
> PaginationResponse getViews(body)
|
|
242
|
+
|
|
243
|
+
Retrieves a paginated list of views for the specified object. A custom Cypher query is used to filter views based on the object\'s UUID. Returns a PaginationResponse containing ViewDTO objects.
|
|
244
|
+
|
|
245
|
+
### Example
|
|
246
|
+
|
|
247
|
+
```typescript
|
|
248
|
+
import {
|
|
249
|
+
ViewsApi,
|
|
250
|
+
Configuration
|
|
251
|
+
} from '@caraer/client';
|
|
252
|
+
|
|
253
|
+
const configuration = new Configuration();
|
|
254
|
+
const apiInstance = new ViewsApi(configuration);
|
|
255
|
+
|
|
256
|
+
let objectUuid: string; // (default to undefined)
|
|
257
|
+
let body: any; //Pagination request details (limit, page, filters, sort, query)
|
|
258
|
+
|
|
259
|
+
const { status, data } = await apiInstance.getViews(
|
|
260
|
+
objectUuid,
|
|
261
|
+
body
|
|
262
|
+
);
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Parameters
|
|
266
|
+
|
|
267
|
+
|Name | Type | Description | Notes|
|
|
268
|
+
|------------- | ------------- | ------------- | -------------|
|
|
269
|
+
| **body** | **any**| Pagination request details (limit, page, filters, sort, query) | |
|
|
270
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
### Return type
|
|
274
|
+
|
|
275
|
+
**PaginationResponse**
|
|
276
|
+
|
|
277
|
+
### Authorization
|
|
278
|
+
|
|
279
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
280
|
+
|
|
281
|
+
### HTTP request headers
|
|
282
|
+
|
|
283
|
+
- **Content-Type**: application/json
|
|
284
|
+
- **Accept**: application/json
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
### HTTP response details
|
|
288
|
+
| Status code | Description | Response headers |
|
|
289
|
+
|-------------|-------------|------------------|
|
|
290
|
+
|**200** | Views fetched successfully | - |
|
|
291
|
+
|**400** | Invalid pagination request | - |
|
|
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
|
+
# **updateIndices1**
|
|
297
|
+
> SuccessResponse updateIndices1(body)
|
|
298
|
+
|
|
299
|
+
Updates the indices for views associated with the specified object. The request body must include a mapping of view UUIDs to their new index values. Returns a SuccessResponse with the updated view DTOs.
|
|
300
|
+
|
|
301
|
+
### Example
|
|
302
|
+
|
|
303
|
+
```typescript
|
|
304
|
+
import {
|
|
305
|
+
ViewsApi,
|
|
306
|
+
Configuration
|
|
307
|
+
} from '@caraer/client';
|
|
308
|
+
|
|
309
|
+
const configuration = new Configuration();
|
|
310
|
+
const apiInstance = new ViewsApi(configuration);
|
|
311
|
+
|
|
312
|
+
let objectUuid: string; // (default to undefined)
|
|
313
|
+
let body: string; //Mapping of view UUIDs to new index values
|
|
314
|
+
|
|
315
|
+
const { status, data } = await apiInstance.updateIndices1(
|
|
316
|
+
objectUuid,
|
|
317
|
+
body
|
|
318
|
+
);
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Parameters
|
|
322
|
+
|
|
323
|
+
|Name | Type | Description | Notes|
|
|
324
|
+
|------------- | ------------- | ------------- | -------------|
|
|
325
|
+
| **body** | **string**| Mapping of view UUIDs to new index values | |
|
|
326
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
### Return type
|
|
330
|
+
|
|
331
|
+
**SuccessResponse**
|
|
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** | View indices updated successfully | - |
|
|
347
|
+
|**400** | Invalid input provided | - |
|
|
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
|
+
# **updateView**
|
|
353
|
+
> UpdateResponse updateView(viewDTO)
|
|
354
|
+
|
|
355
|
+
Updates the details of an existing view identified by its UUID for the specified object. The request body must contain the updated view details as a ViewDTO. Returns an UpdateResponse with the updated view data.
|
|
356
|
+
|
|
357
|
+
### Example
|
|
358
|
+
|
|
359
|
+
```typescript
|
|
360
|
+
import {
|
|
361
|
+
ViewsApi,
|
|
362
|
+
Configuration,
|
|
363
|
+
ViewDTO
|
|
364
|
+
} from '@caraer/client';
|
|
365
|
+
|
|
366
|
+
const configuration = new Configuration();
|
|
367
|
+
const apiInstance = new ViewsApi(configuration);
|
|
368
|
+
|
|
369
|
+
let objectUuid: string; // (default to undefined)
|
|
370
|
+
let viewUuid: string; // (default to undefined)
|
|
371
|
+
let viewDTO: ViewDTO; //Updated view details
|
|
372
|
+
|
|
373
|
+
const { status, data } = await apiInstance.updateView(
|
|
374
|
+
objectUuid,
|
|
375
|
+
viewUuid,
|
|
376
|
+
viewDTO
|
|
377
|
+
);
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### Parameters
|
|
381
|
+
|
|
382
|
+
|Name | Type | Description | Notes|
|
|
383
|
+
|------------- | ------------- | ------------- | -------------|
|
|
384
|
+
| **viewDTO** | **ViewDTO**| Updated view details | |
|
|
385
|
+
| **objectUuid** | [**string**] | | defaults to undefined|
|
|
386
|
+
| **viewUuid** | [**string**] | | defaults to undefined|
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
### Return type
|
|
390
|
+
|
|
391
|
+
**UpdateResponse**
|
|
392
|
+
|
|
393
|
+
### Authorization
|
|
394
|
+
|
|
395
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
396
|
+
|
|
397
|
+
### HTTP request headers
|
|
398
|
+
|
|
399
|
+
- **Content-Type**: application/json
|
|
400
|
+
- **Accept**: application/json, */*
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
### HTTP response details
|
|
404
|
+
| Status code | Description | Response headers |
|
|
405
|
+
|-------------|-------------|------------------|
|
|
406
|
+
|**200** | View updated successfully | - |
|
|
407
|
+
|**400** | Invalid input data | - |
|
|
408
|
+
|**404** | View not found | - |
|
|
409
|
+
|**500** | Internal server error | - |
|
|
410
|
+
|
|
411
|
+
[[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)
|
|
412
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# WebMenuDTO
|
|
2
|
+
|
|
3
|
+
Data transfer object representing the structure of a web menu
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uuid** | **string** | Unique identifier for the entity | [default to undefined]
|
|
10
|
+
**name** | **string** | The name of the entity | [default to undefined]
|
|
11
|
+
**label** | **string** | Display label for the entity, can be different from name | [optional] [default to undefined]
|
|
12
|
+
**createdAt** | **number** | Unix timestamp when the entity was created | [optional] [default to undefined]
|
|
13
|
+
**createdBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who created the entity | [optional] [default to undefined]
|
|
14
|
+
**updatedAt** | **number** | Unix timestamp when the entity was last updated | [optional] [default to undefined]
|
|
15
|
+
**updatedBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who last updated the entity | [optional] [default to undefined]
|
|
16
|
+
**deletedAt** | **number** | Unix timestamp when the entity was deleted (null if not deleted) | [optional] [default to undefined]
|
|
17
|
+
**deletedBy** | [**ModelRecord**](ModelRecord.md) | Identifier of the user who deleted the entity | [optional] [default to undefined]
|
|
18
|
+
**index** | **number** | Index number for ordering entities | [optional] [default to undefined]
|
|
19
|
+
**title** | **string** | The title of the web menu | [optional] [default to undefined]
|
|
20
|
+
**active** | **boolean** | Indicates whether the web menu is active | [optional] [default to undefined]
|
|
21
|
+
**environments** | **Array<string>** | The environments of the web menu | [optional] [default to undefined]
|
|
22
|
+
**location** | **string** | The location of the web menu in the UI, e.g., \'footer_block_1\' or \'header\' | [optional] [default to undefined]
|
|
23
|
+
**urls** | **Array<{ [key: string]: string; }>** | | [optional] [default to undefined]
|
|
24
|
+
**items** | [**Array<WebMenuItem>**](WebMenuItem.md) | | [optional] [default to undefined]
|
|
25
|
+
**text** | **string** | The text of the web menu | [optional] [default to undefined]
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { WebMenuDTO } from '@caraer/client';
|
|
31
|
+
|
|
32
|
+
const instance: WebMenuDTO = {
|
|
33
|
+
uuid,
|
|
34
|
+
name,
|
|
35
|
+
label,
|
|
36
|
+
createdAt,
|
|
37
|
+
createdBy,
|
|
38
|
+
updatedAt,
|
|
39
|
+
updatedBy,
|
|
40
|
+
deletedAt,
|
|
41
|
+
deletedBy,
|
|
42
|
+
index,
|
|
43
|
+
title,
|
|
44
|
+
active,
|
|
45
|
+
environments,
|
|
46
|
+
location,
|
|
47
|
+
urls,
|
|
48
|
+
items,
|
|
49
|
+
text,
|
|
50
|
+
};
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# WebMenuItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**label** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**url** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**icon** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**image** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { WebMenuItem } from '@caraer/client';
|
|
17
|
+
|
|
18
|
+
const instance: WebMenuItem = {
|
|
19
|
+
label,
|
|
20
|
+
url,
|
|
21
|
+
icon,
|
|
22
|
+
image,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|