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/api.ts 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
@@ -1876,6 +1876,19 @@ export const EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTy
1876
1876
 
1877
1877
  export type EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum];
1878
1878
 
1879
+ /**
1880
+ *
1881
+ * @export
1882
+ * @interface EcommerceV1SalesChannelSalesChannelUpdateResource
1883
+ */
1884
+ export interface EcommerceV1SalesChannelSalesChannelUpdateResource {
1885
+ /**
1886
+ *
1887
+ * @type {EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel}
1888
+ * @memberof EcommerceV1SalesChannelSalesChannelUpdateResource
1889
+ */
1890
+ 'sales_channel': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel;
1891
+ }
1879
1892
  /**
1880
1893
  *
1881
1894
  * @export
@@ -1908,6 +1921,25 @@ export const EcommerceV1SalesChannelStoreRequestTypeEnum = {
1908
1921
 
1909
1922
  export type EcommerceV1SalesChannelStoreRequestTypeEnum = typeof EcommerceV1SalesChannelStoreRequestTypeEnum[keyof typeof EcommerceV1SalesChannelStoreRequestTypeEnum];
1910
1923
 
1924
+ /**
1925
+ *
1926
+ * @export
1927
+ * @interface EcommerceV1SalesChannelUpdateRequest
1928
+ */
1929
+ export interface EcommerceV1SalesChannelUpdateRequest {
1930
+ /**
1931
+ * Merchant-facing custom name shown in the sales channels list. Pass null to clear it.
1932
+ * @type {string}
1933
+ * @memberof EcommerceV1SalesChannelUpdateRequest
1934
+ */
1935
+ 'name': string | null;
1936
+ /**
1937
+ * Public address where the custom sales channel lives. Pass null to clear it.
1938
+ * @type {string}
1939
+ * @memberof EcommerceV1SalesChannelUpdateRequest
1940
+ */
1941
+ 'url': string | null;
1942
+ }
1911
1943
  /**
1912
1944
  *
1913
1945
  * @export
@@ -2083,6 +2115,111 @@ export interface EcommerceV1StoreStoreDeleteResource {
2083
2115
  */
2084
2116
  'is_deleted': boolean;
2085
2117
  }
2118
+ /**
2119
+ *
2120
+ * @export
2121
+ * @interface EcommerceV1StoreStoreMetadataResource
2122
+ */
2123
+ export interface EcommerceV1StoreStoreMetadataResource {
2124
+ /**
2125
+ *
2126
+ * @type {EcommerceV1StoreStoreMetadataResourceMetadata}
2127
+ * @memberof EcommerceV1StoreStoreMetadataResource
2128
+ */
2129
+ 'metadata': EcommerceV1StoreStoreMetadataResourceMetadata;
2130
+ }
2131
+ /**
2132
+ *
2133
+ * @export
2134
+ * @interface EcommerceV1StoreStoreMetadataResourceMetadata
2135
+ */
2136
+ export interface EcommerceV1StoreStoreMetadataResourceMetadata {
2137
+ /**
2138
+ * Whether the store has at least one payment method connected.
2139
+ * @type {boolean}
2140
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadata
2141
+ */
2142
+ 'has_payment_methods': boolean;
2143
+ /**
2144
+ * Whether the store has at least one shipping option configured.
2145
+ * @type {boolean}
2146
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadata
2147
+ */
2148
+ 'has_shipping': boolean;
2149
+ /**
2150
+ * The default currency code of the store.
2151
+ * @type {string}
2152
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadata
2153
+ */
2154
+ 'default_currency_code': string;
2155
+ /**
2156
+ *
2157
+ * @type {EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency}
2158
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadata
2159
+ */
2160
+ 'default_currency': EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency | null;
2161
+ }
2162
+ /**
2163
+ * The store\'s default currency, or null when unset.
2164
+ * @export
2165
+ * @interface EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2166
+ */
2167
+ export interface EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency {
2168
+ /**
2169
+ *
2170
+ * @type {string}
2171
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2172
+ */
2173
+ 'code': string;
2174
+ /**
2175
+ *
2176
+ * @type {string}
2177
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2178
+ */
2179
+ 'symbol': string;
2180
+ /**
2181
+ *
2182
+ * @type {string}
2183
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2184
+ */
2185
+ 'symbol_native': string;
2186
+ /**
2187
+ *
2188
+ * @type {string}
2189
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2190
+ */
2191
+ 'name': string;
2192
+ /**
2193
+ *
2194
+ * @type {string}
2195
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2196
+ */
2197
+ 'name_plural': string;
2198
+ /**
2199
+ *
2200
+ * @type {number}
2201
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2202
+ */
2203
+ 'decimal_digits': number;
2204
+ /**
2205
+ *
2206
+ * @type {number}
2207
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2208
+ */
2209
+ 'rounding': number;
2210
+ /**
2211
+ *
2212
+ * @type {string}
2213
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2214
+ */
2215
+ 'template': string | null;
2216
+ /**
2217
+ *
2218
+ * @type {number}
2219
+ * @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
2220
+ */
2221
+ 'min_amount': number | null;
2222
+ }
2086
2223
  /**
2087
2224
  *
2088
2225
  * @export
@@ -3088,6 +3225,175 @@ export interface HostingV1OrdersPlanResource {
3088
3225
  */
3089
3226
  'name': string;
3090
3227
  }
