@caraer/client 2.0.506 → 2.0.508

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.
@@ -6,6 +6,7 @@ All URIs are relative to *https://v2.api.caraer.com*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**aiRewrite**](#airewrite) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/ai/rewrite | Rewrite a page or a module from a prompt|
8
8
  |[**createTranslation**](#createtranslation) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/environments/{key}/translate | Create a translated sibling page for an environment|
9
+ |[**discardModuleFork**](#discardmodulefork) | **DELETE** /api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId} | Discard a Modify-this-module playground session|
9
10
  |[**ensureNotFound**](#ensurenotfound) | **POST** /api/v2/webpages/v2/pages/not-found | Create or reuse the custom 404 page|
10
11
  |[**environmentCoverage**](#environmentcoverage) | **GET** /api/v2/webpages/v2/pages/{recordUuid}/environments | Environment coverage for the builder dropdown|
11
12
  |[**get**](#get) | **GET** /api/v2/webpages/v2/pages/{recordUuid} | Load a page for the builder|
@@ -15,11 +16,14 @@ All URIs are relative to *https://v2.api.caraer.com*
15
16
  |[**library**](#library) | **GET** /api/v2/webpages/v2/pages/library/modules | Modules available to this company|
16
17
  |[**patch**](#patch) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/patch | Apply patches to a page draft|
17
18
  |[**previewLink**](#previewlink) | **GET** /api/v2/webpages/v2/pages/{recordUuid}/preview-link | Signed preview URL for the builder iframe|
19
+ |[**promptModuleFork**](#promptmodulefork) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/prompt | Rewrite forked module source from a prompt|
18
20
  |[**publish**](#publish) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/publish | Publish one locale, or all of them|
19
21
  |[**restoreHistory**](#restorehistory) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/history/{index}/restore | Restore a draft snapshot|
20
22
  |[**save**](#save) | **PUT** /api/v2/webpages/v2/pages/{recordUuid} | Replace a page draft|
21
23
  |[**saveMeta**](#savemeta) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/meta | Update slug, title, excerpt, SEO and page scripts|
24
+ |[**saveModuleFork**](#savemodulefork) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/save | Publish the forked module into a private app|
22
25
  |[**saveTemplate**](#savetemplate) | **PUT** /api/v2/webpages/v2/pages/templates/{objectUuid} | Replace a CMS v2 object template|
26
+ |[**startModuleFork**](#startmodulefork) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions | Start a Modify-this-module playground session|
23
27
  |[**unpublish**](#unpublish) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/unpublish | Take one locale offline|
24
28
  |[**unselectEnvironment**](#unselectenvironment) | **DELETE** /api/v2/webpages/v2/pages/{recordUuid}/environments/{key} | Remove an environment from this page only|
25
29
 
@@ -127,6 +131,63 @@ const { status, data } = await apiInstance.createTranslation(
127
131
  - **Accept**: application/json
128
132
 
129
133
 
134
+ ### HTTP response details
135
+ | Status code | Description | Response headers |
136
+ |-------------|-------------|------------------|
137
+ |**200** | OK | - |
138
+ |**401** | Authentication is required or the token is invalid. | - |
139
+ |**403** | The caller is missing a required role or scope. | - |
140
+ |**404** | The requested resource was not found. | - |
141
+ |**500** | An internal server error occurred. | - |
142
+
143
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
144
+
145
+ # **discardModuleFork**
146
+ > ShowResponseMapStringObject discardModuleFork()
147
+
148
+
149
+ ### Example
150
+
151
+ ```typescript
152
+ import {
153
+ CMSV2PagesApi,
154
+ Configuration
155
+ } from '@caraer/client';
156
+
157
+ const configuration = new Configuration();
158
+ const apiInstance = new CMSV2PagesApi(configuration);
159
+
160
+ let recordUuid: string; // (default to undefined)
161
+ let sessionId: string; // (default to undefined)
162
+
163
+ const { status, data } = await apiInstance.discardModuleFork(
164
+ recordUuid,
165
+ sessionId
166
+ );
167
+ ```
168
+
169
+ ### Parameters
170
+
171
+ |Name | Type | Description | Notes|
172
+ |------------- | ------------- | ------------- | -------------|
173
+ | **recordUuid** | [**string**] | | defaults to undefined|
174
+ | **sessionId** | [**string**] | | defaults to undefined|
175
+
176
+
177
+ ### Return type
178
+
179
+ **ShowResponseMapStringObject**
180
+
181
+ ### Authorization
182
+
183
+ [bearerAuth](../README.md#bearerAuth)
184
+
185
+ ### HTTP request headers
186
+
187
+ - **Content-Type**: Not defined
188
+ - **Accept**: application/json
189
+
190
+
130
191
  ### HTTP response details
131
192
  | Status code | Description | Response headers |
132
193
  |-------------|-------------|------------------|
@@ -628,6 +689,66 @@ const { status, data } = await apiInstance.previewLink(
628
689
  - **Accept**: application/json
629
690
 
630
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
+ # **promptModuleFork**
704
+ > ShowResponseMapStringObject promptModuleFork(requestBody)
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 sessionId: string; // (default to undefined)
720
+ let requestBody: { [key: string]: any | null; }; //
721
+
722
+ const { status, data } = await apiInstance.promptModuleFork(
723
+ recordUuid,
724
+ sessionId,
725
+ requestBody
726
+ );
727
+ ```
728
+
729
+ ### Parameters
730
+
731
+ |Name | Type | Description | Notes|
732
+ |------------- | ------------- | ------------- | -------------|
733
+ | **requestBody** | **{ [key: string]: any | null; }**| | |
734
+ | **recordUuid** | [**string**] | | defaults to undefined|
735
+ | **sessionId** | [**string**] | | defaults to undefined|
736
+
737
+
738
+ ### Return type
739
+
740
+ **ShowResponseMapStringObject**
741
+
742
+ ### Authorization
743
+
744
+ [bearerAuth](../README.md#bearerAuth)
745
+
746
+ ### HTTP request headers
747
+
748
+ - **Content-Type**: application/json
749
+ - **Accept**: application/json
750
+
751
+
631
752
  ### HTTP response details
632
753
  | Status code | Description | Response headers |
633
754
  |-------------|-------------|------------------|
@@ -870,6 +991,67 @@ const { status, data } = await apiInstance.saveMeta(
870
991
  - **Accept**: application/json
871
992
 
872
993
 
994
+ ### HTTP response details
995
+ | Status code | Description | Response headers |
996
+ |-------------|-------------|------------------|
997
+ |**200** | OK | - |
998
+ |**401** | Authentication is required or the token is invalid. | - |
999
+ |**403** | The caller is missing a required role or scope. | - |
1000
+ |**404** | The requested resource was not found. | - |
1001
+ |**500** | An internal server error occurred. | - |
1002
+
1003
+ [[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)
1004
+
1005
+ # **saveModuleFork**
1006
+ > ShowResponseMapStringObject saveModuleFork(requestBody)
1007
+
1008
+ Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
1009
+
1010
+ ### Example
1011
+
1012
+ ```typescript
1013
+ import {
1014
+ CMSV2PagesApi,
1015
+ Configuration
1016
+ } from '@caraer/client';
1017
+
1018
+ const configuration = new Configuration();
1019
+ const apiInstance = new CMSV2PagesApi(configuration);
1020
+
1021
+ let recordUuid: string; // (default to undefined)
1022
+ let sessionId: string; // (default to undefined)
1023
+ let requestBody: { [key: string]: any | null; }; //
1024
+
1025
+ const { status, data } = await apiInstance.saveModuleFork(
1026
+ recordUuid,
1027
+ sessionId,
1028
+ requestBody
1029
+ );
1030
+ ```
1031
+
1032
+ ### Parameters
1033
+
1034
+ |Name | Type | Description | Notes|
1035
+ |------------- | ------------- | ------------- | -------------|
1036
+ | **requestBody** | **{ [key: string]: any | null; }**| | |
1037
+ | **recordUuid** | [**string**] | | defaults to undefined|
1038
+ | **sessionId** | [**string**] | | defaults to undefined|
1039
+
1040
+
1041
+ ### Return type
1042
+
1043
+ **ShowResponseMapStringObject**
1044
+
1045
+ ### Authorization
1046
+
1047
+ [bearerAuth](../README.md#bearerAuth)
1048
+
1049
+ ### HTTP request headers
1050
+
1051
+ - **Content-Type**: application/json
1052
+ - **Accept**: application/json
1053
+
1054
+
873
1055
  ### HTTP response details
874
1056
  | Status code | Description | Response headers |
875
1057
  |-------------|-------------|------------------|
@@ -931,6 +1113,64 @@ const { status, data } = await apiInstance.saveTemplate(
931
1113
  - **Accept**: application/json
932
1114
 
933
1115
 
1116
+ ### HTTP response details
1117
+ | Status code | Description | Response headers |
1118
+ |-------------|-------------|------------------|
1119
+ |**200** | OK | - |
1120
+ |**401** | Authentication is required or the token is invalid. | - |
1121
+ |**403** | The caller is missing a required role or scope. | - |
1122
+ |**404** | The requested resource was not found. | - |
1123
+ |**500** | An internal server error occurred. | - |
1124
+
1125
+ [[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)
1126
+
1127
+ # **startModuleFork**
1128
+ > ShowResponseMapStringObject startModuleFork(requestBody)
1129
+
1130
+ CMS v2 companies and pages only. Copies the installed module\'s published source into a playground session. Live code edits stay off the company site until save publishes a platform v2 private-app package and a rebuild compiles it.
1131
+
1132
+ ### Example
1133
+
1134
+ ```typescript
1135
+ import {
1136
+ CMSV2PagesApi,
1137
+ Configuration
1138
+ } from '@caraer/client';
1139
+
1140
+ const configuration = new Configuration();
1141
+ const apiInstance = new CMSV2PagesApi(configuration);
1142
+
1143
+ let recordUuid: string; // (default to undefined)
1144
+ let requestBody: { [key: string]: any | null; }; //
1145
+
1146
+ const { status, data } = await apiInstance.startModuleFork(
1147
+ recordUuid,
1148
+ requestBody
1149
+ );
1150
+ ```
1151
+
1152
+ ### Parameters
1153
+
1154
+ |Name | Type | Description | Notes|
1155
+ |------------- | ------------- | ------------- | -------------|
1156
+ | **requestBody** | **{ [key: string]: any | null; }**| | |
1157
+ | **recordUuid** | [**string**] | | defaults to undefined|
1158
+
1159
+
1160
+ ### Return type
1161
+
1162
+ **ShowResponseMapStringObject**
1163
+
1164
+ ### Authorization
1165
+
1166
+ [bearerAuth](../README.md#bearerAuth)
1167
+
1168
+ ### HTTP request headers
1169
+
1170
+ - **Content-Type**: application/json
1171
+ - **Accept**: application/json
1172
+
1173
+
934
1174
  ### HTTP response details
935
1175
  | Status code | Description | Response headers |
936
1176
  |-------------|-------------|------------------|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **op** | **string** | | [optional] [default to undefined]
9
9
  **moduleId** | **string** | | [optional] [default to undefined]
10
+ **ref** | **string** | | [optional] [default to undefined]
10
11
  **field** | **string** | | [optional] [default to undefined]
11
12
  **value** | **any** | | [optional] [default to undefined]
12
13
  **fields** | **{ [key: string]: any | null; }** | | [optional] [default to undefined]
@@ -25,6 +26,7 @@ import { CmsPagePatch } from '@caraer/client';
25
26
  const instance: CmsPagePatch = {
26
27
  op,
27
28
  moduleId,
29
+ ref,
28
30
  field,
29
31
  value,
30
32
  fields,
@@ -5,9 +5,9 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **xproperty** | **string** | | [optional] [default to undefined]
9
8
  **yproperty** | **string** | | [optional] [default to undefined]
10
9
  **ymetric** | **string** | | [optional] [default to undefined]
10
+ **xproperty** | **string** | | [optional] [default to undefined]
11
11
  **title** | **string** | | [optional] [default to undefined]
12
12
  **chartType** | **string** | | [optional] [default to undefined]
13
13
  **xProperty** | **string** | | [optional] [default to undefined]
@@ -20,9 +20,9 @@ Name | Type | Description | Notes
20
20
  import { ExistingWidgetSummary } from '@caraer/client';
21
21
 
22
22
  const instance: ExistingWidgetSummary = {
23
- xproperty,
24
23
  yproperty,
25
24
  ymetric,
25
+ xproperty,
26
26
  title,
27
27
  chartType,
28
28
  xProperty,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caraer/client",
3
- "version": "2.0.506",
3
+ "version": "2.0.508",
4
4
  "description": "Generated TypeScript client for the Caraer API",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {