@redis/bloom 1.2.0 → 2.0.0-next.2

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.
Files changed (223) hide show
  1. package/dist/lib/commands/bloom/ADD.d.ts +11 -0
  2. package/dist/lib/commands/bloom/ADD.js +11 -0
  3. package/dist/lib/commands/bloom/CARD.d.ts +8 -0
  4. package/dist/lib/commands/bloom/CARD.js +10 -0
  5. package/dist/lib/commands/bloom/EXISTS.d.ts +11 -0
  6. package/dist/lib/commands/bloom/EXISTS.js +11 -0
  7. package/dist/lib/commands/bloom/INFO.d.ts +8 -0
  8. package/dist/lib/commands/bloom/INFO.js +11 -0
  9. package/dist/lib/commands/bloom/INSERT.d.ts +19 -0
  10. package/dist/lib/commands/bloom/INSERT.js +29 -0
  11. package/dist/lib/commands/bloom/LOADCHUNK.d.ts +8 -0
  12. package/dist/lib/commands/bloom/LOADCHUNK.js +10 -0
  13. package/dist/lib/commands/bloom/MADD.d.ts +12 -0
  14. package/dist/lib/commands/bloom/MADD.js +12 -0
  15. package/dist/lib/commands/bloom/MEXISTS.d.ts +12 -0
  16. package/dist/lib/commands/bloom/MEXISTS.js +12 -0
  17. package/dist/lib/commands/bloom/RESERVE.d.ts +12 -0
  18. package/dist/lib/commands/bloom/RESERVE.js +17 -0
  19. package/dist/lib/commands/bloom/SCANDUMP.d.ts +11 -0
  20. package/dist/lib/commands/bloom/SCANDUMP.js +15 -0
  21. package/dist/lib/commands/bloom/index.d.ts +159 -0
  22. package/dist/lib/commands/bloom/index.js +37 -0
  23. package/dist/lib/commands/count-min-sketch/INCRBY.d.ts +12 -0
  24. package/dist/lib/commands/count-min-sketch/INCRBY.js +22 -0
  25. package/dist/lib/commands/count-min-sketch/INFO.d.ts +29 -0
  26. package/dist/lib/commands/count-min-sketch/INFO.js +17 -0
  27. package/dist/lib/commands/count-min-sketch/INITBYDIM.d.ts +8 -0
  28. package/dist/lib/commands/count-min-sketch/INITBYDIM.js +10 -0
  29. package/dist/lib/commands/count-min-sketch/INITBYPROB.d.ts +8 -0
  30. package/dist/lib/commands/count-min-sketch/INITBYPROB.js +10 -0
  31. package/dist/lib/commands/count-min-sketch/MERGE.d.ts +13 -0
  32. package/dist/lib/commands/count-min-sketch/MERGE.js +25 -0
  33. package/dist/lib/commands/count-min-sketch/QUERY.d.ts +9 -0
  34. package/dist/lib/commands/count-min-sketch/QUERY.js +11 -0
  35. package/dist/lib/commands/count-min-sketch/index.d.ts +89 -0
  36. package/dist/lib/commands/count-min-sketch/index.js +25 -0
  37. package/dist/lib/commands/cuckoo/ADD.d.ts +11 -0
  38. package/dist/lib/commands/cuckoo/ADD.js +11 -0
  39. package/dist/lib/commands/cuckoo/ADDNX.d.ts +11 -0
  40. package/dist/lib/commands/cuckoo/ADDNX.js +11 -0
  41. package/dist/lib/commands/cuckoo/COUNT.d.ts +8 -0
  42. package/dist/lib/commands/cuckoo/COUNT.js +10 -0
  43. package/dist/lib/commands/cuckoo/DEL.d.ts +11 -0
  44. package/dist/lib/commands/cuckoo/DEL.js +11 -0
  45. package/dist/lib/commands/cuckoo/EXISTS.d.ts +11 -0
  46. package/dist/lib/commands/cuckoo/EXISTS.js +11 -0
  47. package/dist/lib/commands/cuckoo/INFO.d.ts +8 -0
  48. package/dist/lib/commands/cuckoo/INFO.js +51 -0
  49. package/dist/lib/commands/cuckoo/INSERT.d.ts +17 -0
  50. package/dist/lib/commands/cuckoo/INSERT.js +22 -0
  51. package/dist/lib/commands/cuckoo/INSERTNX.d.ts +10 -0
  52. package/dist/lib/commands/cuckoo/INSERTNX.js +32 -0
  53. package/dist/lib/commands/cuckoo/LOADCHUNK.d.ts +8 -0
  54. package/dist/lib/commands/cuckoo/LOADCHUNK.js +10 -0
  55. package/dist/lib/commands/cuckoo/RESERVE.d.ts +13 -0
  56. package/dist/lib/commands/cuckoo/RESERVE.js +20 -0
  57. package/dist/lib/commands/cuckoo/SCANDUMP.d.ts +11 -0
  58. package/dist/lib/commands/cuckoo/SCANDUMP.js +15 -0
  59. package/dist/lib/commands/cuckoo/index.d.ts +177 -0
  60. package/dist/lib/commands/cuckoo/index.js +40 -0
  61. package/dist/lib/commands/index.d.ts +763 -0
  62. package/dist/lib/commands/index.js +17 -0
  63. package/dist/lib/commands/t-digest/ADD.d.ts +8 -0
  64. package/dist/lib/commands/t-digest/ADD.js +14 -0
  65. package/dist/lib/commands/t-digest/BYRANK.d.ts +12 -0
  66. package/dist/lib/commands/t-digest/BYRANK.js +18 -0
  67. package/dist/lib/commands/t-digest/BYREVRANK.d.ts +10 -0
  68. package/dist/lib/commands/t-digest/BYREVRANK.js +32 -0
  69. package/dist/lib/commands/t-digest/CDF.d.ts +11 -0
  70. package/dist/lib/commands/t-digest/CDF.js +15 -0
  71. package/dist/lib/commands/t-digest/CREATE.d.ts +11 -0
  72. package/dist/lib/commands/t-digest/CREATE.js +14 -0
  73. package/dist/lib/commands/t-digest/INFO.d.ts +8 -0
  74. package/dist/lib/commands/t-digest/INFO.js +47 -0
  75. package/dist/lib/commands/t-digest/MAX.d.ts +11 -0
  76. package/dist/lib/commands/t-digest/MAX.js +11 -0
  77. package/dist/lib/commands/t-digest/MERGE.d.ts +13 -0
  78. package/dist/lib/commands/t-digest/MERGE.js +18 -0
  79. package/dist/lib/commands/t-digest/MIN.d.ts +11 -0
  80. package/dist/lib/commands/t-digest/MIN.js +11 -0
  81. package/dist/lib/commands/t-digest/QUANTILE.d.ts +11 -0
  82. package/dist/lib/commands/t-digest/QUANTILE.js +15 -0
  83. package/dist/lib/commands/t-digest/RANK.d.ts +9 -0
  84. package/dist/lib/commands/t-digest/RANK.js +17 -0
  85. package/dist/lib/commands/t-digest/RESET.d.ts +8 -0
  86. package/dist/lib/commands/t-digest/RESET.js +10 -0
  87. package/dist/lib/commands/t-digest/REVRANK.d.ts +7 -0
  88. package/dist/lib/commands/t-digest/REVRANK.js +32 -0
  89. package/dist/lib/commands/t-digest/TRIMMED_MEAN.d.ts +11 -0
  90. package/dist/lib/commands/t-digest/TRIMMED_MEAN.js +16 -0
  91. package/dist/lib/commands/t-digest/index.d.ts +213 -0
  92. package/dist/lib/commands/t-digest/index.js +49 -0
  93. package/dist/lib/commands/top-k/ADD.d.ts +9 -0
  94. package/dist/lib/commands/top-k/ADD.js +11 -0
  95. package/dist/lib/commands/top-k/COUNT.d.ts +9 -0
  96. package/dist/lib/commands/top-k/COUNT.js +11 -0
  97. package/dist/lib/commands/top-k/INCRBY.d.ts +12 -0
  98. package/dist/lib/commands/top-k/INCRBY.js +22 -0
  99. package/dist/lib/commands/top-k/INFO.d.ts +34 -0
  100. package/dist/lib/commands/top-k/INFO.js +18 -0
  101. package/dist/lib/commands/top-k/LIST.d.ts +8 -0
  102. package/dist/lib/commands/top-k/LIST.js +10 -0
  103. package/dist/lib/commands/top-k/LIST_WITHCOUNT.d.ts +11 -0
  104. package/dist/lib/commands/top-k/LIST_WITHCOUNT.js +19 -0
  105. package/dist/lib/commands/top-k/QUERY.d.ts +12 -0
  106. package/dist/lib/commands/top-k/QUERY.js +11 -0
  107. package/dist/lib/commands/top-k/RESERVE.d.ts +13 -0
  108. package/dist/lib/commands/top-k/RESERVE.js +14 -0
  109. package/dist/lib/commands/top-k/index.d.ts +127 -0
  110. package/dist/lib/commands/top-k/index.js +31 -0
  111. package/dist/{index.js → lib/index.js} +4 -1
  112. package/package.json +22 -18
  113. package/dist/commands/bloom/ADD.d.ts +0 -3
  114. package/dist/commands/bloom/ADD.js +0 -10
  115. package/dist/commands/bloom/CARD.d.ts +0 -4
  116. package/dist/commands/bloom/CARD.js +0 -9
  117. package/dist/commands/bloom/EXISTS.d.ts +0 -4
  118. package/dist/commands/bloom/EXISTS.js +0 -11
  119. package/dist/commands/bloom/INFO.d.ts +0 -23
  120. package/dist/commands/bloom/INFO.js +0 -19
  121. package/dist/commands/bloom/INSERT.d.ts +0 -11
  122. package/dist/commands/bloom/INSERT.js +0 -28
  123. package/dist/commands/bloom/LOADCHUNK.d.ts +0 -4
  124. package/dist/commands/bloom/LOADCHUNK.js +0 -8
  125. package/dist/commands/bloom/MADD.d.ts +0 -3
  126. package/dist/commands/bloom/MADD.js +0 -10
  127. package/dist/commands/bloom/MEXISTS.d.ts +0 -4
  128. package/dist/commands/bloom/MEXISTS.js +0 -11
  129. package/dist/commands/bloom/RESERVE.d.ts +0 -8
  130. package/dist/commands/bloom/RESERVE.js +0 -15
  131. package/dist/commands/bloom/SCANDUMP.d.ts +0 -13
  132. package/dist/commands/bloom/SCANDUMP.js +0 -16
  133. package/dist/commands/bloom/index.d.ts +0 -33
  134. package/dist/commands/bloom/index.js +0 -34
  135. package/dist/commands/count-min-sketch/INCRBY.d.ts +0 -8
  136. package/dist/commands/count-min-sketch/INCRBY.js +0 -20
  137. package/dist/commands/count-min-sketch/INFO.d.ts +0 -17
  138. package/dist/commands/count-min-sketch/INFO.js +0 -17
  139. package/dist/commands/count-min-sketch/INITBYDIM.d.ts +0 -3
  140. package/dist/commands/count-min-sketch/INITBYDIM.js +0 -8
  141. package/dist/commands/count-min-sketch/INITBYPROB.d.ts +0 -3
  142. package/dist/commands/count-min-sketch/INITBYPROB.js +0 -8
  143. package/dist/commands/count-min-sketch/MERGE.d.ts +0 -9
  144. package/dist/commands/count-min-sketch/MERGE.js +0 -28
  145. package/dist/commands/count-min-sketch/QUERY.d.ts +0 -5
  146. package/dist/commands/count-min-sketch/QUERY.js +0 -10
  147. package/dist/commands/count-min-sketch/index.d.ts +0 -21
  148. package/dist/commands/count-min-sketch/index.js +0 -22
  149. package/dist/commands/cuckoo/ADD.d.ts +0 -3
  150. package/dist/commands/cuckoo/ADD.js +0 -10
  151. package/dist/commands/cuckoo/ADDNX.d.ts +0 -3
  152. package/dist/commands/cuckoo/ADDNX.js +0 -10
  153. package/dist/commands/cuckoo/COUNT.d.ts +0 -3
  154. package/dist/commands/cuckoo/COUNT.js +0 -8
  155. package/dist/commands/cuckoo/DEL.d.ts +0 -3
  156. package/dist/commands/cuckoo/DEL.js +0 -10
  157. package/dist/commands/cuckoo/EXISTS.d.ts +0 -4
  158. package/dist/commands/cuckoo/EXISTS.js +0 -11
  159. package/dist/commands/cuckoo/INFO.d.ts +0 -32
  160. package/dist/commands/cuckoo/INFO.js +0 -22
  161. package/dist/commands/cuckoo/INSERT.d.ts +0 -5
  162. package/dist/commands/cuckoo/INSERT.js +0 -11
  163. package/dist/commands/cuckoo/INSERTNX.d.ts +0 -5
  164. package/dist/commands/cuckoo/INSERTNX.js +0 -11
  165. package/dist/commands/cuckoo/LOADCHUNK.d.ts +0 -4
  166. package/dist/commands/cuckoo/LOADCHUNK.js +0 -8
  167. package/dist/commands/cuckoo/RESERVE.d.ts +0 -9
  168. package/dist/commands/cuckoo/RESERVE.js +0 -18
  169. package/dist/commands/cuckoo/SCANDUMP.d.ts +0 -12
  170. package/dist/commands/cuckoo/SCANDUMP.js +0 -15
  171. package/dist/commands/cuckoo/index.d.ts +0 -42
  172. package/dist/commands/cuckoo/index.js +0 -51
  173. package/dist/commands/index.d.ts +0 -111
  174. package/dist/commands/index.js +0 -14
  175. package/dist/commands/t-digest/ADD.d.ts +0 -4
  176. package/dist/commands/t-digest/ADD.js +0 -12
  177. package/dist/commands/t-digest/BYRANK.d.ts +0 -5
  178. package/dist/commands/t-digest/BYRANK.js +0 -15
  179. package/dist/commands/t-digest/BYREVRANK.d.ts +0 -5
  180. package/dist/commands/t-digest/BYREVRANK.js +0 -15
  181. package/dist/commands/t-digest/CDF.d.ts +0 -5
  182. package/dist/commands/t-digest/CDF.js +0 -15
  183. package/dist/commands/t-digest/CREATE.d.ts +0 -5
  184. package/dist/commands/t-digest/CREATE.js +0 -9
  185. package/dist/commands/t-digest/INFO.d.ts +0 -31
  186. package/dist/commands/t-digest/INFO.js +0 -24
  187. package/dist/commands/t-digest/MAX.d.ts +0 -5
  188. package/dist/commands/t-digest/MAX.js +0 -14
  189. package/dist/commands/t-digest/MERGE.d.ts +0 -9
  190. package/dist/commands/t-digest/MERGE.js +0 -15
  191. package/dist/commands/t-digest/MIN.d.ts +0 -5
  192. package/dist/commands/t-digest/MIN.js +0 -14
  193. package/dist/commands/t-digest/QUANTILE.d.ts +0 -5
  194. package/dist/commands/t-digest/QUANTILE.js +0 -18
  195. package/dist/commands/t-digest/RANK.d.ts +0 -5
  196. package/dist/commands/t-digest/RANK.js +0 -13
  197. package/dist/commands/t-digest/RESET.d.ts +0 -4
  198. package/dist/commands/t-digest/RESET.js +0 -8
  199. package/dist/commands/t-digest/REVRANK.d.ts +0 -5
  200. package/dist/commands/t-digest/REVRANK.js +0 -13
  201. package/dist/commands/t-digest/TRIMMED_MEAN.d.ts +0 -5
  202. package/dist/commands/t-digest/TRIMMED_MEAN.js +0 -16
  203. package/dist/commands/t-digest/index.d.ts +0 -52
  204. package/dist/commands/t-digest/index.js +0 -71
  205. package/dist/commands/top-k/ADD.d.ts +0 -4
  206. package/dist/commands/top-k/ADD.js +0 -9
  207. package/dist/commands/top-k/COUNT.d.ts +0 -5
  208. package/dist/commands/top-k/COUNT.js +0 -10
  209. package/dist/commands/top-k/INCRBY.d.ts +0 -8
  210. package/dist/commands/top-k/INCRBY.js +0 -20
  211. package/dist/commands/top-k/INFO.d.ts +0 -20
  212. package/dist/commands/top-k/INFO.js +0 -18
  213. package/dist/commands/top-k/LIST.d.ts +0 -4
  214. package/dist/commands/top-k/LIST.js +0 -9
  215. package/dist/commands/top-k/LIST_WITHCOUNT.d.ts +0 -10
  216. package/dist/commands/top-k/LIST_WITHCOUNT.js +0 -20
  217. package/dist/commands/top-k/QUERY.d.ts +0 -5
  218. package/dist/commands/top-k/QUERY.js +0 -10
  219. package/dist/commands/top-k/RESERVE.d.ts +0 -10
  220. package/dist/commands/top-k/RESERVE.js +0 -13
  221. package/dist/commands/top-k/index.d.ts +0 -27
  222. package/dist/commands/top-k/index.js +0 -28
  223. /package/dist/{index.d.ts → lib/index.d.ts} +0 -0
