@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/FormsApi.md
ADDED
|
@@ -0,0 +1,864 @@
|
|
|
1
|
+
# FormsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://v2.api.caraer.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**chatField**](#chatfield) | **POST** /api/v2/forms/public/{companyUuid}/ai/field/{fieldUuid}/{prompt} | AI form field (public)|
|
|
8
|
+
|[**chatStep**](#chatstep) | **POST** /api/v2/forms/public/{companyUuid}/ai/step/{stepTitle}/{prompt} | AI form step (public)|
|
|
9
|
+
|[**createForm**](#createform) | **POST** /api/v2/forms/ | Create a new form|
|
|
10
|
+
|[**deleteForm**](#deleteform) | **DELETE** /api/v2/forms/{formUuid} | Delete a form|
|
|
11
|
+
|[**getForm**](#getform) | **GET** /api/v2/forms/{formUuid} | Get form by UUID|
|
|
12
|
+
|[**getFormPublic**](#getformpublic) | **GET** /api/v2/forms/public/{companyUuid}/{formUuid} | Get form by UUID|
|
|
13
|
+
|[**getForms**](#getforms) | **POST** /api/v2/forms/index | Get paginated list of forms|
|
|
14
|
+
|[**getFormsByObject**](#getformsbyobject) | **POST** /api/v2/forms/{objectUuid}/index | Get forms by object UUID|
|
|
15
|
+
|[**getFormsPublic**](#getformspublic) | **POST** /api/v2/forms/public/{companyUuid}/index | Get all forms for a company|
|
|
16
|
+
|[**getObjectsWithForms**](#getobjectswithforms) | **GET** /api/v2/forms/objects | List objects that have forms|
|
|
17
|
+
|[**getOptions**](#getoptions) | **POST** /api/v2/forms/public/{companyUuid}/{propertyUuid}/options | Property options (public)|
|
|
18
|
+
|[**restoreForm**](#restoreform) | **POST** /api/v2/forms/{formUuid}/restore | Restore a deleted form|
|
|
19
|
+
|[**submit**](#submit) | **POST** /api/v2/forms/public/{companyUuid}/{formUuid}/submit | Submit a form|
|
|
20
|
+
|[**updateForm**](#updateform) | **PUT** /api/v2/forms/{formUuid} | Update an existing form|
|
|
21
|
+
|[**uploadFiles**](#uploadfiles) | **POST** /api/v2/forms/public/{companyUuid}/{formUuid}/upload | Submit a file|
|
|
22
|
+
|
|
23
|
+
# **chatField**
|
|
24
|
+
> any chatField(formWithAiPromptDTO)
|
|
25
|
+
|
|
26
|
+
When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment.
|
|
27
|
+
|
|
28
|
+
### Example
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import {
|
|
32
|
+
FormsApi,
|
|
33
|
+
Configuration,
|
|
34
|
+
FormWithAiPromptDTO
|
|
35
|
+
} from '@caraer/client';
|
|
36
|
+
|
|
37
|
+
const configuration = new Configuration();
|
|
38
|
+
const apiInstance = new FormsApi(configuration);
|
|
39
|
+
|
|
40
|
+
let companyUuid: string; // (default to undefined)
|
|
41
|
+
let fieldUuid: string; // (default to undefined)
|
|
42
|
+
let prompt: string; // (default to undefined)
|
|
43
|
+
let formWithAiPromptDTO: FormWithAiPromptDTO; //
|
|
44
|
+
|
|
45
|
+
const { status, data } = await apiInstance.chatField(
|
|
46
|
+
companyUuid,
|
|
47
|
+
fieldUuid,
|
|
48
|
+
prompt,
|
|
49
|
+
formWithAiPromptDTO
|
|
50
|
+
);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
|Name | Type | Description | Notes|
|
|
56
|
+
|------------- | ------------- | ------------- | -------------|
|
|
57
|
+
| **formWithAiPromptDTO** | **FormWithAiPromptDTO**| | |
|
|
58
|
+
| **companyUuid** | [**string**] | | defaults to undefined|
|
|
59
|
+
| **fieldUuid** | [**string**] | | defaults to undefined|
|
|
60
|
+
| **prompt** | [**string**] | | defaults to undefined|
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
**any**
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: application/json
|
|
74
|
+
- **Accept**: */*
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### HTTP response details
|
|
78
|
+
| Status code | Description | Response headers |
|
|
79
|
+
|-------------|-------------|------------------|
|
|
80
|
+
|**200** | OK | - |
|
|
81
|
+
|
|
82
|
+
[[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)
|
|
83
|
+
|
|
84
|
+
# **chatStep**
|
|
85
|
+
> any chatStep(formWithAiPromptDTO)
|
|
86
|
+
|
|
87
|
+
When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment.
|
|
88
|
+
|
|
89
|
+
### Example
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
import {
|
|
93
|
+
FormsApi,
|
|
94
|
+
Configuration,
|
|
95
|
+
FormWithAiPromptDTO
|
|
96
|
+
} from '@caraer/client';
|
|
97
|
+
|
|
98
|
+
const configuration = new Configuration();
|
|
99
|
+
const apiInstance = new FormsApi(configuration);
|
|
100
|
+
|
|
101
|
+
let companyUuid: string; // (default to undefined)
|
|
102
|
+
let stepTitle: string; // (default to undefined)
|
|
103
|
+
let prompt: string; // (default to undefined)
|
|
104
|
+
let formWithAiPromptDTO: FormWithAiPromptDTO; //
|
|
105
|
+
|
|
106
|
+
const { status, data } = await apiInstance.chatStep(
|
|
107
|
+
companyUuid,
|
|
108
|
+
stepTitle,
|
|
109
|
+
prompt,
|
|
110
|
+
formWithAiPromptDTO
|
|
111
|
+
);
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Parameters
|
|
115
|
+
|
|
116
|
+
|Name | Type | Description | Notes|
|
|
117
|
+
|------------- | ------------- | ------------- | -------------|
|
|
118
|
+
| **formWithAiPromptDTO** | **FormWithAiPromptDTO**| | |
|
|
119
|
+
| **companyUuid** | [**string**] | | defaults to undefined|
|
|
120
|
+
| **stepTitle** | [**string**] | | defaults to undefined|
|
|
121
|
+
| **prompt** | [**string**] | | defaults to undefined|
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Return type
|
|
125
|
+
|
|
126
|
+
**any**
|
|
127
|
+
|
|
128
|
+
### Authorization
|
|
129
|
+
|
|
130
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
131
|
+
|
|
132
|
+
### HTTP request headers
|
|
133
|
+
|
|
134
|
+
- **Content-Type**: application/json
|
|
135
|
+
- **Accept**: */*
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### HTTP response details
|
|
139
|
+
| Status code | Description | Response headers |
|
|
140
|
+
|-------------|-------------|------------------|
|
|
141
|
+
|**200** | OK | - |
|
|
142
|
+
|
|
143
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
144
|
+
|
|
145
|
+
# **createForm**
|
|
146
|
+
> CreateResponse createForm(formDTO)
|
|
147
|
+
|
|
148
|
+
Creates a new form with the provided data. The request body should contain a valid FormDTO object. On success, returns the created form as a FormDTO wrapped in a CreateResponse. Validation: Form fields are validated according to the Form validation rules. Required fields and format constraints are enforced.
|
|
149
|
+
|
|
150
|
+
### Example
|
|
151
|
+
|
|
152
|
+
```typescript
|
|
153
|
+
import {
|
|
154
|
+
FormsApi,
|
|
155
|
+
Configuration,
|
|
156
|
+
FormDTO
|
|
157
|
+
} from '@caraer/client';
|
|
158
|
+
|
|
159
|
+
const configuration = new Configuration();
|
|
160
|
+
const apiInstance = new FormsApi(configuration);
|
|
161
|
+
|
|
162
|
+
let formDTO: FormDTO; //
|
|
163
|
+
|
|
164
|
+
const { status, data } = await apiInstance.createForm(
|
|
165
|
+
formDTO
|
|
166
|
+
);
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Parameters
|
|
170
|
+
|
|
171
|
+
|Name | Type | Description | Notes|
|
|
172
|
+
|------------- | ------------- | ------------- | -------------|
|
|
173
|
+
| **formDTO** | **FormDTO**| | |
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### Return type
|
|
177
|
+
|
|
178
|
+
**CreateResponse**
|
|
179
|
+
|
|
180
|
+
### Authorization
|
|
181
|
+
|
|
182
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
183
|
+
|
|
184
|
+
### HTTP request headers
|
|
185
|
+
|
|
186
|
+
- **Content-Type**: application/json
|
|
187
|
+
- **Accept**: application/json
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### HTTP response details
|
|
191
|
+
| Status code | Description | Response headers |
|
|
192
|
+
|-------------|-------------|------------------|
|
|
193
|
+
|**201** | Form successfully created | - |
|
|
194
|
+
|**400** | Invalid input | - |
|
|
195
|
+
|**401** | Unauthorized access | - |
|
|
196
|
+
|**403** | Forbidden | - |
|
|
197
|
+
|
|
198
|
+
[[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)
|
|
199
|
+
|
|
200
|
+
# **deleteForm**
|
|
201
|
+
> DeleteResponse deleteForm()
|
|
202
|
+
|
|
203
|
+
Deletes a form identified by its UUID. On success, returns the deleted form\'s data wrapped in a DeleteResponse.
|
|
204
|
+
|
|
205
|
+
### Example
|
|
206
|
+
|
|
207
|
+
```typescript
|
|
208
|
+
import {
|
|
209
|
+
FormsApi,
|
|
210
|
+
Configuration
|
|
211
|
+
} from '@caraer/client';
|
|
212
|
+
|
|
213
|
+
const configuration = new Configuration();
|
|
214
|
+
const apiInstance = new FormsApi(configuration);
|
|
215
|
+
|
|
216
|
+
let formUuid: string; //UUID of the form to delete (default to undefined)
|
|
217
|
+
|
|
218
|
+
const { status, data } = await apiInstance.deleteForm(
|
|
219
|
+
formUuid
|
|
220
|
+
);
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Parameters
|
|
224
|
+
|
|
225
|
+
|Name | Type | Description | Notes|
|
|
226
|
+
|------------- | ------------- | ------------- | -------------|
|
|
227
|
+
| **formUuid** | [**string**] | UUID of the form to delete | defaults to undefined|
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
### Return type
|
|
231
|
+
|
|
232
|
+
**DeleteResponse**
|
|
233
|
+
|
|
234
|
+
### Authorization
|
|
235
|
+
|
|
236
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
237
|
+
|
|
238
|
+
### HTTP request headers
|
|
239
|
+
|
|
240
|
+
- **Content-Type**: Not defined
|
|
241
|
+
- **Accept**: application/json, */*
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
### HTTP response details
|
|
245
|
+
| Status code | Description | Response headers |
|
|
246
|
+
|-------------|-------------|------------------|
|
|
247
|
+
|**200** | Form successfully deleted | - |
|
|
248
|
+
|**404** | Form not found | - |
|
|
249
|
+
|**401** | Unauthorized access | - |
|
|
250
|
+
|**403** | Forbidden | - |
|
|
251
|
+
|
|
252
|
+
[[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)
|
|
253
|
+
|
|
254
|
+
# **getForm**
|
|
255
|
+
> ShowResponse getForm()
|
|
256
|
+
|
|
257
|
+
Retrieves a specific form by its UUID. Returns the details of the form in a FormDTO object wrapped in a ShowResponse.
|
|
258
|
+
|
|
259
|
+
### Example
|
|
260
|
+
|
|
261
|
+
```typescript
|
|
262
|
+
import {
|
|
263
|
+
FormsApi,
|
|
264
|
+
Configuration
|
|
265
|
+
} from '@caraer/client';
|
|
266
|
+
|
|
267
|
+
const configuration = new Configuration();
|
|
268
|
+
const apiInstance = new FormsApi(configuration);
|
|
269
|
+
|
|
270
|
+
let formUuid: string; //UUID of the form to retrieve (default to undefined)
|
|
271
|
+
|
|
272
|
+
const { status, data } = await apiInstance.getForm(
|
|
273
|
+
formUuid
|
|
274
|
+
);
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Parameters
|
|
278
|
+
|
|
279
|
+
|Name | Type | Description | Notes|
|
|
280
|
+
|------------- | ------------- | ------------- | -------------|
|
|
281
|
+
| **formUuid** | [**string**] | UUID of the form to retrieve | defaults to undefined|
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
### Return type
|
|
285
|
+
|
|
286
|
+
**ShowResponse**
|
|
287
|
+
|
|
288
|
+
### Authorization
|
|
289
|
+
|
|
290
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
291
|
+
|
|
292
|
+
### HTTP request headers
|
|
293
|
+
|
|
294
|
+
- **Content-Type**: Not defined
|
|
295
|
+
- **Accept**: application/json
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
### HTTP response details
|
|
299
|
+
| Status code | Description | Response headers |
|
|
300
|
+
|-------------|-------------|------------------|
|
|
301
|
+
|**200** | Successfully retrieved the form | - |
|
|
302
|
+
|**404** | Form not found | - |
|
|
303
|
+
|**401** | Unauthorized access | - |
|
|
304
|
+
|**403** | Forbidden | - |
|
|
305
|
+
|
|
306
|
+
[[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)
|
|
307
|
+
|
|
308
|
+
# **getFormPublic**
|
|
309
|
+
> ShowResponse getFormPublic()
|
|
310
|
+
|
|
311
|
+
Retrieves a specific form by its UUID. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment.
|
|
312
|
+
|
|
313
|
+
### Example
|
|
314
|
+
|
|
315
|
+
```typescript
|
|
316
|
+
import {
|
|
317
|
+
FormsApi,
|
|
318
|
+
Configuration
|
|
319
|
+
} from '@caraer/client';
|
|
320
|
+
|
|
321
|
+
const configuration = new Configuration();
|
|
322
|
+
const apiInstance = new FormsApi(configuration);
|
|
323
|
+
|
|
324
|
+
let companyUuid: string; // (default to undefined)
|
|
325
|
+
let formUuid: string; // (default to undefined)
|
|
326
|
+
|
|
327
|
+
const { status, data } = await apiInstance.getFormPublic(
|
|
328
|
+
companyUuid,
|
|
329
|
+
formUuid
|
|
330
|
+
);
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Parameters
|
|
334
|
+
|
|
335
|
+
|Name | Type | Description | Notes|
|
|
336
|
+
|------------- | ------------- | ------------- | -------------|
|
|
337
|
+
| **companyUuid** | [**string**] | | defaults to undefined|
|
|
338
|
+
| **formUuid** | [**string**] | | defaults to undefined|
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
### Return type
|
|
342
|
+
|
|
343
|
+
**ShowResponse**
|
|
344
|
+
|
|
345
|
+
### Authorization
|
|
346
|
+
|
|
347
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
348
|
+
|
|
349
|
+
### HTTP request headers
|
|
350
|
+
|
|
351
|
+
- **Content-Type**: Not defined
|
|
352
|
+
- **Accept**: application/json, */*
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
### HTTP response details
|
|
356
|
+
| Status code | Description | Response headers |
|
|
357
|
+
|-------------|-------------|------------------|
|
|
358
|
+
|**200** | Successfully retrieved the form | - |
|
|
359
|
+
|**404** | Form not found | - |
|
|
360
|
+
|**401** | Unauthorized access | - |
|
|
361
|
+
|**403** | Forbidden | - |
|
|
362
|
+
|
|
363
|
+
[[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)
|
|
364
|
+
|
|
365
|
+
# **getForms**
|
|
366
|
+
> PaginationResponse getForms(body)
|
|
367
|
+
|
|
368
|
+
Retrieves a paginated list of forms based on the provided filters, sorting, and search query. This endpoint returns a list of FormDTO objects wrapped in a PaginationResponse containing the current page, limit, total count, and the forms data.
|
|
369
|
+
|
|
370
|
+
### Example
|
|
371
|
+
|
|
372
|
+
```typescript
|
|
373
|
+
import {
|
|
374
|
+
FormsApi,
|
|
375
|
+
Configuration
|
|
376
|
+
} from '@caraer/client';
|
|
377
|
+
|
|
378
|
+
const configuration = new Configuration();
|
|
379
|
+
const apiInstance = new FormsApi(configuration);
|
|
380
|
+
|
|
381
|
+
let body: any; //
|
|
382
|
+
|
|
383
|
+
const { status, data } = await apiInstance.getForms(
|
|
384
|
+
body
|
|
385
|
+
);
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
### Parameters
|
|
389
|
+
|
|
390
|
+
|Name | Type | Description | Notes|
|
|
391
|
+
|------------- | ------------- | ------------- | -------------|
|
|
392
|
+
| **body** | **any**| | |
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
### Return type
|
|
396
|
+
|
|
397
|
+
**PaginationResponse**
|
|
398
|
+
|
|
399
|
+
### Authorization
|
|
400
|
+
|
|
401
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
402
|
+
|
|
403
|
+
### HTTP request headers
|
|
404
|
+
|
|
405
|
+
- **Content-Type**: application/json
|
|
406
|
+
- **Accept**: application/json
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
### HTTP response details
|
|
410
|
+
| Status code | Description | Response headers |
|
|
411
|
+
|-------------|-------------|------------------|
|
|
412
|
+
|**200** | Successfully retrieved forms list | - |
|
|
413
|
+
|**400** | Invalid request | - |
|
|
414
|
+
|**401** | Unauthorized access | - |
|
|
415
|
+
|**403** | Forbidden | - |
|
|
416
|
+
|
|
417
|
+
[[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)
|
|
418
|
+
|
|
419
|
+
# **getFormsByObject**
|
|
420
|
+
> PaginationResponse getFormsByObject(body)
|
|
421
|
+
|
|
422
|
+
Retrieves a paginated list of forms associated with a specific object UUID. The endpoint uses a custom Cypher query to match forms linked to the object.
|
|
423
|
+
|
|
424
|
+
### Example
|
|
425
|
+
|
|
426
|
+
```typescript
|
|
427
|
+
import {
|
|
428
|
+
FormsApi,
|
|
429
|
+
Configuration
|
|
430
|
+
} from '@caraer/client';
|
|
431
|
+
|
|
432
|
+
const configuration = new Configuration();
|
|
433
|
+
const apiInstance = new FormsApi(configuration);
|
|
434
|
+
|
|
435
|
+
let objectUuid: string; //UUID of the object to get forms for (default to undefined)
|
|
436
|
+
let body: any; //
|
|
437
|
+
|
|
438
|
+
const { status, data } = await apiInstance.getFormsByObject(
|
|
439
|
+
objectUuid,
|
|
440
|
+
body
|
|
441
|
+
);
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
### Parameters
|
|
445
|
+
|
|
446
|
+
|Name | Type | Description | Notes|
|
|
447
|
+
|------------- | ------------- | ------------- | -------------|
|
|
448
|
+
| **body** | **any**| | |
|
|
449
|
+
| **objectUuid** | [**string**] | UUID of the object to get forms for | defaults to undefined|
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
### Return type
|
|
453
|
+
|
|
454
|
+
**PaginationResponse**
|
|
455
|
+
|
|
456
|
+
### Authorization
|
|
457
|
+
|
|
458
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
459
|
+
|
|
460
|
+
### HTTP request headers
|
|
461
|
+
|
|
462
|
+
- **Content-Type**: application/json
|
|
463
|
+
- **Accept**: application/json
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
### HTTP response details
|
|
467
|
+
| Status code | Description | Response headers |
|
|
468
|
+
|-------------|-------------|------------------|
|
|
469
|
+
|**200** | Successfully retrieved forms for the given object | - |
|
|
470
|
+
|**400** | Invalid request | - |
|
|
471
|
+
|**401** | Unauthorized access | - |
|
|
472
|
+
|**403** | Forbidden | - |
|
|
473
|
+
|
|
474
|
+
[[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)
|
|
475
|
+
|
|
476
|
+
# **getFormsPublic**
|
|
477
|
+
> any getFormsPublic(body)
|
|
478
|
+
|
|
479
|
+
When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment.
|
|
480
|
+
|
|
481
|
+
### Example
|
|
482
|
+
|
|
483
|
+
```typescript
|
|
484
|
+
import {
|
|
485
|
+
FormsApi,
|
|
486
|
+
Configuration
|
|
487
|
+
} from '@caraer/client';
|
|
488
|
+
|
|
489
|
+
const configuration = new Configuration();
|
|
490
|
+
const apiInstance = new FormsApi(configuration);
|
|
491
|
+
|
|
492
|
+
let companyUuid: string; // (default to undefined)
|
|
493
|
+
let body: any; //
|
|
494
|
+
|
|
495
|
+
const { status, data } = await apiInstance.getFormsPublic(
|
|
496
|
+
companyUuid,
|
|
497
|
+
body
|
|
498
|
+
);
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### Parameters
|
|
502
|
+
|
|
503
|
+
|Name | Type | Description | Notes|
|
|
504
|
+
|------------- | ------------- | ------------- | -------------|
|
|
505
|
+
| **body** | **any**| | |
|
|
506
|
+
| **companyUuid** | [**string**] | | defaults to undefined|
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
### Return type
|
|
510
|
+
|
|
511
|
+
**any**
|
|
512
|
+
|
|
513
|
+
### Authorization
|
|
514
|
+
|
|
515
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
516
|
+
|
|
517
|
+
### HTTP request headers
|
|
518
|
+
|
|
519
|
+
- **Content-Type**: application/json
|
|
520
|
+
- **Accept**: */*
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
### HTTP response details
|
|
524
|
+
| Status code | Description | Response headers |
|
|
525
|
+
|-------------|-------------|------------------|
|
|
526
|
+
|**200** | OK | - |
|
|
527
|
+
|
|
528
|
+
[[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)
|
|
529
|
+
|
|
530
|
+
# **getObjectsWithForms**
|
|
531
|
+
> ShowResponse getObjectsWithForms()
|
|
532
|
+
|
|
533
|
+
Returns distinct custom objects that have at least one non-deleted form, ordered by object index.
|
|
534
|
+
|
|
535
|
+
### Example
|
|
536
|
+
|
|
537
|
+
```typescript
|
|
538
|
+
import {
|
|
539
|
+
FormsApi,
|
|
540
|
+
Configuration
|
|
541
|
+
} from '@caraer/client';
|
|
542
|
+
|
|
543
|
+
const configuration = new Configuration();
|
|
544
|
+
const apiInstance = new FormsApi(configuration);
|
|
545
|
+
|
|
546
|
+
const { status, data } = await apiInstance.getObjectsWithForms();
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
### Parameters
|
|
550
|
+
This endpoint does not have any parameters.
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
### Return type
|
|
554
|
+
|
|
555
|
+
**ShowResponse**
|
|
556
|
+
|
|
557
|
+
### Authorization
|
|
558
|
+
|
|
559
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
560
|
+
|
|
561
|
+
### HTTP request headers
|
|
562
|
+
|
|
563
|
+
- **Content-Type**: Not defined
|
|
564
|
+
- **Accept**: application/json
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
### HTTP response details
|
|
568
|
+
| Status code | Description | Response headers |
|
|
569
|
+
|-------------|-------------|------------------|
|
|
570
|
+
|**200** | Successfully retrieved objects with forms | - |
|
|
571
|
+
|**401** | Unauthorized access | - |
|
|
572
|
+
|**403** | Forbidden | - |
|
|
573
|
+
|
|
574
|
+
[[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)
|
|
575
|
+
|
|
576
|
+
# **getOptions**
|
|
577
|
+
> any getOptions(body)
|
|
578
|
+
|
|
579
|
+
When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment.
|
|
580
|
+
|
|
581
|
+
### Example
|
|
582
|
+
|
|
583
|
+
```typescript
|
|
584
|
+
import {
|
|
585
|
+
FormsApi,
|
|
586
|
+
Configuration
|
|
587
|
+
} from '@caraer/client';
|
|
588
|
+
|
|
589
|
+
const configuration = new Configuration();
|
|
590
|
+
const apiInstance = new FormsApi(configuration);
|
|
591
|
+
|
|
592
|
+
let propertyUuid: string; // (default to undefined)
|
|
593
|
+
let companyUuid: string; // (default to undefined)
|
|
594
|
+
let body: any; //
|
|
595
|
+
|
|
596
|
+
const { status, data } = await apiInstance.getOptions(
|
|
597
|
+
propertyUuid,
|
|
598
|
+
companyUuid,
|
|
599
|
+
body
|
|
600
|
+
);
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
### Parameters
|
|
604
|
+
|
|
605
|
+
|Name | Type | Description | Notes|
|
|
606
|
+
|------------- | ------------- | ------------- | -------------|
|
|
607
|
+
| **body** | **any**| | |
|
|
608
|
+
| **propertyUuid** | [**string**] | | defaults to undefined|
|
|
609
|
+
| **companyUuid** | [**string**] | | defaults to undefined|
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
### Return type
|
|
613
|
+
|
|
614
|
+
**any**
|
|
615
|
+
|
|
616
|
+
### Authorization
|
|
617
|
+
|
|
618
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
619
|
+
|
|
620
|
+
### HTTP request headers
|
|
621
|
+
|
|
622
|
+
- **Content-Type**: application/json
|
|
623
|
+
- **Accept**: */*
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
### HTTP response details
|
|
627
|
+
| Status code | Description | Response headers |
|
|
628
|
+
|-------------|-------------|------------------|
|
|
629
|
+
|**200** | OK | - |
|
|
630
|
+
|
|
631
|
+
[[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)
|
|
632
|
+
|
|
633
|
+
# **restoreForm**
|
|
634
|
+
> RestoreResponse restoreForm()
|
|
635
|
+
|
|
636
|
+
Restores a previously deleted form identified by its UUID. Returns the restored form wrapped in a RestoreResponse.
|
|
637
|
+
|
|
638
|
+
### Example
|
|
639
|
+
|
|
640
|
+
```typescript
|
|
641
|
+
import {
|
|
642
|
+
FormsApi,
|
|
643
|
+
Configuration
|
|
644
|
+
} from '@caraer/client';
|
|
645
|
+
|
|
646
|
+
const configuration = new Configuration();
|
|
647
|
+
const apiInstance = new FormsApi(configuration);
|
|
648
|
+
|
|
649
|
+
let formUuid: string; //UUID of the form to restore (default to undefined)
|
|
650
|
+
|
|
651
|
+
const { status, data } = await apiInstance.restoreForm(
|
|
652
|
+
formUuid
|
|
653
|
+
);
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
### Parameters
|
|
657
|
+
|
|
658
|
+
|Name | Type | Description | Notes|
|
|
659
|
+
|------------- | ------------- | ------------- | -------------|
|
|
660
|
+
| **formUuid** | [**string**] | UUID of the form to restore | defaults to undefined|
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
### Return type
|
|
664
|
+
|
|
665
|
+
**RestoreResponse**
|
|
666
|
+
|
|
667
|
+
### Authorization
|
|
668
|
+
|
|
669
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
670
|
+
|
|
671
|
+
### HTTP request headers
|
|
672
|
+
|
|
673
|
+
- **Content-Type**: Not defined
|
|
674
|
+
- **Accept**: application/json, */*
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
### HTTP response details
|
|
678
|
+
| Status code | Description | Response headers |
|
|
679
|
+
|-------------|-------------|------------------|
|
|
680
|
+
|**200** | Form successfully restored | - |
|
|
681
|
+
|**404** | Form not found | - |
|
|
682
|
+
|**401** | Unauthorized access | - |
|
|
683
|
+
|**403** | Forbidden | - |
|
|
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
|
+
# **submit**
|
|
688
|
+
> SuccessResponse submit(formDTO)
|
|
689
|
+
|
|
690
|
+
Submits a form with the provided data. Returns a SuccessResponse upon successful submission. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment.
|
|
691
|
+
|
|
692
|
+
### Example
|
|
693
|
+
|
|
694
|
+
```typescript
|
|
695
|
+
import {
|
|
696
|
+
FormsApi,
|
|
697
|
+
Configuration,
|
|
698
|
+
FormDTO
|
|
699
|
+
} from '@caraer/client';
|
|
700
|
+
|
|
701
|
+
const configuration = new Configuration();
|
|
702
|
+
const apiInstance = new FormsApi(configuration);
|
|
703
|
+
|
|
704
|
+
let companyUuid: string; // (default to undefined)
|
|
705
|
+
let formUuid: string; // (default to undefined)
|
|
706
|
+
let formDTO: FormDTO; //
|
|
707
|
+
|
|
708
|
+
const { status, data } = await apiInstance.submit(
|
|
709
|
+
companyUuid,
|
|
710
|
+
formUuid,
|
|
711
|
+
formDTO
|
|
712
|
+
);
|
|
713
|
+
```
|
|
714
|
+
|
|
715
|
+
### Parameters
|
|
716
|
+
|
|
717
|
+
|Name | Type | Description | Notes|
|
|
718
|
+
|------------- | ------------- | ------------- | -------------|
|
|
719
|
+
| **formDTO** | **FormDTO**| | |
|
|
720
|
+
| **companyUuid** | [**string**] | | defaults to undefined|
|
|
721
|
+
| **formUuid** | [**string**] | | defaults to undefined|
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
### Return type
|
|
725
|
+
|
|
726
|
+
**SuccessResponse**
|
|
727
|
+
|
|
728
|
+
### Authorization
|
|
729
|
+
|
|
730
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
731
|
+
|
|
732
|
+
### HTTP request headers
|
|
733
|
+
|
|
734
|
+
- **Content-Type**: application/json
|
|
735
|
+
- **Accept**: application/json, */*
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
### HTTP response details
|
|
739
|
+
| Status code | Description | Response headers |
|
|
740
|
+
|-------------|-------------|------------------|
|
|
741
|
+
|**200** | Form successfully submitted | - |
|
|
742
|
+
|**400** | Invalid input | - |
|
|
743
|
+
|**401** | Invalid X-CARAER-TOKEN | - |
|
|
744
|
+
|
|
745
|
+
[[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)
|
|
746
|
+
|
|
747
|
+
# **updateForm**
|
|
748
|
+
> UpdateResponse updateForm(formDTO)
|
|
749
|
+
|
|
750
|
+
Updates an existing form identified by its UUID with the provided data. The request body should include the updated fields in a FormDTO. Returns the updated form wrapped in an UpdateResponse. Validation: Form fields are validated according to the Form validation rules. Required fields and format constraints are enforced.
|
|
751
|
+
|
|
752
|
+
### Example
|
|
753
|
+
|
|
754
|
+
```typescript
|
|
755
|
+
import {
|
|
756
|
+
FormsApi,
|
|
757
|
+
Configuration,
|
|
758
|
+
FormDTO
|
|
759
|
+
} from '@caraer/client';
|
|
760
|
+
|
|
761
|
+
const configuration = new Configuration();
|
|
762
|
+
const apiInstance = new FormsApi(configuration);
|
|
763
|
+
|
|
764
|
+
let formUuid: string; //UUID of the form to update (default to undefined)
|
|
765
|
+
let formDTO: FormDTO; //
|
|
766
|
+
|
|
767
|
+
const { status, data } = await apiInstance.updateForm(
|
|
768
|
+
formUuid,
|
|
769
|
+
formDTO
|
|
770
|
+
);
|
|
771
|
+
```
|
|
772
|
+
|
|
773
|
+
### Parameters
|
|
774
|
+
|
|
775
|
+
|Name | Type | Description | Notes|
|
|
776
|
+
|------------- | ------------- | ------------- | -------------|
|
|
777
|
+
| **formDTO** | **FormDTO**| | |
|
|
778
|
+
| **formUuid** | [**string**] | UUID of the form to update | defaults to undefined|
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
### Return type
|
|
782
|
+
|
|
783
|
+
**UpdateResponse**
|
|
784
|
+
|
|
785
|
+
### Authorization
|
|
786
|
+
|
|
787
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
788
|
+
|
|
789
|
+
### HTTP request headers
|
|
790
|
+
|
|
791
|
+
- **Content-Type**: application/json
|
|
792
|
+
- **Accept**: application/json
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
### HTTP response details
|
|
796
|
+
| Status code | Description | Response headers |
|
|
797
|
+
|-------------|-------------|------------------|
|
|
798
|
+
|**200** | Form successfully updated | - |
|
|
799
|
+
|**400** | Invalid input | - |
|
|
800
|
+
|**404** | Form not found | - |
|
|
801
|
+
|**401** | Unauthorized access | - |
|
|
802
|
+
|**403** | Forbidden | - |
|
|
803
|
+
|
|
804
|
+
[[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)
|
|
805
|
+
|
|
806
|
+
# **uploadFiles**
|
|
807
|
+
> SuccessResponse uploadFiles()
|
|
808
|
+
|
|
809
|
+
Submits a file with the provided data. Returns a SuccessResponse upon successful submission. When X-CARAER-TOKEN or X-Caraer-Company-Uuid is sent, that value selects the tenant company and overrides the companyUuid path segment.
|
|
810
|
+
|
|
811
|
+
### Example
|
|
812
|
+
|
|
813
|
+
```typescript
|
|
814
|
+
import {
|
|
815
|
+
FormsApi,
|
|
816
|
+
Configuration
|
|
817
|
+
} from '@caraer/client';
|
|
818
|
+
|
|
819
|
+
const configuration = new Configuration();
|
|
820
|
+
const apiInstance = new FormsApi(configuration);
|
|
821
|
+
|
|
822
|
+
let companyUuid: string; // (default to undefined)
|
|
823
|
+
let formUuid: string; // (default to undefined)
|
|
824
|
+
let files: Array<File>; // (default to undefined)
|
|
825
|
+
|
|
826
|
+
const { status, data } = await apiInstance.uploadFiles(
|
|
827
|
+
companyUuid,
|
|
828
|
+
formUuid,
|
|
829
|
+
files
|
|
830
|
+
);
|
|
831
|
+
```
|
|
832
|
+
|
|
833
|
+
### Parameters
|
|
834
|
+
|
|
835
|
+
|Name | Type | Description | Notes|
|
|
836
|
+
|------------- | ------------- | ------------- | -------------|
|
|
837
|
+
| **companyUuid** | [**string**] | | defaults to undefined|
|
|
838
|
+
| **formUuid** | [**string**] | | defaults to undefined|
|
|
839
|
+
| **files** | **Array<File>** | | defaults to undefined|
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
### Return type
|
|
843
|
+
|
|
844
|
+
**SuccessResponse**
|
|
845
|
+
|
|
846
|
+
### Authorization
|
|
847
|
+
|
|
848
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
849
|
+
|
|
850
|
+
### HTTP request headers
|
|
851
|
+
|
|
852
|
+
- **Content-Type**: Not defined
|
|
853
|
+
- **Accept**: application/json, */*
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
### HTTP response details
|
|
857
|
+
| Status code | Description | Response headers |
|
|
858
|
+
|-------------|-------------|------------------|
|
|
859
|
+
|**200** | File successfully submitted | - |
|
|
860
|
+
|**400** | Invalid input | - |
|
|
861
|
+
|**401** | Invalid X-CARAER-TOKEN | - |
|
|
862
|
+
|
|
863
|
+
[[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)
|
|
864
|
+
|