@daocloud-proto/hydra 0.5.0-dev-20 → 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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.5.0-dev-20",
3
+ "version": "v0.5.0-dev-23",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"