@aeriajs/core 0.0.235 → 0.0.236
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,7 @@
|
|
|
1
1
|
import type { SchemaWithId, Collection, StrictContext, Contract, ContractToFunction, Description, CollectionSecurityPolicy, AccessCondition } from '@aeriajs/types';
|
|
2
|
-
export type ExtendCollection<TLeftCollection extends Omit<Collection, 'item'
|
|
2
|
+
export type ExtendCollection<TLeftCollection extends Omit<Collection, 'item' | 'functions'> & {
|
|
3
|
+
functions?: unknown;
|
|
4
|
+
}, TRightCollection> = TLeftCollection & TRightCollection & {
|
|
3
5
|
item: SchemaWithId<(TLeftCollection & TRightCollection)['description']>;
|
|
4
6
|
};
|
|
5
7
|
export declare const defineCollection: <TCollection extends Collection<TCollection extends Collection ? TCollection : never> extends infer Coll ? Omit<Coll, "item" | "description" | "functions" | "exposedFunctions" | "security" | "middlewares"> : never, const TDescription extends Description<TDescription>, const TContracts extends { [P in keyof TFunctions]?: Contract; }, TExposedFunctions extends Partial<Record<keyof TFunctions, AccessCondition>>, TFunctions extends undefined | (Record<string, (payload: any, context: StrictContext<any>) => any> & { [P in keyof TContracts | keyof TExposedFunctions]: ContractToFunction<P extends keyof TContracts ? NonNullable<TContracts[P]> : any, StrictContext<P extends keyof TExposedFunctions ? TExposedFunctions[P] : never, TDescription>>; })>(collection: TCollection & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.236",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"aeriaMain": "tests/fixtures/aeriaMain.js",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"mongodb-memory-server": "^9.2.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@aeriajs/builtins": "^0.0.
|
|
45
|
+
"@aeriajs/builtins": "^0.0.236",
|
|
46
46
|
"@aeriajs/common": "^0.0.133",
|
|
47
47
|
"@aeriajs/entrypoint": "^0.0.137",
|
|
48
48
|
"@aeriajs/http": "^0.0.161",
|
|
49
|
-
"@aeriajs/security": "^0.0.
|
|
49
|
+
"@aeriajs/security": "^0.0.236",
|
|
50
50
|
"@aeriajs/types": "^0.0.115",
|
|
51
51
|
"@aeriajs/validation": "^0.0.149"
|
|
52
52
|
},
|