@nilovonjs/hcloud-js 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nilovonjs/hcloud-js",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "TypeScript SDK for the Hetzner Cloud API - Fully typed, validated, and easy to use",
5
5
  "author": "Nilovon",
6
6
  "license": "MIT",
@@ -3,9 +3,9 @@
3
3
  * @see https://docs.hetzner.cloud/reference/cloud#images
4
4
  */
5
5
 
6
- import type { HCloudClient } from "@/client/index";
7
- import { validate } from "@/validation/index";
8
- import { deleteImageResponseSchema, getImageResponseSchema, listImagesResponseSchema, updateImageRequestSchema, updateImageResponseSchema } from "@/apis/images/schemas";
6
+ import type { HCloudClient } from "../../client/index";
7
+ import { validate } from "../../validation/index";
8
+ import { deleteImageResponseSchema, getImageResponseSchema, listImagesResponseSchema, updateImageRequestSchema, updateImageResponseSchema } from "../../apis/images/schemas";
9
9
  import type {
10
10
  ListImagesParams,
11
11
  ListImagesResponse,
@@ -13,7 +13,7 @@ import type {
13
13
  UpdateImageParams,
14
14
  UpdateImageResponse,
15
15
  DeleteImageResponse,
16
- } from "@/apis/images/types";
16
+ } from "./types";
17
17
 
18
18
  /**
19
19
  * Images API client
@@ -4,8 +4,8 @@
4
4
  */
5
5
 
6
6
  import { z } from "zod";
7
- import { paginationMetaSchema } from "@/apis/common/schemas";
8
- import { actionSchema } from "@/apis/actions/schemas";
7
+ import { paginationMetaSchema } from "../../apis/common/schemas";
8
+ import { actionSchema } from "../../apis/actions/schemas";
9
9
 
10
10
  /**
11
11
  * Image status schema
@@ -3,10 +3,10 @@
3
3
  * @see https://docs.hetzner.cloud/reference/cloud#isos
4
4
  */
5
5
 
6
- import type { HCloudClient } from "@/client/index";
7
- import type { ListISOsParams, ListISOsResponse, GetISOResponse } from "@/apis/isos/types";
8
- import { validate } from "@/validation/index";
9
- import { listISOsResponseSchema, getISOResponseSchema } from "@/apis/isos/schemas";
6
+ import type { HCloudClient } from "../../client/index";
7
+ import type { ListISOsParams, ListISOsResponse, GetISOResponse } from "../../apis/isos/types";
8
+ import { validate } from "../../validation/index";
9
+ import { listISOsResponseSchema, getISOResponseSchema } from "../../apis/isos/schemas";
10
10
 
11
11
  /**
12
12
  * ISOs API client
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { z } from "zod";
7
- import { paginationMetaSchema } from "@/apis/common/schemas";
7
+ import { paginationMetaSchema } from "../../apis/common/schemas";
8
8
 
9
9
  /**
10
10
  * ISO type schema
@@ -3,7 +3,7 @@
3
3
  * @see https://docs.hetzner.cloud/reference/cloud#load-balancers
4
4
  */
5
5
 
6
- import type { HCloudClient } from "@/client/index";
6
+ import type { HCloudClient } from "../../client/index";
7
7
  import type {
8
8
  ListLoadBalancersParams,
9
9
  ListLoadBalancersResponse,
@@ -40,8 +40,8 @@ import type {
40
40
  DisableLoadBalancerPublicInterfaceResponse,
41
41
  GetLoadBalancerMetricsParams,
42
42
  GetLoadBalancerMetricsResponse,
43
- } from "@/apis/load-balancers/types";
44
- import { validate } from "@/validation/index";
43
+ } from "../../apis/load-balancers/types";
44
+ import { validate } from "../../validation/index";
45
45
  import {
46
46
  listLoadBalancersResponseSchema,
47
47
  createLoadBalancerRequestSchema,
@@ -80,7 +80,7 @@ import {
80
80
  disableLoadBalancerPublicInterfaceResponseSchema,
81
81
  getLoadBalancerMetricsRequestSchema,
82
82
  getLoadBalancerMetricsResponseSchema,
83
- } from "@/apis/load-balancers/schemas";
83
+ } from "../../apis/load-balancers/schemas";
84
84
 
