@openmeter/client 1.0.0-beta-7280f75db66f → 1.0.0-beta-05de7df7a13f
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 +39 -21
- package/dist/funcs/customers.d.ts +17 -1
- package/dist/funcs/customers.js +43 -0
- package/dist/funcs/governance.d.ts +18 -0
- package/dist/funcs/governance.js +48 -0
- package/dist/funcs/index.d.ts +2 -0
- package/dist/funcs/index.js +2 -0
- package/dist/funcs/invoices.d.ts +51 -0
- package/dist/funcs/invoices.js +125 -0
- package/dist/index.d.ts +3 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/customers.d.ts +7 -1
- package/dist/models/operations/governance.d.ts +9 -0
- package/dist/models/operations/governance.js +2 -0
- package/dist/models/operations/invoices.d.ts +45 -0
- package/dist/models/operations/invoices.js +2 -0
- package/dist/models/schemas.d.ts +3292 -634
- package/dist/models/schemas.js +108 -4
- package/dist/models/types.d.ts +83 -11
- package/dist/sdk/customers.d.ts +17 -1
- package/dist/sdk/customers.js +19 -1
- package/dist/sdk/internal.d.ts +92 -1
- package/dist/sdk/internal.js +111 -0
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
+
import type { Invoice, InvoicePagePaginatedResponse, ListInvoicesParamsFilter, SortQueryInput, UpdateInvoiceRequestInput } from '../types.js';
|
|
3
|
+
export interface ListInvoicesQuery {
|
|
4
|
+
/** Determines which page of the collection to retrieve. */
|
|
5
|
+
page?: {
|
|
6
|
+
size?: number;
|
|
7
|
+
number?: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Sort invoices returned in the response. Supported sort attributes:
|
|
11
|
+
*
|
|
12
|
+
* - `issued_at`
|
|
13
|
+
* - `created_at` (default)
|
|
14
|
+
* - `service_period_start`
|
|
15
|
+
*
|
|
16
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
17
|
+
* suffix is used to specify a descending order.
|
|
18
|
+
*/
|
|
19
|
+
sort?: SortQueryInput;
|
|
20
|
+
/**
|
|
21
|
+
* Filter invoices returned in the response.
|
|
22
|
+
*
|
|
23
|
+
* Examples:
|
|
24
|
+
*
|
|
25
|
+
* - `filter[status][oeq]=draft,issued`
|
|
26
|
+
* - `filter[customer_id]=01KPDB8K...`
|
|
27
|
+
* - `filter[issued_at][gte]=2024-01-01T00:00:00Z`
|
|
28
|
+
*/
|
|
29
|
+
filter?: ListInvoicesParamsFilter;
|
|
30
|
+
}
|
|
31
|
+
export type ListInvoicesRequest = AcceptDateStrings<ListInvoicesQuery>;
|
|
32
|
+
export type ListInvoicesResponse = InvoicePagePaginatedResponse;
|
|
33
|
+
export type GetInvoiceRequest = {
|
|
34
|
+
invoiceId: string;
|
|
35
|
+
};
|
|
36
|
+
export type GetInvoiceResponse = Invoice;
|
|
37
|
+
export type UpdateInvoiceRequest = AcceptDateStrings<{
|
|
38
|
+
invoiceId: string;
|
|
39
|
+
body: UpdateInvoiceRequestInput;
|
|
40
|
+
}>;
|
|
41
|
+
export type UpdateInvoiceResponse = Invoice;
|
|
42
|
+
export type DeleteInvoiceRequest = {
|
|
43
|
+
invoiceId: string;
|
|
44
|
+
};
|
|
45
|
+
export type DeleteInvoiceResponse = void;
|