exupery-core-async 0.1.42 → 0.1.44

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.
@@ -9,75 +9,120 @@ import { Guaranteed_Query_Initializer } from "./types/Guaranteed_Query";
9
9
  import { Error_Handler } from "./types/Error_Handler";
10
10
  /**
11
11
  *
12
- * @param action a_my_action
13
- * @param error_transform ($) => ....
12
+ * @param action gpi
13
+ * @param error_transform gt
14
14
  */
15
- export declare const eh: <Parameters, Error>(action: Guaranteed_Procedure_Initializer<Parameters>, error_transform: _ei.Guaranteed_Transformation_Without_Parameters<Error, Parameters>) => Error_Handler<Error>;
15
+ export declare const eh: <Parameters, Error>(action: Guaranteed_Procedure_Initializer<Parameters>, error_transform: _ei.Transformation_Without_Parameters<Error, Parameters>) => Error_Handler<Error>;
16
16
  export declare namespace gp {
17
+ /**
18
+ *
19
+ * @param action gpi
20
+ * @param query g.q
21
+ * @returns
22
+ */
17
23
  const action: <Parameters>(action: Guaranteed_Procedure_Initializer<Parameters>, query: Guaranteed.Query_<Parameters>) => Guaranteed_Procedure;
18
24
  }
19
25
  export declare namespace gq {
26
+ /**
27
+ *
28
+ * @param query_result qr
29
+ * @returns
30
+ */
20
31
  const fixed: <Query_Result>(query_result: Query_Result) => Guaranteed.Query_<Query_Result>;
21
- const g: <Result_After_Transformation, Parameters, Query_Result>(the_query: Guaranteed_Query_Initializer<Parameters, Query_Result>, parameters: Guaranteed.Query_<Parameters>, result_transformation: _ei.Guaranteed_Transformation_Without_Parameters<Query_Result, Result_After_Transformation>) => Guaranteed.Query_<Result_After_Transformation>;
32
+ /**
33
+ *
34
+ * @param the_query gqi
35
+ * @param parameters g.q
36
+ * @param result_transformation gt
37
+ * @returns
38
+ */
39
+ const g: <Result_After_Transformation, Parameters, Query_Result>(the_query: Guaranteed_Query_Initializer<Parameters, Query_Result>, parameters: Guaranteed.Query_<Parameters>, result_transformation: _ei.Transformation_Without_Parameters<Query_Result, Result_After_Transformation>) => Guaranteed.Query_<Result_After_Transformation>;
22
40
  }
23
41
  export declare namespace gt {
24
- const g: <In, Out>(the_transformation: _ei.Guaranteed_Transformation_Without_Parameters<In, Out>) => _ei.Guaranteed_Transformation_Without_Parameters<In, Out>;
42
+ /**
43
+ *
44
+ * @param the_transformation gt
45
+ * @returns
46
+ */
47
+ const g: <In, Out>(the_transformation: _ei.Transformation_Without_Parameters<In, Out>) => _ei.Transformation_Without_Parameters<In, Out>;
25
48
  }
