hostinger-api-sdk 1.1.0 → 1.2.0

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 (44) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1227 -29
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +768 -1
  7. package/dist/api.js +818 -6
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +768 -1
  15. package/dist/esm/api.js +801 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/EcommerceMiscellaneousApi.md +54 -0
  27. package/docs/EcommerceSalesChannelsApi.md +120 -0
  28. package/docs/EcommerceV1MiscellaneousCustomStorefrontInstructionsResource.md +20 -0
  29. package/docs/EcommerceV1SalesChannelSalesChannelCreationResource.md +20 -0
  30. package/docs/EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel.md +32 -0
  31. package/docs/EcommerceV1SalesChannelSalesChannelListResource.md +20 -0
  32. package/docs/EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner.md +32 -0
  33. package/docs/EcommerceV1SalesChannelStoreRequest.md +24 -0
  34. package/docs/HostingPHPApi.md +364 -0
  35. package/docs/HostingV1PhpPhpDetailsResource.md +30 -0
  36. package/docs/HostingV1PhpPhpInfoResource.md +20 -0
  37. package/docs/HostingV1PhpPhpOptionResource.md +30 -0
  38. package/docs/HostingV1PhpPhpVersionsResource.md +22 -0
  39. package/docs/HostingV1PhpUpdatePhpExtensionsRequest.md +22 -0
  40. package/docs/HostingV1PhpUpdatePhpOptionsRequest.md +20 -0
  41. package/docs/HostingV1PhpUpdatePhpOptionsRequestOptionsValue.md +18 -0
  42. package/docs/HostingV1PhpUpdatePhpVersionRequest.md +20 -0
  43. package/index.ts +1 -1
  44. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.1.0
6
+ * API Version: 1.2.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -138,6 +138,25 @@ export const EcommerceV1ProductProductCreationResourceProductTypeEnum = {
138
138
  Physical: 'physical',
139
139
  Digital: 'digital'
140
140
  };
141
+ export const EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = {
142
+ Builder: 'builder',
143
+ Horizons: 'horizons',
144
+ Tiktok: 'tiktok',
145
+ Custom: 'custom',
146
+ QuickLink: 'quick-link',
147
+ Wordpress: 'wordpress'
148
+ };
149
+ export const EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = {
150
+ Builder: 'builder',
151
+ Horizons: 'horizons',
152
+ Tiktok: 'tiktok',
153
+ Custom: 'custom',
154
+ QuickLink: 'quick-link',
155
+ Wordpress: 'wordpress'
156
+ };
157
+ export const EcommerceV1SalesChannelStoreRequestTypeEnum = {
158
+ Custom: 'custom'
159
+ };
141
160
  export const EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
142
161
  Builder: 'builder',
143
162
  Horizons: 'horizons',
@@ -3048,6 +3067,101 @@ export class DomainsWHOISApi extends BaseAPI {
3048
3067
  return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
3049
3068
  }
3050
3069
  }
