@caraer/client 2.0.503 → 2.0.505

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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/api.ts +4952 -148
  3. package/dist/api.d.ts +2746 -125
  4. package/dist/api.js +4048 -72
  5. package/dist/esm/api.d.ts +2746 -125
  6. package/dist/esm/api.js +4024 -69
  7. package/docs/AppSettingFieldSchema.md +10 -0
  8. package/docs/CMSModulesApi.md +181 -0
  9. package/docs/CMSV2EnvironmentsApi.md +396 -0
  10. package/docs/CMSV2PagesApi.md +1058 -0
  11. package/docs/CMSV2PublicApi.md +739 -0
  12. package/docs/CMSV2TransferApi.md +230 -0
  13. package/docs/CalendarsApi.md +8 -8
  14. package/docs/CmsEnvironmentDTO.md +36 -0
  15. package/docs/CmsModuleDTO.md +52 -0
  16. package/docs/CmsPageDTO.md +44 -0
  17. package/docs/CmsPageDocument.md +38 -0
  18. package/docs/CmsPageModuleInstance.md +26 -0
  19. package/docs/CmsPagePatch.md +40 -0
  20. package/docs/CmsPagePatchRequest.md +24 -0
  21. package/docs/CmsPublicMenuDTO.md +24 -0
  22. package/docs/CompanyDTO.md +8 -0
  23. package/docs/DeveloperSandboxesApi.md +4 -4
  24. package/docs/DigitalIdentityDTO.md +104 -0
  25. package/docs/ExistingWidgetSummary.md +2 -2
  26. package/docs/FileListItemDTO.md +28 -0
  27. package/docs/FileManagementApi.md +55 -0
  28. package/docs/Location.md +18 -0
  29. package/docs/MapLocationDTO.md +65 -0
  30. package/docs/MapMarkerPreviewRequest.md +24 -0
  31. package/docs/MultiFile.md +18 -0
  32. package/docs/PageContentSettingsDTO.md +10 -0
  33. package/docs/RecordSummary.md +26 -0
  34. package/docs/ServerlessFunctionsApi.md +12 -12
  35. package/docs/SettingOption.md +2 -0
  36. package/docs/ShowResponseCmsEnvironmentDTO.md +23 -0
  37. package/docs/ShowResponseCmsPageDTO.md +23 -0
  38. package/docs/ShowResponseCmsPageDocument.md +23 -0
  39. package/docs/ShowResponseCompanyDTO.md +3 -3
  40. package/docs/ShowResponseListCmsEnvironmentDTO.md +23 -0
  41. package/docs/ShowResponseListCmsModuleDTO.md +23 -0
  42. package/docs/ShowResponseListCmsPageDTO.md +23 -0
  43. package/docs/ShowResponseListCmsPublicMenuDTO.md +23 -0
  44. package/docs/ShowResponseListMapStringObject.md +23 -0
  45. package/docs/ShowResponseListWebpageAccessGrantDTO.md +23 -0
  46. package/docs/ShowResponsePreviewDTO.md +3 -3
  47. package/docs/ShowResponseSignedUrlResultDTO.md +23 -0
  48. package/docs/ShowResponseWebpageMapLocationsDTO.md +23 -0
  49. package/docs/SuccessResponseListFileListItemDTO.md +23 -0
  50. package/docs/TemplateWebpageDTO.md +2 -0
  51. package/docs/WebpageDTO.md +4 -0
  52. package/docs/WebpageMapLocationsDTO.md +21 -0
  53. package/docs/WebpagesApi.md +168 -0
  54. package/docs/WebsiteSettingsDTO.md +10 -0
  55. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -4188,6 +4188,3622 @@ export class BillingApi extends BaseAPI {
4188
4188
  return BillingApiFp(this.configuration).sendSetupEmail(options).then((request) => request(this.axios, this.basePath));
4189
4189
  }
4190
4190
  }
