@upstash/redis 0.0.0-ci.9722909577fc3b6b939d0c937c6ba5f8e8287ee4 → 0.0.0-ci.9c8ec5f432ed1802c5f55981be05fa44dc6d8db7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstash/redis",
3
- "version": "0.0.0-ci.9722909577fc3b6b939d0c937c6ba5f8e8287ee4",
3
+ "version": "0.0.0-ci.9c8ec5f432ed1802c5f55981be05fa44dc6d8db7",
4
4
  "main": "./nodejs.js",
5
5
  "types": "./nodejs.d.ts",
6
6
  "description": "An HTTP/REST based Redis client built on top of Upstash REST API.",
@@ -1003,6 +1003,88 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
1003
1003
  * @see https://redis.io/commands/geodist
1004
1004
  */
1005
1005
  geodist: (key: string, member1: unknown, member2: unknown, unit?: "M" | "KM" | "FT" | "MI" | undefined) => Promise<number | null>;
1006
+ /**
1007
+ * @see https://redis.io/commands/geopos
1008
+ */
1009
+ geopos: (args_0: string, ...args_1: unknown[]) => Promise<{
1010
+ lng: number;
1011
+ lat: number;
1012
+ }[]>;
1013
+ /**
1014
+ * @see https://redis.io/commands/geohash
1015
+ */
1016
+ geohash: (args_0: string, ...args_1: unknown[]) => Promise<(string | null)[]>;
1017
+ /**
1018
+ * @see https://redis.io/commands/geosearch
1019
+ */
1020
+ geosearch: (key: string, centerPoint: {
1021
+ type: "FROMLONLAT" | "fromlonlat";
1022
+ coordinate: {
1023
+ lon: number;
1024
+ lat: number;
1025
+ };
1026
+ } | {
1027
+ type: "FROMMEMBER" | "frommember";
1028
+ member: unknown;
1029
+ }, shape: {
1030
+ type: "BYRADIUS" | "byradius";
1031
+ radius: number;
1032
+ radiusType: "M" | "KM" | "FT" | "MI";
1033
+ } | {
1034
+ type: "BYBOX" | "bybox";
1035
+ rect: {
1036
+ width: number;
1037
+ height: number;
1038
+ };
1039
+ rectType: "M" | "KM" | "FT" | "MI";
1040
+ }, order: "ASC" | "DESC" | "asc" | "desc", opts?: {
1041
+ count?: {
1042
+ limit: number;
1043
+ any?: boolean | undefined;
1044
+ } | undefined;
1045
+ withCoord?: boolean | undefined;
1046
+ withDist?: boolean | undefined;
1047
+ withHash?: boolean | undefined;
1048
+ } | undefined) => Promise<({
1049
+ member: unknown;
1050
+ } & {
1051
+ coord?: {
1052
+ long: number;
1053
+ lat: number;
1054
+ } | undefined;
1055
+ dist?: number | undefined;
1056
+ hash?: string | undefined;
1057
+ })[]>;
1058
+ /**
1059
+ * @see https://redis.io/commands/geosearchstore
1060
+ */
1061
+ geosearchstore: (destination: string, key: string, centerPoint: {
1062
+ type: "FROMLONLAT" | "fromlonlat";
1063
+ coordinate: {
1064
+ lon: number;
1065
+ lat: number;
1066
+ };
1067
+ } | {
1068
+ type: "FROMMEMBER" | "frommember";
1069
+ member: unknown;
1070
+ }, shape: {
1071
+ type: "BYRADIUS" | "byradius";
1072
+ radius: number;
1073
+ radiusType: "M" | "KM" | "FT" | "MI";
1074
+ } | {
1075
+ type: "BYBOX" | "bybox";
1076
+ rect: {
1077
+ width: number;
1078
+ height: number;
1079
+ };
1080
+ rectType: "M" | "KM" | "FT" | "MI";
1081
+ }, order: "ASC" | "DESC" | "asc" | "desc", opts?: {
1082
+ count?: {
1083
+ limit: number;
1084
+ any?: boolean | undefined;
1085
+ } | undefined;
1086
+ storeDist?: boolean | undefined;
1087
+ } | undefined) => Promise<number>;
1006
1088
  /**
1007
1089
  * @see https://redis.io/commands/json.get
1008
1090
  */
