@daocloud-proto/leopard 0.6.0-dev1 → 0.6.0-dev3

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.6.0-dev1",
3
+ "version":"0.6.0-dev3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -151,6 +151,8 @@ export type CreateNewPurchaseOrderRequest = {
151
151
  export type CreateNewPurchaseOrderResponse = {
152
152
  orderId?: string
153
153
  createOrderStatus?: CreateOrderStatus
154
+ startTimestamp?: string
155
+ endTimestamp?: string
154
156
  }
155
157
 
156
158
  export type CreateQuantityChangeOrderRequest = {
@@ -164,6 +166,8 @@ export type CreateQuantityChangeOrderRequest = {
164
166
  export type CreateQuantityChangeOrderResponse = {
165
167
  orderId?: string
166
168
  createOrderStatus?: CreateOrderStatus
169
+ startTimestamp?: string
170
+ endTimestamp?: string
167
171
  }
168
172
 
169
173
  export type IsResourceOrderNextBillBalanceSufficientRequest = {
@@ -204,6 +208,8 @@ export type CreateTransformOrderRequest = {
204
208
  export type CreateTransformOrderResponse = {
205
209
  orderId?: string
206
210
  createOrderStatus?: CreateOrderStatus
211
+ startTimestamp?: string
212
+ endTimestamp?: string
207
213
  }
208
214
 
209
215
  export type CreateRenewOrderRequest = {
@@ -219,6 +225,8 @@ export type CreateRenewOrderRequest = {
219
225
  export type CreateRenewOrderResponse = {
220
226
  orderId?: string
221
227
  createOrderStatus?: CreateOrderStatus
228
+ startTimestamp?: string
229
+ endTimestamp?: string
222
230
  }
223
231
 
224
232
  export class Order {
@@ -19,6 +19,11 @@ export enum UnitType {
19
19
  THOUSAND_TOKENS = "THOUSAND_TOKENS",
20
20
  GB_DAY = "GB_DAY",
21
21
  INSTANCE_NUMBER = "INSTANCE_NUMBER",
22
+ PICTURE = "PICTURE",
23
+ DAY = "DAY",
24
+ WEEK = "WEEK",
25
+ MONTH = "MONTH",
26
+ YEAR = "YEAR",
22
27
  }
23
28
 
24
29
  export enum QuantityUnit {
@@ -0,0 +1,32 @@
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
+
9
+ export enum PeriodStatus {
10
+ Paid = "Paid",
11
+ NotPaid = "NotPaid",
12
+ }
13
+
14
+ export type GetResourceInfoRequest = {
15
+ resourceId?: string
16
+ }
17
+
18
+ export type GetResourceInfoResponse = {
19
+ periods?: ResourcePeriod[]
20
+ }
21
+
22
+ export type ResourcePeriod = {
23
+ startTimestamp?: string
24
+ endTimestamp?: string
25
+ status?: PeriodStatus
26
+ }
27
+
28
+ export class Resource {
29
+ static GetResourceInfo(req: GetResourceInfoRequest, initReq?: fm.InitReq): Promise<GetResourceInfoResponse> {
30
+ return fm.fetchReq<GetResourceInfoRequest, GetResourceInfoResponse>(`/v1alpha1.resource.Resource/GetResourceInfo`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
31
+ }
32
+ }