hostinger-api-sdk 1.1.0 → 1.1.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 CHANGED
@@ -1,9 +1,9 @@
1
- ## hostinger-api-sdk@1.1.0
1
+ ## hostinger-api-sdk@1.1.1
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install hostinger-api-sdk@1.1.0 --save
8
+ npm install hostinger-api-sdk@1.1.1 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.1.0
6
+ * API Version: 1.1.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1514,6 +1514,19 @@ export interface EcommerceGetStoresV1200Response {
1514
1514
  */
1515
1515
  'meta': CommonSchemaPaginationMetaSchema;
1516
1516
  }
1517
+ /**
1518
+ *
1519
+ * @export
1520
+ * @interface EcommerceV1MiscellaneousCustomStorefrontInstructionsResource
1521
+ */
1522
+ export interface EcommerceV1MiscellaneousCustomStorefrontInstructionsResource {
1523
+ /**
1524
+ * Markdown setup instructions for connecting a custom sales channel to your store.
1525
+ * @type {string}
1526
+ * @memberof EcommerceV1MiscellaneousCustomStorefrontInstructionsResource
1527
+ */
1528
+ 'instructions': string;
1529
+ }
1517
1530
  /**
1518
1531
  *
1519
1532
  * @export
@@ -1715,6 +1728,186 @@ export const EcommerceV1ProductProductCreationResourceProductTypeEnum = {
1715
1728
 
1716
1729
  export type EcommerceV1ProductProductCreationResourceProductTypeEnum = typeof EcommerceV1ProductProductCreationResourceProductTypeEnum[keyof typeof EcommerceV1ProductProductCreationResourceProductTypeEnum];
1717
1730
 
1731
+ /**
1732
+ *
1733
+ * @export
1734
+ * @interface EcommerceV1SalesChannelSalesChannelCreationResource
1735
+ */
1736
+ export interface EcommerceV1SalesChannelSalesChannelCreationResource {
1737
+ /**
1738
+ *
1739
+ * @type {EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel}
1740
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResource
1741
+ */
1742
+ 'sales_channel': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel;
1743
+ }
1744
+ /**
1745
+ *
1746
+ * @export
1747
+ * @interface EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1748
+ */
1749
+ export interface EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel {
1750
+ /**
1751
+ * Sales channel ID
1752
+ * @type {string}
1753
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1754
+ */
1755
+ 'id': string;
1756
+ /**
1757
+ * Sales channel type
1758
+ * @type {string}
1759
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1760
+ */
1761
+ 'type': EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum;
1762
+ /**
1763
+ * Whether this is the primary sales channel.
1764
+ * @type {boolean}
1765
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1766
+ */
1767
+ 'is_primary': boolean;
1768
+ /**
1769
+ * Whether the sales channel is active.
1770
+ * @type {boolean}
1771
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1772
+ */
1773
+ 'is_active': boolean;
1774
+ /**
1775
+ * External identifier for the sales channel.
1776
+ * @type {string}
1777
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1778
+ */
1779
+ 'external_id': string | null;
1780
+ /**
1781
+ * Merchant-facing custom name.
1782
+ * @type {string}
1783
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1784
+ */
1785
+ 'name': string | null;
1786
+ /**
1787
+ * Public address where the custom sales channel lives.
1788
+ * @type {string}
1789
+ * @memberof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannel
1790
+ */
1791
+ 'domain': string | null;
1792
+ }
1793
+
1794
+ export const EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = {
1795
+ Builder: 'builder',
1796
+ Horizons: 'horizons',
1797
+ Tiktok: 'tiktok',
1798
+ Custom: 'custom',
1799
+ QuickLink: 'quick-link',
1800
+ Wordpress: 'wordpress'
1801
+ } as const;
1802
+
1803
+ export type EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = typeof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum];
1804
+
1805
+ /**
1806
+ *
1807
+ * @export
1808
+ * @interface EcommerceV1SalesChannelSalesChannelListResource
1809
+ */
1810
+ export interface EcommerceV1SalesChannelSalesChannelListResource {
1811
+ /**
1812
+ * The store\'s active sales channels.
1813
+ * @type {Array<EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner>}
1814
+ * @memberof EcommerceV1SalesChannelSalesChannelListResource
1815
+ */
1816
+ 'sales_channels': Array<EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner>;
1817
+ }
1818
+ /**
1819
+ *
1820
+ * @export
1821
+ * @interface EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1822
+ */
1823
+ export interface EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner {
1824
+ /**
1825
+ * Sales channel ID
1826
+ * @type {string}
1827
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1828
+ */
1829
+ 'id': string;
1830
+ /**
1831
+ * Sales channel type
1832
+ * @type {string}
1833
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1834
+ */
1835
+ 'type': EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum;
1836
+ /**
1837
+ * Whether this is the primary sales channel.
1838
+ * @type {boolean}
1839
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1840
+ */
1841
+ 'is_primary': boolean;
1842
+ /**
1843
+ * Whether the sales channel is active.
1844
+ * @type {boolean}
1845
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1846
+ */
1847
+ 'is_active': boolean;
1848
+ /**
1849
+ * External identifier for the sales channel.
1850
+ * @type {string}
1851
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1852
+ */
1853
+ 'external_id': string | null;
1854
+ /**
1855
+ * Merchant-facing custom name.
1856
+ * @type {string}
1857
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1858
+ */
1859
+ 'name': string | null;
1860
+ /**
1861
+ * Public address where the sales channel lives.
1862
+ * @type {string}
1863
+ * @memberof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInner
1864
+ */
1865
+ 'domain': string | null;
1866
+ }
1867
+
1868
+ export const EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = {
1869
+ Builder: 'builder',
1870
+ Horizons: 'horizons',
1871
+ Tiktok: 'tiktok',
1872
+ Custom: 'custom',
1873
+ QuickLink: 'quick-link',
1874
+ Wordpress: 'wordpress'
1875
+ } as const;
1876
+
1877
+ export type EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum[keyof typeof EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum];
1878
+
1879
+ /**
1880
+ *
1881
+ * @export
1882
+ * @interface EcommerceV1SalesChannelStoreRequest
1883
+ */
1884
+ export interface EcommerceV1SalesChannelStoreRequest {
1885
+ /**
1886
+ * Sales channel type. Only \"custom\" channels can be created via the API.
1887
+ * @type {string}
1888
+ * @memberof EcommerceV1SalesChannelStoreRequest
1889
+ */
1890
+ 'type': EcommerceV1SalesChannelStoreRequestTypeEnum;
1891
+ /**
1892
+ * Merchant-facing custom name shown in the sales channels list.
1893
+ * @type {string}
1894
+ * @memberof EcommerceV1SalesChannelStoreRequest
1895
+ */
1896
+ 'name': string;
1897
+ /**
1898
+ * Optional public address where the custom sales channel lives.
1899
+ * @type {string}
1900
+ * @memberof EcommerceV1SalesChannelStoreRequest
1901
+ */
1902
+ 'url': string | null;
1903
+ }
1904
+
1905
+ export const EcommerceV1SalesChannelStoreRequestTypeEnum = {
1906
+ Custom: 'custom'
1907
+ } as const;
1908
+
1909
+ export type EcommerceV1SalesChannelStoreRequestTypeEnum = typeof EcommerceV1SalesChannelStoreRequestTypeEnum[keyof typeof EcommerceV1SalesChannelStoreRequestTypeEnum];
1910
+
1718
1911
  /**
1719
1912
  *
1720
1913
  * @export
@@ -8764,6 +8957,110 @@ export class DomainsWHOISApi extends BaseAPI {
8764
8957
 
8765
8958
 
8766
8959
 
8960
+ /**
8961
+ * EcommerceMiscellaneousApi - axios parameter creator
8962
+ * @export
8963
+ */
8964
+ export const EcommerceMiscellaneousApiAxiosParamCreator = function (configuration?: Configuration) {
8965
+ return {
8966
+ /**
8967
+ * 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.
8968
+ * @summary Get custom storefront setup instructions
8969
+ * @param {*} [options] Override http request option.
8970
+ * @throws {RequiredError}
8971
+ */
8972
+ getCustomStorefrontSetupInstructionsV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8973
+ const localVarPath = `/api/ecommerce/v1/miscellaneous/custom-storefront-instructions`;
8974
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8975
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8976
+ let baseOptions;
8977
+ if (configuration) {
8978
+ baseOptions = configuration.baseOptions;
8979
+ }
8980
+
8981
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8982
+ const localVarHeaderParameter = {} as any;
8983
+ const localVarQueryParameter = {} as any;
8984
+
8985
+ // authentication apiToken required
8986
+ // http bearer authentication required
8987
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8988
+
8989
+
8990
+
8991
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8992
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8993
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8994
+
8995
+ return {
8996
+ url: toPathString(localVarUrlObj),
8997
+ options: localVarRequestOptions,
8998
+ };
8999
+ },
9000
+ }
9001
+ };
9002
+
9003
+ /**
9004
+ * EcommerceMiscellaneousApi - functional programming interface
9005
+ * @export
9006
+ */
9007
+ export const EcommerceMiscellaneousApiFp = function(configuration?: Configuration) {
9008
+ const localVarAxiosParamCreator = EcommerceMiscellaneousApiAxiosParamCreator(configuration)
9009
+ return {
9010
+ /**
9011
+ * 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.
9012
+ * @summary Get custom storefront setup instructions
9013
+ * @param {*} [options] Override http request option.
9014
+ * @throws {RequiredError}
9015
+ */
9016
+ async getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1MiscellaneousCustomStorefrontInstructionsResource>> {
9017
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomStorefrontSetupInstructionsV1(options);
9018
+ const localVarOperationServerBasePath = operationServerMap['EcommerceMiscellaneousApi.getCustomStorefrontSetupInstructionsV1']?.[0]?.url;
9019
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9020
+ },
9021
+ }
9022
+ };
9023
+
9024
+ /**
9025
+ * EcommerceMiscellaneousApi - factory interface
9026
+ * @export
9027
+ */
9028
+ export const EcommerceMiscellaneousApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9029
+ const localVarFp = EcommerceMiscellaneousApiFp(configuration)
9030
+ return {
9031
+ /**
9032
+ * 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.
9033
+ * @summary Get custom storefront setup instructions
9034
+ * @param {*} [options] Override http request option.
9035
+ * @throws {RequiredError}
9036
+ */
9037
+ getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1MiscellaneousCustomStorefrontInstructionsResource> {
9038
+ return localVarFp.getCustomStorefrontSetupInstructionsV1(options).then((request) => request(axios, basePath));
9039
+ },
9040
+ };
9041
+ };
9042
+
9043
+ /**
9044
+ * EcommerceMiscellaneousApi - object-oriented interface
9045
+ * @export
9046
+ * @class EcommerceMiscellaneousApi
9047
+ * @extends {BaseAPI}
9048
+ */
9049
+ export class EcommerceMiscellaneousApi extends BaseAPI {
9050
+ /**
9051
+ * 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.
9052
+ * @summary Get custom storefront setup instructions
9053
+ * @param {*} [options] Override http request option.
9054
+ * @throws {RequiredError}
9055
+ * @memberof EcommerceMiscellaneousApi
9056
+ */
9057
+ public getCustomStorefrontSetupInstructionsV1(options?: RawAxiosRequestConfig) {
9058
+ return EcommerceMiscellaneousApiFp(this.configuration).getCustomStorefrontSetupInstructionsV1(options).then((request) => request(this.axios, this.basePath));
9059
+ }
9060
+ }
9061
+
9062
+
9063
+
8767
9064
  /**
8768
9065
  * EcommercePaymentsApi - axios parameter creator
8769
9066
  * @export
@@ -9085,6 +9382,198 @@ export class EcommerceProductsApi extends BaseAPI {
9085
9382
 
9086
9383
 
9087
9384
 
9385
+ /**
9386
+ * EcommerceSalesChannelsApi - axios parameter creator
9387
+ * @export
9388
+ */
9389
+ export const EcommerceSalesChannelsApiAxiosParamCreator = function (configuration?: Configuration) {
9390
+ return {
9391
+ /**
9392
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
9393
+ * @summary Create a custom sales channel
9394
+ * @param {string} storeId The ID of the store to create the sales channel for.
9395
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9396
+ * @param {*} [options] Override http request option.
9397
+ * @throws {RequiredError}
9398
+ */
9399
+ createACustomSalesChannelV1: async (storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9400
+ // verify required parameter 'storeId' is not null or undefined
9401
+ assertParamExists('createACustomSalesChannelV1', 'storeId', storeId)
9402
+ // verify required parameter 'ecommerceV1SalesChannelStoreRequest' is not null or undefined
9403
+ assertParamExists('createACustomSalesChannelV1', 'ecommerceV1SalesChannelStoreRequest', ecommerceV1SalesChannelStoreRequest)
9404
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
9405
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
9406
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9407
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9408
+ let baseOptions;
9409
+ if (configuration) {
9410
+ baseOptions = configuration.baseOptions;
9411
+ }
9412
+
9413
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9414
+ const localVarHeaderParameter = {} as any;
9415
+ const localVarQueryParameter = {} as any;
9416
+
9417
+ // authentication apiToken required
9418
+ // http bearer authentication required
9419
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9420
+
9421
+
9422
+
9423
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9424
+
9425
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9426
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9427
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9428
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1SalesChannelStoreRequest, localVarRequestOptions, configuration)
9429
+
9430
+ return {
9431
+ url: toPathString(localVarUrlObj),
9432
+ options: localVarRequestOptions,
9433
+ };
9434
+ },
9435
+ /**
9436
+ * List a store\'s active sales channels with their full metadata.
9437
+ * @summary List sales channels
9438
+ * @param {string} storeId The ID of the store to list sales channels for.
9439
+ * @param {*} [options] Override http request option.
9440
+ * @throws {RequiredError}
9441
+ */
9442
+ listSalesChannelsV1: async (storeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9443
+ // verify required parameter 'storeId' is not null or undefined
9444
+ assertParamExists('listSalesChannelsV1', 'storeId', storeId)
9445
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/sales-channels`
9446
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
9447
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9448
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9449
+ let baseOptions;
9450
+ if (configuration) {
9451
+ baseOptions = configuration.baseOptions;
9452
+ }
9453
+
9454
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9455
+ const localVarHeaderParameter = {} as any;
9456
+ const localVarQueryParameter = {} as any;
9457
+
9458
+ // authentication apiToken required
9459
+ // http bearer authentication required
9460
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9461
+
9462
+
9463
+
9464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9466
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9467
+
9468
+ return {
9469
+ url: toPathString(localVarUrlObj),
9470
+ options: localVarRequestOptions,
9471
+ };
9472
+ },
9473
+ }
9474
+ };
9475
+
9476
+ /**
9477
+ * EcommerceSalesChannelsApi - functional programming interface
9478
+ * @export
9479
+ */
9480
+ export const EcommerceSalesChannelsApiFp = function(configuration?: Configuration) {
9481
+ const localVarAxiosParamCreator = EcommerceSalesChannelsApiAxiosParamCreator(configuration)
9482
+ return {
9483
+ /**
9484
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
9485
+ * @summary Create a custom sales channel
9486
+ * @param {string} storeId The ID of the store to create the sales channel for.
9487
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9488
+ * @param {*} [options] Override http request option.
9489
+ * @throws {RequiredError}
9490
+ */
9491
+ async createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource>> {
9492
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options);
9493
+ const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.createACustomSalesChannelV1']?.[0]?.url;
9494
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9495
+ },
9496
+ /**
9497
+ * List a store\'s active sales channels with their full metadata.
9498
+ * @summary List sales channels
9499
+ * @param {string} storeId The ID of the store to list sales channels for.
9500
+ * @param {*} [options] Override http request option.
9501
+ * @throws {RequiredError}
9502
+ */
9503
+ async listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource>> {
9504
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSalesChannelsV1(storeId, options);
9505
+ const localVarOperationServerBasePath = operationServerMap['EcommerceSalesChannelsApi.listSalesChannelsV1']?.[0]?.url;
9506
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9507
+ },
9508
+ }
9509
+ };
9510
+
9511
+ /**
9512
+ * EcommerceSalesChannelsApi - factory interface
9513
+ * @export
9514
+ */
9515
+ export const EcommerceSalesChannelsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9516
+ const localVarFp = EcommerceSalesChannelsApiFp(configuration)
9517
+ return {
9518
+ /**
9519
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
9520
+ * @summary Create a custom sales channel
9521
+ * @param {string} storeId The ID of the store to create the sales channel for.
9522
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9523
+ * @param {*} [options] Override http request option.
9524
+ * @throws {RequiredError}
9525
+ */
9526
+ createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelCreationResource> {
9527
+ return localVarFp.createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(axios, basePath));
9528
+ },
9529
+ /**
9530
+ * List a store\'s active sales channels with their full metadata.
9531
+ * @summary List sales channels
9532
+ * @param {string} storeId The ID of the store to list sales channels for.
9533
+ * @param {*} [options] Override http request option.
9534
+ * @throws {RequiredError}
9535
+ */
9536
+ listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1SalesChannelSalesChannelListResource> {
9537
+ return localVarFp.listSalesChannelsV1(storeId, options).then((request) => request(axios, basePath));
9538
+ },
9539
+ };
9540
+ };
9541
+
9542
+ /**
9543
+ * EcommerceSalesChannelsApi - object-oriented interface
9544
+ * @export
9545
+ * @class EcommerceSalesChannelsApi
9546
+ * @extends {BaseAPI}
9547
+ */
9548
+ export class EcommerceSalesChannelsApi extends BaseAPI {
9549
+ /**
9550
+ * Create a custom sales channel for a store. Build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API.
9551
+ * @summary Create a custom sales channel
9552
+ * @param {string} storeId The ID of the store to create the sales channel for.
9553
+ * @param {EcommerceV1SalesChannelStoreRequest} ecommerceV1SalesChannelStoreRequest
9554
+ * @param {*} [options] Override http request option.
9555
+ * @throws {RequiredError}
9556
+ * @memberof EcommerceSalesChannelsApi
9557
+ */
9558
+ public createACustomSalesChannelV1(storeId: string, ecommerceV1SalesChannelStoreRequest: EcommerceV1SalesChannelStoreRequest, options?: RawAxiosRequestConfig) {
9559
+ return EcommerceSalesChannelsApiFp(this.configuration).createACustomSalesChannelV1(storeId, ecommerceV1SalesChannelStoreRequest, options).then((request) => request(this.axios, this.basePath));
9560
+ }
9561
+
9562
+ /**
9563
+ * List a store\'s active sales channels with their full metadata.
9564
+ * @summary List sales channels
9565
+ * @param {string} storeId The ID of the store to list sales channels for.
9566
+ * @param {*} [options] Override http request option.
9567
+ * @throws {RequiredError}
9568
+ * @memberof EcommerceSalesChannelsApi
9569
+ */
9570
+ public listSalesChannelsV1(storeId: string, options?: RawAxiosRequestConfig) {
9571
+ return EcommerceSalesChannelsApiFp(this.configuration).listSalesChannelsV1(storeId, options).then((request) => request(this.axios, this.basePath));
9572
+ }
9573
+ }
9574
+
9575
+
9576
+
9088
9577
  /**
9089
9578
  * EcommerceShippingApi - axios parameter creator
9090
9579
  * @export
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.1.0
6
+ * API Version: 1.1.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.1.0
6
+ * API Version: 1.1.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.1.0
6
+ * API Version: 1.1.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/1.1.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.1.1",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };