@cratis/arc 18.4.3 → 18.6.0
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/commands/Command.ts +18 -1
- package/commands/CommandValidator.ts +9 -7
- package/commands/for_Command/CommandWithRouteParams.ts +0 -2
- package/commands/for_Command/SomeCommand.ts +0 -2
- package/commands/for_Command/given/a_command.ts +4 -5
- package/commands/for_Command/given/a_command_with_validator.ts +55 -0
- package/commands/for_Command/when_executing/with_client_validation_failing.ts +69 -0
- package/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.ts +29 -0
- package/commands/for_Command/when_executing/with_client_validation_passing.ts +63 -0
- package/commands/for_Command/when_executing/with_custom_http_headers.ts +4 -1
- package/commands/for_Command/when_executing/with_origin_and_api_base_path.ts +5 -2
- package/commands/for_Command/when_executing/with_route_parameters.ts +5 -2
- package/commands/for_Command/when_validating/with_client_validation_failure.ts +26 -0
- package/commands/for_Command/when_validating/with_client_validation_passing.ts +77 -0
- package/commands/for_Command/when_validating/with_required_property_missing.ts +28 -0
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.ts +1 -0
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.ts +1 -0
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.ts +1 -0
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.ts +1 -0
- package/dist/cjs/commands/Command.d.ts +1 -1
- package/dist/cjs/commands/Command.d.ts.map +1 -1
- package/dist/cjs/commands/Command.js +13 -0
- package/dist/cjs/commands/Command.js.map +1 -1
- package/dist/cjs/commands/CommandValidator.d.ts +3 -6
- package/dist/cjs/commands/CommandValidator.d.ts.map +1 -1
- package/dist/cjs/commands/CommandValidator.js +5 -3
- package/dist/cjs/commands/CommandValidator.js.map +1 -1
- package/dist/cjs/commands/for_Command/CommandWithRouteParams.d.ts +16 -0
- package/dist/cjs/commands/for_Command/CommandWithRouteParams.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/SomeCommand.d.ts +14 -0
- package/dist/cjs/commands/for_Command/SomeCommand.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/given/a_command.d.ts +12 -0
- package/dist/cjs/commands/for_Command/given/a_command.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/given/a_command_with_validator.d.ts +33 -0
- package/dist/cjs/commands/for_Command/given/a_command_with_validator.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_clearing_the_command.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_clearing_the_command.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_constructing_command.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_constructing_command.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_origin.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_origin.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/and_command_route_not_found.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/and_command_route_not_found.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failing.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failing.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_passing.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_passing.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/with_command_properties.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/with_command_properties.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/with_custom_http_headers.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/with_custom_http_headers.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/with_microservice_header.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/with_microservice_header.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/with_missing_required_property.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/with_missing_required_property.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/with_route_parameters.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/with_route_parameters.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_executing/with_successful_response.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_executing/with_successful_response.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_property_has_changed_and_we_revert.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_property_has_changed_and_we_revert.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_validating/does_not_update_initial_values.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_validating/does_not_update_initial_values.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_validating/with_client_validation_failure.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_validating/with_client_validation_failure.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_validating/with_client_validation_passing.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_validating/with_client_validation_passing.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_validating/with_required_property_missing.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_validating/with_required_property_missing.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_validating/with_successful_response.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_validating/with_successful_response.d.ts.map +1 -0
- package/dist/cjs/commands/for_Command/when_validating/with_validation_errors.d.ts +2 -0
- package/dist/cjs/commands/for_Command/when_validating/with_validation_errors.d.ts.map +1 -0
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts +2 -0
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts.map +1 -0
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts +2 -0
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts.map +1 -0
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts +2 -0
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts.map +1 -0
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts +2 -0
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts.map +1 -0
- package/dist/cjs/helpers/fetchHelper.d.ts +7 -0
- package/dist/cjs/helpers/fetchHelper.d.ts.map +1 -0
- package/dist/cjs/identity/IIdentityProvider.d.ts +2 -1
- package/dist/cjs/identity/IIdentityProvider.d.ts.map +1 -1
- package/dist/cjs/identity/IIdentityProvider.js.map +1 -1
- package/dist/cjs/identity/IdentityProvider.d.ts +4 -3
- package/dist/cjs/identity/IdentityProvider.d.ts.map +1 -1
- package/dist/cjs/identity/IdentityProvider.js +12 -9
- package/dist/cjs/identity/IdentityProvider.js.map +1 -1
- package/dist/cjs/identity/for_IdentityProvider/given/an_identity_provider.d.ts +12 -0
- package/dist/cjs/identity/for_IdentityProvider/given/an_identity_provider.d.ts.map +1 -0
- package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts +2 -0
- package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts.map +1 -0
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts +2 -0
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts.map +1 -0
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts +2 -0
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts.map +1 -0
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts +2 -0
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts.map +1 -0
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts +2 -0
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts.map +1 -0
- package/dist/cjs/identity/for_IdentityProvider/when_setting_api_base_path.d.ts +2 -0
- package/dist/cjs/identity/for_IdentityProvider/when_setting_api_base_path.d.ts.map +1 -0
- package/dist/cjs/identity/for_IdentityProvider/when_setting_origin.d.ts +2 -0
- package/dist/cjs/identity/for_IdentityProvider/when_setting_origin.d.ts.map +1 -0
- package/dist/cjs/queries/IObservableQueryConnection.d.ts +2 -0
- package/dist/cjs/queries/IObservableQueryConnection.d.ts.map +1 -1
- package/dist/cjs/queries/NullObservableQueryConnection.d.ts +2 -0
- package/dist/cjs/queries/NullObservableQueryConnection.d.ts.map +1 -1
- package/dist/cjs/queries/NullObservableQueryConnection.js +6 -0
- package/dist/cjs/queries/NullObservableQueryConnection.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnection.d.ts +14 -1
- package/dist/cjs/queries/ObservableQueryConnection.d.ts.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnection.js +73 -2
- package/dist/cjs/queries/ObservableQueryConnection.js.map +1 -1
- package/dist/cjs/queries/QueryFor.d.ts +2 -0
- package/dist/cjs/queries/QueryFor.d.ts.map +1 -1
- package/dist/cjs/queries/QueryFor.js +25 -0
- package/dist/cjs/queries/QueryFor.js.map +1 -1
- package/dist/cjs/queries/QueryValidator.d.ts +6 -0
- package/dist/cjs/queries/QueryValidator.d.ts.map +1 -0
- package/dist/cjs/queries/QueryValidator.js +12 -0
- package/dist/cjs/queries/QueryValidator.js.map +1 -0
- package/dist/cjs/queries/WebSocketMessage.d.ts +11 -0
- package/dist/cjs/queries/WebSocketMessage.d.ts.map +1 -0
- package/dist/cjs/queries/WebSocketMessage.js +9 -0
- package/dist/cjs/queries/WebSocketMessage.js.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts +10 -0
- package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryConnection/when_constructing.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryConnection/when_constructing.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/given/TestQueries.d.ts +42 -0
- package/dist/cjs/queries/for_ObservableQueryFor/given/TestQueries.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts +9 -0
- package/dist/cjs/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_disposing.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_disposing.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_microservice.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_microservice.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_origin.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_origin.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts.map +1 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts +2 -0
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/given/TestQueries.d.ts +37 -0
- package/dist/cjs/queries/for_QueryFor/given/TestQueries.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/given/a_query_for.d.ts +9 -0
- package/dist/cjs/queries/for_QueryFor/given/a_query_for.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/given/a_query_with_validator.d.ts +35 -0
- package/dist/cjs/queries/for_QueryFor/given/a_query_with_validator.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_constructing.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_constructing.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_constructing_enumerable.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_constructing_enumerable.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_abort_controller.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_abort_controller.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_fetch_error.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_fetch_error.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_paging.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_paging.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_sorting.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_sorting.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_setting_api_base_path.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_setting_api_base_path.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_setting_microservice.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_setting_microservice.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryFor/when_setting_origin.d.ts +2 -0
- package/dist/cjs/queries/for_QueryFor/when_setting_origin.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts +2 -0
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts +2 -0
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts +2 -0
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts.map +1 -0
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts +2 -0
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts.map +1 -0
- package/dist/cjs/queries/for_WebSocketMessage/when_creating_messages.d.ts +2 -0
- package/dist/cjs/queries/for_WebSocketMessage/when_creating_messages.d.ts.map +1 -0
- package/dist/cjs/queries/index.d.ts +2 -0
- package/dist/cjs/queries/index.d.ts.map +1 -1
- package/dist/cjs/queries/index.js +7 -0
- package/dist/cjs/queries/index.js.map +1 -1
- package/dist/cjs/validation/IValidationRule.d.ts +5 -0
- package/dist/cjs/validation/IValidationRule.d.ts.map +1 -0
- package/dist/cjs/validation/PropertyRule.d.ts +11 -0
- package/dist/cjs/validation/PropertyRule.d.ts.map +1 -0
- package/dist/cjs/validation/PropertyRule.js +27 -0
- package/dist/cjs/validation/PropertyRule.js.map +1 -0
- package/dist/cjs/validation/PropertyValidator.d.ts +11 -0
- package/dist/cjs/validation/PropertyValidator.d.ts.map +1 -0
- package/dist/cjs/validation/PropertyValidator.js +26 -0
- package/dist/cjs/validation/PropertyValidator.js.map +1 -0
- package/dist/cjs/validation/RuleBuilder.d.ts +11 -0
- package/dist/cjs/validation/RuleBuilder.d.ts.map +1 -0
- package/dist/cjs/validation/RuleBuilder.js +27 -0
- package/dist/cjs/validation/RuleBuilder.js.map +1 -0
- package/dist/cjs/validation/RuleBuilderExtensions.d.ts +28 -0
- package/dist/cjs/validation/RuleBuilderExtensions.d.ts.map +1 -0
- package/dist/cjs/validation/RuleBuilderExtensions.js +77 -0
- package/dist/cjs/validation/RuleBuilderExtensions.js.map +1 -0
- package/dist/cjs/validation/Validator.d.ts +8 -1
- package/dist/cjs/validation/Validator.d.ts.map +1 -1
- package/dist/cjs/validation/Validator.js +41 -0
- package/dist/cjs/validation/Validator.js.map +1 -1
- package/dist/cjs/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts +2 -0
- package/dist/cjs/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts.map +1 -0
- package/dist/cjs/validation/for_Validator/when_using_custom_error_message.d.ts +2 -0
- package/dist/cjs/validation/for_Validator/when_using_custom_error_message.d.ts.map +1 -0
- package/dist/cjs/validation/for_Validator/when_validating/with_all_rules_passing.d.ts +2 -0
- package/dist/cjs/validation/for_Validator/when_validating/with_all_rules_passing.d.ts.map +1 -0
- package/dist/cjs/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts +2 -0
- package/dist/cjs/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts.map +1 -0
- package/dist/cjs/validation/for_Validator/when_validating/with_one_rule_failing.d.ts +2 -0
- package/dist/cjs/validation/for_Validator/when_validating/with_one_rule_failing.d.ts.map +1 -0
- package/dist/cjs/validation/index.d.ts +11 -0
- package/dist/cjs/validation/index.d.ts.map +1 -1
- package/dist/cjs/validation/index.js +39 -0
- package/dist/cjs/validation/index.js.map +1 -1
- package/dist/cjs/validation/rules/ComparisonRules.d.ts +22 -0
- package/dist/cjs/validation/rules/ComparisonRules.d.ts.map +1 -0
- package/dist/cjs/validation/rules/ComparisonRules.js +62 -0
- package/dist/cjs/validation/rules/ComparisonRules.js.map +1 -0
- package/dist/cjs/validation/rules/EmailRule.d.ts +7 -0
- package/dist/cjs/validation/rules/EmailRule.d.ts.map +1 -0
- package/dist/cjs/validation/rules/EmailRule.js +19 -0
- package/dist/cjs/validation/rules/EmailRule.js.map +1 -0
- package/dist/cjs/validation/rules/LengthRules.d.ts +18 -0
- package/dist/cjs/validation/rules/LengthRules.d.ts.map +1 -0
- package/dist/cjs/validation/rules/LengthRules.js +50 -0
- package/dist/cjs/validation/rules/LengthRules.js.map +1 -0
- package/dist/cjs/validation/rules/NotEmptyRule.d.ts +10 -0
- package/dist/cjs/validation/rules/NotEmptyRule.d.ts.map +1 -0
- package/dist/cjs/validation/rules/NotEmptyRule.js +33 -0
- package/dist/cjs/validation/rules/NotEmptyRule.js.map +1 -0
- package/dist/cjs/validation/rules/RegexRule.d.ts +7 -0
- package/dist/cjs/validation/rules/RegexRule.d.ts.map +1 -0
- package/dist/cjs/validation/rules/RegexRule.js +20 -0
- package/dist/cjs/validation/rules/RegexRule.js.map +1 -0
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts +2 -0
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts +2 -0
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts +2 -0
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts +2 -0
- package/dist/cjs/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts +2 -0
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts +2 -0
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts +2 -0
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts +2 -0
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts +2 -0
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts +2 -0
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts +2 -0
- package/dist/cjs/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts +2 -0
- package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts +2 -0
- package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts +2 -0
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts +2 -0
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts +2 -0
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts +2 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts +2 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts +2 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts +2 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts +2 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts +2 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts +2 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts.map +1 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts +2 -0
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts.map +1 -0
- package/dist/esm/commands/Command.d.ts +1 -1
- package/dist/esm/commands/Command.d.ts.map +1 -1
- package/dist/esm/commands/Command.js +13 -0
- package/dist/esm/commands/Command.js.map +1 -1
- package/dist/esm/commands/CommandValidator.d.ts +3 -6
- package/dist/esm/commands/CommandValidator.d.ts.map +1 -1
- package/dist/esm/commands/CommandValidator.js +5 -3
- package/dist/esm/commands/CommandValidator.js.map +1 -1
- package/dist/esm/commands/for_Command/CommandWithRouteParams.d.ts +16 -0
- package/dist/esm/commands/for_Command/CommandWithRouteParams.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/CommandWithRouteParams.js +21 -0
- package/dist/esm/commands/for_Command/CommandWithRouteParams.js.map +1 -0
- package/dist/esm/commands/for_Command/SomeCommand.d.ts +14 -0
- package/dist/esm/commands/for_Command/SomeCommand.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/SomeCommand.js +21 -0
- package/dist/esm/commands/for_Command/SomeCommand.js.map +1 -0
- package/dist/esm/commands/for_Command/given/a_command.d.ts +12 -0
- package/dist/esm/commands/for_Command/given/a_command.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/given/a_command.js +17 -0
- package/dist/esm/commands/for_Command/given/a_command.js.map +1 -0
- package/dist/esm/commands/for_Command/given/a_command_with_validator.d.ts +33 -0
- package/dist/esm/commands/for_Command/given/a_command_with_validator.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/given/a_command_with_validator.js +38 -0
- package/dist/esm/commands/for_Command/given/a_command_with_validator.js.map +1 -0
- package/dist/esm/commands/for_Command/when_clearing_the_command.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_clearing_the_command.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_clearing_the_command.js +13 -0
- package/dist/esm/commands/for_Command/when_clearing_the_command.js.map +1 -0
- package/dist/esm/commands/for_Command/when_constructing_command.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_constructing_command.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_constructing_command.js +34 -0
- package/dist/esm/commands/for_Command/when_constructing_command.js.map +1 -0
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.js +20 -0
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.js.map +1 -0
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.js +20 -0
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.js +18 -0
- package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.js +16 -0
- package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.js +52 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.js +19 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.js +49 -0
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_command_properties.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/with_command_properties.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_command_properties.js +32 -0
- package/dist/esm/commands/for_Command/when_executing/with_command_properties.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.js +54 -0
- package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_microservice_header.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/with_microservice_header.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_microservice_header.js +40 -0
- package/dist/esm/commands/for_Command/when_executing/with_microservice_header.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.js +24 -0
- package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.js +46 -0
- package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_route_parameters.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/with_route_parameters.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_route_parameters.js +51 -0
- package/dist/esm/commands/for_Command/when_executing/with_route_parameters.js.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_successful_response.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_executing/with_successful_response.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_executing/with_successful_response.js +39 -0
- package/dist/esm/commands/for_Command/when_executing/with_successful_response.js.map +1 -0
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.js +11 -0
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.js.map +1 -0
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.js +11 -0
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.js.map +1 -0
- package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.js +8 -0
- package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.js.map +1 -0
- package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.js +10 -0
- package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.js.map +1 -0
- package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.js +11 -0
- package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.js.map +1 -0
- package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.js +12 -0
- package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.js.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.js +16 -0
- package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.js.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.js +18 -0
- package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.js.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.js +31 -0
- package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.js.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.js +18 -0
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.js.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.js +56 -0
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.js.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.js +21 -0
- package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.js.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/with_successful_response.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_validating/with_successful_response.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/with_successful_response.js +37 -0
- package/dist/esm/commands/for_Command/when_validating/with_successful_response.js.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/with_validation_errors.d.ts +2 -0
- package/dist/esm/commands/for_Command/when_validating/with_validation_errors.d.ts.map +1 -0
- package/dist/esm/commands/for_Command/when_validating/with_validation_errors.js +37 -0
- package/dist/esm/commands/for_Command/when_validating/with_validation_errors.js.map +1 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts +2 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts.map +1 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.js +48 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.js.map +1 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts +2 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts.map +1 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.js +47 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.js.map +1 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts +2 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts.map +1 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.js +37 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.js.map +1 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts +2 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts.map +1 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.js +37 -0
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.js +17 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.js +11 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.js +16 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.js +15 -0
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.js +23 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.js +35 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.js +42 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.js +23 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.js +23 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.js +26 -0
- package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.js +15 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.js +13 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.js +17 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.js.map +1 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.d.ts +2 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.d.ts.map +1 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.js +14 -0
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.js.map +1 -0
- package/dist/esm/helpers/fetchHelper.d.ts +7 -0
- package/dist/esm/helpers/fetchHelper.d.ts.map +1 -0
- package/dist/esm/helpers/fetchHelper.js +22 -0
- package/dist/esm/helpers/fetchHelper.js.map +1 -0
- package/dist/esm/identity/IIdentityProvider.d.ts +2 -1
- package/dist/esm/identity/IIdentityProvider.d.ts.map +1 -1
- package/dist/esm/identity/IIdentityProvider.js.map +1 -1
- package/dist/esm/identity/IdentityProvider.d.ts +4 -3
- package/dist/esm/identity/IdentityProvider.d.ts.map +1 -1
- package/dist/esm/identity/IdentityProvider.js +12 -9
- package/dist/esm/identity/IdentityProvider.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.d.ts +12 -0
- package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.d.ts.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.js +18 -0
- package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.js.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts +2 -0
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.js +34 -0
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.js.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts +2 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.js +24 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.js.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts +2 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.js +29 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.js.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts +2 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.js +35 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.js.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts +2 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.js +28 -0
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.js.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.d.ts +2 -0
- package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.d.ts.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.js +15 -0
- package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.js.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_setting_origin.d.ts +2 -0
- package/dist/esm/identity/for_IdentityProvider/when_setting_origin.d.ts.map +1 -0
- package/dist/esm/identity/for_IdentityProvider/when_setting_origin.js +15 -0
- package/dist/esm/identity/for_IdentityProvider/when_setting_origin.js.map +1 -0
- package/dist/esm/queries/IObservableQueryConnection.d.ts +2 -0
- package/dist/esm/queries/IObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/NullObservableQueryConnection.d.ts +2 -0
- package/dist/esm/queries/NullObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/NullObservableQueryConnection.js +6 -0
- package/dist/esm/queries/NullObservableQueryConnection.js.map +1 -1
- package/dist/esm/queries/ObservableQueryConnection.d.ts +14 -1
- package/dist/esm/queries/ObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryConnection.js +73 -2
- package/dist/esm/queries/ObservableQueryConnection.js.map +1 -1
- package/dist/esm/queries/QueryFor.d.ts +2 -0
- package/dist/esm/queries/QueryFor.d.ts.map +1 -1
- package/dist/esm/queries/QueryFor.js +25 -0
- package/dist/esm/queries/QueryFor.js.map +1 -1
- package/dist/esm/queries/QueryValidator.d.ts +6 -0
- package/dist/esm/queries/QueryValidator.d.ts.map +1 -0
- package/dist/esm/queries/QueryValidator.js +10 -0
- package/dist/esm/queries/QueryValidator.js.map +1 -0
- package/dist/esm/queries/WebSocketMessage.d.ts +11 -0
- package/dist/esm/queries/WebSocketMessage.d.ts.map +1 -0
- package/dist/esm/queries/WebSocketMessage.js +9 -0
- package/dist/esm/queries/WebSocketMessage.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts +10 -0
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.js +19 -0
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.js +11 -0
- package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.d.ts +42 -0
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.js +60 -0
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts +9 -0
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.js +14 -0
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing.js +37 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.js +14 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.js +20 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.js +20 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_disposing.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_disposing.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_disposing.js +19 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_disposing.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.js +53 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.js +15 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.js +49 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.js +58 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.js +56 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.js +60 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.js +50 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.js +68 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.js +11 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.js +11 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.js +11 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.js +24 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.js +27 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.js +26 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.js +45 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.js +27 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.js.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts +2 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts.map +1 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.js +24 -0
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/given/TestQueries.d.ts +37 -0
- package/dist/esm/queries/for_QueryFor/given/TestQueries.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/given/TestQueries.js +56 -0
- package/dist/esm/queries/for_QueryFor/given/TestQueries.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/given/a_query_for.d.ts +9 -0
- package/dist/esm/queries/for_QueryFor/given/a_query_for.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/given/a_query_for.js +14 -0
- package/dist/esm/queries/for_QueryFor/given/a_query_for.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.d.ts +35 -0
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.js +35 -0
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_constructing.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_constructing.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_constructing.js +37 -0
- package/dist/esm/queries/for_QueryFor/when_constructing.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.js +14 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.js +20 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.js +20 -0
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.js +57 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.js +44 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.js +18 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.js +47 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.js +51 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.js +36 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.js +19 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.js +34 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_paging.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_paging.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_paging.js +52 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_paging.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.js +58 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.js +56 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.js +48 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.js +60 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.js +82 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.js +73 -0
- package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.js +12 -0
- package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_setting_microservice.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_setting_microservice.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_setting_microservice.js +12 -0
- package/dist/esm/queries/for_QueryFor/when_setting_microservice.js.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_setting_origin.d.ts +2 -0
- package/dist/esm/queries/for_QueryFor/when_setting_origin.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryFor/when_setting_origin.js +12 -0
- package/dist/esm/queries/for_QueryFor/when_setting_origin.js.map +1 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts +2 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.js +21 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.js.map +1 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts +2 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.js +21 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.js.map +1 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts +2 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.js +21 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.js.map +1 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts +2 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts.map +1 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.js +21 -0
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.js.map +1 -0
- package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.d.ts +2 -0
- package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.d.ts.map +1 -0
- package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.js +53 -0
- package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.js.map +1 -0
- package/dist/esm/queries/index.d.ts +2 -0
- package/dist/esm/queries/index.d.ts.map +1 -1
- package/dist/esm/queries/index.js +2 -0
- package/dist/esm/queries/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/validation/IValidationRule.d.ts +5 -0
- package/dist/esm/validation/IValidationRule.d.ts.map +1 -0
- package/dist/esm/validation/IValidationRule.js +2 -0
- package/dist/esm/validation/IValidationRule.js.map +1 -0
- package/dist/esm/validation/PropertyRule.d.ts +11 -0
- package/dist/esm/validation/PropertyRule.d.ts.map +1 -0
- package/dist/esm/validation/PropertyRule.js +25 -0
- package/dist/esm/validation/PropertyRule.js.map +1 -0
- package/dist/esm/validation/PropertyValidator.d.ts +11 -0
- package/dist/esm/validation/PropertyValidator.d.ts.map +1 -0
- package/dist/esm/validation/PropertyValidator.js +24 -0
- package/dist/esm/validation/PropertyValidator.js.map +1 -0
- package/dist/esm/validation/RuleBuilder.d.ts +11 -0
- package/dist/esm/validation/RuleBuilder.d.ts.map +1 -0
- package/dist/esm/validation/RuleBuilder.js +25 -0
- package/dist/esm/validation/RuleBuilder.js.map +1 -0
- package/dist/esm/validation/RuleBuilderExtensions.d.ts +28 -0
- package/dist/esm/validation/RuleBuilderExtensions.d.ts.map +1 -0
- package/dist/esm/validation/RuleBuilderExtensions.js +65 -0
- package/dist/esm/validation/RuleBuilderExtensions.js.map +1 -0
- package/dist/esm/validation/Validator.d.ts +8 -1
- package/dist/esm/validation/Validator.d.ts.map +1 -1
- package/dist/esm/validation/Validator.js +41 -0
- package/dist/esm/validation/Validator.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts +2 -0
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts.map +1 -0
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.js +20 -0
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.js.map +1 -0
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.d.ts +2 -0
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.d.ts.map +1 -0
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.js +19 -0
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.js.map +1 -0
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.d.ts +2 -0
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.d.ts.map +1 -0
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.js +21 -0
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.js.map +1 -0
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts +2 -0
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts.map +1 -0
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.js +24 -0
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.js.map +1 -0
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.d.ts +2 -0
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.d.ts.map +1 -0
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.js +24 -0
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.js.map +1 -0
- package/dist/esm/validation/index.d.ts +11 -0
- package/dist/esm/validation/index.d.ts.map +1 -1
- package/dist/esm/validation/index.js +10 -0
- package/dist/esm/validation/index.js.map +1 -1
- package/dist/esm/validation/rules/ComparisonRules.d.ts +22 -0
- package/dist/esm/validation/rules/ComparisonRules.d.ts.map +1 -0
- package/dist/esm/validation/rules/ComparisonRules.js +57 -0
- package/dist/esm/validation/rules/ComparisonRules.js.map +1 -0
- package/dist/esm/validation/rules/EmailRule.d.ts +7 -0
- package/dist/esm/validation/rules/EmailRule.d.ts.map +1 -0
- package/dist/esm/validation/rules/EmailRule.js +17 -0
- package/dist/esm/validation/rules/EmailRule.js.map +1 -0
- package/dist/esm/validation/rules/LengthRules.d.ts +18 -0
- package/dist/esm/validation/rules/LengthRules.d.ts.map +1 -0
- package/dist/esm/validation/rules/LengthRules.js +46 -0
- package/dist/esm/validation/rules/LengthRules.js.map +1 -0
- package/dist/esm/validation/rules/NotEmptyRule.d.ts +10 -0
- package/dist/esm/validation/rules/NotEmptyRule.d.ts.map +1 -0
- package/dist/esm/validation/rules/NotEmptyRule.js +30 -0
- package/dist/esm/validation/rules/NotEmptyRule.js.map +1 -0
- package/dist/esm/validation/rules/RegexRule.d.ts +7 -0
- package/dist/esm/validation/rules/RegexRule.d.ts.map +1 -0
- package/dist/esm/validation/rules/RegexRule.js +18 -0
- package/dist/esm/validation/rules/RegexRule.js.map +1 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts +2 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.js +15 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.js.map +1 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts +2 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.js +15 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.js.map +1 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts +2 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.js +15 -0
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.js.map +1 -0
- package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts +2 -0
- package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.js +15 -0
- package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.js.map +1 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts +2 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.js +15 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.js.map +1 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts +2 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.js +15 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.js.map +1 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts +2 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.js +18 -0
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.js.map +1 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts +2 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.js +15 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.js.map +1 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts +2 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.js +15 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.js.map +1 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts +2 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.js +15 -0
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.js.map +1 -0
- package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts +2 -0
- package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.js +15 -0
- package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.js.map +1 -0
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts +2 -0
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.js +15 -0
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.js.map +1 -0
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts +2 -0
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.js +18 -0
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.js.map +1 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts +2 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.js +15 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.js.map +1 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts +2 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.js +15 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.js.map +1 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts +2 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.js +18 -0
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.js.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts +2 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.js +17 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.js.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts +2 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.js +15 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.js.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts +2 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.js +15 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.js.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts +2 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.js +15 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.js.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts +2 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.js +25 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.js.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts +2 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.js +19 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.js.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts +2 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.js +15 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.js.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts +2 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts.map +1 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.js +15 -0
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.js.map +1 -0
- package/helpers/fetchHelper.ts +30 -0
- package/identity/IIdentityProvider.ts +4 -1
- package/identity/IdentityProvider.ts +14 -9
- package/identity/for_IdentityProvider/given/an_identity_provider.ts +4 -5
- package/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.ts +43 -0
- package/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.ts +42 -0
- package/package.json +1 -1
- package/queries/IObservableQueryConnection.ts +10 -0
- package/queries/NullObservableQueryConnection.ts +10 -0
- package/queries/ObservableQueryConnection.ts +93 -2
- package/queries/QueryFor.ts +29 -0
- package/queries/QueryValidator.ts +19 -0
- package/queries/WebSocketMessage.ts +44 -0
- package/queries/for_ObservableQueryConnection/given/an_observable_query_connection.ts +27 -0
- package/queries/for_ObservableQueryConnection/when_constructing.ts +15 -0
- package/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.ts +5 -2
- package/queries/for_ObservableQueryFor/when_performing/with_paging.ts +5 -6
- package/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.ts +5 -2
- package/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.ts +5 -2
- package/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.ts +5 -2
- package/queries/for_ObservableQueryFor/when_performing/with_sorting.ts +5 -2
- package/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.ts +7 -2
- package/queries/for_QueryFor/given/a_query_with_validator.ts +54 -0
- package/queries/for_QueryFor/when_performing/with_abort_controller.ts +6 -3
- package/queries/for_QueryFor/when_performing/with_client_validation_failing.ts +63 -0
- package/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.ts +28 -0
- package/queries/for_QueryFor/when_performing/with_client_validation_passing.ts +64 -0
- package/queries/for_QueryFor/when_performing/with_enumerable_query.ts +5 -2
- package/queries/for_QueryFor/when_performing/with_fetch_error.ts +5 -2
- package/queries/for_QueryFor/when_performing/with_json_parse_error.ts +6 -3
- package/queries/for_QueryFor/when_performing/with_paging.ts +5 -2
- package/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.ts +5 -2
- package/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.ts +5 -2
- package/queries/for_QueryFor/when_performing/with_query_without_required_parameters.ts +5 -6
- package/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.ts +5 -2
- package/queries/for_QueryFor/when_performing/with_sorting.ts +8 -4
- package/queries/for_QueryFor/when_performing/with_valid_arguments.ts +6 -3
- package/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.ts +1 -1
- package/queries/for_WebSocketMessage/when_creating_messages.ts +67 -0
- package/queries/index.ts +3 -1
- package/validation/IValidationRule.ts +18 -0
- package/validation/PropertyRule.ts +59 -0
- package/validation/PropertyValidator.ts +51 -0
- package/validation/RuleBuilder.ts +49 -0
- package/validation/RuleBuilderExtensions.ts +176 -0
- package/validation/Validator.ts +74 -4
- package/validation/for_Validator/when_defining_multiple_rules_for_same_property.ts +32 -0
- package/validation/for_Validator/when_using_custom_error_message.ts +30 -0
- package/validation/for_Validator/when_validating/with_all_rules_passing.ts +34 -0
- package/validation/for_Validator/when_validating/with_multiple_rules_failing.ts +38 -0
- package/validation/for_Validator/when_validating/with_one_rule_failing.ts +38 -0
- package/validation/index.ts +11 -0
- package/validation/rules/ComparisonRules.ts +96 -0
- package/validation/rules/EmailRule.ts +28 -0
- package/validation/rules/LengthRules.ts +74 -0
- package/validation/rules/NotEmptyRule.ts +51 -0
- package/validation/rules/RegexRule.ts +28 -0
- package/validation/rules/for_EmailRule/when_validating/with_empty_string.ts +25 -0
- package/validation/rules/for_EmailRule/when_validating/with_invalid_email.ts +25 -0
- package/validation/rules/for_EmailRule/when_validating/with_valid_email.ts +25 -0
- package/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.ts +25 -0
- package/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.ts +25 -0
- package/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.ts +25 -0
- package/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.ts +29 -0
- package/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.ts +25 -0
- package/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.ts +25 -0
- package/validation/rules/for_LengthRule/when_validating/with_string_within_range.ts +25 -0
- package/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.ts +25 -0
- package/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.ts +25 -0
- package/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.ts +29 -0
- package/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.ts +25 -0
- package/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.ts +25 -0
- package/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.ts +29 -0
- package/validation/rules/for_NotEmptyRule/when_setting_custom_message.ts +27 -0
- package/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.ts +25 -0
- package/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.ts +25 -0
- package/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.ts +25 -0
- package/validation/rules/for_NotEmptyRule/when_validating/with_null_value.ts +38 -0
- package/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.ts +30 -0
- package/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.ts +25 -0
- package/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.ts +25 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { Guid } from '@cratis/fundamentals';
|
|
5
|
+
import { IdentityProvider } from '../../IdentityProvider';
|
|
6
|
+
import { an_identity_provider } from '../given/an_identity_provider';
|
|
7
|
+
import { given } from '../../../given';
|
|
8
|
+
|
|
9
|
+
class TestDetails {
|
|
10
|
+
userId: Guid = Guid.empty;
|
|
11
|
+
role: string = '';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
describe('when getting current with type safe details', given(an_identity_provider, () => {
|
|
15
|
+
let result: { id: string; name: string; details: TestDetails };
|
|
16
|
+
|
|
17
|
+
beforeEach(async () => {
|
|
18
|
+
const testGuid = Guid.create();
|
|
19
|
+
|
|
20
|
+
// Mock document.cookie with base64-encoded identity data
|
|
21
|
+
const identityData = {
|
|
22
|
+
id: 'test-user-id',
|
|
23
|
+
name: 'Test User',
|
|
24
|
+
details: {
|
|
25
|
+
userId: testGuid.toString(),
|
|
26
|
+
role: 'admin'
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const encodedData = btoa(JSON.stringify(identityData));
|
|
30
|
+
(global as { document?: { cookie: string } }).document!.cookie = `.cratis-identity=${encodedData}`;
|
|
31
|
+
|
|
32
|
+
const identity = await IdentityProvider.getCurrent(TestDetails);
|
|
33
|
+
result = {
|
|
34
|
+
id: identity.id,
|
|
35
|
+
name: identity.name,
|
|
36
|
+
details: identity.details
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('should deserialize details with proper types', () => {
|
|
41
|
+
result.details.userId.should.be.instanceOf(Guid);
|
|
42
|
+
});
|
|
43
|
+
}));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { Guid } from '@cratis/fundamentals';
|
|
5
|
+
import { IdentityProvider } from '../../IdentityProvider';
|
|
6
|
+
import { an_identity_provider } from '../given/an_identity_provider';
|
|
7
|
+
import { given } from '../../../given';
|
|
8
|
+
|
|
9
|
+
class TestDetails {
|
|
10
|
+
userId: Guid = Guid.empty;
|
|
11
|
+
role: string = '';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
describe('when refreshing with type safe details', given(an_identity_provider, context => {
|
|
15
|
+
let result: { id: string; name: string; details: TestDetails };
|
|
16
|
+
|
|
17
|
+
beforeEach(async () => {
|
|
18
|
+
const testGuid = Guid.create();
|
|
19
|
+
context.fetchStub.resolves({
|
|
20
|
+
ok: true,
|
|
21
|
+
json: async () => ({
|
|
22
|
+
id: 'test-user-id',
|
|
23
|
+
name: 'Test User',
|
|
24
|
+
details: {
|
|
25
|
+
userId: testGuid.toString(),
|
|
26
|
+
role: 'admin'
|
|
27
|
+
}
|
|
28
|
+
})
|
|
29
|
+
} as Response);
|
|
30
|
+
|
|
31
|
+
const identity = await IdentityProvider.refresh(TestDetails);
|
|
32
|
+
result = {
|
|
33
|
+
id: identity.id,
|
|
34
|
+
name: identity.name,
|
|
35
|
+
details: identity.details
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('should deserialize details with proper types', () => {
|
|
40
|
+
result.details.userId.should.be.instanceOf(Guid);
|
|
41
|
+
});
|
|
42
|
+
}));
|
package/package.json
CHANGED
|
@@ -7,6 +7,16 @@ import { DataReceived } from './ObservableQueryConnection';
|
|
|
7
7
|
* Defines a connection for observable queries.
|
|
8
8
|
*/
|
|
9
9
|
export interface IObservableQueryConnection<TDataType> {
|
|
10
|
+
/**
|
|
11
|
+
* Gets the latency of the last ping/pong sequence in milliseconds.
|
|
12
|
+
*/
|
|
13
|
+
readonly lastPingLatency: number;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Gets the average latency since the connection started in milliseconds.
|
|
17
|
+
*/
|
|
18
|
+
readonly averageLatency: number;
|
|
19
|
+
|
|
10
20
|
/**
|
|
11
21
|
* Connect to a specific route.
|
|
12
22
|
* @param {DataReceived<TDataType> dataReceived Callback that will receive the data.
|
|
@@ -17,6 +17,16 @@ export class NullObservableQueryConnection<TDataType> implements IObservableQuer
|
|
|
17
17
|
constructor(readonly defaultValue: TDataType) {
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/** @inheritdoc */
|
|
21
|
+
get lastPingLatency(): number {
|
|
22
|
+
return 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** @inheritdoc */
|
|
26
|
+
get averageLatency(): number {
|
|
27
|
+
return 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
20
30
|
/** @inheritdoc */
|
|
21
31
|
connect(dataReceived: DataReceived<TDataType>) {
|
|
22
32
|
dataReceived(QueryResult.empty(this.defaultValue));
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { Globals } from '../Globals';
|
|
5
5
|
import { IObservableQueryConnection } from './IObservableQueryConnection';
|
|
6
6
|
import { QueryResult } from './QueryResult';
|
|
7
|
+
import { WebSocketMessage, WebSocketMessageType } from './WebSocketMessage';
|
|
7
8
|
|
|
8
9
|
export type DataReceived<TDataType> = (data: QueryResult<TDataType>) => void;
|
|
9
10
|
|
|
@@ -15,12 +16,21 @@ export class ObservableQueryConnection<TDataType> implements IObservableQueryCon
|
|
|
15
16
|
private _socket!: WebSocket;
|
|
16
17
|
private _disconnected = false;
|
|
17
18
|
private _url: string;
|
|
19
|
+
private _pingInterval?: ReturnType<typeof setInterval>;
|
|
20
|
+
private _pingIntervalMs: number = 10000;
|
|
21
|
+
private _lastPingSentTime?: number;
|
|
22
|
+
private _lastPongLatency: number = 0;
|
|
23
|
+
private _latencySamples: number[] = [];
|
|
24
|
+
private _connectionStartTime?: number;
|
|
18
25
|
|
|
19
26
|
/**
|
|
20
27
|
* Initializes a new instance of the {@link ObservableQueryConnection<TDataType>} class.
|
|
21
28
|
* @param {Url} url The fully qualified Url.
|
|
29
|
+
* @param {string} _microservice The microservice name.
|
|
30
|
+
* @param {number} pingIntervalMs The ping interval in milliseconds (default: 10000).
|
|
22
31
|
*/
|
|
23
|
-
constructor(url: URL, private readonly _microservice: string) {
|
|
32
|
+
constructor(url: URL, private readonly _microservice: string, pingIntervalMs: number = 10000) {
|
|
33
|
+
this._pingIntervalMs = pingIntervalMs;
|
|
24
34
|
const secure = url.protocol?.indexOf('https') === 0 || false;
|
|
25
35
|
|
|
26
36
|
this._url = `${secure ? 'wss' : 'ws'}://${url.host}${url.pathname}${url.search}`;
|
|
@@ -41,6 +51,24 @@ export class ObservableQueryConnection<TDataType> implements IObservableQueryCon
|
|
|
41
51
|
this.disconnect();
|
|
42
52
|
}
|
|
43
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Gets the latency of the last ping/pong sequence in milliseconds.
|
|
56
|
+
*/
|
|
57
|
+
get lastPingLatency(): number {
|
|
58
|
+
return this._lastPongLatency;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Gets the average latency since the connection started in milliseconds.
|
|
63
|
+
*/
|
|
64
|
+
get averageLatency(): number {
|
|
65
|
+
if (this._latencySamples.length === 0) {
|
|
66
|
+
return 0;
|
|
67
|
+
}
|
|
68
|
+
const sum = this._latencySamples.reduce((acc, val) => acc + val, 0);
|
|
69
|
+
return sum / this._latencySamples.length;
|
|
70
|
+
}
|
|
71
|
+
|
|
44
72
|
/** @inheritdoc */
|
|
45
73
|
connect(dataReceived: DataReceived<TDataType>, queryArguments?: object) {
|
|
46
74
|
let url = this._url;
|
|
@@ -80,15 +108,19 @@ export class ObservableQueryConnection<TDataType> implements IObservableQueryCon
|
|
|
80
108
|
console.log(`Connection for '${url}' established`);
|
|
81
109
|
timeToWait = 500;
|
|
82
110
|
currentAttempt = 0;
|
|
111
|
+
this._connectionStartTime = Date.now();
|
|
112
|
+
this.startPinging();
|
|
83
113
|
};
|
|
84
114
|
this._socket.onclose = () => {
|
|
85
115
|
if (this._disconnected) return;
|
|
86
116
|
console.log(`Unexpected connection closed for route '${url}'`);
|
|
117
|
+
this.stopPinging();
|
|
87
118
|
retry();
|
|
88
119
|
};
|
|
89
120
|
this._socket.onerror = (error) => {
|
|
90
121
|
if (this._disconnected) return;
|
|
91
122
|
console.log(`Error with connection for '${url}' - ${error}`);
|
|
123
|
+
this.stopPinging();
|
|
92
124
|
retry();
|
|
93
125
|
};
|
|
94
126
|
this._socket.onmessage = (ev) => {
|
|
@@ -96,7 +128,7 @@ export class ObservableQueryConnection<TDataType> implements IObservableQueryCon
|
|
|
96
128
|
console.log('Received message after closing connection');
|
|
97
129
|
return;
|
|
98
130
|
}
|
|
99
|
-
|
|
131
|
+
this.handleMessage(ev.data, dataReceived);
|
|
100
132
|
};
|
|
101
133
|
};
|
|
102
134
|
|
|
@@ -111,8 +143,67 @@ export class ObservableQueryConnection<TDataType> implements IObservableQueryCon
|
|
|
111
143
|
}
|
|
112
144
|
console.log(`Disconnecting '${this._url}'`);
|
|
113
145
|
this._disconnected = true;
|
|
146
|
+
this.stopPinging();
|
|
114
147
|
this._socket?.close();
|
|
115
148
|
console.log(`Connection for '${this._url}' closed`);
|
|
116
149
|
this._socket = undefined!;
|
|
117
150
|
}
|
|
151
|
+
|
|
152
|
+
private startPinging() {
|
|
153
|
+
this.stopPinging();
|
|
154
|
+
this._pingInterval = setInterval(() => {
|
|
155
|
+
this.sendPing();
|
|
156
|
+
}, this._pingIntervalMs);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
private stopPinging() {
|
|
160
|
+
if (this._pingInterval) {
|
|
161
|
+
clearInterval(this._pingInterval);
|
|
162
|
+
this._pingInterval = undefined;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
private sendPing() {
|
|
167
|
+
if (this._disconnected || !this._socket || this._socket.readyState !== WebSocket.OPEN) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
this._lastPingSentTime = Date.now();
|
|
172
|
+
const pingMessage: WebSocketMessage = {
|
|
173
|
+
type: WebSocketMessageType.Ping,
|
|
174
|
+
timestamp: this._lastPingSentTime
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
this._socket.send(JSON.stringify(pingMessage));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
private handleMessage(rawData: string, dataReceived: DataReceived<TDataType>) {
|
|
181
|
+
try {
|
|
182
|
+
const message = JSON.parse(rawData) as WebSocketMessage;
|
|
183
|
+
|
|
184
|
+
// Handle messages based on type
|
|
185
|
+
if (message.type === WebSocketMessageType.Pong) {
|
|
186
|
+
this.handlePong(message);
|
|
187
|
+
} else if (message.type === WebSocketMessageType.Data || !message.type) {
|
|
188
|
+
// For backward compatibility, treat messages without a type as data messages
|
|
189
|
+
const data = message.data ?? message;
|
|
190
|
+
dataReceived(data as QueryResult<TDataType>);
|
|
191
|
+
}
|
|
192
|
+
} catch (error) {
|
|
193
|
+
console.error('Error parsing WebSocket message:', error);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
private handlePong(message: WebSocketMessage) {
|
|
198
|
+
if (message.timestamp && this._lastPingSentTime) {
|
|
199
|
+
const latency = Date.now() - message.timestamp;
|
|
200
|
+
this._lastPongLatency = latency;
|
|
201
|
+
this._latencySamples.push(latency);
|
|
202
|
+
|
|
203
|
+
// Keep only the last 100 samples for average calculation
|
|
204
|
+
if (this._latencySamples.length > 100) {
|
|
205
|
+
this._latencySamples.shift();
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
118
209
|
}
|
package/queries/QueryFor.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { IQueryFor } from './IQueryFor';
|
|
5
5
|
import { QueryResult } from "./QueryResult";
|
|
6
|
+
import { QueryValidator } from './QueryValidator';
|
|
6
7
|
import { ValidateRequestArguments } from './ValidateRequestArguments';
|
|
7
8
|
import { Constructor } from '@cratis/fundamentals';
|
|
8
9
|
import { Paging } from './Paging';
|
|
@@ -25,6 +26,9 @@ export abstract class QueryFor<TDataType, TParameters = object> implements IQuer
|
|
|
25
26
|
private _origin: string;
|
|
26
27
|
private _httpHeadersCallback: GetHttpHeaders;
|
|
27
28
|
abstract readonly route: string;
|
|
29
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
30
|
+
readonly validation?: QueryValidator<any>;
|
|
31
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
28
32
|
abstract readonly parameterDescriptors: ParameterDescriptor[];
|
|
29
33
|
abstract get requiredRequestParameters(): string[];
|
|
30
34
|
abstract defaultValue: TDataType;
|
|
@@ -73,6 +77,31 @@ export abstract class QueryFor<TDataType, TParameters = object> implements IQuer
|
|
|
73
77
|
|
|
74
78
|
args = args || this.parameters;
|
|
75
79
|
|
|
80
|
+
const clientValidationErrors = this.validation?.validate(args as object || {}) || [];
|
|
81
|
+
if (clientValidationErrors.length > 0) {
|
|
82
|
+
return new QueryResult({
|
|
83
|
+
data: this.defaultValue as object,
|
|
84
|
+
isSuccess: false,
|
|
85
|
+
isAuthorized: true,
|
|
86
|
+
isValid: false,
|
|
87
|
+
hasExceptions: false,
|
|
88
|
+
validationResults: clientValidationErrors.map(_ => ({
|
|
89
|
+
severity: _.severity,
|
|
90
|
+
message: _.message,
|
|
91
|
+
members: _.members,
|
|
92
|
+
state: _.state
|
|
93
|
+
})),
|
|
94
|
+
exceptionMessages: [],
|
|
95
|
+
exceptionStackTrace: '',
|
|
96
|
+
paging: {
|
|
97
|
+
totalItems: 0,
|
|
98
|
+
totalPages: 0,
|
|
99
|
+
page: 0,
|
|
100
|
+
size: 0
|
|
101
|
+
}
|
|
102
|
+
}, this.modelType, this.enumerable) as QueryResult<TDataType>;
|
|
103
|
+
}
|
|
104
|
+
|
|
76
105
|
if (!ValidateRequestArguments(this.constructor.name, this.requiredRequestParameters, args as object)) {
|
|
77
106
|
return new Promise<QueryResult<TDataType>>((resolve) => {
|
|
78
107
|
resolve(noSuccess);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { Validator } from '../validation/Validator';
|
|
5
|
+
import { ValidationResult } from '../validation/ValidationResult';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Represents the query validator
|
|
9
|
+
*/
|
|
10
|
+
export abstract class QueryValidator<T = object> extends Validator<T> {
|
|
11
|
+
/**
|
|
12
|
+
* Validate the query parameters.
|
|
13
|
+
* @param query The query to validate.
|
|
14
|
+
* @returns An array of validation results, empty if valid.
|
|
15
|
+
*/
|
|
16
|
+
validate(query: T): ValidationResult[] {
|
|
17
|
+
return super.validate(query);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents the type of WebSocket message.
|
|
6
|
+
*/
|
|
7
|
+
export enum WebSocketMessageType {
|
|
8
|
+
/**
|
|
9
|
+
* A data message containing query results.
|
|
10
|
+
*/
|
|
11
|
+
Data = 'Data',
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A ping message sent from client to server.
|
|
15
|
+
*/
|
|
16
|
+
Ping = 'Ping',
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A pong message sent from server to client in response to a ping.
|
|
20
|
+
*/
|
|
21
|
+
Pong = 'Pong'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Represents a WebSocket message envelope.
|
|
26
|
+
*/
|
|
27
|
+
export type WebSocketMessage = {
|
|
28
|
+
/**
|
|
29
|
+
* The type of message.
|
|
30
|
+
*/
|
|
31
|
+
type: WebSocketMessageType;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The timestamp when the message was sent (for ping/pong latency tracking).
|
|
35
|
+
*/
|
|
36
|
+
timestamp?: number;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The payload data (for data messages).
|
|
40
|
+
*/
|
|
41
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
42
|
+
data?: any;
|
|
43
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
44
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { ObservableQueryConnection } from '../../ObservableQueryConnection';
|
|
5
|
+
import * as sinon from 'sinon';
|
|
6
|
+
|
|
7
|
+
export class an_observable_query_connection {
|
|
8
|
+
connection: ObservableQueryConnection<string>;
|
|
9
|
+
url: URL;
|
|
10
|
+
microservice: string;
|
|
11
|
+
mockWebSocket: sinon.SinonStubbedInstance<WebSocket>;
|
|
12
|
+
|
|
13
|
+
constructor() {
|
|
14
|
+
this.url = new URL('https://example.com/api/test');
|
|
15
|
+
this.microservice = 'test-microservice';
|
|
16
|
+
|
|
17
|
+
// Stub the WebSocket constructor
|
|
18
|
+
this.mockWebSocket = sinon.createStubInstance(WebSocket);
|
|
19
|
+
Object.defineProperty(this.mockWebSocket, 'readyState', {
|
|
20
|
+
value: WebSocket.OPEN,
|
|
21
|
+
writable: false
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// Create connection with a short ping interval for testing (100ms)
|
|
25
|
+
this.connection = new ObservableQueryConnection<string>(this.url, this.microservice, 100);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { an_observable_query_connection } from './given/an_observable_query_connection';
|
|
5
|
+
import { given } from '../../given';
|
|
6
|
+
|
|
7
|
+
describe('when constructing', given(an_observable_query_connection, context => {
|
|
8
|
+
it('should have zero last ping latency', () => {
|
|
9
|
+
context.connection.lastPingLatency.should.equal(0);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it('should have zero average latency', () => {
|
|
13
|
+
context.connection.averageLatency.should.equal(0);
|
|
14
|
+
});
|
|
15
|
+
}));
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import { an_observable_query_for } from '../given/an_observable_query_for';
|
|
5
5
|
import { given } from '../../../given';
|
|
6
6
|
import * as sinon from 'sinon';
|
|
7
|
+
import { createFetchHelper } from '../../../helpers/fetchHelper';
|
|
7
8
|
import { QueryResult } from '../../QueryResult';
|
|
8
9
|
|
|
9
10
|
describe('when performing with enumerable query', given(an_observable_query_for, context => {
|
|
10
11
|
let result: QueryResult<string[]>;
|
|
11
12
|
let fetchStub: sinon.SinonStub;
|
|
13
|
+
let fetchHelper: { stubFetch: () => sinon.SinonStub; restore: () => void };
|
|
12
14
|
const mockResponse = {
|
|
13
15
|
data: ['item1', 'item2', 'item3'],
|
|
14
16
|
isSuccess: true,
|
|
@@ -27,7 +29,8 @@ describe('when performing with enumerable query', given(an_observable_query_for,
|
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
beforeEach(async () => {
|
|
30
|
-
|
|
32
|
+
fetchHelper = createFetchHelper();
|
|
33
|
+
fetchStub = fetchHelper.stubFetch();
|
|
31
34
|
fetchStub.resolves({
|
|
32
35
|
json: sinon.stub().resolves(mockResponse),
|
|
33
36
|
ok: true,
|
|
@@ -41,7 +44,7 @@ describe('when performing with enumerable query', given(an_observable_query_for,
|
|
|
41
44
|
});
|
|
42
45
|
|
|
43
46
|
afterEach(() => {
|
|
44
|
-
|
|
47
|
+
fetchHelper.restore();
|
|
45
48
|
});
|
|
46
49
|
|
|
47
50
|
it('should return successful result', () => {
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
import { an_observable_query_for } from '../given/an_observable_query_for';
|
|
5
5
|
import { given } from '../../../given';
|
|
6
6
|
import * as sinon from 'sinon';
|
|
7
|
+
import { createFetchHelper } from '../../../helpers/fetchHelper';
|
|
7
8
|
import { Paging } from '../../Paging';
|
|
8
9
|
|
|
9
10
|
describe('when performing with paging', given(an_observable_query_for, context => {
|
|
10
11
|
let fetchStub: sinon.SinonStub;
|
|
12
|
+
let fetchHelper: { stubFetch: () => sinon.SinonStub; restore: () => void };
|
|
11
13
|
const mockResponse = {
|
|
12
14
|
data: 'test-result',
|
|
13
15
|
isSuccess: true,
|
|
@@ -26,11 +28,8 @@ describe('when performing with paging', given(an_observable_query_for, context =
|
|
|
26
28
|
};
|
|
27
29
|
|
|
28
30
|
beforeEach(async () => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
(globalThis.fetch as sinon.SinonStub).restore();
|
|
32
|
-
}
|
|
33
|
-
fetchStub = sinon.stub(global, 'fetch');
|
|
31
|
+
fetchHelper = createFetchHelper();
|
|
32
|
+
fetchStub = fetchHelper.stubFetch();
|
|
34
33
|
fetchStub.resolves({
|
|
35
34
|
json: sinon.stub().resolves(mockResponse),
|
|
36
35
|
ok: true,
|
|
@@ -44,7 +43,7 @@ describe('when performing with paging', given(an_observable_query_for, context =
|
|
|
44
43
|
});
|
|
45
44
|
|
|
46
45
|
afterEach(() => {
|
|
47
|
-
|
|
46
|
+
fetchHelper.restore();
|
|
48
47
|
});
|
|
49
48
|
|
|
50
49
|
it('should include page parameter in URL', () => {
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import { an_observable_query_for } from '../given/an_observable_query_for';
|
|
5
5
|
import { given } from '../../../given';
|
|
6
6
|
import * as sinon from 'sinon';
|
|
7
|
+
import { createFetchHelper } from '../../../helpers/fetchHelper';
|
|
7
8
|
import { QueryResult } from '../../QueryResult';
|
|
8
9
|
|
|
9
10
|
describe('with parameter descriptor values', given(an_observable_query_for, context => {
|
|
10
11
|
let result: QueryResult<string>;
|
|
11
12
|
let fetchStub: sinon.SinonStub;
|
|
13
|
+
let fetchHelper: { stubFetch: () => sinon.SinonStub; restore: () => void };
|
|
12
14
|
const mockResponse = {
|
|
13
15
|
data: 'test-result',
|
|
14
16
|
isSuccess: true,
|
|
@@ -27,7 +29,8 @@ describe('with parameter descriptor values', given(an_observable_query_for, cont
|
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
beforeEach(async () => {
|
|
30
|
-
|
|
32
|
+
fetchHelper = createFetchHelper();
|
|
33
|
+
fetchStub = fetchHelper.stubFetch();
|
|
31
34
|
fetchStub.resolves({
|
|
32
35
|
json: sinon.stub().resolves(mockResponse),
|
|
33
36
|
ok: true,
|
|
@@ -45,7 +48,7 @@ describe('with parameter descriptor values', given(an_observable_query_for, cont
|
|
|
45
48
|
});
|
|
46
49
|
|
|
47
50
|
afterEach(() => {
|
|
48
|
-
|
|
51
|
+
fetchHelper.restore();
|
|
49
52
|
});
|
|
50
53
|
|
|
51
54
|
it('should return successful result', () => {
|
package/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.ts
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import { an_observable_query_for } from '../given/an_observable_query_for';
|
|
5
5
|
import { given } from '../../../given';
|
|
6
6
|
import * as sinon from 'sinon';
|
|
7
|
+
import { createFetchHelper } from '../../../helpers/fetchHelper';
|
|
7
8
|
import { QueryResult } from '../../QueryResult';
|
|
8
9
|
|
|
9
10
|
describe('with partial parameter descriptor values', given(an_observable_query_for, context => {
|
|
10
11
|
let result: QueryResult<string>;
|
|
11
12
|
let fetchStub: sinon.SinonStub;
|
|
13
|
+
let fetchHelper: { stubFetch: () => sinon.SinonStub; restore: () => void };
|
|
12
14
|
const mockResponse = {
|
|
13
15
|
data: 'test-result',
|
|
14
16
|
isSuccess: true,
|
|
@@ -27,7 +29,8 @@ describe('with partial parameter descriptor values', given(an_observable_query_f
|
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
beforeEach(async () => {
|
|
30
|
-
|
|
32
|
+
fetchHelper = createFetchHelper();
|
|
33
|
+
fetchStub = fetchHelper.stubFetch();
|
|
31
34
|
fetchStub.resolves({
|
|
32
35
|
json: sinon.stub().resolves(mockResponse),
|
|
33
36
|
ok: true,
|
|
@@ -45,7 +48,7 @@ describe('with partial parameter descriptor values', given(an_observable_query_f
|
|
|
45
48
|
});
|
|
46
49
|
|
|
47
50
|
afterEach(() => {
|
|
48
|
-
|
|
51
|
+
fetchHelper.restore();
|
|
49
52
|
});
|
|
50
53
|
|
|
51
54
|
it('should return successful result', () => {
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
import { an_observable_query_for } from '../given/an_observable_query_for';
|
|
5
5
|
import { given } from '../../../given';
|
|
6
6
|
import * as sinon from 'sinon';
|
|
7
|
+
import { createFetchHelper } from '../../../helpers/fetchHelper';
|
|
7
8
|
import { QueryResult } from '../../QueryResult';
|
|
8
9
|
import { expect } from 'chai';
|
|
9
10
|
|
|
10
11
|
describe('when performing with route parameters and unused parameters', given(an_observable_query_for, context => {
|
|
11
12
|
let result: QueryResult<string>;
|
|
12
13
|
let fetchStub: sinon.SinonStub;
|
|
14
|
+
let fetchHelper: { stubFetch: () => sinon.SinonStub; restore: () => void };
|
|
13
15
|
const mockResponse = {
|
|
14
16
|
data: 'test-result',
|
|
15
17
|
isSuccess: true,
|
|
@@ -28,7 +30,8 @@ describe('when performing with route parameters and unused parameters', given(an
|
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
beforeEach(async () => {
|
|
31
|
-
|
|
33
|
+
fetchHelper = createFetchHelper();
|
|
34
|
+
fetchStub = fetchHelper.stubFetch();
|
|
32
35
|
fetchStub.resolves({
|
|
33
36
|
json: sinon.stub().resolves(mockResponse),
|
|
34
37
|
ok: true,
|
|
@@ -43,7 +46,7 @@ describe('when performing with route parameters and unused parameters', given(an
|
|
|
43
46
|
});
|
|
44
47
|
|
|
45
48
|
afterEach(() => {
|
|
46
|
-
|
|
49
|
+
fetchHelper.restore();
|
|
47
50
|
});
|
|
48
51
|
|
|
49
52
|
it('should return successful result', () => {
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
import { an_observable_query_for } from '../given/an_observable_query_for';
|
|
5
5
|
import { given } from '../../../given';
|
|
6
6
|
import * as sinon from 'sinon';
|
|
7
|
+
import { createFetchHelper } from '../../../helpers/fetchHelper';
|
|
7
8
|
import { Sorting } from '../../Sorting';
|
|
8
9
|
import { SortDirection } from '../../SortDirection';
|
|
9
10
|
|
|
10
11
|
describe('when performing with sorting', given(an_observable_query_for, context => {
|
|
11
12
|
let fetchStub: sinon.SinonStub;
|
|
13
|
+
let fetchHelper: { stubFetch: () => sinon.SinonStub; restore: () => void };
|
|
12
14
|
const mockResponse = {
|
|
13
15
|
data: 'test-result',
|
|
14
16
|
isSuccess: true,
|
|
@@ -27,7 +29,8 @@ describe('when performing with sorting', given(an_observable_query_for, context
|
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
beforeEach(async () => {
|
|
30
|
-
|
|
32
|
+
fetchHelper = createFetchHelper();
|
|
33
|
+
fetchStub = fetchHelper.stubFetch();
|
|
31
34
|
fetchStub.resolves({
|
|
32
35
|
json: sinon.stub().resolves(mockResponse),
|
|
33
36
|
ok: true,
|
|
@@ -41,7 +44,7 @@ describe('when performing with sorting', given(an_observable_query_for, context
|
|
|
41
44
|
});
|
|
42
45
|
|
|
43
46
|
afterEach(() => {
|
|
44
|
-
|
|
47
|
+
fetchHelper.restore();
|
|
45
48
|
});
|
|
46
49
|
|
|
47
50
|
it('should include sortBy parameter in URL', () => {
|