@daocloud-proto/hydra 0.5.0-dev-18 → 0.5.0-dev-23

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.
@@ -4,6 +4,13 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ export enum DBType {
8
+ DB_TYPE_UNSPECIFIED = "DB_TYPE_UNSPECIFIED",
9
+ MYSQL = "MYSQL",
10
+ POSTGRESQL = "POSTGRESQL",
11
+ SQLITE = "SQLITE",
12
+ }
13
+
7
14
  export enum Mode {
8
15
  MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
9
16
  CSP = "CSP",
@@ -11,6 +18,16 @@ export enum Mode {
11
18
  Any = "Any",
12
19
  }
13
20
 
21
+ export enum SearchIndexFieldBuilderType {
22
+ FIELD_TYPE_UNSPECIFIED = "FIELD_TYPE_UNSPECIFIED",
23
+ FILED = "FILED",
24
+ JSON_FILED_PATH = "JSON_FILED_PATH",
25
+ CONST = "CONST",
26
+ I18N_FIELD = "I18N_FIELD",
27
+ FUNC_REPLACE = "FUNC_REPLACE",
28
+ FUNC_CONCAT = "FUNC_CONCAT",
29
+ }
30
+
14
31
  export type NoParamsQuery = {
15
32
  }
16
33
 
@@ -27,12 +44,21 @@ export type I18nName = {
27
44
  enUs?: string
28
45
  }
29
46
 
47
+ export type SearchIndexFieldBuilderFuncCall = {
48
+ fields?: SearchIndexFieldBuilder[]
49
+ }
50
+
51
+ export type SearchIndexFieldBuilder = {
52
+ type?: SearchIndexFieldBuilderType
53
+ fieldName?: string
54
+ jsonFieldPath?: string[]
55
+ constValue?: string
56
+ funcCall?: SearchIndexFieldBuilderFuncCall
57
+ }
58
+
30
59
  export type SearchIndex = {
31
60
  searchKey?: string
32
- objectPath?: string
33
- customPath?: string
34
- dbPath?: string
35
- dbI18N?: boolean
61
+ fieldBuilder?: SearchIndexFieldBuilder
36
62
  }
37
63
 
38
64
  export type AuthResourceAction = {
@@ -9,6 +9,9 @@ export enum ErrorCode {
9
9
  // EN: resource not found: %v
10
10
  // ZH: 资源未找到:%v
11
11
  SYSTEM_NOT_FOUND_ERROR = "SYSTEM-NOT_FOUND_ERROR",
12
+ // EN: user is no real-name authentication
13
+ // ZH: 用户未实名认证
14
+ SYSTEM_NOT_VERIFIED_ERROR = "SYSTEM-NOT_VERIFIED_ERROR",
12
15
  // EN: order system error: %v
13
16
  // ZH: 订单系统错误:%v
14
17
  SYSTEM_ORDER_SYSTEM_ERROR = "SYSTEM-ORDER_SYSTEM_ERROR",
@@ -0,0 +1,23 @@
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 CurrentUserRequest = {
9
+ }
10
+
11
+ export type UserInfo = {
12
+ id?: string
13
+ username?: string
14
+ balance?: string
15
+ amount?: string
16
+ idVerified?: boolean
17
+ }
18
+
19
+ export class UserService {
20
+ static CurrentUser(req: CurrentUserRequest, initReq?: fm.InitReq): Promise<UserInfo> {
21
+ return fm.fetchReq<CurrentUserRequest, UserInfo>(`/apis/hydra.io/v1alpha1/current-user?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
22
+ }
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.5.0-dev-18",
3
+ "version": "v0.5.0-dev-23",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"