@ebowwa/hetzner 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/types.ts +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebowwa/hetzner",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Hetzner Cloud API client - servers, volumes, SSH keys, actions, pricing",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -8,27 +8,27 @@
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./index.ts",
11
- "default": "./index.js"
11
+ "default": "./index.ts"
12
12
  },
13
13
  "./client": {
14
14
  "types": "./client.ts",
15
- "default": "./client.js"
15
+ "default": "./client.ts"
16
16
  },
17
17
  "./types": {
18
18
  "types": "./types.ts",
19
- "default": "./types.js"
19
+ "default": "./types.ts"
20
20
  },
21
21
  "./schemas": {
22
22
  "types": "./schemas.ts",
23
- "default": "./schemas.js"
23
+ "default": "./schemas.ts"
24
24
  },
25
25
  "./bootstrap": {
26
26
  "types": "./bootstrap/index.ts",
27
- "default": "./bootstrap/index.js"
27
+ "default": "./bootstrap/index.ts"
28
28
  },
29
29
  "./onboarding": {
30
30
  "types": "./onboarding/index.ts",
31
- "default": "./onboarding/index.js"
31
+ "default": "./onboarding/index.ts"
32
32
  }
33
33
  },
34
34
  "keywords": [
package/types.ts CHANGED
@@ -266,11 +266,11 @@ export interface HetznerVolume {
266
266
  id: number;
267
267
  name: string;
268
268
  status: VolumeStatus;
269
- server: number | null;
269
+ server?: number;
270
270
  size: number;
271
- linux_device: string | null;
272
- format: string | null;
273
- location: {
271
+ linux_device?: string;
272
+ format?: string;
273
+ location?: {
274
274
  id: number;
275
275
  name: string;
276
276
  description: string;
@@ -278,8 +278,8 @@ export interface HetznerVolume {
278
278
  city: string;
279
279
  latitude: number;
280
280
  longitude: number;
281
- } | null;
282
- labels: Record<string, string>;
281
+ };
282
+ labels: Record<string, any>;
283
283
  created: string;
284
284
  protection: {
285
285
  delete: boolean;