hostinger-api-sdk 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1227 -29
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +768 -1
  7. package/dist/api.js +818 -6
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +768 -1
  15. package/dist/esm/api.js +801 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/EcommerceMiscellaneousApi.md +54 -0
  27. package/docs/EcommerceSalesChannelsApi.md +120 -0
  28. package/docs/EcommerceV1MiscellaneousCustomStorefrontInstructionsResource.md +20 -0
  29. package/docs/EcommerceV1SalesChannelSalesChannelCreationResource.md +20 -0
  30. package/docs/EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel.md +32 -0
  31. package/docs/EcommerceV1SalesChannelSalesChannelListResource.md +20 -0
  32. package/docs/EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner.md +32 -0
  33. package/docs/EcommerceV1SalesChannelStoreRequest.md +24 -0
  34. package/docs/HostingPHPApi.md +364 -0
  35. package/docs/HostingV1PhpPhpDetailsResource.md +30 -0
  36. package/docs/HostingV1PhpPhpInfoResource.md +20 -0
  37. package/docs/HostingV1PhpPhpOptionResource.md +30 -0
  38. package/docs/HostingV1PhpPhpVersionsResource.md +22 -0
  39. package/docs/HostingV1PhpUpdatePhpExtensionsRequest.md +22 -0
  40. package/docs/HostingV1PhpUpdatePhpOptionsRequest.md +20 -0
  41. package/docs/HostingV1PhpUpdatePhpOptionsRequestOptionsValue.md +18 -0
  42. package/docs/HostingV1PhpUpdatePhpVersionRequest.md +20 -0
  43. package/index.ts +1 -1
  44. package/package.json +1 -1
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.1.0
4
+ * API Version: 1.2.0
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
@@ -1463,6 +1463,19 @@ export interface EcommerceGetStoresV1200Response {
1463
1463
  */
1464
1464
  'meta': CommonSchemaPaginationMetaSchema;
1465
1465
  }
