hostinger-api-sdk 0.0.19 → 0.0.21

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 (54) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1464 -145
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +900 -23
  7. package/dist/api.js +956 -130
  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 +900 -23
  15. package/dist/esm/api.js +926 -117
  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/ReachProfilesApi.md +54 -0
  48. package/docs/ReachSegmentsApi.md +65 -2
  49. package/docs/ReachV1ProfilesDomainsDnsRecordStatus.md +24 -0
  50. package/docs/ReachV1ProfilesDomainsDnsRecordStatusActualInner.md +22 -0
  51. package/docs/ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner.md +24 -0
  52. package/docs/ReachV1ProfilesDomainsDnsStatusResource.md +28 -0
  53. package/index.ts +1 -1
  54. 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.3
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
  }
@@ -3240,67 +3588,173 @@ export interface ReachV1ContactsStoreRequest {
3240
3588
  /**
3241
3589
  *
3242
3590
  * @export
3243
- * @interface ReachV1ProfilesProfileResource
3591
+ * @interface ReachV1ProfilesDomainsDnsRecordStatus
3244
3592
  */
3245
- export interface ReachV1ProfilesProfileResource {
3593
+ export interface ReachV1ProfilesDomainsDnsRecordStatus {
3246
3594
  /**
3247
3595
  *
3248
- * @type {ReachV1ProfilesProfileResourceLimits}
3249
- * @memberof ReachV1ProfilesProfileResource
3250
- */
3251
- 'limits': ReachV1ProfilesProfileResourceLimits;
3252
- /**
3253
- *
3254
- * @type {boolean}
3255
- * @memberof ReachV1ProfilesProfileResource
3596
+ * @type {Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>}
3597
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3256
3598
  */
3257
- 'is_trial': boolean;
3599
+ 'actual': Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>;
3258
3600
  /**
3259
3601
  *
3260
- * @type {string}
3261
- * @memberof ReachV1ProfilesProfileResource
3602
+ * @type {Array<ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner>}
3603
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3262
3604
  */
3263
- 'expires_at': string;
3605
+ 'suggested': Array<ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner>;
3264
3606
  /**
3265
3607
  *
3266
- * @type {number}
3267
- * @memberof ReachV1ProfilesProfileResource
3608
+ * @type {boolean}
3609
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3268
3610
  */
3269
- 'resource_id': number;
3611
+ 'is_valid': boolean;
3612
+ }
3613
+ /**
3614
+ *
3615
+ * @export
3616
+ * @interface ReachV1ProfilesDomainsDnsRecordStatusActualInner
3617
+ */
3618
+ export interface ReachV1ProfilesDomainsDnsRecordStatusActualInner {
3270
3619
  /**
3271
3620
  *
3272
3621
  * @type {string}
3273
- * @memberof ReachV1ProfilesProfileResource
3622
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusActualInner
3274
3623
  */
3275
- 'status': string;
3624
+ 'type': string;
3276
3625
  /**
3277
3626
  *
3278
- * @type {Array<ReachV1ProfilesProfileResourceProfilesInner>}
3279
- * @memberof ReachV1ProfilesProfileResource
3627
+ * @type {string}
3628
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusActualInner
3280
3629
  */
3281
- 'profiles': Array<ReachV1ProfilesProfileResourceProfilesInner>;
3630
+ 'value': string;
3282
3631
  }
3283
3632
  /**
3284
3633
  *
3285
3634
  * @export
3286
- * @interface ReachV1ProfilesProfileResourceLimits
3635
+ * @interface ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3287
3636
  */
3288
- export interface ReachV1ProfilesProfileResourceLimits {
3637
+ export interface ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner {
3289
3638
  /**
3290
3639
  *
3291
- * @type {number}
3292
- * @memberof ReachV1ProfilesProfileResourceLimits
3640
+ * @type {string}
3641
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3293
3642
  */
3294
- 'ai_messages_limit': number;
3643
+ 'name': string;
3295
3644
  /**
3296
3645
  *
3297
- * @type {number}
3298
- * @memberof ReachV1ProfilesProfileResourceLimits
3646
+ * @type {string}
3647
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3299
3648
  */
3300
- 'subscribers_limit': number;
3649
+ 'type': string;
3301
3650
  /**
3302
3651
  *
3303
- * @type {number}
3652
+ * @type {string}
3653
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3654
+ */
3655
+ 'value': string;
3656
+ }
3657
+ /**
3658
+ *
3659
+ * @export
3660
+ * @interface ReachV1ProfilesDomainsDnsStatusResource
3661
+ */
3662
+ export interface ReachV1ProfilesDomainsDnsStatusResource {
3663
+ /**
3664
+ *
3665
+ * @type {string}
3666
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3667
+ */
3668
+ 'domain': string;
3669
+ /**
3670
+ *
3671
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3672
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3673
+ */
3674
+ 'mx': ReachV1ProfilesDomainsDnsRecordStatus;
3675
+ /**
3676
+ *
3677
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3678
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3679
+ */
3680
+ 'spf': ReachV1ProfilesDomainsDnsRecordStatus;
3681
+ /**
3682
+ *
3683
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3684
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3685
+ */
3686
+ 'dkim': ReachV1ProfilesDomainsDnsRecordStatus;
3687
+ /**
3688
+ *
3689
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3690
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3691
+ */
3692
+ 'dmarc': ReachV1ProfilesDomainsDnsRecordStatus;
3693
+ }
3694
+ /**
3695
+ *
3696
+ * @export
3697
+ * @interface ReachV1ProfilesProfileResource
3698
+ */
3699
+ export interface ReachV1ProfilesProfileResource {
3700
+ /**
3701
+ *
3702
+ * @type {ReachV1ProfilesProfileResourceLimits}
3703
+ * @memberof ReachV1ProfilesProfileResource
3704
+ */
3705
+ 'limits': ReachV1ProfilesProfileResourceLimits;
3706
+ /**
3707
+ *
3708
+ * @type {boolean}
3709
+ * @memberof ReachV1ProfilesProfileResource
3710
+ */
3711
+ 'is_trial': boolean;
3712
+ /**
3713
+ *
3714
+ * @type {string}
3715
+ * @memberof ReachV1ProfilesProfileResource
3716
+ */
3717
+ 'expires_at': string;
3718
+ /**
3719
+ *
3720
+ * @type {number}
3721
+ * @memberof ReachV1ProfilesProfileResource
3722
+ */
3723
+ 'resource_id': number;
3724
+ /**
3725
+ *
3726
+ * @type {string}
3727
+ * @memberof ReachV1ProfilesProfileResource
3728
+ */
3729
+ 'status': string;
3730
+ /**
3731
+ *
3732
+ * @type {Array<ReachV1ProfilesProfileResourceProfilesInner>}
3733
+ * @memberof ReachV1ProfilesProfileResource
3734
+ */
3735
+ 'profiles': Array<ReachV1ProfilesProfileResourceProfilesInner>;
3736
+ }
3737
+ /**
3738
+ *
3739
+ * @export
3740
+ * @interface ReachV1ProfilesProfileResourceLimits
3741
+ */
3742
+ export interface ReachV1ProfilesProfileResourceLimits {
3743
+ /**
3744
+ *
3745
+ * @type {number}
3746
+ * @memberof ReachV1ProfilesProfileResourceLimits
3747
+ */
3748
+ 'ai_messages_limit': number;
3749
+ /**
3750
+ *
3751
+ * @type {number}
3752
+ * @memberof ReachV1ProfilesProfileResourceLimits
3753
+ */
3754
+ 'subscribers_limit': number;
3755
+ /**
3756
+ *
3757
+ * @type {number}
3304
3758
  * @memberof ReachV1ProfilesProfileResourceLimits
3305
3759
  */
3306
3760
  'emails_monthly_limit': number;
@@ -7540,92 +7994,791 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
7540
7994
  };
7541
7995
 
7542
7996
  /**
7543
- * DomainsWHOISApi - object-oriented interface
7997
+ * DomainsWHOISApi - object-oriented interface
7998
+ * @export
7999
+ * @class DomainsWHOISApi
8000
+ * @extends {BaseAPI}
8001
+ */
8002
+ export class DomainsWHOISApi extends BaseAPI {
8003
+ /**
8004
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
8005
+ * @summary Create WHOIS profile
8006
+ * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
8007
+ * @param {*} [options] Override http request option.
8008
+ * @throws {RequiredError}
8009
+ * @memberof DomainsWHOISApi
8010
+ */
8011
+ public createWHOISProfileV1(domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest, options?: RawAxiosRequestConfig) {
8012
+ return DomainsWHOISApiFp(this.configuration).createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(this.axios, this.basePath));
8013
+ }
8014
+
8015
+ /**
8016
+ * Delete WHOIS contact profile. Use this endpoint to remove unused contact profiles from account.
8017
+ * @summary Delete WHOIS profile
8018
+ * @param {number} whoisId WHOIS ID
8019
+ * @param {*} [options] Override http request option.
8020
+ * @throws {RequiredError}
8021
+ * @memberof DomainsWHOISApi
8022
+ */
8023
+ public deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
8024
+ return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
8025
+ }
8026
+
8027
+ /**
8028
+ * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
8029
+ * @summary Get WHOIS profile list
8030
+ * @param {string} [tld] Filter by TLD (without leading dot)
8031
+ * @param {*} [options] Override http request option.
8032
+ * @throws {RequiredError}
8033
+ * @memberof DomainsWHOISApi
8034
+ */
8035
+ public getWHOISProfileListV1(tld?: string, options?: RawAxiosRequestConfig) {
8036
+ return DomainsWHOISApiFp(this.configuration).getWHOISProfileListV1(tld, options).then((request) => request(this.axios, this.basePath));
8037
+ }
8038
+
8039
+ /**
8040
+ * Retrieve domain list where provided WHOIS contact profile is used. Use this endpoint to view which domains use specific contact profiles.
8041
+ * @summary Get WHOIS profile usage
8042
+ * @param {number} whoisId WHOIS ID
8043
+ * @param {*} [options] Override http request option.
8044
+ * @throws {RequiredError}
8045
+ * @memberof DomainsWHOISApi
8046
+ */
8047
+ public getWHOISProfileUsageV1(whoisId: number, options?: RawAxiosRequestConfig) {
8048
+ return DomainsWHOISApiFp(this.configuration).getWHOISProfileUsageV1(whoisId, options).then((request) => request(this.axios, this.basePath));
8049
+ }
8050
+
8051
+ /**
8052
+ * Retrieve a WHOIS contact profile. Use this endpoint to view domain registration contact information.
8053
+ * @summary Get WHOIS profile
8054
+ * @param {number} whoisId WHOIS ID
8055
+ * @param {*} [options] Override http request option.
8056
+ * @throws {RequiredError}
8057
+ * @memberof DomainsWHOISApi
8058
+ */
8059
+ public getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
8060
+ return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
8061
+ }
8062
+ }
8063
+
8064
+
8065
+
8066
+ /**
8067
+ * EcommercePaymentsApi - axios parameter creator
8068
+ * @export
8069
+ */
8070
+ export const EcommercePaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
8071
+ return {
8072
+ /**
8073
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
8074
+ * @summary Enable manual payment method
8075
+ * @param {string} storeId The ID of the store to enable manual payment for.
8076
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
8077
+ * @param {*} [options] Override http request option.
8078
+ * @throws {RequiredError}
8079
+ */
8080
+ enableManualPaymentMethodV1: async (storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8081
+ // verify required parameter 'storeId' is not null or undefined
8082
+ assertParamExists('enableManualPaymentMethodV1', 'storeId', storeId)
8083
+ // verify required parameter 'ecommerceV1PaymentEnableManualPaymentRequest' is not null or undefined
8084
+ assertParamExists('enableManualPaymentMethodV1', 'ecommerceV1PaymentEnableManualPaymentRequest', ecommerceV1PaymentEnableManualPaymentRequest)
8085
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/payment-methods/manual`
8086
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
8087
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8088
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8089
+ let baseOptions;
8090
+ if (configuration) {
8091
+ baseOptions = configuration.baseOptions;
8092
+ }
8093
+
8094
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8095
+ const localVarHeaderParameter = {} as any;
8096
+ const localVarQueryParameter = {} as any;
8097
+
8098
+ // authentication apiToken required
8099
+ // http bearer authentication required
8100
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8101
+
8102
+
8103
+
8104
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8105
+
8106
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8107
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8108
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8109
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1PaymentEnableManualPaymentRequest, localVarRequestOptions, configuration)
8110
+
8111
+ return {
8112
+ url: toPathString(localVarUrlObj),
8113
+ options: localVarRequestOptions,
8114
+ };
8115
+ },
8116
+ }
8117
+ };
8118
+
8119
+ /**
8120
+ * EcommercePaymentsApi - functional programming interface
8121
+ * @export
8122
+ */
8123
+ export const EcommercePaymentsApiFp = function(configuration?: Configuration) {
8124
+ const localVarAxiosParamCreator = EcommercePaymentsApiAxiosParamCreator(configuration)
8125
+ return {
8126
+ /**
8127
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
8128
+ * @summary Enable manual payment method
8129
+ * @param {string} storeId The ID of the store to enable manual payment for.
8130
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
8131
+ * @param {*} [options] Override http request option.
8132
+ * @throws {RequiredError}
8133
+ */
8134
+ async enableManualPaymentMethodV1(storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1PaymentManualPaymentResource>> {
8135
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options);
8136
+ const localVarOperationServerBasePath = operationServerMap['EcommercePaymentsApi.enableManualPaymentMethodV1']?.[0]?.url;
8137
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8138
+ },
8139
+ }
8140
+ };
8141
+
8142
+ /**
8143
+ * EcommercePaymentsApi - factory interface
8144
+ * @export
8145
+ */
8146
+ export const EcommercePaymentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8147
+ const localVarFp = EcommercePaymentsApiFp(configuration)
8148
+ return {
8149
+ /**
8150
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
8151
+ * @summary Enable manual payment method
8152
+ * @param {string} storeId The ID of the store to enable manual payment for.
8153
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
8154
+ * @param {*} [options] Override http request option.
8155
+ * @throws {RequiredError}
8156
+ */
8157
+ enableManualPaymentMethodV1(storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1PaymentManualPaymentResource> {
8158
+ return localVarFp.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options).then((request) => request(axios, basePath));
8159
+ },
8160
+ };
8161
+ };
8162
+
8163
+ /**
8164
+ * EcommercePaymentsApi - object-oriented interface
8165
+ * @export
8166
+ * @class EcommercePaymentsApi
8167
+ * @extends {BaseAPI}
8168
+ */
8169
+ export class EcommercePaymentsApi extends BaseAPI {
8170
+ /**
8171
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
8172
+ * @summary Enable manual payment method
8173
+ * @param {string} storeId The ID of the store to enable manual payment for.
8174
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
8175
+ * @param {*} [options] Override http request option.
8176
+ * @throws {RequiredError}
8177
+ * @memberof EcommercePaymentsApi
8178
+ */
8179
+ public enableManualPaymentMethodV1(storeId: string, ecommerceV1PaymentEnableManualPaymentRequest: EcommerceV1PaymentEnableManualPaymentRequest, options?: RawAxiosRequestConfig) {
8180
+ return EcommercePaymentsApiFp(this.configuration).enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options).then((request) => request(this.axios, this.basePath));
8181
+ }
8182
+ }
8183
+
8184
+
8185
+
8186
+ /**
8187
+ * EcommerceProductsApi - axios parameter creator
8188
+ * @export
8189
+ */
8190
+ export const EcommerceProductsApiAxiosParamCreator = function (configuration?: Configuration) {
8191
+ return {
8192
+ /**
8193
+ * Create a published digital product with a single variant and an optional external download link.
8194
+ * @summary Create digital product
8195
+ * @param {string} storeId The ID of the store to create the product in.
8196
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
8197
+ * @param {*} [options] Override http request option.
8198
+ * @throws {RequiredError}
8199
+ */
8200
+ createDigitalProductV1: async (storeId: string, ecommerceV1ProductCreateDigitalProductRequest: EcommerceV1ProductCreateDigitalProductRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8201
+ // verify required parameter 'storeId' is not null or undefined
8202
+ assertParamExists('createDigitalProductV1', 'storeId', storeId)
8203
+ // verify required parameter 'ecommerceV1ProductCreateDigitalProductRequest' is not null or undefined
8204
+ assertParamExists('createDigitalProductV1', 'ecommerceV1ProductCreateDigitalProductRequest', ecommerceV1ProductCreateDigitalProductRequest)
8205
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/digital`
8206
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
8207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8209
+ let baseOptions;
8210
+ if (configuration) {
8211
+ baseOptions = configuration.baseOptions;
8212
+ }
8213
+
8214
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8215
+ const localVarHeaderParameter = {} as any;
8216
+ const localVarQueryParameter = {} as any;
8217
+
8218
+ // authentication apiToken required
8219
+ // http bearer authentication required
8220
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8221
+
8222
+
8223
+
8224
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8225
+
8226
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8227
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8228
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8229
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ProductCreateDigitalProductRequest, localVarRequestOptions, configuration)
8230
+
8231
+ return {
8232
+ url: toPathString(localVarUrlObj),
8233
+ options: localVarRequestOptions,
8234
+ };
8235
+ },
8236
+ /**
8237
+ * Create a published physical product with a single variant priced in the store currency.
8238
+ * @summary Create physical product
8239
+ * @param {string} storeId The ID of the store to create the product in.
8240
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
8241
+ * @param {*} [options] Override http request option.
8242
+ * @throws {RequiredError}
8243
+ */
8244
+ createPhysicalProductV1: async (storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8245
+ // verify required parameter 'storeId' is not null or undefined
8246
+ assertParamExists('createPhysicalProductV1', 'storeId', storeId)
8247
+ // verify required parameter 'ecommerceV1ProductCreatePhysicalProductRequest' is not null or undefined
8248
+ assertParamExists('createPhysicalProductV1', 'ecommerceV1ProductCreatePhysicalProductRequest', ecommerceV1ProductCreatePhysicalProductRequest)
8249
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/physical`
8250
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
8251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8253
+ let baseOptions;
8254
+ if (configuration) {
8255
+ baseOptions = configuration.baseOptions;
8256
+ }
8257
+
8258
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8259
+ const localVarHeaderParameter = {} as any;
8260
+ const localVarQueryParameter = {} as any;
8261
+
8262
+ // authentication apiToken required
8263
+ // http bearer authentication required
8264
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8265
+
8266
+
8267
+
8268
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8269
+
8270
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8271
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8272
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8273
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ProductCreatePhysicalProductRequest, localVarRequestOptions, configuration)
8274
+
8275
+ return {
8276
+ url: toPathString(localVarUrlObj),
8277
+ options: localVarRequestOptions,
8278
+ };
8279
+ },
8280
+ }
8281
+ };
8282
+
8283
+ /**
8284
+ * EcommerceProductsApi - functional programming interface
8285
+ * @export
8286
+ */
8287
+ export const EcommerceProductsApiFp = function(configuration?: Configuration) {
8288
+ const localVarAxiosParamCreator = EcommerceProductsApiAxiosParamCreator(configuration)
8289
+ return {
8290
+ /**
8291
+ * Create a published digital product with a single variant and an optional external download link.
8292
+ * @summary Create digital product
8293
+ * @param {string} storeId The ID of the store to create the product in.
8294
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
8295
+ * @param {*} [options] Override http request option.
8296
+ * @throws {RequiredError}
8297
+ */
8298
+ async createDigitalProductV1(storeId: string, ecommerceV1ProductCreateDigitalProductRequest: EcommerceV1ProductCreateDigitalProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1ProductProductCreationResource>> {
8299
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options);
8300
+ const localVarOperationServerBasePath = operationServerMap['EcommerceProductsApi.createDigitalProductV1']?.[0]?.url;
8301
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8302
+ },
8303
+ /**
8304
+ * Create a published physical product with a single variant priced in the store currency.
8305
+ * @summary Create physical product
8306
+ * @param {string} storeId The ID of the store to create the product in.
8307
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
8308
+ * @param {*} [options] Override http request option.
8309
+ * @throws {RequiredError}
8310
+ */
8311
+ async createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1ProductProductCreationResource>> {
8312
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options);
8313
+ const localVarOperationServerBasePath = operationServerMap['EcommerceProductsApi.createPhysicalProductV1']?.[0]?.url;
8314
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8315
+ },
8316
+ }
8317
+ };
8318
+
8319
+ /**
8320
+ * EcommerceProductsApi - factory interface
8321
+ * @export
8322
+ */
8323
+ export const EcommerceProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8324
+ const localVarFp = EcommerceProductsApiFp(configuration)
8325
+ return {
8326
+ /**
8327
+ * Create a published digital product with a single variant and an optional external download link.
8328
+ * @summary Create digital product
8329
+ * @param {string} storeId The ID of the store to create the product in.
8330
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
8331
+ * @param {*} [options] Override http request option.
8332
+ * @throws {RequiredError}
8333
+ */
8334
+ createDigitalProductV1(storeId: string, ecommerceV1ProductCreateDigitalProductRequest: EcommerceV1ProductCreateDigitalProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ProductProductCreationResource> {
8335
+ return localVarFp.createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options).then((request) => request(axios, basePath));
8336
+ },
8337
+ /**
8338
+ * Create a published physical product with a single variant priced in the store currency.
8339
+ * @summary Create physical product
8340
+ * @param {string} storeId The ID of the store to create the product in.
8341
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
8342
+ * @param {*} [options] Override http request option.
8343
+ * @throws {RequiredError}
8344
+ */
8345
+ createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ProductProductCreationResource> {
8346
+ return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
8347
+ },
8348
+ };
8349
+ };
8350
+
8351
+ /**
8352
+ * EcommerceProductsApi - object-oriented interface
8353
+ * @export
8354
+ * @class EcommerceProductsApi
8355
+ * @extends {BaseAPI}
8356
+ */
8357
+ export class EcommerceProductsApi extends BaseAPI {
8358
+ /**
8359
+ * Create a published digital product with a single variant and an optional external download link.
8360
+ * @summary Create digital product
8361
+ * @param {string} storeId The ID of the store to create the product in.
8362
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
8363
+ * @param {*} [options] Override http request option.
8364
+ * @throws {RequiredError}
8365
+ * @memberof EcommerceProductsApi
8366
+ */
8367
+ public createDigitalProductV1(storeId: string, ecommerceV1ProductCreateDigitalProductRequest: EcommerceV1ProductCreateDigitalProductRequest, options?: RawAxiosRequestConfig) {
8368
+ return EcommerceProductsApiFp(this.configuration).createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options).then((request) => request(this.axios, this.basePath));
8369
+ }
8370
+
8371
+ /**
8372
+ * Create a published physical product with a single variant priced in the store currency.
8373
+ * @summary Create physical product
8374
+ * @param {string} storeId The ID of the store to create the product in.
8375
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
8376
+ * @param {*} [options] Override http request option.
8377
+ * @throws {RequiredError}
8378
+ * @memberof EcommerceProductsApi
8379
+ */
8380
+ public createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig) {
8381
+ return EcommerceProductsApiFp(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
8382
+ }
8383
+ }
8384
+
8385
+
8386
+
8387
+ /**
8388
+ * EcommerceShippingApi - axios parameter creator
8389
+ * @export
8390
+ */
8391
+ export const EcommerceShippingApiAxiosParamCreator = function (configuration?: Configuration) {
8392
+ return {
8393
+ /**
8394
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
8395
+ * @summary Set store shipping
8396
+ * @param {string} storeId The ID of the store to configure shipping for.
8397
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
8398
+ * @param {*} [options] Override http request option.
8399
+ * @throws {RequiredError}
8400
+ */
8401
+ setStoreShippingV1: async (storeId: string, ecommerceV1ShippingSetShippingRequest: EcommerceV1ShippingSetShippingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8402
+ // verify required parameter 'storeId' is not null or undefined
8403
+ assertParamExists('setStoreShippingV1', 'storeId', storeId)
8404
+ // verify required parameter 'ecommerceV1ShippingSetShippingRequest' is not null or undefined
8405
+ assertParamExists('setStoreShippingV1', 'ecommerceV1ShippingSetShippingRequest', ecommerceV1ShippingSetShippingRequest)
8406
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/shipping`
8407
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
8408
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8409
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8410
+ let baseOptions;
8411
+ if (configuration) {
8412
+ baseOptions = configuration.baseOptions;
8413
+ }
8414
+
8415
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8416
+ const localVarHeaderParameter = {} as any;
8417
+ const localVarQueryParameter = {} as any;
8418
+
8419
+ // authentication apiToken required
8420
+ // http bearer authentication required
8421
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8422
+
8423
+
8424
+
8425
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8426
+
8427
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8428
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8429
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8430
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ShippingSetShippingRequest, localVarRequestOptions, configuration)
8431
+
8432
+ return {
8433
+ url: toPathString(localVarUrlObj),
8434
+ options: localVarRequestOptions,
8435
+ };
8436
+ },
8437
+ }
8438
+ };
8439
+
8440
+ /**
8441
+ * EcommerceShippingApi - functional programming interface
8442
+ * @export
8443
+ */
8444
+ export const EcommerceShippingApiFp = function(configuration?: Configuration) {
8445
+ const localVarAxiosParamCreator = EcommerceShippingApiAxiosParamCreator(configuration)
8446
+ return {
8447
+ /**
8448
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
8449
+ * @summary Set store shipping
8450
+ * @param {string} storeId The ID of the store to configure shipping for.
8451
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
8452
+ * @param {*} [options] Override http request option.
8453
+ * @throws {RequiredError}
8454
+ */
8455
+ async setStoreShippingV1(storeId: string, ecommerceV1ShippingSetShippingRequest: EcommerceV1ShippingSetShippingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1ShippingShippingResource>> {
8456
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options);
8457
+ const localVarOperationServerBasePath = operationServerMap['EcommerceShippingApi.setStoreShippingV1']?.[0]?.url;
8458
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8459
+ },
8460
+ }
8461
+ };
8462
+
8463
+ /**
8464
+ * EcommerceShippingApi - factory interface
8465
+ * @export
8466
+ */
8467
+ export const EcommerceShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8468
+ const localVarFp = EcommerceShippingApiFp(configuration)
8469
+ return {
8470
+ /**
8471
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
8472
+ * @summary Set store shipping
8473
+ * @param {string} storeId The ID of the store to configure shipping for.
8474
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
8475
+ * @param {*} [options] Override http request option.
8476
+ * @throws {RequiredError}
8477
+ */
8478
+ setStoreShippingV1(storeId: string, ecommerceV1ShippingSetShippingRequest: EcommerceV1ShippingSetShippingRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ShippingShippingResource> {
8479
+ return localVarFp.setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options).then((request) => request(axios, basePath));
8480
+ },
8481
+ };
8482
+ };
8483
+
8484
+ /**
8485
+ * EcommerceShippingApi - object-oriented interface
8486
+ * @export
8487
+ * @class EcommerceShippingApi
8488
+ * @extends {BaseAPI}
8489
+ */
8490
+ export class EcommerceShippingApi extends BaseAPI {
8491
+ /**
8492
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
8493
+ * @summary Set store shipping
8494
+ * @param {string} storeId The ID of the store to configure shipping for.
8495
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
8496
+ * @param {*} [options] Override http request option.
8497
+ * @throws {RequiredError}
8498
+ * @memberof EcommerceShippingApi
8499
+ */
8500
+ public setStoreShippingV1(storeId: string, ecommerceV1ShippingSetShippingRequest: EcommerceV1ShippingSetShippingRequest, options?: RawAxiosRequestConfig) {
8501
+ return EcommerceShippingApiFp(this.configuration).setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options).then((request) => request(this.axios, this.basePath));
8502
+ }
8503
+ }
8504
+
8505
+
8506
+
8507
+ /**
8508
+ * EcommerceStoresApi - axios parameter creator
8509
+ * @export
8510
+ */
8511
+ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Configuration) {
8512
+ return {
8513
+ /**
8514
+ * Create a new store for your account. A primary sales channel is created alongside the store.
8515
+ * @summary Create store
8516
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
8517
+ * @param {*} [options] Override http request option.
8518
+ * @throws {RequiredError}
8519
+ */
8520
+ createStoreV1: async (ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8521
+ // verify required parameter 'ecommerceV1StoreStoreRequest' is not null or undefined
8522
+ assertParamExists('createStoreV1', 'ecommerceV1StoreStoreRequest', ecommerceV1StoreStoreRequest)
8523
+ const localVarPath = `/api/ecommerce/v1/stores`;
8524
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8525
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8526
+ let baseOptions;
8527
+ if (configuration) {
8528
+ baseOptions = configuration.baseOptions;
8529
+ }
8530
+
8531
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8532
+ const localVarHeaderParameter = {} as any;
8533
+ const localVarQueryParameter = {} as any;
8534
+
8535
+ // authentication apiToken required
8536
+ // http bearer authentication required
8537
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8538
+
8539
+
8540
+
8541
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8542
+
8543
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8544
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8545
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8546
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration)
8547
+
8548
+ return {
8549
+ url: toPathString(localVarUrlObj),
8550
+ options: localVarRequestOptions,
8551
+ };
8552
+ },
8553
+ /**
8554
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
8555
+ * @summary Delete store
8556
+ * @param {string} storeId The ID of the store to delete.
8557
+ * @param {*} [options] Override http request option.
8558
+ * @throws {RequiredError}
8559
+ */
8560
+ deleteStoreV1: async (storeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8561
+ // verify required parameter 'storeId' is not null or undefined
8562
+ assertParamExists('deleteStoreV1', 'storeId', storeId)
8563
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}`
8564
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
8565
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8566
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8567
+ let baseOptions;
8568
+ if (configuration) {
8569
+ baseOptions = configuration.baseOptions;
8570
+ }
8571
+
8572
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
8573
+ const localVarHeaderParameter = {} as any;
8574
+ const localVarQueryParameter = {} as any;
8575
+
8576
+ // authentication apiToken required
8577
+ // http bearer authentication required
8578
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8579
+
8580
+
8581
+
8582
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8583
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8584
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8585
+
8586
+ return {
8587
+ url: toPathString(localVarUrlObj),
8588
+ options: localVarRequestOptions,
8589
+ };
8590
+ },
8591
+ /**
8592
+ * Retrieve the stores associated with your account.
8593
+ * @summary Get stores
8594
+ * @param {number} [page] Page number
8595
+ * @param {*} [options] Override http request option.
8596
+ * @throws {RequiredError}
8597
+ */
8598
+ getStoresV1: async (page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8599
+ const localVarPath = `/api/ecommerce/v1/stores`;
8600
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8601
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8602
+ let baseOptions;
8603
+ if (configuration) {
8604
+ baseOptions = configuration.baseOptions;
8605
+ }
8606
+
8607
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8608
+ const localVarHeaderParameter = {} as any;
8609
+ const localVarQueryParameter = {} as any;
8610
+
8611
+ // authentication apiToken required
8612
+ // http bearer authentication required
8613
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8614
+
8615
+ if (page !== undefined) {
8616
+ localVarQueryParameter['page'] = page;
8617
+ }
8618
+
8619
+
8620
+
8621
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8622
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8623
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8624
+
8625
+ return {
8626
+ url: toPathString(localVarUrlObj),
8627
+ options: localVarRequestOptions,
8628
+ };
8629
+ },
8630
+ }
8631
+ };
8632
+
8633
+ /**
8634
+ * EcommerceStoresApi - functional programming interface
8635
+ * @export
8636
+ */
8637
+ export const EcommerceStoresApiFp = function(configuration?: Configuration) {
8638
+ const localVarAxiosParamCreator = EcommerceStoresApiAxiosParamCreator(configuration)
8639
+ return {
8640
+ /**
8641
+ * Create a new store for your account. A primary sales channel is created alongside the store.
8642
+ * @summary Create store
8643
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
8644
+ * @param {*} [options] Override http request option.
8645
+ * @throws {RequiredError}
8646
+ */
8647
+ async createStoreV1(ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1StoreStoreCreationResource>> {
8648
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createStoreV1(ecommerceV1StoreStoreRequest, options);
8649
+ const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.createStoreV1']?.[0]?.url;
8650
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8651
+ },
8652
+ /**
8653
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
8654
+ * @summary Delete store
8655
+ * @param {string} storeId The ID of the store to delete.
8656
+ * @param {*} [options] Override http request option.
8657
+ * @throws {RequiredError}
8658
+ */
8659
+ async deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1StoreStoreDeleteResource>> {
8660
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStoreV1(storeId, options);
8661
+ const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.deleteStoreV1']?.[0]?.url;
8662
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8663
+ },
8664
+ /**
8665
+ * Retrieve the stores associated with your account.
8666
+ * @summary Get stores
8667
+ * @param {number} [page] Page number
8668
+ * @param {*} [options] Override http request option.
8669
+ * @throws {RequiredError}
8670
+ */
8671
+ async getStoresV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceGetStoresV1200Response>> {
8672
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStoresV1(page, options);
8673
+ const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.getStoresV1']?.[0]?.url;
8674
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8675
+ },
8676
+ }
8677
+ };
8678
+
8679
+ /**
8680
+ * EcommerceStoresApi - factory interface
8681
+ * @export
8682
+ */
8683
+ export const EcommerceStoresApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8684
+ const localVarFp = EcommerceStoresApiFp(configuration)
8685
+ return {
8686
+ /**
8687
+ * Create a new store for your account. A primary sales channel is created alongside the store.
8688
+ * @summary Create store
8689
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
8690
+ * @param {*} [options] Override http request option.
8691
+ * @throws {RequiredError}
8692
+ */
8693
+ createStoreV1(ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreCreationResource> {
8694
+ return localVarFp.createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(axios, basePath));
8695
+ },
8696
+ /**
8697
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
8698
+ * @summary Delete store
8699
+ * @param {string} storeId The ID of the store to delete.
8700
+ * @param {*} [options] Override http request option.
8701
+ * @throws {RequiredError}
8702
+ */
8703
+ deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreDeleteResource> {
8704
+ return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
8705
+ },
8706
+ /**
8707
+ * Retrieve the stores associated with your account.
8708
+ * @summary Get stores
8709
+ * @param {number} [page] Page number
8710
+ * @param {*} [options] Override http request option.
8711
+ * @throws {RequiredError}
8712
+ */
8713
+ getStoresV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceGetStoresV1200Response> {
8714
+ return localVarFp.getStoresV1(page, options).then((request) => request(axios, basePath));
8715
+ },
8716
+ };
8717
+ };
8718
+
8719
+ /**
8720
+ * EcommerceStoresApi - object-oriented interface
7544
8721
  * @export
7545
- * @class DomainsWHOISApi
8722
+ * @class EcommerceStoresApi
7546
8723
  * @extends {BaseAPI}
7547
8724
  */
7548
- export class DomainsWHOISApi extends BaseAPI {
7549
- /**
7550
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
7551
- * @summary Create WHOIS profile
7552
- * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
7553
- * @param {*} [options] Override http request option.
7554
- * @throws {RequiredError}
7555
- * @memberof DomainsWHOISApi
7556
- */
7557
- public createWHOISProfileV1(domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest, options?: RawAxiosRequestConfig) {
7558
- return DomainsWHOISApiFp(this.configuration).createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(this.axios, this.basePath));
7559
- }
7560
-
7561
- /**
7562
- * Delete WHOIS contact profile. Use this endpoint to remove unused contact profiles from account.
7563
- * @summary Delete WHOIS profile
7564
- * @param {number} whoisId WHOIS ID
7565
- * @param {*} [options] Override http request option.
7566
- * @throws {RequiredError}
7567
- * @memberof DomainsWHOISApi
7568
- */
7569
- public deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
7570
- return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
7571
- }
7572
-
8725
+ export class EcommerceStoresApi extends BaseAPI {
7573
8726
  /**
7574
- * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
7575
- * @summary Get WHOIS profile list
7576
- * @param {string} [tld] Filter by TLD (without leading dot)
8727
+ * Create a new store for your account. A primary sales channel is created alongside the store.
8728
+ * @summary Create store
8729
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
7577
8730
  * @param {*} [options] Override http request option.
7578
8731
  * @throws {RequiredError}
7579
- * @memberof DomainsWHOISApi
8732
+ * @memberof EcommerceStoresApi
7580
8733
  */
7581
- public getWHOISProfileListV1(tld?: string, options?: RawAxiosRequestConfig) {
7582
- return DomainsWHOISApiFp(this.configuration).getWHOISProfileListV1(tld, options).then((request) => request(this.axios, this.basePath));
8734
+ public createStoreV1(ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest, options?: RawAxiosRequestConfig) {
8735
+ return EcommerceStoresApiFp(this.configuration).createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(this.axios, this.basePath));
7583
8736
  }
7584
8737
 
7585
8738
  /**
7586
- * Retrieve domain list where provided WHOIS contact profile is used. Use this endpoint to view which domains use specific contact profiles.
7587
- * @summary Get WHOIS profile usage
7588
- * @param {number} whoisId WHOIS ID
8739
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
8740
+ * @summary Delete store
8741
+ * @param {string} storeId The ID of the store to delete.
7589
8742
  * @param {*} [options] Override http request option.
7590
8743
  * @throws {RequiredError}
7591
- * @memberof DomainsWHOISApi
8744
+ * @memberof EcommerceStoresApi
7592
8745
  */
7593
- public getWHOISProfileUsageV1(whoisId: number, options?: RawAxiosRequestConfig) {
7594
- return DomainsWHOISApiFp(this.configuration).getWHOISProfileUsageV1(whoisId, options).then((request) => request(this.axios, this.basePath));
8746
+ public deleteStoreV1(storeId: string, options?: RawAxiosRequestConfig) {
8747
+ return EcommerceStoresApiFp(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
7595
8748
  }
7596
8749
 
7597
8750
  /**
7598
- * Retrieve a WHOIS contact profile. Use this endpoint to view domain registration contact information.
7599
- * @summary Get WHOIS profile
7600
- * @param {number} whoisId WHOIS ID
8751
+ * Retrieve the stores associated with your account.
8752
+ * @summary Get stores
8753
+ * @param {number} [page] Page number
7601
8754
  * @param {*} [options] Override http request option.
7602
8755
  * @throws {RequiredError}
7603
- * @memberof DomainsWHOISApi
8756
+ * @memberof EcommerceStoresApi
7604
8757
  */
7605
- public getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
7606
- return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
8758
+ public getStoresV1(page?: number, options?: RawAxiosRequestConfig) {
8759
+ return EcommerceStoresApiFp(this.configuration).getStoresV1(page, options).then((request) => request(this.axios, this.basePath));
7607
8760
  }
7608
8761
  }
7609
8762
 
7610
8763
 
7611
8764
 
7612
8765
  /**
7613
- * EcommerceStoresApi - axios parameter creator
8766
+ * HorizonsWebsitesApi - axios parameter creator
7614
8767
  * @export
7615
8768
  */
7616
- export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Configuration) {
8769
+ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Configuration) {
7617
8770
  return {
7618
8771
  /**
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
8772
+ * 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
8773
+ * @summary Create website
8774
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
7622
8775
  * @param {*} [options] Override http request option.
7623
8776
  * @throws {RequiredError}
7624
8777
  */
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`;
8778
+ createWebsiteV1: async (horizonsV1WebsitesCreateWebsiteRequest: HorizonsV1WebsitesCreateWebsiteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8779
+ // verify required parameter 'horizonsV1WebsitesCreateWebsiteRequest' is not null or undefined
8780
+ assertParamExists('createWebsiteV1', 'horizonsV1WebsitesCreateWebsiteRequest', horizonsV1WebsitesCreateWebsiteRequest)
8781
+ const localVarPath = `/api/horizons/v1/websites`;
7629
8782
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7630
8783
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7631
8784
  let baseOptions;
@@ -7648,7 +8801,7 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Con
7648
8801
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7649
8802
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7650
8803
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7651
- localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration)
8804
+ localVarRequestOptions.data = serializeDataIfNeeded(horizonsV1WebsitesCreateWebsiteRequest, localVarRequestOptions, configuration)
7652
8805
 
7653
8806
  return {
7654
8807
  url: toPathString(localVarUrlObj),
@@ -7656,14 +8809,17 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Con
7656
8809
  };
7657
8810
  },
