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

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-dev32",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -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
  }
@@ -63,11 +63,16 @@ export type GetSKURequest = {
63
63
  id?: string
64
64
  }
65
65
 
66
+ export type I18nWithValue = {
67
+ value?: string
68
+ zhCnName?: string
69
+ enUsName?: string
70
+ }
71
+
66
72
  export type SpecField = {
67
73
  specId?: number
68
- key?: string
69
- value?: string
70
- keyName?: string
74
+ key?: I18nWithValue
75
+ value?: I18nWithValue
71
76
  }
72
77
 
73
78
  export type ListRegionsRequest = {