1466
+ /**
1467
+ *
1468
+ * @export
1469
+ * @interface EcommerceV1MiscellaneousCustomStorefrontInstructionsResource
1470
+ */
1471
+ export interface EcommerceV1MiscellaneousCustomStorefrontInstructionsResource {
1472
+ /**
1473
+ * Markdown setup instructions for connecting a custom sales channel to your store.
1474
+ * @type {string}
1475
+ * @memberof EcommerceV1MiscellaneousCustomStorefrontInstructionsResource
1476
+ */
1477
+ 'instructions': string;
1478
+ }
1466
1479
  /**
1467
1480
  *
1468
1481
  * @export
@@ -1661,6 +1674,177 @@ export declare const EcommerceV1ProductProductCreationResourceProductTypeEnum: {
1661
1674
  readonly Digital: "digital";
1662
1675
  };
1663
1676
  export type EcommerceV1ProductProductCreationResourceProductTypeEnum = typeof EcommerceV1ProductProductCreationResourceProductTypeEnum[keyof typeof EcommerceV1ProductProductCreationResourceProductTypeEnum];
1677
+ /**
1678
+ *
1679
+ * @export
1680
+ * @interface EcommerceV1SalesChannelSalesChannelCreationResource
1681
+ */
1682
+ export interface EcommerceV1SalesChannelSalesChannelCreationResource {
1683
+ /**
1684
+ *
1685
+ * @type {EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel}
1686
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResource
1687
+ */
1688
+ 'sales_channel': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel;
1689
+ }
1690
+ /**
1691
+ *
1692
+ * @export
1693
+ * @interface EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1694
+ */
1695
+ export interface EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel {
1696
+ /**
1697
+ * Sales channel ID
1698
+ * @type {string}
1699
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1700
+ */
1701
+ 'id': string;
1702
+ /**
1703
+ * Sales channel type
1704
+ * @type {string}
1705
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1706
+ */
1707
+ 'type': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum;
1708
+ /**
1709
+ * Whether this is the primary sales channel.
1710
+ * @type {boolean}
1711
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1712
+ */
1713
+ 'is_primary': boolean;
1714
+ /**
1715
+ * Whether the sales channel is active.
1716
+ * @type {boolean}
1717
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1718
+ */
1719
+ 'is_active': boolean;
1720
+ /**
1721
+ * External identifier for the sales channel.
1722
+ * @type {string}
1723
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1724
+ */
1725
+ 'external_id': string | null;
1726
+ /**
1727
+ * Merchant-facing custom name.
1728
+ * @type {string}
1729
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1730
+ */
1731
+ 'name': string | null;
1732
+ /**
1733
+ * Public address where the custom sales channel lives.
1734
+ * @type {string}
1735
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1736
+ */
1737
+ 'domain': string | null;
1738
+ }
1739
+ export declare const EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum: {
1740
+ readonly Builder: "builder";
1741
+ readonly Horizons: "horizons";
1742
+ readonly Tiktok: "tiktok";
1743
+ readonly Custom: "custom";
1744
+ readonly QuickLink: "quick-link";
1745
+ readonly Wordpress: "wordpress";
1746
+ };
1747
+ export type EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = typeof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum];
1748
+ /**
1749
+ *
1750
+ * @export
1751
+ * @interface EcommerceV1SalesChannelSalesChannelListResource
1752
+ */
1753
+ export interface EcommerceV1SalesChannelSalesChannelListResource {
1754
+ /**
1755
+ * The store\'s active sales channels.
1756
+ * @type {Array<EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner>}
1757
+ * @memberof EcommerceV1SalesChannelSalesChannelListResource
1758
+ */
1759
+ 'sales_channels': Array<EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner>;
1760
+ }
1761
+ /**
1762
+ *
1763
+ * @export
1764
+ * @interface EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1765
+ */
1766
+ export interface EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner {
1767
+ /**
1768
+ * Sales channel ID
1769
+ * @type {string}
1770
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1771
+ */
1772
+ 'id': string;
1773
+ /**
1774
+ * Sales channel type
1775
+ * @type {string}
1776
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1777
+ */
1778
+ 'type': EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum;
1779
+ /**
1780
+ * Whether this is the primary sales channel.
1781
+ * @type {boolean}
1782
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1783
+ */
1784
+ 'is_primary': boolean;
1785
+ /**
1786
+ * Whether the sales channel is active.
1787
+ * @type {boolean}
1788
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1789
+ */
1790
+ 'is_active': boolean;
1791
+ /**
1792
+ * External identifier for the sales channel.
1793
+ * @type {string}
1794
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1795
+ */
1796
+ 'external_id': string | null;
1797
+ /**
1798
+ * Merchant-facing custom name.
1799
+ * @type {string}
1800
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1801
+ */
1802
+ 'name': string | null;
1803
+ /**
1804
+ * Public address where the sales channel lives.
1805
+ * @type {string}
1806
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1807
+ */
1808
+ 'domain': string | null;
1809
+ }
1810
+ export declare const EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum: {
1811
+ readonly Builder: "builder";
1812
+ readonly Horizons: "horizons";
1813
+ readonly Tiktok: "tiktok";
1814
+ readonly Custom: "custom";
1815
+ readonly QuickLink: "quick-link";
1816
+ readonly Wordpress: "wordpress";
1817
+ };
1818
+ export type EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum];
1819
+ /**
1820
+ *
1821
+ * @export
1822
+ * @interface EcommerceV1SalesChannelStoreRequest
1823
+ */
1824
+ export interface EcommerceV1SalesChannelStoreRequest {
1825
+ /**
1826
+ * Sales channel type. Only \"custom\" channels can be created via the API.
1827
+ * @type {string}
1828
+ * @memberof EcommerceV1SalesChannelStoreRequest
1829
+ */
1830
+ 'type': EcommerceV1SalesChannelStoreRequestTypeEnum;
1831
+ /**
1832
+ * Merchant-facing custom name shown in the sales channels list.
1833
+ * @type {string}
1834
+ * @memberof EcommerceV1SalesChannelStoreRequest
1835
+ */
1836
+ 'name': string;
1837
+ /**
1838
+ * Optional public address where the custom sales channel lives.
1839
+ * @type {string}
1840
+ * @memberof EcommerceV1SalesChannelStoreRequest
1841
+ */
1842
+ 'url': string | null;
1843
+ }
1844
+ export declare const EcommerceV1SalesChannelStoreRequestTypeEnum: {
1845
+ readonly Custom: "custom";
1846
+ };
1847
+ export type EcommerceV1SalesChannelStoreRequestTypeEnum = typeof EcommerceV1SalesChannelStoreRequestTypeEnum[keyof typeof EcommerceV1SalesChannelStoreRequestTypeEnum];
1664
1848
  /**
1665
1849
  *
1666
1850
  * @export
@@ -2816,6 +3000,178 @@ export interface HostingV1OrdersPlanResource {
2816
3000
  */
