@daocloud-proto/leopard 0.12.0-rc1 → 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-rc1",
3
+ "version":"0.12.0-rc2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -0,0 +1,53 @@
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
+ export type GetInviteInfoRequest = {
9
+ }
10
+
11
+ export type GetInviteInfoResponse = {
12
+ inviteCode?: string
13
+ inviteUrl?: string
14
+ }
15
+
16
+ export type InitInviteCodeRequest = {
17
+ }
18
+
19
+ export type InitInviteCodeResponse = {
20
+ }
21
+
22
+ export type ListInvitedUsersRequest = {
23
+ pageSize?: number
24
+ page?: number
25
+ }
26
+
27
+ export type ListInvitedUsersResponse = {
28
+ items?: InvitedUser[]
29
+ pagination?: Pagination
30
+ }
31
+
32
+ export type InvitedUser = {
33
+ username?: string
34
+ registerAt?: string
35
+ }
36
+
37
+ export type Pagination = {
38
+ total?: number
39
+ page?: number
40
+ pageSize?: number
41
+ }
42
+
43
+ export class Activity {
44
+ static GetInviteInfo(req: GetInviteInfoRequest, initReq?: fm.InitReq): Promise<GetInviteInfoResponse> {
45
+ return fm.fetchReq<GetInviteInfoRequest, GetInviteInfoResponse>(`/apis/leopard.io/v1alpha1/activity/invite/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
46
+ }
47
+ static InitInviteCode(req: InitInviteCodeRequest, initReq?: fm.InitReq): Promise<InitInviteCodeResponse> {
48
+ return fm.fetchReq<InitInviteCodeRequest, InitInviteCodeResponse>(`/apis/leopard.io/v1alpha1/activity/invite/code`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
49
+ }
50
+ static ListInvitedUsers(req: ListInvitedUsersRequest, initReq?: fm.InitReq): Promise<ListInvitedUsersResponse> {
51
+ return fm.fetchReq<ListInvitedUsersRequest, ListInvitedUsersResponse>(`/apis/leopard.io/v1alpha1/activity/invite/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
52
+ }
53
+ }