3070
+ /**
3071
+ * EcommerceMiscellaneousApi - axios parameter creator
3072
+ * @export
3073
+ */
3074
+ export const EcommerceMiscellaneousApiAxiosParamCreator = function (configuration) {
3075
+ return {
3076
+ /**
3077
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
3078
+ * @summary Get custom storefront setup instructions
3079
+ * @param {*} [options] Override http request option.
3080
+ * @throws {RequiredError}
3081
+ */
3082
+ getCustomStorefrontSetupInstructionsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3083
+ const localVarPath = `/api/ecommerce/v1/miscellaneous/custom-storefront-instructions`;
3084
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3085
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3086
+ let baseOptions;
3087
+ if (configuration) {
3088
+ baseOptions = configuration.baseOptions;
3089
+ }
3090
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3091
+ const localVarHeaderParameter = {};
3092
+ const localVarQueryParameter = {};
3093
+ // authentication apiToken required
3094
+ // http bearer authentication required
3095
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3096
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3097
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3098
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3099
+ return {
3100
+ url: toPathString(localVarUrlObj),
3101
+ options: localVarRequestOptions,
3102
+ };
3103
+ }),
3104
+ };
3105
+ };
3106
+ /**
3107
+ * EcommerceMiscellaneousApi - functional programming interface
3108
+ * @export
3109
+ */
3110
+ export const EcommerceMiscellaneousApiFp = function (configuration) {
3111
+ const localVarAxiosParamCreator = EcommerceMiscellaneousApiAxiosParamCreator(configuration);
3112
+ return {
3113
+ /**
3114
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
3115
+ * @summary Get custom storefront setup instructions
3116
+ * @param {*} [options] Override http request option.
3117
+ * @throws {RequiredError}
3118
+ */
3119
+ getCustomStorefrontSetupInstructionsV1(options) {
3120
+ return __awaiter(this, void 0, void 0, function* () {
3121
+ var _a, _b;
3122
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomStorefrontSetupInstructionsV1(options);
3123
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceMiscellaneousApi.getCustomStorefrontSetupInstructionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3124
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3125
+ });
3126
+ },
3127
+ };
3128
+ };
3129
+ /**
3130
+ * EcommerceMiscellaneousApi - factory interface
3131
+ * @export
3132
+ */
3133
+ export const EcommerceMiscellaneousApiFactory = function (configuration, basePath, axios) {
3134
+ const localVarFp = EcommerceMiscellaneousApiFp(configuration);
3135
+ return {
3136
+ /**
3137
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
3138
+ * @summary Get custom storefront setup instructions
3139
+ * @param {*} [options] Override http request option.
3140
+ * @throws {RequiredError}
3141
+ */
3142
+ getCustomStorefrontSetupInstructionsV1(options) {
3143
+ return localVarFp.getCustomStorefrontSetupInstructionsV1(options).then((request) => request(axios, basePath));
3144
+ },
3145
+ };
3146
+ };
3147
+ /**
3148
+ * EcommerceMiscellaneousApi - object-oriented interface
3149
+ * @export
3150
+ * @class EcommerceMiscellaneousApi
3151
+ * @extends {BaseAPI}
3152
+ */
3153
+ export class EcommerceMiscellaneousApi extends BaseAPI {
3154
+ /**
3155
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
3156
+ * @summary Get custom storefront setup instructions
3157
+ * @param {*} [options] Override http request option.
3158
+ * @throws {RequiredError}
3159
+ * @memberof EcommerceMiscellaneousApi
3160
+ */
3161
+ getCustomStorefrontSetupInstructionsV1(options) {
3162
+ return EcommerceMiscellaneousApiFp(this.configuration).getCustomStorefrontSetupInstructionsV1(options).then((request) => request(this.axios, this.basePath));
3163
+ }
3164
+ }
3051
3165
  /**
3052
3166
  * EcommercePaymentsApi - axios parameter creator
3053
3167
  * @export
@@ -3344,6 +3458,184 @@ export class EcommerceProductsApi extends BaseAPI {
3344
3458
  return EcommerceProductsApiFp(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
3345
3459
  }
3346
3460
  }
3461
+ /**
3462
+ * EcommerceSalesChannelsApi - axios parameter creator
3463
+ * @export
3464
+ */
3465
+ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuration) {
3466
+ return {
3467
+ /**
3468
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3469
+ * @summary Create a custom sales channel
3470
+ * @param {string} storeId The ID of the store to create the sales channel for.
3471
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3472
+ * @param {*} [options] Override http request option.
3473
+ * @throws {RequiredError}
3474
+ */
3475
+ createACustomSalesChannelV1: (storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1SalesChannelStoreRequest, options = {}) {
3476
+ // verify required parameter 'storeId' is not null or undefined
3477
+ assertParamExists('createACustomSalesChannelV1', 'storeId', storeId);
3478
+ // verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
3479
+ assertParamExists('createACustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest);
3480
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
3481
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3483
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3484
+ let baseOptions;
3485
+ if (configuration) {
3486
+ baseOptions = configuration.baseOptions;
3487
+ }
3488
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3489
+ const localVarHeaderParameter = {};
3490
+ const localVarQueryParameter = {};
3491
+ // authentication apiToken required
3492
+ // http bearer authentication required
3493
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3494
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3495
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3496
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3497
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3498
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1SalesChannelStoreRequest, localVarRequestOptions, configuration);
3499
+ return {
3500
+ url: toPathString(localVarUrlObj),
3501
+ options: localVarRequestOptions,
3502
+ };
3503
+ }),
3504
+ /**
3505
+ * List a store\'s active sales channels with their full metadata.
3506
+ * @summary List sales channels
3507
+ * @param {string} storeId The ID of the store to list sales channels for.
3508
+ * @param {*} [options] Override http request option.
3509
+ * @throws {RequiredError}
3510
+ */
3511
+ listSalesChannelsV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
3512
+ // verify required parameter 'storeId' is not null or undefined
3513
+ assertParamExists('listSalesChannelsV1', 'storeId', storeId);
3514
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
3515
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3516
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3517
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3518
+ let baseOptions;
3519
+ if (configuration) {
3520
+ baseOptions = configuration.baseOptions;
3521
+ }
3522
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3523
+ const localVarHeaderParameter = {};
3524
+ const localVarQueryParameter = {};
3525
+ // authentication apiToken required
3526
+ // http bearer authentication required
3527
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3528
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3529
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3530
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3531
+ return {
3532
+ url: toPathString(localVarUrlObj),
3533
+ options: localVarRequestOptions,
3534
+ };
3535
+ }),
3536
+ };
3537
+ };
3538
+ /**
3539
+ * EcommerceSalesChannelsApi - functional programming interface
3540
+ * @export
3541
+ */
3542
+ export const EcommerceSalesChannelsApiFp = function (configuration) {
3543
+ const localVarAxiosParamCreator = EcommerceSalesChannelsApiAxiosParamCreator(configuration);
3544
+ return {
3545
+ /**
3546
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3547
+ * @summary Create a custom sales channel
3548
+ * @param {string} storeId The ID of the store to create the sales channel for.
3549
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3550
+ * @param {*} [options] Override http request option.
3551
+ * @throws {RequiredError}
3552
+ */
3553
+ createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3554
+ return __awaiter(this, void 0, void 0, function* () {
3555
+ var _a, _b;
3556
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
3557
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceSalesChannelsApi.createACustomSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3558
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3559
+ });
3560
+ },
3561
+ /**
3562
+ * List a store\'s active sales channels with their full metadata.
3563
+ * @summary List sales channels
3564
+ * @param {string} storeId The ID of the store to list sales channels for.
3565
+ * @param {*} [options] Override http request option.
3566
+ * @throws {RequiredError}
3567
+ */
3568
+ listSalesChannelsV1(storeId, options) {
3569
+ return __awaiter(this, void 0, void 0, function* () {
3570
+ var _a, _b;
3571
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSalesChannelsV1(storeId, options);
3572
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceSalesChannelsApi.listSalesChannelsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3573
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3574
+ });
3575
+ },
3576
+ };
3577
+ };
3578
+ /**
3579
+ * EcommerceSalesChannelsApi - factory interface
3580
+ * @export
3581
+ */
3582
+ export const EcommerceSalesChannelsApiFactory = function (configuration, basePath, axios) {
3583
+ const localVarFp = EcommerceSalesChannelsApiFp(configuration);
3584
+ return {
3585
+ /**
3586
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3587
+ * @summary Create a custom sales channel
3588
+ * @param {string} storeId The ID of the store to create the sales channel for.
3589
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3590
+ * @param {*} [options] Override http request option.
3591
+ * @throws {RequiredError}
3592
+ */
3593
+ createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3594
+ return localVarFp.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
3595
+ },
3596
+ /**
3597
+ * List a store\'s active sales channels with their full metadata.
3598
+ * @summary List sales channels
3599
+ * @param {string} storeId The ID of the store to list sales channels for.
3600
+ * @param {*} [options] Override http request option.
3601
+ * @throws {RequiredError}
3602
+ */
3603
+ listSalesChannelsV1(storeId, options) {
3604
+ return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
3605
+ },
3606
+ };
3607
+ };
3608
+ /**
3609
+ * EcommerceSalesChannelsApi - object-oriented interface
3610
+ * @export
3611
+ * @class EcommerceSalesChannelsApi
3612
+ * @extends {BaseAPI}
3613
+ */
3614
+ export class EcommerceSalesChannelsApi extends BaseAPI {
3615
+ /**
3616
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
3617
+ * @summary Create a custom sales channel
3618
+ * @param {string} storeId The ID of the store to create the sales channel for.
3619
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3620
+ * @param {*} [options] Override http request option.
3621
+ * @throws {RequiredError}
3622
+ * @memberof EcommerceSalesChannelsApi
3623
+ */
3624
+ createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3625
+ return EcommerceSalesChannelsApiFp(this.configuration).createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
3626
+ }
3627
+ /**
3628
+ * List a store\'s active sales channels with their full metadata.
3629
+ * @summary List sales channels
3630
+ * @param {string} storeId The ID of the store to list sales channels for.
3631
+ * @param {*} [options] Override http request option.
3632
+ * @throws {RequiredError}
3633
+ * @memberof EcommerceSalesChannelsApi
3634
+ */
3635
+ listSalesChannelsV1(storeId, options) {
3636
+ return EcommerceSalesChannelsApiFp(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
3637
+ }
3638
+ }
3347
3639
  /**
3348
3640
  * EcommerceShippingApi - axios parameter creator
3349
3641
  * @export
@@ -6146,6 +6438,514 @@ export const ListOrdersV1StatusesEnum = {
6146
6438
  Deleted: 'deleted',
6147
6439
  Suspended: 'suspended'
6148
6440
  };
6441
+ /**
6442
+ * HostingPHPApi - axios parameter creator
6443
+ * @export
6444
+ */
6445
+ export const HostingPHPApiAxiosParamCreator = function (configuration) {
6446
+ return {
6447
+ /**
6448
+ * Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
6449
+ * @summary Get PHP details
6450
+ * @param {string} username
6451
+ * @param {string} domain Domain name
6452
+ * @param {*} [options] Override http request option.
6453
+ * @throws {RequiredError}
6454
+ */
6455
+ getPHPDetailsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
6456
+ // verify required parameter 'username' is not null or undefined
6457
+ assertParamExists('getPHPDetailsV1', 'username', username);
6458
+ // verify required parameter 'domain' is not null or undefined
6459
+ assertParamExists('getPHPDetailsV1', 'domain', domain);
6460
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/details`
6461
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6462
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6463
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6464
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6465
+ let baseOptions;
6466
+ if (configuration) {
6467
+ baseOptions = configuration.baseOptions;
6468
+ }
6469
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6470
+ const localVarHeaderParameter = {};
6471
+ const localVarQueryParameter = {};
6472
+ // authentication apiToken required
6473
+ // http bearer authentication required
6474
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6475
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6476
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6477
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6478
+ return {
6479
+ url: toPathString(localVarUrlObj),
6480
+ options: localVarRequestOptions,
6481
+ };
6482
+ }),
6483
+ /**
6484
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6485
+ * @summary Get PHP info
6486
+ * @param {string} username
6487
+ * @param {string} domain Domain name
6488
+ * @param {*} [options] Override http request option.
6489
+ * @throws {RequiredError}
6490
+ */
6491
+ getPHPInfoV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
6492
+ // verify required parameter 'username' is not null or undefined
6493
+ assertParamExists('getPHPInfoV1', 'username', username);
6494
+ // verify required parameter 'domain' is not null or undefined
6495
+ assertParamExists('getPHPInfoV1', 'domain', domain);
6496
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info`
6497
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6498
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6499
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6500
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6501
+ let baseOptions;
6502
+ if (configuration) {
6503
+ baseOptions = configuration.baseOptions;
6504
+ }
6505
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6506
+ const localVarHeaderParameter = {};
6507
+ const localVarQueryParameter = {};
6508
+ // authentication apiToken required
6509
+ // http bearer authentication required
6510
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6511
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6512
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6513
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6514
+ return {
6515
+ url: toPathString(localVarUrlObj),
6516
+ options: localVarRequestOptions,
6517
+ };
6518
+ }),
6519
+ /**
6520
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
6521
+ * @summary Reset PHP extensions
6522
+ * @param {string} username
6523
+ * @param {string} domain Domain name
6524
+ * @param {*} [options] Override http request option.
6525
+ * @throws {RequiredError}
6526
+ */
6527
+ resetPHPExtensionsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
6528
+ // verify required parameter 'username' is not null or undefined
6529
+ assertParamExists('resetPHPExtensionsV1', 'username', username);
6530
+ // verify required parameter 'domain' is not null or undefined
6531
+ assertParamExists('resetPHPExtensionsV1', 'domain', domain);
6532
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset`
6533
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6534
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6535
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6536
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6537
+ let baseOptions;
6538
+ if (configuration) {
6539
+ baseOptions = configuration.baseOptions;
6540
+ }
6541
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6542
+ const localVarHeaderParameter = {};
6543
+ const localVarQueryParameter = {};
6544
+ // authentication apiToken required
6545
+ // http bearer authentication required
6546
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6547
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6548
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6549
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6550
+ return {
6551
+ url: toPathString(localVarUrlObj),
6552
+ options: localVarRequestOptions,
6553
+ };
6554
+ }),
6555
+ /**
6556
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
6557
+ * @summary Update PHP extensions
6558
+ * @param {string} username
6559
+ * @param {string} domain Domain name
6560
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
6561
+ * @param {*} [options] Override http request option.
6562
+ * @throws {RequiredError}
6563
+ */
6564
+ updatePHPExtensionsV1: (username_1, domain_1, hostingV1PhpUpdatePhpExtensionsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PhpUpdatePhpExtensionsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options = {}) {
6565
+ // verify required parameter 'username' is not null or undefined
6566
+ assertParamExists('updatePHPExtensionsV1', 'username', username);
6567
+ // verify required parameter 'domain' is not null or undefined
6568
+ assertParamExists('updatePHPExtensionsV1', 'domain', domain);
6569
+ // verify required parameter 'hostingV1PhpUpdatePhpExtensionsRequest' is not null or undefined
6570
+ assertParamExists('updatePHPExtensionsV1', 'hostingV1PhpUpdatePhpExtensionsRequest', hostingV1PhpUpdatePhpExtensionsRequest);
6571
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions`
6572
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6573
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6574
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6575
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6576
+ let baseOptions;
6577
+ if (configuration) {
6578
+ baseOptions = configuration.baseOptions;
6579
+ }
6580
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6581
+ const localVarHeaderParameter = {};
6582
+ const localVarQueryParameter = {};
6583
+ // authentication apiToken required
6584
+ // http bearer authentication required
6585
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6586
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6587
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6588
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6589
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6590
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpExtensionsRequest, localVarRequestOptions, configuration);
6591
+ return {
6592
+ url: toPathString(localVarUrlObj),
6593
+ options: localVarRequestOptions,
6594
+ };
6595
+ }),
6596
+ /**
6597
+ * Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
6598
+ * @summary Update PHP options
6599
+ * @param {string} username
6600
+ * @param {string} domain Domain name
6601
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
6602
+ * @param {*} [options] Override http request option.
6603
+ * @throws {RequiredError}
6604
+ */
6605
+ updatePHPOptionsV1: (username_1, domain_1, hostingV1PhpUpdatePhpOptionsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PhpUpdatePhpOptionsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PhpUpdatePhpOptionsRequest, options = {}) {
6606
+ // verify required parameter 'username' is not null or undefined
6607
+ assertParamExists('updatePHPOptionsV1', 'username', username);
6608
+ // verify required parameter 'domain' is not null or undefined
6609
+ assertParamExists('updatePHPOptionsV1', 'domain', domain);
6610
+ // verify required parameter 'hostingV1PhpUpdatePhpOptionsRequest' is not null or undefined
6611
+ assertParamExists('updatePHPOptionsV1', 'hostingV1PhpUpdatePhpOptionsRequest', hostingV1PhpUpdatePhpOptionsRequest);
6612
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/options`
6613
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6614
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6615
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6616
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6617
+ let baseOptions;
6618
+ if (configuration) {
6619
+ baseOptions = configuration.baseOptions;
6620
+ }
6621
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6622
+ const localVarHeaderParameter = {};
6623
+ const localVarQueryParameter = {};
6624
+ // authentication apiToken required
6625
+ // http bearer authentication required
6626
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6627
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6628
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6629
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6630
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6631
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpOptionsRequest, localVarRequestOptions, configuration);
6632
+ return {
6633
+ url: toPathString(localVarUrlObj),
6634
+ options: localVarRequestOptions,
6635
+ };
6636
+ }),
6637
+ /**
6638
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
6639
+ * @summary Update PHP version
6640
+ * @param {string} username
6641
+ * @param {string} domain Domain name
6642
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
6643
+ * @param {*} [options] Override http request option.
6644
+ * @throws {RequiredError}
6645
+ */
6646
+ updatePHPVersionV1: (username_1, domain_1, hostingV1PhpUpdatePhpVersionRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PhpUpdatePhpVersionRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PhpUpdatePhpVersionRequest, options = {}) {
6647
+ // verify required parameter 'username' is not null or undefined
6648
+ assertParamExists('updatePHPVersionV1', 'username', username);
6649
+ // verify required parameter 'domain' is not null or undefined
6650
+ assertParamExists('updatePHPVersionV1', 'domain', domain);
6651
+ // verify required parameter 'hostingV1PhpUpdatePhpVersionRequest' is not null or undefined
6652
+ assertParamExists('updatePHPVersionV1', 'hostingV1PhpUpdatePhpVersionRequest', hostingV1PhpUpdatePhpVersionRequest);
6653
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/version`
6654
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6655
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6656
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6657
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6658
+ let baseOptions;
6659
+ if (configuration) {
6660
+ baseOptions = configuration.baseOptions;
6661
+ }
6662
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6663
+ const localVarHeaderParameter = {};
6664
+ const localVarQueryParameter = {};
6665
+ // authentication apiToken required
6666
+ // http bearer authentication required
6667
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6668
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6669
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6670
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6671
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6672
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpVersionRequest, localVarRequestOptions, configuration);
6673
+ return {
6674
+ url: toPathString(localVarUrlObj),
6675
+ options: localVarRequestOptions,
6676
+ };
6677
+ }),
6678
+ };
6679
+ };
6680
+ /**
6681
+ * HostingPHPApi - functional programming interface
6682
+ * @export
6683
+ */
6684
+ export const HostingPHPApiFp = function (configuration) {
6685
+ const localVarAxiosParamCreator = HostingPHPApiAxiosParamCreator(configuration);
6686
+ return {
6687
+ /**
6688
+ * Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
6689
+ * @summary Get PHP details
6690
+ * @param {string} username
6691
+ * @param {string} domain Domain name
6692
+ * @param {*} [options] Override http request option.
6693
+ * @throws {RequiredError}
6694
+ */
6695
+ getPHPDetailsV1(username, domain, options) {
6696
+ return __awaiter(this, void 0, void 0, function* () {
6697
+ var _a, _b;
6698
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPHPDetailsV1(username, domain, options);
6699
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.getPHPDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6700
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6701
+ });
6702
+ },
6703
+ /**
6704
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6705
+ * @summary Get PHP info
6706
+ * @param {string} username
6707
+ * @param {string} domain Domain name
6708
+ * @param {*} [options] Override http request option.
6709
+ * @throws {RequiredError}
6710
+ */
6711
+ getPHPInfoV1(username, domain, options) {
6712
+ return __awaiter(this, void 0, void 0, function* () {
6713
+ var _a, _b;
6714
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPHPInfoV1(username, domain, options);
6715
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.getPHPInfoV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6716
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6717
+ });
6718
+ },
6719
+ /**
6720
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
6721
+ * @summary Reset PHP extensions
6722
+ * @param {string} username
6723
+ * @param {string} domain Domain name
6724
+ * @param {*} [options] Override http request option.
6725
+ * @throws {RequiredError}
6726
+ */
6727
+ resetPHPExtensionsV1(username, domain, options) {
6728
+ return __awaiter(this, void 0, void 0, function* () {
6729
+ var _a, _b;
6730
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resetPHPExtensionsV1(username, domain, options);
6731
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.resetPHPExtensionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6732
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6733
+ });
6734
+ },
6735
+ /**
6736
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
6737
+ * @summary Update PHP extensions
6738
+ * @param {string} username
6739
+ * @param {string} domain Domain name
6740
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
6741
+ * @param {*} [options] Override http request option.
6742
+ * @throws {RequiredError}
6743
+ */
6744
+ updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
6745
+ return __awaiter(this, void 0, void 0, function* () {
6746
+ var _a, _b;
6747
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options);
6748
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.updatePHPExtensionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6749
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6750
+ });
6751
+ },
6752
+ /**
6753
+ * Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
6754
+ * @summary Update PHP options
6755
+ * @param {string} username
6756
+ * @param {string} domain Domain name
6757
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
6758
+ * @param {*} [options] Override http request option.
6759
+ * @throws {RequiredError}
6760
+ */
6761
+ updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
6762
+ return __awaiter(this, void 0, void 0, function* () {
6763
+ var _a, _b;
6764
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options);
6765
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.updatePHPOptionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6766
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6767
+ });
6768
+ },
6769
+ /**
6770
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
6771
+ * @summary Update PHP version
6772
+ * @param {string} username
6773
+ * @param {string} domain Domain name
6774
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
6775
+ * @param {*} [options] Override http request option.
6776
+ * @throws {RequiredError}
6777
+ */
6778
+ updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
6779
+ return __awaiter(this, void 0, void 0, function* () {
6780
+ var _a, _b;
6781
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options);
6782
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.updatePHPVersionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6783
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6784
+ });
6785
+ },
6786
+ };
6787
+ };
6788
+ /**
6789
+ * HostingPHPApi - factory interface
6790
+ * @export
6791
+ */
6792
+ export const HostingPHPApiFactory = function (configuration, basePath, axios) {
6793
+ const localVarFp = HostingPHPApiFp(configuration);
6794
+ return {
6795
+ /**
6796
+ * Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
6797
+ * @summary Get PHP details
6798
+ * @param {string} username
6799
+ * @param {string} domain Domain name
6800
+ * @param {*} [options] Override http request option.
6801
+ * @throws {RequiredError}
6802
+ */
6803
+ getPHPDetailsV1(username, domain, options) {
6804
+ return localVarFp.getPHPDetailsV1(username, domain, options).then((request) => request(axios, basePath));
6805
+ },
6806
+ /**
6807
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6808
+ * @summary Get PHP info
6809
+ * @param {string} username
6810
+ * @param {string} domain Domain name
6811
+ * @param {*} [options] Override http request option.
6812
+ * @throws {RequiredError}
6813
+ */
6814
+ getPHPInfoV1(username, domain, options) {
6815
+ return localVarFp.getPHPInfoV1(username, domain, options).then((request) => request(axios, basePath));
6816
+ },
6817
+ /**
6818
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
6819
+ * @summary Reset PHP extensions
6820
+ * @param {string} username
6821
+ * @param {string} domain Domain name
6822
+ * @param {*} [options] Override http request option.
6823
+ * @throws {RequiredError}
6824
+ */
6825
+ resetPHPExtensionsV1(username, domain, options) {
6826
+ return localVarFp.resetPHPExtensionsV1(username, domain, options).then((request) => request(axios, basePath));
6827
+ },
6828
+ /**
6829
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
6830
+ * @summary Update PHP extensions
6831
+ * @param {string} username
6832
+ * @param {string} domain Domain name
6833
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
6834
+ * @param {*} [options] Override http request option.
6835
+ * @throws {RequiredError}
6836
+ */
6837
+ updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
6838
+ return localVarFp.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(axios, basePath));
6839
+ },
6840
+ /**
6841
+ * Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
6842
+ * @summary Update PHP options
6843
+ * @param {string} username
6844
+ * @param {string} domain Domain name
6845
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
6846
+ * @param {*} [options] Override http request option.
6847
+ * @throws {RequiredError}
6848
+ */
6849
+ updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
6850
+ return localVarFp.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(axios, basePath));
6851
+ },
6852
+ /**
6853
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
6854
+ * @summary Update PHP version
6855
+ * @param {string} username
6856
+ * @param {string} domain Domain name
6857
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
6858
+ * @param {*} [options] Override http request option.
6859
+ * @throws {RequiredError}
6860
+ */
6861
+ updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
6862
+ return localVarFp.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(axios, basePath));
6863
+ },
6864
+ };
6865
+ };
6866
+ /**
6867
+ * HostingPHPApi - object-oriented interface
6868
+ * @export
6869
+ * @class HostingPHPApi
6870
+ * @extends {BaseAPI}
6871
+ */
6872
+ export class HostingPHPApi extends BaseAPI {
6873
+ /**
6874
+ * Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
6875
+ * @summary Get PHP details
6876
+ * @param {string} username
6877
+ * @param {string} domain Domain name
6878
+ * @param {*} [options] Override http request option.
6879
+ * @throws {RequiredError}
6880
+ * @memberof HostingPHPApi
6881
+ */
6882
+ getPHPDetailsV1(username, domain, options) {
6883
+ return HostingPHPApiFp(this.configuration).getPHPDetailsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
6884
+ }
6885
+ /**
6886
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6887
+ * @summary Get PHP info
6888
+ * @param {string} username
6889
+ * @param {string} domain Domain name
6890
+ * @param {*} [options] Override http request option.
6891
+ * @throws {RequiredError}
6892
+ * @memberof HostingPHPApi
6893
+ */
6894
+ getPHPInfoV1(username, domain, options) {
6895
+ return HostingPHPApiFp(this.configuration).getPHPInfoV1(username, domain, options).then((request) => request(this.axios, this.basePath));
6896
+ }
6897
+ /**
6898
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
6899
+ * @summary Reset PHP extensions
6900
+ * @param {string} username
6901
+ * @param {string} domain Domain name
6902
+ * @param {*} [options] Override http request option.
6903
+ * @throws {RequiredError}
6904
+ * @memberof HostingPHPApi
6905
+ */
6906
+ resetPHPExtensionsV1(username, domain, options) {
6907
+ return HostingPHPApiFp(this.configuration).resetPHPExtensionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
6908
+ }
6909
+ /**
6910
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
6911
+ * @summary Update PHP extensions
6912
+ * @param {string} username
6913
+ * @param {string} domain Domain name
6914
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
6915
+ * @param {*} [options] Override http request option.
6916
+ * @throws {RequiredError}
6917
+ * @memberof HostingPHPApi
6918
+ */
6919
+ updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
6920
+ return HostingPHPApiFp(this.configuration).updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(this.axios, this.basePath));
6921
+ }
6922
+ /**
6923
+ * Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
6924
+ * @summary Update PHP options
6925
+ * @param {string} username
6926
+ * @param {string} domain Domain name
6927
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
6928
+ * @param {*} [options] Override http request option.
6929
+ * @throws {RequiredError}
6930
+ * @memberof HostingPHPApi
6931
+ */
6932
+ updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
6933
+ return HostingPHPApiFp(this.configuration).updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(this.axios, this.basePath));
6934
+ }
6935
+ /**
6936
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
6937
+ * @summary Update PHP version
6938
+ * @param {string} username
6939
+ * @param {string} domain Domain name
6940
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
6941
+ * @param {*} [options] Override http request option.
6942
+ * @throws {RequiredError}
6943
+ * @memberof HostingPHPApi
6944
+ */
6945
+ updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
6946
+ return HostingPHPApiFp(this.configuration).updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(this.axios, this.basePath));
6947
+ }
6948
+ }
6149
6949
  /**
6150
6950
  * HostingWebsitesApi - axios parameter creator
6151
6951
  * @export