@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 +1 -1
- package/v1alpha1/activity.pb.ts +0 -7
- package/v1alpha1/voucher.pb.ts +0 -16
package/package.json
CHANGED
package/v1alpha1/activity.pb.ts
CHANGED
|
@@ -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 = {
|
package/v1alpha1/voucher.pb.ts
CHANGED
|
@@ -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
|
}
|