@caraer/client 2.0.681 → 2.0.683
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/api.ts +103 -3
- package/dist/api.d.ts +53 -3
- package/dist/api.js +91 -0
- package/dist/esm/api.d.ts +53 -3
- package/dist/esm/api.js +91 -0
- package/docs/CMSV2PagesApi.md +66 -0
- package/docs/CmsPageSeoRequest.md +22 -0
- package/docs/ExistingWidgetSummary.md +4 -4
- package/docs/Record.md +2 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/api.ts
CHANGED
|
@@ -1525,6 +1525,10 @@ export interface CmsPagePatchRequest {
|
|
|
1525
1525
|
'patches'?: Array<CmsPagePatch>;
|
|
1526
1526
|
'expectedRevision'?: number;
|
|
1527
1527
|
}
|
|
1528
|
+
export interface CmsPageSeoRequest {
|
|
1529
|
+
'seo'?: { [key: string]: any | null; };
|
|
1530
|
+
'expectedRevision'?: number;
|
|
1531
|
+
}
|
|
1528
1532
|
export interface CmsPublicMenuDTO {
|
|
1529
1533
|
'location'?: string;
|
|
1530
1534
|
'title'?: string;
|
|
@@ -2820,9 +2824,9 @@ export const EventRsvpRequestScopeEnum = {
|
|
|
2820
2824
|
export type EventRsvpRequestScopeEnum = typeof EventRsvpRequestScopeEnum[keyof typeof EventRsvpRequestScopeEnum];
|
|
2821
2825
|
|
|
2822
2826
|
export interface ExistingWidgetSummary {
|
|
2823
|
-
'ymetric'?: string;
|
|
2824
|
-
'yproperty'?: string;
|
|
2825
2827
|
'xproperty'?: string;
|
|
2828
|
+
'yproperty'?: string;
|
|
2829
|
+
'ymetric'?: string;
|
|
2826
2830
|
'title'?: string;
|
|
2827
2831
|
'chartType'?: string;
|
|
2828
2832
|
'xProperty'?: string;
|
|
@@ -3736,9 +3740,9 @@ export interface ModelRecord {
|
|
|
3736
3740
|
'deleted'?: boolean;
|
|
3737
3741
|
'complete'?: boolean;
|
|
3738
3742
|
'uuid': string;
|
|
3739
|
-
'user'?: PublicUserDTO;
|
|
3740
3743
|
'properties'?: Array<FilledProperty>;
|
|
3741
3744
|
'objects'?: { [key: string]: any | null; };
|
|
3745
|
+
'user'?: PublicUserDTO;
|
|
3742
3746
|
}
|
|
3743
3747
|
export interface MultiFile extends PropertyFormat {
|
|
3744
3748
|
}
|
|
@@ -15008,6 +15012,59 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
15008
15012
|
options: localVarRequestOptions,
|
|
15009
15013
|
};
|
|
15010
15014
|
},
|
|
15015
|
+
/**
|
|
15016
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
15017
|
+
* @summary Merge page SEO without publishing draft content
|
|
15018
|
+
* @param {string} recordUuid
|
|
15019
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
15020
|
+
* @param {string} [locale]
|
|
15021
|
+
* @param {string} [state]
|
|
15022
|
+
* @param {*} [options] Override http request option.
|
|
15023
|
+
* @throws {RequiredError}
|
|
15024
|
+
*/
|
|
15025
|
+
saveSeo: async (recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15026
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
15027
|
+
assertParamExists('saveSeo', 'recordUuid', recordUuid)
|
|
15028
|
+
// verify required parameter 'cmsPageSeoRequest' is not null or undefined
|
|
15029
|
+
assertParamExists('saveSeo', 'cmsPageSeoRequest', cmsPageSeoRequest)
|
|
15030
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/seo`
|
|
15031
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
|
|
15032
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15033
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15034
|
+
let baseOptions;
|
|
15035
|
+
if (configuration) {
|
|
15036
|
+
baseOptions = configuration.baseOptions;
|
|
15037
|
+
}
|
|
15038
|
+
|
|
15039
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
15040
|
+
const localVarHeaderParameter = {} as any;
|
|
15041
|
+
const localVarQueryParameter = {} as any;
|
|
15042
|
+
|
|
15043
|
+
// authentication bearerAuth required
|
|
15044
|
+
// http bearer authentication required
|
|
15045
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15046
|
+
|
|
15047
|
+
if (locale !== undefined) {
|
|
15048
|
+
localVarQueryParameter['locale'] = locale;
|
|
15049
|
+
}
|
|
15050
|
+
|
|
15051
|
+
if (state !== undefined) {
|
|
15052
|
+
localVarQueryParameter['state'] = state;
|
|
15053
|
+
}
|
|
15054
|
+
|
|
15055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15056
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
15057
|
+
|
|
15058
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15059
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15060
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15061
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cmsPageSeoRequest, localVarRequestOptions, configuration)
|
|
15062
|
+
|
|
15063
|
+
return {
|
|
15064
|
+
url: toPathString(localVarUrlObj),
|
|
15065
|
+
options: localVarRequestOptions,
|
|
15066
|
+
};
|
|
15067
|
+
},
|
|
15011
15068
|
/**
|
|
15012
15069
|
*
|
|
15013
15070
|
* @summary Replace a CMS v2 object template
|
|
@@ -15495,6 +15552,22 @@ export const CMSV2PagesApiFp = function(configuration?: Configuration) {
|
|
|
15495
15552
|
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.saveModuleFork']?.[localVarOperationServerIndex]?.url;
|
|
15496
15553
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15497
15554
|
},
|
|
15555
|
+
/**
|
|
15556
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
15557
|
+
* @summary Merge page SEO without publishing draft content
|
|
15558
|
+
* @param {string} recordUuid
|
|
15559
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
15560
|
+
* @param {string} [locale]
|
|
15561
|
+
* @param {string} [state]
|
|
15562
|
+
* @param {*} [options] Override http request option.
|
|
15563
|
+
* @throws {RequiredError}
|
|
15564
|
+
*/
|
|
15565
|
+
async saveSeo(recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseCmsPageDTO>> {
|
|
15566
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options);
|
|
15567
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15568
|
+
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.saveSeo']?.[localVarOperationServerIndex]?.url;
|
|
15569
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15570
|
+
},
|
|
15498
15571
|
/**
|
|
15499
15572
|
*
|
|
15500
15573
|
* @summary Replace a CMS v2 object template
|
|
@@ -15777,6 +15850,19 @@ export const CMSV2PagesApiFactory = function (configuration?: Configuration, bas
|
|
|
15777
15850
|
saveModuleFork(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject> {
|
|
15778
15851
|
return localVarFp.saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
|
|
15779
15852
|
},
|
|
15853
|
+
/**
|
|
15854
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
15855
|
+
* @summary Merge page SEO without publishing draft content
|
|
15856
|
+
* @param {string} recordUuid
|
|
15857
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
15858
|
+
* @param {string} [locale]
|
|
15859
|
+
* @param {string} [state]
|
|
15860
|
+
* @param {*} [options] Override http request option.
|
|
15861
|
+
* @throws {RequiredError}
|
|
15862
|
+
*/
|
|
15863
|
+
saveSeo(recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseCmsPageDTO> {
|
|
15864
|
+
return localVarFp.saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options).then((request) => request(axios, basePath));
|
|
15865
|
+
},
|
|
15780
15866
|
/**
|
|
15781
15867
|
*
|
|
15782
15868
|
* @summary Replace a CMS v2 object template
|
|
@@ -16060,6 +16146,20 @@ export class CMSV2PagesApi extends BaseAPI {
|
|
|
16060
16146
|
return CMSV2PagesApiFp(this.configuration).saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
16061
16147
|
}
|
|
16062
16148
|
|
|
16149
|
+
/**
|
|
16150
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
16151
|
+
* @summary Merge page SEO without publishing draft content
|
|
16152
|
+
* @param {string} recordUuid
|
|
16153
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
16154
|
+
* @param {string} [locale]
|
|
16155
|
+
* @param {string} [state]
|
|
16156
|
+
* @param {*} [options] Override http request option.
|
|
16157
|
+
* @throws {RequiredError}
|
|
16158
|
+
*/
|
|
16159
|
+
public saveSeo(recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig) {
|
|
16160
|
+
return CMSV2PagesApiFp(this.configuration).saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options).then((request) => request(this.axios, this.basePath));
|
|
16161
|
+
}
|
|
16162
|
+
|
|
16063
16163
|
/**
|
|
16064
16164
|
*
|
|
16065
16165
|
* @summary Replace a CMS v2 object template
|
package/dist/api.d.ts
CHANGED
|
@@ -1527,6 +1527,12 @@ export interface CmsPagePatchRequest {
|
|
|
1527
1527
|
'patches'?: Array<CmsPagePatch>;
|
|
1528
1528
|
'expectedRevision'?: number;
|
|
1529
1529
|
}
|
|
1530
|
+
export interface CmsPageSeoRequest {
|
|
1531
|
+
'seo'?: {
|
|
1532
|
+
[key: string]: any | null;
|
|
1533
|
+
};
|
|
1534
|
+
'expectedRevision'?: number;
|
|
1535
|
+
}
|
|
1530
1536
|
export interface CmsPublicMenuDTO {
|
|
1531
1537
|
'location'?: string;
|
|
1532
1538
|
'title'?: string;
|
|
@@ -2814,9 +2820,9 @@ export declare const EventRsvpRequestScopeEnum: {
|
|
|
2814
2820
|
};
|
|
2815
2821
|
export type EventRsvpRequestScopeEnum = typeof EventRsvpRequestScopeEnum[keyof typeof EventRsvpRequestScopeEnum];
|
|
2816
2822
|
export interface ExistingWidgetSummary {
|
|
2817
|
-
'ymetric'?: string;
|
|
2818
|
-
'yproperty'?: string;
|
|
2819
2823
|
'xproperty'?: string;
|
|
2824
|
+
'yproperty'?: string;
|
|
2825
|
+
'ymetric'?: string;
|
|
2820
2826
|
'title'?: string;
|
|
2821
2827
|
'chartType'?: string;
|
|
2822
2828
|
'xProperty'?: string;
|
|
@@ -3748,11 +3754,11 @@ export interface ModelRecord {
|
|
|
3748
3754
|
'deleted'?: boolean;
|
|
3749
3755
|
'complete'?: boolean;
|
|
3750
3756
|
'uuid': string;
|
|
3751
|
-
'user'?: PublicUserDTO;
|
|
3752
3757
|
'properties'?: Array<FilledProperty>;
|
|
3753
3758
|
'objects'?: {
|
|
3754
3759
|
[key: string]: any | null;
|
|
3755
3760
|
};
|
|
3761
|
+
'user'?: PublicUserDTO;
|
|
3756
3762
|
}
|
|
3757
3763
|
export interface MultiFile extends PropertyFormat {
|
|
3758
3764
|
}
|
|
@@ -11520,6 +11526,17 @@ export declare const CMSV2PagesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
11520
11526
|
saveModuleFork: (recordUuid: string, sessionId: string, requestBody: {
|
|
11521
11527
|
[key: string]: any | null;
|
|
11522
11528
|
}, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11529
|
+
/**
|
|
11530
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
11531
|
+
* @summary Merge page SEO without publishing draft content
|
|
11532
|
+
* @param {string} recordUuid
|
|
11533
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
11534
|
+
* @param {string} [locale]
|
|
11535
|
+
* @param {string} [state]
|
|
11536
|
+
* @param {*} [options] Override http request option.
|
|
11537
|
+
* @throws {RequiredError}
|
|
11538
|
+
*/
|
|
11539
|
+
saveSeo: (recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11523
11540
|
/**
|
|
11524
11541
|
*
|
|
11525
11542
|
* @summary Replace a CMS v2 object template
|
|
@@ -11749,6 +11766,17 @@ export declare const CMSV2PagesApiFp: (configuration?: Configuration) => {
|
|
|
11749
11766
|
saveModuleFork(recordUuid: string, sessionId: string, requestBody: {
|
|
11750
11767
|
[key: string]: any | null;
|
|
11751
11768
|
}, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseMapStringObject>>;
|
|
11769
|
+
/**
|
|
11770
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
11771
|
+
* @summary Merge page SEO without publishing draft content
|
|
11772
|
+
* @param {string} recordUuid
|
|
11773
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
11774
|
+
* @param {string} [locale]
|
|
11775
|
+
* @param {string} [state]
|
|
11776
|
+
* @param {*} [options] Override http request option.
|
|
11777
|
+
* @throws {RequiredError}
|
|
11778
|
+
*/
|
|
11779
|
+
saveSeo(recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseCmsPageDTO>>;
|
|
11752
11780
|
/**
|
|
11753
11781
|
*
|
|
11754
11782
|
* @summary Replace a CMS v2 object template
|
|
@@ -11978,6 +12006,17 @@ export declare const CMSV2PagesApiFactory: (configuration?: Configuration, baseP
|
|
|
11978
12006
|
saveModuleFork(recordUuid: string, sessionId: string, requestBody: {
|
|
11979
12007
|
[key: string]: any | null;
|
|
11980
12008
|
}, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject>;
|
|
12009
|
+
/**
|
|
12010
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
12011
|
+
* @summary Merge page SEO without publishing draft content
|
|
12012
|
+
* @param {string} recordUuid
|
|
12013
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
12014
|
+
* @param {string} [locale]
|
|
12015
|
+
* @param {string} [state]
|
|
12016
|
+
* @param {*} [options] Override http request option.
|
|
12017
|
+
* @throws {RequiredError}
|
|
12018
|
+
*/
|
|
12019
|
+
saveSeo(recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseCmsPageDTO>;
|
|
11981
12020
|
/**
|
|
11982
12021
|
*
|
|
11983
12022
|
* @summary Replace a CMS v2 object template
|
|
@@ -12207,6 +12246,17 @@ export declare class CMSV2PagesApi extends BaseAPI {
|
|
|
12207
12246
|
saveModuleFork(recordUuid: string, sessionId: string, requestBody: {
|
|
12208
12247
|
[key: string]: any | null;
|
|
12209
12248
|
}, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ShowResponseMapStringObject, any, {}>>;
|
|
12249
|
+
/**
|
|
12250
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
12251
|
+
* @summary Merge page SEO without publishing draft content
|
|
12252
|
+
* @param {string} recordUuid
|
|
12253
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
12254
|
+
* @param {string} [locale]
|
|
12255
|
+
* @param {string} [state]
|
|
12256
|
+
* @param {*} [options] Override http request option.
|
|
12257
|
+
* @throws {RequiredError}
|
|
12258
|
+
*/
|
|
12259
|
+
saveSeo(recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ShowResponseCmsPageDTO, any, {}>>;
|
|
12210
12260
|
/**
|
|
12211
12261
|
*
|
|
12212
12262
|
* @summary Replace a CMS v2 object template
|
package/dist/api.js
CHANGED
|
@@ -6260,6 +6260,52 @@ const CMSV2PagesApiAxiosParamCreator = function (configuration) {
|
|
|
6260
6260
|
options: localVarRequestOptions,
|
|
6261
6261
|
};
|
|
6262
6262
|
}),
|
|
6263
|
+
/**
|
|
6264
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
6265
|
+
* @summary Merge page SEO without publishing draft content
|
|
6266
|
+
* @param {string} recordUuid
|
|
6267
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
6268
|
+
* @param {string} [locale]
|
|
6269
|
+
* @param {string} [state]
|
|
6270
|
+
* @param {*} [options] Override http request option.
|
|
6271
|
+
* @throws {RequiredError}
|
|
6272
|
+
*/
|
|
6273
|
+
saveSeo: (recordUuid_1, cmsPageSeoRequest_1, locale_1, state_1, ...args_1) => __awaiter(this, [recordUuid_1, cmsPageSeoRequest_1, locale_1, state_1, ...args_1], void 0, function* (recordUuid, cmsPageSeoRequest, locale, state, options = {}) {
|
|
6274
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
6275
|
+
(0, common_1.assertParamExists)('saveSeo', 'recordUuid', recordUuid);
|
|
6276
|
+
// verify required parameter 'cmsPageSeoRequest' is not null or undefined
|
|
6277
|
+
(0, common_1.assertParamExists)('saveSeo', 'cmsPageSeoRequest', cmsPageSeoRequest);
|
|
6278
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/seo`
|
|
6279
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
|
|
6280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6281
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6282
|
+
let baseOptions;
|
|
6283
|
+
if (configuration) {
|
|
6284
|
+
baseOptions = configuration.baseOptions;
|
|
6285
|
+
}
|
|
6286
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6287
|
+
const localVarHeaderParameter = {};
|
|
6288
|
+
const localVarQueryParameter = {};
|
|
6289
|
+
// authentication bearerAuth required
|
|
6290
|
+
// http bearer authentication required
|
|
6291
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6292
|
+
if (locale !== undefined) {
|
|
6293
|
+
localVarQueryParameter['locale'] = locale;
|
|
6294
|
+
}
|
|
6295
|
+
if (state !== undefined) {
|
|
6296
|
+
localVarQueryParameter['state'] = state;
|
|
6297
|
+
}
|
|
6298
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6299
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
6300
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6301
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6302
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6303
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cmsPageSeoRequest, localVarRequestOptions, configuration);
|
|
6304
|
+
return {
|
|
6305
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6306
|
+
options: localVarRequestOptions,
|
|
6307
|
+
};
|
|
6308
|
+
}),
|
|
6263
6309
|
/**
|
|
6264
6310
|
*
|
|
6265
6311
|
* @summary Replace a CMS v2 object template
|
|
@@ -6774,6 +6820,25 @@ const CMSV2PagesApiFp = function (configuration) {
|
|
|
6774
6820
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6775
6821
|
});
|
|
6776
6822
|
},
|
|
6823
|
+
/**
|
|
6824
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
6825
|
+
* @summary Merge page SEO without publishing draft content
|
|
6826
|
+
* @param {string} recordUuid
|
|
6827
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
6828
|
+
* @param {string} [locale]
|
|
6829
|
+
* @param {string} [state]
|
|
6830
|
+
* @param {*} [options] Override http request option.
|
|
6831
|
+
* @throws {RequiredError}
|
|
6832
|
+
*/
|
|
6833
|
+
saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options) {
|
|
6834
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6835
|
+
var _a, _b, _c;
|
|
6836
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options);
|
|
6837
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6838
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.saveSeo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6839
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6840
|
+
});
|
|
6841
|
+
},
|
|
6777
6842
|
/**
|
|
6778
6843
|
*
|
|
6779
6844
|
* @summary Replace a CMS v2 object template
|
|
@@ -7071,6 +7136,19 @@ const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
7071
7136
|
saveModuleFork(recordUuid, sessionId, requestBody, options) {
|
|
7072
7137
|
return localVarFp.saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
|
|
7073
7138
|
},
|
|
7139
|
+
/**
|
|
7140
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
7141
|
+
* @summary Merge page SEO without publishing draft content
|
|
7142
|
+
* @param {string} recordUuid
|
|
7143
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
7144
|
+
* @param {string} [locale]
|
|
7145
|
+
* @param {string} [state]
|
|
7146
|
+
* @param {*} [options] Override http request option.
|
|
7147
|
+
* @throws {RequiredError}
|
|
7148
|
+
*/
|
|
7149
|
+
saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options) {
|
|
7150
|
+
return localVarFp.saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options).then((request) => request(axios, basePath));
|
|
7151
|
+
},
|
|
7074
7152
|
/**
|
|
7075
7153
|
*
|
|
7076
7154
|
* @summary Replace a CMS v2 object template
|
|
@@ -7336,6 +7414,19 @@ class CMSV2PagesApi extends base_1.BaseAPI {
|
|
|
7336
7414
|
saveModuleFork(recordUuid, sessionId, requestBody, options) {
|
|
7337
7415
|
return (0, exports.CMSV2PagesApiFp)(this.configuration).saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7338
7416
|
}
|
|
7417
|
+
/**
|
|
7418
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
7419
|
+
* @summary Merge page SEO without publishing draft content
|
|
7420
|
+
* @param {string} recordUuid
|
|
7421
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
7422
|
+
* @param {string} [locale]
|
|
7423
|
+
* @param {string} [state]
|
|
7424
|
+
* @param {*} [options] Override http request option.
|
|
7425
|
+
* @throws {RequiredError}
|
|
7426
|
+
*/
|
|
7427
|
+
saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options) {
|
|
7428
|
+
return (0, exports.CMSV2PagesApiFp)(this.configuration).saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options).then((request) => request(this.axios, this.basePath));
|
|
7429
|
+
}
|
|
7339
7430
|
/**
|
|
7340
7431
|
*
|
|
7341
7432
|
* @summary Replace a CMS v2 object template
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1526,6 +1526,12 @@ export interface CmsPagePatchRequest {
|
|
|
1526
1526
|
'patches'?: Array<CmsPagePatch>;
|
|
1527
1527
|
'expectedRevision'?: number;
|
|
1528
1528
|
}
|
|
1529
|
+
export interface CmsPageSeoRequest {
|
|
1530
|
+
'seo'?: {
|
|
1531
|
+
[key: string]: any | null;
|
|
1532
|
+
};
|
|
1533
|
+
'expectedRevision'?: number;
|
|
1534
|
+
}
|
|
1529
1535
|
export interface CmsPublicMenuDTO {
|
|
1530
1536
|
'location'?: string;
|
|
1531
1537
|
'title'?: string;
|
|
@@ -2813,9 +2819,9 @@ export declare const EventRsvpRequestScopeEnum: {
|
|
|
2813
2819
|
};
|
|
2814
2820
|
export type EventRsvpRequestScopeEnum = typeof EventRsvpRequestScopeEnum[keyof typeof EventRsvpRequestScopeEnum];
|
|
2815
2821
|
export interface ExistingWidgetSummary {
|
|
2816
|
-
'ymetric'?: string;
|
|
2817
|
-
'yproperty'?: string;
|
|
2818
2822
|
'xproperty'?: string;
|
|
2823
|
+
'yproperty'?: string;
|
|
2824
|
+
'ymetric'?: string;
|
|
2819
2825
|
'title'?: string;
|
|
2820
2826
|
'chartType'?: string;
|
|
2821
2827
|
'xProperty'?: string;
|
|
@@ -3747,11 +3753,11 @@ export interface ModelRecord {
|
|
|
3747
3753
|
'deleted'?: boolean;
|
|
3748
3754
|
'complete'?: boolean;
|
|
3749
3755
|
'uuid': string;
|
|
3750
|
-
'user'?: PublicUserDTO;
|
|
3751
3756
|
'properties'?: Array<FilledProperty>;
|
|
3752
3757
|
'objects'?: {
|
|
3753
3758
|
[key: string]: any | null;
|
|
3754
3759
|
};
|
|
3760
|
+
'user'?: PublicUserDTO;
|
|
3755
3761
|
}
|
|
3756
3762
|
export interface MultiFile extends PropertyFormat {
|
|
3757
3763
|
}
|
|
@@ -11519,6 +11525,17 @@ export declare const CMSV2PagesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
11519
11525
|
saveModuleFork: (recordUuid: string, sessionId: string, requestBody: {
|
|
11520
11526
|
[key: string]: any | null;
|
|
11521
11527
|
}, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11528
|
+
/**
|
|
11529
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
11530
|
+
* @summary Merge page SEO without publishing draft content
|
|
11531
|
+
* @param {string} recordUuid
|
|
11532
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
11533
|
+
* @param {string} [locale]
|
|
11534
|
+
* @param {string} [state]
|
|
11535
|
+
* @param {*} [options] Override http request option.
|
|
11536
|
+
* @throws {RequiredError}
|
|
11537
|
+
*/
|
|
11538
|
+
saveSeo: (recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11522
11539
|
/**
|
|
11523
11540
|
*
|
|
11524
11541
|
* @summary Replace a CMS v2 object template
|
|
@@ -11748,6 +11765,17 @@ export declare const CMSV2PagesApiFp: (configuration?: Configuration) => {
|
|
|
11748
11765
|
saveModuleFork(recordUuid: string, sessionId: string, requestBody: {
|
|
11749
11766
|
[key: string]: any | null;
|
|
11750
11767
|
}, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseMapStringObject>>;
|
|
11768
|
+
/**
|
|
11769
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
11770
|
+
* @summary Merge page SEO without publishing draft content
|
|
11771
|
+
* @param {string} recordUuid
|
|
11772
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
11773
|
+
* @param {string} [locale]
|
|
11774
|
+
* @param {string} [state]
|
|
11775
|
+
* @param {*} [options] Override http request option.
|
|
11776
|
+
* @throws {RequiredError}
|
|
11777
|
+
*/
|
|
11778
|
+
saveSeo(recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseCmsPageDTO>>;
|
|
11751
11779
|
/**
|
|
11752
11780
|
*
|
|
11753
11781
|
* @summary Replace a CMS v2 object template
|
|
@@ -11977,6 +12005,17 @@ export declare const CMSV2PagesApiFactory: (configuration?: Configuration, baseP
|
|
|
11977
12005
|
saveModuleFork(recordUuid: string, sessionId: string, requestBody: {
|
|
11978
12006
|
[key: string]: any | null;
|
|
11979
12007
|
}, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject>;
|
|
12008
|
+
/**
|
|
12009
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
12010
|
+
* @summary Merge page SEO without publishing draft content
|
|
12011
|
+
* @param {string} recordUuid
|
|
12012
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
12013
|
+
* @param {string} [locale]
|
|
12014
|
+
* @param {string} [state]
|
|
12015
|
+
* @param {*} [options] Override http request option.
|
|
12016
|
+
* @throws {RequiredError}
|
|
12017
|
+
*/
|
|
12018
|
+
saveSeo(recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseCmsPageDTO>;
|
|
11980
12019
|
/**
|
|
11981
12020
|
*
|
|
11982
12021
|
* @summary Replace a CMS v2 object template
|
|
@@ -12206,6 +12245,17 @@ export declare class CMSV2PagesApi extends BaseAPI {
|
|
|
12206
12245
|
saveModuleFork(recordUuid: string, sessionId: string, requestBody: {
|
|
12207
12246
|
[key: string]: any | null;
|
|
12208
12247
|
}, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShowResponseMapStringObject, any, {}>>;
|
|
12248
|
+
/**
|
|
12249
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
12250
|
+
* @summary Merge page SEO without publishing draft content
|
|
12251
|
+
* @param {string} recordUuid
|
|
12252
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
12253
|
+
* @param {string} [locale]
|
|
12254
|
+
* @param {string} [state]
|
|
12255
|
+
* @param {*} [options] Override http request option.
|
|
12256
|
+
* @throws {RequiredError}
|
|
12257
|
+
*/
|
|
12258
|
+
saveSeo(recordUuid: string, cmsPageSeoRequest: CmsPageSeoRequest, locale?: string, state?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShowResponseCmsPageDTO, any, {}>>;
|
|
12209
12259
|
/**
|
|
12210
12260
|
*
|
|
12211
12261
|
* @summary Replace a CMS v2 object template
|
package/dist/esm/api.js
CHANGED
|
@@ -6219,6 +6219,52 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration) {
|
|
|
6219
6219
|
options: localVarRequestOptions,
|
|
6220
6220
|
};
|
|
6221
6221
|
}),
|
|
6222
|
+
/**
|
|
6223
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
6224
|
+
* @summary Merge page SEO without publishing draft content
|
|
6225
|
+
* @param {string} recordUuid
|
|
6226
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
6227
|
+
* @param {string} [locale]
|
|
6228
|
+
* @param {string} [state]
|
|
6229
|
+
* @param {*} [options] Override http request option.
|
|
6230
|
+
* @throws {RequiredError}
|
|
6231
|
+
*/
|
|
6232
|
+
saveSeo: (recordUuid_1, cmsPageSeoRequest_1, locale_1, state_1, ...args_1) => __awaiter(this, [recordUuid_1, cmsPageSeoRequest_1, locale_1, state_1, ...args_1], void 0, function* (recordUuid, cmsPageSeoRequest, locale, state, options = {}) {
|
|
6233
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
6234
|
+
assertParamExists('saveSeo', 'recordUuid', recordUuid);
|
|
6235
|
+
// verify required parameter 'cmsPageSeoRequest' is not null or undefined
|
|
6236
|
+
assertParamExists('saveSeo', 'cmsPageSeoRequest', cmsPageSeoRequest);
|
|
6237
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/seo`
|
|
6238
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
|
|
6239
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6240
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6241
|
+
let baseOptions;
|
|
6242
|
+
if (configuration) {
|
|
6243
|
+
baseOptions = configuration.baseOptions;
|
|
6244
|
+
}
|
|
6245
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6246
|
+
const localVarHeaderParameter = {};
|
|
6247
|
+
const localVarQueryParameter = {};
|
|
6248
|
+
// authentication bearerAuth required
|
|
6249
|
+
// http bearer authentication required
|
|
6250
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6251
|
+
if (locale !== undefined) {
|
|
6252
|
+
localVarQueryParameter['locale'] = locale;
|
|
6253
|
+
}
|
|
6254
|
+
if (state !== undefined) {
|
|
6255
|
+
localVarQueryParameter['state'] = state;
|
|
6256
|
+
}
|
|
6257
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6258
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
6259
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6260
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6261
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6262
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cmsPageSeoRequest, localVarRequestOptions, configuration);
|
|
6263
|
+
return {
|
|
6264
|
+
url: toPathString(localVarUrlObj),
|
|
6265
|
+
options: localVarRequestOptions,
|
|
6266
|
+
};
|
|
6267
|
+
}),
|
|
6222
6268
|
/**
|
|
6223
6269
|
*
|
|
6224
6270
|
* @summary Replace a CMS v2 object template
|
|
@@ -6732,6 +6778,25 @@ export const CMSV2PagesApiFp = function (configuration) {
|
|
|
6732
6778
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6733
6779
|
});
|
|
6734
6780
|
},
|
|
6781
|
+
/**
|
|
6782
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
6783
|
+
* @summary Merge page SEO without publishing draft content
|
|
6784
|
+
* @param {string} recordUuid
|
|
6785
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
6786
|
+
* @param {string} [locale]
|
|
6787
|
+
* @param {string} [state]
|
|
6788
|
+
* @param {*} [options] Override http request option.
|
|
6789
|
+
* @throws {RequiredError}
|
|
6790
|
+
*/
|
|
6791
|
+
saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options) {
|
|
6792
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6793
|
+
var _a, _b, _c;
|
|
6794
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options);
|
|
6795
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6796
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.saveSeo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6797
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6798
|
+
});
|
|
6799
|
+
},
|
|
6735
6800
|
/**
|
|
6736
6801
|
*
|
|
6737
6802
|
* @summary Replace a CMS v2 object template
|
|
@@ -7028,6 +7093,19 @@ export const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
7028
7093
|
saveModuleFork(recordUuid, sessionId, requestBody, options) {
|
|
7029
7094
|
return localVarFp.saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
|
|
7030
7095
|
},
|
|
7096
|
+
/**
|
|
7097
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
7098
|
+
* @summary Merge page SEO without publishing draft content
|
|
7099
|
+
* @param {string} recordUuid
|
|
7100
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
7101
|
+
* @param {string} [locale]
|
|
7102
|
+
* @param {string} [state]
|
|
7103
|
+
* @param {*} [options] Override http request option.
|
|
7104
|
+
* @throws {RequiredError}
|
|
7105
|
+
*/
|
|
7106
|
+
saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options) {
|
|
7107
|
+
return localVarFp.saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options).then((request) => request(axios, basePath));
|
|
7108
|
+
},
|
|
7031
7109
|
/**
|
|
7032
7110
|
*
|
|
7033
7111
|
* @summary Replace a CMS v2 object template
|
|
@@ -7292,6 +7370,19 @@ export class CMSV2PagesApi extends BaseAPI {
|
|
|
7292
7370
|
saveModuleFork(recordUuid, sessionId, requestBody, options) {
|
|
7293
7371
|
return CMSV2PagesApiFp(this.configuration).saveModuleFork(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7294
7372
|
}
|
|
7373
|
+
/**
|
|
7374
|
+
* Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
7375
|
+
* @summary Merge page SEO without publishing draft content
|
|
7376
|
+
* @param {string} recordUuid
|
|
7377
|
+
* @param {CmsPageSeoRequest} cmsPageSeoRequest
|
|
7378
|
+
* @param {string} [locale]
|
|
7379
|
+
* @param {string} [state]
|
|
7380
|
+
* @param {*} [options] Override http request option.
|
|
7381
|
+
* @throws {RequiredError}
|
|
7382
|
+
*/
|
|
7383
|
+
saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options) {
|
|
7384
|
+
return CMSV2PagesApiFp(this.configuration).saveSeo(recordUuid, cmsPageSeoRequest, locale, state, options).then((request) => request(this.axios, this.basePath));
|
|
7385
|
+
}
|
|
7295
7386
|
/**
|
|
7296
7387
|
*
|
|
7297
7388
|
* @summary Replace a CMS v2 object template
|
package/docs/CMSV2PagesApi.md
CHANGED
|
@@ -22,6 +22,7 @@ All URIs are relative to *https://v2.api.caraer.com*
|
|
|
22
22
|
|[**save**](#save) | **PUT** /api/v2/webpages/v2/pages/{recordUuid} | Replace a page draft|
|
|
23
23
|
|[**saveMeta**](#savemeta) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/meta | Update slug, title, excerpt, SEO and page scripts|
|
|
24
24
|
|[**saveModuleFork**](#savemodulefork) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/save | Publish the forked module into a private app|
|
|
25
|
+
|[**saveSeo**](#saveseo) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/seo | Merge page SEO without publishing draft content|
|
|
25
26
|
|[**saveTemplate**](#savetemplate) | **PUT** /api/v2/webpages/v2/pages/templates/{objectUuid} | Replace a CMS v2 object template|
|
|
26
27
|
|[**startModuleFork**](#startmodulefork) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions | Start a Modify-this-module playground session|
|
|
27
28
|
|[**unpublish**](#unpublish) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/unpublish | Take one locale offline|
|
|
@@ -1053,6 +1054,71 @@ const { status, data } = await apiInstance.saveModuleFork(
|
|
|
1053
1054
|
- **Accept**: application/json
|
|
1054
1055
|
|
|
1055
1056
|
|
|
1057
|
+
### HTTP response details
|
|
1058
|
+
| Status code | Description | Response headers |
|
|
1059
|
+
|-------------|-------------|------------------|
|
|
1060
|
+
|**200** | OK | - |
|
|
1061
|
+
|**401** | Authentication is required or the token is invalid. | - |
|
|
1062
|
+
|**403** | The caller is missing a required role or scope. | - |
|
|
1063
|
+
|**404** | The requested resource was not found. | - |
|
|
1064
|
+
|**500** | An internal server error occurred. | - |
|
|
1065
|
+
|
|
1066
|
+
[[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)
|
|
1067
|
+
|
|
1068
|
+
# **saveSeo**
|
|
1069
|
+
> ShowResponseCmsPageDTO saveSeo(cmsPageSeoRequest)
|
|
1070
|
+
|
|
1071
|
+
Requires page-write, and publish permission for published SEO. The body contains seo and expectedRevision from the selected state\'s document.
|
|
1072
|
+
|
|
1073
|
+
### Example
|
|
1074
|
+
|
|
1075
|
+
```typescript
|
|
1076
|
+
import {
|
|
1077
|
+
CMSV2PagesApi,
|
|
1078
|
+
Configuration,
|
|
1079
|
+
CmsPageSeoRequest
|
|
1080
|
+
} from '@caraer/client';
|
|
1081
|
+
|
|
1082
|
+
const configuration = new Configuration();
|
|
1083
|
+
const apiInstance = new CMSV2PagesApi(configuration);
|
|
1084
|
+
|
|
1085
|
+
let recordUuid: string; // (default to undefined)
|
|
1086
|
+
let cmsPageSeoRequest: CmsPageSeoRequest; //
|
|
1087
|
+
let locale: string; // (optional) (default to undefined)
|
|
1088
|
+
let state: string; // (optional) (default to 'draft')
|
|
1089
|
+
|
|
1090
|
+
const { status, data } = await apiInstance.saveSeo(
|
|
1091
|
+
recordUuid,
|
|
1092
|
+
cmsPageSeoRequest,
|
|
1093
|
+
locale,
|
|
1094
|
+
state
|
|
1095
|
+
);
|
|
1096
|
+
```
|
|
1097
|
+
|
|
1098
|
+
### Parameters
|
|
1099
|
+
|
|
1100
|
+
|Name | Type | Description | Notes|
|
|
1101
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1102
|
+
| **cmsPageSeoRequest** | **CmsPageSeoRequest**| | |
|
|
1103
|
+
| **recordUuid** | [**string**] | | defaults to undefined|
|
|
1104
|
+
| **locale** | [**string**] | | (optional) defaults to undefined|
|
|
1105
|
+
| **state** | [**string**] | | (optional) defaults to 'draft'|
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
### Return type
|
|
1109
|
+
|
|
1110
|
+
**ShowResponseCmsPageDTO**
|
|
1111
|
+
|
|
1112
|
+
### Authorization
|
|
1113
|
+
|
|
1114
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1115
|
+
|
|
1116
|
+
### HTTP request headers
|
|
1117
|
+
|
|
1118
|
+
- **Content-Type**: application/json
|
|
1119
|
+
- **Accept**: application/json
|
|
1120
|
+
|
|
1121
|
+
|
|
1056
1122
|
### HTTP response details
|
|
1057
1123
|
| Status code | Description | Response headers |
|
|
1058
1124
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CmsPageSeoRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**seo** | **{ [key: string]: any | null; }** | | [optional] [default to undefined]
|
|
9
|
+
**expectedRevision** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CmsPageSeoRequest } from '@caraer/client';
|
|
15
|
+
|
|
16
|
+
const instance: CmsPageSeoRequest = {
|
|
17
|
+
seo,
|
|
18
|
+
expectedRevision,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**ymetric** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**yproperty** | **string** | | [optional] [default to undefined]
|
|
10
8
|
**xproperty** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**yproperty** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**ymetric** | **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
|
-
ymetric,
|
|
24
|
-
yproperty,
|
|
25
23
|
xproperty,
|
|
24
|
+
yproperty,
|
|
25
|
+
ymetric,
|
|
26
26
|
title,
|
|
27
27
|
chartType,
|
|
28
28
|
xProperty,
|
package/docs/Record.md
CHANGED
|
@@ -17,9 +17,9 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**deleted** | **boolean** | | [optional] [default to undefined]
|
|
18
18
|
**complete** | **boolean** | | [optional] [default to undefined]
|
|
19
19
|
**uuid** | **string** | | [default to undefined]
|
|
20
|
-
**user** | [**PublicUserDTO**](PublicUserDTO.md) | | [optional] [default to undefined]
|
|
21
20
|
**properties** | [**Array<FilledProperty>**](FilledProperty.md) | | [optional] [default to undefined]
|
|
22
21
|
**objects** | **{ [key: string]: any | null; }** | | [optional] [default to undefined]
|
|
22
|
+
**user** | [**PublicUserDTO**](PublicUserDTO.md) | | [optional] [default to undefined]
|
|
23
23
|
|
|
24
24
|
## Example
|
|
25
25
|
|
|
@@ -39,9 +39,9 @@ const instance: ModelRecord = {
|
|
|
39
39
|
deleted,
|
|
40
40
|
complete,
|
|
41
41
|
uuid,
|
|
42
|
-
user,
|
|
43
42
|
properties,
|
|
44
43
|
objects,
|
|
44
|
+
user,
|
|
45
45
|
};
|
|
46
46
|
```
|
|
47
47
|
|