@daocloud-proto/leopard 0.8.0-dev7 → 0.8.0-dev8

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.8.0-dev7",
3
+ "version":"0.8.0-dev8",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -42,19 +42,16 @@ export enum ExpenseType {
42
42
  }
43
43
 
44
44
  export type ExportBillsReportRequest = {
45
+ accountId?: string
46
+ productName?: string
45
47
  start?: string
46
48
  end?: string
47
49
  exportType?: ExportTypes
48
- billId?: string
49
- orderId?: string
50
- resourceId?: string
51
- billingType?: string
52
- productName?: string
53
- username?: string
54
50
  }
55
51
 
56
52
  export type ExportMonthlyBillsReportRequest = {
57
- billingMonth?: string
53
+ startMonth?: string
54
+ endMonth?: string
58
55
  exportType?: ExportTypes
59
56
  }
60
57
 
@@ -181,6 +178,6 @@ export class Bill {
181
178
  return fm.fetchReq<ExportBillsReportRequest, GoogleApiHttpbody.HttpBody>(`/apis/leopard.io/v1alpha1/export/bills?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
182
179
  }
183
180
  static ExportMonthlyBills(req: ExportMonthlyBillsReportRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
184
- return fm.fetchReq<ExportMonthlyBillsReportRequest, GoogleApiHttpbody.HttpBody>(`/apis/leopard.io/v1alpha1/export/bills/monthly/${req["billingMonth"]}?${fm.renderURLSearchParams(req, ["billingMonth"])}`, {...initReq, method: "GET"})
181
+ return fm.fetchReq<ExportMonthlyBillsReportRequest, GoogleApiHttpbody.HttpBody>(`/apis/leopard.io/v1alpha1/export/bills/monthly?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
185
182
  }
186
183
  }
@@ -0,0 +1,67 @@
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
+ import * as GoogleApiHttpbody from "../google/api/httpbody.pb"
9
+
10
+ export enum ExportTypes {
11
+ excel = "excel",
12
+ }
13
+
14
+ export enum Account_Type {
15
+ all_accounts = "all_accounts",
16
+ main_account = "main_account",
17
+ sub_account = "sub_account",
18
+ }
19
+
20
+ export enum GproductType {
21
+ all_gproduct = "all_gproduct",
22
+ zestu = "zestu",
23
+ hydra = "hydra",
24
+ }
25
+
26
+ export type ExportOrdersRequest = {
27
+ accountType?: Account_Type
28
+ gproduct?: GproductType
29
+ start?: string
30
+ end?: string
31
+ exportType?: ExportTypes
32
+ }
33
+
34
+ export type ExportTransactionsRequest = {
35
+ accountType?: Account_Type
36
+ start?: string
37
+ end?: string
38
+ exportType?: ExportTypes
39
+ }
40
+
41
+ export type ExportBillsReportRequest = {
42
+ accountType?: Account_Type
43
+ gproduct?: GproductType
44
+ start?: string
45
+ end?: string
46
+ exportType?: ExportTypes
47
+ }
48
+
49
+ export type ExportMonthlyBillsReportRequest = {
50
+ billingMonth?: string
51
+ exportType?: ExportTypes
52
+ }
53
+
54
+ export class Export {
55
+ static ExportOrders(req: ExportOrdersRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
56
+ return fm.fetchReq<ExportOrdersRequest, GoogleApiHttpbody.HttpBody>(`/apis/leopard.io/v1alpha1/export/orders?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
57
+ }
58
+ static ExportTransactions(req: ExportTransactionsRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
59
+ return fm.fetchReq<ExportTransactionsRequest, GoogleApiHttpbody.HttpBody>(`/apis/leopard.io/v1alpha1/export/transactions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
60
+ }
61
+ static ExportBills(req: ExportBillsReportRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
62
+ return fm.fetchReq<ExportBillsReportRequest, GoogleApiHttpbody.HttpBody>(`/apis/leopard.io/v1alpha1/export/bills?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
63
+ }
64
+ static ExportMonthlyBills(req: ExportMonthlyBillsReportRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
65
+ return fm.fetchReq<ExportMonthlyBillsReportRequest, GoogleApiHttpbody.HttpBody>(`/apis/leopard.io/v1alpha1/export/bills/monthly/${req["billingMonth"]}?${fm.renderURLSearchParams(req, ["billingMonth"])}`, {...initReq, method: "GET"})
66
+ }
67
+ }
@@ -5,6 +5,11 @@
5
5
  */
6
6
 
7
7
  import * as fm from "../fetch.pb"
8
+ import * as GoogleApiHttpbody from "../google/api/httpbody.pb"
9
+
10
+ export enum ExportTypes {
11
+ excel = "excel",
12
+ }
8
13
 
9
14
  export enum OrderType {
10
15
  PURCHASE = "PURCHASE",
@@ -49,6 +54,14 @@ export enum CreateOrderStatus {
49
54
  INSUFFICIENT_INVENTORY = "INSUFFICIENT_INVENTORY",
50
55
  }
51
56
 
57
+ export type ExportOrdersRequest = {
58
+ accountId?: string
59
+ productName?: string
60
+ start?: string
61
+ end?: string
62
+ exportType?: ExportTypes
63
+ }
64
+
52
65
  export type Pagination = {
53
66
  total?: number
54
67
  page?: number
@@ -272,4 +285,7 @@ export class Order {
272
285
  static InvalidateOrder(req: InvalidateOrderRequest, initReq?: fm.InitReq): Promise<InvalidateOrderResponse> {
273
286
  return fm.fetchReq<InvalidateOrderRequest, InvalidateOrderResponse>(`/v1alpha1.order.Order/InvalidateOrder`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
274
287
  }
288
+ static ExportOrders(req: ExportOrdersRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
289
+ return fm.fetchReq<ExportOrdersRequest, GoogleApiHttpbody.HttpBody>(`/apis/leopard.io/v1alpha1/export/orders?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
290
+ }
275
291
  }
@@ -29,15 +29,10 @@ export enum PaymentType {
29
29
  }
30
30
 
31
31
  export type ExportTransactionsRequest = {
32
+ accountId?: string
32
33
  start?: string
33
34
  end?: string
34
35
  exportType?: ExportTypes
35
- serialNumber?: string
36
- billingId?: string
37
- paymentType?: string
38
- transactionType?: string
39
- transactionChannel?: string
40
- username?: string
41
36
  }
42
37
 
43
38
  export type ListTransactionsRequest = {