@daocloud-proto/leopard 0.14.0-rc2 → 0.14.0-rc4
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 +20 -0
package/package.json
CHANGED
package/v1alpha1/bill.pb.ts
CHANGED
|
@@ -79,6 +79,23 @@ export type ListBillsResponse = {
|
|
|
79
79
|
pagination?: Pagination
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
export type GetAccountBillAggregationRequest = {
|
|
83
|
+
workspaceId?: number
|
|
84
|
+
username?: string
|
|
85
|
+
startTime?: string
|
|
86
|
+
endTime?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type GetAccountBillAggregationResponse = {
|
|
90
|
+
items?: ProductBillAggregation[]
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type ProductBillAggregation = {
|
|
94
|
+
productName?: string
|
|
95
|
+
amountDue?: string
|
|
96
|
+
voucherPayment?: string
|
|
97
|
+
}
|
|
98
|
+
|
|
82
99
|
export type Pagination = {
|
|
83
100
|
total?: number
|
|
84
101
|
page?: number
|
|
@@ -174,6 +191,9 @@ export class Bill {
|
|
|
174
191
|
static ListBills(req: ListBillsRequest, initReq?: fm.InitReq): Promise<ListBillsResponse> {
|
|
175
192
|
return fm.fetchReq<ListBillsRequest, ListBillsResponse>(`/apis/leopard.io/v1alpha1/bills?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
176
193
|
}
|
|
194
|
+
static GetAccountBillAggregation(req: GetAccountBillAggregationRequest, initReq?: fm.InitReq): Promise<GetAccountBillAggregationResponse> {
|
|
195
|
+
return fm.fetchReq<GetAccountBillAggregationRequest, GetAccountBillAggregationResponse>(`/apis/leopard.io/v1alpha1/bills/aggregation?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
196
|
+
}
|
|
177
197
|
static ListMonthlyBills(req: ListMonthlyBillsRequest, initReq?: fm.InitReq): Promise<ListMonthlyBillsResponse> {
|
|
178
198
|
return fm.fetchReq<ListMonthlyBillsRequest, ListMonthlyBillsResponse>(`/apis/leopard.io/v1alpha1/bills/monthly?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
179
199
|
}
|