hostinger-api-sdk 0.0.19 → 0.0.20

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 (49) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1179 -38
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +746 -8
  7. package/dist/api.js +763 -5
  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 +746 -8
  15. package/dist/esm/api.js +742 -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/EcommercePaymentsApi.md +66 -0
  27. package/docs/EcommerceProductsApi.md +125 -0
  28. package/docs/EcommerceShippingApi.md +66 -0
  29. package/docs/EcommerceStoresApi.md +54 -0
  30. package/docs/EcommerceV1PaymentEnableManualPaymentRequest.md +20 -0
  31. package/docs/EcommerceV1PaymentManualPaymentResource.md +22 -0
  32. package/docs/EcommerceV1PaymentManualPaymentResourcePaymentMethod.md +26 -0
  33. package/docs/EcommerceV1ProductCreateDigitalProductRequest.md +28 -0
  34. package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +26 -0
  35. package/docs/EcommerceV1ProductProductCreationResource.md +22 -0
  36. package/docs/EcommerceV1ProductProductCreationResourceProduct.md +30 -0
  37. package/docs/EcommerceV1ShippingSetShippingRequest.md +20 -0
  38. package/docs/EcommerceV1ShippingShippingResource.md +22 -0
  39. package/docs/EcommerceV1ShippingShippingResourceShippingOption.md +24 -0
  40. package/docs/EcommerceV1StoreStoreDeleteResource.md +22 -0
  41. package/docs/HorizonsV1WebsitesCreateWebsiteRequest.md +20 -0
  42. package/docs/HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md +22 -0
  43. package/docs/HorizonsV1WebsitesCreatedWebsiteResource.md +22 -0
  44. package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +20 -0
  45. package/docs/HorizonsWebsitesApi.md +117 -0
  46. package/docs/{ReachListSegmentContactsV1200Response.md → ReachListProfileSegmentContactsV1200Response.md} +3 -3
  47. package/docs/ReachSegmentsApi.md +65 -2
  48. package/index.ts +1 -1
  49. package/package.json +1 -1
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.18.2
6
+ * API Version: 0.19.2
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,264 @@ export interface EcommerceGetStoresV1200Response {
1514
1514
  */
1515
1515
  'meta': CommonSchemaPaginationMetaSchema;
1516
1516
  }
