@caraer/client 2.0.504 → 2.0.506

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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/api.ts +4951 -147
  3. package/dist/api.d.ts +2747 -126
  4. package/dist/api.js +4048 -72
  5. package/dist/esm/api.d.ts +2747 -126
  6. package/dist/esm/api.js +4024 -69
  7. package/docs/AppSettingFieldSchema.md +10 -0
  8. package/docs/CMSModulesApi.md +181 -0
  9. package/docs/CMSV2EnvironmentsApi.md +396 -0
  10. package/docs/CMSV2PagesApi.md +1058 -0
  11. package/docs/CMSV2PublicApi.md +739 -0
  12. package/docs/CMSV2TransferApi.md +230 -0
  13. package/docs/CalendarsApi.md +8 -8
  14. package/docs/CmsEnvironmentDTO.md +36 -0
  15. package/docs/CmsModuleDTO.md +52 -0
  16. package/docs/CmsPageDTO.md +44 -0
  17. package/docs/CmsPageDocument.md +38 -0
  18. package/docs/CmsPageModuleInstance.md +26 -0
  19. package/docs/CmsPagePatch.md +40 -0
  20. package/docs/CmsPagePatchRequest.md +24 -0
  21. package/docs/CmsPublicMenuDTO.md +24 -0
  22. package/docs/CompanyDTO.md +8 -0
  23. package/docs/DeveloperSandboxesApi.md +4 -4
  24. package/docs/DigitalIdentityDTO.md +104 -0
  25. package/docs/ExistingWidgetSummary.md +4 -4
  26. package/docs/FileListItemDTO.md +28 -0
  27. package/docs/FileManagementApi.md +55 -0
  28. package/docs/Location.md +18 -0
  29. package/docs/MapLocationDTO.md +65 -0
  30. package/docs/MapMarkerPreviewRequest.md +24 -0
  31. package/docs/MultiFile.md +18 -0
  32. package/docs/PageContentSettingsDTO.md +10 -0
  33. package/docs/RecordSummary.md +26 -0
  34. package/docs/ServerlessFunctionsApi.md +12 -12
  35. package/docs/SettingOption.md +2 -0
  36. package/docs/ShowResponseCmsEnvironmentDTO.md +23 -0
  37. package/docs/ShowResponseCmsPageDTO.md +23 -0
  38. package/docs/ShowResponseCmsPageDocument.md +23 -0
  39. package/docs/ShowResponseCompanyDTO.md +3 -3
  40. package/docs/ShowResponseListCmsEnvironmentDTO.md +23 -0
  41. package/docs/ShowResponseListCmsModuleDTO.md +23 -0
  42. package/docs/ShowResponseListCmsPageDTO.md +23 -0
  43. package/docs/ShowResponseListCmsPublicMenuDTO.md +23 -0
  44. package/docs/ShowResponseListMapStringObject.md +23 -0
  45. package/docs/ShowResponseListWebpageAccessGrantDTO.md +23 -0
  46. package/docs/ShowResponsePreviewDTO.md +3 -3
  47. package/docs/ShowResponseSignedUrlResultDTO.md +23 -0
  48. package/docs/ShowResponseWebpageMapLocationsDTO.md +23 -0
  49. package/docs/SuccessResponseListFileListItemDTO.md +23 -0
  50. package/docs/TemplateWebpageDTO.md +2 -0
  51. package/docs/WebpageDTO.md +4 -0
  52. package/docs/WebpageMapLocationsDTO.md +21 -0
  53. package/docs/WebpagesApi.md +168 -0
  54. package/docs/WebsiteSettingsDTO.md +10 -0
  55. package/package.json +1 -1
@@ -0,0 +1,1058 @@
1
+ # CMSV2PagesApi
2
+
3
+ All URIs are relative to *https://v2.api.caraer.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**aiRewrite**](#airewrite) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/ai/rewrite | Rewrite a page or a module from a prompt|
8
+ |[**createTranslation**](#createtranslation) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/environments/{key}/translate | Create a translated sibling page for an environment|
9
+ |[**ensureNotFound**](#ensurenotfound) | **POST** /api/v2/webpages/v2/pages/not-found | Create or reuse the custom 404 page|
10
+ |[**environmentCoverage**](#environmentcoverage) | **GET** /api/v2/webpages/v2/pages/{recordUuid}/environments | Environment coverage for the builder dropdown|
11
+ |[**get**](#get) | **GET** /api/v2/webpages/v2/pages/{recordUuid} | Load a page for the builder|
12
+ |[**getTemplate**](#gettemplate) | **GET** /api/v2/webpages/v2/pages/templates/{objectUuid} | CMS v2 object template document|
13
+ |[**history**](#history) | **GET** /api/v2/webpages/v2/pages/{recordUuid}/history | Draft snapshots for one locale|
14
+ |[**hostOnEnvironment**](#hostonenvironment) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/environments/{key}/host | Host this page on another environment|
15
+ |[**library**](#library) | **GET** /api/v2/webpages/v2/pages/library/modules | Modules available to this company|
16
+ |[**patch**](#patch) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/patch | Apply patches to a page draft|
17
+ |[**previewLink**](#previewlink) | **GET** /api/v2/webpages/v2/pages/{recordUuid}/preview-link | Signed preview URL for the builder iframe|
18
+ |[**publish**](#publish) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/publish | Publish one locale, or all of them|
19
+ |[**restoreHistory**](#restorehistory) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/history/{index}/restore | Restore a draft snapshot|
20
+ |[**save**](#save) | **PUT** /api/v2/webpages/v2/pages/{recordUuid} | Replace a page draft|
21
+ |[**saveMeta**](#savemeta) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/meta | Update slug, title, excerpt, SEO and page scripts|
22
+ |[**saveTemplate**](#savetemplate) | **PUT** /api/v2/webpages/v2/pages/templates/{objectUuid} | Replace a CMS v2 object template|
23
+ |[**unpublish**](#unpublish) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/unpublish | Take one locale offline|
24
+ |[**unselectEnvironment**](#unselectenvironment) | **DELETE** /api/v2/webpages/v2/pages/{recordUuid}/environments/{key} | Remove an environment from this page only|
25
+
26
+ # **aiRewrite**
27
+ > ShowResponseMapStringObject aiRewrite(requestBody)
28
+
29
+ Returns patches the editor applies through the same revision channel as a manual edit, so the change is undoable. Page scope may add, remove and reorder modules. A module\'s code lives in a shared npm package, so the AI rewrites field values and composition, never the component itself.
30
+
31
+ ### Example
32
+
33
+ ```typescript
34
+ import {
35
+ CMSV2PagesApi,
36
+ Configuration
37
+ } from '@caraer/client';
38
+
39
+ const configuration = new Configuration();
40
+ const apiInstance = new CMSV2PagesApi(configuration);
41
+
42
+ let recordUuid: string; // (default to undefined)
43
+ let requestBody: { [key: string]: any | null; }; //
44
+
45
+ const { status, data } = await apiInstance.aiRewrite(
46
+ recordUuid,
47
+ requestBody
48
+ );
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+ |Name | Type | Description | Notes|
54
+ |------------- | ------------- | ------------- | -------------|
55
+ | **requestBody** | **{ [key: string]: any | null; }**| | |
56
+ | **recordUuid** | [**string**] | | defaults to undefined|
57
+
58
+
59
+ ### Return type
60
+
61
+ **ShowResponseMapStringObject**
62
+
63
+ ### Authorization
64
+
65
+ [bearerAuth](../README.md#bearerAuth)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: application/json
70
+ - **Accept**: application/json
71
+
72
+
73
+ ### HTTP response details
74
+ | Status code | Description | Response headers |
75
+ |-------------|-------------|------------------|
76
+ |**200** | OK | - |
77
+ |**401** | Authentication is required or the token is invalid. | - |
78
+ |**403** | The caller is missing a required role or scope. | - |
79
+ |**404** | The requested resource was not found. | - |
80
+ |**500** | An internal server error occurred. | - |
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
+ # **createTranslation**
85
+ > ShowResponseCmsPageDTO createTranslation()
86
+
87
+
88
+ ### Example
89
+
90
+ ```typescript
91
+ import {
92
+ CMSV2PagesApi,
93
+ Configuration
94
+ } from '@caraer/client';
95
+
96
+ const configuration = new Configuration();
97
+ const apiInstance = new CMSV2PagesApi(configuration);
98
+
99
+ let recordUuid: string; // (default to undefined)
100
+ let key: string; // (default to undefined)
101
+
102
+ const { status, data } = await apiInstance.createTranslation(
103
+ recordUuid,
104
+ key
105
+ );
106
+ ```
107
+
108
+ ### Parameters
109
+
110
+ |Name | Type | Description | Notes|
111
+ |------------- | ------------- | ------------- | -------------|
112
+ | **recordUuid** | [**string**] | | defaults to undefined|
113
+ | **key** | [**string**] | | defaults to undefined|
114
+
115
+
116
+ ### Return type
117
+
118
+ **ShowResponseCmsPageDTO**
119
+
120
+ ### Authorization
121
+
122
+ [bearerAuth](../README.md#bearerAuth)
123
+
124
+ ### HTTP request headers
125
+
126
+ - **Content-Type**: Not defined
127
+ - **Accept**: application/json
128
+
129
+
130
+ ### HTTP response details
131
+ | Status code | Description | Response headers |
132
+ |-------------|-------------|------------------|
133
+ |**200** | OK | - |
134
+ |**401** | Authentication is required or the token is invalid. | - |
135
+ |**403** | The caller is missing a required role or scope. | - |
136
+ |**404** | The requested resource was not found. | - |
137
+ |**500** | An internal server error occurred. | - |
138
+
139
+ [[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)
140
+
141
+ # **ensureNotFound**
142
+ > ShowResponseCmsPageDTO ensureNotFound()
143
+
144
+ Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page.
145
+
146
+ ### Example
147
+
148
+ ```typescript
149
+ import {
150
+ CMSV2PagesApi,
151
+ Configuration
152
+ } from '@caraer/client';
153
+
154
+ const configuration = new Configuration();
155
+ const apiInstance = new CMSV2PagesApi(configuration);
156
+
157
+ const { status, data } = await apiInstance.ensureNotFound();
158
+ ```
159
+
160
+ ### Parameters
161
+ This endpoint does not have any parameters.
162
+
163
+
164
+ ### Return type
165
+
166
+ **ShowResponseCmsPageDTO**
167
+
168
+ ### Authorization
169
+
170
+ [bearerAuth](../README.md#bearerAuth)
171
+
172
+ ### HTTP request headers
173
+
174
+ - **Content-Type**: Not defined
175
+ - **Accept**: application/json
176
+
177
+
178
+ ### HTTP response details
179
+ | Status code | Description | Response headers |
180
+ |-------------|-------------|------------------|
181
+ |**200** | OK | - |
182
+ |**401** | Authentication is required or the token is invalid. | - |
183
+ |**403** | The caller is missing a required role or scope. | - |
184
+ |**404** | The requested resource was not found. | - |
185
+ |**500** | An internal server error occurred. | - |
186
+
187
+ [[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)
188
+
189
+ # **environmentCoverage**
190
+ > ShowResponseMapStringObject environmentCoverage()
191
+
192
+
193
+ ### Example
194
+
195
+ ```typescript
196
+ import {
197
+ CMSV2PagesApi,
198
+ Configuration
199
+ } from '@caraer/client';
200
+
201
+ const configuration = new Configuration();
202
+ const apiInstance = new CMSV2PagesApi(configuration);
203
+
204
+ let recordUuid: string; // (default to undefined)
205
+
206
+ const { status, data } = await apiInstance.environmentCoverage(
207
+ recordUuid
208
+ );
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+ |Name | Type | Description | Notes|
214
+ |------------- | ------------- | ------------- | -------------|
215
+ | **recordUuid** | [**string**] | | defaults to undefined|
216
+
217
+
218
+ ### Return type
219
+
220
+ **ShowResponseMapStringObject**
221
+
222
+ ### Authorization
223
+
224
+ [bearerAuth](../README.md#bearerAuth)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: application/json
230
+
231
+
232
+ ### HTTP response details
233
+ | Status code | Description | Response headers |
234
+ |-------------|-------------|------------------|
235
+ |**200** | OK | - |
236
+ |**401** | Authentication is required or the token is invalid. | - |
237
+ |**403** | The caller is missing a required role or scope. | - |
238
+ |**404** | The requested resource was not found. | - |
239
+ |**500** | An internal server error occurred. | - |
240
+
241
+ [[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)
242
+
243
+ # **get**
244
+ > ShowResponseCmsPageDTO get()
245
+
246
+
247
+ ### Example
248
+
249
+ ```typescript
250
+ import {
251
+ CMSV2PagesApi,
252
+ Configuration
253
+ } from '@caraer/client';
254
+
255
+ const configuration = new Configuration();
256
+ const apiInstance = new CMSV2PagesApi(configuration);
257
+
258
+ let recordUuid: string; // (default to undefined)
259
+ let locale: string; // (optional) (default to undefined)
260
+ let state: string; // (optional) (default to 'draft')
261
+
262
+ const { status, data } = await apiInstance.get(
263
+ recordUuid,
264
+ locale,
265
+ state
266
+ );
267
+ ```
268
+
269
+ ### Parameters
270
+
271
+ |Name | Type | Description | Notes|
272
+ |------------- | ------------- | ------------- | -------------|
273
+ | **recordUuid** | [**string**] | | defaults to undefined|
274
+ | **locale** | [**string**] | | (optional) defaults to undefined|
275
+ | **state** | [**string**] | | (optional) defaults to 'draft'|
276
+
277
+
278
+ ### Return type
279
+
280
+ **ShowResponseCmsPageDTO**
281
+
282
+ ### Authorization
283
+
284
+ [bearerAuth](../README.md#bearerAuth)
285
+
286
+ ### HTTP request headers
287
+
288
+ - **Content-Type**: Not defined
289
+ - **Accept**: application/json
290
+
291
+
292
+ ### HTTP response details
293
+ | Status code | Description | Response headers |
294
+ |-------------|-------------|------------------|
295
+ |**200** | OK | - |
296
+ |**401** | Authentication is required or the token is invalid. | - |
297
+ |**403** | The caller is missing a required role or scope. | - |
298
+ |**404** | The requested resource was not found. | - |
299
+ |**500** | An internal server error occurred. | - |
300
+
301
+ [[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)
302
+
303
+ # **getTemplate**
304
+ > ShowResponseCmsPageDocument getTemplate()
305
+
306
+
307
+ ### Example
308
+
309
+ ```typescript
310
+ import {
311
+ CMSV2PagesApi,
312
+ Configuration
313
+ } from '@caraer/client';
314
+
315
+ const configuration = new Configuration();
316
+ const apiInstance = new CMSV2PagesApi(configuration);
317
+
318
+ let objectUuid: string; // (default to undefined)
319
+ let locale: string; // (optional) (default to undefined)
320
+
321
+ const { status, data } = await apiInstance.getTemplate(
322
+ objectUuid,
323
+ locale
324
+ );
325
+ ```
326
+
327
+ ### Parameters
328
+
329
+ |Name | Type | Description | Notes|
330
+ |------------- | ------------- | ------------- | -------------|
331
+ | **objectUuid** | [**string**] | | defaults to undefined|
332
+ | **locale** | [**string**] | | (optional) defaults to undefined|
333
+
334
+
335
+ ### Return type
336
+
337
+ **ShowResponseCmsPageDocument**
338
+
339
+ ### Authorization
340
+
341
+ [bearerAuth](../README.md#bearerAuth)
342
+
343
+ ### HTTP request headers
344
+
345
+ - **Content-Type**: Not defined
346
+ - **Accept**: application/json
347
+
348
+
349
+ ### HTTP response details
350
+ | Status code | Description | Response headers |
351
+ |-------------|-------------|------------------|
352
+ |**200** | OK | - |
353
+ |**401** | Authentication is required or the token is invalid. | - |
354
+ |**403** | The caller is missing a required role or scope. | - |
355
+ |**404** | The requested resource was not found. | - |
356
+ |**500** | An internal server error occurred. | - |
357
+
358
+ [[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)
359
+
360
+ # **history**
361
+ > ShowResponseListMapStringObject history()
362
+
363
+
364
+ ### Example
365
+
366
+ ```typescript
367
+ import {
368
+ CMSV2PagesApi,
369
+ Configuration
370
+ } from '@caraer/client';
371
+
372
+ const configuration = new Configuration();
373
+ const apiInstance = new CMSV2PagesApi(configuration);
374
+
375
+ let recordUuid: string; // (default to undefined)
376
+ let locale: string; // (optional) (default to undefined)
377
+
378
+ const { status, data } = await apiInstance.history(
379
+ recordUuid,
380
+ locale
381
+ );
382
+ ```
383
+
384
+ ### Parameters
385
+
386
+ |Name | Type | Description | Notes|
387
+ |------------- | ------------- | ------------- | -------------|
388
+ | **recordUuid** | [**string**] | | defaults to undefined|
389
+ | **locale** | [**string**] | | (optional) defaults to undefined|
390
+
391
+
392
+ ### Return type
393
+
394
+ **ShowResponseListMapStringObject**
395
+
396
+ ### Authorization
397
+
398
+ [bearerAuth](../README.md#bearerAuth)
399
+
400
+ ### HTTP request headers
401
+
402
+ - **Content-Type**: Not defined
403
+ - **Accept**: application/json
404
+
405
+
406
+ ### HTTP response details
407
+ | Status code | Description | Response headers |
408
+ |-------------|-------------|------------------|
409
+ |**200** | OK | - |
410
+ |**401** | Authentication is required or the token is invalid. | - |
411
+ |**403** | The caller is missing a required role or scope. | - |
412
+ |**404** | The requested resource was not found. | - |
413
+ |**500** | An internal server error occurred. | - |
414
+
415
+ [[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)
416
+
417
+ # **hostOnEnvironment**
418
+ > ShowResponseCmsPageDTO hostOnEnvironment()
419
+
420
+
421
+ ### Example
422
+
423
+ ```typescript
424
+ import {
425
+ CMSV2PagesApi,
426
+ Configuration
427
+ } from '@caraer/client';
428
+
429
+ const configuration = new Configuration();
430
+ const apiInstance = new CMSV2PagesApi(configuration);
431
+
432
+ let recordUuid: string; // (default to undefined)
433
+ let key: string; // (default to undefined)
434
+
435
+ const { status, data } = await apiInstance.hostOnEnvironment(
436
+ recordUuid,
437
+ key
438
+ );
439
+ ```
440
+
441
+ ### Parameters
442
+
443
+ |Name | Type | Description | Notes|
444
+ |------------- | ------------- | ------------- | -------------|
445
+ | **recordUuid** | [**string**] | | defaults to undefined|
446
+ | **key** | [**string**] | | defaults to undefined|
447
+
448
+
449
+ ### Return type
450
+
451
+ **ShowResponseCmsPageDTO**
452
+
453
+ ### Authorization
454
+
455
+ [bearerAuth](../README.md#bearerAuth)
456
+
457
+ ### HTTP request headers
458
+
459
+ - **Content-Type**: Not defined
460
+ - **Accept**: application/json
461
+
462
+
463
+ ### HTTP response details
464
+ | Status code | Description | Response headers |
465
+ |-------------|-------------|------------------|
466
+ |**200** | OK | - |
467
+ |**401** | Authentication is required or the token is invalid. | - |
468
+ |**403** | The caller is missing a required role or scope. | - |
469
+ |**404** | The requested resource was not found. | - |
470
+ |**500** | An internal server error occurred. | - |
471
+
472
+ [[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)
473
+
474
+ # **library**
475
+ > ShowResponseListCmsModuleDTO library()
476
+
477
+ Backs the builder\'s library picker. Only modules from installed apps, and never retired ones, because a new page must be able to render them.
478
+
479
+ ### Example
480
+
481
+ ```typescript
482
+ import {
483
+ CMSV2PagesApi,
484
+ Configuration
485
+ } from '@caraer/client';
486
+
487
+ const configuration = new Configuration();
488
+ const apiInstance = new CMSV2PagesApi(configuration);
489
+
490
+ const { status, data } = await apiInstance.library();
491
+ ```
492
+
493
+ ### Parameters
494
+ This endpoint does not have any parameters.
495
+
496
+
497
+ ### Return type
498
+
499
+ **ShowResponseListCmsModuleDTO**
500
+
501
+ ### Authorization
502
+
503
+ [bearerAuth](../README.md#bearerAuth)
504
+
505
+ ### HTTP request headers
506
+
507
+ - **Content-Type**: Not defined
508
+ - **Accept**: application/json
509
+
510
+
511
+ ### HTTP response details
512
+ | Status code | Description | Response headers |
513
+ |-------------|-------------|------------------|
514
+ |**200** | OK | - |
515
+ |**401** | Authentication is required or the token is invalid. | - |
516
+ |**403** | The caller is missing a required role or scope. | - |
517
+ |**404** | The requested resource was not found. | - |
518
+ |**500** | An internal server error occurred. | - |
519
+
520
+ [[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)
521
+
522
+ # **patch**
523
+ > ShowResponseCmsPageDTO patch(cmsPagePatchRequest)
524
+
525
+ Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work.
526
+
527
+ ### Example
528
+
529
+ ```typescript
530
+ import {
531
+ CMSV2PagesApi,
532
+ Configuration,
533
+ CmsPagePatchRequest
534
+ } from '@caraer/client';
535
+
536
+ const configuration = new Configuration();
537
+ const apiInstance = new CMSV2PagesApi(configuration);
538
+
539
+ let recordUuid: string; // (default to undefined)
540
+ let cmsPagePatchRequest: CmsPagePatchRequest; //
541
+
542
+ const { status, data } = await apiInstance.patch(
543
+ recordUuid,
544
+ cmsPagePatchRequest
545
+ );
546
+ ```
547
+
548
+ ### Parameters
549
+
550
+ |Name | Type | Description | Notes|
551
+ |------------- | ------------- | ------------- | -------------|
552
+ | **cmsPagePatchRequest** | **CmsPagePatchRequest**| | |
553
+ | **recordUuid** | [**string**] | | defaults to undefined|
554
+
555
+
556
+ ### Return type
557
+
558
+ **ShowResponseCmsPageDTO**
559
+
560
+ ### Authorization
561
+
562
+ [bearerAuth](../README.md#bearerAuth)
563
+
564
+ ### HTTP request headers
565
+
566
+ - **Content-Type**: application/json
567
+ - **Accept**: application/json
568
+
569
+
570
+ ### HTTP response details
571
+ | Status code | Description | Response headers |
572
+ |-------------|-------------|------------------|
573
+ |**200** | OK | - |
574
+ |**401** | Authentication is required or the token is invalid. | - |
575
+ |**403** | The caller is missing a required role or scope. | - |
576
+ |**404** | The requested resource was not found. | - |
577
+ |**500** | An internal server error occurred. | - |
578
+
579
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
580
+
581
+ # **previewLink**
582
+ > ShowResponseMapStringObject previewLink()
583
+
584
+ The iframe renders the draft document, which the public API will not serve. The signature covers the page and an expiry so a leaked link cannot be retargeted or replayed.
585
+
586
+ ### Example
587
+
588
+ ```typescript
589
+ import {
590
+ CMSV2PagesApi,
591
+ Configuration
592
+ } from '@caraer/client';
593
+
594
+ const configuration = new Configuration();
595
+ const apiInstance = new CMSV2PagesApi(configuration);
596
+
597
+ let recordUuid: string; // (default to undefined)
598
+ let locale: string; // (optional) (default to undefined)
599
+ let state: string; // (optional) (default to 'draft')
600
+
601
+ const { status, data } = await apiInstance.previewLink(
602
+ recordUuid,
603
+ locale,
604
+ state
605
+ );
606
+ ```
607
+
608
+ ### Parameters
609
+
610
+ |Name | Type | Description | Notes|
611
+ |------------- | ------------- | ------------- | -------------|
612
+ | **recordUuid** | [**string**] | | defaults to undefined|
613
+ | **locale** | [**string**] | | (optional) defaults to undefined|
614
+ | **state** | [**string**] | | (optional) defaults to 'draft'|
615
+
616
+
617
+ ### Return type
618
+
619
+ **ShowResponseMapStringObject**
620
+
621
+ ### Authorization
622
+
623
+ [bearerAuth](../README.md#bearerAuth)
624
+
625
+ ### HTTP request headers
626
+
627
+ - **Content-Type**: Not defined
628
+ - **Accept**: application/json
629
+
630
+
631
+ ### HTTP response details
632
+ | Status code | Description | Response headers |
633
+ |-------------|-------------|------------------|
634
+ |**200** | OK | - |
635
+ |**401** | Authentication is required or the token is invalid. | - |
636
+ |**403** | The caller is missing a required role or scope. | - |
637
+ |**404** | The requested resource was not found. | - |
638
+ |**500** | An internal server error occurred. | - |
639
+
640
+ [[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)
641
+
642
+ # **publish**
643
+ > ShowResponseListCmsPageDTO publish()
644
+
645
+ Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
646
+
647
+ ### Example
648
+
649
+ ```typescript
650
+ import {
651
+ CMSV2PagesApi,
652
+ Configuration
653
+ } from '@caraer/client';
654
+
655
+ const configuration = new Configuration();
656
+ const apiInstance = new CMSV2PagesApi(configuration);
657
+
658
+ let recordUuid: string; // (default to undefined)
659
+ let locale: string; // (optional) (default to undefined)
660
+ let allLocales: boolean; // (optional) (default to false)
661
+
662
+ const { status, data } = await apiInstance.publish(
663
+ recordUuid,
664
+ locale,
665
+ allLocales
666
+ );
667
+ ```
668
+
669
+ ### Parameters
670
+
671
+ |Name | Type | Description | Notes|
672
+ |------------- | ------------- | ------------- | -------------|
673
+ | **recordUuid** | [**string**] | | defaults to undefined|
674
+ | **locale** | [**string**] | | (optional) defaults to undefined|
675
+ | **allLocales** | [**boolean**] | | (optional) defaults to false|
676
+
677
+
678
+ ### Return type
679
+
680
+ **ShowResponseListCmsPageDTO**
681
+
682
+ ### Authorization
683
+
684
+ [bearerAuth](../README.md#bearerAuth)
685
+
686
+ ### HTTP request headers
687
+
688
+ - **Content-Type**: Not defined
689
+ - **Accept**: application/json
690
+
691
+
692
+ ### HTTP response details
693
+ | Status code | Description | Response headers |
694
+ |-------------|-------------|------------------|
695
+ |**200** | OK | - |
696
+ |**401** | Authentication is required or the token is invalid. | - |
697
+ |**403** | The caller is missing a required role or scope. | - |
698
+ |**404** | The requested resource was not found. | - |
699
+ |**500** | An internal server error occurred. | - |
700
+
701
+ [[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)
702
+
703
+ # **restoreHistory**
704
+ > ShowResponseCmsPageDTO restoreHistory()
705
+
706
+
707
+ ### Example
708
+
709
+ ```typescript
710
+ import {
711
+ CMSV2PagesApi,
712
+ Configuration
713
+ } from '@caraer/client';
714
+
715
+ const configuration = new Configuration();
716
+ const apiInstance = new CMSV2PagesApi(configuration);
717
+
718
+ let recordUuid: string; // (default to undefined)
719
+ let index: number; // (default to undefined)
720
+ let locale: string; // (optional) (default to undefined)
721
+
722
+ const { status, data } = await apiInstance.restoreHistory(
723
+ recordUuid,
724
+ index,
725
+ locale
726
+ );
727
+ ```
728
+
729
+ ### Parameters
730
+
731
+ |Name | Type | Description | Notes|
732
+ |------------- | ------------- | ------------- | -------------|
733
+ | **recordUuid** | [**string**] | | defaults to undefined|
734
+ | **index** | [**number**] | | defaults to undefined|
735
+ | **locale** | [**string**] | | (optional) defaults to undefined|
736
+
737
+
738
+ ### Return type
739
+
740
+ **ShowResponseCmsPageDTO**
741
+
742
+ ### Authorization
743
+
744
+ [bearerAuth](../README.md#bearerAuth)
745
+
746
+ ### HTTP request headers
747
+
748
+ - **Content-Type**: Not defined
749
+ - **Accept**: application/json
750
+
751
+
752
+ ### HTTP response details
753
+ | Status code | Description | Response headers |
754
+ |-------------|-------------|------------------|
755
+ |**200** | OK | - |
756
+ |**401** | Authentication is required or the token is invalid. | - |
757
+ |**403** | The caller is missing a required role or scope. | - |
758
+ |**404** | The requested resource was not found. | - |
759
+ |**500** | An internal server error occurred. | - |
760
+
761
+ [[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)
762
+
763
+ # **save**
764
+ > ShowResponseCmsPageDTO save(cmsPageDocument)
765
+
766
+
767
+ ### Example
768
+
769
+ ```typescript
770
+ import {
771
+ CMSV2PagesApi,
772
+ Configuration,
773
+ CmsPageDocument
774
+ } from '@caraer/client';
775
+
776
+ const configuration = new Configuration();
777
+ const apiInstance = new CMSV2PagesApi(configuration);
778
+
779
+ let recordUuid: string; // (default to undefined)
780
+ let cmsPageDocument: CmsPageDocument; //
781
+ let locale: string; // (optional) (default to undefined)
782
+
783
+ const { status, data } = await apiInstance.save(
784
+ recordUuid,
785
+ cmsPageDocument,
786
+ locale
787
+ );
788
+ ```
789
+
790
+ ### Parameters
791
+
792
+ |Name | Type | Description | Notes|
793
+ |------------- | ------------- | ------------- | -------------|
794
+ | **cmsPageDocument** | **CmsPageDocument**| | |
795
+ | **recordUuid** | [**string**] | | defaults to undefined|
796
+ | **locale** | [**string**] | | (optional) defaults to undefined|
797
+
798
+
799
+ ### Return type
800
+
801
+ **ShowResponseCmsPageDTO**
802
+
803
+ ### Authorization
804
+
805
+ [bearerAuth](../README.md#bearerAuth)
806
+
807
+ ### HTTP request headers
808
+
809
+ - **Content-Type**: application/json
810
+ - **Accept**: application/json
811
+
812
+
813
+ ### HTTP response details
814
+ | Status code | Description | Response headers |
815
+ |-------------|-------------|------------------|
816
+ |**200** | OK | - |
817
+ |**401** | Authentication is required or the token is invalid. | - |
818
+ |**403** | The caller is missing a required role or scope. | - |
819
+ |**404** | The requested resource was not found. | - |
820
+ |**500** | An internal server error occurred. | - |
821
+
822
+ [[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)
823
+
824
+ # **saveMeta**
825
+ > ShowResponseCmsPageDTO saveMeta(requestBody)
826
+
827
+
828
+ ### Example
829
+
830
+ ```typescript
831
+ import {
832
+ CMSV2PagesApi,
833
+ Configuration
834
+ } from '@caraer/client';
835
+
836
+ const configuration = new Configuration();
837
+ const apiInstance = new CMSV2PagesApi(configuration);
838
+
839
+ let recordUuid: string; // (default to undefined)
840
+ let requestBody: { [key: string]: any | null; }; //
841
+ let locale: string; // (optional) (default to undefined)
842
+
843
+ const { status, data } = await apiInstance.saveMeta(
844
+ recordUuid,
845
+ requestBody,
846
+ locale
847
+ );
848
+ ```
849
+
850
+ ### Parameters
851
+
852
+ |Name | Type | Description | Notes|
853
+ |------------- | ------------- | ------------- | -------------|
854
+ | **requestBody** | **{ [key: string]: any | null; }**| | |
855
+ | **recordUuid** | [**string**] | | defaults to undefined|
856
+ | **locale** | [**string**] | | (optional) defaults to undefined|
857
+
858
+
859
+ ### Return type
860
+
861
+ **ShowResponseCmsPageDTO**
862
+
863
+ ### Authorization
864
+
865
+ [bearerAuth](../README.md#bearerAuth)
866
+
867
+ ### HTTP request headers
868
+
869
+ - **Content-Type**: application/json
870
+ - **Accept**: application/json
871
+
872
+
873
+ ### HTTP response details
874
+ | Status code | Description | Response headers |
875
+ |-------------|-------------|------------------|
876
+ |**200** | OK | - |
877
+ |**401** | Authentication is required or the token is invalid. | - |
878
+ |**403** | The caller is missing a required role or scope. | - |
879
+ |**404** | The requested resource was not found. | - |
880
+ |**500** | An internal server error occurred. | - |
881
+
882
+ [[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)
883
+
884
+ # **saveTemplate**
885
+ > ShowResponseCmsPageDocument saveTemplate(cmsPageDocument)
886
+
887
+
888
+ ### Example
889
+
890
+ ```typescript
891
+ import {
892
+ CMSV2PagesApi,
893
+ Configuration,
894
+ CmsPageDocument
895
+ } from '@caraer/client';
896
+
897
+ const configuration = new Configuration();
898
+ const apiInstance = new CMSV2PagesApi(configuration);
899
+
900
+ let objectUuid: string; // (default to undefined)
901
+ let cmsPageDocument: CmsPageDocument; //
902
+ let locale: string; // (optional) (default to undefined)
903
+
904
+ const { status, data } = await apiInstance.saveTemplate(
905
+ objectUuid,
906
+ cmsPageDocument,
907
+ locale
908
+ );
909
+ ```
910
+
911
+ ### Parameters
912
+
913
+ |Name | Type | Description | Notes|
914
+ |------------- | ------------- | ------------- | -------------|
915
+ | **cmsPageDocument** | **CmsPageDocument**| | |
916
+ | **objectUuid** | [**string**] | | defaults to undefined|
917
+ | **locale** | [**string**] | | (optional) defaults to undefined|
918
+
919
+
920
+ ### Return type
921
+
922
+ **ShowResponseCmsPageDocument**
923
+
924
+ ### Authorization
925
+
926
+ [bearerAuth](../README.md#bearerAuth)
927
+
928
+ ### HTTP request headers
929
+
930
+ - **Content-Type**: application/json
931
+ - **Accept**: application/json
932
+
933
+
934
+ ### HTTP response details
935
+ | Status code | Description | Response headers |
936
+ |-------------|-------------|------------------|
937
+ |**200** | OK | - |
938
+ |**401** | Authentication is required or the token is invalid. | - |
939
+ |**403** | The caller is missing a required role or scope. | - |
940
+ |**404** | The requested resource was not found. | - |
941
+ |**500** | An internal server error occurred. | - |
942
+
943
+ [[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)
944
+
945
+ # **unpublish**
946
+ > ShowResponseMapStringObject unpublish()
947
+
948
+
949
+ ### Example
950
+
951
+ ```typescript
952
+ import {
953
+ CMSV2PagesApi,
954
+ Configuration
955
+ } from '@caraer/client';
956
+
957
+ const configuration = new Configuration();
958
+ const apiInstance = new CMSV2PagesApi(configuration);
959
+
960
+ let recordUuid: string; // (default to undefined)
961
+ let locale: string; // (optional) (default to undefined)
962
+
963
+ const { status, data } = await apiInstance.unpublish(
964
+ recordUuid,
965
+ locale
966
+ );
967
+ ```
968
+
969
+ ### Parameters
970
+
971
+ |Name | Type | Description | Notes|
972
+ |------------- | ------------- | ------------- | -------------|
973
+ | **recordUuid** | [**string**] | | defaults to undefined|
974
+ | **locale** | [**string**] | | (optional) defaults to undefined|
975
+
976
+
977
+ ### Return type
978
+
979
+ **ShowResponseMapStringObject**
980
+
981
+ ### Authorization
982
+
983
+ [bearerAuth](../README.md#bearerAuth)
984
+
985
+ ### HTTP request headers
986
+
987
+ - **Content-Type**: Not defined
988
+ - **Accept**: application/json
989
+
990
+
991
+ ### HTTP response details
992
+ | Status code | Description | Response headers |
993
+ |-------------|-------------|------------------|
994
+ |**200** | OK | - |
995
+ |**401** | Authentication is required or the token is invalid. | - |
996
+ |**403** | The caller is missing a required role or scope. | - |
997
+ |**404** | The requested resource was not found. | - |
998
+ |**500** | An internal server error occurred. | - |
999
+
1000
+ [[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)
1001
+
1002
+ # **unselectEnvironment**
1003
+ > ShowResponseCmsPageDTO unselectEnvironment()
1004
+
1005
+
1006
+ ### Example
1007
+
1008
+ ```typescript
1009
+ import {
1010
+ CMSV2PagesApi,
1011
+ Configuration
1012
+ } from '@caraer/client';
1013
+
1014
+ const configuration = new Configuration();
1015
+ const apiInstance = new CMSV2PagesApi(configuration);
1016
+
1017
+ let recordUuid: string; // (default to undefined)
1018
+ let key: string; // (default to undefined)
1019
+
1020
+ const { status, data } = await apiInstance.unselectEnvironment(
1021
+ recordUuid,
1022
+ key
1023
+ );
1024
+ ```
1025
+
1026
+ ### Parameters
1027
+
1028
+ |Name | Type | Description | Notes|
1029
+ |------------- | ------------- | ------------- | -------------|
1030
+ | **recordUuid** | [**string**] | | defaults to undefined|
1031
+ | **key** | [**string**] | | defaults to undefined|
1032
+
1033
+
1034
+ ### Return type
1035
+
1036
+ **ShowResponseCmsPageDTO**
1037
+
1038
+ ### Authorization
1039
+
1040
+ [bearerAuth](../README.md#bearerAuth)
1041
+
1042
+ ### HTTP request headers
1043
+
1044
+ - **Content-Type**: Not defined
1045
+ - **Accept**: application/json
1046
+
1047
+
1048
+ ### HTTP response details
1049
+ | Status code | Description | Response headers |
1050
+ |-------------|-------------|------------------|
1051
+ |**200** | OK | - |
1052
+ |**401** | Authentication is required or the token is invalid. | - |
1053
+ |**403** | The caller is missing a required role or scope. | - |
1054
+ |**404** | The requested resource was not found. | - |
1055
+ |**500** | An internal server error occurred. | - |
1056
+
1057
+ [[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)
1058
+