@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 +1 -1
- package/src/apis/images/index.ts +4 -4
- package/src/apis/images/schemas.ts +2 -2
- package/src/apis/isos/index.ts +4 -4
- package/src/apis/isos/schemas.ts +1 -1
- package/src/apis/load-balancers/index.ts +4 -4
- package/src/apis/load-balancers/schemas.ts +3 -3
- package/src/apis/locations/index.ts +4 -4
- package/src/apis/locations/schemas.ts +1 -1
- package/src/apis/networks/index.ts +4 -4
- package/src/apis/networks/schemas.ts +3 -3
- package/src/apis/placement-groups/index.ts +4 -4
- package/src/apis/placement-groups/schemas.ts +2 -2
- package/src/apis/pricing/index.ts +4 -4
- package/src/apis/primary-ips/index.ts +4 -4
package/package.json
CHANGED
package/src/apis/images/index.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @see https://docs.hetzner.cloud/reference/cloud#images
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { HCloudClient } from "
|
|
7
|
-
import { validate } from "
|
|
8
|
-
import { deleteImageResponseSchema, getImageResponseSchema, listImagesResponseSchema, updateImageRequestSchema, updateImageResponseSchema } from "
|
|
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 "
|
|
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 "
|
|
8
|
-
import { actionSchema } from "
|
|
7
|
+
import { paginationMetaSchema } from "../../apis/common/schemas";
|
|
8
|
+
import { actionSchema } from "../../apis/actions/schemas";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Image status schema
|
package/src/apis/isos/index.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* @see https://docs.hetzner.cloud/reference/cloud#isos
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { HCloudClient } from "
|
|
7
|
-
import type { ListISOsParams, ListISOsResponse, GetISOResponse } from "
|
|
8
|
-
import { validate } from "
|
|
9
|
-
import { listISOsResponseSchema, getISOResponseSchema } from "
|
|
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
|
package/src/apis/isos/schemas.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @see https://docs.hetzner.cloud/reference/cloud#load-balancers
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { HCloudClient } from "
|
|
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 "
|
|
44
|
-
import { validate } from "
|
|
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 "
|
|
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 "
|
|
8
|
-
import { paginationMetaSchema } from "
|
|
9
|
-
import { locationSchema } from "
|
|
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 "
|
|
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 "
|
|
15
|
-
import { validate } from "
|
|
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 "
|
|
21
|
+
} from "../../apis/locations/schemas";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Locations API client
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @see https://docs.hetzner.cloud/reference/cloud#networks
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { HCloudClient } from "
|
|
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 "
|
|
32
|
-
import { validate } from "
|
|
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 "
|
|
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 "
|
|
8
|
-
import { paginationMetaSchema } from "
|
|
9
|
-
import { locationSchema } from "
|
|
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 "
|
|
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 "
|
|
17
|
-
import { validate } from "
|
|
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 "
|
|
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 "
|
|
8
|
-
import { paginationMetaSchema } from "
|
|
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 "
|
|
7
|
-
import type { GetPricingResponse } from "
|
|
8
|
-
import { validate } from "
|
|
9
|
-
import { getPricingResponseSchema } from "
|
|
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 "
|
|
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 "
|
|
27
|
-
import { validate } from "
|
|
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 "
|
|
46
|
+
} from "../../apis/primary-ips/schemas";
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Primary IPs API client
|