@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/api.js CHANGED
@@ -22,9 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.DeveloperProjectsApi = exports.DeveloperProjectsApiFactory = exports.DeveloperProjectsApiFp = exports.DeveloperProjectsApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CalendarsApi = exports.CalendarsApiFactory = exports.CalendarsApiFp = exports.CalendarsApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.AutomationsApi = exports.AutomationsApiFactory = exports.AutomationsApiFp = exports.AutomationsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AppInstallationRuntimeApi = exports.AppInstallationRuntimeApiFactory = exports.AppInstallationRuntimeApiFp = exports.AppInstallationRuntimeApiAxiosParamCreator = exports.ListAppBarsLocationEnum = exports.AppBarsApi = exports.AppBarsApiFactory = exports.AppBarsApiFp = exports.AppBarsApiAxiosParamCreator = exports.AppBarIframeSessionsApi = exports.AppBarIframeSessionsApiFactory = exports.AppBarIframeSessionsApiFp = exports.AppBarIframeSessionsApiAxiosParamCreator = exports.ValidationErrorTypeEnum = exports.SortItemDirectionEnum = exports.SettingFieldTypeEnum = exports.EventRsvpRequestScopeEnum = exports.EventRsvpRequestPartstatEnum = exports.ErrorResponseRolesEnum = exports.CreatePrivateAppRequestAuthMethodEnum = exports.CaraerErrorTypeTypeEnum = exports.CRUDSessionTypeEnum = exports.AppDTOAuthMethodEnum = exports.AppBarDTOLocationEnum = exports.AdvancedRecordQueryRequestStrategyEnum = exports.AdvancedRecordQueryPlanStrategyEnum = void 0;
26
- exports.PreviewParseEnum = exports.IndexFlowParseEnum = exports.IndexRecordReturnFormatEnum = exports.IndexParseEnum = exports.ExtendParseEnum = exports.ExtendRecordReturnFormatEnum = exports.CreateOrUpdateRecordReturnFormatEnum = exports.CreateOrUpdateParseEnum = exports.CreateRecordReturnFormatEnum = exports.CreateParseEnum = exports.RecordsApi = exports.RecordsApiFactory = exports.RecordsApiFp = exports.RecordsApiAxiosParamCreator = exports.PropertyApi = exports.PropertyApiFactory = exports.PropertyApiFp = exports.PropertyApiAxiosParamCreator = exports.ObjectsApi = exports.ObjectsApiFactory = exports.ObjectsApiFp = exports.ObjectsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.ModuleApi = exports.ModuleApiFactory = exports.ModuleApiFp = exports.ModuleApiAxiosParamCreator = exports.FormsApi = exports.FormsApiFactory = exports.FormsApiFp = exports.FormsApiAxiosParamCreator = exports.FilterApi = exports.FilterApiFactory = exports.FilterApiFp = exports.FilterApiAxiosParamCreator = exports.FileManagementApi = exports.FileManagementApiFactory = exports.FileManagementApiFp = exports.FileManagementApiAxiosParamCreator = exports.FeedsApi = exports.FeedsApiFactory = exports.FeedsApiFp = exports.FeedsApiAxiosParamCreator = exports.DeveloperSandboxesApi = exports.DeveloperSandboxesApiFactory = exports.DeveloperSandboxesApiFp = exports.DeveloperSandboxesApiAxiosParamCreator = void 0;
27
- exports.WebpagesApi = exports.WebpagesApiFactory = exports.WebpagesApiFp = exports.WebpagesApiAxiosParamCreator = exports.WebMenusApi = exports.WebMenusApiFactory = exports.WebMenusApiFp = exports.WebMenusApiAxiosParamCreator = exports.ViewsApi = exports.ViewsApiFactory = exports.ViewsApiFp = exports.ViewsApiAxiosParamCreator = exports.TraitsApi = exports.TraitsApiFactory = exports.TraitsApiFp = exports.TraitsApiAxiosParamCreator = exports.SyncApi = exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = exports.ServerlessFunctionsApi = exports.ServerlessFunctionsApiFactory = exports.ServerlessFunctionsApiFp = exports.ServerlessFunctionsApiAxiosParamCreator = exports.RelationsApi = exports.RelationsApiFactory = exports.RelationsApiFp = exports.RelationsApiAxiosParamCreator = exports.UpdateByUuidRecordReturnFormatEnum = exports.UpdateByUuidParseEnum = exports.UpdateRecordReturnFormatEnum = exports.UpdateParseEnum = exports.ShowByObjectParseEnum = exports.ShowByObjectRecordReturnFormatEnum = exports.ShowParseEnum = exports.ShowRecordReturnFormatEnum = exports.SearchCrossObjectParseEnum = exports.SearchRecordReturnFormatEnum = exports.SearchParseEnum = void 0;
25
+ exports.CMSV2PagesApi = exports.CMSV2PagesApiFactory = exports.CMSV2PagesApiFp = exports.CMSV2PagesApiAxiosParamCreator = exports.CMSV2EnvironmentsApi = exports.CMSV2EnvironmentsApiFactory = exports.CMSV2EnvironmentsApiFp = exports.CMSV2EnvironmentsApiAxiosParamCreator = exports.CMSModulesApi = exports.CMSModulesApiFactory = exports.CMSModulesApiFp = exports.CMSModulesApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.AutomationsApi = exports.AutomationsApiFactory = exports.AutomationsApiFp = exports.AutomationsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AppInstallationRuntimeApi = exports.AppInstallationRuntimeApiFactory = exports.AppInstallationRuntimeApiFp = exports.AppInstallationRuntimeApiAxiosParamCreator = exports.ListAppBarsLocationEnum = exports.AppBarsApi = exports.AppBarsApiFactory = exports.AppBarsApiFp = exports.AppBarsApiAxiosParamCreator = exports.AppBarIframeSessionsApi = exports.AppBarIframeSessionsApiFactory = exports.AppBarIframeSessionsApiFp = exports.AppBarIframeSessionsApiAxiosParamCreator = exports.ValidationErrorTypeEnum = exports.SortItemDirectionEnum = exports.SettingFieldTypeEnum = exports.EventRsvpRequestScopeEnum = exports.EventRsvpRequestPartstatEnum = exports.ErrorResponseRolesEnum = exports.CreatePrivateAppRequestAuthMethodEnum = exports.CaraerErrorTypeTypeEnum = exports.CRUDSessionTypeEnum = exports.AppDTOAuthMethodEnum = exports.AppBarDTOLocationEnum = exports.AdvancedRecordQueryRequestStrategyEnum = exports.AdvancedRecordQueryPlanStrategyEnum = void 0;
26
+ exports.ObjectsApiFp = exports.ObjectsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.ModuleApi = exports.ModuleApiFactory = exports.ModuleApiFp = exports.ModuleApiAxiosParamCreator = exports.FormsApi = exports.FormsApiFactory = exports.FormsApiFp = exports.FormsApiAxiosParamCreator = exports.FilterApi = exports.FilterApiFactory = exports.FilterApiFp = exports.FilterApiAxiosParamCreator = exports.FileManagementApi = exports.FileManagementApiFactory = exports.FileManagementApiFp = exports.FileManagementApiAxiosParamCreator = exports.FeedsApi = exports.FeedsApiFactory = exports.FeedsApiFp = exports.FeedsApiAxiosParamCreator = exports.DeveloperSandboxesApi = exports.DeveloperSandboxesApiFactory = exports.DeveloperSandboxesApiFp = exports.DeveloperSandboxesApiAxiosParamCreator = exports.DeveloperProjectsApi = exports.DeveloperProjectsApiFactory = exports.DeveloperProjectsApiFp = exports.DeveloperProjectsApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CalendarsApi = exports.CalendarsApiFactory = exports.CalendarsApiFp = exports.CalendarsApiAxiosParamCreator = exports.CMSV2TransferApi = exports.CMSV2TransferApiFactory = exports.CMSV2TransferApiFp = exports.CMSV2TransferApiAxiosParamCreator = exports.CMSV2PublicApi = exports.CMSV2PublicApiFactory = exports.CMSV2PublicApiFp = exports.CMSV2PublicApiAxiosParamCreator = void 0;
27
+ exports.ViewsApiFactory = exports.ViewsApiFp = exports.ViewsApiAxiosParamCreator = exports.TraitsApi = exports.TraitsApiFactory = exports.TraitsApiFp = exports.TraitsApiAxiosParamCreator = exports.SyncApi = exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = exports.ServerlessFunctionsApi = exports.ServerlessFunctionsApiFactory = exports.ServerlessFunctionsApiFp = exports.ServerlessFunctionsApiAxiosParamCreator = exports.RelationsApi = exports.RelationsApiFactory = exports.RelationsApiFp = exports.RelationsApiAxiosParamCreator = exports.UpdateByUuidRecordReturnFormatEnum = exports.UpdateByUuidParseEnum = exports.UpdateRecordReturnFormatEnum = exports.UpdateParseEnum = exports.ShowByObjectParseEnum = exports.ShowByObjectRecordReturnFormatEnum = exports.ShowParseEnum = exports.ShowRecordReturnFormatEnum = exports.SearchCrossObjectParseEnum = exports.SearchRecordReturnFormatEnum = exports.SearchParseEnum = exports.PreviewParseEnum = exports.IndexFlowParseEnum = exports.IndexRecordReturnFormatEnum = exports.IndexParseEnum = exports.ExtendParseEnum = exports.ExtendRecordReturnFormatEnum = exports.CreateOrUpdateRecordReturnFormatEnum = exports.CreateOrUpdateParseEnum = exports.CreateRecordReturnFormatEnum = exports.CreateParseEnum = exports.RecordsApi = exports.RecordsApiFactory = exports.RecordsApiFp = exports.RecordsApiAxiosParamCreator = exports.PropertyApi = exports.PropertyApiFactory = exports.PropertyApiFp = exports.PropertyApiAxiosParamCreator = exports.ObjectsApi = exports.ObjectsApiFactory = void 0;
28
+ exports.WebpagesApi = exports.WebpagesApiFactory = exports.WebpagesApiFp = exports.WebpagesApiAxiosParamCreator = exports.WebMenusApi = exports.WebMenusApiFactory = exports.WebMenusApiFp = exports.WebMenusApiAxiosParamCreator = exports.ViewsApi = void 0;
28
29
  const axios_1 = require("axios");
29
30
  // Some imports not used depending on template conditions
30
31
  // @ts-ignore
@@ -4217,6 +4218,3642 @@ class BillingApi extends base_1.BaseAPI {
4217
4218
  }
4218
4219
  }
4219
4220
  exports.BillingApi = BillingApi;
