woonplan-packages-redishelper 2.1.956 → 2.1.957
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/dist/tsc/types.d.ts +54 -0
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
import { Broker } from "./main";
|
|
3
|
+
interface JsonStringifiedMap{
|
|
4
|
+
dataType : 'Map',
|
|
5
|
+
value : any[]
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface RedisMessage{
|
|
9
|
+
[index: string]: any;
|
|
10
|
+
}
|
|
11
|
+
interface Struct{
|
|
12
|
+
[index: string]: any;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface RedisConfig{
|
|
16
|
+
REDISURL: string | number | undefined
|
|
17
|
+
REDISPW: string | undefined
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface RedisStreamEntry{
|
|
21
|
+
id : string
|
|
22
|
+
message:RedisMessage
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type StreamMessage = [
|
|
26
|
+
string, StreamMessageParameters
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
type StreamMessageParameters = string[]
|
|
30
|
+
type StreamResponse = [
|
|
31
|
+
string, StreamMessage[]
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
interface DecypheredParameters{
|
|
35
|
+
[index:string] : string | number | Struct
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface DecypheredMessage{
|
|
39
|
+
id : string
|
|
40
|
+
parameters : DecypheredParameters
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface DecypheredResponse{
|
|
44
|
+
stream : string,
|
|
45
|
+
messages : DecypheredMessage[]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface RollbarConfig{
|
|
49
|
+
accessToken : string
|
|
50
|
+
environment : string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
export { RollbarConfig,DecypheredResponse,DecypheredMessage, DecypheredParameters, StreamMessage, StreamResponse, Struct, JsonStringifiedMap, RedisConfig, Broker }
|
package/package.json
CHANGED