exupery-core-types 0.3.40 → 0.3.41

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  export type Command_Procedure<Error, Parameters, Command_Resources, Query_Resources> = ($c: Command_Resources, $q: Query_Resources) => Command<Error, Parameters>;
2
2
  export type Command<Error, Parameters> = {
3
- 'execute': <Target_Error>(parameters: Parameters, transform_error: (error: Error) => Target_Error) => Command_Promise<Target_Error>;
3
+ 'execute': <Execution_Error>(parameters: Parameters, transform_error: (error: Error) => Execution_Error) => Command_Promise<Execution_Error>;
4
4
  };
5
5
  export type Command_Promise<Error> = {
6
6
  __start: (on_success: () => void, on_error: (error: Error) => void) => void;
@@ -1,4 +1,4 @@
1
- import { Array } from "./Array";
1
+ import { List } from "./List";
2
2
  import { Optional_Value } from "./Optional_Value";
3
3
  export type Key_Value_Pair<T> = {
4
4
  readonly 'key': string;
@@ -19,7 +19,7 @@ export interface Dictionary<T> {
19
19
  * This method is only to be used by resources
20
20
  * iterates over all entries in a sorted manner
21
21
  */
22
- deprecated_to_array(compare: Compare_Function<T>): Array<Key_Value_Pair<T>>;
22
+ deprecated_to_array(compare: Compare_Function<T>): List<Key_Value_Pair<T>>;
23
23
  /**
24
24
  * This method is only to be used by resources
25
25
  * returns an {@link Optional_Value } of type T reflecting wether the entry existed or not
@@ -3,12 +3,12 @@ import { Optional_Value } from "./Optional_Value";
3
3
  * A Exupery array.
4
4
  * unmutable and minimal by design
5
5
  */
6
- export interface Array<T> {
6
+ export interface List<T> {
7
7
  /**
8
8
  *
9
9
  * @param handle_value callback to transform an individual entry.
10
10
  */
11
- map<NT>(handle_value: ($: T) => NT): Array<NT>;
11
+ map<NT>(handle_value: ($: T) => NT): List<NT>;
12
12
  /**
13
13
  * This method is only to be used by resources
14
14
  * iterates over all entries
package/dist/Query.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Data_Preparer } from "./Data_Preparer";
2
- export type Query_Procedure<Result, Error, Parameters, Query_Resources> = ($q: Query_Resources) => Data_Preparer<Result, Error, Parameters>;
1
+ import { Stager } from "./Stager";
2
+ export type Query_Procedure<Result, Error, Parameters, Query_Resources> = ($q: Query_Resources) => Stager<Result, Error, Parameters>;
@@ -0,0 +1,3 @@
1
+ import { Staging_Result } from "./Staging_Result";
2
+ export type Stager<Output, Error, Input> = ($: Input) => Staging_Result<Output, Error>;
3
+ export type Stager_With_Parameters<Output, Error, Input, Parameters> = ($: Input, $p: Parameters) => Staging_Result<Output, Error>;
@@ -0,0 +1,10 @@
1
+ import { Stager } from "./Stager";
2
+ import { Transformer_Without_Parameters } from "./Transformer";
3
+ export interface Staging_Result<Output, Error> {
4
+ transform<New_Output>(transformer: Transformer_Without_Parameters<New_Output, Output>): Staging_Result<New_Output, Error>;
5
+ transform_error_temp<New_Error>(error_transformer: Transformer_Without_Parameters<New_Error, Error>): Staging_Result<Output, New_Error>;
6
+ stage_without_error_transformation<New_Output>(processor: Stager<New_Output, Error, Output>): Staging_Result<New_Output, Error>;
7
+ stage<New_Output, Processor_Error>(processor: Stager<New_Output, Processor_Error, Output>, error_transformer: (error: Processor_Error) => Error): Staging_Result<New_Output, Error>;
8
+ rework_error_temp<New_Error, Rework_Error>(error_reworker: Stager<New_Error, Rework_Error, Error>, rework_error_transformer: Transformer_Without_Parameters<New_Error, Rework_Error>): Staging_Result<Output, New_Error>;
9
+ __extract_data: (on_success: ($: Output) => void, on_error: ($: Error) => void) => void;
10
+ }
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export * from "./Array";
1
+ export * from "./List";
2
2
  export * from "./Circular_Dependency";
3
3
  export * from "./Dictionary";
4
4
  export * from "./Lookup";
5
5
  export * from "./Optional_Value";
6
6
  export * from "./Command";
7
- export * from "./Data_Preparer";
8
- export * from "./Data_Preparation_Result";
7
+ export * from "./Stager";
8
+ export * from "./Staging_Result";
9
9
  export * from "./Query";
10
10
  export * from "./Transformer";
package/dist/index.js CHANGED
@@ -14,13 +14,13 @@ 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
- __exportStar(require("./Array"), exports);
17
+ __exportStar(require("./List"), exports);
18
18
  __exportStar(require("./Circular_Dependency"), exports);
19
19
  __exportStar(require("./Dictionary"), exports);
20
20
  __exportStar(require("./Lookup"), exports);
21
21
  __exportStar(require("./Optional_Value"), exports);
22
22
  __exportStar(require("./Command"), exports);
23
- __exportStar(require("./Data_Preparer"), exports);
24
- __exportStar(require("./Data_Preparation_Result"), exports);
23
+ __exportStar(require("./Stager"), exports);
24
+ __exportStar(require("./Staging_Result"), exports);
25
25
  __exportStar(require("./Query"), exports);
26
26
  __exportStar(require("./Transformer"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-types",
3
- "version": "0.3.40",
3
+ "version": "0.3.41",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Corno",
6
6
  "description": "core types for Exupery",
@@ -1,10 +0,0 @@
1
- import { Data_Preparer } from "./Data_Preparer";
2
- import { Transformer_Without_Parameters } from "./Transformer";
3
- export interface Data_Preparation_Result<Output, Error> {
4
- transform<New_Output>(transformer: Transformer_Without_Parameters<New_Output, Output>): Data_Preparation_Result<New_Output, Error>;
5
- transform_error_temp<New_Error>(error_transformer: Transformer_Without_Parameters<New_Error, Error>): Data_Preparation_Result<Output, New_Error>;
6
- process_without_error_transformation<New_Output>(processor: Data_Preparer<New_Output, Error, Output>): Data_Preparation_Result<New_Output, Error>;
7
- process<New_Output, Processor_Error>(processor: Data_Preparer<New_Output, Processor_Error, Output>, error_transformer: (error: Processor_Error) => Error): Data_Preparation_Result<New_Output, Error>;
8
- rework_error_temp<New_Error, Rework_Error>(error_reworker: Data_Preparer<New_Error, Rework_Error, Error>, rework_error_transformer: Transformer_Without_Parameters<New_Error, Rework_Error>): Data_Preparation_Result<Output, New_Error>;
9
- __extract_data: (success: ($: Output) => void, error: ($: Error) => void) => void;
10
- }
@@ -1,3 +0,0 @@
1
- import { Data_Preparation_Result } from "./Data_Preparation_Result";
2
- export type Data_Preparer<Output, Error, Input> = ($: Input) => Data_Preparation_Result<Output, Error>;
3
- export type Data_Preparer_With_Parameters<Output, Error, Input, Parameters> = ($: Input, $p: Parameters) => Data_Preparation_Result<Output, Error>;
File without changes
File without changes
File without changes