electrodb 2.12.0 → 2.12.1
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/README.md +2 -2
- package/index.d.ts +42 -40
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,10 +46,10 @@ _Please submit issues/feedback or reach out on Twitter [@tinkertamper](https://t
|
|
|
46
46
|
- [**Easily Query Across Entities**](https://electrodb.dev/en/core-concepts/single-table-relationships) - Define "collections" to create powerful/idiomatic queries that return multiple entities in a single request.
|
|
47
47
|
- [**Automatic Index Selection**](https://electrodb.dev/en/queries/find/) - Use `.find()` or `.match()` methods to dynamically and efficiently query based on defined sort key structures.
|
|
48
48
|
- [**Simplified Pagination API**](https://electrodb.dev/en/queries/pagination/) - ElectroDB generates url safe cursors for pagination, allows for fine grain automated pagination, and supports async iteration.
|
|
49
|
-
- [**TypeScript
|
|
49
|
+
- [**Strong TypeScript Inference**](https://electrodb.dev/en/reference/typescript/) - Strong **TypeScript** support for both Entities and Services now in Beta.
|
|
50
50
|
- [**Query Directly via the Terminal**](https://github.com/tywalch/electrocli#query-taskapp) - Execute queries against your `Entities`, `Services`, `Models` directly from the command line.
|
|
51
51
|
- [**Stand Up Rest Server for Entities**](https://github.com/tywalch/electrocli#query-taskapp) - Stand up a REST Server to interact with your `Entities`, `Services`, `Models` for easier prototyping.
|
|
52
|
-
- [**Use with your existing tables**](https://electrodb.dev/en/
|
|
52
|
+
- [**Use with your existing tables**](https://electrodb.dev/en/recipes/use-electrodb-with-existing-table/) - ElectroDB simplifies building DocumentClient parameters, so you can use it with existing tables/data.
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
package/index.d.ts
CHANGED
|
@@ -3914,51 +3914,53 @@ type PartialDefinedKeys<T> = {
|
|
|
3914
3914
|
};
|
|
3915
3915
|
|
|
3916
3916
|
export type ItemAttribute<A extends Attribute> =
|
|
3917
|
-
A["type"] extends
|
|
3918
|
-
? T
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
? string
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
?
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
?
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
?
|
|
3943
|
-
?
|
|
3944
|
-
?
|
|
3917
|
+
A["type"] extends infer T
|
|
3918
|
+
? T extends OpaquePrimitiveTypeName<infer OP>
|
|
3919
|
+
? OP
|
|
3920
|
+
: T extends CustomAttributeTypeName<infer CA>
|
|
3921
|
+
? CA
|
|
3922
|
+
: T extends infer R
|
|
3923
|
+
? R extends "string"
|
|
3924
|
+
? string
|
|
3925
|
+
: R extends "number"
|
|
3926
|
+
? number
|
|
3927
|
+
: R extends "boolean"
|
|
3928
|
+
? boolean
|
|
3929
|
+
: R extends ReadonlyArray<infer E>
|
|
3930
|
+
? E
|
|
3931
|
+
: R extends "map"
|
|
3932
|
+
? "properties" extends keyof A
|
|
3933
|
+
? {
|
|
3934
|
+
[P in keyof A["properties"]]: A["properties"][P] extends infer M
|
|
3935
|
+
? M extends Attribute
|
|
3936
|
+
? ItemAttribute<M>
|
|
3937
|
+
: never
|
|
3938
|
+
: never;
|
|
3939
|
+
}
|
|
3940
|
+
: never
|
|
3941
|
+
: R extends "list"
|
|
3942
|
+
? "items" extends keyof A
|
|
3943
|
+
? A["items"] extends infer I
|
|
3944
|
+
? I extends Attribute
|
|
3945
|
+
? Array<ItemAttribute<I>>
|
|
3946
|
+
: never
|
|
3945
3947
|
: never
|
|
3946
3948
|
: never
|
|
3947
|
-
:
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3949
|
+
: R extends "set"
|
|
3950
|
+
? "items" extends keyof A
|
|
3951
|
+
? A["items"] extends infer I
|
|
3952
|
+
? I extends "string"
|
|
3953
|
+
? string[]
|
|
3954
|
+
: I extends "number"
|
|
3955
|
+
? number[]
|
|
3956
|
+
: I extends ReadonlyArray<infer ENUM>
|
|
3957
|
+
? ENUM[]
|
|
3958
|
+
: never
|
|
3957
3959
|
: never
|
|
3958
3960
|
: never
|
|
3961
|
+
: R extends "any"
|
|
3962
|
+
? any
|
|
3959
3963
|
: never
|
|
3960
|
-
: R extends "any"
|
|
3961
|
-
? any
|
|
3962
3964
|
: never
|
|
3963
3965
|
: never;
|
|
3964
3966
|
|