pareto-core 0.1.108 → 0.1.110
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/__internals/async/command.d.ts +2 -3
- package/dist/__internals/async/command.js +1 -1
- package/dist/__internals/async/command_procedure.d.ts +3 -6
- package/dist/__internals/async/command_procedure.js +1 -1
- package/dist/__internals/async/query.d.ts +2 -3
- package/dist/__internals/async/query.js +1 -1
- package/dist/__internals/async/query_function.d.ts +2 -5
- package/dist/__internals/async/query_function.js +1 -1
- package/dist/interface/Parameters.d.ts +6 -0
- package/dist/interface/Parameters.js +3 -0
- package/dist/interface/algorithm_signatures/Command.d.ts +4 -7
- package/dist/interface/algorithm_signatures/Query.d.ts +2 -3
- package/dist/interface/algorithm_signatures/Query_Function.d.ts +2 -3
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import * as _pi from "../../interface";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}>(handler: ($: Dynamic_Parameters) => _pi.Command_Promise<Error>): _pi.Command<Error, Dynamic_Parameters>;
|
|
2
|
+
import { Parameters } from "../../interface/Parameters";
|
|
3
|
+
export default function __command<Error, Dynamic_Parameters extends Parameters>(handler: ($: Dynamic_Parameters) => _pi.Command_Promise<Error>): _pi.Command<Error, Dynamic_Parameters>;
|
|
@@ -18,4 +18,4 @@ function __command(handler) {
|
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9fX2ludGVybmFscy9hc3luYy9jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBSUEsNEJBeUJDO0FBM0JELHdFQUFpRDtBQUVqRCxTQUF3QixTQUFTLENBSTdCLE9BQThEO0lBSzlELE9BQU87UUFDSCxTQUFTLEVBQUUsQ0FBQyxVQUFVLEVBQUUsaUJBQWlCLEVBQUUsRUFBRTtZQUN6QyxPQUFPLElBQUEseUJBQWlCLEVBQUM7Z0JBQ3JCLFNBQVMsRUFBRSxDQUFDLFVBQVUsRUFBRSxRQUFRLEVBQUUsRUFBRTtvQkFDaEMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDLE9BQU8sQ0FDdkIsVUFBVSxFQUNWLENBQUMsS0FBSyxFQUFFLEVBQUU7d0JBQ04sUUFBUSxDQUNKLGlCQUFpQixDQUFDLEtBQUssQ0FBQyxDQUMzQixDQUFBO29CQUNMLENBQUMsQ0FDSixDQUFBO2dCQUNMLENBQUM7YUFDSixDQUFDLENBQUE7UUFDTixDQUFDO0tBQ0osQ0FBQTtBQUNMLENBQUMifQ==
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import * as _pi from "../../interface";
|
|
2
2
|
import { Command_Block } from "./Command_Block";
|
|
3
3
|
import { Command } from "../../interface/algorithm_signatures/Command";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}, Static_Parameters extends {
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
}, Query_Resources extends {
|
|
4
|
+
import { Parameters } from "../../interface/Parameters";
|
|
5
|
+
export default function command_procedure<Error, Dynamic_Parameters extends Parameters, Static_Parameters extends Parameters, Query_Resources extends null | {
|
|
9
6
|
[key: string]: _pi.Query<any, any, any>;
|
|
10
|
-
}, Command_Resources extends {
|
|
7
|
+
}, Command_Resources extends null | {
|
|
11
8
|
[key: string]: Command<any, any>;
|
|
12
9
|
}>(execution_handler: ($d: Dynamic_Parameters, $s: Static_Parameters, $qr: Query_Resources, $cr: Command_Resources) => Command_Block<Error>): _pi.Command_Procedure<Command<Error, Dynamic_Parameters>, Static_Parameters, Query_Resources, Command_Resources>;
|
|
@@ -21,4 +21,4 @@ function command_procedure(exec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
|
|
1
1
|
import * as _pi from "../../interface";
|
|
2
2
|
import { Query_Result } from "../../interface/algorithm_signatures/Query_Result";
|
|
3
|
+
import { Parameters } from "../../interface/Parameters";
|
|
3
4
|
type Queryer<Output, Error, Input> = ($: Input) => Query_Result<Output, Error>;
|
|
4
|
-
export default function __query<Result, Error,
|
|
5
|
-
[key: string]: unknown;
|
|
6
|
-
}>(handler: Queryer<Result, Error, Parameters>): _pi.Query<Result, Error, Parameters>;
|
|
5
|
+
export default function __query<Result, Error, Dynamic_Parameters extends Parameters>(handler: Queryer<Result, Error, Dynamic_Parameters>): _pi.Query<Result, Error, Dynamic_Parameters>;
|
|
7
6
|
export {};
|
|
@@ -12,4 +12,4 @@ function __query(handler) {
|
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvX19pbnRlcm5hbHMvYXN5bmMvcXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFVQSwwQkFjQztBQXJCRCxzRUFBNkM7QUFPN0MsU0FBd0IsT0FBTyxDQUl2QixPQUFtRDtJQUV2RCxPQUFPLENBQUMsVUFBVSxFQUFFLGlCQUFpQixFQUFFLEVBQUUsQ0FBQyxJQUFBLHdCQUFjLEVBQUMsQ0FBQyxVQUFVLEVBQUUsUUFBUSxFQUFFLEVBQUU7UUFDOUUsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDLGNBQWMsQ0FDOUIsVUFBVSxFQUNWLENBQUMsQ0FBQyxFQUFFLEVBQUU7WUFDRixRQUFRLENBQUMsaUJBQWlCLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUNsQyxDQUFDLENBQ0osQ0FBQTtJQUNMLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyJ9
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import * as _pi from "../../interface";
|
|
2
2
|
import { Query_Result } from "../../interface/algorithm_signatures/Query_Result";
|
|
3
3
|
import { Query } from "../../interface/algorithm_signatures/Query";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}, Static_Parameters extends {
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
}, Query_Resources extends {
|
|
4
|
+
import { Parameters } from "../../interface/Parameters";
|
|
5
|
+
export default function query_function<Result, Error, Dynamic_Parameters extends Parameters, Static_Parameters extends Parameters, Query_Resources extends null | {
|
|
9
6
|
[key: string]: _pi.Query<any, any, any>;
|
|
10
7
|
}>(handler: ($d: Dynamic_Parameters, $s: Static_Parameters, $q: Query_Resources) => Query_Result<Result, Error>): _pi.Query_Function<Query<Result, Error, Dynamic_Parameters>, Static_Parameters, Query_Resources>;
|
|
@@ -14,4 +14,4 @@ function query_function(handler) {
|
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnlfZnVuY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvX19pbnRlcm5hbHMvYXN5bmMvcXVlcnlfZnVuY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFRQSxpQ0EwQ0M7QUEvQ0Qsc0VBQTZDO0FBSzdDLFNBQXdCLGNBQWMsQ0FPbEMsT0FPQztJQVVELE9BQU8sQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUNmLEVBQUUsRUFDRixpQkFBaUIsRUFDbkIsRUFBRTtRQUNBLE9BQU8sSUFBQSx3QkFBYyxFQUNqQixDQUNJLFVBQVUsRUFDVixRQUFRLEVBQ1YsRUFBRTtZQUNBLE9BQU8sQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUFDLGNBQWMsQ0FDOUIsVUFBVSxFQUNWLENBQUMsQ0FBQyxFQUFFLEVBQUU7Z0JBQ0YsUUFBUSxDQUFDLGlCQUFpQixDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7WUFDbEMsQ0FBQyxDQUNKLENBQUE7UUFDTCxDQUFDLENBQ0osQ0FBQTtJQUNMLENBQUMsQ0FBQTtBQUNMLENBQUMifQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGFyYW1ldGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbnRlcmZhY2UvUGFyYW1ldGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
+
import { Parameters } from "../Parameters";
|
|
1
2
|
import { Query } from "./Query";
|
|
2
3
|
import { Transformer } from "./Transformer";
|
|
3
|
-
export type Command_Procedure<My_Command extends Command<any, any>, Static_Parameters extends {
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
}, Query_Resources extends {
|
|
4
|
+
export type Command_Procedure<My_Command extends Command<any, any>, Static_Parameters extends Parameters, Query_Resources extends null | {
|
|
6
5
|
[key: string]: Query<any, any, any>;
|
|
7
|
-
}, Command_Resources extends {
|
|
6
|
+
}, Command_Resources extends null | {
|
|
8
7
|
[key: string]: Command<any, any>;
|
|
9
8
|
}> = ($s: Static_Parameters, $q: Query_Resources, $c: Command_Resources) => My_Command;
|
|
10
|
-
export type Command<Error, Dynamic_Parameters extends {
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
}> = {
|
|
9
|
+
export type Command<Error, Dynamic_Parameters extends Parameters> = {
|
|
13
10
|
'execute': <Target_Error>($d: Dynamic_Parameters, error_transformer: Transformer<Error, Target_Error>) => Command_Promise<Target_Error>;
|
|
14
11
|
};
|
|
15
12
|
export type Command_Promise<Error> = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
+
import { Parameters } from "../Parameters";
|
|
1
2
|
import { Query_Result } from "./Query_Result";
|
|
2
3
|
import { Transformer } from "./Transformer";
|
|
3
|
-
export type Query<Output, Error, Input extends
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
}> = <Target_Error>($: Input, error_transformer: Transformer<Error, Target_Error>) => Query_Result<Output, Target_Error>;
|
|
4
|
+
export type Query<Output, Error, Input extends Parameters> = <Target_Error>($: Input, error_transformer: Transformer<Error, Target_Error>) => Query_Result<Output, Target_Error>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import { Parameters } from "../Parameters";
|
|
1
2
|
import { Query } from "./Query";
|
|
2
|
-
export type Query_Function<My_Query extends Query<any, any, any>, Static_Parameters extends {
|
|
3
|
-
[key: string]: unknown;
|
|
4
|
-
}, Query_Resources extends {
|
|
3
|
+
export type Query_Function<My_Query extends Query<any, any, any>, Static_Parameters extends Parameters, Query_Resources extends null | {
|
|
5
4
|
[key: string]: Query<any, any, any>;
|
|
6
5
|
}> = ($s: Static_Parameters, $q: Query_Resources) => My_Query;
|