@redis/json 5.5.5 → 5.6.0

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 (105) hide show
  1. package/dist/lib/commands/ARRAPPEND.d.ts +11 -1
  2. package/dist/lib/commands/ARRAPPEND.d.ts.map +1 -1
  3. package/dist/lib/commands/ARRAPPEND.js +13 -3
  4. package/dist/lib/commands/ARRAPPEND.js.map +1 -1
  5. package/dist/lib/commands/ARRINDEX.d.ts +13 -1
  6. package/dist/lib/commands/ARRINDEX.d.ts.map +1 -1
  7. package/dist/lib/commands/ARRINDEX.js +14 -2
  8. package/dist/lib/commands/ARRINDEX.js.map +1 -1
  9. package/dist/lib/commands/ARRINSERT.d.ts +12 -1
  10. package/dist/lib/commands/ARRINSERT.d.ts.map +1 -1
  11. package/dist/lib/commands/ARRINSERT.js +14 -3
  12. package/dist/lib/commands/ARRINSERT.js.map +1 -1
  13. package/dist/lib/commands/ARRLEN.d.ts +9 -0
  14. package/dist/lib/commands/ARRLEN.d.ts.map +1 -1
  15. package/dist/lib/commands/ARRLEN.js +9 -0
  16. package/dist/lib/commands/ARRLEN.js.map +1 -1
  17. package/dist/lib/commands/ARRPOP.d.ts +14 -4
  18. package/dist/lib/commands/ARRPOP.d.ts.map +1 -1
  19. package/dist/lib/commands/ARRPOP.js +12 -3
  20. package/dist/lib/commands/ARRPOP.js.map +1 -1
  21. package/dist/lib/commands/ARRTRIM.d.ts +10 -0
  22. package/dist/lib/commands/ARRTRIM.d.ts.map +1 -1
  23. package/dist/lib/commands/ARRTRIM.js +10 -0
  24. package/dist/lib/commands/ARRTRIM.js.map +1 -1
  25. package/dist/lib/commands/CLEAR.d.ts +9 -0
  26. package/dist/lib/commands/CLEAR.d.ts.map +1 -1
  27. package/dist/lib/commands/CLEAR.js +9 -0
  28. package/dist/lib/commands/CLEAR.js.map +1 -1
  29. package/dist/lib/commands/DEBUG_MEMORY.d.ts +9 -0
  30. package/dist/lib/commands/DEBUG_MEMORY.d.ts.map +1 -1
  31. package/dist/lib/commands/DEBUG_MEMORY.js +9 -0
  32. package/dist/lib/commands/DEBUG_MEMORY.js.map +1 -1
  33. package/dist/lib/commands/DEL.d.ts +9 -0
  34. package/dist/lib/commands/DEL.d.ts.map +1 -1
  35. package/dist/lib/commands/DEL.js +9 -0
  36. package/dist/lib/commands/DEL.js.map +1 -1
  37. package/dist/lib/commands/FORGET.d.ts +9 -0
  38. package/dist/lib/commands/FORGET.d.ts.map +1 -1
  39. package/dist/lib/commands/FORGET.js +9 -0
  40. package/dist/lib/commands/FORGET.js.map +1 -1
  41. package/dist/lib/commands/GET.d.ts +10 -2
  42. package/dist/lib/commands/GET.d.ts.map +1 -1
  43. package/dist/lib/commands/GET.js +11 -2
  44. package/dist/lib/commands/GET.js.map +1 -1
  45. package/dist/lib/commands/MERGE.d.ts +10 -1
  46. package/dist/lib/commands/MERGE.d.ts.map +1 -1
  47. package/dist/lib/commands/MERGE.js +11 -2
  48. package/dist/lib/commands/MERGE.js.map +1 -1
  49. package/dist/lib/commands/MGET.d.ts +9 -1
  50. package/dist/lib/commands/MGET.d.ts.map +1 -1
  51. package/dist/lib/commands/MGET.js +10 -2
  52. package/dist/lib/commands/MGET.js.map +1 -1
  53. package/dist/lib/commands/MSET.d.ts +11 -1
  54. package/dist/lib/commands/MSET.d.ts.map +1 -1
  55. package/dist/lib/commands/MSET.js +12 -2
  56. package/dist/lib/commands/MSET.js.map +1 -1
  57. package/dist/lib/commands/NUMINCRBY.d.ts +9 -0
  58. package/dist/lib/commands/NUMINCRBY.d.ts.map +1 -1
  59. package/dist/lib/commands/NUMINCRBY.js +9 -0
  60. package/dist/lib/commands/NUMINCRBY.js.map +1 -1
  61. package/dist/lib/commands/NUMMULTBY.d.ts +10 -1
  62. package/dist/lib/commands/NUMMULTBY.d.ts.map +1 -1
  63. package/dist/lib/commands/NUMMULTBY.js +9 -0
  64. package/dist/lib/commands/NUMMULTBY.js.map +1 -1
  65. package/dist/lib/commands/OBJKEYS.d.ts +9 -0
  66. package/dist/lib/commands/OBJKEYS.d.ts.map +1 -1
  67. package/dist/lib/commands/OBJKEYS.js +9 -0
  68. package/dist/lib/commands/OBJKEYS.js.map +1 -1
  69. package/dist/lib/commands/OBJLEN.d.ts +9 -0
  70. package/dist/lib/commands/OBJLEN.d.ts.map +1 -1
  71. package/dist/lib/commands/OBJLEN.js +9 -0
  72. package/dist/lib/commands/OBJLEN.js.map +1 -1
  73. package/dist/lib/commands/RESP.d.ts +8 -0
  74. package/dist/lib/commands/RESP.d.ts.map +1 -1
  75. package/dist/lib/commands/RESP.js +8 -0
  76. package/dist/lib/commands/RESP.js.map +1 -1
  77. package/dist/lib/commands/SET.d.ts +14 -1
  78. package/dist/lib/commands/SET.d.ts.map +1 -1
  79. package/dist/lib/commands/SET.js +15 -2
  80. package/dist/lib/commands/SET.js.map +1 -1
  81. package/dist/lib/commands/STRAPPEND.d.ts +10 -0
  82. package/dist/lib/commands/STRAPPEND.d.ts.map +1 -1
  83. package/dist/lib/commands/STRAPPEND.js +12 -2
  84. package/dist/lib/commands/STRAPPEND.js.map +1 -1
  85. package/dist/lib/commands/STRLEN.d.ts +9 -0
  86. package/dist/lib/commands/STRLEN.d.ts.map +1 -1
  87. package/dist/lib/commands/STRLEN.js +9 -0
  88. package/dist/lib/commands/STRLEN.js.map +1 -1
  89. package/dist/lib/commands/TOGGLE.d.ts +8 -0
  90. package/dist/lib/commands/TOGGLE.d.ts.map +1 -1
  91. package/dist/lib/commands/TOGGLE.js +8 -0
  92. package/dist/lib/commands/TOGGLE.js.map +1 -1
  93. package/dist/lib/commands/TYPE.d.ts +9 -0
  94. package/dist/lib/commands/TYPE.d.ts.map +1 -1
  95. package/dist/lib/commands/TYPE.js +9 -0
  96. package/dist/lib/commands/TYPE.js.map +1 -1
  97. package/dist/lib/commands/index.d.ts +46 -45
  98. package/dist/lib/commands/index.d.ts.map +1 -1
  99. package/dist/lib/commands/index.js +5 -15
  100. package/dist/lib/commands/index.js.map +1 -1
  101. package/package.json +2 -2
  102. package/dist/lib/commands/helpers.d.ts +0 -9
  103. package/dist/lib/commands/helpers.d.ts.map +0 -1
  104. package/dist/lib/commands/helpers.js +0 -18
  105. package/dist/lib/commands/helpers.js.map +0 -1