7658
8811
  /**
7659
- * Retrieve the stores associated with your account.
7660
- * @summary Get stores
7661
- * @param {number} [page] Page number
8812
+ * 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.
8813
+ * @summary Get website
8814
+ * @param {string} websiteId The website ID
7662
8815
  * @param {*} [options] Override http request option.
7663
8816
  * @throws {RequiredError}
7664
8817
  */
7665
- getStoresV1: async (page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7666
- const localVarPath = `/api/ecommerce/v1/stores`;
8818
+ getWebsiteV1: async (websiteId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8819
+ // verify required parameter 'websiteId' is not null or undefined
8820
+ assertParamExists('getWebsiteV1', 'websiteId', websiteId)
8821
+ const localVarPath = `/api/horizons/v1/websites/{websiteId}`
8822
+ .replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
7667
8823
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7668
8824
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7669
8825
  let baseOptions;
@@ -7679,10 +8835,6 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Con
7679
8835
  // http bearer authentication required
7680
8836
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
7681
8837
 
7682
- if (page !== undefined) {
7683
- localVarQueryParameter['page'] = page;
7684
- }
7685
-
7686
8838
 
7687
8839
 
7688
8840
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7698,98 +8850,98 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration?: Con
7698
8850
  };
7699
8851
 
7700
8852
  /**
7701
- * EcommerceStoresApi - functional programming interface
8853
+ * HorizonsWebsitesApi - functional programming interface
7702
8854
  * @export
7703
8855
  */
7704
- export const EcommerceStoresApiFp = function(configuration?: Configuration) {
7705
- const localVarAxiosParamCreator = EcommerceStoresApiAxiosParamCreator(configuration)
8856
+ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
8857
+ const localVarAxiosParamCreator = HorizonsWebsitesApiAxiosParamCreator(configuration)
7706
8858
  return {
7707
8859
  /**
7708
- * Create a new store for your account. A primary sales channel is created alongside the store.
7709
- * @summary Create store
7710
- * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
8860
+ * 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
8861
+ * @summary Create website
8862
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
7711
8863
  * @param {*} [options] Override http request option.
7712
8864
  * @throws {RequiredError}
7713
8865
  */
7714
- async createStoreV1(ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1StoreStoreCreationResource>> {
7715
- const localVarAxiosArgs = await localVarAxiosParamCreator.createStoreV1(ecommerceV1StoreStoreRequest, options);
7716
- const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.createStoreV1']?.[0]?.url;
8866
+ async createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest: HorizonsV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesCreatedWebsiteResource>> {
8867
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options);
8868
+ const localVarOperationServerBasePath = operationServerMap['HorizonsWebsitesApi.createWebsiteV1']?.[0]?.url;
7717
8869
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7718
8870
  },
7719
8871
  /**
7720
- * Retrieve the stores associated with your account.
7721
- * @summary Get stores
7722
- * @param {number} [page] Page number
8872
+ * 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.
8873
+ * @summary Get website
8874
+ * @param {string} websiteId The website ID
7723
8875
  * @param {*} [options] Override http request option.
7724
8876
  * @throws {RequiredError}
7725
8877
  */
7726
- async getStoresV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceGetStoresV1200Response>> {
7727
- const localVarAxiosArgs = await localVarAxiosParamCreator.getStoresV1(page, options);
7728
- const localVarOperationServerBasePath = operationServerMap['EcommerceStoresApi.getStoresV1']?.[0]?.url;
8878
+ async getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesWebsiteUrlResource>> {
8879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWebsiteV1(websiteId, options);
8880
+ const localVarOperationServerBasePath = operationServerMap['HorizonsWebsitesApi.getWebsiteV1']?.[0]?.url;
7729
8881
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7730
8882
  },
7731
8883
  }
7732
8884
  };
7733
8885
 
7734
8886
  /**
7735
- * EcommerceStoresApi - factory interface
8887
+ * HorizonsWebsitesApi - factory interface
7736
8888
  * @export
7737
8889
  */
7738
- export const EcommerceStoresApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7739
- const localVarFp = EcommerceStoresApiFp(configuration)
8890
+ export const HorizonsWebsitesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8891
+ const localVarFp = HorizonsWebsitesApiFp(configuration)
7740
8892
  return {
7741
8893
  /**
7742
- * Create a new store for your account. A primary sales channel is created alongside the store.
7743
- * @summary Create store
7744
- * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
8894
+ * 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
8895
+ * @summary Create website
8896
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
7745
8897
  * @param {*} [options] Override http request option.
7746
8898
  * @throws {RequiredError}
7747
8899
  */
7748
- createStoreV1(ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1StoreStoreCreationResource> {
7749
- return localVarFp.createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(axios, basePath));
8900
+ createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest: HorizonsV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesCreatedWebsiteResource> {
8901
+ return localVarFp.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
7750
8902
  },
7751
8903
  /**
7752
- * Retrieve the stores associated with your account.
7753
- * @summary Get stores
7754
- * @param {number} [page] Page number
8904
+ * 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.
8905
+ * @summary Get website
8906
+ * @param {string} websiteId The website ID
7755
8907
  * @param {*} [options] Override http request option.
7756
8908
  * @throws {RequiredError}
7757
8909
  */
7758
- getStoresV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceGetStoresV1200Response> {
7759
- return localVarFp.getStoresV1(page, options).then((request) => request(axios, basePath));
8910
+ getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesWebsiteUrlResource> {
8911
+ return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
7760
8912
  },
7761
8913
  };
7762
8914
  };
7763
8915
 
7764
8916
  /**
7765
- * EcommerceStoresApi - object-oriented interface
8917
+ * HorizonsWebsitesApi - object-oriented interface
7766
8918
  * @export
7767
- * @class EcommerceStoresApi
8919
+ * @class HorizonsWebsitesApi
7768
8920
  * @extends {BaseAPI}
7769
8921
  */
7770
- export class EcommerceStoresApi extends BaseAPI {
8922
+ export class HorizonsWebsitesApi extends BaseAPI {
7771
8923
  /**
7772
- * Create a new store for your account. A primary sales channel is created alongside the store.
7773
- * @summary Create store
7774
- * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
8924
+ * 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
8925
+ * @summary Create website
8926
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
7775
8927
  * @param {*} [options] Override http request option.
7776
8928
  * @throws {RequiredError}
7777
- * @memberof EcommerceStoresApi
8929
+ * @memberof HorizonsWebsitesApi
7778
8930
  */
7779
- public createStoreV1(ecommerceV1StoreStoreRequest: EcommerceV1StoreStoreRequest, options?: RawAxiosRequestConfig) {
7780
- return EcommerceStoresApiFp(this.configuration).createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(this.axios, this.basePath));
8931
+ public createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest: HorizonsV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig) {
8932
+ return HorizonsWebsitesApiFp(this.configuration).createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
7781
8933
  }
7782
8934
 
7783
8935
  /**
7784
- * Retrieve the stores associated with your account.
7785
- * @summary Get stores
7786
- * @param {number} [page] Page number
8936
+ * 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.
8937
+ * @summary Get website
8938
+ * @param {string} websiteId The website ID
7787
8939
  * @param {*} [options] Override http request option.
7788
8940
  * @throws {RequiredError}
7789
- * @memberof EcommerceStoresApi
8941
+ * @memberof HorizonsWebsitesApi
7790
8942
  */
7791
- public getStoresV1(page?: number, options?: RawAxiosRequestConfig) {
7792
- return EcommerceStoresApiFp(this.configuration).getStoresV1(page, options).then((request) => request(this.axios, this.basePath));
8943
+ public getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig) {
8944
+ return HorizonsWebsitesApiFp(this.configuration).getWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
7793
8945
  }
7794
8946
  }
7795
8947
 
@@ -10516,6 +11668,44 @@ export type ListContactsV1SubscriptionStatusEnum = typeof ListContactsV1Subscrip
10516
11668
  */
10517
11669
  export const ReachProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
10518
11670
  return {
11671
+ /**
11672
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
11673
+ * @summary Get profile domain DNS status
11674
+ * @param {string} profileUuid Profile uuid parameter
11675
+ * @param {*} [options] Override http request option.
11676
+ * @throws {RequiredError}
11677
+ */
11678
+ getProfileDomainDNSStatusV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11679
+ // verify required parameter 'profileUuid' is not null or undefined
11680
+ assertParamExists('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid)
11681
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
11682
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
11683
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11684
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11685
+ let baseOptions;
11686
+ if (configuration) {
11687
+ baseOptions = configuration.baseOptions;
11688
+ }
11689
+
11690
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11691
+ const localVarHeaderParameter = {} as any;
11692
+ const localVarQueryParameter = {} as any;
11693
+
11694
+ // authentication apiToken required
11695
+ // http bearer authentication required
11696
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11697
+
11698
+
11699
+
11700
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11701
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11702
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11703
+
11704
+ return {
11705
+ url: toPathString(localVarUrlObj),
11706
+ options: localVarRequestOptions,
11707
+ };
11708
+ },
10519
11709
  /**
10520
11710
  * This endpoint returns all profiles available to the client, including their basic information.
10521
11711
  * @summary List Profiles
@@ -10560,6 +11750,18 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
10560
11750
  export const ReachProfilesApiFp = function(configuration?: Configuration) {
10561
11751
  const localVarAxiosParamCreator = ReachProfilesApiAxiosParamCreator(configuration)
10562
11752
  return {
11753
+ /**
11754
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
11755
+ * @summary Get profile domain DNS status
11756
+ * @param {string} profileUuid Profile uuid parameter
11757
+ * @param {*} [options] Override http request option.
11758
+ * @throws {RequiredError}
11759
+ */
11760
+ async getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource>> {
11761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
11762
+ const localVarOperationServerBasePath = operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']?.[0]?.url;
11763
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11764
+ },
10563
11765
  /**
10564
11766
  * This endpoint returns all profiles available to the client, including their basic information.
10565
11767
  * @summary List Profiles
@@ -10581,6 +11783,16 @@ export const ReachProfilesApiFp = function(configuration?: Configuration) {
10581
11783
  export const ReachProfilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
10582
11784
  const localVarFp = ReachProfilesApiFp(configuration)
10583
11785
  return {
11786
+ /**
11787
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
11788
+ * @summary Get profile domain DNS status
11789
+ * @param {string} profileUuid Profile uuid parameter
11790
+ * @param {*} [options] Override http request option.
11791
+ * @throws {RequiredError}
11792
+ */
11793
+ getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource> {
11794
+ return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
11795
+ },
10584
11796
  /**
10585
11797
  * This endpoint returns all profiles available to the client, including their basic information.
10586
11798
  * @summary List Profiles
@@ -10600,6 +11812,18 @@ export const ReachProfilesApiFactory = function (configuration?: Configuration,
10600
11812
  * @extends {BaseAPI}
10601
11813
  */
10602
11814
  export class ReachProfilesApi extends BaseAPI {
11815
+ /**
11816
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
11817
+ * @summary Get profile domain DNS status
11818
+ * @param {string} profileUuid Profile uuid parameter
11819
+ * @param {*} [options] Override http request option.
11820
+ * @throws {RequiredError}
11821
+ * @memberof ReachProfilesApi
11822
+ */
11823
+ public getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig) {
11824
+ return ReachProfilesApiFp(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
11825
+ }
11826
+
10603
11827
  /**
10604
11828
  * This endpoint returns all profiles available to the client, including their basic information.
10605
11829
  * @summary List Profiles
@@ -10689,6 +11913,58 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
10689
11913
 
10690
11914
 
10691
11915
 
11916
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11917
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11918
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11919
+
11920
+ return {
11921
+ url: toPathString(localVarUrlObj),
11922
+ options: localVarRequestOptions,
11923
+ };
11924
+ },
11925
+ /**
11926
+ * 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.
11927
+ * @summary List profile segment contacts
11928
+ * @param {string} profileUuid Profile uuid parameter
11929
+ * @param {string} segmentUuid Segment uuid parameter
11930
+ * @param {number} [page] Page number
11931
+ * @param {number} [perPage] Number of items per page
11932
+ * @param {*} [options] Override http request option.
11933
+ * @throws {RequiredError}
11934
+ */
11935
+ listProfileSegmentContactsV1: async (profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11936
+ // verify required parameter 'profileUuid' is not null or undefined
11937
+ assertParamExists('listProfileSegmentContactsV1', 'profileUuid', profileUuid)
11938
+ // verify required parameter 'segmentUuid' is not null or undefined
11939
+ assertParamExists('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid)
11940
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
11941
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
11942
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
11943
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11944
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11945
+ let baseOptions;
11946
+ if (configuration) {
11947
+ baseOptions = configuration.baseOptions;
11948
+ }
11949
+
11950
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11951
+ const localVarHeaderParameter = {} as any;
11952
+ const localVarQueryParameter = {} as any;
11953
+
11954
+ // authentication apiToken required
11955
+ // http bearer authentication required
11956
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11957
+
11958
+ if (page !== undefined) {
11959
+ localVarQueryParameter['page'] = page;
11960
+ }
11961
+
11962
+ if (perPage !== undefined) {
11963
+ localVarQueryParameter['per_page'] = perPage;
11964
+ }
11965
+
11966
+
11967
+
10692
11968
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10693
11969
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10694
11970
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -10814,6 +12090,21 @@ export const ReachSegmentsApiFp = function(configuration?: Configuration) {
10814
12090
  const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']?.[0]?.url;
10815
12091
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10816
12092
  },
12093
+ /**
12094
+ * 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.
12095
+ * @summary List profile segment contacts
12096
+ * @param {string} profileUuid Profile uuid parameter
12097
+ * @param {string} segmentUuid Segment uuid parameter
12098
+ * @param {number} [page] Page number
12099
+ * @param {number} [perPage] Number of items per page
12100
+ * @param {*} [options] Override http request option.
12101
+ * @throws {RequiredError}
12102
+ */
12103
+ async listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>> {
12104
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
12105
+ const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']?.[0]?.url;
12106
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12107
+ },
10817
12108
  /**
10818
12109
  * 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
12110
  * @summary List segment contacts
@@ -10823,7 +12114,7 @@ export const ReachSegmentsApiFp = function(configuration?: Configuration) {
10823
12114
  * @param {*} [options] Override http request option.
10824
12115
  * @throws {RequiredError}
10825
12116
  */
10826
- async listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListSegmentContactsV1200Response>> {
12117
+ async listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>> {
10827
12118
  const localVarAxiosArgs = await localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
10828
12119
  const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listSegmentContactsV1']?.[0]?.url;
10829
12120
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -10869,6 +12160,19 @@ export const ReachSegmentsApiFactory = function (configuration?: Configuration,
10869
12160
  getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
10870
12161
  return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
10871
12162
  },
12163
+ /**
12164
+ * 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.
12165
+ * @summary List profile segment contacts
12166
+ * @param {string} profileUuid Profile uuid parameter
12167
+ * @param {string} segmentUuid Segment uuid parameter
12168
+ * @param {number} [page] Page number
12169
+ * @param {number} [perPage] Number of items per page
12170
+ * @param {*} [options] Override http request option.
12171
+ * @throws {RequiredError}
12172
+ */
12173
+ listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response> {
12174
+ return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
12175
+ },
10872
12176
  /**
10873
12177
  * 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
12178
  * @summary List segment contacts
@@ -10878,7 +12182,7 @@ export const ReachSegmentsApiFactory = function (configuration?: Configuration,
10878
12182
  * @param {*} [options] Override http request option.
10879
12183
  * @throws {RequiredError}
10880
12184
  */
10881
- listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListSegmentContactsV1200Response> {
12185
+ listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response> {
10882
12186
  return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
10883
12187
  },
10884
12188
  /**
@@ -10924,6 +12228,21 @@ export class ReachSegmentsApi extends BaseAPI {
10924
12228
  return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
10925
12229
  }
10926
12230
 
12231
+ /**
12232
+ * 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.
12233
+ * @summary List profile segment contacts
12234
+ * @param {string} profileUuid Profile uuid parameter
12235
+ * @param {string} segmentUuid Segment uuid parameter
12236
+ * @param {number} [page] Page number
12237
+ * @param {number} [perPage] Number of items per page
12238
+ * @param {*} [options] Override http request option.
12239
+ * @throws {RequiredError}
12240
+ * @memberof ReachSegmentsApi
12241
+ */
12242
+ public listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
12243
+ return ReachSegmentsApiFp(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
12244
+ }
12245
+
10927
12246
  /**
10928
12247
  * 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
12248
  * @summary List segment contacts