1517
+ /**
1518
+ *
1519
+ * @export
1520
+ * @interface EcommerceV1PaymentEnableManualPaymentRequest
1521
+ */
1522
+ export interface EcommerceV1PaymentEnableManualPaymentRequest {
1523
+ /**
1524
+ * Optional display name shown to customers at checkout.
1525
+ * @type {string}
1526
+ * @memberof EcommerceV1PaymentEnableManualPaymentRequest
1527
+ */
1528
+ 'title': string | null;
1529
+ }
1530
+ /**
1531
+ *
1532
+ * @export
1533
+ * @interface EcommerceV1PaymentManualPaymentResource
1534
+ */
1535
+ export interface EcommerceV1PaymentManualPaymentResource {
1536
+ /**
1537
+ *
1538
+ * @type {EcommerceV1PaymentManualPaymentResourcePaymentMethod}
1539
+ * @memberof EcommerceV1PaymentManualPaymentResource
1540
+ */
1541
+ 'payment_method': EcommerceV1PaymentManualPaymentResourcePaymentMethod;
1542
+ /**
1543
+ * Admin UI deep-link to manage payment settings.
1544
+ * @type {string}
1545
+ * @memberof EcommerceV1PaymentManualPaymentResource
1546
+ */
1547
+ 'admin_url': string;
1548
+ }
1549
+ /**
1550
+ *
1551
+ * @export
1552
+ * @interface EcommerceV1PaymentManualPaymentResourcePaymentMethod
1553
+ */
1554
+ export interface EcommerceV1PaymentManualPaymentResourcePaymentMethod {
1555
+ /**
1556
+ * Store payment provider ID.
1557
+ * @type {string}
1558
+ * @memberof EcommerceV1PaymentManualPaymentResourcePaymentMethod
1559
+ */
1560
+ 'id': string;
1561
+ /**
1562
+ * The payment provider identifier.
1563
+ * @type {string}
1564
+ * @memberof EcommerceV1PaymentManualPaymentResourcePaymentMethod
1565
+ */
1566
+ 'provider_id': string;
1567
+ /**
1568
+ * Whether the payment method is shown at checkout.
1569
+ * @type {boolean}
1570
+ * @memberof EcommerceV1PaymentManualPaymentResourcePaymentMethod
1571
+ */
1572
+ 'is_enabled': boolean;
1573
+ /**
1574
+ * Display name shown to customers at checkout.
1575
+ * @type {string}
1576
+ * @memberof EcommerceV1PaymentManualPaymentResourcePaymentMethod
1577
+ */
1578
+ 'title': string;
1579
+ }
1580
+ /**
1581
+ *
1582
+ * @export
1583
+ * @interface EcommerceV1ProductCreateDigitalProductRequest
1584
+ */
1585
+ export interface EcommerceV1ProductCreateDigitalProductRequest {
1586
+ /**
1587
+ * The product name.
1588
+ * @type {string}
1589
+ * @memberof EcommerceV1ProductCreateDigitalProductRequest
1590
+ */
1591
+ 'name': string;
1592
+ /**
1593
+ * Price in the smallest currency unit (e.g. cents). Must be positive.
1594
+ * @type {number}
1595
+ * @memberof EcommerceV1ProductCreateDigitalProductRequest
1596
+ */
1597
+ 'price': number;
1598
+ /**
1599
+ * The product description.
1600
+ * @type {string}
1601
+ * @memberof EcommerceV1ProductCreateDigitalProductRequest
1602
+ */
1603
+ 'description': string | null;
1604
+ /**
1605
+ * ISO 4217 currency code. Defaults to the store\'s default currency when omitted.
1606
+ * @type {string}
1607
+ * @memberof EcommerceV1ProductCreateDigitalProductRequest
1608
+ */
1609
+ 'currency': string | null;
1610
+ /**
1611
+ * Optional external download link delivered to the customer after purchase.
1612
+ * @type {string}
1613
+ * @memberof EcommerceV1ProductCreateDigitalProductRequest
1614
+ */
1615
+ 'download_url': string | null;
1616
+ }
1617
+ /**
1618
+ *
1619
+ * @export
1620
+ * @interface EcommerceV1ProductCreatePhysicalProductRequest
1621
+ */
1622
+ export interface EcommerceV1ProductCreatePhysicalProductRequest {
1623
+ /**
1624
+ * The product name.
1625
+ * @type {string}
1626
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequest
1627
+ */
1628
+ 'name': string;
1629
+ /**
1630
+ * Price in the smallest currency unit (e.g. cents). Must be positive.
1631
+ * @type {number}
1632
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequest
1633
+ */
1634
+ 'price': number;
1635
+ /**
1636
+ * The product description.
1637
+ * @type {string}
1638
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequest
1639
+ */
1640
+ 'description': string | null;
1641
+ /**
1642
+ * ISO 4217 currency code. Defaults to the store\'s default currency when omitted.
1643
+ * @type {string}
1644
+ * @memberof EcommerceV1ProductCreatePhysicalProductRequest
1645
+ */
1646
+ 'currency': string | null;
1647
+ }
1648
+ /**
1649
+ *
1650
+ * @export
1651
+ * @interface EcommerceV1ProductProductCreationResource
1652
+ */
1653
+ export interface EcommerceV1ProductProductCreationResource {
1654
+ /**
1655
+ *
1656
+ * @type {EcommerceV1ProductProductCreationResourceProduct}
1657
+ * @memberof EcommerceV1ProductProductCreationResource
1658
+ */
1659
+ 'product': EcommerceV1ProductProductCreationResourceProduct;
1660
+ /**
1661
+ * Admin UI deep-link to manage the product.
1662
+ * @type {string}
1663
+ * @memberof EcommerceV1ProductProductCreationResource
1664
+ */
1665
+ 'admin_url': string;
1666
+ }
1667
+ /**
1668
+ *
1669
+ * @export
1670
+ * @interface EcommerceV1ProductProductCreationResourceProduct
1671
+ */
1672
+ export interface EcommerceV1ProductProductCreationResourceProduct {
1673
+ /**
1674
+ * Product ID.
1675
+ * @type {string}
1676
+ * @memberof EcommerceV1ProductProductCreationResourceProduct
1677
+ */
1678
+ 'id': string;
1679
+ /**
1680
+ * Product name.
1681
+ * @type {string}
1682
+ * @memberof EcommerceV1ProductProductCreationResourceProduct
1683
+ */
1684
+ 'title': string;
1685
+ /**
1686
+ * Product type.
1687
+ * @type {string}
1688
+ * @memberof EcommerceV1ProductProductCreationResourceProduct
1689
+ */
1690
+ 'type': EcommerceV1ProductProductCreationResourceProductTypeEnum;
1691
+ /**
1692
+ * Product status.
1693
+ * @type {string}
1694
+ * @memberof EcommerceV1ProductProductCreationResourceProduct
1695
+ */
1696
+ 'status': string;
1697
+ /**
1698
+ * Price in the smallest currency unit (e.g. cents).
1699
+ * @type {number}
1700
+ * @memberof EcommerceV1ProductProductCreationResourceProduct
1701
+ */
1702
+ 'price': number;
1703
+ /**
1704
+ * Currency the product is priced in (ISO 4217, lowercase).
1705
+ * @type {string}
1706
+ * @memberof EcommerceV1ProductProductCreationResourceProduct
1707
+ */
1708
+ 'currency_code': string;
1709
+ }
1710
+
1711
+ export const EcommerceV1ProductProductCreationResourceProductTypeEnum = {
1712
+ Physical: 'physical',
1713
+ Digital: 'digital'
1714
+ } as const;
1715
+
1716
+ export type EcommerceV1ProductProductCreationResourceProductTypeEnum = typeof EcommerceV1ProductProductCreationResourceProductTypeEnum[keyof typeof EcommerceV1ProductProductCreationResourceProductTypeEnum];
1717
+
1718
+ /**
1719
+ *
1720
+ * @export
1721
+ * @interface EcommerceV1ShippingSetShippingRequest
1722
+ */
1723
+ export interface EcommerceV1ShippingSetShippingRequest {
1724
+ /**
1725
+ * Flat shipping rate in the smallest currency unit (e.g. cents). Use 0 for free shipping.
1726
+ * @type {number}
1727
+ * @memberof EcommerceV1ShippingSetShippingRequest
1728
+ */
1729
+ 'price': number;
1730
+ }
1731
+ /**
1732
+ *
1733
+ * @export
1734
+ * @interface EcommerceV1ShippingShippingResource
1735
+ */
1736
+ export interface EcommerceV1ShippingShippingResource {
1737
+ /**
1738
+ *
1739
+ * @type {EcommerceV1ShippingShippingResourceShippingOption}
1740
+ * @memberof EcommerceV1ShippingShippingResource
1741
+ */
1742
+ 'shipping_option': EcommerceV1ShippingShippingResourceShippingOption;
1743
+ /**
1744
+ * Admin UI deep-link to manage shipping settings.
1745
+ * @type {string}
1746
+ * @memberof EcommerceV1ShippingShippingResource
1747
+ */
1748
+ 'admin_url': string;
1749
+ }
1750
+ /**
1751
+ *
1752
+ * @export
1753
+ * @interface EcommerceV1ShippingShippingResourceShippingOption
1754
+ */
1755
+ export interface EcommerceV1ShippingShippingResourceShippingOption {
1756
+ /**
1757
+ * Shipping option ID.
1758
+ * @type {string}
1759
+ * @memberof EcommerceV1ShippingShippingResourceShippingOption
1760
+ */
1761
+ 'id': string;
1762
+ /**
1763
+ * Flat shipping rate in the smallest currency unit (e.g. cents).
1764
+ * @type {number}
1765
+ * @memberof EcommerceV1ShippingShippingResourceShippingOption
1766
+ */
1767
+ 'amount': number;
1768
+ /**
1769
+ * Currency code the rate is charged in (ISO 4217, lowercase).
1770
+ * @type {string}
1771
+ * @memberof EcommerceV1ShippingShippingResourceShippingOption
1772
+ */
1773
+ 'currency_code': string;
1774
+ }
1517
1775
  /**
1518
1776
  *
1519
1777
  * @export
@@ -1613,6 +1871,25 @@ export interface EcommerceV1StoreStoreCreationResourceStore {
1613
1871
  */
1614
1872
  'default_currency_code': string;
1615
1873
  }
1874
+ /**
1875
+ *
1876
+ * @export
1877
+ * @interface EcommerceV1StoreStoreDeleteResource
1878
+ */
1879
+ export interface EcommerceV1StoreStoreDeleteResource {
1880
+ /**
1881
+ * The ID of the deleted store.
1882
+ * @type {string}
1883
+ * @memberof EcommerceV1StoreStoreDeleteResource
1884
+ */
1885
+ 'id': string;
1886
+ /**
1887
+ * Always true when the store was soft-deleted.
1888
+ * @type {boolean}
1889
+ * @memberof EcommerceV1StoreStoreDeleteResource
1890
+ */
1891
+ 'is_deleted': boolean;
1892
+ }
1616
1893
  /**
1617
1894
  *
1618
1895
  * @export
@@ -1725,6 +2002,77 @@ export interface EcommerceV1StoreStoreResource {
1725
2002
  */