@@ -1,8 +1,17 @@
1
1
  import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { SimpleStringReply, RedisArgument } from '@redis/client/dist/lib/RESP/types';
3
- import { RedisJSON } from './helpers';
3
+ import { RedisJSON } from '@redis/client/dist/lib/commands/generic-transformers';
4
4
  declare const _default: {
5
5
  readonly IS_READ_ONLY: false;
6
+ /**
7
+ * Merges a given JSON value into a JSON document.
8
+ * Returns OK on success, or null if the key does not exist.
9
+ *
10
+ * @param parser - The Redis command parser
11
+ * @param key - The key containing the JSON document
12
+ * @param path - Path to merge into
13
+ * @param value - JSON value to merge
14
+ */
6
15
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, value: RedisJSON) => void;
7
16
  readonly transformReply: () => SimpleStringReply<'OK'>;
8
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MERGE.d.ts","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;;;gDAI3C,aAAa,OAAO,aAAa,QAAQ,aAAa,SAAS,SAAS;mCAK/C,kBAAkB,IAAI,CAAC;;AAPvE,wBAQ6B"}
1
+ {"version":3,"file":"MERGE.d.ts","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAA8B,MAAM,sDAAsD,CAAC;;;IAI3G;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,QAAQ,aAAa,SAAS,SAAS;mCAK/C,kBAAkB,IAAI,CAAC;;AAhBvE,wBAiB6B"}
@@ -1,12 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
+ /**
7
+ * Merges a given JSON value into a JSON document.
8
+ * Returns OK on success, or null if the key does not exist.
9
+ *
10
+ * @param parser - The Redis command parser
11
+ * @param key - The key containing the JSON document
12
+ * @param path - Path to merge into
13
+ * @param value - JSON value to merge
14
+ */
6
15
  parseCommand(parser, key, path, value) {
7
16
  parser.push('JSON.MERGE');
8
17
  parser.pushKey(key);
9
- parser.push(path, (0, helpers_1.transformRedisJsonArgument)(value));
18
+ parser.push(path, (0, generic_transformers_1.transformRedisJsonArgument)(value));
10
19
  },
11
20
  transformReply: undefined
