@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,17 @@
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 bloom_1 = __importDefault(require("./bloom"));
7
+ const count_min_sketch_1 = __importDefault(require("./count-min-sketch"));
8
+ const cuckoo_1 = __importDefault(require("./cuckoo"));
9
+ const t_digest_1 = __importDefault(require("./t-digest"));
10
+ const top_k_1 = __importDefault(require("./top-k"));
11
+ exports.default = {
12
+ bf: bloom_1.default,
13
+ cms: count_min_sketch_1.default,
14
+ cf: cuckoo_1.default,
15
+ tDigest: t_digest_1.default,
16
+ topK: top_k_1.default
17
+ };
@@ -0,0 +1,8 @@
1
+ import { SimpleStringReply, RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: false;
5
+ readonly transformArguments: (this: void, key: RedisArgument, values: Array<number>) => RedisArgument[];
6
+ readonly transformReply: () => SimpleStringReply<'OK'>;
7
+ };
8
+ 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, values) {
7
+ const args = ['TDIGEST.ADD', key];
8
+ for (const value of values) {
9
+ args.push(value.toString());
10
+ }
11
+ return args;
12
+ },
13
+ transformReply: undefined
14
+ };
@@ -0,0 +1,12 @@
1
+ import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ export declare function transformByRankArguments(command: RedisArgument, key: RedisArgument, ranks: Array<number>): RedisArgument[];
3
+ declare const _default: {
4
+ readonly FIRST_KEY_INDEX: 1;
5
+ readonly IS_READ_ONLY: true;
6
+ readonly transformArguments: (key: RedisArgument, ranks: number[]) => RedisArgument[];
7
+ readonly transformReply: {
8
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
9
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
10
+ };
11
+ };
12
+ export default _default;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transformByRankArguments = void 0;
4
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
5
+ function transformByRankArguments(command, key, ranks) {
6
+ const args = [command, key];
7
+ for (const rank of ranks) {
8
+ args.push(rank.toString());
9
+ }
10
+ return args;
11
+ }
12
+ exports.transformByRankArguments = transformByRankArguments;
13
+ exports.default = {
14
+ FIRST_KEY_INDEX: 1,
15
+ IS_READ_ONLY: true,
16
+ transformArguments: transformByRankArguments.bind(undefined, 'TDIGEST.BYRANK'),
17
+ transformReply: generic_transformers_1.transformDoubleArrayReply
18
+ };
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ readonly FIRST_KEY_INDEX: 1;
3
+ readonly IS_READ_ONLY: true;
4
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, ranks: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
5
+ readonly transformReply: {
6
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
7
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
8
+ };
9
+ };
10
+ export default _default;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ const BYRANK_1 = __importStar(require("./BYRANK"));
27
+ exports.default = {
28
+ FIRST_KEY_INDEX: BYRANK_1.default.FIRST_KEY_INDEX,
29
+ IS_READ_ONLY: BYRANK_1.default.IS_READ_ONLY,
30
+ transformArguments: BYRANK_1.transformByRankArguments.bind(undefined, 'TDIGEST.BYREVRANK'),
31
+ transformReply: BYRANK_1.default.transformReply
32
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument } 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, values: Array<number>) => RedisArgument[];
6
+ readonly transformReply: {
7
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
8
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,15 @@
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, values) {
8
+ const args = ['TDIGEST.CDF', key];
9
+ for (const item of values) {
10
+ args.push(item.toString());
11
+ }
12
+ return args;
13
+ },
14
+ transformReply: generic_transformers_1.transformDoubleArrayReply
15
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
2
+ export interface TDigestCreateOptions {
3
+ COMPRESSION?: number;
4
+ }
5
+ declare const _default: {
6
+ readonly FIRST_KEY_INDEX: 1;
7
+ readonly IS_READ_ONLY: false;
8
+ readonly transformArguments: (this: void, key: RedisArgument, options?: TDigestCreateOptions) => RedisArgument[];
9
+ readonly transformReply: () => SimpleStringReply<'OK'>;
10
+ };
11
+ 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, options) {
7
+ const args = ['TDIGEST.CREATE', key];
8
+ if (options?.COMPRESSION !== undefined) {
9
+ args.push('COMPRESSION', options.COMPRESSION.toString());
10
+ }
11
+ return args;
12
+ },
13
+ transformReply: undefined
14
+ };
@@ -0,0 +1,8 @@
1
+ import { RedisArgument } 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: () => any;
7
+ };
8
+ export default _default;
@@ -0,0 +1,47 @@
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 ['TDIGEST.INFO', key];
8
+ },
9
+ // TODO
10
+ // type InfoRawReply = [
11
+ // 'Compression',
12
+ // number,
13
+ // 'Capacity',
14
+ // number,
15
+ // 'Merged nodes',
16
+ // number,
17
+ // 'Unmerged nodes',
18
+ // number,
19
+ // 'Merged weight',
20
+ // string,
21
+ // 'Unmerged weight',
22
+ // string,
23
+ // 'Total compressions',
24
+ // number
25
+ // ];
26
+ // interface InfoReply {
27
+ // comperssion: number;
28
+ // capacity: number;
29
+ // mergedNodes: number;
30
+ // unmergedNodes: number;
31
+ // mergedWeight: number;
32
+ // unmergedWeight: number;
33
+ // totalCompression: number;
34
+ // }
35
+ // export function transformReply(reply: InfoRawReply): InfoReply {
36
+ // return {
37
+ // comperssion: reply[1],
38
+ // capacity: reply[3],
39
+ // mergedNodes: reply[5],
40
+ // unmergedNodes: reply[7],
41
+ // mergedWeight: Number(reply[9]),
42
+ // unmergedWeight: Number(reply[11]),
43
+ // totalCompression: reply[13]
44
+ // };
45
+ // }
46
+ transformReply: undefined
47
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument } 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: {
7
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>) => number;
8
+ 3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
9
+ };
10
+ };
11
+ 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) {
8
+ return ['TDIGEST.MAX', key];
9
+ },
10
+ transformReply: generic_transformers_1.transformDoubleReply
11
+ };
@@ -0,0 +1,13 @@
1
+ import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
2
+ import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
3
+ export interface TDigestMergeOptions {
4
+ COMPRESSION?: number;
5
+ OVERRIDE?: boolean;
6
+ }
7
+ declare const _default: {
8
+ readonly FIRST_KEY_INDEX: undefined;
9
+ readonly IS_READ_ONLY: false;
10
+ readonly transformArguments: (this: void, destination: RedisArgument, source: RedisVariadicArgument, options?: TDigestMergeOptions) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
11
+ readonly transformReply: () => SimpleStringReply<'OK'>;
12
+ };
13
+ export default _default;
@@ -0,0 +1,18 @@
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(destination, source, options) {
8
+ const args = (0, generic_transformers_1.pushVariadicArgument)(['TDIGEST.MERGE', destination], source);
9
+ if (options?.COMPRESSION !== undefined) {
10
+ args.push('COMPRESSION', options.COMPRESSION.toString());
11
+ }
12
+ if (options?.OVERRIDE) {
13
+ args.push('OVERRIDE');
14
+ }
15
+ return args;
16
+ },
17
+ transformReply: undefined
18
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument } 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: {
7
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>) => number;
8
+ 3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
9
+ };
10
+ };
11
+ 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) {
8
+ return ['TDIGEST.MIN', key];
9
+ },
10
+ transformReply: generic_transformers_1.transformDoubleReply
11
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument } 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, quantiles: Array<number>) => RedisArgument[];
6
+ readonly transformReply: {
7
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[]) => number[];
8
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,15 @@
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, quantiles) {
8
+ const args = ['TDIGEST.QUANTILE', key];
9
+ for (const quantile of quantiles) {
10
+ args.push(quantile.toString());
11
+ }
12
+ return args;
13
+ },
14
+ transformReply: generic_transformers_1.transformDoubleArrayReply
15
+ };
@@ -0,0 +1,9 @@
1
+ import { RedisArgument, ArrayReply, NumberReply } from '@redis/client/dist/lib/RESP/types';
2
+ export declare function transformRankArguments(command: RedisArgument, key: RedisArgument, values: Array<number>): RedisArgument[];
3
+ declare const _default: {
4
+ readonly FIRST_KEY_INDEX: 1;
5
+ readonly IS_READ_ONLY: true;
6
+ readonly transformArguments: (key: RedisArgument, values: number[]) => RedisArgument[];
7
+ readonly transformReply: () => ArrayReply<NumberReply>;
8
+ };
9
+ export default _default;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transformRankArguments = void 0;
4
+ function transformRankArguments(command, key, values) {
5
+ const args = [command, key];
6
+ for (const value of values) {
7
+ args.push(value.toString());
8
+ }
9
+ return args;
10
+ }
11
+ exports.transformRankArguments = transformRankArguments;
12
+ exports.default = {
13
+ FIRST_KEY_INDEX: 1,
14
+ IS_READ_ONLY: true,
15
+ transformArguments: transformRankArguments.bind(undefined, 'TDIGEST.RANK'),
16
+ transformReply: undefined
17
+ };
@@ -0,0 +1,8 @@
1
+ import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: false;
5
+ readonly transformArguments: (this: void, key: RedisArgument) => RedisArgument[];
6
+ readonly transformReply: () => SimpleStringReply<'OK'>;
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: false,
6
+ transformArguments(key) {
7
+ return ['TDIGEST.RESET', key];
8
+ },
9
+ transformReply: undefined
10
+ };
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ readonly FIRST_KEY_INDEX: 1;
3
+ readonly IS_READ_ONLY: true;
4
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
5
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
6
+ };
7
+ export default _default;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ const RANK_1 = __importStar(require("./RANK"));
27
+ exports.default = {
28
+ FIRST_KEY_INDEX: RANK_1.default.FIRST_KEY_INDEX,
29
+ IS_READ_ONLY: RANK_1.default.IS_READ_ONLY,
30
+ transformArguments: RANK_1.transformRankArguments.bind(undefined, 'TDIGEST.REVRANK'),
31
+ transformReply: RANK_1.default.transformReply
32
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument } 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, lowCutPercentile: number, highCutPercentile: number) => RedisArgument[];
6
+ readonly transformReply: {
7
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>) => number;
8
+ 3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,16 @@
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, lowCutPercentile, highCutPercentile) {
8
+ return [
9
+ 'TDIGEST.TRIMMED_MEAN',
10
+ key,
11
+ lowCutPercentile.toString(),
12
+ highCutPercentile.toString()
13
+ ];
14
+ },
15
+ transformReply: generic_transformers_1.transformDoubleReply
16
+ };