4221
+ /**
4222
+ * CMSModulesApi - axios parameter creator
4223
+ */
4224
+ const CMSModulesApiAxiosParamCreator = function (configuration) {
4225
+ return {
4226
+ /**
4227
+ * Includes retired modules, so a developer can see what a push removed.
4228
+ * @summary List an app\'s CMS modules
4229
+ * @param {string} appUuid
4230
+ * @param {*} [options] Override http request option.
4231
+ * @throws {RequiredError}
4232
+ */
4233
+ list: (appUuid_1, ...args_1) => __awaiter(this, [appUuid_1, ...args_1], void 0, function* (appUuid, options = {}) {
4234
+ // verify required parameter 'appUuid' is not null or undefined
4235
+ (0, common_1.assertParamExists)('list', 'appUuid', appUuid);
4236
+ const localVarPath = `/api/v2/apps/{appUuid}/cms-modules`
4237
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
4238
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4239
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4240
+ let baseOptions;
4241
+ if (configuration) {
4242
+ baseOptions = configuration.baseOptions;
4243
+ }
4244
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4245
+ const localVarHeaderParameter = {};
4246
+ const localVarQueryParameter = {};
4247
+ // authentication bearerAuth required
4248
+ // http bearer authentication required
4249
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4250
+ localVarHeaderParameter['Accept'] = 'application/json';
4251
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4253
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4254
+ return {
4255
+ url: (0, common_1.toPathString)(localVarUrlObj),
4256
+ options: localVarRequestOptions,
4257
+ };
4258
+ }),
4259
+ /**
4260
+ * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog.
4261
+ * @summary Publish an app\'s CMS module package
4262
+ * @param {string} appUuid
4263
+ * @param {{ [key: string]: any | null; }} requestBody
4264
+ * @param {*} [options] Override http request option.
4265
+ * @throws {RequiredError}
4266
+ */
4267
+ publishPackage: (appUuid_1, requestBody_1, ...args_1) => __awaiter(this, [appUuid_1, requestBody_1, ...args_1], void 0, function* (appUuid, requestBody, options = {}) {
4268
+ // verify required parameter 'appUuid' is not null or undefined
4269
+ (0, common_1.assertParamExists)('publishPackage', 'appUuid', appUuid);
4270
+ // verify required parameter 'requestBody' is not null or undefined
4271
+ (0, common_1.assertParamExists)('publishPackage', 'requestBody', requestBody);
4272
+ const localVarPath = `/api/v2/apps/{appUuid}/cms-modules/package`
4273
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
4274
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4275
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4276
+ let baseOptions;
4277
+ if (configuration) {
4278
+ baseOptions = configuration.baseOptions;
4279
+ }
4280
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4281
+ const localVarHeaderParameter = {};
4282
+ const localVarQueryParameter = {};
4283
+ // authentication bearerAuth required
4284
+ // http bearer authentication required
4285
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4286
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4287
+ localVarHeaderParameter['Accept'] = 'application/json';
4288
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4289
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4290
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4291
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
4292
+ return {
4293
+ url: (0, common_1.toPathString)(localVarUrlObj),
4294
+ options: localVarRequestOptions,
4295
+ };
4296
+ }),
4297
+ /**
4298
+ * 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.
4299
+ * @summary Replace an app\'s CMS module catalog
4300
+ * @param {string} appUuid
4301
+ * @param {{ [key: string]: any | null; }} requestBody
4302
+ * @param {*} [options] Override http request option.
4303
+ * @throws {RequiredError}
4304
+ */
4305
+ upsert: (appUuid_1, requestBody_1, ...args_1) => __awaiter(this, [appUuid_1, requestBody_1, ...args_1], void 0, function* (appUuid, requestBody, options = {}) {
4306
+ // verify required parameter 'appUuid' is not null or undefined
4307
+ (0, common_1.assertParamExists)('upsert', 'appUuid', appUuid);
4308
+ // verify required parameter 'requestBody' is not null or undefined
4309
+ (0, common_1.assertParamExists)('upsert', 'requestBody', requestBody);
4310
+ const localVarPath = `/api/v2/apps/{appUuid}/cms-modules`
4311
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
4312
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4313
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4314
+ let baseOptions;
4315
+ if (configuration) {
4316
+ baseOptions = configuration.baseOptions;
4317
+ }
4318
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4319
+ const localVarHeaderParameter = {};
4320
+ const localVarQueryParameter = {};
4321
+ // authentication bearerAuth required
4322
+ // http bearer authentication required
4323
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4324
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4325
+ localVarHeaderParameter['Accept'] = 'application/json';
4326
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4327
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4328
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4329
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
4330
+ return {
4331
+ url: (0, common_1.toPathString)(localVarUrlObj),
4332
+ options: localVarRequestOptions,
4333
+ };
4334
+ }),
4335
+ };
4336
+ };
4337
+ exports.CMSModulesApiAxiosParamCreator = CMSModulesApiAxiosParamCreator;
4338
+ /**
4339
+ * CMSModulesApi - functional programming interface
4340
+ */
4341
+ const CMSModulesApiFp = function (configuration) {
4342
+ const localVarAxiosParamCreator = (0, exports.CMSModulesApiAxiosParamCreator)(configuration);
4343
+ return {
4344
+ /**
4345
+ * Includes retired modules, so a developer can see what a push removed.
4346
+ * @summary List an app\'s CMS modules
4347
+ * @param {string} appUuid
4348
+ * @param {*} [options] Override http request option.
4349
+ * @throws {RequiredError}
4350
+ */
4351
+ list(appUuid, options) {
4352
+ return __awaiter(this, void 0, void 0, function* () {
4353
+ var _a, _b, _c;
4354
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.list(appUuid, options);
4355
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4356
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSModulesApi.list']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4357
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4358
+ });
4359
+ },
4360
+ /**
4361
+ * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog.
4362
+ * @summary Publish an app\'s CMS module package
4363
+ * @param {string} appUuid
4364
+ * @param {{ [key: string]: any | null; }} requestBody
4365
+ * @param {*} [options] Override http request option.
4366
+ * @throws {RequiredError}
4367
+ */
4368
+ publishPackage(appUuid, requestBody, options) {
4369
+ return __awaiter(this, void 0, void 0, function* () {
4370
+ var _a, _b, _c;
4371
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publishPackage(appUuid, requestBody, options);
4372
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4373
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSModulesApi.publishPackage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4374
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4375
+ });
4376
+ },
4377
+ /**
4378
+ * 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.
4379
+ * @summary Replace an app\'s CMS module catalog
4380
+ * @param {string} appUuid
4381
+ * @param {{ [key: string]: any | null; }} requestBody
4382
+ * @param {*} [options] Override http request option.
4383
+ * @throws {RequiredError}
4384
+ */
4385
+ upsert(appUuid, requestBody, options) {
4386
+ return __awaiter(this, void 0, void 0, function* () {
4387
+ var _a, _b, _c;
4388
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upsert(appUuid, requestBody, options);
4389
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4390
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSModulesApi.upsert']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4391
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4392
+ });
4393
+ },
4394
+ };
4395
+ };
4396
+ exports.CMSModulesApiFp = CMSModulesApiFp;
4397
+ /**
4398
+ * CMSModulesApi - factory interface
4399
+ */
4400
+ const CMSModulesApiFactory = function (configuration, basePath, axios) {
4401
+ const localVarFp = (0, exports.CMSModulesApiFp)(configuration);
4402
+ return {
4403
+ /**
4404
+ * Includes retired modules, so a developer can see what a push removed.
4405
+ * @summary List an app\'s CMS modules
4406
+ * @param {string} appUuid
4407
+ * @param {*} [options] Override http request option.
4408
+ * @throws {RequiredError}
4409
+ */
4410
+ list(appUuid, options) {
4411
+ return localVarFp.list(appUuid, options).then((request) => request(axios, basePath));
4412
+ },
4413
+ /**
4414
+ * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog.
4415
+ * @summary Publish an app\'s CMS module package
4416
+ * @param {string} appUuid
4417
+ * @param {{ [key: string]: any | null; }} requestBody
4418
+ * @param {*} [options] Override http request option.
4419
+ * @throws {RequiredError}
4420
+ */
4421
+ publishPackage(appUuid, requestBody, options) {
4422
+ return localVarFp.publishPackage(appUuid, requestBody, options).then((request) => request(axios, basePath));
4423
+ },
4424
+ /**
4425
+ * 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.
4426
+ * @summary Replace an app\'s CMS module catalog
4427
+ * @param {string} appUuid
4428
+ * @param {{ [key: string]: any | null; }} requestBody
4429
+ * @param {*} [options] Override http request option.
4430
+ * @throws {RequiredError}
4431
+ */
4432
+ upsert(appUuid, requestBody, options) {
4433
+ return localVarFp.upsert(appUuid, requestBody, options).then((request) => request(axios, basePath));
4434
+ },
4435
+ };
4436
+ };
4437
+ exports.CMSModulesApiFactory = CMSModulesApiFactory;
4438
+ /**
4439
+ * CMSModulesApi - object-oriented interface
4440
+ */
4441
+ class CMSModulesApi extends base_1.BaseAPI {
4442
+ /**
4443
+ * Includes retired modules, so a developer can see what a push removed.
4444
+ * @summary List an app\'s CMS modules
4445
+ * @param {string} appUuid
4446
+ * @param {*} [options] Override http request option.
4447
+ * @throws {RequiredError}
4448
+ */
4449
+ list(appUuid, options) {
4450
+ return (0, exports.CMSModulesApiFp)(this.configuration).list(appUuid, options).then((request) => request(this.axios, this.basePath));
4451
+ }
4452
+ /**
4453
+ * Accepts a staged npm tarball (base64) and module manifests. Publishes to the platform registry with the host token, then replaces the catalog.
4454
+ * @summary Publish an app\'s CMS module package
4455
+ * @param {string} appUuid
4456
+ * @param {{ [key: string]: any | null; }} requestBody
4457
+ * @param {*} [options] Override http request option.
4458
+ * @throws {RequiredError}
4459
+ */
4460
+ publishPackage(appUuid, requestBody, options) {
4461
+ return (0, exports.CMSModulesApiFp)(this.configuration).publishPackage(appUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
4462
+ }
4463
+ /**
4464
+ * 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.
4465
+ * @summary Replace an app\'s CMS module catalog
4466
+ * @param {string} appUuid
4467
+ * @param {{ [key: string]: any | null; }} requestBody
4468
+ * @param {*} [options] Override http request option.
4469
+ * @throws {RequiredError}
4470
+ */
4471
+ upsert(appUuid, requestBody, options) {
4472
+ return (0, exports.CMSModulesApiFp)(this.configuration).upsert(appUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
4473
+ }
4474
+ }
4475
+ exports.CMSModulesApi = CMSModulesApi;
4476
+ /**
4477
+ * CMSV2EnvironmentsApi - axios parameter creator
4478
+ */
4479
+ const CMSV2EnvironmentsApiAxiosParamCreator = function (configuration) {
4480
+ return {
4481
+ /**
4482
+ *
4483
+ * @summary Create an environment
4484
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4485
+ * @param {*} [options] Override http request option.
4486
+ * @throws {RequiredError}
4487
+ */
4488
+ create3: (cmsEnvironmentDTO_1, ...args_1) => __awaiter(this, [cmsEnvironmentDTO_1, ...args_1], void 0, function* (cmsEnvironmentDTO, options = {}) {
4489
+ // verify required parameter 'cmsEnvironmentDTO' is not null or undefined
4490
+ (0, common_1.assertParamExists)('create3', 'cmsEnvironmentDTO', cmsEnvironmentDTO);
4491
+ const localVarPath = `/api/v2/cms/environments`;
4492
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4493
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4494
+ let baseOptions;
4495
+ if (configuration) {
4496
+ baseOptions = configuration.baseOptions;
4497
+ }
4498
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4499
+ const localVarHeaderParameter = {};
4500
+ const localVarQueryParameter = {};
4501
+ // authentication bearerAuth required
4502
+ // http bearer authentication required
4503
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4504
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4505
+ localVarHeaderParameter['Accept'] = 'application/json';
4506
+ (0, common_1.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
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cmsEnvironmentDTO, localVarRequestOptions, configuration);
4510
+ return {
4511
+ url: (0, common_1.toPathString)(localVarUrlObj),
4512
+ options: localVarRequestOptions,
4513
+ };
4514
+ }),
4515
+ /**
4516
+ *
4517
+ * @summary Delete an environment except main
4518
+ * @param {string} key
4519
+ * @param {*} [options] Override http request option.
4520
+ * @throws {RequiredError}
4521
+ */
4522
+ delete1: (key_1, ...args_1) => __awaiter(this, [key_1, ...args_1], void 0, function* (key, options = {}) {
4523
+ // verify required parameter 'key' is not null or undefined
4524
+ (0, common_1.assertParamExists)('delete1', 'key', key);
4525
+ const localVarPath = `/api/v2/cms/environments/{key}`
4526
+ .replace('{key}', encodeURIComponent(String(key)));
4527
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4528
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4529
+ let baseOptions;
4530
+ if (configuration) {
4531
+ baseOptions = configuration.baseOptions;
4532
+ }
4533
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4534
+ const localVarHeaderParameter = {};
4535
+ const localVarQueryParameter = {};
4536
+ // authentication bearerAuth required
4537
+ // http bearer authentication required
4538
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4539
+ localVarHeaderParameter['Accept'] = 'application/json';
4540
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4541
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4542
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4543
+ return {
4544
+ url: (0, common_1.toPathString)(localVarUrlObj),
4545
+ options: localVarRequestOptions,
4546
+ };
4547
+ }),
4548
+ /**
4549
+ *
4550
+ * @summary Translation group for a record
4551
+ * @param {string} recordUuid
4552
+ * @param {*} [options] Override http request option.
4553
+ * @throws {RequiredError}
4554
+ */
4555
+ group: (recordUuid_1, ...args_1) => __awaiter(this, [recordUuid_1, ...args_1], void 0, function* (recordUuid, options = {}) {
4556
+ // verify required parameter 'recordUuid' is not null or undefined
4557
+ (0, common_1.assertParamExists)('group', 'recordUuid', recordUuid);
4558
+ const localVarPath = `/api/v2/cms/environments/translations/{recordUuid}`
4559
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
4560
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4561
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4562
+ let baseOptions;
4563
+ if (configuration) {
4564
+ baseOptions = configuration.baseOptions;
4565
+ }
4566
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4567
+ const localVarHeaderParameter = {};
4568
+ const localVarQueryParameter = {};
4569
+ // authentication bearerAuth required
4570
+ // http bearer authentication required
4571
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4572
+ localVarHeaderParameter['Accept'] = 'application/json';
4573
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4574
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4575
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4576
+ return {
4577
+ url: (0, common_1.toPathString)(localVarUrlObj),
4578
+ options: localVarRequestOptions,
4579
+ };
4580
+ }),
4581
+ /**
4582
+ *
4583
+ * @summary Link two records as translations
4584
+ * @param {string} fromUuid
4585
+ * @param {string} toUuid
4586
+ * @param {*} [options] Override http request option.
4587
+ * @throws {RequiredError}
4588
+ */
4589
+ link: (fromUuid_1, toUuid_1, ...args_1) => __awaiter(this, [fromUuid_1, toUuid_1, ...args_1], void 0, function* (fromUuid, toUuid, options = {}) {
4590
+ // verify required parameter 'fromUuid' is not null or undefined
4591
+ (0, common_1.assertParamExists)('link', 'fromUuid', fromUuid);
4592
+ // verify required parameter 'toUuid' is not null or undefined
4593
+ (0, common_1.assertParamExists)('link', 'toUuid', toUuid);
4594
+ const localVarPath = `/api/v2/cms/environments/translations/{fromUuid}/link/{toUuid}`
4595
+ .replace('{fromUuid}', encodeURIComponent(String(fromUuid)))
4596
+ .replace('{toUuid}', encodeURIComponent(String(toUuid)));
4597
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4598
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4599
+ let baseOptions;
4600
+ if (configuration) {
4601
+ baseOptions = configuration.baseOptions;
4602
+ }
4603
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4604
+ const localVarHeaderParameter = {};
4605
+ const localVarQueryParameter = {};
4606
+ // authentication bearerAuth required
4607
+ // http bearer authentication required
4608
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4609
+ localVarHeaderParameter['Accept'] = 'application/json';
4610
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4611
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4612
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4613
+ return {
4614
+ url: (0, common_1.toPathString)(localVarUrlObj),
4615
+ options: localVarRequestOptions,
4616
+ };
4617
+ }),
4618
+ /**
4619
+ *
4620
+ * @summary List company environments
4621
+ * @param {*} [options] Override http request option.
4622
+ * @throws {RequiredError}
4623
+ */
4624
+ list2: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4625
+ const localVarPath = `/api/v2/cms/environments`;
4626
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4627
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4628
+ let baseOptions;
4629
+ if (configuration) {
4630
+ baseOptions = configuration.baseOptions;
4631
+ }
4632
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4633
+ const localVarHeaderParameter = {};
4634
+ const localVarQueryParameter = {};
4635
+ // authentication bearerAuth required
4636
+ // http bearer authentication required
4637
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4638
+ localVarHeaderParameter['Accept'] = 'application/json';
4639
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4640
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4641
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4642
+ return {
4643
+ url: (0, common_1.toPathString)(localVarUrlObj),
4644
+ options: localVarRequestOptions,
4645
+ };
4646
+ }),
4647
+ /**
4648
+ *
4649
+ * @summary Unlink a translation edge
4650
+ * @param {string} fromUuid
4651
+ * @param {string} toUuid
4652
+ * @param {*} [options] Override http request option.
4653
+ * @throws {RequiredError}
4654
+ */
4655
+ unlink: (fromUuid_1, toUuid_1, ...args_1) => __awaiter(this, [fromUuid_1, toUuid_1, ...args_1], void 0, function* (fromUuid, toUuid, options = {}) {
4656
+ // verify required parameter 'fromUuid' is not null or undefined
4657
+ (0, common_1.assertParamExists)('unlink', 'fromUuid', fromUuid);
4658
+ // verify required parameter 'toUuid' is not null or undefined
4659
+ (0, common_1.assertParamExists)('unlink', 'toUuid', toUuid);
4660
+ const localVarPath = `/api/v2/cms/environments/translations/{fromUuid}/link/{toUuid}`
4661
+ .replace('{fromUuid}', encodeURIComponent(String(fromUuid)))
4662
+ .replace('{toUuid}', encodeURIComponent(String(toUuid)));
4663
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4664
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4665
+ let baseOptions;
4666
+ if (configuration) {
4667
+ baseOptions = configuration.baseOptions;
4668
+ }
4669
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4670
+ const localVarHeaderParameter = {};
4671
+ const localVarQueryParameter = {};
4672
+ // authentication bearerAuth required
4673
+ // http bearer authentication required
4674
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4675
+ localVarHeaderParameter['Accept'] = 'application/json';
4676
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4677
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4678
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4679
+ return {
4680
+ url: (0, common_1.toPathString)(localVarUrlObj),
4681
+ options: localVarRequestOptions,
4682
+ };
4683
+ }),
4684
+ /**
4685
+ *
4686
+ * @summary Update routing, auth or htmlLang. Keys are immutable.
4687
+ * @param {string} key
4688
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4689
+ * @param {*} [options] Override http request option.
4690
+ * @throws {RequiredError}
4691
+ */
4692
+ update1: (key_1, cmsEnvironmentDTO_1, ...args_1) => __awaiter(this, [key_1, cmsEnvironmentDTO_1, ...args_1], void 0, function* (key, cmsEnvironmentDTO, options = {}) {
4693
+ // verify required parameter 'key' is not null or undefined
4694
+ (0, common_1.assertParamExists)('update1', 'key', key);
4695
+ // verify required parameter 'cmsEnvironmentDTO' is not null or undefined
4696
+ (0, common_1.assertParamExists)('update1', 'cmsEnvironmentDTO', cmsEnvironmentDTO);
4697
+ const localVarPath = `/api/v2/cms/environments/{key}`
4698
+ .replace('{key}', encodeURIComponent(String(key)));
4699
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4700
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4701
+ let baseOptions;
4702
+ if (configuration) {
4703
+ baseOptions = configuration.baseOptions;
4704
+ }
4705
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4706
+ const localVarHeaderParameter = {};
4707
+ const localVarQueryParameter = {};
4708
+ // authentication bearerAuth required
4709
+ // http bearer authentication required
4710
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4711
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4712
+ localVarHeaderParameter['Accept'] = 'application/json';
4713
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4714
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4715
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4716
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cmsEnvironmentDTO, localVarRequestOptions, configuration);
4717
+ return {
4718
+ url: (0, common_1.toPathString)(localVarUrlObj),
4719
+ options: localVarRequestOptions,
4720
+ };
4721
+ }),
4722
+ };
4723
+ };
4724
+ exports.CMSV2EnvironmentsApiAxiosParamCreator = CMSV2EnvironmentsApiAxiosParamCreator;
4725
+ /**
4726
+ * CMSV2EnvironmentsApi - functional programming interface
4727
+ */
4728
+ const CMSV2EnvironmentsApiFp = function (configuration) {
4729
+ const localVarAxiosParamCreator = (0, exports.CMSV2EnvironmentsApiAxiosParamCreator)(configuration);
4730
+ return {
4731
+ /**
4732
+ *
4733
+ * @summary Create an environment
4734
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4735
+ * @param {*} [options] Override http request option.
4736
+ * @throws {RequiredError}
4737
+ */
4738
+ create3(cmsEnvironmentDTO, options) {
4739
+ return __awaiter(this, void 0, void 0, function* () {
4740
+ var _a, _b, _c;
4741
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create3(cmsEnvironmentDTO, options);
4742
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4743
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2EnvironmentsApi.create3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4744
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4745
+ });
4746
+ },
4747
+ /**
4748
+ *
4749
+ * @summary Delete an environment except main
4750
+ * @param {string} key
4751
+ * @param {*} [options] Override http request option.
4752
+ * @throws {RequiredError}
4753
+ */
4754
+ delete1(key, options) {
4755
+ return __awaiter(this, void 0, void 0, function* () {
4756
+ var _a, _b, _c;
4757
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.delete1(key, options);
4758
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4759
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2EnvironmentsApi.delete1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4760
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4761
+ });
4762
+ },
4763
+ /**
4764
+ *
4765
+ * @summary Translation group for a record
4766
+ * @param {string} recordUuid
4767
+ * @param {*} [options] Override http request option.
4768
+ * @throws {RequiredError}
4769
+ */
4770
+ group(recordUuid, options) {
4771
+ return __awaiter(this, void 0, void 0, function* () {
4772
+ var _a, _b, _c;
4773
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.group(recordUuid, options);
4774
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4775
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2EnvironmentsApi.group']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4776
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4777
+ });
4778
+ },
4779
+ /**
4780
+ *
4781
+ * @summary Link two records as translations
4782
+ * @param {string} fromUuid
4783
+ * @param {string} toUuid
4784
+ * @param {*} [options] Override http request option.
4785
+ * @throws {RequiredError}
4786
+ */
4787
+ link(fromUuid, toUuid, options) {
4788
+ return __awaiter(this, void 0, void 0, function* () {
4789
+ var _a, _b, _c;
4790
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.link(fromUuid, toUuid, options);
4791
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4792
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2EnvironmentsApi.link']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4793
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4794
+ });
4795
+ },
4796
+ /**
4797
+ *
4798
+ * @summary List company environments
4799
+ * @param {*} [options] Override http request option.
4800
+ * @throws {RequiredError}
4801
+ */
4802
+ list2(options) {
4803
+ return __awaiter(this, void 0, void 0, function* () {
4804
+ var _a, _b, _c;
4805
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.list2(options);
4806
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4807
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2EnvironmentsApi.list2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4808
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4809
+ });
4810
+ },
4811
+ /**
4812
+ *
4813
+ * @summary Unlink a translation edge
4814
+ * @param {string} fromUuid
4815
+ * @param {string} toUuid
4816
+ * @param {*} [options] Override http request option.
4817
+ * @throws {RequiredError}
4818
+ */
4819
+ unlink(fromUuid, toUuid, options) {
4820
+ return __awaiter(this, void 0, void 0, function* () {
4821
+ var _a, _b, _c;
4822
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unlink(fromUuid, toUuid, options);
4823
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4824
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2EnvironmentsApi.unlink']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4825
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4826
+ });
4827
+ },
4828
+ /**
4829
+ *
4830
+ * @summary Update routing, auth or htmlLang. Keys are immutable.
4831
+ * @param {string} key
4832
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4833
+ * @param {*} [options] Override http request option.
4834
+ * @throws {RequiredError}
4835
+ */
4836
+ update1(key, cmsEnvironmentDTO, options) {
4837
+ return __awaiter(this, void 0, void 0, function* () {
4838
+ var _a, _b, _c;
4839
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.update1(key, cmsEnvironmentDTO, options);
4840
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4841
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2EnvironmentsApi.update1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4842
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4843
+ });
4844
+ },
4845
+ };
4846
+ };
4847
+ exports.CMSV2EnvironmentsApiFp = CMSV2EnvironmentsApiFp;
4848
+ /**
4849
+ * CMSV2EnvironmentsApi - factory interface
4850
+ */
4851
+ const CMSV2EnvironmentsApiFactory = function (configuration, basePath, axios) {
4852
+ const localVarFp = (0, exports.CMSV2EnvironmentsApiFp)(configuration);
4853
+ return {
4854
+ /**
4855
+ *
4856
+ * @summary Create an environment
4857
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4858
+ * @param {*} [options] Override http request option.
4859
+ * @throws {RequiredError}
4860
+ */
4861
+ create3(cmsEnvironmentDTO, options) {
4862
+ return localVarFp.create3(cmsEnvironmentDTO, options).then((request) => request(axios, basePath));
4863
+ },
4864
+ /**
4865
+ *
4866
+ * @summary Delete an environment except main
4867
+ * @param {string} key
4868
+ * @param {*} [options] Override http request option.
4869
+ * @throws {RequiredError}
4870
+ */
4871
+ delete1(key, options) {
4872
+ return localVarFp.delete1(key, options).then((request) => request(axios, basePath));
4873
+ },
4874
+ /**
4875
+ *
4876
+ * @summary Translation group for a record
4877
+ * @param {string} recordUuid
4878
+ * @param {*} [options] Override http request option.
4879
+ * @throws {RequiredError}
4880
+ */
4881
+ group(recordUuid, options) {
4882
+ return localVarFp.group(recordUuid, options).then((request) => request(axios, basePath));
4883
+ },
4884
+ /**
4885
+ *
4886
+ * @summary Link two records as translations
4887
+ * @param {string} fromUuid
4888
+ * @param {string} toUuid
4889
+ * @param {*} [options] Override http request option.
4890
+ * @throws {RequiredError}
4891
+ */
4892
+ link(fromUuid, toUuid, options) {
4893
+ return localVarFp.link(fromUuid, toUuid, options).then((request) => request(axios, basePath));
4894
+ },
4895
+ /**
4896
+ *
4897
+ * @summary List company environments
4898
+ * @param {*} [options] Override http request option.
4899
+ * @throws {RequiredError}
4900
+ */
4901
+ list2(options) {
4902
+ return localVarFp.list2(options).then((request) => request(axios, basePath));
4903
+ },
4904
+ /**
4905
+ *
4906
+ * @summary Unlink a translation edge
4907
+ * @param {string} fromUuid
4908
+ * @param {string} toUuid
4909
+ * @param {*} [options] Override http request option.
4910
+ * @throws {RequiredError}
4911
+ */
4912
+ unlink(fromUuid, toUuid, options) {
4913
+ return localVarFp.unlink(fromUuid, toUuid, options).then((request) => request(axios, basePath));
4914
+ },
4915
+ /**
4916
+ *
4917
+ * @summary Update routing, auth or htmlLang. Keys are immutable.
4918
+ * @param {string} key
4919
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4920
+ * @param {*} [options] Override http request option.
4921
+ * @throws {RequiredError}
4922
+ */
4923
+ update1(key, cmsEnvironmentDTO, options) {
4924
+ return localVarFp.update1(key, cmsEnvironmentDTO, options).then((request) => request(axios, basePath));
4925
+ },
4926
+ };
4927
+ };
4928
+ exports.CMSV2EnvironmentsApiFactory = CMSV2EnvironmentsApiFactory;
4929
+ /**
4930
+ * CMSV2EnvironmentsApi - object-oriented interface
4931
+ */
4932
+ class CMSV2EnvironmentsApi extends base_1.BaseAPI {
4933
+ /**
4934
+ *
4935
+ * @summary Create an environment
4936
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4937
+ * @param {*} [options] Override http request option.
4938
+ * @throws {RequiredError}
4939
+ */
4940
+ create3(cmsEnvironmentDTO, options) {
4941
+ return (0, exports.CMSV2EnvironmentsApiFp)(this.configuration).create3(cmsEnvironmentDTO, options).then((request) => request(this.axios, this.basePath));
4942
+ }
4943
+ /**
4944
+ *
4945
+ * @summary Delete an environment except main
4946
+ * @param {string} key
4947
+ * @param {*} [options] Override http request option.
4948
+ * @throws {RequiredError}
4949
+ */
4950
+ delete1(key, options) {
4951
+ return (0, exports.CMSV2EnvironmentsApiFp)(this.configuration).delete1(key, options).then((request) => request(this.axios, this.basePath));
4952
+ }
4953
+ /**
4954
+ *
4955
+ * @summary Translation group for a record
4956
+ * @param {string} recordUuid
4957
+ * @param {*} [options] Override http request option.
4958
+ * @throws {RequiredError}
4959
+ */
4960
+ group(recordUuid, options) {
4961
+ return (0, exports.CMSV2EnvironmentsApiFp)(this.configuration).group(recordUuid, options).then((request) => request(this.axios, this.basePath));
4962
+ }
4963
+ /**
4964
+ *
4965
+ * @summary Link two records as translations
4966
+ * @param {string} fromUuid
4967
+ * @param {string} toUuid
4968
+ * @param {*} [options] Override http request option.
4969
+ * @throws {RequiredError}
4970
+ */
4971
+ link(fromUuid, toUuid, options) {
4972
+ return (0, exports.CMSV2EnvironmentsApiFp)(this.configuration).link(fromUuid, toUuid, options).then((request) => request(this.axios, this.basePath));
4973
+ }
4974
+ /**
4975
+ *
4976
+ * @summary List company environments
4977
+ * @param {*} [options] Override http request option.
4978
+ * @throws {RequiredError}
4979
+ */
4980
+ list2(options) {
4981
+ return (0, exports.CMSV2EnvironmentsApiFp)(this.configuration).list2(options).then((request) => request(this.axios, this.basePath));
4982
+ }
4983
+ /**
4984
+ *
4985
+ * @summary Unlink a translation edge
4986
+ * @param {string} fromUuid
4987
+ * @param {string} toUuid
4988
+ * @param {*} [options] Override http request option.
4989
+ * @throws {RequiredError}
4990
+ */
4991
+ unlink(fromUuid, toUuid, options) {
4992
+ return (0, exports.CMSV2EnvironmentsApiFp)(this.configuration).unlink(fromUuid, toUuid, options).then((request) => request(this.axios, this.basePath));
4993
+ }
4994
+ /**
4995
+ *
4996
+ * @summary Update routing, auth or htmlLang. Keys are immutable.
4997
+ * @param {string} key
4998
+ * @param {CmsEnvironmentDTO} cmsEnvironmentDTO
4999
+ * @param {*} [options] Override http request option.
5000
+ * @throws {RequiredError}
5001
+ */
5002
+ update1(key, cmsEnvironmentDTO, options) {
5003
+ return (0, exports.CMSV2EnvironmentsApiFp)(this.configuration).update1(key, cmsEnvironmentDTO, options).then((request) => request(this.axios, this.basePath));
5004
+ }
5005
+ }
5006
+ exports.CMSV2EnvironmentsApi = CMSV2EnvironmentsApi;
5007
+ /**
5008
+ * CMSV2PagesApi - axios parameter creator
5009
+ */
5010
+ const CMSV2PagesApiAxiosParamCreator = function (configuration) {
5011
+ return {
5012
+ /**
5013
+ * 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.
5014
+ * @summary Rewrite a page or a module from a prompt
5015
+ * @param {string} recordUuid
5016
+ * @param {{ [key: string]: any | null; }} requestBody
5017
+ * @param {*} [options] Override http request option.
5018
+ * @throws {RequiredError}
5019
+ */
5020
+ aiRewrite: (recordUuid_1, requestBody_1, ...args_1) => __awaiter(this, [recordUuid_1, requestBody_1, ...args_1], void 0, function* (recordUuid, requestBody, options = {}) {
5021
+ // verify required parameter 'recordUuid' is not null or undefined
5022
+ (0, common_1.assertParamExists)('aiRewrite', 'recordUuid', recordUuid);
5023
+ // verify required parameter 'requestBody' is not null or undefined
5024
+ (0, common_1.assertParamExists)('aiRewrite', 'requestBody', requestBody);
5025
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/ai/rewrite`
5026
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5027
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5028
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5029
+ let baseOptions;
5030
+ if (configuration) {
5031
+ baseOptions = configuration.baseOptions;
5032
+ }
5033
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5034
+ const localVarHeaderParameter = {};
5035
+ const localVarQueryParameter = {};
5036
+ // authentication bearerAuth required
5037
+ // http bearer authentication required
5038
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5039
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5040
+ localVarHeaderParameter['Accept'] = 'application/json';
5041
+ (0, common_1.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
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
5045
+ return {
5046
+ url: (0, common_1.toPathString)(localVarUrlObj),
5047
+ options: localVarRequestOptions,
5048
+ };
5049
+ }),
5050
+ /**
5051
+ *
5052
+ * @summary Create a translated sibling page for an environment
5053
+ * @param {string} recordUuid
5054
+ * @param {string} key
5055
+ * @param {*} [options] Override http request option.
5056
+ * @throws {RequiredError}
5057
+ */
5058
+ createTranslation: (recordUuid_1, key_1, ...args_1) => __awaiter(this, [recordUuid_1, key_1, ...args_1], void 0, function* (recordUuid, key, options = {}) {
5059
+ // verify required parameter 'recordUuid' is not null or undefined
5060
+ (0, common_1.assertParamExists)('createTranslation', 'recordUuid', recordUuid);
5061
+ // verify required parameter 'key' is not null or undefined
5062
+ (0, common_1.assertParamExists)('createTranslation', 'key', key);
5063
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments/{key}/translate`
5064
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5065
+ .replace('{key}', encodeURIComponent(String(key)));
5066
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5067
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5068
+ let baseOptions;
5069
+ if (configuration) {
5070
+ baseOptions = configuration.baseOptions;
5071
+ }
5072
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5073
+ const localVarHeaderParameter = {};
5074
+ const localVarQueryParameter = {};
5075
+ // authentication bearerAuth required
5076
+ // http bearer authentication required
5077
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5078
+ localVarHeaderParameter['Accept'] = 'application/json';
5079
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5080
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5081
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5082
+ return {
5083
+ url: (0, common_1.toPathString)(localVarUrlObj),
5084
+ options: localVarRequestOptions,
5085
+ };
5086
+ }),
5087
+ /**
5088
+ * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page.
5089
+ * @summary Create or reuse the custom 404 page
5090
+ * @param {*} [options] Override http request option.
5091
+ * @throws {RequiredError}
5092
+ */
5093
+ ensureNotFound: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5094
+ const localVarPath = `/api/v2/webpages/v2/pages/not-found`;
5095
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5096
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5097
+ let baseOptions;
5098
+ if (configuration) {
5099
+ baseOptions = configuration.baseOptions;
5100
+ }
5101
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5102
+ const localVarHeaderParameter = {};
5103
+ const localVarQueryParameter = {};
5104
+ // authentication bearerAuth required
5105
+ // http bearer authentication required
5106
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5107
+ localVarHeaderParameter['Accept'] = 'application/json';
5108
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5110
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5111
+ return {
5112
+ url: (0, common_1.toPathString)(localVarUrlObj),
5113
+ options: localVarRequestOptions,
5114
+ };
5115
+ }),
5116
+ /**
5117
+ *
5118
+ * @summary Environment coverage for the builder dropdown
5119
+ * @param {string} recordUuid
5120
+ * @param {*} [options] Override http request option.
5121
+ * @throws {RequiredError}
5122
+ */
5123
+ environmentCoverage: (recordUuid_1, ...args_1) => __awaiter(this, [recordUuid_1, ...args_1], void 0, function* (recordUuid, options = {}) {
5124
+ // verify required parameter 'recordUuid' is not null or undefined
5125
+ (0, common_1.assertParamExists)('environmentCoverage', 'recordUuid', recordUuid);
5126
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments`
5127
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5128
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5129
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5130
+ let baseOptions;
5131
+ if (configuration) {
5132
+ baseOptions = configuration.baseOptions;
5133
+ }
5134
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5135
+ const localVarHeaderParameter = {};
5136
+ const localVarQueryParameter = {};
5137
+ // authentication bearerAuth required
5138
+ // http bearer authentication required
5139
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5140
+ localVarHeaderParameter['Accept'] = 'application/json';
5141
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5143
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5144
+ return {
5145
+ url: (0, common_1.toPathString)(localVarUrlObj),
5146
+ options: localVarRequestOptions,
5147
+ };
5148
+ }),
5149
+ /**
5150
+ *
5151
+ * @summary Load a page for the builder
5152
+ * @param {string} recordUuid
5153
+ * @param {string} [locale]
5154
+ * @param {string} [state]
5155
+ * @param {*} [options] Override http request option.
5156
+ * @throws {RequiredError}
5157
+ */
5158
+ 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 = {}) {
5159
+ // verify required parameter 'recordUuid' is not null or undefined
5160
+ (0, common_1.assertParamExists)('get', 'recordUuid', recordUuid);
5161
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}`
5162
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5163
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5164
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5165
+ let baseOptions;
5166
+ if (configuration) {
5167
+ baseOptions = configuration.baseOptions;
5168
+ }
5169
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5170
+ const localVarHeaderParameter = {};
5171
+ const localVarQueryParameter = {};
5172
+ // authentication bearerAuth required
5173
+ // http bearer authentication required
5174
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5175
+ if (locale !== undefined) {
5176
+ localVarQueryParameter['locale'] = locale;
5177
+ }
5178
+ if (state !== undefined) {
5179
+ localVarQueryParameter['state'] = state;
5180
+ }
5181
+ localVarHeaderParameter['Accept'] = 'application/json';
5182
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5183
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5184
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5185
+ return {
5186
+ url: (0, common_1.toPathString)(localVarUrlObj),
5187
+ options: localVarRequestOptions,
5188
+ };
5189
+ }),
5190
+ /**
5191
+ *
5192
+ * @summary CMS v2 object template document
5193
+ * @param {string} objectUuid
5194
+ * @param {string} [locale]
5195
+ * @param {*} [options] Override http request option.
5196
+ * @throws {RequiredError}
5197
+ */
5198
+ getTemplate: (objectUuid_1, locale_1, ...args_1) => __awaiter(this, [objectUuid_1, locale_1, ...args_1], void 0, function* (objectUuid, locale, options = {}) {
5199
+ // verify required parameter 'objectUuid' is not null or undefined
5200
+ (0, common_1.assertParamExists)('getTemplate', 'objectUuid', objectUuid);
5201
+ const localVarPath = `/api/v2/webpages/v2/pages/templates/{objectUuid}`
5202
+ .replace('{objectUuid}', encodeURIComponent(String(objectUuid)));
5203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5204
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5205
+ let baseOptions;
5206
+ if (configuration) {
5207
+ baseOptions = configuration.baseOptions;
5208
+ }
5209
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5210
+ const localVarHeaderParameter = {};
5211
+ const localVarQueryParameter = {};
5212
+ // authentication bearerAuth required
5213
+ // http bearer authentication required
5214
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5215
+ if (locale !== undefined) {
5216
+ localVarQueryParameter['locale'] = locale;
5217
+ }
5218
+ localVarHeaderParameter['Accept'] = 'application/json';
5219
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5221
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5222
+ return {
5223
+ url: (0, common_1.toPathString)(localVarUrlObj),
5224
+ options: localVarRequestOptions,
5225
+ };
5226
+ }),
5227
+ /**
5228
+ *
5229
+ * @summary Draft snapshots for one locale
5230
+ * @param {string} recordUuid
5231
+ * @param {string} [locale]
5232
+ * @param {*} [options] Override http request option.
5233
+ * @throws {RequiredError}
5234
+ */
5235
+ history: (recordUuid_1, locale_1, ...args_1) => __awaiter(this, [recordUuid_1, locale_1, ...args_1], void 0, function* (recordUuid, locale, options = {}) {
5236
+ // verify required parameter 'recordUuid' is not null or undefined
5237
+ (0, common_1.assertParamExists)('history', 'recordUuid', recordUuid);
5238
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/history`
5239
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5240
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5241
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5242
+ let baseOptions;
5243
+ if (configuration) {
5244
+ baseOptions = configuration.baseOptions;
5245
+ }
5246
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5247
+ const localVarHeaderParameter = {};
5248
+ const localVarQueryParameter = {};
5249
+ // authentication bearerAuth required
5250
+ // http bearer authentication required
5251
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5252
+ if (locale !== undefined) {
5253
+ localVarQueryParameter['locale'] = locale;
5254
+ }
5255
+ localVarHeaderParameter['Accept'] = 'application/json';
5256
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5258
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5259
+ return {
5260
+ url: (0, common_1.toPathString)(localVarUrlObj),
5261
+ options: localVarRequestOptions,
5262
+ };
5263
+ }),
5264
+ /**
5265
+ *
5266
+ * @summary Host this page on another environment
5267
+ * @param {string} recordUuid
5268
+ * @param {string} key
5269
+ * @param {*} [options] Override http request option.
5270
+ * @throws {RequiredError}
5271
+ */
5272
+ hostOnEnvironment: (recordUuid_1, key_1, ...args_1) => __awaiter(this, [recordUuid_1, key_1, ...args_1], void 0, function* (recordUuid, key, options = {}) {
5273
+ // verify required parameter 'recordUuid' is not null or undefined
5274
+ (0, common_1.assertParamExists)('hostOnEnvironment', 'recordUuid', recordUuid);
5275
+ // verify required parameter 'key' is not null or undefined
5276
+ (0, common_1.assertParamExists)('hostOnEnvironment', 'key', key);
5277
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments/{key}/host`
5278
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5279
+ .replace('{key}', encodeURIComponent(String(key)));
5280
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5281
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5282
+ let baseOptions;
5283
+ if (configuration) {
5284
+ baseOptions = configuration.baseOptions;
5285
+ }
5286
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5287
+ const localVarHeaderParameter = {};
5288
+ const localVarQueryParameter = {};
5289
+ // authentication bearerAuth required
5290
+ // http bearer authentication required
5291
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5292
+ localVarHeaderParameter['Accept'] = 'application/json';
5293
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5295
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5296
+ return {
5297
+ url: (0, common_1.toPathString)(localVarUrlObj),
5298
+ options: localVarRequestOptions,
5299
+ };
5300
+ }),
5301
+ /**
5302
+ * 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.
5303
+ * @summary Modules available to this company
5304
+ * @param {*} [options] Override http request option.
5305
+ * @throws {RequiredError}
5306
+ */
5307
+ library: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5308
+ const localVarPath = `/api/v2/webpages/v2/pages/library/modules`;
5309
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5310
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5311
+ let baseOptions;
5312
+ if (configuration) {
5313
+ baseOptions = configuration.baseOptions;
5314
+ }
5315
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5316
+ const localVarHeaderParameter = {};
5317
+ const localVarQueryParameter = {};
5318
+ // authentication bearerAuth required
5319
+ // http bearer authentication required
5320
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5321
+ localVarHeaderParameter['Accept'] = 'application/json';
5322
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5323
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5324
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5325
+ return {
5326
+ url: (0, common_1.toPathString)(localVarUrlObj),
5327
+ options: localVarRequestOptions,
5328
+ };
5329
+ }),
5330
+ /**
5331
+ * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work.
5332
+ * @summary Apply patches to a page draft
5333
+ * @param {string} recordUuid
5334
+ * @param {CmsPagePatchRequest} cmsPagePatchRequest
5335
+ * @param {*} [options] Override http request option.
5336
+ * @throws {RequiredError}
5337
+ */
5338
+ patch: (recordUuid_1, cmsPagePatchRequest_1, ...args_1) => __awaiter(this, [recordUuid_1, cmsPagePatchRequest_1, ...args_1], void 0, function* (recordUuid, cmsPagePatchRequest, options = {}) {
5339
+ // verify required parameter 'recordUuid' is not null or undefined
5340
+ (0, common_1.assertParamExists)('patch', 'recordUuid', recordUuid);
5341
+ // verify required parameter 'cmsPagePatchRequest' is not null or undefined
5342
+ (0, common_1.assertParamExists)('patch', 'cmsPagePatchRequest', cmsPagePatchRequest);
5343
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/patch`
5344
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5345
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5346
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5347
+ let baseOptions;
5348
+ if (configuration) {
5349
+ baseOptions = configuration.baseOptions;
5350
+ }
5351
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5352
+ const localVarHeaderParameter = {};
5353
+ const localVarQueryParameter = {};
5354
+ // authentication bearerAuth required
5355
+ // http bearer authentication required
5356
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5357
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5358
+ localVarHeaderParameter['Accept'] = 'application/json';
5359
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5360
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5361
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5362
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cmsPagePatchRequest, localVarRequestOptions, configuration);
5363
+ return {
5364
+ url: (0, common_1.toPathString)(localVarUrlObj),
5365
+ options: localVarRequestOptions,
5366
+ };
5367
+ }),
5368
+ /**
5369
+ * 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.
5370
+ * @summary Signed preview URL for the builder iframe
5371
+ * @param {string} recordUuid
5372
+ * @param {string} [locale]
5373
+ * @param {string} [state]
5374
+ * @param {*} [options] Override http request option.
5375
+ * @throws {RequiredError}
5376
+ */
5377
+ 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 = {}) {
5378
+ // verify required parameter 'recordUuid' is not null or undefined
5379
+ (0, common_1.assertParamExists)('previewLink', 'recordUuid', recordUuid);
5380
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/preview-link`
5381
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5382
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5383
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5384
+ let baseOptions;
5385
+ if (configuration) {
5386
+ baseOptions = configuration.baseOptions;
5387
+ }
5388
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5389
+ const localVarHeaderParameter = {};
5390
+ const localVarQueryParameter = {};
5391
+ // authentication bearerAuth required
5392
+ // http bearer authentication required
5393
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5394
+ if (locale !== undefined) {
5395
+ localVarQueryParameter['locale'] = locale;
5396
+ }
5397
+ if (state !== undefined) {
5398
+ localVarQueryParameter['state'] = state;
5399
+ }
5400
+ localVarHeaderParameter['Accept'] = 'application/json';
5401
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5403
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5404
+ return {
5405
+ url: (0, common_1.toPathString)(localVarUrlObj),
5406
+ options: localVarRequestOptions,
5407
+ };
5408
+ }),
5409
+ /**
5410
+ * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
5411
+ * @summary Publish one locale, or all of them
5412
+ * @param {string} recordUuid
5413
+ * @param {string} [locale]
5414
+ * @param {boolean} [allLocales]
5415
+ * @param {*} [options] Override http request option.
5416
+ * @throws {RequiredError}
5417
+ */
5418
+ 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 = {}) {
5419
+ // verify required parameter 'recordUuid' is not null or undefined
5420
+ (0, common_1.assertParamExists)('publish', 'recordUuid', recordUuid);
5421
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/publish`
5422
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5423
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5424
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5425
+ let baseOptions;
5426
+ if (configuration) {
5427
+ baseOptions = configuration.baseOptions;
5428
+ }
5429
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5430
+ const localVarHeaderParameter = {};
5431
+ const localVarQueryParameter = {};
5432
+ // authentication bearerAuth required
5433
+ // http bearer authentication required
5434
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5435
+ if (locale !== undefined) {
5436
+ localVarQueryParameter['locale'] = locale;
5437
+ }
5438
+ if (allLocales !== undefined) {
5439
+ localVarQueryParameter['allLocales'] = allLocales;
5440
+ }
5441
+ localVarHeaderParameter['Accept'] = 'application/json';
5442
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5443
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5444
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5445
+ return {
5446
+ url: (0, common_1.toPathString)(localVarUrlObj),
5447
+ options: localVarRequestOptions,
5448
+ };
5449
+ }),
5450
+ /**
5451
+ *
5452
+ * @summary Restore a draft snapshot
5453
+ * @param {string} recordUuid
5454
+ * @param {number} index
5455
+ * @param {string} [locale]
5456
+ * @param {*} [options] Override http request option.
5457
+ * @throws {RequiredError}
5458
+ */
5459
+ 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 = {}) {
5460
+ // verify required parameter 'recordUuid' is not null or undefined
5461
+ (0, common_1.assertParamExists)('restoreHistory', 'recordUuid', recordUuid);
5462
+ // verify required parameter 'index' is not null or undefined
5463
+ (0, common_1.assertParamExists)('restoreHistory', 'index', index);
5464
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/history/{index}/restore`
5465
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5466
+ .replace('{index}', encodeURIComponent(String(index)));
5467
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5468
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5469
+ let baseOptions;
5470
+ if (configuration) {
5471
+ baseOptions = configuration.baseOptions;
5472
+ }
5473
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5474
+ const localVarHeaderParameter = {};
5475
+ const localVarQueryParameter = {};
5476
+ // authentication bearerAuth required
5477
+ // http bearer authentication required
5478
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5479
+ if (locale !== undefined) {
5480
+ localVarQueryParameter['locale'] = locale;
5481
+ }
5482
+ localVarHeaderParameter['Accept'] = 'application/json';
5483
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5485
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5486
+ return {
5487
+ url: (0, common_1.toPathString)(localVarUrlObj),
5488
+ options: localVarRequestOptions,
5489
+ };
5490
+ }),
5491
+ /**
5492
+ *
5493
+ * @summary Replace a page draft
5494
+ * @param {string} recordUuid
5495
+ * @param {CmsPageDocument} cmsPageDocument
5496
+ * @param {string} [locale]
5497
+ * @param {*} [options] Override http request option.
5498
+ * @throws {RequiredError}
5499
+ */
5500
+ 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 = {}) {
5501
+ // verify required parameter 'recordUuid' is not null or undefined
5502
+ (0, common_1.assertParamExists)('save', 'recordUuid', recordUuid);
5503
+ // verify required parameter 'cmsPageDocument' is not null or undefined
5504
+ (0, common_1.assertParamExists)('save', 'cmsPageDocument', cmsPageDocument);
5505
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}`
5506
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5507
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5508
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5509
+ let baseOptions;
5510
+ if (configuration) {
5511
+ baseOptions = configuration.baseOptions;
5512
+ }
5513
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5514
+ const localVarHeaderParameter = {};
5515
+ const localVarQueryParameter = {};
5516
+ // authentication bearerAuth required
5517
+ // http bearer authentication required
5518
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5519
+ if (locale !== undefined) {
5520
+ localVarQueryParameter['locale'] = locale;
5521
+ }
5522
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5523
+ localVarHeaderParameter['Accept'] = 'application/json';
5524
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5525
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5526
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5527
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cmsPageDocument, localVarRequestOptions, configuration);
5528
+ return {
5529
+ url: (0, common_1.toPathString)(localVarUrlObj),
5530
+ options: localVarRequestOptions,
5531
+ };
5532
+ }),
5533
+ /**
5534
+ *
5535
+ * @summary Update slug, title, excerpt, SEO and page scripts
5536
+ * @param {string} recordUuid
5537
+ * @param {{ [key: string]: any | null; }} requestBody
5538
+ * @param {string} [locale]
5539
+ * @param {*} [options] Override http request option.
5540
+ * @throws {RequiredError}
5541
+ */
5542
+ 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 = {}) {
5543
+ // verify required parameter 'recordUuid' is not null or undefined
5544
+ (0, common_1.assertParamExists)('saveMeta', 'recordUuid', recordUuid);
5545
+ // verify required parameter 'requestBody' is not null or undefined
5546
+ (0, common_1.assertParamExists)('saveMeta', 'requestBody', requestBody);
5547
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/meta`
5548
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5549
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5550
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5551
+ let baseOptions;
5552
+ if (configuration) {
5553
+ baseOptions = configuration.baseOptions;
5554
+ }
5555
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5556
+ const localVarHeaderParameter = {};
5557
+ const localVarQueryParameter = {};
5558
+ // authentication bearerAuth required
5559
+ // http bearer authentication required
5560
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5561
+ if (locale !== undefined) {
5562
+ localVarQueryParameter['locale'] = locale;
5563
+ }
5564
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5565
+ localVarHeaderParameter['Accept'] = 'application/json';
5566
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5567
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5568
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5569
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
5570
+ return {
5571
+ url: (0, common_1.toPathString)(localVarUrlObj),
5572
+ options: localVarRequestOptions,
5573
+ };
5574
+ }),
5575
+ /**
5576
+ *
5577
+ * @summary Replace a CMS v2 object template
5578
+ * @param {string} objectUuid
5579
+ * @param {CmsPageDocument} cmsPageDocument
5580
+ * @param {string} [locale]
5581
+ * @param {*} [options] Override http request option.
5582
+ * @throws {RequiredError}
5583
+ */
5584
+ 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 = {}) {
5585
+ // verify required parameter 'objectUuid' is not null or undefined
5586
+ (0, common_1.assertParamExists)('saveTemplate', 'objectUuid', objectUuid);
5587
+ // verify required parameter 'cmsPageDocument' is not null or undefined
5588
+ (0, common_1.assertParamExists)('saveTemplate', 'cmsPageDocument', cmsPageDocument);
5589
+ const localVarPath = `/api/v2/webpages/v2/pages/templates/{objectUuid}`
5590
+ .replace('{objectUuid}', encodeURIComponent(String(objectUuid)));
5591
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5592
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5593
+ let baseOptions;
5594
+ if (configuration) {
5595
+ baseOptions = configuration.baseOptions;
5596
+ }
5597
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5598
+ const localVarHeaderParameter = {};
5599
+ const localVarQueryParameter = {};
5600
+ // authentication bearerAuth required
5601
+ // http bearer authentication required
5602
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5603
+ if (locale !== undefined) {
5604
+ localVarQueryParameter['locale'] = locale;
5605
+ }
5606
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5607
+ localVarHeaderParameter['Accept'] = 'application/json';
5608
+ (0, common_1.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
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cmsPageDocument, localVarRequestOptions, configuration);
5612
+ return {
5613
+ url: (0, common_1.toPathString)(localVarUrlObj),
5614
+ options: localVarRequestOptions,
5615
+ };
5616
+ }),
5617
+ /**
5618
+ *
5619
+ * @summary Take one locale offline
5620
+ * @param {string} recordUuid
5621
+ * @param {string} [locale]
5622
+ * @param {*} [options] Override http request option.
5623
+ * @throws {RequiredError}
5624
+ */
5625
+ unpublish: (recordUuid_1, locale_1, ...args_1) => __awaiter(this, [recordUuid_1, locale_1, ...args_1], void 0, function* (recordUuid, locale, options = {}) {
5626
+ // verify required parameter 'recordUuid' is not null or undefined
5627
+ (0, common_1.assertParamExists)('unpublish', 'recordUuid', recordUuid);
5628
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/unpublish`
5629
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)));
5630
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5631
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5632
+ let baseOptions;
5633
+ if (configuration) {
5634
+ baseOptions = configuration.baseOptions;
5635
+ }
5636
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5637
+ const localVarHeaderParameter = {};
5638
+ const localVarQueryParameter = {};
5639
+ // authentication bearerAuth required
5640
+ // http bearer authentication required
5641
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5642
+ if (locale !== undefined) {
5643
+ localVarQueryParameter['locale'] = locale;
5644
+ }
5645
+ localVarHeaderParameter['Accept'] = 'application/json';
5646
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5647
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5648
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5649
+ return {
5650
+ url: (0, common_1.toPathString)(localVarUrlObj),
5651
+ options: localVarRequestOptions,
5652
+ };
5653
+ }),
5654
+ /**
5655
+ *
5656
+ * @summary Remove an environment from this page only
5657
+ * @param {string} recordUuid
5658
+ * @param {string} key
5659
+ * @param {*} [options] Override http request option.
5660
+ * @throws {RequiredError}
5661
+ */
5662
+ unselectEnvironment: (recordUuid_1, key_1, ...args_1) => __awaiter(this, [recordUuid_1, key_1, ...args_1], void 0, function* (recordUuid, key, options = {}) {
5663
+ // verify required parameter 'recordUuid' is not null or undefined
5664
+ (0, common_1.assertParamExists)('unselectEnvironment', 'recordUuid', recordUuid);
5665
+ // verify required parameter 'key' is not null or undefined
5666
+ (0, common_1.assertParamExists)('unselectEnvironment', 'key', key);
5667
+ const localVarPath = `/api/v2/webpages/v2/pages/{recordUuid}/environments/{key}`
5668
+ .replace('{recordUuid}', encodeURIComponent(String(recordUuid)))
5669
+ .replace('{key}', encodeURIComponent(String(key)));
5670
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5671
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5672
+ let baseOptions;
5673
+ if (configuration) {
5674
+ baseOptions = configuration.baseOptions;
5675
+ }
5676
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5677
+ const localVarHeaderParameter = {};
5678
+ const localVarQueryParameter = {};
5679
+ // authentication bearerAuth required
5680
+ // http bearer authentication required
5681
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5682
+ localVarHeaderParameter['Accept'] = 'application/json';
5683
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5684
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5685
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5686
+ return {
5687
+ url: (0, common_1.toPathString)(localVarUrlObj),
5688
+ options: localVarRequestOptions,
5689
+ };
5690
+ }),
5691
+ };
5692
+ };
5693
+ exports.CMSV2PagesApiAxiosParamCreator = CMSV2PagesApiAxiosParamCreator;
5694
+ /**
5695
+ * CMSV2PagesApi - functional programming interface
5696
+ */
5697
+ const CMSV2PagesApiFp = function (configuration) {
5698
+ const localVarAxiosParamCreator = (0, exports.CMSV2PagesApiAxiosParamCreator)(configuration);
5699
+ return {
5700
+ /**
5701
+ * 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.
5702
+ * @summary Rewrite a page or a module from a prompt
5703
+ * @param {string} recordUuid
5704
+ * @param {{ [key: string]: any | null; }} requestBody
5705
+ * @param {*} [options] Override http request option.
5706
+ * @throws {RequiredError}
5707
+ */
5708
+ aiRewrite(recordUuid, requestBody, options) {
5709
+ return __awaiter(this, void 0, void 0, function* () {
5710
+ var _a, _b, _c;
5711
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiRewrite(recordUuid, requestBody, options);
5712
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5713
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.aiRewrite']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5714
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5715
+ });
5716
+ },
5717
+ /**
5718
+ *
5719
+ * @summary Create a translated sibling page for an environment
5720
+ * @param {string} recordUuid
5721
+ * @param {string} key
5722
+ * @param {*} [options] Override http request option.
5723
+ * @throws {RequiredError}
5724
+ */
5725
+ createTranslation(recordUuid, key, options) {
5726
+ return __awaiter(this, void 0, void 0, function* () {
5727
+ var _a, _b, _c;
5728
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTranslation(recordUuid, key, options);
5729
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5730
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.createTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5731
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5732
+ });
5733
+ },
5734
+ /**
5735
+ * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page.
5736
+ * @summary Create or reuse the custom 404 page
5737
+ * @param {*} [options] Override http request option.
5738
+ * @throws {RequiredError}
5739
+ */
5740
+ ensureNotFound(options) {
5741
+ return __awaiter(this, void 0, void 0, function* () {
5742
+ var _a, _b, _c;
5743
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ensureNotFound(options);
5744
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5745
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.ensureNotFound']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5746
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5747
+ });
5748
+ },
5749
+ /**
5750
+ *
5751
+ * @summary Environment coverage for the builder dropdown
5752
+ * @param {string} recordUuid
5753
+ * @param {*} [options] Override http request option.
5754
+ * @throws {RequiredError}
5755
+ */
5756
+ environmentCoverage(recordUuid, options) {
5757
+ return __awaiter(this, void 0, void 0, function* () {
5758
+ var _a, _b, _c;
5759
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.environmentCoverage(recordUuid, options);
5760
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5761
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.environmentCoverage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5762
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5763
+ });
5764
+ },
5765
+ /**
5766
+ *
5767
+ * @summary Load a page for the builder
5768
+ * @param {string} recordUuid
5769
+ * @param {string} [locale]
5770
+ * @param {string} [state]
5771
+ * @param {*} [options] Override http request option.
5772
+ * @throws {RequiredError}
5773
+ */
5774
+ get(recordUuid, locale, state, options) {
5775
+ return __awaiter(this, void 0, void 0, function* () {
5776
+ var _a, _b, _c;
5777
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get(recordUuid, locale, state, options);
5778
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5779
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.get']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5780
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5781
+ });
5782
+ },
5783
+ /**
5784
+ *
5785
+ * @summary CMS v2 object template document
5786
+ * @param {string} objectUuid
5787
+ * @param {string} [locale]
5788
+ * @param {*} [options] Override http request option.
5789
+ * @throws {RequiredError}
5790
+ */
5791
+ getTemplate(objectUuid, locale, options) {
5792
+ return __awaiter(this, void 0, void 0, function* () {
5793
+ var _a, _b, _c;
5794
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTemplate(objectUuid, locale, options);
5795
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5796
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.getTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5797
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5798
+ });
5799
+ },
5800
+ /**
5801
+ *
5802
+ * @summary Draft snapshots for one locale
5803
+ * @param {string} recordUuid
5804
+ * @param {string} [locale]
5805
+ * @param {*} [options] Override http request option.
5806
+ * @throws {RequiredError}
5807
+ */
5808
+ history(recordUuid, locale, options) {
5809
+ return __awaiter(this, void 0, void 0, function* () {
5810
+ var _a, _b, _c;
5811
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.history(recordUuid, locale, options);
5812
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5813
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.history']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5814
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5815
+ });
5816
+ },
5817
+ /**
5818
+ *
5819
+ * @summary Host this page on another environment
5820
+ * @param {string} recordUuid
5821
+ * @param {string} key
5822
+ * @param {*} [options] Override http request option.
5823
+ * @throws {RequiredError}
5824
+ */
5825
+ hostOnEnvironment(recordUuid, key, options) {
5826
+ return __awaiter(this, void 0, void 0, function* () {
5827
+ var _a, _b, _c;
5828
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.hostOnEnvironment(recordUuid, key, options);
5829
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5830
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.hostOnEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5831
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5832
+ });
5833
+ },
5834
+ /**
5835
+ * 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.
5836
+ * @summary Modules available to this company
5837
+ * @param {*} [options] Override http request option.
5838
+ * @throws {RequiredError}
5839
+ */
5840
+ library(options) {
5841
+ return __awaiter(this, void 0, void 0, function* () {
5842
+ var _a, _b, _c;
5843
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.library(options);
5844
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5845
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.library']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5846
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5847
+ });
5848
+ },
5849
+ /**
5850
+ * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work.
5851
+ * @summary Apply patches to a page draft
5852
+ * @param {string} recordUuid
5853
+ * @param {CmsPagePatchRequest} cmsPagePatchRequest
5854
+ * @param {*} [options] Override http request option.
5855
+ * @throws {RequiredError}
5856
+ */
5857
+ patch(recordUuid, cmsPagePatchRequest, options) {
5858
+ return __awaiter(this, void 0, void 0, function* () {
5859
+ var _a, _b, _c;
5860
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.patch(recordUuid, cmsPagePatchRequest, options);
5861
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5862
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.patch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5863
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5864
+ });
5865
+ },
5866
+ /**
5867
+ * 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.
5868
+ * @summary Signed preview URL for the builder iframe
5869
+ * @param {string} recordUuid
5870
+ * @param {string} [locale]
5871
+ * @param {string} [state]
5872
+ * @param {*} [options] Override http request option.
5873
+ * @throws {RequiredError}
5874
+ */
5875
+ previewLink(recordUuid, locale, state, options) {
5876
+ return __awaiter(this, void 0, void 0, function* () {
5877
+ var _a, _b, _c;
5878
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.previewLink(recordUuid, locale, state, options);
5879
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5880
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.previewLink']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5881
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5882
+ });
5883
+ },
5884
+ /**
5885
+ * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
5886
+ * @summary Publish one locale, or all of them
5887
+ * @param {string} recordUuid
5888
+ * @param {string} [locale]
5889
+ * @param {boolean} [allLocales]
5890
+ * @param {*} [options] Override http request option.
5891
+ * @throws {RequiredError}
5892
+ */
5893
+ publish(recordUuid, locale, allLocales, options) {
5894
+ return __awaiter(this, void 0, void 0, function* () {
5895
+ var _a, _b, _c;
5896
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publish(recordUuid, locale, allLocales, options);
5897
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5898
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.publish']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5899
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5900
+ });
5901
+ },
5902
+ /**
5903
+ *
5904
+ * @summary Restore a draft snapshot
5905
+ * @param {string} recordUuid
5906
+ * @param {number} index
5907
+ * @param {string} [locale]
5908
+ * @param {*} [options] Override http request option.
5909
+ * @throws {RequiredError}
5910
+ */
5911
+ restoreHistory(recordUuid, index, locale, options) {
5912
+ return __awaiter(this, void 0, void 0, function* () {
5913
+ var _a, _b, _c;
5914
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreHistory(recordUuid, index, locale, options);
5915
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5916
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.restoreHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5917
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5918
+ });
5919
+ },
5920
+ /**
5921
+ *
5922
+ * @summary Replace a page draft
5923
+ * @param {string} recordUuid
5924
+ * @param {CmsPageDocument} cmsPageDocument
5925
+ * @param {string} [locale]
5926
+ * @param {*} [options] Override http request option.
5927
+ * @throws {RequiredError}
5928
+ */
5929
+ save(recordUuid, cmsPageDocument, locale, options) {
5930
+ return __awaiter(this, void 0, void 0, function* () {
5931
+ var _a, _b, _c;
5932
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.save(recordUuid, cmsPageDocument, locale, options);
5933
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5934
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.save']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5935
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5936
+ });
5937
+ },
5938
+ /**
5939
+ *
5940
+ * @summary Update slug, title, excerpt, SEO and page scripts
5941
+ * @param {string} recordUuid
5942
+ * @param {{ [key: string]: any | null; }} requestBody
5943
+ * @param {string} [locale]
5944
+ * @param {*} [options] Override http request option.
5945
+ * @throws {RequiredError}
5946
+ */
5947
+ saveMeta(recordUuid, requestBody, locale, options) {
5948
+ return __awaiter(this, void 0, void 0, function* () {
5949
+ var _a, _b, _c;
5950
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.saveMeta(recordUuid, requestBody, locale, options);
5951
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5952
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.saveMeta']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5953
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5954
+ });
5955
+ },
5956
+ /**
5957
+ *
5958
+ * @summary Replace a CMS v2 object template
5959
+ * @param {string} objectUuid
5960
+ * @param {CmsPageDocument} cmsPageDocument
5961
+ * @param {string} [locale]
5962
+ * @param {*} [options] Override http request option.
5963
+ * @throws {RequiredError}
5964
+ */
5965
+ saveTemplate(objectUuid, cmsPageDocument, locale, options) {
5966
+ return __awaiter(this, void 0, void 0, function* () {
5967
+ var _a, _b, _c;
5968
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.saveTemplate(objectUuid, cmsPageDocument, locale, options);
5969
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5970
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.saveTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5971
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5972
+ });
5973
+ },
5974
+ /**
5975
+ *
5976
+ * @summary Take one locale offline
5977
+ * @param {string} recordUuid
5978
+ * @param {string} [locale]
5979
+ * @param {*} [options] Override http request option.
5980
+ * @throws {RequiredError}
5981
+ */
5982
+ unpublish(recordUuid, locale, options) {
5983
+ return __awaiter(this, void 0, void 0, function* () {
5984
+ var _a, _b, _c;
5985
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unpublish(recordUuid, locale, options);
5986
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5987
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.unpublish']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5988
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5989
+ });
5990
+ },
5991
+ /**
5992
+ *
5993
+ * @summary Remove an environment from this page only
5994
+ * @param {string} recordUuid
5995
+ * @param {string} key
5996
+ * @param {*} [options] Override http request option.
5997
+ * @throws {RequiredError}
5998
+ */
5999
+ unselectEnvironment(recordUuid, key, options) {
6000
+ return __awaiter(this, void 0, void 0, function* () {
6001
+ var _a, _b, _c;
6002
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unselectEnvironment(recordUuid, key, options);
6003
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6004
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PagesApi.unselectEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6005
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6006
+ });
6007
+ },
6008
+ };
6009
+ };
6010
+ exports.CMSV2PagesApiFp = CMSV2PagesApiFp;
6011
+ /**
6012
+ * CMSV2PagesApi - factory interface
6013
+ */
6014
+ const CMSV2PagesApiFactory = function (configuration, basePath, axios) {
6015
+ const localVarFp = (0, exports.CMSV2PagesApiFp)(configuration);
6016
+ return {
6017
+ /**
6018
+ * 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.
6019
+ * @summary Rewrite a page or a module from a prompt
6020
+ * @param {string} recordUuid
6021
+ * @param {{ [key: string]: any | null; }} requestBody
6022
+ * @param {*} [options] Override http request option.
6023
+ * @throws {RequiredError}
6024
+ */
6025
+ aiRewrite(recordUuid, requestBody, options) {
6026
+ return localVarFp.aiRewrite(recordUuid, requestBody, options).then((request) => request(axios, basePath));
6027
+ },
6028
+ /**
6029
+ *
6030
+ * @summary Create a translated sibling page for an environment
6031
+ * @param {string} recordUuid
6032
+ * @param {string} key
6033
+ * @param {*} [options] Override http request option.
6034
+ * @throws {RequiredError}
6035
+ */
6036
+ createTranslation(recordUuid, key, options) {
6037
+ return localVarFp.createTranslation(recordUuid, key, options).then((request) => request(axios, basePath));
6038
+ },
6039
+ /**
6040
+ * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page.
6041
+ * @summary Create or reuse the custom 404 page
6042
+ * @param {*} [options] Override http request option.
6043
+ * @throws {RequiredError}
6044
+ */
6045
+ ensureNotFound(options) {
6046
+ return localVarFp.ensureNotFound(options).then((request) => request(axios, basePath));
6047
+ },
6048
+ /**
6049
+ *
6050
+ * @summary Environment coverage for the builder dropdown
6051
+ * @param {string} recordUuid
6052
+ * @param {*} [options] Override http request option.
6053
+ * @throws {RequiredError}
6054
+ */
6055
+ environmentCoverage(recordUuid, options) {
6056
+ return localVarFp.environmentCoverage(recordUuid, options).then((request) => request(axios, basePath));
6057
+ },
6058
+ /**
6059
+ *
6060
+ * @summary Load a page for the builder
6061
+ * @param {string} recordUuid
6062
+ * @param {string} [locale]
6063
+ * @param {string} [state]
6064
+ * @param {*} [options] Override http request option.
6065
+ * @throws {RequiredError}
6066
+ */
6067
+ get(recordUuid, locale, state, options) {
6068
+ return localVarFp.get(recordUuid, locale, state, options).then((request) => request(axios, basePath));
6069
+ },
6070
+ /**
6071
+ *
6072
+ * @summary CMS v2 object template document
6073
+ * @param {string} objectUuid
6074
+ * @param {string} [locale]
6075
+ * @param {*} [options] Override http request option.
6076
+ * @throws {RequiredError}
6077
+ */
6078
+ getTemplate(objectUuid, locale, options) {
6079
+ return localVarFp.getTemplate(objectUuid, locale, options).then((request) => request(axios, basePath));
6080
+ },
6081
+ /**
6082
+ *
6083
+ * @summary Draft snapshots for one locale
6084
+ * @param {string} recordUuid
6085
+ * @param {string} [locale]
6086
+ * @param {*} [options] Override http request option.
6087
+ * @throws {RequiredError}
6088
+ */
6089
+ history(recordUuid, locale, options) {
6090
+ return localVarFp.history(recordUuid, locale, options).then((request) => request(axios, basePath));
6091
+ },
6092
+ /**
6093
+ *
6094
+ * @summary Host this page on another environment
6095
+ * @param {string} recordUuid
6096
+ * @param {string} key
6097
+ * @param {*} [options] Override http request option.
6098
+ * @throws {RequiredError}
6099
+ */
6100
+ hostOnEnvironment(recordUuid, key, options) {
6101
+ return localVarFp.hostOnEnvironment(recordUuid, key, options).then((request) => request(axios, basePath));
6102
+ },
6103
+ /**
6104
+ * 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.
6105
+ * @summary Modules available to this company
6106
+ * @param {*} [options] Override http request option.
6107
+ * @throws {RequiredError}
6108
+ */
6109
+ library(options) {
6110
+ return localVarFp.library(options).then((request) => request(axios, basePath));
6111
+ },
6112
+ /**
6113
+ * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work.
6114
+ * @summary Apply patches to a page draft
6115
+ * @param {string} recordUuid
6116
+ * @param {CmsPagePatchRequest} cmsPagePatchRequest
6117
+ * @param {*} [options] Override http request option.
6118
+ * @throws {RequiredError}
6119
+ */
6120
+ patch(recordUuid, cmsPagePatchRequest, options) {
6121
+ return localVarFp.patch(recordUuid, cmsPagePatchRequest, options).then((request) => request(axios, basePath));
6122
+ },
6123
+ /**
6124
+ * 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.
6125
+ * @summary Signed preview URL for the builder iframe
6126
+ * @param {string} recordUuid
6127
+ * @param {string} [locale]
6128
+ * @param {string} [state]
6129
+ * @param {*} [options] Override http request option.
6130
+ * @throws {RequiredError}
6131
+ */
6132
+ previewLink(recordUuid, locale, state, options) {
6133
+ return localVarFp.previewLink(recordUuid, locale, state, options).then((request) => request(axios, basePath));
6134
+ },
6135
+ /**
6136
+ * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
6137
+ * @summary Publish one locale, or all of them
6138
+ * @param {string} recordUuid
6139
+ * @param {string} [locale]
6140
+ * @param {boolean} [allLocales]
6141
+ * @param {*} [options] Override http request option.
6142
+ * @throws {RequiredError}
6143
+ */
6144
+ publish(recordUuid, locale, allLocales, options) {
6145
+ return localVarFp.publish(recordUuid, locale, allLocales, options).then((request) => request(axios, basePath));
6146
+ },
6147
+ /**
6148
+ *
6149
+ * @summary Restore a draft snapshot
6150
+ * @param {string} recordUuid
6151
+ * @param {number} index
6152
+ * @param {string} [locale]
6153
+ * @param {*} [options] Override http request option.
6154
+ * @throws {RequiredError}
6155
+ */
6156
+ restoreHistory(recordUuid, index, locale, options) {
6157
+ return localVarFp.restoreHistory(recordUuid, index, locale, options).then((request) => request(axios, basePath));
6158
+ },
6159
+ /**
6160
+ *
6161
+ * @summary Replace a page draft
6162
+ * @param {string} recordUuid
6163
+ * @param {CmsPageDocument} cmsPageDocument
6164
+ * @param {string} [locale]
6165
+ * @param {*} [options] Override http request option.
6166
+ * @throws {RequiredError}
6167
+ */
6168
+ save(recordUuid, cmsPageDocument, locale, options) {
6169
+ return localVarFp.save(recordUuid, cmsPageDocument, locale, options).then((request) => request(axios, basePath));
6170
+ },
6171
+ /**
6172
+ *
6173
+ * @summary Update slug, title, excerpt, SEO and page scripts
6174
+ * @param {string} recordUuid
6175
+ * @param {{ [key: string]: any | null; }} requestBody
6176
+ * @param {string} [locale]
6177
+ * @param {*} [options] Override http request option.
6178
+ * @throws {RequiredError}
6179
+ */
6180
+ saveMeta(recordUuid, requestBody, locale, options) {
6181
+ return localVarFp.saveMeta(recordUuid, requestBody, locale, options).then((request) => request(axios, basePath));
6182
+ },
6183
+ /**
6184
+ *
6185
+ * @summary Replace a CMS v2 object template
6186
+ * @param {string} objectUuid
6187
+ * @param {CmsPageDocument} cmsPageDocument
6188
+ * @param {string} [locale]
6189
+ * @param {*} [options] Override http request option.
6190
+ * @throws {RequiredError}
6191
+ */
6192
+ saveTemplate(objectUuid, cmsPageDocument, locale, options) {
6193
+ return localVarFp.saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(axios, basePath));
6194
+ },
6195
+ /**
6196
+ *
6197
+ * @summary Take one locale offline
6198
+ * @param {string} recordUuid
6199
+ * @param {string} [locale]
6200
+ * @param {*} [options] Override http request option.
6201
+ * @throws {RequiredError}
6202
+ */
6203
+ unpublish(recordUuid, locale, options) {
6204
+ return localVarFp.unpublish(recordUuid, locale, options).then((request) => request(axios, basePath));
6205
+ },
6206
+ /**
6207
+ *
6208
+ * @summary Remove an environment from this page only
6209
+ * @param {string} recordUuid
6210
+ * @param {string} key
6211
+ * @param {*} [options] Override http request option.
6212
+ * @throws {RequiredError}
6213
+ */
6214
+ unselectEnvironment(recordUuid, key, options) {
6215
+ return localVarFp.unselectEnvironment(recordUuid, key, options).then((request) => request(axios, basePath));
6216
+ },
6217
+ };
6218
+ };
6219
+ exports.CMSV2PagesApiFactory = CMSV2PagesApiFactory;
6220
+ /**
6221
+ * CMSV2PagesApi - object-oriented interface
6222
+ */
6223
+ class CMSV2PagesApi extends base_1.BaseAPI {
6224
+ /**
6225
+ * 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.
6226
+ * @summary Rewrite a page or a module from a prompt
6227
+ * @param {string} recordUuid
6228
+ * @param {{ [key: string]: any | null; }} requestBody
6229
+ * @param {*} [options] Override http request option.
6230
+ * @throws {RequiredError}
6231
+ */
6232
+ aiRewrite(recordUuid, requestBody, options) {
6233
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).aiRewrite(recordUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
6234
+ }
6235
+ /**
6236
+ *
6237
+ * @summary Create a translated sibling page for an environment
6238
+ * @param {string} recordUuid
6239
+ * @param {string} key
6240
+ * @param {*} [options] Override http request option.
6241
+ * @throws {RequiredError}
6242
+ */
6243
+ createTranslation(recordUuid, key, options) {
6244
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).createTranslation(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
6245
+ }
6246
+ /**
6247
+ * Finds the page at /404 on the root Webpage object, or creates an empty draft there, and stores it as the company custom 404 page.
6248
+ * @summary Create or reuse the custom 404 page
6249
+ * @param {*} [options] Override http request option.
6250
+ * @throws {RequiredError}
6251
+ */
6252
+ ensureNotFound(options) {
6253
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).ensureNotFound(options).then((request) => request(this.axios, this.basePath));
6254
+ }
6255
+ /**
6256
+ *
6257
+ * @summary Environment coverage for the builder dropdown
6258
+ * @param {string} recordUuid
6259
+ * @param {*} [options] Override http request option.
6260
+ * @throws {RequiredError}
6261
+ */
6262
+ environmentCoverage(recordUuid, options) {
6263
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).environmentCoverage(recordUuid, options).then((request) => request(this.axios, this.basePath));
6264
+ }
6265
+ /**
6266
+ *
6267
+ * @summary Load a page for the builder
6268
+ * @param {string} recordUuid
6269
+ * @param {string} [locale]
6270
+ * @param {string} [state]
6271
+ * @param {*} [options] Override http request option.
6272
+ * @throws {RequiredError}
6273
+ */
6274
+ get(recordUuid, locale, state, options) {
6275
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).get(recordUuid, locale, state, options).then((request) => request(this.axios, this.basePath));
6276
+ }
6277
+ /**
6278
+ *
6279
+ * @summary CMS v2 object template document
6280
+ * @param {string} objectUuid
6281
+ * @param {string} [locale]
6282
+ * @param {*} [options] Override http request option.
6283
+ * @throws {RequiredError}
6284
+ */
6285
+ getTemplate(objectUuid, locale, options) {
6286
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).getTemplate(objectUuid, locale, options).then((request) => request(this.axios, this.basePath));
6287
+ }
6288
+ /**
6289
+ *
6290
+ * @summary Draft snapshots for one locale
6291
+ * @param {string} recordUuid
6292
+ * @param {string} [locale]
6293
+ * @param {*} [options] Override http request option.
6294
+ * @throws {RequiredError}
6295
+ */
6296
+ history(recordUuid, locale, options) {
6297
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).history(recordUuid, locale, options).then((request) => request(this.axios, this.basePath));
6298
+ }
6299
+ /**
6300
+ *
6301
+ * @summary Host this page on another environment
6302
+ * @param {string} recordUuid
6303
+ * @param {string} key
6304
+ * @param {*} [options] Override http request option.
6305
+ * @throws {RequiredError}
6306
+ */
6307
+ hostOnEnvironment(recordUuid, key, options) {
6308
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).hostOnEnvironment(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
6309
+ }
6310
+ /**
6311
+ * 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.
6312
+ * @summary Modules available to this company
6313
+ * @param {*} [options] Override http request option.
6314
+ * @throws {RequiredError}
6315
+ */
6316
+ library(options) {
6317
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).library(options).then((request) => request(this.axios, this.basePath));
6318
+ }
6319
+ /**
6320
+ * Rejected with 409 when expectedRevision does not match, so a stale client cannot overwrite another editor\'s work.
6321
+ * @summary Apply patches to a page draft
6322
+ * @param {string} recordUuid
6323
+ * @param {CmsPagePatchRequest} cmsPagePatchRequest
6324
+ * @param {*} [options] Override http request option.
6325
+ * @throws {RequiredError}
6326
+ */
6327
+ patch(recordUuid, cmsPagePatchRequest, options) {
6328
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).patch(recordUuid, cmsPagePatchRequest, options).then((request) => request(this.axios, this.basePath));
6329
+ }
6330
+ /**
6331
+ * 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.
6332
+ * @summary Signed preview URL for the builder iframe
6333
+ * @param {string} recordUuid
6334
+ * @param {string} [locale]
6335
+ * @param {string} [state]
6336
+ * @param {*} [options] Override http request option.
6337
+ * @throws {RequiredError}
6338
+ */
6339
+ previewLink(recordUuid, locale, state, options) {
6340
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).previewLink(recordUuid, locale, state, options).then((request) => request(this.axios, this.basePath));
6341
+ }
6342
+ /**
6343
+ * Copies the draft over the published document. Publishing is per locale so a translated page can ship without republishing the others.
6344
+ * @summary Publish one locale, or all of them
6345
+ * @param {string} recordUuid
6346
+ * @param {string} [locale]
6347
+ * @param {boolean} [allLocales]
6348
+ * @param {*} [options] Override http request option.
6349
+ * @throws {RequiredError}
6350
+ */
6351
+ publish(recordUuid, locale, allLocales, options) {
6352
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).publish(recordUuid, locale, allLocales, options).then((request) => request(this.axios, this.basePath));
6353
+ }
6354
+ /**
6355
+ *
6356
+ * @summary Restore a draft snapshot
6357
+ * @param {string} recordUuid
6358
+ * @param {number} index
6359
+ * @param {string} [locale]
6360
+ * @param {*} [options] Override http request option.
6361
+ * @throws {RequiredError}
6362
+ */
6363
+ restoreHistory(recordUuid, index, locale, options) {
6364
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).restoreHistory(recordUuid, index, locale, options).then((request) => request(this.axios, this.basePath));
6365
+ }
6366
+ /**
6367
+ *
6368
+ * @summary Replace a page draft
6369
+ * @param {string} recordUuid
6370
+ * @param {CmsPageDocument} cmsPageDocument
6371
+ * @param {string} [locale]
6372
+ * @param {*} [options] Override http request option.
6373
+ * @throws {RequiredError}
6374
+ */
6375
+ save(recordUuid, cmsPageDocument, locale, options) {
6376
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).save(recordUuid, cmsPageDocument, locale, options).then((request) => request(this.axios, this.basePath));
6377
+ }
6378
+ /**
6379
+ *
6380
+ * @summary Update slug, title, excerpt, SEO and page scripts
6381
+ * @param {string} recordUuid
6382
+ * @param {{ [key: string]: any | null; }} requestBody
6383
+ * @param {string} [locale]
6384
+ * @param {*} [options] Override http request option.
6385
+ * @throws {RequiredError}
6386
+ */
6387
+ saveMeta(recordUuid, requestBody, locale, options) {
6388
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).saveMeta(recordUuid, requestBody, locale, options).then((request) => request(this.axios, this.basePath));
6389
+ }
6390
+ /**
6391
+ *
6392
+ * @summary Replace a CMS v2 object template
6393
+ * @param {string} objectUuid
6394
+ * @param {CmsPageDocument} cmsPageDocument
6395
+ * @param {string} [locale]
6396
+ * @param {*} [options] Override http request option.
6397
+ * @throws {RequiredError}
6398
+ */
6399
+ saveTemplate(objectUuid, cmsPageDocument, locale, options) {
6400
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).saveTemplate(objectUuid, cmsPageDocument, locale, options).then((request) => request(this.axios, this.basePath));
6401
+ }
6402
+ /**
6403
+ *
6404
+ * @summary Take one locale offline
6405
+ * @param {string} recordUuid
6406
+ * @param {string} [locale]
6407
+ * @param {*} [options] Override http request option.
6408
+ * @throws {RequiredError}
6409
+ */
6410
+ unpublish(recordUuid, locale, options) {
6411
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).unpublish(recordUuid, locale, options).then((request) => request(this.axios, this.basePath));
6412
+ }
6413
+ /**
6414
+ *
6415
+ * @summary Remove an environment from this page only
6416
+ * @param {string} recordUuid
6417
+ * @param {string} key
6418
+ * @param {*} [options] Override http request option.
6419
+ * @throws {RequiredError}
6420
+ */
6421
+ unselectEnvironment(recordUuid, key, options) {
6422
+ return (0, exports.CMSV2PagesApiFp)(this.configuration).unselectEnvironment(recordUuid, key, options).then((request) => request(this.axios, this.basePath));
6423
+ }
6424
+ }
6425
+ exports.CMSV2PagesApi = CMSV2PagesApi;
6426
+ /**
6427
+ * CMSV2PublicApi - axios parameter creator
6428
+ */
6429
+ const CMSV2PublicApiAxiosParamCreator = function (configuration) {
6430
+ return {
6431
+ /**
6432
+ *
6433
+ * @summary Installed app settings with SECRET fields removed
6434
+ * @param {string} xCaraerSubdomain
6435
+ * @param {string} appName
6436
+ * @param {*} [options] Override http request option.
6437
+ * @throws {RequiredError}
6438
+ */
6439
+ appSettings: (xCaraerSubdomain_1, appName_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, appName_1, ...args_1], void 0, function* (xCaraerSubdomain, appName, options = {}) {
6440
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6441
+ (0, common_1.assertParamExists)('appSettings', 'xCaraerSubdomain', xCaraerSubdomain);
6442
+ // verify required parameter 'appName' is not null or undefined
6443
+ (0, common_1.assertParamExists)('appSettings', 'appName', appName);
6444
+ const localVarPath = `/api/v2/webpages/v2/public/apps/{appName}/settings`
6445
+ .replace('{appName}', encodeURIComponent(String(appName)));
6446
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6447
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6448
+ let baseOptions;
6449
+ if (configuration) {
6450
+ baseOptions = configuration.baseOptions;
6451
+ }
6452
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6453
+ const localVarHeaderParameter = {};
6454
+ const localVarQueryParameter = {};
6455
+ // authentication bearerAuth required
6456
+ // http bearer authentication required
6457
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6458
+ localVarHeaderParameter['Accept'] = 'application/json';
6459
+ if (xCaraerSubdomain != null) {
6460
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6461
+ }
6462
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6464
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6465
+ return {
6466
+ url: (0, common_1.toPathString)(localVarUrlObj),
6467
+ options: localVarRequestOptions,
6468
+ };
6469
+ }),
6470
+ /**
6471
+ *
6472
+ * @summary Redirect to a company file for the website runtime
6473
+ * @param {string} xCaraerSubdomain
6474
+ * @param {string} key
6475
+ * @param {string} [pageUuid]
6476
+ * @param {string} [environment]
6477
+ * @param {string} [locale]
6478
+ * @param {string} [access]
6479
+ * @param {string} [token]
6480
+ * @param {string} [caraerExpires]
6481
+ * @param {string} [caraerSig]
6482
+ * @param {string} [xCaraerWebpageAccess]
6483
+ * @param {string} [authorization]
6484
+ * @param {*} [options] Override http request option.
6485
+ * @throws {RequiredError}
6486
+ */
6487
+ 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 = {}) {
6488
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6489
+ (0, common_1.assertParamExists)('asset', 'xCaraerSubdomain', xCaraerSubdomain);
6490
+ // verify required parameter 'key' is not null or undefined
6491
+ (0, common_1.assertParamExists)('asset', 'key', key);
6492
+ const localVarPath = `/api/v2/webpages/v2/public/asset`;
6493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6494
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6495
+ let baseOptions;
6496
+ if (configuration) {
6497
+ baseOptions = configuration.baseOptions;
6498
+ }
6499
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6500
+ const localVarHeaderParameter = {};
6501
+ const localVarQueryParameter = {};
6502
+ // authentication bearerAuth required
6503
+ // http bearer authentication required
6504
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6505
+ if (key !== undefined) {
6506
+ localVarQueryParameter['key'] = key;
6507
+ }
6508
+ if (pageUuid !== undefined) {
6509
+ localVarQueryParameter['pageUuid'] = pageUuid;
6510
+ }
6511
+ if (environment !== undefined) {
6512
+ localVarQueryParameter['environment'] = environment;
6513
+ }
6514
+ if (locale !== undefined) {
6515
+ localVarQueryParameter['locale'] = locale;
6516
+ }
6517
+ if (access !== undefined) {
6518
+ localVarQueryParameter['access'] = access;
6519
+ }
6520
+ if (token !== undefined) {
6521
+ localVarQueryParameter['token'] = token;
6522
+ }
6523
+ if (caraerExpires !== undefined) {
6524
+ localVarQueryParameter['caraer_expires'] = caraerExpires;
6525
+ }
6526
+ if (caraerSig !== undefined) {
6527
+ localVarQueryParameter['caraer_sig'] = caraerSig;
6528
+ }
6529
+ localVarHeaderParameter['Accept'] = 'application/json';
6530
+ if (xCaraerSubdomain != null) {
6531
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6532
+ }
6533
+ if (xCaraerWebpageAccess != null) {
6534
+ localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess);
6535
+ }
6536
+ if (authorization != null) {
6537
+ localVarHeaderParameter['Authorization'] = String(authorization);
6538
+ }
6539
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6541
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6542
+ return {
6543
+ url: (0, common_1.toPathString)(localVarUrlObj),
6544
+ options: localVarRequestOptions,
6545
+ };
6546
+ }),
6547
+ /**
6548
+ *
6549
+ * @summary Installed apps and modules for a company\'s website build
6550
+ * @param {string} xCaraerSubdomain
6551
+ * @param {*} [options] Override http request option.
6552
+ * @throws {RequiredError}
6553
+ */
6554
+ buildManifest: (xCaraerSubdomain_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, ...args_1], void 0, function* (xCaraerSubdomain, options = {}) {
6555
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6556
+ (0, common_1.assertParamExists)('buildManifest', 'xCaraerSubdomain', xCaraerSubdomain);
6557
+ const localVarPath = `/api/v2/webpages/v2/build/manifest`;
6558
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6559
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6560
+ let baseOptions;
6561
+ if (configuration) {
6562
+ baseOptions = configuration.baseOptions;
6563
+ }
6564
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6565
+ const localVarHeaderParameter = {};
6566
+ const localVarQueryParameter = {};
6567
+ // authentication bearerAuth required
6568
+ // http bearer authentication required
6569
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6570
+ localVarHeaderParameter['Accept'] = 'application/json';
6571
+ if (xCaraerSubdomain != null) {
6572
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6573
+ }
6574
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6575
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6576
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6577
+ return {
6578
+ url: (0, common_1.toPathString)(localVarUrlObj),
6579
+ options: localVarRequestOptions,
6580
+ };
6581
+ }),
6582
+ /**
6583
+ *
6584
+ * @summary Navigation menus for the header and footer
6585
+ * @param {string} xCaraerSubdomain
6586
+ * @param {string} [environment]
6587
+ * @param {string} [locale]
6588
+ * @param {*} [options] Override http request option.
6589
+ * @throws {RequiredError}
6590
+ */
6591
+ 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 = {}) {
6592
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6593
+ (0, common_1.assertParamExists)('menus', 'xCaraerSubdomain', xCaraerSubdomain);
6594
+ const localVarPath = `/api/v2/webpages/v2/public/menus`;
6595
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6596
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6597
+ let baseOptions;
6598
+ if (configuration) {
6599
+ baseOptions = configuration.baseOptions;
6600
+ }
6601
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6602
+ const localVarHeaderParameter = {};
6603
+ const localVarQueryParameter = {};
6604
+ // authentication bearerAuth required
6605
+ // http bearer authentication required
6606
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6607
+ if (environment !== undefined) {
6608
+ localVarQueryParameter['environment'] = environment;
6609
+ }
6610
+ if (locale !== undefined) {
6611
+ localVarQueryParameter['locale'] = locale;
6612
+ }
6613
+ localVarHeaderParameter['Accept'] = 'application/json';
6614
+ if (xCaraerSubdomain != null) {
6615
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6616
+ }
6617
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6618
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6619
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6620
+ return {
6621
+ url: (0, common_1.toPathString)(localVarUrlObj),
6622
+ options: localVarRequestOptions,
6623
+ };
6624
+ }),
6625
+ /**
6626
+ *
6627
+ * @summary A published page by URL path
6628
+ * @param {string} xCaraerSubdomain
6629
+ * @param {string} path
6630
+ * @param {string} [xCaraerWebpageAccess]
6631
+ * @param {string} [authorization]
6632
+ * @param {string} [environment]
6633
+ * @param {string} [locale]
6634
+ * @param {string} [access]
6635
+ * @param {string} [token]
6636
+ * @param {*} [options] Override http request option.
6637
+ * @throws {RequiredError}
6638
+ */
6639
+ 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 = {}) {
6640
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6641
+ (0, common_1.assertParamExists)('pageByPath', 'xCaraerSubdomain', xCaraerSubdomain);
6642
+ // verify required parameter 'path' is not null or undefined
6643
+ (0, common_1.assertParamExists)('pageByPath', 'path', path);
6644
+ const localVarPath = `/api/v2/webpages/v2/public/page`;
6645
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6646
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6647
+ let baseOptions;
6648
+ if (configuration) {
6649
+ baseOptions = configuration.baseOptions;
6650
+ }
6651
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6652
+ const localVarHeaderParameter = {};
6653
+ const localVarQueryParameter = {};
6654
+ // authentication bearerAuth required
6655
+ // http bearer authentication required
6656
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6657
+ if (environment !== undefined) {
6658
+ localVarQueryParameter['environment'] = environment;
6659
+ }
6660
+ if (locale !== undefined) {
6661
+ localVarQueryParameter['locale'] = locale;
6662
+ }
6663
+ if (path !== undefined) {
6664
+ localVarQueryParameter['path'] = path;
6665
+ }
6666
+ if (access !== undefined) {
6667
+ localVarQueryParameter['access'] = access;
6668
+ }
6669
+ if (token !== undefined) {
6670
+ localVarQueryParameter['token'] = token;
6671
+ }
6672
+ localVarHeaderParameter['Accept'] = 'application/json';
6673
+ if (xCaraerSubdomain != null) {
6674
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6675
+ }
6676
+ if (xCaraerWebpageAccess != null) {
6677
+ localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess);
6678
+ }
6679
+ if (authorization != null) {
6680
+ localVarHeaderParameter['Authorization'] = String(authorization);
6681
+ }
6682
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6683
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6684
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6685
+ return {
6686
+ url: (0, common_1.toPathString)(localVarUrlObj),
6687
+ options: localVarRequestOptions,
6688
+ };
6689
+ }),
6690
+ /**
6691
+ * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet.
6692
+ * @summary A page by record uuid
6693
+ * @param {string} xCaraerSubdomain
6694
+ * @param {string} uuid
6695
+ * @param {string} [xCaraerWebpageAccess]
6696
+ * @param {string} [authorization]
6697
+ * @param {string} [environment]
6698
+ * @param {string} [locale]
6699
+ * @param {string} [state]
6700
+ * @param {string} [access]
6701
+ * @param {string} [token]
6702
+ * @param {string} [caraerExpires]
6703
+ * @param {string} [caraerSig]
6704
+ * @param {*} [options] Override http request option.
6705
+ * @throws {RequiredError}
6706
+ */
6707
+ 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 = {}) {
6708
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6709
+ (0, common_1.assertParamExists)('pageByUuid', 'xCaraerSubdomain', xCaraerSubdomain);
6710
+ // verify required parameter 'uuid' is not null or undefined
6711
+ (0, common_1.assertParamExists)('pageByUuid', 'uuid', uuid);
6712
+ const localVarPath = `/api/v2/webpages/v2/public/page/{uuid}`
6713
+ .replace('{uuid}', encodeURIComponent(String(uuid)));
6714
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6715
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6716
+ let baseOptions;
6717
+ if (configuration) {
6718
+ baseOptions = configuration.baseOptions;
6719
+ }
6720
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6721
+ const localVarHeaderParameter = {};
6722
+ const localVarQueryParameter = {};
6723
+ // authentication bearerAuth required
6724
+ // http bearer authentication required
6725
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6726
+ if (environment !== undefined) {
6727
+ localVarQueryParameter['environment'] = environment;
6728
+ }
6729
+ if (locale !== undefined) {
6730
+ localVarQueryParameter['locale'] = locale;
6731
+ }
6732
+ if (state !== undefined) {
6733
+ localVarQueryParameter['state'] = state;
6734
+ }
6735
+ if (access !== undefined) {
6736
+ localVarQueryParameter['access'] = access;
6737
+ }
6738
+ if (token !== undefined) {
6739
+ localVarQueryParameter['token'] = token;
6740
+ }
6741
+ if (caraerExpires !== undefined) {
6742
+ localVarQueryParameter['caraer_expires'] = caraerExpires;
6743
+ }
6744
+ if (caraerSig !== undefined) {
6745
+ localVarQueryParameter['caraer_sig'] = caraerSig;
6746
+ }
6747
+ localVarHeaderParameter['Accept'] = 'application/json';
6748
+ if (xCaraerSubdomain != null) {
6749
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6750
+ }
6751
+ if (xCaraerWebpageAccess != null) {
6752
+ localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess);
6753
+ }
6754
+ if (authorization != null) {
6755
+ localVarHeaderParameter['Authorization'] = String(authorization);
6756
+ }
6757
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6758
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6759
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6760
+ return {
6761
+ url: (0, common_1.toPathString)(localVarUrlObj),
6762
+ options: localVarRequestOptions,
6763
+ };
6764
+ }),
6765
+ /**
6766
+ *
6767
+ * @summary Protection info for a path, without the page document
6768
+ * @param {string} xCaraerSubdomain
6769
+ * @param {string} path
6770
+ * @param {string} [environment]
6771
+ * @param {string} [locale]
6772
+ * @param {*} [options] Override http request option.
6773
+ * @throws {RequiredError}
6774
+ */
6775
+ 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 = {}) {
6776
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6777
+ (0, common_1.assertParamExists)('pageGate', 'xCaraerSubdomain', xCaraerSubdomain);
6778
+ // verify required parameter 'path' is not null or undefined
6779
+ (0, common_1.assertParamExists)('pageGate', 'path', path);
6780
+ const localVarPath = `/api/v2/webpages/v2/public/page/gate`;
6781
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6782
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6783
+ let baseOptions;
6784
+ if (configuration) {
6785
+ baseOptions = configuration.baseOptions;
6786
+ }
6787
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6788
+ const localVarHeaderParameter = {};
6789
+ const localVarQueryParameter = {};
6790
+ // authentication bearerAuth required
6791
+ // http bearer authentication required
6792
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6793
+ if (environment !== undefined) {
6794
+ localVarQueryParameter['environment'] = environment;
6795
+ }
6796
+ if (locale !== undefined) {
6797
+ localVarQueryParameter['locale'] = locale;
6798
+ }
6799
+ if (path !== undefined) {
6800
+ localVarQueryParameter['path'] = path;
6801
+ }
6802
+ localVarHeaderParameter['Accept'] = 'application/json';
6803
+ if (xCaraerSubdomain != null) {
6804
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6805
+ }
6806
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6807
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6808
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6809
+ return {
6810
+ url: (0, common_1.toPathString)(localVarUrlObj),
6811
+ options: localVarRequestOptions,
6812
+ };
6813
+ }),
6814
+ /**
6815
+ *
6816
+ * @summary Published paths per environment, for sitemaps and cache warming
6817
+ * @param {string} xCaraerSubdomain
6818
+ * @param {string} [environment]
6819
+ * @param {string} [locale]
6820
+ * @param {*} [options] Override http request option.
6821
+ * @throws {RequiredError}
6822
+ */
6823
+ 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 = {}) {
6824
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6825
+ (0, common_1.assertParamExists)('paths', 'xCaraerSubdomain', xCaraerSubdomain);
6826
+ const localVarPath = `/api/v2/webpages/v2/public/paths`;
6827
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6828
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6829
+ let baseOptions;
6830
+ if (configuration) {
6831
+ baseOptions = configuration.baseOptions;
6832
+ }
6833
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6834
+ const localVarHeaderParameter = {};
6835
+ const localVarQueryParameter = {};
6836
+ // authentication bearerAuth required
6837
+ // http bearer authentication required
6838
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6839
+ if (environment !== undefined) {
6840
+ localVarQueryParameter['environment'] = environment;
6841
+ }
6842
+ if (locale !== undefined) {
6843
+ localVarQueryParameter['locale'] = locale;
6844
+ }
6845
+ localVarHeaderParameter['Accept'] = 'application/json';
6846
+ if (xCaraerSubdomain != null) {
6847
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6848
+ }
6849
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6850
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6851
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6852
+ return {
6853
+ url: (0, common_1.toPathString)(localVarUrlObj),
6854
+ options: localVarRequestOptions,
6855
+ };
6856
+ }),
6857
+ /**
6858
+ *
6859
+ * @summary Public records visible in an environment
6860
+ * @param {string} xCaraerSubdomain
6861
+ * @param {{ [key: string]: any | null; }} requestBody
6862
+ * @param {string} [environment]
6863
+ * @param {string} [locale]
6864
+ * @param {*} [options] Override http request option.
6865
+ * @throws {RequiredError}
6866
+ */
6867
+ 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 = {}) {
6868
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6869
+ (0, common_1.assertParamExists)('records', 'xCaraerSubdomain', xCaraerSubdomain);
6870
+ // verify required parameter 'requestBody' is not null or undefined
6871
+ (0, common_1.assertParamExists)('records', 'requestBody', requestBody);
6872
+ const localVarPath = `/api/v2/webpages/v2/public/records`;
6873
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6874
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6875
+ let baseOptions;
6876
+ if (configuration) {
6877
+ baseOptions = configuration.baseOptions;
6878
+ }
6879
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6880
+ const localVarHeaderParameter = {};
6881
+ const localVarQueryParameter = {};
6882
+ // authentication bearerAuth required
6883
+ // http bearer authentication required
6884
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6885
+ if (environment !== undefined) {
6886
+ localVarQueryParameter['environment'] = environment;
6887
+ }
6888
+ if (locale !== undefined) {
6889
+ localVarQueryParameter['locale'] = locale;
6890
+ }
6891
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6892
+ localVarHeaderParameter['Accept'] = 'application/json';
6893
+ if (xCaraerSubdomain != null) {
6894
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6895
+ }
6896
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6897
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6898
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6899
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
6900
+ return {
6901
+ url: (0, common_1.toPathString)(localVarUrlObj),
6902
+ options: localVarRequestOptions,
6903
+ };
6904
+ }),
6905
+ /**
6906
+ *
6907
+ * @summary Company settings, branding and locales
6908
+ * @param {string} xCaraerSubdomain
6909
+ * @param {*} [options] Override http request option.
6910
+ * @throws {RequiredError}
6911
+ */
6912
+ settings: (xCaraerSubdomain_1, ...args_1) => __awaiter(this, [xCaraerSubdomain_1, ...args_1], void 0, function* (xCaraerSubdomain, options = {}) {
6913
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6914
+ (0, common_1.assertParamExists)('settings', 'xCaraerSubdomain', xCaraerSubdomain);
6915
+ const localVarPath = `/api/v2/webpages/v2/public/settings`;
6916
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6917
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6918
+ let baseOptions;
6919
+ if (configuration) {
6920
+ baseOptions = configuration.baseOptions;
6921
+ }
6922
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6923
+ const localVarHeaderParameter = {};
6924
+ const localVarQueryParameter = {};
6925
+ // authentication bearerAuth required
6926
+ // http bearer authentication required
6927
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6928
+ localVarHeaderParameter['Accept'] = 'application/json';
6929
+ if (xCaraerSubdomain != null) {
6930
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6931
+ }
6932
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6933
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6934
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6935
+ return {
6936
+ url: (0, common_1.toPathString)(localVarUrlObj),
6937
+ options: localVarRequestOptions,
6938
+ };
6939
+ }),
6940
+ /**
6941
+ *
6942
+ * @summary Unlock a password-protected CMS v2 page
6943
+ * @param {string} xCaraerSubdomain
6944
+ * @param {string} uuid
6945
+ * @param {{ [key: string]: string; }} requestBody
6946
+ * @param {string} [environment]
6947
+ * @param {string} [locale]
6948
+ * @param {*} [options] Override http request option.
6949
+ * @throws {RequiredError}
6950
+ */
6951
+ 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 = {}) {
6952
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
6953
+ (0, common_1.assertParamExists)('unlock', 'xCaraerSubdomain', xCaraerSubdomain);
6954
+ // verify required parameter 'uuid' is not null or undefined
6955
+ (0, common_1.assertParamExists)('unlock', 'uuid', uuid);
6956
+ // verify required parameter 'requestBody' is not null or undefined
6957
+ (0, common_1.assertParamExists)('unlock', 'requestBody', requestBody);
6958
+ const localVarPath = `/api/v2/webpages/v2/public/page/{uuid}/unlock`
6959
+ .replace('{uuid}', encodeURIComponent(String(uuid)));
6960
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6961
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6962
+ let baseOptions;
6963
+ if (configuration) {
6964
+ baseOptions = configuration.baseOptions;
6965
+ }
6966
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6967
+ const localVarHeaderParameter = {};
6968
+ const localVarQueryParameter = {};
6969
+ // authentication bearerAuth required
6970
+ // http bearer authentication required
6971
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6972
+ if (environment !== undefined) {
6973
+ localVarQueryParameter['environment'] = environment;
6974
+ }
6975
+ if (locale !== undefined) {
6976
+ localVarQueryParameter['locale'] = locale;
6977
+ }
6978
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6979
+ localVarHeaderParameter['Accept'] = 'application/json';
6980
+ if (xCaraerSubdomain != null) {
6981
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
6982
+ }
6983
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6984
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6985
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6986
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
6987
+ return {
6988
+ url: (0, common_1.toPathString)(localVarUrlObj),
6989
+ options: localVarRequestOptions,
6990
+ };
6991
+ }),
6992
+ };
6993
+ };
6994
+ exports.CMSV2PublicApiAxiosParamCreator = CMSV2PublicApiAxiosParamCreator;
6995
+ /**
6996
+ * CMSV2PublicApi - functional programming interface
6997
+ */
6998
+ const CMSV2PublicApiFp = function (configuration) {
6999
+ const localVarAxiosParamCreator = (0, exports.CMSV2PublicApiAxiosParamCreator)(configuration);
7000
+ return {
7001
+ /**
7002
+ *
7003
+ * @summary Installed app settings with SECRET fields removed
7004
+ * @param {string} xCaraerSubdomain
7005
+ * @param {string} appName
7006
+ * @param {*} [options] Override http request option.
7007
+ * @throws {RequiredError}
7008
+ */
7009
+ appSettings(xCaraerSubdomain, appName, options) {
7010
+ return __awaiter(this, void 0, void 0, function* () {
7011
+ var _a, _b, _c;
7012
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.appSettings(xCaraerSubdomain, appName, options);
7013
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7014
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.appSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7015
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7016
+ });
7017
+ },
7018
+ /**
7019
+ *
7020
+ * @summary Redirect to a company file for the website runtime
7021
+ * @param {string} xCaraerSubdomain
7022
+ * @param {string} key
7023
+ * @param {string} [pageUuid]
7024
+ * @param {string} [environment]
7025
+ * @param {string} [locale]
7026
+ * @param {string} [access]
7027
+ * @param {string} [token]
7028
+ * @param {string} [caraerExpires]
7029
+ * @param {string} [caraerSig]
7030
+ * @param {string} [xCaraerWebpageAccess]
7031
+ * @param {string} [authorization]
7032
+ * @param {*} [options] Override http request option.
7033
+ * @throws {RequiredError}
7034
+ */
7035
+ asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options) {
7036
+ return __awaiter(this, void 0, void 0, function* () {
7037
+ var _a, _b, _c;
7038
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options);
7039
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7040
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.asset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7041
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7042
+ });
7043
+ },
7044
+ /**
7045
+ *
7046
+ * @summary Installed apps and modules for a company\'s website build
7047
+ * @param {string} xCaraerSubdomain
7048
+ * @param {*} [options] Override http request option.
7049
+ * @throws {RequiredError}
7050
+ */
7051
+ buildManifest(xCaraerSubdomain, options) {
7052
+ return __awaiter(this, void 0, void 0, function* () {
7053
+ var _a, _b, _c;
7054
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.buildManifest(xCaraerSubdomain, options);
7055
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7056
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.buildManifest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7057
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7058
+ });
7059
+ },
7060
+ /**
7061
+ *
7062
+ * @summary Navigation menus for the header and footer
7063
+ * @param {string} xCaraerSubdomain
7064
+ * @param {string} [environment]
7065
+ * @param {string} [locale]
7066
+ * @param {*} [options] Override http request option.
7067
+ * @throws {RequiredError}
7068
+ */
7069
+ menus(xCaraerSubdomain, environment, locale, options) {
7070
+ return __awaiter(this, void 0, void 0, function* () {
7071
+ var _a, _b, _c;
7072
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.menus(xCaraerSubdomain, environment, locale, options);
7073
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7074
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.menus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7075
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7076
+ });
7077
+ },
7078
+ /**
7079
+ *
7080
+ * @summary A published page by URL path
7081
+ * @param {string} xCaraerSubdomain
7082
+ * @param {string} path
7083
+ * @param {string} [xCaraerWebpageAccess]
7084
+ * @param {string} [authorization]
7085
+ * @param {string} [environment]
7086
+ * @param {string} [locale]
7087
+ * @param {string} [access]
7088
+ * @param {string} [token]
7089
+ * @param {*} [options] Override http request option.
7090
+ * @throws {RequiredError}
7091
+ */
7092
+ pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options) {
7093
+ return __awaiter(this, void 0, void 0, function* () {
7094
+ var _a, _b, _c;
7095
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options);
7096
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7097
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.pageByPath']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7098
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7099
+ });
7100
+ },
7101
+ /**
7102
+ * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet.
7103
+ * @summary A page by record uuid
7104
+ * @param {string} xCaraerSubdomain
7105
+ * @param {string} uuid
7106
+ * @param {string} [xCaraerWebpageAccess]
7107
+ * @param {string} [authorization]
7108
+ * @param {string} [environment]
7109
+ * @param {string} [locale]
7110
+ * @param {string} [state]
7111
+ * @param {string} [access]
7112
+ * @param {string} [token]
7113
+ * @param {string} [caraerExpires]
7114
+ * @param {string} [caraerSig]
7115
+ * @param {*} [options] Override http request option.
7116
+ * @throws {RequiredError}
7117
+ */
7118
+ pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options) {
7119
+ return __awaiter(this, void 0, void 0, function* () {
7120
+ var _a, _b, _c;
7121
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options);
7122
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7123
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.pageByUuid']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7124
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7125
+ });
7126
+ },
7127
+ /**
7128
+ *
7129
+ * @summary Protection info for a path, without the page document
7130
+ * @param {string} xCaraerSubdomain
7131
+ * @param {string} path
7132
+ * @param {string} [environment]
7133
+ * @param {string} [locale]
7134
+ * @param {*} [options] Override http request option.
7135
+ * @throws {RequiredError}
7136
+ */
7137
+ pageGate(xCaraerSubdomain, path, environment, locale, options) {
7138
+ return __awaiter(this, void 0, void 0, function* () {
7139
+ var _a, _b, _c;
7140
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.pageGate(xCaraerSubdomain, path, environment, locale, options);
7141
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7142
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.pageGate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7143
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7144
+ });
7145
+ },
7146
+ /**
7147
+ *
7148
+ * @summary Published paths per environment, for sitemaps and cache warming
7149
+ * @param {string} xCaraerSubdomain
7150
+ * @param {string} [environment]
7151
+ * @param {string} [locale]
7152
+ * @param {*} [options] Override http request option.
7153
+ * @throws {RequiredError}
7154
+ */
7155
+ paths(xCaraerSubdomain, environment, locale, options) {
7156
+ return __awaiter(this, void 0, void 0, function* () {
7157
+ var _a, _b, _c;
7158
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.paths(xCaraerSubdomain, environment, locale, options);
7159
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7160
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.paths']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7161
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7162
+ });
7163
+ },
7164
+ /**
7165
+ *
7166
+ * @summary Public records visible in an environment
7167
+ * @param {string} xCaraerSubdomain
7168
+ * @param {{ [key: string]: any | null; }} requestBody
7169
+ * @param {string} [environment]
7170
+ * @param {string} [locale]
7171
+ * @param {*} [options] Override http request option.
7172
+ * @throws {RequiredError}
7173
+ */
7174
+ records(xCaraerSubdomain, requestBody, environment, locale, options) {
7175
+ return __awaiter(this, void 0, void 0, function* () {
7176
+ var _a, _b, _c;
7177
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.records(xCaraerSubdomain, requestBody, environment, locale, options);
7178
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7179
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.records']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7180
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7181
+ });
7182
+ },
7183
+ /**
7184
+ *
7185
+ * @summary Company settings, branding and locales
7186
+ * @param {string} xCaraerSubdomain
7187
+ * @param {*} [options] Override http request option.
7188
+ * @throws {RequiredError}
7189
+ */
7190
+ settings(xCaraerSubdomain, options) {
7191
+ return __awaiter(this, void 0, void 0, function* () {
7192
+ var _a, _b, _c;
7193
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.settings(xCaraerSubdomain, options);
7194
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7195
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.settings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7196
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7197
+ });
7198
+ },
7199
+ /**
7200
+ *
7201
+ * @summary Unlock a password-protected CMS v2 page
7202
+ * @param {string} xCaraerSubdomain
7203
+ * @param {string} uuid
7204
+ * @param {{ [key: string]: string; }} requestBody
7205
+ * @param {string} [environment]
7206
+ * @param {string} [locale]
7207
+ * @param {*} [options] Override http request option.
7208
+ * @throws {RequiredError}
7209
+ */
7210
+ unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options) {
7211
+ return __awaiter(this, void 0, void 0, function* () {
7212
+ var _a, _b, _c;
7213
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options);
7214
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7215
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2PublicApi.unlock']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7216
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7217
+ });
7218
+ },
7219
+ };
7220
+ };
7221
+ exports.CMSV2PublicApiFp = CMSV2PublicApiFp;
7222
+ /**
7223
+ * CMSV2PublicApi - factory interface
7224
+ */
7225
+ const CMSV2PublicApiFactory = function (configuration, basePath, axios) {
7226
+ const localVarFp = (0, exports.CMSV2PublicApiFp)(configuration);
7227
+ return {
7228
+ /**
7229
+ *
7230
+ * @summary Installed app settings with SECRET fields removed
7231
+ * @param {string} xCaraerSubdomain
7232
+ * @param {string} appName
7233
+ * @param {*} [options] Override http request option.
7234
+ * @throws {RequiredError}
7235
+ */
7236
+ appSettings(xCaraerSubdomain, appName, options) {
7237
+ return localVarFp.appSettings(xCaraerSubdomain, appName, options).then((request) => request(axios, basePath));
7238
+ },
7239
+ /**
7240
+ *
7241
+ * @summary Redirect to a company file for the website runtime
7242
+ * @param {string} xCaraerSubdomain
7243
+ * @param {string} key
7244
+ * @param {string} [pageUuid]
7245
+ * @param {string} [environment]
7246
+ * @param {string} [locale]
7247
+ * @param {string} [access]
7248
+ * @param {string} [token]
7249
+ * @param {string} [caraerExpires]
7250
+ * @param {string} [caraerSig]
7251
+ * @param {string} [xCaraerWebpageAccess]
7252
+ * @param {string} [authorization]
7253
+ * @param {*} [options] Override http request option.
7254
+ * @throws {RequiredError}
7255
+ */
7256
+ asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options) {
7257
+ return localVarFp.asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options).then((request) => request(axios, basePath));
7258
+ },
7259
+ /**
7260
+ *
7261
+ * @summary Installed apps and modules for a company\'s website build
7262
+ * @param {string} xCaraerSubdomain
7263
+ * @param {*} [options] Override http request option.
7264
+ * @throws {RequiredError}
7265
+ */
7266
+ buildManifest(xCaraerSubdomain, options) {
7267
+ return localVarFp.buildManifest(xCaraerSubdomain, options).then((request) => request(axios, basePath));
7268
+ },
7269
+ /**
7270
+ *
7271
+ * @summary Navigation menus for the header and footer
7272
+ * @param {string} xCaraerSubdomain
7273
+ * @param {string} [environment]
7274
+ * @param {string} [locale]
7275
+ * @param {*} [options] Override http request option.
7276
+ * @throws {RequiredError}
7277
+ */
7278
+ menus(xCaraerSubdomain, environment, locale, options) {
7279
+ return localVarFp.menus(xCaraerSubdomain, environment, locale, options).then((request) => request(axios, basePath));
7280
+ },
7281
+ /**
7282
+ *
7283
+ * @summary A published page by URL path
7284
+ * @param {string} xCaraerSubdomain
7285
+ * @param {string} path
7286
+ * @param {string} [xCaraerWebpageAccess]
7287
+ * @param {string} [authorization]
7288
+ * @param {string} [environment]
7289
+ * @param {string} [locale]
7290
+ * @param {string} [access]
7291
+ * @param {string} [token]
7292
+ * @param {*} [options] Override http request option.
7293
+ * @throws {RequiredError}
7294
+ */
7295
+ pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options) {
7296
+ return localVarFp.pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options).then((request) => request(axios, basePath));
7297
+ },
7298
+ /**
7299
+ * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet.
7300
+ * @summary A page by record uuid
7301
+ * @param {string} xCaraerSubdomain
7302
+ * @param {string} uuid
7303
+ * @param {string} [xCaraerWebpageAccess]
7304
+ * @param {string} [authorization]
7305
+ * @param {string} [environment]
7306
+ * @param {string} [locale]
7307
+ * @param {string} [state]
7308
+ * @param {string} [access]
7309
+ * @param {string} [token]
7310
+ * @param {string} [caraerExpires]
7311
+ * @param {string} [caraerSig]
7312
+ * @param {*} [options] Override http request option.
7313
+ * @throws {RequiredError}
7314
+ */
7315
+ pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options) {
7316
+ return localVarFp.pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options).then((request) => request(axios, basePath));
7317
+ },
7318
+ /**
7319
+ *
7320
+ * @summary Protection info for a path, without the page document
7321
+ * @param {string} xCaraerSubdomain
7322
+ * @param {string} path
7323
+ * @param {string} [environment]
7324
+ * @param {string} [locale]
7325
+ * @param {*} [options] Override http request option.
7326
+ * @throws {RequiredError}
7327
+ */
7328
+ pageGate(xCaraerSubdomain, path, environment, locale, options) {
7329
+ return localVarFp.pageGate(xCaraerSubdomain, path, environment, locale, options).then((request) => request(axios, basePath));
7330
+ },
7331
+ /**
7332
+ *
7333
+ * @summary Published paths per environment, for sitemaps and cache warming
7334
+ * @param {string} xCaraerSubdomain
7335
+ * @param {string} [environment]
7336
+ * @param {string} [locale]
7337
+ * @param {*} [options] Override http request option.
7338
+ * @throws {RequiredError}
7339
+ */
7340
+ paths(xCaraerSubdomain, environment, locale, options) {
7341
+ return localVarFp.paths(xCaraerSubdomain, environment, locale, options).then((request) => request(axios, basePath));
7342
+ },
7343
+ /**
7344
+ *
7345
+ * @summary Public records visible in an environment
7346
+ * @param {string} xCaraerSubdomain
7347
+ * @param {{ [key: string]: any | null; }} requestBody
7348
+ * @param {string} [environment]
7349
+ * @param {string} [locale]
7350
+ * @param {*} [options] Override http request option.
7351
+ * @throws {RequiredError}
7352
+ */
7353
+ records(xCaraerSubdomain, requestBody, environment, locale, options) {
7354
+ return localVarFp.records(xCaraerSubdomain, requestBody, environment, locale, options).then((request) => request(axios, basePath));
7355
+ },
7356
+ /**
7357
+ *
7358
+ * @summary Company settings, branding and locales
7359
+ * @param {string} xCaraerSubdomain
7360
+ * @param {*} [options] Override http request option.
7361
+ * @throws {RequiredError}
7362
+ */
7363
+ settings(xCaraerSubdomain, options) {
7364
+ return localVarFp.settings(xCaraerSubdomain, options).then((request) => request(axios, basePath));
7365
+ },
7366
+ /**
7367
+ *
7368
+ * @summary Unlock a password-protected CMS v2 page
7369
+ * @param {string} xCaraerSubdomain
7370
+ * @param {string} uuid
7371
+ * @param {{ [key: string]: string; }} requestBody
7372
+ * @param {string} [environment]
7373
+ * @param {string} [locale]
7374
+ * @param {*} [options] Override http request option.
7375
+ * @throws {RequiredError}
7376
+ */
7377
+ unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options) {
7378
+ return localVarFp.unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options).then((request) => request(axios, basePath));
7379
+ },
7380
+ };
7381
+ };
7382
+ exports.CMSV2PublicApiFactory = CMSV2PublicApiFactory;
7383
+ /**
7384
+ * CMSV2PublicApi - object-oriented interface
7385
+ */
7386
+ class CMSV2PublicApi extends base_1.BaseAPI {
7387
+ /**
7388
+ *
7389
+ * @summary Installed app settings with SECRET fields removed
7390
+ * @param {string} xCaraerSubdomain
7391
+ * @param {string} appName
7392
+ * @param {*} [options] Override http request option.
7393
+ * @throws {RequiredError}
7394
+ */
7395
+ appSettings(xCaraerSubdomain, appName, options) {
7396
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).appSettings(xCaraerSubdomain, appName, options).then((request) => request(this.axios, this.basePath));
7397
+ }
7398
+ /**
7399
+ *
7400
+ * @summary Redirect to a company file for the website runtime
7401
+ * @param {string} xCaraerSubdomain
7402
+ * @param {string} key
7403
+ * @param {string} [pageUuid]
7404
+ * @param {string} [environment]
7405
+ * @param {string} [locale]
7406
+ * @param {string} [access]
7407
+ * @param {string} [token]
7408
+ * @param {string} [caraerExpires]
7409
+ * @param {string} [caraerSig]
7410
+ * @param {string} [xCaraerWebpageAccess]
7411
+ * @param {string} [authorization]
7412
+ * @param {*} [options] Override http request option.
7413
+ * @throws {RequiredError}
7414
+ */
7415
+ asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options) {
7416
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).asset(xCaraerSubdomain, key, pageUuid, environment, locale, access, token, caraerExpires, caraerSig, xCaraerWebpageAccess, authorization, options).then((request) => request(this.axios, this.basePath));
7417
+ }
7418
+ /**
7419
+ *
7420
+ * @summary Installed apps and modules for a company\'s website build
7421
+ * @param {string} xCaraerSubdomain
7422
+ * @param {*} [options] Override http request option.
7423
+ * @throws {RequiredError}
7424
+ */
7425
+ buildManifest(xCaraerSubdomain, options) {
7426
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).buildManifest(xCaraerSubdomain, options).then((request) => request(this.axios, this.basePath));
7427
+ }
7428
+ /**
7429
+ *
7430
+ * @summary Navigation menus for the header and footer
7431
+ * @param {string} xCaraerSubdomain
7432
+ * @param {string} [environment]
7433
+ * @param {string} [locale]
7434
+ * @param {*} [options] Override http request option.
7435
+ * @throws {RequiredError}
7436
+ */
7437
+ menus(xCaraerSubdomain, environment, locale, options) {
7438
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).menus(xCaraerSubdomain, environment, locale, options).then((request) => request(this.axios, this.basePath));
7439
+ }
7440
+ /**
7441
+ *
7442
+ * @summary A published page by URL path
7443
+ * @param {string} xCaraerSubdomain
7444
+ * @param {string} path
7445
+ * @param {string} [xCaraerWebpageAccess]
7446
+ * @param {string} [authorization]
7447
+ * @param {string} [environment]
7448
+ * @param {string} [locale]
7449
+ * @param {string} [access]
7450
+ * @param {string} [token]
7451
+ * @param {*} [options] Override http request option.
7452
+ * @throws {RequiredError}
7453
+ */
7454
+ pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options) {
7455
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).pageByPath(xCaraerSubdomain, path, xCaraerWebpageAccess, authorization, environment, locale, access, token, options).then((request) => request(this.axios, this.basePath));
7456
+ }
7457
+ /**
7458
+ * Used by the builder preview, which addresses a page by uuid because a draft may not have a slug yet.
7459
+ * @summary A page by record uuid
7460
+ * @param {string} xCaraerSubdomain
7461
+ * @param {string} uuid
7462
+ * @param {string} [xCaraerWebpageAccess]
7463
+ * @param {string} [authorization]
7464
+ * @param {string} [environment]
7465
+ * @param {string} [locale]
7466
+ * @param {string} [state]
7467
+ * @param {string} [access]
7468
+ * @param {string} [token]
7469
+ * @param {string} [caraerExpires]
7470
+ * @param {string} [caraerSig]
7471
+ * @param {*} [options] Override http request option.
7472
+ * @throws {RequiredError}
7473
+ */
7474
+ pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options) {
7475
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).pageByUuid(xCaraerSubdomain, uuid, xCaraerWebpageAccess, authorization, environment, locale, state, access, token, caraerExpires, caraerSig, options).then((request) => request(this.axios, this.basePath));
7476
+ }
7477
+ /**
7478
+ *
7479
+ * @summary Protection info for a path, without the page document
7480
+ * @param {string} xCaraerSubdomain
7481
+ * @param {string} path
7482
+ * @param {string} [environment]
7483
+ * @param {string} [locale]
7484
+ * @param {*} [options] Override http request option.
7485
+ * @throws {RequiredError}
7486
+ */
7487
+ pageGate(xCaraerSubdomain, path, environment, locale, options) {
7488
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).pageGate(xCaraerSubdomain, path, environment, locale, options).then((request) => request(this.axios, this.basePath));
7489
+ }
7490
+ /**
7491
+ *
7492
+ * @summary Published paths per environment, for sitemaps and cache warming
7493
+ * @param {string} xCaraerSubdomain
7494
+ * @param {string} [environment]
7495
+ * @param {string} [locale]
7496
+ * @param {*} [options] Override http request option.
7497
+ * @throws {RequiredError}
7498
+ */
7499
+ paths(xCaraerSubdomain, environment, locale, options) {
7500
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).paths(xCaraerSubdomain, environment, locale, options).then((request) => request(this.axios, this.basePath));
7501
+ }
7502
+ /**
7503
+ *
7504
+ * @summary Public records visible in an environment
7505
+ * @param {string} xCaraerSubdomain
7506
+ * @param {{ [key: string]: any | null; }} requestBody
7507
+ * @param {string} [environment]
7508
+ * @param {string} [locale]
7509
+ * @param {*} [options] Override http request option.
7510
+ * @throws {RequiredError}
7511
+ */
7512
+ records(xCaraerSubdomain, requestBody, environment, locale, options) {
7513
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).records(xCaraerSubdomain, requestBody, environment, locale, options).then((request) => request(this.axios, this.basePath));
7514
+ }
7515
+ /**
7516
+ *
7517
+ * @summary Company settings, branding and locales
7518
+ * @param {string} xCaraerSubdomain
7519
+ * @param {*} [options] Override http request option.
7520
+ * @throws {RequiredError}
7521
+ */
7522
+ settings(xCaraerSubdomain, options) {
7523
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).settings(xCaraerSubdomain, options).then((request) => request(this.axios, this.basePath));
7524
+ }
7525
+ /**
7526
+ *
7527
+ * @summary Unlock a password-protected CMS v2 page
7528
+ * @param {string} xCaraerSubdomain
7529
+ * @param {string} uuid
7530
+ * @param {{ [key: string]: string; }} requestBody
7531
+ * @param {string} [environment]
7532
+ * @param {string} [locale]
7533
+ * @param {*} [options] Override http request option.
7534
+ * @throws {RequiredError}
7535
+ */
7536
+ unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options) {
7537
+ return (0, exports.CMSV2PublicApiFp)(this.configuration).unlock(xCaraerSubdomain, uuid, requestBody, environment, locale, options).then((request) => request(this.axios, this.basePath));
7538
+ }
7539
+ }
7540
+ exports.CMSV2PublicApi = CMSV2PublicApi;
7541
+ /**
7542
+ * CMSV2TransferApi - axios parameter creator
7543
+ */
7544
+ const CMSV2TransferApiAxiosParamCreator = function (configuration) {
7545
+ return {
7546
+ /**
7547
+ *
7548
+ * @summary Attach a manually created caraer-web project
7549
+ * @param {string} companyUuid
7550
+ * @param {{ [key: string]: string; }} requestBody
7551
+ * @param {*} [options] Override http request option.
7552
+ * @throws {RequiredError}
7553
+ */
7554
+ attach: (companyUuid_1, requestBody_1, ...args_1) => __awaiter(this, [companyUuid_1, requestBody_1, ...args_1], void 0, function* (companyUuid, requestBody, options = {}) {
7555
+ // verify required parameter 'companyUuid' is not null or undefined
7556
+ (0, common_1.assertParamExists)('attach', 'companyUuid', companyUuid);
7557
+ // verify required parameter 'requestBody' is not null or undefined
7558
+ (0, common_1.assertParamExists)('attach', 'requestBody', requestBody);
7559
+ const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer/attach`
7560
+ .replace('{companyUuid}', encodeURIComponent(String(companyUuid)));
7561
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7562
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7563
+ let baseOptions;
7564
+ if (configuration) {
7565
+ baseOptions = configuration.baseOptions;
7566
+ }
7567
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7568
+ const localVarHeaderParameter = {};
7569
+ const localVarQueryParameter = {};
7570
+ // authentication bearerAuth required
7571
+ // http bearer authentication required
7572
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7573
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7574
+ localVarHeaderParameter['Accept'] = 'application/json';
7575
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7576
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7577
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7578
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
7579
+ return {
7580
+ url: (0, common_1.toPathString)(localVarUrlObj),
7581
+ options: localVarRequestOptions,
7582
+ };
7583
+ }),
7584
+ /**
7585
+ *
7586
+ * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname
7587
+ * @param {string} companyUuid
7588
+ * @param {*} [options] Override http request option.
7589
+ * @throws {RequiredError}
7590
+ */
7591
+ cutover: (companyUuid_1, ...args_1) => __awaiter(this, [companyUuid_1, ...args_1], void 0, function* (companyUuid, options = {}) {
7592
+ // verify required parameter 'companyUuid' is not null or undefined
7593
+ (0, common_1.assertParamExists)('cutover', 'companyUuid', companyUuid);
7594
+ const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer/cutover`
7595
+ .replace('{companyUuid}', encodeURIComponent(String(companyUuid)));
7596
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7597
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7598
+ let baseOptions;
7599
+ if (configuration) {
7600
+ baseOptions = configuration.baseOptions;
7601
+ }
7602
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7603
+ const localVarHeaderParameter = {};
7604
+ const localVarQueryParameter = {};
7605
+ // authentication bearerAuth required
7606
+ // http bearer authentication required
7607
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7608
+ localVarHeaderParameter['Accept'] = 'application/json';
7609
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7610
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7611
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7612
+ return {
7613
+ url: (0, common_1.toPathString)(localVarUrlObj),
7614
+ options: localVarRequestOptions,
7615
+ };
7616
+ }),
7617
+ /**
7618
+ *
7619
+ * @summary Restore the live hostname to the stored v1 project
7620
+ * @param {string} companyUuid
7621
+ * @param {*} [options] Override http request option.
7622
+ * @throws {RequiredError}
7623
+ */
7624
+ rollback: (companyUuid_1, ...args_1) => __awaiter(this, [companyUuid_1, ...args_1], void 0, function* (companyUuid, options = {}) {
7625
+ // verify required parameter 'companyUuid' is not null or undefined
7626
+ (0, common_1.assertParamExists)('rollback', 'companyUuid', companyUuid);
7627
+ const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer/rollback`
7628
+ .replace('{companyUuid}', encodeURIComponent(String(companyUuid)));
7629
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7630
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7631
+ let baseOptions;
7632
+ if (configuration) {
7633
+ baseOptions = configuration.baseOptions;
7634
+ }
7635
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7636
+ const localVarHeaderParameter = {};
7637
+ const localVarQueryParameter = {};
7638
+ // authentication bearerAuth required
7639
+ // http bearer authentication required
7640
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7641
+ localVarHeaderParameter['Accept'] = 'application/json';
7642
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7643
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7644
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7645
+ return {
7646
+ url: (0, common_1.toPathString)(localVarUrlObj),
7647
+ options: localVarRequestOptions,
7648
+ };
7649
+ }),
7650
+ /**
7651
+ *
7652
+ * @summary Transfer status for one company
7653
+ * @param {string} companyUuid
7654
+ * @param {*} [options] Override http request option.
7655
+ * @throws {RequiredError}
7656
+ */
7657
+ status: (companyUuid_1, ...args_1) => __awaiter(this, [companyUuid_1, ...args_1], void 0, function* (companyUuid, options = {}) {
7658
+ // verify required parameter 'companyUuid' is not null or undefined
7659
+ (0, common_1.assertParamExists)('status', 'companyUuid', companyUuid);
7660
+ const localVarPath = `/api/v2/company/{companyUuid}/cms-transfer`
7661
+ .replace('{companyUuid}', encodeURIComponent(String(companyUuid)));
7662
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7663
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7664
+ let baseOptions;
7665
+ if (configuration) {
7666
+ baseOptions = configuration.baseOptions;
7667
+ }
7668
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7669
+ const localVarHeaderParameter = {};
7670
+ const localVarQueryParameter = {};
7671
+ // authentication bearerAuth required
7672
+ // http bearer authentication required
7673
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7674
+ localVarHeaderParameter['Accept'] = 'application/json';
7675
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7676
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7677
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7678
+ return {
7679
+ url: (0, common_1.toPathString)(localVarUrlObj),
7680
+ options: localVarRequestOptions,
7681
+ };
7682
+ }),
7683
+ };
7684
+ };
7685
+ exports.CMSV2TransferApiAxiosParamCreator = CMSV2TransferApiAxiosParamCreator;
7686
+ /**
7687
+ * CMSV2TransferApi - functional programming interface
7688
+ */
7689
+ const CMSV2TransferApiFp = function (configuration) {
7690
+ const localVarAxiosParamCreator = (0, exports.CMSV2TransferApiAxiosParamCreator)(configuration);
7691
+ return {
7692
+ /**
7693
+ *
7694
+ * @summary Attach a manually created caraer-web project
7695
+ * @param {string} companyUuid
7696
+ * @param {{ [key: string]: string; }} requestBody
7697
+ * @param {*} [options] Override http request option.
7698
+ * @throws {RequiredError}
7699
+ */
7700
+ attach(companyUuid, requestBody, options) {
7701
+ return __awaiter(this, void 0, void 0, function* () {
7702
+ var _a, _b, _c;
7703
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.attach(companyUuid, requestBody, options);
7704
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7705
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2TransferApi.attach']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7706
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7707
+ });
7708
+ },
7709
+ /**
7710
+ *
7711
+ * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname
7712
+ * @param {string} companyUuid
7713
+ * @param {*} [options] Override http request option.
7714
+ * @throws {RequiredError}
7715
+ */
7716
+ cutover(companyUuid, options) {
7717
+ return __awaiter(this, void 0, void 0, function* () {
7718
+ var _a, _b, _c;
7719
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cutover(companyUuid, options);
7720
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7721
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2TransferApi.cutover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7722
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7723
+ });
7724
+ },
7725
+ /**
7726
+ *
7727
+ * @summary Restore the live hostname to the stored v1 project
7728
+ * @param {string} companyUuid
7729
+ * @param {*} [options] Override http request option.
7730
+ * @throws {RequiredError}
7731
+ */
7732
+ rollback(companyUuid, options) {
7733
+ return __awaiter(this, void 0, void 0, function* () {
7734
+ var _a, _b, _c;
7735
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rollback(companyUuid, options);
7736
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7737
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2TransferApi.rollback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7738
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7739
+ });
7740
+ },
7741
+ /**
7742
+ *
7743
+ * @summary Transfer status for one company
7744
+ * @param {string} companyUuid
7745
+ * @param {*} [options] Override http request option.
7746
+ * @throws {RequiredError}
7747
+ */
7748
+ status(companyUuid, options) {
7749
+ return __awaiter(this, void 0, void 0, function* () {
7750
+ var _a, _b, _c;
7751
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.status(companyUuid, options);
7752
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7753
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CMSV2TransferApi.status']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7754
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7755
+ });
7756
+ },
7757
+ };
7758
+ };
7759
+ exports.CMSV2TransferApiFp = CMSV2TransferApiFp;
7760
+ /**
7761
+ * CMSV2TransferApi - factory interface
7762
+ */
7763
+ const CMSV2TransferApiFactory = function (configuration, basePath, axios) {
7764
+ const localVarFp = (0, exports.CMSV2TransferApiFp)(configuration);
7765
+ return {
7766
+ /**
7767
+ *
7768
+ * @summary Attach a manually created caraer-web project
7769
+ * @param {string} companyUuid
7770
+ * @param {{ [key: string]: string; }} requestBody
7771
+ * @param {*} [options] Override http request option.
7772
+ * @throws {RequiredError}
7773
+ */
7774
+ attach(companyUuid, requestBody, options) {
7775
+ return localVarFp.attach(companyUuid, requestBody, options).then((request) => request(axios, basePath));
7776
+ },
7777
+ /**
7778
+ *
7779
+ * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname
7780
+ * @param {string} companyUuid
7781
+ * @param {*} [options] Override http request option.
7782
+ * @throws {RequiredError}
7783
+ */
7784
+ cutover(companyUuid, options) {
7785
+ return localVarFp.cutover(companyUuid, options).then((request) => request(axios, basePath));
7786
+ },
7787
+ /**
7788
+ *
7789
+ * @summary Restore the live hostname to the stored v1 project
7790
+ * @param {string} companyUuid
7791
+ * @param {*} [options] Override http request option.
7792
+ * @throws {RequiredError}
7793
+ */
7794
+ rollback(companyUuid, options) {
7795
+ return localVarFp.rollback(companyUuid, options).then((request) => request(axios, basePath));
7796
+ },
7797
+ /**
7798
+ *
7799
+ * @summary Transfer status for one company
7800
+ * @param {string} companyUuid
7801
+ * @param {*} [options] Override http request option.
7802
+ * @throws {RequiredError}
7803
+ */
7804
+ status(companyUuid, options) {
7805
+ return localVarFp.status(companyUuid, options).then((request) => request(axios, basePath));
7806
+ },
7807
+ };
7808
+ };
7809
+ exports.CMSV2TransferApiFactory = CMSV2TransferApiFactory;
7810
+ /**
7811
+ * CMSV2TransferApi - object-oriented interface
7812
+ */
7813
+ class CMSV2TransferApi extends base_1.BaseAPI {
7814
+ /**
7815
+ *
7816
+ * @summary Attach a manually created caraer-web project
7817
+ * @param {string} companyUuid
7818
+ * @param {{ [key: string]: string; }} requestBody
7819
+ * @param {*} [options] Override http request option.
7820
+ * @throws {RequiredError}
7821
+ */
7822
+ attach(companyUuid, requestBody, options) {
7823
+ return (0, exports.CMSV2TransferApiFp)(this.configuration).attach(companyUuid, requestBody, options).then((request) => request(this.axios, this.basePath));
7824
+ }
7825
+ /**
7826
+ *
7827
+ * @summary Switch the live site to CMS v2: schema, caraer-web repo, and hostname
7828
+ * @param {string} companyUuid
7829
+ * @param {*} [options] Override http request option.
7830
+ * @throws {RequiredError}
7831
+ */
7832
+ cutover(companyUuid, options) {
7833
+ return (0, exports.CMSV2TransferApiFp)(this.configuration).cutover(companyUuid, options).then((request) => request(this.axios, this.basePath));
7834
+ }
7835
+ /**
7836
+ *
7837
+ * @summary Restore the live hostname to the stored v1 project
7838
+ * @param {string} companyUuid
7839
+ * @param {*} [options] Override http request option.
7840
+ * @throws {RequiredError}
7841
+ */
7842
+ rollback(companyUuid, options) {
7843
+ return (0, exports.CMSV2TransferApiFp)(this.configuration).rollback(companyUuid, options).then((request) => request(this.axios, this.basePath));
7844
+ }
7845
+ /**
7846
+ *
7847
+ * @summary Transfer status for one company
7848
+ * @param {string} companyUuid
7849
+ * @param {*} [options] Override http request option.
7850
+ * @throws {RequiredError}
7851
+ */
7852
+ status(companyUuid, options) {
7853
+ return (0, exports.CMSV2TransferApiFp)(this.configuration).status(companyUuid, options).then((request) => request(this.axios, this.basePath));
7854
+ }
7855
+ }
7856
+ exports.CMSV2TransferApi = CMSV2TransferApi;
4220
7857
  /**
4221
7858
  * CalendarsApi - axios parameter creator
4222
7859
  */
