exupery-core-async 0.3.34 → 0.3.36
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/actions.d.ts +17 -0
- package/dist/{expressions/procedure.js → command/actions.js} +14 -14
- package/dist/command/creaters/create_command.d.ts +3 -0
- package/dist/{algorithms/procedure/create_procedure_primed_with_resources.js → command/creaters/create_command.js} +7 -7
- package/dist/command/creaters/create_command_procedure.d.ts +2 -0
- package/dist/command/creaters/create_command_procedure.js +8 -0
- package/dist/{algorithms/procedure/create_procedure_promise.d.ts → command/creaters/create_command_promise.d.ts} +1 -1
- package/dist/{algorithms/procedure/create_procedure_promise.js → command/creaters/create_command_promise.js} +5 -5
- package/dist/index.d.ts +8 -13
- package/dist/index.js +8 -30
- package/dist/{expressions/query.d.ts → query/actions.d.ts} +2 -1
- package/dist/{expressions/query.js → query/actions.js} +10 -3
- package/dist/query/creaters/create_query.d.ts +2 -0
- package/dist/{algorithms/query/create_query_primed_with_resources.js → query/creaters/create_query.js} +3 -3
- package/dist/query/creaters/create_query_procedure.d.ts +2 -0
- package/dist/query/creaters/create_query_procedure.js +8 -0
- package/package.json +1 -1
- package/dist/algorithms/procedure/create_procedure.d.ts +0 -2
- package/dist/algorithms/procedure/create_procedure.js +0 -8
- package/dist/algorithms/procedure/create_procedure_primed_with_resources.d.ts +0 -3
- package/dist/algorithms/query/create_query.d.ts +0 -2
- package/dist/algorithms/query/create_query.js +0 -8
- package/dist/algorithms/query/create_query_primed_with_resources.d.ts +0 -2
- package/dist/expressions/procedure.d.ts +0 -17
- package/dist/types/Error_Handler.d.ts +0 -1
- package/dist/types/Error_Handler.js +0 -2
- /package/dist/{algorithms/query → query/creaters}/create_query_promise.d.ts +0 -0
- /package/dist/{algorithms/query → query/creaters}/create_query_promise.js +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _et from 'exupery-core-types';
|
|
2
|
+
import { Basic_Command } from './creaters/create_command';
|
|
3
|
+
export declare namespace p {
|
|
4
|
+
const array_parallel: <Error, Element_Error>(the_array: _et.Array<_et.Command_Promise<Element_Error>>, aggregate_errors: _et.Transformer_Without_Parameters<_et.Array<Element_Error>, Error>) => _et.Command_Promise<Error>;
|
|
5
|
+
const array_serie: <Error>(array: _et.Array<_et.Command_Promise<Error>>) => _et.Command_Promise<Error>;
|
|
6
|
+
const assert_async: <Error>(assertion: _et.Query_Promise<boolean, Error>, error_if_failed: Error) => _et.Command_Promise<Error>;
|
|
7
|
+
const assert_sync: <Error>(assertion: boolean, error_if_failed: Error) => _et.Command_Promise<Error>;
|
|
8
|
+
const conditional_async: <Error>(precondition: _et.Query_Promise<boolean, Error>, procedure: _et.Command_Promise<Error>) => _et.Command_Promise<Error>;
|
|
9
|
+
const conditional_sync: <Error>(precondition: boolean, procedure: _et.Command_Promise<Error>) => _et.Command_Promise<Error>;
|
|
10
|
+
const conditional_on_processor: <Procedure_Input, Error>(precondition: _et.Process_Result<Procedure_Input, Error>, procedure: Basic_Command<Procedure_Input, Error>) => _et.Command_Promise<Error>;
|
|
11
|
+
const conditional_on_refiner: <Procedure_Input, Refinement_Error, Error>(precondition: _et.Refinement_Result<Procedure_Input, Refinement_Error>, error_transformer: _et.Transformer_Without_Parameters<Refinement_Error, Error>, procedure: Basic_Command<Procedure_Input, Error>) => _et.Command_Promise<Error>;
|
|
12
|
+
const dictionary_serie: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Command_Promise<Entry_Error>>, transform_error: _et.Transformer_Without_Parameters<_et.Key_Value_Pair<Entry_Error>, Error>) => _et.Command_Promise<Error>;
|
|
13
|
+
const dictionary_parallel: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Command_Promise<Entry_Error>>, aggregate_errors: _et.Transformer_Without_Parameters<_et.Dictionary<Entry_Error>, Error>) => _et.Command_Promise<Error>;
|
|
14
|
+
const dictionary_parallel_without_transforming_the_error: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Command_Promise<Entry_Error>>) => _et.Command_Promise<_et.Dictionary<Entry_Error>>;
|
|
15
|
+
const execute_with_async_data: <Parameters, Error>(procedure: _et.Command<Parameters, Error>, query: _et.Query_Promise<Parameters, Error>) => _et.Command_Promise<Error>;
|
|
16
|
+
const sequence: <Error>(steps: _et.Command_Promise<Error>[]) => _et.Command_Promise<Error>;
|
|
17
|
+
}
|
|
@@ -25,12 +25,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.p = void 0;
|
|
27
27
|
const _ei = __importStar(require("exupery-core-internals"));
|
|
28
|
-
const
|
|
28
|
+
const create_command_promise_1 = require("./creaters/create_command_promise");
|
|
29
29
|
const create_asynchronous_processes_monitor_1 = require("../create_asynchronous_processes_monitor");
|
|
30
30
|
var p;
|
|
31
31
|
(function (p) {
|
|
32
32
|
p.array_parallel = (the_array, aggregate_errors) => {
|
|
33
|
-
return (0,
|
|
33
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
34
34
|
'execute': (on_success, on_error) => {
|
|
35
35
|
const errors = [];
|
|
36
36
|
(0, create_asynchronous_processes_monitor_1.create_asynchronous_processes_monitor)((monitor) => {
|
|
@@ -55,7 +55,7 @@ var p;
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
p.array_serie = (array) => {
|
|
58
|
-
return (0,
|
|
58
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
59
59
|
'execute': (on_success, on_error) => {
|
|
60
60
|
let current = 0;
|
|
61
61
|
const do_next = () => {
|
|
@@ -73,7 +73,7 @@ var p;
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
p.assert_async = (assertion, error_if_failed) => {
|
|
76
|
-
return (0,
|
|
76
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
77
77
|
'execute': (on_success, on_error) => {
|
|
78
78
|
assertion.__start(($) => {
|
|
79
79
|
if ($) {
|
|
@@ -89,7 +89,7 @@ var p;
|
|
|
89
89
|
});
|
|
90
90
|
};
|
|
91
91
|
p.assert_sync = (assertion, error_if_failed) => {
|
|
92
|
-
return (0,
|
|
92
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
93
93
|
'execute': (on_success, on_error) => {
|
|
94
94
|
if (!assertion) {
|
|
95
95
|
on_error(error_if_failed);
|
|
@@ -100,7 +100,7 @@ var p;
|
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
102
|
p.conditional_async = (precondition, procedure) => {
|
|
103
|
-
return (0,
|
|
103
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
104
104
|
'execute': (on_success, on_error) => {
|
|
105
105
|
precondition.__start(($) => {
|
|
106
106
|
if ($) {
|
|
@@ -114,7 +114,7 @@ var p;
|
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
116
|
p.conditional_sync = (precondition, procedure) => {
|
|
117
|
-
return (0,
|
|
117
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
118
118
|
'execute': (on_success, on_error) => {
|
|
119
119
|
if (precondition) {
|
|
120
120
|
procedure.__start(on_success, on_error);
|
|
@@ -126,7 +126,7 @@ var p;
|
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
128
|
p.conditional_on_processor = (precondition, procedure) => {
|
|
129
|
-
return (0,
|
|
129
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
130
130
|
'execute': (on_success, on_error) => {
|
|
131
131
|
precondition.__extract_data(($) => {
|
|
132
132
|
procedure($).__start(on_success, on_error);
|
|
@@ -135,7 +135,7 @@ var p;
|
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
137
|
p.conditional_on_refiner = (precondition, error_transformer, procedure) => {
|
|
138
|
-
return (0,
|
|
138
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
139
139
|
'execute': (on_success, on_error) => {
|
|
140
140
|
precondition.process(($) => {
|
|
141
141
|
procedure($).__start(on_success, on_error);
|
|
@@ -146,7 +146,7 @@ var p;
|
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
148
|
p.dictionary_serie = (dictionary, transform_error) => {
|
|
149
|
-
return (0,
|
|
149
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
150
150
|
'execute': (on_success, on_error) => {
|
|
151
151
|
const op_dictionary_to_list_based_on_insertion_order = (dict) => {
|
|
152
152
|
const temp = [];
|
|
@@ -178,7 +178,7 @@ var p;
|
|
|
178
178
|
});
|
|
179
179
|
};
|
|
180
180
|
p.dictionary_parallel = (dictionary, aggregate_errors) => {
|
|
181
|
-
return (0,
|
|
181
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
182
182
|
'execute': (on_success, on_error) => {
|
|
183
183
|
const errors = {};
|
|
184
184
|
(0, create_asynchronous_processes_monitor_1.create_asynchronous_processes_monitor)((monitor) => {
|
|
@@ -203,7 +203,7 @@ var p;
|
|
|
203
203
|
});
|
|
204
204
|
};
|
|
205
205
|
p.dictionary_parallel_without_transforming_the_error = (dictionary) => {
|
|
206
|
-
return (0,
|
|
206
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
207
207
|
'execute': (on_success, on_error) => {
|
|
208
208
|
const errors = {};
|
|
209
209
|
(0, create_asynchronous_processes_monitor_1.create_asynchronous_processes_monitor)((monitor) => {
|
|
@@ -228,7 +228,7 @@ var p;
|
|
|
228
228
|
});
|
|
229
229
|
};
|
|
230
230
|
p.execute_with_async_data = (procedure, query) => {
|
|
231
|
-
return (0,
|
|
231
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
232
232
|
'execute': (on_success, on_error) => {
|
|
233
233
|
query.__start((query_result) => {
|
|
234
234
|
procedure['execute with synchronous data without error transformation'](query_result).__start(on_success, on_error);
|
|
@@ -237,7 +237,7 @@ var p;
|
|
|
237
237
|
});
|
|
238
238
|
};
|
|
239
239
|
p.sequence = (steps) => {
|
|
240
|
-
return (0,
|
|
240
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
241
241
|
'execute': (on_success, on_error) => {
|
|
242
242
|
const length = _ei.array_literal(steps).__get_number_of_elements();
|
|
243
243
|
const runStep = (index) => {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as _et from 'exupery-core-types';
|
|
2
|
+
export type Basic_Command<Parameters, Error> = ($: Parameters) => _et.Command_Promise<Error>;
|
|
3
|
+
export declare const __create_command: <Parameters, Error, Resources>(handler: Basic_Command<Parameters, Error>) => _et.Command<Parameters, Error>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
5
|
-
const
|
|
3
|
+
exports.__create_command = void 0;
|
|
4
|
+
const create_command_promise_1 = require("./create_command_promise");
|
|
5
|
+
const __create_command = (handler) => {
|
|
6
6
|
return {
|
|
7
7
|
'execute with synchronous data without error transformation': handler,
|
|
8
8
|
'execute with synchronous data': (parameters, transform_error) => {
|
|
9
|
-
return (0,
|
|
9
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
10
10
|
'execute': (on_success, on_error) => {
|
|
11
11
|
handler(parameters).__start(on_success, (error) => {
|
|
12
12
|
on_error(transform_error(error));
|
|
@@ -15,7 +15,7 @@ const __create_procedure_primed_with_resources = (handler) => {
|
|
|
15
15
|
});
|
|
16
16
|
},
|
|
17
17
|
'execute with asynchronous data without error transformation': (query) => {
|
|
18
|
-
return (0,
|
|
18
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
19
19
|
'execute': (on_success, on_error) => {
|
|
20
20
|
query.__start(($) => {
|
|
21
21
|
handler($).__start(on_success, on_error);
|
|
@@ -24,7 +24,7 @@ const __create_procedure_primed_with_resources = (handler) => {
|
|
|
24
24
|
});
|
|
25
25
|
},
|
|
26
26
|
'execute with asynchronous data': (query, transform_error) => {
|
|
27
|
-
return (0,
|
|
27
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
28
28
|
'execute': (on_success, on_error) => {
|
|
29
29
|
query.__start(($) => {
|
|
30
30
|
handler($).__start(on_success, (error) => {
|
|
@@ -38,4 +38,4 @@ const __create_procedure_primed_with_resources = (handler) => {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
-
exports.
|
|
41
|
+
exports.__create_command = __create_command;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create_command_procedure = void 0;
|
|
4
|
+
const create_command_1 = require("./create_command");
|
|
5
|
+
const create_command_procedure = (handler) => {
|
|
6
|
+
return ($r) => (0, create_command_1.__create_command)(($p) => handler($r, $p));
|
|
7
|
+
};
|
|
8
|
+
exports.create_command_procedure = create_command_procedure;
|
|
@@ -13,5 +13,5 @@ type Executer<E> = {
|
|
|
13
13
|
* @param executer the function that produces the eventual value
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function __create_command_promise<E>(executer: Executer<E>): _et.Command_Promise<E>;
|
|
17
17
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
class
|
|
3
|
+
exports.__create_command_promise = __create_command_promise;
|
|
4
|
+
class Command_Promise_Class {
|
|
5
5
|
constructor(executer) {
|
|
6
6
|
this.executer = executer;
|
|
7
7
|
}
|
|
@@ -9,7 +9,7 @@ class Procedure_Promise_Class {
|
|
|
9
9
|
this.executer.execute(on_success, on_error);
|
|
10
10
|
}
|
|
11
11
|
map_error(handle_error) {
|
|
12
|
-
return new
|
|
12
|
+
return new Command_Promise_Class({
|
|
13
13
|
'execute': (on_success, on_error) => {
|
|
14
14
|
this.executer.execute(on_success, (error) => {
|
|
15
15
|
on_error(handle_error(error));
|
|
@@ -23,6 +23,6 @@ class Procedure_Promise_Class {
|
|
|
23
23
|
* @param executer the function that produces the eventual value
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
|
-
function
|
|
27
|
-
return new
|
|
26
|
+
function __create_command_promise(executer) {
|
|
27
|
+
return new Command_Promise_Class(executer);
|
|
28
28
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./expressions/query";
|
|
10
|
-
export declare const query: {
|
|
11
|
-
'create result': <T, E>($: T) => _et.Query_Promise<T, E>;
|
|
12
|
-
'raise error': <T, E>($: E) => _et.Query_Promise<T, E>;
|
|
13
|
-
};
|
|
1
|
+
export * from "./query/creaters/create_query_promise";
|
|
2
|
+
export * from "./query/creaters/create_query";
|
|
3
|
+
export * from "./query/creaters/create_query_procedure";
|
|
4
|
+
export * from "./query/actions";
|
|
5
|
+
export * from "./command/creaters/create_command_procedure";
|
|
6
|
+
export * from "./command/creaters/create_command_promise";
|
|
7
|
+
export * from "./command/creaters/create_command";
|
|
8
|
+
export * from "./command/actions";
|
package/dist/index.js
CHANGED
|
@@ -14,33 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
25
|
-
__exportStar(require("./algorithms/procedure/create_procedure_primed_with_resources"), exports);
|
|
26
|
-
// procedure exports
|
|
27
|
-
__exportStar(require("./expressions/procedure"), exports);
|
|
28
|
-
// query exports
|
|
29
|
-
__exportStar(require("./expressions/query"), exports);
|
|
30
|
-
const create_query_promise_1 = require("./algorithms/query/create_query_promise");
|
|
31
|
-
exports.query = {
|
|
32
|
-
'create result': ($) => {
|
|
33
|
-
return (0, create_query_promise_1.__create_query_promise)({
|
|
34
|
-
'execute': (on_value) => {
|
|
35
|
-
on_value($);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
'raise error': ($) => {
|
|
40
|
-
return (0, create_query_promise_1.__create_query_promise)({
|
|
41
|
-
'execute': (on_value, on_error) => {
|
|
42
|
-
on_error($);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
};
|
|
17
|
+
__exportStar(require("./query/creaters/create_query_promise"), exports);
|
|
18
|
+
__exportStar(require("./query/creaters/create_query"), exports);
|
|
19
|
+
__exportStar(require("./query/creaters/create_query_procedure"), exports);
|
|
20
|
+
__exportStar(require("./query/actions"), exports);
|
|
21
|
+
__exportStar(require("./command/creaters/create_command_procedure"), exports);
|
|
22
|
+
__exportStar(require("./command/creaters/create_command_promise"), exports);
|
|
23
|
+
__exportStar(require("./command/creaters/create_command"), exports);
|
|
24
|
+
__exportStar(require("./command/actions"), exports);
|
|
@@ -2,6 +2,7 @@ import * as _et from 'exupery-core-types';
|
|
|
2
2
|
export declare namespace q {
|
|
3
3
|
const dictionary_parallel: <Result, Error, Entry_Error>(dictionary: _et.Dictionary<_et.Query_Promise<Result, Entry_Error>>, aggregate_errors: _et.Transformer_Without_Parameters<_et.Dictionary<Entry_Error>, Error>) => _et.Query_Promise<_et.Dictionary<Result>, Error>;
|
|
4
4
|
const dictionary_parallel_without_error_aggregation: <Result, Error>($: _et.Dictionary<_et.Query_Promise<Result, Error>>) => _et.Query_Promise<_et.Dictionary<Result>, _et.Dictionary<Error>>;
|
|
5
|
-
const fixed: <
|
|
5
|
+
const fixed: <Result, Error>(result: Result) => _et.Query_Promise<Result, Error>;
|
|
6
|
+
const raise_error: <T, E>($: E) => _et.Query_Promise<T, E>;
|
|
6
7
|
const transform: <In, Out, Error>(query: _et.Query_Promise<In, Error>, transform: ($: In) => Out) => _et.Query_Promise<Out, Error>;
|
|
7
8
|
}
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.q = void 0;
|
|
27
27
|
const _ei = __importStar(require("exupery-core-internals"));
|
|
28
|
-
const create_query_promise_1 = require("
|
|
28
|
+
const create_query_promise_1 = require("./creaters/create_query_promise");
|
|
29
29
|
var q;
|
|
30
30
|
(function (q) {
|
|
31
31
|
q.dictionary_parallel = (dictionary, aggregate_errors) => {
|
|
@@ -90,10 +90,17 @@ var q;
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
|
-
q.fixed = (
|
|
93
|
+
q.fixed = (result) => {
|
|
94
94
|
return (0, create_query_promise_1.__create_query_promise)({
|
|
95
95
|
'execute': (on_success, on_error) => {
|
|
96
|
-
on_success(
|
|
96
|
+
on_success(result);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
q.raise_error = ($) => {
|
|
101
|
+
return (0, create_query_promise_1.__create_query_promise)({
|
|
102
|
+
'execute': (on_value, on_error) => {
|
|
103
|
+
on_error($);
|
|
97
104
|
}
|
|
98
105
|
});
|
|
99
106
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.__create_query = void 0;
|
|
4
4
|
const create_query_promise_1 = require("./create_query_promise");
|
|
5
|
-
const
|
|
5
|
+
const __create_query = (handler) => {
|
|
6
6
|
return {
|
|
7
7
|
'execute': (parameters) => {
|
|
8
8
|
return (0, create_query_promise_1.__create_query_promise)({
|
|
@@ -13,4 +13,4 @@ const __create_query_primed_with_resources = (handler) => {
|
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
exports.
|
|
16
|
+
exports.__create_query = __create_query;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create_query_procedure = void 0;
|
|
4
|
+
const create_query_1 = require("./create_query");
|
|
5
|
+
const create_query_procedure = (handler) => {
|
|
6
|
+
return ($r) => (0, create_query_1.__create_query)(($p) => handler($r, $p));
|
|
7
|
+
};
|
|
8
|
+
exports.create_query_procedure = create_query_procedure;
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.create_procedure = void 0;
|
|
4
|
-
const create_procedure_primed_with_resources_1 = require("./create_procedure_primed_with_resources");
|
|
5
|
-
const create_procedure = (handler) => {
|
|
6
|
-
return ($r) => (0, create_procedure_primed_with_resources_1.__create_procedure_primed_with_resources)(($p) => handler($r, $p));
|
|
7
|
-
};
|
|
8
|
-
exports.create_procedure = create_procedure;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import * as _et from 'exupery-core-types';
|
|
2
|
-
export type Basic_Procedure_Primed_With_Resources<Parameters, Error> = ($: Parameters) => _et.Procedure_Promise<Error>;
|
|
3
|
-
export declare const __create_procedure_primed_with_resources: <Parameters, Error, Resources>(handler: Basic_Procedure_Primed_With_Resources<Parameters, Error>) => _et.Procedure_Primed_With_Resources<Parameters, Error>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.create_query = void 0;
|
|
4
|
-
const create_query_primed_with_resources_1 = require("./create_query_primed_with_resources");
|
|
5
|
-
const create_query = (handler) => {
|
|
6
|
-
return ($r) => (0, create_query_primed_with_resources_1.__create_query_primed_with_resources)(($p) => handler($r, $p));
|
|
7
|
-
};
|
|
8
|
-
exports.create_query = create_query;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as _et from 'exupery-core-types';
|
|
2
|
-
import { Basic_Procedure_Primed_With_Resources } from '../algorithms/procedure/create_procedure_primed_with_resources';
|
|
3
|
-
export declare namespace p {
|
|
4
|
-
const array_parallel: <Error, Element_Error>(the_array: _et.Array<_et.Procedure_Promise<Element_Error>>, aggregate_errors: _et.Transformer_Without_Parameters<_et.Array<Element_Error>, Error>) => _et.Procedure_Promise<Error>;
|
|
5
|
-
const array_serie: <Error>(array: _et.Array<_et.Procedure_Promise<Error>>) => _et.Procedure_Promise<Error>;
|
|
6
|
-
const assert_async: <Error>(assertion: _et.Query_Promise<boolean, Error>, error_if_failed: Error) => _et.Procedure_Promise<Error>;
|
|
7
|
-
const assert_sync: <Error>(assertion: boolean, error_if_failed: Error) => _et.Procedure_Promise<Error>;
|
|
8
|
-
const conditional_async: <Error>(precondition: _et.Query_Promise<boolean, Error>, procedure: _et.Procedure_Promise<Error>) => _et.Procedure_Promise<Error>;
|
|
9
|
-
const conditional_sync: <Error>(precondition: boolean, procedure: _et.Procedure_Promise<Error>) => _et.Procedure_Promise<Error>;
|
|
10
|
-
const conditional_on_processor: <Procedure_Input, Error>(precondition: _et.Process_Result<Procedure_Input, Error>, procedure: Basic_Procedure_Primed_With_Resources<Procedure_Input, Error>) => _et.Procedure_Promise<Error>;
|
|
11
|
-
const conditional_on_refiner: <Procedure_Input, Refinement_Error, Error>(precondition: _et.Refinement_Result<Procedure_Input, Refinement_Error>, error_transformer: _et.Transformer_Without_Parameters<Refinement_Error, Error>, procedure: Basic_Procedure_Primed_With_Resources<Procedure_Input, Error>) => _et.Procedure_Promise<Error>;
|
|
12
|
-
const dictionary_serie: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Procedure_Promise<Entry_Error>>, transform_error: _et.Transformer_Without_Parameters<_et.Key_Value_Pair<Entry_Error>, Error>) => _et.Procedure_Promise<Error>;
|
|
13
|
-
const dictionary_parallel: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Procedure_Promise<Entry_Error>>, aggregate_errors: _et.Transformer_Without_Parameters<_et.Dictionary<Entry_Error>, Error>) => _et.Procedure_Promise<Error>;
|
|
14
|
-
const dictionary_parallel_without_transforming_the_error: <Error, Entry_Error>(dictionary: _et.Dictionary<_et.Procedure_Promise<Entry_Error>>) => _et.Procedure_Promise<_et.Dictionary<Entry_Error>>;
|
|
15
|
-
const execute_with_async_data: <Parameters, Error>(procedure: _et.Procedure_Primed_With_Resources<Parameters, Error>, query: _et.Query_Promise<Parameters, Error>) => _et.Procedure_Promise<Error>;
|
|
16
|
-
const sequence: <Error>(steps: _et.Procedure_Promise<Error>[]) => _et.Procedure_Promise<Error>;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Error_Handler<Error> = (error: Error) => void;
|
|
File without changes
|
|
File without changes
|