pareto-core 0.1.125 → 0.1.126
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/command.d.ts +1 -0
- package/dist/command.js +2 -1
- package/package.json +1 -1
- package/dist/interface/Parameters.d.ts +0 -4
- package/dist/interface/Parameters.js +0 -3
- package/dist/interface/algorithm_signatures/Command.d.ts +0 -14
- package/dist/interface/algorithm_signatures/Command.js +0 -3
- package/dist/interface/algorithm_signatures/Query.d.ts +0 -4
- package/dist/interface/algorithm_signatures/Query.js +0 -3
- package/dist/interface/algorithm_signatures/Query_Function.d.ts +0 -5
- package/dist/interface/algorithm_signatures/Query_Function.js +0 -3
- package/dist/interface/algorithm_signatures/Query_Result.d.ts +0 -15
- package/dist/interface/algorithm_signatures/Query_Result.js +0 -3
package/dist/command.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./__internals/async/command_procedure";
|
|
|
9
9
|
export * from "./__internals/async/command_promise";
|
|
10
10
|
export * from "./__internals/async/command";
|
|
11
11
|
export * from "./__internals/async/command_statement";
|
|
12
|
+
export * from "./__internals/async/Command_Block";
|
|
12
13
|
export type Option<T extends _pi.Value> = readonly [string, T];
|
|
13
14
|
export declare function ss<T extends _pi.Value, RT extends _pci.Command_Promise<any>>(option: Option<T>, $c: ($: T) => RT): RT;
|
|
14
15
|
export declare function au<RT extends _pci.Command_Promise<any>>(_x: never): RT;
|
package/dist/command.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./__internals/async/command_procedure"), exports);
|
|
|
31
31
|
__exportStar(require("./__internals/async/command_promise"), exports);
|
|
32
32
|
__exportStar(require("./__internals/async/command"), exports);
|
|
33
33
|
__exportStar(require("./__internals/async/command_statement"), exports);
|
|
34
|
+
__exportStar(require("./__internals/async/Command_Block"), exports);
|
|
34
35
|
function ss(option, $c) {
|
|
35
36
|
return $c(option[1]);
|
|
36
37
|
}
|
|
@@ -43,4 +44,4 @@ var decide;
|
|
|
43
44
|
return assign(state);
|
|
44
45
|
};
|
|
45
46
|
})(decide || (exports.decide = decide = {}));
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBc0JBLGdCQUlDO0FBRUQsZ0JBSUM7QUE3QkQsOEZBQXFFO0FBS2pFLDRCQUxHLDJCQUFpQixDQUtIO0FBSnJCLDBGQUFtRTtBQUsvRCw0QkFMRyx5QkFBaUIsQ0FLSDtBQUpyQiwwRUFBbUQ7QUFLL0Msb0JBTEcsaUJBQVMsQ0FLSDtBQUdiLHdFQUFxRDtBQUNyRCx3RUFBcUQ7QUFDckQsc0VBQW1EO0FBQ25ELDhEQUEyQztBQUMzQyx3RUFBcUQ7QUFDckQsb0VBQWlEO0FBSWpELFNBQWdCLEVBQUUsQ0FDZCxNQUFpQixFQUNqQixFQUFnQjtJQUNoQixPQUFPLEVBQUUsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtBQUN4QixDQUFDO0FBRUQsU0FBZ0IsRUFBRSxDQUNkLEVBQVM7SUFFVCxNQUFNLElBQUksS0FBSyxDQUFDLGFBQWEsQ0FBQyxDQUFBO0FBQ2xDLENBQUM7QUFFRCxJQUFpQixNQUFNLENBWXRCO0FBWkQsV0FBaUIsTUFBTTtJQUVOLFlBQUssR0FBRyxDQUlqQixLQUFRLEVBQ1IsTUFBeUIsRUFDdkIsRUFBRTtRQUNKLE9BQU8sTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFBO0lBQ3hCLENBQUMsQ0FBQTtBQUVMLENBQUMsRUFaZ0IsTUFBTSxzQkFBTixNQUFNLFFBWXRCIn0=
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGFyYW1ldGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbnRlcmZhY2UvUGFyYW1ldGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Parameters } from "../Parameters";
|
|
2
|
-
import { Query } from "./Query";
|
|
3
|
-
import { Transformer } from "./Transformer";
|
|
4
|
-
export type Command_Procedure<My_Command extends Command<any, any>, Static_Parameters extends Parameters, Query_Resources extends null | {
|
|
5
|
-
[key: string]: Query<any, any, any>;
|
|
6
|
-
}, Command_Resources extends null | {
|
|
7
|
-
[key: string]: Command<any, any>;
|
|
8
|
-
}> = ($s: Static_Parameters, $q: Query_Resources, $c: Command_Resources) => My_Command;
|
|
9
|
-
export type Command<Error, Dynamic_Parameters extends Parameters> = {
|
|
10
|
-
'execute': <Target_Error>($d: Dynamic_Parameters, error_transformer: Transformer<Error, Target_Error>) => Command_Promise<Target_Error>;
|
|
11
|
-
};
|
|
12
|
-
export type Command_Promise<Error> = {
|
|
13
|
-
__start: (on_success: () => void, on_error: (error: Error) => void) => void;
|
|
14
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbnRlcmZhY2UvYWxnb3JpdGhtX3NpZ25hdHVyZXMvQ29tbWFuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Parameters } from "../Parameters";
|
|
2
|
-
import { Query_Result } from "./Query_Result";
|
|
3
|
-
import { Transformer } from "./Transformer";
|
|
4
|
-
export type Query<Output, Error, Input extends Parameters> = <Target_Error>($: Input, error_transformer: Transformer<Error, Target_Error>) => Query_Result<Output, Target_Error>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJmYWNlL2FsZ29yaXRobV9zaWduYXR1cmVzL1F1ZXJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Parameters } from "../Parameters";
|
|
2
|
-
import { Query } from "./Query";
|
|
3
|
-
export type Query_Function<My_Query extends Query<any, any, any>, Static_Parameters extends Parameters, Query_Resources extends null | {
|
|
4
|
-
[key: string]: Query<any, any, any>;
|
|
5
|
-
}> = ($s: Static_Parameters, $q: Query_Resources) => My_Query;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnlfRnVuY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJmYWNlL2FsZ29yaXRobV9zaWduYXR1cmVzL1F1ZXJ5X0Z1bmN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Transformer } from "./Transformer";
|
|
2
|
-
import { Abort } from "../Abort";
|
|
3
|
-
export type Query_Callback<Output, Error, Input> = ($: Input) => Query_Result<Output, Error>;
|
|
4
|
-
export interface Query_Result<Output, Error> {
|
|
5
|
-
__query_result: null;
|
|
6
|
-
transform<New_Output>(transformer: Transformer<Output, New_Output>): Query_Result<New_Output, Error>;
|
|
7
|
-
query<New_Output>(query: Query_Callback<New_Output, Error, Output>): Query_Result<New_Output, Error>;
|
|
8
|
-
refine<New_Output>(callback: ($: Output, abort: Abort<Error>) => New_Output): Query_Result<New_Output, Error>;
|
|
9
|
-
rework_error_temp<New_Error, Rework_Error>(error_reworker: Query_Callback<New_Error, Rework_Error, Error>,
|
|
10
|
-
/**
|
|
11
|
-
* if the reworker fails, we need to transform *that* error into the New_Error
|
|
12
|
-
*/
|
|
13
|
-
rework_error_transformer: Transformer<Rework_Error, New_Error>): Query_Result<Output, New_Error>;
|
|
14
|
-
__extract_data: (on_success: ($: Output) => void, on_error: ($: Error) => void) => void;
|
|
15
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnlfUmVzdWx0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ludGVyZmFjZS9hbGdvcml0aG1fc2lnbmF0dXJlcy9RdWVyeV9SZXN1bHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|