4191
+ /**
4192
+ * CMSModulesApi - axios parameter creator
4193
+ */
4194
+ export const CMSModulesApiAxiosParamCreator = function (configuration) {
4195
+ return {
4196
+ /**
4197
+ * Includes retired modules, so a developer can see what a push removed.
4198
+ * @summary List an app\'s CMS modules
4199
+ * @param {string} appUuid
4200
+ * @param {*} [options] Override http request option.
4201
+ * @throws {RequiredError}
4202
+ */
4203
+ list: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
4204
+ // verify required parameter 'appUuid' is not null or undefined
4205
+ assertParamExists('list', 'appUuid', appUuid);
4206
+ const localVarPath = `/api/v2/apps/{appUuid}/cms-modules`
4207
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
4208
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4209
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4210
+ let baseOptions;
4211
+ if (configuration) {
4212
+ baseOptions = configuration.baseOptions;
4213
+ }
4214
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4215
+ const localVarHeaderParameter = {};
4216
+ const localVarQueryParameter = {};
4217
+ // authentication bearerAuth required
4218
+ // http bearer authentication required
4219
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4220
+ localVarHeaderParameter['Accept'] = 'application/json';
4221
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4222
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4223
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4224
+ return {
4225
+ url: toPathString(localVarUrlObj),
4226
+ options: localVarRequestOptions,
4227
+ };
4228
+ }),
4229
+ /**
4230
+ * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog.
4231
+ * @summary Publish an app\'s CMS module package
4232
+ * @param {string} appUuid
4233
+ * @param {{ [key: string]: any | null; }} requestBody
4234
+ * @param {*} [options] Override http request option.
4235
+ * @throws {RequiredError}
4236
+ */
4237
+ publishPackage: (appUuid_1, requestBody_1, ...args_1) => __awaiter(this, [appUuid_1, requestBody_1, ...args_1], void 0, function* (appUuid, requestBody, options = {}) {
4238
+ // verify required parameter 'appUuid' is not null or undefined
4239
+ assertParamExists('publishPackage', 'appUuid', appUuid);
4240
+ // verify required parameter 'requestBody' is not null or undefined
4241
+ assertParamExists('publishPackage', 'requestBody', requestBody);
4242
+ const localVarPath = `/api/v2/apps/{appUuid}/cms-modules/package`
4243
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
4244
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4245
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4246
+ let baseOptions;
4247
+ if (configuration) {
4248
+ baseOptions = configuration.baseOptions;
4249
+ }
4250
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4251
+ const localVarHeaderParameter = {};
4252
+ const localVarQueryParameter = {};
4253
+ // authentication bearerAuth required
4254
+ // http bearer authentication required
4255
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4256
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4257
+ localVarHeaderParameter['Accept'] = 'application/json';
4258
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4259
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4260
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4261
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
4262
+ return {
4263
+ url: toPathString(localVarUrlObj),
4264
+ options: localVarRequestOptions,
4265
+ };
4266
+ }),
4267
+ /**
4268
+ * Registers the modules shipped by a published package version. Modules missing from the payload are retired rather than deleted, because pages may still reference them.
4269
+ * @summary Replace an app\'s CMS module catalog
4270
+ * @param {string} appUuid
4271
+ * @param {{ [key: string]: any | null; }} requestBody
4272
+ * @param {*} [options] Override http request option.
4273
+ * @throws {RequiredError}
4274
+ */
4275
+ upsert: (appUuid_1, requestBody_1, ...args_1) => __awaiter(this, [appUuid_1, requestBody_1, ...args_1], void 0, function* (appUuid, requestBody, options = {}) {
4276
+ // verify required parameter 'appUuid' is not null or undefined
4277
+ assertParamExists('upsert', 'appUuid', appUuid);
4278
+ // verify required parameter 'requestBody' is not null or undefined
4279
+ assertParamExists('upsert', 'requestBody', requestBody);
4280
+ const localVarPath = `/api/v2/apps/{appUuid}/cms-modules`
4281
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
4282
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4283
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4284
+ let baseOptions;
4285
+ if (configuration) {
4286
+ baseOptions = configuration.baseOptions;
4287
+ }
4288
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4289
+ const localVarHeaderParameter = {};
4290
+ const localVarQueryParameter = {};
4291
+ // authentication bearerAuth required
4292
+ // http bearer authentication required
4293
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4294
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4295
+ localVarHeaderParameter['Accept'] = 'application/json';
4296
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4298
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4299
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
4300
+ return {
4301
+ url: toPathString(localVarUrlObj),
4302
+ options: localVarRequestOptions,
4303
+ };
4304
+ }),
4305
+ };
4306
+ };
4307
+ /**
4308
+ * CMSModulesApi - functional programming interface
4309
+ */
4310
+ export const CMSModulesApiFp = function (configuration) {
4311
+ const localVarAxiosParamCreator = CMSModulesApiAxiosParamCreator(configuration);
4312
+ return {
4313
+ /**
4314
+ * Includes retired modules, so a developer can see what a push removed.
4315
+ * @summary List an app\'s CMS modules
4316
+ * @param {string} appUuid
4317
+ * @param {*} [options] Override http request option.
4318
+ * @throws {RequiredError}
4319
+ */
4320
+ list(appUuid, options) {
4321
+ return __awaiter(this, void 0, void 0, function* () {
4322
+ var _a, _b, _c;
4323
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.list(appUuid, options);
4324
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4325
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSModulesApi.list']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4326
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4327
+ });
4328
+ },
4329
+ /**
4330
+ * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog.
4331
+ * @summary Publish an app\'s CMS module package
4332
+ * @param {string} appUuid
4333
+ * @param {{ [key: string]: any | null; }} requestBody
4334
+ * @param {*} [options] Override http request option.
4335
+ * @throws {RequiredError}
4336
+ */
4337
+ publishPackage(appUuid, requestBody, options) {
4338
+ return __awaiter(this, void 0, void 0, function* () {
4339
+ var _a, _b, _c;
4340
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publishPackage(appUuid, requestBody, options);
4341
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4342
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSModulesApi.publishPackage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4343
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4344
+ });
4345
+ },
4346
+ /**
4347
+ * Registers the modules shipped by a published package version. Modules missing from the payload are retired rather than deleted, because pages may still reference them.
4348
+ * @summary Replace an app\'s CMS module catalog
4349
+ * @param {string} appUuid
4350
+ * @param {{ [key: string]: any | null; }} requestBody
4351
+ * @param {*} [options] Override http request option.
4352
+ * @throws {RequiredError}
4353
+ */
4354
+ upsert(appUuid, requestBody, options) {
4355
+ return __awaiter(this, void 0, void 0, function* () {
4356
+ var _a, _b, _c;
4357
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upsert(appUuid, requestBody, options);
4358
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4359
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSModulesApi.upsert']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4360
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4361
+ });
4362
+ },
4363
+ };
4364
+ };
4365
+ /**
4366
+ * CMSModulesApi - factory interface
4367
+ */
4368
+ export const CMSModulesApiFactory = function (configuration, basePath, axios) {
4369
+ const localVarFp = CMSModulesApiFp(configuration);
4370
+ return {
4371
+ /**
4372
+ * Includes retired modules, so a developer can see what a push removed.
4373
+ * @summary List an app\'s CMS modules
4374
+ * @param {string} appUuid
4375
+ * @param {*} [options] Override http request option.
4376
+ * @throws {RequiredError}
4377
+ */
4378
+ list(appUuid, options) {
4379
+ return localVarFp.list(appUuid, options).then((request) => request(axios, basePath));
4380
+ },
4381
+ /**
4382
+ * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog.
4383
+ * @summary Publish an app\'s CMS module package
4384
+ * @param {string} appUuid
4385
+ * @param {{ [key: string]: any | null; }} requestBody
4386
+ * @param {*} [options] Override http request option.
4387
+ * @throws {RequiredError}
4388
+ */
4389
+ publishPackage(appUuid, requestBody, options) {
4390
+ return localVarFp.publishPackage(appUuid, requestBody, options).then((request) => request(axios, basePath));
4391
+ },
4392
+ /**
4393
+ * Registers the modules shipped by a published package version. Modules missing from the payload are retired rather than deleted, because pages may still reference them.
4394
+ * @summary Replace an app\'s CMS module catalog
4395
+ * @param {string} appUuid
4396
+ * @param {{ [key: string]: any | null; }} requestBody
4397
+ * @param {*} [options] Override http request option.
4398
+ * @throws {RequiredError}
4399
+ */
4400
+ upsert(appUuid, requestBody, options) {
4401
+ return localVarFp.upsert(appUuid, requestBody, options).then((request) => request(axios, basePath));
4402
+ },
4403
+ };
4404
+ };
4405
+ /**
4406
+ * CMSModulesApi - object-oriented interface
4407
+ */
4408
+ export class CMSModulesApi extends BaseAPI {
4409
+ /**
4410
+ * Includes retired modules, so a developer can see what a push removed.
4411
+ * @summary List an app\'s CMS modules
4412
+ * @param {string} appUuid
4413
+ * @param {*} [options] Override http request option.
4414
+ * @throws {RequiredError}
4415
+ */
4416
+ list(appUuid, options) {
4417
+ return CMSModulesApiFp(this.configuration).list(appUuid, options).then((request) => request(this.axios, this.basePath));
4418
+ }
4419
+ /**
4420
+ * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog.
4421
+ * @summary Publish an app\'s CMS module package
4422
+ * @param {string} appUuid
4423
+ * @param {{ [key: string]: any | null; }} requestBody
4424
+ * @param {*} [options] Override http request option.
4425
+ * @throws {RequiredError}
4426
+ */
4427
+ publishPackage(appUuid, requestBody, options) {
4428
+ return CMSModulesApiFp(this.configuration).publishPackage(appUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
4429
+ }
4430
+ /**
4431
+ * Registers the modules shipped by a published package version. Modules missing from the payload are retired rather than deleted, because pages may still reference them.
4432
+ * @summary Replace an app\'s CMS module catalog
4433
+ * @param {string} appUuid
4434
+ * @param {{ [key: string]: any | null; }} requestBody
4435
+ * @param {*} [options] Override http request option.
4436
+ * @throws {RequiredError}
4437
+ */
4438
+ upsert(appUuid, requestBody, options) {
4439
+ return CMSModulesApiFp(this.configuration).upsert(appUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
4440
+ }
4441
+ }
4442
+ /**
4443
+ * CMSV2EnvironmentsApi - axios parameter creator
4444
+ */
4445
+ export const CMSV2EnvironmentsApiAxiosParamCreator = function (configuration) {
4446
+ return {
4447
+ /**
4448
+ *
4449
+ * @summary Create an environment
4450
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4451
+ * @param {*} [options] Override http request option.
4452
+ * @throws {RequiredError}
4453
+ */
4454
+ create3: (cmsEnvironmentDTO_1, ...args_1) => __awaiter(this, [cmsEnvironmentDTO_1, ...args_1], void 0, function* (cmsEnvironmentDTO, options = {}) {
4455
+ // verify required parameter 'cmsEnvironmentDTO' is not null or undefined
4456
+ assertParamExists('create3', 'cmsEnvironmentDTO', cmsEnvironmentDTO);
4457
+ const localVarPath = `/api/v2/cms/environments`;
4458
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4459
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4460
+ let baseOptions;
4461
+ if (configuration) {
4462
+ baseOptions = configuration.baseOptions;
4463
+ }
4464
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4465
+ const localVarHeaderParameter = {};
4466
+ const localVarQueryParameter = {};
4467
+ // authentication bearerAuth required
4468
+ // http bearer authentication required
4469
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4470
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4471
+ localVarHeaderParameter['Accept'] = 'application/json';
4472
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4473
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4474
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4475
+ localVarRequestOptions.data = serializeDataIfNeeded(cmsEnvironmentDTO, localVarRequestOptions, configuration);
4476
+ return {
4477
+ url: toPathString(localVarUrlObj),
4478
+ options: localVarRequestOptions,
4479
+ };
4480
+ }),
4481
+ /**
4482
+ *
4483
+ * @summary Delete an environment except main
4484
+ * @param {string} key
4485
+ * @param {*} [options] Override http request option.
4486
+ * @throws {RequiredError}
4487
+ */
4488
+ delete1: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
4489
+ // verify required parameter 'key' is not null or undefined
4490
+ assertParamExists('delete1', 'key', key);
4491
+ const localVarPath = `/api/v2/cms/environments/{key}`
4492
+ .replace('{key}', encodeURIComponent(String(key)));
4493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4494
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4495
+ let baseOptions;
4496
+ if (configuration) {
4497
+ baseOptions = configuration.baseOptions;
4498
+ }
4499
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4500
+ const localVarHeaderParameter = {};
4501
+ const localVarQueryParameter = {};
4502
+ // authentication bearerAuth required
4503
+ // http bearer authentication required
4504
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4505
+ localVarHeaderParameter['Accept'] = 'application/json';
4506
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4507
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4508
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4509
+ return {
4510
+ url: toPathString(localVarUrlObj),
4511
+ options: localVarRequestOptions,
4512
+ };
4513
+ }),
4514
+ /**
4515
+ *
4516
+ * @summary Translation group for a record
4517
+ * @param {string} recordUuid
4518
+ * @param {*} [options] Override http request option.
4519
+ * @throws {RequiredError}
4520
+ */
4521
+ group: (recordUuid_1, ...args_1) => __awaiter(this, [recordUuid_1, ...args_1], void 0, function* (recordUuid, options = {}) {
4522
+ // verify required parameter 'recordUuid' is not null or undefined
4523
+ assertParamExists('group', 'recordUuid', recordUuid);
4524
+ const localVarPath = `/api/v2/cms/environments/translations/{recordUuid}`
4525
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
4526
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4527
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4528
+ let baseOptions;
4529
+ if (configuration) {
4530
+ baseOptions = configuration.baseOptions;
4531
+ }
4532
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4533
+ const localVarHeaderParameter = {};
4534
+ const localVarQueryParameter = {};
4535
+ // authentication bearerAuth required
4536
+ // http bearer authentication required
4537
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4538
+ localVarHeaderParameter['Accept'] = 'application/json';
4539
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4541
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4542
+ return {
4543
+ url: toPathString(localVarUrlObj),
4544
+ options: localVarRequestOptions,
4545
+ };
4546
+ }),
4547
+ /**
4548
+ *
4549
+ * @summary Link two records as translations
4550
+ * @param {string} fromUuid
4551
+ * @param {string} toUuid
4552
+ * @param {*} [options] Override http request option.
4553
+ * @throws {RequiredError}
4554
+ */
4555
+ link: (fromUuid_1, toUuid_1, ...args_1) => __awaiter(this, [fromUuid_1, toUuid_1, ...args_1], void 0, function* (fromUuid, toUuid, options = {}) {
4556
+ // verify required parameter 'fromUuid' is not null or undefined
4557
+ assertParamExists('link', 'fromUuid', fromUuid);
4558
+ // verify required parameter 'toUuid' is not null or undefined
4559
+ assertParamExists('link', 'toUuid', toUuid);
4560
+ const localVarPath = `/api/v2/cms/environments/translations/{fromUuid}/link/{toUuid}`
4561
+ .replace('{fromUuid}', encodeURIComponent(String(fromUuid)))
4562
+ .replace('{toUuid}', encodeURIComponent(String(toUuid)));
4563
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4564
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4565
+ let baseOptions;
4566
+ if (configuration) {
4567
+ baseOptions = configuration.baseOptions;
4568
+ }
4569
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4570
+ const localVarHeaderParameter = {};
4571
+ const localVarQueryParameter = {};
4572
+ // authentication bearerAuth required
4573
+ // http bearer authentication required
4574
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4575
+ localVarHeaderParameter['Accept'] = 'application/json';
4576
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4577
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4578
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4579
+ return {
4580
+ url: toPathString(localVarUrlObj),
4581
+ options: localVarRequestOptions,
4582
+ };
4583
+ }),
4584
+ /**
4585
+ *
4586
+ * @summary List company environments
4587
+ * @param {*} [options] Override http request option.
4588
+ * @throws {RequiredError}
4589
+ */
4590
+ list2: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4591
+ const localVarPath = `/api/v2/cms/environments`;
4592
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4593
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4594
+ let baseOptions;
4595
+ if (configuration) {
4596
+ baseOptions = configuration.baseOptions;
4597
+ }
4598
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4599
+ const localVarHeaderParameter = {};
4600
+ const localVarQueryParameter = {};
4601
+ // authentication bearerAuth required
4602
+ // http bearer authentication required
4603
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4604
+ localVarHeaderParameter['Accept'] = 'application/json';
4605
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4606
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4607
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4608
+ return {
4609
+ url: toPathString(localVarUrlObj),
4610
+ options: localVarRequestOptions,
4611
+ };
4612
+ }),
4613
+ /**
4614
+ *
4615
+ * @summary Unlink a translation edge
4616
+ * @param {string} fromUuid
4617
+ * @param {string} toUuid
4618
+ * @param {*} [options] Override http request option.
4619
+ * @throws {RequiredError}
4620
+ */
4621
+ unlink: (fromUuid_1, toUuid_1, ...args_1) => __awaiter(this, [fromUuid_1, toUuid_1, ...args_1], void 0, function* (fromUuid, toUuid, options = {}) {
4622
+ // verify required parameter 'fromUuid' is not null or undefined
4623
+ assertParamExists('unlink', 'fromUuid', fromUuid);
4624
+ // verify required parameter 'toUuid' is not null or undefined
4625
+ assertParamExists('unlink', 'toUuid', toUuid);
4626
+ const localVarPath = `/api/v2/cms/environments/translations/{fromUuid}/link/{toUuid}`
4627
+ .replace('{fromUuid}', encodeURIComponent(String(fromUuid)))
4628
+ .replace('{toUuid}', encodeURIComponent(String(toUuid)));
4629
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4630
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4631
+ let baseOptions;
4632
+ if (configuration) {
4633
+ baseOptions = configuration.baseOptions;
4634
+ }
4635
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4636
+ const localVarHeaderParameter = {};
4637
+ const localVarQueryParameter = {};
4638
+ // authentication bearerAuth required
4639
+ // http bearer authentication required
4640
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4641
+ localVarHeaderParameter['Accept'] = 'application/json';
4642
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4643
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4644
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4645
+ return {
4646
+ url: toPathString(localVarUrlObj),
4647
+ options: localVarRequestOptions,
4648
+ };
4649
+ }),
4650
+ /**
4651
+ *
4652
+ * @summary Update routing, auth or htmlLang. Keys are immutable.
4653
+ * @param {string} key
4654
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4655
+ * @param {*} [options] Override http request option.
4656
+ * @throws {RequiredError}
4657
+ */
4658
+ update1: (key_1, cmsEnvironmentDTO_1, ...args_1) => __awaiter(this, [key_1, cmsEnvironmentDTO_1, ...args_1], void 0, function* (key, cmsEnvironmentDTO, options = {}) {
4659
+ // verify required parameter 'key' is not null or undefined
4660
+ assertParamExists('update1', 'key', key);
4661
+ // verify required parameter 'cmsEnvironmentDTO' is not null or undefined
4662
+ assertParamExists('update1', 'cmsEnvironmentDTO', cmsEnvironmentDTO);
4663
+ const localVarPath = `/api/v2/cms/environments/{key}`
4664
+ .replace('{key}', encodeURIComponent(String(key)));
4665
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4666
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4667
+ let baseOptions;
4668
+ if (configuration) {
4669
+ baseOptions = configuration.baseOptions;
4670
+ }
4671
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4672
+ const localVarHeaderParameter = {};
4673
+ const localVarQueryParameter = {};
4674
+ // authentication bearerAuth required
4675
+ // http bearer authentication required
4676
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4677
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4678
+ localVarHeaderParameter['Accept'] = 'application/json';
4679
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4681
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4682
+ localVarRequestOptions.data = serializeDataIfNeeded(cmsEnvironmentDTO, localVarRequestOptions, configuration);
4683
+ return {
4684
+ url: toPathString(localVarUrlObj),
4685
+ options: localVarRequestOptions,
4686
+ };
4687
+ }),
4688
+ };
4689
+ };
4690
+ /**
4691
+ * CMSV2EnvironmentsApi - functional programming interface
4692
+ */
4693
+ export const CMSV2EnvironmentsApiFp = function (configuration) {
4694
+ const localVarAxiosParamCreator = CMSV2EnvironmentsApiAxiosParamCreator(configuration);
4695
+ return {
4696
+ /**
4697
+ *
4698
+ * @summary Create an environment
4699
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4700
+ * @param {*} [options] Override http request option.
4701
+ * @throws {RequiredError}
4702
+ */
4703
+ create3(cmsEnvironmentDTO, options) {
4704
+ return __awaiter(this, void 0, void 0, function* () {
4705
+ var _a, _b, _c;
4706
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create3(cmsEnvironmentDTO, options);
4707
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4708
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2EnvironmentsApi.create3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4709
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4710
+ });
4711
+ },
4712
+ /**
4713
+ *
4714
+ * @summary Delete an environment except main
4715
+ * @param {string} key
4716
+ * @param {*} [options] Override http request option.
4717
+ * @throws {RequiredError}
4718
+ */
4719
+ delete1(key, options) {
4720
+ return __awaiter(this, void 0, void 0, function* () {
4721
+ var _a, _b, _c;
4722
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.delete1(key, options);
4723
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4724
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2EnvironmentsApi.delete1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4725
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4726
+ });
4727
+ },
4728
+ /**
4729
+ *
4730
+ * @summary Translation group for a record
4731
+ * @param {string} recordUuid
4732
+ * @param {*} [options] Override http request option.
4733
+ * @throws {RequiredError}
4734
+ */
4735
+ group(recordUuid, options) {
4736
+ return __awaiter(this, void 0, void 0, function* () {
4737
+ var _a, _b, _c;
4738
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.group(recordUuid, options);
4739
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4740
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2EnvironmentsApi.group']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4741
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4742
+ });
4743
+ },
4744
+ /**
4745
+ *
4746
+ * @summary Link two records as translations
4747
+ * @param {string} fromUuid
4748
+ * @param {string} toUuid
4749
+ * @param {*} [options] Override http request option.
4750
+ * @throws {RequiredError}
4751
+ */
4752
+ link(fromUuid, toUuid, options) {
4753
+ return __awaiter(this, void 0, void 0, function* () {
4754
+ var _a, _b, _c;
4755
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.link(fromUuid, toUuid, options);
4756
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4757
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2EnvironmentsApi.link']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4758
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4759
+ });
4760
+ },
4761
+ /**
4762
+ *
4763
+ * @summary List company environments
4764
+ * @param {*} [options] Override http request option.
4765
+ * @throws {RequiredError}
4766
+ */
4767
+ list2(options) {
4768
+ return __awaiter(this, void 0, void 0, function* () {
4769
+ var _a, _b, _c;
4770
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.list2(options);
4771
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4772
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2EnvironmentsApi.list2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4773
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4774
+ });
4775
+ },
4776
+ /**
4777
+ *
4778
+ * @summary Unlink a translation edge
4779
+ * @param {string} fromUuid
4780
+ * @param {string} toUuid
4781
+ * @param {*} [options] Override http request option.
4782
+ * @throws {RequiredError}
4783
+ */
4784
+ unlink(fromUuid, toUuid, options) {
4785
+ return __awaiter(this, void 0, void 0, function* () {
4786
+ var _a, _b, _c;
4787
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unlink(fromUuid, toUuid, options);
4788
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4789
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2EnvironmentsApi.unlink']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4790
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4791
+ });
4792
+ },
4793
+ /**
4794
+ *
4795
+ * @summary Update routing, auth or htmlLang. Keys are immutable.
4796
+ * @param {string} key
4797
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4798
+ * @param {*} [options] Override http request option.
4799
+ * @throws {RequiredError}
4800
+ */
4801
+ update1(key, cmsEnvironmentDTO, options) {
4802
+ return __awaiter(this, void 0, void 0, function* () {
4803
+ var _a, _b, _c;
4804
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.update1(key, cmsEnvironmentDTO, options);
4805
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4806
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2EnvironmentsApi.update1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4807
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4808
+ });
4809
+ },
4810
+ };
4811
+ };
4812
+ /**
4813
+ * CMSV2EnvironmentsApi - factory interface
4814
+ */
4815
+ export const CMSV2EnvironmentsApiFactory = function (configuration, basePath, axios) {
4816
+ const localVarFp = CMSV2EnvironmentsApiFp(configuration);
4817
+ return {
4818
+ /**
4819
+ *
4820
+ * @summary Create an environment
4821
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4822
+ * @param {*} [options] Override http request option.
4823
+ * @throws {RequiredError}
4824
+ */
4825
+ create3(cmsEnvironmentDTO, options) {
4826
+ return localVarFp.create3(cmsEnvironmentDTO, options).then((request) => request(axios, basePath));
4827
+ },
4828
+ /**
4829
+ *
4830
+ * @summary Delete an environment except main
4831
+ * @param {string} key
4832
+ * @param {*} [options] Override http request option.
4833
+ * @throws {RequiredError}
4834
+ */
4835
+ delete1(key, options) {
4836
+ return localVarFp.delete1(key, options).then((request) => request(axios, basePath));
4837
+ },
4838
+ /**
4839
+ *
4840
+ * @summary Translation group for a record
4841
+ * @param {string} recordUuid
4842
+ * @param {*} [options] Override http request option.
4843
+ * @throws {RequiredError}
4844
+ */
4845
+ group(recordUuid, options) {
4846
+ return localVarFp.group(recordUuid, options).then((request) => request(axios, basePath));
4847
+ },
4848
+ /**
4849
+ *
4850
+ * @summary Link two records as translations
4851
+ * @param {string} fromUuid
4852
+ * @param {string} toUuid
4853
+ * @param {*} [options] Override http request option.
4854
+ * @throws {RequiredError}
4855
+ */
4856
+ link(fromUuid, toUuid, options) {
4857
+ return localVarFp.link(fromUuid, toUuid, options).then((request) => request(axios, basePath));
4858
+ },
4859
+ /**
4860
+ *
4861
+ * @summary List company environments
4862
+ * @param {*} [options] Override http request option.
4863
+ * @throws {RequiredError}
4864
+ */
4865
+ list2(options) {
4866
+ return localVarFp.list2(options).then((request) => request(axios, basePath));
4867
+ },
4868
+ /**
4869
+ *
4870
+ * @summary Unlink a translation edge
4871
+ * @param {string} fromUuid
4872
+ * @param {string} toUuid
4873
+ * @param {*} [options] Override http request option.
4874
+ * @throws {RequiredError}
4875
+ */
4876
+ unlink(fromUuid, toUuid, options) {
4877
+ return localVarFp.unlink(fromUuid, toUuid, options).then((request) => request(axios, basePath));
4878
+ },
4879
+ /**
4880
+ *
4881
+ * @summary Update routing, auth or htmlLang. Keys are immutable.
4882
+ * @param {string} key
4883
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4884
+ * @param {*} [options] Override http request option.
4885
+ * @throws {RequiredError}
4886
+ */
4887
+ update1(key, cmsEnvironmentDTO, options) {
4888
+ return localVarFp.update1(key, cmsEnvironmentDTO, options).then((request) => request(axios, basePath));
4889
+ },
4890
+ };
4891
+ };
4892
+ /**
4893
+ * CMSV2EnvironmentsApi - object-oriented interface
4894
+ */
4895
+ export class CMSV2EnvironmentsApi extends BaseAPI {
4896
+ /**
4897
+ *
4898
+ * @summary Create an environment
4899
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4900
+ * @param {*} [options] Override http request option.
4901
+ * @throws {RequiredError}
4902
+ */
4903
+ create3(cmsEnvironmentDTO, options) {
4904
+ return CMSV2EnvironmentsApiFp(this.configuration).create3(cmsEnvironmentDTO, options).then((request) => request(this.axios, this.basePath));
4905
+ }
4906
+ /**
4907
+ *
4908
+ * @summary Delete an environment except main
4909
+ * @param {string} key
4910
+ * @param {*} [options] Override http request option.
4911
+ * @throws {RequiredError}
4912
+ */
4913
+ delete1(key, options) {
4914
+ return CMSV2EnvironmentsApiFp(this.configuration).delete1(key, options).then((request) => request(this.axios, this.basePath));
4915
+ }
4916
+ /**
4917
+ *
4918
+ * @summary Translation group for a record
4919
+ * @param {string} recordUuid
4920
+ * @param {*} [options] Override http request option.
4921
+ * @throws {RequiredError}
4922
+ */
4923
+ group(recordUuid, options) {
4924
+ return CMSV2EnvironmentsApiFp(this.configuration).group(recordUuid, options).then((request) => request(this.axios, this.basePath));
4925
+ }
4926
+ /**
4927
+ *
4928
+ * @summary Link two records as translations
4929
+ * @param {string} fromUuid
4930
+ * @param {string} toUuid
4931
+ * @param {*} [options] Override http request option.
4932
+ * @throws {RequiredError}
4933
+ */
4934
+ link(fromUuid, toUuid, options) {
4935
+ return CMSV2EnvironmentsApiFp(this.configuration).link(fromUuid, toUuid, options).then((request) => request(this.axios, this.basePath));
4936
+ }
4937
+ /**
4938
+ *
4939
+ * @summary List company environments
4940
+ * @param {*} [options] Override http request option.
4941
+ * @throws {RequiredError}
4942
+ */
4943
+ list2(options) {
4944
+ return CMSV2EnvironmentsApiFp(this.configuration).list2(options).then((request) => request(this.axios, this.basePath));
4945
+ }
4946
+ /**
4947
+ *
4948
+ * @summary Unlink a translation edge
4949
+ * @param {string} fromUuid
4950
+ * @param {string} toUuid
4951
+ * @param {*} [options] Override http request option.
4952
+ * @throws {RequiredError}
4953
+ */
4954
+ unlink(fromUuid, toUuid, options) {
4955
+ return CMSV2EnvironmentsApiFp(this.configuration).unlink(fromUuid, toUuid, options).then((request) => request(this.axios, this.basePath));
4956
+ }
4957
+ /**
4958
+ *
4959
+ * @summary Update routing, auth or htmlLang. Keys are immutable.
4960
+ * @param {string} key
4961
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4962
+ * @param {*} [options] Override http request option.
4963
+ * @throws {RequiredError}
4964
+ */
4965
+ update1(key, cmsEnvironmentDTO, options) {
4966
+ return CMSV2EnvironmentsApiFp(this.configuration).update1(key, cmsEnvironmentDTO, options).then((request) => request(this.axios, this.basePath));
4967
+ }
4968
+ }
4969
+ /**
4970
+ * CMSV2PagesApi - axios parameter creator
4971
+ */
4972
+ export const CMSV2PagesApiAxiosParamCreator = function (configuration) {
4973
+ return {
4974
+ /**
4975
+ * Returns patches the editor applies through the same revision channel as a manual edit, so the change is undoable. Page scope may add, remove and reorder modules. A module\'s code lives in a shared npm package, so the AI rewrites field values and composition, never the component itself.
4976
+ * @summary Rewrite a page or a module from a prompt
4977
+ * @param {string} recordUuid
4978
+ * @param {{ [key: string]: any | null; }} requestBody
4979
+ * @param {*} [options] Override http request option.
4980
+ * @throws {RequiredError}
4981
+ */
4982
+ aiRewrite: (recordUuid_1, requestBody_1, ...args_1) => __awaiter(this, [recordUuid_1, requestBody_1, ...args_1], void 0, function* (recordUuid, requestBody, options = {}) {
4983
+ // verify required parameter 'recordUuid' is not null or undefined
4984
+ assertParamExists('aiRewrite', 'recordUuid', recordUuid);
4985
+ // verify required parameter 'requestBody' is not null or undefined
4986
+ assertParamExists('aiRewrite', 'requestBody', requestBody);
4987
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/rewrite`
4988
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
4989
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4990
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4991
+ let baseOptions;
4992
+ if (configuration) {
4993
+ baseOptions = configuration.baseOptions;
4994
+ }
4995
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4996
+ const localVarHeaderParameter = {};
4997
+ const localVarQueryParameter = {};
4998
+ // authentication bearerAuth required
4999
+ // http bearer authentication required
5000
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5001
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5002
+ localVarHeaderParameter['Accept'] = 'application/json';
5003
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5004
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5005
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5006
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
5007
+ return {
5008
+ url: toPathString(localVarUrlObj),
5009
+ options: localVarRequestOptions,
5010
+ };
5011
+ }),
5012
+ /**
5013
+ *
5014
+ * @summary Create a translated sibling page for an environment
5015
+ * @param {string} recordUuid
5016
+ * @param {string} key
5017
+ * @param {*} [options] Override http request option.
5018
+ * @throws {RequiredError}
5019
+ */
5020
+ createTranslation: (recordUuid_1, key_1, ...args_1) => __awaiter(this, [recordUuid_1, key_1, ...args_1], void 0, function* (recordUuid, key, options = {}) {
5021
+ // verify required parameter 'recordUuid' is not null or undefined
5022
+ assertParamExists('createTranslation', 'recordUuid', recordUuid);
5023
+ // verify required parameter 'key' is not null or undefined
5024
+ assertParamExists('createTranslation', 'key', key);
5025
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments/{key}/translate`
5026
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5027
+ .replace('{key}', encodeURIComponent(String(key)));
5028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5029
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5030
+ let baseOptions;
5031
+ if (configuration) {
5032
+ baseOptions = configuration.baseOptions;
5033
+ }
5034
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5035
+ const localVarHeaderParameter = {};
5036
+ const localVarQueryParameter = {};
5037
+ // authentication bearerAuth required
5038
+ // http bearer authentication required
5039
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5040
+ localVarHeaderParameter['Accept'] = 'application/json';
5041
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5042
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5043
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5044
+ return {
5045
+ url: toPathString(localVarUrlObj),
5046
+ options: localVarRequestOptions,
5047
+ };
5048
+ }),
5049
+ /**
5050
+ * 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.
5051
+ * @summary Create or reuse the custom 404 page
5052
+ * @param {*} [options] Override http request option.
5053
+ * @throws {RequiredError}
5054
+ */
5055
+ ensureNotFound: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5056
+ const localVarPath = `/api/v2/webpages/v2/pages/not-found`;
5057
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5058
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5059
+ let baseOptions;
5060
+ if (configuration) {
5061
+ baseOptions = configuration.baseOptions;
5062
+ }
5063
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5064
+ const localVarHeaderParameter = {};
5065
+ const localVarQueryParameter = {};
5066
+ // authentication bearerAuth required
5067
+ // http bearer authentication required
5068
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5069
+ localVarHeaderParameter['Accept'] = 'application/json';
5070
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5071
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5072
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5073
+ return {
5074
+ url: toPathString(localVarUrlObj),
5075
+ options: localVarRequestOptions,
5076
+ };
5077
+ }),
5078
+ /**
5079
+ *
5080
+ * @summary Environment coverage for the builder dropdown
5081
+ * @param {string} recordUuid
5082
+ * @param {*} [options] Override http request option.
5083
+ * @throws {RequiredError}
5084
+ */
5085
+ environmentCoverage: (recordUuid_1, ...args_1) => __awaiter(this, [recordUuid_1, ...args_1], void 0, function* (recordUuid, options = {}) {
5086
+ // verify required parameter 'recordUuid' is not null or undefined
5087
+ assertParamExists('environmentCoverage', 'recordUuid', recordUuid);
5088
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments`
5089
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5090
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5091
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5092
+ let baseOptions;
5093
+ if (configuration) {
5094
+ baseOptions = configuration.baseOptions;
5095
+ }
5096
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5097
+ const localVarHeaderParameter = {};
5098
+ const localVarQueryParameter = {};
5099
+ // authentication bearerAuth required
5100
+ // http bearer authentication required
5101
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5102
+ localVarHeaderParameter['Accept'] = 'application/json';
5103
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5104
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5105
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5106
+ return {
5107
+ url: toPathString(localVarUrlObj),
5108
+ options: localVarRequestOptions,
5109
+ };
5110
+ }),
5111
+ /**
5112
+ *
5113
+ * @summary Load a page for the builder
5114
+ * @param {string} recordUuid
5115
+ * @param {string} [locale]
5116
+ * @param {string} [state]
5117
+ * @param {*} [options] Override http request option.
5118
+ * @throws {RequiredError}
5119
+ */
5120
+ get: (recordUuid_1, locale_1, state_1, ...args_1) => __awaiter(this, [recordUuid_1, locale_1, state_1, ...args_1], void 0, function* (recordUuid, locale, state, options = {}) {
5121
+ // verify required parameter 'recordUuid' is not null or undefined
5122
+ assertParamExists('get', 'recordUuid', recordUuid);
5123
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}`
5124
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5126
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5127
+ let baseOptions;
5128
+ if (configuration) {
5129
+ baseOptions = configuration.baseOptions;
5130
+ }
5131
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5132
+ const localVarHeaderParameter = {};
5133
+ const localVarQueryParameter = {};
5134
+ // authentication bearerAuth required
5135
+ // http bearer authentication required
5136
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5137
+ if (locale !== undefined) {
5138
+ localVarQueryParameter['locale'] = locale;
5139
+ }
5140
+ if (state !== undefined) {
5141
+ localVarQueryParameter['state'] = state;
5142
+ }
5143
+ localVarHeaderParameter['Accept'] = 'application/json';
5144
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5145
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5146
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5147
+ return {
5148
+ url: toPathString(localVarUrlObj),
5149
+ options: localVarRequestOptions,
5150
+ };
5151
+ }),
5152
+ /**
5153
+ *
5154
+ * @summary CMS v2 object template document
5155
+ * @param {string} objectUuid
5156
+ * @param {string} [locale]
5157
+ * @param {*} [options] Override http request option.
5158
+ * @throws {RequiredError}
5159
+ */
5160
+ getTemplate: (objectUuid_1, locale_1, ...args_1) => __awaiter(this, [objectUuid_1, locale_1, ...args_1], void 0, function* (objectUuid, locale, options = {}) {
5161
+ // verify required parameter 'objectUuid' is not null or undefined
5162
+ assertParamExists('getTemplate', 'objectUuid', objectUuid);
5163
+ const localVarPath = `/api/v2/webpages/v2/pages/templates/{objectUuid}`
5164
+ .replace('{objectUuid}', encodeURIComponent(String(objectUuid)));
5165
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5166
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5167
+ let baseOptions;
5168
+ if (configuration) {
5169
+ baseOptions = configuration.baseOptions;
5170
+ }
5171
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5172
+ const localVarHeaderParameter = {};
5173
+ const localVarQueryParameter = {};
5174
+ // authentication bearerAuth required
5175
+ // http bearer authentication required
5176
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5177
+ if (locale !== undefined) {
5178
+ localVarQueryParameter['locale'] = locale;
5179
+ }
5180
+ localVarHeaderParameter['Accept'] = 'application/json';
5181
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5182
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5183
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5184
+ return {
5185
+ url: toPathString(localVarUrlObj),
5186
+ options: localVarRequestOptions,
5187
+ };
5188
+ }),
5189
+ /**
5190
+ *
5191
+ * @summary Draft snapshots for one locale
5192
+ * @param {string} recordUuid
5193
+ * @param {string} [locale]
5194
+ * @param {*} [options] Override http request option.
5195
+ * @throws {RequiredError}
5196
+ */
5197
+ history: (recordUuid_1, locale_1, ...args_1) => __awaiter(this, [recordUuid_1, locale_1, ...args_1], void 0, function* (recordUuid, locale, options = {}) {
5198
+ // verify required parameter 'recordUuid' is not null or undefined
5199
+ assertParamExists('history', 'recordUuid', recordUuid);
5200
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/history`
5201
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5202
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5203
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5204
+ let baseOptions;
5205
+ if (configuration) {
5206
+ baseOptions = configuration.baseOptions;
5207
+ }
5208
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5209
+ const localVarHeaderParameter = {};
5210
+ const localVarQueryParameter = {};
5211
+ // authentication bearerAuth required
5212
+ // http bearer authentication required
5213
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5214
+ if (locale !== undefined) {
5215
+ localVarQueryParameter['locale'] = locale;
5216
+ }
5217
+ localVarHeaderParameter['Accept'] = 'application/json';
5218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5221
+ return {
5222
+ url: toPathString(localVarUrlObj),
5223
+ options: localVarRequestOptions,
5224
+ };
5225
+ }),
5226
+ /**
5227
+ *
5228
+ * @summary Host this page on another environment
5229
+ * @param {string} recordUuid
5230
+ * @param {string} key
5231
+ * @param {*} [options] Override http request option.
5232
+ * @throws {RequiredError}
5233
+ */
5234
+ hostOnEnvironment: (recordUuid_1, key_1, ...args_1) => __awaiter(this, [recordUuid_1, key_1, ...args_1], void 0, function* (recordUuid, key, options = {}) {
5235
+ // verify required parameter 'recordUuid' is not null or undefined
5236
+ assertParamExists('hostOnEnvironment', 'recordUuid', recordUuid);
5237
+ // verify required parameter 'key' is not null or undefined
5238
+ assertParamExists('hostOnEnvironment', 'key', key);
5239
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments/{key}/host`
5240
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5241
+ .replace('{key}', encodeURIComponent(String(key)));
5242
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5243
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5244
+ let baseOptions;
5245
+ if (configuration) {
5246
+ baseOptions = configuration.baseOptions;
5247
+ }
5248
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5249
+ const localVarHeaderParameter = {};
5250
+ const localVarQueryParameter = {};
5251
+ // authentication bearerAuth required
5252
+ // http bearer authentication required
5253
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5254
+ localVarHeaderParameter['Accept'] = 'application/json';
5255
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5256
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5257
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5258
+ return {
5259
+ url: toPathString(localVarUrlObj),
5260
+ options: localVarRequestOptions,
5261
+ };
5262
+ }),
5263
+ /**
5264
+ * Backs the builder\'s library picker. Only modules from installed apps, and never retired ones, because a new page must be able to render them.
5265
+ * @summary Modules available to this company
5266
+ * @param {*} [options] Override http request option.
5267
+ * @throws {RequiredError}
5268
+ */
5269
+ library: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5270
+ const localVarPath = `/api/v2/webpages/v2/pages/library/modules`;
5271
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5272
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5273
+ let baseOptions;
5274
+ if (configuration) {
5275
+ baseOptions = configuration.baseOptions;
5276
+ }
5277
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5278
+ const localVarHeaderParameter = {};
5279
+ const localVarQueryParameter = {};
5280
+ // authentication bearerAuth required
5281
+ // http bearer authentication required
5282
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5283
+ localVarHeaderParameter['Accept'] = 'application/json';
5284
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5285
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5286
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5287
+ return {
5288
+ url: toPathString(localVarUrlObj),
5289
+ options: localVarRequestOptions,
5290
+ };
5291
+ }),
5292
+ /**
5293
+ * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work.
5294
+ * @summary Apply patches to a page draft
5295
+ * @param {string} recordUuid
5296
+ * @param {CmsPagePatchRequest} cmsPagePatchRequest
5297
+ * @param {*} [options] Override http request option.
5298
+ * @throws {RequiredError}
5299
+ */
5300
+ patch: (recordUuid_1, cmsPagePatchRequest_1, ...args_1) => __awaiter(this, [recordUuid_1, cmsPagePatchRequest_1, ...args_1], void 0, function* (recordUuid, cmsPagePatchRequest, options = {}) {
5301
+ // verify required parameter 'recordUuid' is not null or undefined
5302
+ assertParamExists('patch', 'recordUuid', recordUuid);
5303
+ // verify required parameter 'cmsPagePatchRequest' is not null or undefined
5304
+ assertParamExists('patch', 'cmsPagePatchRequest', cmsPagePatchRequest);
5305
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/patch`
5306
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5307
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5308
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5309
+ let baseOptions;
5310
+ if (configuration) {
5311
+ baseOptions = configuration.baseOptions;
5312
+ }
5313
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5314
+ const localVarHeaderParameter = {};
5315
+ const localVarQueryParameter = {};
5316
+ // authentication bearerAuth required
5317
+ // http bearer authentication required
5318
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5319
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5320
+ localVarHeaderParameter['Accept'] = 'application/json';
5321
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5322
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5323
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5324
+ localVarRequestOptions.data = serializeDataIfNeeded(cmsPagePatchRequest, localVarRequestOptions, configuration);
5325
+ return {
5326
+ url: toPathString(localVarUrlObj),
5327
+ options: localVarRequestOptions,
5328
+ };
5329
+ }),
5330
+ /**
5331
+ * The iframe renders the draft document, which the public API will not serve. The signature covers the page and an expiry so a leaked link cannot be retargeted or replayed.
5332
+ * @summary Signed preview URL for the builder iframe
5333
+ * @param {string} recordUuid
5334
+ * @param {string} [locale]
5335
+ * @param {string} [state]
5336
+ * @param {*} [options] Override http request option.
5337
+ * @throws {RequiredError}
5338
+ */
5339
+ previewLink: (recordUuid_1, locale_1, state_1, ...args_1) => __awaiter(this, [recordUuid_1, locale_1, state_1, ...args_1], void 0, function* (recordUuid, locale, state, options = {}) {
5340
+ // verify required parameter 'recordUuid' is not null or undefined
5341
+ assertParamExists('previewLink', 'recordUuid', recordUuid);
5342
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/preview-link`
5343
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5344
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5345
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5346
+ let baseOptions;
5347
+ if (configuration) {
5348
+ baseOptions = configuration.baseOptions;
5349
+ }
5350
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5351
+ const localVarHeaderParameter = {};
5352
+ const localVarQueryParameter = {};
5353
+ // authentication bearerAuth required
5354
+ // http bearer authentication required
5355
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5356
+ if (locale !== undefined) {
5357
+ localVarQueryParameter['locale'] = locale;
5358
+ }
5359
+ if (state !== undefined) {
5360
+ localVarQueryParameter['state'] = state;
5361
+ }
5362
+ localVarHeaderParameter['Accept'] = 'application/json';
5363
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5364
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5365
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5366
+ return {
5367
+ url: toPathString(localVarUrlObj),
5368
+ options: localVarRequestOptions,
5369
+ };
5370
+ }),
5371
+ /**
5372
+ * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
5373
+ * @summary Publish one locale, or all of them
5374
+ * @param {string} recordUuid
5375
+ * @param {string} [locale]
5376
+ * @param {boolean} [allLocales]
5377
+ * @param {*} [options] Override http request option.
5378
+ * @throws {RequiredError}
5379
+ */
5380
+ publish: (recordUuid_1, locale_1, allLocales_1, ...args_1) => __awaiter(this, [recordUuid_1, locale_1, allLocales_1, ...args_1], void 0, function* (recordUuid, locale, allLocales, options = {}) {
5381
+ // verify required parameter 'recordUuid' is not null or undefined
5382
+ assertParamExists('publish', 'recordUuid', recordUuid);
5383
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/publish`
5384
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5386
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5387
+ let baseOptions;
5388
+ if (configuration) {
5389
+ baseOptions = configuration.baseOptions;
5390
+ }
5391
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5392
+ const localVarHeaderParameter = {};
5393
+ const localVarQueryParameter = {};
5394
+ // authentication bearerAuth required
5395
+ // http bearer authentication required
5396
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5397
+ if (locale !== undefined) {
5398
+ localVarQueryParameter['locale'] = locale;
5399
+ }
5400
+ if (allLocales !== undefined) {
5401
+ localVarQueryParameter['allLocales'] = allLocales;
5402
+ }
5403
+ localVarHeaderParameter['Accept'] = 'application/json';
5404
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5405
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5406
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5407
+ return {
5408
+ url: toPathString(localVarUrlObj),
5409
+ options: localVarRequestOptions,
5410
+ };
5411
+ }),
5412
+ /**
5413
+ *
5414
+ * @summary Restore a draft snapshot
5415
+ * @param {string} recordUuid
5416
+ * @param {number} index
5417
+ * @param {string} [locale]
5418
+ * @param {*} [options] Override http request option.
5419
+ * @throws {RequiredError}
5420
+ */
5421
+ restoreHistory: (recordUuid_1, index_1, locale_1, ...args_1) => __awaiter(this, [recordUuid_1, index_1, locale_1, ...args_1], void 0, function* (recordUuid, index, locale, options = {}) {
5422
+ // verify required parameter 'recordUuid' is not null or undefined
5423
+ assertParamExists('restoreHistory', 'recordUuid', recordUuid);
5424
+ // verify required parameter 'index' is not null or undefined
5425
+ assertParamExists('restoreHistory', 'index', index);
5426
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/history/{index}/restore`
5427
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5428
+ .replace('{index}', encodeURIComponent(String(index)));
5429
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5430
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5431
+ let baseOptions;
5432
+ if (configuration) {
5433
+ baseOptions = configuration.baseOptions;
5434
+ }
5435
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5436
+ const localVarHeaderParameter = {};
5437
+ const localVarQueryParameter = {};
5438
+ // authentication bearerAuth required
5439
+ // http bearer authentication required
5440
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5441
+ if (locale !== undefined) {
5442
+ localVarQueryParameter['locale'] = locale;
5443
+ }
5444
+ localVarHeaderParameter['Accept'] = 'application/json';
5445
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5446
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5447
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5448
+ return {
5449
+ url: toPathString(localVarUrlObj),
5450
+ options: localVarRequestOptions,
5451
+ };
5452
+ }),
5453
+ /**
5454
+ *
5455
+ * @summary Replace a page draft
5456
+ * @param {string} recordUuid
5457
+ * @param {CmsPageDocument} cmsPageDocument
5458
+ * @param {string} [locale]
5459
+ * @param {*} [options] Override http request option.
5460
+ * @throws {RequiredError}
5461
+ */
5462
+ save: (recordUuid_1, cmsPageDocument_1, locale_1, ...args_1) => __awaiter(this, [recordUuid_1, cmsPageDocument_1, locale_1, ...args_1], void 0, function* (recordUuid, cmsPageDocument, locale, options = {}) {
5463
+ // verify required parameter 'recordUuid' is not null or undefined
5464
+ assertParamExists('save', 'recordUuid', recordUuid);
5465
+ // verify required parameter 'cmsPageDocument' is not null or undefined
5466
+ assertParamExists('save', 'cmsPageDocument', cmsPageDocument);
5467
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}`
5468
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5469
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5470
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5471
+ let baseOptions;
5472
+ if (configuration) {
5473
+ baseOptions = configuration.baseOptions;
5474
+ }
5475
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5476
+ const localVarHeaderParameter = {};
5477
+ const localVarQueryParameter = {};
5478
+ // authentication bearerAuth required
5479
+ // http bearer authentication required
5480
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5481
+ if (locale !== undefined) {
5482
+ localVarQueryParameter['locale'] = locale;
5483
+ }
5484
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5485
+ localVarHeaderParameter['Accept'] = 'application/json';
5486
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5487
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5488
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5489
+ localVarRequestOptions.data = serializeDataIfNeeded(cmsPageDocument, localVarRequestOptions, configuration);
5490
+ return {
5491
+ url: toPathString(localVarUrlObj),
5492
+ options: localVarRequestOptions,
5493
+ };
5494
+ }),
5495
+ /**
5496
+ *
5497
+ * @summary Update slug, title, excerpt, SEO and page scripts
5498
+ * @param {string} recordUuid
5499
+ * @param {{ [key: string]: any | null; }} requestBody
5500
+ * @param {string} [locale]
5501
+ * @param {*} [options] Override http request option.
5502
+ * @throws {RequiredError}
5503
+ */
5504
+ saveMeta: (recordUuid_1, requestBody_1, locale_1, ...args_1) => __awaiter(this, [recordUuid_1, requestBody_1, locale_1, ...args_1], void 0, function* (recordUuid, requestBody, locale, options = {}) {
5505
+ // verify required parameter 'recordUuid' is not null or undefined
5506
+ assertParamExists('saveMeta', 'recordUuid', recordUuid);
5507
+ // verify required parameter 'requestBody' is not null or undefined
5508
+ assertParamExists('saveMeta', 'requestBody', requestBody);
5509
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/meta`
5510
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5513
+ let baseOptions;
5514
+ if (configuration) {
5515
+ baseOptions = configuration.baseOptions;
5516
+ }
5517
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5518
+ const localVarHeaderParameter = {};
5519
+ const localVarQueryParameter = {};
5520
+ // authentication bearerAuth required
5521
+ // http bearer authentication required
5522
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5523
+ if (locale !== undefined) {
5524
+ localVarQueryParameter['locale'] = locale;
5525
+ }
5526
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5527
+ localVarHeaderParameter['Accept'] = 'application/json';
5528
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5529
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5530
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5531
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
5532
+ return {
5533
+ url: toPathString(localVarUrlObj),
5534
+ options: localVarRequestOptions,
5535
+ };
5536
+ }),
5537
+ /**
5538
+ *
5539
+ * @summary Replace a CMS v2 object template
5540
+ * @param {string} objectUuid
5541
+ * @param {CmsPageDocument} cmsPageDocument
5542
+ * @param {string} [locale]
5543
+ * @param {*} [options] Override http request option.
5544
+ * @throws {RequiredError}
5545
+ */
5546
+ saveTemplate: (objectUuid_1, cmsPageDocument_1, locale_1, ...args_1) => __awaiter(this, [objectUuid_1, cmsPageDocument_1, locale_1, ...args_1], void 0, function* (objectUuid, cmsPageDocument, locale, options = {}) {
5547
+ // verify required parameter 'objectUuid' is not null or undefined
5548
+ assertParamExists('saveTemplate', 'objectUuid', objectUuid);
5549
+ // verify required parameter 'cmsPageDocument' is not null or undefined
5550
+ assertParamExists('saveTemplate', 'cmsPageDocument', cmsPageDocument);
5551
+ const localVarPath = `/api/v2/webpages/v2/pages/templates/{objectUuid}`
5552
+ .replace('{objectUuid}', encodeURIComponent(String(objectUuid)));
5553
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5554
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5555
+ let baseOptions;
5556
+ if (configuration) {
5557
+ baseOptions = configuration.baseOptions;
5558
+ }
5559
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5560
+ const localVarHeaderParameter = {};
5561
+ const localVarQueryParameter = {};
5562
+ // authentication bearerAuth required
5563
+ // http bearer authentication required
5564
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5565
+ if (locale !== undefined) {
5566
+ localVarQueryParameter['locale'] = locale;
5567
+ }
5568
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5569
+ localVarHeaderParameter['Accept'] = 'application/json';
5570
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5571
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5572
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5573
+ localVarRequestOptions.data = serializeDataIfNeeded(cmsPageDocument, localVarRequestOptions, configuration);
5574
+ return {
5575
+ url: toPathString(localVarUrlObj),
5576
+ options: localVarRequestOptions,
5577
+ };
5578
+ }),
5579
+ /**
5580
+ *
5581
+ * @summary Take one locale offline
5582
+ * @param {string} recordUuid
5583
+ * @param {string} [locale]
5584
+ * @param {*} [options] Override http request option.
5585
+ * @throws {RequiredError}
5586
+ */
5587
+ unpublish: (recordUuid_1, locale_1, ...args_1) => __awaiter(this, [recordUuid_1, locale_1, ...args_1], void 0, function* (recordUuid, locale, options = {}) {
5588
+ // verify required parameter 'recordUuid' is not null or undefined
5589
+ assertParamExists('unpublish', 'recordUuid', recordUuid);
5590
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/unpublish`
5591
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5592
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5593
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5594
+ let baseOptions;
5595
+ if (configuration) {
5596
+ baseOptions = configuration.baseOptions;
5597
+ }
5598
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5599
+ const localVarHeaderParameter = {};
5600
+ const localVarQueryParameter = {};
5601
+ // authentication bearerAuth required
5602
+ // http bearer authentication required
5603
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5604
+ if (locale !== undefined) {
5605
+ localVarQueryParameter['locale'] = locale;
5606
+ }
5607
+ localVarHeaderParameter['Accept'] = 'application/json';
5608
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5609
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5610
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5611
+ return {
5612
+ url: toPathString(localVarUrlObj),
5613
+ options: localVarRequestOptions,
5614
+ };
5615
+ }),
5616
+ /**
5617
+ *
5618
+ * @summary Remove an environment from this page only
5619
+ * @param {string} recordUuid
5620
+ * @param {string} key
5621
+ * @param {*} [options] Override http request option.
5622
+ * @throws {RequiredError}
5623
+ */
5624
+ unselectEnvironment: (recordUuid_1, key_1, ...args_1) => __awaiter(this, [recordUuid_1, key_1, ...args_1], void 0, function* (recordUuid, key, options = {}) {
5625
+ // verify required parameter 'recordUuid' is not null or undefined
5626
+ assertParamExists('unselectEnvironment', 'recordUuid', recordUuid);
5627
+ // verify required parameter 'key' is not null or undefined
5628
+ assertParamExists('unselectEnvironment', 'key', key);
5629
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments/{key}`
5630
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5631
+ .replace('{key}', encodeURIComponent(String(key)));
5632
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5633
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5634
+ let baseOptions;
5635
+ if (configuration) {
5636
+ baseOptions = configuration.baseOptions;
5637
+ }
5638
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5639
+ const localVarHeaderParameter = {};
5640
+ const localVarQueryParameter = {};
5641
+ // authentication bearerAuth required
5642
+ // http bearer authentication required
5643
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5644
+ localVarHeaderParameter['Accept'] = 'application/json';
5645
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5646
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5647
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5648
+ return {
5649
+ url: toPathString(localVarUrlObj),
5650
+ options: localVarRequestOptions,
5651
+ };
5652
+ }),
5653
+ };
5654
+ };
5655
+ /**
5656
+ * CMSV2PagesApi - functional programming interface
5657
+ */
5658
+ export const CMSV2PagesApiFp = function (configuration) {
5659
+ const localVarAxiosParamCreator = CMSV2PagesApiAxiosParamCreator(configuration);
5660
+ return {
5661
+ /**
5662
+ * Returns patches the editor applies through the same revision channel as a manual edit, so the change is undoable. Page scope may add, remove and reorder modules. A module\'s code lives in a shared npm package, so the AI rewrites field values and composition, never the component itself.
5663
+ * @summary Rewrite a page or a module from a prompt
5664
+ * @param {string} recordUuid
5665
+ * @param {{ [key: string]: any | null; }} requestBody
5666
+ * @param {*} [options] Override http request option.
5667
+ * @throws {RequiredError}
5668
+ */
5669
+ aiRewrite(recordUuid, requestBody, options) {
5670
+ return __awaiter(this, void 0, void 0, function* () {
5671
+ var _a, _b, _c;
5672
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiRewrite(recordUuid, requestBody, options);
5673
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5674
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.aiRewrite']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5675
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5676
+ });
5677
+ },
5678
+ /**
5679
+ *
5680
+ * @summary Create a translated sibling page for an environment
5681
+ * @param {string} recordUuid
5682
+ * @param {string} key
5683
+ * @param {*} [options] Override http request option.
5684
+ * @throws {RequiredError}
5685
+ */
5686
+ createTranslation(recordUuid, key, options) {
5687
+ return __awaiter(this, void 0, void 0, function* () {
5688
+ var _a, _b, _c;
5689
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTranslation(recordUuid, key, options);
5690
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5691
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.createTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5692
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5693
+ });
5694
+ },
5695
+ /**
5696
+ * 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.
5697
+ * @summary Create or reuse the custom 404 page
5698
+ * @param {*} [options] Override http request option.
5699
+ * @throws {RequiredError}
5700
+ */
5701
+ ensureNotFound(options) {
5702
+ return __awaiter(this, void 0, void 0, function* () {
5703
+ var _a, _b, _c;
5704
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ensureNotFound(options);
5705
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5706
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.ensureNotFound']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5707
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5708
+ });
5709
+ },
5710
+ /**
5711
+ *
5712
+ * @summary Environment coverage for the builder dropdown
5713
+ * @param {string} recordUuid
5714
+ * @param {*} [options] Override http request option.
5715
+ * @throws {RequiredError}
5716
+ */
5717
+ environmentCoverage(recordUuid, options) {
5718
+ return __awaiter(this, void 0, void 0, function* () {
5719
+ var _a, _b, _c;
5720
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.environmentCoverage(recordUuid, options);
5721
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5722
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.environmentCoverage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5723
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5724
+ });
5725
+ },
5726
+ /**
5727
+ *
5728
+ * @summary Load a page for the builder
5729
+ * @param {string} recordUuid
5730
+ * @param {string} [locale]
5731
+ * @param {string} [state]
5732
+ * @param {*} [options] Override http request option.
5733
+ * @throws {RequiredError}
5734
+ */
5735
+ get(recordUuid, locale, state, options) {
5736
+ return __awaiter(this, void 0, void 0, function* () {
5737
+ var _a, _b, _c;
5738
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get(recordUuid, locale, state, options);
5739
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5740
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.get']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5741
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5742
+ });
5743
+ },
5744
+ /**
5745
+ *
5746
+ * @summary CMS v2 object template document
5747
+ * @param {string} objectUuid
5748
+ * @param {string} [locale]
5749
+ * @param {*} [options] Override http request option.
5750
+ * @throws {RequiredError}
5751
+ */
5752
+ getTemplate(objectUuid, locale, options) {
5753
+ return __awaiter(this, void 0, void 0, function* () {
5754
+ var _a, _b, _c;
5755
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTemplate(objectUuid, locale, options);
5756
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5757
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.getTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5758
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5759
+ });
5760
+ },
5761
+ /**
5762
+ *
5763
+ * @summary Draft snapshots for one locale
5764
+ * @param {string} recordUuid
5765
+ * @param {string} [locale]
5766
+ * @param {*} [options] Override http request option.
5767
+ * @throws {RequiredError}
5768
+ */
5769
+ history(recordUuid, locale, options) {
5770
+ return __awaiter(this, void 0, void 0, function* () {
5771
+ var _a, _b, _c;
5772
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.history(recordUuid, locale, options);
5773
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5774
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.history']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5775
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5776
+ });
5777
+ },
5778
+ /**
5779
+ *
5780
+ * @summary Host this page on another environment
5781
+ * @param {string} recordUuid
5782
+ * @param {string} key
5783
+ * @param {*} [options] Override http request option.
5784
+ * @throws {RequiredError}
5785
+ */
5786
+ hostOnEnvironment(recordUuid, key, options) {
5787
+ return __awaiter(this, void 0, void 0, function* () {
5788
+ var _a, _b, _c;
5789
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.hostOnEnvironment(recordUuid, key, options);
5790
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5791
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.hostOnEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5792
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5793
+ });
5794
+ },
5795
+ /**
5796
+ * Backs the builder\'s library picker. Only modules from installed apps, and never retired ones, because a new page must be able to render them.
5797
+ * @summary Modules available to this company
5798
+ * @param {*} [options] Override http request option.
5799
+ * @throws {RequiredError}
5800
+ */
5801
+ library(options) {
5802
+ return __awaiter(this, void 0, void 0, function* () {
5803
+ var _a, _b, _c;
5804
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.library(options);
5805
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5806
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.library']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5807
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5808
+ });
5809
+ },
5810
+ /**
5811
+ * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work.
5812
+ * @summary Apply patches to a page draft
5813
+ * @param {string} recordUuid
5814
+ * @param {CmsPagePatchRequest} cmsPagePatchRequest
5815
+ * @param {*} [options] Override http request option.
5816
+ * @throws {RequiredError}
5817
+ */
5818
+ patch(recordUuid, cmsPagePatchRequest, options) {
5819
+ return __awaiter(this, void 0, void 0, function* () {
5820
+ var _a, _b, _c;
5821
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.patch(recordUuid, cmsPagePatchRequest, options);
5822
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5823
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.patch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5824
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5825
+ });
5826
+ },
5827
+ /**
5828
+ * The iframe renders the draft document, which the public API will not serve. The signature covers the page and an expiry so a leaked link cannot be retargeted or replayed.
5829
+ * @summary Signed preview URL for the builder iframe
5830
+ * @param {string} recordUuid
5831
+ * @param {string} [locale]
5832
+ * @param {string} [state]
5833
+ * @param {*} [options] Override http request option.
5834
+ * @throws {RequiredError}
5835
+ */
5836
+ previewLink(recordUuid, locale, state, options) {
5837
+ return __awaiter(this, void 0, void 0, function* () {
5838
+ var _a, _b, _c;
5839
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.previewLink(recordUuid, locale, state, options);
5840
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5841
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.previewLink']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5842
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5843
+ });
5844
+ },
5845
+ /**
5846
+ * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
5847
+ * @summary Publish one locale, or all of them
5848
+ * @param {string} recordUuid
5849
+ * @param {string} [locale]
5850
+ * @param {boolean} [allLocales]
5851
+ * @param {*} [options] Override http request option.
5852
+ * @throws {RequiredError}
5853
+ */
5854
+ publish(recordUuid, locale, allLocales, options) {
5855
+ return __awaiter(this, void 0, void 0, function* () {
5856
+ var _a, _b, _c;
5857
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publish(recordUuid, locale, allLocales, options);
5858
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5859
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.publish']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5860
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5861
+ });
5862
+ },
5863
+ /**
5864
+ *
5865
+ * @summary Restore a draft snapshot
5866
+ * @param {string} recordUuid
5867
+ * @param {number} index
5868
+ * @param {string} [locale]
5869
+ * @param {*} [options] Override http request option.
5870
+ * @throws {RequiredError}
5871
+ */
5872
+ restoreHistory(recordUuid, index, locale, options) {
5873
+ return __awaiter(this, void 0, void 0, function* () {
5874
+ var _a, _b, _c;
5875
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreHistory(recordUuid, index, locale, options);
5876
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5877
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.restoreHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5878
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5879
+ });
5880
+ },
5881
+ /**
5882
+ *
5883
+ * @summary Replace a page draft
5884
+ * @param {string} recordUuid
5885
+ * @param {CmsPageDocument} cmsPageDocument
5886
+ * @param {string} [locale]
5887
+ * @param {*} [options] Override http request option.
5888
+ * @throws {RequiredError}
5889
+ */
5890
+ save(recordUuid, cmsPageDocument, locale, options) {
5891
+ return __awaiter(this, void 0, void 0, function* () {
5892
+ var _a, _b, _c;
5893
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.save(recordUuid, cmsPageDocument, locale, options);
5894
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5895
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.save']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5896
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5897
+ });
5898
+ },
5899
+ /**
5900
+ *
5901
+ * @summary Update slug, title, excerpt, SEO and page scripts
5902
+ * @param {string} recordUuid
5903
+ * @param {{ [key: string]: any | null; }} requestBody
5904
+ * @param {string} [locale]
5905
+ * @param {*} [options] Override http request option.
5906
+ * @throws {RequiredError}
5907
+ */
5908
+ saveMeta(recordUuid, requestBody, locale, options) {
5909
+ return __awaiter(this, void 0, void 0, function* () {
5910
+ var _a, _b, _c;
5911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.saveMeta(recordUuid, requestBody, locale, options);
5912
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5913
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.saveMeta']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5914
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5915
+ });
5916
+ },
5917
+ /**
5918
+ *
5919
+ * @summary Replace a CMS v2 object template
5920
+ * @param {string} objectUuid
5921
+ * @param {CmsPageDocument} cmsPageDocument
5922
+ * @param {string} [locale]
5923
+ * @param {*} [options] Override http request option.
5924
+ * @throws {RequiredError}
5925
+ */
5926
+ saveTemplate(objectUuid, cmsPageDocument, locale, options) {
5927
+ return __awaiter(this, void 0, void 0, function* () {
5928
+ var _a, _b, _c;
5929
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.saveTemplate(objectUuid, cmsPageDocument, locale, options);
5930
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5931
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.saveTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5932
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5933
+ });
5934
+ },
5935
+ /**
5936
+ *
5937
+ * @summary Take one locale offline
5938
+ * @param {string} recordUuid
5939
+ * @param {string} [locale]
5940
+ * @param {*} [options] Override http request option.
5941
+ * @throws {RequiredError}
5942
+ */
5943
+ unpublish(recordUuid, locale, options) {
5944
+ return __awaiter(this, void 0, void 0, function* () {
5945
+ var _a, _b, _c;
5946
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unpublish(recordUuid, locale, options);
5947
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5948
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.unpublish']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5949
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5950
+ });
5951
+ },
5952
+ /**
5953
+ *
5954
+ * @summary Remove an environment from this page only
5955
+ * @param {string} recordUuid
5956
+ * @param {string} key
5957
+ * @param {*} [options] Override http request option.
5958
+ * @throws {RequiredError}
5959
+ */
5960
+ unselectEnvironment(recordUuid, key, options) {
5961
+ return __awaiter(this, void 0, void 0, function* () {
5962
+ var _a, _b, _c;
5963
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unselectEnvironment(recordUuid, key, options);
5964
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5965
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PagesApi.unselectEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5966
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5967
+ });
5968
+ },
5969
+ };
5970
+ };
5971
+ /**
5972
+ * CMSV2PagesApi - factory interface
5973
+ */
5974
+ export const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
5975
+ const localVarFp = CMSV2PagesApiFp(configuration);
5976
+ return {
5977
+ /**
5978
+ * Returns patches the editor applies through the same revision channel as a manual edit, so the change is undoable. Page scope may add, remove and reorder modules. A module\'s code lives in a shared npm package, so the AI rewrites field values and composition, never the component itself.
5979
+ * @summary Rewrite a page or a module from a prompt
5980
+ * @param {string} recordUuid
5981
+ * @param {{ [key: string]: any | null; }} requestBody
5982
+ * @param {*} [options] Override http request option.
5983
+ * @throws {RequiredError}
5984
+ */
5985
+ aiRewrite(recordUuid, requestBody, options) {
5986
+ return localVarFp.aiRewrite(recordUuid, requestBody, options).then((request) => request(axios, basePath));
5987
+ },
5988
+ /**
5989
+ *
5990
+ * @summary Create a translated sibling page for an environment
5991
+ * @param {string} recordUuid
5992
+ * @param {string} key
5993
+ * @param {*} [options] Override http request option.
5994
+ * @throws {RequiredError}
5995
+ */
5996
+ createTranslation(recordUuid, key, options) {
5997
+ return localVarFp.createTranslation(recordUuid, key, options).then((request) => request(axios, basePath));
5998
+ },
5999
+ /**
6000
+ * 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.
6001
+ * @summary Create or reuse the custom 404 page
6002
+ * @param {*} [options] Override http request option.
6003
+ * @throws {RequiredError}
6004
+ */
6005
+ ensureNotFound(options) {
6006
+ return localVarFp.ensureNotFound(options).then((request) => request(axios, basePath));
6007
+ },
6008
+ /**
6009
+ *
6010
+ * @summary Environment coverage for the builder dropdown
6011
+ * @param {string} recordUuid
6012
+ * @param {*} [options] Override http request option.
6013
+ * @throws {RequiredError}
6014
+ */
6015
+ environmentCoverage(recordUuid, options) {
6016
+ return localVarFp.environmentCoverage(recordUuid, options).then((request) => request(axios, basePath));
6017
+ },
6018
+ /**
6019
+ *
6020
+ * @summary Load a page for the builder
6021
+ * @param {string} recordUuid
6022
+ * @param {string} [locale]
6023
+ * @param {string} [state]
6024
+ * @param {*} [options] Override http request option.
6025
+ * @throws {RequiredError}
6026
+ */
6027
+ get(recordUuid, locale, state, options) {
6028
+ return localVarFp.get(recordUuid, locale, state, options).then((request) => request(axios, basePath));
6029
+ },
6030
+ /**
6031
+ *
6032
+ * @summary CMS v2 object template document
6033
+ * @param {string} objectUuid
6034
+ * @param {string} [locale]
6035
+ * @param {*} [options] Override http request option.
6036
+ * @throws {RequiredError}
6037
+ */
6038
+ getTemplate(objectUuid, locale, options) {
6039
+ return localVarFp.getTemplate(objectUuid, locale, options).then((request) => request(axios, basePath));
6040
+ },
6041
+ /**
6042
+ *
6043
+ * @summary Draft snapshots for one locale
6044
+ * @param {string} recordUuid
6045
+ * @param {string} [locale]
6046
+ * @param {*} [options] Override http request option.
6047
+ * @throws {RequiredError}
6048
+ */
6049
+ history(recordUuid, locale, options) {
6050
+ return localVarFp.history(recordUuid, locale, options).then((request) => request(axios, basePath));
6051
+ },
6052
+ /**
6053
+ *
6054
+ * @summary Host this page on another environment
6055
+ * @param {string} recordUuid
6056
+ * @param {string} key
6057
+ * @param {*} [options] Override http request option.
6058
+ * @throws {RequiredError}
6059
+ */
6060
+ hostOnEnvironment(recordUuid, key, options) {
6061
+ return localVarFp.hostOnEnvironment(recordUuid, key, options).then((request) => request(axios, basePath));
6062
+ },
6063
+ /**
6064
+ * Backs the builder\'s library picker. Only modules from installed apps, and never retired ones, because a new page must be able to render them.
6065
+ * @summary Modules available to this company
6066
+ * @param {*} [options] Override http request option.
6067
+ * @throws {RequiredError}
6068
+ */
6069
+ library(options) {
6070
+ return localVarFp.library(options).then((request) => request(axios, basePath));
6071
+ },
6072
+ /**
6073
+ * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work.
6074
+ * @summary Apply patches to a page draft
6075
+ * @param {string} recordUuid
6076
+ * @param {CmsPagePatchRequest} cmsPagePatchRequest
6077
+ * @param {*} [options] Override http request option.
6078
+ * @throws {RequiredError}
6079
+ */
6080
+ patch(recordUuid, cmsPagePatchRequest, options) {
6081
+ return localVarFp.patch(recordUuid, cmsPagePatchRequest, options).then((request) => request(axios, basePath));
6082
+ },
6083
+ /**
6084
+ * The iframe renders the draft document, which the public API will not serve. The signature covers the page and an expiry so a leaked link cannot be retargeted or replayed.
6085
+ * @summary Signed preview URL for the builder iframe
6086
+ * @param {string} recordUuid
6087
+ * @param {string} [locale]
6088
+ * @param {string} [state]
6089
+ * @param {*} [options] Override http request option.
6090
+ * @throws {RequiredError}
6091
+ */
6092
+ previewLink(recordUuid, locale, state, options) {
6093
+ return localVarFp.previewLink(recordUuid, locale, state, options).then((request) => request(axios, basePath));
6094
+ },
6095
+ /**
6096
+ * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
6097
+ * @summary Publish one locale, or all of them
6098
+ * @param {string} recordUuid
6099
+ * @param {string} [locale]
6100
+ * @param {boolean} [allLocales]
6101
+ * @param {*} [options] Override http request option.
6102
+ * @throws {RequiredError}
6103
+ */
6104
+ publish(recordUuid, locale, allLocales, options) {
6105
+ return localVarFp.publish(recordUuid, locale, allLocales, options).then((request) => request(axios, basePath));
6106
+ },
6107
+ /**
6108
+ *
6109
+ * @summary Restore a draft snapshot
6110
+ * @param {string} recordUuid
6111
+ * @param {number} index
6112
+ * @param {string} [locale]
6113
+ * @param {*} [options] Override http request option.
6114
+ * @throws {RequiredError}
6115
+ */
6116
+ restoreHistory(recordUuid, index, locale, options) {
6117
+ return localVarFp.restoreHistory(recordUuid, index, locale, options).then((request) => request(axios, basePath));
6118
+ },
6119
+ /**
6120
+ *
6121
+ * @summary Replace a page draft
6122
+ * @param {string} recordUuid
6123
+ * @param {CmsPageDocument} cmsPageDocument
6124
+ * @param {string} [locale]
6125
+ * @param {*} [options] Override http request option.
6126
+ * @throws {RequiredError}
6127
+ */
6128
+ save(recordUuid, cmsPageDocument, locale, options) {
6129
+ return localVarFp.save(recordUuid, cmsPageDocument, locale, options).then((request) => request(axios, basePath));
6130
+ },
6131
+ /**
6132
+ *
6133
+ * @summary Update slug, title, excerpt, SEO and page scripts
6134
+ * @param {string} recordUuid
6135
+ * @param {{ [key: string]: any | null; }} requestBody
6136
+ * @param {string} [locale]
6137
+ * @param {*} [options] Override http request option.
6138
+ * @throws {RequiredError}
6139
+ */
6140
+ saveMeta(recordUuid, requestBody, locale, options) {
6141
+ return localVarFp.saveMeta(recordUuid, requestBody, locale, options).then((request) => request(axios, basePath));
6142
+ },
6143
+ /**
6144
+ *
6145
+ * @summary Replace a CMS v2 object template
6146
+ * @param {string} objectUuid
6147
+ * @param {CmsPageDocument} cmsPageDocument
6148
+ * @param {string} [locale]
6149
+ * @param {*} [options] Override http request option.
6150
+ * @throws {RequiredError}
6151
+ */
6152
+ saveTemplate(objectUuid, cmsPageDocument, locale, options) {
6153
+ return localVarFp.saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(axios, basePath));
6154
+ },
6155
+ /**
6156
+ *
6157
+ * @summary Take one locale offline
6158
+ * @param {string} recordUuid
6159
+ * @param {string} [locale]
6160
+ * @param {*} [options] Override http request option.
6161
+ * @throws {RequiredError}
6162
+ */
6163
+ unpublish(recordUuid, locale, options) {
6164
+ return localVarFp.unpublish(recordUuid, locale, options).then((request) => request(axios, basePath));
6165
+ },
6166
+ /**
6167
+ *
6168
+ * @summary Remove an environment from this page only
6169
+ * @param {string} recordUuid
6170
+ * @param {string} key
6171
+ * @param {*} [options] Override http request option.
6172
+ * @throws {RequiredError}
6173
+ */
6174
+ unselectEnvironment(recordUuid, key, options) {
6175
+ return localVarFp.unselectEnvironment(recordUuid, key, options).then((request) => request(axios, basePath));
6176
+ },
6177
+ };
6178
+ };
6179
+ /**
6180
+ * CMSV2PagesApi - object-oriented interface
6181
+ */
6182
+ export class CMSV2PagesApi extends BaseAPI {
6183
+ /**
6184
+ * Returns patches the editor applies through the same revision channel as a manual edit, so the change is undoable. Page scope may add, remove and reorder modules. A module\'s code lives in a shared npm package, so the AI rewrites field values and composition, never the component itself.
6185
+ * @summary Rewrite a page or a module from a prompt
6186
+ * @param {string} recordUuid
6187
+ * @param {{ [key: string]: any | null; }} requestBody
6188
+ * @param {*} [options] Override http request option.
6189
+ * @throws {RequiredError}
6190
+ */
6191
+ aiRewrite(recordUuid, requestBody, options) {
6192
+ return CMSV2PagesApiFp(this.configuration).aiRewrite(recordUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
6193
+ }
6194
+ /**
6195
+ *
6196
+ * @summary Create a translated sibling page for an environment
6197
+ * @param {string} recordUuid
6198
+ * @param {string} key
6199
+ * @param {*} [options] Override http request option.
6200
+ * @throws {RequiredError}
6201
+ */
6202
+ createTranslation(recordUuid, key, options) {
6203
+ return CMSV2PagesApiFp(this.configuration).createTranslation(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
6204
+ }
6205
+ /**
6206
+ * 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.
6207
+ * @summary Create or reuse the custom 404 page
6208
+ * @param {*} [options] Override http request option.
6209
+ * @throws {RequiredError}
6210
+ */
6211
+ ensureNotFound(options) {
6212
+ return CMSV2PagesApiFp(this.configuration).ensureNotFound(options).then((request) => request(this.axios, this.basePath));
6213
+ }
6214
+ /**
6215
+ *
6216
+ * @summary Environment coverage for the builder dropdown
6217
+ * @param {string} recordUuid
6218
+ * @param {*} [options] Override http request option.
6219
+ * @throws {RequiredError}
6220
+ */
6221
+ environmentCoverage(recordUuid, options) {
6222
+ return CMSV2PagesApiFp(this.configuration).environmentCoverage(recordUuid, options).then((request) => request(this.axios, this.basePath));
6223
+ }
6224
+ /**
6225
+ *
6226
+ * @summary Load a page for the builder
6227
+ * @param {string} recordUuid
6228
+ * @param {string} [locale]
6229
+ * @param {string} [state]
6230
+ * @param {*} [options] Override http request option.
6231
+ * @throws {RequiredError}
6232
+ */
6233
+ get(recordUuid, locale, state, options) {
6234
+ return CMSV2PagesApiFp(this.configuration).get(recordUuid, locale, state, options).then((request) => request(this.axios, this.basePath));
6235
+ }
6236
+ /**
6237
+ *
6238
+ * @summary CMS v2 object template document
6239
+ * @param {string} objectUuid
6240
+ * @param {string} [locale]
6241
+ * @param {*} [options] Override http request option.
6242
+ * @throws {RequiredError}
6243
+ */
6244
+ getTemplate(objectUuid, locale, options) {
6245
+ return CMSV2PagesApiFp(this.configuration).getTemplate(objectUuid, locale, options).then((request) => request(this.axios, this.basePath));
6246
+ }
6247
+ /**
6248
+ *
6249
+ * @summary Draft snapshots for one locale
6250
+ * @param {string} recordUuid
6251
+ * @param {string} [locale]
6252
+ * @param {*} [options] Override http request option.
6253
+ * @throws {RequiredError}
6254
+ */
6255
+ history(recordUuid, locale, options) {
6256
+ return CMSV2PagesApiFp(this.configuration).history(recordUuid, locale, options).then((request) => request(this.axios, this.basePath));
6257
+ }
6258
+ /**
6259
+ *
6260
+ * @summary Host this page on another environment
6261
+ * @param {string} recordUuid
6262
+ * @param {string} key
6263
+ * @param {*} [options] Override http request option.
6264
+ * @throws {RequiredError}
6265
+ */
6266
+ hostOnEnvironment(recordUuid, key, options) {
6267
+ return CMSV2PagesApiFp(this.configuration).hostOnEnvironment(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
6268
+ }
6269
+ /**
6270
+ * Backs the builder\'s library picker. Only modules from installed apps, and never retired ones, because a new page must be able to render them.
6271
+ * @summary Modules available to this company
6272
+ * @param {*} [options] Override http request option.
6273
+ * @throws {RequiredError}
6274
+ */
6275
+ library(options) {
6276
+ return CMSV2PagesApiFp(this.configuration).library(options).then((request) => request(this.axios, this.basePath));
6277
+ }
6278
+ /**
6279
+ * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work.
6280
+ * @summary Apply patches to a page draft
6281
+ * @param {string} recordUuid
6282
+ * @param {CmsPagePatchRequest} cmsPagePatchRequest
6283
+ * @param {*} [options] Override http request option.
6284
+ * @throws {RequiredError}
6285
+ */
6286
+ patch(recordUuid, cmsPagePatchRequest, options) {
6287
+ return CMSV2PagesApiFp(this.configuration).patch(recordUuid, cmsPagePatchRequest, options).then((request) => request(this.axios, this.basePath));
6288
+ }
6289
+ /**
6290
+ * The iframe renders the draft document, which the public API will not serve. The signature covers the page and an expiry so a leaked link cannot be retargeted or replayed.
6291
+ * @summary Signed preview URL for the builder iframe
6292
+ * @param {string} recordUuid
6293
+ * @param {string} [locale]
6294
+ * @param {string} [state]
6295
+ * @param {*} [options] Override http request option.
6296
+ * @throws {RequiredError}
6297
+ */
6298
+ previewLink(recordUuid, locale, state, options) {
6299
+ return CMSV2PagesApiFp(this.configuration).previewLink(recordUuid, locale, state, options).then((request) => request(this.axios, this.basePath));
6300
+ }
6301
+ /**
6302
+ * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
6303
+ * @summary Publish one locale, or all of them
6304
+ * @param {string} recordUuid
6305
+ * @param {string} [locale]
6306
+ * @param {boolean} [allLocales]
6307
+ * @param {*} [options] Override http request option.
6308
+ * @throws {RequiredError}
6309
+ */
6310
+ publish(recordUuid, locale, allLocales, options) {
6311
+ return CMSV2PagesApiFp(this.configuration).publish(recordUuid, locale, allLocales, options).then((request) => request(this.axios, this.basePath));
6312
+ }
6313
+ /**
6314
+ *
6315
+ * @summary Restore a draft snapshot
6316
+ * @param {string} recordUuid
6317
+ * @param {number} index
6318
+ * @param {string} [locale]
6319
+ * @param {*} [options] Override http request option.
6320
+ * @throws {RequiredError}
6321
+ */
6322
+ restoreHistory(recordUuid, index, locale, options) {
6323
+ return CMSV2PagesApiFp(this.configuration).restoreHistory(recordUuid, index, locale, options).then((request) => request(this.axios, this.basePath));
6324
+ }
6325
+ /**
6326
+ *
6327
+ * @summary Replace a page draft
6328
+ * @param {string} recordUuid
6329
+ * @param {CmsPageDocument} cmsPageDocument
6330
+ * @param {string} [locale]
6331
+ * @param {*} [options] Override http request option.
6332
+ * @throws {RequiredError}
6333
+ */
6334
+ save(recordUuid, cmsPageDocument, locale, options) {
6335
+ return CMSV2PagesApiFp(this.configuration).save(recordUuid, cmsPageDocument, locale, options).then((request) => request(this.axios, this.basePath));
6336
+ }
6337
+ /**
6338
+ *
6339
+ * @summary Update slug, title, excerpt, SEO and page scripts
6340
+ * @param {string} recordUuid
6341
+ * @param {{ [key: string]: any | null; }} requestBody
6342
+ * @param {string} [locale]
6343
+ * @param {*} [options] Override http request option.
6344
+ * @throws {RequiredError}
6345
+ */
6346
+ saveMeta(recordUuid, requestBody, locale, options) {
6347
+ return CMSV2PagesApiFp(this.configuration).saveMeta(recordUuid, requestBody, locale, options).then((request) => request(this.axios, this.basePath));
6348
+ }
6349
+ /**
6350
+ *
6351
+ * @summary Replace a CMS v2 object template
6352
+ * @param {string} objectUuid
6353
+ * @param {CmsPageDocument} cmsPageDocument
6354
+ * @param {string} [locale]
6355
+ * @param {*} [options] Override http request option.
6356
+ * @throws {RequiredError}
6357
+ */
6358
+ saveTemplate(objectUuid, cmsPageDocument, locale, options) {
6359
+ return CMSV2PagesApiFp(this.configuration).saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(this.axios, this.basePath));
6360
+ }
6361
+ /**
6362
+ *
6363
+ * @summary Take one locale offline
6364
+ * @param {string} recordUuid
6365
+ * @param {string} [locale]
6366
+ * @param {*} [options] Override http request option.
6367
+ * @throws {RequiredError}
6368
+ */
6369
+ unpublish(recordUuid, locale, options) {
6370
+ return CMSV2PagesApiFp(this.configuration).unpublish(recordUuid, locale, options).then((request) => request(this.axios, this.basePath));
6371
+ }
6372
+ /**
6373
+ *
6374
+ * @summary Remove an environment from this page only
6375
+ * @param {string} recordUuid
6376
+ * @param {string} key
6377
+ * @param {*} [options] Override http request option.
6378
+ * @throws {RequiredError}
6379
+ */
6380
+ unselectEnvironment(recordUuid, key, options) {
6381
+ return CMSV2PagesApiFp(this.configuration).unselectEnvironment(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
6382
+ }
6383
+ }
6384
+ /**
6385
+ * CMSV2PublicApi - axios parameter creator
6386
+ */
6387
+ export const CMSV2PublicApiAxiosParamCreator = function (configuration) {
6388
+ return {
6389
+ /**
6390
+ *
6391
+ * @summary Installed app settings with SECRET fields removed
6392
+ * @param {string} xCaraerSubdomain
6393
+ * @param {string} appName
6394
+ * @param {*} [options] Override http request option.
6395
+ * @throws {RequiredError}
6396
+ */
6397
+ appSettings: (xCaraerSubdomain_1, appName_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, appName_1, ...args_1], void 0, function* (xCaraerSubdomain, appName, options = {}) {
6398
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6399
+ assertParamExists('appSettings', 'xCaraerSubdomain', xCaraerSubdomain);
6400
+ // verify required parameter 'appName' is not null or undefined
6401
+ assertParamExists('appSettings', 'appName', appName);
6402
+ const localVarPath = `/api/v2/webpages/v2/public/apps/{appName}/settings`
6403
+ .replace('{appName}', encodeURIComponent(String(appName)));
6404
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6405
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6406
+ let baseOptions;
6407
+ if (configuration) {
6408
+ baseOptions = configuration.baseOptions;
6409
+ }
6410
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6411
+ const localVarHeaderParameter = {};
6412
+ const localVarQueryParameter = {};
6413
+ // authentication bearerAuth required
6414
+ // http bearer authentication required
6415
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6416
+ localVarHeaderParameter['Accept'] = 'application/json';
6417
+ if (xCaraerSubdomain != null) {
6418
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6419
+ }
6420
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6421
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6422
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6423
+ return {
6424
+ url: toPathString(localVarUrlObj),
6425
+ options: localVarRequestOptions,
6426
+ };
6427
+ }),
6428
+ /**
6429
+ *
6430
+ * @summary Redirect to a company file for the website runtime
6431
+ * @param {string} xCaraerSubdomain
6432
+ * @param {string} key
6433
+ * @param {string} [pageUuid]
6434
+ * @param {string} [environment]
6435
+ * @param {string} [locale]
6436
+ * @param {string} [access]
6437
+ * @param {string} [token]
6438
+ * @param {string} [caraerExpires]
6439
+ * @param {string} [caraerSig]
6440
+ * @param {string} [xCaraerWebpageAccess]
6441
+ * @param {string} [authorization]
6442
+ * @param {*} [options] Override http request option.
6443
+ * @throws {RequiredError}
6444
+ */
6445
+ asset: (xCaraerSubdomain_1, key_1, pageUuid_1, environment_1, locale_1, access_1, token_1, caraerExpires_1, caraerSig_1, xCaraerWebpageAccess_1, authorization_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, key_1, pageUuid_1, environment_1, locale_1, access_1, token_1, caraerExpires_1, caraerSig_1, xCaraerWebpageAccess_1, authorization_1, ...args_1], void 0, function* (xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options = {}) {
6446
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6447
+ assertParamExists('asset', 'xCaraerSubdomain', xCaraerSubdomain);
6448
+ // verify required parameter 'key' is not null or undefined
6449
+ assertParamExists('asset', 'key', key);
6450
+ const localVarPath = `/api/v2/webpages/v2/public/asset`;
6451
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6452
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6453
+ let baseOptions;
6454
+ if (configuration) {
6455
+ baseOptions = configuration.baseOptions;
6456
+ }
6457
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6458
+ const localVarHeaderParameter = {};
6459
+ const localVarQueryParameter = {};
6460
+ // authentication bearerAuth required
6461
+ // http bearer authentication required
6462
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6463
+ if (key !== undefined) {
6464
+ localVarQueryParameter['key'] = key;
6465
+ }
6466
+ if (pageUuid !== undefined) {
6467
+ localVarQueryParameter['pageUuid'] = pageUuid;
6468
+ }
6469
+ if (environment !== undefined) {
6470
+ localVarQueryParameter['environment'] = environment;
6471
+ }
6472
+ if (locale !== undefined) {
6473
+ localVarQueryParameter['locale'] = locale;
6474
+ }
6475
+ if (access !== undefined) {
6476
+ localVarQueryParameter['access'] = access;
6477
+ }
6478
+ if (token !== undefined) {
6479
+ localVarQueryParameter['token'] = token;
6480
+ }
6481
+ if (caraerExpires !== undefined) {
6482
+ localVarQueryParameter['caraer_expires'] = caraerExpires;
6483
+ }
6484
+ if (caraerSig !== undefined) {
6485
+ localVarQueryParameter['caraer_sig'] = caraerSig;
6486
+ }
6487
+ localVarHeaderParameter['Accept'] = 'application/json';
6488
+ if (xCaraerSubdomain != null) {
6489
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6490
+ }
6491
+ if (xCaraerWebpageAccess != null) {
6492
+ localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess);
6493
+ }
6494
+ if (authorization != null) {
6495
+ localVarHeaderParameter['Authorization'] = String(authorization);
6496
+ }
6497
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6498
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6499
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6500
+ return {
6501
+ url: toPathString(localVarUrlObj),
6502
+ options: localVarRequestOptions,
6503
+ };
6504
+ }),
6505
+ /**
6506
+ *
6507
+ * @summary Installed apps and modules for a company\'s website build
6508
+ * @param {string} xCaraerSubdomain
6509
+ * @param {*} [options] Override http request option.
6510
+ * @throws {RequiredError}
6511
+ */
6512
+ buildManifest: (xCaraerSubdomain_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, ...args_1], void 0, function* (xCaraerSubdomain, options = {}) {
6513
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6514
+ assertParamExists('buildManifest', 'xCaraerSubdomain', xCaraerSubdomain);
6515
+ const localVarPath = `/api/v2/webpages/v2/build/manifest`;
6516
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6517
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6518
+ let baseOptions;
6519
+ if (configuration) {
6520
+ baseOptions = configuration.baseOptions;
6521
+ }
6522
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6523
+ const localVarHeaderParameter = {};
6524
+ const localVarQueryParameter = {};
6525
+ // authentication bearerAuth required
6526
+ // http bearer authentication required
6527
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6528
+ localVarHeaderParameter['Accept'] = 'application/json';
6529
+ if (xCaraerSubdomain != null) {
6530
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6531
+ }
6532
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6533
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6534
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6535
+ return {
6536
+ url: toPathString(localVarUrlObj),
6537
+ options: localVarRequestOptions,
6538
+ };
6539
+ }),
6540
+ /**
6541
+ *
6542
+ * @summary Navigation menus for the header and footer
6543
+ * @param {string} xCaraerSubdomain
6544
+ * @param {string} [environment]
6545
+ * @param {string} [locale]
6546
+ * @param {*} [options] Override http request option.
6547
+ * @throws {RequiredError}
6548
+ */
6549
+ menus: (xCaraerSubdomain_1, environment_1, locale_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, environment_1, locale_1, ...args_1], void 0, function* (xCaraerSubdomain, environment, locale, options = {}) {
6550
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6551
+ assertParamExists('menus', 'xCaraerSubdomain', xCaraerSubdomain);
6552
+ const localVarPath = `/api/v2/webpages/v2/public/menus`;
6553
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6554
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6555
+ let baseOptions;
6556
+ if (configuration) {
6557
+ baseOptions = configuration.baseOptions;
6558
+ }
6559
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6560
+ const localVarHeaderParameter = {};
6561
+ const localVarQueryParameter = {};
6562
+ // authentication bearerAuth required
6563
+ // http bearer authentication required
6564
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6565
+ if (environment !== undefined) {
6566
+ localVarQueryParameter['environment'] = environment;
6567
+ }
6568
+ if (locale !== undefined) {
6569
+ localVarQueryParameter['locale'] = locale;
6570
+ }
6571
+ localVarHeaderParameter['Accept'] = 'application/json';
6572
+ if (xCaraerSubdomain != null) {
6573
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6574
+ }
6575
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6576
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6577
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6578
+ return {
6579
+ url: toPathString(localVarUrlObj),
6580
+ options: localVarRequestOptions,
6581
+ };
6582
+ }),
6583
+ /**
6584
+ *
6585
+ * @summary A published page by URL path
6586
+ * @param {string} xCaraerSubdomain
6587
+ * @param {string} path
6588
+ * @param {string} [xCaraerWebpageAccess]
6589
+ * @param {string} [authorization]
6590
+ * @param {string} [environment]
6591
+ * @param {string} [locale]
6592
+ * @param {string} [access]
6593
+ * @param {string} [token]
6594
+ * @param {*} [options] Override http request option.
6595
+ * @throws {RequiredError}
6596
+ */
6597
+ pageByPath: (xCaraerSubdomain_1, path_1, xCaraerWebpageAccess_1, authorization_1, environment_1, locale_1, access_1, token_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, path_1, xCaraerWebpageAccess_1, authorization_1, environment_1, locale_1, access_1, token_1, ...args_1], void 0, function* (xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options = {}) {
6598
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6599
+ assertParamExists('pageByPath', 'xCaraerSubdomain', xCaraerSubdomain);
6600
+ // verify required parameter 'path' is not null or undefined
6601
+ assertParamExists('pageByPath', 'path', path);
6602
+ const localVarPath = `/api/v2/webpages/v2/public/page`;
6603
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6604
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6605
+ let baseOptions;
6606
+ if (configuration) {
6607
+ baseOptions = configuration.baseOptions;
6608
+ }
6609
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6610
+ const localVarHeaderParameter = {};
6611
+ const localVarQueryParameter = {};
6612
+ // authentication bearerAuth required
6613
+ // http bearer authentication required
6614
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6615
+ if (environment !== undefined) {
6616
+ localVarQueryParameter['environment'] = environment;
6617
+ }
6618
+ if (locale !== undefined) {
6619
+ localVarQueryParameter['locale'] = locale;
6620
+ }
6621
+ if (path !== undefined) {
6622
+ localVarQueryParameter['path'] = path;
6623
+ }
6624
+ if (access !== undefined) {
6625
+ localVarQueryParameter['access'] = access;
6626
+ }
6627
+ if (token !== undefined) {
6628
+ localVarQueryParameter['token'] = token;
6629
+ }
6630
+ localVarHeaderParameter['Accept'] = 'application/json';
6631
+ if (xCaraerSubdomain != null) {
6632
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6633
+ }
6634
+ if (xCaraerWebpageAccess != null) {
6635
+ localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess);
6636
+ }
6637
+ if (authorization != null) {
6638
+ localVarHeaderParameter['Authorization'] = String(authorization);
6639
+ }
6640
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6641
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6642
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6643
+ return {
6644
+ url: toPathString(localVarUrlObj),
6645
+ options: localVarRequestOptions,
6646
+ };
6647
+ }),
6648
+ /**
6649
+ * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet.
6650
+ * @summary A page by record uuid
6651
+ * @param {string} xCaraerSubdomain
6652
+ * @param {string} uuid
6653
+ * @param {string} [xCaraerWebpageAccess]
6654
+ * @param {string} [authorization]
6655
+ * @param {string} [environment]
6656
+ * @param {string} [locale]
6657
+ * @param {string} [state]
6658
+ * @param {string} [access]
6659
+ * @param {string} [token]
6660
+ * @param {string} [caraerExpires]
6661
+ * @param {string} [caraerSig]
6662
+ * @param {*} [options] Override http request option.
6663
+ * @throws {RequiredError}
6664
+ */
6665
+ pageByUuid: (xCaraerSubdomain_1, uuid_1, xCaraerWebpageAccess_1, authorization_1, environment_1, locale_1, state_1, access_1, token_1, caraerExpires_1, caraerSig_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, uuid_1, xCaraerWebpageAccess_1, authorization_1, environment_1, locale_1, state_1, access_1, token_1, caraerExpires_1, caraerSig_1, ...args_1], void 0, function* (xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options = {}) {
6666
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6667
+ assertParamExists('pageByUuid', 'xCaraerSubdomain', xCaraerSubdomain);
6668
+ // verify required parameter 'uuid' is not null or undefined
6669
+ assertParamExists('pageByUuid', 'uuid', uuid);
6670
+ const localVarPath = `/api/v2/webpages/v2/public/page/{uuid}`
6671
+ .replace('{uuid}', encodeURIComponent(String(uuid)));
6672
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6673
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6674
+ let baseOptions;
6675
+ if (configuration) {
6676
+ baseOptions = configuration.baseOptions;
6677
+ }
6678
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6679
+ const localVarHeaderParameter = {};
6680
+ const localVarQueryParameter = {};
6681
+ // authentication bearerAuth required
6682
+ // http bearer authentication required
6683
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6684
+ if (environment !== undefined) {
6685
+ localVarQueryParameter['environment'] = environment;
6686
+ }
6687
+ if (locale !== undefined) {
6688
+ localVarQueryParameter['locale'] = locale;
6689
+ }
6690
+ if (state !== undefined) {
6691
+ localVarQueryParameter['state'] = state;
6692
+ }
6693
+ if (access !== undefined) {
6694
+ localVarQueryParameter['access'] = access;
6695
+ }
6696
+ if (token !== undefined) {
6697
+ localVarQueryParameter['token'] = token;
6698
+ }
6699
+ if (caraerExpires !== undefined) {
6700
+ localVarQueryParameter['caraer_expires'] = caraerExpires;
6701
+ }
6702
+ if (caraerSig !== undefined) {
6703
+ localVarQueryParameter['caraer_sig'] = caraerSig;
6704
+ }
6705
+ localVarHeaderParameter['Accept'] = 'application/json';
6706
+ if (xCaraerSubdomain != null) {
6707
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6708
+ }
6709
+ if (xCaraerWebpageAccess != null) {
6710
+ localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess);
6711
+ }
6712
+ if (authorization != null) {
6713
+ localVarHeaderParameter['Authorization'] = String(authorization);
6714
+ }
6715
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6716
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6717
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6718
+ return {
6719
+ url: toPathString(localVarUrlObj),
6720
+ options: localVarRequestOptions,
6721
+ };
6722
+ }),
6723
+ /**
6724
+ *
6725
+ * @summary Protection info for a path, without the page document
6726
+ * @param {string} xCaraerSubdomain
6727
+ * @param {string} path
6728
+ * @param {string} [environment]
6729
+ * @param {string} [locale]
6730
+ * @param {*} [options] Override http request option.
6731
+ * @throws {RequiredError}
6732
+ */
6733
+ pageGate: (xCaraerSubdomain_1, path_1, environment_1, locale_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, path_1, environment_1, locale_1, ...args_1], void 0, function* (xCaraerSubdomain, path, environment, locale, options = {}) {
6734
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6735
+ assertParamExists('pageGate', 'xCaraerSubdomain', xCaraerSubdomain);
6736
+ // verify required parameter 'path' is not null or undefined
6737
+ assertParamExists('pageGate', 'path', path);
6738
+ const localVarPath = `/api/v2/webpages/v2/public/page/gate`;
6739
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6740
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6741
+ let baseOptions;
6742
+ if (configuration) {
6743
+ baseOptions = configuration.baseOptions;
6744
+ }
6745
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6746
+ const localVarHeaderParameter = {};
6747
+ const localVarQueryParameter = {};
6748
+ // authentication bearerAuth required
6749
+ // http bearer authentication required
6750
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6751
+ if (environment !== undefined) {
6752
+ localVarQueryParameter['environment'] = environment;
6753
+ }
6754
+ if (locale !== undefined) {
6755
+ localVarQueryParameter['locale'] = locale;
6756
+ }
6757
+ if (path !== undefined) {
6758
+ localVarQueryParameter['path'] = path;
6759
+ }
6760
+ localVarHeaderParameter['Accept'] = 'application/json';
6761
+ if (xCaraerSubdomain != null) {
6762
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6763
+ }
6764
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6765
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6766
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6767
+ return {
6768
+ url: toPathString(localVarUrlObj),
6769
+ options: localVarRequestOptions,
6770
+ };
6771
+ }),
6772
+ /**
6773
+ *
6774
+ * @summary Published paths per environment, for sitemaps and cache warming
6775
+ * @param {string} xCaraerSubdomain
6776
+ * @param {string} [environment]
6777
+ * @param {string} [locale]
6778
+ * @param {*} [options] Override http request option.
6779
+ * @throws {RequiredError}
6780
+ */
6781
+ paths: (xCaraerSubdomain_1, environment_1, locale_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, environment_1, locale_1, ...args_1], void 0, function* (xCaraerSubdomain, environment, locale, options = {}) {
6782
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6783
+ assertParamExists('paths', 'xCaraerSubdomain', xCaraerSubdomain);
6784
+ const localVarPath = `/api/v2/webpages/v2/public/paths`;
6785
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6786
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6787
+ let baseOptions;
6788
+ if (configuration) {
6789
+ baseOptions = configuration.baseOptions;
6790
+ }
6791
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6792
+ const localVarHeaderParameter = {};
6793
+ const localVarQueryParameter = {};
6794
+ // authentication bearerAuth required
6795
+ // http bearer authentication required
6796
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6797
+ if (environment !== undefined) {
6798
+ localVarQueryParameter['environment'] = environment;
6799
+ }
6800
+ if (locale !== undefined) {
6801
+ localVarQueryParameter['locale'] = locale;
6802
+ }
6803
+ localVarHeaderParameter['Accept'] = 'application/json';
6804
+ if (xCaraerSubdomain != null) {
6805
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6806
+ }
6807
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6808
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6809
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6810
+ return {
6811
+ url: toPathString(localVarUrlObj),
6812
+ options: localVarRequestOptions,
6813
+ };
6814
+ }),
6815
+ /**
6816
+ *
6817
+ * @summary Public records visible in an environment
6818
+ * @param {string} xCaraerSubdomain
6819
+ * @param {{ [key: string]: any | null; }} requestBody
6820
+ * @param {string} [environment]
6821
+ * @param {string} [locale]
6822
+ * @param {*} [options] Override http request option.
6823
+ * @throws {RequiredError}
6824
+ */
6825
+ records: (xCaraerSubdomain_1, requestBody_1, environment_1, locale_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, requestBody_1, environment_1, locale_1, ...args_1], void 0, function* (xCaraerSubdomain, requestBody, environment, locale, options = {}) {
6826
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6827
+ assertParamExists('records', 'xCaraerSubdomain', xCaraerSubdomain);
6828
+ // verify required parameter 'requestBody' is not null or undefined
6829
+ assertParamExists('records', 'requestBody', requestBody);
6830
+ const localVarPath = `/api/v2/webpages/v2/public/records`;
6831
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6832
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6833
+ let baseOptions;
6834
+ if (configuration) {
6835
+ baseOptions = configuration.baseOptions;
6836
+ }
6837
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6838
+ const localVarHeaderParameter = {};
6839
+ const localVarQueryParameter = {};
6840
+ // authentication bearerAuth required
6841
+ // http bearer authentication required
6842
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6843
+ if (environment !== undefined) {
6844
+ localVarQueryParameter['environment'] = environment;
6845
+ }
6846
+ if (locale !== undefined) {
6847
+ localVarQueryParameter['locale'] = locale;
6848
+ }
6849
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6850
+ localVarHeaderParameter['Accept'] = 'application/json';
6851
+ if (xCaraerSubdomain != null) {
6852
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6853
+ }
6854
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6855
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6856
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6857
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
6858
+ return {
6859
+ url: toPathString(localVarUrlObj),
6860
+ options: localVarRequestOptions,
6861
+ };
6862
+ }),
6863
+ /**
6864
+ *
6865
+ * @summary Company settings, branding and locales
6866
+ * @param {string} xCaraerSubdomain
6867
+ * @param {*} [options] Override http request option.
6868
+ * @throws {RequiredError}
6869
+ */
6870
+ settings: (xCaraerSubdomain_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, ...args_1], void 0, function* (xCaraerSubdomain, options = {}) {
6871
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6872
+ assertParamExists('settings', 'xCaraerSubdomain', xCaraerSubdomain);
6873
+ const localVarPath = `/api/v2/webpages/v2/public/settings`;
6874
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6875
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6876
+ let baseOptions;
6877
+ if (configuration) {
6878
+ baseOptions = configuration.baseOptions;
6879
+ }
6880
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6881
+ const localVarHeaderParameter = {};
6882
+ const localVarQueryParameter = {};
6883
+ // authentication bearerAuth required
6884
+ // http bearer authentication required
6885
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6886
+ localVarHeaderParameter['Accept'] = 'application/json';
6887
+ if (xCaraerSubdomain != null) {
6888
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6889
+ }
6890
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6891
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6892
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6893
+ return {
6894
+ url: toPathString(localVarUrlObj),
6895
+ options: localVarRequestOptions,
6896
+ };
6897
+ }),
6898
+ /**
6899
+ *
6900
+ * @summary Unlock a password-protected CMS v2 page
6901
+ * @param {string} xCaraerSubdomain
6902
+ * @param {string} uuid
6903
+ * @param {{ [key: string]: string; }} requestBody
6904
+ * @param {string} [environment]
6905
+ * @param {string} [locale]
6906
+ * @param {*} [options] Override http request option.
6907
+ * @throws {RequiredError}
6908
+ */
6909
+ unlock: (xCaraerSubdomain_1, uuid_1, requestBody_1, environment_1, locale_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, uuid_1, requestBody_1, environment_1, locale_1, ...args_1], void 0, function* (xCaraerSubdomain, uuid, requestBody, environment, locale, options = {}) {
6910
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6911
+ assertParamExists('unlock', 'xCaraerSubdomain', xCaraerSubdomain);
6912
+ // verify required parameter 'uuid' is not null or undefined
6913
+ assertParamExists('unlock', 'uuid', uuid);
6914
+ // verify required parameter 'requestBody' is not null or undefined
6915
+ assertParamExists('unlock', 'requestBody', requestBody);
6916
+ const localVarPath = `/api/v2/webpages/v2/public/page/{uuid}/unlock`
6917
+ .replace('{uuid}', encodeURIComponent(String(uuid)));
6918
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6919
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6920
+ let baseOptions;
6921
+ if (configuration) {
6922
+ baseOptions = configuration.baseOptions;
6923
+ }
6924
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6925
+ const localVarHeaderParameter = {};
6926
+ const localVarQueryParameter = {};
6927
+ // authentication bearerAuth required
6928
+ // http bearer authentication required
6929
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6930
+ if (environment !== undefined) {
6931
+ localVarQueryParameter['environment'] = environment;
6932
+ }
6933
+ if (locale !== undefined) {
6934
+ localVarQueryParameter['locale'] = locale;
6935
+ }
6936
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6937
+ localVarHeaderParameter['Accept'] = 'application/json';
6938
+ if (xCaraerSubdomain != null) {
6939
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6940
+ }
6941
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6942
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6943
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6944
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
6945
+ return {
6946
+ url: toPathString(localVarUrlObj),
6947
+ options: localVarRequestOptions,
6948
+ };
6949
+ }),
6950
+ };
6951
+ };
6952
+ /**
6953
+ * CMSV2PublicApi - functional programming interface
6954
+ */
6955
+ export const CMSV2PublicApiFp = function (configuration) {
6956
+ const localVarAxiosParamCreator = CMSV2PublicApiAxiosParamCreator(configuration);
6957
+ return {
6958
+ /**
6959
+ *
6960
+ * @summary Installed app settings with SECRET fields removed
6961
+ * @param {string} xCaraerSubdomain
6962
+ * @param {string} appName
6963
+ * @param {*} [options] Override http request option.
6964
+ * @throws {RequiredError}
6965
+ */
6966
+ appSettings(xCaraerSubdomain, appName, options) {
6967
+ return __awaiter(this, void 0, void 0, function* () {
6968
+ var _a, _b, _c;
6969
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.appSettings(xCaraerSubdomain, appName, options);
6970
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6971
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.appSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6972
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6973
+ });
6974
+ },
6975
+ /**
6976
+ *
6977
+ * @summary Redirect to a company file for the website runtime
6978
+ * @param {string} xCaraerSubdomain
6979
+ * @param {string} key
6980
+ * @param {string} [pageUuid]
6981
+ * @param {string} [environment]
6982
+ * @param {string} [locale]
6983
+ * @param {string} [access]
6984
+ * @param {string} [token]
6985
+ * @param {string} [caraerExpires]
6986
+ * @param {string} [caraerSig]
6987
+ * @param {string} [xCaraerWebpageAccess]
6988
+ * @param {string} [authorization]
6989
+ * @param {*} [options] Override http request option.
6990
+ * @throws {RequiredError}
6991
+ */
6992
+ asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options) {
6993
+ return __awaiter(this, void 0, void 0, function* () {
6994
+ var _a, _b, _c;
6995
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options);
6996
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6997
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.asset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6998
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6999
+ });
7000
+ },
7001
+ /**
7002
+ *
7003
+ * @summary Installed apps and modules for a company\'s website build
7004
+ * @param {string} xCaraerSubdomain
7005
+ * @param {*} [options] Override http request option.
7006
+ * @throws {RequiredError}
7007
+ */
7008
+ buildManifest(xCaraerSubdomain, options) {
7009
+ return __awaiter(this, void 0, void 0, function* () {
7010
+ var _a, _b, _c;
7011
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.buildManifest(xCaraerSubdomain, options);
7012
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7013
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.buildManifest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7014
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7015
+ });
7016
+ },
7017
+ /**
7018
+ *
7019
+ * @summary Navigation menus for the header and footer
7020
+ * @param {string} xCaraerSubdomain
7021
+ * @param {string} [environment]
7022
+ * @param {string} [locale]
7023
+ * @param {*} [options] Override http request option.
7024
+ * @throws {RequiredError}
7025
+ */
7026
+ menus(xCaraerSubdomain, environment, locale, options) {
7027
+ return __awaiter(this, void 0, void 0, function* () {
7028
+ var _a, _b, _c;
7029
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.menus(xCaraerSubdomain, environment, locale, options);
7030
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7031
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.menus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7032
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7033
+ });
7034
+ },
7035
+ /**
7036
+ *
7037
+ * @summary A published page by URL path
7038
+ * @param {string} xCaraerSubdomain
7039
+ * @param {string} path
7040
+ * @param {string} [xCaraerWebpageAccess]
7041
+ * @param {string} [authorization]
7042
+ * @param {string} [environment]
7043
+ * @param {string} [locale]
7044
+ * @param {string} [access]
7045
+ * @param {string} [token]
7046
+ * @param {*} [options] Override http request option.
7047
+ * @throws {RequiredError}
7048
+ */
7049
+ pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options) {
7050
+ return __awaiter(this, void 0, void 0, function* () {
7051
+ var _a, _b, _c;
7052
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options);
7053
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7054
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.pageByPath']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7055
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7056
+ });
7057
+ },
7058
+ /**
7059
+ * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet.
7060
+ * @summary A page by record uuid
7061
+ * @param {string} xCaraerSubdomain
7062
+ * @param {string} uuid
7063
+ * @param {string} [xCaraerWebpageAccess]
7064
+ * @param {string} [authorization]
7065
+ * @param {string} [environment]
7066
+ * @param {string} [locale]
7067
+ * @param {string} [state]
7068
+ * @param {string} [access]
7069
+ * @param {string} [token]
7070
+ * @param {string} [caraerExpires]
7071
+ * @param {string} [caraerSig]
7072
+ * @param {*} [options] Override http request option.
7073
+ * @throws {RequiredError}
7074
+ */
7075
+ pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options) {
7076
+ return __awaiter(this, void 0, void 0, function* () {
7077
+ var _a, _b, _c;
7078
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options);
7079
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7080
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.pageByUuid']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7081
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7082
+ });
7083
+ },
7084
+ /**
7085
+ *
7086
+ * @summary Protection info for a path, without the page document
7087
+ * @param {string} xCaraerSubdomain
7088
+ * @param {string} path
7089
+ * @param {string} [environment]
7090
+ * @param {string} [locale]
7091
+ * @param {*} [options] Override http request option.
7092
+ * @throws {RequiredError}
7093
+ */
7094
+ pageGate(xCaraerSubdomain, path, environment, locale, options) {
7095
+ return __awaiter(this, void 0, void 0, function* () {
7096
+ var _a, _b, _c;
7097
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.pageGate(xCaraerSubdomain, path, environment, locale, options);
7098
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7099
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.pageGate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7100
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7101
+ });
7102
+ },
7103
+ /**
7104
+ *
7105
+ * @summary Published paths per environment, for sitemaps and cache warming
7106
+ * @param {string} xCaraerSubdomain
7107
+ * @param {string} [environment]
7108
+ * @param {string} [locale]
7109
+ * @param {*} [options] Override http request option.
7110
+ * @throws {RequiredError}
7111
+ */
7112
+ paths(xCaraerSubdomain, environment, locale, options) {
7113
+ return __awaiter(this, void 0, void 0, function* () {
7114
+ var _a, _b, _c;
7115
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.paths(xCaraerSubdomain, environment, locale, options);
7116
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7117
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.paths']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7118
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7119
+ });
7120
+ },
7121
+ /**
7122
+ *
7123
+ * @summary Public records visible in an environment
7124
+ * @param {string} xCaraerSubdomain
7125
+ * @param {{ [key: string]: any | null; }} requestBody
7126
+ * @param {string} [environment]
7127
+ * @param {string} [locale]
7128
+ * @param {*} [options] Override http request option.
7129
+ * @throws {RequiredError}
7130
+ */
7131
+ records(xCaraerSubdomain, requestBody, environment, locale, options) {
7132
+ return __awaiter(this, void 0, void 0, function* () {
7133
+ var _a, _b, _c;
7134
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.records(xCaraerSubdomain, requestBody, environment, locale, options);
7135
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7136
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.records']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7137
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7138
+ });
7139
+ },
7140
+ /**
7141
+ *
7142
+ * @summary Company settings, branding and locales
7143
+ * @param {string} xCaraerSubdomain
7144
+ * @param {*} [options] Override http request option.
7145
+ * @throws {RequiredError}
7146
+ */
7147
+ settings(xCaraerSubdomain, options) {
7148
+ return __awaiter(this, void 0, void 0, function* () {
7149
+ var _a, _b, _c;
7150
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.settings(xCaraerSubdomain, options);
7151
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7152
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.settings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7153
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7154
+ });
7155
+ },
7156
+ /**
7157
+ *
7158
+ * @summary Unlock a password-protected CMS v2 page
7159
+ * @param {string} xCaraerSubdomain
7160
+ * @param {string} uuid
7161
+ * @param {{ [key: string]: string; }} requestBody
7162
+ * @param {string} [environment]
7163
+ * @param {string} [locale]
7164
+ * @param {*} [options] Override http request option.
7165
+ * @throws {RequiredError}
7166
+ */
7167
+ unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options) {
7168
+ return __awaiter(this, void 0, void 0, function* () {
7169
+ var _a, _b, _c;
7170
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options);
7171
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7172
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2PublicApi.unlock']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7173
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7174
+ });
7175
+ },
7176
+ };
7177
+ };
7178
+ /**
7179
+ * CMSV2PublicApi - factory interface
7180
+ */
7181
+ export const CMSV2PublicApiFactory = function (configuration, basePath, axios) {
7182
+ const localVarFp = CMSV2PublicApiFp(configuration);
7183
+ return {
7184
+ /**
7185
+ *
7186
+ * @summary Installed app settings with SECRET fields removed
7187
+ * @param {string} xCaraerSubdomain
7188
+ * @param {string} appName
7189
+ * @param {*} [options] Override http request option.
7190
+ * @throws {RequiredError}
7191
+ */
7192
+ appSettings(xCaraerSubdomain, appName, options) {
7193
+ return localVarFp.appSettings(xCaraerSubdomain, appName, options).then((request) => request(axios, basePath));
7194
+ },
7195
+ /**
7196
+ *
7197
+ * @summary Redirect to a company file for the website runtime
7198
+ * @param {string} xCaraerSubdomain
7199
+ * @param {string} key
7200
+ * @param {string} [pageUuid]
7201
+ * @param {string} [environment]
7202
+ * @param {string} [locale]
7203
+ * @param {string} [access]
7204
+ * @param {string} [token]
7205
+ * @param {string} [caraerExpires]
7206
+ * @param {string} [caraerSig]
7207
+ * @param {string} [xCaraerWebpageAccess]
7208
+ * @param {string} [authorization]
7209
+ * @param {*} [options] Override http request option.
7210
+ * @throws {RequiredError}
7211
+ */
7212
+ asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options) {
7213
+ return localVarFp.asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options).then((request) => request(axios, basePath));
7214
+ },
7215
+ /**
7216
+ *
7217
+ * @summary Installed apps and modules for a company\'s website build
7218
+ * @param {string} xCaraerSubdomain
7219
+ * @param {*} [options] Override http request option.
7220
+ * @throws {RequiredError}
7221
+ */
7222
+ buildManifest(xCaraerSubdomain, options) {
7223
+ return localVarFp.buildManifest(xCaraerSubdomain, options).then((request) => request(axios, basePath));
7224
+ },
7225
+ /**
7226
+ *
7227
+ * @summary Navigation menus for the header and footer
7228
+ * @param {string} xCaraerSubdomain
7229
+ * @param {string} [environment]
7230
+ * @param {string} [locale]
7231
+ * @param {*} [options] Override http request option.
7232
+ * @throws {RequiredError}
7233
+ */
7234
+ menus(xCaraerSubdomain, environment, locale, options) {
7235
+ return localVarFp.menus(xCaraerSubdomain, environment, locale, options).then((request) => request(axios, basePath));
7236
+ },
7237
+ /**
7238
+ *
7239
+ * @summary A published page by URL path
7240
+ * @param {string} xCaraerSubdomain
7241
+ * @param {string} path
7242
+ * @param {string} [xCaraerWebpageAccess]
7243
+ * @param {string} [authorization]
7244
+ * @param {string} [environment]
7245
+ * @param {string} [locale]
7246
+ * @param {string} [access]
7247
+ * @param {string} [token]
7248
+ * @param {*} [options] Override http request option.
7249
+ * @throws {RequiredError}
7250
+ */
7251
+ pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options) {
7252
+ return localVarFp.pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options).then((request) => request(axios, basePath));
7253
+ },
7254
+ /**
7255
+ * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet.
7256
+ * @summary A page by record uuid
7257
+ * @param {string} xCaraerSubdomain
7258
+ * @param {string} uuid
7259
+ * @param {string} [xCaraerWebpageAccess]
7260
+ * @param {string} [authorization]
7261
+ * @param {string} [environment]
7262
+ * @param {string} [locale]
7263
+ * @param {string} [state]
7264
+ * @param {string} [access]
7265
+ * @param {string} [token]
7266
+ * @param {string} [caraerExpires]
7267
+ * @param {string} [caraerSig]
7268
+ * @param {*} [options] Override http request option.
7269
+ * @throws {RequiredError}
7270
+ */
7271
+ pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options) {
7272
+ return localVarFp.pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options).then((request) => request(axios, basePath));
7273
+ },
7274
+ /**
7275
+ *
7276
+ * @summary Protection info for a path, without the page document
7277
+ * @param {string} xCaraerSubdomain
7278
+ * @param {string} path
7279
+ * @param {string} [environment]
7280
+ * @param {string} [locale]
7281
+ * @param {*} [options] Override http request option.
7282
+ * @throws {RequiredError}
7283
+ */
7284
+ pageGate(xCaraerSubdomain, path, environment, locale, options) {
7285
+ return localVarFp.pageGate(xCaraerSubdomain, path, environment, locale, options).then((request) => request(axios, basePath));
7286
+ },
7287
+ /**
7288
+ *
7289
+ * @summary Published paths per environment, for sitemaps and cache warming
7290
+ * @param {string} xCaraerSubdomain
7291
+ * @param {string} [environment]
7292
+ * @param {string} [locale]
7293
+ * @param {*} [options] Override http request option.
7294
+ * @throws {RequiredError}
7295
+ */
7296
+ paths(xCaraerSubdomain, environment, locale, options) {
7297
+ return localVarFp.paths(xCaraerSubdomain, environment, locale, options).then((request) => request(axios, basePath));
7298
+ },
7299
+ /**
7300
+ *
7301
+ * @summary Public records visible in an environment
7302
+ * @param {string} xCaraerSubdomain
7303
+ * @param {{ [key: string]: any | null; }} requestBody
7304
+ * @param {string} [environment]
7305
+ * @param {string} [locale]
7306
+ * @param {*} [options] Override http request option.
7307
+ * @throws {RequiredError}
7308
+ */
7309
+ records(xCaraerSubdomain, requestBody, environment, locale, options) {
7310
+ return localVarFp.records(xCaraerSubdomain, requestBody, environment, locale, options).then((request) => request(axios, basePath));
7311
+ },
7312
+ /**
7313
+ *
7314
+ * @summary Company settings, branding and locales
7315
+ * @param {string} xCaraerSubdomain
7316
+ * @param {*} [options] Override http request option.
7317
+ * @throws {RequiredError}
7318
+ */
7319
+ settings(xCaraerSubdomain, options) {
7320
+ return localVarFp.settings(xCaraerSubdomain, options).then((request) => request(axios, basePath));
7321
+ },
7322
+ /**
7323
+ *
7324
+ * @summary Unlock a password-protected CMS v2 page
7325
+ * @param {string} xCaraerSubdomain
7326
+ * @param {string} uuid
7327
+ * @param {{ [key: string]: string; }} requestBody
7328
+ * @param {string} [environment]
7329
+ * @param {string} [locale]
7330
+ * @param {*} [options] Override http request option.
7331
+ * @throws {RequiredError}
7332
+ */
7333
+ unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options) {
7334
+ return localVarFp.unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options).then((request) => request(axios, basePath));
7335
+ },
7336
+ };
7337
+ };
7338
+ /**
7339
+ * CMSV2PublicApi - object-oriented interface
7340
+ */
7341
+ export class CMSV2PublicApi extends BaseAPI {
7342
+ /**
7343
+ *
7344
+ * @summary Installed app settings with SECRET fields removed
7345
+ * @param {string} xCaraerSubdomain
7346
+ * @param {string} appName
7347
+ * @param {*} [options] Override http request option.
7348
+ * @throws {RequiredError}
7349
+ */
7350
+ appSettings(xCaraerSubdomain, appName, options) {
7351
+ return CMSV2PublicApiFp(this.configuration).appSettings(xCaraerSubdomain, appName, options).then((request) => request(this.axios, this.basePath));
7352
+ }
7353
+ /**
7354
+ *
7355
+ * @summary Redirect to a company file for the website runtime
7356
+ * @param {string} xCaraerSubdomain
7357
+ * @param {string} key
7358
+ * @param {string} [pageUuid]
7359
+ * @param {string} [environment]
7360
+ * @param {string} [locale]
7361
+ * @param {string} [access]
7362
+ * @param {string} [token]
7363
+ * @param {string} [caraerExpires]
7364
+ * @param {string} [caraerSig]
7365
+ * @param {string} [xCaraerWebpageAccess]
7366
+ * @param {string} [authorization]
7367
+ * @param {*} [options] Override http request option.
7368
+ * @throws {RequiredError}
7369
+ */
7370
+ asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options) {
7371
+ return CMSV2PublicApiFp(this.configuration).asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options).then((request) => request(this.axios, this.basePath));
7372
+ }
7373
+ /**
7374
+ *
7375
+ * @summary Installed apps and modules for a company\'s website build
7376
+ * @param {string} xCaraerSubdomain
7377
+ * @param {*} [options] Override http request option.
7378
+ * @throws {RequiredError}
7379
+ */
7380
+ buildManifest(xCaraerSubdomain, options) {
7381
+ return CMSV2PublicApiFp(this.configuration).buildManifest(xCaraerSubdomain, options).then((request) => request(this.axios, this.basePath));
7382
+ }
7383
+ /**
7384
+ *
7385
+ * @summary Navigation menus for the header and footer
7386
+ * @param {string} xCaraerSubdomain
7387
+ * @param {string} [environment]
7388
+ * @param {string} [locale]
7389
+ * @param {*} [options] Override http request option.
7390
+ * @throws {RequiredError}
7391
+ */
7392
+ menus(xCaraerSubdomain, environment, locale, options) {
7393
+ return CMSV2PublicApiFp(this.configuration).menus(xCaraerSubdomain, environment, locale, options).then((request) => request(this.axios, this.basePath));
7394
+ }
7395
+ /**
7396
+ *
7397
+ * @summary A published page by URL path
7398
+ * @param {string} xCaraerSubdomain
7399
+ * @param {string} path
7400
+ * @param {string} [xCaraerWebpageAccess]
7401
+ * @param {string} [authorization]
7402
+ * @param {string} [environment]
7403
+ * @param {string} [locale]
7404
+ * @param {string} [access]
7405
+ * @param {string} [token]
7406
+ * @param {*} [options] Override http request option.
7407
+ * @throws {RequiredError}
7408
+ */
7409
+ pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options) {
7410
+ return CMSV2PublicApiFp(this.configuration).pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options).then((request) => request(this.axios, this.basePath));
7411
+ }
7412
+ /**
7413
+ * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet.
7414
+ * @summary A page by record uuid
7415
+ * @param {string} xCaraerSubdomain
7416
+ * @param {string} uuid
7417
+ * @param {string} [xCaraerWebpageAccess]
7418
+ * @param {string} [authorization]
7419
+ * @param {string} [environment]
7420
+ * @param {string} [locale]
7421
+ * @param {string} [state]
7422
+ * @param {string} [access]
7423
+ * @param {string} [token]
7424
+ * @param {string} [caraerExpires]
7425
+ * @param {string} [caraerSig]
7426
+ * @param {*} [options] Override http request option.
7427
+ * @throws {RequiredError}
7428
+ */
7429
+ pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options) {
7430
+ return CMSV2PublicApiFp(this.configuration).pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options).then((request) => request(this.axios, this.basePath));
7431
+ }
7432
+ /**
7433
+ *
7434
+ * @summary Protection info for a path, without the page document
7435
+ * @param {string} xCaraerSubdomain
7436
+ * @param {string} path
7437
+ * @param {string} [environment]
7438
+ * @param {string} [locale]
7439
+ * @param {*} [options] Override http request option.
7440
+ * @throws {RequiredError}
7441
+ */
7442
+ pageGate(xCaraerSubdomain, path, environment, locale, options) {
7443
+ return CMSV2PublicApiFp(this.configuration).pageGate(xCaraerSubdomain, path, environment, locale, options).then((request) => request(this.axios, this.basePath));
7444
+ }
7445
+ /**
7446
+ *
7447
+ * @summary Published paths per environment, for sitemaps and cache warming
7448
+ * @param {string} xCaraerSubdomain
7449
+ * @param {string} [environment]
7450
+ * @param {string} [locale]
7451
+ * @param {*} [options] Override http request option.
7452
+ * @throws {RequiredError}
7453
+ */
7454
+ paths(xCaraerSubdomain, environment, locale, options) {
7455
+ return CMSV2PublicApiFp(this.configuration).paths(xCaraerSubdomain, environment, locale, options).then((request) => request(this.axios, this.basePath));
7456
+ }
7457
+ /**
7458
+ *
7459
+ * @summary Public records visible in an environment
7460
+ * @param {string} xCaraerSubdomain
7461
+ * @param {{ [key: string]: any | null; }} requestBody
7462
+ * @param {string} [environment]
7463
+ * @param {string} [locale]
7464
+ * @param {*} [options] Override http request option.
7465
+ * @throws {RequiredError}
7466
+ */
7467
+ records(xCaraerSubdomain, requestBody, environment, locale, options) {
7468
+ return CMSV2PublicApiFp(this.configuration).records(xCaraerSubdomain, requestBody, environment, locale, options).then((request) => request(this.axios, this.basePath));
7469
+ }
7470
+ /**
7471
+ *
7472
+ * @summary Company settings, branding and locales
7473
+ * @param {string} xCaraerSubdomain
7474
+ * @param {*} [options] Override http request option.
7475
+ * @throws {RequiredError}
7476
+ */
7477
+ settings(xCaraerSubdomain, options) {
7478
+ return CMSV2PublicApiFp(this.configuration).settings(xCaraerSubdomain, options).then((request) => request(this.axios, this.basePath));
7479
+ }
7480
+ /**
7481
+ *
7482
+ * @summary Unlock a password-protected CMS v2 page
7483
+ * @param {string} xCaraerSubdomain
7484
+ * @param {string} uuid
7485
+ * @param {{ [key: string]: string; }} requestBody
7486
+ * @param {string} [environment]
7487
+ * @param {string} [locale]
7488
+ * @param {*} [options] Override http request option.
7489
+ * @throws {RequiredError}
7490
+ */
7491
+ unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options) {
7492
+ return CMSV2PublicApiFp(this.configuration).unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options).then((request) => request(this.axios, this.basePath));
7493
+ }
7494
+ }
7495
+ /**
7496
+ * CMSV2TransferApi - axios parameter creator
7497
+ */
7498
+ export const CMSV2TransferApiAxiosParamCreator = function (configuration) {
7499
+ return {
7500
+ /**
7501
+ *
7502
+ * @summary Attach a manually created caraer-web project
7503
+ * @param {string} companyUuid
7504
+ * @param {{ [key: string]: string; }} requestBody
7505
+ * @param {*} [options] Override http request option.
7506
+ * @throws {RequiredError}
7507
+ */
7508
+ attach: (companyUuid_1, requestBody_1, ...args_1) => __awaiter(this, [companyUuid_1, requestBody_1, ...args_1], void 0, function* (companyUuid, requestBody, options = {}) {
7509
+ // verify required parameter 'companyUuid' is not null or undefined
7510
+ assertParamExists('attach', 'companyUuid', companyUuid);
7511
+ // verify required parameter 'requestBody' is not null or undefined
7512
+ assertParamExists('attach', 'requestBody', requestBody);
7513
+ const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer/attach`
7514
+ .replace('{companyUuid}', encodeURIComponent(String(companyUuid)));
7515
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7516
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7517
+ let baseOptions;
7518
+ if (configuration) {
7519
+ baseOptions = configuration.baseOptions;
7520
+ }
7521
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7522
+ const localVarHeaderParameter = {};
7523
+ const localVarQueryParameter = {};
7524
+ // authentication bearerAuth required
7525
+ // http bearer authentication required
7526
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7527
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7528
+ localVarHeaderParameter['Accept'] = 'application/json';
7529
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7530
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7531
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7532
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
7533
+ return {
7534
+ url: toPathString(localVarUrlObj),
7535
+ options: localVarRequestOptions,
7536
+ };
7537
+ }),
7538
+ /**
7539
+ *
7540
+ * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname
7541
+ * @param {string} companyUuid
7542
+ * @param {*} [options] Override http request option.
7543
+ * @throws {RequiredError}
7544
+ */
7545
+ cutover: (companyUuid_1, ...args_1) => __awaiter(this, [companyUuid_1, ...args_1], void 0, function* (companyUuid, options = {}) {
7546
+ // verify required parameter 'companyUuid' is not null or undefined
7547
+ assertParamExists('cutover', 'companyUuid', companyUuid);
7548
+ const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer/cutover`
7549
+ .replace('{companyUuid}', encodeURIComponent(String(companyUuid)));
7550
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7551
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7552
+ let baseOptions;
7553
+ if (configuration) {
7554
+ baseOptions = configuration.baseOptions;
7555
+ }
7556
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7557
+ const localVarHeaderParameter = {};
7558
+ const localVarQueryParameter = {};
7559
+ // authentication bearerAuth required
7560
+ // http bearer authentication required
7561
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7562
+ localVarHeaderParameter['Accept'] = 'application/json';
7563
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7565
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7566
+ return {
7567
+ url: toPathString(localVarUrlObj),
7568
+ options: localVarRequestOptions,
7569
+ };
7570
+ }),
7571
+ /**
7572
+ *
7573
+ * @summary Restore the live hostname to the stored v1 project
7574
+ * @param {string} companyUuid
7575
+ * @param {*} [options] Override http request option.
7576
+ * @throws {RequiredError}
7577
+ */
7578
+ rollback: (companyUuid_1, ...args_1) => __awaiter(this, [companyUuid_1, ...args_1], void 0, function* (companyUuid, options = {}) {
7579
+ // verify required parameter 'companyUuid' is not null or undefined
7580
+ assertParamExists('rollback', 'companyUuid', companyUuid);
7581
+ const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer/rollback`
7582
+ .replace('{companyUuid}', encodeURIComponent(String(companyUuid)));
7583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7584
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7585
+ let baseOptions;
7586
+ if (configuration) {
7587
+ baseOptions = configuration.baseOptions;
7588
+ }
7589
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7590
+ const localVarHeaderParameter = {};
7591
+ const localVarQueryParameter = {};
7592
+ // authentication bearerAuth required
7593
+ // http bearer authentication required
7594
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7595
+ localVarHeaderParameter['Accept'] = 'application/json';
7596
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7597
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7598
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7599
+ return {
7600
+ url: toPathString(localVarUrlObj),
7601
+ options: localVarRequestOptions,
7602
+ };
7603
+ }),
7604
+ /**
7605
+ *
7606
+ * @summary Transfer status for one company
7607
+ * @param {string} companyUuid
7608
+ * @param {*} [options] Override http request option.
7609
+ * @throws {RequiredError}
7610
+ */
7611
+ status: (companyUuid_1, ...args_1) => __awaiter(this, [companyUuid_1, ...args_1], void 0, function* (companyUuid, options = {}) {
7612
+ // verify required parameter 'companyUuid' is not null or undefined
7613
+ assertParamExists('status', 'companyUuid', companyUuid);
7614
+ const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer`
7615
+ .replace('{companyUuid}', encodeURIComponent(String(companyUuid)));
7616
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7618
+ let baseOptions;
7619
+ if (configuration) {
7620
+ baseOptions = configuration.baseOptions;
7621
+ }
7622
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7623
+ const localVarHeaderParameter = {};
7624
+ const localVarQueryParameter = {};
7625
+ // authentication bearerAuth required
7626
+ // http bearer authentication required
7627
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7628
+ localVarHeaderParameter['Accept'] = 'application/json';
7629
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7631
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7632
+ return {
7633
+ url: toPathString(localVarUrlObj),
7634
+ options: localVarRequestOptions,
7635
+ };
7636
+ }),
7637
+ };
7638
+ };
7639
+ /**
7640
+ * CMSV2TransferApi - functional programming interface
7641
+ */
7642
+ export const CMSV2TransferApiFp = function (configuration) {
7643
+ const localVarAxiosParamCreator = CMSV2TransferApiAxiosParamCreator(configuration);
7644
+ return {
7645
+ /**
7646
+ *
7647
+ * @summary Attach a manually created caraer-web project
7648
+ * @param {string} companyUuid
7649
+ * @param {{ [key: string]: string; }} requestBody
7650
+ * @param {*} [options] Override http request option.
7651
+ * @throws {RequiredError}
7652
+ */
7653
+ attach(companyUuid, requestBody, options) {
7654
+ return __awaiter(this, void 0, void 0, function* () {
7655
+ var _a, _b, _c;
7656
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.attach(companyUuid, requestBody, options);
7657
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7658
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2TransferApi.attach']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7659
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7660
+ });
7661
+ },
7662
+ /**
7663
+ *
7664
+ * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname
7665
+ * @param {string} companyUuid
7666
+ * @param {*} [options] Override http request option.
7667
+ * @throws {RequiredError}
7668
+ */
7669
+ cutover(companyUuid, options) {
7670
+ return __awaiter(this, void 0, void 0, function* () {
7671
+ var _a, _b, _c;
7672
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cutover(companyUuid, options);
7673
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7674
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2TransferApi.cutover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7675
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7676
+ });
7677
+ },
7678
+ /**
7679
+ *
7680
+ * @summary Restore the live hostname to the stored v1 project
7681
+ * @param {string} companyUuid
7682
+ * @param {*} [options] Override http request option.
7683
+ * @throws {RequiredError}
7684
+ */
7685
+ rollback(companyUuid, options) {
7686
+ return __awaiter(this, void 0, void 0, function* () {
7687
+ var _a, _b, _c;
7688
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rollback(companyUuid, options);
7689
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7690
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2TransferApi.rollback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7691
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7692
+ });
7693
+ },
7694
+ /**
7695
+ *
7696
+ * @summary Transfer status for one company
7697
+ * @param {string} companyUuid
7698
+ * @param {*} [options] Override http request option.
7699
+ * @throws {RequiredError}
7700
+ */
7701
+ status(companyUuid, options) {
7702
+ return __awaiter(this, void 0, void 0, function* () {
7703
+ var _a, _b, _c;
7704
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.status(companyUuid, options);
7705
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7706
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CMSV2TransferApi.status']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7707
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7708
+ });
7709
+ },
7710
+ };
7711
+ };
7712
+ /**
7713
+ * CMSV2TransferApi - factory interface
7714
+ */
7715
+ export const CMSV2TransferApiFactory = function (configuration, basePath, axios) {
7716
+ const localVarFp = CMSV2TransferApiFp(configuration);
7717
+ return {
7718
+ /**
7719
+ *
7720
+ * @summary Attach a manually created caraer-web project
7721
+ * @param {string} companyUuid
7722
+ * @param {{ [key: string]: string; }} requestBody
7723
+ * @param {*} [options] Override http request option.
7724
+ * @throws {RequiredError}
7725
+ */
7726
+ attach(companyUuid, requestBody, options) {
7727
+ return localVarFp.attach(companyUuid, requestBody, options).then((request) => request(axios, basePath));
7728
+ },
7729
+ /**
7730
+ *
7731
+ * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname
7732
+ * @param {string} companyUuid
7733
+ * @param {*} [options] Override http request option.
7734
+ * @throws {RequiredError}
7735
+ */
7736
+ cutover(companyUuid, options) {
7737
+ return localVarFp.cutover(companyUuid, options).then((request) => request(axios, basePath));
7738
+ },
7739
+ /**
7740
+ *
7741
+ * @summary Restore the live hostname to the stored v1 project
7742
+ * @param {string} companyUuid
7743
+ * @param {*} [options] Override http request option.
7744
+ * @throws {RequiredError}
7745
+ */
7746
+ rollback(companyUuid, options) {
7747
+ return localVarFp.rollback(companyUuid, options).then((request) => request(axios, basePath));
7748
+ },
7749
+ /**
7750
+ *
7751
+ * @summary Transfer status for one company
7752
+ * @param {string} companyUuid
7753
+ * @param {*} [options] Override http request option.
7754
+ * @throws {RequiredError}
7755
+ */
7756
+ status(companyUuid, options) {
7757
+ return localVarFp.status(companyUuid, options).then((request) => request(axios, basePath));
7758
+ },
7759
+ };
7760
+ };
7761
+ /**
7762
+ * CMSV2TransferApi - object-oriented interface
7763
+ */
7764
+ export class CMSV2TransferApi extends BaseAPI {
7765
+ /**
7766
+ *
7767
+ * @summary Attach a manually created caraer-web project
7768
+ * @param {string} companyUuid
7769
+ * @param {{ [key: string]: string; }} requestBody
7770
+ * @param {*} [options] Override http request option.
7771
+ * @throws {RequiredError}
7772
+ */
7773
+ attach(companyUuid, requestBody, options) {
7774
+ return CMSV2TransferApiFp(this.configuration).attach(companyUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
7775
+ }
7776
+ /**
7777
+ *
7778
+ * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname
7779
+ * @param {string} companyUuid
7780
+ * @param {*} [options] Override http request option.
7781
+ * @throws {RequiredError}
7782
+ */
7783
+ cutover(companyUuid, options) {
7784
+ return CMSV2TransferApiFp(this.configuration).cutover(companyUuid, options).then((request) => request(this.axios, this.basePath));
7785
+ }
7786
+ /**
7787
+ *
7788
+ * @summary Restore the live hostname to the stored v1 project
7789
+ * @param {string} companyUuid
7790
+ * @param {*} [options] Override http request option.
7791
+ * @throws {RequiredError}
7792
+ */
7793
+ rollback(companyUuid, options) {
7794
+ return CMSV2TransferApiFp(this.configuration).rollback(companyUuid, options).then((request) => request(this.axios, this.basePath));
7795
+ }
7796
+ /**
7797
+ *
7798
+ * @summary Transfer status for one company
7799
+ * @param {string} companyUuid
7800
+ * @param {*} [options] Override http request option.
7801
+ * @throws {RequiredError}
7802
+ */
7803
+ status(companyUuid, options) {
7804
+ return CMSV2TransferApiFp(this.configuration).status(companyUuid, options).then((request) => request(this.axios, this.basePath));
7805
+ }
7806
+ }
4191
7807
  /**
4192
7808
  * CalendarsApi - axios parameter creator
4193
7809
  */
@@ -4229,9 +7845,9 @@ export const CalendarsApiAxiosParamCreator = function (configuration) {
4229
7845
  * @param {*} [options] Override http request option.
4230
7846
  * @throws {RequiredError}
4231
7847
  */
4232
- create3: (calendarCreateRequest_1, ...args_1) => __awaiter(this, [calendarCreateRequest_1, ...args_1], void 0, function* (calendarCreateRequest, options = {}) {
7848
+ create4: (calendarCreateRequest_1, ...args_1) => __awaiter(this, [calendarCreateRequest_1, ...args_1], void 0, function* (calendarCreateRequest, options = {}) {
4233
7849
  // verify required parameter 'calendarCreateRequest' is not null or undefined
4234
- assertParamExists('create3', 'calendarCreateRequest', calendarCreateRequest);
7850
+ assertParamExists('create4', 'calendarCreateRequest', calendarCreateRequest);
4235
7851
  const localVarPath = `/api/v2/calendars`;
4236
7852
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4237
7853
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4262,7 +7878,7 @@ export const CalendarsApiAxiosParamCreator = function (configuration) {
4262
7878
  * @param {*} [options] Override http request option.
4263
7879
  * @throws {RequiredError}
4264
7880
  */
4265
- list1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7881
+ list3: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4266
7882
  const localVarPath = `/api/v2/calendars`;
4267
7883
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4268
7884
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4344,12 +7960,12 @@ export const CalendarsApiFp = function (configuration) {
4344
7960
  * @param {*} [options] Override http request option.
4345
7961
  * @throws {RequiredError}
4346
7962
  */
4347
- create3(calendarCreateRequest, options) {
7963
+ create4(calendarCreateRequest, options) {
4348
7964
  return __awaiter(this, void 0, void 0, function* () {
4349
7965
  var _a, _b, _c;
4350
- const localVarAxiosArgs = yield localVarAxiosParamCreator.create3(calendarCreateRequest, options);
7966
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create4(calendarCreateRequest, options);
4351
7967
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4352
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CalendarsApi.create3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7968
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CalendarsApi.create4']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4353
7969
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4354
7970
  });
4355
7971
  },
@@ -4359,12 +7975,12 @@ export const CalendarsApiFp = function (configuration) {
4359
7975
  * @param {*} [options] Override http request option.
4360
7976
  * @throws {RequiredError}
4361
7977
  */
4362
- list1(options) {
7978
+ list3(options) {
4363
7979
  return __awaiter(this, void 0, void 0, function* () {
4364
7980
  var _a, _b, _c;
4365
- const localVarAxiosArgs = yield localVarAxiosParamCreator.list1(options);
7981
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.list3(options);
4366
7982
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4367
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CalendarsApi.list1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7983
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CalendarsApi.list3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4368
7984
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4369
7985
  });
4370
7986
  },
@@ -4407,8 +8023,8 @@ export const CalendarsApiFactory = function (configuration, basePath, axios) {
4407
8023
  * @param {*} [options] Override http request option.
4408
8024
  * @throws {RequiredError}
4409
8025
  */
4410
- create3(calendarCreateRequest, options) {
4411
- return localVarFp.create3(calendarCreateRequest, options).then((request) => request(axios, basePath));
8026
+ create4(calendarCreateRequest, options) {
8027
+ return localVarFp.create4(calendarCreateRequest, options).then((request) => request(axios, basePath));
4412
8028
  },
4413
8029
  /**
4414
8030
  *
@@ -4416,8 +8032,8 @@ export const CalendarsApiFactory = function (configuration, basePath, axios) {
4416
8032
  * @param {*} [options] Override http request option.
4417
8033
  * @throws {RequiredError}
4418
8034
  */
4419
- list1(options) {
4420
- return localVarFp.list1(options).then((request) => request(axios, basePath));
8035
+ list3(options) {
8036
+ return localVarFp.list3(options).then((request) => request(axios, basePath));
4421
8037
  },
4422
8038
  /**
4423
8039
  *
@@ -4450,8 +8066,8 @@ export class CalendarsApi extends BaseAPI {
4450
8066
  * @param {*} [options] Override http request option.
4451
8067
  * @throws {RequiredError}
4452
8068
  */
4453
- create3(calendarCreateRequest, options) {
4454
- return CalendarsApiFp(this.configuration).create3(calendarCreateRequest, options).then((request) => request(this.axios, this.basePath));
8069
+ create4(calendarCreateRequest, options) {
8070
+ return CalendarsApiFp(this.configuration).create4(calendarCreateRequest, options).then((request) => request(this.axios, this.basePath));
4455
8071
  }
4456
8072
  /**
4457
8073
  *
@@ -4459,8 +8075,8 @@ export class CalendarsApi extends BaseAPI {
4459
8075
  * @param {*} [options] Override http request option.
4460
8076
  * @throws {RequiredError}
4461
8077
  */
4462
- list1(options) {
4463
- return CalendarsApiFp(this.configuration).list1(options).then((request) => request(this.axios, this.basePath));
8078
+ list3(options) {
8079
+ return CalendarsApiFp(this.configuration).list3(options).then((request) => request(this.axios, this.basePath));
4464
8080
  }
4465
8081
  /**
4466
8082
  *
@@ -5978,7 +9594,7 @@ export const DeveloperSandboxesApiAxiosParamCreator = function (configuration) {
5978
9594
  * @param {*} [options] Override http request option.
5979
9595
  * @throws {RequiredError}
5980
9596
  */
5981
- list: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
9597
+ list1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5982
9598
  const localVarPath = `/api/v2/developer-sandboxes`;
5983
9599
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5984
9600
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6064,12 +9680,12 @@ export const DeveloperSandboxesApiFp = function (configuration) {
6064
9680
  * @param {*} [options] Override http request option.
6065
9681
  * @throws {RequiredError}
6066
9682
  */
6067
- list(options) {
9683
+ list1(options) {
6068
9684
  return __awaiter(this, void 0, void 0, function* () {
6069
9685
  var _a, _b, _c;
6070
- const localVarAxiosArgs = yield localVarAxiosParamCreator.list(options);
9686
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.list1(options);
6071
9687
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6072
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeveloperSandboxesApi.list']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9688
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeveloperSandboxesApi.list1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6073
9689
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6074
9690
  });
6075
9691
  },
@@ -6113,8 +9729,8 @@ export const DeveloperSandboxesApiFactory = function (configuration, basePath, a
6113
9729
  * @param {*} [options] Override http request option.
6114
9730
  * @throws {RequiredError}
6115
9731
  */
6116
- list(options) {
6117
- return localVarFp.list(options).then((request) => request(axios, basePath));
9732
+ list1(options) {
9733
+ return localVarFp.list1(options).then((request) => request(axios, basePath));
6118
9734
  },
6119
9735
  /**
6120
9736
  *
@@ -6148,8 +9764,8 @@ export class DeveloperSandboxesApi extends BaseAPI {
6148
9764
  * @param {*} [options] Override http request option.
6149
9765
  * @throws {RequiredError}
6150
9766
  */
6151
- list(options) {
6152
- return DeveloperSandboxesApiFp(this.configuration).list(options).then((request) => request(this.axios, this.basePath));
9767
+ list1(options) {
9768
+ return DeveloperSandboxesApiFp(this.configuration).list1(options).then((request) => request(this.axios, this.basePath));
6153
9769
  }
6154
9770
  /**
6155
9771
  *
@@ -6325,14 +9941,47 @@ export const FileManagementApiAxiosParamCreator = function (configuration) {
6325
9941
  // authentication bearerAuth required
6326
9942
  // http bearer authentication required
6327
9943
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6328
- if (key !== undefined) {
6329
- localVarQueryParameter['key'] = key;
6330
- }
6331
- if (expireAfter !== undefined) {
6332
- localVarQueryParameter['expireAfter'] = expireAfter;
6333
- }
6334
- if (download !== undefined) {
6335
- localVarQueryParameter['download'] = download;
9944
+ if (key !== undefined) {
9945
+ localVarQueryParameter['key'] = key;
9946
+ }
9947
+ if (expireAfter !== undefined) {
9948
+ localVarQueryParameter['expireAfter'] = expireAfter;
9949
+ }
9950
+ if (download !== undefined) {
9951
+ localVarQueryParameter['download'] = download;
9952
+ }
9953
+ localVarHeaderParameter['Accept'] = 'application/json';
9954
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9955
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9956
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9957
+ return {
9958
+ url: toPathString(localVarUrlObj),
9959
+ options: localVarRequestOptions,
9960
+ };
9961
+ }),
9962
+ /**
9963
+ * Lists all files stored in the system or, if a record UUID is provided, lists the files related to that record.
9964
+ * @summary List files
9965
+ * @param {string} [recordUuid] An optional record UUID to filter files.
9966
+ * @param {*} [options] Override http request option.
9967
+ * @throws {RequiredError}
9968
+ */
9969
+ listFiles: (recordUuid_1, ...args_1) => __awaiter(this, [recordUuid_1, ...args_1], void 0, function* (recordUuid, options = {}) {
9970
+ const localVarPath = `/api/v2/files/list`;
9971
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9972
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9973
+ let baseOptions;
9974
+ if (configuration) {
9975
+ baseOptions = configuration.baseOptions;
9976
+ }
9977
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9978
+ const localVarHeaderParameter = {};
9979
+ const localVarQueryParameter = {};
9980
+ // authentication bearerAuth required
9981
+ // http bearer authentication required
9982
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9983
+ if (recordUuid !== undefined) {
9984
+ localVarQueryParameter['recordUuid'] = recordUuid;
6336
9985
  }
6337
9986
  localVarHeaderParameter['Accept'] = 'application/json';
6338
9987
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -6344,14 +9993,14 @@ export const FileManagementApiAxiosParamCreator = function (configuration) {
6344
9993
  };
6345
9994
  }),
6346
9995
  /**
6347
- * Lists all files stored in the system or, if a record UUID is provided, lists the files related to that record.
6348
- * @summary List files
6349
- * @param {string} [recordUuid] An optional record UUID to filter files.
9996
+ *
9997
+ * @summary List company files with metadata for the media library
9998
+ * @param {string} [recordUuid]
6350
9999
  * @param {*} [options] Override http request option.
6351
10000
  * @throws {RequiredError}
6352
10001
  */
6353
- listFiles: (recordUuid_1, ...args_1) => __awaiter(this, [recordUuid_1, ...args_1], void 0, function* (recordUuid, options = {}) {
6354
- const localVarPath = `/api/v2/files/list`;
10002
+ listLibrary: (recordUuid_1, ...args_1) => __awaiter(this, [recordUuid_1, ...args_1], void 0, function* (recordUuid, options = {}) {
10003
+ const localVarPath = `/api/v2/files/library`;
6355
10004
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6356
10005
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6357
10006
  let baseOptions;
@@ -6467,6 +10116,22 @@ export const FileManagementApiFp = function (configuration) {
6467
10116
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6468
10117
  });
6469
10118
  },
10119
+ /**
10120
+ *
10121
+ * @summary List company files with metadata for the media library
10122
+ * @param {string} [recordUuid]
10123
+ * @param {*} [options] Override http request option.
10124
+ * @throws {RequiredError}
10125
+ */
10126
+ listLibrary(recordUuid, options) {
10127
+ return __awaiter(this, void 0, void 0, function* () {
10128
+ var _a, _b, _c;
10129
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listLibrary(recordUuid, options);
10130
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10131
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FileManagementApi.listLibrary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10132
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10133
+ });
10134
+ },
6470
10135
  /**
6471
10136
  * Uploads multiple files to an S3-compatible storage and returns their unique keys. The request must contain one or more files in multipart/form-data format.
6472
10137
  * @summary Upload files
@@ -6523,6 +10188,16 @@ export const FileManagementApiFactory = function (configuration, basePath, axios
6523
10188
  listFiles(recordUuid, options) {
6524
10189
  return localVarFp.listFiles(recordUuid, options).then((request) => request(axios, basePath));
6525
10190
  },
10191
+ /**
10192
+ *
10193
+ * @summary List company files with metadata for the media library
10194
+ * @param {string} [recordUuid]
10195
+ * @param {*} [options] Override http request option.
10196
+ * @throws {RequiredError}
10197
+ */
10198
+ listLibrary(recordUuid, options) {
10199
+ return localVarFp.listLibrary(recordUuid, options).then((request) => request(axios, basePath));
10200
+ },
6526
10201
  /**
6527
10202
  * Uploads multiple files to an S3-compatible storage and returns their unique keys. The request must contain one or more files in multipart/form-data format.
6528
10203
  * @summary Upload files
@@ -6571,6 +10246,16 @@ export class FileManagementApi extends BaseAPI {
6571
10246
  listFiles(recordUuid, options) {
6572
10247
  return FileManagementApiFp(this.configuration).listFiles(recordUuid, options).then((request) => request(this.axios, this.basePath));
6573
10248
  }
10249
+ /**
10250
+ *
10251
+ * @summary List company files with metadata for the media library
10252
+ * @param {string} [recordUuid]
10253
+ * @param {*} [options] Override http request option.
10254
+ * @throws {RequiredError}
10255
+ */
10256
+ listLibrary(recordUuid, options) {
10257
+ return FileManagementApiFp(this.configuration).listLibrary(recordUuid, options).then((request) => request(this.axios, this.basePath));
10258
+ }
6574
10259
  /**
6575
10260
  * Uploads multiple files to an S3-compatible storage and returns their unique keys. The request must contain one or more files in multipart/form-data format.
6576
10261
  * @summary Upload files
@@ -14874,11 +18559,11 @@ export const ServerlessFunctionsApiAxiosParamCreator = function (configuration)
14874
18559
  * @param {*} [options] Override http request option.
14875
18560
  * @throws {RequiredError}
14876
18561
  */
14877
- create4: (appUuid_1, serverlessFunctionDTO_1, ...args_1) => __awaiter(this, [appUuid_1, serverlessFunctionDTO_1, ...args_1], void 0, function* (appUuid, serverlessFunctionDTO, options = {}) {
18562
+ create5: (appUuid_1, serverlessFunctionDTO_1, ...args_1) => __awaiter(this, [appUuid_1, serverlessFunctionDTO_1, ...args_1], void 0, function* (appUuid, serverlessFunctionDTO, options = {}) {
14878
18563
  // verify required parameter 'appUuid' is not null or undefined
14879
- assertParamExists('create4', 'appUuid', appUuid);
18564
+ assertParamExists('create5', 'appUuid', appUuid);
14880
18565
  // verify required parameter 'serverlessFunctionDTO' is not null or undefined
14881
- assertParamExists('create4', 'serverlessFunctionDTO', serverlessFunctionDTO);
18566
+ assertParamExists('create5', 'serverlessFunctionDTO', serverlessFunctionDTO);
14882
18567
  const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions`
14883
18568
  .replace('{appUuid}', encodeURIComponent(String(appUuid)));
14884
18569
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -14912,11 +18597,11 @@ export const ServerlessFunctionsApiAxiosParamCreator = function (configuration)
14912
18597
  * @param {*} [options] Override http request option.
14913
18598
  * @throws {RequiredError}
14914
18599
  */
14915
- delete1: (appUuid_1, uuid_1, ...args_1) => __awaiter(this, [appUuid_1, uuid_1, ...args_1], void 0, function* (appUuid, uuid, options = {}) {
18600
+ delete2: (appUuid_1, uuid_1, ...args_1) => __awaiter(this, [appUuid_1, uuid_1, ...args_1], void 0, function* (appUuid, uuid, options = {}) {
14916
18601
  // verify required parameter 'appUuid' is not null or undefined
14917
- assertParamExists('delete1', 'appUuid', appUuid);
18602
+ assertParamExists('delete2', 'appUuid', appUuid);
14918
18603
  // verify required parameter 'uuid' is not null or undefined
14919
- assertParamExists('delete1', 'uuid', uuid);
18604
+ assertParamExists('delete2', 'uuid', uuid);
14920
18605
  const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/{uuid}`
14921
18606
  .replace('{appUuid}', encodeURIComponent(String(appUuid)))
14922
18607
  .replace('{uuid}', encodeURIComponent(String(uuid)));
@@ -15150,13 +18835,13 @@ export const ServerlessFunctionsApiAxiosParamCreator = function (configuration)
15150
18835
  * @param {*} [options] Override http request option.
15151
18836
  * @throws {RequiredError}
15152
18837
  */
15153
- update1: (appUuid_1, uuid_1, serverlessFunctionDTO_1, ...args_1) => __awaiter(this, [appUuid_1, uuid_1, serverlessFunctionDTO_1, ...args_1], void 0, function* (appUuid, uuid, serverlessFunctionDTO, options = {}) {
18838
+ update2: (appUuid_1, uuid_1, serverlessFunctionDTO_1, ...args_1) => __awaiter(this, [appUuid_1, uuid_1, serverlessFunctionDTO_1, ...args_1], void 0, function* (appUuid, uuid, serverlessFunctionDTO, options = {}) {
15154
18839
  // verify required parameter 'appUuid' is not null or undefined
15155
- assertParamExists('update1', 'appUuid', appUuid);
18840
+ assertParamExists('update2', 'appUuid', appUuid);
15156
18841
  // verify required parameter 'uuid' is not null or undefined
15157
- assertParamExists('update1', 'uuid', uuid);
18842
+ assertParamExists('update2', 'uuid', uuid);
15158
18843
  // verify required parameter 'serverlessFunctionDTO' is not null or undefined
15159
- assertParamExists('update1', 'serverlessFunctionDTO', serverlessFunctionDTO);
18844
+ assertParamExists('update2', 'serverlessFunctionDTO', serverlessFunctionDTO);
15160
18845
  const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/{uuid}`
15161
18846
  .replace('{appUuid}', encodeURIComponent(String(appUuid)))
15162
18847
  .replace('{uuid}', encodeURIComponent(String(uuid)));
@@ -15199,12 +18884,12 @@ export const ServerlessFunctionsApiFp = function (configuration) {
15199
18884
  * @param {*} [options] Override http request option.
15200
18885
  * @throws {RequiredError}
15201
18886
  */
15202
- create4(appUuid, serverlessFunctionDTO, options) {
18887
+ create5(appUuid, serverlessFunctionDTO, options) {
15203
18888
  return __awaiter(this, void 0, void 0, function* () {
15204
18889
  var _a, _b, _c;
15205
- const localVarAxiosArgs = yield localVarAxiosParamCreator.create4(appUuid, serverlessFunctionDTO, options);
18890
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create5(appUuid, serverlessFunctionDTO, options);
15206
18891
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15207
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ServerlessFunctionsApi.create4']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18892
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ServerlessFunctionsApi.create5']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15208
18893
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15209
18894
  });
15210
18895
  },
@@ -15216,12 +18901,12 @@ export const ServerlessFunctionsApiFp = function (configuration) {
15216
18901
  * @param {*} [options] Override http request option.
15217
18902
  * @throws {RequiredError}
15218
18903
  */
15219
- delete1(appUuid, uuid, options) {
18904
+ delete2(appUuid, uuid, options) {
15220
18905
  return __awaiter(this, void 0, void 0, function* () {
15221
18906
  var _a, _b, _c;
15222
- const localVarAxiosArgs = yield localVarAxiosParamCreator.delete1(appUuid, uuid, options);
18907
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.delete2(appUuid, uuid, options);
15223
18908
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15224
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ServerlessFunctionsApi.delete1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18909
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ServerlessFunctionsApi.delete2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15225
18910
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15226
18911
  });
15227
18912
  },
@@ -15322,12 +19007,12 @@ export const ServerlessFunctionsApiFp = function (configuration) {
15322
19007
  * @param {*} [options] Override http request option.
15323
19008
  * @throws {RequiredError}
15324
19009
  */
15325
- update1(appUuid, uuid, serverlessFunctionDTO, options) {
19010
+ update2(appUuid, uuid, serverlessFunctionDTO, options) {
15326
19011
  return __awaiter(this, void 0, void 0, function* () {
15327
19012
  var _a, _b, _c;
15328
- const localVarAxiosArgs = yield localVarAxiosParamCreator.update1(appUuid, uuid, serverlessFunctionDTO, options);
19013
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.update2(appUuid, uuid, serverlessFunctionDTO, options);
15329
19014
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15330
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ServerlessFunctionsApi.update1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19015
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ServerlessFunctionsApi.update2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15331
19016
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15332
19017
  });
15333
19018
  },
@@ -15347,8 +19032,8 @@ export const ServerlessFunctionsApiFactory = function (configuration, basePath,
15347
19032
  * @param {*} [options] Override http request option.
15348
19033
  * @throws {RequiredError}
15349
19034
  */
15350
- create4(appUuid, serverlessFunctionDTO, options) {
15351
- return localVarFp.create4(appUuid, serverlessFunctionDTO, options).then((request) => request(axios, basePath));
19035
+ create5(appUuid, serverlessFunctionDTO, options) {
19036
+ return localVarFp.create5(appUuid, serverlessFunctionDTO, options).then((request) => request(axios, basePath));
15352
19037
  },
15353
19038
  /**
15354
19039
  * Tears down the GCP Cloud Function (if provisioned) and deletes the serverless function entity.
@@ -15358,8 +19043,8 @@ export const ServerlessFunctionsApiFactory = function (configuration, basePath,
15358
19043
  * @param {*} [options] Override http request option.
15359
19044
  * @throws {RequiredError}
15360
19045
  */
15361
- delete1(appUuid, uuid, options) {
15362
- return localVarFp.delete1(appUuid, uuid, options).then((request) => request(axios, basePath));
19046
+ delete2(appUuid, uuid, options) {
19047
+ return localVarFp.delete2(appUuid, uuid, options).then((request) => request(axios, basePath));
15363
19048
  },
15364
19049
  /**
15365
19050
  * Retrieves a paginated list of serverless functions that belong to the specified app.
@@ -15428,8 +19113,8 @@ export const ServerlessFunctionsApiFactory = function (configuration, basePath,
15428
19113
  * @param {*} [options] Override http request option.
15429
19114
  * @throws {RequiredError}
15430
19115
  */
15431
- update1(appUuid, uuid, serverlessFunctionDTO, options) {
15432
- return localVarFp.update1(appUuid, uuid, serverlessFunctionDTO, options).then((request) => request(axios, basePath));
19116
+ update2(appUuid, uuid, serverlessFunctionDTO, options) {
19117
+ return localVarFp.update2(appUuid, uuid, serverlessFunctionDTO, options).then((request) => request(axios, basePath));
15433
19118
  },
15434
19119
  };
15435
19120
  };
@@ -15445,8 +19130,8 @@ export class ServerlessFunctionsApi extends BaseAPI {
15445
19130
  * @param {*} [options] Override http request option.
15446
19131
  * @throws {RequiredError}
15447
19132
  */
15448
- create4(appUuid, serverlessFunctionDTO, options) {
15449
- return ServerlessFunctionsApiFp(this.configuration).create4(appUuid, serverlessFunctionDTO, options).then((request) => request(this.axios, this.basePath));
19133
+ create5(appUuid, serverlessFunctionDTO, options) {
19134
+ return ServerlessFunctionsApiFp(this.configuration).create5(appUuid, serverlessFunctionDTO, options).then((request) => request(this.axios, this.basePath));
15450
19135
  }
15451
19136
  /**
15452
19137
  * Tears down the GCP Cloud Function (if provisioned) and deletes the serverless function entity.
@@ -15456,8 +19141,8 @@ export class ServerlessFunctionsApi extends BaseAPI {
15456
19141
  * @param {*} [options] Override http request option.
15457
19142
  * @throws {RequiredError}
15458
19143
  */
15459
- delete1(appUuid, uuid, options) {
15460
- return ServerlessFunctionsApiFp(this.configuration).delete1(appUuid, uuid, options).then((request) => request(this.axios, this.basePath));
19144
+ delete2(appUuid, uuid, options) {
19145
+ return ServerlessFunctionsApiFp(this.configuration).delete2(appUuid, uuid, options).then((request) => request(this.axios, this.basePath));
15461
19146
  }
15462
19147
  /**
15463
19148
  * Retrieves a paginated list of serverless functions that belong to the specified app.
@@ -15526,8 +19211,8 @@ export class ServerlessFunctionsApi extends BaseAPI {
15526
19211
  * @param {*} [options] Override http request option.
15527
19212
  * @throws {RequiredError}
15528
19213
  */
15529
- update1(appUuid, uuid, serverlessFunctionDTO, options) {
15530
- return ServerlessFunctionsApiFp(this.configuration).update1(appUuid, uuid, serverlessFunctionDTO, options).then((request) => request(this.axios, this.basePath));
19214
+ update2(appUuid, uuid, serverlessFunctionDTO, options) {
19215
+ return ServerlessFunctionsApiFp(this.configuration).update2(appUuid, uuid, serverlessFunctionDTO, options).then((request) => request(this.axios, this.basePath));
15531
19216
  }
15532
19217
  }
15533
19218
  /**
@@ -18311,6 +21996,150 @@ export const WebpagesApiAxiosParamCreator = function (configuration) {
18311
21996
  options: localVarRequestOptions,
18312
21997
  };
18313
21998
  }),
21999
+ /**
22000
+ * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap.
22001
+ * @summary Get filtered map markers for a public webpage
22002
+ * @param {string} xCaraerSubdomain
22003
+ * @param {string} pageUuid
22004
+ * @param {string} componentUuid
22005
+ * @param {RecordPaginationRequest} recordPaginationRequest
22006
+ * @param {string} [xCaraerEnvironment]
22007
+ * @param {string} [xCaraerPrimaryEnvironment]
22008
+ * @param {string} [authorization]
22009
+ * @param {string} [xCaraerWebpageAccess]
22010
+ * @param {string} [access]
22011
+ * @param {string} [token]
22012
+ * @param {*} [options] Override http request option.
22013
+ * @throws {RequiredError}
22014
+ */
22015
+ getPublicMapLocations: (xCaraerSubdomain_1, pageUuid_1, componentUuid_1, recordPaginationRequest_1, xCaraerEnvironment_1, xCaraerPrimaryEnvironment_1, authorization_1, xCaraerWebpageAccess_1, access_1, token_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, pageUuid_1, componentUuid_1, recordPaginationRequest_1, xCaraerEnvironment_1, xCaraerPrimaryEnvironment_1, authorization_1, xCaraerWebpageAccess_1, access_1, token_1, ...args_1], void 0, function* (xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options = {}) {
22016
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
22017
+ assertParamExists('getPublicMapLocations', 'xCaraerSubdomain', xCaraerSubdomain);
22018
+ // verify required parameter 'pageUuid' is not null or undefined
22019
+ assertParamExists('getPublicMapLocations', 'pageUuid', pageUuid);
22020
+ // verify required parameter 'componentUuid' is not null or undefined
22021
+ assertParamExists('getPublicMapLocations', 'componentUuid', componentUuid);
22022
+ // verify required parameter 'recordPaginationRequest' is not null or undefined
22023
+ assertParamExists('getPublicMapLocations', 'recordPaginationRequest', recordPaginationRequest);
22024
+ const localVarPath = `/api/v2/webpages/public/maps/{pageUuid}/{componentUuid}`
22025
+ .replace('{pageUuid}', encodeURIComponent(String(pageUuid)))
22026
+ .replace('{componentUuid}', encodeURIComponent(String(componentUuid)));
22027
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22028
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22029
+ let baseOptions;
22030
+ if (configuration) {
22031
+ baseOptions = configuration.baseOptions;
22032
+ }
22033
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
22034
+ const localVarHeaderParameter = {};
22035
+ const localVarQueryParameter = {};
22036
+ // authentication bearerAuth required
22037
+ // http bearer authentication required
22038
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
22039
+ if (access !== undefined) {
22040
+ localVarQueryParameter['access'] = access;
22041
+ }
22042
+ if (token !== undefined) {
22043
+ localVarQueryParameter['token'] = token;
22044
+ }
22045
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22046
+ localVarHeaderParameter['Accept'] = 'application/json';
22047
+ if (xCaraerSubdomain != null) {
22048
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
22049
+ }
22050
+ if (xCaraerEnvironment != null) {
22051
+ localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment);
22052
+ }
22053
+ if (xCaraerPrimaryEnvironment != null) {
22054
+ localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment);
22055
+ }
22056
+ if (authorization != null) {
22057
+ localVarHeaderParameter['Authorization'] = String(authorization);
22058
+ }
22059
+ if (xCaraerWebpageAccess != null) {
22060
+ localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess);
22061
+ }
22062
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22063
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22064
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22065
+ localVarRequestOptions.data = serializeDataIfNeeded(recordPaginationRequest, localVarRequestOptions, configuration);
22066
+ return {
22067
+ url: toPathString(localVarUrlObj),
22068
+ options: localVarRequestOptions,
22069
+ };
22070
+ }),
22071
+ /**
22072
+ * Hydrates the hover preview selected on a bound map location for a published record.
22073
+ * @summary Get a hydrated preview for one public map marker
22074
+ * @param {string} xCaraerSubdomain
22075
+ * @param {string} pageUuid
22076
+ * @param {string} componentUuid
22077
+ * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest
22078
+ * @param {string} [xCaraerEnvironment]
22079
+ * @param {string} [xCaraerPrimaryEnvironment]
22080
+ * @param {string} [authorization]
22081
+ * @param {string} [xCaraerWebpageAccess]
22082
+ * @param {string} [access]
22083
+ * @param {string} [token]
22084
+ * @param {*} [options] Override http request option.
22085
+ * @throws {RequiredError}
22086
+ */
22087
+ getPublicMapMarkerPreview: (xCaraerSubdomain_1, pageUuid_1, componentUuid_1, mapMarkerPreviewRequest_1, xCaraerEnvironment_1, xCaraerPrimaryEnvironment_1, authorization_1, xCaraerWebpageAccess_1, access_1, token_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, pageUuid_1, componentUuid_1, mapMarkerPreviewRequest_1, xCaraerEnvironment_1, xCaraerPrimaryEnvironment_1, authorization_1, xCaraerWebpageAccess_1, access_1, token_1, ...args_1], void 0, function* (xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options = {}) {
22088
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
22089
+ assertParamExists('getPublicMapMarkerPreview', 'xCaraerSubdomain', xCaraerSubdomain);
22090
+ // verify required parameter 'pageUuid' is not null or undefined
22091
+ assertParamExists('getPublicMapMarkerPreview', 'pageUuid', pageUuid);
22092
+ // verify required parameter 'componentUuid' is not null or undefined
22093
+ assertParamExists('getPublicMapMarkerPreview', 'componentUuid', componentUuid);
22094
+ // verify required parameter 'mapMarkerPreviewRequest' is not null or undefined
22095
+ assertParamExists('getPublicMapMarkerPreview', 'mapMarkerPreviewRequest', mapMarkerPreviewRequest);
22096
+ const localVarPath = `/api/v2/webpages/public/maps/{pageUuid}/{componentUuid}/marker-preview`
22097
+ .replace('{pageUuid}', encodeURIComponent(String(pageUuid)))
22098
+ .replace('{componentUuid}', encodeURIComponent(String(componentUuid)));
22099
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22100
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22101
+ let baseOptions;
22102
+ if (configuration) {
22103
+ baseOptions = configuration.baseOptions;
22104
+ }
22105
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
22106
+ const localVarHeaderParameter = {};
22107
+ const localVarQueryParameter = {};
22108
+ // authentication bearerAuth required
22109
+ // http bearer authentication required
22110
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
22111
+ if (access !== undefined) {
22112
+ localVarQueryParameter['access'] = access;
22113
+ }
22114
+ if (token !== undefined) {
22115
+ localVarQueryParameter['token'] = token;
22116
+ }
22117
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22118
+ localVarHeaderParameter['Accept'] = 'application/json';
22119
+ if (xCaraerSubdomain != null) {
22120
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
22121
+ }
22122
+ if (xCaraerEnvironment != null) {
22123
+ localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment);
22124
+ }
22125
+ if (xCaraerPrimaryEnvironment != null) {
22126
+ localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment);
22127
+ }
22128
+ if (authorization != null) {
22129
+ localVarHeaderParameter['Authorization'] = String(authorization);
22130
+ }
22131
+ if (xCaraerWebpageAccess != null) {
22132
+ localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess);
22133
+ }
22134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22136
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22137
+ localVarRequestOptions.data = serializeDataIfNeeded(mapMarkerPreviewRequest, localVarRequestOptions, configuration);
22138
+ return {
22139
+ url: toPathString(localVarUrlObj),
22140
+ options: localVarRequestOptions,
22141
+ };
22142
+ }),
18314
22143
  /**
18315
22144
  * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects.
18316
22145
  * @summary Get previews for a public webpage
@@ -19434,6 +23263,56 @@ export const WebpagesApiFp = function (configuration) {
19434
23263
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19435
23264
  });
19436
23265
  },
23266
+ /**
23267
+ * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap.
23268
+ * @summary Get filtered map markers for a public webpage
23269
+ * @param {string} xCaraerSubdomain
23270
+ * @param {string} pageUuid
23271
+ * @param {string} componentUuid
23272
+ * @param {RecordPaginationRequest} recordPaginationRequest
23273
+ * @param {string} [xCaraerEnvironment]
23274
+ * @param {string} [xCaraerPrimaryEnvironment]
23275
+ * @param {string} [authorization]
23276
+ * @param {string} [xCaraerWebpageAccess]
23277
+ * @param {string} [access]
23278
+ * @param {string} [token]
23279
+ * @param {*} [options] Override http request option.
23280
+ * @throws {RequiredError}
23281
+ */
23282
+ getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
23283
+ return __awaiter(this, void 0, void 0, function* () {
23284
+ var _a, _b, _c;
23285
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options);
23286
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23287
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebpagesApi.getPublicMapLocations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23288
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23289
+ });
23290
+ },
23291
+ /**
23292
+ * Hydrates the hover preview selected on a bound map location for a published record.
23293
+ * @summary Get a hydrated preview for one public map marker
23294
+ * @param {string} xCaraerSubdomain
23295
+ * @param {string} pageUuid
23296
+ * @param {string} componentUuid
23297
+ * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest
23298
+ * @param {string} [xCaraerEnvironment]
23299
+ * @param {string} [xCaraerPrimaryEnvironment]
23300
+ * @param {string} [authorization]
23301
+ * @param {string} [xCaraerWebpageAccess]
23302
+ * @param {string} [access]
23303
+ * @param {string} [token]
23304
+ * @param {*} [options] Override http request option.
23305
+ * @throws {RequiredError}
23306
+ */
23307
+ getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
23308
+ return __awaiter(this, void 0, void 0, function* () {
23309
+ var _a, _b, _c;
23310
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options);
23311
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23312
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebpagesApi.getPublicMapMarkerPreview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23313
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23314
+ });
23315
+ },
19437
23316
  /**
19438
23317
  * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects.
19439
23318
  * @summary Get previews for a public webpage
@@ -19967,6 +23846,44 @@ export const WebpagesApiFactory = function (configuration, basePath, axios) {
19967
23846
  getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options) {
19968
23847
  return localVarFp.getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(axios, basePath));
19969
23848
  },
23849
+ /**
23850
+ * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap.
23851
+ * @summary Get filtered map markers for a public webpage
23852
+ * @param {string} xCaraerSubdomain
23853
+ * @param {string} pageUuid
23854
+ * @param {string} componentUuid
23855
+ * @param {RecordPaginationRequest} recordPaginationRequest
23856
+ * @param {string} [xCaraerEnvironment]
23857
+ * @param {string} [xCaraerPrimaryEnvironment]
23858
+ * @param {string} [authorization]
23859
+ * @param {string} [xCaraerWebpageAccess]
23860
+ * @param {string} [access]
23861
+ * @param {string} [token]
23862
+ * @param {*} [options] Override http request option.
23863
+ * @throws {RequiredError}
23864
+ */
23865
+ getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
23866
+ return localVarFp.getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(axios, basePath));
23867
+ },
23868
+ /**
23869
+ * Hydrates the hover preview selected on a bound map location for a published record.
23870
+ * @summary Get a hydrated preview for one public map marker
23871
+ * @param {string} xCaraerSubdomain
23872
+ * @param {string} pageUuid
23873
+ * @param {string} componentUuid
23874
+ * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest
23875
+ * @param {string} [xCaraerEnvironment]
23876
+ * @param {string} [xCaraerPrimaryEnvironment]
23877
+ * @param {string} [authorization]
23878
+ * @param {string} [xCaraerWebpageAccess]
23879
+ * @param {string} [access]
23880
+ * @param {string} [token]
23881
+ * @param {*} [options] Override http request option.
23882
+ * @throws {RequiredError}
23883
+ */
23884
+ getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
23885
+ return localVarFp.getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(axios, basePath));
23886
+ },
19970
23887
  /**
19971
23888
  * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects.
19972
23889
  * @summary Get previews for a public webpage
@@ -20378,6 +24295,44 @@ export class WebpagesApi extends BaseAPI {
20378
24295
  getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options) {
20379
24296
  return WebpagesApiFp(this.configuration).getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(this.axios, this.basePath));
20380
24297
  }
24298
+ /**
24299
+ * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap.
24300
+ * @summary Get filtered map markers for a public webpage
24301
+ * @param {string} xCaraerSubdomain
24302
+ * @param {string} pageUuid
24303
+ * @param {string} componentUuid
24304
+ * @param {RecordPaginationRequest} recordPaginationRequest
24305
+ * @param {string} [xCaraerEnvironment]
24306
+ * @param {string} [xCaraerPrimaryEnvironment]
24307
+ * @param {string} [authorization]
24308
+ * @param {string} [xCaraerWebpageAccess]
24309
+ * @param {string} [access]
24310
+ * @param {string} [token]
24311
+ * @param {*} [options] Override http request option.
24312
+ * @throws {RequiredError}
24313
+ */
24314
+ getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
24315
+ return WebpagesApiFp(this.configuration).getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(this.axios, this.basePath));
24316
+ }
24317
+ /**
24318
+ * Hydrates the hover preview selected on a bound map location for a published record.
24319
+ * @summary Get a hydrated preview for one public map marker
24320
+ * @param {string} xCaraerSubdomain
24321
+ * @param {string} pageUuid
24322
+ * @param {string} componentUuid
24323
+ * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest
24324
+ * @param {string} [xCaraerEnvironment]
24325
+ * @param {string} [xCaraerPrimaryEnvironment]
24326
+ * @param {string} [authorization]
24327
+ * @param {string} [xCaraerWebpageAccess]
24328
+ * @param {string} [access]
24329
+ * @param {string} [token]
24330
+ * @param {*} [options] Override http request option.
24331
+ * @throws {RequiredError}
24332
+ */
24333
+ getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
24334
+ return WebpagesApiFp(this.configuration).getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(this.axios, this.basePath));
24335
+ }
20381
24336
  /**
20382
24337
  * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects.
20383
24338
  * @summary Get previews for a public webpage