@cratis/arc 18.5.0 → 18.7.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_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_route_parameters.ts +1 -0
- 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/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/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/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 +1 -0
- package/dist/cjs/queries/index.d.ts.map +1 -1
- package/dist/cjs/queries/index.js +2 -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/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/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/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 +1 -0
- package/dist/esm/queries/index.d.ts.map +1 -1
- package/dist/esm/queries/index.js +1 -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/package.json +1 -1
- package/queries/QueryFor.ts +29 -0
- package/queries/QueryValidator.ts +19 -0
- package/queries/for_ObservableQueryFor/when_performing/with_paging.ts +0 -4
- package/queries/for_QueryFor/given/a_query_with_validator.ts +54 -0
- package/queries/for_QueryFor/when_performing/with_abort_controller.ts +1 -1
- 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_query_without_required_parameters.ts +0 -4
- package/queries/for_QueryFor/when_performing/with_sorting.ts +1 -1
- 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/index.ts +1 -0
- 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,34 @@
|
|
|
1
|
+
import { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import { IdentityProvider } from '../../IdentityProvider';
|
|
3
|
+
import { an_identity_provider } from '../given/an_identity_provider';
|
|
4
|
+
import { given } from '../../../given';
|
|
5
|
+
class TestDetails {
|
|
6
|
+
userId = Guid.empty;
|
|
7
|
+
role = '';
|
|
8
|
+
}
|
|
9
|
+
describe('when getting current with type safe details', given(an_identity_provider, () => {
|
|
10
|
+
let result;
|
|
11
|
+
beforeEach(async () => {
|
|
12
|
+
const testGuid = Guid.create();
|
|
13
|
+
const identityData = {
|
|
14
|
+
id: 'test-user-id',
|
|
15
|
+
name: 'Test User',
|
|
16
|
+
details: {
|
|
17
|
+
userId: testGuid.toString(),
|
|
18
|
+
role: 'admin'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const encodedData = btoa(JSON.stringify(identityData));
|
|
22
|
+
global.document.cookie = `.cratis-identity=${encodedData}`;
|
|
23
|
+
const identity = await IdentityProvider.getCurrent(TestDetails);
|
|
24
|
+
result = {
|
|
25
|
+
id: identity.id,
|
|
26
|
+
name: identity.name,
|
|
27
|
+
details: identity.details
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
it('should deserialize details with proper types', () => {
|
|
31
|
+
result.details.userId.should.be.instanceOf(Guid);
|
|
32
|
+
});
|
|
33
|
+
}));
|
|
34
|
+
//# sourceMappingURL=with_type_safe_details.js.map
|
package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with_type_safe_details.js","sourceRoot":"","sources":["../../../../../identity/for_IdentityProvider/when_getting_current/with_type_safe_details.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,MAAM,WAAW;IACb,MAAM,GAAS,IAAI,CAAC,KAAK,CAAC;IAC1B,IAAI,GAAW,EAAE,CAAC;CACrB;AAED,QAAQ,CAAC,6CAA6C,EAAE,KAAK,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACrF,IAAI,MAA0D,CAAC;IAE/D,UAAU,CAAC,KAAK,IAAI,EAAE;QAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAG/B,MAAM,YAAY,GAAG;YACjB,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACL,MAAM,EAAE,QAAQ,CAAC,QAAQ,EAAE;gBAC3B,IAAI,EAAE,OAAO;aAChB;SACJ,CAAC;QACF,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;QACtD,MAA4C,CAAC,QAAS,CAAC,MAAM,GAAG,oBAAoB,WAAW,EAAE,CAAC;QAEnG,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAChE,MAAM,GAAG;YACL,EAAE,EAAE,QAAQ,CAAC,EAAE;YACf,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,OAAO,EAAE,QAAQ,CAAC,OAAO;SAC5B,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACpD,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC,CAAC"}
|
package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with_api_base_path_set.d.ts","sourceRoot":"","sources":["../../../../../identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IdentityProvider } from '../../IdentityProvider';
|
|
2
|
+
import { an_identity_provider } from '../given/an_identity_provider';
|
|
3
|
+
import { given } from '../../../given';
|
|
4
|
+
describe('when refreshing with api base path set', given(an_identity_provider, context => {
|
|
5
|
+
beforeEach(async () => {
|
|
6
|
+
context.fetchStub.resolves({
|
|
7
|
+
ok: true,
|
|
8
|
+
json: async () => ({
|
|
9
|
+
id: 'test-user-id',
|
|
10
|
+
name: 'Test User',
|
|
11
|
+
details: { role: 'admin' }
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
IdentityProvider.setApiBasePath('/custom/api');
|
|
15
|
+
await IdentityProvider.refresh();
|
|
16
|
+
});
|
|
17
|
+
afterEach(() => {
|
|
18
|
+
IdentityProvider.setApiBasePath('');
|
|
19
|
+
});
|
|
20
|
+
it('should call fetch with api base path prefixed', () => {
|
|
21
|
+
context.fetchStub.should.have.been.calledWith('/custom/api/.cratis/me');
|
|
22
|
+
});
|
|
23
|
+
}));
|
|
24
|
+
//# sourceMappingURL=with_api_base_path_set.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with_api_base_path_set.js","sourceRoot":"","sources":["../../../../../identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,QAAQ,CAAC,wCAAwC,EAAE,KAAK,CAAC,oBAAoB,EAAE,OAAO,CAAC,EAAE;IACrF,UAAU,CAAC,KAAK,IAAI,EAAE;QAClB,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YACvB,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;gBACf,EAAE,EAAE,cAAc;gBAClB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;aAC7B,CAAC;SACO,CAAC,CAAC;QAEf,gBAAgB,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QAC/C,MAAM,gBAAgB,CAAC,OAAO,EAAE,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACX,gBAAgB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACrD,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;IAC5E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC,CAAC"}
|
package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with_globals_api_base_path.d.ts","sourceRoot":"","sources":["../../../../../identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IdentityProvider } from '../../IdentityProvider';
|
|
2
|
+
import { Globals } from '../../../Globals';
|
|
3
|
+
import { an_identity_provider } from '../given/an_identity_provider';
|
|
4
|
+
import { given } from '../../../given';
|
|
5
|
+
describe('when refreshing with globals api base path', given(an_identity_provider, context => {
|
|
6
|
+
let originalGlobalsApiBasePath;
|
|
7
|
+
beforeEach(async () => {
|
|
8
|
+
context.fetchStub.resolves({
|
|
9
|
+
ok: true,
|
|
10
|
+
json: async () => ({
|
|
11
|
+
id: 'test-user-id',
|
|
12
|
+
name: 'Test User',
|
|
13
|
+
details: { role: 'admin' }
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
originalGlobalsApiBasePath = Globals.apiBasePath;
|
|
17
|
+
Globals.apiBasePath = '/global/api';
|
|
18
|
+
IdentityProvider.setApiBasePath('');
|
|
19
|
+
await IdentityProvider.refresh();
|
|
20
|
+
});
|
|
21
|
+
afterEach(() => {
|
|
22
|
+
Globals.apiBasePath = originalGlobalsApiBasePath;
|
|
23
|
+
IdentityProvider.setApiBasePath('');
|
|
24
|
+
});
|
|
25
|
+
it('should call fetch with globals api base path prefixed', () => {
|
|
26
|
+
context.fetchStub.should.have.been.calledWith('/global/api/.cratis/me');
|
|
27
|
+
});
|
|
28
|
+
}));
|
|
29
|
+
//# sourceMappingURL=with_globals_api_base_path.js.map
|
package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with_globals_api_base_path.js","sourceRoot":"","sources":["../../../../../identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,QAAQ,CAAC,4CAA4C,EAAE,KAAK,CAAC,oBAAoB,EAAE,OAAO,CAAC,EAAE;IACzF,IAAI,0BAAkC,CAAC;IAEvC,UAAU,CAAC,KAAK,IAAI,EAAE;QAClB,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YACvB,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;gBACf,EAAE,EAAE,cAAc;gBAClB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;aAC7B,CAAC;SACO,CAAC,CAAC;QAEf,0BAA0B,GAAG,OAAO,CAAC,WAAW,CAAC;QACjD,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC;QACpC,gBAAgB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QACpC,MAAM,gBAAgB,CAAC,OAAO,EAAE,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACX,OAAO,CAAC,WAAW,GAAG,0BAA0B,CAAC;QACjD,gBAAgB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC7D,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;IAC5E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC,CAAC"}
|
package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with_type_safe_details.d.ts","sourceRoot":"","sources":["../../../../../identity/for_IdentityProvider/when_refreshing/with_type_safe_details.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import { IdentityProvider } from '../../IdentityProvider';
|
|
3
|
+
import { an_identity_provider } from '../given/an_identity_provider';
|
|
4
|
+
import { given } from '../../../given';
|
|
5
|
+
class TestDetails {
|
|
6
|
+
userId = Guid.empty;
|
|
7
|
+
role = '';
|
|
8
|
+
}
|
|
9
|
+
describe('when refreshing with type safe details', given(an_identity_provider, context => {
|
|
10
|
+
let result;
|
|
11
|
+
beforeEach(async () => {
|
|
12
|
+
const testGuid = Guid.create();
|
|
13
|
+
context.fetchStub.resolves({
|
|
14
|
+
ok: true,
|
|
15
|
+
json: async () => ({
|
|
16
|
+
id: 'test-user-id',
|
|
17
|
+
name: 'Test User',
|
|
18
|
+
details: {
|
|
19
|
+
userId: testGuid.toString(),
|
|
20
|
+
role: 'admin'
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
const identity = await IdentityProvider.refresh(TestDetails);
|
|
25
|
+
result = {
|
|
26
|
+
id: identity.id,
|
|
27
|
+
name: identity.name,
|
|
28
|
+
details: identity.details
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
it('should deserialize details with proper types', () => {
|
|
32
|
+
result.details.userId.should.be.instanceOf(Guid);
|
|
33
|
+
});
|
|
34
|
+
}));
|
|
35
|
+
//# sourceMappingURL=with_type_safe_details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with_type_safe_details.js","sourceRoot":"","sources":["../../../../../identity/for_IdentityProvider/when_refreshing/with_type_safe_details.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,MAAM,WAAW;IACb,MAAM,GAAS,IAAI,CAAC,KAAK,CAAC;IAC1B,IAAI,GAAW,EAAE,CAAC;CACrB;AAED,QAAQ,CAAC,wCAAwC,EAAE,KAAK,CAAC,oBAAoB,EAAE,OAAO,CAAC,EAAE;IACrF,IAAI,MAA0D,CAAC;IAE/D,UAAU,CAAC,KAAK,IAAI,EAAE;QAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAC/B,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YACvB,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;gBACf,EAAE,EAAE,cAAc;gBAClB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE;oBACL,MAAM,EAAE,QAAQ,CAAC,QAAQ,EAAE;oBAC3B,IAAI,EAAE,OAAO;iBAChB;aACJ,CAAC;SACO,CAAC,CAAC;QAEf,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC7D,MAAM,GAAG;YACL,EAAE,EAAE,QAAQ,CAAC,EAAE;YACf,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,OAAO,EAAE,QAAQ,CAAC,OAAO;SAC5B,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACpD,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"without_api_base_path.d.ts","sourceRoot":"","sources":["../../../../../identity/for_IdentityProvider/when_refreshing/without_api_base_path.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IdentityProvider } from '../../IdentityProvider';
|
|
2
|
+
import { Globals } from '../../../Globals';
|
|
3
|
+
import { an_identity_provider } from '../given/an_identity_provider';
|
|
4
|
+
import { given } from '../../../given';
|
|
5
|
+
describe('when refreshing without api base path', given(an_identity_provider, context => {
|
|
6
|
+
let originalGlobalsApiBasePath;
|
|
7
|
+
beforeEach(async () => {
|
|
8
|
+
context.fetchStub.resolves({
|
|
9
|
+
ok: true,
|
|
10
|
+
json: async () => ({
|
|
11
|
+
id: 'test-user-id',
|
|
12
|
+
name: 'Test User',
|
|
13
|
+
details: { role: 'admin' }
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
originalGlobalsApiBasePath = Globals.apiBasePath;
|
|
17
|
+
Globals.apiBasePath = '';
|
|
18
|
+
IdentityProvider.setApiBasePath('');
|
|
19
|
+
await IdentityProvider.refresh();
|
|
20
|
+
});
|
|
21
|
+
afterEach(() => {
|
|
22
|
+
Globals.apiBasePath = originalGlobalsApiBasePath;
|
|
23
|
+
});
|
|
24
|
+
it('should call fetch with default path', () => {
|
|
25
|
+
context.fetchStub.should.have.been.calledWith('/.cratis/me');
|
|
26
|
+
});
|
|
27
|
+
}));
|
|
28
|
+
//# sourceMappingURL=without_api_base_path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"without_api_base_path.js","sourceRoot":"","sources":["../../../../../identity/for_IdentityProvider/when_refreshing/without_api_base_path.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,QAAQ,CAAC,uCAAuC,EAAE,KAAK,CAAC,oBAAoB,EAAE,OAAO,CAAC,EAAE;IACpF,IAAI,0BAAkC,CAAC;IAEvC,UAAU,CAAC,KAAK,IAAI,EAAE;QAClB,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YACvB,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;gBACf,EAAE,EAAE,cAAc;gBAClB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;aAC7B,CAAC;SACO,CAAC,CAAC;QAEf,0BAA0B,GAAG,OAAO,CAAC,WAAW,CAAC;QACjD,OAAO,CAAC,WAAW,GAAG,EAAE,CAAC;QACzB,gBAAgB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QACpC,MAAM,gBAAgB,CAAC,OAAO,EAAE,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACX,OAAO,CAAC,WAAW,GAAG,0BAA0B,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC3C,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"when_setting_api_base_path.d.ts","sourceRoot":"","sources":["../../../../identity/for_IdentityProvider/when_setting_api_base_path.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IdentityProvider } from '../IdentityProvider';
|
|
2
|
+
import { an_identity_provider } from './given/an_identity_provider';
|
|
3
|
+
import { given } from '../../given';
|
|
4
|
+
describe('when setting api base path', given(an_identity_provider, () => {
|
|
5
|
+
let apiBasePath;
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
apiBasePath = '/custom/api';
|
|
8
|
+
IdentityProvider.setApiBasePath(apiBasePath);
|
|
9
|
+
});
|
|
10
|
+
afterEach(() => {
|
|
11
|
+
IdentityProvider.setApiBasePath('');
|
|
12
|
+
});
|
|
13
|
+
it('should set the api base path', () => IdentityProvider.apiBasePath.should.equal(apiBasePath));
|
|
14
|
+
}));
|
|
15
|
+
//# sourceMappingURL=when_setting_api_base_path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"when_setting_api_base_path.js","sourceRoot":"","sources":["../../../../identity/for_IdentityProvider/when_setting_api_base_path.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,QAAQ,CAAC,4BAA4B,EAAE,KAAK,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACpE,IAAI,WAAmB,CAAC;IAExB,UAAU,CAAC,GAAG,EAAE;QACZ,WAAW,GAAG,aAAa,CAAC;QAC5B,gBAAgB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACX,gBAAgB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACrG,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"when_setting_origin.d.ts","sourceRoot":"","sources":["../../../../identity/for_IdentityProvider/when_setting_origin.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IdentityProvider } from '../IdentityProvider';
|
|
2
|
+
import { an_identity_provider } from './given/an_identity_provider';
|
|
3
|
+
import { given } from '../../given';
|
|
4
|
+
describe('when setting origin', given(an_identity_provider, () => {
|
|
5
|
+
let origin;
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
origin = 'https://example.com';
|
|
8
|
+
IdentityProvider.setOrigin(origin);
|
|
9
|
+
});
|
|
10
|
+
afterEach(() => {
|
|
11
|
+
IdentityProvider.setOrigin('');
|
|
12
|
+
});
|
|
13
|
+
it('should set the origin', () => IdentityProvider.origin.should.equal(origin));
|
|
14
|
+
}));
|
|
15
|
+
//# sourceMappingURL=when_setting_origin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"when_setting_origin.js","sourceRoot":"","sources":["../../../../identity/for_IdentityProvider/when_setting_origin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,QAAQ,CAAC,qBAAqB,EAAE,KAAK,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAC7D,IAAI,MAAc,CAAC;IAEnB,UAAU,CAAC,GAAG,EAAE;QACZ,MAAM,GAAG,qBAAqB,CAAC;QAC/B,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACX,gBAAgB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AACpF,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IQueryFor } from './IQueryFor';
|
|
2
2
|
import { QueryResult } from "./QueryResult";
|
|
3
|
+
import { QueryValidator } from './QueryValidator';
|
|
3
4
|
import { Constructor } from '@cratis/fundamentals';
|
|
4
5
|
import { Paging } from './Paging';
|
|
5
6
|
import { Sorting } from './Sorting';
|
|
@@ -13,6 +14,7 @@ export declare abstract class QueryFor<TDataType, TParameters = object> implemen
|
|
|
13
14
|
private _origin;
|
|
14
15
|
private _httpHeadersCallback;
|
|
15
16
|
abstract readonly route: string;
|
|
17
|
+
readonly validation?: QueryValidator<any>;
|
|
16
18
|
abstract readonly parameterDescriptors: ParameterDescriptor[];
|
|
17
19
|
abstract get requiredRequestParameters(): string[];
|
|
18
20
|
abstract defaultValue: TDataType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryFor.d.ts","sourceRoot":"","sources":["../../../queries/QueryFor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"QueryFor.d.ts","sourceRoot":"","sources":["../../../queries/QueryFor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAOxE,8BAAsB,QAAQ,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,CAAE,YAAW,SAAS,CAAC,SAAS,EAAE,WAAW,CAAC;IAsB5F,QAAQ,CAAC,SAAS,EAAE,WAAW;IAAE,QAAQ,CAAC,UAAU,EAAE,OAAO;IArBzE,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,oBAAoB,CAAiB;IAC7C,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEhC,QAAQ,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAE1C,QAAQ,CAAC,QAAQ,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;IAC9D,QAAQ,KAAK,yBAAyB,IAAI,MAAM,EAAE,CAAC;IACnD,QAAQ,CAAC,YAAY,EAAE,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,WAAW,GAAG,SAAS,CAAC;gBAOf,SAAS,EAAE,WAAW,EAAW,UAAU,EAAE,OAAO;IAUzE,eAAe,CAAC,YAAY,EAAE,MAAM;IAKpC,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAKzC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAK/B,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAKhD,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;CA4FrE"}
|
|
@@ -15,6 +15,7 @@ class QueryFor {
|
|
|
15
15
|
_apiBasePath;
|
|
16
16
|
_origin;
|
|
17
17
|
_httpHeadersCallback;
|
|
18
|
+
validation;
|
|
18
19
|
abortController;
|
|
19
20
|
sorting;
|
|
20
21
|
paging;
|
|
@@ -44,6 +45,30 @@ class QueryFor {
|
|
|
44
45
|
async perform(args) {
|
|
45
46
|
const noSuccess = { ...QueryResult.noSuccess, ...{ data: this.defaultValue } };
|
|
46
47
|
args = args || this.parameters;
|
|
48
|
+
const clientValidationErrors = this.validation?.validate(args || {}) || [];
|
|
49
|
+
if (clientValidationErrors.length > 0) {
|
|
50
|
+
return new QueryResult({
|
|
51
|
+
data: this.defaultValue,
|
|
52
|
+
isSuccess: false,
|
|
53
|
+
isAuthorized: true,
|
|
54
|
+
isValid: false,
|
|
55
|
+
hasExceptions: false,
|
|
56
|
+
validationResults: clientValidationErrors.map(_ => ({
|
|
57
|
+
severity: _.severity,
|
|
58
|
+
message: _.message,
|
|
59
|
+
members: _.members,
|
|
60
|
+
state: _.state
|
|
61
|
+
})),
|
|
62
|
+
exceptionMessages: [],
|
|
63
|
+
exceptionStackTrace: '',
|
|
64
|
+
paging: {
|
|
65
|
+
totalItems: 0,
|
|
66
|
+
totalPages: 0,
|
|
67
|
+
page: 0,
|
|
68
|
+
size: 0
|
|
69
|
+
}
|
|
70
|
+
}, this.modelType, this.enumerable);
|
|
71
|
+
}
|
|
47
72
|
if (!ValidateRequestArguments(this.constructor.name, this.requiredRequestParameters, args)) {
|
|
48
73
|
return new Promise((resolve) => {
|
|
49
74
|
resolve(noSuccess);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryFor.js","sources":["../../../queries/QueryFor.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { IQueryFor } from './IQueryFor';\nimport { QueryResult } from \"./QueryResult\";\nimport { ValidateRequestArguments } from './ValidateRequestArguments';\nimport { Constructor } from '@cratis/fundamentals';\nimport { Paging } from './Paging';\nimport { Globals } from '../Globals';\nimport { Sorting } from './Sorting';\nimport { SortDirection } from './SortDirection';\nimport { joinPaths } from '../joinPaths';\nimport { UrlHelpers } from '../UrlHelpers';\nimport { GetHttpHeaders } from '../GetHttpHeaders';\nimport { ParameterDescriptor } from '../reflection/ParameterDescriptor';\nimport { ParametersHelper } from '../reflection/ParametersHelper';\n\n/**\n * Represents an implementation of {@link IQueryFor}.\n * @template TDataType Type of data returned by the query.\n */\nexport abstract class QueryFor<TDataType, TParameters = object> implements IQueryFor<TDataType, TParameters> {\n private _microservice: string;\n private _apiBasePath: string;\n private _origin: string;\n private _httpHeadersCallback: GetHttpHeaders;\n abstract readonly route: string;\n abstract readonly parameterDescriptors: ParameterDescriptor[];\n abstract get requiredRequestParameters(): string[];\n abstract defaultValue: TDataType;\n abortController?: AbortController;\n sorting: Sorting;\n paging: Paging;\n parameters: TParameters | undefined;\n\n /**\n * Initializes a new instance of the {@link ObservableQueryFor<,>}} class.\n * @param modelType Type of model, if an enumerable, this is the instance type.\n * @param enumerable Whether or not it is an enumerable.\n */\n constructor(readonly modelType: Constructor, readonly enumerable: boolean) {\n this.sorting = Sorting.none;\n this.paging = Paging.noPaging;\n this._microservice = Globals.microservice ?? '';\n this._apiBasePath = Globals.apiBasePath ?? '';\n this._origin = Globals.origin ?? '';\n this._httpHeadersCallback = () => ({});\n }\n\n /** @inheritdoc */\n setMicroservice(microservice: string) {\n this._microservice = microservice;\n }\n\n /** @inheritdoc */\n setApiBasePath(apiBasePath: string): void {\n this._apiBasePath = apiBasePath;\n }\n\n /** @inheritdoc */\n setOrigin(origin: string): void {\n this._origin = origin;\n }\n\n /** @inheritdoc */\n setHttpHeadersCallback(callback: GetHttpHeaders): void {\n this._httpHeadersCallback = callback;\n }\n\n /** @inheritdoc */\n async perform(args?: TParameters): Promise<QueryResult<TDataType>> {\n const noSuccess = { ...QueryResult.noSuccess, ...{ data: this.defaultValue } } as QueryResult<TDataType>;\n\n args = args || this.parameters;\n\n if (!ValidateRequestArguments(this.constructor.name, this.requiredRequestParameters, args as object)) {\n return new Promise<QueryResult<TDataType>>((resolve) => {\n resolve(noSuccess);\n });\n }\n\n if (this.abortController) {\n this.abortController.abort();\n }\n\n this.abortController = new AbortController();\n\n const { route, unusedParameters } = UrlHelpers.replaceRouteParameters(this.route, args as object);\n let actualRoute = joinPaths(this._apiBasePath, route);\n \n const additionalParams: Record<string, string | number> = {};\n if (this.paging.hasPaging) {\n additionalParams.page = this.paging.page;\n additionalParams.pageSize = this.paging.pageSize;\n }\n\n if (this.sorting.hasSorting) {\n additionalParams.sortBy = this.sorting.field;\n additionalParams.sortDirection = (this.sorting.direction === SortDirection.descending) ? 'desc' : 'asc';\n }\n\n // Collect parameter values from parameterDescriptors that are set\n const parameterValues = ParametersHelper.collectParameterValues(this);\n\n const queryParams = UrlHelpers.buildQueryParams({ ...unusedParameters, ...parameterValues }, additionalParams);\n const queryString = queryParams.toString();\n if (queryString) {\n actualRoute += (actualRoute.includes('?') ? '&' : '?') + queryString;\n }\n \n const url = UrlHelpers.createUrlFrom(this._origin, this._apiBasePath, actualRoute);\n\n const headers = {\n ... this._httpHeadersCallback?.(), ...\n {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n }\n };\n\n if (this._microservice?.length > 0) {\n headers[Globals.microserviceHttpHeader] = this._microservice;\n }\n\n const response = await fetch(url, {\n method: 'GET',\n headers,\n signal: this.abortController.signal\n });\n\n try {\n const result = await response.json();\n return new QueryResult(result, this.modelType, this.enumerable);\n } catch {\n return noSuccess;\n }\n }\n}\n"],"names":[],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"QueryFor.js","sources":["../../../queries/QueryFor.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { IQueryFor } from './IQueryFor';\nimport { QueryResult } from \"./QueryResult\";\nimport { QueryValidator } from './QueryValidator';\nimport { ValidateRequestArguments } from './ValidateRequestArguments';\nimport { Constructor } from '@cratis/fundamentals';\nimport { Paging } from './Paging';\nimport { Globals } from '../Globals';\nimport { Sorting } from './Sorting';\nimport { SortDirection } from './SortDirection';\nimport { joinPaths } from '../joinPaths';\nimport { UrlHelpers } from '../UrlHelpers';\nimport { GetHttpHeaders } from '../GetHttpHeaders';\nimport { ParameterDescriptor } from '../reflection/ParameterDescriptor';\nimport { ParametersHelper } from '../reflection/ParametersHelper';\n\n/**\n * Represents an implementation of {@link IQueryFor}.\n * @template TDataType Type of data returned by the query.\n */\nexport abstract class QueryFor<TDataType, TParameters = object> implements IQueryFor<TDataType, TParameters> {\n private _microservice: string;\n private _apiBasePath: string;\n private _origin: string;\n private _httpHeadersCallback: GetHttpHeaders;\n abstract readonly route: string;\n /* eslint-disable @typescript-eslint/no-explicit-any */\n readonly validation?: QueryValidator<any>;\n /* eslint-enable @typescript-eslint/no-explicit-any */\n abstract readonly parameterDescriptors: ParameterDescriptor[];\n abstract get requiredRequestParameters(): string[];\n abstract defaultValue: TDataType;\n abortController?: AbortController;\n sorting: Sorting;\n paging: Paging;\n parameters: TParameters | undefined;\n\n /**\n * Initializes a new instance of the {@link ObservableQueryFor<,>}} class.\n * @param modelType Type of model, if an enumerable, this is the instance type.\n * @param enumerable Whether or not it is an enumerable.\n */\n constructor(readonly modelType: Constructor, readonly enumerable: boolean) {\n this.sorting = Sorting.none;\n this.paging = Paging.noPaging;\n this._microservice = Globals.microservice ?? '';\n this._apiBasePath = Globals.apiBasePath ?? '';\n this._origin = Globals.origin ?? '';\n this._httpHeadersCallback = () => ({});\n }\n\n /** @inheritdoc */\n setMicroservice(microservice: string) {\n this._microservice = microservice;\n }\n\n /** @inheritdoc */\n setApiBasePath(apiBasePath: string): void {\n this._apiBasePath = apiBasePath;\n }\n\n /** @inheritdoc */\n setOrigin(origin: string): void {\n this._origin = origin;\n }\n\n /** @inheritdoc */\n setHttpHeadersCallback(callback: GetHttpHeaders): void {\n this._httpHeadersCallback = callback;\n }\n\n /** @inheritdoc */\n async perform(args?: TParameters): Promise<QueryResult<TDataType>> {\n const noSuccess = { ...QueryResult.noSuccess, ...{ data: this.defaultValue } } as QueryResult<TDataType>;\n\n args = args || this.parameters;\n\n const clientValidationErrors = this.validation?.validate(args as object || {}) || [];\n if (clientValidationErrors.length > 0) {\n return new QueryResult({\n data: this.defaultValue as object,\n isSuccess: false,\n isAuthorized: true,\n isValid: false,\n hasExceptions: false,\n validationResults: clientValidationErrors.map(_ => ({\n severity: _.severity,\n message: _.message,\n members: _.members,\n state: _.state\n })),\n exceptionMessages: [],\n exceptionStackTrace: '',\n paging: {\n totalItems: 0,\n totalPages: 0,\n page: 0,\n size: 0\n }\n }, this.modelType, this.enumerable) as QueryResult<TDataType>;\n }\n\n if (!ValidateRequestArguments(this.constructor.name, this.requiredRequestParameters, args as object)) {\n return new Promise<QueryResult<TDataType>>((resolve) => {\n resolve(noSuccess);\n });\n }\n\n if (this.abortController) {\n this.abortController.abort();\n }\n\n this.abortController = new AbortController();\n\n const { route, unusedParameters } = UrlHelpers.replaceRouteParameters(this.route, args as object);\n let actualRoute = joinPaths(this._apiBasePath, route);\n \n const additionalParams: Record<string, string | number> = {};\n if (this.paging.hasPaging) {\n additionalParams.page = this.paging.page;\n additionalParams.pageSize = this.paging.pageSize;\n }\n\n if (this.sorting.hasSorting) {\n additionalParams.sortBy = this.sorting.field;\n additionalParams.sortDirection = (this.sorting.direction === SortDirection.descending) ? 'desc' : 'asc';\n }\n\n // Collect parameter values from parameterDescriptors that are set\n const parameterValues = ParametersHelper.collectParameterValues(this);\n\n const queryParams = UrlHelpers.buildQueryParams({ ...unusedParameters, ...parameterValues }, additionalParams);\n const queryString = queryParams.toString();\n if (queryString) {\n actualRoute += (actualRoute.includes('?') ? '&' : '?') + queryString;\n }\n \n const url = UrlHelpers.createUrlFrom(this._origin, this._apiBasePath, actualRoute);\n\n const headers = {\n ... this._httpHeadersCallback?.(), ...\n {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n }\n };\n\n if (this._microservice?.length > 0) {\n headers[Globals.microserviceHttpHeader] = this._microservice;\n }\n\n const response = await fetch(url, {\n method: 'GET',\n headers,\n signal: this.abortController.signal\n });\n\n try {\n const result = await response.json();\n return new QueryResult(result, this.modelType, this.enumerable);\n } catch {\n return noSuccess;\n }\n }\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Validator } from '../validation/Validator';
|
|
2
|
+
import { ValidationResult } from '../validation/ValidationResult';
|
|
3
|
+
export declare abstract class QueryValidator<T = object> extends Validator<T> {
|
|
4
|
+
validate(query: T): ValidationResult[];
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=QueryValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryValidator.d.ts","sourceRoot":"","sources":["../../../queries/QueryValidator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAKlE,8BAAsB,cAAc,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IAMjE,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,gBAAgB,EAAE;CAGzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryValidator.js","sources":["../../../queries/QueryValidator.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Validator } from '../validation/Validator';\nimport { ValidationResult } from '../validation/ValidationResult';\n\n/**\n * Represents the query validator\n */\nexport abstract class QueryValidator<T = object> extends Validator<T> {\n /**\n * Validate the query parameters.\n * @param query The query to validate.\n * @returns An array of validation results, empty if valid.\n */\n validate(query: T): ValidationResult[] {\n return super.validate(query);\n }\n}\n"],"names":[],"mappings":";;AASM,MAAgB,cAA2B,SAAQ,SAAY,CAAA;AAMjE,IAAA,QAAQ,CAAC,KAAQ,EAAA;AACb,QAAA,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;IAChC;AACH;;;;"}
|
package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ObservableQueryConnection } from '../../ObservableQueryConnection';
|
|
2
|
+
import * as sinon from 'sinon';
|
|
3
|
+
export declare class an_observable_query_connection {
|
|
4
|
+
connection: ObservableQueryConnection<string>;
|
|
5
|
+
url: URL;
|
|
6
|
+
microservice: string;
|
|
7
|
+
mockWebSocket: sinon.SinonStubbedInstance<WebSocket>;
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=an_observable_query_connection.d.ts.map
|
package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"an_observable_query_connection.d.ts","sourceRoot":"","sources":["../../../../../queries/for_ObservableQueryConnection/given/an_observable_query_connection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,qBAAa,8BAA8B;IACvC,UAAU,EAAE,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAC9C,GAAG,EAAE,GAAG,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,KAAK,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;;CAgBxD"}
|
package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ObservableQueryConnection } from '../../ObservableQueryConnection';
|
|
2
|
+
import * as sinon from 'sinon';
|
|
3
|
+
export class an_observable_query_connection {
|
|
4
|
+
connection;
|
|
5
|
+
url;
|
|
6
|
+
microservice;
|
|
7
|
+
mockWebSocket;
|
|
8
|
+
constructor() {
|
|
9
|
+
this.url = new URL('https://example.com/api/test');
|
|
10
|
+
this.microservice = 'test-microservice';
|
|
11
|
+
this.mockWebSocket = sinon.createStubInstance(WebSocket);
|
|
12
|
+
Object.defineProperty(this.mockWebSocket, 'readyState', {
|
|
13
|
+
value: WebSocket.OPEN,
|
|
14
|
+
writable: false
|
|
15
|
+
});
|
|
16
|
+
this.connection = new ObservableQueryConnection(this.url, this.microservice, 100);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=an_observable_query_connection.js.map
|
package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"an_observable_query_connection.js","sourceRoot":"","sources":["../../../../../queries/for_ObservableQueryConnection/given/an_observable_query_connection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,OAAO,8BAA8B;IACvC,UAAU,CAAoC;IAC9C,GAAG,CAAM;IACT,YAAY,CAAS;IACrB,aAAa,CAAwC;IAErD;QACI,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,8BAA8B,CAAC,CAAC;QACnD,IAAI,CAAC,YAAY,GAAG,mBAAmB,CAAC;QAGxC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;QACzD,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,aAAa,EAAE,YAAY,EAAE;YACpD,KAAK,EAAE,SAAS,CAAC,IAAI;YACrB,QAAQ,EAAE,KAAK;SAClB,CAAC,CAAC;QAGH,IAAI,CAAC,UAAU,GAAG,IAAI,yBAAyB,CAAS,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;IAC9F,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"when_constructing.d.ts","sourceRoot":"","sources":["../../../../queries/for_ObservableQueryConnection/when_constructing.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { an_observable_query_connection } from './given/an_observable_query_connection';
|
|
2
|
+
import { given } from '../../given';
|
|
3
|
+
describe('when constructing', given(an_observable_query_connection, context => {
|
|
4
|
+
it('should have zero last ping latency', () => {
|
|
5
|
+
context.connection.lastPingLatency.should.equal(0);
|
|
6
|
+
});
|
|
7
|
+
it('should have zero average latency', () => {
|
|
8
|
+
context.connection.averageLatency.should.equal(0);
|
|
9
|
+
});
|
|
10
|
+
}));
|
|
11
|
+
//# sourceMappingURL=when_constructing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"when_constructing.js","sourceRoot":"","sources":["../../../../queries/for_ObservableQueryConnection/when_constructing.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,QAAQ,CAAC,mBAAmB,EAAE,KAAK,CAAC,8BAA8B,EAAE,OAAO,CAAC,EAAE;IAC1E,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC1C,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QACxC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ObservableQueryFor } from '../../ObservableQueryFor';
|
|
2
|
+
import { ParameterDescriptor } from '../../../reflection/ParameterDescriptor';
|
|
3
|
+
export declare class TestObservableQuery extends ObservableQueryFor<string, {
|
|
4
|
+
id: string;
|
|
5
|
+
}> {
|
|
6
|
+
readonly route = "/api/test/{id}";
|
|
7
|
+
readonly defaultValue = "";
|
|
8
|
+
readonly parameterDescriptors: ParameterDescriptor[];
|
|
9
|
+
get requiredRequestParameters(): string[];
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
export declare class TestEnumerableQuery extends ObservableQueryFor<string[], {
|
|
13
|
+
category: string;
|
|
14
|
+
}> {
|
|
15
|
+
readonly route = "/api/items/{category}";
|
|
16
|
+
readonly defaultValue: string[];
|
|
17
|
+
readonly parameterDescriptors: ParameterDescriptor[];
|
|
18
|
+
get requiredRequestParameters(): string[];
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
21
|
+
export declare class TestObservableQueryWithParameterDescriptorValues extends ObservableQueryFor<string, object> {
|
|
22
|
+
readonly route = "/api/search";
|
|
23
|
+
readonly defaultValue = "";
|
|
24
|
+
readonly parameterDescriptors: ParameterDescriptor[];
|
|
25
|
+
filter?: string;
|
|
26
|
+
limit?: number;
|
|
27
|
+
get requiredRequestParameters(): string[];
|
|
28
|
+
constructor();
|
|
29
|
+
}
|
|
30
|
+
export interface TestQueryWithRouteAndQueryArgsParameters {
|
|
31
|
+
id: string;
|
|
32
|
+
filter: string;
|
|
33
|
+
limit: number;
|
|
34
|
+
}
|
|
35
|
+
export declare class TestObservableQueryWithRouteAndQueryArgs extends ObservableQueryFor<string, TestQueryWithRouteAndQueryArgsParameters> {
|
|
36
|
+
readonly route = "/api/items/{id}";
|
|
37
|
+
readonly defaultValue = "";
|
|
38
|
+
readonly parameterDescriptors: ParameterDescriptor[];
|
|
39
|
+
get requiredRequestParameters(): string[];
|
|
40
|
+
constructor();
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=TestQueries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestQueries.d.ts","sourceRoot":"","sources":["../../../../../queries/for_ObservableQueryFor/given/TestQueries.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,qBAAa,mBAAoB,SAAQ,kBAAkB,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;IAC/E,QAAQ,CAAC,KAAK,oBAAoB;IAClC,QAAQ,CAAC,YAAY,MAAM;IAC3B,QAAQ,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAElD;IAEF,IAAI,yBAAyB,IAAI,MAAM,EAAE,CAExC;;CAKJ;AAED,qBAAa,mBAAoB,SAAQ,kBAAkB,CAAC,MAAM,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;IACvF,QAAQ,CAAC,KAAK,2BAA2B;IACzC,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAM;IACrC,QAAQ,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAElD;IAEF,IAAI,yBAAyB,IAAI,MAAM,EAAE,CAExC;;CAKJ;AAED,qBAAa,gDAAiD,SAAQ,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC;IACpG,QAAQ,CAAC,KAAK,iBAAiB;IAC/B,QAAQ,CAAC,YAAY,MAAM;IAC3B,QAAQ,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAGlD;IAEF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,yBAAyB,IAAI,MAAM,EAAE,CAExC;;CAKJ;AAED,MAAM,WAAW,wCAAwC;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,wCAAyC,SAAQ,kBAAkB,CAAC,MAAM,EAAE,wCAAwC,CAAC;IAC9H,QAAQ,CAAC,KAAK,qBAAqB;IACnC,QAAQ,CAAC,YAAY,MAAM;IAC3B,QAAQ,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAIlD;IAEF,IAAI,yBAAyB,IAAI,MAAM,EAAE,CAExC;;CAKJ"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ObservableQueryFor } from '../../ObservableQueryFor';
|
|
2
|
+
import { ParameterDescriptor } from '../../../reflection/ParameterDescriptor';
|
|
3
|
+
export class TestObservableQuery extends ObservableQueryFor {
|
|
4
|
+
route = '/api/test/{id}';
|
|
5
|
+
defaultValue = '';
|
|
6
|
+
parameterDescriptors = [
|
|
7
|
+
new ParameterDescriptor('id', String)
|
|
8
|
+
];
|
|
9
|
+
get requiredRequestParameters() {
|
|
10
|
+
return ['id'];
|
|
11
|
+
}
|
|
12
|
+
constructor() {
|
|
13
|
+
super(String, false);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class TestEnumerableQuery extends ObservableQueryFor {
|
|
17
|
+
route = '/api/items/{category}';
|
|
18
|
+
defaultValue = [];
|
|
19
|
+
parameterDescriptors = [
|
|
20
|
+
new ParameterDescriptor('category', String)
|
|
21
|
+
];
|
|
22
|
+
get requiredRequestParameters() {
|
|
23
|
+
return ['category'];
|
|
24
|
+
}
|
|
25
|
+
constructor() {
|
|
26
|
+
super(String, true);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export class TestObservableQueryWithParameterDescriptorValues extends ObservableQueryFor {
|
|
30
|
+
route = '/api/search';
|
|
31
|
+
defaultValue = '';
|
|
32
|
+
parameterDescriptors = [
|
|
33
|
+
new ParameterDescriptor('filter', String),
|
|
34
|
+
new ParameterDescriptor('limit', Number)
|
|
35
|
+
];
|
|
36
|
+
filter;
|
|
37
|
+
limit;
|
|
38
|
+
get requiredRequestParameters() {
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
constructor() {
|
|
42
|
+
super(String, false);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export class TestObservableQueryWithRouteAndQueryArgs extends ObservableQueryFor {
|
|
46
|
+
route = '/api/items/{id}';
|
|
47
|
+
defaultValue = '';
|
|
48
|
+
parameterDescriptors = [
|
|
49
|
+
new ParameterDescriptor('id', String),
|
|
50
|
+
new ParameterDescriptor('filter', String),
|
|
51
|
+
new ParameterDescriptor('limit', Number)
|
|
52
|
+
];
|
|
53
|
+
get requiredRequestParameters() {
|
|
54
|
+
return ['id'];
|
|
55
|
+
}
|
|
56
|
+
constructor() {
|
|
57
|
+
super(String, false);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=TestQueries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestQueries.js","sourceRoot":"","sources":["../../../../../queries/for_ObservableQueryFor/given/TestQueries.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,MAAM,OAAO,mBAAoB,SAAQ,kBAA0C;IACtE,KAAK,GAAG,gBAAgB,CAAC;IACzB,YAAY,GAAG,EAAE,CAAC;IAClB,oBAAoB,GAA0B;QACnD,IAAI,mBAAmB,CAAC,IAAI,EAAE,MAAqB,CAAC;KACvD,CAAC;IAEF,IAAI,yBAAyB;QACzB,OAAO,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAED;QACI,KAAK,CAAC,MAAqB,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;CACJ;AAED,MAAM,OAAO,mBAAoB,SAAQ,kBAAkD;IAC9E,KAAK,GAAG,uBAAuB,CAAC;IAChC,YAAY,GAAa,EAAE,CAAC;IAC5B,oBAAoB,GAA0B;QACnD,IAAI,mBAAmB,CAAC,UAAU,EAAE,MAAqB,CAAC;KAC7D,CAAC;IAEF,IAAI,yBAAyB;QACzB,OAAO,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;IAED;QACI,KAAK,CAAC,MAAqB,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ;AAED,MAAM,OAAO,gDAAiD,SAAQ,kBAAkC;IAC3F,KAAK,GAAG,aAAa,CAAC;IACtB,YAAY,GAAG,EAAE,CAAC;IAClB,oBAAoB,GAA0B;QACnD,IAAI,mBAAmB,CAAC,QAAQ,EAAE,MAAqB,CAAC;QACxD,IAAI,mBAAmB,CAAC,OAAO,EAAE,MAAqB,CAAC;KAC1D,CAAC;IAEF,MAAM,CAAU;IAChB,KAAK,CAAU;IAEf,IAAI,yBAAyB;QACzB,OAAO,EAAE,CAAC;IACd,CAAC;IAED;QACI,KAAK,CAAC,MAAqB,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;CACJ;AAQD,MAAM,OAAO,wCAAyC,SAAQ,kBAAoE;IACrH,KAAK,GAAG,iBAAiB,CAAC;IAC1B,YAAY,GAAG,EAAE,CAAC;IAClB,oBAAoB,GAA0B;QACnD,IAAI,mBAAmB,CAAC,IAAI,EAAE,MAAqB,CAAC;QACpD,IAAI,mBAAmB,CAAC,QAAQ,EAAE,MAAqB,CAAC;QACxD,IAAI,mBAAmB,CAAC,OAAO,EAAE,MAAqB,CAAC;KAC1D,CAAC;IAEF,IAAI,yBAAyB;QACzB,OAAO,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAED;QACI,KAAK,CAAC,MAAqB,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;CACJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TestObservableQuery, TestEnumerableQuery, TestObservableQueryWithParameterDescriptorValues, TestObservableQueryWithRouteAndQueryArgs } from './TestQueries';
|
|
2
|
+
export declare class an_observable_query_for {
|
|
3
|
+
query: TestObservableQuery;
|
|
4
|
+
enumerableQuery: TestEnumerableQuery;
|
|
5
|
+
queryWithParameterDescriptorValues: TestObservableQueryWithParameterDescriptorValues;
|
|
6
|
+
queryWithRouteAndQueryArgs: TestObservableQueryWithRouteAndQueryArgs;
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=an_observable_query_for.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"an_observable_query_for.d.ts","sourceRoot":"","sources":["../../../../../queries/for_ObservableQueryFor/given/an_observable_query_for.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,gDAAgD,EAAE,wCAAwC,EAAE,MAAM,eAAe,CAAC;AAErK,qBAAa,uBAAuB;IAChC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,eAAe,EAAE,mBAAmB,CAAC;IACrC,kCAAkC,EAAE,gDAAgD,CAAC;IACrF,0BAA0B,EAAE,wCAAwC,CAAC;;CAQxE"}
|