26
49
  export declare namespace up {
27
50
  /**
28
51
  *
29
- * @param action u.a.*(...)
30
- * @param query u.q.*(...)
52
+ * @param action upi
53
+ * @param query u.q
31
54
  */
32
55
  const action: <Error, Parameters>(action: Unguaranteed_Procedure_Initializer<Parameters, Error>, query: Unguaranteed.Query<Parameters, Error>) => Unguaranteed_Procedure<Error>;
56
+ /**
57
+ *
58
+ * @param steps up[]
59
+ * @returns
60
+ */
33
61
  const sequence: <Error>(steps: Unguaranteed_Procedure<Error>[]) => Unguaranteed_Procedure<Error>;
34
- const array: <Error, Element_Error>(the_array: _et.Array<Unguaranteed_Procedure<Element_Error>>, aggregate_exceptions: _ei.Guaranteed_Transformation_Without_Parameters<_et.Array<Element_Error>, Error>) => Unguaranteed_Procedure<Error>;
35
- const dictionary: <Error, Element_Error>(the_dictionary: _et.Dictionary<Unguaranteed_Procedure<Element_Error>>, aggregate_exceptions: _ei.Guaranteed_Transformation_Without_Parameters<_et.Dictionary<Element_Error>, Error>) => Unguaranteed_Procedure<Error>;
62
+ /**
63
+ *
64
+ * @param the_array up[]
65
+ * @param aggregate_exceptions gt
66
+ * @returns
67
+ */
68
+ const array: <Error, Element_Error>(the_array: _et.Array<Unguaranteed_Procedure<Element_Error>>, aggregate_exceptions: _ei.Transformation_Without_Parameters<_et.Array<Element_Error>, Error>) => Unguaranteed_Procedure<Error>;
69
+ /**
70
+ *
71
+ * @param the_dictionary dict<up>
72
+ * @param aggregate_exceptions gt
73
+ * @returns
74
+ */
75
+ const dictionary: <Error, Element_Error>(the_dictionary: _et.Dictionary<Unguaranteed_Procedure<Element_Error>>, aggregate_exceptions: _ei.Transformation_Without_Parameters<_et.Dictionary<Element_Error>, Error>) => Unguaranteed_Procedure<Error>;
36
76
  }
37
77
  export declare namespace upi {
38
78
  /**
39
79
  *
40
- * @param action a_my_action
80
+ * @param action gpi
41
81
  */
42
82
  const g: <Parameters, Error>(action: Guaranteed_Procedure_Initializer<Parameters>) => Unguaranteed_Procedure_Initializer<Parameters, Error>;
43
83
  /**
44
84
  *
45
- * @param action a_my_action
85
+ * @param action upi
46
86
  */
47
- const u: <Parameters, Error, Action_Error>(action: Unguaranteed_Procedure_Initializer<Parameters, Action_Error>, error_transform: _ei.Guaranteed_Transformation_Without_Parameters<Action_Error, Error>, error_handler?: Error_Handler<Action_Error>) => Unguaranteed_Procedure_Initializer<Parameters, Error>;
87
+ const u: <Parameters, Error, Action_Error>(action: Unguaranteed_Procedure_Initializer<Parameters, Action_Error>, error_transform: _ei.Transformation_Without_Parameters<Action_Error, Error>, error_handler?: Error_Handler<Action_Error>) => Unguaranteed_Procedure_Initializer<Parameters, Error>;
48
88
  }
