hostinger-api-sdk 0.0.17 → 0.0.19

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 (108) hide show
  1. package/.github/workflows/build-release.yaml +28 -11
  2. package/README.md +2 -2
  3. package/api.ts +7280 -2652
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +4936 -1816
  8. package/dist/api.js +3248 -374
  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 +4936 -1816
  16. package/dist/esm/api.js +3196 -363
  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/EcommerceStoresApi.md +117 -0
  42. package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
  43. package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
  44. package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
  45. package/docs/EcommerceV1StoreStoreRequest.md +30 -0
  46. package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
  47. package/docs/EcommerceV1StoreStoreResource.md +30 -0
  48. package/docs/HostingDatabasesApi.md +368 -0
  49. package/docs/HostingDatacentersApi.md +61 -0
  50. package/docs/HostingDomainsApi.md +468 -0
  51. package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
  52. package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
  53. package/docs/HostingListOrdersV1200Response.md +22 -0
  54. package/docs/HostingListWebsitesV1200Response.md +22 -0
  55. package/docs/HostingNodeJSApi.md +199 -0
  56. package/docs/HostingOrdersApi.md +70 -0
  57. package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
  58. package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
  59. package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
  60. package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
  61. package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
  62. package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
  63. package/docs/HostingV1DatacentersListRequest.md +20 -0
  64. package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
  65. package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
  66. package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
  67. package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
  68. package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
  69. package/docs/HostingV1DomainsSubdomainResource.md +28 -0
  70. package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
  71. package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
  72. package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
  73. package/docs/HostingV1NodeJsBuildResource.md +28 -0
  74. package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
  75. package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
  76. package/docs/HostingV1OrdersOrderResource.md +30 -0
  77. package/docs/HostingV1OrdersPlanResource.md +20 -0
  78. package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
  79. package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
  80. package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
  81. package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
  82. package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
  83. package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
  84. package/docs/HostingWebsitesApi.md +132 -0
  85. package/docs/HostingWordpressApi.md +126 -0
  86. package/docs/ReachContactsApi.md +63 -4
  87. package/docs/ReachListSegmentContactsV1200Response.md +22 -0
  88. package/docs/ReachProfilesApi.md +54 -0
  89. package/docs/ReachSegmentsApi.md +224 -0
  90. package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
  91. package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
  92. package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
  93. package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
  94. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
  95. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
  96. package/docs/ReachV1ContactsStoreRequest.md +2 -2
  97. package/docs/ReachV1ProfilesProfileResource.md +30 -0
  98. package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
  99. package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
  100. package/docs/VPSActionsApi.md +1 -1
  101. package/docs/VPSDockerManagerApi.md +7 -7
  102. package/docs/VPSFirewallApi.md +1 -1
  103. package/docs/VPSMalwareScannerApi.md +2 -2
  104. package/docs/VPSVirtualMachineApi.md +2 -2
  105. package/index.ts +1 -1
  106. package/package.json +1 -1
  107. package/docs/BillingOrdersApi.md +0 -63
  108. 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.19
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.19 --save
9
9
  ```