@@ -1162,10 +1244,92 @@ declare class Redis {
1162
1244
  * @see https://redis.io/commands/geoadd
1163
1245
  */
1164
1246
  geoadd: (args_0: string, args_1: GeoAddCommandOptions | GeoMember<unknown>, ...args_2: GeoMember<unknown>[]) => Promise<number | null>;
1247
+ /**
1248
+ * @see https://redis.io/commands/geopos
1249
+ */
1250
+ geopos: (args_0: string, ...args_1: unknown[]) => Promise<{
1251
+ lng: number;
1252
+ lat: number;
1253
+ }[]>;
1165
1254
  /**
1166
1255
  * @see https://redis.io/commands/geodist
1167
1256
  */
1168
1257
  geodist: (key: string, member1: unknown, member2: unknown, unit?: "M" | "KM" | "FT" | "MI" | undefined) => Promise<number | null>;
1258
+ /**
1259
+ * @see https://redis.io/commands/geohash
1260
+ */
1261
+ geohash: (args_0: string, ...args_1: unknown[]) => Promise<(string | null)[]>;
1262
+ /**
1263
+ * @see https://redis.io/commands/geosearch
1264
+ */
1265
+ geosearch: (key: string, centerPoint: {
1266
+ type: "FROMLONLAT" | "fromlonlat";
1267
+ coordinate: {
1268
+ lon: number;
1269
+ lat: number;
1270
+ };
1271
+ } | {
1272
+ type: "FROMMEMBER" | "frommember";
1273
+ member: unknown;
1274
+ }, shape: {
1275
+ type: "BYRADIUS" | "byradius";
1276
+ radius: number;
1277
+ radiusType: "M" | "KM" | "FT" | "MI";
1278
+ } | {
1279
+ type: "BYBOX" | "bybox";
1280
+ rect: {
1281
+ width: number;
1282
+ height: number;
1283
+ };
1284
+ rectType: "M" | "KM" | "FT" | "MI";
1285
+ }, order: "ASC" | "DESC" | "asc" | "desc", opts?: {
1286
+ count?: {
1287
+ limit: number;
1288
+ any?: boolean | undefined;
1289
+ } | undefined;
1290
+ withCoord?: boolean | undefined;
1291
+ withDist?: boolean | undefined;
1292
+ withHash?: boolean | undefined;
1293
+ } | undefined) => Promise<({
1294
+ member: unknown;
1295
+ } & {
1296
+ coord?: {
1297
+ long: number;
1298
+ lat: number;
1299
+ } | undefined;
1300
+ dist?: number | undefined;
1301
+ hash?: string | undefined;
1302
+ })[]>;
1303
+ /**
1304
+ * @see https://redis.io/commands/geosearchstore
1305
+ */
1306
+ geosearchstore: (destination: string, key: string, centerPoint: {
1307
+ type: "FROMLONLAT" | "fromlonlat";
1308
+ coordinate: {
1309
+ lon: number;
1310
+ lat: number;
1311
+ };
1312
+ } | {
1313
+ type: "FROMMEMBER" | "frommember";
1314
+ member: unknown;
1315
+ }, shape: {
1316
+ type: "BYRADIUS" | "byradius";
1317
+ radius: number;
1318
+ radiusType: "M" | "KM" | "FT" | "MI";
1319
+ } | {
1320
+ type: "BYBOX" | "bybox";
1321
+ rect: {
1322
+ width: number;
1323
+ height: number;
1324
+ };
1325
+ rectType: "M" | "KM" | "FT" | "MI";
1326
+ }, order: "ASC" | "DESC" | "asc" | "desc", opts?: {
1327
+ count?: {
1328
+ limit: number;
1329
+ any?: boolean | undefined;
1330
+ } | undefined;
1331
+ storeDist?: boolean | undefined;
1332
+ } | undefined) => Promise<number>;
1169
1333
  /**
1170
1334
  * @see https://redis.io/commands/json.get
1171
1335
  */