@caraer/client 2.0.510 → 2.0.512
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 +88 -1
- package/dist/api.d.ts +49 -1
- package/dist/api.js +84 -0
- package/dist/esm/api.d.ts +49 -1
- package/dist/esm/api.js +84 -0
- package/docs/CMSV2PagesApi.md +62 -0
- package/docs/Record.md +2 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3491,9 +3491,9 @@ export interface ModelRecord {
|
|
|
3491
3491
|
'deleted'?: boolean;
|
|
3492
3492
|
'complete'?: boolean;
|
|
3493
3493
|
'uuid': string;
|
|
3494
|
-
'user'?: PublicUserDTO;
|
|
3495
3494
|
'properties'?: Array<FilledProperty>;
|
|
3496
3495
|
'objects'?: { [key: string]: any | null; };
|
|
3496
|
+
'user'?: PublicUserDTO;
|
|
3497
3497
|
}
|
|
3498
3498
|
export interface MultiFile extends PropertyFormat {
|
|
3499
3499
|
}
|
|
@@ -14234,6 +14234,53 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
14234
14234
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14235
14235
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14236
14236
|
|
|
14237
|
+
return {
|
|
14238
|
+
url: toPathString(localVarUrlObj),
|
|
14239
|
+
options: localVarRequestOptions,
|
|
14240
|
+
};
|
|
14241
|
+
},
|
|
14242
|
+
/**
|
|
14243
|
+
* Writes test values into the playground session without changing the live page.
|
|
14244
|
+
* @summary Preview field values on the forked module
|
|
14245
|
+
* @param {string} recordUuid
|
|
14246
|
+
* @param {string} sessionId
|
|
14247
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14248
|
+
* @param {*} [options] Override http request option.
|
|
14249
|
+
* @throws {RequiredError}
|
|
14250
|
+
*/
|
|
14251
|
+
updateModuleForkFields: async (recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14252
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
14253
|
+
assertParamExists('updateModuleForkFields', 'recordUuid', recordUuid)
|
|
14254
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
14255
|
+
assertParamExists('updateModuleForkFields', 'sessionId', sessionId)
|
|
14256
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
14257
|
+
assertParamExists('updateModuleForkFields', 'requestBody', requestBody)
|
|
14258
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/fields`
|
|
14259
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
|
|
14260
|
+
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
14261
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14262
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14263
|
+
let baseOptions;
|
|
14264
|
+
if (configuration) {
|
|
14265
|
+
baseOptions = configuration.baseOptions;
|
|
14266
|
+
}
|
|
14267
|
+
|
|
14268
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
14269
|
+
const localVarHeaderParameter = {} as any;
|
|
14270
|
+
const localVarQueryParameter = {} as any;
|
|
14271
|
+
|
|
14272
|
+
// authentication bearerAuth required
|
|
14273
|
+
// http bearer authentication required
|
|
14274
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14275
|
+
|
|
14276
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14277
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
14278
|
+
|
|
14279
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14280
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14281
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14282
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
14283
|
+
|
|
14237
14284
|
return {
|
|
14238
14285
|
url: toPathString(localVarUrlObj),
|
|
14239
14286
|
options: localVarRequestOptions,
|
|
@@ -14560,6 +14607,21 @@ export const CMSV2PagesApiFp = function(configuration?: Configuration) {
|
|
|
14560
14607
|
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.unselectEnvironment']?.[localVarOperationServerIndex]?.url;
|
|
14561
14608
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14562
14609
|
},
|
|
14610
|
+
/**
|
|
14611
|
+
* Writes test values into the playground session without changing the live page.
|
|
14612
|
+
* @summary Preview field values on the forked module
|
|
14613
|
+
* @param {string} recordUuid
|
|
14614
|
+
* @param {string} sessionId
|
|
14615
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14616
|
+
* @param {*} [options] Override http request option.
|
|
14617
|
+
* @throws {RequiredError}
|
|
14618
|
+
*/
|
|
14619
|
+
async updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseMapStringObject>> {
|
|
14620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateModuleForkFields(recordUuid, sessionId, requestBody, options);
|
|
14621
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14622
|
+
const localVarOperationServerBasePath = operationServerMap['CMSV2PagesApi.updateModuleForkFields']?.[localVarOperationServerIndex]?.url;
|
|
14623
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14624
|
+
},
|
|
14563
14625
|
}
|
|
14564
14626
|
};
|
|
14565
14627
|
|
|
@@ -14815,6 +14877,18 @@ export const CMSV2PagesApiFactory = function (configuration?: Configuration, bas
|
|
|
14815
14877
|
unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseCmsPageDTO> {
|
|
14816
14878
|
return localVarFp.unselectEnvironment(recordUuid, key, options).then((request) => request(axios, basePath));
|
|
14817
14879
|
},
|
|
14880
|
+
/**
|
|
14881
|
+
* Writes test values into the playground session without changing the live page.
|
|
14882
|
+
* @summary Preview field values on the forked module
|
|
14883
|
+
* @param {string} recordUuid
|
|
14884
|
+
* @param {string} sessionId
|
|
14885
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
14886
|
+
* @param {*} [options] Override http request option.
|
|
14887
|
+
* @throws {RequiredError}
|
|
14888
|
+
*/
|
|
14889
|
+
updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject> {
|
|
14890
|
+
return localVarFp.updateModuleForkFields(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
|
|
14891
|
+
},
|
|
14818
14892
|
};
|
|
14819
14893
|
};
|
|
14820
14894
|
|
|
@@ -15089,6 +15163,19 @@ export class CMSV2PagesApi extends BaseAPI {
|
|
|
15089
15163
|
public unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig) {
|
|
15090
15164
|
return CMSV2PagesApiFp(this.configuration).unselectEnvironment(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
|
|
15091
15165
|
}
|
|
15166
|
+
|
|
15167
|
+
/**
|
|
15168
|
+
* Writes test values into the playground session without changing the live page.
|
|
15169
|
+
* @summary Preview field values on the forked module
|
|
15170
|
+
* @param {string} recordUuid
|
|
15171
|
+
* @param {string} sessionId
|
|
15172
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
15173
|
+
* @param {*} [options] Override http request option.
|
|
15174
|
+
* @throws {RequiredError}
|
|
15175
|
+
*/
|
|
15176
|
+
public updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: { [key: string]: any | null; }, options?: RawAxiosRequestConfig) {
|
|
15177
|
+
return CMSV2PagesApiFp(this.configuration).updateModuleForkFields(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
15178
|
+
}
|
|
15092
15179
|
}
|
|
15093
15180
|
|
|
15094
15181
|
|
package/dist/api.d.ts
CHANGED
|
@@ -3499,11 +3499,11 @@ export interface ModelRecord {
|
|
|
3499
3499
|
'deleted'?: boolean;
|
|
3500
3500
|
'complete'?: boolean;
|
|
3501
3501
|
'uuid': string;
|
|
3502
|
-
'user'?: PublicUserDTO;
|
|
3503
3502
|
'properties'?: Array<FilledProperty>;
|
|
3504
3503
|
'objects'?: {
|
|
3505
3504
|
[key: string]: any | null;
|
|
3506
3505
|
};
|
|
3506
|
+
'user'?: PublicUserDTO;
|
|
3507
3507
|
}
|
|
3508
3508
|
export interface MultiFile extends PropertyFormat {
|
|
3509
3509
|
}
|
|
@@ -10927,6 +10927,18 @@ export declare const CMSV2PagesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
10927
10927
|
* @throws {RequiredError}
|
|
10928
10928
|
*/
|
|
10929
10929
|
unselectEnvironment: (recordUuid: string, key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10930
|
+
/**
|
|
10931
|
+
* Writes test values into the playground session without changing the live page.
|
|
10932
|
+
* @summary Preview field values on the forked module
|
|
10933
|
+
* @param {string} recordUuid
|
|
10934
|
+
* @param {string} sessionId
|
|
10935
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
10936
|
+
* @param {*} [options] Override http request option.
|
|
10937
|
+
* @throws {RequiredError}
|
|
10938
|
+
*/
|
|
10939
|
+
updateModuleForkFields: (recordUuid: string, sessionId: string, requestBody: {
|
|
10940
|
+
[key: string]: any | null;
|
|
10941
|
+
}, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10930
10942
|
};
|
|
10931
10943
|
/**
|
|
10932
10944
|
* CMSV2PagesApi - functional programming interface
|
|
@@ -11144,6 +11156,18 @@ export declare const CMSV2PagesApiFp: (configuration?: Configuration) => {
|
|
|
11144
11156
|
* @throws {RequiredError}
|
|
11145
11157
|
*/
|
|
11146
11158
|
unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseCmsPageDTO>>;
|
|
11159
|
+
/**
|
|
11160
|
+
* Writes test values into the playground session without changing the live page.
|
|
11161
|
+
* @summary Preview field values on the forked module
|
|
11162
|
+
* @param {string} recordUuid
|
|
11163
|
+
* @param {string} sessionId
|
|
11164
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
11165
|
+
* @param {*} [options] Override http request option.
|
|
11166
|
+
* @throws {RequiredError}
|
|
11167
|
+
*/
|
|
11168
|
+
updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: {
|
|
11169
|
+
[key: string]: any | null;
|
|
11170
|
+
}, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseMapStringObject>>;
|
|
11147
11171
|
};
|
|
11148
11172
|
/**
|
|
11149
11173
|
* CMSV2PagesApi - factory interface
|
|
@@ -11361,6 +11385,18 @@ export declare const CMSV2PagesApiFactory: (configuration?: Configuration, baseP
|
|
|
11361
11385
|
* @throws {RequiredError}
|
|
11362
11386
|
*/
|
|
11363
11387
|
unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseCmsPageDTO>;
|
|
11388
|
+
/**
|
|
11389
|
+
* Writes test values into the playground session without changing the live page.
|
|
11390
|
+
* @summary Preview field values on the forked module
|
|
11391
|
+
* @param {string} recordUuid
|
|
11392
|
+
* @param {string} sessionId
|
|
11393
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
11394
|
+
* @param {*} [options] Override http request option.
|
|
11395
|
+
* @throws {RequiredError}
|
|
11396
|
+
*/
|
|
11397
|
+
updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: {
|
|
11398
|
+
[key: string]: any | null;
|
|
11399
|
+
}, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject>;
|
|
11364
11400
|
};
|
|
11365
11401
|
/**
|
|
11366
11402
|
* CMSV2PagesApi - object-oriented interface
|
|
@@ -11578,6 +11614,18 @@ export declare class CMSV2PagesApi extends BaseAPI {
|
|
|
11578
11614
|
* @throws {RequiredError}
|
|
11579
11615
|
*/
|
|
11580
11616
|
unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShowResponseCmsPageDTO, any, {}>>;
|
|
11617
|
+
/**
|
|
11618
|
+
* Writes test values into the playground session without changing the live page.
|
|
11619
|
+
* @summary Preview field values on the forked module
|
|
11620
|
+
* @param {string} recordUuid
|
|
11621
|
+
* @param {string} sessionId
|
|
11622
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
11623
|
+
* @param {*} [options] Override http request option.
|
|
11624
|
+
* @throws {RequiredError}
|
|
11625
|
+
*/
|
|
11626
|
+
updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: {
|
|
11627
|
+
[key: string]: any | null;
|
|
11628
|
+
}, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShowResponseMapStringObject, any, {}>>;
|
|
11581
11629
|
}
|
|
11582
11630
|
/**
|
|
11583
11631
|
* CMSV2PublicApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -5847,6 +5847,48 @@ const CMSV2PagesApiAxiosParamCreator = function (configuration) {
|
|
|
5847
5847
|
options: localVarRequestOptions,
|
|
5848
5848
|
};
|
|
5849
5849
|
}),
|
|
5850
|
+
/**
|
|
5851
|
+
* Writes test values into the playground session without changing the live page.
|
|
5852
|
+
* @summary Preview field values on the forked module
|
|
5853
|
+
* @param {string} recordUuid
|
|
5854
|
+
* @param {string} sessionId
|
|
5855
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
5856
|
+
* @param {*} [options] Override http request option.
|
|
5857
|
+
* @throws {RequiredError}
|
|
5858
|
+
*/
|
|
5859
|
+
updateModuleForkFields: (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 = {}) {
|
|
5860
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
5861
|
+
(0, common_1.assertParamExists)('updateModuleForkFields', 'recordUuid', recordUuid);
|
|
5862
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
5863
|
+
(0, common_1.assertParamExists)('updateModuleForkFields', 'sessionId', sessionId);
|
|
5864
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
5865
|
+
(0, common_1.assertParamExists)('updateModuleForkFields', 'requestBody', requestBody);
|
|
5866
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/fields`
|
|
5867
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
|
|
5868
|
+
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
5869
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5870
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5871
|
+
let baseOptions;
|
|
5872
|
+
if (configuration) {
|
|
5873
|
+
baseOptions = configuration.baseOptions;
|
|
5874
|
+
}
|
|
5875
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
5876
|
+
const localVarHeaderParameter = {};
|
|
5877
|
+
const localVarQueryParameter = {};
|
|
5878
|
+
// authentication bearerAuth required
|
|
5879
|
+
// http bearer authentication required
|
|
5880
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5881
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5882
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
5883
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5885
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5886
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
5887
|
+
return {
|
|
5888
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5889
|
+
options: localVarRequestOptions,
|
|
5890
|
+
};
|
|
5891
|
+
}),
|
|
5850
5892
|
};
|
|
5851
5893
|
};
|
|
5852
5894
|
exports.CMSV2PagesApiAxiosParamCreator = CMSV2PagesApiAxiosParamCreator;
|
|
@@ -6234,6 +6276,24 @@ const CMSV2PagesApiFp = function (configuration) {
|
|
|
6234
6276
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6235
6277
|
});
|
|
6236
6278
|
},
|
|
6279
|
+
/**
|
|
6280
|
+
* Writes test values into the playground session without changing the live page.
|
|
6281
|
+
* @summary Preview field values on the forked module
|
|
6282
|
+
* @param {string} recordUuid
|
|
6283
|
+
* @param {string} sessionId
|
|
6284
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6285
|
+
* @param {*} [options] Override http request option.
|
|
6286
|
+
* @throws {RequiredError}
|
|
6287
|
+
*/
|
|
6288
|
+
updateModuleForkFields(recordUuid, sessionId, requestBody, options) {
|
|
6289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6290
|
+
var _a, _b, _c;
|
|
6291
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateModuleForkFields(recordUuid, sessionId, requestBody, options);
|
|
6292
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6293
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.updateModuleForkFields']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6294
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6295
|
+
});
|
|
6296
|
+
},
|
|
6237
6297
|
};
|
|
6238
6298
|
};
|
|
6239
6299
|
exports.CMSV2PagesApiFp = CMSV2PagesApiFp;
|
|
@@ -6489,6 +6549,18 @@ const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
6489
6549
|
unselectEnvironment(recordUuid, key, options) {
|
|
6490
6550
|
return localVarFp.unselectEnvironment(recordUuid, key, options).then((request) => request(axios, basePath));
|
|
6491
6551
|
},
|
|
6552
|
+
/**
|
|
6553
|
+
* Writes test values into the playground session without changing the live page.
|
|
6554
|
+
* @summary Preview field values on the forked module
|
|
6555
|
+
* @param {string} recordUuid
|
|
6556
|
+
* @param {string} sessionId
|
|
6557
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6558
|
+
* @param {*} [options] Override http request option.
|
|
6559
|
+
* @throws {RequiredError}
|
|
6560
|
+
*/
|
|
6561
|
+
updateModuleForkFields(recordUuid, sessionId, requestBody, options) {
|
|
6562
|
+
return localVarFp.updateModuleForkFields(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
|
|
6563
|
+
},
|
|
6492
6564
|
};
|
|
6493
6565
|
};
|
|
6494
6566
|
exports.CMSV2PagesApiFactory = CMSV2PagesApiFactory;
|
|
@@ -6742,6 +6814,18 @@ class CMSV2PagesApi extends base_1.BaseAPI {
|
|
|
6742
6814
|
unselectEnvironment(recordUuid, key, options) {
|
|
6743
6815
|
return (0, exports.CMSV2PagesApiFp)(this.configuration).unselectEnvironment(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
|
|
6744
6816
|
}
|
|
6817
|
+
/**
|
|
6818
|
+
* Writes test values into the playground session without changing the live page.
|
|
6819
|
+
* @summary Preview field values on the forked module
|
|
6820
|
+
* @param {string} recordUuid
|
|
6821
|
+
* @param {string} sessionId
|
|
6822
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6823
|
+
* @param {*} [options] Override http request option.
|
|
6824
|
+
* @throws {RequiredError}
|
|
6825
|
+
*/
|
|
6826
|
+
updateModuleForkFields(recordUuid, sessionId, requestBody, options) {
|
|
6827
|
+
return (0, exports.CMSV2PagesApiFp)(this.configuration).updateModuleForkFields(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6828
|
+
}
|
|
6745
6829
|
}
|
|
6746
6830
|
exports.CMSV2PagesApi = CMSV2PagesApi;
|
|
6747
6831
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -3499,11 +3499,11 @@ export interface ModelRecord {
|
|
|
3499
3499
|
'deleted'?: boolean;
|
|
3500
3500
|
'complete'?: boolean;
|
|
3501
3501
|
'uuid': string;
|
|
3502
|
-
'user'?: PublicUserDTO;
|
|
3503
3502
|
'properties'?: Array<FilledProperty>;
|
|
3504
3503
|
'objects'?: {
|
|
3505
3504
|
[key: string]: any | null;
|
|
3506
3505
|
};
|
|
3506
|
+
'user'?: PublicUserDTO;
|
|
3507
3507
|
}
|
|
3508
3508
|
export interface MultiFile extends PropertyFormat {
|
|
3509
3509
|
}
|
|
@@ -10927,6 +10927,18 @@ export declare const CMSV2PagesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
10927
10927
|
* @throws {RequiredError}
|
|
10928
10928
|
*/
|
|
10929
10929
|
unselectEnvironment: (recordUuid: string, key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10930
|
+
/**
|
|
10931
|
+
* Writes test values into the playground session without changing the live page.
|
|
10932
|
+
* @summary Preview field values on the forked module
|
|
10933
|
+
* @param {string} recordUuid
|
|
10934
|
+
* @param {string} sessionId
|
|
10935
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
10936
|
+
* @param {*} [options] Override http request option.
|
|
10937
|
+
* @throws {RequiredError}
|
|
10938
|
+
*/
|
|
10939
|
+
updateModuleForkFields: (recordUuid: string, sessionId: string, requestBody: {
|
|
10940
|
+
[key: string]: any | null;
|
|
10941
|
+
}, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10930
10942
|
};
|
|
10931
10943
|
/**
|
|
10932
10944
|
* CMSV2PagesApi - functional programming interface
|
|
@@ -11144,6 +11156,18 @@ export declare const CMSV2PagesApiFp: (configuration?: Configuration) => {
|
|
|
11144
11156
|
* @throws {RequiredError}
|
|
11145
11157
|
*/
|
|
11146
11158
|
unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseCmsPageDTO>>;
|
|
11159
|
+
/**
|
|
11160
|
+
* Writes test values into the playground session without changing the live page.
|
|
11161
|
+
* @summary Preview field values on the forked module
|
|
11162
|
+
* @param {string} recordUuid
|
|
11163
|
+
* @param {string} sessionId
|
|
11164
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
11165
|
+
* @param {*} [options] Override http request option.
|
|
11166
|
+
* @throws {RequiredError}
|
|
11167
|
+
*/
|
|
11168
|
+
updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: {
|
|
11169
|
+
[key: string]: any | null;
|
|
11170
|
+
}, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseMapStringObject>>;
|
|
11147
11171
|
};
|
|
11148
11172
|
/**
|
|
11149
11173
|
* CMSV2PagesApi - factory interface
|
|
@@ -11361,6 +11385,18 @@ export declare const CMSV2PagesApiFactory: (configuration?: Configuration, baseP
|
|
|
11361
11385
|
* @throws {RequiredError}
|
|
11362
11386
|
*/
|
|
11363
11387
|
unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseCmsPageDTO>;
|
|
11388
|
+
/**
|
|
11389
|
+
* Writes test values into the playground session without changing the live page.
|
|
11390
|
+
* @summary Preview field values on the forked module
|
|
11391
|
+
* @param {string} recordUuid
|
|
11392
|
+
* @param {string} sessionId
|
|
11393
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
11394
|
+
* @param {*} [options] Override http request option.
|
|
11395
|
+
* @throws {RequiredError}
|
|
11396
|
+
*/
|
|
11397
|
+
updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: {
|
|
11398
|
+
[key: string]: any | null;
|
|
11399
|
+
}, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseMapStringObject>;
|
|
11364
11400
|
};
|
|
11365
11401
|
/**
|
|
11366
11402
|
* CMSV2PagesApi - object-oriented interface
|
|
@@ -11578,6 +11614,18 @@ export declare class CMSV2PagesApi extends BaseAPI {
|
|
|
11578
11614
|
* @throws {RequiredError}
|
|
11579
11615
|
*/
|
|
11580
11616
|
unselectEnvironment(recordUuid: string, key: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShowResponseCmsPageDTO, any, {}>>;
|
|
11617
|
+
/**
|
|
11618
|
+
* Writes test values into the playground session without changing the live page.
|
|
11619
|
+
* @summary Preview field values on the forked module
|
|
11620
|
+
* @param {string} recordUuid
|
|
11621
|
+
* @param {string} sessionId
|
|
11622
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
11623
|
+
* @param {*} [options] Override http request option.
|
|
11624
|
+
* @throws {RequiredError}
|
|
11625
|
+
*/
|
|
11626
|
+
updateModuleForkFields(recordUuid: string, sessionId: string, requestBody: {
|
|
11627
|
+
[key: string]: any | null;
|
|
11628
|
+
}, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShowResponseMapStringObject, any, {}>>;
|
|
11581
11629
|
}
|
|
11582
11630
|
/**
|
|
11583
11631
|
* CMSV2PublicApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -5809,6 +5809,48 @@ export const CMSV2PagesApiAxiosParamCreator = function (configuration) {
|
|
|
5809
5809
|
options: localVarRequestOptions,
|
|
5810
5810
|
};
|
|
5811
5811
|
}),
|
|
5812
|
+
/**
|
|
5813
|
+
* Writes test values into the playground session without changing the live page.
|
|
5814
|
+
* @summary Preview field values on the forked module
|
|
5815
|
+
* @param {string} recordUuid
|
|
5816
|
+
* @param {string} sessionId
|
|
5817
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
5818
|
+
* @param {*} [options] Override http request option.
|
|
5819
|
+
* @throws {RequiredError}
|
|
5820
|
+
*/
|
|
5821
|
+
updateModuleForkFields: (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 = {}) {
|
|
5822
|
+
// verify required parameter 'recordUuid' is not null or undefined
|
|
5823
|
+
assertParamExists('updateModuleForkFields', 'recordUuid', recordUuid);
|
|
5824
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
5825
|
+
assertParamExists('updateModuleForkFields', 'sessionId', sessionId);
|
|
5826
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
5827
|
+
assertParamExists('updateModuleForkFields', 'requestBody', requestBody);
|
|
5828
|
+
const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/fields`
|
|
5829
|
+
.replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
|
|
5830
|
+
.replace('{sessionId}', encodeURIComponent(String(sessionId)));
|
|
5831
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5832
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5833
|
+
let baseOptions;
|
|
5834
|
+
if (configuration) {
|
|
5835
|
+
baseOptions = configuration.baseOptions;
|
|
5836
|
+
}
|
|
5837
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
5838
|
+
const localVarHeaderParameter = {};
|
|
5839
|
+
const localVarQueryParameter = {};
|
|
5840
|
+
// authentication bearerAuth required
|
|
5841
|
+
// http bearer authentication required
|
|
5842
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5843
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5844
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
5845
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5846
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5847
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5848
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
5849
|
+
return {
|
|
5850
|
+
url: toPathString(localVarUrlObj),
|
|
5851
|
+
options: localVarRequestOptions,
|
|
5852
|
+
};
|
|
5853
|
+
}),
|
|
5812
5854
|
};
|
|
5813
5855
|
};
|
|
5814
5856
|
/**
|
|
@@ -6195,6 +6237,24 @@ export const CMSV2PagesApiFp = function (configuration) {
|
|
|
6195
6237
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6196
6238
|
});
|
|
6197
6239
|
},
|
|
6240
|
+
/**
|
|
6241
|
+
* Writes test values into the playground session without changing the live page.
|
|
6242
|
+
* @summary Preview field values on the forked module
|
|
6243
|
+
* @param {string} recordUuid
|
|
6244
|
+
* @param {string} sessionId
|
|
6245
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6246
|
+
* @param {*} [options] Override http request option.
|
|
6247
|
+
* @throws {RequiredError}
|
|
6248
|
+
*/
|
|
6249
|
+
updateModuleForkFields(recordUuid, sessionId, requestBody, options) {
|
|
6250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6251
|
+
var _a, _b, _c;
|
|
6252
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateModuleForkFields(recordUuid, sessionId, requestBody, options);
|
|
6253
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6254
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.updateModuleForkFields']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6255
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6256
|
+
});
|
|
6257
|
+
},
|
|
6198
6258
|
};
|
|
6199
6259
|
};
|
|
6200
6260
|
/**
|
|
@@ -6449,6 +6509,18 @@ export const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
6449
6509
|
unselectEnvironment(recordUuid, key, options) {
|
|
6450
6510
|
return localVarFp.unselectEnvironment(recordUuid, key, options).then((request) => request(axios, basePath));
|
|
6451
6511
|
},
|
|
6512
|
+
/**
|
|
6513
|
+
* Writes test values into the playground session without changing the live page.
|
|
6514
|
+
* @summary Preview field values on the forked module
|
|
6515
|
+
* @param {string} recordUuid
|
|
6516
|
+
* @param {string} sessionId
|
|
6517
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6518
|
+
* @param {*} [options] Override http request option.
|
|
6519
|
+
* @throws {RequiredError}
|
|
6520
|
+
*/
|
|
6521
|
+
updateModuleForkFields(recordUuid, sessionId, requestBody, options) {
|
|
6522
|
+
return localVarFp.updateModuleForkFields(recordUuid, sessionId, requestBody, options).then((request) => request(axios, basePath));
|
|
6523
|
+
},
|
|
6452
6524
|
};
|
|
6453
6525
|
};
|
|
6454
6526
|
/**
|
|
@@ -6701,6 +6773,18 @@ export class CMSV2PagesApi extends BaseAPI {
|
|
|
6701
6773
|
unselectEnvironment(recordUuid, key, options) {
|
|
6702
6774
|
return CMSV2PagesApiFp(this.configuration).unselectEnvironment(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
|
|
6703
6775
|
}
|
|
6776
|
+
/**
|
|
6777
|
+
* Writes test values into the playground session without changing the live page.
|
|
6778
|
+
* @summary Preview field values on the forked module
|
|
6779
|
+
* @param {string} recordUuid
|
|
6780
|
+
* @param {string} sessionId
|
|
6781
|
+
* @param {{ [key: string]: any | null; }} requestBody
|
|
6782
|
+
* @param {*} [options] Override http request option.
|
|
6783
|
+
* @throws {RequiredError}
|
|
6784
|
+
*/
|
|
6785
|
+
updateModuleForkFields(recordUuid, sessionId, requestBody, options) {
|
|
6786
|
+
return CMSV2PagesApiFp(this.configuration).updateModuleForkFields(recordUuid, sessionId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6787
|
+
}
|
|
6704
6788
|
}
|
|
6705
6789
|
/**
|
|
6706
6790
|
* CMSV2PublicApi - axios parameter creator
|
package/docs/CMSV2PagesApi.md
CHANGED
|
@@ -26,6 +26,7 @@ All URIs are relative to *https://v2.api.caraer.com*
|
|
|
26
26
|
|[**startModuleFork**](#startmodulefork) | **POST** /api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions | Start a Modify-this-module playground session|
|
|
27
27
|
|[**unpublish**](#unpublish) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/unpublish | Take one locale offline|
|
|
28
28
|
|[**unselectEnvironment**](#unselectenvironment) | **DELETE** /api/v2/webpages/v2/pages/{recordUuid}/environments/{key} | Remove an environment from this page only|
|
|
29
|
+
|[**updateModuleForkFields**](#updatemoduleforkfields) | **PUT** /api/v2/webpages/v2/pages/{recordUuid}/ai/module-fork/sessions/{sessionId}/fields | Preview field values on the forked module|
|
|
29
30
|
|
|
30
31
|
# **aiRewrite**
|
|
31
32
|
> ShowResponseMapStringObject aiRewrite(requestBody)
|
|
@@ -1296,3 +1297,64 @@ const { status, data } = await apiInstance.unselectEnvironment(
|
|
|
1296
1297
|
|
|
1297
1298
|
[[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)
|
|
1298
1299
|
|
|
1300
|
+
# **updateModuleForkFields**
|
|
1301
|
+
> ShowResponseMapStringObject updateModuleForkFields(requestBody)
|
|
1302
|
+
|
|
1303
|
+
Writes test values into the playground session without changing the live page.
|
|
1304
|
+
|
|
1305
|
+
### Example
|
|
1306
|
+
|
|
1307
|
+
```typescript
|
|
1308
|
+
import {
|
|
1309
|
+
CMSV2PagesApi,
|
|
1310
|
+
Configuration
|
|
1311
|
+
} from '@caraer/client';
|
|
1312
|
+
|
|
1313
|
+
const configuration = new Configuration();
|
|
1314
|
+
const apiInstance = new CMSV2PagesApi(configuration);
|
|
1315
|
+
|
|
1316
|
+
let recordUuid: string; // (default to undefined)
|
|
1317
|
+
let sessionId: string; // (default to undefined)
|
|
1318
|
+
let requestBody: { [key: string]: any | null; }; //
|
|
1319
|
+
|
|
1320
|
+
const { status, data } = await apiInstance.updateModuleForkFields(
|
|
1321
|
+
recordUuid,
|
|
1322
|
+
sessionId,
|
|
1323
|
+
requestBody
|
|
1324
|
+
);
|
|
1325
|
+
```
|
|
1326
|
+
|
|
1327
|
+
### Parameters
|
|
1328
|
+
|
|
1329
|
+
|Name | Type | Description | Notes|
|
|
1330
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1331
|
+
| **requestBody** | **{ [key: string]: any | null; }**| | |
|
|
1332
|
+
| **recordUuid** | [**string**] | | defaults to undefined|
|
|
1333
|
+
| **sessionId** | [**string**] | | defaults to undefined|
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
### Return type
|
|
1337
|
+
|
|
1338
|
+
**ShowResponseMapStringObject**
|
|
1339
|
+
|
|
1340
|
+
### Authorization
|
|
1341
|
+
|
|
1342
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1343
|
+
|
|
1344
|
+
### HTTP request headers
|
|
1345
|
+
|
|
1346
|
+
- **Content-Type**: application/json
|
|
1347
|
+
- **Accept**: application/json
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
### HTTP response details
|
|
1351
|
+
| Status code | Description | Response headers |
|
|
1352
|
+
|-------------|-------------|------------------|
|
|
1353
|
+
|**200** | OK | - |
|
|
1354
|
+
|**401** | Authentication is required or the token is invalid. | - |
|
|
1355
|
+
|**403** | The caller is missing a required role or scope. | - |
|
|
1356
|
+
|**404** | The requested resource was not found. | - |
|
|
1357
|
+
|**500** | An internal server error occurred. | - |
|
|
1358
|
+
|
|
1359
|
+
[[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)
|
|
1360
|
+
|
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
|
|