hostinger-api-sdk 0.0.17 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/.github/workflows/build-release.yaml +28 -11
  2. package/README.md +2 -2
  3. package/api.ts +8387 -2618
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +5666 -1808
  8. package/dist/api.js +4008 -376
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +5666 -1808
  16. package/dist/esm/api.js +3939 -365
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BillingSubscriptionsApi.md +0 -59
  28. package/docs/BillingV1CatalogCatalogItemResource.md +1 -1
  29. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollection.md +21 -0
  30. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md +23 -0
  31. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md +21 -0
  32. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md +21 -0
  33. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md +27 -0
  34. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md +21 -0
  35. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md +21 -0
  36. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md +21 -0
  37. package/docs/DomainAccessVerifierV2VerificationsListRequest.md +20 -0
  38. package/docs/DomainAccessVerifierVerificationsApi.md +63 -0
  39. package/docs/DomainsPortfolioApi.md +1 -1
  40. package/docs/EcommerceGetStoresV1200Response.md +22 -0
  41. package/docs/EcommercePaymentsApi.md +66 -0
  42. package/docs/EcommerceProductsApi.md +125 -0
  43. package/docs/EcommerceShippingApi.md +66 -0
  44. package/docs/EcommerceStoresApi.md +171 -0
  45. package/docs/EcommerceV1PaymentEnableManualPaymentRequest.md +20 -0
  46. package/docs/EcommerceV1PaymentManualPaymentResource.md +22 -0
  47. package/docs/EcommerceV1PaymentManualPaymentResourcePaymentMethod.md +26 -0
  48. package/docs/EcommerceV1ProductCreateDigitalProductRequest.md +28 -0
  49. package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +26 -0
  50. package/docs/EcommerceV1ProductProductCreationResource.md +22 -0
  51. package/docs/EcommerceV1ProductProductCreationResourceProduct.md +30 -0
  52. package/docs/EcommerceV1ShippingSetShippingRequest.md +20 -0
  53. package/docs/EcommerceV1ShippingShippingResource.md +22 -0
  54. package/docs/EcommerceV1ShippingShippingResourceShippingOption.md +24 -0
  55. package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
  56. package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
  57. package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
  58. package/docs/EcommerceV1StoreStoreDeleteResource.md +22 -0
  59. package/docs/EcommerceV1StoreStoreRequest.md +30 -0
  60. package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
  61. package/docs/EcommerceV1StoreStoreResource.md +30 -0
  62. package/docs/HorizonsV1WebsitesCreateWebsiteRequest.md +20 -0
  63. package/docs/HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md +22 -0
  64. package/docs/HorizonsV1WebsitesCreatedWebsiteResource.md +22 -0
  65. package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +20 -0
  66. package/docs/HorizonsWebsitesApi.md +117 -0
  67. package/docs/HostingDatabasesApi.md +368 -0
  68. package/docs/HostingDatacentersApi.md +61 -0
  69. package/docs/HostingDomainsApi.md +468 -0
  70. package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
  71. package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
  72. package/docs/HostingListOrdersV1200Response.md +22 -0
  73. package/docs/HostingListWebsitesV1200Response.md +22 -0
  74. package/docs/HostingNodeJSApi.md +199 -0
  75. package/docs/HostingOrdersApi.md +70 -0
  76. package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
  77. package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
  78. package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
  79. package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
  80. package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
  81. package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
  82. package/docs/HostingV1DatacentersListRequest.md +20 -0
  83. package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
  84. package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
  85. package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
  86. package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
  87. package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
  88. package/docs/HostingV1DomainsSubdomainResource.md +28 -0
  89. package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
  90. package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
  91. package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
  92. package/docs/HostingV1NodeJsBuildResource.md +28 -0
  93. package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
  94. package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
  95. package/docs/HostingV1OrdersOrderResource.md +30 -0
  96. package/docs/HostingV1OrdersPlanResource.md +20 -0
  97. package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
  98. package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
  99. package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
  100. package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
  101. package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
  102. package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
  103. package/docs/HostingWebsitesApi.md +132 -0
  104. package/docs/HostingWordpressApi.md +126 -0
  105. package/docs/ReachContactsApi.md +63 -4
  106. package/docs/ReachListProfileSegmentContactsV1200Response.md +22 -0
  107. package/docs/ReachProfilesApi.md +54 -0
  108. package/docs/ReachSegmentsApi.md +287 -0
  109. package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
  110. package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
  111. package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
  112. package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
  113. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
  114. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
  115. package/docs/ReachV1ContactsStoreRequest.md +2 -2
  116. package/docs/ReachV1ProfilesProfileResource.md +30 -0
  117. package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
  118. package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
  119. package/docs/VPSActionsApi.md +1 -1
  120. package/docs/VPSDockerManagerApi.md +7 -7
  121. package/docs/VPSFirewallApi.md +1 -1
  122. package/docs/VPSMalwareScannerApi.md +2 -2
  123. package/docs/VPSVirtualMachineApi.md +2 -2
  124. package/index.ts +1 -1
  125. package/package.json +1 -1
  126. package/docs/BillingOrdersApi.md +0 -63
  127. package/docs/BillingV1OrderStoreRequest.md +0 -24
