@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,2009 @@
|
|
|
1
|
+
# WebpagesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://v2.api.caraer.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**claimTemplateWebpageEditingSession**](#claimtemplatewebpageeditingsession) | **POST** /api/v2/webpages/template/{objectName}/{environment}/editing-session | Claim a template webpage editing session|
|
|
8
|
+
|[**claimWebpageEditingSession**](#claimwebpageeditingsession) | **POST** /api/v2/webpages/{uuid}/editing-session | Claim a webpage editing session|
|
|
9
|
+
|[**copyPropertyToEnvironments**](#copypropertytoenvironments) | **POST** /api/v2/webpages/environments/properties | Copy properties to environments|
|
|
10
|
+
|[**copyTemplateWebpage**](#copytemplatewebpage) | **POST** /api/v2/webpages/template/{objectName}/copy/{fromEnvironment}/{toEnvironment} | Copy a template webpage from one environment to another|
|
|
11
|
+
|[**copyWebpage**](#copywebpage) | **POST** /api/v2/webpages/{uuid}/copy/{fromEnvironment}/{toEnvironment} | Copy a webpage from one environment to another|
|
|
12
|
+
|[**createEnvironments**](#createenvironments) | **POST** /api/v2/webpages/environments | Create an environment|
|
|
13
|
+
|[**createOrUpdateTemplateWebpage**](#createorupdatetemplatewebpage) | **POST** /api/v2/webpages/template/{objectName}/{environment} | Create or update template webpage|
|
|
14
|
+
|[**createSignedUrl**](#createsignedurl) | **POST** /api/v2/webpages/{uuid}/protection/signed-url | Generate signed URL for protected webpage|
|
|
15
|
+
|[**createWebpage**](#createwebpage) | **POST** /api/v2/webpages/ | Create a new webpage|
|
|
16
|
+
|[**deleteEnvironment**](#deleteenvironment) | **DELETE** /api/v2/webpages/environments/{environment} | Delete an environment|
|
|
17
|
+
|[**getAllSlugs**](#getallslugs) | **GET** /api/v2/webpages/public/getSlugs | Get all public webpage slugs|
|
|
18
|
+
|[**getCompanySettings**](#getcompanysettings) | **GET** /api/v2/webpages/public/companySettings | Fetch public company settings|
|
|
19
|
+
|[**getEnvironments**](#getenvironments) | **GET** /api/v2/webpages/environments | Get all environments|
|
|
20
|
+
|[**getMenus**](#getmenus) | **GET** /api/v2/webpages/public/getMenus | Fetch public web menus|
|
|
21
|
+
|[**getPublicCustomFooterModule**](#getpubliccustomfootermodule) | **GET** /api/v2/webpages/public/module/{moduleUuid} | Fetch public custom footer module|
|
|
22
|
+
|[**getPublicPreviews**](#getpublicpreviews) | **POST** /api/v2/webpages/public/previews/{pageUuid}/{componentUuid}/{layout} | Get previews for a public webpage|
|
|
23
|
+
|[**getPublicWebpage**](#getpublicwebpage) | **GET** /api/v2/webpages/public/{rootSlug}/{slug} | Get a public webpage by slug|
|
|
24
|
+
|[**getPublicWebpageByUuid**](#getpublicwebpagebyuuid) | **GET** /api/v2/webpages/public/uuid/{uuid} | Get a public webpage by UUID|
|
|
25
|
+
|[**getPublicWebpageProtection**](#getpublicwebpageprotection) | **GET** /api/v2/webpages/public/uuid/{uuid}/protection | Get webpage protection metadata|
|
|
26
|
+
|[**getTemplateWebpage**](#gettemplatewebpage) | **GET** /api/v2/webpages/template/{objectName}/{environment} | Get template webpage|
|
|
27
|
+
|[**getTemplateWebpageEditingStatus**](#gettemplatewebpageeditingstatus) | **GET** /api/v2/webpages/template/{objectName}/{environment}/editing-status | Check if a template webpage is being edited|
|
|
28
|
+
|[**getWebpage**](#getwebpage) | **GET** /api/v2/webpages/{uuid} | Get webpage details|
|
|
29
|
+
|[**getWebpageEditingStatus**](#getwebpageeditingstatus) | **GET** /api/v2/webpages/{uuid}/editing-status | Check if a webpage is being edited|
|
|
30
|
+
|[**getWebpagePickerPages**](#getwebpagepickerpages) | **GET** /api/v2/webpages/picker/pages | List webpages for picker dropdowns|
|
|
31
|
+
|[**listProtectionGrants**](#listprotectiongrants) | **GET** /api/v2/webpages/{uuid}/protection/grants | List signed URL grants for a webpage|
|
|
32
|
+
|[**publishWebpage**](#publishwebpage) | **PUT** /api/v2/webpages/{uuid}/publish | Publish a webpage|
|
|
33
|
+
|[**releaseTemplateWebpageEditingSession**](#releasetemplatewebpageeditingsession) | **DELETE** /api/v2/webpages/template/{objectName}/{environment}/editing-session | Release a template webpage editing session|
|
|
34
|
+
|[**releaseWebpageEditingSession**](#releasewebpageeditingsession) | **DELETE** /api/v2/webpages/{uuid}/editing-session | Release a webpage editing session|
|
|
35
|
+
|[**revokeProtectionGrant**](#revokeprotectiongrant) | **DELETE** /api/v2/webpages/{uuid}/protection/grants/{grantUuid} | Revoke a signed URL grant|
|
|
36
|
+
|[**unlockPublicWebpage**](#unlockpublicwebpage) | **POST** /api/v2/webpages/public/uuid/{uuid}/unlock | Unlock password-protected webpage|
|
|
37
|
+
|[**unpublishWebpage**](#unpublishwebpage) | **PUT** /api/v2/webpages/{uuid}/unpublish | Unpublish a webpage|
|
|
38
|
+
|[**updateWebpage**](#updatewebpage) | **PUT** /api/v2/webpages/{uuid} | Update a webpage|
|
|
39
|
+
|[**uploadFile**](#uploadfile) | **POST** /api/v2/webpages/{uuid}/uploadFile | Upload a file for a webpage|
|
|
40
|
+
|[**uploadFile1**](#uploadfile1) | **POST** /api/v2/webpages/uploadFile | Upload a file|
|
|
41
|
+
|
|
42
|
+
# **claimTemplateWebpageEditingSession**
|
|
43
|
+
> WebpageEditingStatusDTO claimTemplateWebpageEditingSession()
|
|
44
|
+
|
|
45
|
+
Registers the current user as editing the template webpage so other users are blocked from opening the builder.
|
|
46
|
+
|
|
47
|
+
### Example
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
import {
|
|
51
|
+
WebpagesApi,
|
|
52
|
+
Configuration
|
|
53
|
+
} from '@caraer/client';
|
|
54
|
+
|
|
55
|
+
const configuration = new Configuration();
|
|
56
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
57
|
+
|
|
58
|
+
let objectName: string; // (default to undefined)
|
|
59
|
+
let environment: string; // (default to undefined)
|
|
60
|
+
|
|
61
|
+
const { status, data } = await apiInstance.claimTemplateWebpageEditingSession(
|
|
62
|
+
objectName,
|
|
63
|
+
environment
|
|
64
|
+
);
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
|Name | Type | Description | Notes|
|
|
70
|
+
|------------- | ------------- | ------------- | -------------|
|
|
71
|
+
| **objectName** | [**string**] | | defaults to undefined|
|
|
72
|
+
| **environment** | [**string**] | | defaults to undefined|
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
**WebpageEditingStatusDTO**
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: Not defined
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### HTTP response details
|
|
90
|
+
| Status code | Description | Response headers |
|
|
91
|
+
|-------------|-------------|------------------|
|
|
92
|
+
|**200** | Editing session claimed or blocked | - |
|
|
93
|
+
|**404** | Template webpage not found | - |
|
|
94
|
+
|
|
95
|
+
[[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)
|
|
96
|
+
|
|
97
|
+
# **claimWebpageEditingSession**
|
|
98
|
+
> WebpageEditingStatusDTO claimWebpageEditingSession()
|
|
99
|
+
|
|
100
|
+
Registers the current user as editing this webpage so other users are blocked from opening the builder.
|
|
101
|
+
|
|
102
|
+
### Example
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
import {
|
|
106
|
+
WebpagesApi,
|
|
107
|
+
Configuration
|
|
108
|
+
} from '@caraer/client';
|
|
109
|
+
|
|
110
|
+
const configuration = new Configuration();
|
|
111
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
112
|
+
|
|
113
|
+
let uuid: string; // (default to undefined)
|
|
114
|
+
let environment: string; // (optional) (default to 'staging')
|
|
115
|
+
|
|
116
|
+
const { status, data } = await apiInstance.claimWebpageEditingSession(
|
|
117
|
+
uuid,
|
|
118
|
+
environment
|
|
119
|
+
);
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Parameters
|
|
123
|
+
|
|
124
|
+
|Name | Type | Description | Notes|
|
|
125
|
+
|------------- | ------------- | ------------- | -------------|
|
|
126
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
127
|
+
| **environment** | [**string**] | | (optional) defaults to 'staging'|
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Return type
|
|
131
|
+
|
|
132
|
+
**WebpageEditingStatusDTO**
|
|
133
|
+
|
|
134
|
+
### Authorization
|
|
135
|
+
|
|
136
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
137
|
+
|
|
138
|
+
### HTTP request headers
|
|
139
|
+
|
|
140
|
+
- **Content-Type**: Not defined
|
|
141
|
+
- **Accept**: application/json
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### HTTP response details
|
|
145
|
+
| Status code | Description | Response headers |
|
|
146
|
+
|-------------|-------------|------------------|
|
|
147
|
+
|**200** | Editing session claimed | - |
|
|
148
|
+
|**403** | Missing write access on webpage fields for this environment | - |
|
|
149
|
+
|**404** | Webpage not found | - |
|
|
150
|
+
|
|
151
|
+
[[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)
|
|
152
|
+
|
|
153
|
+
# **copyPropertyToEnvironments**
|
|
154
|
+
> ShowResponse copyPropertyToEnvironments(copyPropertyToEnvironmentsRequest)
|
|
155
|
+
|
|
156
|
+
Copies selected properties for the chosen environments (e.g. production_title → german_production_title).
|
|
157
|
+
|
|
158
|
+
### Example
|
|
159
|
+
|
|
160
|
+
```typescript
|
|
161
|
+
import {
|
|
162
|
+
WebpagesApi,
|
|
163
|
+
Configuration,
|
|
164
|
+
CopyPropertyToEnvironmentsRequest
|
|
165
|
+
} from '@caraer/client';
|
|
166
|
+
|
|
167
|
+
const configuration = new Configuration();
|
|
168
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
169
|
+
|
|
170
|
+
let copyPropertyToEnvironmentsRequest: CopyPropertyToEnvironmentsRequest; //
|
|
171
|
+
|
|
172
|
+
const { status, data } = await apiInstance.copyPropertyToEnvironments(
|
|
173
|
+
copyPropertyToEnvironmentsRequest
|
|
174
|
+
);
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Parameters
|
|
178
|
+
|
|
179
|
+
|Name | Type | Description | Notes|
|
|
180
|
+
|------------- | ------------- | ------------- | -------------|
|
|
181
|
+
| **copyPropertyToEnvironmentsRequest** | **CopyPropertyToEnvironmentsRequest**| | |
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Return type
|
|
185
|
+
|
|
186
|
+
**ShowResponse**
|
|
187
|
+
|
|
188
|
+
### Authorization
|
|
189
|
+
|
|
190
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
191
|
+
|
|
192
|
+
### HTTP request headers
|
|
193
|
+
|
|
194
|
+
- **Content-Type**: application/json
|
|
195
|
+
- **Accept**: application/json
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### HTTP response details
|
|
199
|
+
| Status code | Description | Response headers |
|
|
200
|
+
|-------------|-------------|------------------|
|
|
201
|
+
|**200** | Environment properties copied successfully | - |
|
|
202
|
+
|**400** | Invalid input data | - |
|
|
203
|
+
|**404** | Object or property not found | - |
|
|
204
|
+
|
|
205
|
+
[[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)
|
|
206
|
+
|
|
207
|
+
# **copyTemplateWebpage**
|
|
208
|
+
> CreateResponse copyTemplateWebpage()
|
|
209
|
+
|
|
210
|
+
Copies a template webpage by object name from one environment to another. Returns a CreateResponse containing the copied template webpage as a TemplateWebpageDTO.
|
|
211
|
+
|
|
212
|
+
### Example
|
|
213
|
+
|
|
214
|
+
```typescript
|
|
215
|
+
import {
|
|
216
|
+
WebpagesApi,
|
|
217
|
+
Configuration
|
|
218
|
+
} from '@caraer/client';
|
|
219
|
+
|
|
220
|
+
const configuration = new Configuration();
|
|
221
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
222
|
+
|
|
223
|
+
let objectName: string; // (default to undefined)
|
|
224
|
+
let fromEnvironment: string; // (default to undefined)
|
|
225
|
+
let toEnvironment: string; // (default to undefined)
|
|
226
|
+
|
|
227
|
+
const { status, data } = await apiInstance.copyTemplateWebpage(
|
|
228
|
+
objectName,
|
|
229
|
+
fromEnvironment,
|
|
230
|
+
toEnvironment
|
|
231
|
+
);
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Parameters
|
|
235
|
+
|
|
236
|
+
|Name | Type | Description | Notes|
|
|
237
|
+
|------------- | ------------- | ------------- | -------------|
|
|
238
|
+
| **objectName** | [**string**] | | defaults to undefined|
|
|
239
|
+
| **fromEnvironment** | [**string**] | | defaults to undefined|
|
|
240
|
+
| **toEnvironment** | [**string**] | | defaults to undefined|
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### Return type
|
|
244
|
+
|
|
245
|
+
**CreateResponse**
|
|
246
|
+
|
|
247
|
+
### Authorization
|
|
248
|
+
|
|
249
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
250
|
+
|
|
251
|
+
### HTTP request headers
|
|
252
|
+
|
|
253
|
+
- **Content-Type**: Not defined
|
|
254
|
+
- **Accept**: application/json
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
### HTTP response details
|
|
258
|
+
| Status code | Description | Response headers |
|
|
259
|
+
|-------------|-------------|------------------|
|
|
260
|
+
|**201** | Template webpage copied successfully | - |
|
|
261
|
+
|**404** | Template webpage not found | - |
|
|
262
|
+
|
|
263
|
+
[[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)
|
|
264
|
+
|
|
265
|
+
# **copyWebpage**
|
|
266
|
+
> CreateResponse copyWebpage()
|
|
267
|
+
|
|
268
|
+
Copies a webpage by its UUID from one environment to another. Returns a CreateResponse containing the copied webpage as a WebpageDTO.
|
|
269
|
+
|
|
270
|
+
### Example
|
|
271
|
+
|
|
272
|
+
```typescript
|
|
273
|
+
import {
|
|
274
|
+
WebpagesApi,
|
|
275
|
+
Configuration
|
|
276
|
+
} from '@caraer/client';
|
|
277
|
+
|
|
278
|
+
const configuration = new Configuration();
|
|
279
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
280
|
+
|
|
281
|
+
let uuid: string; // (default to undefined)
|
|
282
|
+
let fromEnvironment: string; // (default to undefined)
|
|
283
|
+
let toEnvironment: string; // (default to undefined)
|
|
284
|
+
|
|
285
|
+
const { status, data } = await apiInstance.copyWebpage(
|
|
286
|
+
uuid,
|
|
287
|
+
fromEnvironment,
|
|
288
|
+
toEnvironment
|
|
289
|
+
);
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### Parameters
|
|
293
|
+
|
|
294
|
+
|Name | Type | Description | Notes|
|
|
295
|
+
|------------- | ------------- | ------------- | -------------|
|
|
296
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
297
|
+
| **fromEnvironment** | [**string**] | | defaults to undefined|
|
|
298
|
+
| **toEnvironment** | [**string**] | | defaults to undefined|
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
### Return type
|
|
302
|
+
|
|
303
|
+
**CreateResponse**
|
|
304
|
+
|
|
305
|
+
### Authorization
|
|
306
|
+
|
|
307
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
308
|
+
|
|
309
|
+
### HTTP request headers
|
|
310
|
+
|
|
311
|
+
- **Content-Type**: Not defined
|
|
312
|
+
- **Accept**: application/json
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
### HTTP response details
|
|
316
|
+
| Status code | Description | Response headers |
|
|
317
|
+
|-------------|-------------|------------------|
|
|
318
|
+
|**201** | Webpage copied successfully | - |
|
|
319
|
+
|**404** | Webpage not found | - |
|
|
320
|
+
|
|
321
|
+
[[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)
|
|
322
|
+
|
|
323
|
+
# **createEnvironments**
|
|
324
|
+
> ShowResponse createEnvironments(createOrUpdateEnvironmentRequest)
|
|
325
|
+
|
|
326
|
+
Creates an environment.
|
|
327
|
+
|
|
328
|
+
### Example
|
|
329
|
+
|
|
330
|
+
```typescript
|
|
331
|
+
import {
|
|
332
|
+
WebpagesApi,
|
|
333
|
+
Configuration,
|
|
334
|
+
CreateOrUpdateEnvironmentRequest
|
|
335
|
+
} from '@caraer/client';
|
|
336
|
+
|
|
337
|
+
const configuration = new Configuration();
|
|
338
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
339
|
+
|
|
340
|
+
let createOrUpdateEnvironmentRequest: CreateOrUpdateEnvironmentRequest; //
|
|
341
|
+
|
|
342
|
+
const { status, data } = await apiInstance.createEnvironments(
|
|
343
|
+
createOrUpdateEnvironmentRequest
|
|
344
|
+
);
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### Parameters
|
|
348
|
+
|
|
349
|
+
|Name | Type | Description | Notes|
|
|
350
|
+
|------------- | ------------- | ------------- | -------------|
|
|
351
|
+
| **createOrUpdateEnvironmentRequest** | **CreateOrUpdateEnvironmentRequest**| | |
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
### Return type
|
|
355
|
+
|
|
356
|
+
**ShowResponse**
|
|
357
|
+
|
|
358
|
+
### Authorization
|
|
359
|
+
|
|
360
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
361
|
+
|
|
362
|
+
### HTTP request headers
|
|
363
|
+
|
|
364
|
+
- **Content-Type**: application/json
|
|
365
|
+
- **Accept**: application/json
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
### HTTP response details
|
|
369
|
+
| Status code | Description | Response headers |
|
|
370
|
+
|-------------|-------------|------------------|
|
|
371
|
+
|**200** | Environments created or updated successfully | - |
|
|
372
|
+
|**500** | Internal server error | - |
|
|
373
|
+
|
|
374
|
+
[[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)
|
|
375
|
+
|
|
376
|
+
# **createOrUpdateTemplateWebpage**
|
|
377
|
+
> UpdateResponse createOrUpdateTemplateWebpage(templateWebpageDTO)
|
|
378
|
+
|
|
379
|
+
Creates a new or updates an existing template webpage for the specified object. An event is published after the template is changed. Returns an UpdateResponse or CreateResponse with the template webpage details.
|
|
380
|
+
|
|
381
|
+
### Example
|
|
382
|
+
|
|
383
|
+
```typescript
|
|
384
|
+
import {
|
|
385
|
+
WebpagesApi,
|
|
386
|
+
Configuration,
|
|
387
|
+
TemplateWebpageDTO
|
|
388
|
+
} from '@caraer/client';
|
|
389
|
+
|
|
390
|
+
const configuration = new Configuration();
|
|
391
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
392
|
+
|
|
393
|
+
let objectName: string; // (default to undefined)
|
|
394
|
+
let environment: string; // (default to undefined)
|
|
395
|
+
let templateWebpageDTO: TemplateWebpageDTO; //Template webpage details
|
|
396
|
+
|
|
397
|
+
const { status, data } = await apiInstance.createOrUpdateTemplateWebpage(
|
|
398
|
+
objectName,
|
|
399
|
+
environment,
|
|
400
|
+
templateWebpageDTO
|
|
401
|
+
);
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
### Parameters
|
|
405
|
+
|
|
406
|
+
|Name | Type | Description | Notes|
|
|
407
|
+
|------------- | ------------- | ------------- | -------------|
|
|
408
|
+
| **templateWebpageDTO** | **TemplateWebpageDTO**| Template webpage details | |
|
|
409
|
+
| **objectName** | [**string**] | | defaults to undefined|
|
|
410
|
+
| **environment** | [**string**] | | defaults to undefined|
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
### Return type
|
|
414
|
+
|
|
415
|
+
**UpdateResponse**
|
|
416
|
+
|
|
417
|
+
### Authorization
|
|
418
|
+
|
|
419
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
420
|
+
|
|
421
|
+
### HTTP request headers
|
|
422
|
+
|
|
423
|
+
- **Content-Type**: application/json
|
|
424
|
+
- **Accept**: application/json
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
### HTTP response details
|
|
428
|
+
| Status code | Description | Response headers |
|
|
429
|
+
|-------------|-------------|------------------|
|
|
430
|
+
|**200** | Template webpage updated successfully | - |
|
|
431
|
+
|**201** | Template webpage created successfully | - |
|
|
432
|
+
|**404** | Template webpage not found | - |
|
|
433
|
+
|**500** | Internal server error | - |
|
|
434
|
+
|
|
435
|
+
[[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)
|
|
436
|
+
|
|
437
|
+
# **createSignedUrl**
|
|
438
|
+
> CreateResponseSignedUrlResultDTO createSignedUrl()
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
### Example
|
|
442
|
+
|
|
443
|
+
```typescript
|
|
444
|
+
import {
|
|
445
|
+
WebpagesApi,
|
|
446
|
+
Configuration,
|
|
447
|
+
CreateSignedUrlRequest
|
|
448
|
+
} from '@caraer/client';
|
|
449
|
+
|
|
450
|
+
const configuration = new Configuration();
|
|
451
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
452
|
+
|
|
453
|
+
let uuid: string; // (default to undefined)
|
|
454
|
+
let environment: string; // (optional) (default to 'staging')
|
|
455
|
+
let createSignedUrlRequest: CreateSignedUrlRequest; // (optional)
|
|
456
|
+
|
|
457
|
+
const { status, data } = await apiInstance.createSignedUrl(
|
|
458
|
+
uuid,
|
|
459
|
+
environment,
|
|
460
|
+
createSignedUrlRequest
|
|
461
|
+
);
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
### Parameters
|
|
465
|
+
|
|
466
|
+
|Name | Type | Description | Notes|
|
|
467
|
+
|------------- | ------------- | ------------- | -------------|
|
|
468
|
+
| **createSignedUrlRequest** | **CreateSignedUrlRequest**| | |
|
|
469
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
470
|
+
| **environment** | [**string**] | | (optional) defaults to 'staging'|
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
### Return type
|
|
474
|
+
|
|
475
|
+
**CreateResponseSignedUrlResultDTO**
|
|
476
|
+
|
|
477
|
+
### Authorization
|
|
478
|
+
|
|
479
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
480
|
+
|
|
481
|
+
### HTTP request headers
|
|
482
|
+
|
|
483
|
+
- **Content-Type**: application/json
|
|
484
|
+
- **Accept**: application/json
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
### HTTP response details
|
|
488
|
+
| Status code | Description | Response headers |
|
|
489
|
+
|-------------|-------------|------------------|
|
|
490
|
+
|**200** | OK | - |
|
|
491
|
+
|
|
492
|
+
[[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)
|
|
493
|
+
|
|
494
|
+
# **createWebpage**
|
|
495
|
+
> CreateResponse createWebpage(webpageDTO)
|
|
496
|
+
|
|
497
|
+
Creates a new webpage using the provided webpage details. Returns a CreateResponse containing the newly created webpage as a WebpageDTO. Validation: Webpage fields are validated according to the Webpage validation rules. Required fields and format constraints are enforced.
|
|
498
|
+
|
|
499
|
+
### Example
|
|
500
|
+
|
|
501
|
+
```typescript
|
|
502
|
+
import {
|
|
503
|
+
WebpagesApi,
|
|
504
|
+
Configuration,
|
|
505
|
+
WebpageDTO
|
|
506
|
+
} from '@caraer/client';
|
|
507
|
+
|
|
508
|
+
const configuration = new Configuration();
|
|
509
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
510
|
+
|
|
511
|
+
let webpageDTO: WebpageDTO; //Webpage details
|
|
512
|
+
let environment: string; // (optional) (default to 'staging')
|
|
513
|
+
|
|
514
|
+
const { status, data } = await apiInstance.createWebpage(
|
|
515
|
+
webpageDTO,
|
|
516
|
+
environment
|
|
517
|
+
);
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
### Parameters
|
|
521
|
+
|
|
522
|
+
|Name | Type | Description | Notes|
|
|
523
|
+
|------------- | ------------- | ------------- | -------------|
|
|
524
|
+
| **webpageDTO** | **WebpageDTO**| Webpage details | |
|
|
525
|
+
| **environment** | [**string**] | | (optional) defaults to 'staging'|
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
### Return type
|
|
529
|
+
|
|
530
|
+
**CreateResponse**
|
|
531
|
+
|
|
532
|
+
### Authorization
|
|
533
|
+
|
|
534
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
535
|
+
|
|
536
|
+
### HTTP request headers
|
|
537
|
+
|
|
538
|
+
- **Content-Type**: application/json
|
|
539
|
+
- **Accept**: application/json
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
### HTTP response details
|
|
543
|
+
| Status code | Description | Response headers |
|
|
544
|
+
|-------------|-------------|------------------|
|
|
545
|
+
|**201** | Webpage created successfully | - |
|
|
546
|
+
|**400** | Invalid input data | - |
|
|
547
|
+
|**500** | Internal server error | - |
|
|
548
|
+
|
|
549
|
+
[[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)
|
|
550
|
+
|
|
551
|
+
# **deleteEnvironment**
|
|
552
|
+
> ShowResponse deleteEnvironment()
|
|
553
|
+
|
|
554
|
+
Soft deletes an environment.
|
|
555
|
+
|
|
556
|
+
### Example
|
|
557
|
+
|
|
558
|
+
```typescript
|
|
559
|
+
import {
|
|
560
|
+
WebpagesApi,
|
|
561
|
+
Configuration
|
|
562
|
+
} from '@caraer/client';
|
|
563
|
+
|
|
564
|
+
const configuration = new Configuration();
|
|
565
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
566
|
+
|
|
567
|
+
let environment: string; // (default to undefined)
|
|
568
|
+
|
|
569
|
+
const { status, data } = await apiInstance.deleteEnvironment(
|
|
570
|
+
environment
|
|
571
|
+
);
|
|
572
|
+
```
|
|
573
|
+
|
|
574
|
+
### Parameters
|
|
575
|
+
|
|
576
|
+
|Name | Type | Description | Notes|
|
|
577
|
+
|------------- | ------------- | ------------- | -------------|
|
|
578
|
+
| **environment** | [**string**] | | defaults to undefined|
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
### Return type
|
|
582
|
+
|
|
583
|
+
**ShowResponse**
|
|
584
|
+
|
|
585
|
+
### Authorization
|
|
586
|
+
|
|
587
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
588
|
+
|
|
589
|
+
### HTTP request headers
|
|
590
|
+
|
|
591
|
+
- **Content-Type**: Not defined
|
|
592
|
+
- **Accept**: application/json
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
### HTTP response details
|
|
596
|
+
| Status code | Description | Response headers |
|
|
597
|
+
|-------------|-------------|------------------|
|
|
598
|
+
|**200** | Environment deleted successfully | - |
|
|
599
|
+
|**500** | Internal server error | - |
|
|
600
|
+
|
|
601
|
+
[[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)
|
|
602
|
+
|
|
603
|
+
# **getAllSlugs**
|
|
604
|
+
> PaginationResponse getAllSlugs()
|
|
605
|
+
|
|
606
|
+
Retrieves a list of all webpage slugs for the public site. Returns a PaginationResponse containing WebpageMapItemDTO objects.
|
|
607
|
+
|
|
608
|
+
### Example
|
|
609
|
+
|
|
610
|
+
```typescript
|
|
611
|
+
import {
|
|
612
|
+
WebpagesApi,
|
|
613
|
+
Configuration
|
|
614
|
+
} from '@caraer/client';
|
|
615
|
+
|
|
616
|
+
const configuration = new Configuration();
|
|
617
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
618
|
+
|
|
619
|
+
let xCaraerSubdomain: string; // (default to undefined)
|
|
620
|
+
let xCaraerEnvironment: string; // (optional) (default to 'production')
|
|
621
|
+
let xCaraerPrimaryEnvironment: string; // (optional) (default to 'production')
|
|
622
|
+
|
|
623
|
+
const { status, data } = await apiInstance.getAllSlugs(
|
|
624
|
+
xCaraerSubdomain,
|
|
625
|
+
xCaraerEnvironment,
|
|
626
|
+
xCaraerPrimaryEnvironment
|
|
627
|
+
);
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
### Parameters
|
|
631
|
+
|
|
632
|
+
|Name | Type | Description | Notes|
|
|
633
|
+
|------------- | ------------- | ------------- | -------------|
|
|
634
|
+
| **xCaraerSubdomain** | [**string**] | | defaults to undefined|
|
|
635
|
+
| **xCaraerEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
636
|
+
| **xCaraerPrimaryEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
### Return type
|
|
640
|
+
|
|
641
|
+
**PaginationResponse**
|
|
642
|
+
|
|
643
|
+
### Authorization
|
|
644
|
+
|
|
645
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
646
|
+
|
|
647
|
+
### HTTP request headers
|
|
648
|
+
|
|
649
|
+
- **Content-Type**: Not defined
|
|
650
|
+
- **Accept**: application/json
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
### HTTP response details
|
|
654
|
+
| Status code | Description | Response headers |
|
|
655
|
+
|-------------|-------------|------------------|
|
|
656
|
+
|**200** | Slugs retrieved successfully | - |
|
|
657
|
+
|**500** | Internal server error | - |
|
|
658
|
+
|
|
659
|
+
[[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)
|
|
660
|
+
|
|
661
|
+
# **getCompanySettings**
|
|
662
|
+
> SimplePublicCompanyDTO getCompanySettings()
|
|
663
|
+
|
|
664
|
+
Retrieves the public company configuration for the given subdomain. Returns a ShowResponse containing PublicCompanyDTO details.
|
|
665
|
+
|
|
666
|
+
### Example
|
|
667
|
+
|
|
668
|
+
```typescript
|
|
669
|
+
import {
|
|
670
|
+
WebpagesApi,
|
|
671
|
+
Configuration
|
|
672
|
+
} from '@caraer/client';
|
|
673
|
+
|
|
674
|
+
const configuration = new Configuration();
|
|
675
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
676
|
+
|
|
677
|
+
let xCaraerSubdomain: string; // (default to undefined)
|
|
678
|
+
let xCaraerEnvironment: string; // (optional) (default to 'production')
|
|
679
|
+
let xCaraerPrimaryEnvironment: string; // (optional) (default to 'production')
|
|
680
|
+
|
|
681
|
+
const { status, data } = await apiInstance.getCompanySettings(
|
|
682
|
+
xCaraerSubdomain,
|
|
683
|
+
xCaraerEnvironment,
|
|
684
|
+
xCaraerPrimaryEnvironment
|
|
685
|
+
);
|
|
686
|
+
```
|
|
687
|
+
|
|
688
|
+
### Parameters
|
|
689
|
+
|
|
690
|
+
|Name | Type | Description | Notes|
|
|
691
|
+
|------------- | ------------- | ------------- | -------------|
|
|
692
|
+
| **xCaraerSubdomain** | [**string**] | | defaults to undefined|
|
|
693
|
+
| **xCaraerEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
694
|
+
| **xCaraerPrimaryEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
### Return type
|
|
698
|
+
|
|
699
|
+
**SimplePublicCompanyDTO**
|
|
700
|
+
|
|
701
|
+
### Authorization
|
|
702
|
+
|
|
703
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
704
|
+
|
|
705
|
+
### HTTP request headers
|
|
706
|
+
|
|
707
|
+
- **Content-Type**: Not defined
|
|
708
|
+
- **Accept**: application/json
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
### HTTP response details
|
|
712
|
+
| Status code | Description | Response headers |
|
|
713
|
+
|-------------|-------------|------------------|
|
|
714
|
+
|**200** | Company settings retrieved successfully | - |
|
|
715
|
+
|**500** | Internal server error | - |
|
|
716
|
+
|
|
717
|
+
[[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)
|
|
718
|
+
|
|
719
|
+
# **getEnvironments**
|
|
720
|
+
> ShowResponse getEnvironments()
|
|
721
|
+
|
|
722
|
+
Retrieves a list of all environments.
|
|
723
|
+
|
|
724
|
+
### Example
|
|
725
|
+
|
|
726
|
+
```typescript
|
|
727
|
+
import {
|
|
728
|
+
WebpagesApi,
|
|
729
|
+
Configuration
|
|
730
|
+
} from '@caraer/client';
|
|
731
|
+
|
|
732
|
+
const configuration = new Configuration();
|
|
733
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
734
|
+
|
|
735
|
+
const { status, data } = await apiInstance.getEnvironments();
|
|
736
|
+
```
|
|
737
|
+
|
|
738
|
+
### Parameters
|
|
739
|
+
This endpoint does not have any parameters.
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
### Return type
|
|
743
|
+
|
|
744
|
+
**ShowResponse**
|
|
745
|
+
|
|
746
|
+
### Authorization
|
|
747
|
+
|
|
748
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
749
|
+
|
|
750
|
+
### HTTP request headers
|
|
751
|
+
|
|
752
|
+
- **Content-Type**: Not defined
|
|
753
|
+
- **Accept**: application/json
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
### HTTP response details
|
|
757
|
+
| Status code | Description | Response headers |
|
|
758
|
+
|-------------|-------------|------------------|
|
|
759
|
+
|**200** | Environments retrieved successfully | - |
|
|
760
|
+
|**500** | Internal server error | - |
|
|
761
|
+
|
|
762
|
+
[[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)
|
|
763
|
+
|
|
764
|
+
# **getMenus**
|
|
765
|
+
> PaginationResponse getMenus()
|
|
766
|
+
|
|
767
|
+
Retrieves a list of web menus for the public site. Returns a PaginationResponse containing WebMenuDTO objects.
|
|
768
|
+
|
|
769
|
+
### Example
|
|
770
|
+
|
|
771
|
+
```typescript
|
|
772
|
+
import {
|
|
773
|
+
WebpagesApi,
|
|
774
|
+
Configuration
|
|
775
|
+
} from '@caraer/client';
|
|
776
|
+
|
|
777
|
+
const configuration = new Configuration();
|
|
778
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
779
|
+
|
|
780
|
+
let xCaraerSubdomain: string; // (default to undefined)
|
|
781
|
+
let xCaraerEnvironment: string; // (optional) (default to 'production')
|
|
782
|
+
let xCaraerPrimaryEnvironment: string; // (optional) (default to 'production')
|
|
783
|
+
|
|
784
|
+
const { status, data } = await apiInstance.getMenus(
|
|
785
|
+
xCaraerSubdomain,
|
|
786
|
+
xCaraerEnvironment,
|
|
787
|
+
xCaraerPrimaryEnvironment
|
|
788
|
+
);
|
|
789
|
+
```
|
|
790
|
+
|
|
791
|
+
### Parameters
|
|
792
|
+
|
|
793
|
+
|Name | Type | Description | Notes|
|
|
794
|
+
|------------- | ------------- | ------------- | -------------|
|
|
795
|
+
| **xCaraerSubdomain** | [**string**] | | defaults to undefined|
|
|
796
|
+
| **xCaraerEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
797
|
+
| **xCaraerPrimaryEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
### Return type
|
|
801
|
+
|
|
802
|
+
**PaginationResponse**
|
|
803
|
+
|
|
804
|
+
### Authorization
|
|
805
|
+
|
|
806
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
807
|
+
|
|
808
|
+
### HTTP request headers
|
|
809
|
+
|
|
810
|
+
- **Content-Type**: Not defined
|
|
811
|
+
- **Accept**: application/json
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
### HTTP response details
|
|
815
|
+
| Status code | Description | Response headers |
|
|
816
|
+
|-------------|-------------|------------------|
|
|
817
|
+
|**200** | Menus retrieved successfully | - |
|
|
818
|
+
|**500** | Internal server error | - |
|
|
819
|
+
|
|
820
|
+
[[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)
|
|
821
|
+
|
|
822
|
+
# **getPublicCustomFooterModule**
|
|
823
|
+
> ShowResponse getPublicCustomFooterModule()
|
|
824
|
+
|
|
825
|
+
Returns the PageContent tree for the module configured as custom footer when enabled. Requires X-Caraer-Subdomain; only the UUID configured in website settings is accessible.
|
|
826
|
+
|
|
827
|
+
### Example
|
|
828
|
+
|
|
829
|
+
```typescript
|
|
830
|
+
import {
|
|
831
|
+
WebpagesApi,
|
|
832
|
+
Configuration
|
|
833
|
+
} from '@caraer/client';
|
|
834
|
+
|
|
835
|
+
const configuration = new Configuration();
|
|
836
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
837
|
+
|
|
838
|
+
let xCaraerSubdomain: string; // (default to undefined)
|
|
839
|
+
let moduleUuid: string; // (default to undefined)
|
|
840
|
+
|
|
841
|
+
const { status, data } = await apiInstance.getPublicCustomFooterModule(
|
|
842
|
+
xCaraerSubdomain,
|
|
843
|
+
moduleUuid
|
|
844
|
+
);
|
|
845
|
+
```
|
|
846
|
+
|
|
847
|
+
### Parameters
|
|
848
|
+
|
|
849
|
+
|Name | Type | Description | Notes|
|
|
850
|
+
|------------- | ------------- | ------------- | -------------|
|
|
851
|
+
| **xCaraerSubdomain** | [**string**] | | defaults to undefined|
|
|
852
|
+
| **moduleUuid** | [**string**] | | defaults to undefined|
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
### Return type
|
|
856
|
+
|
|
857
|
+
**ShowResponse**
|
|
858
|
+
|
|
859
|
+
### Authorization
|
|
860
|
+
|
|
861
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
862
|
+
|
|
863
|
+
### HTTP request headers
|
|
864
|
+
|
|
865
|
+
- **Content-Type**: Not defined
|
|
866
|
+
- **Accept**: application/json
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
### HTTP response details
|
|
870
|
+
| Status code | Description | Response headers |
|
|
871
|
+
|-------------|-------------|------------------|
|
|
872
|
+
|**200** | Module retrieved successfully | - |
|
|
873
|
+
|**404** | Module not found or not exposed | - |
|
|
874
|
+
|
|
875
|
+
[[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)
|
|
876
|
+
|
|
877
|
+
# **getPublicPreviews**
|
|
878
|
+
> PaginationResponsePreviewDTO getPublicPreviews()
|
|
879
|
+
|
|
880
|
+
Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects.
|
|
881
|
+
|
|
882
|
+
### Example
|
|
883
|
+
|
|
884
|
+
```typescript
|
|
885
|
+
import {
|
|
886
|
+
WebpagesApi,
|
|
887
|
+
Configuration
|
|
888
|
+
} from '@caraer/client';
|
|
889
|
+
|
|
890
|
+
const configuration = new Configuration();
|
|
891
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
892
|
+
|
|
893
|
+
let xCaraerSubdomain: string; // (default to undefined)
|
|
894
|
+
let pageUuid: string; // (default to undefined)
|
|
895
|
+
let componentUuid: string; // (default to undefined)
|
|
896
|
+
let layout: string; // (default to undefined)
|
|
897
|
+
let xCaraerEnvironment: string; // (optional) (default to 'production')
|
|
898
|
+
let xCaraerPrimaryEnvironment: string; // (optional) (default to 'production')
|
|
899
|
+
let authorization: string; // (optional) (default to undefined)
|
|
900
|
+
let xCaraerWebpageAccess: string; // (optional) (default to undefined)
|
|
901
|
+
let access: string; // (optional) (default to undefined)
|
|
902
|
+
let token: string; // (optional) (default to undefined)
|
|
903
|
+
|
|
904
|
+
const { status, data } = await apiInstance.getPublicPreviews(
|
|
905
|
+
xCaraerSubdomain,
|
|
906
|
+
pageUuid,
|
|
907
|
+
componentUuid,
|
|
908
|
+
layout,
|
|
909
|
+
xCaraerEnvironment,
|
|
910
|
+
xCaraerPrimaryEnvironment,
|
|
911
|
+
authorization,
|
|
912
|
+
xCaraerWebpageAccess,
|
|
913
|
+
access,
|
|
914
|
+
token
|
|
915
|
+
);
|
|
916
|
+
```
|
|
917
|
+
|
|
918
|
+
### Parameters
|
|
919
|
+
|
|
920
|
+
|Name | Type | Description | Notes|
|
|
921
|
+
|------------- | ------------- | ------------- | -------------|
|
|
922
|
+
| **xCaraerSubdomain** | [**string**] | | defaults to undefined|
|
|
923
|
+
| **pageUuid** | [**string**] | | defaults to undefined|
|
|
924
|
+
| **componentUuid** | [**string**] | | defaults to undefined|
|
|
925
|
+
| **layout** | [**string**] | | defaults to undefined|
|
|
926
|
+
| **xCaraerEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
927
|
+
| **xCaraerPrimaryEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
928
|
+
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
929
|
+
| **xCaraerWebpageAccess** | [**string**] | | (optional) defaults to undefined|
|
|
930
|
+
| **access** | [**string**] | | (optional) defaults to undefined|
|
|
931
|
+
| **token** | [**string**] | | (optional) defaults to undefined|
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
### Return type
|
|
935
|
+
|
|
936
|
+
**PaginationResponsePreviewDTO**
|
|
937
|
+
|
|
938
|
+
### Authorization
|
|
939
|
+
|
|
940
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
941
|
+
|
|
942
|
+
### HTTP request headers
|
|
943
|
+
|
|
944
|
+
- **Content-Type**: application/json
|
|
945
|
+
- **Accept**: application/json
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
### HTTP response details
|
|
949
|
+
| Status code | Description | Response headers |
|
|
950
|
+
|-------------|-------------|------------------|
|
|
951
|
+
|**200** | OK | - |
|
|
952
|
+
|
|
953
|
+
[[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)
|
|
954
|
+
|
|
955
|
+
# **getPublicWebpage**
|
|
956
|
+
> WebpageDTO getPublicWebpage()
|
|
957
|
+
|
|
958
|
+
Retrieves a published webpage based on the provided root slug and slug. Returns a ShowResponse containing WebpageDTO data.
|
|
959
|
+
|
|
960
|
+
### Example
|
|
961
|
+
|
|
962
|
+
```typescript
|
|
963
|
+
import {
|
|
964
|
+
WebpagesApi,
|
|
965
|
+
Configuration
|
|
966
|
+
} from '@caraer/client';
|
|
967
|
+
|
|
968
|
+
const configuration = new Configuration();
|
|
969
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
970
|
+
|
|
971
|
+
let xCaraerSubdomain: string; // (default to undefined)
|
|
972
|
+
let rootSlug: string; // (default to undefined)
|
|
973
|
+
let slug: string; // (default to undefined)
|
|
974
|
+
let xCaraerEnvironment: string; // (optional) (default to 'production')
|
|
975
|
+
let xCaraerPrimaryEnvironment: string; // (optional) (default to 'production')
|
|
976
|
+
let authorization: string; // (optional) (default to undefined)
|
|
977
|
+
let xCaraerWebpageAccess: string; // (optional) (default to undefined)
|
|
978
|
+
let access: string; // (optional) (default to undefined)
|
|
979
|
+
let token: string; // (optional) (default to undefined)
|
|
980
|
+
|
|
981
|
+
const { status, data } = await apiInstance.getPublicWebpage(
|
|
982
|
+
xCaraerSubdomain,
|
|
983
|
+
rootSlug,
|
|
984
|
+
slug,
|
|
985
|
+
xCaraerEnvironment,
|
|
986
|
+
xCaraerPrimaryEnvironment,
|
|
987
|
+
authorization,
|
|
988
|
+
xCaraerWebpageAccess,
|
|
989
|
+
access,
|
|
990
|
+
token
|
|
991
|
+
);
|
|
992
|
+
```
|
|
993
|
+
|
|
994
|
+
### Parameters
|
|
995
|
+
|
|
996
|
+
|Name | Type | Description | Notes|
|
|
997
|
+
|------------- | ------------- | ------------- | -------------|
|
|
998
|
+
| **xCaraerSubdomain** | [**string**] | | defaults to undefined|
|
|
999
|
+
| **rootSlug** | [**string**] | | defaults to undefined|
|
|
1000
|
+
| **slug** | [**string**] | | defaults to undefined|
|
|
1001
|
+
| **xCaraerEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
1002
|
+
| **xCaraerPrimaryEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
1003
|
+
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
1004
|
+
| **xCaraerWebpageAccess** | [**string**] | | (optional) defaults to undefined|
|
|
1005
|
+
| **access** | [**string**] | | (optional) defaults to undefined|
|
|
1006
|
+
| **token** | [**string**] | | (optional) defaults to undefined|
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
### Return type
|
|
1010
|
+
|
|
1011
|
+
**WebpageDTO**
|
|
1012
|
+
|
|
1013
|
+
### Authorization
|
|
1014
|
+
|
|
1015
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1016
|
+
|
|
1017
|
+
### HTTP request headers
|
|
1018
|
+
|
|
1019
|
+
- **Content-Type**: Not defined
|
|
1020
|
+
- **Accept**: application/json
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
### HTTP response details
|
|
1024
|
+
| Status code | Description | Response headers |
|
|
1025
|
+
|-------------|-------------|------------------|
|
|
1026
|
+
|**200** | Webpage retrieved successfully | - |
|
|
1027
|
+
|**404** | Webpage not found | - |
|
|
1028
|
+
|
|
1029
|
+
[[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)
|
|
1030
|
+
|
|
1031
|
+
# **getPublicWebpageByUuid**
|
|
1032
|
+
> WebpageDTO getPublicWebpageByUuid()
|
|
1033
|
+
|
|
1034
|
+
Retrieves a published webpage based on its UUID. Returns a ShowResponse containing WebpageDTO data.
|
|
1035
|
+
|
|
1036
|
+
### Example
|
|
1037
|
+
|
|
1038
|
+
```typescript
|
|
1039
|
+
import {
|
|
1040
|
+
WebpagesApi,
|
|
1041
|
+
Configuration
|
|
1042
|
+
} from '@caraer/client';
|
|
1043
|
+
|
|
1044
|
+
const configuration = new Configuration();
|
|
1045
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1046
|
+
|
|
1047
|
+
let xCaraerSubdomain: string; // (default to undefined)
|
|
1048
|
+
let uuid: string; // (default to undefined)
|
|
1049
|
+
let xCaraerEnvironment: string; // (optional) (default to 'production')
|
|
1050
|
+
let xCaraerPrimaryEnvironment: string; // (optional) (default to 'production')
|
|
1051
|
+
let authorization: string; // (optional) (default to undefined)
|
|
1052
|
+
let xCaraerWebpageAccess: string; // (optional) (default to undefined)
|
|
1053
|
+
let access: string; // (optional) (default to undefined)
|
|
1054
|
+
let token: string; // (optional) (default to undefined)
|
|
1055
|
+
|
|
1056
|
+
const { status, data } = await apiInstance.getPublicWebpageByUuid(
|
|
1057
|
+
xCaraerSubdomain,
|
|
1058
|
+
uuid,
|
|
1059
|
+
xCaraerEnvironment,
|
|
1060
|
+
xCaraerPrimaryEnvironment,
|
|
1061
|
+
authorization,
|
|
1062
|
+
xCaraerWebpageAccess,
|
|
1063
|
+
access,
|
|
1064
|
+
token
|
|
1065
|
+
);
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
### Parameters
|
|
1069
|
+
|
|
1070
|
+
|Name | Type | Description | Notes|
|
|
1071
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1072
|
+
| **xCaraerSubdomain** | [**string**] | | defaults to undefined|
|
|
1073
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1074
|
+
| **xCaraerEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
1075
|
+
| **xCaraerPrimaryEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
1076
|
+
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
1077
|
+
| **xCaraerWebpageAccess** | [**string**] | | (optional) defaults to undefined|
|
|
1078
|
+
| **access** | [**string**] | | (optional) defaults to undefined|
|
|
1079
|
+
| **token** | [**string**] | | (optional) defaults to undefined|
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
### Return type
|
|
1083
|
+
|
|
1084
|
+
**WebpageDTO**
|
|
1085
|
+
|
|
1086
|
+
### Authorization
|
|
1087
|
+
|
|
1088
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1089
|
+
|
|
1090
|
+
### HTTP request headers
|
|
1091
|
+
|
|
1092
|
+
- **Content-Type**: Not defined
|
|
1093
|
+
- **Accept**: application/json
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
### HTTP response details
|
|
1097
|
+
| Status code | Description | Response headers |
|
|
1098
|
+
|-------------|-------------|------------------|
|
|
1099
|
+
|**200** | Webpage retrieved successfully | - |
|
|
1100
|
+
|**404** | Webpage not found | - |
|
|
1101
|
+
|
|
1102
|
+
[[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)
|
|
1103
|
+
|
|
1104
|
+
# **getPublicWebpageProtection**
|
|
1105
|
+
> ShowResponseWebpageProtectionInfoDTO getPublicWebpageProtection()
|
|
1106
|
+
|
|
1107
|
+
Returns protection requirements without page content.
|
|
1108
|
+
|
|
1109
|
+
### Example
|
|
1110
|
+
|
|
1111
|
+
```typescript
|
|
1112
|
+
import {
|
|
1113
|
+
WebpagesApi,
|
|
1114
|
+
Configuration
|
|
1115
|
+
} from '@caraer/client';
|
|
1116
|
+
|
|
1117
|
+
const configuration = new Configuration();
|
|
1118
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1119
|
+
|
|
1120
|
+
let xCaraerSubdomain: string; // (default to undefined)
|
|
1121
|
+
let uuid: string; // (default to undefined)
|
|
1122
|
+
let xCaraerEnvironment: string; // (optional) (default to 'production')
|
|
1123
|
+
let xCaraerPrimaryEnvironment: string; // (optional) (default to 'production')
|
|
1124
|
+
|
|
1125
|
+
const { status, data } = await apiInstance.getPublicWebpageProtection(
|
|
1126
|
+
xCaraerSubdomain,
|
|
1127
|
+
uuid,
|
|
1128
|
+
xCaraerEnvironment,
|
|
1129
|
+
xCaraerPrimaryEnvironment
|
|
1130
|
+
);
|
|
1131
|
+
```
|
|
1132
|
+
|
|
1133
|
+
### Parameters
|
|
1134
|
+
|
|
1135
|
+
|Name | Type | Description | Notes|
|
|
1136
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1137
|
+
| **xCaraerSubdomain** | [**string**] | | defaults to undefined|
|
|
1138
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1139
|
+
| **xCaraerEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
1140
|
+
| **xCaraerPrimaryEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
### Return type
|
|
1144
|
+
|
|
1145
|
+
**ShowResponseWebpageProtectionInfoDTO**
|
|
1146
|
+
|
|
1147
|
+
### Authorization
|
|
1148
|
+
|
|
1149
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1150
|
+
|
|
1151
|
+
### HTTP request headers
|
|
1152
|
+
|
|
1153
|
+
- **Content-Type**: Not defined
|
|
1154
|
+
- **Accept**: application/json
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
### HTTP response details
|
|
1158
|
+
| Status code | Description | Response headers |
|
|
1159
|
+
|-------------|-------------|------------------|
|
|
1160
|
+
|**200** | OK | - |
|
|
1161
|
+
|
|
1162
|
+
[[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)
|
|
1163
|
+
|
|
1164
|
+
# **getTemplateWebpage**
|
|
1165
|
+
> ShowResponse getTemplateWebpage()
|
|
1166
|
+
|
|
1167
|
+
Retrieves the template webpage for the given object name by querying the TemplateWebpage associated with it. Returns a ShowResponse containing TemplateWebpageDTO data.
|
|
1168
|
+
|
|
1169
|
+
### Example
|
|
1170
|
+
|
|
1171
|
+
```typescript
|
|
1172
|
+
import {
|
|
1173
|
+
WebpagesApi,
|
|
1174
|
+
Configuration
|
|
1175
|
+
} from '@caraer/client';
|
|
1176
|
+
|
|
1177
|
+
const configuration = new Configuration();
|
|
1178
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1179
|
+
|
|
1180
|
+
let objectName: string; // (default to undefined)
|
|
1181
|
+
let environment: string; // (default to undefined)
|
|
1182
|
+
|
|
1183
|
+
const { status, data } = await apiInstance.getTemplateWebpage(
|
|
1184
|
+
objectName,
|
|
1185
|
+
environment
|
|
1186
|
+
);
|
|
1187
|
+
```
|
|
1188
|
+
|
|
1189
|
+
### Parameters
|
|
1190
|
+
|
|
1191
|
+
|Name | Type | Description | Notes|
|
|
1192
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1193
|
+
| **objectName** | [**string**] | | defaults to undefined|
|
|
1194
|
+
| **environment** | [**string**] | | defaults to undefined|
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
### Return type
|
|
1198
|
+
|
|
1199
|
+
**ShowResponse**
|
|
1200
|
+
|
|
1201
|
+
### Authorization
|
|
1202
|
+
|
|
1203
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1204
|
+
|
|
1205
|
+
### HTTP request headers
|
|
1206
|
+
|
|
1207
|
+
- **Content-Type**: Not defined
|
|
1208
|
+
- **Accept**: application/json
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
### HTTP response details
|
|
1212
|
+
| Status code | Description | Response headers |
|
|
1213
|
+
|-------------|-------------|------------------|
|
|
1214
|
+
|**200** | Template webpage retrieved successfully | - |
|
|
1215
|
+
|**404** | Template webpage not found | - |
|
|
1216
|
+
|
|
1217
|
+
[[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)
|
|
1218
|
+
|
|
1219
|
+
# **getTemplateWebpageEditingStatus**
|
|
1220
|
+
> WebpageEditingStatusDTO getTemplateWebpageEditingStatus()
|
|
1221
|
+
|
|
1222
|
+
Returns whether another user is actively editing the template webpage for the given object and environment.
|
|
1223
|
+
|
|
1224
|
+
### Example
|
|
1225
|
+
|
|
1226
|
+
```typescript
|
|
1227
|
+
import {
|
|
1228
|
+
WebpagesApi,
|
|
1229
|
+
Configuration
|
|
1230
|
+
} from '@caraer/client';
|
|
1231
|
+
|
|
1232
|
+
const configuration = new Configuration();
|
|
1233
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1234
|
+
|
|
1235
|
+
let objectName: string; // (default to undefined)
|
|
1236
|
+
let environment: string; // (default to undefined)
|
|
1237
|
+
|
|
1238
|
+
const { status, data } = await apiInstance.getTemplateWebpageEditingStatus(
|
|
1239
|
+
objectName,
|
|
1240
|
+
environment
|
|
1241
|
+
);
|
|
1242
|
+
```
|
|
1243
|
+
|
|
1244
|
+
### Parameters
|
|
1245
|
+
|
|
1246
|
+
|Name | Type | Description | Notes|
|
|
1247
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1248
|
+
| **objectName** | [**string**] | | defaults to undefined|
|
|
1249
|
+
| **environment** | [**string**] | | defaults to undefined|
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
### Return type
|
|
1253
|
+
|
|
1254
|
+
**WebpageEditingStatusDTO**
|
|
1255
|
+
|
|
1256
|
+
### Authorization
|
|
1257
|
+
|
|
1258
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1259
|
+
|
|
1260
|
+
### HTTP request headers
|
|
1261
|
+
|
|
1262
|
+
- **Content-Type**: Not defined
|
|
1263
|
+
- **Accept**: application/json
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
### HTTP response details
|
|
1267
|
+
| Status code | Description | Response headers |
|
|
1268
|
+
|-------------|-------------|------------------|
|
|
1269
|
+
|**200** | Editing status retrieved successfully | - |
|
|
1270
|
+
|**404** | Template webpage not found | - |
|
|
1271
|
+
|
|
1272
|
+
[[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)
|
|
1273
|
+
|
|
1274
|
+
# **getWebpage**
|
|
1275
|
+
> WebpageDTO getWebpage()
|
|
1276
|
+
|
|
1277
|
+
Retrieves detailed information for a webpage identified by its UUID. Optionally, the webpage title is \'smartened\' if the smartened parameter is true.
|
|
1278
|
+
|
|
1279
|
+
### Example
|
|
1280
|
+
|
|
1281
|
+
```typescript
|
|
1282
|
+
import {
|
|
1283
|
+
WebpagesApi,
|
|
1284
|
+
Configuration
|
|
1285
|
+
} from '@caraer/client';
|
|
1286
|
+
|
|
1287
|
+
const configuration = new Configuration();
|
|
1288
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1289
|
+
|
|
1290
|
+
let uuid: string; // (default to undefined)
|
|
1291
|
+
let smartened: boolean; // (optional) (default to false)
|
|
1292
|
+
let environment: string; // (optional) (default to 'staging')
|
|
1293
|
+
|
|
1294
|
+
const { status, data } = await apiInstance.getWebpage(
|
|
1295
|
+
uuid,
|
|
1296
|
+
smartened,
|
|
1297
|
+
environment
|
|
1298
|
+
);
|
|
1299
|
+
```
|
|
1300
|
+
|
|
1301
|
+
### Parameters
|
|
1302
|
+
|
|
1303
|
+
|Name | Type | Description | Notes|
|
|
1304
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1305
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1306
|
+
| **smartened** | [**boolean**] | | (optional) defaults to false|
|
|
1307
|
+
| **environment** | [**string**] | | (optional) defaults to 'staging'|
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
### Return type
|
|
1311
|
+
|
|
1312
|
+
**WebpageDTO**
|
|
1313
|
+
|
|
1314
|
+
### Authorization
|
|
1315
|
+
|
|
1316
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1317
|
+
|
|
1318
|
+
### HTTP request headers
|
|
1319
|
+
|
|
1320
|
+
- **Content-Type**: Not defined
|
|
1321
|
+
- **Accept**: application/json
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
### HTTP response details
|
|
1325
|
+
| Status code | Description | Response headers |
|
|
1326
|
+
|-------------|-------------|------------------|
|
|
1327
|
+
|**200** | Webpage retrieved successfully | - |
|
|
1328
|
+
|**403** | Missing read access on one or more webpage fields for this environment | - |
|
|
1329
|
+
|**404** | Webpage not found | - |
|
|
1330
|
+
|
|
1331
|
+
[[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)
|
|
1332
|
+
|
|
1333
|
+
# **getWebpageEditingStatus**
|
|
1334
|
+
> WebpageEditingStatusDTO getWebpageEditingStatus()
|
|
1335
|
+
|
|
1336
|
+
Returns whether another user is actively editing this webpage (via an open builder session or collaborative WebSocket connection).
|
|
1337
|
+
|
|
1338
|
+
### Example
|
|
1339
|
+
|
|
1340
|
+
```typescript
|
|
1341
|
+
import {
|
|
1342
|
+
WebpagesApi,
|
|
1343
|
+
Configuration
|
|
1344
|
+
} from '@caraer/client';
|
|
1345
|
+
|
|
1346
|
+
const configuration = new Configuration();
|
|
1347
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1348
|
+
|
|
1349
|
+
let uuid: string; // (default to undefined)
|
|
1350
|
+
let environment: string; // (optional) (default to 'staging')
|
|
1351
|
+
|
|
1352
|
+
const { status, data } = await apiInstance.getWebpageEditingStatus(
|
|
1353
|
+
uuid,
|
|
1354
|
+
environment
|
|
1355
|
+
);
|
|
1356
|
+
```
|
|
1357
|
+
|
|
1358
|
+
### Parameters
|
|
1359
|
+
|
|
1360
|
+
|Name | Type | Description | Notes|
|
|
1361
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1362
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1363
|
+
| **environment** | [**string**] | | (optional) defaults to 'staging'|
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
### Return type
|
|
1367
|
+
|
|
1368
|
+
**WebpageEditingStatusDTO**
|
|
1369
|
+
|
|
1370
|
+
### Authorization
|
|
1371
|
+
|
|
1372
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1373
|
+
|
|
1374
|
+
### HTTP request headers
|
|
1375
|
+
|
|
1376
|
+
- **Content-Type**: Not defined
|
|
1377
|
+
- **Accept**: application/json
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
### HTTP response details
|
|
1381
|
+
| Status code | Description | Response headers |
|
|
1382
|
+
|-------------|-------------|------------------|
|
|
1383
|
+
|**200** | Editing status retrieved successfully | - |
|
|
1384
|
+
|**403** | Missing read access on webpage fields for this environment | - |
|
|
1385
|
+
|**404** | Webpage not found | - |
|
|
1386
|
+
|
|
1387
|
+
[[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)
|
|
1388
|
+
|
|
1389
|
+
# **getWebpagePickerPages**
|
|
1390
|
+
> ShowResponse getWebpagePickerPages()
|
|
1391
|
+
|
|
1392
|
+
Returns uuid and title for all webpage records across objects with a Page trait. Supports optional filters for published pages and excluding template-related pages.
|
|
1393
|
+
|
|
1394
|
+
### Example
|
|
1395
|
+
|
|
1396
|
+
```typescript
|
|
1397
|
+
import {
|
|
1398
|
+
WebpagesApi,
|
|
1399
|
+
Configuration
|
|
1400
|
+
} from '@caraer/client';
|
|
1401
|
+
|
|
1402
|
+
const configuration = new Configuration();
|
|
1403
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1404
|
+
|
|
1405
|
+
let environment: string; //Environment to resolve webpage properties from (e.g. \'production\' or \'staging\'). (optional) (default to 'production')
|
|
1406
|
+
let publishedOnly: boolean; //When true, only returns pages that are published in the given environment. (optional) (default to false)
|
|
1407
|
+
let excludeTemplateRelated: boolean; //When true, excludes pages whose options mark them as related to a template. (optional) (default to false)
|
|
1408
|
+
|
|
1409
|
+
const { status, data } = await apiInstance.getWebpagePickerPages(
|
|
1410
|
+
environment,
|
|
1411
|
+
publishedOnly,
|
|
1412
|
+
excludeTemplateRelated
|
|
1413
|
+
);
|
|
1414
|
+
```
|
|
1415
|
+
|
|
1416
|
+
### Parameters
|
|
1417
|
+
|
|
1418
|
+
|Name | Type | Description | Notes|
|
|
1419
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1420
|
+
| **environment** | [**string**] | Environment to resolve webpage properties from (e.g. \'production\' or \'staging\'). | (optional) defaults to 'production'|
|
|
1421
|
+
| **publishedOnly** | [**boolean**] | When true, only returns pages that are published in the given environment. | (optional) defaults to false|
|
|
1422
|
+
| **excludeTemplateRelated** | [**boolean**] | When true, excludes pages whose options mark them as related to a template. | (optional) defaults to false|
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
### Return type
|
|
1426
|
+
|
|
1427
|
+
**ShowResponse**
|
|
1428
|
+
|
|
1429
|
+
### Authorization
|
|
1430
|
+
|
|
1431
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1432
|
+
|
|
1433
|
+
### HTTP request headers
|
|
1434
|
+
|
|
1435
|
+
- **Content-Type**: Not defined
|
|
1436
|
+
- **Accept**: application/json
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
### HTTP response details
|
|
1440
|
+
| Status code | Description | Response headers |
|
|
1441
|
+
|-------------|-------------|------------------|
|
|
1442
|
+
|**200** | Webpages retrieved successfully | - |
|
|
1443
|
+
|
|
1444
|
+
[[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)
|
|
1445
|
+
|
|
1446
|
+
# **listProtectionGrants**
|
|
1447
|
+
> PaginationResponseWebpageAccessGrantDTO listProtectionGrants()
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
### Example
|
|
1451
|
+
|
|
1452
|
+
```typescript
|
|
1453
|
+
import {
|
|
1454
|
+
WebpagesApi,
|
|
1455
|
+
Configuration
|
|
1456
|
+
} from '@caraer/client';
|
|
1457
|
+
|
|
1458
|
+
const configuration = new Configuration();
|
|
1459
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1460
|
+
|
|
1461
|
+
let uuid: string; // (default to undefined)
|
|
1462
|
+
let environment: string; // (optional) (default to 'staging')
|
|
1463
|
+
|
|
1464
|
+
const { status, data } = await apiInstance.listProtectionGrants(
|
|
1465
|
+
uuid,
|
|
1466
|
+
environment
|
|
1467
|
+
);
|
|
1468
|
+
```
|
|
1469
|
+
|
|
1470
|
+
### Parameters
|
|
1471
|
+
|
|
1472
|
+
|Name | Type | Description | Notes|
|
|
1473
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1474
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1475
|
+
| **environment** | [**string**] | | (optional) defaults to 'staging'|
|
|
1476
|
+
|
|
1477
|
+
|
|
1478
|
+
### Return type
|
|
1479
|
+
|
|
1480
|
+
**PaginationResponseWebpageAccessGrantDTO**
|
|
1481
|
+
|
|
1482
|
+
### Authorization
|
|
1483
|
+
|
|
1484
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1485
|
+
|
|
1486
|
+
### HTTP request headers
|
|
1487
|
+
|
|
1488
|
+
- **Content-Type**: Not defined
|
|
1489
|
+
- **Accept**: application/json
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
### HTTP response details
|
|
1493
|
+
| Status code | Description | Response headers |
|
|
1494
|
+
|-------------|-------------|------------------|
|
|
1495
|
+
|**200** | OK | - |
|
|
1496
|
+
|
|
1497
|
+
[[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)
|
|
1498
|
+
|
|
1499
|
+
# **publishWebpage**
|
|
1500
|
+
> UpdateResponse publishWebpage()
|
|
1501
|
+
|
|
1502
|
+
Publishes a webpage by its UUID. Optionally, a publish_at timestamp (in seconds) may be provided. Returns an UpdateResponse containing the published webpage details.
|
|
1503
|
+
|
|
1504
|
+
### Example
|
|
1505
|
+
|
|
1506
|
+
```typescript
|
|
1507
|
+
import {
|
|
1508
|
+
WebpagesApi,
|
|
1509
|
+
Configuration
|
|
1510
|
+
} from '@caraer/client';
|
|
1511
|
+
|
|
1512
|
+
const configuration = new Configuration();
|
|
1513
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1514
|
+
|
|
1515
|
+
let uuid: string; // (default to undefined)
|
|
1516
|
+
let publishAt: string; // (optional) (default to undefined)
|
|
1517
|
+
let environment: string; // (optional) (default to 'production')
|
|
1518
|
+
|
|
1519
|
+
const { status, data } = await apiInstance.publishWebpage(
|
|
1520
|
+
uuid,
|
|
1521
|
+
publishAt,
|
|
1522
|
+
environment
|
|
1523
|
+
);
|
|
1524
|
+
```
|
|
1525
|
+
|
|
1526
|
+
### Parameters
|
|
1527
|
+
|
|
1528
|
+
|Name | Type | Description | Notes|
|
|
1529
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1530
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1531
|
+
| **publishAt** | [**string**] | | (optional) defaults to undefined|
|
|
1532
|
+
| **environment** | [**string**] | | (optional) defaults to 'production'|
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
### Return type
|
|
1536
|
+
|
|
1537
|
+
**UpdateResponse**
|
|
1538
|
+
|
|
1539
|
+
### Authorization
|
|
1540
|
+
|
|
1541
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1542
|
+
|
|
1543
|
+
### HTTP request headers
|
|
1544
|
+
|
|
1545
|
+
- **Content-Type**: Not defined
|
|
1546
|
+
- **Accept**: application/json
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
### HTTP response details
|
|
1550
|
+
| Status code | Description | Response headers |
|
|
1551
|
+
|-------------|-------------|------------------|
|
|
1552
|
+
|**200** | Webpage published successfully | - |
|
|
1553
|
+
|**400** | Webpage failed publish validation | - |
|
|
1554
|
+
|**403** | Missing read or write access on webpage property fields for this environment | - |
|
|
1555
|
+
|**404** | Webpage not found | - |
|
|
1556
|
+
|
|
1557
|
+
[[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)
|
|
1558
|
+
|
|
1559
|
+
# **releaseTemplateWebpageEditingSession**
|
|
1560
|
+
> ShowResponse releaseTemplateWebpageEditingSession()
|
|
1561
|
+
|
|
1562
|
+
Releases the editing session held by the current user for this template webpage.
|
|
1563
|
+
|
|
1564
|
+
### Example
|
|
1565
|
+
|
|
1566
|
+
```typescript
|
|
1567
|
+
import {
|
|
1568
|
+
WebpagesApi,
|
|
1569
|
+
Configuration
|
|
1570
|
+
} from '@caraer/client';
|
|
1571
|
+
|
|
1572
|
+
const configuration = new Configuration();
|
|
1573
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1574
|
+
|
|
1575
|
+
let objectName: string; // (default to undefined)
|
|
1576
|
+
let environment: string; // (default to undefined)
|
|
1577
|
+
|
|
1578
|
+
const { status, data } = await apiInstance.releaseTemplateWebpageEditingSession(
|
|
1579
|
+
objectName,
|
|
1580
|
+
environment
|
|
1581
|
+
);
|
|
1582
|
+
```
|
|
1583
|
+
|
|
1584
|
+
### Parameters
|
|
1585
|
+
|
|
1586
|
+
|Name | Type | Description | Notes|
|
|
1587
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1588
|
+
| **objectName** | [**string**] | | defaults to undefined|
|
|
1589
|
+
| **environment** | [**string**] | | defaults to undefined|
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
### Return type
|
|
1593
|
+
|
|
1594
|
+
**ShowResponse**
|
|
1595
|
+
|
|
1596
|
+
### Authorization
|
|
1597
|
+
|
|
1598
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1599
|
+
|
|
1600
|
+
### HTTP request headers
|
|
1601
|
+
|
|
1602
|
+
- **Content-Type**: Not defined
|
|
1603
|
+
- **Accept**: application/json
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
### HTTP response details
|
|
1607
|
+
| Status code | Description | Response headers |
|
|
1608
|
+
|-------------|-------------|------------------|
|
|
1609
|
+
|**200** | Editing session released | - |
|
|
1610
|
+
|
|
1611
|
+
[[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)
|
|
1612
|
+
|
|
1613
|
+
# **releaseWebpageEditingSession**
|
|
1614
|
+
> ShowResponse releaseWebpageEditingSession()
|
|
1615
|
+
|
|
1616
|
+
Releases the editing session held by the current user for this webpage.
|
|
1617
|
+
|
|
1618
|
+
### Example
|
|
1619
|
+
|
|
1620
|
+
```typescript
|
|
1621
|
+
import {
|
|
1622
|
+
WebpagesApi,
|
|
1623
|
+
Configuration
|
|
1624
|
+
} from '@caraer/client';
|
|
1625
|
+
|
|
1626
|
+
const configuration = new Configuration();
|
|
1627
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1628
|
+
|
|
1629
|
+
let uuid: string; // (default to undefined)
|
|
1630
|
+
|
|
1631
|
+
const { status, data } = await apiInstance.releaseWebpageEditingSession(
|
|
1632
|
+
uuid
|
|
1633
|
+
);
|
|
1634
|
+
```
|
|
1635
|
+
|
|
1636
|
+
### Parameters
|
|
1637
|
+
|
|
1638
|
+
|Name | Type | Description | Notes|
|
|
1639
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1640
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
### Return type
|
|
1644
|
+
|
|
1645
|
+
**ShowResponse**
|
|
1646
|
+
|
|
1647
|
+
### Authorization
|
|
1648
|
+
|
|
1649
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1650
|
+
|
|
1651
|
+
### HTTP request headers
|
|
1652
|
+
|
|
1653
|
+
- **Content-Type**: Not defined
|
|
1654
|
+
- **Accept**: application/json
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
### HTTP response details
|
|
1658
|
+
| Status code | Description | Response headers |
|
|
1659
|
+
|-------------|-------------|------------------|
|
|
1660
|
+
|**200** | Editing session released | - |
|
|
1661
|
+
|**404** | Webpage not found | - |
|
|
1662
|
+
|
|
1663
|
+
[[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)
|
|
1664
|
+
|
|
1665
|
+
# **revokeProtectionGrant**
|
|
1666
|
+
> SuccessResponseString revokeProtectionGrant()
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
### Example
|
|
1670
|
+
|
|
1671
|
+
```typescript
|
|
1672
|
+
import {
|
|
1673
|
+
WebpagesApi,
|
|
1674
|
+
Configuration
|
|
1675
|
+
} from '@caraer/client';
|
|
1676
|
+
|
|
1677
|
+
const configuration = new Configuration();
|
|
1678
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1679
|
+
|
|
1680
|
+
let uuid: string; // (default to undefined)
|
|
1681
|
+
let grantUuid: string; // (default to undefined)
|
|
1682
|
+
let environment: string; // (optional) (default to 'staging')
|
|
1683
|
+
|
|
1684
|
+
const { status, data } = await apiInstance.revokeProtectionGrant(
|
|
1685
|
+
uuid,
|
|
1686
|
+
grantUuid,
|
|
1687
|
+
environment
|
|
1688
|
+
);
|
|
1689
|
+
```
|
|
1690
|
+
|
|
1691
|
+
### Parameters
|
|
1692
|
+
|
|
1693
|
+
|Name | Type | Description | Notes|
|
|
1694
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1695
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1696
|
+
| **grantUuid** | [**string**] | | defaults to undefined|
|
|
1697
|
+
| **environment** | [**string**] | | (optional) defaults to 'staging'|
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
### Return type
|
|
1701
|
+
|
|
1702
|
+
**SuccessResponseString**
|
|
1703
|
+
|
|
1704
|
+
### Authorization
|
|
1705
|
+
|
|
1706
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1707
|
+
|
|
1708
|
+
### HTTP request headers
|
|
1709
|
+
|
|
1710
|
+
- **Content-Type**: Not defined
|
|
1711
|
+
- **Accept**: application/json
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
### HTTP response details
|
|
1715
|
+
| Status code | Description | Response headers |
|
|
1716
|
+
|-------------|-------------|------------------|
|
|
1717
|
+
|**200** | OK | - |
|
|
1718
|
+
|
|
1719
|
+
[[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)
|
|
1720
|
+
|
|
1721
|
+
# **unlockPublicWebpage**
|
|
1722
|
+
> SuccessResponseString unlockPublicWebpage(webpageUnlockRequest)
|
|
1723
|
+
|
|
1724
|
+
Validates password and returns a short-lived access token.
|
|
1725
|
+
|
|
1726
|
+
### Example
|
|
1727
|
+
|
|
1728
|
+
```typescript
|
|
1729
|
+
import {
|
|
1730
|
+
WebpagesApi,
|
|
1731
|
+
Configuration,
|
|
1732
|
+
WebpageUnlockRequest
|
|
1733
|
+
} from '@caraer/client';
|
|
1734
|
+
|
|
1735
|
+
const configuration = new Configuration();
|
|
1736
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1737
|
+
|
|
1738
|
+
let xCaraerSubdomain: string; // (default to undefined)
|
|
1739
|
+
let uuid: string; // (default to undefined)
|
|
1740
|
+
let webpageUnlockRequest: WebpageUnlockRequest; //
|
|
1741
|
+
let xCaraerEnvironment: string; // (optional) (default to 'production')
|
|
1742
|
+
let xCaraerPrimaryEnvironment: string; // (optional) (default to 'production')
|
|
1743
|
+
|
|
1744
|
+
const { status, data } = await apiInstance.unlockPublicWebpage(
|
|
1745
|
+
xCaraerSubdomain,
|
|
1746
|
+
uuid,
|
|
1747
|
+
webpageUnlockRequest,
|
|
1748
|
+
xCaraerEnvironment,
|
|
1749
|
+
xCaraerPrimaryEnvironment
|
|
1750
|
+
);
|
|
1751
|
+
```
|
|
1752
|
+
|
|
1753
|
+
### Parameters
|
|
1754
|
+
|
|
1755
|
+
|Name | Type | Description | Notes|
|
|
1756
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1757
|
+
| **webpageUnlockRequest** | **WebpageUnlockRequest**| | |
|
|
1758
|
+
| **xCaraerSubdomain** | [**string**] | | defaults to undefined|
|
|
1759
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1760
|
+
| **xCaraerEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
1761
|
+
| **xCaraerPrimaryEnvironment** | [**string**] | | (optional) defaults to 'production'|
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
### Return type
|
|
1765
|
+
|
|
1766
|
+
**SuccessResponseString**
|
|
1767
|
+
|
|
1768
|
+
### Authorization
|
|
1769
|
+
|
|
1770
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1771
|
+
|
|
1772
|
+
### HTTP request headers
|
|
1773
|
+
|
|
1774
|
+
- **Content-Type**: application/json
|
|
1775
|
+
- **Accept**: application/json
|
|
1776
|
+
|
|
1777
|
+
|
|
1778
|
+
### HTTP response details
|
|
1779
|
+
| Status code | Description | Response headers |
|
|
1780
|
+
|-------------|-------------|------------------|
|
|
1781
|
+
|**200** | OK | - |
|
|
1782
|
+
|
|
1783
|
+
[[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)
|
|
1784
|
+
|
|
1785
|
+
# **unpublishWebpage**
|
|
1786
|
+
> UpdateResponse unpublishWebpage()
|
|
1787
|
+
|
|
1788
|
+
Unpublishes a webpage by its UUID. Optionally, an unpublishAt timestamp (in seconds) may be provided. Returns an UpdateResponse containing the unpublished webpage details.
|
|
1789
|
+
|
|
1790
|
+
### Example
|
|
1791
|
+
|
|
1792
|
+
```typescript
|
|
1793
|
+
import {
|
|
1794
|
+
WebpagesApi,
|
|
1795
|
+
Configuration
|
|
1796
|
+
} from '@caraer/client';
|
|
1797
|
+
|
|
1798
|
+
const configuration = new Configuration();
|
|
1799
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1800
|
+
|
|
1801
|
+
let uuid: string; // (default to undefined)
|
|
1802
|
+
let unpublishAt: string; // (optional) (default to undefined)
|
|
1803
|
+
let environment: string; // (optional) (default to 'production')
|
|
1804
|
+
|
|
1805
|
+
const { status, data } = await apiInstance.unpublishWebpage(
|
|
1806
|
+
uuid,
|
|
1807
|
+
unpublishAt,
|
|
1808
|
+
environment
|
|
1809
|
+
);
|
|
1810
|
+
```
|
|
1811
|
+
|
|
1812
|
+
### Parameters
|
|
1813
|
+
|
|
1814
|
+
|Name | Type | Description | Notes|
|
|
1815
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1816
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1817
|
+
| **unpublishAt** | [**string**] | | (optional) defaults to undefined|
|
|
1818
|
+
| **environment** | [**string**] | | (optional) defaults to 'production'|
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
### Return type
|
|
1822
|
+
|
|
1823
|
+
**UpdateResponse**
|
|
1824
|
+
|
|
1825
|
+
### Authorization
|
|
1826
|
+
|
|
1827
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1828
|
+
|
|
1829
|
+
### HTTP request headers
|
|
1830
|
+
|
|
1831
|
+
- **Content-Type**: Not defined
|
|
1832
|
+
- **Accept**: application/json
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
### HTTP response details
|
|
1836
|
+
| Status code | Description | Response headers |
|
|
1837
|
+
|-------------|-------------|------------------|
|
|
1838
|
+
|**200** | Webpage unpublished successfully | - |
|
|
1839
|
+
|**404** | Webpage not found | - |
|
|
1840
|
+
|
|
1841
|
+
[[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)
|
|
1842
|
+
|
|
1843
|
+
# **updateWebpage**
|
|
1844
|
+
> UpdateResponse updateWebpage(webpageDTO)
|
|
1845
|
+
|
|
1846
|
+
Updates an existing webpage identified by its UUID using the provided webpage details. Returns an UpdateResponse containing the updated webpage as a WebpageDTO. Validation: Webpage fields are validated according to the Webpage validation rules. Required fields and format constraints are enforced.
|
|
1847
|
+
|
|
1848
|
+
### Example
|
|
1849
|
+
|
|
1850
|
+
```typescript
|
|
1851
|
+
import {
|
|
1852
|
+
WebpagesApi,
|
|
1853
|
+
Configuration,
|
|
1854
|
+
WebpageDTO
|
|
1855
|
+
} from '@caraer/client';
|
|
1856
|
+
|
|
1857
|
+
const configuration = new Configuration();
|
|
1858
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1859
|
+
|
|
1860
|
+
let uuid: string; // (default to undefined)
|
|
1861
|
+
let webpageDTO: WebpageDTO; //Webpage details
|
|
1862
|
+
let environment: string; // (optional) (default to 'staging')
|
|
1863
|
+
|
|
1864
|
+
const { status, data } = await apiInstance.updateWebpage(
|
|
1865
|
+
uuid,
|
|
1866
|
+
webpageDTO,
|
|
1867
|
+
environment
|
|
1868
|
+
);
|
|
1869
|
+
```
|
|
1870
|
+
|
|
1871
|
+
### Parameters
|
|
1872
|
+
|
|
1873
|
+
|Name | Type | Description | Notes|
|
|
1874
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1875
|
+
| **webpageDTO** | **WebpageDTO**| Webpage details | |
|
|
1876
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1877
|
+
| **environment** | [**string**] | | (optional) defaults to 'staging'|
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
### Return type
|
|
1881
|
+
|
|
1882
|
+
**UpdateResponse**
|
|
1883
|
+
|
|
1884
|
+
### Authorization
|
|
1885
|
+
|
|
1886
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1887
|
+
|
|
1888
|
+
### HTTP request headers
|
|
1889
|
+
|
|
1890
|
+
- **Content-Type**: application/json
|
|
1891
|
+
- **Accept**: application/json
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
### HTTP response details
|
|
1895
|
+
| Status code | Description | Response headers |
|
|
1896
|
+
|-------------|-------------|------------------|
|
|
1897
|
+
|**200** | Webpage updated successfully | - |
|
|
1898
|
+
|**400** | Invalid input data | - |
|
|
1899
|
+
|**403** | Missing write access on one or more webpage fields for this environment | - |
|
|
1900
|
+
|**404** | Webpage not found | - |
|
|
1901
|
+
|
|
1902
|
+
[[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)
|
|
1903
|
+
|
|
1904
|
+
# **uploadFile**
|
|
1905
|
+
> SuccessResponse uploadFile()
|
|
1906
|
+
|
|
1907
|
+
Uploads a file to S3 storage under the specified webpage\'s attachments folder, sets the file\'s ACL to public, and returns the public URL for the file in a SuccessResponse.
|
|
1908
|
+
|
|
1909
|
+
### Example
|
|
1910
|
+
|
|
1911
|
+
```typescript
|
|
1912
|
+
import {
|
|
1913
|
+
WebpagesApi,
|
|
1914
|
+
Configuration
|
|
1915
|
+
} from '@caraer/client';
|
|
1916
|
+
|
|
1917
|
+
const configuration = new Configuration();
|
|
1918
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1919
|
+
|
|
1920
|
+
let uuid: string; // (default to undefined)
|
|
1921
|
+
|
|
1922
|
+
const { status, data } = await apiInstance.uploadFile(
|
|
1923
|
+
uuid
|
|
1924
|
+
);
|
|
1925
|
+
```
|
|
1926
|
+
|
|
1927
|
+
### Parameters
|
|
1928
|
+
|
|
1929
|
+
|Name | Type | Description | Notes|
|
|
1930
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1931
|
+
| **uuid** | [**string**] | | defaults to undefined|
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
### Return type
|
|
1935
|
+
|
|
1936
|
+
**SuccessResponse**
|
|
1937
|
+
|
|
1938
|
+
### Authorization
|
|
1939
|
+
|
|
1940
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1941
|
+
|
|
1942
|
+
### HTTP request headers
|
|
1943
|
+
|
|
1944
|
+
- **Content-Type**: multipart/form-data
|
|
1945
|
+
- **Accept**: application/json
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
### HTTP response details
|
|
1949
|
+
| Status code | Description | Response headers |
|
|
1950
|
+
|-------------|-------------|------------------|
|
|
1951
|
+
|**200** | File uploaded successfully | - |
|
|
1952
|
+
|**400** | Invalid file provided | - |
|
|
1953
|
+
|**500** | Internal server error | - |
|
|
1954
|
+
|
|
1955
|
+
[[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)
|
|
1956
|
+
|
|
1957
|
+
# **uploadFile1**
|
|
1958
|
+
> SuccessResponse uploadFile1()
|
|
1959
|
+
|
|
1960
|
+
Uploads a file to S3 storage and returns the public URL for the file in a SuccessResponse.
|
|
1961
|
+
|
|
1962
|
+
### Example
|
|
1963
|
+
|
|
1964
|
+
```typescript
|
|
1965
|
+
import {
|
|
1966
|
+
WebpagesApi,
|
|
1967
|
+
Configuration
|
|
1968
|
+
} from '@caraer/client';
|
|
1969
|
+
|
|
1970
|
+
const configuration = new Configuration();
|
|
1971
|
+
const apiInstance = new WebpagesApi(configuration);
|
|
1972
|
+
|
|
1973
|
+
let file: File; // (default to undefined)
|
|
1974
|
+
|
|
1975
|
+
const { status, data } = await apiInstance.uploadFile1(
|
|
1976
|
+
file
|
|
1977
|
+
);
|
|
1978
|
+
```
|
|
1979
|
+
|
|
1980
|
+
### Parameters
|
|
1981
|
+
|
|
1982
|
+
|Name | Type | Description | Notes|
|
|
1983
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1984
|
+
| **file** | [**File**] | | defaults to undefined|
|
|
1985
|
+
|
|
1986
|
+
|
|
1987
|
+
### Return type
|
|
1988
|
+
|
|
1989
|
+
**SuccessResponse**
|
|
1990
|
+
|
|
1991
|
+
### Authorization
|
|
1992
|
+
|
|
1993
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1994
|
+
|
|
1995
|
+
### HTTP request headers
|
|
1996
|
+
|
|
1997
|
+
- **Content-Type**: multipart/form-data
|
|
1998
|
+
- **Accept**: application/json
|
|
1999
|
+
|
|
2000
|
+
|
|
2001
|
+
### HTTP response details
|
|
2002
|
+
| Status code | Description | Response headers |
|
|
2003
|
+
|-------------|-------------|------------------|
|
|
2004
|
+
|**200** | File uploaded successfully | - |
|
|
2005
|
+
|**400** | Invalid file provided | - |
|
|
2006
|
+
|**500** | Internal server error | - |
|
|
2007
|
+
|
|
2008
|
+
[[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)
|
|
2009
|
+
|