2817
3001
  'name': string;
2818
3002
  }
3003
+ /**
3004
+ *
3005
+ * @export
3006
+ * @interface HostingV1PhpPhpDetailsResource
3007
+ */
3008
+ export interface HostingV1PhpPhpDetailsResource {
3009
+ /**
3010
+ * Current PHP version name
3011
+ * @type {string}
3012
+ * @memberof HostingV1PhpPhpDetailsResource
3013
+ */
3014
+ 'php_version': string;
3015
+ /**
3016
+ * Full PHP version name
3017
+ * @type {string}
3018
+ * @memberof HostingV1PhpPhpDetailsResource
3019
+ */
3020
+ 'php_version_full': string;
3021
+ /**
3022
+ *
3023
+ * @type {HostingV1PhpPhpVersionsResource}
3024
+ * @memberof HostingV1PhpPhpDetailsResource
3025
+ */
3026
+ 'php_versions': HostingV1PhpPhpVersionsResource;
3027
+ /**
3028
+ * PHP options keyed by option name
3029
+ * @type {{ [key: string]: HostingV1PhpPhpOptionResource; }}
3030
+ * @memberof HostingV1PhpPhpDetailsResource
3031
+ */
3032
+ 'options': {
3033
+ [key: string]: HostingV1PhpPhpOptionResource;
3034
+ };
3035
+ /**
3036
+ * PHP extensions keyed by extension name
3037
+ * @type {object}
3038
+ * @memberof HostingV1PhpPhpDetailsResource
3039
+ */
3040
+ 'extensions': object;
3041
+ /**
3042
+ * Groups of extensions that conflict with each other
3043
+ * @type {Array<Array<string>>}
3044
+ * @memberof HostingV1PhpPhpDetailsResource
3045
+ */
3046
+ 'conflicting_extensions': Array<Array<string>>;
3047
+ }
3048
+ /**
3049
+ *
3050
+ * @export
3051
+ * @interface HostingV1PhpPhpInfoResource
3052
+ */
3053
+ export interface HostingV1PhpPhpInfoResource {
3054
+ /**
3055
+ * HTML string containing the full phpinfo page
3056
+ * @type {string}
3057
+ * @memberof HostingV1PhpPhpInfoResource
3058
+ */
3059
+ 'info': string;
3060
+ }
3061
+ /**
3062
+ *
3063
+ * @export
3064
+ * @interface HostingV1PhpPhpOptionResource
3065
+ */
3066
+ export interface HostingV1PhpPhpOptionResource {
3067
+ /**
3068
+ * Declared option type (e.g. bool, string)
3069
+ * @type {string}
3070
+ * @memberof HostingV1PhpPhpOptionResource
3071
+ */
3072
+ 'type': string;
3073
+ /**
3074
+ * Current value for this website
3075
+ * @type {string}
3076
+ * @memberof HostingV1PhpPhpOptionResource
3077
+ */
3078
+ 'value': string;
3079
+ /**
3080
+ * Human-readable description
3081
+ * @type {string}
3082
+ * @memberof HostingV1PhpPhpOptionResource
3083
+ */
3084
+ 'comment': string;
3085
+ /**
3086
+ * Default value
3087
+ * @type {string}
3088
+ * @memberof HostingV1PhpPhpOptionResource
3089
+ */
3090
+ 'default': string;
3091
+ /**
3092
+ * Allowed value range or limits, when applicable
3093
+ * @type {string}
3094
+ * @memberof HostingV1PhpPhpOptionResource
3095
+ */
3096
+ 'range': string | null;
3097
+ /**
3098
+ * Maximum value allowed by the account hosting plan, when applicable
3099
+ * @type {string}
3100
+ * @memberof HostingV1PhpPhpOptionResource
3101
+ */
3102
+ 'max': string | null;
3103
+ }
3104
+ /**
3105
+ *
3106
+ * @export
3107
+ * @interface HostingV1PhpPhpVersionsResource
3108
+ */
3109
+ export interface HostingV1PhpPhpVersionsResource {
3110
+ /**
3111
+ * Key-value pairs of supported versions
3112
+ * @type {object}
3113
+ * @memberof HostingV1PhpPhpVersionsResource
3114
+ */
3115
+ 'supported': object;
3116
+ /**
3117
+ * Key-value pairs of unsupported versions
3118
+ * @type {object}
3119
+ * @memberof HostingV1PhpPhpVersionsResource
3120
+ */
3121
+ 'unsupported': object;
3122
+ }
3123
+ /**
3124
+ *
3125
+ * @export
3126
+ * @interface HostingV1PhpUpdatePhpExtensionsRequest
3127
+ */
3128
+ export interface HostingV1PhpUpdatePhpExtensionsRequest {
3129
+ /**
3130
+ * PHP extensions to enable.
3131
+ * @type {Array<string>}
3132
+ * @memberof HostingV1PhpUpdatePhpExtensionsRequest
3133
+ */
3134
+ 'enable': Array<string>;
3135
+ /**
3136
+ * PHP extensions to disable.
3137
+ * @type {Array<string>}
3138
+ * @memberof HostingV1PhpUpdatePhpExtensionsRequest
3139
+ */
3140
+ 'disable': Array<string>;
3141
+ }
3142
+ /**
3143
+ *
3144
+ * @export
3145
+ * @interface HostingV1PhpUpdatePhpOptionsRequest
3146
+ */
3147
+ export interface HostingV1PhpUpdatePhpOptionsRequest {
3148
+ /**
3149
+ * Map of PHP options to update, keyed by option name. Only include options you want to change.
3150
+ * @type {{ [key: string]: HostingV1PhpUpdatePhpOptionsRequestOptionsValue; }}
3151
+ * @memberof HostingV1PhpUpdatePhpOptionsRequest
3152
+ */
3153
+ 'options': {
3154
+ [key: string]: HostingV1PhpUpdatePhpOptionsRequestOptionsValue;
3155
+ };
3156
+ }
3157
+ /**
3158
+ * @type HostingV1PhpUpdatePhpOptionsRequestOptionsValue
3159
+ * @export
3160
+ */
3161
+ export type HostingV1PhpUpdatePhpOptionsRequestOptionsValue = number | string;
3162
+ /**
3163
+ *
3164
+ * @export
3165
+ * @interface HostingV1PhpUpdatePhpVersionRequest
3166
+ */
3167
+ export interface HostingV1PhpUpdatePhpVersionRequest {
3168
+ /**
3169
+ * PHP version to switch the website to.
3170
+ * @type {string}
3171
+ * @memberof HostingV1PhpUpdatePhpVersionRequest
3172
+ */
3173
+ 'version': string;
3174
+ }
2819
3175
  /**
2820
3176
  *
2821
3177
  * @export
@@ -7166,6 +7522,61 @@ export declare class DomainsWHOISApi extends BaseAPI {
7166
7522
  */
