@daocloud-proto/leopard 0.16.0-rc2 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/leopard",
3
- "version":"0.16.0-rc2",
3
+ "version":"0.17.0-dev1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -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"})