hostinger-api-sdk 1.1.1 → 1.2.1

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 (43) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1036 -30
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +652 -9
  7. package/dist/api.js +680 -17
  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 +652 -9
  15. package/dist/esm/api.js +674 -15
  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/EcommerceSalesChannelsApi.md +66 -4
  27. package/docs/EcommerceStoresApi.md +54 -0
  28. package/docs/EcommerceV1SalesChannelSalesChannelUpdateResource.md +20 -0
  29. package/docs/EcommerceV1SalesChannelUpdateRequest.md +22 -0
  30. package/docs/EcommerceV1StoreStoreMetadataResource.md +20 -0
  31. package/docs/EcommerceV1StoreStoreMetadataResourceMetadata.md +26 -0
  32. package/docs/EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency.md +37 -0
  33. package/docs/HostingPHPApi.md +364 -0
  34. package/docs/HostingV1PhpPhpDetailsResource.md +30 -0
  35. package/docs/HostingV1PhpPhpInfoResource.md +20 -0
  36. package/docs/HostingV1PhpPhpOptionResource.md +30 -0
  37. package/docs/HostingV1PhpPhpVersionsResource.md +22 -0
  38. package/docs/HostingV1PhpUpdatePhpExtensionsRequest.md +22 -0
  39. package/docs/HostingV1PhpUpdatePhpOptionsRequest.md +20 -0
  40. package/docs/HostingV1PhpUpdatePhpOptionsRequestOptionsValue.md +18 -0
  41. package/docs/HostingV1PhpUpdatePhpVersionRequest.md +20 -0
  42. package/index.ts +1 -1
  43. 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.1