7167
7523
  getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1WHOISProfileResource, any, {}>>;
7168
7524
  }
7525
+ /**
7526
+ * EcommerceMiscellaneousApi - axios parameter creator
7527
+ * @export
7528
+ */
7529
+ export declare const EcommerceMiscellaneousApiAxiosParamCreator: (configuration?: Configuration) => {
7530
+ /**
7531
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
7532
+ * @summary Get custom storefront setup instructions
7533
+ * @param {*} [options] Override http request option.
7534
+ * @throws {RequiredError}
7535
+ */
7536
+ getCustomStorefrontSetupInstructionsV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
7537
+ };
7538
+ /**
7539
+ * EcommerceMiscellaneousApi - functional programming interface
7540
+ * @export
7541
+ */
7542
+ export declare const EcommerceMiscellaneousApiFp: (configuration?: Configuration) => {
7543
+ /**
7544
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
7545
+ * @summary Get custom storefront setup instructions
7546
+ * @param {*} [options] Override http request option.
7547
+ * @throws {RequiredError}
7548
+ */
7549
+ getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1MiscellaneousCustomStorefrontInstructionsResource>>;
7550
+ };
7551
+ /**
7552
+ * EcommerceMiscellaneousApi - factory interface
7553
+ * @export
7554
+ */
7555
+ export declare const EcommerceMiscellaneousApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
7556
+ /**
7557
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
7558
+ * @summary Get custom storefront setup instructions
7559
+ * @param {*} [options] Override http request option.
7560
+ * @throws {RequiredError}
7561
+ */
7562
+ getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1MiscellaneousCustomStorefrontInstructionsResource>;
7563
+ };
7564
+ /**
7565
+ * EcommerceMiscellaneousApi - object-oriented interface
7566
+ * @export
7567
+ * @class EcommerceMiscellaneousApi
7568
+ * @extends {BaseAPI}
7569
+ */
7570
+ export declare class EcommerceMiscellaneousApi extends BaseAPI {
7571
+ /**
7572
+ * Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
7573
+ * @summary Get custom storefront setup instructions
7574
+ * @param {*} [options] Override http request option.
7575
+ * @throws {RequiredError}
7576
+ * @memberof EcommerceMiscellaneousApi
7577
+ */
7578
+ getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1MiscellaneousCustomStorefrontInstructionsResource, any, {}>>;
7579
+ }
7169
7580
  /**
7170
7581
  * EcommercePaymentsApi - axios parameter creator
7171
7582
  * @export
@@ -7329,6 +7740,102 @@ export declare class EcommerceProductsApi extends BaseAPI {
7329
7740
  */