85
85
  /**
86
86
  * Load Balancers API client
@@ -4,9 +4,9 @@
4
4
  */
5
5
 
6
6
  import { z } from "zod";
7
- import { actionSchema, actionResourceSchema } from "@/apis/actions/schemas";
8
- import { paginationMetaSchema } from "@/apis/common/schemas";
9
- import { locationSchema } from "@/apis/servers/schemas";
7
+ import { actionSchema, actionResourceSchema } from "../../apis/actions/schemas";
8
+ import { paginationMetaSchema } from "../../apis/common/schemas";
9
+ import { locationSchema } from "../../apis/servers/schemas";
10
10
 
11
11
  /**
12
12
  * Load Balancer algorithm type schema
@@ -3,7 +3,7 @@
3
3
  * @see https://docs.hetzner.cloud/reference/cloud#locations
4
4
  */
5
5
 
6
- import type { HCloudClient } from "@/client/index";
6
+ import type { HCloudClient } from "../../client/index";
7
7
  import type {
8
8
  ListLocationsParams,
9
9
  ListLocationsResponse,
@@ -11,14 +11,14 @@ import type {
11
11
  ListDataCentersParams,
12
12
  ListDataCentersResponse,
13
13
  GetDataCenterResponse,
14
- } from "@/apis/locations/types";
15
- import { validate } from "@/validation/index";
14
+ } from "../../apis/locations/types";
15
+ import { validate } from "../../validation/index";
16
16
  import {
17
17
  listLocationsResponseSchema,
18
18
  getLocationResponseSchema,
19
19
  listDataCentersResponseSchema,
20
20
  getDataCenterResponseSchema,
21
- } from "@/apis/locations/schemas";
21
+ } from "../../apis/locations/schemas";
22
22
 
23
23
  /**
24
24
  * Locations API client
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { z } from "zod";
7
- import { paginationMetaSchema } from "@/apis/common/schemas";
7
+ import { paginationMetaSchema } from "../../apis/common/schemas";
8
8
 
9
9
  /**
10
10
  * Location schema
@@ -3,7 +3,7 @@
3
3
  * @see https://docs.hetzner.cloud/reference/cloud#networks
4
4
  */
5
5
 
6
- import type { HCloudClient } from "@/client/index";
6
+ import type { HCloudClient } from "../../client/index";
7
7
  import type {
8
8
  ListNetworksParams,
9
9
  ListNetworksResponse,
@@ -28,8 +28,8 @@ import type {
28
28
  ChangeNetworkIpRangeResponse,
29
29
  ChangeNetworkProtectionParams,
30
30
  ChangeNetworkProtectionResponse,
31
- } from "@/apis/networks/types";
32
- import { validate } from "@/validation/index";
31
+ } from "../../apis/networks/types";
32
+ import { validate } from "../../validation/index";
33
33
  import {
34
34
  listNetworksResponseSchema,
35
35
  createNetworkRequestSchema,
@@ -52,7 +52,7 @@ import {
52
52
  changeNetworkIpRangeResponseSchema,
53
53
  changeNetworkProtectionRequestSchema,
54
54
  changeNetworkProtectionResponseSchema,
55
- } from "@/apis/networks/schemas";
55
+ } from "../../apis/networks/schemas";
56
56
 
57
57
  /**
58
58
  * Networks API client
@@ -4,9 +4,9 @@
4
4
  */
5
5
 
6
6
  import { z } from "zod";
7
- import { actionSchema, actionResourceSchema } from "@/apis/actions/schemas";
8
- import { paginationMetaSchema } from "@/apis/common/schemas";
9
- import { locationSchema } from "@/apis/servers/schemas";
7
+ import { actionSchema, actionResourceSchema } from "../../apis/actions/schemas";
8
+ import { paginationMetaSchema } from "../../apis/common/schemas";
9
+ import { locationSchema } from "../../apis/servers/schemas";
10
10
 
