@daocloud-proto/leopard 0.16.0 → 0.17.0-dev1
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/package.json +1 -1
- package/v1alpha1/bill.pb.ts +6 -0
package/package.json
CHANGED
package/v1alpha1/bill.pb.ts
CHANGED
|
@@ -82,6 +82,8 @@ export type QueryBillsRequest = {
|
|
|
82
82
|
userId?: string[]
|
|
83
83
|
skuId?: string[]
|
|
84
84
|
productName?: string[]
|
|
85
|
+
filter?: {[key: string]: FilterStringArr}
|
|
86
|
+
filterByAnd?: boolean
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
export type ListBillsResponse = {
|
|
@@ -214,6 +216,10 @@ export type CalculateCountUsageBillResponse = {
|
|
|
214
216
|
price?: string
|
|
215
217
|
}
|
|
216
218
|
|
|
219
|
+
export type FilterStringArr = {
|
|
220
|
+
values?: string[]
|
|
221
|
+
}
|
|
222
|
+
|
|
217
223
|
export class Bill {
|
|
218
224
|
static ListBills(req: ListBillsRequest, initReq?: fm.InitReq): Promise<ListBillsResponse> {
|
|
219
225
|
return fm.fetchReq<ListBillsRequest, ListBillsResponse>(`/apis/leopard.io/v1alpha1/bills?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|