7330
7741
  createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1ProductProductCreationResource, any, {}>>;
7331
7742
  }
7743
+ /**
7744
+ * EcommerceSalesChannelsApi - axios parameter creator
7745
+ * @export
7746
+ */
7747
+ export declare const EcommerceSalesChannelsApiAxiosParamCreator: (configuration?: Configuration) => {
7748
+ /**
7749
+ * 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.
7750
+ * @summary Create a custom sales channel
7751
+ * @param {string} storeId The ID of the store to create the sales channel for.
7752
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
7753
+ * @param {*} [options] Override http request option.
7754
+ * @throws {RequiredError}
7755
+ */
7756
+ createACustomSalesChannelV1: (storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
7757
+ /**
7758
+ * List a store\'s active sales channels with their full metadata.
7759
+ * @summary List sales channels
7760
+ * @param {string} storeId The ID of the store to list sales channels for.
7761
+ * @param {*} [options] Override http request option.
7762
+ * @throws {RequiredError}
7763
+ */
7764
+ listSalesChannelsV1: (storeId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
7765
+ };
7766
+ /**
7767
+ * EcommerceSalesChannelsApi - functional programming interface
7768
+ * @export
7769
+ */
7770
+ export declare const EcommerceSalesChannelsApiFp: (configuration?: Configuration) => {
7771
+ /**
7772
+ * 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.
7773
+ * @summary Create a custom sales channel
7774
+ * @param {string} storeId The ID of the store to create the sales channel for.
7775
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
7776
+ * @param {*} [options] Override http request option.
7777
+ * @throws {RequiredError}
7778
+ */
7779
+ createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>>;
7780
+ /**
7781
+ * List a store\'s active sales channels with their full metadata.
7782
+ * @summary List sales channels
7783
+ * @param {string} storeId The ID of the store to list sales channels for.
7784
+ * @param {*} [options] Override http request option.
7785
+ * @throws {RequiredError}
7786
+ */
7787
+ listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource>>;
7788
+ };
7789
+ /**
7790
+ * EcommerceSalesChannelsApi - factory interface
7791
+ * @export
7792
+ */
7793
+ export declare const EcommerceSalesChannelsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
7794
+ /**
7795
+ * 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.
7796
+ * @summary Create a custom sales channel
7797
+ * @param {string} storeId The ID of the store to create the sales channel for.
7798
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
7799
+ * @param {*} [options] Override http request option.
7800
+ * @throws {RequiredError}
7801
+ */
7802
+ createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>;
7803
+ /**
7804
+ * List a store\'s active sales channels with their full metadata.
7805
+ * @summary List sales channels
7806
+ * @param {string} storeId The ID of the store to list sales channels for.
7807
+ * @param {*} [options] Override http request option.
7808
+ * @throws {RequiredError}
7809
+ */
7810
+ listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource>;
7811
+ };
7812
+ /**
7813
+ * EcommerceSalesChannelsApi - object-oriented interface
7814
+ * @export
7815
+ * @class EcommerceSalesChannelsApi
7816
+ * @extends {BaseAPI}
7817
+ */
7818
+ export declare class EcommerceSalesChannelsApi extends BaseAPI {
7819
+ /**
7820
+ * 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.
7821
+ * @summary Create a custom sales channel
7822
+ * @param {string} storeId The ID of the store to create the sales channel for.
7823
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
7824
+ * @param {*} [options] Override http request option.
7825
+ * @throws {RequiredError}
7826
+ * @memberof EcommerceSalesChannelsApi
7827
+ */
7828
+ createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1SalesChannelSalesChannelCreationResource, any, {}>>;
7829
+ /**
7830
+ * List a store\'s active sales channels with their full metadata.
7831
+ * @summary List sales channels
7832
+ * @param {string} storeId The ID of the store to list sales channels for.
7833
+ * @param {*} [options] Override http request option.
7834
+ * @throws {RequiredError}
7835
+ * @memberof EcommerceSalesChannelsApi
7836
+ */
7837
+ listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1SalesChannelSalesChannelListResource, any, {}>>;
7838
+ }
7332
7839
  /**
7333
7840
  * EcommerceShippingApi - axios parameter creator
7334
7841
  * @export
@@ -8803,6 +9310,266 @@ export declare const ListOrdersV1StatusesEnum: {
8803
9310
  readonly Suspended: "suspended";
8804
9311
  };
8805
9312
  export type ListOrdersV1StatusesEnum = typeof ListOrdersV1StatusesEnum[keyof typeof ListOrdersV1StatusesEnum];
9313
+ /**
9314
+ * HostingPHPApi - axios parameter creator
9315
+ * @export
9316
+ */
9317
+ export declare const HostingPHPApiAxiosParamCreator: (configuration?: Configuration) => {
9318
+ /**
9319
+ * 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.
9320
+ * @summary Get PHP details
9321
+ * @param {string} username
9322
+ * @param {string} domain Domain name
9323
+ * @param {*} [options] Override http request option.
9324
+ * @throws {RequiredError}
9325
+ */
9326
+ getPHPDetailsV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9327
+ /**
9328
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
9329
+ * @summary Get PHP info
9330
+ * @param {string} username
9331
+ * @param {string} domain Domain name
9332
+ * @param {*} [options] Override http request option.
9333
+ * @throws {RequiredError}
9334
+ */
9335
+ getPHPInfoV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9336
+ /**
9337
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
9338
+ * @summary Reset PHP extensions
9339
+ * @param {string} username
9340
+ * @param {string} domain Domain name
9341
+ * @param {*} [options] Override http request option.
9342
+ * @throws {RequiredError}
9343
+ */
9344
+ resetPHPExtensionsV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9345
+ /**
9346
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
9347
+ * @summary Update PHP extensions
9348
+ * @param {string} username
9349
+ * @param {string} domain Domain name
9350
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
9351
+ * @param {*} [options] Override http request option.
9352
+ * @throws {RequiredError}
9353
+ */
9354
+ updatePHPExtensionsV1: (username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9355
+ /**
9356
+ * 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.
9357
+ * @summary Update PHP options
9358
+ * @param {string} username
9359
+ * @param {string} domain Domain name
9360
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
9361
+ * @param {*} [options] Override http request option.
9362
+ * @throws {RequiredError}
9363
+ */
9364
+ updatePHPOptionsV1: (username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9365
+ /**
9366
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
9367
+ * @summary Update PHP version
9368
+ * @param {string} username
9369
+ * @param {string} domain Domain name
9370
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
9371
+ * @param {*} [options] Override http request option.
9372
+ * @throws {RequiredError}
9373
+ */
9374
+ updatePHPVersionV1: (username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9375
+ };
9376
+ /**
9377
+ * HostingPHPApi - functional programming interface
9378
+ * @export
9379
+ */
9380
+ export declare const HostingPHPApiFp: (configuration?: Configuration) => {
9381
+ /**
9382
+ * 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.
9383
+ * @summary Get PHP details
9384
+ * @param {string} username
9385
+ * @param {string} domain Domain name
9386
+ * @param {*} [options] Override http request option.
9387
+ * @throws {RequiredError}
9388
+ */
9389
+ getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PhpPhpDetailsResource>>;
9390
+ /**
9391
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
9392
+ * @summary Get PHP info
9393
+ * @param {string} username
9394
+ * @param {string} domain Domain name
9395
+ * @param {*} [options] Override http request option.
9396
+ * @throws {RequiredError}
9397
+ */
9398
+ getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PhpPhpInfoResource>>;
9399
+ /**
9400
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
9401
+ * @summary Reset PHP extensions
9402
+ * @param {string} username
9403
+ * @param {string} domain Domain name
9404
+ * @param {*} [options] Override http request option.
9405
+ * @throws {RequiredError}
9406
+ */
9407
+ resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
9408
+ /**
9409
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
9410
+ * @summary Update PHP extensions
9411
+ * @param {string} username
9412
+ * @param {string} domain Domain name
9413
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
9414
+ * @param {*} [options] Override http request option.
9415
+ * @throws {RequiredError}
9416
+ */
9417
+ updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
9418
+ /**
9419
+ * 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.
9420
+ * @summary Update PHP options
9421
+ * @param {string} username
9422
+ * @param {string} domain Domain name
9423
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
9424
+ * @param {*} [options] Override http request option.
9425
+ * @throws {RequiredError}
9426
+ */
9427
+ updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
9428
+ /**
9429
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
9430
+ * @summary Update PHP version
9431
+ * @param {string} username
9432
+ * @param {string} domain Domain name
9433
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
9434
+ * @param {*} [options] Override http request option.
9435
+ * @throws {RequiredError}
9436
+ */
9437
+ updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
9438
+ };
9439
+ /**
9440
+ * HostingPHPApi - factory interface
9441
+ * @export
9442
+ */
9443
+ export declare const HostingPHPApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
9444
+ /**
9445
+ * 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.
9446
+ * @summary Get PHP details
9447
+ * @param {string} username
9448
+ * @param {string} domain Domain name
9449
+ * @param {*} [options] Override http request option.
9450
+ * @throws {RequiredError}
9451
+ */
9452
+ getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PhpPhpDetailsResource>;
9453
+ /**
9454
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
9455
+ * @summary Get PHP info
9456
+ * @param {string} username
9457
+ * @param {string} domain Domain name
9458
+ * @param {*} [options] Override http request option.
9459
+ * @throws {RequiredError}
9460
+ */
9461
+ getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PhpPhpInfoResource>;
9462
+ /**
9463
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
9464
+ * @summary Reset PHP extensions
9465
+ * @param {string} username
9466
+ * @param {string} domain Domain name
9467
+ * @param {*} [options] Override http request option.
9468
+ * @throws {RequiredError}
9469
+ */
9470
+ resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
9471
+ /**
9472
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
9473
+ * @summary Update PHP extensions
9474
+ * @param {string} username
9475
+ * @param {string} domain Domain name
9476
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
9477
+ * @param {*} [options] Override http request option.
9478
+ * @throws {RequiredError}
9479
+ */
9480
+ updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
9481
+ /**
9482
+ * 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.
9483
+ * @summary Update PHP options
9484
+ * @param {string} username
9485
+ * @param {string} domain Domain name
9486
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
9487
+ * @param {*} [options] Override http request option.
9488
+ * @throws {RequiredError}
9489
+ */
9490
+ updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
9491
+ /**
9492
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
9493
+ * @summary Update PHP version
9494
+ * @param {string} username
9495
+ * @param {string} domain Domain name
9496
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
9497
+ * @param {*} [options] Override http request option.
9498
+ * @throws {RequiredError}
9499
+ */
9500
+ updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
9501
+ };
9502
+ /**
9503
+ * HostingPHPApi - object-oriented interface
9504
+ * @export
9505
+ * @class HostingPHPApi
9506
+ * @extends {BaseAPI}
9507
+ */
9508
+ export declare class HostingPHPApi extends BaseAPI {
9509
+ /**
9510
+ * 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.
9511
+ * @summary Get PHP details
9512
+ * @param {string} username
9513
+ * @param {string} domain Domain name
9514
+ * @param {*} [options] Override http request option.
9515
+ * @throws {RequiredError}
9516
+ * @memberof HostingPHPApi
9517
+ */
9518
+ getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1PhpPhpDetailsResource, any, {}>>;
9519
+ /**
9520
+ * Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
9521
+ * @summary Get PHP info
9522
+ * @param {string} username
9523
+ * @param {string} domain Domain name
9524
+ * @param {*} [options] Override http request option.
9525
+ * @throws {RequiredError}
9526
+ * @memberof HostingPHPApi
9527
+ */
9528
+ getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1PhpPhpInfoResource, any, {}>>;
9529
+ /**
9530
+ * Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
9531
+ * @summary Reset PHP extensions
9532
+ * @param {string} username
9533
+ * @param {string} domain Domain name
9534
+ * @param {*} [options] Override http request option.
9535
+ * @throws {RequiredError}
9536
+ * @memberof HostingPHPApi
9537
+ */
9538
+ resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
9539
+ /**
9540
+ * Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
9541
+ * @summary Update PHP extensions
9542
+ * @param {string} username
9543
+ * @param {string} domain Domain name
9544
+ * @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
9545
+ * @param {*} [options] Override http request option.
9546
+ * @throws {RequiredError}
9547
+ * @memberof HostingPHPApi
9548
+ */
9549
+ updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
9550
+ /**
9551
+ * 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.
9552
+ * @summary Update PHP options
9553
+ * @param {string} username
9554
+ * @param {string} domain Domain name
9555
+ * @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
9556
+ * @param {*} [options] Override http request option.
9557
+ * @throws {RequiredError}
9558
+ * @memberof HostingPHPApi
9559
+ */
9560
+ updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
9561
+ /**
9562
+ * Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
9563
+ * @summary Update PHP version
9564
+ * @param {string} username
9565
+ * @param {string} domain Domain name
9566
+ * @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
9567
+ * @param {*} [options] Override http request option.
9568
+ * @throws {RequiredError}
9569
+ * @memberof HostingPHPApi
9570
+ */
9571
+ updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
9572
+ }
8806
9573
  /**
8807
9574
  * HostingWebsitesApi - axios parameter creator
8808
9575
  * @export