49
89
  export declare namespace uq {
90
+ /**
91
+ *
92
+ * @param query_result qr
93
+ * @returns
94
+ */
50
95
  const fixed: <Query_Result, Error>(query_result: Query_Result) => Unguaranteed.Query<Query_Result, Error>;
51
96
  /**
52
97
  * unguaranteed query
53
- * @param the_query q_my_query
54
- * @param parameters u.q.*(...)
55
- * @param result_transformation u.t.*()
56
- * @param error_transform ($) => ...
57
- * @param error_handler eh(...)
98
+ * @param the_query uqi
99
+ * @param parameters u.q
100
+ * @param result_refinement ut
101
+ * @param error_transform gt
102
+ * @param error_handler eh
58
103
  * @returns
59
104
  */
60
- const u: <Result_After_Transformation, Error, Parameters, Query_Result, Query_Error>(the_query: Unguaranteed_Query_Initializer<Parameters, Query_Result, Query_Error>, parameters: Unguaranteed.Query<Parameters, Error>, result_transformation: _ei.Unguaranteed_Transformation_Without_Parameters<Query_Result, Result_After_Transformation, Error>, error_transform: _ei.Guaranteed_Transformation_Without_Parameters<Query_Error, Error>, error_handler?: Error_Handler<Query_Error>) => Unguaranteed.Query<Result_After_Transformation, Error>;
105
+ const u: <Result_After_Transformation, Error, Parameters, Query_Result, Query_Error>(the_query: Unguaranteed_Query_Initializer<Parameters, Query_Result, Query_Error>, parameters: Unguaranteed.Query<Parameters, Error>, result_refinement: _ei.Refinement_Without_Parameters<Query_Result, Result_After_Transformation, Error>, error_transform: _ei.Transformation_Without_Parameters<Query_Error, Error>, error_handler?: Error_Handler<Query_Error>) => Unguaranteed.Query<Result_After_Transformation, Error>;
61
106
  /**
62
107
  * guaranteed query
63
- * @param the_query q_my_query
64
- * @param parameters u.q.*()
65
- * @param result_transformation ($) => ...
108
+ * @param the_query gqi
109
+ * @param parameters u.q
110
+ * @param result_refinement ut
66
111
  */
67
- const g: <Result_After_Transformation, Error, Parameters, Query_Result>(the_query: Guaranteed_Query_Initializer<Parameters, Query_Result>, parameters: Unguaranteed.Query<Parameters, Error>, result_transformation: _ei.Unguaranteed_Transformation_Without_Parameters<Query_Result, Result_After_Transformation, Error>) => Unguaranteed.Query<Result_After_Transformation, Error>;
112
+ const g: <Result_After_Transformation, Error, Parameters, Query_Result>(the_query: Guaranteed_Query_Initializer<Parameters, Query_Result>, parameters: Unguaranteed.Query<Parameters, Error>, result_refinement: _ei.Refinement_Without_Parameters<Query_Result, Result_After_Transformation, Error>) => Unguaranteed.Query<Result_After_Transformation, Error>;
68
113
  }
69
114
  export declare namespace ut {
70
115
  /**
71
116
  *
72
- * @param the_transformation ($) => _ea.Unguaranteed_Transformation_Result
73
- * @param error_transform ($) => ...
74
- * @param error_handler eh()
117
+ * @param the_refinement ut
118
+ * @param error_transform gt
119
+ * @param error_handler eh
75
120
  * @returns
76
121
  */
77
- const u: <In, Out, Error, Transformation_Error>(the_transformation: _ei.Unguaranteed_Transformation_Without_Parameters<In, Out, Transformation_Error>, error_transform: _ei.Guaranteed_Transformation_Without_Parameters<Transformation_Error, Error>, error_handler?: Error_Handler<Transformation_Error>) => _ei.Unguaranteed_Transformation_Without_Parameters<In, Out, Error>;
122
+ const u: <In, Out, Error, Transformation_Error>(the_refinement: _ei.Refinement_Without_Parameters<In, Out, Transformation_Error>, error_transform: _ei.Transformation_Without_Parameters<Transformation_Error, Error>, error_handler?: Error_Handler<Transformation_Error>) => _ei.Refinement_Without_Parameters<In, Out, Error>;
78
123
  /**
79
124
  *
80
- * @param the_transformation ($) => ...
125
+ * @param the_transformation gt
81
126
  */
82
- const g: <In, Out, Error>(the_transformation: _ei.Guaranteed_Transformation_Without_Parameters<In, Out>) => _ei.Unguaranteed_Transformation_Without_Parameters<In, Out, Error>;
127
+ const g: <In, Out, Error>(the_transformation: _ei.Transformation_Without_Parameters<In, Out>) => _ei.Refinement_Without_Parameters<In, Out, Error>;
83
128
  }
