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.
- package/README.md +2 -2
- package/api.ts +1036 -30
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +652 -9
- package/dist/api.js +680 -17
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +652 -9
- package/dist/esm/api.js +674 -15
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/EcommerceSalesChannelsApi.md +66 -4
- package/docs/EcommerceStoresApi.md +54 -0
- package/docs/EcommerceV1SalesChannelSalesChannelUpdateResource.md +20 -0
- package/docs/EcommerceV1SalesChannelUpdateRequest.md +22 -0
- package/docs/EcommerceV1StoreStoreMetadataResource.md +20 -0
- package/docs/EcommerceV1StoreStoreMetadataResourceMetadata.md +26 -0
- package/docs/EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency.md +37 -0
- package/docs/HostingPHPApi.md +364 -0
- package/docs/HostingV1PhpPhpDetailsResource.md +30 -0
- package/docs/HostingV1PhpPhpInfoResource.md +20 -0
- package/docs/HostingV1PhpPhpOptionResource.md +30 -0
- package/docs/HostingV1PhpPhpVersionsResource.md +22 -0
- package/docs/HostingV1PhpUpdatePhpExtensionsRequest.md +22 -0
- package/docs/HostingV1PhpUpdatePhpOptionsRequest.md +20 -0
- package/docs/HostingV1PhpUpdatePhpOptionsRequestOptionsValue.md +18 -0
- package/docs/HostingV1PhpUpdatePhpVersionRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.1
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1816,6 +1816,19 @@ export declare const EcommerceV1SalesChannelSalesChannelListResourceSalesChannel
|
|
|
1816
1816
|
readonly Wordpress: "wordpress";
|
|
1817
1817
|
};
|
|
1818
1818
|
export type EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum];
|
|
1819
|
+
/**
|
|
1820
|
+
*
|
|
1821
|
+
* @export
|
|
1822
|
+
* @interface EcommerceV1SalesChannelSalesChannelUpdateResource
|
|
1823
|
+
*/
|
|
1824
|
+
export interface EcommerceV1SalesChannelSalesChannelUpdateResource {
|
|
1825
|
+
/**
|
|
1826
|
+
*
|
|
1827
|
+
* @type {EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel}
|
|
1828
|
+
* @memberof EcommerceV1SalesChannelSalesChannelUpdateResource
|
|
1829
|
+
*/
|
|
1830
|
+
'sales_channel': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel;
|
|
1831
|
+
}
|
|
1819
1832
|
/**
|
|
1820
1833
|
*
|
|
1821
1834
|
* @export
|
|
@@ -1845,6 +1858,25 @@ export declare const EcommerceV1SalesChannelStoreRequestTypeEnum: {
|
|
|
1845
1858
|
readonly Custom: "custom";
|
|
1846
1859
|
};
|
|
1847
1860
|
export type EcommerceV1SalesChannelStoreRequestTypeEnum = typeof EcommerceV1SalesChannelStoreRequestTypeEnum[keyof typeof EcommerceV1SalesChannelStoreRequestTypeEnum];
|
|
1861
|
+
/**
|
|
1862
|
+
*
|
|
1863
|
+
* @export
|
|
1864
|
+
* @interface EcommerceV1SalesChannelUpdateRequest
|
|
1865
|
+
*/
|
|
1866
|
+
export interface EcommerceV1SalesChannelUpdateRequest {
|
|
1867
|
+
/**
|
|
1868
|
+
* Merchant-facing custom name shown in the sales channels list. Pass null to clear it.
|
|
1869
|
+
* @type {string}
|
|
1870
|
+
* @memberof EcommerceV1SalesChannelUpdateRequest
|
|
1871
|
+
*/
|
|
1872
|
+
'name': string | null;
|
|
1873
|
+
/**
|
|
1874
|
+
* Public address where the custom sales channel lives. Pass null to clear it.
|
|
1875
|
+
* @type {string}
|
|
1876
|
+
* @memberof EcommerceV1SalesChannelUpdateRequest
|
|
1877
|
+
*/
|
|
1878
|
+
'url': string | null;
|
|
1879
|
+
}
|
|
1848
1880
|
/**
|
|
1849
1881
|
*
|
|
1850
1882
|
* @export
|
|
@@ -2017,6 +2049,111 @@ export interface EcommerceV1StoreStoreDeleteResource {
|
|
|
2017
2049
|
*/
|
|
2018
2050
|
'is_deleted': boolean;
|
|
2019
2051
|
}
|
|
2052
|
+
/**
|
|
2053
|
+
*
|
|
2054
|
+
* @export
|
|
2055
|
+
* @interface EcommerceV1StoreStoreMetadataResource
|
|
2056
|
+
*/
|
|
2057
|
+
export interface EcommerceV1StoreStoreMetadataResource {
|
|
2058
|
+
/**
|
|
2059
|
+
*
|
|
2060
|
+
* @type {EcommerceV1StoreStoreMetadataResourceMetadata}
|
|
2061
|
+
* @memberof EcommerceV1StoreStoreMetadataResource
|
|
2062
|
+
*/
|
|
2063
|
+
'metadata': EcommerceV1StoreStoreMetadataResourceMetadata;
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
*
|
|
2067
|
+
* @export
|
|
2068
|
+
* @interface EcommerceV1StoreStoreMetadataResourceMetadata
|
|
2069
|
+
*/
|
|
2070
|
+
export interface EcommerceV1StoreStoreMetadataResourceMetadata {
|
|
2071
|
+
/**
|
|
2072
|
+
* Whether the store has at least one payment method connected.
|
|
2073
|
+
* @type {boolean}
|
|
2074
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadata
|
|
2075
|
+
*/
|
|
2076
|
+
'has_payment_methods': boolean;
|
|
2077
|
+
/**
|
|
2078
|
+
* Whether the store has at least one shipping option configured.
|
|
2079
|
+
* @type {boolean}
|
|
2080
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadata
|
|
2081
|
+
*/
|
|
2082
|
+
'has_shipping': boolean;
|
|
2083
|
+
/**
|
|
2084
|
+
* The default currency code of the store.
|
|
2085
|
+
* @type {string}
|
|
2086
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadata
|
|
2087
|
+
*/
|
|
2088
|
+
'default_currency_code': string;
|
|
2089
|
+
/**
|
|
2090
|
+
*
|
|
2091
|
+
* @type {EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency}
|
|
2092
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadata
|
|
2093
|
+
*/
|
|
2094
|
+
'default_currency': EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency | null;
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* The store\'s default currency, or null when unset.
|
|
2098
|
+
* @export
|
|
2099
|
+
* @interface EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2100
|
+
*/
|
|
2101
|
+
export interface EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency {
|
|
2102
|
+
/**
|
|
2103
|
+
*
|
|
2104
|
+
* @type {string}
|
|
2105
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2106
|
+
*/
|
|
2107
|
+
'code': string;
|
|
2108
|
+
/**
|
|
2109
|
+
*
|
|
2110
|
+
* @type {string}
|
|
2111
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2112
|
+
*/
|
|
2113
|
+
'symbol': string;
|
|
2114
|
+
/**
|
|
2115
|
+
*
|
|
2116
|
+
* @type {string}
|
|
2117
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2118
|
+
*/
|
|
2119
|
+
'symbol_native': string;
|
|
2120
|
+
/**
|
|
2121
|
+
*
|
|
2122
|
+
* @type {string}
|
|
2123
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2124
|
+
*/
|
|
2125
|
+
'name': string;
|
|
2126
|
+
/**
|
|
2127
|
+
*
|
|
2128
|
+
* @type {string}
|
|
2129
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2130
|
+
*/
|
|
2131
|
+
'name_plural': string;
|
|
2132
|
+
/**
|
|
2133
|
+
*
|
|
2134
|
+
* @type {number}
|
|
2135
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2136
|
+
*/
|
|
2137
|
+
'decimal_digits': number;
|
|
2138
|
+
/**
|
|
2139
|
+
*
|
|
2140
|
+
* @type {number}
|
|
2141
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2142
|
+
*/
|
|
2143
|
+
'rounding': number;
|
|
2144
|
+
/**
|
|
2145
|
+
*
|
|
2146
|
+
* @type {string}
|
|
2147
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2148
|
+
*/
|
|
2149
|
+
'template': string | null;
|
|
2150
|
+
/**
|
|
2151
|
+
*
|
|
2152
|
+
* @type {number}
|
|
2153
|
+
* @memberof EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency
|
|
2154
|
+
*/
|
|
2155
|
+
'min_amount': number | null;
|
|
2156
|
+
}
|
|
2020
2157
|
/**
|
|
2021
2158
|
*
|
|
2022
2159
|
* @export
|
|
@@ -3000,6 +3137,178 @@ export interface HostingV1OrdersPlanResource {
|
|
|
3000
3137
|
*/
|
|
3001
3138
|
'name': string;
|
|
3002
3139
|
}
|
|
3140
|
+
/**
|
|
3141
|
+
*
|
|
3142
|
+
* @export
|
|
3143
|
+
* @interface HostingV1PhpPhpDetailsResource
|
|
3144
|
+
*/
|
|
3145
|
+
export interface HostingV1PhpPhpDetailsResource {
|
|
3146
|
+
/**
|
|
3147
|
+
* Current PHP version name
|
|
3148
|
+
* @type {string}
|
|
3149
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3150
|
+
*/
|
|
3151
|
+
'php_version': string;
|
|
3152
|
+
/**
|
|
3153
|
+
* Full PHP version name
|
|
3154
|
+
* @type {string}
|
|
3155
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3156
|
+
*/
|
|
3157
|
+
'php_version_full': string;
|
|
3158
|
+
/**
|
|
3159
|
+
*
|
|
3160
|
+
* @type {HostingV1PhpPhpVersionsResource}
|
|
3161
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3162
|
+
*/
|
|
3163
|
+
'php_versions': HostingV1PhpPhpVersionsResource;
|
|
3164
|
+
/**
|
|
3165
|
+
* PHP options keyed by option name
|
|
3166
|
+
* @type {{ [key: string]: HostingV1PhpPhpOptionResource; }}
|
|
3167
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3168
|
+
*/
|
|
3169
|
+
'options': {
|
|
3170
|
+
[key: string]: HostingV1PhpPhpOptionResource;
|
|
3171
|
+
};
|
|
3172
|
+
/**
|
|
3173
|
+
* PHP extensions keyed by extension name
|
|
3174
|
+
* @type {object}
|
|
3175
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3176
|
+
*/
|
|
3177
|
+
'extensions': object;
|
|
3178
|
+
/**
|
|
3179
|
+
* Groups of extensions that conflict with each other
|
|
3180
|
+
* @type {Array<Array<string>>}
|
|
3181
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3182
|
+
*/
|
|
3183
|
+
'conflicting_extensions': Array<Array<string>>;
|
|
3184
|
+
}
|
|
3185
|
+
/**
|
|
3186
|
+
*
|
|
3187
|
+
* @export
|
|
3188
|
+
* @interface HostingV1PhpPhpInfoResource
|
|
3189
|
+
*/
|
|
3190
|
+
export interface HostingV1PhpPhpInfoResource {
|
|
3191
|
+
/**
|
|
3192
|
+
* HTML string containing the full phpinfo page
|
|
3193
|
+
* @type {string}
|
|
3194
|
+
* @memberof HostingV1PhpPhpInfoResource
|
|
3195
|
+
*/
|
|
3196
|
+
'info': string;
|
|
3197
|
+
}
|
|
3198
|
+
/**
|
|
3199
|
+
*
|
|
3200
|
+
* @export
|
|
3201
|
+
* @interface HostingV1PhpPhpOptionResource
|
|
3202
|
+
*/
|
|
3203
|
+
export interface HostingV1PhpPhpOptionResource {
|
|
3204
|
+
/**
|
|
3205
|
+
* Declared option type (e.g. bool, string)
|
|
3206
|
+
* @type {string}
|
|
3207
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3208
|
+
*/
|
|
3209
|
+
'type': string;
|
|
3210
|
+
/**
|
|
3211
|
+
* Current value for this website
|
|
3212
|
+
* @type {string}
|
|
3213
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3214
|
+
*/
|
|
3215
|
+
'value': string;
|
|
3216
|
+
/**
|
|
3217
|
+
* Human-readable description
|
|
3218
|
+
* @type {string}
|
|
3219
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3220
|
+
*/
|
|
3221
|
+
'comment': string;
|
|
3222
|
+
/**
|
|
3223
|
+
* Default value
|
|
3224
|
+
* @type {string}
|
|
3225
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3226
|
+
*/
|
|
3227
|
+
'default': string;
|
|
3228
|
+
/**
|
|
3229
|
+
* Allowed value range or limits, when applicable
|
|
3230
|
+
* @type {string}
|
|
3231
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3232
|
+
*/
|
|
3233
|
+
'range': string | null;
|
|
3234
|
+
/**
|
|
3235
|
+
* Maximum value allowed by the account hosting plan, when applicable
|
|
3236
|
+
* @type {string}
|
|
3237
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3238
|
+
*/
|
|
3239
|
+
'max': string | null;
|
|
3240
|
+
}
|
|
3241
|
+
/**
|
|
3242
|
+
*
|
|
3243
|
+
* @export
|
|
3244
|
+
* @interface HostingV1PhpPhpVersionsResource
|
|
3245
|
+
*/
|
|
3246
|
+
export interface HostingV1PhpPhpVersionsResource {
|
|
3247
|
+
/**
|
|
3248
|
+
* Key-value pairs of supported versions
|
|
3249
|
+
* @type {object}
|
|
3250
|
+
* @memberof HostingV1PhpPhpVersionsResource
|
|
3251
|
+
*/
|
|
3252
|
+
'supported': object;
|
|
3253
|
+
/**
|
|
3254
|
+
* Key-value pairs of unsupported versions
|
|
3255
|
+
* @type {object}
|
|
3256
|
+
* @memberof HostingV1PhpPhpVersionsResource
|
|
3257
|
+
*/
|
|
3258
|
+
'unsupported': object;
|
|
3259
|
+
}
|
|
3260
|
+
/**
|
|
3261
|
+
*
|
|
3262
|
+
* @export
|
|
3263
|
+
* @interface HostingV1PhpUpdatePhpExtensionsRequest
|
|
3264
|
+
*/
|
|
3265
|
+
export interface HostingV1PhpUpdatePhpExtensionsRequest {
|
|
3266
|
+
/**
|
|
3267
|
+
* PHP extensions to enable.
|
|
3268
|
+
* @type {Array<string>}
|
|
3269
|
+
* @memberof HostingV1PhpUpdatePhpExtensionsRequest
|
|
3270
|
+
*/
|
|
3271
|
+
'enable': Array<string>;
|
|
3272
|
+
/**
|
|
3273
|
+
* PHP extensions to disable.
|
|
3274
|
+
* @type {Array<string>}
|
|
3275
|
+
* @memberof HostingV1PhpUpdatePhpExtensionsRequest
|
|
3276
|
+
*/
|
|
3277
|
+
'disable': Array<string>;
|
|
3278
|
+
}
|
|
3279
|
+
/**
|
|
3280
|
+
*
|
|
3281
|
+
* @export
|
|
3282
|
+
* @interface HostingV1PhpUpdatePhpOptionsRequest
|
|
3283
|
+
*/
|
|
3284
|
+
export interface HostingV1PhpUpdatePhpOptionsRequest {
|
|
3285
|
+
/**
|
|
3286
|
+
* Map of PHP options to update, keyed by option name. Only include options you want to change.
|
|
3287
|
+
* @type {{ [key: string]: HostingV1PhpUpdatePhpOptionsRequestOptionsValue; }}
|
|
3288
|
+
* @memberof HostingV1PhpUpdatePhpOptionsRequest
|
|
3289
|
+
*/
|
|
3290
|
+
'options': {
|
|
3291
|
+
[key: string]: HostingV1PhpUpdatePhpOptionsRequestOptionsValue;
|
|
3292
|
+
};
|
|
3293
|
+
}
|
|
3294
|
+
/**
|
|
3295
|
+
* @type HostingV1PhpUpdatePhpOptionsRequestOptionsValue
|
|
3296
|
+
* @export
|
|
3297
|
+
*/
|
|
3298
|
+
export type HostingV1PhpUpdatePhpOptionsRequestOptionsValue = number | string;
|
|
3299
|
+
/**
|
|
3300
|
+
*
|
|
3301
|
+
* @export
|
|
3302
|
+
* @interface HostingV1PhpUpdatePhpVersionRequest
|
|
3303
|
+
*/
|
|
3304
|
+
export interface HostingV1PhpUpdatePhpVersionRequest {
|
|
3305
|
+
/**
|
|
3306
|
+
* PHP version to switch the website to.
|
|
3307
|
+
* @type {string}
|
|
3308
|
+
* @memberof HostingV1PhpUpdatePhpVersionRequest
|
|
3309
|
+
*/
|
|
3310
|
+
'version': string;
|
|
3311
|
+
}
|
|
3003
3312
|
/**
|
|
3004
3313
|
*
|
|
3005
3314
|
* @export
|
|
@@ -7575,13 +7884,13 @@ export declare class EcommerceProductsApi extends BaseAPI {
|
|
|
7575
7884
|
export declare const EcommerceSalesChannelsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
7576
7885
|
/**
|
|
7577
7886
|
* 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.
|
|
7578
|
-
* @summary Create
|
|
7887
|
+
* @summary Create custom sales channel
|
|
7579
7888
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
7580
7889
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
7581
7890
|
* @param {*} [options] Override http request option.
|
|
7582
7891
|
* @throws {RequiredError}
|
|
7583
7892
|
*/
|
|
7584
|
-
|
|
7893
|
+
createCustomSalesChannelV1: (storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7585
7894
|
/**
|
|
7586
7895
|
* List a store\'s active sales channels with their full metadata.
|
|
7587
7896
|
* @summary List sales channels
|
|
@@ -7590,6 +7899,16 @@ export declare const EcommerceSalesChannelsApiAxiosParamCreator: (configuration?
|
|
|
7590
7899
|
* @throws {RequiredError}
|
|
7591
7900
|
*/
|
|
7592
7901
|
listSalesChannelsV1: (storeId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7902
|
+
/**
|
|
7903
|
+
* 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.
|
|
7904
|
+
* @summary Update sales channel
|
|
7905
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
7906
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
7907
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
7908
|
+
* @param {*} [options] Override http request option.
|
|
7909
|
+
* @throws {RequiredError}
|
|
7910
|
+
*/
|
|
7911
|
+
updateSalesChannelV1: (storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7593
7912
|
};
|
|
7594
7913
|
/**
|
|
7595
7914
|
* EcommerceSalesChannelsApi - functional programming interface
|
|
@@ -7598,13 +7917,13 @@ export declare const EcommerceSalesChannelsApiAxiosParamCreator: (configuration?
|
|
|
7598
7917
|
export declare const EcommerceSalesChannelsApiFp: (configuration?: Configuration) => {
|
|
7599
7918
|
/**
|
|
7600
7919
|
* 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.
|
|
7601
|
-
* @summary Create
|
|
7920
|
+
* @summary Create custom sales channel
|
|
7602
7921
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
7603
7922
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
7604
7923
|
* @param {*} [options] Override http request option.
|
|
7605
7924
|
* @throws {RequiredError}
|
|
7606
7925
|
*/
|
|
7607
|
-
|
|
7926
|
+
createCustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>>;
|
|
7608
7927
|
/**
|
|
7609
7928
|
* List a store\'s active sales channels with their full metadata.
|
|
7610
7929
|
* @summary List sales channels
|
|
@@ -7613,6 +7932,16 @@ export declare const EcommerceSalesChannelsApiFp: (configuration?: Configuration
|
|
|
7613
7932
|
* @throws {RequiredError}
|
|
7614
7933
|
*/
|
|
7615
7934
|
listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource>>;
|
|
7935
|
+
/**
|
|
7936
|
+
* 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.
|
|
7937
|
+
* @summary Update sales channel
|
|
7938
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
7939
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
7940
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
7941
|
+
* @param {*} [options] Override http request option.
|
|
7942
|
+
* @throws {RequiredError}
|
|
7943
|
+
*/
|
|
7944
|
+
updateSalesChannelV1(storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelUpdateResource>>;
|
|
7616
7945
|
};
|
|
7617
7946
|
/**
|
|
7618
7947
|
* EcommerceSalesChannelsApi - factory interface
|
|
@@ -7621,13 +7950,13 @@ export declare const EcommerceSalesChannelsApiFp: (configuration?: Configuration
|
|
|
7621
7950
|
export declare const EcommerceSalesChannelsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
7622
7951
|
/**
|
|
7623
7952
|
* 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.
|
|
7624
|
-
* @summary Create
|
|
7953
|
+
* @summary Create custom sales channel
|
|
7625
7954
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
7626
7955
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
7627
7956
|
* @param {*} [options] Override http request option.
|
|
7628
7957
|
* @throws {RequiredError}
|
|
7629
7958
|
*/
|
|
7630
|
-
|
|
7959
|
+
createCustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>;
|
|
7631
7960
|
/**
|
|
7632
7961
|
* List a store\'s active sales channels with their full metadata.
|
|
7633
7962
|
* @summary List sales channels
|
|
@@ -7636,6 +7965,16 @@ export declare const EcommerceSalesChannelsApiFactory: (configuration?: Configur
|
|
|
7636
7965
|
* @throws {RequiredError}
|
|
7637
7966
|
*/
|
|
7638
7967
|
listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource>;
|
|
7968
|
+
/**
|
|
7969
|
+
* 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.
|
|
7970
|
+
* @summary Update sales channel
|
|
7971
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
7972
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
7973
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
7974
|
+
* @param {*} [options] Override http request option.
|
|
7975
|
+
* @throws {RequiredError}
|
|
7976
|
+
*/
|
|
7977
|
+
updateSalesChannelV1(storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelUpdateResource>;
|
|
7639
7978
|
};
|
|
7640
7979
|
/**
|
|
7641
7980
|
* EcommerceSalesChannelsApi - object-oriented interface
|
|
@@ -7646,14 +7985,14 @@ export declare const EcommerceSalesChannelsApiFactory: (configuration?: Configur
|
|
|
7646
7985
|
export declare class EcommerceSalesChannelsApi extends BaseAPI {
|
|
7647
7986
|
/**
|
|
7648
7987
|
* 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.
|
|
7649
|
-
* @summary Create
|
|
7988
|
+
* @summary Create custom sales channel
|
|
7650
7989
|
* @param {string} storeId The ID of the store to create the sales channel for.
|
|
7651
7990
|
* @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
|
|
7652
7991
|
* @param {*} [options] Override http request option.
|
|
7653
7992
|
* @throws {RequiredError}
|
|
7654
7993
|
* @memberof EcommerceSalesChannelsApi
|
|
7655
7994
|
*/
|
|
7656
|
-
|
|
7995
|
+
createCustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1SalesChannelSalesChannelCreationResource, any, {}>>;
|
|
7657
7996
|
/**
|
|
7658
7997
|
* List a store\'s active sales channels with their full metadata.
|
|
7659
7998
|
* @summary List sales channels
|
|
@@ -7663,6 +8002,17 @@ export declare class EcommerceSalesChannelsApi extends BaseAPI {
|
|
|
7663
8002
|
* @memberof EcommerceSalesChannelsApi
|
|
7664
8003
|
*/
|
|
7665
8004
|
listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1SalesChannelSalesChannelListResource, any, {}>>;
|
|
8005
|
+
/**
|
|
8006
|
+
* 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.
|
|
8007
|
+
* @summary Update sales channel
|
|
8008
|
+
* @param {string} storeId The ID of the store that owns the sales channel.
|
|
8009
|
+
* @param {string} salesChannelId The ID of the sales channel to update.
|
|
8010
|
+
* @param {EcommerceV1SalesChannelUpdateRequest} ecommerceV1SalesChannelUpdateRequest
|
|
8011
|
+
* @param {*} [options] Override http request option.
|
|
8012
|
+
* @throws {RequiredError}
|
|
8013
|
+
* @memberof EcommerceSalesChannelsApi
|
|
8014
|
+
*/
|
|
8015
|
+
updateSalesChannelV1(storeId: string, salesChannelId: string, ecommerceV1SalesChannelUpdateRequest: EcommerceV1SalesChannelUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1SalesChannelSalesChannelUpdateResource, any, {}>>;
|
|
7666
8016
|
}
|
|
7667
8017
|
/**
|
|
7668
8018
|
* EcommerceShippingApi - axios parameter creator
|
|
@@ -7748,6 +8098,14 @@ export declare const EcommerceStoresApiAxiosParamCreator: (configuration?: Confi
|
|
|
7748
8098
|
* @throws {RequiredError}
|
|
7749
8099
|
*/
|
|
7750
8100
|
deleteStoreV1: (storeId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8101
|
+
/**
|
|
8102
|
+
* 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.
|
|
8103
|
+
* @summary Get store metadata
|
|
8104
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
8105
|
+
* @param {*} [options] Override http request option.
|
|
8106
|
+
* @throws {RequiredError}
|
|
8107
|
+
*/
|
|
8108
|
+
getStoreMetadataV1: (storeId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7751
8109
|
/**
|
|
7752
8110
|
* Retrieve the stores associated with your account.
|
|
7753
8111
|
* @summary Get stores
|
|
@@ -7778,6 +8136,14 @@ export declare const EcommerceStoresApiFp: (configuration?: Configuration) => {
|
|
|
7778
8136
|
* @throws {RequiredError}
|
|
7779
8137
|
*/
|
|
7780
8138
|
deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1StoreStoreDeleteResource>>;
|
|
8139
|
+
/**
|
|
8140
|
+
* 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.
|
|
8141
|
+
* @summary Get store metadata
|
|
8142
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
8143
|
+
* @param {*} [options] Override http request option.
|
|
8144
|
+
* @throws {RequiredError}
|
|
8145
|
+
*/
|
|
8146
|
+
getStoreMetadataV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1StoreStoreMetadataResource>>;
|
|
7781
8147
|
/**
|
|
7782
8148
|
* Retrieve the stores associated with your account.
|
|
7783
8149
|
* @summary Get stores
|
|
@@ -7808,6 +8174,14 @@ export declare const EcommerceStoresApiFactory: (configuration?: Configuration,
|
|
|
7808
8174
|
* @throws {RequiredError}
|
|
7809
8175
|
*/
|
|
7810
8176
|
deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreDeleteResource>;
|
|
8177
|
+
/**
|
|
8178
|
+
* 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.
|
|
8179
|
+
* @summary Get store metadata
|
|
8180
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
8181
|
+
* @param {*} [options] Override http request option.
|
|
8182
|
+
* @throws {RequiredError}
|
|
8183
|
+
*/
|
|
8184
|
+
getStoreMetadataV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreMetadataResource>;
|
|
7811
8185
|
/**
|
|
7812
8186
|
* Retrieve the stores associated with your account.
|
|
7813
8187
|
* @summary Get stores
|
|
@@ -7842,6 +8216,15 @@ export declare class EcommerceStoresApi extends BaseAPI {
|
|
|
7842
8216
|
* @memberof EcommerceStoresApi
|
|
7843
8217
|
*/
|
|
7844
8218
|
deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1StoreStoreDeleteResource, any, {}>>;
|
|
8219
|
+
/**
|
|
8220
|
+
* 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.
|
|
8221
|
+
* @summary Get store metadata
|
|
8222
|
+
* @param {string} storeId The ID of the store to read metadata for.
|
|
8223
|
+
* @param {*} [options] Override http request option.
|
|
8224
|
+
* @throws {RequiredError}
|
|
8225
|
+
* @memberof EcommerceStoresApi
|
|
8226
|
+
*/
|
|
8227
|
+
getStoreMetadataV1(storeId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1StoreStoreMetadataResource, any, {}>>;
|
|
7845
8228
|
/**
|
|
7846
8229
|
* Retrieve the stores associated with your account.
|
|
7847
8230
|
* @summary Get stores
|
|
@@ -9138,6 +9521,266 @@ export declare const ListOrdersV1StatusesEnum: {
|
|
|
9138
9521
|
readonly Suspended: "suspended";
|
|
9139
9522
|
};
|
|
9140
9523
|
export type ListOrdersV1StatusesEnum = typeof ListOrdersV1StatusesEnum[keyof typeof ListOrdersV1StatusesEnum];
|
|
9524
|
+
/**
|
|
9525
|
+
* HostingPHPApi - axios parameter creator
|
|
9526
|
+
* @export
|
|
9527
|
+
*/
|
|
9528
|
+
export declare const HostingPHPApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
9529
|
+
/**
|
|
9530
|
+
* 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.
|
|
9531
|
+
* @summary Get PHP details
|
|
9532
|
+
* @param {string} username
|
|
9533
|
+
* @param {string} domain Domain name
|
|
9534
|
+
* @param {*} [options] Override http request option.
|
|
9535
|
+
* @throws {RequiredError}
|
|
9536
|
+
*/
|
|
9537
|
+
getPHPDetailsV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9538
|
+
/**
|
|
9539
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
9540
|
+
* @summary Get PHP info
|
|
9541
|
+
* @param {string} username
|
|
9542
|
+
* @param {string} domain Domain name
|
|
9543
|
+
* @param {*} [options] Override http request option.
|
|
9544
|
+
* @throws {RequiredError}
|
|
9545
|
+
*/
|
|
9546
|
+
getPHPInfoV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9547
|
+
/**
|
|
9548
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
9549
|
+
* @summary Reset PHP extensions
|
|
9550
|
+
* @param {string} username
|
|
9551
|
+
* @param {string} domain Domain name
|
|
9552
|
+
* @param {*} [options] Override http request option.
|
|
9553
|
+
* @throws {RequiredError}
|
|
9554
|
+
*/
|
|
9555
|
+
resetPHPExtensionsV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9556
|
+
/**
|
|
9557
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
9558
|
+
* @summary Update PHP extensions
|
|
9559
|
+
* @param {string} username
|
|
9560
|
+
* @param {string} domain Domain name
|
|
9561
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
9562
|
+
* @param {*} [options] Override http request option.
|
|
9563
|
+
* @throws {RequiredError}
|
|
9564
|
+
*/
|
|
9565
|
+
updatePHPExtensionsV1: (username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9566
|
+
/**
|
|
9567
|
+
* 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.
|
|
9568
|
+
* @summary Update PHP options
|
|
9569
|
+
* @param {string} username
|
|
9570
|
+
* @param {string} domain Domain name
|
|
9571
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
9572
|
+
* @param {*} [options] Override http request option.
|
|
9573
|
+
* @throws {RequiredError}
|
|
9574
|
+
*/
|
|
9575
|
+
updatePHPOptionsV1: (username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9576
|
+
/**
|
|
9577
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
9578
|
+
* @summary Update PHP version
|
|
9579
|
+
* @param {string} username
|
|
9580
|
+
* @param {string} domain Domain name
|
|
9581
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
9582
|
+
* @param {*} [options] Override http request option.
|
|
9583
|
+
* @throws {RequiredError}
|
|
9584
|
+
*/
|
|
9585
|
+
updatePHPVersionV1: (username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9586
|
+
};
|
|
9587
|
+
/**
|
|
9588
|
+
* HostingPHPApi - functional programming interface
|
|
9589
|
+
* @export
|
|
9590
|
+
*/
|
|
9591
|
+
export declare const HostingPHPApiFp: (configuration?: Configuration) => {
|
|
9592
|
+
/**
|
|
9593
|
+
* 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.
|
|
9594
|
+
* @summary Get PHP details
|
|
9595
|
+
* @param {string} username
|
|
9596
|
+
* @param {string} domain Domain name
|
|
9597
|
+
* @param {*} [options] Override http request option.
|
|
9598
|
+
* @throws {RequiredError}
|
|
9599
|
+
*/
|
|
9600
|
+
getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PhpPhpDetailsResource>>;
|
|
9601
|
+
/**
|
|
9602
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
9603
|
+
* @summary Get PHP info
|
|
9604
|
+
* @param {string} username
|
|
9605
|
+
* @param {string} domain Domain name
|
|
9606
|
+
* @param {*} [options] Override http request option.
|
|
9607
|
+
* @throws {RequiredError}
|
|
9608
|
+
*/
|
|
9609
|
+
getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PhpPhpInfoResource>>;
|
|
9610
|
+
/**
|
|
9611
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
9612
|
+
* @summary Reset PHP extensions
|
|
9613
|
+
* @param {string} username
|
|
9614
|
+
* @param {string} domain Domain name
|
|
9615
|
+
* @param {*} [options] Override http request option.
|
|
9616
|
+
* @throws {RequiredError}
|
|
9617
|
+
*/
|
|
9618
|
+
resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
9619
|
+
/**
|
|
9620
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
9621
|
+
* @summary Update PHP extensions
|
|
9622
|
+
* @param {string} username
|
|
9623
|
+
* @param {string} domain Domain name
|
|
9624
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
9625
|
+
* @param {*} [options] Override http request option.
|
|
9626
|
+
* @throws {RequiredError}
|
|
9627
|
+
*/
|
|
9628
|
+
updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
9629
|
+
/**
|
|
9630
|
+
* 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.
|
|
9631
|
+
* @summary Update PHP options
|
|
9632
|
+
* @param {string} username
|
|
9633
|
+
* @param {string} domain Domain name
|
|
9634
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
9635
|
+
* @param {*} [options] Override http request option.
|
|
9636
|
+
* @throws {RequiredError}
|
|
9637
|
+
*/
|
|
9638
|
+
updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
9639
|
+
/**
|
|
9640
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
9641
|
+
* @summary Update PHP version
|
|
9642
|
+
* @param {string} username
|
|
9643
|
+
* @param {string} domain Domain name
|
|
9644
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
9645
|
+
* @param {*} [options] Override http request option.
|
|
9646
|
+
* @throws {RequiredError}
|
|
9647
|
+
*/
|
|
9648
|
+
updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
9649
|
+
};
|
|
9650
|
+
/**
|
|
9651
|
+
* HostingPHPApi - factory interface
|
|
9652
|
+
* @export
|
|
9653
|
+
*/
|
|
9654
|
+
export declare const HostingPHPApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
9655
|
+
/**
|
|
9656
|
+
* 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.
|
|
9657
|
+
* @summary Get PHP details
|
|
9658
|
+
* @param {string} username
|
|
9659
|
+
* @param {string} domain Domain name
|
|
9660
|
+
* @param {*} [options] Override http request option.
|
|
9661
|
+
* @throws {RequiredError}
|
|
9662
|
+
*/
|
|
9663
|
+
getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PhpPhpDetailsResource>;
|
|
9664
|
+
/**
|
|
9665
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
9666
|
+
* @summary Get PHP info
|
|
9667
|
+
* @param {string} username
|
|
9668
|
+
* @param {string} domain Domain name
|
|
9669
|
+
* @param {*} [options] Override http request option.
|
|
9670
|
+
* @throws {RequiredError}
|
|
9671
|
+
*/
|
|
9672
|
+
getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PhpPhpInfoResource>;
|
|
9673
|
+
/**
|
|
9674
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
9675
|
+
* @summary Reset PHP extensions
|
|
9676
|
+
* @param {string} username
|
|
9677
|
+
* @param {string} domain Domain name
|
|
9678
|
+
* @param {*} [options] Override http request option.
|
|
9679
|
+
* @throws {RequiredError}
|
|
9680
|
+
*/
|
|
9681
|
+
resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
9682
|
+
/**
|
|
9683
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
9684
|
+
* @summary Update PHP extensions
|
|
9685
|
+
* @param {string} username
|
|
9686
|
+
* @param {string} domain Domain name
|
|
9687
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
9688
|
+
* @param {*} [options] Override http request option.
|
|
9689
|
+
* @throws {RequiredError}
|
|
9690
|
+
*/
|
|
9691
|
+
updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
9692
|
+
/**
|
|
9693
|
+
* 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.
|
|
9694
|
+
* @summary Update PHP options
|
|
9695
|
+
* @param {string} username
|
|
9696
|
+
* @param {string} domain Domain name
|
|
9697
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
9698
|
+
* @param {*} [options] Override http request option.
|
|
9699
|
+
* @throws {RequiredError}
|
|
9700
|
+
*/
|
|
9701
|
+
updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
9702
|
+
/**
|
|
9703
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
9704
|
+
* @summary Update PHP version
|
|
9705
|
+
* @param {string} username
|
|
9706
|
+
* @param {string} domain Domain name
|
|
9707
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
9708
|
+
* @param {*} [options] Override http request option.
|
|
9709
|
+
* @throws {RequiredError}
|
|
9710
|
+
*/
|
|
9711
|
+
updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
9712
|
+
};
|
|
9713
|
+
/**
|
|
9714
|
+
* HostingPHPApi - object-oriented interface
|
|
9715
|
+
* @export
|
|
9716
|
+
* @class HostingPHPApi
|
|
9717
|
+
* @extends {BaseAPI}
|
|
9718
|
+
*/
|
|
9719
|
+
export declare class HostingPHPApi extends BaseAPI {
|
|
9720
|
+
/**
|
|
9721
|
+
* 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.
|
|
9722
|
+
* @summary Get PHP details
|
|
9723
|
+
* @param {string} username
|
|
9724
|
+
* @param {string} domain Domain name
|
|
9725
|
+
* @param {*} [options] Override http request option.
|
|
9726
|
+
* @throws {RequiredError}
|
|
9727
|
+
* @memberof HostingPHPApi
|
|
9728
|
+
*/
|
|
9729
|
+
getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1PhpPhpDetailsResource, any, {}>>;
|
|
9730
|
+
/**
|
|
9731
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
9732
|
+
* @summary Get PHP info
|
|
9733
|
+
* @param {string} username
|
|
9734
|
+
* @param {string} domain Domain name
|
|
9735
|
+
* @param {*} [options] Override http request option.
|
|
9736
|
+
* @throws {RequiredError}
|
|
9737
|
+
* @memberof HostingPHPApi
|
|
9738
|
+
*/
|
|
9739
|
+
getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1PhpPhpInfoResource, any, {}>>;
|
|
9740
|
+
/**
|
|
9741
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
9742
|
+
* @summary Reset PHP extensions
|
|
9743
|
+
* @param {string} username
|
|
9744
|
+
* @param {string} domain Domain name
|
|
9745
|
+
* @param {*} [options] Override http request option.
|
|
9746
|
+
* @throws {RequiredError}
|
|
9747
|
+
* @memberof HostingPHPApi
|
|
9748
|
+
*/
|
|
9749
|
+
resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
9750
|
+
/**
|
|
9751
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
9752
|
+
* @summary Update PHP extensions
|
|
9753
|
+
* @param {string} username
|
|
9754
|
+
* @param {string} domain Domain name
|
|
9755
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
9756
|
+
* @param {*} [options] Override http request option.
|
|
9757
|
+
* @throws {RequiredError}
|
|
9758
|
+
* @memberof HostingPHPApi
|
|
9759
|
+
*/
|
|
9760
|
+
updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
9761
|
+
/**
|
|
9762
|
+
* 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.
|
|
9763
|
+
* @summary Update PHP options
|
|
9764
|
+
* @param {string} username
|
|
9765
|
+
* @param {string} domain Domain name
|
|
9766
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
9767
|
+
* @param {*} [options] Override http request option.
|
|
9768
|
+
* @throws {RequiredError}
|
|
9769
|
+
* @memberof HostingPHPApi
|
|
9770
|
+
*/
|
|
9771
|
+
updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
9772
|
+
/**
|
|
9773
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
9774
|
+
* @summary Update PHP version
|
|
9775
|
+
* @param {string} username
|
|
9776
|
+
* @param {string} domain Domain name
|
|
9777
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
9778
|
+
* @param {*} [options] Override http request option.
|
|
9779
|
+
* @throws {RequiredError}
|
|
9780
|
+
* @memberof HostingPHPApi
|
|
9781
|
+
*/
|
|
9782
|
+
updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
9783
|
+
}
|
|
9141
9784
|
/**
|
|
9142
9785
|
* HostingWebsitesApi - axios parameter creator
|
|
9143
9786
|
* @export
|