redis-om-type 1.0.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.
@@ -0,0 +1,198 @@
1
+ [redis-om](../README.md) / ArrayHashInput
2
+
3
+ # Class: ArrayHashInput
4
+
5
+ ## Hierarchy
6
+
7
+ - [`InvalidInput`](InvalidInput.md)
8
+
9
+ ↳ **`ArrayHashInput`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Constructors
14
+
15
+ - [constructor](ArrayHashInput.md#constructor)
16
+
17
+ ### Properties
18
+
19
+ - [cause](ArrayHashInput.md#cause)
20
+ - [message](ArrayHashInput.md#message)
21
+ - [name](ArrayHashInput.md#name)
22
+ - [stack](ArrayHashInput.md#stack)
23
+ - [prepareStackTrace](ArrayHashInput.md#preparestacktrace)
24
+ - [stackTraceLimit](ArrayHashInput.md#stacktracelimit)
25
+
26
+ ### Accessors
27
+
28
+ - [field](ArrayHashInput.md#field)
29
+
30
+ ### Methods
31
+
32
+ - [captureStackTrace](ArrayHashInput.md#capturestacktrace)
33
+
34
+ ## Constructors
35
+
36
+ ### constructor
37
+
38
+ • **new ArrayHashInput**(`property`)
39
+
40
+ #### Parameters
41
+
42
+ | Name | Type |
43
+ | :------ | :------ |
44
+ | `property` | `string` |
45
+
46
+ #### Overrides
47
+
48
+ [InvalidInput](InvalidInput.md).[constructor](InvalidInput.md#constructor)
49
+
50
+ #### Defined in
51
+
52
+ [lib/error/invalid-input.ts:67](https://github.com/redis/redis-om-node/blob/d8438f7/lib/error/invalid-input.ts#L67)
53
+
54
+ ## Properties
55
+
56
+ ### cause
57
+
58
+ • `Optional` **cause**: `unknown`
59
+
60
+ #### Inherited from
61
+
62
+ [InvalidInput](InvalidInput.md).[cause](InvalidInput.md#cause)
63
+
64
+ #### Defined in
65
+
66
+ node_modules/typescript/lib/lib.es2022.error.d.ts:26
67
+
68
+ ___
69
+
70
+ ### message
71
+
72
+ • **message**: `string`
73
+
74
+ #### Inherited from
75
+
76
+ [InvalidInput](InvalidInput.md).[message](InvalidInput.md#message)
77
+
78
+ #### Defined in
79
+
80
+ node_modules/typescript/lib/lib.es5.d.ts:1054
81
+
82
+ ___
83
+
84
+ ### name
85
+
86
+ • **name**: `string`
87
+
88
+ #### Inherited from
89
+
90
+ [InvalidInput](InvalidInput.md).[name](InvalidInput.md#name)
91
+
92
+ #### Defined in
93
+
94
+ node_modules/typescript/lib/lib.es5.d.ts:1053
95
+
96
+ ___
97
+
98
+ ### stack
99
+
100
+ • `Optional` **stack**: `string`
101
+
102
+ #### Inherited from
103
+
104
+ [InvalidInput](InvalidInput.md).[stack](InvalidInput.md#stack)
105
+
106
+ #### Defined in
107
+
108
+ node_modules/typescript/lib/lib.es5.d.ts:1055
109
+
110
+ ___
111
+
112
+ ### prepareStackTrace
113
+
114
+ ▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
115
+
116
+ #### Type declaration
117
+
118
+ ▸ (`err`, `stackTraces`): `any`
119
+
120
+ Optional override for formatting stack traces
121
+
122
+ **`See`**
123
+
124
+ https://v8.dev/docs/stack-trace-api#customizing-stack-traces
125
+
126
+ ##### Parameters
127
+
128
+ | Name | Type |
129
+ | :------ | :------ |
130
+ | `err` | `Error` |
131
+ | `stackTraces` | `CallSite`[] |
132
+
133
+ ##### Returns
134
+
135
+ `any`
136
+
137
+ #### Inherited from
138
+
139
+ [InvalidInput](InvalidInput.md).[prepareStackTrace](InvalidInput.md#preparestacktrace)
140
+
141
+ #### Defined in
142
+
143
+ node_modules/@types/node/globals.d.ts:11
144
+
145
+ ___
146
+
147
+ ### stackTraceLimit
148
+
149
+ ▪ `Static` **stackTraceLimit**: `number`
150
+
151
+ #### Inherited from
152
+
153
+ [InvalidInput](InvalidInput.md).[stackTraceLimit](InvalidInput.md#stacktracelimit)
154
+
155
+ #### Defined in
156
+
157
+ node_modules/@types/node/globals.d.ts:13
158
+
159
+ ## Accessors
160
+
161
+ ### field
162
+
163
+ • `get` **field**(): `string`
164
+
165
+ #### Returns
166
+
167
+ `string`
168
+
169
+ #### Defined in
170
+
171
+ [lib/error/invalid-input.ts:73](https://github.com/redis/redis-om-node/blob/d8438f7/lib/error/invalid-input.ts#L73)
172
+
173
+ ## Methods
174
+
175
+ ### captureStackTrace
176
+
177
+ ▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
178
+
179
+ Create .stack property on a target object
180
+
181
+ #### Parameters
182
+
183
+ | Name | Type |
184
+ | :------ | :------ |
185
+ | `targetObject` | `object` |
186
+ | `constructorOpt?` | `Function` |
187
+
188
+ #### Returns
189
+
190
+ `void`
191
+
192
+ #### Inherited from
193
+
194
+ [InvalidInput](InvalidInput.md).[captureStackTrace](InvalidInput.md#capturestacktrace)
195
+
196
+ #### Defined in
197
+
198
+ node_modules/@types/node/globals.d.ts:4
@@ -0,0 +1,375 @@
1
+ [redis-om](../README.md) / Circle
2
+
3
+ # Class: Circle
4
+
5
+ A builder that defines a circle.
6
+
7
+ ## Table of contents
8
+
9
+ ### Constructors
10
+
11
+ - [constructor](Circle.md#constructor)
12
+
13
+ ### Accessors
14
+
15
+ - [feet](Circle.md#feet)
16
+ - [foot](Circle.md#foot)
17
+ - [ft](Circle.md#ft)
18
+ - [kilometer](Circle.md#kilometer)
19
+ - [kilometers](Circle.md#kilometers)
20
+ - [km](Circle.md#km)
21
+ - [m](Circle.md#m)
22
+ - [meter](Circle.md#meter)
23
+ - [meters](Circle.md#meters)
24
+ - [mi](Circle.md#mi)
25
+ - [mile](Circle.md#mile)
26
+ - [miles](Circle.md#miles)
27
+
28
+ ### Methods
29
+
30
+ - [latitude](Circle.md#latitude)
31
+ - [longitude](Circle.md#longitude)
32
+ - [origin](Circle.md#origin)
33
+ - [radius](Circle.md#radius)
34
+
35
+ ## Constructors
36
+
37
+ ### constructor
38
+
39
+ • **new Circle**()
40
+
41
+ ## Accessors
42
+
43
+ ### feet
44
+
45
+ • `get` **feet**(): `this`
46
+
47
+ Sets the units to feet.
48
+
49
+ #### Returns
50
+
51
+ `this`
52
+
53
+ This instance.
54
+
55
+ #### Defined in
56
+
57
+ [lib/search/where-point.ts:149](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L149)
58
+
59
+ ___
60
+
61
+ ### foot
62
+
63
+ • `get` **foot**(): `this`
64
+
65
+ Sets the units to feet.
66
+
67
+ #### Returns
68
+
69
+ `this`
70
+
71
+ This instance.
72
+
73
+ #### Defined in
74
+
75
+ [lib/search/where-point.ts:143](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L143)
76
+
77
+ ___
78
+
79
+ ### ft
80
+
81
+ • `get` **ft**(): `this`
82
+
83
+ Sets the units to feet.
84
+
85
+ #### Returns
86
+
87
+ `this`
88
+
89
+ This instance.
90
+
91
+ #### Defined in
92
+
93
+ [lib/search/where-point.ts:137](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L137)
94
+
95
+ ___
96
+
97
+ ### kilometer
98
+
99
+ • `get` **kilometer**(): `this`
100
+
101
+ Sets the units to kilometers.
102
+
103
+ #### Returns
104
+
105
+ `this`
106
+
107
+ This instance.
108
+
109
+ #### Defined in
110
+
111
+ [lib/search/where-point.ts:122](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L122)
112
+
113
+ ___
114
+
115
+ ### kilometers
116
+
117
+ • `get` **kilometers**(): `this`
118
+
119
+ Sets the units to kilometers.
120
+
121
+ #### Returns
122
+
123
+ `this`
124
+
125
+ This instance.
126
+
127
+ #### Defined in
128
+
129
+ [lib/search/where-point.ts:128](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L128)
130
+
131
+ ___
132
+
133
+ ### km
134
+
135
+ • `get` **km**(): `this`
136
+
137
+ Sets the units to kilometers.
138
+
139
+ #### Returns
140
+
141
+ `this`
142
+
143
+ This instance.
144
+
145
+ #### Defined in
146
+
147
+ [lib/search/where-point.ts:116](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L116)
148
+
149
+ ___
150
+
151
+ ### m
152
+
153
+ • `get` **m**(): `this`
154
+
155
+ Sets the units to meters.
156
+
157
+ #### Returns
158
+
159
+ `this`
160
+
161
+ This instance.
162
+
163
+ #### Defined in
164
+
165
+ [lib/search/where-point.ts:95](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L95)
166
+
167
+ ___
168
+
169
+ ### meter
170
+
171
+ • `get` **meter**(): `this`
172
+
173
+ Sets the units to meters.
174
+
175
+ #### Returns
176
+
177
+ `this`
178
+
179
+ This instance.
180
+
181
+ #### Defined in
182
+
183
+ [lib/search/where-point.ts:101](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L101)
184
+
185
+ ___
186
+
187
+ ### meters
188
+
189
+ • `get` **meters**(): `this`
190
+
191
+ Sets the units to meters.
192
+
193
+ #### Returns
194
+
195
+ `this`
196
+
197
+ This instance.
198
+
199
+ #### Defined in
200
+
201
+ [lib/search/where-point.ts:107](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L107)
202
+
203
+ ___
204
+
205
+ ### mi
206
+
207
+ • `get` **mi**(): `this`
208
+
209
+ Sets the units to miles.
210
+
211
+ #### Returns
212
+
213
+ `this`
214
+
215
+ This instance.
216
+
217
+ #### Defined in
218
+
219
+ [lib/search/where-point.ts:158](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L158)
220
+
221
+ ___
222
+
223
+ ### mile
224
+
225
+ • `get` **mile**(): `this`
226
+
227
+ Sets the units to miles.
228
+
229
+ #### Returns
230
+
231
+ `this`
232
+
233
+ This instance.
234
+
235
+ #### Defined in
236
+
237
+ [lib/search/where-point.ts:164](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L164)
238
+
239
+ ___
240
+
241
+ ### miles
242
+
243
+ • `get` **miles**(): `this`
244
+
245
+ Sets the units to miles.
246
+
247
+ #### Returns
248
+
249
+ `this`
250
+
251
+ This instance.
252
+
253
+ #### Defined in
254
+
255
+ [lib/search/where-point.ts:170](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L170)
256
+
257
+ ## Methods
258
+
259
+ ### latitude
260
+
261
+ ▸ **latitude**(`value`): [`Circle`](Circle.md)
262
+
263
+ Sets the latitude. If not set, defaults to 0.0.
264
+
265
+ #### Parameters
266
+
267
+ | Name | Type | Description |
268
+ | :------ | :------ | :------ |
269
+ | `value` | `number` | The latitude. |
270
+
271
+ #### Returns
272
+
273
+ [`Circle`](Circle.md)
274
+
275
+ This instance.
276
+
277
+ #### Defined in
278
+
279
+ [lib/search/where-point.ts:42](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L42)
280
+
281
+ ___
282
+
283
+ ### longitude
284
+
285
+ ▸ **longitude**(`value`): [`Circle`](Circle.md)
286
+
287
+ Sets the longitude. If not set, defaults to 0.0.
288
+
289
+ #### Parameters
290
+
291
+ | Name | Type | Description |
292
+ | :------ | :------ | :------ |
293
+ | `value` | `number` | The longitude. |
294
+
295
+ #### Returns
296
+
297
+ [`Circle`](Circle.md)
298
+
299
+ This instance.
300
+
301
+ #### Defined in
302
+
303
+ [lib/search/where-point.ts:31](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L31)
304
+
305
+ ___
306
+
307
+ ### origin
308
+
309
+ ▸ **origin**(`point`): [`Circle`](Circle.md)
310
+
311
+ Sets the origin of the circle using a [Point](../README.md#point). If not
312
+ set, defaults to [Null Island](https://en.wikipedia.org/wiki/Null_Island).
313
+
314
+ #### Parameters
315
+
316
+ | Name | Type | Description |
317
+ | :------ | :------ | :------ |
318
+ | `point` | [`Point`](../README.md#point) | A [Point](../README.md#point) containing the longitude and latitude of the origin. |
319
+
320
+ #### Returns
321
+
322
+ [`Circle`](Circle.md)
323
+
324
+ This instance.
325
+
326
+ #### Defined in
327
+
328
+ [lib/search/where-point.ts:54](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L54)
329
+
330
+ ▸ **origin**(`longitude`, `latitude`): [`Circle`](Circle.md)
331
+
332
+ Sets the origin of the circle. If not set, defaults to
333
+ [Null Island](https://en.wikipedia.org/wiki/Null_Island).
334
+
335
+ #### Parameters
336
+
337
+ | Name | Type | Description |
338
+ | :------ | :------ | :------ |
339
+ | `longitude` | `number` | The longitude. |
340
+ | `latitude` | `number` | The latitude. |
341
+
342
+ #### Returns
343
+
344
+ [`Circle`](Circle.md)
345
+
346
+ This instance.
347
+
348
+ #### Defined in
349
+
350
+ [lib/search/where-point.ts:64](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L64)
351
+
352
+ ___
353
+
354
+ ### radius
355
+
356
+ ▸ **radius**(`size`): [`Circle`](Circle.md)
357
+
358
+ Sets the radius of the [Circle](Circle.md). Defaults to 1. If units are
359
+ not specified, defaults to meters.
360
+
361
+ #### Parameters
362
+
363
+ | Name | Type | Description |
364
+ | :------ | :------ | :------ |
365
+ | `size` | `number` | The radius of the circle. |
366
+
367
+ #### Returns
368
+
369
+ [`Circle`](Circle.md)
370
+
371
+ This instance.
372
+
373
+ #### Defined in
374
+
375
+ [lib/search/where-point.ts:86](https://github.com/redis/redis-om-node/blob/d8438f7/lib/search/where-point.ts#L86)