@@ -29,8 +29,8 @@ const initialize_unguaranteed_procedure_1 = require("./algorithms/procedure/init
29
29
  const create_asynchronous_processes_monitor_1 = require("./create_asynchronous_processes_monitor");
30
30
  /**
31
31
  *
32
- * @param action a_my_action
33
- * @param error_transform ($) => ....
32
+ * @param action gpi
33
+ * @param error_transform gt
34
34
  */
35
35
  const eh = (action, error_transform) => {
36
36
  return ($) => {
@@ -40,6 +40,12 @@ const eh = (action, error_transform) => {
40
40
  exports.eh = eh;
41
41
  var gp;
42
42
  (function (gp) {
43
+ /**
44
+ *
45
+ * @param action gpi
46
+ * @param query g.q
47
+ * @returns
48
+ */
43
49
  gp.action = (action, query) => {
44
50
  return {
45
51
  __start: (on_finished) => {
@@ -54,6 +60,11 @@ var gp;
54
60
  })(gp || (exports.gp = gp = {}));
55
61
  var gq;
56
62
  (function (gq) {
63
+ /**
64
+ *
65
+ * @param query_result qr
66
+ * @returns
67
+ */
57
68
  gq.fixed = (query_result) => {
58
69
  return {
59
70
  __start: (on_finished) => {
@@ -61,6 +72,13 @@ var gq;
61
72
  }
62
73
  };
63
74
  };
75
+ /**
76
+ *
77
+ * @param the_query gqi
78
+ * @param parameters g.q
79
+ * @param result_transformation gt
80
+ * @returns
81
+ */
64
82
  gq.g = (the_query, parameters, result_transformation) => {
65
83
  return {
66
84
  __start: (on_finished) => {
@@ -75,6 +93,11 @@ var gq;
75
93
  })(gq || (exports.gq = gq = {}));
76
94
  var gt;
77
95
  (function (gt) {
96
+ /**
97
+ *
98
+ * @param the_transformation gt
99
+ * @returns
100
+ */
78
101
  gt.g = (the_transformation) => {
79
102
  return ($) => the_transformation($);
80
103
  };
@@ -83,8 +106,8 @@ var up;
83
106
  (function (up) {
84
107
  /**
85
108
  *
86
- * @param action u.a.*(...)
87
- * @param query u.q.*(...)
109
+ * @param action upi
110
+ * @param query u.q
88
111
  */
89
112
  up.action = (action, query) => {
90
113
  return {
@@ -100,6 +123,11 @@ var up;
100
123
  }
101
124
  };
102
125
  };
126
+ /**
127
+ *
128
+ * @param steps up[]
129
+ * @returns
130
+ */
103
131
  up.sequence = (steps) => {
104
132
  return {
105
133
  __start: (on_success, on_error) => {
@@ -115,6 +143,12 @@ var up;
115
143
  }
116
144
  };
117
145
  };
146
+ /**
147
+ *
148
+ * @param the_array up[]
149
+ * @param aggregate_exceptions gt
150
+ * @returns
151
+ */
118
152
  up.array = (the_array, aggregate_exceptions) => {
119
153
  return {
120
154
  __start: (on_success, on_error) => {
@@ -140,6 +174,12 @@ var up;
140
174
  }
141
175
  };
142
176
  };
177
+ /**
178
+ *
179
+ * @param the_dictionary dict<up>
180
+ * @param aggregate_exceptions gt
181
+ * @returns
182
+ */
143
183
  up.dictionary = (the_dictionary, aggregate_exceptions) => {
144
184
  return {
145
185
  __start: (on_success, on_error) => {
@@ -170,7 +210,7 @@ var upi;
170
210
  (function (upi) {
171
211
  /**
172
212
  *
173
- * @param action a_my_action
213
+ * @param action gpi
174
214
  */
175
215
  upi.g = (action) => ($) => {
176
216
  return (0, initialize_unguaranteed_procedure_1.__create_unguaranteed_procedure)({
@@ -181,7 +221,7 @@ var upi;
181
221
  };
182
222
  /**
183
223
  *
184
- * @param action a_my_action
224
+ * @param action upi
185
225
  */
186
226
  upi.u = (action, error_transform, error_handler) => ($) => {
187
227
  return (0, initialize_unguaranteed_procedure_1.__create_unguaranteed_procedure)({
@@ -198,6 +238,11 @@ var upi;
198
238
  })(upi || (exports.upi = upi = {}));
199
239
  var uq;
200
240
  (function (uq) {
241
+ /**
242
+ *
243
+ * @param query_result qr
244
+ * @returns
245
+ */
201
246
  uq.fixed = (query_result) => {
202
247
  return {
203
248
  __start: (on_success, on_error) => {
@@ -207,19 +252,19 @@ var uq;
207
252
  };
208
253
  /**
209
254
  * unguaranteed query
210
- * @param the_query q_my_query
211
- * @param parameters u.q.*(...)
212
- * @param result_transformation u.t.*()
213
- * @param error_transform ($) => ...
214
- * @param error_handler eh(...)
255
+ * @param the_query uqi
256
+ * @param parameters u.q
257
+ * @param result_refinement ut
258
+ * @param error_transform gt
259
+ * @param error_handler eh
215
260
  * @returns
216
261
  */
217
- uq.u = (the_query, parameters, result_transformation, error_transform, error_handler) => {
262
+ uq.u = (the_query, parameters, result_refinement, error_transform, error_handler) => {
218
263
  return {
219
264
  __start: (on_success, on_error) => {
220
265
  parameters.__start((qr_in) => {
221
266
  the_query(qr_in).__start((result) => {
222
- result_transformation(result).process((x) => on_success(x), on_error);
267
+ result_refinement(result).process((x) => on_success(x), on_error);
223
268
  }, (error) => {
224
269
  if (error_handler !== undefined) {
225
270
  error_handler(error);
@@ -232,16 +277,16 @@ var uq;
232
277
  };
233
278
  /**
234
279
  * guaranteed query
235
- * @param the_query q_my_query
236
- * @param parameters u.q.*()
237
- * @param result_transformation ($) => ...
280
+ * @param the_query gqi
281
+ * @param parameters u.q
282
+ * @param result_refinement ut
238
283
  */
239
- uq.g = (the_query, parameters, result_transformation) => {
284
+ uq.g = (the_query, parameters, result_refinement) => {
240
285
  return {
241
286
  __start: (on_success, on_error) => {
242
287
  parameters.__start((x) => {
243
288
  the_query(x).__start(($) => {
244
- result_transformation($).process((x) => on_success(x), on_error);
289
+ result_refinement($).process((x) => on_success(x), on_error);
245
290
  });
246
291
  }, on_error);
247
292
  }
@@ -252,14 +297,14 @@ var ut;
252
297
  (function (ut) {
253
298
  /**
254
299
  *
255
- * @param the_transformation ($) => _ea.Unguaranteed_Transformation_Result
256
- * @param error_transform ($) => ...
257
- * @param error_handler eh()
300
+ * @param the_refinement ut
301
+ * @param error_transform gt
302
+ * @param error_handler eh
258
303
  * @returns
259
304
  */
260
- ut.u = (the_transformation, error_transform, error_handler) => {
305
+ ut.u = (the_refinement, error_transform, error_handler) => {
261
306
  return ($) => {
262
- const result = the_transformation($);
307
+ const result = the_refinement($);
263
308
  return result.map((out) => out, (transformation_error) => {
264
309
  //run the error handler
265
310
  if (error_handler !== undefined) {
@@ -271,11 +316,11 @@ var ut;
271
316
  };
272
317
  /**
273
318
  *
274
- * @param the_transformation ($) => ...
319
+ * @param the_transformation gt
275
320
  */
276
321
  ut.g = (the_transformation) => {
277
322
  return ($) => {
278
- return _ei.transformation.successful(the_transformation($));
323
+ return _ei.refinement.successful(the_transformation($));
279
324
  };
280
325
  };
281
326
  })(ut || (exports.ut = ut = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-async",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Corno",
6
6
  "description": "async types for Exupery",
@@ -22,6 +22,6 @@
22
22
  "url": "git+https://github.com/corno/exupery-core.git"
23
23
  },
24
24
  "dependencies": {
25
- "exupery-core-internals": "^0.1.12"
25
+ "exupery-core-internals": "^0.1.14"
26
26
  }
27
27
  }