@@ -44,9 +44,12 @@ redis-om
4444- [ Entity] ( README.md#entity )
4545- [ EntityData] ( README.md#entitydata )
4646- [ EntityDataValue] ( README.md#entitydatavalue )
47+ - [ EntityInternal] ( README.md#entityinternal )
48+ - [ EntityKeys] ( README.md#entitykeys )
4749- [ FieldDefinition] ( README.md#fielddefinition )
4850- [ FieldType] ( README.md#fieldtype )
4951- [ IdStrategy] ( README.md#idstrategy )
52+ - [ InferSchema] ( README.md#inferschema )
5053- [ NumberArrayFieldDefinition] ( README.md#numberarrayfielddefinition )
5154- [ NumberFieldDefinition] ( README.md#numberfielddefinition )
5255- [ Point] ( README.md#point )
@@ -94,7 +97,7 @@ All configuration properties that any field might have, regardless of type.
9497
9598#### Defined in
9699
97- [ lib/schema/definitions.ts:5 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L5 )
100+ [ lib/schema/definitions.ts:7 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L7 )
98101
99102___
100103
@@ -106,7 +109,7 @@ A field representing a boolean.
106109
107110#### Defined in
108111
109- [ lib/schema/definitions.ts:78 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L78 )
112+ [ lib/schema/definitions.ts:80 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L80 )
110113
111114___
112115
@@ -132,7 +135,7 @@ A function that defines a circle for `.inCircle` searches.
132135
133136#### Defined in
134137
135- [ lib/search/where-point.ts:8] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/search/where-point.ts#L8 )
138+ [ lib/search/where-point.ts:8] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/search/where-point.ts#L8 )
136139
137140___
138141
@@ -144,7 +147,7 @@ The configuration properties that all fields have in common.
144147
145148#### Defined in
146149
147- [ lib/schema/definitions.ts:75 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L75 )
150+ [ lib/schema/definitions.ts:77 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L77 )
148151
149152___
150153
@@ -156,7 +159,7 @@ The type of data structure in Redis to map objects to.
156159
157160#### Defined in
158161
159- [ lib/schema/options.ts:2] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/options.ts#L2 )
162+ [ lib/schema/options.ts:2] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/options.ts#L2 )
160163
161164___
162165
@@ -168,19 +171,19 @@ A field representing a date/time.
168171
169172#### Defined in
170173
171- [ lib/schema/definitions.ts:83 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L83 )
174+ [ lib/schema/definitions.ts:85 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L85 )
172175
173176___
174177
175178### Entity
176179
177- Ƭ ** Entity** : [ ` EntityData ` ] ( README.md#entitydata ) & { ` [EntityId]? ` : ` string ` ; ` [EntityKeyName]? ` : ` string ` }
180+ Ƭ ** Entity** : [ ` EntityData ` ] ( README.md#entitydata ) & [ ` EntityInternal ` ] ( README.md#entityinternal )
178181
179182Defines the objects returned from calls to [ repositories] ( classes/Repository.md ) .
180183
181184#### Defined in
182185
183- [ lib/entity/entity.ts:8 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/entity/entity.ts#L8 )
186+ [ lib/entity/entity.ts:16 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/entity/entity.ts#L16 )
184187
185188___
186189
@@ -196,7 +199,7 @@ The free-form data associated with an [Entity](README.md#entity).
196199
197200#### Defined in
198201
199- [ lib/entity/entity.ts:18 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/entity/entity.ts#L18 )
202+ [ lib/entity/entity.ts:20 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/entity/entity.ts#L20 )
200203
201204___
202205
@@ -208,7 +211,40 @@ Valid types for values in an [Entity](README.md#entity).
208211
209212#### Defined in
210213
211- [ lib/entity/entity.ts:23] ( https://github.com/redis/redis-om-node/blob/d8438f7/lib/entity/entity.ts#L23 )
214+ [ lib/entity/entity.ts:25] ( https://github.com/redis/redis-om-node/blob/1acd1cf/lib/entity/entity.ts#L25 )
215+
216+ ___
217+
218+ ### EntityInternal
219+
220+ Ƭ ** EntityInternal** : ` Object `
221+
222+ #### Type declaration
223+
224+ | Name | Type | Description |
225+ | :------ | :------ | :------ |
226+ | ` [EntityId]? ` | ` string ` | The unique ID of the [ Entity] ( README.md#entity ) . Access using the [ EntityId] ( README.md#entityid ) Symbol. |
227+ | ` [EntityKeyName]? ` | ` string ` | The key the [ Entity] ( README.md#entity ) is stored under inside of Redis. Access using the [ EntityKeyName] ( README.md#entitykeyname ) Symbol. |
228+
229+ #### Defined in
230+
231+ [ lib/entity/entity.ts:7] ( https://github.com/redis/redis-om-node/blob/1acd1cf/lib/entity/entity.ts#L7 )
232+
233+ ___
234+
235+ ### EntityKeys
236+
237+ Ƭ ** EntityKeys** <` T ` \> : ` Exclude ` <keyof ` T ` , keyof [ ` EntityInternal ` ] ( README.md#entityinternal ) \>
238+
239+ #### Type parameters
240+
241+ | Name | Type |
242+ | :------ | :------ |
243+ | ` T ` | extends [ ` Entity ` ] ( README.md#entity ) |
244+
245+ #### Defined in
246+
247+ [ lib/entity/entity.ts:17] ( https://github.com/redis/redis-om-node/blob/1acd1cf/lib/entity/entity.ts#L17 )
212248
213249___
214250
@@ -220,7 +256,7 @@ Contains instructions telling how to map a property on an [Entity](README.md#ent
220256
221257#### Defined in
222258
223- [ lib/schema/definitions.ts:117 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L117 )
259+ [ lib/schema/definitions.ts:119 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L119 )
224260
225261___
226262
@@ -232,7 +268,7 @@ Valid field types for a [FieldDefinition](README.md#fielddefinition).
232268
233269#### Defined in
234270
235- [ lib/schema/definitions.ts:2 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L2 )
271+ [ lib/schema/definitions.ts:4 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L4 )
236272
237273___
238274
@@ -252,7 +288,23 @@ A function that generates random entityIds.
252288
253289#### Defined in
254290
255- [ lib/schema/options.ts:5] ( https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/options.ts#L5 )
291+ [ lib/schema/options.ts:5] ( https://github.com/redis/redis-om-node/blob/1acd1cf/lib/schema/options.ts#L5 )
292+
293+ ___
294+
295+ ### InferSchema
296+
297+ Ƭ ** InferSchema** <` T ` \> : ` T ` extends [ ` Schema ` ] ( classes/Schema.md ) <infer R\> ? ` R ` : ` never `
298+
299+ #### Type parameters
300+
301+ | Name |
302+ | :------ |
303+ | ` T ` |
304+
305+ #### Defined in
306+
307+ [ lib/schema/schema.ts:181] ( https://github.com/redis/redis-om-node/blob/1acd1cf/lib/schema/schema.ts#L181 )
256308
257309___
258310
@@ -264,7 +316,7 @@ A field representing an array of numbers.
264316
265317#### Defined in
266318
267- [ lib/schema/definitions.ts:93 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L93 )
319+ [ lib/schema/definitions.ts:95 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L95 )
268320
269321___
270322
@@ -276,7 +328,7 @@ A field representing a number.
276328
277329#### Defined in
278330
279- [ lib/schema/definitions.ts:88 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L88 )
331+ [ lib/schema/definitions.ts:90 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L90 )
280332
281333___
282334
@@ -295,7 +347,7 @@ Defines a point on the globe using longitude and latitude.
295347
296348#### Defined in
297349
298- [ lib/entity/entity.ts:26 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/entity/entity.ts#L26 )
350+ [ lib/entity/entity.ts:28 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/entity/entity.ts#L28 )
299351
300352___
301353
@@ -307,7 +359,7 @@ A field representing a point on the globe.
307359
308360#### Defined in
309361
310- [ lib/schema/definitions.ts:98 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L98 )
362+ [ lib/schema/definitions.ts:100 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L100 )
311363
312364___
313365
@@ -319,7 +371,7 @@ A conventional Redis connection.
319371
320372#### Defined in
321373
322- [ lib/client/client.ts:8] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/client/client.ts#L8 )
374+ [ lib/client/client.ts:8] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/client/client.ts#L8 )
323375
324376___
325377
@@ -331,7 +383,7 @@ A clustered Redis connection.
331383
332384#### Defined in
333385
334- [ lib/client/client.ts:11] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/client/client.ts#L11 )
386+ [ lib/client/client.ts:11] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/client/client.ts#L11 )
335387
336388___
337389
@@ -343,19 +395,25 @@ A Redis connection, clustered or conventional.
343395
344396#### Defined in
345397
346- [ lib/client/client.ts:14] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/client/client.ts#L14 )
398+ [ lib/client/client.ts:14] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/client/client.ts#L14 )
347399
348400___
349401
350402### SchemaDefinition
351403
352- Ƭ ** SchemaDefinition** : ` Record ` <` string ` , [ ` FieldDefinition ` ] ( README.md#fielddefinition ) \>
404+ Ƭ ** SchemaDefinition** < ` T ` \> : ` Record ` <[ ` EntityKeys ` ] ( README.md#entitykeys ) < ` T ` \> , [ ` FieldDefinition ` ] ( README.md#fielddefinition ) \>
353405
354406Group of [ FieldDefinition] ( README.md#fielddefinition ) s that define the schema for an [ Entity] ( README.md#entity ) .
355407
408+ #### Type parameters
409+
410+ | Name | Type |
411+ | :------ | :------ |
412+ | ` T ` | extends [ ` Entity ` ] ( README.md#entity ) = ` Record ` <` string ` , ` any ` \> |
413+
356414#### Defined in
357415
358- [ lib/schema/definitions.ts:123 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L123 )
416+ [ lib/schema/definitions.ts:125 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L125 )
359417
360418___
361419
@@ -378,7 +436,7 @@ Configuration options for a [Schema](classes/Schema.md).
378436
379437#### Defined in
380438
381- [ lib/schema/options.ts:11] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/options.ts#L11 )
439+ [ lib/schema/options.ts:11] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/options.ts#L11 )
382440
383441___
384442
@@ -390,7 +448,7 @@ Valid values for how to use stop words for a given [Schema](classes/Schema.md).
390448
391449#### Defined in
392450
393- [ lib/schema/options.ts:8] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/options.ts#L8 )
451+ [ lib/schema/options.ts:8] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/options.ts#L8 )
394452
395453___
396454
@@ -402,7 +460,7 @@ A field representing an array of strings.
402460
403461#### Defined in
404462
405- [ lib/schema/definitions.ts:107 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L107 )
463+ [ lib/schema/definitions.ts:109 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L109 )
406464
407465___
408466
@@ -414,33 +472,39 @@ A field representing a whole string.
414472
415473#### Defined in
416474
417- [ lib/schema/definitions.ts:102 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L102 )
475+ [ lib/schema/definitions.ts:104 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L104 )
418476
419477___
420478
421479### SubSearchFunction
422480
423- Ƭ ** SubSearchFunction** : (` search ` : [ ` Search ` ] ( classes/Search.md ) ) => [ ` Search ` ] ( classes/Search.md )
481+ Ƭ ** SubSearchFunction** <` T ` \> : (` search ` : [ ` Search ` ] ( classes/Search.md ) <` T ` \> ) => [ ` Search ` ] ( classes/Search.md ) <` T ` \>
482+
483+ #### Type parameters
484+
485+ | Name | Type |
486+ | :------ | :------ |
487+ | ` T ` | extends [ ` Entity ` ] ( README.md#entity ) |
424488
425489#### Type declaration
426490
427- ▸ (` search ` ): [ ` Search ` ] ( classes/Search.md )
491+ ▸ (` search ` ): [ ` Search ` ] ( classes/Search.md ) < ` T ` \>
428492
429493A function that takes a [ Search] ( classes/Search.md ) and returns a [ Search] ( classes/Search.md ) . Used in nested queries.
430494
431495##### Parameters
432496
433497| Name | Type |
434498| :------ | :------ |
435- | ` search ` | [ ` Search ` ] ( classes/Search.md ) |
499+ | ` search ` | [ ` Search ` ] ( classes/Search.md ) < ` T ` \> |
436500
437501##### Returns
438502
439- [ ` Search ` ] ( classes/Search.md )
503+ [ ` Search ` ] ( classes/Search.md ) < ` T ` \>
440504
441505#### Defined in
442506
443- [ lib/search/search.ts:26 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/search/search.ts#L26 )
507+ [ lib/search/search.ts:31 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/search/search.ts#L31 )
444508
445509___
446510
@@ -452,7 +516,7 @@ A field representing searchable text.
452516
453517#### Defined in
454518
455- [ lib/schema/definitions.ts:112 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L112 )
519+ [ lib/schema/definitions.ts:114 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L114 )
456520
457521## Variables
458522
@@ -464,7 +528,7 @@ The Symbol used to access the entity ID of an [Entity](README.md#entity).
464528
465529#### Defined in
466530
467- [ lib/entity/entity.ts:2] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/entity/entity.ts#L2 )
531+ [ lib/entity/entity.ts:2] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/entity/entity.ts#L2 )
468532
469533___
470534
@@ -476,4 +540,4 @@ The Symbol used to access the keyname of an [Entity](README.md#entity).
476540
477541#### Defined in
478542
479- [ lib/entity/entity.ts:5] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/entity/entity.ts#L5 )
543+ [ lib/entity/entity.ts:5] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/entity/entity.ts#L5 )
0 commit comments