@daocloud-proto/leopard 0.1.0-dev8 → 0.1.0-dev9

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.1.0-dev8",
3
+ "version":"0.1.0-dev9",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -21,18 +21,18 @@ export enum UnitType {
21
21
  COMPUTE_UNIT = "COMPUTE_UNIT",
22
22
  }
23
23
 
24
- export type ListBillingsRequest = {
24
+ export type ListBillsRequest = {
25
25
  start?: string
26
26
  end?: string
27
27
  page?: number
28
28
  pageSize?: number
29
- billingId?: string
29
+ billId?: string
30
30
  orderId?: string
31
31
  instanceId?: string
32
32
  }
33
33
 
34
- export type ListBillingsResponse = {
35
- items?: billing[]
34
+ export type ListBillsResponse = {
35
+ items?: bill[]
36
36
  pagination?: Pagination
37
37
  }
38
38
 
@@ -42,9 +42,9 @@ export type Pagination = {
42
42
  pageSize?: number
43
43
  }
44
44
 
45
- export type billing = {
45
+ export type bill = {
46
46
  username?: string
47
- billingId?: string
47
+ billId?: string
48
48
  billingCycle?: BillingCycle
49
49
  billingMonth?: string
50
50
  productName?: string
@@ -68,8 +68,8 @@ export type Instance = {
68
68
  id?: string
69
69
  }
70
70
 
71
- export class Billing {
72
- static ListBillings(req: ListBillingsRequest, initReq?: fm.InitReq): Promise<ListBillingsResponse> {
73
- return fm.fetchReq<ListBillingsRequest, ListBillingsResponse>(`/apis/leopard.io/v1alpha1/billings?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
71
+ export class Bill {
72
+ static ListBills(req: ListBillsRequest, initReq?: fm.InitReq): Promise<ListBillsResponse> {
73
+ return fm.fetchReq<ListBillsRequest, ListBillsResponse>(`/apis/leopard.io/v1alpha1/bills?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
74
74
  }
75
75
  }
@@ -1,19 +0,0 @@
1
- /* eslint-disable */
2
- // @ts-nocheck
3
- /*
4
- * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
- */
6
-
7
- import * as fm from "../fetch.pb"
8
- export type HelloRequest = {
9
- }
10
-
11
- export type HelloResponse = {
12
- message?: string
13
- }
14
-
15
- export class Hello {
16
- static Hello(req: HelloRequest, initReq?: fm.InitReq): Promise<HelloResponse> {
17
- return fm.fetchReq<HelloRequest, HelloResponse>(`/apis/leopard.io/v1alpha1/hello?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
18
- }
19
- }