@@ -4258,9 +7895,9 @@ const CalendarsApiAxiosParamCreator = function (configuration) {
4258
7895
  * @param {*} [options] Override http request option.
4259
7896
  * @throws {RequiredError}
4260
7897
  */
4261
- create3: (calendarCreateRequest_1, ...args_1) => __awaiter(this, [calendarCreateRequest_1, ...args_1], void 0, function* (calendarCreateRequest, options = {}) {
7898
+ create4: (calendarCreateRequest_1, ...args_1) => __awaiter(this, [calendarCreateRequest_1, ...args_1], void 0, function* (calendarCreateRequest, options = {}) {
4262
7899
  // verify required parameter 'calendarCreateRequest' is not null or undefined
4263
- (0, common_1.assertParamExists)('create3', 'calendarCreateRequest', calendarCreateRequest);
7900
+ (0, common_1.assertParamExists)('create4', 'calendarCreateRequest', calendarCreateRequest);
4264
7901
  const localVarPath = `/api/v2/calendars`;
4265
7902
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4266
7903
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4291,7 +7928,7 @@ const CalendarsApiAxiosParamCreator = function (configuration) {
4291
7928
  * @param {*} [options] Override http request option.
4292
7929
  * @throws {RequiredError}
4293
7930
  */
4294
- list1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7931
+ list3: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4295
7932
  const localVarPath = `/api/v2/calendars`;
4296
7933
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4297
7934
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4374,12 +8011,12 @@ const CalendarsApiFp = function (configuration) {
4374
8011
  * @param {*} [options] Override http request option.
4375
8012
  * @throws {RequiredError}
4376
8013
  */
4377
- create3(calendarCreateRequest, options) {
8014
+ create4(calendarCreateRequest, options) {
4378
8015
  return __awaiter(this, void 0, void 0, function* () {
4379
8016
  var _a, _b, _c;
4380
- const localVarAxiosArgs = yield localVarAxiosParamCreator.create3(calendarCreateRequest, options);
8017
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create4(calendarCreateRequest, options);
4381
8018
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4382
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CalendarsApi.create3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8019
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CalendarsApi.create4']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4383
8020
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4384
8021
  });
4385
8022
  },
@@ -4389,12 +8026,12 @@ const CalendarsApiFp = function (configuration) {
4389
8026
  * @param {*} [options] Override http request option.
4390
8027
  * @throws {RequiredError}
4391
8028
  */
4392
- list1(options) {
8029
+ list3(options) {
4393
8030
  return __awaiter(this, void 0, void 0, function* () {
4394
8031
  var _a, _b, _c;
4395
- const localVarAxiosArgs = yield localVarAxiosParamCreator.list1(options);
8032
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.list3(options);
4396
8033
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4397
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CalendarsApi.list1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8034
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CalendarsApi.list3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4398
8035
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4399
8036
  });
4400
8037
  },
@@ -4438,8 +8075,8 @@ const CalendarsApiFactory = function (configuration, basePath, axios) {
4438
8075
  * @param {*} [options] Override http request option.
4439
8076
  * @throws {RequiredError}
4440
8077
  */
4441
- create3(calendarCreateRequest, options) {
4442
- return localVarFp.create3(calendarCreateRequest, options).then((request) => request(axios, basePath));
8078
+ create4(calendarCreateRequest, options) {
8079
+ return localVarFp.create4(calendarCreateRequest, options).then((request) => request(axios, basePath));
4443
8080
  },
4444
8081
  /**
4445
8082
  *
@@ -4447,8 +8084,8 @@ const CalendarsApiFactory = function (configuration, basePath, axios) {
4447
8084
  * @param {*} [options] Override http request option.
4448
8085
  * @throws {RequiredError}
4449
8086
  */
4450
- list1(options) {
4451
- return localVarFp.list1(options).then((request) => request(axios, basePath));
8087
+ list3(options) {
8088
+ return localVarFp.list3(options).then((request) => request(axios, basePath));
4452
8089
  },
4453
8090
  /**
4454
8091
  *
@@ -4482,8 +8119,8 @@ class CalendarsApi extends base_1.BaseAPI {
4482
8119
  * @param {*} [options] Override http request option.
4483
8120
  * @throws {RequiredError}
4484
8121
  */
4485
- create3(calendarCreateRequest, options) {
4486
- return (0, exports.CalendarsApiFp)(this.configuration).create3(calendarCreateRequest, options).then((request) => request(this.axios, this.basePath));
8122
+ create4(calendarCreateRequest, options) {
8123
+ return (0, exports.CalendarsApiFp)(this.configuration).create4(calendarCreateRequest, options).then((request) => request(this.axios, this.basePath));
4487
8124
  }
4488
8125
  /**
4489
8126
  *
@@ -4491,8 +8128,8 @@ class CalendarsApi extends base_1.BaseAPI {
4491
8128
  * @param {*} [options] Override http request option.
4492
8129
  * @throws {RequiredError}
4493
8130
  */
4494
- list1(options) {
4495
- return (0, exports.CalendarsApiFp)(this.configuration).list1(options).then((request) => request(this.axios, this.basePath));
8131
+ list3(options) {
8132
+ return (0, exports.CalendarsApiFp)(this.configuration).list3(options).then((request) => request(this.axios, this.basePath));
4496
8133
  }
4497
8134
  /**
4498
8135
  *
@@ -6019,7 +9656,7 @@ const DeveloperSandboxesApiAxiosParamCreator = function (configuration) {
6019
9656
  * @param {*} [options] Override http request option.
6020
9657
  * @throws {RequiredError}
6021
9658
  */
6022
- list: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
9659
+ list1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6023
9660
  const localVarPath = `/api/v2/developer-sandboxes`;
6024
9661
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6025
9662
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -6106,12 +9743,12 @@ const DeveloperSandboxesApiFp = function (configuration) {
6106
9743
  * @param {*} [options] Override http request option.
6107
9744
  * @throws {RequiredError}
6108
9745
  */
6109
- list(options) {
9746
+ list1(options) {
6110
9747
  return __awaiter(this, void 0, void 0, function* () {
6111
9748
  var _a, _b, _c;
6112
- const localVarAxiosArgs = yield localVarAxiosParamCreator.list(options);
9749
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.list1(options);
6113
9750
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6114
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeveloperSandboxesApi.list']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9751
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeveloperSandboxesApi.list1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6115
9752
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6116
9753
  });
6117
9754
  },
@@ -6156,8 +9793,8 @@ const DeveloperSandboxesApiFactory = function (configuration, basePath, axios) {
6156
9793
  * @param {*} [options] Override http request option.
6157
9794
  * @throws {RequiredError}
6158
9795
  */
6159
- list(options) {
6160
- return localVarFp.list(options).then((request) => request(axios, basePath));
9796
+ list1(options) {
9797
+ return localVarFp.list1(options).then((request) => request(axios, basePath));
6161
9798
  },
6162
9799
  /**
6163
9800
  *
@@ -6192,8 +9829,8 @@ class DeveloperSandboxesApi extends base_1.BaseAPI {
6192
9829
  * @param {*} [options] Override http request option.
6193
9830
  * @throws {RequiredError}
6194
9831
  */
6195
- list(options) {
6196
- return (0, exports.DeveloperSandboxesApiFp)(this.configuration).list(options).then((request) => request(this.axios, this.basePath));
9832
+ list1(options) {
9833
+ return (0, exports.DeveloperSandboxesApiFp)(this.configuration).list1(options).then((request) => request(this.axios, this.basePath));
6197
9834
  }
6198
9835
  /**
6199
9836
  *
@@ -6374,14 +10011,47 @@ const FileManagementApiAxiosParamCreator = function (configuration) {
6374
10011
  // authentication bearerAuth required
6375
10012
  // http bearer authentication required
6376
10013
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6377
- if (key !== undefined) {
6378
- localVarQueryParameter['key'] = key;
6379
- }
6380
- if (expireAfter !== undefined) {
6381
- localVarQueryParameter['expireAfter'] = expireAfter;
6382
- }
6383
- if (download !== undefined) {
6384
- localVarQueryParameter['download'] = download;
10014
+ if (key !== undefined) {
10015
+ localVarQueryParameter['key'] = key;
10016
+ }
10017
+ if (expireAfter !== undefined) {
10018
+ localVarQueryParameter['expireAfter'] = expireAfter;
10019
+ }
10020
+ if (download !== undefined) {
10021
+ localVarQueryParameter['download'] = download;
10022
+ }
10023
+ localVarHeaderParameter['Accept'] = 'application/json';
10024
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10025
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10026
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10027
+ return {
10028
+ url: (0, common_1.toPathString)(localVarUrlObj),
10029
+ options: localVarRequestOptions,
10030
+ };
10031
+ }),
10032
+ /**
10033
+ * Lists all files stored in the system or, if a record UUID is provided, lists the files related to that record.
10034
+ * @summary List files
10035
+ * @param {string} [recordUuid] An optional record UUID to filter files.
10036
+ * @param {*} [options] Override http request option.
10037
+ * @throws {RequiredError}
10038
+ */
10039
+ listFiles: (recordUuid_1, ...args_1) => __awaiter(this, [recordUuid_1, ...args_1], void 0, function* (recordUuid, options = {}) {
10040
+ const localVarPath = `/api/v2/files/list`;
10041
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10042
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10043
+ let baseOptions;
10044
+ if (configuration) {
10045
+ baseOptions = configuration.baseOptions;
10046
+ }
10047
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10048
+ const localVarHeaderParameter = {};
10049
+ const localVarQueryParameter = {};
10050
+ // authentication bearerAuth required
10051
+ // http bearer authentication required
10052
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10053
+ if (recordUuid !== undefined) {
10054
+ localVarQueryParameter['recordUuid'] = recordUuid;
6385
10055
  }
6386
10056
  localVarHeaderParameter['Accept'] = 'application/json';
6387
10057
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -6393,14 +10063,14 @@ const FileManagementApiAxiosParamCreator = function (configuration) {
6393
10063
  };
6394
10064
  }),
6395
10065
  /**
6396
- * Lists all files stored in the system or, if a record UUID is provided, lists the files related to that record.
6397
- * @summary List files
6398
- * @param {string} [recordUuid] An optional record UUID to filter files.
10066
+ *
10067
+ * @summary List company files with metadata for the media library
10068
+ * @param {string} [recordUuid]
6399
10069
  * @param {*} [options] Override http request option.
6400
10070
  * @throws {RequiredError}
6401
10071
  */
6402
- listFiles: (recordUuid_1, ...args_1) => __awaiter(this, [recordUuid_1, ...args_1], void 0, function* (recordUuid, options = {}) {
6403
- const localVarPath = `/api/v2/files/list`;
10072
+ listLibrary: (recordUuid_1, ...args_1) => __awaiter(this, [recordUuid_1, ...args_1], void 0, function* (recordUuid, options = {}) {
10073
+ const localVarPath = `/api/v2/files/library`;
6404
10074
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6405
10075
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6406
10076
  let baseOptions;
@@ -6517,6 +10187,22 @@ const FileManagementApiFp = function (configuration) {
6517
10187
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6518
10188
  });
6519
10189
  },
10190
+ /**
10191
+ *
10192
+ * @summary List company files with metadata for the media library
10193
+ * @param {string} [recordUuid]
10194
+ * @param {*} [options] Override http request option.
10195
+ * @throws {RequiredError}
10196
+ */
10197
+ listLibrary(recordUuid, options) {
10198
+ return __awaiter(this, void 0, void 0, function* () {
10199
+ var _a, _b, _c;
10200
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listLibrary(recordUuid, options);
10201
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10202
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FileManagementApi.listLibrary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10203
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10204
+ });
10205
+ },
6520
10206
  /**
6521
10207
  * 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.
6522
10208
  * @summary Upload files
@@ -6574,6 +10260,16 @@ const FileManagementApiFactory = function (configuration, basePath, axios) {
6574
10260
  listFiles(recordUuid, options) {
6575
10261
  return localVarFp.listFiles(recordUuid, options).then((request) => request(axios, basePath));
6576
10262
  },
10263
+ /**
10264
+ *
10265
+ * @summary List company files with metadata for the media library
10266
+ * @param {string} [recordUuid]
10267
+ * @param {*} [options] Override http request option.
10268
+ * @throws {RequiredError}
10269
+ */
10270
+ listLibrary(recordUuid, options) {
10271
+ return localVarFp.listLibrary(recordUuid, options).then((request) => request(axios, basePath));
10272
+ },
6577
10273
  /**
6578
10274
  * 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.
6579
10275
  * @summary Upload files
@@ -6623,6 +10319,16 @@ class FileManagementApi extends base_1.BaseAPI {
6623
10319
  listFiles(recordUuid, options) {
6624
10320
  return (0, exports.FileManagementApiFp)(this.configuration).listFiles(recordUuid, options).then((request) => request(this.axios, this.basePath));
6625
10321
  }
10322
+ /**
10323
+ *
10324
+ * @summary List company files with metadata for the media library
10325
+ * @param {string} [recordUuid]
10326
+ * @param {*} [options] Override http request option.
10327
+ * @throws {RequiredError}
10328
+ */
10329
+ listLibrary(recordUuid, options) {
10330
+ return (0, exports.FileManagementApiFp)(this.configuration).listLibrary(recordUuid, options).then((request) => request(this.axios, this.basePath));
10331
+ }
6626
10332
  /**
6627
10333
  * 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.
6628
10334
  * @summary Upload files
@@ -14959,11 +18665,11 @@ const ServerlessFunctionsApiAxiosParamCreator = function (configuration) {
14959
18665
  * @param {*} [options] Override http request option.
14960
18666
  * @throws {RequiredError}
14961
18667
  */
14962
- create4: (appUuid_1, serverlessFunctionDTO_1, ...args_1) => __awaiter(this, [appUuid_1, serverlessFunctionDTO_1, ...args_1], void 0, function* (appUuid, serverlessFunctionDTO, options = {}) {
18668
+ create5: (appUuid_1, serverlessFunctionDTO_1, ...args_1) => __awaiter(this, [appUuid_1, serverlessFunctionDTO_1, ...args_1], void 0, function* (appUuid, serverlessFunctionDTO, options = {}) {
14963
18669
  // verify required parameter 'appUuid' is not null or undefined
14964
- (0, common_1.assertParamExists)('create4', 'appUuid', appUuid);
18670
+ (0, common_1.assertParamExists)('create5', 'appUuid', appUuid);
14965
18671
  // verify required parameter 'serverlessFunctionDTO' is not null or undefined
14966
- (0, common_1.assertParamExists)('create4', 'serverlessFunctionDTO', serverlessFunctionDTO);
18672
+ (0, common_1.assertParamExists)('create5', 'serverlessFunctionDTO', serverlessFunctionDTO);
14967
18673
  const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions`
14968
18674
  .replace('{appUuid}', encodeURIComponent(String(appUuid)));
14969
18675
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -14997,11 +18703,11 @@ const ServerlessFunctionsApiAxiosParamCreator = function (configuration) {
14997
18703
  * @param {*} [options] Override http request option.
14998
18704
  * @throws {RequiredError}
14999
18705
  */
15000
- delete1: (appUuid_1, uuid_1, ...args_1) => __awaiter(this, [appUuid_1, uuid_1, ...args_1], void 0, function* (appUuid, uuid, options = {}) {
18706
+ delete2: (appUuid_1, uuid_1, ...args_1) => __awaiter(this, [appUuid_1, uuid_1, ...args_1], void 0, function* (appUuid, uuid, options = {}) {
15001
18707
  // verify required parameter 'appUuid' is not null or undefined
15002
- (0, common_1.assertParamExists)('delete1', 'appUuid', appUuid);
18708
+ (0, common_1.assertParamExists)('delete2', 'appUuid', appUuid);
15003
18709
  // verify required parameter 'uuid' is not null or undefined
15004
- (0, common_1.assertParamExists)('delete1', 'uuid', uuid);
18710
+ (0, common_1.assertParamExists)('delete2', 'uuid', uuid);
15005
18711
  const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/{uuid}`
15006
18712
  .replace('{appUuid}', encodeURIComponent(String(appUuid)))
15007
18713
  .replace('{uuid}', encodeURIComponent(String(uuid)));
@@ -15235,13 +18941,13 @@ const ServerlessFunctionsApiAxiosParamCreator = function (configuration) {
15235
18941
  * @param {*} [options] Override http request option.
15236
18942
  * @throws {RequiredError}
15237
18943
  */
15238
- 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 = {}) {
18944
+ 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 = {}) {
15239
18945
  // verify required parameter 'appUuid' is not null or undefined
15240
- (0, common_1.assertParamExists)('update1', 'appUuid', appUuid);
18946
+ (0, common_1.assertParamExists)('update2', 'appUuid', appUuid);
15241
18947
  // verify required parameter 'uuid' is not null or undefined
15242
- (0, common_1.assertParamExists)('update1', 'uuid', uuid);
18948
+ (0, common_1.assertParamExists)('update2', 'uuid', uuid);
15243
18949
  // verify required parameter 'serverlessFunctionDTO' is not null or undefined
15244
- (0, common_1.assertParamExists)('update1', 'serverlessFunctionDTO', serverlessFunctionDTO);
18950
+ (0, common_1.assertParamExists)('update2', 'serverlessFunctionDTO', serverlessFunctionDTO);
15245
18951
  const localVarPath = `/api/v2/apps/{appUuid}/serverless-functions/{uuid}`
15246
18952
  .replace('{appUuid}', encodeURIComponent(String(appUuid)))
15247
18953
  .replace('{uuid}', encodeURIComponent(String(uuid)));
@@ -15285,12 +18991,12 @@ const ServerlessFunctionsApiFp = function (configuration) {
15285
18991
  * @param {*} [options] Override http request option.
15286
18992
  * @throws {RequiredError}
15287
18993
  */
15288
- create4(appUuid, serverlessFunctionDTO, options) {
18994
+ create5(appUuid, serverlessFunctionDTO, options) {
15289
18995
  return __awaiter(this, void 0, void 0, function* () {
15290
18996
  var _a, _b, _c;
15291
- const localVarAxiosArgs = yield localVarAxiosParamCreator.create4(appUuid, serverlessFunctionDTO, options);
18997
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create5(appUuid, serverlessFunctionDTO, options);
15292
18998
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15293
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServerlessFunctionsApi.create4']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18999
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServerlessFunctionsApi.create5']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15294
19000
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15295
19001
  });
15296
19002
  },
@@ -15302,12 +19008,12 @@ const ServerlessFunctionsApiFp = function (configuration) {
15302
19008
  * @param {*} [options] Override http request option.
15303
19009
  * @throws {RequiredError}
15304
19010
  */
15305
- delete1(appUuid, uuid, options) {
19011
+ delete2(appUuid, uuid, options) {
15306
19012
  return __awaiter(this, void 0, void 0, function* () {
15307
19013
  var _a, _b, _c;
15308
- const localVarAxiosArgs = yield localVarAxiosParamCreator.delete1(appUuid, uuid, options);
19014
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.delete2(appUuid, uuid, options);
15309
19015
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15310
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServerlessFunctionsApi.delete1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19016
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServerlessFunctionsApi.delete2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15311
19017
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15312
19018
  });
15313
19019
  },
@@ -15408,12 +19114,12 @@ const ServerlessFunctionsApiFp = function (configuration) {
15408
19114
  * @param {*} [options] Override http request option.
15409
19115
  * @throws {RequiredError}
15410
19116
  */
15411
- update1(appUuid, uuid, serverlessFunctionDTO, options) {
19117
+ update2(appUuid, uuid, serverlessFunctionDTO, options) {
15412
19118
  return __awaiter(this, void 0, void 0, function* () {
15413
19119
  var _a, _b, _c;
15414
- const localVarAxiosArgs = yield localVarAxiosParamCreator.update1(appUuid, uuid, serverlessFunctionDTO, options);
19120
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.update2(appUuid, uuid, serverlessFunctionDTO, options);
15415
19121
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15416
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServerlessFunctionsApi.update1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19122
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServerlessFunctionsApi.update2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15417
19123
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15418
19124
  });
15419
19125
  },
@@ -15434,8 +19140,8 @@ const ServerlessFunctionsApiFactory = function (configuration, basePath, axios)
15434
19140
  * @param {*} [options] Override http request option.
15435
19141
  * @throws {RequiredError}
15436
19142
  */
15437
- create4(appUuid, serverlessFunctionDTO, options) {
15438
- return localVarFp.create4(appUuid, serverlessFunctionDTO, options).then((request) => request(axios, basePath));
19143
+ create5(appUuid, serverlessFunctionDTO, options) {
19144
+ return localVarFp.create5(appUuid, serverlessFunctionDTO, options).then((request) => request(axios, basePath));
15439
19145
  },
15440
19146
  /**
15441
19147
  * Tears down the GCP Cloud Function (if provisioned) and deletes the serverless function entity.
@@ -15445,8 +19151,8 @@ const ServerlessFunctionsApiFactory = function (configuration, basePath, axios)
15445
19151
  * @param {*} [options] Override http request option.
15446
19152
  * @throws {RequiredError}
15447
19153
  */
15448
- delete1(appUuid, uuid, options) {
15449
- return localVarFp.delete1(appUuid, uuid, options).then((request) => request(axios, basePath));
19154
+ delete2(appUuid, uuid, options) {
19155
+ return localVarFp.delete2(appUuid, uuid, options).then((request) => request(axios, basePath));
15450
19156
  },
15451
19157
  /**
15452
19158
  * Retrieves a paginated list of serverless functions that belong to the specified app.
@@ -15515,8 +19221,8 @@ const ServerlessFunctionsApiFactory = function (configuration, basePath, axios)
15515
19221
  * @param {*} [options] Override http request option.
15516
19222
  * @throws {RequiredError}
15517
19223
  */
15518
- update1(appUuid, uuid, serverlessFunctionDTO, options) {
15519
- return localVarFp.update1(appUuid, uuid, serverlessFunctionDTO, options).then((request) => request(axios, basePath));
19224
+ update2(appUuid, uuid, serverlessFunctionDTO, options) {
19225
+ return localVarFp.update2(appUuid, uuid, serverlessFunctionDTO, options).then((request) => request(axios, basePath));
15520
19226
  },
15521
19227
  };
15522
19228
  };
@@ -15533,8 +19239,8 @@ class ServerlessFunctionsApi extends base_1.BaseAPI {
15533
19239
  * @param {*} [options] Override http request option.
15534
19240
  * @throws {RequiredError}
15535
19241
  */
15536
- create4(appUuid, serverlessFunctionDTO, options) {
15537
- return (0, exports.ServerlessFunctionsApiFp)(this.configuration).create4(appUuid, serverlessFunctionDTO, options).then((request) => request(this.axios, this.basePath));
19242
+ create5(appUuid, serverlessFunctionDTO, options) {
19243
+ return (0, exports.ServerlessFunctionsApiFp)(this.configuration).create5(appUuid, serverlessFunctionDTO, options).then((request) => request(this.axios, this.basePath));
15538
19244
  }
15539
19245
  /**
15540
19246
  * Tears down the GCP Cloud Function (if provisioned) and deletes the serverless function entity.
@@ -15544,8 +19250,8 @@ class ServerlessFunctionsApi extends base_1.BaseAPI {
15544
19250
  * @param {*} [options] Override http request option.
15545
19251
  * @throws {RequiredError}
15546
19252
  */
15547
- delete1(appUuid, uuid, options) {
15548
- return (0, exports.ServerlessFunctionsApiFp)(this.configuration).delete1(appUuid, uuid, options).then((request) => request(this.axios, this.basePath));
19253
+ delete2(appUuid, uuid, options) {
19254
+ return (0, exports.ServerlessFunctionsApiFp)(this.configuration).delete2(appUuid, uuid, options).then((request) => request(this.axios, this.basePath));
15549
19255
  }
15550
19256
  /**
15551
19257
  * Retrieves a paginated list of serverless functions that belong to the specified app.
@@ -15614,8 +19320,8 @@ class ServerlessFunctionsApi extends base_1.BaseAPI {
15614
19320
  * @param {*} [options] Override http request option.
15615
19321
  * @throws {RequiredError}
15616
19322
  */
15617
- update1(appUuid, uuid, serverlessFunctionDTO, options) {
15618
- return (0, exports.ServerlessFunctionsApiFp)(this.configuration).update1(appUuid, uuid, serverlessFunctionDTO, options).then((request) => request(this.axios, this.basePath));
19323
+ update2(appUuid, uuid, serverlessFunctionDTO, options) {
19324
+ return (0, exports.ServerlessFunctionsApiFp)(this.configuration).update2(appUuid, uuid, serverlessFunctionDTO, options).then((request) => request(this.axios, this.basePath));
15619
19325
  }
15620
19326
  }
15621
19327
  exports.ServerlessFunctionsApi = ServerlessFunctionsApi;
@@ -18416,6 +22122,150 @@ const WebpagesApiAxiosParamCreator = function (configuration) {
18416
22122
  options: localVarRequestOptions,
18417
22123
  };
18418
22124
  }),
22125
+ /**
22126
+ * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap.
22127
+ * @summary Get filtered map markers for a public webpage
22128
+ * @param {string} xCaraerSubdomain
22129
+ * @param {string} pageUuid
22130
+ * @param {string} componentUuid
22131
+ * @param {RecordPaginationRequest} recordPaginationRequest
22132
+ * @param {string} [xCaraerEnvironment]
22133
+ * @param {string} [xCaraerPrimaryEnvironment]
22134
+ * @param {string} [authorization]
22135
+ * @param {string} [xCaraerWebpageAccess]
22136
+ * @param {string} [access]
22137
+ * @param {string} [token]
22138
+ * @param {*} [options] Override http request option.
22139
+ * @throws {RequiredError}
22140
+ */
22141
+ 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 = {}) {
22142
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
22143
+ (0, common_1.assertParamExists)('getPublicMapLocations', 'xCaraerSubdomain', xCaraerSubdomain);
22144
+ // verify required parameter 'pageUuid' is not null or undefined
22145
+ (0, common_1.assertParamExists)('getPublicMapLocations', 'pageUuid', pageUuid);
22146
+ // verify required parameter 'componentUuid' is not null or undefined
22147
+ (0, common_1.assertParamExists)('getPublicMapLocations', 'componentUuid', componentUuid);
22148
+ // verify required parameter 'recordPaginationRequest' is not null or undefined
22149
+ (0, common_1.assertParamExists)('getPublicMapLocations', 'recordPaginationRequest', recordPaginationRequest);
22150
+ const localVarPath = `/api/v2/webpages/public/maps/{pageUuid}/{componentUuid}`
22151
+ .replace('{pageUuid}', encodeURIComponent(String(pageUuid)))
22152
+ .replace('{componentUuid}', encodeURIComponent(String(componentUuid)));
22153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22154
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
22155
+ let baseOptions;
22156
+ if (configuration) {
22157
+ baseOptions = configuration.baseOptions;
22158
+ }
22159
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
22160
+ const localVarHeaderParameter = {};
22161
+ const localVarQueryParameter = {};
22162
+ // authentication bearerAuth required
22163
+ // http bearer authentication required
22164
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
22165
+ if (access !== undefined) {
22166
+ localVarQueryParameter['access'] = access;
22167
+ }
22168
+ if (token !== undefined) {
22169
+ localVarQueryParameter['token'] = token;
22170
+ }
22171
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22172
+ localVarHeaderParameter['Accept'] = 'application/json';
22173
+ if (xCaraerSubdomain != null) {
22174
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
22175
+ }
22176
+ if (xCaraerEnvironment != null) {
22177
+ localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment);
22178
+ }
22179
+ if (xCaraerPrimaryEnvironment != null) {
22180
+ localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment);
22181
+ }
22182
+ if (authorization != null) {
22183
+ localVarHeaderParameter['Authorization'] = String(authorization);
22184
+ }
22185
+ if (xCaraerWebpageAccess != null) {
22186
+ localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess);
22187
+ }
22188
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
22189
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22190
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22191
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(recordPaginationRequest, localVarRequestOptions, configuration);
22192
+ return {
22193
+ url: (0, common_1.toPathString)(localVarUrlObj),
22194
+ options: localVarRequestOptions,
22195
+ };
22196
+ }),
22197
+ /**
22198
+ * Hydrates the hover preview selected on a bound map location for a published record.
22199
+ * @summary Get a hydrated preview for one public map marker
22200
+ * @param {string} xCaraerSubdomain
22201
+ * @param {string} pageUuid
22202
+ * @param {string} componentUuid
22203
+ * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest
22204
+ * @param {string} [xCaraerEnvironment]
22205
+ * @param {string} [xCaraerPrimaryEnvironment]
22206
+ * @param {string} [authorization]
22207
+ * @param {string} [xCaraerWebpageAccess]
22208
+ * @param {string} [access]
22209
+ * @param {string} [token]
22210
+ * @param {*} [options] Override http request option.
22211
+ * @throws {RequiredError}
22212
+ */
22213
+ 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 = {}) {
22214
+ // verify required parameter 'xCaraerSubdomain' is not null or undefined
22215
+ (0, common_1.assertParamExists)('getPublicMapMarkerPreview', 'xCaraerSubdomain', xCaraerSubdomain);
22216
+ // verify required parameter 'pageUuid' is not null or undefined
22217
+ (0, common_1.assertParamExists)('getPublicMapMarkerPreview', 'pageUuid', pageUuid);
22218
+ // verify required parameter 'componentUuid' is not null or undefined
22219
+ (0, common_1.assertParamExists)('getPublicMapMarkerPreview', 'componentUuid', componentUuid);
22220
+ // verify required parameter 'mapMarkerPreviewRequest' is not null or undefined
22221
+ (0, common_1.assertParamExists)('getPublicMapMarkerPreview', 'mapMarkerPreviewRequest', mapMarkerPreviewRequest);
22222
+ const localVarPath = `/api/v2/webpages/public/maps/{pageUuid}/{componentUuid}/marker-preview`
22223
+ .replace('{pageUuid}', encodeURIComponent(String(pageUuid)))
22224
+ .replace('{componentUuid}', encodeURIComponent(String(componentUuid)));
22225
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22226
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
22227
+ let baseOptions;
22228
+ if (configuration) {
22229
+ baseOptions = configuration.baseOptions;
22230
+ }
22231
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
22232
+ const localVarHeaderParameter = {};
22233
+ const localVarQueryParameter = {};
22234
+ // authentication bearerAuth required
22235
+ // http bearer authentication required
22236
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
22237
+ if (access !== undefined) {
22238
+ localVarQueryParameter['access'] = access;
22239
+ }
22240
+ if (token !== undefined) {
22241
+ localVarQueryParameter['token'] = token;
22242
+ }
22243
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22244
+ localVarHeaderParameter['Accept'] = 'application/json';
22245
+ if (xCaraerSubdomain != null) {
22246
+ localVarHeaderParameter['X-Caraer-Subdomain'] = String(xCaraerSubdomain);
22247
+ }
22248
+ if (xCaraerEnvironment != null) {
22249
+ localVarHeaderParameter['X-Caraer-Environment'] = String(xCaraerEnvironment);
22250
+ }
22251
+ if (xCaraerPrimaryEnvironment != null) {
22252
+ localVarHeaderParameter['X-Caraer-Primary-Environment'] = String(xCaraerPrimaryEnvironment);
22253
+ }
22254
+ if (authorization != null) {
22255
+ localVarHeaderParameter['Authorization'] = String(authorization);
22256
+ }
22257
+ if (xCaraerWebpageAccess != null) {
22258
+ localVarHeaderParameter['X-Caraer-Webpage-Access'] = String(xCaraerWebpageAccess);
22259
+ }
22260
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
22261
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22262
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22263
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mapMarkerPreviewRequest, localVarRequestOptions, configuration);
22264
+ return {
22265
+ url: (0, common_1.toPathString)(localVarUrlObj),
22266
+ options: localVarRequestOptions,
22267
+ };
22268
+ }),
18419
22269
  /**
18420
22270
  * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects.
18421
22271
  * @summary Get previews for a public webpage
@@ -19540,6 +23390,56 @@ const WebpagesApiFp = function (configuration) {
19540
23390
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19541
23391
  });
19542
23392
  },
23393
+ /**
23394
+ * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap.
23395
+ * @summary Get filtered map markers for a public webpage
23396
+ * @param {string} xCaraerSubdomain
23397
+ * @param {string} pageUuid
23398
+ * @param {string} componentUuid
23399
+ * @param {RecordPaginationRequest} recordPaginationRequest
23400
+ * @param {string} [xCaraerEnvironment]
23401
+ * @param {string} [xCaraerPrimaryEnvironment]
23402
+ * @param {string} [authorization]
23403
+ * @param {string} [xCaraerWebpageAccess]
23404
+ * @param {string} [access]
23405
+ * @param {string} [token]
23406
+ * @param {*} [options] Override http request option.
23407
+ * @throws {RequiredError}
23408
+ */
23409
+ getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
23410
+ return __awaiter(this, void 0, void 0, function* () {
23411
+ var _a, _b, _c;
23412
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options);
23413
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23414
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebpagesApi.getPublicMapLocations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23415
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23416
+ });
23417
+ },
23418
+ /**
23419
+ * Hydrates the hover preview selected on a bound map location for a published record.
23420
+ * @summary Get a hydrated preview for one public map marker
23421
+ * @param {string} xCaraerSubdomain
23422
+ * @param {string} pageUuid
23423
+ * @param {string} componentUuid
23424
+ * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest
23425
+ * @param {string} [xCaraerEnvironment]
23426
+ * @param {string} [xCaraerPrimaryEnvironment]
23427
+ * @param {string} [authorization]
23428
+ * @param {string} [xCaraerWebpageAccess]
23429
+ * @param {string} [access]
23430
+ * @param {string} [token]
23431
+ * @param {*} [options] Override http request option.
23432
+ * @throws {RequiredError}
23433
+ */
23434
+ getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
23435
+ return __awaiter(this, void 0, void 0, function* () {
23436
+ var _a, _b, _c;
23437
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options);
23438
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23439
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebpagesApi.getPublicMapMarkerPreview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23440
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23441
+ });
23442
+ },
19543
23443
  /**
19544
23444
  * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects.
19545
23445
  * @summary Get previews for a public webpage
@@ -20074,6 +23974,44 @@ const WebpagesApiFactory = function (configuration, basePath, axios) {
20074
23974
  getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options) {
20075
23975
  return localVarFp.getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(axios, basePath));
20076
23976
  },
23977
+ /**
23978
+ * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap.
23979
+ * @summary Get filtered map markers for a public webpage
23980
+ * @param {string} xCaraerSubdomain
23981
+ * @param {string} pageUuid
23982
+ * @param {string} componentUuid
23983
+ * @param {RecordPaginationRequest} recordPaginationRequest
23984
+ * @param {string} [xCaraerEnvironment]
23985
+ * @param {string} [xCaraerPrimaryEnvironment]
23986
+ * @param {string} [authorization]
23987
+ * @param {string} [xCaraerWebpageAccess]
23988
+ * @param {string} [access]
23989
+ * @param {string} [token]
23990
+ * @param {*} [options] Override http request option.
23991
+ * @throws {RequiredError}
23992
+ */
23993
+ getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
23994
+ return localVarFp.getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(axios, basePath));
23995
+ },
23996
+ /**
23997
+ * Hydrates the hover preview selected on a bound map location for a published record.
23998
+ * @summary Get a hydrated preview for one public map marker
23999
+ * @param {string} xCaraerSubdomain
24000
+ * @param {string} pageUuid
24001
+ * @param {string} componentUuid
24002
+ * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest
24003
+ * @param {string} [xCaraerEnvironment]
24004
+ * @param {string} [xCaraerPrimaryEnvironment]
24005
+ * @param {string} [authorization]
24006
+ * @param {string} [xCaraerWebpageAccess]
24007
+ * @param {string} [access]
24008
+ * @param {string} [token]
24009
+ * @param {*} [options] Override http request option.
24010
+ * @throws {RequiredError}
24011
+ */
24012
+ getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
24013
+ return localVarFp.getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(axios, basePath));
24014
+ },
20077
24015
  /**
20078
24016
  * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects.
20079
24017
  * @summary Get previews for a public webpage
@@ -20486,6 +24424,44 @@ class WebpagesApi extends base_1.BaseAPI {
20486
24424
  getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options) {
20487
24425
  return (0, exports.WebpagesApiFp)(this.configuration).getMenus(xCaraerSubdomain, xCaraerEnvironment, xCaraerPrimaryEnvironment, options).then((request) => request(this.axios, this.basePath));
20488
24426
  }
24427
+ /**
24428
+ * Resolves map markers for a public map component. Object-bound sources are filtered in Cypher before the 500-marker cap.
24429
+ * @summary Get filtered map markers for a public webpage
24430
+ * @param {string} xCaraerSubdomain
24431
+ * @param {string} pageUuid
24432
+ * @param {string} componentUuid
24433
+ * @param {RecordPaginationRequest} recordPaginationRequest
24434
+ * @param {string} [xCaraerEnvironment]
24435
+ * @param {string} [xCaraerPrimaryEnvironment]
24436
+ * @param {string} [authorization]
24437
+ * @param {string} [xCaraerWebpageAccess]
24438
+ * @param {string} [access]
24439
+ * @param {string} [token]
24440
+ * @param {*} [options] Override http request option.
24441
+ * @throws {RequiredError}
24442
+ */
24443
+ getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
24444
+ return (0, exports.WebpagesApiFp)(this.configuration).getPublicMapLocations(xCaraerSubdomain, pageUuid, componentUuid, recordPaginationRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(this.axios, this.basePath));
24445
+ }
24446
+ /**
24447
+ * Hydrates the hover preview selected on a bound map location for a published record.
24448
+ * @summary Get a hydrated preview for one public map marker
24449
+ * @param {string} xCaraerSubdomain
24450
+ * @param {string} pageUuid
24451
+ * @param {string} componentUuid
24452
+ * @param {MapMarkerPreviewRequest} mapMarkerPreviewRequest
24453
+ * @param {string} [xCaraerEnvironment]
24454
+ * @param {string} [xCaraerPrimaryEnvironment]
24455
+ * @param {string} [authorization]
24456
+ * @param {string} [xCaraerWebpageAccess]
24457
+ * @param {string} [access]
24458
+ * @param {string} [token]
24459
+ * @param {*} [options] Override http request option.
24460
+ * @throws {RequiredError}
24461
+ */
24462
+ getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options) {
24463
+ return (0, exports.WebpagesApiFp)(this.configuration).getPublicMapMarkerPreview(xCaraerSubdomain, pageUuid, componentUuid, mapMarkerPreviewRequest, xCaraerEnvironment, xCaraerPrimaryEnvironment, authorization, xCaraerWebpageAccess, access, token, options).then((request) => request(this.axios, this.basePath));
24464
+ }
20489
24465
  /**
20490
24466
  * Retrieves a list of previews for a public webpage identified by its UUID. Returns a PaginationResponse containing PreviewDTO objects.
20491
24467
  * @summary Get previews for a public webpage