11
11
  /**
12
12
  * Network route destination schema
@@ -3,7 +3,7 @@
3
3
  * @see https://docs.hetzner.cloud/reference/cloud#placement-groups
4
4
  */
5
5
 
6
- import type { HCloudClient } from "@/client/index";
6
+ import type { HCloudClient } from "../../client/index";
7
7
  import type {
8
8
  ListPlacementGroupsParams,
9
9
  ListPlacementGroupsResponse,
@@ -13,8 +13,8 @@ import type {
13
13
  UpdatePlacementGroupParams,
14
14
  UpdatePlacementGroupResponse,
15
15
  DeletePlacementGroupResponse,
16
- } from "@/apis/placement-groups/types";
17
- import { validate } from "@/validation/index";
16
+ } from "../../apis/placement-groups/types";
17
+ import { validate } from "../../validation/index";
18
18
  import {
19
19
  listPlacementGroupsResponseSchema,
20
20
  createPlacementGroupRequestSchema,
@@ -23,7 +23,7 @@ import {
23
23
  updatePlacementGroupRequestSchema,
24
24
  updatePlacementGroupResponseSchema,
25
25
  deletePlacementGroupResponseSchema,
26
- } from "@/apis/placement-groups/schemas";
26
+ } from "../../apis/placement-groups/schemas";
27
27
 
28
28
  /**
29
29
  * Placement Groups API client
@@ -4,8 +4,8 @@
4
4
  */
5
5
 
6
6
  import { z } from "zod";
7
- import { actionSchema } from "@/apis/actions/schemas";
8
- import { paginationMetaSchema } from "@/apis/common/schemas";
7
+ import { actionSchema } from "../../apis/actions/schemas";
8
+ import { paginationMetaSchema } from "../../apis/common/schemas";
9
9
 
10
10
  /**
11
11
  * Placement Group type schema
@@ -3,10 +3,10 @@
3
3
  * @see https://docs.hetzner.cloud/reference/cloud#pricing
4
4
  */
5
5
 
6
- import type { HCloudClient } from "@/client/index";
7
- import type { GetPricingResponse } from "@/apis/pricing/types";
8
- import { validate } from "@/validation/index";
9
- import { getPricingResponseSchema } from "@/apis/pricing/schemas";
6
+ import type { HCloudClient } from "../../client/index";
7
+ import type { GetPricingResponse } from "../../apis/pricing/types";
8
+ import { validate } from "../../validation/index";
9
+ import { getPricingResponseSchema } from "../../apis/pricing/schemas";
10
10
 
11
11
  /**
12
12
  * Pricing API client
@@ -3,7 +3,7 @@
3
3
  * @see https://docs.hetzner.cloud/reference/cloud#primary-ips
4
4
  */
5
5
 
6
- import type { HCloudClient } from "@/client/index";
6
+ import type { HCloudClient } from "../../client/index";
7
7
  import type {
8
8
  ListPrimaryIPsParams,
9
9
  ListPrimaryIPsResponse,
@@ -23,8 +23,8 @@ import type {
23
23
  ChangePrimaryIPProtectionParams,
24
24
  ChangePrimaryIPProtectionResponse,
25
25
  UnassignPrimaryIPResponse,
26
- } from "@/apis/primary-ips/types";
27
- import { validate } from "@/validation/index";
26
+ } from "../../apis/primary-ips/types";
27
+ import { validate } from "../../validation/index";
28
28
  import {
29
29
  listPrimaryIPsResponseSchema,
30
30
  createPrimaryIPRequestSchema,
@@ -43,7 +43,7 @@ import {
43
43
  changePrimaryIPProtectionResponseSchema,
44
44
  unassignPrimaryIPRequestSchema,
45
45
  unassignPrimaryIPResponseSchema,
46
- } from "@/apis/primary-ips/schemas";
46
+ } from "../../apis/primary-ips/schemas";
47
47
 
48
48
  /**
49
49
  * Primary IPs API client