6
+ * API Version: 1.2.1
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
@@ -3466,17 +3466,17 @@ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuratio
3466
3466
  return {
3467
3467
  /**
3468
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
3469
+ * @summary Create custom sales channel
3470
3470
  * @param {string} storeId The ID of the store to create the sales channel for.
3471
3471
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3472
3472
  * @param {*} [options] Override http request option.
3473
3473
  * @throws {RequiredError}
3474
3474
  */
3475
- createACustomSalesChannelV1: (storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1SalesChannelStoreRequest, options = {}) {
3475
+ createCustomSalesChannelV1: (storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1SalesChannelStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1SalesChannelStoreRequest, options = {}) {
3476
3476
  // verify required parameter 'storeId' is not null or undefined
3477
- assertParamExists('createACustomSalesChannelV1', 'storeId', storeId);
3477
+ assertParamExists('createCustomSalesChannelV1', 'storeId', storeId);
3478
3478
  // verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
3479
- assertParamExists('createACustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest);
3479
+ assertParamExists('createCustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest);
3480
3480
  const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
3481
3481
  .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3482
3482
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -3533,6 +3533,47 @@ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuratio
3533
3533
  options: localVarRequestOptions,
3534
3534
  };
3535
3535
  }),
3536
+ /**
3537
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
3538
+ * @summary Update sales channel
3539
+ * @param {string} storeId The ID of the store that owns the sales channel.
3540
+ * @param {string} salesChannelId The ID of the sales channel to update.
3541
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
3542
+ * @param {*} [options] Override http request option.
3543
+ * @throws {RequiredError}
3544
+ */
3545
+ updateSalesChannelV1: (storeId_1, salesChannelId_1, ecommerceV1SalesChannelUpdateRequest_1, ...args_1) => __awaiter(this, [storeId_1, salesChannelId_1, ecommerceV1SalesChannelUpdateRequest_1, ...args_1], void 0, function* (storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options = {}) {
3546
+ // verify required parameter 'storeId' is not null or undefined
3547
+ assertParamExists('updateSalesChannelV1', 'storeId', storeId);
3548
+ // verify required parameter 'salesChannelId' is not null or undefined
3549
+ assertParamExists('updateSalesChannelV1', 'salesChannelId', salesChannelId);
3550
+ // verify required parameter 'ecommerceV1SalesChannelUpdateRequest' is not null or undefined
3551
+ assertParamExists('updateSalesChannelV1', 'ecommerceV1SalesChannelUpdateRequest', ecommerceV1SalesChannelUpdateRequest);
3552
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}`
3553
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)))
3554
+ .replace(`{${"sales_channel_id"}}`, encodeURIComponent(String(salesChannelId)));
3555
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3556
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3557
+ let baseOptions;
3558
+ if (configuration) {
3559
+ baseOptions = configuration.baseOptions;
3560
+ }
3561
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3562
+ const localVarHeaderParameter = {};
3563
+ const localVarQueryParameter = {};
3564
+ // authentication apiToken required
3565
+ // http bearer authentication required
3566
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3567
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3568
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3569
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3570
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3571
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1SalesChannelUpdateRequest, localVarRequestOptions, configuration);
3572
+ return {
3573
+ url: toPathString(localVarUrlObj),
3574
+ options: localVarRequestOptions,
3575
+ };
3576
+ }),
3536
3577
  };
3537
3578
  };
3538
3579
  /**
@@ -3544,17 +3585,17 @@ export const EcommerceSalesChannelsApiFp = function (configuration) {
3544
3585
  return {
3545
3586
  /**
3546
3587
  * 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
3588
+ * @summary Create custom sales channel
3548
3589
  * @param {string} storeId The ID of the store to create the sales channel for.
3549
3590
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3550
3591
  * @param {*} [options] Override http request option.
3551
3592
  * @throws {RequiredError}
3552
3593
  */
3553
- createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3594
+ createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3554
3595
  return __awaiter(this, void 0, void 0, function* () {
3555
3596
  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;
3597
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
3598
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceSalesChannelsApi.createCustomSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3558
3599
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3559
3600
  });
3560
3601
  },
@@ -3573,6 +3614,23 @@ export const EcommerceSalesChannelsApiFp = function (configuration) {
3573
3614
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3574
3615
  });
3575
3616
  },
3617
+ /**
3618
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
3619
+ * @summary Update sales channel
3620
+ * @param {string} storeId The ID of the store that owns the sales channel.
3621
+ * @param {string} salesChannelId The ID of the sales channel to update.
3622
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
3623
+ * @param {*} [options] Override http request option.
3624
+ * @throws {RequiredError}
3625
+ */
3626
+ updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
3627
+ return __awaiter(this, void 0, void 0, function* () {
3628
+ var _a, _b;
3629
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options);
3630
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceSalesChannelsApi.updateSalesChannelV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3631
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3632
+ });
3633
+ },
3576
3634
  };
3577
3635
  };
3578
3636
  /**
@@ -3584,14 +3642,14 @@ export const EcommerceSalesChannelsApiFactory = function (configuration, basePat
3584
3642
  return {
3585
3643
  /**
3586
3644
  * 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
3645
+ * @summary Create custom sales channel
3588
3646
  * @param {string} storeId The ID of the store to create the sales channel for.
3589
3647
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3590
3648
  * @param {*} [options] Override http request option.
3591
3649
  * @throws {RequiredError}
3592
3650
  */
3593
- createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3594
- return localVarFp.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
3651
+ createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3652
+ return localVarFp.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
3595
3653
  },
3596
3654
  /**
3597
3655
  * List a store\'s active sales channels with their full metadata.
@@ -3603,6 +3661,18 @@ export const EcommerceSalesChannelsApiFactory = function (configuration, basePat
3603
3661
  listSalesChannelsV1(storeId, options) {
3604
3662
  return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
3605
3663
  },
3664
+ /**
3665
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
3666
+ * @summary Update sales channel
3667
+ * @param {string} storeId The ID of the store that owns the sales channel.
3668
+ * @param {string} salesChannelId The ID of the sales channel to update.
3669
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
3670
+ * @param {*} [options] Override http request option.
3671
+ * @throws {RequiredError}
3672
+ */
3673
+ updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
3674
+ return localVarFp.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(axios, basePath));
3675
+ },
3606
3676
  };
3607
3677
  };
3608
3678
  /**
@@ -3614,15 +3684,15 @@ export const EcommerceSalesChannelsApiFactory = function (configuration, basePat
3614
3684
  export class EcommerceSalesChannelsApi extends BaseAPI {
3615
3685
  /**
3616
3686
  * 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
3687
+ * @summary Create custom sales channel
3618
3688
  * @param {string} storeId The ID of the store to create the sales channel for.
3619
3689
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
3620
3690
  * @param {*} [options] Override http request option.
3621
3691
  * @throws {RequiredError}
3622
3692
  * @memberof EcommerceSalesChannelsApi
3623
3693
  */
3624
- createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3625
- return EcommerceSalesChannelsApiFp(this.configuration).createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
3694
+ createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options) {
3695
+ return EcommerceSalesChannelsApiFp(this.configuration).createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
3626
3696
  }
3627
3697
  /**
3628
3698
  * List a store\'s active sales channels with their full metadata.
@@ -3635,6 +3705,19 @@ export class EcommerceSalesChannelsApi extends BaseAPI {
3635
3705
  listSalesChannelsV1(storeId, options) {
3636
3706
  return EcommerceSalesChannelsApiFp(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
3637
3707
  }
3708
+ /**
3709
+ * Update a custom sales channel. The merchant-facing `name` and the public `url` (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
3710
+ * @summary Update sales channel
3711
+ * @param {string} storeId The ID of the store that owns the sales channel.
3712
+ * @param {string} salesChannelId The ID of the sales channel to update.
3713
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
3714
+ * @param {*} [options] Override http request option.
3715
+ * @throws {RequiredError}
3716
+ * @memberof EcommerceSalesChannelsApi
3717
+ */
3718
+ updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options) {
3719
+ return EcommerceSalesChannelsApiFp(this.configuration).updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
3720
+ }
3638
3721
  }
3639
3722
  /**
3640
3723
  * EcommerceShippingApi - axios parameter creator
@@ -3817,6 +3900,38 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration) {
3817
3900
  options: localVarRequestOptions,
3818
3901
  };
3819
3902
  }),
3903
+ /**
3904
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
3905
+ * @summary Get store metadata
3906
+ * @param {string} storeId The ID of the store to read metadata for.
3907
+ * @param {*} [options] Override http request option.
3908
+ * @throws {RequiredError}
3909
+ */
3910
+ getStoreMetadataV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
3911
+ // verify required parameter 'storeId' is not null or undefined
3912
+ assertParamExists('getStoreMetadataV1', 'storeId', storeId);
3913
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/metadata`
3914
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3915
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3916
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3917
+ let baseOptions;
3918
+ if (configuration) {
3919
+ baseOptions = configuration.baseOptions;
3920
+ }
3921
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3922
+ const localVarHeaderParameter = {};
3923
+ const localVarQueryParameter = {};
3924
+ // authentication apiToken required
3925
+ // http bearer authentication required
3926
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3927
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3928
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3929
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3930
+ return {
3931
+ url: toPathString(localVarUrlObj),
3932
+ options: localVarRequestOptions,
3933
+ };
3934
+ }),
3820
3935
  /**
3821
3936
  * Retrieve the stores associated with your account.
3822
3937
  * @summary Get stores
@@ -3888,6 +4003,21 @@ export const EcommerceStoresApiFp = function (configuration) {
3888
4003
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3889
4004
  });
3890
4005
  },
4006
+ /**
4007
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
4008
+ * @summary Get store metadata
4009
+ * @param {string} storeId The ID of the store to read metadata for.
4010
+ * @param {*} [options] Override http request option.
4011
+ * @throws {RequiredError}
4012
+ */
4013
+ getStoreMetadataV1(storeId, options) {
4014
+ return __awaiter(this, void 0, void 0, function* () {
4015
+ var _a, _b;
4016
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStoreMetadataV1(storeId, options);
4017
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceStoresApi.getStoreMetadataV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4019
+ });
4020
+ },
3891
4021
  /**
3892
4022
  * Retrieve the stores associated with your account.
3893
4023
  * @summary Get stores
@@ -3932,6 +4062,16 @@ export const EcommerceStoresApiFactory = function (configuration, basePath, axio
3932
4062
  deleteStoreV1(storeId, options) {
3933
4063
  return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
3934
4064
  },
4065
+ /**
4066
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
4067
+ * @summary Get store metadata
4068
+ * @param {string} storeId The ID of the store to read metadata for.
4069
+ * @param {*} [options] Override http request option.
4070
+ * @throws {RequiredError}
4071
+ */
4072
+ getStoreMetadataV1(storeId, options) {
4073
+ return localVarFp.getStoreMetadataV1(storeId, options).then((request) => request(axios, basePath));
4074
+ },
3935
4075
  /**
3936
4076
  * Retrieve the stores associated with your account.
3937
4077
  * @summary Get stores
@@ -3973,6 +4113,17 @@ export class EcommerceStoresApi extends BaseAPI {
3973
4113
  deleteStoreV1(storeId, options) {
3974
4114
  return EcommerceStoresApiFp(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
3975
4115
  }
4116
+ /**
4117
+ * Get a store\'s readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
4118
+ * @summary Get store metadata
4119
+ * @param {string} storeId The ID of the store to read metadata for.
4120
+ * @param {*} [options] Override http request option.
4121
+ * @throws {RequiredError}
4122
+ * @memberof EcommerceStoresApi
4123
+ */
4124
+ getStoreMetadataV1(storeId, options) {
4125
+ return EcommerceStoresApiFp(this.configuration).getStoreMetadataV1(storeId, options).then((request) => request(this.axios, this.basePath));
4126
+ }
3976
4127
  /**
3977
4128
  * Retrieve the stores associated with your account.
3978
4129
  * @summary Get stores
@@ -6438,6 +6589,514 @@ export const ListOrdersV1StatusesEnum = {
6438
6589
  Deleted: 'deleted',
6439
6590
  Suspended: 'suspended'
6440
6591
  };
6592
+ /**
6593
+ * HostingPHPApi - axios parameter creator
6594
+ * @export
6595
+ */
6596
+ export const HostingPHPApiAxiosParamCreator = function (configuration) {
6597
+ return {
6598
+ /**
6599
+ * 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.
6600
+ * @summary Get PHP details
6601
+ * @param {string} username
6602
+ * @param {string} domain Domain name
6603
+ * @param {*} [options] Override http request option.
6604
+ * @throws {RequiredError}
6605
+ */
6606
+ getPHPDetailsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
6607
+ // verify required parameter 'username' is not null or undefined
6608
+ assertParamExists('getPHPDetailsV1', 'username', username);
6609
+ // verify required parameter 'domain' is not null or undefined
6610
+ assertParamExists('getPHPDetailsV1', 'domain', domain);
6611
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/details`
6612
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6613
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6614
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6615
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6616
+ let baseOptions;
6617
+ if (configuration) {
6618
+ baseOptions = configuration.baseOptions;
6619
+ }
6620
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6621
+ const localVarHeaderParameter = {};
6622
+ const localVarQueryParameter = {};
6623
+ // authentication apiToken required
6624
+ // http bearer authentication required
6625
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6626
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6627
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6628
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6629
+ return {
6630
+ url: toPathString(localVarUrlObj),
6631
+ options: localVarRequestOptions,
6632
+ };
6633
+ }),
6634
+ /**
6635
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6636
+ * @summary Get PHP info
6637
+ * @param {string} username
6638
+ * @param {string} domain Domain name
6639
+ * @param {*} [options] Override http request option.
6640
+ * @throws {RequiredError}
6641
+ */
6642
+ getPHPInfoV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
6643
+ // verify required parameter 'username' is not null or undefined
6644
+ assertParamExists('getPHPInfoV1', 'username', username);
6645
+ // verify required parameter 'domain' is not null or undefined
6646
+ assertParamExists('getPHPInfoV1', 'domain', domain);
6647
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info`
6648
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6649
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6650
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6651
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6652
+ let baseOptions;
6653
+ if (configuration) {
6654
+ baseOptions = configuration.baseOptions;
6655
+ }
6656
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6657
+ const localVarHeaderParameter = {};
6658
+ const localVarQueryParameter = {};
6659
+ // authentication apiToken required
6660
+ // http bearer authentication required
6661
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6662
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6663
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6664
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6665
+ return {
6666
+ url: toPathString(localVarUrlObj),
6667
+ options: localVarRequestOptions,
6668
+ };
6669
+ }),
6670
+ /**
6671
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
6672
+ * @summary Reset PHP extensions
6673
+ * @param {string} username
6674
+ * @param {string} domain Domain name
6675
+ * @param {*} [options] Override http request option.
6676
+ * @throws {RequiredError}
6677
+ */
6678
+ resetPHPExtensionsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
6679
+ // verify required parameter 'username' is not null or undefined
6680
+ assertParamExists('resetPHPExtensionsV1', 'username', username);
6681
+ // verify required parameter 'domain' is not null or undefined
6682
+ assertParamExists('resetPHPExtensionsV1', 'domain', domain);
6683
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset`
6684
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6685
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6686
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6687
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6688
+ let baseOptions;
6689
+ if (configuration) {
6690
+ baseOptions = configuration.baseOptions;
6691
+ }
6692
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6693
+ const localVarHeaderParameter = {};
6694
+ const localVarQueryParameter = {};
6695
+ // authentication apiToken required
6696
+ // http bearer authentication required
6697
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6698
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6699
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6700
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6701
+ return {
6702
+ url: toPathString(localVarUrlObj),
6703
+ options: localVarRequestOptions,
6704
+ };
6705
+ }),
6706
+ /**
6707
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
6708
+ * @summary Update PHP extensions
6709
+ * @param {string} username
6710
+ * @param {string} domain Domain name
6711
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
6712
+ * @param {*} [options] Override http request option.
6713
+ * @throws {RequiredError}
6714
+ */
6715
+ 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 = {}) {
6716
+ // verify required parameter 'username' is not null or undefined
6717
+ assertParamExists('updatePHPExtensionsV1', 'username', username);
6718
+ // verify required parameter 'domain' is not null or undefined
6719
+ assertParamExists('updatePHPExtensionsV1', 'domain', domain);
6720
+ // verify required parameter 'hostingV1PhpUpdatePhpExtensionsRequest' is not null or undefined
6721
+ assertParamExists('updatePHPExtensionsV1', 'hostingV1PhpUpdatePhpExtensionsRequest', hostingV1PhpUpdatePhpExtensionsRequest);
6722
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions`
6723
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6724
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6725
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6726
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6727
+ let baseOptions;
6728
+ if (configuration) {
6729
+ baseOptions = configuration.baseOptions;
6730
+ }
6731
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6732
+ const localVarHeaderParameter = {};
6733
+ const localVarQueryParameter = {};
6734
+ // authentication apiToken required
6735
+ // http bearer authentication required
6736
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6737
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6738
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6739
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6740
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6741
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpExtensionsRequest, localVarRequestOptions, configuration);
6742
+ return {
6743
+ url: toPathString(localVarUrlObj),
6744
+ options: localVarRequestOptions,
6745
+ };
6746
+ }),
6747
+ /**
6748
+ * 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.
6749
+ * @summary Update PHP options
6750
+ * @param {string} username
6751
+ * @param {string} domain Domain name
6752
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
6753
+ * @param {*} [options] Override http request option.
6754
+ * @throws {RequiredError}
6755
+ */
6756
+ 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 = {}) {
6757
+ // verify required parameter 'username' is not null or undefined
6758
+ assertParamExists('updatePHPOptionsV1', 'username', username);
6759
+ // verify required parameter 'domain' is not null or undefined
6760
+ assertParamExists('updatePHPOptionsV1', 'domain', domain);
6761
+ // verify required parameter 'hostingV1PhpUpdatePhpOptionsRequest' is not null or undefined
6762
+ assertParamExists('updatePHPOptionsV1', 'hostingV1PhpUpdatePhpOptionsRequest', hostingV1PhpUpdatePhpOptionsRequest);
6763
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/options`
6764
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6765
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6766
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6767
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6768
+ let baseOptions;
6769
+ if (configuration) {
6770
+ baseOptions = configuration.baseOptions;
6771
+ }
6772
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6773
+ const localVarHeaderParameter = {};
6774
+ const localVarQueryParameter = {};
6775
+ // authentication apiToken required
6776
+ // http bearer authentication required
6777
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6778
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6779
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6781
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6782
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpOptionsRequest, localVarRequestOptions, configuration);
6783
+ return {
6784
+ url: toPathString(localVarUrlObj),
6785
+ options: localVarRequestOptions,
6786
+ };
6787
+ }),
6788
+ /**
6789
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
6790
+ * @summary Update PHP version
6791
+ * @param {string} username
6792
+ * @param {string} domain Domain name
6793
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
6794
+ * @param {*} [options] Override http request option.
6795
+ * @throws {RequiredError}
6796
+ */
6797
+ 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 = {}) {
6798
+ // verify required parameter 'username' is not null or undefined
6799
+ assertParamExists('updatePHPVersionV1', 'username', username);
6800
+ // verify required parameter 'domain' is not null or undefined
6801
+ assertParamExists('updatePHPVersionV1', 'domain', domain);
6802
+ // verify required parameter 'hostingV1PhpUpdatePhpVersionRequest' is not null or undefined
6803
+ assertParamExists('updatePHPVersionV1', 'hostingV1PhpUpdatePhpVersionRequest', hostingV1PhpUpdatePhpVersionRequest);
6804
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/version`
6805
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
6806
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6807
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6808
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6809
+ let baseOptions;
6810
+ if (configuration) {
6811
+ baseOptions = configuration.baseOptions;
6812
+ }
6813
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
6814
+ const localVarHeaderParameter = {};
6815
+ const localVarQueryParameter = {};
6816
+ // authentication apiToken required
6817
+ // http bearer authentication required
6818
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6819
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6820
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6821
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6822
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6823
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpVersionRequest, localVarRequestOptions, configuration);
6824
+ return {
6825
+ url: toPathString(localVarUrlObj),
6826
+ options: localVarRequestOptions,
6827
+ };
6828
+ }),
6829
+ };
6830
+ };
6831
+ /**
6832
+ * HostingPHPApi - functional programming interface
6833
+ * @export
6834
+ */
6835
+ export const HostingPHPApiFp = function (configuration) {
6836
+ const localVarAxiosParamCreator = HostingPHPApiAxiosParamCreator(configuration);
6837
+ return {
6838
+ /**
6839
+ * 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.
6840
+ * @summary Get PHP details
6841
+ * @param {string} username
6842
+ * @param {string} domain Domain name
6843
+ * @param {*} [options] Override http request option.
6844
+ * @throws {RequiredError}
6845
+ */
6846
+ getPHPDetailsV1(username, domain, options) {
6847
+ return __awaiter(this, void 0, void 0, function* () {
6848
+ var _a, _b;
6849
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPHPDetailsV1(username, domain, options);
6850
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.getPHPDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6851
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6852
+ });
6853
+ },
6854
+ /**
6855
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6856
+ * @summary Get PHP info
6857
+ * @param {string} username
6858
+ * @param {string} domain Domain name
6859
+ * @param {*} [options] Override http request option.
6860
+ * @throws {RequiredError}
6861
+ */
6862
+ getPHPInfoV1(username, domain, options) {
6863
+ return __awaiter(this, void 0, void 0, function* () {
6864
+ var _a, _b;
6865
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPHPInfoV1(username, domain, options);
6866
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.getPHPInfoV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6867
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6868
+ });
6869
+ },
6870
+ /**
6871
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
6872
+ * @summary Reset PHP extensions
6873
+ * @param {string} username
6874
+ * @param {string} domain Domain name
6875
+ * @param {*} [options] Override http request option.
6876
+ * @throws {RequiredError}
6877
+ */
6878
+ resetPHPExtensionsV1(username, domain, options) {
6879
+ return __awaiter(this, void 0, void 0, function* () {
6880
+ var _a, _b;
6881
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resetPHPExtensionsV1(username, domain, options);
6882
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.resetPHPExtensionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6883
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6884
+ });
6885
+ },
6886
+ /**
6887
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
6888
+ * @summary Update PHP extensions
6889
+ * @param {string} username
6890
+ * @param {string} domain Domain name
6891
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
6892
+ * @param {*} [options] Override http request option.
6893
+ * @throws {RequiredError}
6894
+ */
6895
+ updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
6896
+ return __awaiter(this, void 0, void 0, function* () {
6897
+ var _a, _b;
6898
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options);
6899
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.updatePHPExtensionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6900
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6901
+ });
6902
+ },
6903
+ /**
6904
+ * 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.
6905
+ * @summary Update PHP options
6906
+ * @param {string} username
6907
+ * @param {string} domain Domain name
6908
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
6909
+ * @param {*} [options] Override http request option.
6910
+ * @throws {RequiredError}
6911
+ */
6912
+ updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
6913
+ return __awaiter(this, void 0, void 0, function* () {
6914
+ var _a, _b;
6915
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options);
6916
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.updatePHPOptionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6917
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6918
+ });
6919
+ },
6920
+ /**
6921
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
6922
+ * @summary Update PHP version
6923
+ * @param {string} username
6924
+ * @param {string} domain Domain name
6925
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
6926
+ * @param {*} [options] Override http request option.
6927
+ * @throws {RequiredError}
6928
+ */
6929
+ updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
6930
+ return __awaiter(this, void 0, void 0, function* () {
6931
+ var _a, _b;
6932
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options);
6933
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPHPApi.updatePHPVersionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6934
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6935
+ });
6936
+ },
6937
+ };
6938
+ };
6939
+ /**
6940
+ * HostingPHPApi - factory interface
6941
+ * @export
6942
+ */
6943
+ export const HostingPHPApiFactory = function (configuration, basePath, axios) {
6944
+ const localVarFp = HostingPHPApiFp(configuration);
6945
+ return {
6946
+ /**
6947
+ * 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.
6948
+ * @summary Get PHP details
6949
+ * @param {string} username
6950
+ * @param {string} domain Domain name
6951
+ * @param {*} [options] Override http request option.
6952
+ * @throws {RequiredError}
6953
+ */
6954
+ getPHPDetailsV1(username, domain, options) {
6955
+ return localVarFp.getPHPDetailsV1(username, domain, options).then((request) => request(axios, basePath));
6956
+ },
6957
+ /**
6958
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
6959
+ * @summary Get PHP info
6960
+ * @param {string} username
6961
+ * @param {string} domain Domain name
6962
+ * @param {*} [options] Override http request option.
6963
+ * @throws {RequiredError}
6964
+ */
6965
+ getPHPInfoV1(username, domain, options) {
6966
+ return localVarFp.getPHPInfoV1(username, domain, options).then((request) => request(axios, basePath));
6967
+ },
6968
+ /**
6969
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
6970
+ * @summary Reset PHP extensions
6971
+ * @param {string} username
6972
+ * @param {string} domain Domain name
6973
+ * @param {*} [options] Override http request option.
6974
+ * @throws {RequiredError}
6975
+ */
6976
+ resetPHPExtensionsV1(username, domain, options) {
6977
+ return localVarFp.resetPHPExtensionsV1(username, domain, options).then((request) => request(axios, basePath));
6978
+ },
6979
+ /**
6980
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
6981
+ * @summary Update PHP extensions
6982
+ * @param {string} username
6983
+ * @param {string} domain Domain name
6984
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
6985
+ * @param {*} [options] Override http request option.
6986
+ * @throws {RequiredError}
6987
+ */
6988
+ updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
6989
+ return localVarFp.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(axios, basePath));
6990
+ },
6991
+ /**
6992
+ * 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.
6993
+ * @summary Update PHP options
6994
+ * @param {string} username
6995
+ * @param {string} domain Domain name
6996
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
6997
+ * @param {*} [options] Override http request option.
6998
+ * @throws {RequiredError}
6999
+ */
7000
+ updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
7001
+ return localVarFp.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(axios, basePath));
7002
+ },
7003
+ /**
7004
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
7005
+ * @summary Update PHP version
7006
+ * @param {string} username
7007
+ * @param {string} domain Domain name
7008
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
7009
+ * @param {*} [options] Override http request option.
7010
+ * @throws {RequiredError}
7011
+ */
7012
+ updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
7013
+ return localVarFp.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(axios, basePath));
7014
+ },
7015
+ };
7016
+ };
7017
+ /**
7018
+ * HostingPHPApi - object-oriented interface
7019
+ * @export
7020
+ * @class HostingPHPApi
7021
+ * @extends {BaseAPI}
7022
+ */
7023
+ export class HostingPHPApi extends BaseAPI {
7024
+ /**
7025
+ * 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.
7026
+ * @summary Get PHP details
7027
+ * @param {string} username
7028
+ * @param {string} domain Domain name
7029
+ * @param {*} [options] Override http request option.
7030
+ * @throws {RequiredError}
7031
+ * @memberof HostingPHPApi
7032
+ */
7033
+ getPHPDetailsV1(username, domain, options) {
7034
+ return HostingPHPApiFp(this.configuration).getPHPDetailsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
7035
+ }
7036
+ /**
7037
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
7038
+ * @summary Get PHP info
7039
+ * @param {string} username
7040
+ * @param {string} domain Domain name
7041
+ * @param {*} [options] Override http request option.
7042
+ * @throws {RequiredError}
7043
+ * @memberof HostingPHPApi
7044
+ */
7045
+ getPHPInfoV1(username, domain, options) {
7046
+ return HostingPHPApiFp(this.configuration).getPHPInfoV1(username, domain, options).then((request) => request(this.axios, this.basePath));
7047
+ }
7048
+ /**
7049
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
7050
+ * @summary Reset PHP extensions
7051
+ * @param {string} username
7052
+ * @param {string} domain Domain name
7053
+ * @param {*} [options] Override http request option.
7054
+ * @throws {RequiredError}
7055
+ * @memberof HostingPHPApi
7056
+ */
7057
+ resetPHPExtensionsV1(username, domain, options) {
7058
+ return HostingPHPApiFp(this.configuration).resetPHPExtensionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
7059
+ }
7060
+ /**
7061
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
7062
+ * @summary Update PHP extensions
7063
+ * @param {string} username
7064
+ * @param {string} domain Domain name
7065
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
7066
+ * @param {*} [options] Override http request option.
7067
+ * @throws {RequiredError}
7068
+ * @memberof HostingPHPApi
7069
+ */
7070
+ updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options) {
7071
+ return HostingPHPApiFp(this.configuration).updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(this.axios, this.basePath));
7072
+ }
7073
+ /**
7074
+ * 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.
7075
+ * @summary Update PHP options
7076
+ * @param {string} username
7077
+ * @param {string} domain Domain name
7078
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
7079
+ * @param {*} [options] Override http request option.
7080
+ * @throws {RequiredError}
7081
+ * @memberof HostingPHPApi
7082
+ */
7083
+ updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options) {
7084
+ return HostingPHPApiFp(this.configuration).updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(this.axios, this.basePath));
7085
+ }
7086
+ /**
7087
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
7088
+ * @summary Update PHP version
7089
+ * @param {string} username
7090
+ * @param {string} domain Domain name
7091
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
7092
+ * @param {*} [options] Override http request option.
7093
+ * @throws {RequiredError}
7094
+ * @memberof HostingPHPApi
7095
+ */
7096
+ updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options) {
7097
+ return HostingPHPApiFp(this.configuration).updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(this.axios, this.basePath));
7098
+ }
7099
+ }
6441
7100
  /**
6442
7101
  * HostingWebsitesApi - axios parameter creator
6443
7102
  * @export