3228
+ /**
3229
+ *
3230
+ * @export
3231
+ * @interface HostingV1PhpPhpDetailsResource
3232
+ */
3233
+ export interface HostingV1PhpPhpDetailsResource {
3234
+ /**
3235
+ * Current PHP version name
3236
+ * @type {string}
3237
+ * @memberof HostingV1PhpPhpDetailsResource
3238
+ */
3239
+ 'php_version': string;
3240
+ /**
3241
+ * Full PHP version name
3242
+ * @type {string}
3243
+ * @memberof HostingV1PhpPhpDetailsResource
3244
+ */
3245
+ 'php_version_full': string;
3246
+ /**
3247
+ *
3248
+ * @type {HostingV1PhpPhpVersionsResource}
3249
+ * @memberof HostingV1PhpPhpDetailsResource
3250
+ */
3251
+ 'php_versions': HostingV1PhpPhpVersionsResource;
3252
+ /**
3253
+ * PHP options keyed by option name
3254
+ * @type {{ [key: string]: HostingV1PhpPhpOptionResource; }}
3255
+ * @memberof HostingV1PhpPhpDetailsResource
3256
+ */
3257
+ 'options': { [key: string]: HostingV1PhpPhpOptionResource; };
3258
+ /**
3259
+ * PHP extensions keyed by extension name
3260
+ * @type {object}
3261
+ * @memberof HostingV1PhpPhpDetailsResource
3262
+ */
3263
+ 'extensions': object;
3264
+ /**
3265
+ * Groups of extensions that conflict with each other
3266
+ * @type {Array<Array<string>>}
3267
+ * @memberof HostingV1PhpPhpDetailsResource
3268
+ */
3269
+ 'conflicting_extensions': Array<Array<string>>;
3270
+ }
3271
+ /**
3272
+ *
3273
+ * @export
3274
+ * @interface HostingV1PhpPhpInfoResource
3275
+ */
3276
+ export interface HostingV1PhpPhpInfoResource {
3277
+ /**
3278
+ * HTML string containing the full phpinfo page
3279
+ * @type {string}
3280
+ * @memberof HostingV1PhpPhpInfoResource
3281
+ */
3282
+ 'info': string;
3283
+ }
3284
+ /**
3285
+ *
3286
+ * @export
3287
+ * @interface HostingV1PhpPhpOptionResource
3288
+ */
3289
+ export interface HostingV1PhpPhpOptionResource {
3290
+ /**
3291
+ * Declared option type (e.g. bool, string)
3292
+ * @type {string}
3293
+ * @memberof HostingV1PhpPhpOptionResource
3294
+ */
3295
+ 'type': string;
3296
+ /**
3297
+ * Current value for this website
3298
+ * @type {string}
3299
+ * @memberof HostingV1PhpPhpOptionResource
3300
+ */
3301
+ 'value': string;
3302
+ /**
3303
+ * Human-readable description
3304
+ * @type {string}
3305
+ * @memberof HostingV1PhpPhpOptionResource
3306
+ */
3307
+ 'comment': string;
3308
+ /**
3309
+ * Default value
3310
+ * @type {string}
3311
+ * @memberof HostingV1PhpPhpOptionResource
3312
+ */
3313
+ 'default': string;
3314
+ /**
3315
+ * Allowed value range or limits, when applicable
3316
+ * @type {string}
3317
+ * @memberof HostingV1PhpPhpOptionResource
3318
+ */
3319
+ 'range': string | null;
3320
+ /**
3321
+ * Maximum value allowed by the account hosting plan, when applicable
3322
+ * @type {string}
3323
+ * @memberof HostingV1PhpPhpOptionResource
3324
+ */
3325
+ 'max': string | null;
3326
+ }
3327
+ /**
3328
+ *
3329
+ * @export
3330
+ * @interface HostingV1PhpPhpVersionsResource
3331
+ */
3332
+ export interface HostingV1PhpPhpVersionsResource {
3333
+ /**
3334
+ * Key-value pairs of supported versions
3335
+ * @type {object}
3336
+ * @memberof HostingV1PhpPhpVersionsResource
3337
+ */
3338
+ 'supported': object;
3339
+ /**
3340
+ * Key-value pairs of unsupported versions
3341
+ * @type {object}
3342
+ * @memberof HostingV1PhpPhpVersionsResource
3343
+ */
3344
+ 'unsupported': object;
3345
+ }
3346
+ /**
3347
+ *
3348
+ * @export
3349
+ * @interface HostingV1PhpUpdatePhpExtensionsRequest
3350
+ */
3351
+ export interface HostingV1PhpUpdatePhpExtensionsRequest {
3352
+ /**
3353
+ * PHP extensions to enable.
3354
+ * @type {Array<string>}
3355
+ * @memberof HostingV1PhpUpdatePhpExtensionsRequest
3356
+ */
3357
+ 'enable': Array<string>;
3358
+ /**
3359
+ * PHP extensions to disable.
3360
+ * @type {Array<string>}
3361
+ * @memberof HostingV1PhpUpdatePhpExtensionsRequest
3362
+ */
3363
+ 'disable': Array<string>;
3364
+ }
3365
+ /**
3366
+ *
3367
+ * @export
3368
+ * @interface HostingV1PhpUpdatePhpOptionsRequest
3369
+ */
3370
+ export interface HostingV1PhpUpdatePhpOptionsRequest {
3371
+ /**
3372
+ * Map of PHP options to update, keyed by option name. Only include options you want to change.
3373
+ * @type {{ [key: string]: HostingV1PhpUpdatePhpOptionsRequestOptionsValue; }}
3374
+ * @memberof HostingV1PhpUpdatePhpOptionsRequest
3375
+ */
3376
+ 'options': { [key: string]: HostingV1PhpUpdatePhpOptionsRequestOptionsValue; };
3377
+ }
3378
+ /**
3379
+ * @type HostingV1PhpUpdatePhpOptionsRequestOptionsValue
3380
+ * @export
3381
+ */
3382
+ export type HostingV1PhpUpdatePhpOptionsRequestOptionsValue = number | string;
3383
+
3384
+ /**
3385
+ *
3386
+ * @export
3387
+ * @interface HostingV1PhpUpdatePhpVersionRequest
3388
+ */
3389
+ export interface HostingV1PhpUpdatePhpVersionRequest {
3390
+ /**
3391
+ * PHP version to switch the website to.
3392
+ * @type {string}
3393
+ * @memberof HostingV1PhpUpdatePhpVersionRequest
3394
+ */
3395
+ 'version': string;
3396
+ }
3091
3397
  /**
3092
3398
  *
3093
3399
  * @export
@@ -9390,17 +9696,17 @@ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuratio
9390
9696
  return {
9391
9697
  /**
9392
9698
  * 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.
9393
- * @summary Create a custom sales channel
9699
+ * @summary Create custom sales channel
9394
9700
  * @param {string} storeId The ID of the store to create the sales channel for.
9395
9701
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9396
9702
  * @param {*} [options] Override http request option.
9397
9703
  * @throws {RequiredError}
9398
9704
  */