12
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MERGE.js","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAElE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,KAAgB;QAC3F,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}
1
+ {"version":3,"file":"MERGE.js","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":";;AAEA,+FAA6G;AAE7G,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,KAAgB;QAC3F,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,iDAA0B,EAAC,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}
@@ -2,8 +2,16 @@ import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument, UnwrapReply, ArrayReply, NullReply, BlobStringReply } from '@redis/client/dist/lib/RESP/types';
3
3
  declare const _default: {
4
4
  readonly IS_READ_ONLY: true;
5
+ /**
6
+ * Gets values at a specific path from multiple JSON documents.
7
+ * Returns an array of values at the path from each key, null for missing keys/paths.
8
+ *
9
+ * @param parser - The Redis command parser
10
+ * @param keys - Array of keys containing JSON documents
11
+ * @param path - Path to retrieve from each document
12
+ */
5
13
  readonly parseCommand: (this: void, parser: CommandParser, keys: Array<RedisArgument>, path: RedisArgument) => void;
6
- readonly transformReply: (this: void, reply: UnwrapReply<ArrayReply<NullReply | BlobStringReply>>) => (NullReply | import("./helpers").RedisJSON)[];
14
+ readonly transformReply: (this: void, reply: UnwrapReply<ArrayReply<NullReply | BlobStringReply>>) => (import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON | NullReply)[];
7
15
  };
8
16
  export default _default;
9
17
  //# sourceMappingURL=MGET.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MGET.d.ts","sourceRoot":"","sources":["../../../lib/commands/MGET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAW,MAAM,mCAAmC,CAAC;;;gDAKzG,aAAa,QAAQ,MAAM,aAAa,CAAC,QAAQ,aAAa;iDAK7D,YAAY,WAAW,SAAS,GAAG,eAAe,CAAC,CAAC;;AAP5E,wBAU6B"}
1
+ {"version":3,"file":"MGET.d.ts","sourceRoot":"","sources":["../../../lib/commands/MGET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAW,MAAM,mCAAmC,CAAC;;;IAK9H;;;;;;;OAOG;gDACkB,aAAa,QAAQ,MAAM,aAAa,CAAC,QAAQ,aAAa;iDAK7D,YAAY,WAAW,SAAS,GAAG,eAAe,CAAC,CAAC;;AAf5E,wBAkB6B"}
@@ -1,15 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: true,
6
+ /**
7
+ * Gets values at a specific path from multiple JSON documents.
8
+ * Returns an array of values at the path from each key, null for missing keys/paths.
9
+ *
10
+ * @param parser - The Redis command parser
11
+ * @param keys - Array of keys containing JSON documents
12
+ * @param path - Path to retrieve from each document
13
+ */
6
14
  parseCommand(parser, keys, path) {
7
15
  parser.push('JSON.MGET');
8
16
  parser.pushKeys(keys);
9
17
  parser.push(path);
10
18
  },
11
19
  transformReply(reply) {
12
- return reply.map(json => (0, helpers_1.transformRedisJsonNullReply)(json));
20
+ return reply.map(json => (0, generic_transformers_1.transformRedisJsonNullReply)(json));
13
21
  }
14
22
  };
15
23
  //# sourceMappingURL=MGET.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MGET.js","sourceRoot":"","sources":["../../../lib/commands/MGET.ts"],"names":[],"mappings":";;AAEA,uCAAwD;AAExD,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,IAA0B,EAAE,IAAmB;QACjF,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,CAAC,KAA2D;QACxE,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC,CAAA;IAC7D,CAAC;CACyB,CAAC"}
