dyna-record 0.4.7 → 0.4.9
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type DynaRecord from "../../DynaRecord";
|
|
2
|
-
import type { EntityAttributesOnly, FunctionFields, RelationshipAttributeNames } from "../types";
|
|
2
|
+
import type { EntityAttributesInstance, EntityAttributesOnly, FunctionFields, RelationshipAttributeNames } from "../types";
|
|
3
3
|
import { type QueryResult, type QueryResults } from "../Query";
|
|
4
4
|
/**
|
|
5
5
|
* An array of objects each describing an entity relationship association to include.
|
|
@@ -40,7 +40,7 @@ type IncludedKeys<T extends DynaRecord, Inc extends IncludedAssociations<T> = []
|
|
|
40
40
|
* entity attributes with included associations.
|
|
41
41
|
*/
|
|
42
42
|
type EntityKeysWithIncludedAssociations<T extends DynaRecord, P extends keyof T> = {
|
|
43
|
-
[K in P]: T[K] extends DynaRecord ?
|
|
43
|
+
[K in P]: T[K] extends DynaRecord ? EntityAttributesInstance<T[K]> : T[K] extends DynaRecord[] ? Array<EntityAttributesInstance<T[K][number]>> : T[K] extends DynaRecord | undefined ? EntityAttributesInstance<Exclude<T[K], undefined>> | undefined : T[K];
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
46
|
* The result type for a FindById operation that includes associations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/operations/FindById/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EACd,0BAA0B,EAC3B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,UAAU,IAAI,KAAK,CAAC;IAC7D,WAAW,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