@@ -0,0 +1,213 @@
1
+ declare const _default: {
2
+ readonly ADD: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: false;
5
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
6
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
7
+ };
8
+ readonly add: {
9
+ readonly FIRST_KEY_INDEX: 1;
10
+ readonly IS_READ_ONLY: false;
11
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
12
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
13
+ };
14
+ readonly BYRANK: {
15
+ readonly FIRST_KEY_INDEX: 1;
16
+ readonly IS_READ_ONLY: true;
17
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, ranks: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
18
+ readonly transformReply: {
19
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
20
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
21
+ };
22
+ };
23
+ readonly byRank: {
24
+ readonly FIRST_KEY_INDEX: 1;
25
+ readonly IS_READ_ONLY: true;
26
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, ranks: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
27
+ readonly transformReply: {
28
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
29
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
30
+ };
31
+ };
32
+ readonly BYREVRANK: {
33
+ readonly FIRST_KEY_INDEX: 1;
34
+ readonly IS_READ_ONLY: true;
35
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, ranks: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
36
+ readonly transformReply: {
37
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
38
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
39
+ };
40
+ };
41
+ readonly byRevRank: {
42
+ readonly FIRST_KEY_INDEX: 1;
43
+ readonly IS_READ_ONLY: true;
44
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, ranks: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
45
+ readonly transformReply: {
46
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
47
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
48
+ };
49
+ };
50
+ readonly CDF: {
51
+ readonly FIRST_KEY_INDEX: 1;
52
+ readonly IS_READ_ONLY: true;
53
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
54
+ readonly transformReply: {
55
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
56
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
57
+ };
58
+ };
59
+ readonly cdf: {
60
+ readonly FIRST_KEY_INDEX: 1;
61
+ readonly IS_READ_ONLY: true;
62
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
63
+ readonly transformReply: {
64
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
65
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
66
+ };
67
+ };
68
+ readonly CREATE: {
69
+ readonly FIRST_KEY_INDEX: 1;
70
+ readonly IS_READ_ONLY: false;
71
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./CREATE").TDigestCreateOptions | undefined) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
72
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
73
+ };
74
+ readonly create: {
75
+ readonly FIRST_KEY_INDEX: 1;
76
+ readonly IS_READ_ONLY: false;
77
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./CREATE").TDigestCreateOptions | undefined) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
78
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
79
+ };
80
+ readonly INFO: {
81
+ readonly FIRST_KEY_INDEX: 1;
82
+ readonly IS_READ_ONLY: true;
83
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
84
+ readonly transformReply: () => any;
85
+ };
86
+ readonly info: {
87
+ readonly FIRST_KEY_INDEX: 1;
88
+ readonly IS_READ_ONLY: true;
89
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
90
+ readonly transformReply: () => any;
91
+ };
92
+ readonly MAX: {
93
+ readonly FIRST_KEY_INDEX: 1;
94
+ readonly IS_READ_ONLY: true;
95
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
96
+ readonly transformReply: {
97
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>) => number;
98
+ 3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
99
+ };
100
+ };
101
+ readonly max: {
102
+ readonly FIRST_KEY_INDEX: 1;
103
+ readonly IS_READ_ONLY: true;
104
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
105
+ readonly transformReply: {
106
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>) => number;
107
+ 3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
108
+ };
109
+ };
110
+ readonly MERGE: {
111
+ readonly FIRST_KEY_INDEX: undefined;
112
+ readonly IS_READ_ONLY: false;
113
+ readonly transformArguments: (this: void, destination: import("@redis/client/dist/lib/RESP/types").RedisArgument, source: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./MERGE").TDigestMergeOptions | undefined) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
114
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
115
+ };
116
+ readonly merge: {
117
+ readonly FIRST_KEY_INDEX: undefined;
118
+ readonly IS_READ_ONLY: false;
119
+ readonly transformArguments: (this: void, destination: import("@redis/client/dist/lib/RESP/types").RedisArgument, source: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./MERGE").TDigestMergeOptions | undefined) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
120
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
121
+ };
122
+ readonly MIN: {
123
+ readonly FIRST_KEY_INDEX: 1;
124
+ readonly IS_READ_ONLY: true;
125
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
126
+ readonly transformReply: {
127
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>) => number;
128
+ 3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
129
+ };
130
+ };
131
+ readonly min: {
132
+ readonly FIRST_KEY_INDEX: 1;
133
+ readonly IS_READ_ONLY: true;
134
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
135
+ readonly transformReply: {
136
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>) => number;
137
+ 3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
138
+ };
139
+ };
140
+ readonly QUANTILE: {
141
+ readonly FIRST_KEY_INDEX: 1;
142
+ readonly IS_READ_ONLY: true;
143
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, quantiles: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
144
+ readonly transformReply: {
145
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
146
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
147
+ };
148
+ };
149
+ readonly quantile: {
150
+ readonly FIRST_KEY_INDEX: 1;
151
+ readonly IS_READ_ONLY: true;
152
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, quantiles: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
153
+ readonly transformReply: {
154
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
155
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
156
+ };
157
+ };
158
+ readonly RANK: {
159
+ readonly FIRST_KEY_INDEX: 1;
160
+ readonly IS_READ_ONLY: true;
161
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
162
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
163
+ };
164
+ readonly rank: {
165
+ readonly FIRST_KEY_INDEX: 1;
166
+ readonly IS_READ_ONLY: true;
167
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
168
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
169
+ };
170
+ readonly RESET: {
171
+ readonly FIRST_KEY_INDEX: 1;
172
+ readonly IS_READ_ONLY: false;
173
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
174
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
175
+ };
176
+ readonly reset: {
177
+ readonly FIRST_KEY_INDEX: 1;
178
+ readonly IS_READ_ONLY: false;
179
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
180
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
181
+ };
182
+ readonly REVRANK: {
183
+ readonly FIRST_KEY_INDEX: 1;
184
+ readonly IS_READ_ONLY: true;
185
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
186
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
187
+ };
188
+ readonly revRank: {
189
+ readonly FIRST_KEY_INDEX: 1;
190
+ readonly IS_READ_ONLY: true;
191
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
192
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
193
+ };
194
+ readonly TRIMMED_MEAN: {
195
+ readonly FIRST_KEY_INDEX: 1;
196
+ readonly IS_READ_ONLY: true;
197
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, lowCutPercentile: number, highCutPercentile: number) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
198
+ readonly transformReply: {
199
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>) => number;
200
+ 3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
201
+ };
202
+ };
203
+ readonly trimmedMean: {
204
+ readonly FIRST_KEY_INDEX: 1;
205
+ readonly IS_READ_ONLY: true;
206
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, lowCutPercentile: number, highCutPercentile: number) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
207
+ readonly transformReply: {
208
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>) => number;
209
+ 3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
210
+ };
211
+ };
212
+ };
213
+ export default _default;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ADD_1 = __importDefault(require("./ADD"));
7
+ const BYRANK_1 = __importDefault(require("./BYRANK"));
8
+ const BYREVRANK_1 = __importDefault(require("./BYREVRANK"));
9
+ const CDF_1 = __importDefault(require("./CDF"));
10
+ const CREATE_1 = __importDefault(require("./CREATE"));
11
+ const INFO_1 = __importDefault(require("./INFO"));
12
+ const MAX_1 = __importDefault(require("./MAX"));
13
+ const MERGE_1 = __importDefault(require("./MERGE"));
14
+ const MIN_1 = __importDefault(require("./MIN"));
15
+ const QUANTILE_1 = __importDefault(require("./QUANTILE"));
16
+ const RANK_1 = __importDefault(require("./RANK"));
17
+ const RESET_1 = __importDefault(require("./RESET"));
18
+ const REVRANK_1 = __importDefault(require("./REVRANK"));
19
+ const TRIMMED_MEAN_1 = __importDefault(require("./TRIMMED_MEAN"));
20
+ exports.default = {
21
+ ADD: ADD_1.default,
22
+ add: ADD_1.default,
23
+ BYRANK: BYRANK_1.default,
24
+ byRank: BYRANK_1.default,
25
+ BYREVRANK: BYREVRANK_1.default,
26
+ byRevRank: BYREVRANK_1.default,
27
+ CDF: CDF_1.default,
28
+ cdf: CDF_1.default,
29
+ CREATE: CREATE_1.default,
30
+ create: CREATE_1.default,
31
+ INFO: INFO_1.default,
32
+ info: INFO_1.default,
33
+ MAX: MAX_1.default,
34
+ max: MAX_1.default,
35
+ MERGE: MERGE_1.default,
36
+ merge: MERGE_1.default,
37
+ MIN: MIN_1.default,
38
+ min: MIN_1.default,
39
+ QUANTILE: QUANTILE_1.default,
40
+ quantile: QUANTILE_1.default,
41
+ RANK: RANK_1.default,
42
+ rank: RANK_1.default,
43
+ RESET: RESET_1.default,
44
+ reset: RESET_1.default,
45
+ REVRANK: REVRANK_1.default,
46
+ revRank: REVRANK_1.default,
47
+ TRIMMED_MEAN: TRIMMED_MEAN_1.default,
48
+ trimmedMean: TRIMMED_MEAN_1.default
49
+ };
@@ -0,0 +1,9 @@
1
+ import { RedisArgument, ArrayReply, BlobStringReply } from '@redis/client/dist/lib/RESP/types';
2
+ import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
3
+ declare const _default: {
4
+ readonly FIRST_KEY_INDEX: 1;
5
+ readonly IS_READ_ONLY: false;
6
+ readonly transformArguments: (this: void, key: RedisArgument, items: RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
7
+ readonly transformReply: () => ArrayReply<BlobStringReply>;
8
+ };
9
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
+ exports.default = {
5
+ FIRST_KEY_INDEX: 1,
6
+ IS_READ_ONLY: false,
7
+ transformArguments(key, items) {
8
+ return (0, generic_transformers_1.pushVariadicArguments)(['TOPK.ADD', key], items);
9
+ },
10
+ transformReply: undefined
11
+ };
@@ -0,0 +1,9 @@
1
+ import { RedisArgument, ArrayReply, NumberReply } from '@redis/client/dist/lib/RESP/types';
2
+ import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
3
+ declare const _default: {
4
+ readonly FIRST_KEY_INDEX: 1;
5
+ readonly IS_READ_ONLY: true;
6
+ readonly transformArguments: (this: void, key: RedisArgument, items: RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
7
+ readonly transformReply: () => ArrayReply<NumberReply>;
8
+ };
9
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
+ exports.default = {
5
+ FIRST_KEY_INDEX: 1,
6
+ IS_READ_ONLY: true,
7
+ transformArguments(key, items) {
8
+ return (0, generic_transformers_1.pushVariadicArguments)(['TOPK.COUNT', key], items);
9
+ },
10
+ transformReply: undefined
11
+ };
@@ -0,0 +1,12 @@
1
+ import { RedisArgument, ArrayReply, SimpleStringReply, NullReply } from '@redis/client/dist/lib/RESP/types';
2
+ export interface TopKIncrByItem {
3
+ item: string;
4
+ incrementBy: number;
5
+ }
6
+ declare const _default: {
7
+ readonly FIRST_KEY_INDEX: 1;
8
+ readonly IS_READ_ONLY: false;
9
+ readonly transformArguments: (this: void, key: RedisArgument, items: TopKIncrByItem | Array<TopKIncrByItem>) => RedisArgument[];
10
+ readonly transformReply: () => ArrayReply<SimpleStringReply | NullReply>;
11
+ };
12
+ export default _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function pushIncrByItem(args, { item, incrementBy }) {
4
+ args.push(item, incrementBy.toString());
5
+ }
6
+ exports.default = {
7
+ FIRST_KEY_INDEX: 1,
8
+ IS_READ_ONLY: false,
9
+ transformArguments(key, items) {
10
+ const args = ['TOPK.INCRBY', key];
11
+ if (Array.isArray(items)) {
12
+ for (const item of items) {
13
+ pushIncrByItem(args, item);
14
+ }
15
+ }
16
+ else {
17
+ pushIncrByItem(args, items);
18
+ }
19
+ return args;
20
+ },
21
+ transformReply: undefined
22
+ };
@@ -0,0 +1,34 @@
1
+ import { RedisArgument, TuplesToMapReply, BlobStringReply, NumberReply, DoubleReply } from '@redis/client/dist/lib/RESP/types';
2
+ export type TopKInfoReply = TuplesToMapReply<[
3
+ [
4
+ BlobStringReply<'k'>,
5
+ NumberReply
6
+ ],
7
+ [
8
+ BlobStringReply<'width'>,
9
+ NumberReply
10
+ ],
11
+ [
12
+ BlobStringReply<'depth'>,
13
+ NumberReply
14
+ ],
15
+ [
16
+ BlobStringReply<'decay'>,
17
+ DoubleReply
18
+ ]
19
+ ]>;
20
+ declare const _default: {
21
+ readonly FIRST_KEY_INDEX: 1;
22
+ readonly IS_READ_ONLY: true;
23
+ readonly transformArguments: (this: void, key: RedisArgument) => RedisArgument[];
24
+ readonly transformReply: {
25
+ readonly 2: (reply: [BlobStringReply<"k">, NumberReply<number>, BlobStringReply<"width">, NumberReply<number>, BlobStringReply<"depth">, NumberReply<number>, BlobStringReply<"decay">, BlobStringReply<string>]) => {
26
+ k: NumberReply<number>;
27
+ width: NumberReply<number>;
28
+ depth: NumberReply<number>;
29
+ decay: number;
30
+ };
31
+ readonly 3: () => TopKInfoReply;
32
+ };
33
+ };
34
+ export default _default;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FIRST_KEY_INDEX: 1,
5
+ IS_READ_ONLY: true,
6
+ transformArguments(key) {
7
+ return ['TOPK.INFO', key];
8
+ },
9
+ transformReply: {
10
+ 2: (reply) => ({
11
+ k: reply[1],
12
+ width: reply[3],
13
+ depth: reply[5],
14
+ decay: Number(reply[7])
15
+ }),
16
+ 3: undefined
17
+ }
18
+ };
@@ -0,0 +1,8 @@
1
+ import { RedisArgument, ArrayReply, BlobStringReply } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: true;
5
+ readonly transformArguments: (this: void, key: RedisArgument) => RedisArgument[];
6
+ readonly transformReply: () => ArrayReply<BlobStringReply>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FIRST_KEY_INDEX: 1,
5
+ IS_READ_ONLY: true,
6
+ transformArguments(key) {
7
+ return ['TOPK.LIST', key];
8
+ },
9
+ transformReply: undefined
10
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument, ArrayReply, BlobStringReply, NumberReply, UnwrapReply } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: true;
5
+ readonly transformArguments: (this: void, key: RedisArgument) => RedisArgument[];
6
+ readonly transformReply: (this: void, rawReply: UnwrapReply<ArrayReply<BlobStringReply | NumberReply>>) => {
7
+ item: BlobStringReply;
8
+ count: NumberReply;
9
+ }[];
10
+ };
11
+ export default _default;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FIRST_KEY_INDEX: 1,
5
+ IS_READ_ONLY: true,
6
+ transformArguments(key) {
7
+ return ['TOPK.LIST', key, 'WITHCOUNT'];
8
+ },
9
+ transformReply(rawReply) {
10
+ const reply = [];
11
+ for (let i = 0; i < rawReply.length; i++) {
12
+ reply.push({
13
+ item: rawReply[i],
14
+ count: rawReply[++i]
15
+ });
16
+ }
17
+ return reply;
18
+ }
19
+ };
@@ -0,0 +1,12 @@
1
+ import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
3
+ declare const _default: {
4
+ readonly FIRST_KEY_INDEX: undefined;
5
+ readonly IS_READ_ONLY: false;
6
+ readonly transformArguments: (this: void, key: RedisArgument, items: RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
7
+ readonly transformReply: {
8
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
9
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
10
+ };
11
+ };
12
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
+ exports.default = {
5
+ FIRST_KEY_INDEX: undefined,
6
+ IS_READ_ONLY: false,
7
+ transformArguments(key, items) {
8
+ return (0, generic_transformers_1.pushVariadicArguments)(['TOPK.QUERY', key], items);
9
+ },
10
+ transformReply: generic_transformers_1.transformBooleanArrayReply
11
+ };
@@ -0,0 +1,13 @@
1
+ import { SimpleStringReply, RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ export interface TopKReserveOptions {
3
+ width: number;
4
+ depth: number;
5
+ decay: number;
6
+ }
7
+ declare const _default: {
8
+ readonly FIRST_KEY_INDEX: 1;
9
+ readonly IS_READ_ONLY: false;
10
+ readonly transformArguments: (this: void, key: RedisArgument, topK: number, options?: TopKReserveOptions) => RedisArgument[];
11
+ readonly transformReply: () => SimpleStringReply<'OK'>;
12
+ };
13
+ export default _default;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FIRST_KEY_INDEX: 1,
5
+ IS_READ_ONLY: false,
6
+ transformArguments(key, topK, options) {
7
+ const args = ['TOPK.RESERVE', key, topK.toString()];
8
+ if (options) {
9
+ args.push(options.width.toString(), options.depth.toString(), options.decay.toString());
10
+ }
11
+ return args;
12
+ },
13
+ transformReply: undefined
14
+ };