@vintr/node-sdk 1.1.1 → 1.1.3

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/README.md CHANGED
@@ -61,9 +61,7 @@ Resolves an alias to its associated location and metadata.
61
61
  delivery: "Use the designated delivery entrance.",
62
62
  autonomous: "Approach from the east access road."
63
63
  }
64
- },
65
- createdAt: "2026-08-18T20:39:52.671Z",
66
- updatedAt: "2026-08-18T20:39:52.671Z"
64
+ }
67
65
  }
68
66
  ```
69
67
 
package/dist/client.js CHANGED
@@ -46,9 +46,9 @@ export class VintrClient {
46
46
  });
47
47
  }
48
48
  async resolveAlias(params) {
49
- const url = new URL(`/${params.alias}`, this.baseUrl);
49
+ const url = new URL(`/aliases/${params.alias}`, this.baseUrl);
50
50
  return this.request(url.pathname, {
51
- "X-Code": params.code,
51
+ "x-code": params.code,
52
52
  });
53
53
  }
54
54
  }
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { AliasAPI } from './alias.js';
1
+ import { AliasAPI } from "./alias.js";
2
2
  export declare class Vintr {
3
3
  readonly alias: AliasAPI;
4
4
  private client;
5
5
  constructor(apiKey: string);
6
6
  }
7
- export type { Address, Geo, Instructions, Location, AliasResponse, ErrorResponse, ResolveAliasParams } from './types.js';
7
+ export type { Address, Geo, Instructions, Location, AliasResponse, ErrorResponse, ResolveAliasParams, } from "./types.js";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { VintrClient } from './client.js';
2
- import { AliasAPI } from './alias.js';
1
+ import { VintrClient } from "./client.js";
2
+ import { AliasAPI } from "./alias.js";
3
3
  export class Vintr {
4
4
  constructor(apiKey) {
5
5
  this.client = new VintrClient(apiKey);
package/dist/types.d.ts CHANGED
@@ -25,10 +25,8 @@ export interface Location {
25
25
  }
26
26
  export interface AliasResponse {
27
27
  alias: string;
28
- type?: 'business' | 'individual';
28
+ type?: "business" | "individual";
29
29
  location?: Location;
30
- createdAt?: string;
31
- updatedAt?: string;
32
30
  }
33
31
  export interface ErrorResponse {
34
32
  error: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vintr/node-sdk",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Minimal, elegant Vintr API SDK for Node.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",