1726
2003
  'company_name': string | null;
1727
2004
  }
2005
+ /**
2006
+ *
2007
+ * @export
2008
+ * @interface HorizonsV1WebsitesCreateWebsiteRequest
2009
+ */
2010
+ export interface HorizonsV1WebsitesCreateWebsiteRequest {
2011
+ /**
2012
+ *
2013
+ * @type {Array<HorizonsV1WebsitesCreateWebsiteRequestMessageInner>}
2014
+ * @memberof HorizonsV1WebsitesCreateWebsiteRequest
2015
+ */
2016
+ 'message': Array<HorizonsV1WebsitesCreateWebsiteRequestMessageInner>;
2017
+ }
2018
+ /**
2019
+ *
2020
+ * @export
2021
+ * @interface HorizonsV1WebsitesCreateWebsiteRequestMessageInner
2022
+ */
2023
+ export interface HorizonsV1WebsitesCreateWebsiteRequestMessageInner {
2024
+ /**
2025
+ *
2026
+ * @type {string}
2027
+ * @memberof HorizonsV1WebsitesCreateWebsiteRequestMessageInner
2028
+ */
2029
+ 'type': HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum;
2030
+ /**
2031
+ * Detailed project specification. Include purpose, key features, user flows, data models, and design preferences. The specification should be detailed and comprehensive, covering all aspects of the project.
2032
+ * @type {string}
2033
+ * @memberof HorizonsV1WebsitesCreateWebsiteRequestMessageInner
2034
+ */
2035
+ 'text': string;
2036
+ }
2037
+
2038
+ export const HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = {
2039
+ Text: 'text'
2040
+ } as const;
2041
+
2042
+ export type HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = typeof HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum[keyof typeof HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum];
2043
+
2044
+ /**
2045
+ *
2046
+ * @export
2047
+ * @interface HorizonsV1WebsitesCreatedWebsiteResource
2048
+ */
2049
+ export interface HorizonsV1WebsitesCreatedWebsiteResource {
2050
+ /**
2051
+ * The website URL for the user to access their website in Hostinger Horizons interface
2052
+ * @type {string}
2053
+ * @memberof HorizonsV1WebsitesCreatedWebsiteResource
2054
+ */
2055
+ 'website_url': string;
2056
+ /**
2057
+ * The website ID
2058
+ * @type {string}
2059
+ * @memberof HorizonsV1WebsitesCreatedWebsiteResource
2060
+ */
2061
+ 'website_id': string;
2062
+ }
2063
+ /**
2064
+ *
2065
+ * @export
2066
+ * @interface HorizonsV1WebsitesWebsiteUrlResource
2067
+ */
2068
+ export interface HorizonsV1WebsitesWebsiteUrlResource {
2069
+ /**
2070
+ * The website URL for the user to access their website in Hostinger Horizons interface
2071
+ * @type {string}
2072
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
2073
+ */
2074
+ 'website_url': string;
2075
+ }
1728
2076
  /**
1729
2077
  *
1730
2078
  * @export
@@ -2839,19 +3187,19 @@ export interface ReachListContactsV1200Response {
2839
3187
  /**
2840
3188
  *
2841
3189
  * @export
2842
- * @interface ReachListSegmentContactsV1200Response
3190
+ * @interface ReachListProfileSegmentContactsV1200Response
2843
3191
  */
