@daocloud-proto/leopard 0.12.0-dev1 → 0.12.0-rc2

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.12.0-dev1",
3
+ "version":"0.12.0-rc2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -8,15 +8,9 @@ import * as fm from "../fetch.pb"
8
8
  export type GetInviteInfoRequest = {
9
9
  }
10
10
 
11
- export type InviteRewardInfo = {
12
- rewardText?: string
13
- rewardDescriptionLink?: string
14
- }
15
-
16
11
  export type GetInviteInfoResponse = {
17
12
  inviteCode?: string
18
13
  inviteUrl?: string
19
- inviteRewardInfo?: InviteRewardInfo
20
14
  }
21
15
 
22
16
  export type InitInviteCodeRequest = {
@@ -28,7 +22,6 @@ export type InitInviteCodeResponse = {
28
22
  export type ListInvitedUsersRequest = {
29
23
  pageSize?: number
30
24
  page?: number
31
- search?: string
32
25
  }
33
26
 
34
27
  export type ListInvitedUsersResponse = {
@@ -77,26 +77,10 @@ export type GetVoucherStatByCurrentUserResponse = {
77
77
  count?: number
78
78
  }
79
79
 
80
- export type BatchCreateAndActiveVouchersRequest = {
81
- users?: string[]
82
- description?: string
83
- totalAmount?: string
84
- effectiveDays?: number
85
- quantity?: number
86
- regions?: string[]
87
- expireTimestamp?: string
88
- }
89
-
90
- export type BatchCreateAndActiveVouchersResponse = {
91
- }
92
-
93
80
  export class Voucher {
94
81
  static BatchCreateVouchers(req: BatchCreateVouchersRequest, initReq?: fm.InitReq): Promise<BatchCreateVouchersResponse> {
95
82
  return fm.fetchReq<BatchCreateVouchersRequest, BatchCreateVouchersResponse>(`/apis/leopard.io/v1alpha1/vouchers/batch-create`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
96
83
  }
97
- static BatchCreateAndActiveVouchers(req: BatchCreateAndActiveVouchersRequest, initReq?: fm.InitReq): Promise<BatchCreateAndActiveVouchersResponse> {
98
- return fm.fetchReq<BatchCreateAndActiveVouchersRequest, BatchCreateAndActiveVouchersResponse>(`/apis/leopard.io/v1alpha1/vouchers/batch-create-active`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
99
- }
100
84
  static ActivateVoucher(req: ActivateVoucherRequest, initReq?: fm.InitReq): Promise<ActivateVoucherResponse> {
101
85
  return fm.fetchReq<ActivateVoucherRequest, ActivateVoucherResponse>(`/apis/leopard.io/v1alpha1/vouchers/activate`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
102
86
  }