9399
- createACustomSalesChannelV1: async (storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9705
+ createCustomSalesChannelV1: async (storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9400
9706
  // verify required parameter 'storeId' is not null or undefined
9401
- assertParamExists('createACustomSalesChannelV1', 'storeId', storeId)
9707
+ assertParamExists('createCustomSalesChannelV1', 'storeId', storeId)
9402
9708
  // verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
9403
- assertParamExists('createACustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest)
9709
+ assertParamExists('createCustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest)
9404
9710
  const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
9405
9711
  .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
9406
9712
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -9465,6 +9771,54 @@ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuratio
9465
9771
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9466
9772
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9467
9773
 
9774
+ return {
9775
+ url: toPathString(localVarUrlObj),
9776
+ options: localVarRequestOptions,
9777
+ };
9778
+ },
9779
+ /**
9780
+ * 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.
9781
+ * @summary Update sales channel
9782
+ * @param {string} storeId The ID of the store that owns the sales channel.
9783
+ * @param {string} salesChannelId The ID of the sales channel to update.
9784
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
9785
+ * @param {*} [options] Override http request option.
9786
+ * @throws {RequiredError}
9787
+ */
9788
+ updateSalesChannelV1: async (storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9789
+ // verify required parameter 'storeId' is not null or undefined
9790
+ assertParamExists('updateSalesChannelV1', 'storeId', storeId)
9791
+ // verify required parameter 'salesChannelId' is not null or undefined
9792
+ assertParamExists('updateSalesChannelV1', 'salesChannelId', salesChannelId)
9793
+ // verify required parameter 'ecommerceV1SalesChannelUpdateRequest' is not null or undefined
9794
+ assertParamExists('updateSalesChannelV1', 'ecommerceV1SalesChannelUpdateRequest', ecommerceV1SalesChannelUpdateRequest)
9795
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}`
9796
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)))
9797
+ .replace(`{${"sales_channel_id"}}`, encodeURIComponent(String(salesChannelId)));
9798
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9799
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9800
+ let baseOptions;
9801
+ if (configuration) {
9802
+ baseOptions = configuration.baseOptions;
9803
+ }
9804
+
9805
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
9806
+ const localVarHeaderParameter = {} as any;
9807
+ const localVarQueryParameter = {} as any;
9808
+
9809
+ // authentication apiToken required
9810
+ // http bearer authentication required
9811
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9812
+
9813
+
9814
+
9815
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9816
+
9817
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9818
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9819
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9820
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1SalesChannelUpdateRequest, localVarRequestOptions, configuration)
9821
+
9468
9822
  return {
9469
9823
  url: toPathString(localVarUrlObj),
9470
9824
  options: localVarRequestOptions,
@@ -9482,15 +9836,15 @@ export const EcommerceSalesChannelsApiFp = function(configuration?: Configuratio
9482
9836
  return {
9483
9837
  /**
9484
9838
  * 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.
9485
- * @summary Create a custom sales channel
9839
+ * @summary Create custom sales channel
9486
9840
  * @param {string} storeId The ID of the store to create the sales channel for.
9487
9841
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9488
9842
  * @param {*} [options] Override http request option.
9489
9843
  * @throws {RequiredError}
9490
9844
  */
9491
- async createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>> {
9492
- const localVarAxiosArgs = await localVarAxiosParamCreator.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
9493
- const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.createACustomSalesChannelV1']?.[0]?.url;
9845
+ async createCustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>> {
9846
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
9847
+ const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.createCustomSalesChannelV1']?.[0]?.url;
9494
9848
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9495
9849
  },
9496
9850
  /**
@@ -9505,6 +9859,20 @@ export const EcommerceSalesChannelsApiFp = function(configuration?: Configuratio
9505
9859
  const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.listSalesChannelsV1']?.[0]?.url;
9506
9860
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9507
9861
  },
9862
+ /**
9863
+ * 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.
9864
+ * @summary Update sales channel
9865
+ * @param {string} storeId The ID of the store that owns the sales channel.
9866
+ * @param {string} salesChannelId The ID of the sales channel to update.
9867
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
9868
+ * @param {*} [options] Override http request option.
9869
+ * @throws {RequiredError}
9870
+ */
9871
+ async updateSalesChannelV1(storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelUpdateResource>> {
9872
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options);
9873
+ const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.updateSalesChannelV1']?.[0]?.url;
9874
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9875
+ },
9508
9876
  }
9509
9877
  };
9510
9878
 
@@ -9517,14 +9885,14 @@ export const EcommerceSalesChannelsApiFactory = function (configuration?: Config
9517
9885
  return {
9518
9886
  /**
9519
9887
  * 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.
9520
- * @summary Create a custom sales channel
9888
+ * @summary Create custom sales channel
9521
9889
  * @param {string} storeId The ID of the store to create the sales channel for.
9522
9890
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9523
9891
  * @param {*} [options] Override http request option.
9524
9892
  * @throws {RequiredError}
9525
9893
  */
9526
- createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource> {
9527
- return localVarFp.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
9894
+ createCustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource> {
9895
+ return localVarFp.createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
9528
9896
  },
9529
9897
  /**
9530
9898
  * List a store\'s active sales channels with their full metadata.
@@ -9536,6 +9904,18 @@ export const EcommerceSalesChannelsApiFactory = function (configuration?: Config
9536
9904
  listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource> {
9537
9905
  return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
9538
9906
  },
9907
+ /**
9908
+ * 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.
9909
+ * @summary Update sales channel
9910
+ * @param {string} storeId The ID of the store that owns the sales channel.
9911
+ * @param {string} salesChannelId The ID of the sales channel to update.
9912
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
9913
+ * @param {*} [options] Override http request option.
9914
+ * @throws {RequiredError}
9915
+ */
9916
+ updateSalesChannelV1(storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelUpdateResource> {
9917
+ return localVarFp.updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(axios, basePath));
9918
+ },
9539
9919
  };
9540
9920
  };
9541
9921
 
@@ -9548,15 +9928,15 @@ export const EcommerceSalesChannelsApiFactory = function (configuration?: Config
9548
9928
  export class EcommerceSalesChannelsApi extends BaseAPI {
9549
9929
  /**
9550
9930
  * 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.
9551
- * @summary Create a custom sales channel
9931
+ * @summary Create custom sales channel
9552
9932
  * @param {string} storeId The ID of the store to create the sales channel for.
9553
9933
  * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9554
9934
  * @param {*} [options] Override http request option.
9555
9935
  * @throws {RequiredError}
9556
9936
  * @memberof EcommerceSalesChannelsApi
9557
9937
  */
9558
- public createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig) {
9559
- return EcommerceSalesChannelsApiFp(this.configuration).createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
9938
+ public createCustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig) {
9939
+ return EcommerceSalesChannelsApiFp(this.configuration).createCustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
9560
9940
  }
9561
9941
 
9562
9942
  /**
@@ -9570,6 +9950,20 @@ export class EcommerceSalesChannelsApi extends BaseAPI {
9570
9950
  public listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig) {
9571
9951
  return EcommerceSalesChannelsApiFp(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
9572
9952
  }
9953
+
9954
+ /**
9955
+ * 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.
9956
+ * @summary Update sales channel
9957
+ * @param {string} storeId The ID of the store that owns the sales channel.
9958
+ * @param {string} salesChannelId The ID of the sales channel to update.
9959
+ * @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
9960
+ * @param {*} [options] Override http request option.
9961
+ * @throws {RequiredError}
9962
+ * @memberof EcommerceSalesChannelsApi
9963
+ */
9964
+ public updateSalesChannelV1(storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options?: RawAxiosRequestConfig) {
9965
+ return EcommerceSalesChannelsApiFp(this.configuration).updateSalesChannelV1(storeId, salesChannelId, ecommerceV1SalesChannelUpdateRequest, options).then((request) => request(this.axios, this.basePath));
9966
+ }
9573
9967
  }
9574
9968
 
9575
9969
 
@@ -9779,14 +10173,17 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Con
9779
10173
  };
9780
10174
  },
9781
10175
  /**
9782
- * Retrieve the stores associated with your account.
9783
- * @summary Get stores
9784
- * @param {number} [page] Page number
10176
+ * 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.
10177
+ * @summary Get store metadata
10178
+ * @param {string} storeId The ID of the store to read metadata for.
9785
10179
  * @param {*} [options] Override http request option.
9786
10180
  * @throws {RequiredError}
9787
10181
  */
9788
- getStoresV1: async (page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9789
- const localVarPath = `/api/ecommerce/v1/stores`;
10182
+ getStoreMetadataV1: async (storeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10183
+ // verify required parameter 'storeId' is not null or undefined
10184
+ assertParamExists('getStoreMetadataV1', 'storeId', storeId)
10185
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/metadata`
10186
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
9790
10187
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9791
10188
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9792
10189
  let baseOptions;
@@ -9802,10 +10199,6 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Con
9802
10199
  // http bearer authentication required
9803
10200
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
9804
10201
 
9805
- if (page !== undefined) {
9806
- localVarQueryParameter['page'] = page;
9807
- }
9808
-
9809
10202
 
9810
10203
 
9811
10204
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -9817,12 +10210,51 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Con
9817
10210
  options: localVarRequestOptions,
9818
10211
  };
9819
10212
  },
9820
- }
9821
- };
9822
-
9823
- /**
9824
- * EcommerceStoresApi - functional programming interface
9825
- * @export
10213
+ /**
10214
+ * Retrieve the stores associated with your account.
10215
+ * @summary Get stores
10216
+ * @param {number} [page] Page number
10217
+ * @param {*} [options] Override http request option.
10218
+ * @throws {RequiredError}
10219
+ */
10220
+ getStoresV1: async (page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10221
+ const localVarPath = `/api/ecommerce/v1/stores`;
10222
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10223
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10224
+ let baseOptions;
10225
+ if (configuration) {
10226
+ baseOptions = configuration.baseOptions;
10227
+ }
10228
+
10229
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10230
+ const localVarHeaderParameter = {} as any;
10231
+ const localVarQueryParameter = {} as any;
10232
+
10233
+ // authentication apiToken required
10234
+ // http bearer authentication required
10235
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10236
+
10237
+ if (page !== undefined) {
10238
+ localVarQueryParameter['page'] = page;
10239
+ }
10240
+
10241
+
10242
+
10243
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10244
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10245
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10246
+
10247
+ return {
10248
+ url: toPathString(localVarUrlObj),
10249
+ options: localVarRequestOptions,
10250
+ };
10251
+ },
10252
+ }
10253
+ };
10254
+
10255
+ /**
10256
+ * EcommerceStoresApi - functional programming interface
10257
+ * @export
9826
10258
  */
