@daocloud-proto/leopard 0.1.0-dev31 → 0.1.0-dev33

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-dev31",
3
+ "version":"0.1.0-dev33",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -58,6 +58,7 @@ export type bill = {
58
58
  orderPrice?: string
59
59
  couponPayment?: string
60
60
  amountDue?: string
61
+ billingItem?: string
61
62
  }
62
63
 
63
64
  export type BillingCycle = {
@@ -31,7 +31,7 @@ export enum UnitType {
31
31
  HOUR = "HOUR",
32
32
  THOUSAND_TOKENS = "THOUSAND_TOKENS",
33
33
  GB_DAY = "GB_DAY",
34
- COMPUTE_UNIT = "COMPUTE_UNIT",
34
+ INSTANCE_NUMBER = "INSTANCE_NUMBER",
35
35
  }
36
36
 
37
37
  export enum CreateOrderStatus {
@@ -58,7 +58,6 @@ export type ListOrdersRequest = {
58
58
  end?: string
59
59
  page?: number
60
60
  pageSize?: number
61
- resourceName?: string
62
61
  }
63
62
 
64
63
  export type Orders = {
@@ -165,22 +164,6 @@ export type IsResourceOrderNextBillBalanceSufficientResponse = {
165
164
  sufficient?: boolean
166
165
  }
167
166
 
168
- export type GetResourceOrderInfoByResourceIDRequest = {
169
- resourceId?: string
170
- }
171
-
172
- export type GetResourceOrderInfoByResourceIDResponse = {
173
- resourceId?: string
174
- resourceName?: string
175
- username?: string
176
- skuId?: string
177
- productName?: string
178
- billingType?: BillingType
179
- meteringUnit?: UnitType
180
- unitPrice?: string
181
- quantity?: number
182
- }
183
-
184
167
  export class Order {
185
168
  static ListOrders(req: ListOrdersRequest, initReq?: fm.InitReq): Promise<ListOrdersResponse> {
186
169
  return fm.fetchReq<ListOrdersRequest, ListOrdersResponse>(`/apis/leopard.io/v1alpha1/orders?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -188,9 +171,6 @@ export class Order {
188
171
  static GetOrder(req: GetOrderRequest, initReq?: fm.InitReq): Promise<GetOrderResponse> {
189
172
  return fm.fetchReq<GetOrderRequest, GetOrderResponse>(`/apis/leopard.io/v1alpha1/orders/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
190
173
  }
191
- static GetResourceOrderInfoByResourceID(req: GetResourceOrderInfoByResourceIDRequest, initReq?: fm.InitReq): Promise<GetResourceOrderInfoByResourceIDResponse> {
192
- return fm.fetchReq<GetResourceOrderInfoByResourceIDRequest, GetResourceOrderInfoByResourceIDResponse>(`/apis/leopard.io/v1alpha1/orders/resources-info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
193
- }
194
174
  static GetProducts(req: GetProductsRequest, initReq?: fm.InitReq): Promise<GetProductsResponse> {
195
175
  return fm.fetchReq<GetProductsRequest, GetProductsResponse>(`/apis/leopard.io/v1alpha1/orders/products?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
196
176
  }