@caraer/client 2.0.507 → 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.
- package/api.ts +337 -3
- package/dist/api.d.ts +180 -3
- package/dist/api.js +321 -0
- package/dist/esm/api.d.ts +180 -3
- package/dist/esm/api.js +321 -0
- package/docs/CMSV2PagesApi.md +240 -0
- package/docs/CmsPagePatch.md +2 -0
- package/docs/ExistingWidgetSummary.md +4 -4
- package/docs/SettingField.md +2 -2
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5084,6 +5084,43 @@ const CMSV2PagesApiAxiosParamCreator = function (configuration) {
|
|
|
5084
5084
|
options: localVarRequestOptions,
|
|
5085
5085
|
};
|
|
5086
5086
|
}),
|
|
5087
|
+
/**
|
|
5088
|
+
*
|
|
5089
|
+
* @summary Discard a Modify-this-module playground session
|
|
5090
|
+
* @param {string} recordUuid
|
|
5091
|
+
* @param {string} sessionId
|
|
5092
|
+
* @param {*} [options] Override http request option.
|
|
5093
|
+
* @throws {RequiredError}
|
|
5094
|
+
*/
|
|
5095
|
+
discardModuleFork: (recordUuid_1, sessionId_1, ...args_1) => __awaiter(this, [recordUuid_1, sessionId_1, ...args_1], void 0, function* (recordUuid, sessionId, options = {}) {
|
|
5096
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
5097
|
+
(0, common_1.assertParamExists)('discardModuleFork', 'recordUuid', recordUuid);
|
|
5098
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
5099
|
+
(0, common_1.assertParamExists)('discardModuleFork', 'sessionId', sessionId);
|
|
5100
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}`
|
|
5101
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
|
|
5102
|
+
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
5103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5104
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5105
|
+
let baseOptions;
|
|
5106
|
+
if (configuration) {
|
|
5107
|
+
baseOptions = configuration.baseOptions;
|
|
5108
|
+
}
|
|
5109
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5110
|
+
const localVarHeaderParameter = {};
|
|
5111
|
+
const localVarQueryParameter = {};
|
|
5112
|
+
// authentication bearerAuth required
|
|
5113
|
+
// http bearer authentication required
|
|
5114
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5115
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
5116
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5117
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5118
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5119
|
+
return {
|
|
5120
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5121
|
+
options: localVarRequestOptions,
|
|
5122
|
+
};
|
|
5123
|
+
}),
|
|
5087
5124
|
/**
|
|
5088
5125
|
* 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.
|
|
5089
5126
|
* @summary Create or reuse the custom 404 page
|
|
@@ -5406,6 +5443,48 @@ const CMSV2PagesApiAxiosParamCreator = function (configuration) {
|
|
|
5406
5443
|
options: localVarRequestOptions,
|
|
5407
5444
|
};
|
|
5408
5445
|
}),
|
|
5446
|
+
/**
|
|
5447
|
+
*
|
|
5448
|
+
* @summary Rewrite forked module source from a prompt
|
|
5449
|
+
* @param {string} recordUuid
|
|
5450
|
+
* @param {string} sessionId
|
|
5451
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
5452
|
+
* @param {*} [options] Override http request option.
|
|
5453
|
+
* @throws {RequiredError}
|
|
5454
|
+
*/
|
|
5455
|
+
promptModuleFork: (recordUuid_1, sessionId_1, requestBody_1, ...args_1) => __awaiter(this, [recordUuid_1, sessionId_1, requestBody_1, ...args_1], void 0, function* (recordUuid, sessionId, requestBody, options = {}) {
|
|
5456
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
5457
|
+
(0, common_1.assertParamExists)('promptModuleFork', 'recordUuid', recordUuid);
|
|
5458
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
5459
|
+
(0, common_1.assertParamExists)('promptModuleFork', 'sessionId', sessionId);
|
|
5460
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
5461
|
+
(0, common_1.assertParamExists)('promptModuleFork', 'requestBody', requestBody);
|
|
5462
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/prompt`
|
|
5463
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
|
|
5464
|
+
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
5465
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5466
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5467
|
+
let baseOptions;
|
|
5468
|
+
if (configuration) {
|
|
5469
|
+
baseOptions = configuration.baseOptions;
|
|
5470
|
+
}
|
|
5471
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5472
|
+
const localVarHeaderParameter = {};
|
|
5473
|
+
const localVarQueryParameter = {};
|
|
5474
|
+
// authentication bearerAuth required
|
|
5475
|
+
// http bearer authentication required
|
|
5476
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5477
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5478
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
5479
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5480
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5481
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5482
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
5483
|
+
return {
|
|
5484
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5485
|
+
options: localVarRequestOptions,
|
|
5486
|
+
};
|
|
5487
|
+
}),
|
|
5409
5488
|
/**
|
|
5410
5489
|
* Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
|
|
5411
5490
|
* @summary Publish one locale, or all of them
|
|
@@ -5572,6 +5651,48 @@ const CMSV2PagesApiAxiosParamCreator = function (configuration) {
|
|
|
5572
5651
|
options: localVarRequestOptions,
|
|
5573
5652
|
};
|
|
5574
5653
|
}),
|
|
5654
|
+
/**
|
|
5655
|
+
* Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
|
|
5656
|
+
* @summary Publish the forked module into a private app
|
|
5657
|
+
* @param {string} recordUuid
|
|
5658
|
+
* @param {string} sessionId
|
|
5659
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
5660
|
+
* @param {*} [options] Override http request option.
|
|
5661
|
+
* @throws {RequiredError}
|
|
5662
|
+
*/
|
|
5663
|
+
saveModuleFork: (recordUuid_1, sessionId_1, requestBody_1, ...args_1) => __awaiter(this, [recordUuid_1, sessionId_1, requestBody_1, ...args_1], void 0, function* (recordUuid, sessionId, requestBody, options = {}) {
|
|
5664
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
5665
|
+
(0, common_1.assertParamExists)('saveModuleFork', 'recordUuid', recordUuid);
|
|
5666
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
5667
|
+
(0, common_1.assertParamExists)('saveModuleFork', 'sessionId', sessionId);
|
|
5668
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
5669
|
+
(0, common_1.assertParamExists)('saveModuleFork', 'requestBody', requestBody);
|
|
5670
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/save`
|
|
5671
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
|
|
5672
|
+
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
5673
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5674
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5675
|
+
let baseOptions;
|
|
5676
|
+
if (configuration) {
|
|
5677
|
+
baseOptions = configuration.baseOptions;
|
|
5678
|
+
}
|
|
5679
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5680
|
+
const localVarHeaderParameter = {};
|
|
5681
|
+
const localVarQueryParameter = {};
|
|
5682
|
+
// authentication bearerAuth required
|
|
5683
|
+
// http bearer authentication required
|
|
5684
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5685
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5686
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
5687
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5688
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5689
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5690
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
5691
|
+
return {
|
|
5692
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5693
|
+
options: localVarRequestOptions,
|
|
5694
|
+
};
|
|
5695
|
+
}),
|
|
5575
5696
|
/**
|
|
5576
5697
|
*
|
|
5577
5698
|
* @summary Replace a CMS v2 object template
|
|
@@ -5614,6 +5735,44 @@ const CMSV2PagesApiAxiosParamCreator = function (configuration) {
|
|
|
5614
5735
|
options: localVarRequestOptions,
|
|
5615
5736
|
};
|
|
5616
5737
|
}),
|
|
5738
|
+
/**
|
|
5739
|
+
* 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.
|
|
5740
|
+
* @summary Start a Modify-this-module playground session
|
|
5741
|
+
* @param {string} recordUuid
|
|
5742
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
5743
|
+
* @param {*} [options] Override http request option.
|
|
5744
|
+
* @throws {RequiredError}
|
|
5745
|
+
*/
|
|
5746
|
+
startModuleFork: (recordUuid_1, requestBody_1, ...args_1) => __awaiter(this, [recordUuid_1, requestBody_1, ...args_1], void 0, function* (recordUuid, requestBody, options = {}) {
|
|
5747
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
5748
|
+
(0, common_1.assertParamExists)('startModuleFork', 'recordUuid', recordUuid);
|
|
5749
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
5750
|
+
(0, common_1.assertParamExists)('startModuleFork', 'requestBody', requestBody);
|
|
5751
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions`
|
|
5752
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
|
|
5753
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5754
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5755
|
+
let baseOptions;
|
|
5756
|
+
if (configuration) {
|
|
5757
|
+
baseOptions = configuration.baseOptions;
|
|
5758
|
+
}
|
|
5759
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5760
|
+
const localVarHeaderParameter = {};
|
|
5761
|
+
const localVarQueryParameter = {};
|
|
5762
|
+
// authentication bearerAuth required
|
|
5763
|
+
// http bearer authentication required
|
|
5764
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5765
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5766
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
5767
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5768
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5769
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5770
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
5771
|
+
return {
|
|
5772
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5773
|
+
options: localVarRequestOptions,
|
|
5774
|
+
};
|
|
5775
|
+
}),
|
|
5617
5776
|
/**
|
|
5618
5777
|
*
|
|
5619
5778
|
* @summary Take one locale offline
|
|
@@ -5731,6 +5890,23 @@ const CMSV2PagesApiFp = function (configuration) {
|
|
|
5731
5890
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5732
5891
|
});
|
|
5733
5892
|
},
|
|
5893
|
+
/**
|
|
5894
|
+
*
|
|
5895
|
+
* @summary Discard a Modify-this-module playground session
|
|
5896
|
+
* @param {string} recordUuid
|
|
5897
|
+
* @param {string} sessionId
|
|
5898
|
+
* @param {*} [options] Override http request option.
|
|
5899
|
+
* @throws {RequiredError}
|
|
5900
|
+
*/
|
|
5901
|
+
discardModuleFork(recordUuid, sessionId, options) {
|
|
5902
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5903
|
+
var _a, _b, _c;
|
|
5904
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.discardModuleFork(recordUuid, sessionId, options);
|
|
5905
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5906
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.discardModuleFork']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5907
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5908
|
+
});
|
|
5909
|
+
},
|
|
5734
5910
|
/**
|
|
5735
5911
|
* 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.
|
|
5736
5912
|
* @summary Create or reuse the custom 404 page
|
|
@@ -5881,6 +6057,24 @@ const CMSV2PagesApiFp = function (configuration) {
|
|
|
5881
6057
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5882
6058
|
});
|
|
5883
6059
|
},
|
|
6060
|
+
/**
|
|
6061
|
+
*
|
|
6062
|
+
* @summary Rewrite forked module source from a prompt
|
|
6063
|
+
* @param {string} recordUuid
|
|
6064
|
+
* @param {string} sessionId
|
|
6065
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6066
|
+
* @param {*} [options] Override http request option.
|
|
6067
|
+
* @throws {RequiredError}
|
|
6068
|
+
*/
|
|
6069
|
+
promptModuleFork(recordUuid, sessionId, requestBody, options) {
|
|
6070
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6071
|
+
var _a, _b, _c;
|
|
6072
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.promptModuleFork(recordUuid, sessionId, requestBody, options);
|
|
6073
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6074
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.promptModuleFork']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6075
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6076
|
+
});
|
|
6077
|
+
},
|
|
5884
6078
|
/**
|
|
5885
6079
|
* Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
|
|
5886
6080
|
* @summary Publish one locale, or all of them
|
|
@@ -5953,6 +6147,24 @@ const CMSV2PagesApiFp = function (configuration) {
|
|
|
5953
6147
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5954
6148
|
});
|
|
5955
6149
|
},
|
|
6150
|
+
/**
|
|
6151
|
+
* Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
|
|
6152
|
+
* @summary Publish the forked module into a private app
|
|
6153
|
+
* @param {string} recordUuid
|
|
6154
|
+
* @param {string} sessionId
|
|
6155
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6156
|
+
* @param {*} [options] Override http request option.
|
|
6157
|
+
* @throws {RequiredError}
|
|
6158
|
+
*/
|
|
6159
|
+
saveModuleFork(recordUuid, sessionId, requestBody, options) {
|
|
6160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6161
|
+
var _a, _b, _c;
|
|
6162
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.saveModuleFork(recordUuid, sessionId, requestBody, options);
|
|
6163
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6164
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.saveModuleFork']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6165
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6166
|
+
});
|
|
6167
|
+
},
|
|
5956
6168
|
/**
|
|
5957
6169
|
*
|
|
5958
6170
|
* @summary Replace a CMS v2 object template
|
|
@@ -5971,6 +6183,23 @@ const CMSV2PagesApiFp = function (configuration) {
|
|
|
5971
6183
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5972
6184
|
});
|
|
5973
6185
|
},
|
|
6186
|
+
/**
|
|
6187
|
+
* 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.
|
|
6188
|
+
* @summary Start a Modify-this-module playground session
|
|
6189
|
+
* @param {string} recordUuid
|
|
6190
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6191
|
+
* @param {*} [options] Override http request option.
|
|
6192
|
+
* @throws {RequiredError}
|
|
6193
|
+
*/
|
|
6194
|
+
startModuleFork(recordUuid, requestBody, options) {
|
|
6195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6196
|
+
var _a, _b, _c;
|
|
6197
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startModuleFork(recordUuid, requestBody, options);
|
|
6198
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6199
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.startModuleFork']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6200
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6201
|
+
});
|
|
6202
|
+
},
|
|
5974
6203
|
/**
|
|
5975
6204
|
*
|
|
5976
6205
|
* @summary Take one locale offline
|
|
@@ -6036,6 +6265,17 @@ const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
6036
6265
|
createTranslation(recordUuid, key, options) {
|
|
6037
6266
|
return localVarFp.createTranslation(recordUuid, key, options).then((request) => request(axios, basePath));
|
|
6038
6267
|
},
|
|
6268
|
+
/**
|
|
6269
|
+
*
|
|
6270
|
+
* @summary Discard a Modify-this-module playground session
|
|
6271
|
+
* @param {string} recordUuid
|
|
6272
|
+
* @param {string} sessionId
|
|
6273
|
+
* @param {*} [options] Override http request option.
|
|
6274
|
+
* @throws {RequiredError}
|
|
6275
|
+
*/
|
|
6276
|
+
discardModuleFork(recordUuid, sessionId, options) {
|
|
6277
|
+
return localVarFp.discardModuleFork(recordUuid, sessionId, options).then((request) => request(axios, basePath));
|
|
6278
|
+
},
|
|
6039
6279
|
/**
|
|
6040
6280
|
* 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.
|
|
6041
6281
|
* @summary Create or reuse the custom 404 page
|
|
@@ -6132,6 +6372,18 @@ const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
6132
6372
|
previewLink(recordUuid, locale, state, options) {
|
|
6133
6373
|
return localVarFp.previewLink(recordUuid, locale, state, options).then((request) => request(axios, basePath));
|
|
6134
6374
|
},
|
|
6375
|
+
/**
|
|
6376
|
+
*
|
|
6377
|
+
* @summary Rewrite forked module source from a prompt
|
|
6378
|
+
* @param {string} recordUuid
|
|
6379
|
+
* @param {string} sessionId
|
|
6380
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6381
|
+
* @param {*} [options] Override http request option.
|
|
6382
|
+
* @throws {RequiredError}
|
|
6383
|
+
*/
|
|
6384
|
+
promptModuleFork(recordUuid, sessionId, requestBody, options) {
|
|
6385
|
+
return localVarFp.promptModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
|
|
6386
|
+
},
|
|
6135
6387
|
/**
|
|
6136
6388
|
* Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
|
|
6137
6389
|
* @summary Publish one locale, or all of them
|
|
@@ -6180,6 +6432,18 @@ const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
6180
6432
|
saveMeta(recordUuid, requestBody, locale, options) {
|
|
6181
6433
|
return localVarFp.saveMeta(recordUuid, requestBody, locale, options).then((request) => request(axios, basePath));
|
|
6182
6434
|
},
|
|
6435
|
+
/**
|
|
6436
|
+
* Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
|
|
6437
|
+
* @summary Publish the forked module into a private app
|
|
6438
|
+
* @param {string} recordUuid
|
|
6439
|
+
* @param {string} sessionId
|
|
6440
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6441
|
+
* @param {*} [options] Override http request option.
|
|
6442
|
+
* @throws {RequiredError}
|
|
6443
|
+
*/
|
|
6444
|
+
saveModuleFork(recordUuid, sessionId, requestBody, options) {
|
|
6445
|
+
return localVarFp.saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
|
|
6446
|
+
},
|
|
6183
6447
|
/**
|
|
6184
6448
|
*
|
|
6185
6449
|
* @summary Replace a CMS v2 object template
|
|
@@ -6192,6 +6456,17 @@ const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
6192
6456
|
saveTemplate(objectUuid, cmsPageDocument, locale, options) {
|
|
6193
6457
|
return localVarFp.saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(axios, basePath));
|
|
6194
6458
|
},
|
|
6459
|
+
/**
|
|
6460
|
+
* 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.
|
|
6461
|
+
* @summary Start a Modify-this-module playground session
|
|
6462
|
+
* @param {string} recordUuid
|
|
6463
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6464
|
+
* @param {*} [options] Override http request option.
|
|
6465
|
+
* @throws {RequiredError}
|
|
6466
|
+
*/
|
|
6467
|
+
startModuleFork(recordUuid, requestBody, options) {
|
|
6468
|
+
return localVarFp.startModuleFork(recordUuid, requestBody, options).then((request) => request(axios, basePath));
|
|
6469
|
+
},
|
|
6195
6470
|
/**
|
|
6196
6471
|
*
|
|
6197
6472
|
* @summary Take one locale offline
|
|
@@ -6243,6 +6518,17 @@ class CMSV2PagesApi extends base_1.BaseAPI {
|
|
|
6243
6518
|
createTranslation(recordUuid, key, options) {
|
|
6244
6519
|
return (0, exports.CMSV2PagesApiFp)(this.configuration).createTranslation(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
|
|
6245
6520
|
}
|
|
6521
|
+
/**
|
|
6522
|
+
*
|
|
6523
|
+
* @summary Discard a Modify-this-module playground session
|
|
6524
|
+
* @param {string} recordUuid
|
|
6525
|
+
* @param {string} sessionId
|
|
6526
|
+
* @param {*} [options] Override http request option.
|
|
6527
|
+
* @throws {RequiredError}
|
|
6528
|
+
*/
|
|
6529
|
+
discardModuleFork(recordUuid, sessionId, options) {
|
|
6530
|
+
return (0, exports.CMSV2PagesApiFp)(this.configuration).discardModuleFork(recordUuid, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
6531
|
+
}
|
|
6246
6532
|
/**
|
|
6247
6533
|
* 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.
|
|
6248
6534
|
* @summary Create or reuse the custom 404 page
|
|
@@ -6339,6 +6625,18 @@ class CMSV2PagesApi extends base_1.BaseAPI {
|
|
|
6339
6625
|
previewLink(recordUuid, locale, state, options) {
|
|
6340
6626
|
return (0, exports.CMSV2PagesApiFp)(this.configuration).previewLink(recordUuid, locale, state, options).then((request) => request(this.axios, this.basePath));
|
|
6341
6627
|
}
|
|
6628
|
+
/**
|
|
6629
|
+
*
|
|
6630
|
+
* @summary Rewrite forked module source from a prompt
|
|
6631
|
+
* @param {string} recordUuid
|
|
6632
|
+
* @param {string} sessionId
|
|
6633
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6634
|
+
* @param {*} [options] Override http request option.
|
|
6635
|
+
* @throws {RequiredError}
|
|
6636
|
+
*/
|
|
6637
|
+
promptModuleFork(recordUuid, sessionId, requestBody, options) {
|
|
6638
|
+
return (0, exports.CMSV2PagesApiFp)(this.configuration).promptModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6639
|
+
}
|
|
6342
6640
|
/**
|
|
6343
6641
|
* Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
|
|
6344
6642
|
* @summary Publish one locale, or all of them
|
|
@@ -6387,6 +6685,18 @@ class CMSV2PagesApi extends base_1.BaseAPI {
|
|
|
6387
6685
|
saveMeta(recordUuid, requestBody, locale, options) {
|
|
6388
6686
|
return (0, exports.CMSV2PagesApiFp)(this.configuration).saveMeta(recordUuid, requestBody, locale, options).then((request) => request(this.axios, this.basePath));
|
|
6389
6687
|
}
|
|
6688
|
+
/**
|
|
6689
|
+
* Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
|
|
6690
|
+
* @summary Publish the forked module into a private app
|
|
6691
|
+
* @param {string} recordUuid
|
|
6692
|
+
* @param {string} sessionId
|
|
6693
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6694
|
+
* @param {*} [options] Override http request option.
|
|
6695
|
+
* @throws {RequiredError}
|
|
6696
|
+
*/
|
|
6697
|
+
saveModuleFork(recordUuid, sessionId, requestBody, options) {
|
|
6698
|
+
return (0, exports.CMSV2PagesApiFp)(this.configuration).saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6699
|
+
}
|
|
6390
6700
|
/**
|
|
6391
6701
|
*
|
|
6392
6702
|
* @summary Replace a CMS v2 object template
|
|
@@ -6399,6 +6709,17 @@ class CMSV2PagesApi extends base_1.BaseAPI {
|
|
|
6399
6709
|
saveTemplate(objectUuid, cmsPageDocument, locale, options) {
|
|
6400
6710
|
return (0, exports.CMSV2PagesApiFp)(this.configuration).saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(this.axios, this.basePath));
|
|
6401
6711
|
}
|
|
6712
|
+
/**
|
|
6713
|
+
* 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.
|
|
6714
|
+
* @summary Start a Modify-this-module playground session
|
|
6715
|
+
* @param {string} recordUuid
|
|
6716
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6717
|
+
* @param {*} [options] Override http request option.
|
|
6718
|
+
* @throws {RequiredError}
|
|
6719
|
+
*/
|
|
6720
|
+
startModuleFork(recordUuid, requestBody, options) {
|
|
6721
|
+
return (0, exports.CMSV2PagesApiFp)(this.configuration).startModuleFork(recordUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6722
|
+
}
|
|
6402
6723
|
/**
|
|
6403
6724
|
*
|
|
6404
6725
|
* @summary Take one locale offline
|