9827
10259
  export const EcommerceStoresApiFp = function(configuration?: Configuration) {
9828
10260
  const localVarAxiosParamCreator = EcommerceStoresApiAxiosParamCreator(configuration)
@@ -9851,6 +10283,18 @@ export const EcommerceStoresApiFp = function(configuration?: Configuration) {
9851
10283
  const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.deleteStoreV1']?.[0]?.url;
9852
10284
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9853
10285
  },
10286
+ /**
10287
+ * 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.
10288
+ * @summary Get store metadata
10289
+ * @param {string} storeId The ID of the store to read metadata for.
10290
+ * @param {*} [options] Override http request option.
10291
+ * @throws {RequiredError}
10292
+ */
10293
+ async getStoreMetadataV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1StoreStoreMetadataResource>> {
10294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStoreMetadataV1(storeId, options);
10295
+ const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.getStoreMetadataV1']?.[0]?.url;
10296
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10297
+ },
9854
10298
  /**
9855
10299
  * Retrieve the stores associated with your account.
9856
10300
  * @summary Get stores
@@ -9893,6 +10337,16 @@ export const EcommerceStoresApiFactory = function (configuration?: Configuration
9893
10337
  deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreDeleteResource> {
9894
10338
  return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
9895
10339
  },
10340
+ /**
10341
+ * 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.
10342
+ * @summary Get store metadata
10343
+ * @param {string} storeId The ID of the store to read metadata for.
10344
+ * @param {*} [options] Override http request option.
10345
+ * @throws {RequiredError}
10346
+ */
10347
+ getStoreMetadataV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreMetadataResource> {
10348
+ return localVarFp.getStoreMetadataV1(storeId, options).then((request) => request(axios, basePath));
10349
+ },
9896
10350
  /**
9897
10351
  * Retrieve the stores associated with your account.
9898
10352
  * @summary Get stores
@@ -9937,6 +10391,18 @@ export class EcommerceStoresApi extends BaseAPI {
9937
10391
  return EcommerceStoresApiFp(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
9938
10392
  }
9939
10393
 
10394
+ /**
10395
+ * 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.
10396
+ * @summary Get store metadata
10397
+ * @param {string} storeId The ID of the store to read metadata for.
10398
+ * @param {*} [options] Override http request option.
10399
+ * @throws {RequiredError}
10400
+ * @memberof EcommerceStoresApi
10401
+ */
10402
+ public getStoreMetadataV1(storeId: string, options?: RawAxiosRequestConfig) {
10403
+ return EcommerceStoresApiFp(this.configuration).getStoreMetadataV1(storeId, options).then((request) => request(this.axios, this.basePath));
10404
+ }
10405
+
9940
10406
  /**
9941
10407
  * Retrieve the stores associated with your account.
9942
10408
  * @summary Get stores
@@ -12579,6 +13045,546 @@ export const ListOrdersV1StatusesEnum = {
12579
13045
  export type ListOrdersV1StatusesEnum = typeof ListOrdersV1StatusesEnum[keyof typeof ListOrdersV1StatusesEnum];
12580
13046
 
12581
13047
 
13048
+ /**
13049
+ * HostingPHPApi - axios parameter creator
13050
+ * @export
13051
+ */
13052
+ export const HostingPHPApiAxiosParamCreator = function (configuration?: Configuration) {
13053
+ return {
13054
+ /**
13055
+ * 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.
13056
+ * @summary Get PHP details
13057
+ * @param {string} username
13058
+ * @param {string} domain Domain name
13059
+ * @param {*} [options] Override http request option.
13060
+ * @throws {RequiredError}
13061
+ */
13062
+ getPHPDetailsV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13063
+ // verify required parameter 'username' is not null or undefined
13064
+ assertParamExists('getPHPDetailsV1', 'username', username)
13065
+ // verify required parameter 'domain' is not null or undefined
13066
+ assertParamExists('getPHPDetailsV1', 'domain', domain)
13067
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/details`
13068
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13069
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
13070
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13071
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13072
+ let baseOptions;
13073
+ if (configuration) {
13074
+ baseOptions = configuration.baseOptions;
13075
+ }
13076
+
13077
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13078
+ const localVarHeaderParameter = {} as any;
13079
+ const localVarQueryParameter = {} as any;
13080
+
13081
+ // authentication apiToken required
13082
+ // http bearer authentication required
13083
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13084
+
13085
+
13086
+
13087
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13088
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13089
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13090
+
13091
+ return {
13092
+ url: toPathString(localVarUrlObj),
13093
+ options: localVarRequestOptions,
13094
+ };
13095
+ },
13096
+ /**
13097
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
13098
+ * @summary Get PHP info
13099
+ * @param {string} username
13100
+ * @param {string} domain Domain name
13101
+ * @param {*} [options] Override http request option.
13102
+ * @throws {RequiredError}
13103
+ */
13104
+ getPHPInfoV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13105
+ // verify required parameter 'username' is not null or undefined
13106
+ assertParamExists('getPHPInfoV1', 'username', username)
13107
+ // verify required parameter 'domain' is not null or undefined
13108
+ assertParamExists('getPHPInfoV1', 'domain', domain)
13109
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info`
13110
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13111
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
13112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13114
+ let baseOptions;
13115
+ if (configuration) {
13116
+ baseOptions = configuration.baseOptions;
13117
+ }
13118
+
13119
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13120
+ const localVarHeaderParameter = {} as any;
13121
+ const localVarQueryParameter = {} as any;
13122
+
13123
+ // authentication apiToken required
13124
+ // http bearer authentication required
13125
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13126
+
13127
+
13128
+
13129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13131
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13132
+
13133
+ return {
13134
+ url: toPathString(localVarUrlObj),
13135
+ options: localVarRequestOptions,
13136
+ };
13137
+ },
13138
+ /**
13139
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
13140
+ * @summary Reset PHP extensions
13141
+ * @param {string} username
13142
+ * @param {string} domain Domain name
13143
+ * @param {*} [options] Override http request option.
13144
+ * @throws {RequiredError}
13145
+ */
13146
+ resetPHPExtensionsV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13147
+ // verify required parameter 'username' is not null or undefined
13148
+ assertParamExists('resetPHPExtensionsV1', 'username', username)
13149
+ // verify required parameter 'domain' is not null or undefined
13150
+ assertParamExists('resetPHPExtensionsV1', 'domain', domain)
13151
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset`
13152
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13153
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
13154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13155
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13156
+ let baseOptions;
13157
+ if (configuration) {
13158
+ baseOptions = configuration.baseOptions;
13159
+ }
13160
+
13161
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13162
+ const localVarHeaderParameter = {} as any;
13163
+ const localVarQueryParameter = {} as any;
13164
+
13165
+ // authentication apiToken required
13166
+ // http bearer authentication required
13167
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13168
+
13169
+
13170
+
13171
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13172
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13173
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13174
+
13175
+ return {
13176
+ url: toPathString(localVarUrlObj),
13177
+ options: localVarRequestOptions,
13178
+ };
13179
+ },
13180
+ /**
13181
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
13182
+ * @summary Update PHP extensions
13183
+ * @param {string} username
13184
+ * @param {string} domain Domain name
13185
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
13186
+ * @param {*} [options] Override http request option.
13187
+ * @throws {RequiredError}
13188
+ */
13189
+ updatePHPExtensionsV1: async (username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13190
+ // verify required parameter 'username' is not null or undefined
13191
+ assertParamExists('updatePHPExtensionsV1', 'username', username)
13192
+ // verify required parameter 'domain' is not null or undefined
13193
+ assertParamExists('updatePHPExtensionsV1', 'domain', domain)
13194
+ // verify required parameter 'hostingV1PhpUpdatePhpExtensionsRequest' is not null or undefined
13195
+ assertParamExists('updatePHPExtensionsV1', 'hostingV1PhpUpdatePhpExtensionsRequest', hostingV1PhpUpdatePhpExtensionsRequest)
13196
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions`
13197
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13198
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
13199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13200
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13201
+ let baseOptions;
13202
+ if (configuration) {
13203
+ baseOptions = configuration.baseOptions;
13204
+ }
13205
+
13206
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13207
+ const localVarHeaderParameter = {} as any;
13208
+ const localVarQueryParameter = {} as any;
13209
+
13210
+ // authentication apiToken required
13211
+ // http bearer authentication required
13212
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13213
+
13214
+
13215
+
13216
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13217
+
13218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13220
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13221
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpExtensionsRequest, localVarRequestOptions, configuration)
13222
+
13223
+ return {
13224
+ url: toPathString(localVarUrlObj),
13225
+ options: localVarRequestOptions,
13226
+ };
13227
+ },
13228
+ /**
13229
+ * 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.
13230
+ * @summary Update PHP options
13231
+ * @param {string} username
13232
+ * @param {string} domain Domain name
13233
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
13234
+ * @param {*} [options] Override http request option.
13235
+ * @throws {RequiredError}
13236
+ */
13237
+ updatePHPOptionsV1: async (username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13238
+ // verify required parameter 'username' is not null or undefined
13239
+ assertParamExists('updatePHPOptionsV1', 'username', username)
13240
+ // verify required parameter 'domain' is not null or undefined
13241
+ assertParamExists('updatePHPOptionsV1', 'domain', domain)
13242
+ // verify required parameter 'hostingV1PhpUpdatePhpOptionsRequest' is not null or undefined
13243
+ assertParamExists('updatePHPOptionsV1', 'hostingV1PhpUpdatePhpOptionsRequest', hostingV1PhpUpdatePhpOptionsRequest)
13244
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/options`
13245
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13246
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
13247
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13248
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13249
+ let baseOptions;
13250
+ if (configuration) {
13251
+ baseOptions = configuration.baseOptions;
13252
+ }
13253
+
13254
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13255
+ const localVarHeaderParameter = {} as any;
13256
+ const localVarQueryParameter = {} as any;
13257
+
13258
+ // authentication apiToken required
13259
+ // http bearer authentication required
13260
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13261
+
13262
+
13263
+
13264
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13265
+
13266
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13267
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13268
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13269
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpOptionsRequest, localVarRequestOptions, configuration)
13270
+
13271
+ return {
13272
+ url: toPathString(localVarUrlObj),
13273
+ options: localVarRequestOptions,
13274
+ };
13275
+ },
13276
+ /**
13277
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
13278
+ * @summary Update PHP version
13279
+ * @param {string} username
13280
+ * @param {string} domain Domain name
13281
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
13282
+ * @param {*} [options] Override http request option.
13283
+ * @throws {RequiredError}
13284
+ */
13285
+ updatePHPVersionV1: async (username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13286
+ // verify required parameter 'username' is not null or undefined
13287
+ assertParamExists('updatePHPVersionV1', 'username', username)
13288
+ // verify required parameter 'domain' is not null or undefined
13289
+ assertParamExists('updatePHPVersionV1', 'domain', domain)
13290
+ // verify required parameter 'hostingV1PhpUpdatePhpVersionRequest' is not null or undefined
13291
+ assertParamExists('updatePHPVersionV1', 'hostingV1PhpUpdatePhpVersionRequest', hostingV1PhpUpdatePhpVersionRequest)
13292
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/version`
13293
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13294
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
13295
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13296
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13297
+ let baseOptions;
13298
+ if (configuration) {
13299
+ baseOptions = configuration.baseOptions;
13300
+ }
13301
+
13302
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13303
+ const localVarHeaderParameter = {} as any;
13304
+ const localVarQueryParameter = {} as any;
13305
+
13306
+ // authentication apiToken required
13307
+ // http bearer authentication required
13308
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13309
+
13310
+
13311
+
13312
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13313
+
13314
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13315
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13316
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13317
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpVersionRequest, localVarRequestOptions, configuration)
13318
+
13319
+ return {
13320
+ url: toPathString(localVarUrlObj),
13321
+ options: localVarRequestOptions,
13322
+ };
13323
+ },
13324
+ }
13325
+ };
13326
+
13327
+ /**
13328
+ * HostingPHPApi - functional programming interface
13329
+ * @export
13330
+ */
13331
+ export const HostingPHPApiFp = function(configuration?: Configuration) {
13332
+ const localVarAxiosParamCreator = HostingPHPApiAxiosParamCreator(configuration)
13333
+ return {
13334
+ /**
13335
+ * 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.
13336
+ * @summary Get PHP details
13337
+ * @param {string} username
13338
+ * @param {string} domain Domain name
13339
+ * @param {*} [options] Override http request option.
13340
+ * @throws {RequiredError}
13341
+ */
13342
+ async getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PhpPhpDetailsResource>> {
13343
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPHPDetailsV1(username, domain, options);
13344
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.getPHPDetailsV1']?.[0]?.url;
13345
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13346
+ },
13347
+ /**
13348
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
13349
+ * @summary Get PHP info
13350
+ * @param {string} username
13351
+ * @param {string} domain Domain name
13352
+ * @param {*} [options] Override http request option.
13353
+ * @throws {RequiredError}
13354
+ */
13355
+ async getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PhpPhpInfoResource>> {
13356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPHPInfoV1(username, domain, options);
13357
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.getPHPInfoV1']?.[0]?.url;
13358
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13359
+ },
13360
+ /**
13361
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
13362
+ * @summary Reset PHP extensions
13363
+ * @param {string} username
13364
+ * @param {string} domain Domain name
13365
+ * @param {*} [options] Override http request option.
13366
+ * @throws {RequiredError}
13367
+ */
13368
+ async resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
13369
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetPHPExtensionsV1(username, domain, options);
13370
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.resetPHPExtensionsV1']?.[0]?.url;
13371
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13372
+ },
13373
+ /**
13374
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
13375
+ * @summary Update PHP extensions
13376
+ * @param {string} username
13377
+ * @param {string} domain Domain name
13378
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
13379
+ * @param {*} [options] Override http request option.
13380
+ * @throws {RequiredError}
13381
+ */
13382
+ async updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
13383
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options);
13384
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.updatePHPExtensionsV1']?.[0]?.url;
13385
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13386
+ },
13387
+ /**
13388
+ * 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.
13389
+ * @summary Update PHP options
13390
+ * @param {string} username
13391
+ * @param {string} domain Domain name
13392
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
13393
+ * @param {*} [options] Override http request option.
13394
+ * @throws {RequiredError}
13395
+ */
13396
+ async updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
13397
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options);
13398
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.updatePHPOptionsV1']?.[0]?.url;
13399
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13400
+ },
13401
+ /**
13402
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
13403
+ * @summary Update PHP version
13404
+ * @param {string} username
13405
+ * @param {string} domain Domain name
13406
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
13407
+ * @param {*} [options] Override http request option.
13408
+ * @throws {RequiredError}
13409
+ */
13410
+ async updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
13411
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options);
13412
+ const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.updatePHPVersionV1']?.[0]?.url;
13413
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13414
+ },
13415
+ }
13416
+ };
13417
+
13418
+ /**
13419
+ * HostingPHPApi - factory interface
13420
+ * @export
13421
+ */
13422
+ export const HostingPHPApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
13423
+ const localVarFp = HostingPHPApiFp(configuration)
13424
+ return {
13425
+ /**
13426
+ * 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.
13427
+ * @summary Get PHP details
13428
+ * @param {string} username
13429
+ * @param {string} domain Domain name
13430
+ * @param {*} [options] Override http request option.
13431
+ * @throws {RequiredError}
13432
+ */
13433
+ getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PhpPhpDetailsResource> {
13434
+ return localVarFp.getPHPDetailsV1(username, domain, options).then((request) => request(axios, basePath));
13435
+ },
13436
+ /**
13437
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
13438
+ * @summary Get PHP info
13439
+ * @param {string} username
13440
+ * @param {string} domain Domain name
13441
+ * @param {*} [options] Override http request option.
13442
+ * @throws {RequiredError}
13443
+ */
13444
+ getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PhpPhpInfoResource> {
13445
+ return localVarFp.getPHPInfoV1(username, domain, options).then((request) => request(axios, basePath));
13446
+ },
13447
+ /**
13448
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
13449
+ * @summary Reset PHP extensions
13450
+ * @param {string} username
13451
+ * @param {string} domain Domain name
13452
+ * @param {*} [options] Override http request option.
13453
+ * @throws {RequiredError}
13454
+ */
13455
+ resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
13456
+ return localVarFp.resetPHPExtensionsV1(username, domain, options).then((request) => request(axios, basePath));
13457
+ },
13458
+ /**
13459
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
13460
+ * @summary Update PHP extensions
13461
+ * @param {string} username
13462
+ * @param {string} domain Domain name
13463
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
13464
+ * @param {*} [options] Override http request option.
13465
+ * @throws {RequiredError}
13466
+ */
13467
+ updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
13468
+ return localVarFp.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(axios, basePath));
13469
+ },
13470
+ /**
13471
+ * 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.
13472
+ * @summary Update PHP options
13473
+ * @param {string} username
13474
+ * @param {string} domain Domain name
13475
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
13476
+ * @param {*} [options] Override http request option.
13477
+ * @throws {RequiredError}
13478
+ */
13479
+ updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
13480
+ return localVarFp.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(axios, basePath));
13481
+ },
13482
+ /**
13483
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
13484
+ * @summary Update PHP version
13485
+ * @param {string} username
13486
+ * @param {string} domain Domain name
13487
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
13488
+ * @param {*} [options] Override http request option.
13489
+ * @throws {RequiredError}
13490
+ */
13491
+ updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
13492
+ return localVarFp.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(axios, basePath));
13493
+ },
13494
+ };
13495
+ };
13496
+
13497
+ /**
13498
+ * HostingPHPApi - object-oriented interface
13499
+ * @export
13500
+ * @class HostingPHPApi
13501
+ * @extends {BaseAPI}
13502
+ */
13503
+ export class HostingPHPApi extends BaseAPI {
13504
+ /**
13505
+ * 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.
13506
+ * @summary Get PHP details
13507
+ * @param {string} username
13508
+ * @param {string} domain Domain name
13509
+ * @param {*} [options] Override http request option.
13510
+ * @throws {RequiredError}
13511
+ * @memberof HostingPHPApi
13512
+ */
13513
+ public getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
13514
+ return HostingPHPApiFp(this.configuration).getPHPDetailsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
13515
+ }
13516
+
13517
+ /**
13518
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
13519
+ * @summary Get PHP info
13520
+ * @param {string} username
13521
+ * @param {string} domain Domain name
13522
+ * @param {*} [options] Override http request option.
13523
+ * @throws {RequiredError}
13524
+ * @memberof HostingPHPApi
13525
+ */
13526
+ public getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
13527
+ return HostingPHPApiFp(this.configuration).getPHPInfoV1(username, domain, options).then((request) => request(this.axios, this.basePath));
13528
+ }
13529
+
13530
+ /**
13531
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
13532
+ * @summary Reset PHP extensions
13533
+ * @param {string} username
13534
+ * @param {string} domain Domain name
13535
+ * @param {*} [options] Override http request option.
13536
+ * @throws {RequiredError}
13537
+ * @memberof HostingPHPApi
13538
+ */
13539
+ public resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
13540
+ return HostingPHPApiFp(this.configuration).resetPHPExtensionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
13541
+ }
13542
+
13543
+ /**
13544
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
13545
+ * @summary Update PHP extensions
13546
+ * @param {string} username
13547
+ * @param {string} domain Domain name
13548
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
13549
+ * @param {*} [options] Override http request option.
13550
+ * @throws {RequiredError}
13551
+ * @memberof HostingPHPApi
13552
+ */
13553
+ public updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig) {
13554
+ return HostingPHPApiFp(this.configuration).updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(this.axios, this.basePath));
13555
+ }
13556
+
13557
+ /**
13558
+ * 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.
13559
+ * @summary Update PHP options
13560
+ * @param {string} username
13561
+ * @param {string} domain Domain name
13562
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
13563
+ * @param {*} [options] Override http request option.
13564
+ * @throws {RequiredError}
13565
+ * @memberof HostingPHPApi
13566
+ */
13567
+ public updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig) {
13568
+ return HostingPHPApiFp(this.configuration).updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(this.axios, this.basePath));
13569
+ }
13570
+
13571
+ /**
13572
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
13573
+ * @summary Update PHP version
13574
+ * @param {string} username
13575
+ * @param {string} domain Domain name
13576
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
13577
+ * @param {*} [options] Override http request option.
13578
+ * @throws {RequiredError}
13579
+ * @memberof HostingPHPApi
13580
+ */
13581
+ public updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig) {
13582
+ return HostingPHPApiFp(this.configuration).updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(this.axios, this.basePath));
13583
+ }
13584
+ }
13585
+
13586
+
13587
+
12582
13588
  /**
12583
13589
  * HostingWebsitesApi - axios parameter creator
12584
13590
  * @export