@@ -8,26 +8,41 @@ on:
8
8
  jobs:
9
9
  release:
10
10
  runs-on: ubuntu-latest
11
+ permissions:
12
+ id-token: write
13
+ contents: write
14
+ outputs:
15
+ new_version: ${{ steps.version.outputs.version }}
16
+ released: ${{ steps.version.outputs.released }}
11
17
  steps:
12
18
  - name: Repo checkout
13
19
  uses: actions/checkout@v4
14
-
15
- - name: Bump version and push tag
16
- id: bump
17
- uses: mathieudutour/github-tag-action@v6.2
18
20
  with:
19
- github_token: ${{ secrets.GITHUB_TOKEN }}
20
- release_branches: main
21
+ fetch-depth: 0
21
22
 
22
- - name: Release tag
23
+ - name: Resolve version from package.json
24
+ id: version
25
+ run: |
26
+ VERSION=$(jq -r .version package.json)
27
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
28
+ if git rev-parse "v$VERSION" >/dev/null 2>&1; then
29
+ echo "released=false" >> "$GITHUB_OUTPUT"
30
+ echo "Tag v$VERSION already exists — skipping release."
31
+ else
32
+ echo "released=true" >> "$GITHUB_OUTPUT"
33
+ fi
34
+
35
+ - name: Create release
36
+ if: steps.version.outputs.released == 'true'
23
37
  uses: ncipollo/release-action@v1
24
38
  with:
25
- tag: ${{ steps.bump.outputs.new_tag }}
39
+ tag: v${{ steps.version.outputs.version }}
26
40
  generateReleaseNotes: true
27
41
 
28
42
  publish-npmjs:
29
43
  runs-on: ubuntu-latest
30
44
  needs: [release]
45
+ if: needs.release.outputs.released == 'true'
31
46
  permissions:
32
47
  contents: read
33
48
  id-token: write
@@ -39,17 +54,19 @@ jobs:
39
54
  node-version: '20.x'
40
55
  registry-url: 'https://registry.npmjs.org'
41
56
 
57
+ - name: Update NPM
58
+ run: npm install -g npm@latest
59
+
42
60
  - name: Install dependencies
43
61
  run: npm install
44
62
 
45
63
  - name: Publish package
46
64
  run: npm publish --provenance --access public
47
- env:
48
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49
65
 
50
66
  publish-github:
51
67
  runs-on: ubuntu-latest
52
68
  needs: [release]
69
+ if: needs.release.outputs.released == 'true'
53
70
  permissions:
54
71
  contents: read
55
72
  id-token: write
@@ -71,4 +88,4 @@ jobs:
71
88
  sed -i 's+"name": ".*+"name": "@${{ github.repository }}",+gI' ./package.json
72
89
  npm publish --provenance --access public
73
90
  env:
74
- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## hostinger-api-sdk@0.0.17
1
+ ## hostinger-api-sdk@0.0.20
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install hostinger-api-sdk@0.0.17 --save
8
+ npm install hostinger-api-sdk@0.0.20 --save
9
9
  ```