@karmaniverous/entity-manager 6.2.1 → 6.2.3
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/dist/index.d.ts +5 -5
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Entity, Exactify, TranscodeMap, PropertiesOfType, TranscodableProperties, Transcodes, DefaultTranscodeMap, SortOrder } from '@karmaniverous/entity-tools';
|
|
2
|
-
export { DefaultTranscodeMap, Entity, Exactify, PropertiesOfType, SortOrder, TranscodableProperties, TranscodeMap, Transcodes, defaultTranscodes } from '@karmaniverous/entity-tools';
|
|
1
|
+
import { Entity, Exactify, TranscodeMap, PropertiesOfType, TranscodableProperties, Transcodes, DefaultTranscodeMap, PartialTranscodable, SortOrder } from '@karmaniverous/entity-tools';
|
|
2
|
+
export { DefaultTranscodeMap, Entity, Exactify, PartialTranscodable, PropertiesNotOfType, PropertiesOfType, SortOrder, TranscodableProperties, TranscodeMap, Transcodes, defaultTranscodes } from '@karmaniverous/entity-tools';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -643,7 +643,7 @@ interface ShardQueryResult<Item extends ItemMap<M, HashKey, RangeKey>[EntityToke
|
|
|
643
643
|
/** The returned records. */
|
|
644
644
|
items: Item[];
|
|
645
645
|
/** The page key for the next query on this shard. */
|
|
646
|
-
pageKey?:
|
|
646
|
+
pageKey?: PartialTranscodable<Item, T>;
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
/**
|
|
@@ -662,7 +662,7 @@ interface ShardQueryResult<Item extends ItemMap<M, HashKey, RangeKey>[EntityToke
|
|
|
662
662
|
*
|
|
663
663
|
* @category Query
|
|
664
664
|
*/
|
|
665
|
-
type ShardQueryFunction<Item extends ItemMap<M, HashKey, RangeKey>[EntityToken], EntityToken extends keyof Exactify<M> & string, M extends EntityMap, HashKey extends string = 'hashKey', RangeKey extends string = 'rangeKey', T extends TranscodeMap = DefaultTranscodeMap> = (hashKey: string, pageKey?:
|
|
665
|
+
type ShardQueryFunction<Item extends ItemMap<M, HashKey, RangeKey>[EntityToken], EntityToken extends keyof Exactify<M> & string, M extends EntityMap, HashKey extends string = 'hashKey', RangeKey extends string = 'rangeKey', T extends TranscodeMap = DefaultTranscodeMap> = (hashKey: string, pageKey?: PartialTranscodable<Item, T>, pageSize?: number) => Promise<ShardQueryResult<Item, EntityToken, M, HashKey, RangeKey, T>>;
|
|
666
666
|
|
|
667
667
|
/**
|
|
668
668
|
* Options passed to the {@link EntityManager.query | `EntityManager.query`} method.
|
|
@@ -936,7 +936,7 @@ interface ShardQueryFunctionBuilderOptions<Item extends ItemMap<M, HashKey, Rang
|
|
|
936
936
|
* @category Query
|
|
937
937
|
*/
|
|
938
938
|
declare abstract class ShardQueryFunctionBuilder<Item extends ItemMap<M, HashKey, RangeKey>[EntityToken], EntityToken extends keyof Exactify<M> & string, M extends EntityMap, HashKey extends string, RangeKey extends string, T extends TranscodeMap, Options extends ShardQueryFunctionBuilderOptions<Item, EntityToken, M, HashKey, RangeKey, T>> {
|
|
939
|
-
|
|
939
|
+
protected options: Options;
|
|
940
940
|
constructor(options: Options);
|
|
941
941
|
abstract getShardQueryFunction(): ShardQueryFunction<Item, EntityToken, M, HashKey, RangeKey, T>;
|
|
942
942
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/karmaniverous/entity-manager/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@karmaniverous/entity-tools": "^0.
|
|
7
|
+
"@karmaniverous/entity-tools": "^0.3.0",
|
|
8
8
|
"@karmaniverous/string-utilities": "^0.2.1",
|
|
9
9
|
"jsonschema": "^1.4.1",
|
|
10
10
|
"lz-string": "^1.5.0",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"description": "Rational indexing & cross-shard querying at scale in your NoSQL database so you can focus on your application logic.",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@dotenvx/dotenvx": "^1.
|
|
17
|
+
"@dotenvx/dotenvx": "^1.16.0",
|
|
18
18
|
"@eslint/js": "^9.12.0",
|
|
19
19
|
"@faker-js/faker": "^9.0.3",
|
|
20
|
-
"@karmaniverous/mock-db": "^0.3.
|
|
20
|
+
"@karmaniverous/mock-db": "^0.3.2",
|
|
21
21
|
"@rollup/plugin-alias": "^5.1.1",
|
|
22
22
|
"@rollup/plugin-commonjs": "^28.0.0",
|
|
23
23
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@types/eslint__js": "^8.42.3",
|
|
29
29
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
30
30
|
"@types/eslint-plugin-mocha": "^10.4.0",
|
|
31
|
-
"@types/mocha": "^10.0.
|
|
32
|
-
"@types/node": "^22.7.
|
|
31
|
+
"@types/mocha": "^10.0.9",
|
|
32
|
+
"@types/node": "^22.7.5",
|
|
33
33
|
"@types/string-hash": "^1.1.3",
|
|
34
34
|
"auto-changelog": "^2.5.0",
|
|
35
35
|
"chai": "^5.1.1",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
41
41
|
"eslint-plugin-tsdoc": "^0.3.0",
|
|
42
42
|
"jsdom-global": "^3.0.2",
|
|
43
|
-
"knip": "^5.
|
|
43
|
+
"knip": "^5.33.1",
|
|
44
44
|
"lefthook": "^1.7.18",
|
|
45
45
|
"mocha": "^10.7.3",
|
|
46
46
|
"nyc": "^17.1.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"typedoc-plugin-replace-text": "^4.0.0",
|
|
58
58
|
"typedoc-plugin-zod": "^1.2.1",
|
|
59
59
|
"typescript": "^5.6.2",
|
|
60
|
-
"typescript-eslint": "^8.8.
|
|
60
|
+
"typescript-eslint": "^8.8.1"
|
|
61
61
|
},
|
|
62
62
|
"exports": {
|
|
63
63
|
".": {
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
},
|
|
133
133
|
"type": "module",
|
|
134
134
|
"types": "dist/index.d.ts",
|
|
135
|
-
"version": "6.2.
|
|
135
|
+
"version": "6.2.3"
|
|
136
136
|
}
|