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/api.ts 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
@@ -1514,6 +1514,19 @@ export interface EcommerceGetStoresV1200Response {
1514
1514
  */
1515
1515
  'meta': CommonSchemaPaginationMetaSchema;
1516
1516
  }
1517
+ /**
1518
+ *
1519
+ * @export
1520
+ * @interface EcommerceV1MiscellaneousCustomStorefrontInstructionsResource
1521
+ */
1522
+ export interface EcommerceV1MiscellaneousCustomStorefrontInstructionsResource {
1523
+ /**
1524
+ * Markdown setup instructions for connecting a custom sales channel to your store.
1525
+ * @type {string}
1526
+ * @memberof EcommerceV1MiscellaneousCustomStorefrontInstructionsResource
1527
+ */
1528
+ 'instructions': string;
1529
+ }
1517
1530
  /**
1518
1531
  *
1519
1532
  * @export
@@ -1715,6 +1728,186 @@ export const EcommerceV1ProductProductCreationResourceProductTypeEnum = {
1715
1728
 
1716
1729
  export type EcommerceV1ProductProductCreationResourceProductTypeEnum = typeof EcommerceV1ProductProductCreationResourceProductTypeEnum[keyof typeof EcommerceV1ProductProductCreationResourceProductTypeEnum];
1717
1730
 
1731
+ /**
1732
+ *
1733
+ * @export
1734
+ * @interface EcommerceV1SalesChannelSalesChannelCreationResource
1735
+ */
1736
+ export interface EcommerceV1SalesChannelSalesChannelCreationResource {
1737
+ /**
1738
+ *
1739
+ * @type {EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel}
1740
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResource
1741
+ */
1742
+ 'sales_channel': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel;
1743
+ }
1744
+ /**
1745
+ *
1746
+ * @export
1747
+ * @interface EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1748
+ */
1749
+ export interface EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel {
1750
+ /**
1751
+ * Sales channel ID
1752
+ * @type {string}
1753
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1754
+ */
1755
+ 'id': string;
1756
+ /**
1757
+ * Sales channel type
1758
+ * @type {string}
1759
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1760
+ */
1761
+ 'type': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum;
1762
+ /**
1763
+ * Whether this is the primary sales channel.
1764
+ * @type {boolean}
1765
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1766
+ */
1767
+ 'is_primary': boolean;
1768
+ /**
1769
+ * Whether the sales channel is active.
1770
+ * @type {boolean}
1771
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1772
+ */
1773
+ 'is_active': boolean;
1774
+ /**
1775
+ * External identifier for the sales channel.
1776
+ * @type {string}
1777
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1778
+ */
1779
+ 'external_id': string | null;
1780
+ /**
1781
+ * Merchant-facing custom name.
1782
+ * @type {string}
1783
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1784
+ */
1785
+ 'name': string | null;
1786
+ /**
1787
+ * Public address where the custom sales channel lives.
1788
+ * @type {string}
1789
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1790
+ */
1791
+ 'domain': string | null;
1792
+ }
1793
+
1794
+ export const EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = {
1795
+ Builder: 'builder',
1796
+ Horizons: 'horizons',
1797
+ Tiktok: 'tiktok',
1798
+ Custom: 'custom',
1799
+ QuickLink: 'quick-link',
1800
+ Wordpress: 'wordpress'
1801
+ } as const;
1802
+
1803
+ export type EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = typeof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum];
1804
+
1805
+ /**
1806
+ *
1807
+ * @export
1808
+ * @interface EcommerceV1SalesChannelSalesChannelListResource
1809
+ */
1810
+ export interface EcommerceV1SalesChannelSalesChannelListResource {
1811
+ /**
1812
+ * The store\'s active sales channels.
1813
+ * @type {Array<EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner>}
1814
+ * @memberof EcommerceV1SalesChannelSalesChannelListResource
1815
+ */
1816
+ 'sales_channels': Array<EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner>;
1817
+ }
1818
+ /**
1819
+ *
1820
+ * @export
1821
+ * @interface EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1822
+ */
1823
+ export interface EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner {
1824
+ /**
1825
+ * Sales channel ID
1826
+ * @type {string}
1827
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1828
+ */
1829
+ 'id': string;
1830
+ /**
1831
+ * Sales channel type
1832
+ * @type {string}
1833
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1834
+ */
1835
+ 'type': EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum;
1836
+ /**
1837
+ * Whether this is the primary sales channel.
1838
+ * @type {boolean}
1839
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1840
+ */
1841
+ 'is_primary': boolean;
1842
+ /**
1843
+ * Whether the sales channel is active.
1844
+ * @type {boolean}
1845
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1846
+ */
1847
+ 'is_active': boolean;
1848
+ /**
1849
+ * External identifier for the sales channel.
1850
+ * @type {string}
1851
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1852
+ */
1853
+ 'external_id': string | null;
1854
+ /**
1855
+ * Merchant-facing custom name.
1856
+ * @type {string}
1857
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1858
+ */
1859
+ 'name': string | null;
1860
+ /**
1861
+ * Public address where the sales channel lives.
1862
+ * @type {string}
1863
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1864
+ */
1865
+ 'domain': string | null;
1866
+ }
1867
+
1868
+ export const EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = {
1869
+ Builder: 'builder',
1870
+ Horizons: 'horizons',
1871
+ Tiktok: 'tiktok',
1872
+ Custom: 'custom',
1873
+ QuickLink: 'quick-link',
1874
+ Wordpress: 'wordpress'
1875
+ } as const;
1876
+
1877
+ export type EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum];
1878
+
1879
+ /**
1880
+ *
1881
+ * @export
1882
+ * @interface EcommerceV1SalesChannelStoreRequest
1883
+ */
1884
+ export interface EcommerceV1SalesChannelStoreRequest {
1885
+ /**
1886
+ * Sales channel type. Only \"custom\" channels can be created via the API.
1887
+ * @type {string}
1888
+ * @memberof EcommerceV1SalesChannelStoreRequest
1889
+ */
1890
+ 'type': EcommerceV1SalesChannelStoreRequestTypeEnum;
1891
+ /**
1892
+ * Merchant-facing custom name shown in the sales channels list.
1893
+ * @type {string}
1894
+ * @memberof EcommerceV1SalesChannelStoreRequest
1895
+ */
1896
+ 'name': string;
1897
+ /**
1898
+ * Optional public address where the custom sales channel lives.
1899
+ * @type {string}
1900
+ * @memberof EcommerceV1SalesChannelStoreRequest
1901
+ */
1902
+ 'url': string | null;
1903
+ }
1904
+
1905
+ export const EcommerceV1SalesChannelStoreRequestTypeEnum = {
1906
+ Custom: 'custom'
1907
+ } as const;
1908
+
1909
+ export type EcommerceV1SalesChannelStoreRequestTypeEnum = typeof EcommerceV1SalesChannelStoreRequestTypeEnum[keyof typeof EcommerceV1SalesChannelStoreRequestTypeEnum];
1910
+
1718
1911
  /**
1719
1912
  *
1720
1913
  * @export
@@ -2895,6 +3088,175 @@ export interface HostingV1OrdersPlanResource {
2895
3088
  */
2896
3089
  'name': string;
2897
3090
  }
3091
+ /**
3092
+ *
3093
+ * @export
3094
+ * @interface HostingV1PhpPhpDetailsResource
3095
+ */
3096
+ export interface HostingV1PhpPhpDetailsResource {
3097
+ /**
3098
+ * Current PHP version name
3099
+ * @type {string}
3100
+ * @memberof HostingV1PhpPhpDetailsResource
3101
+ */
3102
+ 'php_version': string;
3103
+ /**
3104
+ * Full PHP version name
3105
+ * @type {string}
3106
+ * @memberof HostingV1PhpPhpDetailsResource
3107
+ */
3108
+ 'php_version_full': string;
3109
+ /**
3110
+ *
3111
+ * @type {HostingV1PhpPhpVersionsResource}
3112
+ * @memberof HostingV1PhpPhpDetailsResource
3113
+ */
3114
+ 'php_versions': HostingV1PhpPhpVersionsResource;
3115
+ /**
3116
+ * PHP options keyed by option name
3117
+ * @type {{ [key: string]: HostingV1PhpPhpOptionResource; }}
3118
+ * @memberof HostingV1PhpPhpDetailsResource
3119
+ */
3120
+ 'options': { [key: string]: HostingV1PhpPhpOptionResource; };
3121
+ /**
3122
+ * PHP extensions keyed by extension name
3123
+ * @type {object}
3124
+ * @memberof HostingV1PhpPhpDetailsResource
3125
+ */
3126
+ 'extensions': object;
3127
+ /**
3128
+ * Groups of extensions that conflict with each other
3129
+ * @type {Array<Array<string>>}
3130
+ * @memberof HostingV1PhpPhpDetailsResource
3131
+ */
3132
+ 'conflicting_extensions': Array<Array<string>>;
3133
+ }
3134
+ /**
3135
+ *
3136
+ * @export
3137
+ * @interface HostingV1PhpPhpInfoResource
3138
+ */
3139
+ export interface HostingV1PhpPhpInfoResource {
3140
+ /**
3141
+ * HTML string containing the full phpinfo page
3142
+ * @type {string}
3143
+ * @memberof HostingV1PhpPhpInfoResource
3144
+ */
3145
+ 'info': string;
3146
+ }
3147
+ /**
3148
+ *
3149
+ * @export
3150
+ * @interface HostingV1PhpPhpOptionResource
3151
+ */
3152
+ export interface HostingV1PhpPhpOptionResource {
3153
+ /**
3154
+ * Declared option type (e.g. bool, string)
3155
+ * @type {string}
3156
+ * @memberof HostingV1PhpPhpOptionResource
3157
+ */
3158
+ 'type': string;
3159
+ /**
3160
+ * Current value for this website
3161
+ * @type {string}
3162
+ * @memberof HostingV1PhpPhpOptionResource
3163
+ */
3164
+ 'value': string;
3165
+ /**
3166
+ * Human-readable description
3167
+ * @type {string}
3168
+ * @memberof HostingV1PhpPhpOptionResource
3169
+ */
3170
+ 'comment': string;
3171
+ /**
3172
+ * Default value
3173
+ * @type {string}
3174
+ * @memberof HostingV1PhpPhpOptionResource
3175
+ */
3176
+ 'default': string;
3177
+ /**
3178
+ * Allowed value range or limits, when applicable
3179
+ * @type {string}
3180
+ * @memberof HostingV1PhpPhpOptionResource
3181
+ */
3182
+ 'range': string | null;
3183
+ /**
3184
+ * Maximum value allowed by the account hosting plan, when applicable
3185
+ * @type {string}
3186
+ * @memberof HostingV1PhpPhpOptionResource
3187
+ */
3188
+ 'max': string | null;
3189
+ }
3190
+ /**
3191
+ *
3192
+ * @export
3193
+ * @interface HostingV1PhpPhpVersionsResource
3194
+ */
3195
+ export interface HostingV1PhpPhpVersionsResource {
3196
+ /**
3197
+ * Key-value pairs of supported versions
3198
+ * @type {object}
3199
+ * @memberof HostingV1PhpPhpVersionsResource
3200
+ */
3201
+ 'supported': object;
3202
+ /**
3203
+ * Key-value pairs of unsupported versions
3204
+ * @type {object}
3205
+ * @memberof HostingV1PhpPhpVersionsResource
3206
+ */
3207
+ 'unsupported': object;
3208
+ }
3209
+ /**
3210
+ *
3211
+ * @export
3212
+ * @interface HostingV1PhpUpdatePhpExtensionsRequest
3213
+ */
3214
+ export interface HostingV1PhpUpdatePhpExtensionsRequest {
3215
+ /**
3216
+ * PHP extensions to enable.
3217
+ * @type {Array<string>}
3218
+ * @memberof HostingV1PhpUpdatePhpExtensionsRequest
3219
+ */
3220
+ 'enable': Array<string>;
3221
+ /**
3222
+ * PHP extensions to disable.
3223
+ * @type {Array<string>}
3224
+ * @memberof HostingV1PhpUpdatePhpExtensionsRequest
3225
+ */
3226
+ 'disable': Array<string>;
3227
+ }
3228
+ /**
3229
+ *
3230
+ * @export
3231
+ * @interface HostingV1PhpUpdatePhpOptionsRequest
3232
+ */
3233
+ export interface HostingV1PhpUpdatePhpOptionsRequest {
3234
+ /**
3235
+ * Map of PHP options to update, keyed by option name. Only include options you want to change.
3236
+ * @type {{ [key: string]: HostingV1PhpUpdatePhpOptionsRequestOptionsValue; }}
3237
+ * @memberof HostingV1PhpUpdatePhpOptionsRequest
3238
+ */
3239
+ 'options': { [key: string]: HostingV1PhpUpdatePhpOptionsRequestOptionsValue; };
3240
+ }
3241
+ /**
3242
+ * @type HostingV1PhpUpdatePhpOptionsRequestOptionsValue
3243
+ * @export
3244
+ */
3245
+ export type HostingV1PhpUpdatePhpOptionsRequestOptionsValue = number | string;
3246
+
3247
+ /**
3248
+ *
3249
+ * @export
3250
+ * @interface HostingV1PhpUpdatePhpVersionRequest
3251
+ */
3252
+ export interface HostingV1PhpUpdatePhpVersionRequest {
3253
+ /**
3254
+ * PHP version to switch the website to.
3255
+ * @type {string}
3256
+ * @memberof HostingV1PhpUpdatePhpVersionRequest
3257
+ */
3258
+ 'version': string;
3259
+ }
2898
3260
  /**
2899
3261
  *
2900
3262
  * @export
@@ -8765,26 +9127,19 @@ export class DomainsWHOISApi extends BaseAPI {
8765
9127
 
8766
9128
 
8767
9129
  /**
8768
- * EcommercePaymentsApi - axios parameter creator
9130
+ * EcommerceMiscellaneousApi - axios parameter creator
8769
9131
  * @export
8770
9132
  */
8771
- export const EcommercePaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
9133
+ export const EcommerceMiscellaneousApiAxiosParamCreator = function (configuration?: Configuration) {
8772
9134
  return {
8773
9135
  /**
8774
- * Enable a manual payment method so the store can accept orders without an online payment provider.
8775
- * @summary Enable manual payment method
8776
- * @param {string} storeId The ID of the store to enable manual payment for.
8777
- * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
9136
+ * 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.
9137
+ * @summary Get custom storefront setup instructions
8778
9138
  * @param {*} [options] Override http request option.
8779
9139
  * @throws {RequiredError}
8780
9140
  */
8781
- enableManualPaymentMethodV1: async (storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8782
- // verify required parameter 'storeId' is not null or undefined
8783
- assertParamExists('enableManualPaymentMethodV1', 'storeId', storeId)
8784
- // verify required parameter 'ecommerceV1PaymentEnableManualPaymentRequest' is not null or undefined
8785
- assertParamExists('enableManualPaymentMethodV1', 'ecommerceV1PaymentEnableManualPaymentRequest', ecommerceV1PaymentEnableManualPaymentRequest)
8786
- const localVarPath = `/api/ecommerce/v1/stores/{store_id}/payment-methods/manual`
8787
- .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
9141
+ getCustomStorefrontSetupInstructionsV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9142
+ const localVarPath = `/api/ecommerce/v1/miscellaneous/custom-storefront-instructions`;
8788
9143
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8789
9144
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8790
9145
  let baseOptions;
@@ -8792,7 +9147,7 @@ export const EcommercePaymentsApiAxiosParamCreator = function (configuration?: C
8792
9147
  baseOptions = configuration.baseOptions;
8793
9148
  }
8794
9149
 
8795
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9150
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8796
9151
  const localVarHeaderParameter = {} as any;
8797
9152
  const localVarQueryParameter = {} as any;
8798
9153
 
@@ -8802,12 +9157,9 @@ export const EcommercePaymentsApiAxiosParamCreator = function (configuration?: C
8802
9157
 
8803
9158
 
8804
9159
 
8805
- localVarHeaderParameter['Content-Type'] = 'application/json';
8806
-
8807
9160
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8808
9161
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8809
9162
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8810
- localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1PaymentEnableManualPaymentRequest, localVarRequestOptions, configuration)
8811
9163
 
8812
9164
  return {
8813
9165
  url: toPathString(localVarUrlObj),
@@ -8818,30 +9170,144 @@ export const EcommercePaymentsApiAxiosParamCreator = function (configuration?: C
8818
9170
  };
8819
9171
 
8820
9172
  /**
8821
- * EcommercePaymentsApi - functional programming interface
9173
+ * EcommerceMiscellaneousApi - functional programming interface
8822
9174
  * @export
8823
9175
  */
8824
- export const EcommercePaymentsApiFp = function(configuration?: Configuration) {
8825
- const localVarAxiosParamCreator = EcommercePaymentsApiAxiosParamCreator(configuration)
9176
+ export const EcommerceMiscellaneousApiFp = function(configuration?: Configuration) {
9177
+ const localVarAxiosParamCreator = EcommerceMiscellaneousApiAxiosParamCreator(configuration)
8826
9178
  return {
8827
9179
  /**
8828
- * Enable a manual payment method so the store can accept orders without an online payment provider.
8829
- * @summary Enable manual payment method
8830
- * @param {string} storeId The ID of the store to enable manual payment for.
8831
- * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
9180
+ * 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.
9181
+ * @summary Get custom storefront setup instructions
8832
9182
  * @param {*} [options] Override http request option.
8833
9183
  * @throws {RequiredError}
8834
9184
  */
8835
- async enableManualPaymentMethodV1(storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1PaymentManualPaymentResource>> {
8836
- const localVarAxiosArgs = await localVarAxiosParamCreator.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options);
8837
- const localVarOperationServerBasePath = operationServerMap['EcommercePaymentsApi.enableManualPaymentMethodV1']?.[0]?.url;
9185
+ async getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1MiscellaneousCustomStorefrontInstructionsResource>> {
9186
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomStorefrontSetupInstructionsV1(options);
9187
+ const localVarOperationServerBasePath = operationServerMap['EcommerceMiscellaneousApi.getCustomStorefrontSetupInstructionsV1']?.[0]?.url;
8838
9188
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8839
9189
  },
8840
9190
  }
8841
9191
  };
8842
9192
 
8843
9193
  /**
8844
- * EcommercePaymentsApi - factory interface
9194
+ * EcommerceMiscellaneousApi - factory interface
9195
+ * @export
9196
+ */
9197
+ export const EcommerceMiscellaneousApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9198
+ const localVarFp = EcommerceMiscellaneousApiFp(configuration)
9199
+ return {
9200
+ /**
9201
+ * 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.
9202
+ * @summary Get custom storefront setup instructions
9203
+ * @param {*} [options] Override http request option.
9204
+ * @throws {RequiredError}
9205
+ */
9206
+ getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1MiscellaneousCustomStorefrontInstructionsResource> {
9207
+ return localVarFp.getCustomStorefrontSetupInstructionsV1(options).then((request) => request(axios, basePath));
9208
+ },
9209
+ };
9210
+ };
9211
+
9212
+ /**
9213
+ * EcommerceMiscellaneousApi - object-oriented interface
9214
+ * @export
9215
+ * @class EcommerceMiscellaneousApi
9216
+ * @extends {BaseAPI}
9217
+ */
9218
+ export class EcommerceMiscellaneousApi extends BaseAPI {
9219
+ /**
9220
+ * 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.
9221
+ * @summary Get custom storefront setup instructions
9222
+ * @param {*} [options] Override http request option.
9223
+ * @throws {RequiredError}
9224
+ * @memberof EcommerceMiscellaneousApi
9225
+ */
9226
+ public getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig) {
9227
+ return EcommerceMiscellaneousApiFp(this.configuration).getCustomStorefrontSetupInstructionsV1(options).then((request) => request(this.axios, this.basePath));
9228
+ }
9229
+ }
9230
+
9231
+
9232
+
9233
+ /**
9234
+ * EcommercePaymentsApi - axios parameter creator
9235
+ * @export
9236
+ */
9237
+ export const EcommercePaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
9238
+ return {
9239
+ /**
9240
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
9241
+ * @summary Enable manual payment method
9242
+ * @param {string} storeId The ID of the store to enable manual payment for.
9243
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
9244
+ * @param {*} [options] Override http request option.
9245
+ * @throws {RequiredError}
9246
+ */
9247
+ enableManualPaymentMethodV1: async (storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9248
+ // verify required parameter 'storeId' is not null or undefined
9249
+ assertParamExists('enableManualPaymentMethodV1', 'storeId', storeId)
9250
+ // verify required parameter 'ecommerceV1PaymentEnableManualPaymentRequest' is not null or undefined
9251
+ assertParamExists('enableManualPaymentMethodV1', 'ecommerceV1PaymentEnableManualPaymentRequest', ecommerceV1PaymentEnableManualPaymentRequest)
9252
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/payment-methods/manual`
9253
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
9254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9255
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9256
+ let baseOptions;
9257
+ if (configuration) {
9258
+ baseOptions = configuration.baseOptions;
9259
+ }
9260
+
9261
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9262
+ const localVarHeaderParameter = {} as any;
9263
+ const localVarQueryParameter = {} as any;
9264
+
9265
+ // authentication apiToken required
9266
+ // http bearer authentication required
9267
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9268
+
9269
+
9270
+
9271
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9272
+
9273
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9274
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9275
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9276
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1PaymentEnableManualPaymentRequest, localVarRequestOptions, configuration)
9277
+
9278
+ return {
9279
+ url: toPathString(localVarUrlObj),
9280
+ options: localVarRequestOptions,
9281
+ };
9282
+ },
9283
+ }
9284
+ };
9285
+
9286
+ /**
9287
+ * EcommercePaymentsApi - functional programming interface
9288
+ * @export
9289
+ */
9290
+ export const EcommercePaymentsApiFp = function(configuration?: Configuration) {
9291
+ const localVarAxiosParamCreator = EcommercePaymentsApiAxiosParamCreator(configuration)
9292
+ return {
9293
+ /**
9294
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
9295
+ * @summary Enable manual payment method
9296
+ * @param {string} storeId The ID of the store to enable manual payment for.
9297
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
9298
+ * @param {*} [options] Override http request option.
9299
+ * @throws {RequiredError}
9300
+ */
9301
+ async enableManualPaymentMethodV1(storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1PaymentManualPaymentResource>> {
9302
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options);
9303
+ const localVarOperationServerBasePath = operationServerMap['EcommercePaymentsApi.enableManualPaymentMethodV1']?.[0]?.url;
9304
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9305
+ },
9306
+ }
9307
+ };
9308
+
9309
+ /**
9310
+ * EcommercePaymentsApi - factory interface
8845
9311
  * @export
8846
9312
  */
8847
9313
  export const EcommercePaymentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
@@ -9085,6 +9551,198 @@ export class EcommerceProductsApi extends BaseAPI {
9085
9551
 
9086
9552
 
9087
9553
 
9554
+ /**
9555
+ * EcommerceSalesChannelsApi - axios parameter creator
9556
+ * @export
9557
+ */
9558
+ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuration?: Configuration) {
9559
+ return {
9560
+ /**
9561
+ * 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.
9562
+ * @summary Create a custom sales channel
9563
+ * @param {string} storeId The ID of the store to create the sales channel for.
9564
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9565
+ * @param {*} [options] Override http request option.
9566
+ * @throws {RequiredError}
9567
+ */
9568
+ createACustomSalesChannelV1: async (storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9569
+ // verify required parameter 'storeId' is not null or undefined
9570
+ assertParamExists('createACustomSalesChannelV1', 'storeId', storeId)
9571
+ // verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
9572
+ assertParamExists('createACustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest)
9573
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
9574
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
9575
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9576
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9577
+ let baseOptions;
9578
+ if (configuration) {
9579
+ baseOptions = configuration.baseOptions;
9580
+ }
9581
+
9582
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9583
+ const localVarHeaderParameter = {} as any;
9584
+ const localVarQueryParameter = {} as any;
9585
+
9586
+ // authentication apiToken required
9587
+ // http bearer authentication required
9588
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9589
+
9590
+
9591
+
9592
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9593
+
9594
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9595
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9596
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9597
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1SalesChannelStoreRequest, localVarRequestOptions, configuration)
9598
+
9599
+ return {
9600
+ url: toPathString(localVarUrlObj),
9601
+ options: localVarRequestOptions,
9602
+ };
9603
+ },
9604
+ /**
9605
+ * List a store\'s active sales channels with their full metadata.
9606
+ * @summary List sales channels
9607
+ * @param {string} storeId The ID of the store to list sales channels for.
9608
+ * @param {*} [options] Override http request option.
9609
+ * @throws {RequiredError}
9610
+ */
9611
+ listSalesChannelsV1: async (storeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9612
+ // verify required parameter 'storeId' is not null or undefined
9613
+ assertParamExists('listSalesChannelsV1', 'storeId', storeId)
9614
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
9615
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
9616
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9618
+ let baseOptions;
9619
+ if (configuration) {
9620
+ baseOptions = configuration.baseOptions;
9621
+ }
9622
+
9623
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9624
+ const localVarHeaderParameter = {} as any;
9625
+ const localVarQueryParameter = {} as any;
9626
+
9627
+ // authentication apiToken required
9628
+ // http bearer authentication required
9629
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9630
+
9631
+
9632
+
9633
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9634
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9635
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9636
+
9637
+ return {
9638
+ url: toPathString(localVarUrlObj),
9639
+ options: localVarRequestOptions,
9640
+ };
9641
+ },
9642
+ }
9643
+ };
9644
+
9645
+ /**
9646
+ * EcommerceSalesChannelsApi - functional programming interface
9647
+ * @export
9648
+ */
9649
+ export const EcommerceSalesChannelsApiFp = function(configuration?: Configuration) {
9650
+ const localVarAxiosParamCreator = EcommerceSalesChannelsApiAxiosParamCreator(configuration)
9651
+ return {
9652
+ /**
9653
+ * 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.
9654
+ * @summary Create a custom sales channel
9655
+ * @param {string} storeId The ID of the store to create the sales channel for.
9656
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9657
+ * @param {*} [options] Override http request option.
9658
+ * @throws {RequiredError}
9659
+ */
9660
+ async createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>> {
9661
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
9662
+ const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.createACustomSalesChannelV1']?.[0]?.url;
9663
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9664
+ },
9665
+ /**
9666
+ * List a store\'s active sales channels with their full metadata.
9667
+ * @summary List sales channels
9668
+ * @param {string} storeId The ID of the store to list sales channels for.
9669
+ * @param {*} [options] Override http request option.
9670
+ * @throws {RequiredError}
9671
+ */
9672
+ async listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource>> {
9673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSalesChannelsV1(storeId, options);
9674
+ const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.listSalesChannelsV1']?.[0]?.url;
9675
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9676
+ },
9677
+ }
9678
+ };
9679
+
9680
+ /**
9681
+ * EcommerceSalesChannelsApi - factory interface
9682
+ * @export
9683
+ */
9684
+ export const EcommerceSalesChannelsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9685
+ const localVarFp = EcommerceSalesChannelsApiFp(configuration)
9686
+ return {
9687
+ /**
9688
+ * 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.
9689
+ * @summary Create a custom sales channel
9690
+ * @param {string} storeId The ID of the store to create the sales channel for.
9691
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9692
+ * @param {*} [options] Override http request option.
9693
+ * @throws {RequiredError}
9694
+ */
9695
+ createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource> {
9696
+ return localVarFp.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
9697
+ },
9698
+ /**
9699
+ * List a store\'s active sales channels with their full metadata.
9700
+ * @summary List sales channels
9701
+ * @param {string} storeId The ID of the store to list sales channels for.
9702
+ * @param {*} [options] Override http request option.
9703
+ * @throws {RequiredError}
9704
+ */
9705
+ listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource> {
9706
+ return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
9707
+ },
9708
+ };
9709
+ };
9710
+
9711
+ /**
9712
+ * EcommerceSalesChannelsApi - object-oriented interface
9713
+ * @export
9714
+ * @class EcommerceSalesChannelsApi
9715
+ * @extends {BaseAPI}
9716
+ */
9717
+ export class EcommerceSalesChannelsApi extends BaseAPI {
9718
+ /**
9719
+ * 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.
9720
+ * @summary Create a custom sales channel
9721
+ * @param {string} storeId The ID of the store to create the sales channel for.
9722
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9723
+ * @param {*} [options] Override http request option.
9724
+ * @throws {RequiredError}
9725
+ * @memberof EcommerceSalesChannelsApi
9726
+ */
9727
+ public createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig) {
9728
+ return EcommerceSalesChannelsApiFp(this.configuration).createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
9729
+ }
9730
+
9731
+ /**
9732
+ * List a store\'s active sales channels with their full metadata.
9733
+ * @summary List sales channels
9734
+ * @param {string} storeId The ID of the store to list sales channels for.
9735
+ * @param {*} [options] Override http request option.
9736
+ * @throws {RequiredError}
9737
+ * @memberof EcommerceSalesChannelsApi
9738
+ */
9739
+ public listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig) {
9740
+ return EcommerceSalesChannelsApiFp(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
9741
+ }
9742
+ }
9743
+
9744
+
9745
+
9088
9746
  /**
9089
9747
  * EcommerceShippingApi - axios parameter creator
9090
9748
  * @export
@@ -12090,6 +12748,546 @@ export const ListOrdersV1StatusesEnum = {
12090
12748
  export type ListOrdersV1StatusesEnum = typeof ListOrdersV1StatusesEnum[keyof typeof ListOrdersV1StatusesEnum];
12091
12749
 
12092
12750
 
12751
+ /**
12752
+ * HostingPHPApi - axios parameter creator
12753
+ * @export
12754
+ */
12755
+ export const HostingPHPApiAxiosParamCreator = function (configuration?: Configuration) {
12756
+ return {
12757
+ /**
12758
+ * 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.
12759
+ * @summary Get PHP details
12760
+ * @param {string} username
12761
+ * @param {string} domain Domain name
12762
+ * @param {*} [options] Override http request option.
12763
+ * @throws {RequiredError}
12764
+ */
12765
+ getPHPDetailsV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12766
+ // verify required parameter 'username' is not null or undefined
12767
+ assertParamExists('getPHPDetailsV1', 'username', username)
12768
+ // verify required parameter 'domain' is not null or undefined
12769
+ assertParamExists('getPHPDetailsV1', 'domain', domain)
12770
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/details`
12771
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12772
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12773
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12774
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12775
+ let baseOptions;
12776
+ if (configuration) {
12777
+ baseOptions = configuration.baseOptions;
12778
+ }
12779
+
12780
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12781
+ const localVarHeaderParameter = {} as any;
12782
+ const localVarQueryParameter = {} as any;
12783
+
12784
+ // authentication apiToken required
12785
+ // http bearer authentication required
12786
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12787
+
12788
+
12789
+
12790
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12792
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12793
+
12794
+ return {
12795
+ url: toPathString(localVarUrlObj),
12796
+ options: localVarRequestOptions,
12797
+ };
12798
+ },
12799
+ /**
12800
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
12801
+ * @summary Get PHP info
12802
+ * @param {string} username
12803
+ * @param {string} domain Domain name
12804
+ * @param {*} [options] Override http request option.
12805
+ * @throws {RequiredError}
12806
+ */
12807
+ getPHPInfoV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12808
+ // verify required parameter 'username' is not null or undefined
12809
+ assertParamExists('getPHPInfoV1', 'username', username)
12810
+ // verify required parameter 'domain' is not null or undefined
12811
+ assertParamExists('getPHPInfoV1', 'domain', domain)
12812
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info`
12813
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12814
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12815
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12816
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12817
+ let baseOptions;
12818
+ if (configuration) {
12819
+ baseOptions = configuration.baseOptions;
12820
+ }
12821
+
12822
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12823
+ const localVarHeaderParameter = {} as any;
12824
+ const localVarQueryParameter = {} as any;
12825
+
12826
+ // authentication apiToken required
12827
+ // http bearer authentication required
12828
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12829
+
12830
+
12831
+
12832
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12833
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12834
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12835
+
12836
+ return {
12837
+ url: toPathString(localVarUrlObj),
12838
+ options: localVarRequestOptions,
12839
+ };
12840
+ },
12841
+ /**
12842
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
12843
+ * @summary Reset PHP extensions
12844
+ * @param {string} username
12845
+ * @param {string} domain Domain name
12846
+ * @param {*} [options] Override http request option.
12847
+ * @throws {RequiredError}
12848
+ */
12849
+ resetPHPExtensionsV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12850
+ // verify required parameter 'username' is not null or undefined
12851
+ assertParamExists('resetPHPExtensionsV1', 'username', username)
12852
+ // verify required parameter 'domain' is not null or undefined
12853
+ assertParamExists('resetPHPExtensionsV1', 'domain', domain)
12854
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset`
12855
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12856
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12857
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12858
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12859
+ let baseOptions;
12860
+ if (configuration) {
12861
+ baseOptions = configuration.baseOptions;
12862
+ }
12863
+
12864
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12865
+ const localVarHeaderParameter = {} as any;
12866
+ const localVarQueryParameter = {} as any;
12867
+
12868
+ // authentication apiToken required
12869
+ // http bearer authentication required
12870
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12871
+
12872
+
12873
+
12874
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12875
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12876
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12877
+
12878
+ return {
12879
+ url: toPathString(localVarUrlObj),
12880
+ options: localVarRequestOptions,
12881
+ };
12882
+ },
12883
+ /**
12884
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
12885
+ * @summary Update PHP extensions
12886
+ * @param {string} username
12887
+ * @param {string} domain Domain name
12888
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
12889
+ * @param {*} [options] Override http request option.
12890
+ * @throws {RequiredError}
12891
+ */
12892
+ updatePHPExtensionsV1: async (username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12893
+ // verify required parameter 'username' is not null or undefined
12894
+ assertParamExists('updatePHPExtensionsV1', 'username', username)
12895
+ // verify required parameter 'domain' is not null or undefined
12896
+ assertParamExists('updatePHPExtensionsV1', 'domain', domain)
12897
+ // verify required parameter 'hostingV1PhpUpdatePhpExtensionsRequest' is not null or undefined
12898
+ assertParamExists('updatePHPExtensionsV1', 'hostingV1PhpUpdatePhpExtensionsRequest', hostingV1PhpUpdatePhpExtensionsRequest)
12899
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions`
12900
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12901
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12902
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12903
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12904
+ let baseOptions;
12905
+ if (configuration) {
12906
+ baseOptions = configuration.baseOptions;
12907
+ }
12908
+
12909
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12910
+ const localVarHeaderParameter = {} as any;
12911
+ const localVarQueryParameter = {} as any;
12912
+
12913
+ // authentication apiToken required
12914
+ // http bearer authentication required
12915
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12916
+
12917
+
12918
+
12919
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12920
+
12921
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12922
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12923
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12924
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpExtensionsRequest, localVarRequestOptions, configuration)
12925
+
12926
+ return {
12927
+ url: toPathString(localVarUrlObj),
12928
+ options: localVarRequestOptions,
12929
+ };
12930
+ },
12931
+ /**
12932
+ * 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.
12933
+ * @summary Update PHP options
12934
+ * @param {string} username
12935
+ * @param {string} domain Domain name
12936
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
12937
+ * @param {*} [options] Override http request option.
12938
+ * @throws {RequiredError}
12939
+ */
12940
+ updatePHPOptionsV1: async (username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12941
+ // verify required parameter 'username' is not null or undefined
12942
+ assertParamExists('updatePHPOptionsV1', 'username', username)
12943
+ // verify required parameter 'domain' is not null or undefined
12944
+ assertParamExists('updatePHPOptionsV1', 'domain', domain)
12945
+ // verify required parameter 'hostingV1PhpUpdatePhpOptionsRequest' is not null or undefined
12946
+ assertParamExists('updatePHPOptionsV1', 'hostingV1PhpUpdatePhpOptionsRequest', hostingV1PhpUpdatePhpOptionsRequest)
12947
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/options`
12948
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12949
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12950
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12951
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12952
+ let baseOptions;
12953
+ if (configuration) {
12954
+ baseOptions = configuration.baseOptions;
12955
+ }
12956
+
12957
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12958
+ const localVarHeaderParameter = {} as any;
12959
+ const localVarQueryParameter = {} as any;
12960
+
12961
+ // authentication apiToken required
12962
+ // http bearer authentication required
12963
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12964
+
12965
+
12966
+
12967
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12968
+
12969
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12970
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12971
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12972
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpOptionsRequest, localVarRequestOptions, configuration)
12973
+
12974
+ return {
12975
+ url: toPathString(localVarUrlObj),
12976
+ options: localVarRequestOptions,
12977
+ };
12978
+ },
12979
+ /**
12980
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
12981
+ * @summary Update PHP version
12982
+ * @param {string} username
12983
+ * @param {string} domain Domain name
12984
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
12985
+ * @param {*} [options] Override http request option.
12986
+ * @throws {RequiredError}
12987
+ */
12988
+ updatePHPVersionV1: async (username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12989
+ // verify required parameter 'username' is not null or undefined
12990
+ assertParamExists('updatePHPVersionV1', 'username', username)
12991
+ // verify required parameter 'domain' is not null or undefined
12992
+ assertParamExists('updatePHPVersionV1', 'domain', domain)
12993
+ // verify required parameter 'hostingV1PhpUpdatePhpVersionRequest' is not null or undefined
12994
+ assertParamExists('updatePHPVersionV1', 'hostingV1PhpUpdatePhpVersionRequest', hostingV1PhpUpdatePhpVersionRequest)
12995
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/version`
12996
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12997
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12998
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12999
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13000
+ let baseOptions;
13001
+ if (configuration) {
13002
+ baseOptions = configuration.baseOptions;
13003
+ }
13004
+
13005
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13006
+ const localVarHeaderParameter = {} as any;
13007
+ const localVarQueryParameter = {} as any;
13008
+
13009
+ // authentication apiToken required
13010
+ // http bearer authentication required
13011
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13012
+
13013
+
13014
+
13015
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13016
+
13017
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13018
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13019
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13020
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpVersionRequest, localVarRequestOptions, configuration)
13021
+
13022
+ return {
13023
+ url: toPathString(localVarUrlObj),
13024
+ options: localVarRequestOptions,
13025
+ };
13026
+ },
13027
+ }
13028
+ };
13029
+
13030
+ /**
13031
+ * HostingPHPApi - functional programming interface
13032
+ * @export
13033
+ */
13034
+ export const HostingPHPApiFp = function(configuration?: Configuration) {
13035
+ const localVarAxiosParamCreator = HostingPHPApiAxiosParamCreator(configuration)
13036
+ return {
13037
+ /**
13038
+ * 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.
13039
+ * @summary Get PHP details
13040
+ * @param {string} username
13041
+ * @param {string} domain Domain name
13042
+ * @param {*} [options] Override http request option.
13043
+ * @throws {RequiredError}
13044
+ */
13045
+ async getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PhpPhpDetailsResource>> {
13046
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPHPDetailsV1(username, domain, options);
13047
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.getPHPDetailsV1']?.[0]?.url;
13048
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13049
+ },
13050
+ /**
13051
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
13052
+ * @summary Get PHP info
13053
+ * @param {string} username
13054
+ * @param {string} domain Domain name
13055
+ * @param {*} [options] Override http request option.
13056
+ * @throws {RequiredError}
13057
+ */
13058
+ async getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PhpPhpInfoResource>> {
13059
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPHPInfoV1(username, domain, options);
13060
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.getPHPInfoV1']?.[0]?.url;
13061
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13062
+ },
13063
+ /**
13064
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
13065
+ * @summary Reset PHP extensions
13066
+ * @param {string} username
13067
+ * @param {string} domain Domain name
13068
+ * @param {*} [options] Override http request option.
13069
+ * @throws {RequiredError}
13070
+ */
13071
+ async resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
13072
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetPHPExtensionsV1(username, domain, options);
13073
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.resetPHPExtensionsV1']?.[0]?.url;
13074
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13075
+ },
13076
+ /**
13077
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
13078
+ * @summary Update PHP extensions
13079
+ * @param {string} username
13080
+ * @param {string} domain Domain name
13081
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
13082
+ * @param {*} [options] Override http request option.
13083
+ * @throws {RequiredError}
13084
+ */
13085
+ async updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
13086
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options);
13087
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.updatePHPExtensionsV1']?.[0]?.url;
13088
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13089
+ },
13090
+ /**
13091
+ * 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.
13092
+ * @summary Update PHP options
13093
+ * @param {string} username
13094
+ * @param {string} domain Domain name
13095
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
13096
+ * @param {*} [options] Override http request option.
13097
+ * @throws {RequiredError}
13098
+ */
13099
+ async updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
13100
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options);
13101
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.updatePHPOptionsV1']?.[0]?.url;
13102
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13103
+ },
13104
+ /**
13105
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
13106
+ * @summary Update PHP version
13107
+ * @param {string} username
13108
+ * @param {string} domain Domain name
13109
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
13110
+ * @param {*} [options] Override http request option.
13111
+ * @throws {RequiredError}
13112
+ */
13113
+ async updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
13114
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options);
13115
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.updatePHPVersionV1']?.[0]?.url;
13116
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13117
+ },
13118
+ }
13119
+ };
13120
+
13121
+ /**
13122
+ * HostingPHPApi - factory interface
13123
+ * @export
13124
+ */
13125
+ export const HostingPHPApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
13126
+ const localVarFp = HostingPHPApiFp(configuration)
13127
+ return {
13128
+ /**
13129
+ * 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.
13130
+ * @summary Get PHP details
13131
+ * @param {string} username
13132
+ * @param {string} domain Domain name
13133
+ * @param {*} [options] Override http request option.
13134
+ * @throws {RequiredError}
13135
+ */
13136
+ getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PhpPhpDetailsResource> {
13137
+ return localVarFp.getPHPDetailsV1(username, domain, options).then((request) => request(axios, basePath));
13138
+ },
13139
+ /**
13140
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
13141
+ * @summary Get PHP info
13142
+ * @param {string} username
13143
+ * @param {string} domain Domain name
13144
+ * @param {*} [options] Override http request option.
13145
+ * @throws {RequiredError}
13146
+ */
13147
+ getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PhpPhpInfoResource> {
13148
+ return localVarFp.getPHPInfoV1(username, domain, options).then((request) => request(axios, basePath));
13149
+ },
13150
+ /**
13151
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
13152
+ * @summary Reset PHP extensions
13153
+ * @param {string} username
13154
+ * @param {string} domain Domain name
13155
+ * @param {*} [options] Override http request option.
13156
+ * @throws {RequiredError}
13157
+ */
13158
+ resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
13159
+ return localVarFp.resetPHPExtensionsV1(username, domain, options).then((request) => request(axios, basePath));
13160
+ },
13161
+ /**
13162
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
13163
+ * @summary Update PHP extensions
13164
+ * @param {string} username
13165
+ * @param {string} domain Domain name
13166
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
13167
+ * @param {*} [options] Override http request option.
13168
+ * @throws {RequiredError}
13169
+ */
13170
+ updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
13171
+ return localVarFp.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(axios, basePath));
13172
+ },
13173
+ /**
13174
+ * 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.
13175
+ * @summary Update PHP options
13176
+ * @param {string} username
13177
+ * @param {string} domain Domain name
13178
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
13179
+ * @param {*} [options] Override http request option.
13180
+ * @throws {RequiredError}
13181
+ */
13182
+ updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
13183
+ return localVarFp.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(axios, basePath));
13184
+ },
13185
+ /**
13186
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
13187
+ * @summary Update PHP version
13188
+ * @param {string} username
13189
+ * @param {string} domain Domain name
13190
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
13191
+ * @param {*} [options] Override http request option.
13192
+ * @throws {RequiredError}
13193
+ */
13194
+ updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
13195
+ return localVarFp.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(axios, basePath));
13196
+ },
13197
+ };
13198
+ };
13199
+
13200
+ /**
13201
+ * HostingPHPApi - object-oriented interface
13202
+ * @export
13203
+ * @class HostingPHPApi
13204
+ * @extends {BaseAPI}
13205
+ */
13206
+ export class HostingPHPApi extends BaseAPI {
13207
+ /**
13208
+ * 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.
13209
+ * @summary Get PHP details
13210
+ * @param {string} username
13211
+ * @param {string} domain Domain name
13212
+ * @param {*} [options] Override http request option.
13213
+ * @throws {RequiredError}
13214
+ * @memberof HostingPHPApi
13215
+ */
13216
+ public getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
13217
+ return HostingPHPApiFp(this.configuration).getPHPDetailsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
13218
+ }
13219
+
13220
+ /**
13221
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
13222
+ * @summary Get PHP info
13223
+ * @param {string} username
13224
+ * @param {string} domain Domain name
13225
+ * @param {*} [options] Override http request option.
13226
+ * @throws {RequiredError}
13227
+ * @memberof HostingPHPApi
13228
+ */
13229
+ public getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
13230
+ return HostingPHPApiFp(this.configuration).getPHPInfoV1(username, domain, options).then((request) => request(this.axios, this.basePath));
13231
+ }
13232
+
13233
+ /**
13234
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
13235
+ * @summary Reset PHP extensions
13236
+ * @param {string} username
13237
+ * @param {string} domain Domain name
13238
+ * @param {*} [options] Override http request option.
13239
+ * @throws {RequiredError}
13240
+ * @memberof HostingPHPApi
13241
+ */
13242
+ public resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
13243
+ return HostingPHPApiFp(this.configuration).resetPHPExtensionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
13244
+ }
13245
+
13246
+ /**
13247
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
13248
+ * @summary Update PHP extensions
13249
+ * @param {string} username
13250
+ * @param {string} domain Domain name
13251
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
13252
+ * @param {*} [options] Override http request option.
13253
+ * @throws {RequiredError}
13254
+ * @memberof HostingPHPApi
13255
+ */
13256
+ public updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig) {
13257
+ return HostingPHPApiFp(this.configuration).updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(this.axios, this.basePath));
13258
+ }
13259
+
13260
+ /**
13261
+ * 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.
13262
+ * @summary Update PHP options
13263
+ * @param {string} username
13264
+ * @param {string} domain Domain name
13265
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
13266
+ * @param {*} [options] Override http request option.
13267
+ * @throws {RequiredError}
13268
+ * @memberof HostingPHPApi
13269
+ */
13270
+ public updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig) {
13271
+ return HostingPHPApiFp(this.configuration).updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(this.axios, this.basePath));
13272
+ }
13273
+
13274
+ /**
13275
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
13276
+ * @summary Update PHP version
13277
+ * @param {string} username
13278
+ * @param {string} domain Domain name
13279
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
13280
+ * @param {*} [options] Override http request option.
13281
+ * @throws {RequiredError}
13282
+ * @memberof HostingPHPApi
13283
+ */
13284
+ public updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig) {
13285
+ return HostingPHPApiFp(this.configuration).updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(this.axios, this.basePath));
13286
+ }
13287
+ }
13288
+
13289
+
13290
+
12093
13291
  /**
12094
13292
  * HostingWebsitesApi - axios parameter creator
12095
13293
  * @export