1
+ {"version":3,"file":"MGET.js","sourceRoot":"","sources":["../../../lib/commands/MGET.ts"],"names":[],"mappings":";;AAEA,+FAAmG;AAEnG,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;OAOG;IACH,YAAY,CAAC,MAAqB,EAAE,IAA0B,EAAE,IAAmB;QACjF,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,CAAC,KAA2D;QACxE,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,kDAA2B,EAAC,IAAI,CAAC,CAAC,CAAA;IAC7D,CAAC;CACyB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
3
- import { RedisJSON } from './helpers';
3
+ import { RedisJSON } from '@redis/client/dist/lib/commands/generic-transformers';
4
4
  export interface JsonMSetItem {
5
5
  key: RedisArgument;
6
6
  path: RedisArgument;
@@ -8,6 +8,16 @@ export interface JsonMSetItem {
8
8
  }
9
9
  declare const _default: {
10
10
  readonly IS_READ_ONLY: false;
11
+ /**
12
+ * Sets multiple JSON values in multiple documents.
13
+ * Returns OK on success.
14
+ *
15
+ * @param parser - The Redis command parser
16
+ * @param items - Array of objects containing key, path, and value to set
17
+ * @param items[].key - The key containing the JSON document
18
+ * @param items[].path - Path in the document to set
19
+ * @param items[].value - JSON value to set at the path
20
+ */
11
21
  readonly parseCommand: (this: void, parser: CommandParser, items: Array<JsonMSetItem>) => void;
12
22
  readonly transformReply: () => SimpleStringReply<'OK'>;
13
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MSET.d.ts","sourceRoot":"","sources":["../../../lib/commands/MSET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;AAElE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,aAAa,CAAC;IACnB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;CAClB;;;gDAIsB,aAAa,SAAS,MAAM,YAAY,CAAC;mCAQhB,kBAAkB,IAAI,CAAC;;AAVvE,wBAW6B"}
1
+ {"version":3,"file":"MSET.d.ts","sourceRoot":"","sources":["../../../lib/commands/MSET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAA8B,MAAM,sDAAsD,CAAC;AAE7G,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,aAAa,CAAC;IACnB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;CAClB;;;IAIC;;;;;;;;;OASG;gDACkB,aAAa,SAAS,MAAM,YAAY,CAAC;mCAQhB,kBAAkB,IAAI,CAAC;;AApBvE,wBAqB6B"}
@@ -1,13 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
+ /**
7
+ * Sets multiple JSON values in multiple documents.
8
+ * Returns OK on success.
9
+ *
10
+ * @param parser - The Redis command parser
11
+ * @param items - Array of objects containing key, path, and value to set
12
+ * @param items[].key - The key containing the JSON document
13
+ * @param items[].path - Path in the document to set
14
+ * @param items[].value - JSON value to set at the path
15
+ */
6
16
  parseCommand(parser, items) {
7
17
  parser.push('JSON.MSET');
8
18
  for (let i = 0; i < items.length; i++) {
9
19
  parser.pushKey(items[i].key);
10
- parser.push(items[i].path, (0, helpers_1.transformRedisJsonArgument)(items[i].value));
20
+ parser.push(items[i].path, (0, generic_transformers_1.transformRedisJsonArgument)(items[i].value));
11
21
  }
12
22
  },
13
23
  transformReply: undefined
@@ -1 +1 @@
1
- {"version":3,"file":"MSET.js","sourceRoot":"","sources":["../../../lib/commands/MSET.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAQlE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,KAA0B;QAC5D,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}
1
+ {"version":3,"file":"MSET.js","sourceRoot":"","sources":["../../../lib/commands/MSET.ts"],"names":[],"mappings":";;AAEA,+FAA6G;AAQ7G,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAqB,EAAE,KAA0B;QAC5D,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAA,iDAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}
@@ -2,6 +2,15 @@ import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument, ArrayReply, NumberReply, DoubleReply, NullReply, BlobStringReply, UnwrapReply } from '@redis/client/dist/lib/RESP/types';
3
3
  declare const _default: {
4
4
  readonly IS_READ_ONLY: false;
5
+ /**
6
+ * Increments a numeric value stored in a JSON document by a given number.
7
+ * Returns the value after increment, or null if the key/path doesn't exist or value is not numeric.
8
+ *
9
+ * @param parser - The Redis command parser
10
+ * @param key - The key containing the JSON document
11
+ * @param path - Path to the numeric value
12
+ * @param by - Amount to increment by
13
+ */
5
14
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, by: number) => void;
6
15
  readonly transformReply: {
7
16
  readonly 2: (reply: UnwrapReply<BlobStringReply>) => number | (number | null)[];
@@ -1 +1 @@
1
- {"version":3,"file":"NUMINCRBY.d.ts","sourceRoot":"","sources":["../../../lib/commands/NUMINCRBY.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;;;gDAInI,aAAa,OAAO,aAAa,QAAQ,aAAa,MAAM,MAAM;;4BAM1E,YAAY,eAAe,CAAC;0BAGN,WAAW,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;;;AAXtF,wBAa6B"}
1
+ {"version":3,"file":"NUMINCRBY.d.ts","sourceRoot":"","sources":["../../../lib/commands/NUMINCRBY.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;;;IAIxJ;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,QAAQ,aAAa,MAAM,MAAM;;4BAM1E,YAAY,eAAe,CAAC;0BAGN,WAAW,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;;;AApBtF,wBAsB6B"}
@@ -2,6 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  IS_READ_ONLY: false,
5
+ /**
6
+ * Increments a numeric value stored in a JSON document by a given number.
7
+ * Returns the value after increment, or null if the key/path doesn't exist or value is not numeric.
8
+ *
9
+ * @param parser - The Redis command parser
10
+ * @param key - The key containing the JSON document
11
+ * @param path - Path to the numeric value
12
+ * @param by - Amount to increment by
13
+ */
5
14
  parseCommand(parser, key, path, by) {
6
15
  parser.push('JSON.NUMINCRBY');
7
16
  parser.pushKey(key);
@@ -1 +1 @@
1
- {"version":3,"file":"NUMINCRBY.js","sourceRoot":"","sources":["../../../lib/commands/NUMINCRBY.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,EAAU;QACrF,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,cAAc,EAAE;QACd,CAAC,EAAE,CAAC,KAAmC,EAAE,EAAE;YACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAkC,CAAC;QACvE,CAAC;QACD,CAAC,EAAE,SAA+E;KACnF;CACyB,CAAC"}
1
+ {"version":3,"file":"NUMINCRBY.js","sourceRoot":"","sources":["../../../lib/commands/NUMINCRBY.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,EAAU;QACrF,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,cAAc,EAAE;QACd,CAAC,EAAE,CAAC,KAAmC,EAAE,EAAE;YACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAkC,CAAC;QACvE,CAAC;QACD,CAAC,EAAE,SAA+E;KACnF;CACyB,CAAC"}
@@ -2,10 +2,19 @@ import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
3
3
  declare const _default: {
4
4
  readonly IS_READ_ONLY: false;
5
+ /**
6
+ * Multiplies a numeric value stored in a JSON document by a given number.
7
+ * Returns the value after multiplication, or null if the key/path doesn't exist or value is not numeric.
8
+ *
9
+ * @param parser - The Redis command parser
10
+ * @param key - The key containing the JSON document
11
+ * @param path - Path to the numeric value
12
+ * @param by - Amount to multiply by
13
+ */
5
14
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, by: number) => void;
6
15
  readonly transformReply: {
7
16
  readonly 2: (reply: import("@redis/client/dist/lib/RESP/types").UnwrapReply<import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>) => number | (number | null)[];
8
- readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
17
+ readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
9
18
  };
10
19
  };
11
20
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"NUMMULTBY.d.ts","sourceRoot":"","sources":["../../../lib/commands/NUMMULTBY.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa,QAAQ,aAAa,MAAM,MAAM;;;;;;AAFzF,wBAQ6B"}
1
+ {"version":3,"file":"NUMMULTBY.d.ts","sourceRoot":"","sources":["../../../lib/commands/NUMMULTBY.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;IAKzE;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,QAAQ,aAAa,MAAM,MAAM;;;;;;AAXzF,wBAiB6B"}
@@ -6,6 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const NUMINCRBY_1 = __importDefault(require("./NUMINCRBY"));
7
7
  exports.default = {
8
8
  IS_READ_ONLY: false,
9
+ /**
10
+ * Multiplies a numeric value stored in a JSON document by a given number.
11
+ * Returns the value after multiplication, or null if the key/path doesn't exist or value is not numeric.
12
+ *
13
+ * @param parser - The Redis command parser
14
+ * @param key - The key containing the JSON document
15
+ * @param path - Path to the numeric value
16
+ * @param by - Amount to multiply by
17
+ */
9
18
  parseCommand(parser, key, path, by) {
10
19
  parser.push('JSON.NUMMULTBY');
11
20
  parser.pushKey(key);
@@ -1 +1 @@
1
- {"version":3,"file":"NUMMULTBY.js","sourceRoot":"","sources":["../../../lib/commands/NUMMULTBY.ts"],"names":[],"mappings":";;;;;AAEA,4DAAoC;AAEpC,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,EAAU;QACrF,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,cAAc,EAAE,mBAAS,CAAC,cAAc;CACd,CAAC"}
1
+ {"version":3,"file":"NUMMULTBY.js","sourceRoot":"","sources":["../../../lib/commands/NUMMULTBY.ts"],"names":[],"mappings":";;;;;AAEA,4DAAoC;AAEpC,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,EAAU;QACrF,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,cAAc,EAAE,mBAAS,CAAC,cAAc;CACd,CAAC"}
@@ -5,6 +5,15 @@ export interface JsonObjKeysOptions {
5
5
  }
6
6
  declare const _default: {
7
7
  readonly IS_READ_ONLY: false;
8
+ /**
9
+ * Returns the keys in the object stored in a JSON document.
10
+ * Returns array of keys, array of arrays for multiple paths, or null if path doesn't exist.
11
+ *
12
+ * @param parser - The Redis command parser
13
+ * @param key - The key containing the JSON document
14
+ * @param options - Optional parameters
15
+ * @param options.path - Path to the object to examine
16
+ */
8
17
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: JsonObjKeysOptions) => void;
9
18
  readonly transformReply: () => ArrayReply<BlobStringReply> | ArrayReply<ArrayReply<BlobStringReply> | NullReply>;
10
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OBJKEYS.d.ts","sourceRoot":"","sources":["../../../lib/commands/OBJKEYS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAEnH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;gDAIsB,aAAa,OAAO,aAAa,YAAY,kBAAkB;mCAOtC,WAAW,eAAe,CAAC,GAAG,WAAW,WAAW,eAAe,CAAC,GAAG,SAAS,CAAC;;AATjI,wBAU6B"}
1
+ {"version":3,"file":"OBJKEYS.d.ts","sourceRoot":"","sources":["../../../lib/commands/OBJKEYS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAEnH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;IAIC;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,YAAY,kBAAkB;mCAOtC,WAAW,eAAe,CAAC,GAAG,WAAW,WAAW,eAAe,CAAC,GAAG,SAAS,CAAC;;AAlBjI,wBAmB6B"}
@@ -2,6 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  IS_READ_ONLY: false,
5
+ /**
6
+ * Returns the keys in the object stored in a JSON document.
7
+ * Returns array of keys, array of arrays for multiple paths, or null if path doesn't exist.
8
+ *
9
+ * @param parser - The Redis command parser
10
+ * @param key - The key containing the JSON document
11
+ * @param options - Optional parameters
12
+ * @param options.path - Path to the object to examine
13
+ */
5
14
  parseCommand(parser, key, options) {
6
15
  parser.push('JSON.OBJKEYS');
7
16
  parser.pushKey(key);
@@ -1 +1 @@
1
- {"version":3,"file":"OBJKEYS.js","sourceRoot":"","sources":["../../../lib/commands/OBJKEYS.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+G;CACrG,CAAC"}
1
+ {"version":3,"file":"OBJKEYS.js","sourceRoot":"","sources":["../../../lib/commands/OBJKEYS.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+G;CACrG,CAAC"}
@@ -5,6 +5,15 @@ export interface JsonObjLenOptions {
5
5
  }
6
6
  declare const _default: {
7
7
  readonly IS_READ_ONLY: true;
8
+ /**
9
+ * Returns the number of keys in the object stored in a JSON document.
10
+ * Returns length of object, array of lengths for multiple paths, or null if path doesn't exist.
11
+ *
12
+ * @param parser - The Redis command parser
13
+ * @param key - The key containing the JSON document
14
+ * @param options - Optional parameters
15
+ * @param options.path - Path to the object to examine
16
+ */
8
17
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: JsonObjLenOptions) => void;
9
18
  readonly transformReply: () => NumberReply | ArrayReply<NumberReply | NullReply>;
10
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OBJLEN.d.ts","sourceRoot":"","sources":["../../../lib/commands/OBJLEN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAE/G,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;gDAIsB,aAAa,OAAO,aAAa,YAAY,iBAAiB;mCAOrC,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AATjG,wBAU6B"}
1
+ {"version":3,"file":"OBJLEN.d.ts","sourceRoot":"","sources":["../../../lib/commands/OBJLEN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAE/G,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;IAIC;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,YAAY,iBAAiB;mCAOrC,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AAlBjG,wBAmB6B"}
@@ -2,6 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  IS_READ_ONLY: true,
5
+ /**
6
+ * Returns the number of keys in the object stored in a JSON document.
7
+ * Returns length of object, array of lengths for multiple paths, or null if path doesn't exist.
8
+ *
9
+ * @param parser - The Redis command parser
10
+ * @param key - The key containing the JSON document
11
+ * @param options - Optional parameters
12
+ * @param options.path - Path to the object to examine
13
+ */
5
14
  parseCommand(parser, key, options) {
6
15
  parser.push('JSON.OBJLEN');
7
16
  parser.pushKey(key);
@@ -1 +1 @@
1
- {"version":3,"file":"OBJLEN.js","sourceRoot":"","sources":["../../../lib/commands/OBJLEN.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA2B;QACjF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
1
+ {"version":3,"file":"OBJLEN.js","sourceRoot":"","sources":["../../../lib/commands/OBJLEN.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA2B;QACjF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
@@ -3,6 +3,14 @@ import { RedisArgument } from "@redis/client/dist/lib/RESP/types";
3
3
  type RESPReply = Array<string | number | RESPReply>;
4
4
  declare const _default: {
5
5
  readonly IS_READ_ONLY: true;
6
+ /**
7
+ * Returns the JSON value at the specified path in RESP (Redis Serialization Protocol) format.
8
+ * Returns the value in RESP form, useful for language-independent processing.
9
+ *
10
+ * @param parser - The Redis command parser
11
+ * @param key - The key containing the JSON document
12
+ * @param path - Optional path to the value in the document
13
+ */
6
14
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path?: string) => void;
7
15
  readonly transformReply: () => RESPReply;
8
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RESP.d.ts","sourceRoot":"","sources":["../../../lib/commands/RESP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAE3E,KAAK,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;;;gDAI3B,aAAa,OAAO,aAAa,SAAS,MAAM;;;AAFzE,wBAU+B"}
1
+ {"version":3,"file":"RESP.d.ts","sourceRoot":"","sources":["../../../lib/commands/RESP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAE3E,KAAK,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;;;IAIhD;;;;;;;OAOG;gDACkB,aAAa,OAAO,aAAa,SAAS,MAAM;;;AAVzE,wBAkB+B"}
@@ -2,6 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  IS_READ_ONLY: true,
5
+ /**
6
+ * Returns the JSON value at the specified path in RESP (Redis Serialization Protocol) format.
7
+ * Returns the value in RESP form, useful for language-independent processing.
8
+ *
9
+ * @param parser - The Redis command parser
10
+ * @param key - The key containing the JSON document
11
+ * @param path - Optional path to the value in the document
12
+ */
5
13
  parseCommand(parser, key, path) {
6
14
  parser.push('JSON.RESP');
7
15
  parser.pushKey(key);
@@ -1 +1 @@
1
- {"version":3,"file":"RESP.js","sourceRoot":"","sources":["../../../lib/commands/RESP.ts"],"names":[],"mappings":";;AAKA,kBAAe;IACX,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAa;QACnE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAuC;CAC7B,CAAC"}
1
+ {"version":3,"file":"RESP.js","sourceRoot":"","sources":["../../../lib/commands/RESP.ts"],"names":[],"mappings":";;AAKA,kBAAe;IACX,YAAY,EAAE,IAAI;IAClB;;;;;;;OAOG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAa;QACnE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAuC;CAC7B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument, SimpleStringReply, NullReply } from '@redis/client/dist/lib/RESP/types';
3
- import { RedisJSON } from './helpers';
3
+ import { RedisJSON } from '@redis/client/dist/lib/commands/generic-transformers';
4
4
  export interface JsonSetOptions {
5
5
  condition?: 'NX' | 'XX';
6
6
  /**
@@ -14,6 +14,19 @@ export interface JsonSetOptions {
14
14
  }
15
15
  declare const _default: {
16
16
  readonly IS_READ_ONLY: false;
17
+ /**
18
+ * Sets a JSON value at a specific path in a JSON document.
19
+ * Returns OK on success, or null if condition (NX/XX) is not met.
20
+ *
21
+ * @param parser - The Redis command parser
22
+ * @param key - The key containing the JSON document
23
+ * @param path - Path in the document to set
24
+ * @param json - JSON value to set at the path
25
+ * @param options - Optional parameters
26
+ * @param options.condition - Set condition: NX (only if doesn't exist) or XX (only if exists)
27
+ * @deprecated options.NX - Use options.condition instead
28
+ * @deprecated options.XX - Use options.condition instead
29
+ */
17
30
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, json: RedisJSON, options?: JsonSetOptions) => void;
18
31
  readonly transformReply: () => SimpleStringReply<'OK'> | NullReply;
19
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SET.d.ts","sourceRoot":"","sources":["../../../lib/commands/SET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AACzG,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;AAElE,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;CACd;;;gDAKW,aAAa,OAChB,aAAa,QACZ,aAAa,QACb,SAAS,YACL,cAAc;mCAcoB,kBAAkB,IAAI,CAAC,GAAG,SAAS;;AArBnF,wBAsB6B"}
1
+ {"version":3,"file":"SET.d.ts","sourceRoot":"","sources":["../../../lib/commands/SET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AACzG,OAAO,EAAE,SAAS,EAA8B,MAAM,sDAAsD,CAAC;AAE7G,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;CACd;;;IAIC;;;;;;;;;;;;OAYG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,QACb,SAAS,YACL,cAAc;mCAcoB,kBAAkB,IAAI,CAAC,GAAG,SAAS;;AAlCnF,wBAmC6B"}
@@ -1,12 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
+ /**
7
+ * Sets a JSON value at a specific path in a JSON document.
8
+ * Returns OK on success, or null if condition (NX/XX) is not met.
9
+ *
10
+ * @param parser - The Redis command parser
11
+ * @param key - The key containing the JSON document
12
+ * @param path - Path in the document to set
13
+ * @param json - JSON value to set at the path
14
+ * @param options - Optional parameters
15
+ * @param options.condition - Set condition: NX (only if doesn't exist) or XX (only if exists)
16
+ * @deprecated options.NX - Use options.condition instead
17
+ * @deprecated options.XX - Use options.condition instead
18
+ */
6
19
  parseCommand(parser, key, path, json, options) {
7
20
  parser.push('JSON.SET');
8
21
  parser.pushKey(key);
9
- parser.push(path, (0, helpers_1.transformRedisJsonArgument)(json));
22
+ parser.push(path, (0, generic_transformers_1.transformRedisJsonArgument)(json));
10
23
  if (options?.condition) {
11
24
  parser.push(options?.condition);
12
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SET.js","sourceRoot":"","sources":["../../../lib/commands/SET.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAclE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,OAAwB;QAExB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,IAAI,OAAO,EAAE,SAAS,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAClC,CAAC;aAAM,IAAI,OAAO,EAAE,EAAE,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;aAAM,IAAI,OAAO,EAAE,EAAE,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAiE;CACvD,CAAC"}
1
+ {"version":3,"file":"SET.js","sourceRoot":"","sources":["../../../lib/commands/SET.ts"],"names":[],"mappings":";;AAEA,+FAA6G;AAc7G,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;;;;OAYG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,OAAwB;QAExB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,iDAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,IAAI,OAAO,EAAE,SAAS,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAClC,CAAC;aAAM,IAAI,OAAO,EAAE,EAAE,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;aAAM,IAAI,OAAO,EAAE,EAAE,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAiE;CACvD,CAAC"}
@@ -5,6 +5,16 @@ export interface JsonStrAppendOptions {
5
5
  }
6
6
  declare const _default: {
7
7
  readonly IS_READ_ONLY: false;
8
+ /**
9
+ * Appends a string to a string value stored in a JSON document.
10
+ * Returns new string length after append, or null if the path doesn't exist or value is not a string.
11
+ *
12
+ * @param parser - The Redis command parser
13
+ * @param key - The key containing the JSON document
14
+ * @param append - String to append
15
+ * @param options - Optional parameters
16
+ * @param options.path - Path to the string value
17
+ */
8
18
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, append: string, options?: JsonStrAppendOptions) => void;
9
19
  readonly transformReply: () => NumberReply | ArrayReply<NullReply | NumberReply>;
10
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"STRAPPEND.d.ts","sourceRoot":"","sources":["../../../lib/commands/STRAPPEND.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAG/G,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;gDAIsB,aAAa,OAAO,aAAa,UAAU,MAAM,YAAY,oBAAoB;mCAUxD,WAAW,GAAG,WAAW,SAAS,GAAG,WAAW,CAAC;;AAZjG,wBAa6B"}
1
+ {"version":3,"file":"STRAPPEND.d.ts","sourceRoot":"","sources":["../../../lib/commands/STRAPPEND.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAG/G,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;IAIC;;;;;;;;;OASG;gDACkB,aAAa,OAAO,aAAa,UAAU,MAAM,YAAY,oBAAoB;mCAUxD,WAAW,GAAG,WAAW,SAAS,GAAG,WAAW,CAAC;;AAtBjG,wBAuB6B"}
@@ -1,15 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
+ /**
7
+ * Appends a string to a string value stored in a JSON document.
8
+ * Returns new string length after append, or null if the path doesn't exist or value is not a string.
9
+ *
10
+ * @param parser - The Redis command parser
11
+ * @param key - The key containing the JSON document
12
+ * @param append - String to append
13
+ * @param options - Optional parameters
14
+ * @param options.path - Path to the string value
15
+ */
6
16
  parseCommand(parser, key, append, options) {
7
17
  parser.push('JSON.STRAPPEND');
8
18
  parser.pushKey(key);
9
19
  if (options?.path !== undefined) {
10
20
  parser.push(options.path);
11
21
  }
12
- parser.push((0, helpers_1.transformRedisJsonArgument)(append));
22
+ parser.push((0, generic_transformers_1.transformRedisJsonArgument)(append));
13
23
  },
14
24
  transformReply: undefined
15
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"STRAPPEND.js","sourceRoot":"","sources":["../../../lib/commands/STRAPPEND.ts"],"names":[],"mappings":";;AAEA,uCAAuD;AAMvD,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,MAAc,EAAE,OAA8B;QACpG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,IAAA,oCAA0B,EAAC,MAAM,CAAC,CAAC,CAAC;IAClD,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
1
+ {"version":3,"file":"STRAPPEND.js","sourceRoot":"","sources":["../../../lib/commands/STRAPPEND.ts"],"names":[],"mappings":";;AAEA,+FAAkG;AAMlG,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,MAAc,EAAE,OAA8B;QACpG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,IAAA,iDAA0B,EAAC,MAAM,CAAC,CAAC,CAAC;IAClD,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
@@ -5,6 +5,15 @@ export interface JsonStrLenOptions {
5
5
  }
6
6
  declare const _default: {
7
7
  readonly IS_READ_ONLY: true;
8
+ /**
9
+ * Returns the length of a string value stored in a JSON document.
10
+ * Returns string length, array of lengths for multiple paths, or null if path doesn't exist.
11
+ *
12
+ * @param parser - The Redis command parser
13
+ * @param key - The key containing the JSON document
14
+ * @param options - Optional parameters
15
+ * @param options.path - Path to the string value
16
+ */
8
17
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: JsonStrLenOptions) => void;
9
18
  readonly transformReply: () => NumberReply | ArrayReply<NumberReply | NullReply>;
10
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"STRLEN.d.ts","sourceRoot":"","sources":["../../../lib/commands/STRLEN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAE/G,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;gDAIsB,aAAa,OAAO,aAAa,YAAY,iBAAiB;mCAQrC,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AAVjG,wBAW6B"}
1
+ {"version":3,"file":"STRLEN.d.ts","sourceRoot":"","sources":["../../../lib/commands/STRLEN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAE/G,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;IAIC;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,YAAY,iBAAiB;mCAQrC,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AAnBjG,wBAoB6B"}
@@ -2,6 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  IS_READ_ONLY: true,
5
+ /**
6
+ * Returns the length of a string value stored in a JSON document.
7
+ * Returns string length, array of lengths for multiple paths, or null if path doesn't exist.
8
+ *
9
+ * @param parser - The Redis command parser
10
+ * @param key - The key containing the JSON document
11
+ * @param options - Optional parameters
12
+ * @param options.path - Path to the string value
13
+ */
5
14
  parseCommand(parser, key, options) {
6
15
  parser.push('JSON.STRLEN');
7
16
  parser.pushKey(key);
@@ -1 +1 @@
1
- {"version":3,"file":"STRLEN.js","sourceRoot":"","sources":["../../../lib/commands/STRLEN.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA2B;QACjF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
1
+ {"version":3,"file":"STRLEN.js","sourceRoot":"","sources":["../../../lib/commands/STRLEN.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA2B;QACjF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
@@ -2,6 +2,14 @@ import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument, ArrayReply, NumberReply, NullReply } from '@redis/client/dist/lib/RESP/types';
3
3
  declare const _default: {
4
4
  readonly IS_READ_ONLY: false;
5
+ /**
6
+ * Toggles a boolean value stored in a JSON document.
7
+ * Returns 1 if value was toggled to true, 0 if toggled to false, or null if path doesn't exist.
8
+ *
9
+ * @param parser - The Redis command parser
10
+ * @param key - The key containing the JSON document
11
+ * @param path - Path to the boolean value
12
+ */
5
13
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument) => void;
6
14
  readonly transformReply: () => NumberReply | NullReply | ArrayReply<NumberReply | NullReply>;
7
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TOGGLE.d.ts","sourceRoot":"","sources":["../../../lib/commands/TOGGLE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAY,MAAM,mCAAmC,CAAC;;;gDAIzF,aAAa,OAAO,aAAa,QAAQ,aAAa;mCAK7B,WAAW,GAAG,SAAS,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AAP7G,wBAQ6B"}
1
+ {"version":3,"file":"TOGGLE.d.ts","sourceRoot":"","sources":["../../../lib/commands/TOGGLE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAY,MAAM,mCAAmC,CAAC;;;IAI9G;;;;;;;OAOG;gDACkB,aAAa,OAAO,aAAa,QAAQ,aAAa;mCAK7B,WAAW,GAAG,SAAS,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AAf7G,wBAgB6B"}