File tree Expand file tree Collapse file tree 3 files changed +68
-1
lines changed Expand file tree Collapse file tree 3 files changed +68
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,38 @@ const client = weaviate.client({
5
5
host : 'localhost:8080' ,
6
6
} ) ;
7
7
8
+ console . log (
9
+ JSON . stringify (
10
+ new weaviate . AuthAccessTokenCredentials ( {
11
+ accessToken : 'token123' ,
12
+ expiresIn : 123 ,
13
+ } )
14
+ )
15
+ ) ;
16
+
17
+ console . log (
18
+ JSON . stringify (
19
+ new weaviate . AuthUserPasswordCredentials ( {
20
+ username : 'user123' ,
21
+ password : 'password' ,
22
+ } )
23
+ )
24
+ ) ;
25
+
26
+ console . log (
27
+ JSON . stringify (
28
+ new weaviate . AuthClientCredentials ( {
29
+ clientSecret : 'secret123' ,
30
+ } )
31
+ )
32
+ ) ;
33
+
34
+ console . log ( weaviate . backup . Backend . GCS ) ;
35
+ console . log ( weaviate . batch . DeleteOutput . MINIMAL ) ;
36
+ console . log ( weaviate . cluster . NodeStatus . HEALTHY ) ;
37
+ console . log ( weaviate . filters . Operator . AND ) ;
38
+ console . log ( weaviate . replication . ConsistencyLevel . QUORUM ) ;
39
+
8
40
client . misc
9
41
. metaGetter ( )
10
42
. do ( )
Original file line number Diff line number Diff line change @@ -5,6 +5,38 @@ const client = weaviate.client({
5
5
host : 'localhost:8080' ,
6
6
} ) ;
7
7
8
+ console . log (
9
+ JSON . stringify (
10
+ new weaviate . AuthAccessTokenCredentials ( {
11
+ accessToken : 'token123' ,
12
+ expiresIn : 123 ,
13
+ } )
14
+ )
15
+ ) ;
16
+
17
+ console . log (
18
+ JSON . stringify (
19
+ new weaviate . AuthUserPasswordCredentials ( {
20
+ username : 'user123' ,
21
+ password : 'password' ,
22
+ } )
23
+ )
24
+ ) ;
25
+
26
+ console . log (
27
+ JSON . stringify (
28
+ new weaviate . AuthClientCredentials ( {
29
+ clientSecret : 'secret123' ,
30
+ } )
31
+ )
32
+ ) ;
33
+
34
+ console . log ( weaviate . backup . Backend . GCS ) ;
35
+ console . log ( weaviate . batch . DeleteOutput . MINIMAL ) ;
36
+ console . log ( weaviate . cluster . NodeStatus . HEALTHY ) ;
37
+ console . log ( weaviate . filters . Operator . AND ) ;
38
+ console . log ( weaviate . replication . ConsistencyLevel . QUORUM ) ;
39
+
8
40
client . misc
9
41
. metaGetter ( )
10
42
. do ( )
Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ const app = {
78
78
filters : filtersConsts ,
79
79
cluster : clusterConsts ,
80
80
replication : replicationConsts ,
81
+
82
+ AuthUserPasswordCredentials,
83
+ AuthAccessTokenCredentials,
84
+ AuthClientCredentials,
81
85
} ;
82
86
83
87
function initDbVersionProvider ( conn : Connection ) {
@@ -97,4 +101,3 @@ function initDbVersionProvider(conn: Connection) {
97
101
98
102
module . exports = app ;
99
103
export default app ;
100
- export { AuthUserPasswordCredentials , AuthAccessTokenCredentials , Operator } ;
You can’t perform that action at this time.
0 commit comments