@caraer/client 2.0.507 → 2.0.509
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 +2 -2
- package/docs/Record.md +2 -2
- package/docs/SettingField.md +2 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1447,6 +1447,7 @@ export interface CmsPageModuleInstance {
|
|
|
1447
1447
|
export interface CmsPagePatch {
|
|
1448
1448
|
'op'?: string;
|
|
1449
1449
|
'moduleId'?: string;
|
|
1450
|
+
'ref'?: string;
|
|
1450
1451
|
'field'?: string;
|
|
1451
1452
|
'value'?: any;
|
|
1452
1453
|
'fields'?: { [key: string]: any | null; };
|
|
@@ -2576,9 +2577,9 @@ export const EventRsvpRequestScopeEnum = {
|
|
|
2576
2577
|
export type EventRsvpRequestScopeEnum = typeof EventRsvpRequestScopeEnum[keyof typeof EventRsvpRequestScopeEnum];
|
|
2577
2578
|
|
|
2578
2579
|
export interface ExistingWidgetSummary {
|
|
2579
|
-
'xproperty'?: string;
|
|
2580
2580
|
'ymetric'?: string;
|
|
2581
2581
|
'yproperty'?: string;
|
|
2582
|
+
'xproperty'?: string;
|
|
2582
2583
|
'title'?: string;
|
|
2583
2584
|
'chartType'?: string;
|
|
2584
2585
|
'xProperty'?: string;
|
|
@@ -3490,9 +3491,9 @@ export interface ModelRecord {
|
|
|
3490
3491
|
'deleted'?: boolean;
|
|
3491
3492
|
'complete'?: boolean;
|
|
3492
3493
|
'uuid': string;
|
|
3494
|
+
'user'?: PublicUserDTO;
|
|
3493
3495
|
'properties'?: Array<FilledProperty>;
|
|
3494
3496
|
'objects'?: { [key: string]: any | null; };
|
|
3495
|
-
'user'?: PublicUserDTO;
|
|
3496
3497
|
}
|
|
3497
3498
|
export interface MultiFile extends PropertyFormat {
|
|
3498
3499
|
}
|
|
@@ -5686,8 +5687,8 @@ export interface SettingField {
|
|
|
5686
5687
|
'hidden'?: boolean;
|
|
5687
5688
|
'disabled'?: boolean;
|
|
5688
5689
|
'options'?: Array<SettingOption>;
|
|
5689
|
-
'defaultValue'?: any;
|
|
5690
5690
|
'value'?: any;
|
|
5691
|
+
'defaultValue'?: any;
|
|
5691
5692
|
}
|
|
5692
5693
|
|
|
5693
5694
|
export const SettingFieldTypeEnum = {
|
|
@@ -13362,6 +13363,48 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
13362
13363
|
options: localVarRequestOptions,
|
|
13363
13364
|
};
|
|
13364
13365
|
},
|
|
13366
|
+
/**
|
|
13367
|
+
*
|
|
13368
|
+
* @summary Discard a Modify-this-module playground session
|
|
13369
|
+
* @param {string} recordUuid
|
|
13370
|
+
* @param {string} sessionId
|
|
13371
|
+
* @param {*} [options] Override http request option.
|
|
13372
|
+
* @throws {RequiredError}
|
|
13373
|
+
*/
|
|
13374
|
+
discardModuleFork: async (recordUuid: string, sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13375
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
13376
|
+
assertParamExists('discardModuleFork', 'recordUuid', recordUuid)
|
|
13377
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
13378
|
+
assertParamExists('discardModuleFork', 'sessionId', sessionId)
|
|
13379
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}`
|
|
13380
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
|
|
13381
|
+
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
13382
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13383
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13384
|
+
let baseOptions;
|
|
13385
|
+
if (configuration) {
|
|
13386
|
+
baseOptions = configuration.baseOptions;
|
|
13387
|
+
}
|
|
13388
|
+
|
|
13389
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13390
|
+
const localVarHeaderParameter = {} as any;
|
|
13391
|
+
const localVarQueryParameter = {} as any;
|
|
13392
|
+
|
|
13393
|
+
// authentication bearerAuth required
|
|
13394
|
+
// http bearer authentication required
|
|
13395
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13396
|
+
|
|
13397
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
13398
|
+
|
|
13399
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13400
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13401
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13402
|
+
|
|
13403
|
+
return {
|
|
13404
|
+
url: toPathString(localVarUrlObj),
|
|
13405
|
+
options: localVarRequestOptions,
|
|
13406
|
+
};
|
|
13407
|
+
},
|
|
13365
13408
|
/**
|
|
13366
13409
|
* 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.
|
|
13367
13410
|
* @summary Create or reuse the custom 404 page
|
|
@@ -13735,6 +13778,53 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
13735
13778
|
options: localVarRequestOptions,
|
|
13736
13779
|
};
|
|
13737
13780
|
},
|
|
13781
|
+
/**
|
|
13782
|
+
*
|
|
13783
|
+
* @summary Rewrite forked module source from a prompt
|
|
13784
|
+
* @param {string} recordUuid
|
|
13785
|
+
* @param {string} sessionId
|
|
13786
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
13787
|
+
* @param {*} [options] Override http request option.
|
|
13788
|
+
* @throws {RequiredError}
|
|
13789
|
+
*/
|
|
13790
|
+
promptModuleFork: async (recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13791
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
13792
|
+
assertParamExists('promptModuleFork', 'recordUuid', recordUuid)
|
|
13793
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
13794
|
+
assertParamExists('promptModuleFork', 'sessionId', sessionId)
|
|
13795
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
13796
|
+
assertParamExists('promptModuleFork', 'requestBody', requestBody)
|
|
13797
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/prompt`
|
|
13798
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
|
|
13799
|
+
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
13800
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13801
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13802
|
+
let baseOptions;
|
|
13803
|
+
if (configuration) {
|
|
13804
|
+
baseOptions = configuration.baseOptions;
|
|
13805
|
+
}
|
|
13806
|
+
|
|
13807
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13808
|
+
const localVarHeaderParameter = {} as any;
|
|
13809
|
+
const localVarQueryParameter = {} as any;
|
|
13810
|
+
|
|
13811
|
+
// authentication bearerAuth required
|
|
13812
|
+
// http bearer authentication required
|
|
13813
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13814
|
+
|
|
13815
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13816
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
13817
|
+
|
|
13818
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13819
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13820
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13821
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
13822
|
+
|
|
13823
|
+
return {
|
|
13824
|
+
url: toPathString(localVarUrlObj),
|
|
13825
|
+
options: localVarRequestOptions,
|
|
13826
|
+
};
|
|
13827
|
+
},
|
|
13738
13828
|
/**
|
|
13739
13829
|
* Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
|
|
13740
13830
|
* @summary Publish one locale, or all of them
|
|
@@ -13926,6 +14016,53 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
13926
14016
|
options: localVarRequestOptions,
|
|
13927
14017
|
};
|
|
13928
14018
|
},
|
|
14019
|
+
/**
|
|
14020
|
+
* Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
|
|
14021
|
+
* @summary Publish the forked module into a private app
|
|
14022
|
+
* @param {string} recordUuid
|
|
14023
|
+
* @param {string} sessionId
|
|
14024
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14025
|
+
* @param {*} [options] Override http request option.
|
|
14026
|
+
* @throws {RequiredError}
|
|
14027
|
+
*/
|
|
14028
|
+
saveModuleFork: async (recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14029
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
14030
|
+
assertParamExists('saveModuleFork', 'recordUuid', recordUuid)
|
|
14031
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
14032
|
+
assertParamExists('saveModuleFork', 'sessionId', sessionId)
|
|
14033
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
14034
|
+
assertParamExists('saveModuleFork', 'requestBody', requestBody)
|
|
14035
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/save`
|
|
14036
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
|
|
14037
|
+
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
14038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14039
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14040
|
+
let baseOptions;
|
|
14041
|
+
if (configuration) {
|
|
14042
|
+
baseOptions = configuration.baseOptions;
|
|
14043
|
+
}
|
|
14044
|
+
|
|
14045
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
14046
|
+
const localVarHeaderParameter = {} as any;
|
|
14047
|
+
const localVarQueryParameter = {} as any;
|
|
14048
|
+
|
|
14049
|
+
// authentication bearerAuth required
|
|
14050
|
+
// http bearer authentication required
|
|
14051
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14052
|
+
|
|
14053
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14054
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
14055
|
+
|
|
14056
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14057
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14058
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14059
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
14060
|
+
|
|
14061
|
+
return {
|
|
14062
|
+
url: toPathString(localVarUrlObj),
|
|
14063
|
+
options: localVarRequestOptions,
|
|
14064
|
+
};
|
|
14065
|
+
},
|
|
13929
14066
|
/**
|
|
13930
14067
|
*
|
|
13931
14068
|
* @summary Replace a CMS v2 object template
|
|
@@ -13974,6 +14111,49 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
13974
14111
|
options: localVarRequestOptions,
|
|
13975
14112
|
};
|
|
13976
14113
|
},
|
|
14114
|
+
/**
|
|
14115
|
+
* 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.
|
|
14116
|
+
* @summary Start a Modify-this-module playground session
|
|
14117
|
+
* @param {string} recordUuid
|
|
14118
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14119
|
+
* @param {*} [options] Override http request option.
|
|
14120
|
+
* @throws {RequiredError}
|
|
14121
|
+
*/
|
|
14122
|
+
startModuleFork: async (recordUuid: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14123
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
14124
|
+
assertParamExists('startModuleFork', 'recordUuid', recordUuid)
|
|
14125
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
14126
|
+
assertParamExists('startModuleFork', 'requestBody', requestBody)
|
|
14127
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions`
|
|
14128
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
|
|
14129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14131
|
+
let baseOptions;
|
|
14132
|
+
if (configuration) {
|
|
14133
|
+
baseOptions = configuration.baseOptions;
|
|
14134
|
+
}
|
|
14135
|
+
|
|
14136
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
14137
|
+
const localVarHeaderParameter = {} as any;
|
|
14138
|
+
const localVarQueryParameter = {} as any;
|
|
14139
|
+
|
|
14140
|
+
// authentication bearerAuth required
|
|
14141
|
+
// http bearer authentication required
|
|
14142
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14143
|
+
|
|
14144
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14145
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
14146
|
+
|
|
14147
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14149
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14150
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
14151
|
+
|
|
14152
|
+
return {
|
|
14153
|
+
url: toPathString(localVarUrlObj),
|
|
14154
|
+
options: localVarRequestOptions,
|
|
14155
|
+
};
|
|
14156
|
+
},
|
|
13977
14157
|
/**
|
|
13978
14158
|
*
|
|
13979
14159
|
* @summary Take one locale offline
|
|
@@ -14096,6 +14276,20 @@ export const CMSV2PagesApiFp = function(configuration?: Configuration) {
|
|
|
14096
14276
|
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.createTranslation']?.[localVarOperationServerIndex]?.url;
|
|
14097
14277
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14098
14278
|
},
|
|
14279
|
+
/**
|
|
14280
|
+
*
|
|
14281
|
+
* @summary Discard a Modify-this-module playground session
|
|
14282
|
+
* @param {string} recordUuid
|
|
14283
|
+
* @param {string} sessionId
|
|
14284
|
+
* @param {*} [options] Override http request option.
|
|
14285
|
+
* @throws {RequiredError}
|
|
14286
|
+
*/
|
|
14287
|
+
async discardModuleFork(recordUuid: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseMapStringObject>> {
|
|
14288
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.discardModuleFork(recordUuid, sessionId, options);
|
|
14289
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14290
|
+
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.discardModuleFork']?.[localVarOperationServerIndex]?.url;
|
|
14291
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14292
|
+
},
|
|
14099
14293
|
/**
|
|
14100
14294
|
* 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.
|
|
14101
14295
|
* @summary Create or reuse the custom 404 page
|
|
@@ -14219,6 +14413,21 @@ export const CMSV2PagesApiFp = function(configuration?: Configuration) {
|
|
|
14219
14413
|
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.previewLink']?.[localVarOperationServerIndex]?.url;
|
|
14220
14414
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14221
14415
|
},
|
|
14416
|
+
/**
|
|
14417
|
+
*
|
|
14418
|
+
* @summary Rewrite forked module source from a prompt
|
|
14419
|
+
* @param {string} recordUuid
|
|
14420
|
+
* @param {string} sessionId
|
|
14421
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14422
|
+
* @param {*} [options] Override http request option.
|
|
14423
|
+
* @throws {RequiredError}
|
|
14424
|
+
*/
|
|
14425
|
+
async promptModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseMapStringObject>> {
|
|
14426
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.promptModuleFork(recordUuid, sessionId, requestBody, options);
|
|
14427
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14428
|
+
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.promptModuleFork']?.[localVarOperationServerIndex]?.url;
|
|
14429
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14430
|
+
},
|
|
14222
14431
|
/**
|
|
14223
14432
|
* Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
|
|
14224
14433
|
* @summary Publish one locale, or all of them
|
|
@@ -14279,6 +14488,21 @@ export const CMSV2PagesApiFp = function(configuration?: Configuration) {
|
|
|
14279
14488
|
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.saveMeta']?.[localVarOperationServerIndex]?.url;
|
|
14280
14489
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14281
14490
|
},
|
|
14491
|
+
/**
|
|
14492
|
+
* Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
|
|
14493
|
+
* @summary Publish the forked module into a private app
|
|
14494
|
+
* @param {string} recordUuid
|
|
14495
|
+
* @param {string} sessionId
|
|
14496
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14497
|
+
* @param {*} [options] Override http request option.
|
|
14498
|
+
* @throws {RequiredError}
|
|
14499
|
+
*/
|
|
14500
|
+
async saveModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseMapStringObject>> {
|
|
14501
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.saveModuleFork(recordUuid, sessionId, requestBody, options);
|
|
14502
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14503
|
+
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.saveModuleFork']?.[localVarOperationServerIndex]?.url;
|
|
14504
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14505
|
+
},
|
|
14282
14506
|
/**
|
|
14283
14507
|
*
|
|
14284
14508
|
* @summary Replace a CMS v2 object template
|
|
@@ -14294,6 +14518,20 @@ export const CMSV2PagesApiFp = function(configuration?: Configuration) {
|
|
|
14294
14518
|
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.saveTemplate']?.[localVarOperationServerIndex]?.url;
|
|
14295
14519
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14296
14520
|
},
|
|
14521
|
+
/**
|
|
14522
|
+
* 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.
|
|
14523
|
+
* @summary Start a Modify-this-module playground session
|
|
14524
|
+
* @param {string} recordUuid
|
|
14525
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14526
|
+
* @param {*} [options] Override http request option.
|
|
14527
|
+
* @throws {RequiredError}
|
|
14528
|
+
*/
|
|
14529
|
+
async startModuleFork(recordUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseMapStringObject>> {
|
|
14530
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startModuleFork(recordUuid, requestBody, options);
|
|
14531
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14532
|
+
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.startModuleFork']?.[localVarOperationServerIndex]?.url;
|
|
14533
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14534
|
+
},
|
|
14297
14535
|
/**
|
|
14298
14536
|
*
|
|
14299
14537
|
* @summary Take one locale offline
|
|
@@ -14353,6 +14591,17 @@ export const CMSV2PagesApiFactory = function (configuration?: Configuration, bas
|
|
|
14353
14591
|
createTranslation(recordUuid: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseCmsPageDTO> {
|
|
14354
14592
|
return localVarFp.createTranslation(recordUuid, key, options).then((request) => request(axios, basePath));
|
|
14355
14593
|
},
|
|
14594
|
+
/**
|
|
14595
|
+
*
|
|
14596
|
+
* @summary Discard a Modify-this-module playground session
|
|
14597
|
+
* @param {string} recordUuid
|
|
14598
|
+
* @param {string} sessionId
|
|
14599
|
+
* @param {*} [options] Override http request option.
|
|
14600
|
+
* @throws {RequiredError}
|
|
14601
|
+
*/
|
|
14602
|
+
discardModuleFork(recordUuid: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject> {
|
|
14603
|
+
return localVarFp.discardModuleFork(recordUuid, sessionId, options).then((request) => request(axios, basePath));
|
|
14604
|
+
},
|
|
14356
14605
|
/**
|
|
14357
14606
|
* 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.
|
|
14358
14607
|
* @summary Create or reuse the custom 404 page
|
|
@@ -14449,6 +14698,18 @@ export const CMSV2PagesApiFactory = function (configuration?: Configuration, bas
|
|
|
14449
14698
|
previewLink(recordUuid: string, locale?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject> {
|
|
14450
14699
|
return localVarFp.previewLink(recordUuid, locale, state, options).then((request) => request(axios, basePath));
|
|
14451
14700
|
},
|
|
14701
|
+
/**
|
|
14702
|
+
*
|
|
14703
|
+
* @summary Rewrite forked module source from a prompt
|
|
14704
|
+
* @param {string} recordUuid
|
|
14705
|
+
* @param {string} sessionId
|
|
14706
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14707
|
+
* @param {*} [options] Override http request option.
|
|
14708
|
+
* @throws {RequiredError}
|
|
14709
|
+
*/
|
|
14710
|
+
promptModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject> {
|
|
14711
|
+
return localVarFp.promptModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
|
|
14712
|
+
},
|
|
14452
14713
|
/**
|
|
14453
14714
|
* Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
|
|
14454
14715
|
* @summary Publish one locale, or all of them
|
|
@@ -14497,6 +14758,18 @@ export const CMSV2PagesApiFactory = function (configuration?: Configuration, bas
|
|
|
14497
14758
|
saveMeta(recordUuid: string, requestBody: { [key: string]: any | null; }, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseCmsPageDTO> {
|
|
14498
14759
|
return localVarFp.saveMeta(recordUuid, requestBody, locale, options).then((request) => request(axios, basePath));
|
|
14499
14760
|
},
|
|
14761
|
+
/**
|
|
14762
|
+
* Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
|
|
14763
|
+
* @summary Publish the forked module into a private app
|
|
14764
|
+
* @param {string} recordUuid
|
|
14765
|
+
* @param {string} sessionId
|
|
14766
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14767
|
+
* @param {*} [options] Override http request option.
|
|
14768
|
+
* @throws {RequiredError}
|
|
14769
|
+
*/
|
|
14770
|
+
saveModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject> {
|
|
14771
|
+
return localVarFp.saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
|
|
14772
|
+
},
|
|
14500
14773
|
/**
|
|
14501
14774
|
*
|
|
14502
14775
|
* @summary Replace a CMS v2 object template
|
|
@@ -14509,6 +14782,17 @@ export const CMSV2PagesApiFactory = function (configuration?: Configuration, bas
|
|
|
14509
14782
|
saveTemplate(objectUuid: string, cmsPageDocument: CmsPageDocument, locale?: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseCmsPageDocument> {
|
|
14510
14783
|
return localVarFp.saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(axios, basePath));
|
|
14511
14784
|
},
|
|
14785
|
+
/**
|
|
14786
|
+
* 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.
|
|
14787
|
+
* @summary Start a Modify-this-module playground session
|
|
14788
|
+
* @param {string} recordUuid
|
|
14789
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14790
|
+
* @param {*} [options] Override http request option.
|
|
14791
|
+
* @throws {RequiredError}
|
|
14792
|
+
*/
|
|
14793
|
+
startModuleFork(recordUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject> {
|
|
14794
|
+
return localVarFp.startModuleFork(recordUuid, requestBody, options).then((request) => request(axios, basePath));
|
|
14795
|
+
},
|
|
14512
14796
|
/**
|
|
14513
14797
|
*
|
|
14514
14798
|
* @summary Take one locale offline
|
|
@@ -14562,6 +14846,18 @@ export class CMSV2PagesApi extends BaseAPI {
|
|
|
14562
14846
|
return CMSV2PagesApiFp(this.configuration).createTranslation(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
|
|
14563
14847
|
}
|
|
14564
14848
|
|
|
14849
|
+
/**
|
|
14850
|
+
*
|
|
14851
|
+
* @summary Discard a Modify-this-module playground session
|
|
14852
|
+
* @param {string} recordUuid
|
|
14853
|
+
* @param {string} sessionId
|
|
14854
|
+
* @param {*} [options] Override http request option.
|
|
14855
|
+
* @throws {RequiredError}
|
|
14856
|
+
*/
|
|
14857
|
+
public discardModuleFork(recordUuid: string, sessionId: string, options?: RawAxiosRequestConfig) {
|
|
14858
|
+
return CMSV2PagesApiFp(this.configuration).discardModuleFork(recordUuid, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
14859
|
+
}
|
|
14860
|
+
|
|
14565
14861
|
/**
|
|
14566
14862
|
* 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.
|
|
14567
14863
|
* @summary Create or reuse the custom 404 page
|
|
@@ -14667,6 +14963,19 @@ export class CMSV2PagesApi extends BaseAPI {
|
|
|
14667
14963
|
return CMSV2PagesApiFp(this.configuration).previewLink(recordUuid, locale, state, options).then((request) => request(this.axios, this.basePath));
|
|
14668
14964
|
}
|
|
14669
14965
|
|
|
14966
|
+
/**
|
|
14967
|
+
*
|
|
14968
|
+
* @summary Rewrite forked module source from a prompt
|
|
14969
|
+
* @param {string} recordUuid
|
|
14970
|
+
* @param {string} sessionId
|
|
14971
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14972
|
+
* @param {*} [options] Override http request option.
|
|
14973
|
+
* @throws {RequiredError}
|
|
14974
|
+
*/
|
|
14975
|
+
public promptModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) {
|
|
14976
|
+
return CMSV2PagesApiFp(this.configuration).promptModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14977
|
+
}
|
|
14978
|
+
|
|
14670
14979
|
/**
|
|
14671
14980
|
* Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
|
|
14672
14981
|
* @summary Publish one locale, or all of them
|
|
@@ -14719,6 +15028,19 @@ export class CMSV2PagesApi extends BaseAPI {
|
|
|
14719
15028
|
return CMSV2PagesApiFp(this.configuration).saveMeta(recordUuid, requestBody, locale, options).then((request) => request(this.axios, this.basePath));
|
|
14720
15029
|
}
|
|
14721
15030
|
|
|
15031
|
+
/**
|
|
15032
|
+
* Merges the new module into the whole npm package so sibling modules are not retired, then swaps this placement with set_module.
|
|
15033
|
+
* @summary Publish the forked module into a private app
|
|
15034
|
+
* @param {string} recordUuid
|
|
15035
|
+
* @param {string} sessionId
|
|
15036
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
15037
|
+
* @param {*} [options] Override http request option.
|
|
15038
|
+
* @throws {RequiredError}
|
|
15039
|
+
*/
|
|
15040
|
+
public saveModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) {
|
|
15041
|
+
return CMSV2PagesApiFp(this.configuration).saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15042
|
+
}
|
|
15043
|
+
|
|
14722
15044
|
/**
|
|
14723
15045
|
*
|
|
14724
15046
|
* @summary Replace a CMS v2 object template
|
|
@@ -14732,6 +15054,18 @@ export class CMSV2PagesApi extends BaseAPI {
|
|
|
14732
15054
|
return CMSV2PagesApiFp(this.configuration).saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(this.axios, this.basePath));
|
|
14733
15055
|
}
|
|
14734
15056
|
|
|
15057
|
+
/**
|
|
15058
|
+
* 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.
|
|
15059
|
+
* @summary Start a Modify-this-module playground session
|
|
15060
|
+
* @param {string} recordUuid
|
|
15061
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
15062
|
+
* @param {*} [options] Override http request option.
|
|
15063
|
+
* @throws {RequiredError}
|
|
15064
|
+
*/
|
|
15065
|
+
public startModuleFork(recordUuid: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) {
|
|
15066
|
+
return CMSV2PagesApiFp(this.configuration).startModuleFork(recordUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15067
|
+
}
|
|
15068
|
+
|
|
14735
15069
|
/**
|
|
14736
15070
|
*
|
|
14737
15071
|
* @summary Take one locale offline
|