@openmeter/client 1.0.0-beta-4ffb0202fcfc → 1.0.0-beta-be2666bd959f

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.
@@ -1,10 +1,11 @@
1
1
  import { type Client } from '../core.js';
2
2
  import { type RequestOptions } from '../lib/types.js';
3
- import type { ListInvoicesRequest, ListInvoicesResponse, GetInvoiceRequest, GetInvoiceResponse } from '../models/operations/invoices.js';
3
+ import type { ListInvoicesRequest, ListInvoicesResponse, GetInvoiceRequest, GetInvoiceResponse, UpdateInvoiceRequest, UpdateInvoiceResponse } from '../models/operations/invoices.js';
4
4
  export declare class Invoices {
5
5
  private readonly _client;
6
6
  constructor(_client: Client);
7
7
  list(request?: ListInvoicesRequest, options?: RequestOptions): Promise<ListInvoicesResponse>;
8
8
  get(request: GetInvoiceRequest, options?: RequestOptions): Promise<GetInvoiceResponse>;
9
+ update(request: UpdateInvoiceRequest, options?: RequestOptions): Promise<UpdateInvoiceResponse>;
9
10
  }
10
11
  //# sourceMappingURL=invoices.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { unwrap } from '../lib/types.js';
2
- import { listInvoices, getInvoice } from '../funcs/invoices.js';
2
+ import { listInvoices, getInvoice, updateInvoice } from '../funcs/invoices.js';
3
3
  export class Invoices {
4
4
  _client;
5
5
  constructor(_client) {
@@ -11,5 +11,8 @@ export class Invoices {
11
11
  async get(request, options) {
12
12
  return unwrap(await getInvoice(this._client, request, options));
13
13
  }
14
+ async update(request, options) {
15
+ return unwrap(await updateInvoice(this._client, request, options));
16
+ }
14
17
  }
15
18
  //# sourceMappingURL=invoices.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-4ffb0202fcfc",
3
+ "version": "1.0.0-beta-be2666bd959f",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://openmeter.io",
6
6
  "repository": {
@@ -28,6 +28,7 @@
28
28
  }
29
29
  },
30
30
  "scripts": {
31
- "build": "tsc"
31
+ "build": "tsc",
32
+ "typecheck": "tsc --noEmit"
32
33
  }
33
34
  }