@openmeter/client 1.0.0-beta-c16cbe1e4650 → 1.0.0-beta-d30d21dce71a
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 +7 -0
- package/dist/funcs/index.d.ts +1 -0
- package/dist/funcs/index.js +1 -0
- package/dist/funcs/invoices.d.ts +5 -0
- package/dist/funcs/invoices.js +10 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/dist/models/operations/customers.d.ts +2 -2
- package/dist/models/operations/invoices.d.ts +7 -0
- package/dist/models/operations/invoices.js +2 -0
- package/dist/models/schemas.d.ts +2000 -208
- package/dist/models/schemas.js +386 -37
- package/dist/models/types.d.ts +475 -32
- package/dist/sdk/invoices.d.ts +9 -0
- package/dist/sdk/invoices.js +12 -0
- package/dist/sdk/sdk.d.ts +3 -0
- package/dist/sdk/sdk.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Client } from '../core.js';
|
|
2
|
+
import { type RequestOptions } from '../lib/types.js';
|
|
3
|
+
import type { GetInvoiceRequest, GetInvoiceResponse } from '../models/operations/invoices.js';
|
|
4
|
+
export declare class Invoices {
|
|
5
|
+
private readonly _client;
|
|
6
|
+
constructor(_client: Client);
|
|
7
|
+
get(request: GetInvoiceRequest, options?: RequestOptions): Promise<GetInvoiceResponse>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=invoices.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { unwrap } from '../lib/types.js';
|
|
2
|
+
import { getInvoice } from '../funcs/invoices.js';
|
|
3
|
+
export class Invoices {
|
|
4
|
+
_client;
|
|
5
|
+
constructor(_client) {
|
|
6
|
+
this._client = _client;
|
|
7
|
+
}
|
|
8
|
+
async get(request, options) {
|
|
9
|
+
return unwrap(await getInvoice(this._client, request, options));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=invoices.js.map
|
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { Entitlements } from './entitlements.js';
|
|
|
6
6
|
import { Subscriptions } from './subscriptions.js';
|
|
7
7
|
import { Apps } from './apps.js';
|
|
8
8
|
import { Billing } from './billing.js';
|
|
9
|
+
import { Invoices } from './invoices.js';
|
|
9
10
|
import { Tax } from './tax.js';
|
|
10
11
|
import { Currencies } from './currencies.js';
|
|
11
12
|
import { Features } from './features.js';
|
|
@@ -30,6 +31,8 @@ export declare class OpenMeter extends Client {
|
|
|
30
31
|
get apps(): Apps;
|
|
31
32
|
private _billing?;
|
|
32
33
|
get billing(): Billing;
|
|
34
|
+
private _invoices?;
|
|
35
|
+
get invoices(): Invoices;
|
|
33
36
|
private _tax?;
|
|
34
37
|
get tax(): Tax;
|
|
35
38
|
private _currencies?;
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -6,6 +6,7 @@ import { Entitlements } from './entitlements.js';
|
|
|
6
6
|
import { Subscriptions } from './subscriptions.js';
|
|
7
7
|
import { Apps } from './apps.js';
|
|
8
8
|
import { Billing } from './billing.js';
|
|
9
|
+
import { Invoices } from './invoices.js';
|
|
9
10
|
import { Tax } from './tax.js';
|
|
10
11
|
import { Currencies } from './currencies.js';
|
|
11
12
|
import { Features } from './features.js';
|
|
@@ -44,6 +45,10 @@ export class OpenMeter extends Client {
|
|
|
44
45
|
get billing() {
|
|
45
46
|
return (this._billing ??= new Billing(this));
|
|
46
47
|
}
|
|
48
|
+
_invoices;
|
|
49
|
+
get invoices() {
|
|
50
|
+
return (this._invoices ??= new Invoices(this));
|
|
51
|
+
}
|
|
47
52
|
_tax;
|
|
48
53
|
get tax() {
|
|
49
54
|
return (this._tax ??= new Tax(this));
|