2844
- export interface ReachListSegmentContactsV1200Response {
3192
+ export interface ReachListProfileSegmentContactsV1200Response {
2845
3193
  /**
2846
3194
  * Array of [`Reach.V1.Contacts.Segments.SegmentationContactResource`](#model/reachv1contactssegmentssegmentationcontactresource)
2847
3195
  * @type {Array<ReachV1ContactsSegmentsSegmentationContactResource>}
2848
- * @memberof ReachListSegmentContactsV1200Response
3196
+ * @memberof ReachListProfileSegmentContactsV1200Response
2849
3197
  */
2850
3198
  'data': Array<ReachV1ContactsSegmentsSegmentationContactResource>;
2851
3199
  /**
2852
3200
  *
2853
3201
  * @type {CommonSchemaPaginationMetaSchema}
2854
- * @memberof ReachListSegmentContactsV1200Response
3202
+ * @memberof ReachListProfileSegmentContactsV1200Response
2855
3203
  */
2856
3204
  'meta': CommonSchemaPaginationMetaSchema;
2857
3205
  }
@@ -7610,22 +7958,26 @@ export class DomainsWHOISApi extends BaseAPI {
7610
7958
 
7611
7959
 
7612
7960
  /**
7613
- * EcommerceStoresApi - axios parameter creator
7961
+ * EcommercePaymentsApi - axios parameter creator
7614
7962
  * @export
7615
7963
  */
7616
- export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Configuration) {
7964
+ export const EcommercePaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
7617
7965
  return {
7618
7966
  /**
7619
- * Create a new store for your account. A primary sales channel is created alongside the store.
7620
- * @summary Create store
7621
- * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
7967
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
7968
+ * @summary Enable manual payment method
7969
+ * @param {string} storeId The ID of the store to enable manual payment for.
7970
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
7622
7971
  * @param {*} [options] Override http request option.
7623
7972
  * @throws {RequiredError}
7624
7973
  */
7625
- createStoreV1: async (ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7626
- // verify required parameter 'ecommerceV1StoreStoreRequest' is not null or undefined
7627
- assertParamExists('createStoreV1', 'ecommerceV1StoreStoreRequest', ecommerceV1StoreStoreRequest)
7628
- const localVarPath = `/api/ecommerce/v1/stores`;
7974
+ enableManualPaymentMethodV1: async (storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7975
+ // verify required parameter 'storeId' is not null or undefined
7976
+ assertParamExists('enableManualPaymentMethodV1', 'storeId', storeId)
7977
+ // verify required parameter 'ecommerceV1PaymentEnableManualPaymentRequest' is not null or undefined
7978
+ assertParamExists('enableManualPaymentMethodV1', 'ecommerceV1PaymentEnableManualPaymentRequest', ecommerceV1PaymentEnableManualPaymentRequest)
7979
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/payment-methods/manual`
7980
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
7629
7981
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7630
7982
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7631
7983
  let baseOptions;
@@ -7648,39 +8000,514 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Con
7648
8000
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7649
8001
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7650
8002
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7651
- localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration)
8003
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1PaymentEnableManualPaymentRequest, localVarRequestOptions, configuration)
7652
8004
 
7653
8005
  return {
7654
8006
  url: toPathString(localVarUrlObj),
7655
8007
  options: localVarRequestOptions,
7656
8008
  };
7657
8009
  },
8010
+ }
8011
+ };
8012
+
8013
+ /**
8014
+ * EcommercePaymentsApi - functional programming interface
8015
+ * @export
8016
+ */
8017
+ export const EcommercePaymentsApiFp = function(configuration?: Configuration) {
8018
+ const localVarAxiosParamCreator = EcommercePaymentsApiAxiosParamCreator(configuration)
8019
+ return {
7658
8020
  /**
7659
- * Retrieve the stores associated with your account.
7660
- * @summary Get stores
7661
- * @param {number} [page] Page number
8021
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
8022
+ * @summary Enable manual payment method
8023
+ * @param {string} storeId The ID of the store to enable manual payment for.
8024
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
7662
8025
  * @param {*} [options] Override http request option.
7663
8026
  * @throws {RequiredError}
7664
8027
  */
7665
- getStoresV1: async (page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7666
- const localVarPath = `/api/ecommerce/v1/stores`;
7667
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7668
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7669
- let baseOptions;
7670
- if (configuration) {
7671
- baseOptions = configuration.baseOptions;
7672
- }
7673
-
7674
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7675
- const localVarHeaderParameter = {} as any;
7676
- const localVarQueryParameter = {} as any;
7677
-
7678
- // authentication apiToken required
7679
- // http bearer authentication required
7680
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
8028
+ async enableManualPaymentMethodV1(storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1PaymentManualPaymentResource>> {
8029
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options);
8030
+ const localVarOperationServerBasePath = operationServerMap['EcommercePaymentsApi.enableManualPaymentMethodV1']?.[0]?.url;
8031
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8032
+ },
8033
+ }
8034
+ };
7681
8035
 
7682
- if (page !== undefined) {
7683
- localVarQueryParameter['page'] = page;
8036
+ /**
8037
+ * EcommercePaymentsApi - factory interface
8038
+ * @export
8039
+ */
8040
+ export const EcommercePaymentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8041
+ const localVarFp = EcommercePaymentsApiFp(configuration)
8042
+ return {
8043
+ /**
8044
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
8045
+ * @summary Enable manual payment method
8046
+ * @param {string} storeId The ID of the store to enable manual payment for.
8047
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
8048
+ * @param {*} [options] Override http request option.
8049
+ * @throws {RequiredError}
8050
+ */
8051
+ enableManualPaymentMethodV1(storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1PaymentManualPaymentResource> {
8052
+ return localVarFp.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options).then((request) => request(axios, basePath));
8053
+ },
8054
+ };
8055
+ };
8056
+
8057
+ /**
8058
+ * EcommercePaymentsApi - object-oriented interface
8059
+ * @export
8060
+ * @class EcommercePaymentsApi
8061
+ * @extends {BaseAPI}
8062
+ */
8063
+ export class EcommercePaymentsApi extends BaseAPI {
8064
+ /**
8065
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
8066
+ * @summary Enable manual payment method
8067
+ * @param {string} storeId The ID of the store to enable manual payment for.
8068
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
8069
+ * @param {*} [options] Override http request option.
8070
+ * @throws {RequiredError}
8071
+ * @memberof EcommercePaymentsApi
8072
+ */
8073
+ public enableManualPaymentMethodV1(storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options?: RawAxiosRequestConfig) {
8074
+ return EcommercePaymentsApiFp(this.configuration).enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options).then((request) => request(this.axios, this.basePath));
8075
+ }
8076
+ }
8077
+
8078
+
8079
+
8080
+ /**
8081
+ * EcommerceProductsApi - axios parameter creator
8082
+ * @export
8083
+ */
8084
+ export const EcommerceProductsApiAxiosParamCreator = function (configuration?: Configuration) {
8085
+ return {
8086
+ /**
8087
+ * Create a published digital product with a single variant and an optional external download link.
8088
+ * @summary Create digital product
8089
+ * @param {string} storeId The ID of the store to create the product in.
8090
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
8091
+ * @param {*} [options] Override http request option.
8092
+ * @throws {RequiredError}
8093
+ */
8094
+ createDigitalProductV1: async (storeId: string, ecommerceV1ProductCreateDigitalProductRequest: EcommerceV1ProductCreateDigitalProductRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8095
+ // verify required parameter 'storeId' is not null or undefined
8096
+ assertParamExists('createDigitalProductV1', 'storeId', storeId)
8097
+ // verify required parameter 'ecommerceV1ProductCreateDigitalProductRequest' is not null or undefined
8098
+ assertParamExists('createDigitalProductV1', 'ecommerceV1ProductCreateDigitalProductRequest', ecommerceV1ProductCreateDigitalProductRequest)
8099
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/digital`
8100
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
8101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8103
+ let baseOptions;
8104
+ if (configuration) {
8105
+ baseOptions = configuration.baseOptions;
8106
+ }
8107
+
8108
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8109
+ const localVarHeaderParameter = {} as any;
8110
+ const localVarQueryParameter = {} as any;
8111
+
8112
+ // authentication apiToken required
8113
+ // http bearer authentication required
8114
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8115
+
8116
+
8117
+
8118
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8119
+
8120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8122
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8123
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ProductCreateDigitalProductRequest, localVarRequestOptions, configuration)
8124
+
8125
+ return {
8126
+ url: toPathString(localVarUrlObj),
8127
+ options: localVarRequestOptions,
8128
+ };
8129
+ },
8130
+ /**
8131
+ * Create a published physical product with a single variant priced in the store currency.
8132
+ * @summary Create physical product
8133
+ * @param {string} storeId The ID of the store to create the product in.
8134
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
8135
+ * @param {*} [options] Override http request option.
8136
+ * @throws {RequiredError}
8137
+ */
8138
+ createPhysicalProductV1: async (storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8139
+ // verify required parameter 'storeId' is not null or undefined
8140
+ assertParamExists('createPhysicalProductV1', 'storeId', storeId)
8141
+ // verify required parameter 'ecommerceV1ProductCreatePhysicalProductRequest' is not null or undefined
8142
+ assertParamExists('createPhysicalProductV1', 'ecommerceV1ProductCreatePhysicalProductRequest', ecommerceV1ProductCreatePhysicalProductRequest)
8143
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/physical`
8144
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
8145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8147
+ let baseOptions;
8148
+ if (configuration) {
8149
+ baseOptions = configuration.baseOptions;
8150
+ }
8151
+
8152
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8153
+ const localVarHeaderParameter = {} as any;
8154
+ const localVarQueryParameter = {} as any;
8155
+
8156
+ // authentication apiToken required
8157
+ // http bearer authentication required
8158
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8159
+
8160
+
8161
+
8162
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8163
+
8164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8166
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8167
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ProductCreatePhysicalProductRequest, localVarRequestOptions, configuration)
8168
+
8169
+ return {
8170
+ url: toPathString(localVarUrlObj),
8171
+ options: localVarRequestOptions,
8172
+ };
8173
+ },
8174
+ }
8175
+ };
8176
+
8177
+ /**
8178
+ * EcommerceProductsApi - functional programming interface
8179
+ * @export
8180
+ */
8181
+ export const EcommerceProductsApiFp = function(configuration?: Configuration) {
8182
+ const localVarAxiosParamCreator = EcommerceProductsApiAxiosParamCreator(configuration)
8183
+ return {
8184
+ /**
8185
+ * Create a published digital product with a single variant and an optional external download link.
8186
+ * @summary Create digital product
8187
+ * @param {string} storeId The ID of the store to create the product in.
8188
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
8189
+ * @param {*} [options] Override http request option.
8190
+ * @throws {RequiredError}
8191
+ */
8192
+ async createDigitalProductV1(storeId: string, ecommerceV1ProductCreateDigitalProductRequest: EcommerceV1ProductCreateDigitalProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1ProductProductCreationResource>> {
8193
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options);
8194
+ const localVarOperationServerBasePath = operationServerMap['EcommerceProductsApi.createDigitalProductV1']?.[0]?.url;
8195
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8196
+ },
8197
+ /**
8198
+ * Create a published physical product with a single variant priced in the store currency.
8199
+ * @summary Create physical product
8200
+ * @param {string} storeId The ID of the store to create the product in.
8201
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
8202
+ * @param {*} [options] Override http request option.
8203
+ * @throws {RequiredError}
8204
+ */
8205
+ async createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1ProductProductCreationResource>> {
8206
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options);
8207
+ const localVarOperationServerBasePath = operationServerMap['EcommerceProductsApi.createPhysicalProductV1']?.[0]?.url;
8208
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8209
+ },
8210
+ }
8211
+ };
8212
+
8213
+ /**
8214
+ * EcommerceProductsApi - factory interface
8215
+ * @export
8216
+ */
8217
+ export const EcommerceProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8218
+ const localVarFp = EcommerceProductsApiFp(configuration)
8219
+ return {
8220
+ /**
8221
+ * Create a published digital product with a single variant and an optional external download link.
8222
+ * @summary Create digital product
8223
+ * @param {string} storeId The ID of the store to create the product in.
8224
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
8225
+ * @param {*} [options] Override http request option.
8226
+ * @throws {RequiredError}
8227
+ */
8228
+ createDigitalProductV1(storeId: string, ecommerceV1ProductCreateDigitalProductRequest: EcommerceV1ProductCreateDigitalProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ProductProductCreationResource> {
8229
+ return localVarFp.createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options).then((request) => request(axios, basePath));
8230
+ },
8231
+ /**
8232
+ * Create a published physical product with a single variant priced in the store currency.
8233
+ * @summary Create physical product
8234
+ * @param {string} storeId The ID of the store to create the product in.
8235
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
8236
+ * @param {*} [options] Override http request option.
8237
+ * @throws {RequiredError}
8238
+ */
8239
+ createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ProductProductCreationResource> {
8240
+ return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
8241
+ },
8242
+ };
8243
+ };
8244
+
8245
+ /**
8246
+ * EcommerceProductsApi - object-oriented interface
8247
+ * @export
8248
+ * @class EcommerceProductsApi
8249
+ * @extends {BaseAPI}
8250
+ */
8251
+ export class EcommerceProductsApi extends BaseAPI {
8252
+ /**
8253
+ * Create a published digital product with a single variant and an optional external download link.
8254
+ * @summary Create digital product
8255
+ * @param {string} storeId The ID of the store to create the product in.
8256
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
8257
+ * @param {*} [options] Override http request option.
8258
+ * @throws {RequiredError}
8259
+ * @memberof EcommerceProductsApi
8260
+ */
8261
+ public createDigitalProductV1(storeId: string, ecommerceV1ProductCreateDigitalProductRequest: EcommerceV1ProductCreateDigitalProductRequest, options?: RawAxiosRequestConfig) {
8262
+ return EcommerceProductsApiFp(this.configuration).createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options).then((request) => request(this.axios, this.basePath));
8263
+ }
8264
+
8265
+ /**
8266
+ * Create a published physical product with a single variant priced in the store currency.
8267
+ * @summary Create physical product
8268
+ * @param {string} storeId The ID of the store to create the product in.
8269
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
8270
+ * @param {*} [options] Override http request option.
8271
+ * @throws {RequiredError}
8272
+ * @memberof EcommerceProductsApi
8273
+ */
8274
+ public createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig) {
8275
+ return EcommerceProductsApiFp(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
8276
+ }
8277
+ }
8278
+
8279
+
8280
+
8281
+ /**
8282
+ * EcommerceShippingApi - axios parameter creator
8283
+ * @export
8284
+ */
8285
+ export const EcommerceShippingApiAxiosParamCreator = function (configuration?: Configuration) {
8286
+ return {
8287
+ /**
8288
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
8289
+ * @summary Set store shipping
8290
+ * @param {string} storeId The ID of the store to configure shipping for.
8291
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
8292
+ * @param {*} [options] Override http request option.
8293
+ * @throws {RequiredError}
8294
+ */
8295
+ setStoreShippingV1: async (storeId: string, ecommerceV1ShippingSetShippingRequest: EcommerceV1ShippingSetShippingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8296
+ // verify required parameter 'storeId' is not null or undefined
8297
+ assertParamExists('setStoreShippingV1', 'storeId', storeId)
8298
+ // verify required parameter 'ecommerceV1ShippingSetShippingRequest' is not null or undefined
8299
+ assertParamExists('setStoreShippingV1', 'ecommerceV1ShippingSetShippingRequest', ecommerceV1ShippingSetShippingRequest)
8300
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/shipping`
8301
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
8302
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8303
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8304
+ let baseOptions;
8305
+ if (configuration) {
8306
+ baseOptions = configuration.baseOptions;
8307
+ }
8308
+
8309
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8310
+ const localVarHeaderParameter = {} as any;
8311
+ const localVarQueryParameter = {} as any;
8312
+
8313
+ // authentication apiToken required
8314
+ // http bearer authentication required
8315
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8316
+
8317
+
8318
+
8319
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8320
+
8321
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8322
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8323
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8324
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ShippingSetShippingRequest, localVarRequestOptions, configuration)
8325
+
8326
+ return {
8327
+ url: toPathString(localVarUrlObj),
8328
+ options: localVarRequestOptions,
8329
+ };
8330
+ },
8331
+ }
8332
+ };
8333
+
8334
+ /**
8335
+ * EcommerceShippingApi - functional programming interface
8336
+ * @export
8337
+ */
8338
+ export const EcommerceShippingApiFp = function(configuration?: Configuration) {
8339
+ const localVarAxiosParamCreator = EcommerceShippingApiAxiosParamCreator(configuration)
8340
+ return {
8341
+ /**
8342
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
8343
+ * @summary Set store shipping
8344
+ * @param {string} storeId The ID of the store to configure shipping for.
8345
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
8346
+ * @param {*} [options] Override http request option.
8347
+ * @throws {RequiredError}
8348
+ */
8349
+ async setStoreShippingV1(storeId: string, ecommerceV1ShippingSetShippingRequest: EcommerceV1ShippingSetShippingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1ShippingShippingResource>> {
8350
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options);
8351
+ const localVarOperationServerBasePath = operationServerMap['EcommerceShippingApi.setStoreShippingV1']?.[0]?.url;
8352
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8353
+ },
8354
+ }
8355
+ };
8356
+
8357
+ /**
8358
+ * EcommerceShippingApi - factory interface
8359
+ * @export
8360
+ */
8361
+ export const EcommerceShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8362
+ const localVarFp = EcommerceShippingApiFp(configuration)
8363
+ return {
8364
+ /**
8365
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
8366
+ * @summary Set store shipping
8367
+ * @param {string} storeId The ID of the store to configure shipping for.
8368
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
8369
+ * @param {*} [options] Override http request option.
8370
+ * @throws {RequiredError}
8371
+ */
8372
+ setStoreShippingV1(storeId: string, ecommerceV1ShippingSetShippingRequest: EcommerceV1ShippingSetShippingRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ShippingShippingResource> {
8373
+ return localVarFp.setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options).then((request) => request(axios, basePath));
8374
+ },
8375
+ };
8376
+ };
8377
+
8378
+ /**
8379
+ * EcommerceShippingApi - object-oriented interface
8380
+ * @export
8381
+ * @class EcommerceShippingApi
8382
+ * @extends {BaseAPI}
8383
+ */
8384
+ export class EcommerceShippingApi extends BaseAPI {
8385
+ /**
8386
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
8387
+ * @summary Set store shipping
8388
+ * @param {string} storeId The ID of the store to configure shipping for.
8389
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
8390
+ * @param {*} [options] Override http request option.
8391
+ * @throws {RequiredError}
8392
+ * @memberof EcommerceShippingApi
8393
+ */
8394
+ public setStoreShippingV1(storeId: string, ecommerceV1ShippingSetShippingRequest: EcommerceV1ShippingSetShippingRequest, options?: RawAxiosRequestConfig) {
8395
+ return EcommerceShippingApiFp(this.configuration).setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options).then((request) => request(this.axios, this.basePath));
8396
+ }
8397
+ }
8398
+
8399
+
8400
+
8401
+ /**
8402
+ * EcommerceStoresApi - axios parameter creator
8403
+ * @export
8404
+ */
8405
+ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Configuration) {
8406
+ return {
8407
+ /**
8408
+ * Create a new store for your account. A primary sales channel is created alongside the store.
8409
+ * @summary Create store
8410
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
8411
+ * @param {*} [options] Override http request option.
8412
+ * @throws {RequiredError}
8413
+ */
8414
+ createStoreV1: async (ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8415
+ // verify required parameter 'ecommerceV1StoreStoreRequest' is not null or undefined
8416
+ assertParamExists('createStoreV1', 'ecommerceV1StoreStoreRequest', ecommerceV1StoreStoreRequest)
8417
+ const localVarPath = `/api/ecommerce/v1/stores`;
8418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8419
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8420
+ let baseOptions;
8421
+ if (configuration) {
8422
+ baseOptions = configuration.baseOptions;
8423
+ }
8424
+
8425
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8426
+ const localVarHeaderParameter = {} as any;
8427
+ const localVarQueryParameter = {} as any;
8428
+
8429
+ // authentication apiToken required
8430
+ // http bearer authentication required
8431
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8432
+
8433
+
8434
+
8435
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8436
+
8437
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8438
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8439
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8440
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration)
8441
+
8442
+ return {
8443
+ url: toPathString(localVarUrlObj),
8444
+ options: localVarRequestOptions,
8445
+ };
8446
+ },
8447
+ /**
8448
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
8449
+ * @summary Delete store
8450
+ * @param {string} storeId The ID of the store to delete.
8451
+ * @param {*} [options] Override http request option.
8452
+ * @throws {RequiredError}
8453
+ */
8454
+ deleteStoreV1: async (storeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8455
+ // verify required parameter 'storeId' is not null or undefined
8456
+ assertParamExists('deleteStoreV1', 'storeId', storeId)
8457
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}`
8458
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
8459
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8460
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8461
+ let baseOptions;
8462
+ if (configuration) {
8463
+ baseOptions = configuration.baseOptions;
8464
+ }
8465
+
8466
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
8467
+ const localVarHeaderParameter = {} as any;
8468
+ const localVarQueryParameter = {} as any;
8469
+
8470
+ // authentication apiToken required
8471
+ // http bearer authentication required
8472
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8473
+
8474
+
8475
+
8476
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8478
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8479
+
8480
+ return {
8481
+ url: toPathString(localVarUrlObj),
8482
+ options: localVarRequestOptions,
8483
+ };
8484
+ },
8485
+ /**
8486
+ * Retrieve the stores associated with your account.
8487
+ * @summary Get stores
8488
+ * @param {number} [page] Page number
8489
+ * @param {*} [options] Override http request option.
8490
+ * @throws {RequiredError}
8491
+ */
8492
+ getStoresV1: async (page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8493
+ const localVarPath = `/api/ecommerce/v1/stores`;
8494
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8495
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8496
+ let baseOptions;
8497
+ if (configuration) {
8498
+ baseOptions = configuration.baseOptions;
8499
+ }
8500
+
8501
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8502
+ const localVarHeaderParameter = {} as any;
8503
+ const localVarQueryParameter = {} as any;
8504
+
8505
+ // authentication apiToken required
8506
+ // http bearer authentication required
8507
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8508
+
8509
+ if (page !== undefined) {
8510
+ localVarQueryParameter['page'] = page;
7684
8511
  }
7685
8512
 
7686
8513
 
@@ -7716,6 +8543,18 @@ export const EcommerceStoresApiFp = function(configuration?: Configuration) {
7716
8543
  const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.createStoreV1']?.[0]?.url;
7717
8544
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7718
8545
  },
8546
+ /**
8547
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
8548
+ * @summary Delete store
8549
+ * @param {string} storeId The ID of the store to delete.
8550
+ * @param {*} [options] Override http request option.
8551
+ * @throws {RequiredError}
8552
+ */
8553
+ async deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1StoreStoreDeleteResource>> {
8554
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStoreV1(storeId, options);
8555
+ const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.deleteStoreV1']?.[0]?.url;
8556
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8557
+ },
7719
8558
  /**
7720
8559
  * Retrieve the stores associated with your account.
7721
8560
  * @summary Get stores
@@ -7748,6 +8587,16 @@ export const EcommerceStoresApiFactory = function (configuration?: Configuration
7748
8587
  createStoreV1(ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreCreationResource> {
7749
8588
  return localVarFp.createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(axios, basePath));
7750
8589
  },
8590
+ /**
8591
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
8592
+ * @summary Delete store
8593
+ * @param {string} storeId The ID of the store to delete.
8594
+ * @param {*} [options] Override http request option.
8595
+ * @throws {RequiredError}
8596
+ */
8597
+ deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreDeleteResource> {
8598
+ return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
8599
+ },
7751
8600
  /**
7752
8601
  * Retrieve the stores associated with your account.
7753
8602
  * @summary Get stores
@@ -7780,6 +8629,18 @@ export class EcommerceStoresApi extends BaseAPI {
7780
8629
  return EcommerceStoresApiFp(this.configuration).createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(this.axios, this.basePath));
7781
8630
  }
7782
8631
 
8632
+ /**
8633
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
8634
+ * @summary Delete store
8635
+ * @param {string} storeId The ID of the store to delete.
8636
+ * @param {*} [options] Override http request option.
8637
+ * @throws {RequiredError}
8638
+ * @memberof EcommerceStoresApi
8639
+ */
8640
+ public deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig) {
8641
+ return EcommerceStoresApiFp(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
8642
+ }
8643
+
7783
8644
  /**
7784
8645
  * Retrieve the stores associated with your account.
7785
8646
  * @summary Get stores
@@ -7795,6 +8656,191 @@ export class EcommerceStoresApi extends BaseAPI {
7795
8656
 
7796
8657
 
7797
8658
 
8659
+ /**
8660
+ * HorizonsWebsitesApi - axios parameter creator
8661
+ * @export
8662
+ */
8663
+ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Configuration) {
8664
+ return {
8665
+ /**
8666
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
8667
+ * @summary Create website
8668
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
8669
+ * @param {*} [options] Override http request option.
8670
+ * @throws {RequiredError}
8671
+ */
8672
+ createWebsiteV1: async (horizonsV1WebsitesCreateWebsiteRequest: HorizonsV1WebsitesCreateWebsiteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8673
+ // verify required parameter 'horizonsV1WebsitesCreateWebsiteRequest' is not null or undefined
8674
+ assertParamExists('createWebsiteV1', 'horizonsV1WebsitesCreateWebsiteRequest', horizonsV1WebsitesCreateWebsiteRequest)
8675
+ const localVarPath = `/api/horizons/v1/websites`;
8676
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8677
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8678
+ let baseOptions;
8679
+ if (configuration) {
8680
+ baseOptions = configuration.baseOptions;
8681
+ }
8682
+
8683
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8684
+ const localVarHeaderParameter = {} as any;
8685
+ const localVarQueryParameter = {} as any;
8686
+
8687
+ // authentication apiToken required
8688
+ // http bearer authentication required
8689
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8690
+
8691
+
8692
+
8693
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8694
+
8695
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8696
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8697
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8698
+ localVarRequestOptions.data = serializeDataIfNeeded(horizonsV1WebsitesCreateWebsiteRequest, localVarRequestOptions, configuration)
8699
+
8700
+ return {
8701
+ url: toPathString(localVarUrlObj),
8702
+ options: localVarRequestOptions,
8703
+ };
8704
+ },
8705
+ /**
8706
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
8707
+ * @summary Get website
8708
+ * @param {string} websiteId The website ID
8709
+ * @param {*} [options] Override http request option.
8710
+ * @throws {RequiredError}
8711
+ */
8712
+ getWebsiteV1: async (websiteId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8713
+ // verify required parameter 'websiteId' is not null or undefined
8714
+ assertParamExists('getWebsiteV1', 'websiteId', websiteId)
8715
+ const localVarPath = `/api/horizons/v1/websites/{websiteId}`
8716
+ .replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
8717
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8718
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8719
+ let baseOptions;
8720
+ if (configuration) {
8721
+ baseOptions = configuration.baseOptions;
8722
+ }
8723
+
8724
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8725
+ const localVarHeaderParameter = {} as any;
8726
+ const localVarQueryParameter = {} as any;
8727
+
8728
+ // authentication apiToken required
8729
+ // http bearer authentication required
8730
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8731
+
8732
+
8733
+
8734
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8735
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8736
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8737
+
8738
+ return {
8739
+ url: toPathString(localVarUrlObj),
8740
+ options: localVarRequestOptions,
8741
+ };
8742
+ },
8743
+ }
8744
+ };
8745
+
8746
+ /**
8747
+ * HorizonsWebsitesApi - functional programming interface
8748
+ * @export
8749
+ */
8750
+ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
8751
+ const localVarAxiosParamCreator = HorizonsWebsitesApiAxiosParamCreator(configuration)
8752
+ return {
8753
+ /**
8754
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
8755
+ * @summary Create website
8756
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
8757
+ * @param {*} [options] Override http request option.
8758
+ * @throws {RequiredError}
8759
+ */
8760
+ async createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest: HorizonsV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesCreatedWebsiteResource>> {
8761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options);
8762
+ const localVarOperationServerBasePath = operationServerMap['HorizonsWebsitesApi.createWebsiteV1']?.[0]?.url;
8763
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8764
+ },
8765
+ /**
8766
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
8767
+ * @summary Get website
8768
+ * @param {string} websiteId The website ID
8769
+ * @param {*} [options] Override http request option.
8770
+ * @throws {RequiredError}
8771
+ */
8772
+ async getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesWebsiteUrlResource>> {
8773
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWebsiteV1(websiteId, options);
8774
+ const localVarOperationServerBasePath = operationServerMap['HorizonsWebsitesApi.getWebsiteV1']?.[0]?.url;
8775
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8776
+ },
8777
+ }
8778
+ };
8779
+
8780
+ /**
8781
+ * HorizonsWebsitesApi - factory interface
8782
+ * @export
8783
+ */
8784
+ export const HorizonsWebsitesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8785
+ const localVarFp = HorizonsWebsitesApiFp(configuration)
8786
+ return {
8787
+ /**
8788
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
8789
+ * @summary Create website
8790
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
8791
+ * @param {*} [options] Override http request option.
8792
+ * @throws {RequiredError}
8793
+ */
8794
+ createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest: HorizonsV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesCreatedWebsiteResource> {
8795
+ return localVarFp.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
8796
+ },
8797
+ /**
8798
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
8799
+ * @summary Get website
8800
+ * @param {string} websiteId The website ID
8801
+ * @param {*} [options] Override http request option.
8802
+ * @throws {RequiredError}
8803
+ */
8804
+ getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesWebsiteUrlResource> {
8805
+ return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
8806
+ },
8807
+ };
8808
+ };
8809
+
8810
+ /**
8811
+ * HorizonsWebsitesApi - object-oriented interface
8812
+ * @export
8813
+ * @class HorizonsWebsitesApi
8814
+ * @extends {BaseAPI}
8815
+ */
8816
+ export class HorizonsWebsitesApi extends BaseAPI {
8817
+ /**
8818
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
8819
+ * @summary Create website
8820
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
8821
+ * @param {*} [options] Override http request option.
8822
+ * @throws {RequiredError}
8823
+ * @memberof HorizonsWebsitesApi
8824
+ */
8825
+ public createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest: HorizonsV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig) {
8826
+ return HorizonsWebsitesApiFp(this.configuration).createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
8827
+ }
8828
+
8829
+ /**
8830
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
8831
+ * @summary Get website
8832
+ * @param {string} websiteId The website ID
8833
+ * @param {*} [options] Override http request option.
8834
+ * @throws {RequiredError}
8835
+ * @memberof HorizonsWebsitesApi
8836
+ */
8837
+ public getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig) {
8838
+ return HorizonsWebsitesApiFp(this.configuration).getWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
8839
+ }
8840
+ }
8841
+
8842
+
8843
+
7798
8844
  /**
7799
8845
  * HostingDatabasesApi - axios parameter creator
7800
8846
  * @export
@@ -10689,6 +11735,58 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
10689
11735
 
10690
11736
 
10691
11737
 
11738
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11739
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11740
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11741
+
11742
+ return {
11743
+ url: toPathString(localVarUrlObj),
11744
+ options: localVarRequestOptions,
11745
+ };
11746
+ },
11747
+ /**
11748
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
11749
+ * @summary List profile segment contacts
11750
+ * @param {string} profileUuid Profile uuid parameter
11751
+ * @param {string} segmentUuid Segment uuid parameter
11752
+ * @param {number} [page] Page number
11753
+ * @param {number} [perPage] Number of items per page
11754
+ * @param {*} [options] Override http request option.
11755
+ * @throws {RequiredError}
11756
+ */
11757
+ listProfileSegmentContactsV1: async (profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11758
+ // verify required parameter 'profileUuid' is not null or undefined
11759
+ assertParamExists('listProfileSegmentContactsV1', 'profileUuid', profileUuid)
11760
+ // verify required parameter 'segmentUuid' is not null or undefined
11761
+ assertParamExists('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid)
11762
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
11763
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
11764
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
11765
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11766
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11767
+ let baseOptions;
11768
+ if (configuration) {
11769
+ baseOptions = configuration.baseOptions;
11770
+ }
11771
+
11772
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11773
+ const localVarHeaderParameter = {} as any;
11774
+ const localVarQueryParameter = {} as any;
11775
+
11776
+ // authentication apiToken required
11777
+ // http bearer authentication required
11778
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11779
+
11780
+ if (page !== undefined) {
11781
+ localVarQueryParameter['page'] = page;
11782
+ }
11783
+
11784
+ if (perPage !== undefined) {
11785
+ localVarQueryParameter['per_page'] = perPage;
11786
+ }
11787
+
11788
+
11789
+
10692
11790
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10693
11791
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10694
11792
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -10814,6 +11912,21 @@ export const ReachSegmentsApiFp = function(configuration?: Configuration) {
10814
11912
  const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']?.[0]?.url;
10815
11913
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10816
11914
  },
11915
+ /**
11916
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
11917
+ * @summary List profile segment contacts
11918
+ * @param {string} profileUuid Profile uuid parameter
11919
+ * @param {string} segmentUuid Segment uuid parameter
11920
+ * @param {number} [page] Page number
11921
+ * @param {number} [perPage] Number of items per page
11922
+ * @param {*} [options] Override http request option.
11923
+ * @throws {RequiredError}
11924
+ */
11925
+ async listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>> {
11926
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
11927
+ const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']?.[0]?.url;
11928
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11929
+ },
10817
11930
  /**
10818
11931
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
10819
11932
  * @summary List segment contacts
@@ -10823,7 +11936,7 @@ export const ReachSegmentsApiFp = function(configuration?: Configuration) {
10823
11936
  * @param {*} [options] Override http request option.
10824
11937
  * @throws {RequiredError}
10825
11938
  */
10826
- async listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListSegmentContactsV1200Response>> {
11939
+ async listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>> {
10827
11940
  const localVarAxiosArgs = await localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
10828
11941
  const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listSegmentContactsV1']?.[0]?.url;
10829
11942
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -10869,6 +11982,19 @@ export const ReachSegmentsApiFactory = function (configuration?: Configuration,
10869
11982
  getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
10870
11983
  return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
10871
11984
  },
11985
+ /**
11986
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
11987
+ * @summary List profile segment contacts
11988
+ * @param {string} profileUuid Profile uuid parameter
11989
+ * @param {string} segmentUuid Segment uuid parameter
11990
+ * @param {number} [page] Page number
11991
+ * @param {number} [perPage] Number of items per page
11992
+ * @param {*} [options] Override http request option.
11993
+ * @throws {RequiredError}
11994
+ */
11995
+ listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response> {
11996
+ return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
11997
+ },
10872
11998
  /**
10873
11999
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
10874
12000
  * @summary List segment contacts
@@ -10878,7 +12004,7 @@ export const ReachSegmentsApiFactory = function (configuration?: Configuration,
10878
12004
  * @param {*} [options] Override http request option.
10879
12005
  * @throws {RequiredError}
10880
12006
  */
10881
- listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListSegmentContactsV1200Response> {
12007
+ listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response> {
10882
12008
  return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
10883
12009
  },
10884
12010
  /**
@@ -10924,6 +12050,21 @@ export class ReachSegmentsApi extends BaseAPI {
10924
12050
  return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
10925
12051
  }
10926
12052
 
12053
+ /**
12054
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
12055
+ * @summary List profile segment contacts
12056
+ * @param {string} profileUuid Profile uuid parameter
12057
+ * @param {string} segmentUuid Segment uuid parameter
12058
+ * @param {number} [page] Page number
12059
+ * @param {number} [perPage] Number of items per page
12060
+ * @param {*} [options] Override http request option.
12061
+ * @throws {RequiredError}
12062
+ * @memberof ReachSegmentsApi
12063
+ */
12064
+ public listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
12065
+ return ReachSegmentsApiFp(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
12066
+ }
12067
+
10927
12068
  /**
10928
12069
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
10929
12070
  * @summary List segment contacts