exupery-core-async 0.3.33 → 0.3.35
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/algorithms/{procedure/create_procedure_primed_with_resources.d.ts → command/create_command.d.ts} +2 -2
- package/dist/algorithms/{procedure/create_procedure_primed_with_resources.js → command/create_command.js} +4 -4
- package/dist/algorithms/command/create_command_procedure.d.ts +2 -0
- package/dist/algorithms/command/create_command_procedure.js +8 -0
- package/dist/algorithms/{procedure/create_procedure_promise.d.ts → command/create_command_promise.d.ts} +1 -1
- package/dist/algorithms/{procedure/create_procedure_promise.js → command/create_command_promise.js} +5 -5
- package/dist/algorithms/query/create_query_procedure.d.ts +2 -0
- package/dist/algorithms/query/{create_query.js → create_query_procedure.js} +3 -3
- package/dist/index.d.ts +6 -11
- package/dist/index.js +6 -28
- package/dist/procedures/command.d.ts +17 -0
- package/dist/{expressions/procedure.js → procedures/command.js} +18 -16
- package/dist/{expressions → procedures}/query.d.ts +2 -1
- package/dist/{expressions → procedures}/query.js +9 -2
- 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/query/create_query.d.ts +0 -2
- package/dist/expressions/procedure.d.ts +0 -17
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
|
-
export type Basic_Procedure_Primed_With_Resources<Parameters, Error> = ($: Parameters) => _et.
|
|
3
|
-
export declare const __create_procedure_primed_with_resources: <Parameters, Error, Resources>(handler: Basic_Procedure_Primed_With_Resources<Parameters, Error>) => _et.
|
|
2
|
+
export type Basic_Procedure_Primed_With_Resources<Parameters, Error> = ($: Parameters) => _et.Command_Promise<Error>;
|
|
3
|
+
export declare const __create_procedure_primed_with_resources: <Parameters, Error, Resources>(handler: Basic_Procedure_Primed_With_Resources<Parameters, Error>) => _et.Command<Parameters, Error>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.__create_procedure_primed_with_resources = void 0;
|
|
4
|
-
const
|
|
4
|
+
const create_command_promise_1 = require("./create_command_promise");
|
|
5
5
|
const __create_procedure_primed_with_resources = (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) => {
|
|
@@ -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_procedure_primed_with_resources)(($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 {};
|
package/dist/algorithms/{procedure/create_procedure_promise.js → command/create_command_promise.js}
RENAMED
|
@@ -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
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.create_query_procedure = void 0;
|
|
4
4
|
const create_query_primed_with_resources_1 = require("./create_query_primed_with_resources");
|
|
5
|
-
const
|
|
5
|
+
const create_query_procedure = (handler) => {
|
|
6
6
|
return ($r) => (0, create_query_primed_with_resources_1.__create_query_primed_with_resources)(($p) => handler($r, $p));
|
|
7
7
|
};
|
|
8
|
-
exports.
|
|
8
|
+
exports.create_query_procedure = create_query_procedure;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import * as _et from "exupery-core-types";
|
|
2
1
|
export * from "./algorithms/query/create_query_promise";
|
|
3
2
|
export * from "./algorithms/query/create_query_primed_with_resources";
|
|
4
|
-
export * from "./algorithms/query/
|
|
5
|
-
export * from "./algorithms/
|
|
6
|
-
export * from "./algorithms/
|
|
7
|
-
export * from "./algorithms/
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
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
|
-
};
|
|
3
|
+
export * from "./algorithms/query/create_query_procedure";
|
|
4
|
+
export * from "./algorithms/command/create_command_procedure";
|
|
5
|
+
export * from "./algorithms/command/create_command_promise";
|
|
6
|
+
export * from "./algorithms/command/create_command";
|
|
7
|
+
export * from "./procedures/command";
|
|
8
|
+
export * from "./procedures/query";
|
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
|
-
exports.query = void 0;
|
|
18
|
-
//types
|
|
19
|
-
//functions
|
|
20
17
|
__exportStar(require("./algorithms/query/create_query_promise"), exports);
|
|
21
18
|
__exportStar(require("./algorithms/query/create_query_primed_with_resources"), exports);
|
|
22
|
-
__exportStar(require("./algorithms/query/
|
|
23
|
-
__exportStar(require("./algorithms/
|
|
24
|
-
__exportStar(require("./algorithms/
|
|
25
|
-
__exportStar(require("./algorithms/
|
|
26
|
-
|
|
27
|
-
__exportStar(require("./
|
|
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
|
-
};
|
|
19
|
+
__exportStar(require("./algorithms/query/create_query_procedure"), exports);
|
|
20
|
+
__exportStar(require("./algorithms/command/create_command_procedure"), exports);
|
|
21
|
+
__exportStar(require("./algorithms/command/create_command_promise"), exports);
|
|
22
|
+
__exportStar(require("./algorithms/command/create_command"), exports);
|
|
23
|
+
__exportStar(require("./procedures/command"), exports);
|
|
24
|
+
__exportStar(require("./procedures/query"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _et from 'exupery-core-types';
|
|
2
|
+
import { Basic_Procedure_Primed_With_Resources } from '../algorithms/command/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_Procedure_Primed_With_Resources<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_Procedure_Primed_With_Resources<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("../algorithms/command/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);
|
|
@@ -134,17 +134,19 @@ var p;
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
|
-
p.conditional_on_refiner = (precondition, procedure) => {
|
|
138
|
-
return (0,
|
|
137
|
+
p.conditional_on_refiner = (precondition, error_transformer, procedure) => {
|
|
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);
|
|
142
|
-
},
|
|
142
|
+
}, (e) => {
|
|
143
|
+
on_error(error_transformer(e));
|
|
144
|
+
});
|
|
143
145
|
}
|
|
144
146
|
});
|
|
145
147
|
};
|
|
146
148
|
p.dictionary_serie = (dictionary, transform_error) => {
|
|
147
|
-
return (0,
|
|
149
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
148
150
|
'execute': (on_success, on_error) => {
|
|
149
151
|
const op_dictionary_to_list_based_on_insertion_order = (dict) => {
|
|
150
152
|
const temp = [];
|
|
@@ -176,7 +178,7 @@ var p;
|
|
|
176
178
|
});
|
|
177
179
|
};
|
|
178
180
|
p.dictionary_parallel = (dictionary, aggregate_errors) => {
|
|
179
|
-
return (0,
|
|
181
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
180
182
|
'execute': (on_success, on_error) => {
|
|
181
183
|
const errors = {};
|
|
182
184
|
(0, create_asynchronous_processes_monitor_1.create_asynchronous_processes_monitor)((monitor) => {
|
|
@@ -201,7 +203,7 @@ var p;
|
|
|
201
203
|
});
|
|
202
204
|
};
|
|
203
205
|
p.dictionary_parallel_without_transforming_the_error = (dictionary) => {
|
|
204
|
-
return (0,
|
|
206
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
205
207
|
'execute': (on_success, on_error) => {
|
|
206
208
|
const errors = {};
|
|
207
209
|
(0, create_asynchronous_processes_monitor_1.create_asynchronous_processes_monitor)((monitor) => {
|
|
@@ -226,7 +228,7 @@ var p;
|
|
|
226
228
|
});
|
|
227
229
|
};
|
|
228
230
|
p.execute_with_async_data = (procedure, query) => {
|
|
229
|
-
return (0,
|
|
231
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
230
232
|
'execute': (on_success, on_error) => {
|
|
231
233
|
query.__start((query_result) => {
|
|
232
234
|
procedure['execute with synchronous data without error transformation'](query_result).__start(on_success, on_error);
|
|
@@ -235,7 +237,7 @@ var p;
|
|
|
235
237
|
});
|
|
236
238
|
};
|
|
237
239
|
p.sequence = (steps) => {
|
|
238
|
-
return (0,
|
|
240
|
+
return (0, create_command_promise_1.__create_command_promise)({
|
|
239
241
|
'execute': (on_success, on_error) => {
|
|
240
242
|
const length = _ei.array_literal(steps).__get_number_of_elements();
|
|
241
243
|
const runStep = (index) => {
|
|
@@ -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
|
}
|
|
@@ -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
|
};
|
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,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, Error>(precondition: _et.Refinement_Result<Procedure_Input, 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
|
-
}
|