@cratis/arc 22.25.0 → 22.27.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/Globals.ts +5 -5
- package/ICanBeConfigured.ts +1 -1
- package/commands/Command.ts +10 -10
- package/commands/CommandResult.ts +2 -2
- package/commands/CommandResults.ts +4 -4
- package/commands/CommandValidator.ts +2 -2
- package/commands/ICommand.ts +4 -4
- package/commands/ICommandResult.ts +1 -1
- package/commands/for_Command/CommandWithRouteParams.ts +2 -2
- package/commands/for_Command/SomeCommand.ts +2 -2
- package/commands/for_Command/given/a_command.ts +2 -2
- package/commands/for_Command/given/a_command_with_validator.ts +5 -5
- package/commands/for_Command/when_clearing_the_command.ts +1 -1
- package/commands/for_Command/when_constructing_command.ts +4 -4
- package/commands/for_Command/when_constructing_command_with_globals_api_base_path.ts +4 -4
- package/commands/for_Command/when_constructing_command_with_globals_origin.ts +4 -4
- package/commands/for_Command/when_executing/and_command_route_not_found.ts +3 -3
- package/commands/for_Command/when_executing/and_fetch_throws_exception.ts +3 -3
- package/commands/for_Command/when_executing/with_allowed_severity_warning.ts +3 -3
- package/commands/for_Command/when_executing/with_client_validation_failing.ts +5 -5
- package/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.ts +3 -3
- package/commands/for_Command/when_executing/with_client_validation_passing.ts +5 -5
- package/commands/for_Command/when_executing/with_command_properties.ts +2 -2
- package/commands/for_Command/when_executing/with_custom_http_headers.ts +3 -3
- package/commands/for_Command/when_executing/with_declared_blocking_severity.ts +5 -5
- package/commands/for_Command/when_executing/with_empty_required_string_property.ts +3 -3
- package/commands/for_Command/when_executing/with_microservice_header.ts +3 -3
- package/commands/for_Command/when_executing/with_missing_required_property.ts +3 -3
- package/commands/for_Command/when_executing/with_null_required_property.ts +3 -3
- package/commands/for_Command/when_executing/with_origin_and_api_base_path.ts +3 -3
- package/commands/for_Command/when_executing/with_route_parameters.ts +3 -3
- package/commands/for_Command/when_executing/with_successful_response.ts +3 -3
- package/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.ts +1 -1
- package/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.ts +1 -1
- package/commands/for_Command/when_property_changes_and_initial_value_is_undefined.ts +1 -1
- package/commands/for_Command/when_property_changes_and_there_is_a_callback.ts +1 -1
- package/commands/for_Command/when_property_has_changed_and_we_revert.ts +1 -1
- package/commands/for_Command/when_setting_initial_values_after_property_changed.ts +1 -1
- package/commands/for_Command/when_validating/and_fetch_throws_exception.ts +3 -3
- package/commands/for_Command/when_validating/and_validation_endpoint_not_found.ts +3 -3
- package/commands/for_Command/when_validating/does_not_update_initial_values.ts +2 -2
- package/commands/for_Command/when_validating/with_client_validation_failure.ts +3 -3
- package/commands/for_Command/when_validating/with_client_validation_passing.ts +6 -6
- package/commands/for_Command/when_validating/with_empty_required_string_property.ts +3 -3
- package/commands/for_Command/when_validating/with_null_required_property.ts +3 -3
- package/commands/for_Command/when_validating/with_required_property_missing.ts +3 -3
- package/commands/for_Command/when_validating/with_route_parameters.ts +3 -3
- package/commands/for_Command/when_validating/with_successful_response.ts +3 -3
- package/commands/for_Command/when_validating/with_validation_errors.ts +3 -3
- package/commands/for_Command/when_validating_client_side/with_client_validation_failure.ts +3 -3
- package/commands/for_Command/when_validating_client_side/with_client_validation_passing.ts +6 -6
- package/commands/for_Command/when_validating_client_side/with_required_property_missing.ts +3 -3
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.ts +1 -1
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.ts +3 -3
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.ts +1 -1
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.ts +1 -1
- package/commands/for_CommandResult/when_constructing_from_a_server_result_with_a_constraint_violation.ts +3 -3
- package/commands/for_CommandResult/when_constructing_from_a_server_result_with_reasons.ts +3 -3
- package/commands/for_CommandResult/when_constructing_with_primitive_response.ts +1 -1
- package/commands/for_CommandResult/when_creating_a_validation_failed_result.ts +4 -4
- package/commands/index.ts +7 -7
- package/dist/cjs/EventSourceFactory.d.ts +2 -0
- package/dist/cjs/EventSourceFactory.d.ts.map +1 -0
- package/dist/cjs/GetHttpHeaders.d.ts +2 -0
- package/dist/cjs/GetHttpHeaders.d.ts.map +1 -0
- package/dist/cjs/Globals.d.ts +27 -0
- package/dist/cjs/Globals.d.ts.map +1 -0
- package/dist/cjs/Globals.js.map +1 -1
- package/dist/cjs/ICanBeConfigured.d.ts +8 -0
- package/dist/cjs/ICanBeConfigured.d.ts.map +1 -0
- package/dist/cjs/UrlHelpers.d.ts +9 -0
- package/dist/cjs/UrlHelpers.d.ts.map +1 -0
- package/dist/cjs/commands/Command.d.ts +46 -0
- package/dist/cjs/commands/Command.d.ts.map +1 -0
- package/dist/cjs/commands/Command.js.map +1 -1
- package/dist/cjs/commands/CommandResult.d.ts +51 -0
- package/dist/cjs/commands/CommandResult.d.ts.map +1 -0
- package/dist/cjs/commands/CommandResult.js.map +1 -1
- package/dist/cjs/commands/CommandResults.d.ts +23 -0
- package/dist/cjs/commands/CommandResults.d.ts.map +1 -0
- package/dist/cjs/commands/CommandResults.js.map +1 -1
- package/dist/cjs/commands/CommandValidator.d.ts +6 -0
- package/dist/cjs/commands/CommandValidator.d.ts.map +1 -0
- package/dist/cjs/commands/CommandValidator.js.map +1 -1
- package/dist/cjs/commands/ICommand.d.ts +21 -0
- package/dist/cjs/commands/ICommand.d.ts.map +1 -0
- package/dist/cjs/commands/ICommandResult.d.ts +15 -0
- package/dist/cjs/commands/ICommandResult.d.ts.map +1 -0
- package/dist/cjs/commands/index.d.ts +8 -0
- package/dist/cjs/commands/index.d.ts.map +1 -0
- package/dist/cjs/commands/index.js.map +1 -1
- package/dist/cjs/deepEqual.d.ts +2 -0
- package/dist/cjs/deepEqual.d.ts.map +1 -0
- package/dist/cjs/given.d.ts +5 -0
- package/dist/cjs/given.d.ts.map +1 -0
- package/dist/cjs/helpers/fetchHelper.d.ts +7 -0
- package/dist/cjs/helpers/fetchHelper.d.ts.map +1 -0
- package/dist/cjs/identity/IIdentity.d.ts +10 -0
- package/dist/cjs/identity/IIdentity.d.ts.map +1 -0
- package/dist/cjs/identity/IIdentityProvider.d.ts +6 -0
- package/dist/cjs/identity/IIdentityProvider.d.ts.map +1 -0
- package/dist/cjs/identity/IIdentityProvider.js.map +1 -1
- package/dist/cjs/identity/IdentityProvider.d.ts +20 -0
- package/dist/cjs/identity/IdentityProvider.d.ts.map +1 -0
- package/dist/cjs/identity/IdentityProvider.js.map +1 -1
- package/dist/cjs/identity/IdentityProviderResult.d.ts +7 -0
- package/dist/cjs/identity/IdentityProviderResult.d.ts.map +1 -0
- package/dist/cjs/identity/deserializeIdentityDetails.d.ts +3 -0
- package/dist/cjs/identity/deserializeIdentityDetails.d.ts.map +1 -0
- package/dist/cjs/identity/index.d.ts +6 -0
- package/dist/cjs/identity/index.d.ts.map +1 -0
- package/dist/cjs/identity/index.js.map +1 -1
- package/dist/cjs/index.d.ts +15 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/joinPaths.d.ts +2 -0
- package/dist/cjs/joinPaths.d.ts.map +1 -0
- package/dist/cjs/messaging/IMessenger.d.ts +10 -0
- package/dist/cjs/messaging/IMessenger.d.ts.map +1 -0
- package/dist/cjs/messaging/Message.d.ts +7 -0
- package/dist/cjs/messaging/Message.d.ts.map +1 -0
- package/dist/cjs/messaging/Messenger.d.ts +20 -0
- package/dist/cjs/messaging/Messenger.d.ts.map +1 -0
- package/dist/cjs/messaging/Messenger.js.map +1 -1
- package/dist/cjs/messaging/index.d.ts +4 -0
- package/dist/cjs/messaging/index.d.ts.map +1 -0
- package/dist/cjs/messaging/index.js.map +1 -1
- package/dist/cjs/queries/ChangeSet.d.ts +6 -0
- package/dist/cjs/queries/ChangeSet.d.ts.map +1 -0
- package/dist/cjs/queries/HubConnectionKeepAlive.d.ts +14 -0
- package/dist/cjs/queries/HubConnectionKeepAlive.d.ts.map +1 -0
- package/dist/cjs/queries/IChangeStreamFor.d.ts +4 -0
- package/dist/cjs/queries/IChangeStreamFor.d.ts.map +1 -0
- package/dist/cjs/queries/IObservableQueryConnection.d.ts +8 -0
- package/dist/cjs/queries/IObservableQueryConnection.d.ts.map +1 -0
- package/dist/cjs/queries/IObservableQueryDiagnostics.d.ts +9 -0
- package/dist/cjs/queries/IObservableQueryDiagnostics.d.ts.map +1 -0
- package/dist/cjs/queries/IObservableQueryFor.d.ts +14 -0
- package/dist/cjs/queries/IObservableQueryFor.d.ts.map +1 -0
- package/dist/cjs/queries/IObservableQueryHubConnection.d.ts +12 -0
- package/dist/cjs/queries/IObservableQueryHubConnection.d.ts.map +1 -0
- package/dist/cjs/queries/IQuery.d.ts +12 -0
- package/dist/cjs/queries/IQuery.d.ts.map +1 -0
- package/dist/cjs/queries/IQueryFor.d.ts +13 -0
- package/dist/cjs/queries/IQueryFor.d.ts.map +1 -0
- package/dist/cjs/queries/IQueryProvider.d.ts +6 -0
- package/dist/cjs/queries/IQueryProvider.d.ts.map +1 -0
- package/dist/cjs/queries/IQueryProvider.js.map +1 -1
- package/dist/cjs/queries/IQueryResult.d.ts +18 -0
- package/dist/cjs/queries/IQueryResult.d.ts.map +1 -0
- package/dist/cjs/queries/IReconnectPolicy.d.ts +8 -0
- package/dist/cjs/queries/IReconnectPolicy.d.ts.map +1 -0
- package/dist/cjs/queries/NullObservableQueryConnection.d.ts +13 -0
- package/dist/cjs/queries/NullObservableQueryConnection.d.ts.map +1 -0
- package/dist/cjs/queries/NullObservableQueryConnection.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnection.d.ts +31 -0
- package/dist/cjs/queries/ObservableQueryConnection.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryConnection.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnectionFactory.d.ts +13 -0
- package/dist/cjs/queries/ObservableQueryConnectionFactory.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryConnectionFactory.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnectionPool.d.ts +9 -0
- package/dist/cjs/queries/ObservableQueryConnectionPool.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryConnectionPool.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryDiagnostics.d.ts +21 -0
- package/dist/cjs/queries/ObservableQueryDiagnostics.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryDiagnostics.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryDiagnosticsSnapshot.d.ts +48 -0
- package/dist/cjs/queries/ObservableQueryDiagnosticsSnapshot.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryFor.d.ts +42 -0
- package/dist/cjs/queries/ObservableQueryFor.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryFor.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryMultiplexer.d.ts +33 -0
- package/dist/cjs/queries/ObservableQueryMultiplexer.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryMultiplexer.js.map +1 -1
- package/dist/cjs/queries/ObservableQuerySubscription.d.ts +7 -0
- package/dist/cjs/queries/ObservableQuerySubscription.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQuerySubscription.js.map +1 -1
- package/dist/cjs/queries/Paging.d.ts +8 -0
- package/dist/cjs/queries/Paging.d.ts.map +1 -0
- package/dist/cjs/queries/PagingInfo.d.ts +9 -0
- package/dist/cjs/queries/PagingInfo.d.ts.map +1 -0
- package/dist/cjs/queries/QueryFor.d.ts +37 -0
- package/dist/cjs/queries/QueryFor.d.ts.map +1 -0
- package/dist/cjs/queries/QueryFor.js.map +1 -1
- package/dist/cjs/queries/QueryHttpMethod.d.ts +6 -0
- package/dist/cjs/queries/QueryHttpMethod.d.ts.map +1 -0
- package/dist/cjs/queries/QueryHttpMethodResolver.d.ts +14 -0
- package/dist/cjs/queries/QueryHttpMethodResolver.d.ts.map +1 -0
- package/dist/cjs/queries/QueryHttpMethodResolver.js.map +1 -1
- package/dist/cjs/queries/QueryHttpRequest.d.ts +21 -0
- package/dist/cjs/queries/QueryHttpRequest.d.ts.map +1 -0
- package/dist/cjs/queries/QueryHttpRequest.js.map +1 -1
- package/dist/cjs/queries/QueryInstanceCache.d.ts +40 -0
- package/dist/cjs/queries/QueryInstanceCache.d.ts.map +1 -0
- package/dist/cjs/queries/QueryInstanceCache.js.map +1 -1
- package/dist/cjs/queries/QueryProvider.d.ts +13 -0
- package/dist/cjs/queries/QueryProvider.d.ts.map +1 -0
- package/dist/cjs/queries/QueryProvider.js.map +1 -1
- package/dist/cjs/queries/QueryResult.d.ts +62 -0
- package/dist/cjs/queries/QueryResult.d.ts.map +1 -0
- package/dist/cjs/queries/QueryResult.js.map +1 -1
- package/dist/cjs/queries/QueryResultWithState.d.ts +24 -0
- package/dist/cjs/queries/QueryResultWithState.d.ts.map +1 -0
- package/dist/cjs/queries/QueryResultWithState.js.map +1 -1
- package/dist/cjs/queries/QueryTransportMethod.d.ts +5 -0
- package/dist/cjs/queries/QueryTransportMethod.d.ts.map +1 -0
- 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.map +1 -1
- package/dist/cjs/queries/ReconnectPolicy.d.ts +15 -0
- package/dist/cjs/queries/ReconnectPolicy.d.ts.map +1 -0
- package/dist/cjs/queries/ReconnectPolicy.js.map +1 -1
- package/dist/cjs/queries/ServerSentEventHubConnection.d.ts +49 -0
- package/dist/cjs/queries/ServerSentEventHubConnection.d.ts.map +1 -0
- package/dist/cjs/queries/ServerSentEventHubConnection.js.map +1 -1
- package/dist/cjs/queries/ServerSentEventQueryConnection.d.ts +16 -0
- package/dist/cjs/queries/ServerSentEventQueryConnection.d.ts.map +1 -0
- package/dist/cjs/queries/ServerSentEventQueryConnection.js.map +1 -1
- package/dist/cjs/queries/SortDirection.d.ts +6 -0
- package/dist/cjs/queries/SortDirection.d.ts.map +1 -0
- package/dist/cjs/queries/Sorting.d.ts +9 -0
- package/dist/cjs/queries/Sorting.d.ts.map +1 -0
- package/dist/cjs/queries/Sorting.js.map +1 -1
- package/dist/cjs/queries/SortingActions.d.ts +10 -0
- package/dist/cjs/queries/SortingActions.d.ts.map +1 -0
- package/dist/cjs/queries/SortingActions.js.map +1 -1
- package/dist/cjs/queries/SortingActionsForObservableQuery.d.ts +10 -0
- package/dist/cjs/queries/SortingActionsForObservableQuery.d.ts.map +1 -0
- package/dist/cjs/queries/SortingActionsForObservableQuery.js.map +1 -1
- package/dist/cjs/queries/SortingActionsForQuery.d.ts +10 -0
- package/dist/cjs/queries/SortingActionsForQuery.d.ts.map +1 -0
- package/dist/cjs/queries/SortingActionsForQuery.js.map +1 -1
- package/dist/cjs/queries/ValidateRequestArguments.d.ts +2 -0
- package/dist/cjs/queries/ValidateRequestArguments.d.ts.map +1 -0
- package/dist/cjs/queries/WebSocketHubConnection.d.ts +70 -0
- package/dist/cjs/queries/WebSocketHubConnection.d.ts.map +1 -0
- package/dist/cjs/queries/WebSocketHubConnection.js.map +1 -1
- package/dist/cjs/queries/WebSocketMessage.d.ts +11 -0
- package/dist/cjs/queries/WebSocketMessage.d.ts.map +1 -0
- package/dist/cjs/queries/deserializeQueryModel.d.ts +5 -0
- package/dist/cjs/queries/deserializeQueryModel.d.ts.map +1 -0
- package/dist/cjs/queries/index.d.ts +44 -0
- package/dist/cjs/queries/index.d.ts.map +1 -0
- package/dist/cjs/queries/index.js.map +1 -1
- package/dist/cjs/queries/isAbortError.d.ts +2 -0
- package/dist/cjs/queries/isAbortError.d.ts.map +1 -0
- package/dist/cjs/queries/reconcileQueryData.d.ts +2 -0
- package/dist/cjs/queries/reconcileQueryData.d.ts.map +1 -0
- package/dist/cjs/queries/reconcileQueryData.js.map +1 -1
- package/dist/cjs/reflection/IHaveParameters.d.ts +5 -0
- package/dist/cjs/reflection/IHaveParameters.d.ts.map +1 -0
- package/dist/cjs/reflection/ParameterDescriptor.d.ts +8 -0
- package/dist/cjs/reflection/ParameterDescriptor.d.ts.map +1 -0
- package/dist/cjs/reflection/ParametersHelper.d.ts +5 -0
- package/dist/cjs/reflection/ParametersHelper.d.ts.map +1 -0
- package/dist/cjs/reflection/ParametersHelper.js.map +1 -1
- package/dist/cjs/reflection/PropertyDescriptor.d.ts +8 -0
- package/dist/cjs/reflection/PropertyDescriptor.d.ts.map +1 -0
- package/dist/cjs/reflection/index.d.ts +5 -0
- package/dist/cjs/reflection/index.d.ts.map +1 -0
- package/dist/cjs/reflection/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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/dist/cjs/validation/RuleBuilderExtensions.d.ts +32 -0
- package/dist/cjs/validation/RuleBuilderExtensions.d.ts.map +1 -0
- package/dist/cjs/validation/RuleBuilderExtensions.js.map +1 -1
- package/dist/cjs/validation/ValidationResult.d.ts +12 -0
- package/dist/cjs/validation/ValidationResult.d.ts.map +1 -0
- package/dist/cjs/validation/ValidationResult.js.map +1 -1
- package/dist/cjs/validation/ValidationResultReason.d.ts +10 -0
- package/dist/cjs/validation/ValidationResultReason.d.ts.map +1 -0
- package/dist/cjs/validation/ValidationResultSeverity.d.ts +7 -0
- package/dist/cjs/validation/ValidationResultSeverity.d.ts.map +1 -0
- package/dist/cjs/validation/Validator.d.ts +11 -0
- package/dist/cjs/validation/Validator.d.ts.map +1 -0
- package/dist/cjs/validation/Validator.js.map +1 -1
- package/dist/cjs/validation/index.d.ts +15 -0
- package/dist/cjs/validation/index.d.ts.map +1 -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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/dist/cjs/validation/rules/PhoneRule.d.ts +7 -0
- package/dist/cjs/validation/rules/PhoneRule.d.ts.map +1 -0
- package/dist/cjs/validation/rules/PhoneRule.js.map +1 -1
- 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.map +1 -1
- package/dist/cjs/validation/rules/UrlRule.d.ts +7 -0
- package/dist/cjs/validation/rules/UrlRule.d.ts.map +1 -0
- package/dist/cjs/validation/rules/UrlRule.js.map +1 -1
- package/dist/esm/Globals.d.ts +5 -5
- package/dist/esm/Globals.d.ts.map +1 -1
- package/dist/esm/Globals.js.map +1 -1
- package/dist/esm/ICanBeConfigured.d.ts +1 -1
- package/dist/esm/ICanBeConfigured.d.ts.map +1 -1
- package/dist/esm/commands/Command.d.ts +6 -6
- package/dist/esm/commands/Command.d.ts.map +1 -1
- package/dist/esm/commands/Command.js.map +1 -1
- package/dist/esm/commands/CommandResult.d.ts +2 -2
- package/dist/esm/commands/CommandResult.d.ts.map +1 -1
- package/dist/esm/commands/CommandResult.js.map +1 -1
- package/dist/esm/commands/CommandResults.d.ts +4 -4
- package/dist/esm/commands/CommandResults.d.ts.map +1 -1
- package/dist/esm/commands/CommandResults.js.map +1 -1
- package/dist/esm/commands/CommandValidator.d.ts +2 -2
- package/dist/esm/commands/CommandValidator.d.ts.map +1 -1
- package/dist/esm/commands/CommandValidator.js.map +1 -1
- package/dist/esm/commands/ICommand.d.ts +4 -4
- package/dist/esm/commands/ICommand.d.ts.map +1 -1
- package/dist/esm/commands/ICommandResult.d.ts +1 -1
- package/dist/esm/commands/ICommandResult.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/CommandWithRouteParams.d.ts +2 -2
- package/dist/esm/commands/for_Command/CommandWithRouteParams.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/CommandWithRouteParams.js +2 -2
- package/dist/esm/commands/for_Command/CommandWithRouteParams.js.map +1 -1
- package/dist/esm/commands/for_Command/SomeCommand.d.ts +2 -2
- package/dist/esm/commands/for_Command/SomeCommand.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/SomeCommand.js +2 -2
- package/dist/esm/commands/for_Command/SomeCommand.js.map +1 -1
- package/dist/esm/commands/for_Command/given/a_command.d.ts +1 -1
- package/dist/esm/commands/for_Command/given/a_command.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/given/a_command.js +2 -2
- package/dist/esm/commands/for_Command/given/a_command.js.map +1 -1
- package/dist/esm/commands/for_Command/given/a_command_with_validator.d.ts +4 -4
- package/dist/esm/commands/for_Command/given/a_command_with_validator.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/given/a_command_with_validator.js +4 -4
- package/dist/esm/commands/for_Command/given/a_command_with_validator.js.map +1 -1
- package/dist/esm/commands/for_Command/when_clearing_the_command.js +1 -1
- package/dist/esm/commands/for_Command/when_clearing_the_command.js.map +1 -1
- package/dist/esm/commands/for_Command/when_constructing_command.js +4 -4
- package/dist/esm/commands/for_Command/when_constructing_command.js.map +1 -1
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.js +4 -4
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.js.map +1 -1
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.js +4 -4
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_allowed_severity_warning.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_allowed_severity_warning.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.d.ts +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.d.ts +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.js +4 -4
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_command_properties.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_command_properties.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_declared_blocking_severity.js +4 -4
- package/dist/esm/commands/for_Command/when_executing/with_declared_blocking_severity.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_empty_required_string_property.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_empty_required_string_property.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_microservice_header.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_microservice_header.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_null_required_property.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_null_required_property.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_route_parameters.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_route_parameters.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_successful_response.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_successful_response.js.map +1 -1
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.js +1 -1
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.js.map +1 -1
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.js +1 -1
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.js.map +1 -1
- package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.js +1 -1
- package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.js.map +1 -1
- package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.js +1 -1
- package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.js.map +1 -1
- package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.js +1 -1
- package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.js.map +1 -1
- package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.js +1 -1
- package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.d.ts +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.js +4 -4
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_empty_required_string_property.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_empty_required_string_property.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_null_required_property.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_null_required_property.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_route_parameters.js +3 -3
- package/dist/esm/commands/for_Command/when_validating/with_route_parameters.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_successful_response.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_successful_response.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_validation_errors.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_validation_errors.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_failure.js +2 -2
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_failure.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_passing.d.ts +1 -1
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_passing.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_passing.js +4 -4
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_passing.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating_client_side/with_required_property_missing.js +2 -2
- package/dist/esm/commands/for_Command/when_validating_client_side/with_required_property_missing.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.js +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.js +3 -3
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.js +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.js +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_constructing_from_a_server_result_with_a_constraint_violation.js +3 -3
- package/dist/esm/commands/for_CommandResult/when_constructing_from_a_server_result_with_a_constraint_violation.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_constructing_from_a_server_result_with_reasons.js +3 -3
- package/dist/esm/commands/for_CommandResult/when_constructing_from_a_server_result_with_reasons.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_constructing_with_primitive_response.js +1 -1
- package/dist/esm/commands/for_CommandResult/when_constructing_with_primitive_response.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_creating_a_validation_failed_result.js +4 -4
- package/dist/esm/commands/for_CommandResult/when_creating_a_validation_failed_result.js.map +1 -1
- package/dist/esm/commands/index.d.ts +7 -7
- package/dist/esm/commands/index.d.ts.map +1 -1
- package/dist/esm/commands/index.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_array_values.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_array_values.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_date_values.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_date_values.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_mixed_array_and_scalar_values.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_mixed_array_and_scalar_values.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.js +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_array_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_array_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.js +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.js.map +1 -1
- package/dist/esm/identity/IIdentityProvider.d.ts +1 -1
- package/dist/esm/identity/IIdentityProvider.d.ts.map +1 -1
- package/dist/esm/identity/IIdentityProvider.js.map +1 -1
- package/dist/esm/identity/IdentityProvider.d.ts +3 -3
- package/dist/esm/identity/IdentityProvider.d.ts.map +1 -1
- package/dist/esm/identity/IdentityProvider.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.js +2 -2
- package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_a_details_type_that_declares_no_fields.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_a_details_type_that_declares_no_fields.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_roles.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_roles.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/without_roles.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/without_roles.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.js +4 -4
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_origin_set.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_origin_set.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_unauthorized_response.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_unauthorized_response.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.js +4 -4
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_setting_origin.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_setting_origin.js.map +1 -1
- package/dist/esm/identity/index.d.ts +5 -5
- package/dist/esm/identity/index.d.ts.map +1 -1
- package/dist/esm/identity/index.js.map +1 -1
- package/dist/esm/index.d.ts +12 -12
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/messaging/Messenger.d.ts +1 -1
- package/dist/esm/messaging/Messenger.d.ts.map +1 -1
- package/dist/esm/messaging/Messenger.js.map +1 -1
- package/dist/esm/messaging/for_Messenger/when_scoping_messages.js +1 -1
- package/dist/esm/messaging/for_Messenger/when_scoping_messages.js.map +1 -1
- package/dist/esm/messaging/index.d.ts +3 -3
- package/dist/esm/messaging/index.d.ts.map +1 -1
- package/dist/esm/messaging/index.js.map +1 -1
- package/dist/esm/queries/IChangeStreamFor.d.ts +1 -1
- package/dist/esm/queries/IChangeStreamFor.d.ts.map +1 -1
- package/dist/esm/queries/IObservableQueryConnection.d.ts +1 -1
- package/dist/esm/queries/IObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/IObservableQueryDiagnostics.d.ts +1 -1
- package/dist/esm/queries/IObservableQueryDiagnostics.d.ts.map +1 -1
- package/dist/esm/queries/IObservableQueryFor.d.ts +4 -4
- package/dist/esm/queries/IObservableQueryFor.d.ts.map +1 -1
- package/dist/esm/queries/IObservableQueryHubConnection.d.ts +2 -2
- package/dist/esm/queries/IObservableQueryHubConnection.d.ts.map +1 -1
- package/dist/esm/queries/IQuery.d.ts +4 -4
- package/dist/esm/queries/IQuery.d.ts.map +1 -1
- package/dist/esm/queries/IQueryFor.d.ts +3 -3
- package/dist/esm/queries/IQueryFor.d.ts.map +1 -1
- package/dist/esm/queries/IQueryProvider.d.ts +1 -1
- package/dist/esm/queries/IQueryProvider.d.ts.map +1 -1
- package/dist/esm/queries/IQueryProvider.js.map +1 -1
- package/dist/esm/queries/IQueryResult.d.ts +3 -3
- package/dist/esm/queries/IQueryResult.d.ts.map +1 -1
- package/dist/esm/queries/NullObservableQueryConnection.d.ts +3 -3
- package/dist/esm/queries/NullObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/NullObservableQueryConnection.js.map +1 -1
- package/dist/esm/queries/ObservableQueryConnection.d.ts +3 -3
- package/dist/esm/queries/ObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryConnection.js.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionFactory.d.ts +1 -1
- package/dist/esm/queries/ObservableQueryConnectionFactory.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionFactory.js.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionPool.d.ts +2 -2
- package/dist/esm/queries/ObservableQueryConnectionPool.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionPool.js.map +1 -1
- package/dist/esm/queries/ObservableQueryDiagnostics.d.ts +4 -4
- package/dist/esm/queries/ObservableQueryDiagnostics.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryDiagnostics.js.map +1 -1
- package/dist/esm/queries/ObservableQueryFor.d.ts +9 -9
- package/dist/esm/queries/ObservableQueryFor.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryFor.js.map +1 -1
- package/dist/esm/queries/ObservableQueryMultiplexer.d.ts +4 -4
- package/dist/esm/queries/ObservableQueryMultiplexer.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryMultiplexer.js.map +1 -1
- package/dist/esm/queries/ObservableQuerySubscription.d.ts +1 -1
- package/dist/esm/queries/ObservableQuerySubscription.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQuerySubscription.js.map +1 -1
- package/dist/esm/queries/QueryFor.d.ts +8 -8
- package/dist/esm/queries/QueryFor.d.ts.map +1 -1
- package/dist/esm/queries/QueryFor.js.map +1 -1
- package/dist/esm/queries/QueryHttpMethodResolver.d.ts +1 -1
- package/dist/esm/queries/QueryHttpMethodResolver.d.ts.map +1 -1
- package/dist/esm/queries/QueryHttpMethodResolver.js.map +1 -1
- package/dist/esm/queries/QueryHttpRequest.d.ts +3 -3
- package/dist/esm/queries/QueryHttpRequest.d.ts.map +1 -1
- package/dist/esm/queries/QueryHttpRequest.js.map +1 -1
- package/dist/esm/queries/QueryInstanceCache.d.ts +2 -2
- package/dist/esm/queries/QueryInstanceCache.d.ts.map +1 -1
- package/dist/esm/queries/QueryInstanceCache.js.map +1 -1
- package/dist/esm/queries/QueryProvider.d.ts +3 -3
- package/dist/esm/queries/QueryProvider.d.ts.map +1 -1
- package/dist/esm/queries/QueryProvider.js.map +1 -1
- package/dist/esm/queries/QueryResult.d.ts +4 -4
- package/dist/esm/queries/QueryResult.d.ts.map +1 -1
- package/dist/esm/queries/QueryResult.js.map +1 -1
- package/dist/esm/queries/QueryResultWithState.d.ts +4 -4
- package/dist/esm/queries/QueryResultWithState.d.ts.map +1 -1
- package/dist/esm/queries/QueryResultWithState.js.map +1 -1
- package/dist/esm/queries/QueryValidator.d.ts +2 -2
- package/dist/esm/queries/QueryValidator.d.ts.map +1 -1
- package/dist/esm/queries/QueryValidator.js.map +1 -1
- package/dist/esm/queries/ReconnectPolicy.d.ts +1 -1
- package/dist/esm/queries/ReconnectPolicy.d.ts.map +1 -1
- package/dist/esm/queries/ReconnectPolicy.js.map +1 -1
- package/dist/esm/queries/ServerSentEventHubConnection.d.ts +4 -4
- package/dist/esm/queries/ServerSentEventHubConnection.d.ts.map +1 -1
- package/dist/esm/queries/ServerSentEventHubConnection.js.map +1 -1
- package/dist/esm/queries/ServerSentEventQueryConnection.d.ts +2 -2
- package/dist/esm/queries/ServerSentEventQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/ServerSentEventQueryConnection.js.map +1 -1
- package/dist/esm/queries/Sorting.d.ts +1 -1
- package/dist/esm/queries/Sorting.d.ts.map +1 -1
- package/dist/esm/queries/Sorting.js.map +1 -1
- package/dist/esm/queries/SortingActions.d.ts +1 -1
- package/dist/esm/queries/SortingActions.d.ts.map +1 -1
- package/dist/esm/queries/SortingActions.js.map +1 -1
- package/dist/esm/queries/SortingActionsForObservableQuery.d.ts +2 -2
- package/dist/esm/queries/SortingActionsForObservableQuery.d.ts.map +1 -1
- package/dist/esm/queries/SortingActionsForObservableQuery.js.map +1 -1
- package/dist/esm/queries/SortingActionsForQuery.d.ts +2 -2
- package/dist/esm/queries/SortingActionsForQuery.d.ts.map +1 -1
- package/dist/esm/queries/SortingActionsForQuery.js.map +1 -1
- package/dist/esm/queries/WebSocketHubConnection.d.ts +2 -2
- package/dist/esm/queries/WebSocketHubConnection.d.ts.map +1 -1
- package/dist/esm/queries/WebSocketHubConnection.js.map +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/behavior.js +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/behavior.js.map +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_running.js +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_running.js.map +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_stopped.js +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_stopped.js.map +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_started_with_custom_idle_threshold/respects_threshold.js +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_started_with_custom_idle_threshold/respects_threshold.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_a_reconnect_policy.d.ts +2 -2
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_a_reconnect_policy.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_a_reconnect_policy.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_a_reconnect_policy.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.d.ts +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.js +2 -2
- package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_data_message_with_type.js +3 -3
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_data_message_with_type.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_legacy_data_message.js +2 -2
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_legacy_data_message.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.js +3 -3
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.d.ts +2 -2
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_sse_transport.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_sse_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_websocket_transport.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_websocket_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport.js +7 -7
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_exceeding_safe_limit.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_exceeding_safe_limit.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_within_safe_limit.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_within_safe_limit.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport_and_high_connection_count.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport_and_high_connection_count.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_least_loaded_slot_is_chosen.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_least_loaded_slot_is_chosen.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_size_is_zero.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_size_is_zero.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_single_slot/and_one_subscriber.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_single_slot/and_one_subscriber.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryDiagnostics/when_tracking_owners.js +1 -1
- package/dist/esm/queries/for_ObservableQueryDiagnostics/when_tracking_owners.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.d.ts +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.js +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_with_validator.d.ts +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_with_validator.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_with_validator.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_with_validator.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing.js +5 -5
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_disposing.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_disposing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_a_not_ready_result.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_a_not_ready_result.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_client_validation_failing.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_client_validation_failing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partially_missing_required_arguments.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partially_missing_required_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.js +5 -5
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_has_a_calendar_collection.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_has_a_calendar_collection.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_type_is_a_primitive_collection.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_type_is_a_primitive_collection.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.js +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.js +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.js +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_failing.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_failing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_passing.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_passing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_and_sse_transport.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_and_sse_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_disabled_and_sse_transport.js +7 -7
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_disabled_and_sse_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_enabled.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_enabled.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_multiple_required_route_parameters.js +6 -6
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_multiple_required_route_parameters.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_null_or_undefined_args.js +6 -6
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_null_or_undefined_args.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_route_and_query_args.js +6 -6
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_route_and_query_args.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_stale_descriptor_backed_instance_property.js +6 -6
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_stale_descriptor_backed_instance_property.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_partially_missing_required_arguments.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_partially_missing_required_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_web_socket_hub_payload_without_readiness.js +6 -6
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_web_socket_hub_payload_without_readiness.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_changed_cache_key.js +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_changed_cache_key.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_new_cache_key.js +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_new_cache_key.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_an_explicit_size.js +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_an_explicit_size.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_the_same_cache_key.js +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_the_same_cache_key.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/TestQueries.d.ts +2 -2
- package/dist/esm/queries/for_QueryFor/given/TestQueries.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/TestQueries.js +2 -2
- package/dist/esm/queries/for_QueryFor/given/TestQueries.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_for.d.ts +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_for.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_for.js +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_for.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.d.ts +4 -4
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.js +4 -4
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_constructing.js +5 -5
- package/dist/esm/queries/for_QueryFor/when_constructing.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_a_nullish_transport_rejection.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_a_nullish_transport_rejection.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_an_aborted_request.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_an_aborted_request.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.js +2 -2
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_parameter_descriptor_values.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_parameter_descriptor_values.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.js +2 -2
- package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_paging.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_performing/with_paging.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_partially_missing_required_arguments.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_partially_missing_required_arguments.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_http_method.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_http_method.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.js +5 -5
- package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.js +2 -2
- package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_setting_microservice.js +2 -2
- package/dist/esm/queries/for_QueryFor/when_setting_microservice.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_setting_origin.js +2 -2
- package/dist/esm/queries/for_QueryFor/when_setting_origin.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_acquiring/after_release.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_acquiring/after_release.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_arguments.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_arguments.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_empty_arguments_object.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_empty_arguments_object.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_same_arguments_different_order.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_same_arguments_different_order.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/without_arguments.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/without_arguments.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_deferring_dispose/with_cancellation_before_timeout.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_deferring_dispose/with_cancellation_before_timeout.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_deferring_dispose/without_cancellation.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_deferring_dispose/without_cancellation.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/an_empty_cache.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/an_empty_cache.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/with_active_subscriptions.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/with_active_subscriptions.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/with_pending_deferred_cleanup.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/with_pending_deferred_cleanup.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_last_result/with_no_result_stored.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_last_result/with_no_result_stored.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_last_result/with_stored_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_last_result/with_stored_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_or_creating/with_existing_entry.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_or_creating/with_existing_entry.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_or_creating/with_new_entry.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_or_creating/with_new_entry.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/a_key_that_does_not_exist.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/a_key_that_does_not_exist.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/one_of_two_subscribers.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/one_of_two_subscribers.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/the_only_subscriber.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/the_only_subscriber.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/after_timeout_elapses.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/after_timeout_elapses.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/before_timeout_elapses.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/before_timeout_elapses.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_partially_changed_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_partially_changed_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_re_delivered_identical_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_re_delivered_identical_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_changed_data.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_changed_data.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_identical_data_as_previous_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_identical_data_as_previous_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_only_readiness_changed.js +3 -3
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_only_readiness_changed.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/without_previous_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/without_previous_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_active_subscriptions.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_active_subscriptions.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_no_subscriptions.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_no_subscriptions.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_pending_deferred_cleanup.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_pending_deferred_cleanup.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_enumerable.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_enumerable.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_non_enumerable.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_non_enumerable.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result/with_readiness_false.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result/with_readiness_false.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result/without_readiness.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result/without_readiness.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result_with_a_constraint_violation.js +3 -3
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result_with_a_constraint_violation.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_creating_a_validation_failed_result.js +4 -4
- package/dist/esm/queries/for_QueryResult/when_creating_a_validation_failed_result.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_data_is_single_item_for_enumerable/and_it_is_an_array.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_data_is_single_item_for_enumerable/and_it_is_an_array.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_empty/with_null_default_value.js +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_empty/with_null_default_value.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_empty/with_undefined_default_value.js +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_empty/with_undefined_default_value.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_null_data.js +2 -2
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_null_data.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_readiness_false.js +2 -2
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_readiness_false.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_undefined_data.js +2 -2
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_undefined_data.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/without_readiness.js +2 -2
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/without_readiness.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_null_default_value.js +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_null_default_value.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_undefined_default_value.js +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_undefined_default_value.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_valid_default_value.js +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_valid_default_value.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_canceling/with_pending_timer.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_canceling/with_pending_timer.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_cancelling/with_pending_timer.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_cancelling/with_pending_timer.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_resetting/after_scheduling.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_resetting/after_scheduling.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/delay_is_capped_at_max.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/delay_is_capped_at_max.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/first_attempt.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/first_attempt.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_reached/abandons_reconnect.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_reached/abandons_reconnect.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_rescheduled_before_first_fires/cancels_previous_timer.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_rescheduled_before_first_fires/cancels_previous_timer.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.d.ts +2 -2
- package/dist/esm/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.d.ts.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.js +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_a_retired_event_source_fires/ignores_connected_and_error_callbacks.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_a_retired_event_source_fires/ignores_connected_and_error_callbacks.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connect_timeout_fires/triggers_reconnect.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connect_timeout_fires/triggers_reconnect.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_replaced.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_replaced.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_unsubscribed.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_unsubscribed.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_is_rejected.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_is_rejected.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_returns_non_ok.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_returns_non_ok.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_disposing/cleans_up_resources.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_disposing/cleans_up_resources.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_keep_alive_is_idle/triggers_reconnect.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_keep_alive_is_idle/triggers_reconnect.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_reconnecting/after_error.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_reconnecting/after_error.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_reconnecting/and_an_immediate_open_wins_the_backoff_race.js +2 -2
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_reconnecting/and_an_immediate_open_wins_the_backoff_race.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_replacing_a_subscription/ignores_messages_from_the_retired_generation.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_replacing_a_subscription/ignores_messages_from_the_retired_generation.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_server_advertises_a_longer_keep_alive_interval/does_not_reconnect_at_the_assumed_threshold.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_server_advertises_a_longer_keep_alive_interval/does_not_reconnect_at_the_assumed_threshold.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_server_reports_keep_alive_disabled/never_reconnects_from_idle.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_server_reports_keep_alive_disabled/never_reconnects_from_idle.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/and_subscribe_post_fails.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/and_subscribe_post_fails.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/queues_until_connected.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/queues_until_connected.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/sends_subscribe_post.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/sends_subscribe_post.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/uses_custom_event_source_factory.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/uses_custom_event_source_factory.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscription_revisions_are_not_advertised/uses_legacy_protocol.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscription_revisions_are_not_advertised/uses_legacy_protocol.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_unsubscribing/nulls_event_source_handlers_before_closing.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_unsubscribing/nulls_event_source_handlers_before_closing.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_unsubscribing/the_only_query.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_unsubscribing/the_only_query.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/with_custom_event_source_factory.js +2 -2
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/with_custom_event_source_factory.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/with_query_arguments.js +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/with_query_arguments.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/without_event_source_available.js +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/without_event_source_available.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_disconnecting/after_connecting.js +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_disconnecting/after_connecting.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_disconnecting/before_message_arrives.js +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_disconnecting/before_message_arrives.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.js +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_empty_string_value.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_empty_string_value.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_missing_property.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_missing_property.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_no_required_arguments.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_no_required_arguments.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_null_value.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_null_value.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_numeric_zero_value.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_numeric_zero_value.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_undefined_value.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_undefined_value.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_valid_string_value.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_valid_string_value.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/without_arguments_object.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/without_arguments_object.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.d.ts +2 -2
- package/dist/esm/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.d.ts.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.js +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_disposing/cleans_up_resources.js +2 -2
- package/dist/esm/queries/for_WebSocketHubConnection/when_disposing/cleans_up_resources.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_keep_alive_is_idle/sends_a_ping.js +4 -4
- package/dist/esm/queries/for_WebSocketHubConnection/when_keep_alive_is_idle/sends_a_ping.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_receiving_a_message/resets_keep_alive_timer.js +4 -4
- package/dist/esm/queries/for_WebSocketHubConnection/when_receiving_a_message/resets_keep_alive_timer.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/after_unexpected_close.js +2 -2
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/after_unexpected_close.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/ignores_a_pending_reconnect_and_stale_socket_callbacks.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/ignores_a_pending_reconnect_and_stale_socket_callbacks.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/replaces_a_closing_socket_safely.js +2 -2
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/replaces_a_closing_socket_safely.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/resubscribes_all_queries.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/resubscribes_all_queries.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_replacing_a_subscription/ignores_stale_result_unauthorized_and_error.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_replacing_a_subscription/ignores_stale_result_unauthorized_and_error.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_subscribing/to_a_query.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_subscribing/to_a_query.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_subscription_revisions_are_supported/upgrades_active_subscriptions_to_strict_mode.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_subscription_revisions_are_supported/upgrades_active_subscriptions_to_strict_mode.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/nulls_socket_handlers_before_closing.js +2 -2
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/nulls_socket_handlers_before_closing.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/the_only_query.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/the_only_query.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/with_revision_support_not_advertised.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/with_revision_support_not_advertised.js.map +1 -1
- package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.js +1 -1
- package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.js.map +1 -1
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_get_method.js +4 -4
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_get_method.js.map +1 -1
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_query_method.js +4 -4
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_query_method.js.map +1 -1
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_query_method_and_paging_and_sorting.js +5 -5
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_query_method_and_paging_and_sorting.js.map +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_models.js +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_models.js.map +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_numbers.js +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_numbers.js.map +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_strings.js +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_strings.js.map +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_non_array_as_a_collection.js +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_non_array_as_a_collection.js.map +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_single_string.js +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_single_string.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/options.d.ts +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/options.d.ts.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/options.js +2 -2
- package/dist/esm/queries/for_executeQueryHttpRequest/options.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver.js +5 -5
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver_and_an_explicit_override.js +5 -5
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver_and_an_explicit_override.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_after_query_was_found_unsupported.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_after_query_was_found_unsupported.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_a_network_failure.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_a_network_failure.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_aborted_request.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_aborted_request.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_application_error.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_application_error.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_multiple_backends.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_multiple_backends.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_supported.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_supported.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_unsupported.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_unsupported.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_get_method.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_get_method.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_query_method_and_server_rejecting_the_verb.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_query_method_and_server_rejecting_the_verb.js.map +1 -1
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url.js +2 -2
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url.js.map +1 -1
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url_and_a_custom_method.js +2 -2
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url_and_a_custom_method.js.map +1 -1
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_short_url.js +2 -2
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_short_url.js.map +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_items_are_added_or_removed/reuses_the_surviving_items.js +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_items_are_added_or_removed/reuses_the_surviving_items.js.map +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_one_item_changed/only_the_changed_item_gets_a_new_reference.js +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_one_item_changed/only_the_changed_item_gets_a_new_reference.js.map +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_reconciling_an_unchanged_collection/preserves_all_references.js +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_reconciling_an_unchanged_collection/preserves_all_references.js.map +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_reconciling_non_collection_payloads/compares_by_value.js +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_reconciling_non_collection_payloads/compares_by_value.js.map +1 -1
- package/dist/esm/queries/index.d.ts +43 -43
- package/dist/esm/queries/index.d.ts.map +1 -1
- package/dist/esm/queries/index.js.map +1 -1
- package/dist/esm/queries/reconcileQueryData.js.map +1 -1
- package/dist/esm/reflection/IHaveParameters.d.ts +1 -1
- package/dist/esm/reflection/IHaveParameters.d.ts.map +1 -1
- package/dist/esm/reflection/ParametersHelper.d.ts +1 -1
- package/dist/esm/reflection/ParametersHelper.d.ts.map +1 -1
- package/dist/esm/reflection/ParametersHelper.js.map +1 -1
- package/dist/esm/reflection/index.d.ts +4 -4
- package/dist/esm/reflection/index.d.ts.map +1 -1
- package/dist/esm/reflection/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/validation/IValidationRule.d.ts +1 -1
- package/dist/esm/validation/IValidationRule.d.ts.map +1 -1
- package/dist/esm/validation/PropertyRule.d.ts +2 -2
- package/dist/esm/validation/PropertyRule.d.ts.map +1 -1
- package/dist/esm/validation/PropertyRule.js.map +1 -1
- package/dist/esm/validation/PropertyValidator.d.ts +2 -2
- package/dist/esm/validation/PropertyValidator.d.ts.map +1 -1
- package/dist/esm/validation/PropertyValidator.js.map +1 -1
- package/dist/esm/validation/RuleBuilder.d.ts +2 -2
- package/dist/esm/validation/RuleBuilder.d.ts.map +1 -1
- package/dist/esm/validation/RuleBuilder.js.map +1 -1
- package/dist/esm/validation/RuleBuilderExtensions.d.ts +2 -2
- package/dist/esm/validation/RuleBuilderExtensions.d.ts.map +1 -1
- package/dist/esm/validation/RuleBuilderExtensions.js.map +1 -1
- package/dist/esm/validation/ValidationResult.d.ts +2 -2
- package/dist/esm/validation/ValidationResult.d.ts.map +1 -1
- package/dist/esm/validation/ValidationResult.js.map +1 -1
- package/dist/esm/validation/Validator.d.ts +2 -2
- package/dist/esm/validation/Validator.d.ts.map +1 -1
- package/dist/esm/validation/Validator.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts +1 -1
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts.map +1 -1
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.js +2 -2
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.d.ts +1 -1
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.d.ts.map +1 -1
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.js +2 -2
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.d.ts +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.d.ts.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.js +2 -2
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.js +2 -2
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.d.ts +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.d.ts.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.js +2 -2
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.js.map +1 -1
- package/dist/esm/validation/index.d.ts +14 -14
- package/dist/esm/validation/index.d.ts.map +1 -1
- package/dist/esm/validation/index.js.map +1 -1
- package/dist/esm/validation/rules/ComparisonRules.d.ts +1 -1
- package/dist/esm/validation/rules/ComparisonRules.d.ts.map +1 -1
- package/dist/esm/validation/rules/ComparisonRules.js.map +1 -1
- package/dist/esm/validation/rules/EmailRule.d.ts +1 -1
- package/dist/esm/validation/rules/EmailRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/EmailRule.js.map +1 -1
- package/dist/esm/validation/rules/LengthRules.d.ts +1 -1
- package/dist/esm/validation/rules/LengthRules.d.ts.map +1 -1
- package/dist/esm/validation/rules/LengthRules.js.map +1 -1
- package/dist/esm/validation/rules/NotEmptyRule.d.ts +1 -1
- package/dist/esm/validation/rules/NotEmptyRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/NotEmptyRule.js.map +1 -1
- package/dist/esm/validation/rules/PhoneRule.d.ts +1 -1
- package/dist/esm/validation/rules/PhoneRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/PhoneRule.js.map +1 -1
- package/dist/esm/validation/rules/RegexRule.d.ts +1 -1
- package/dist/esm/validation/rules/RegexRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/RegexRule.js.map +1 -1
- package/dist/esm/validation/rules/UrlRule.d.ts +1 -1
- package/dist/esm/validation/rules/UrlRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/UrlRule.js.map +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.js +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.js.map +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.js +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.js.map +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.js +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.js.map +1 -1
- package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.js +1 -1
- package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.js.map +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.js +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.js.map +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.js +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.js.map +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.js +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.js.map +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.js +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.js.map +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.js +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.js.map +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.js +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.js.map +1 -1
- package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.js +1 -1
- package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.js.map +1 -1
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.js +1 -1
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.js.map +1 -1
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.js +1 -1
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.js.map +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.js +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.js.map +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.js +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.js.map +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.js +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.js +2 -2
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.js +2 -2
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.js.map +1 -1
- package/for_UrlHelpers/when_building_query_params/with_additional_parameters.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_array_values.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_date_values.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_empty_parameters.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_mixed_array_and_scalar_values.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/with_empty_origin.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/with_relative_route.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/with_valid_parameters.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/without_document_object.ts +1 -1
- package/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.ts +1 -1
- package/for_UrlHelpers/when_replacing_route_parameters/with_array_parameters.ts +1 -1
- package/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.ts +1 -1
- package/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.ts +1 -1
- package/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.ts +1 -1
- package/identity/IIdentityProvider.ts +1 -1
- package/identity/IdentityProvider.ts +8 -8
- package/identity/for_IdentityProvider/given/an_identity_provider.ts +2 -2
- package/identity/for_IdentityProvider/when_getting_current/with_a_details_type_that_declares_no_fields.ts +3 -3
- package/identity/for_IdentityProvider/when_getting_current/with_roles.ts +3 -3
- package/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.ts +3 -3
- package/identity/for_IdentityProvider/when_getting_current/without_roles.ts +3 -3
- package/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.ts +3 -3
- package/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.ts +4 -4
- package/identity/for_IdentityProvider/when_refreshing/with_origin_set.ts +3 -3
- package/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.ts +3 -3
- package/identity/for_IdentityProvider/when_refreshing/with_unauthorized_response.ts +4 -4
- package/identity/for_IdentityProvider/when_refreshing/without_api_base_path.ts +4 -4
- package/identity/for_IdentityProvider/when_setting_api_base_path.ts +3 -3
- package/identity/for_IdentityProvider/when_setting_origin.ts +3 -3
- package/identity/index.ts +5 -5
- package/index.ts +12 -12
- package/messaging/Messenger.ts +2 -2
- package/messaging/for_Messenger/when_scoping_messages.ts +1 -1
- package/messaging/index.ts +3 -3
- package/package.json +58 -22
- package/queries/IChangeStreamFor.ts +1 -1
- package/queries/IObservableQueryConnection.ts +1 -1
- package/queries/IObservableQueryDiagnostics.ts +1 -1
- package/queries/IObservableQueryFor.ts +4 -4
- package/queries/IObservableQueryHubConnection.ts +2 -2
- package/queries/IQuery.ts +4 -4
- package/queries/IQueryFor.ts +3 -3
- package/queries/IQueryProvider.ts +1 -1
- package/queries/IQueryResult.ts +3 -3
- package/queries/NullObservableQueryConnection.ts +3 -3
- package/queries/ObservableQueryConnection.ts +6 -6
- package/queries/ObservableQueryConnectionFactory.ts +10 -10
- package/queries/ObservableQueryConnectionPool.ts +2 -2
- package/queries/ObservableQueryDiagnostics.ts +4 -4
- package/queries/ObservableQueryFor.ts +19 -19
- package/queries/ObservableQueryMultiplexer.ts +6 -6
- package/queries/ObservableQuerySubscription.ts +1 -1
- package/queries/QueryFor.ts +13 -13
- package/queries/QueryHttpMethodResolver.ts +1 -1
- package/queries/QueryHttpRequest.ts +8 -8
- package/queries/QueryInstanceCache.ts +3 -3
- package/queries/QueryProvider.ts +3 -3
- package/queries/QueryResult.ts +5 -5
- package/queries/QueryResultWithState.ts +4 -4
- package/queries/QueryValidator.ts +2 -2
- package/queries/ReconnectPolicy.ts +1 -1
- package/queries/ServerSentEventHubConnection.ts +8 -8
- package/queries/ServerSentEventQueryConnection.ts +4 -4
- package/queries/Sorting.ts +1 -1
- package/queries/SortingActions.ts +2 -2
- package/queries/SortingActionsForObservableQuery.ts +3 -3
- package/queries/SortingActionsForQuery.ts +3 -3
- package/queries/WebSocketHubConnection.ts +6 -6
- package/queries/for_HubConnectionKeepAlive/behavior.ts +1 -1
- package/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_running.ts +1 -1
- package/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_stopped.ts +1 -1
- package/queries/for_HubConnectionKeepAlive/when_started_with_custom_idle_threshold/respects_threshold.ts +1 -1
- package/queries/for_ObservableQueryConnection/given/an_observable_query_connection.ts +1 -1
- package/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_a_reconnect_policy.ts +2 -2
- package/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.ts +1 -1
- package/queries/for_ObservableQueryConnection/when_constructing.ts +2 -2
- package/queries/for_ObservableQueryConnection/when_receiving_data_message_with_type.ts +4 -4
- package/queries/for_ObservableQueryConnection/when_receiving_legacy_data_message.ts +3 -3
- package/queries/for_ObservableQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.ts +4 -4
- package/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.ts +3 -3
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_sse_transport.ts +7 -7
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_websocket_transport.ts +7 -7
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport.ts +8 -8
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_exceeding_safe_limit.ts +7 -7
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_within_safe_limit.ts +7 -7
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport.ts +7 -7
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport_and_high_connection_count.ts +7 -7
- package/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_least_loaded_slot_is_chosen.ts +3 -3
- package/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_size_is_zero.ts +3 -3
- package/queries/for_ObservableQueryConnectionPool/when_acquiring/with_single_slot/and_one_subscriber.ts +3 -3
- package/queries/for_ObservableQueryDiagnostics/when_tracking_owners.ts +1 -1
- package/queries/for_ObservableQueryFor/given/TestQueries.ts +2 -2
- package/queries/for_ObservableQueryFor/given/an_observable_query_for.ts +1 -1
- package/queries/for_ObservableQueryFor/given/an_observable_query_with_validator.ts +4 -4
- package/queries/for_ObservableQueryFor/when_constructing.ts +5 -5
- package/queries/for_ObservableQueryFor/when_constructing_enumerable.ts +4 -4
- package/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.ts +4 -4
- package/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.ts +4 -4
- package/queries/for_ObservableQueryFor/when_disposing.ts +2 -2
- package/queries/for_ObservableQueryFor/when_performing/with_a_not_ready_result.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_client_validation_failing.ts +3 -3
- package/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.ts +3 -3
- package/queries/for_ObservableQueryFor/when_performing/with_paging.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_partially_missing_required_arguments.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_sorting.ts +5 -5
- package/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.ts +4 -4
- package/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_has_a_calendar_collection.ts +8 -8
- package/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_type_is_a_primitive_collection.ts +7 -7
- package/queries/for_ObservableQueryFor/when_setting_api_base_path.ts +1 -1
- package/queries/for_ObservableQueryFor/when_setting_microservice.ts +1 -1
- package/queries/for_ObservableQueryFor/when_setting_origin.ts +1 -1
- package/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_failing.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_passing.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_and_sse_transport.ts +5 -5
- package/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_disabled_and_sse_transport.ts +8 -8
- package/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_enabled.ts +4 -4
- package/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_multiple_required_route_parameters.ts +7 -7
- package/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_null_or_undefined_args.ts +7 -7
- package/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_route_and_query_args.ts +7 -7
- package/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_stale_descriptor_backed_instance_property.ts +7 -7
- package/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_paging.ts +4 -4
- package/queries/for_ObservableQueryFor/when_subscribing/with_partially_missing_required_arguments.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.ts +4 -4
- package/queries/for_ObservableQueryFor/when_subscribing/with_sorting.ts +5 -5
- package/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_web_socket_hub_payload_without_readiness.ts +7 -7
- package/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_changed_cache_key.ts +2 -2
- package/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_new_cache_key.ts +2 -2
- package/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_an_explicit_size.ts +2 -2
- package/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_the_same_cache_key.ts +2 -2
- package/queries/for_QueryFor/given/TestQueries.ts +2 -2
- package/queries/for_QueryFor/given/a_query_for.ts +1 -1
- package/queries/for_QueryFor/given/a_query_with_validator.ts +5 -5
- package/queries/for_QueryFor/when_constructing.ts +5 -5
- package/queries/for_QueryFor/when_constructing_enumerable.ts +4 -4
- package/queries/for_QueryFor/when_constructing_with_globals_api_base_path.ts +4 -4
- package/queries/for_QueryFor/when_constructing_with_globals_origin.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_a_nullish_transport_rejection.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_abort_controller.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_an_aborted_request.ts +3 -3
- package/queries/for_QueryFor/when_performing/with_client_validation_failing.ts +5 -5
- package/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.ts +3 -3
- package/queries/for_QueryFor/when_performing/with_client_validation_passing.ts +5 -5
- package/queries/for_QueryFor/when_performing/with_enumerable_parameter_descriptor_values.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_enumerable_query.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_fetch_error.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_invalid_arguments.ts +3 -3
- package/queries/for_QueryFor/when_performing/with_json_parse_error.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_paging.ts +5 -5
- package/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_partially_missing_required_arguments.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_query_http_method.ts +5 -5
- package/queries/for_QueryFor/when_performing/with_query_without_required_parameters.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_sorting.ts +6 -6
- package/queries/for_QueryFor/when_performing/with_valid_arguments.ts +4 -4
- package/queries/for_QueryFor/when_setting_api_base_path.ts +2 -2
- package/queries/for_QueryFor/when_setting_microservice.ts +2 -2
- package/queries/for_QueryFor/when_setting_origin.ts +2 -2
- package/queries/for_QueryInstanceCache/when_acquiring/after_release.ts +1 -1
- package/queries/for_QueryInstanceCache/when_building_key/with_arguments.ts +1 -1
- package/queries/for_QueryInstanceCache/when_building_key/with_empty_arguments_object.ts +1 -1
- package/queries/for_QueryInstanceCache/when_building_key/with_same_arguments_different_order.ts +1 -1
- package/queries/for_QueryInstanceCache/when_building_key/without_arguments.ts +1 -1
- package/queries/for_QueryInstanceCache/when_deferring_dispose/with_cancellation_before_timeout.ts +1 -1
- package/queries/for_QueryInstanceCache/when_deferring_dispose/without_cancellation.ts +1 -1
- package/queries/for_QueryInstanceCache/when_disposing/an_empty_cache.ts +1 -1
- package/queries/for_QueryInstanceCache/when_disposing/with_active_subscriptions.ts +1 -1
- package/queries/for_QueryInstanceCache/when_disposing/with_pending_deferred_cleanup.ts +1 -1
- package/queries/for_QueryInstanceCache/when_getting_last_result/with_no_result_stored.ts +1 -1
- package/queries/for_QueryInstanceCache/when_getting_last_result/with_stored_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_getting_or_creating/with_existing_entry.ts +1 -1
- package/queries/for_QueryInstanceCache/when_getting_or_creating/with_new_entry.ts +1 -1
- package/queries/for_QueryInstanceCache/when_releasing/a_key_that_does_not_exist.ts +1 -1
- package/queries/for_QueryInstanceCache/when_releasing/one_of_two_subscribers.ts +1 -1
- package/queries/for_QueryInstanceCache/when_releasing/the_only_subscriber.ts +1 -1
- package/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/after_timeout_elapses.ts +1 -1
- package/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/before_timeout_elapses.ts +1 -1
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_a_partially_changed_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_a_re_delivered_identical_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_a_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_changed_data.ts +2 -2
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_identical_data_as_previous_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_only_readiness_changed.ts +3 -3
- package/queries/for_QueryInstanceCache/when_setting_last_result/without_previous_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_active_subscriptions.ts +1 -1
- package/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_no_subscriptions.ts +1 -1
- package/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_pending_deferred_cleanup.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_null_for_enumerable.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_non_enumerable.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.ts +1 -1
- package/queries/for_QueryResult/when_constructing_from_a_server_result/with_readiness_false.ts +1 -1
- package/queries/for_QueryResult/when_constructing_from_a_server_result/without_readiness.ts +1 -1
- package/queries/for_QueryResult/when_constructing_from_a_server_result_with_a_constraint_violation.ts +3 -3
- package/queries/for_QueryResult/when_creating_a_validation_failed_result.ts +4 -4
- package/queries/for_QueryResult/when_data_is_single_item_for_enumerable/and_it_is_an_array.ts +1 -1
- package/queries/for_QueryResultWithState/when_creating_empty/with_null_default_value.ts +1 -1
- package/queries/for_QueryResultWithState/when_creating_empty/with_undefined_default_value.ts +1 -1
- package/queries/for_QueryResultWithState/when_creating_from_query_result/with_null_data.ts +2 -2
- package/queries/for_QueryResultWithState/when_creating_from_query_result/with_readiness_false.ts +2 -2
- package/queries/for_QueryResultWithState/when_creating_from_query_result/with_undefined_data.ts +2 -2
- package/queries/for_QueryResultWithState/when_creating_from_query_result/without_readiness.ts +3 -3
- package/queries/for_QueryResultWithState/when_creating_initial/with_null_default_value.ts +1 -1
- package/queries/for_QueryResultWithState/when_creating_initial/with_undefined_default_value.ts +1 -1
- package/queries/for_QueryResultWithState/when_creating_initial/with_valid_default_value.ts +1 -1
- package/queries/for_ReconnectPolicy/when_canceling/with_pending_timer.ts +1 -1
- package/queries/for_ReconnectPolicy/when_cancelling/with_pending_timer.ts +1 -1
- package/queries/for_ReconnectPolicy/when_resetting/after_scheduling.ts +1 -1
- package/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/delay_is_capped_at_max.ts +1 -1
- package/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/first_attempt.ts +1 -1
- package/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_reached/abandons_reconnect.ts +1 -1
- package/queries/for_ReconnectPolicy/when_scheduling/and_rescheduled_before_first_fires/cancels_previous_timer.ts +1 -1
- package/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.ts +2 -2
- package/queries/for_ServerSentEventHubConnection/when_a_retired_event_source_fires/ignores_connected_and_error_callbacks.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_connect_timeout_fires/triggers_reconnect.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_replaced.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_unsubscribed.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_is_rejected.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_returns_non_ok.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_disposing/cleans_up_resources.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_keep_alive_is_idle/triggers_reconnect.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_reconnecting/after_error.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_reconnecting/and_an_immediate_open_wins_the_backoff_race.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_replacing_a_subscription/ignores_messages_from_the_retired_generation.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_server_advertises_a_longer_keep_alive_interval/does_not_reconnect_at_the_assumed_threshold.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_server_reports_keep_alive_disabled/never_reconnects_from_idle.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_subscribing/and_subscribe_post_fails.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_subscribing/queues_until_connected.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_subscribing/sends_subscribe_post.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_subscribing/uses_custom_event_source_factory.ts +5 -5
- package/queries/for_ServerSentEventHubConnection/when_subscription_revisions_are_not_advertised/uses_legacy_protocol.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_unsubscribing/nulls_event_source_handlers_before_closing.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_unsubscribing/the_only_query.ts +3 -3
- package/queries/for_ServerSentEventQueryConnection/when_connecting/with_custom_event_source_factory.ts +4 -4
- package/queries/for_ServerSentEventQueryConnection/when_connecting/with_query_arguments.ts +2 -2
- package/queries/for_ServerSentEventQueryConnection/when_connecting/without_event_source_available.ts +2 -2
- package/queries/for_ServerSentEventQueryConnection/when_disconnecting/after_connecting.ts +2 -2
- package/queries/for_ServerSentEventQueryConnection/when_disconnecting/before_message_arrives.ts +1 -1
- package/queries/for_ServerSentEventQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.ts +2 -2
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_empty_string_value.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_missing_property.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_no_required_arguments.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_null_value.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_numeric_zero_value.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_undefined_value.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_valid_string_value.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/without_arguments_object.ts +1 -1
- package/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_disposing/cleans_up_resources.ts +2 -2
- package/queries/for_WebSocketHubConnection/when_keep_alive_is_idle/sends_a_ping.ts +4 -4
- package/queries/for_WebSocketHubConnection/when_receiving_a_message/resets_keep_alive_timer.ts +4 -4
- package/queries/for_WebSocketHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.ts +4 -4
- package/queries/for_WebSocketHubConnection/when_reconnecting/after_unexpected_close.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_reconnecting/ignores_a_pending_reconnect_and_stale_socket_callbacks.ts +4 -4
- package/queries/for_WebSocketHubConnection/when_reconnecting/replaces_a_closing_socket_safely.ts +2 -2
- package/queries/for_WebSocketHubConnection/when_reconnecting/resubscribes_all_queries.ts +4 -4
- package/queries/for_WebSocketHubConnection/when_replacing_a_subscription/ignores_stale_result_unauthorized_and_error.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_subscribing/to_a_query.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_subscription_revisions_are_supported/upgrades_active_subscriptions_to_strict_mode.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_unsubscribing/nulls_socket_handlers_before_closing.ts +2 -2
- package/queries/for_WebSocketHubConnection/when_unsubscribing/the_only_query.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_unsubscribing/with_revision_support_not_advertised.ts +3 -3
- package/queries/for_WebSocketMessage/when_creating_messages.ts +1 -1
- package/queries/for_buildQueryHttpRequest/when_building/with_get_method.ts +4 -4
- package/queries/for_buildQueryHttpRequest/when_building/with_query_method.ts +4 -4
- package/queries/for_buildQueryHttpRequest/when_building/with_query_method_and_paging_and_sorting.ts +5 -5
- package/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_models.ts +1 -1
- package/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_numbers.ts +1 -1
- package/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_strings.ts +1 -1
- package/queries/for_deserializeQueryModel/when_deserializing_a_non_array_as_a_collection.ts +1 -1
- package/queries/for_deserializeQueryModel/when_deserializing_a_single_string.ts +1 -1
- package/queries/for_executeQueryHttpRequest/options.ts +3 -3
- package/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver.ts +5 -5
- package/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver_and_an_explicit_override.ts +5 -5
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_after_query_was_found_unsupported.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_a_network_failure.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_aborted_request.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_application_error.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_multiple_backends.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_supported.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_unsupported.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_get_method.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_query_method_and_server_rejecting_the_verb.ts +4 -4
- package/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url.ts +2 -2
- package/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url_and_a_custom_method.ts +2 -2
- package/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_short_url.ts +2 -2
- package/queries/for_reconcileQueryData/when_items_are_added_or_removed/reuses_the_surviving_items.ts +1 -1
- package/queries/for_reconcileQueryData/when_one_item_changed/only_the_changed_item_gets_a_new_reference.ts +1 -1
- package/queries/for_reconcileQueryData/when_reconciling_an_unchanged_collection/preserves_all_references.ts +1 -1
- package/queries/for_reconcileQueryData/when_reconciling_non_collection_payloads/compares_by_value.ts +1 -1
- package/queries/index.ts +43 -43
- package/queries/reconcileQueryData.ts +1 -1
- package/reflection/IHaveParameters.ts +1 -1
- package/reflection/ParametersHelper.ts +1 -1
- package/reflection/index.ts +4 -4
- package/validation/IValidationRule.ts +1 -1
- package/validation/PropertyRule.ts +3 -3
- package/validation/PropertyValidator.ts +2 -2
- package/validation/RuleBuilder.ts +3 -3
- package/validation/RuleBuilderExtensions.ts +9 -9
- package/validation/ValidationResult.ts +2 -2
- package/validation/Validator.ts +3 -3
- package/validation/for_Validator/when_defining_multiple_rules_for_same_property.ts +2 -2
- package/validation/for_Validator/when_using_custom_error_message.ts +2 -2
- package/validation/for_Validator/when_validating/with_all_rules_passing.ts +2 -2
- package/validation/for_Validator/when_validating/with_multiple_rules_failing.ts +2 -2
- package/validation/for_Validator/when_validating/with_one_rule_failing.ts +2 -2
- package/validation/index.ts +14 -14
- package/validation/rules/ComparisonRules.ts +1 -1
- package/validation/rules/EmailRule.ts +1 -1
- package/validation/rules/LengthRules.ts +1 -1
- package/validation/rules/NotEmptyRule.ts +1 -1
- package/validation/rules/PhoneRule.ts +1 -1
- package/validation/rules/RegexRule.ts +1 -1
- package/validation/rules/UrlRule.ts +1 -1
- package/validation/rules/for_EmailRule/when_validating/with_empty_string.ts +1 -1
- package/validation/rules/for_EmailRule/when_validating/with_invalid_email.ts +1 -1
- package/validation/rules/for_EmailRule/when_validating/with_valid_email.ts +1 -1
- package/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.ts +1 -1
- package/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.ts +1 -1
- package/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.ts +1 -1
- package/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.ts +1 -1
- package/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.ts +1 -1
- package/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.ts +1 -1
- package/validation/rules/for_LengthRule/when_validating/with_string_within_range.ts +1 -1
- package/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.ts +1 -1
- package/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.ts +1 -1
- package/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.ts +1 -1
- package/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.ts +1 -1
- package/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.ts +1 -1
- package/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_setting_custom_message.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_validating/with_null_value.ts +2 -2
- package/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.ts +2 -2
- package/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IObservableQueryConnection.d.ts","sourceRoot":"","sources":["../../../queries/IObservableQueryConnection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAK9D,MAAM,WAAW,0BAA0B,CAAC,SAAS;IAIjD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAKjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAOhC,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAK9E,UAAU,QAAG;CAChB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ObservableQueryDiagnosticsSnapshot } from './ObservableQueryDiagnosticsSnapshot.js';
|
|
3
|
+
export interface IObservableQueryDiagnostics {
|
|
4
|
+
getSnapshot(): ObservableQueryDiagnosticsSnapshot;
|
|
5
|
+
readonly snapshots$: Observable<ObservableQueryDiagnosticsSnapshot>;
|
|
6
|
+
beginTracking(cacheKey: string, owner: string): void;
|
|
7
|
+
endTracking(cacheKey: string): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=IObservableQueryDiagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IObservableQueryDiagnostics.d.ts","sourceRoot":"","sources":["../../../queries/IObservableQueryDiagnostics.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAS7F,MAAM,WAAW,2BAA2B;IAIxC,WAAW,IAAI,kCAAkC,CAAC;IAKlD,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,kCAAkC,CAAC,CAAC;IASpE,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAOrD,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ObservableQuerySubscription } from './ObservableQuerySubscription.js';
|
|
2
|
+
import { QueryResult } from './QueryResult.js';
|
|
3
|
+
import { IQuery } from './IQuery.js';
|
|
4
|
+
import { IHaveParameters } from '../reflection/IHaveParameters.js';
|
|
5
|
+
export type OnNextResult<TDataType> = (data: TDataType) => void;
|
|
6
|
+
export interface IObservableQueryFor<TDataType, TArguments = object> extends IQuery, IHaveParameters {
|
|
7
|
+
readonly route: string;
|
|
8
|
+
readonly requiredRequestParameters: string[];
|
|
9
|
+
readonly defaultValue: TDataType;
|
|
10
|
+
readonly roles: string[];
|
|
11
|
+
subscribe(callback: OnNextResult<QueryResult<TDataType>>, args?: TArguments): ObservableQuerySubscription<TDataType>;
|
|
12
|
+
perform(args?: TArguments): Promise<QueryResult<TDataType>>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=IObservableQueryFor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IObservableQueryFor.d.ts","sourceRoot":"","sources":["../../../queries/IObservableQueryFor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAKnE,MAAM,MAAM,YAAY,CAAC,SAAS,IAAI,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;AAOhE,MAAM,WAAW,mBAAmB,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,CAAE,SAAQ,MAAM,EAAE,eAAe;IAChG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,yBAAyB,EAAE,MAAM,EAAE,CAAC;IAC7C,QAAQ,CAAC,YAAY,EAAE,SAAS,CAAC;IAKjC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IAQzB,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,2BAA2B,CAAC,SAAS,CAAC,CAAC;IAOrH,OAAO,CAAC,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;CAC/D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DataReceived } from './ObservableQueryConnection.js';
|
|
2
|
+
import { SubscriptionRequest } from './WebSocketHubConnection.js';
|
|
3
|
+
export interface IObservableQueryHubConnection {
|
|
4
|
+
readonly queryCount: number;
|
|
5
|
+
readonly isConnected: boolean;
|
|
6
|
+
readonly lastPingLatency: number;
|
|
7
|
+
readonly averageLatency: number;
|
|
8
|
+
subscribe(queryId: string, request: SubscriptionRequest, callback: DataReceived<any>): void;
|
|
9
|
+
unsubscribe(queryId: string): void;
|
|
10
|
+
dispose(): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=IObservableQueryHubConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IObservableQueryHubConnection.d.ts","sourceRoot":"","sources":["../../../queries/IObservableQueryHubConnection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAWlE,MAAM,WAAW,6BAA6B;IAI1C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAK5B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAK9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAKjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAQhC,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,YAAY,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IAM5F,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAKnC,OAAO,IAAI,IAAI,CAAC;CACnB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ICanBeConfigured } from '../ICanBeConfigured.js';
|
|
2
|
+
import { Paging } from './Paging.js';
|
|
3
|
+
import { Sorting } from './Sorting.js';
|
|
4
|
+
import { QueryHttpMethod } from './QueryHttpMethod.js';
|
|
5
|
+
export interface IQuery extends ICanBeConfigured {
|
|
6
|
+
setHttpMethod(method: QueryHttpMethod): void;
|
|
7
|
+
get sorting(): Sorting;
|
|
8
|
+
set sorting(value: Sorting);
|
|
9
|
+
get paging(): Paging;
|
|
10
|
+
set paging(value: Paging);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=IQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IQuery.d.ts","sourceRoot":"","sources":["../../../queries/IQuery.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKvD,MAAM,WAAW,MAAO,SAAQ,gBAAgB;IAK5C,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IAK7C,IAAI,OAAO,IAAI,OAAO,CAAC;IAKvB,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE;IAK5B,IAAI,MAAM,IAAI,MAAM,CAAC;IAKrB,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE;CAC7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QueryResult } from './QueryResult.js';
|
|
2
|
+
import { IQuery } from './IQuery.js';
|
|
3
|
+
import { IHaveParameters } from '../reflection/IHaveParameters.js';
|
|
4
|
+
export interface IQueryFor<TDataType, TArguments = object> extends IQuery, IHaveParameters {
|
|
5
|
+
readonly route: string;
|
|
6
|
+
readonly requiredRequestParameters: string[];
|
|
7
|
+
readonly defaultValue: TDataType;
|
|
8
|
+
readonly roles: string[];
|
|
9
|
+
get parameters(): TArguments | undefined;
|
|
10
|
+
set parameters(value: TArguments);
|
|
11
|
+
perform(args?: TArguments): Promise<QueryResult<TDataType>>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=IQueryFor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IQueryFor.d.ts","sourceRoot":"","sources":["../../../queries/IQueryFor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAOnE,MAAM,WAAW,SAAS,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,CAAE,SAAQ,MAAM,EAAE,eAAe;IACtF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,yBAAyB,EAAE,MAAM,EAAE,CAAC;IAC7C,QAAQ,CAAC,YAAY,EAAE,SAAS,CAAC;IAKjC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IAKzB,IAAI,UAAU,IAAI,UAAU,GAAG,SAAS,CAAC;IAKzC,IAAI,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE;IASlC,OAAO,CAAC,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;CAC/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IQueryProvider.d.ts","sourceRoot":"","sources":["../../../queries/IQueryProvider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,8BAAsB,cAAc;IAMhC,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CAChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IQueryProvider.js","sources":["../../../queries/IQueryProvider.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 { Constructor } from '@cratis/fundamentals';\nimport { IQuery } from './IQuery';\n\n/**\n * Defines the provider for queries.\n */\nexport abstract class IQueryProvider {\n\n /**\n * Gets a new instance of a specific query type.\n * @param {Constructor} queryType Type of query to get an instance of.\n */\n abstract get<T extends IQuery>(queryType: Constructor<T>): T;\n}"],"names":["IQueryProvider"],"mappings":";;AAAA;AACA;AAKA;;AAEC,IACM,MAAeA,cAAAA,CAAAA;AAOtB;;"}
|
|
1
|
+
{"version":3,"file":"IQueryProvider.js","sources":["../../../queries/IQueryProvider.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 { Constructor } from '@cratis/fundamentals';\nimport { IQuery } from './IQuery.js';\n\n/**\n * Defines the provider for queries.\n */\nexport abstract class IQueryProvider {\n\n /**\n * Gets a new instance of a specific query type.\n * @param {Constructor} queryType Type of query to get an instance of.\n */\n abstract get<T extends IQuery>(queryType: Constructor<T>): T;\n}"],"names":["IQueryProvider"],"mappings":";;AAAA;AACA;AAKA;;AAEC,IACM,MAAeA,cAAAA,CAAAA;AAOtB;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ValidationResult } from '../validation/ValidationResult.js';
|
|
2
|
+
import { PagingInfo } from './PagingInfo.js';
|
|
3
|
+
import { ChangeSet } from './ChangeSet.js';
|
|
4
|
+
export interface IQueryResult<TDataType> {
|
|
5
|
+
readonly data: TDataType;
|
|
6
|
+
readonly paging: PagingInfo;
|
|
7
|
+
readonly isSuccess: boolean;
|
|
8
|
+
readonly isReady?: boolean;
|
|
9
|
+
readonly isAuthorized: boolean;
|
|
10
|
+
readonly isValid: boolean;
|
|
11
|
+
readonly hasExceptions: boolean;
|
|
12
|
+
readonly validationResults: ValidationResult[];
|
|
13
|
+
readonly exceptionMessages: string[];
|
|
14
|
+
readonly exceptionStackTrace: string;
|
|
15
|
+
readonly changeSet?: ChangeSet<unknown>;
|
|
16
|
+
readonly hasData: boolean;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=IQueryResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IQueryResult.d.ts","sourceRoot":"","sources":["../../../queries/IQueryResult.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C,MAAM,WAAW,YAAY,CAAC,SAAS;IAInC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAKzB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAK5B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAU5B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAK3B,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAK/B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAK1B,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAKhC,QAAQ,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAK/C,QAAQ,CAAC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAKrC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IAOrC,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAKxC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IReconnectPolicy.d.ts","sourceRoot":"","sources":["../../../queries/IReconnectPolicy.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC;AAM3C,MAAM,WAAW,gBAAgB;IAI7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IASzB,QAAQ,CAAC,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAMjE,KAAK,IAAI,IAAI,CAAC;IAMd,MAAM,IAAI,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataReceived } from './ObservableQueryConnection.js';
|
|
2
|
+
import { IObservableQueryConnection } from './IObservableQueryConnection.js';
|
|
3
|
+
import { QueryResult } from './QueryResult.js';
|
|
4
|
+
export declare class NullObservableQueryConnection<TDataType> implements IObservableQueryConnection<TDataType> {
|
|
5
|
+
readonly defaultValue: TDataType;
|
|
6
|
+
readonly result?: QueryResult<TDataType> | undefined;
|
|
7
|
+
constructor(defaultValue: TDataType, result?: QueryResult<TDataType> | undefined);
|
|
8
|
+
get lastPingLatency(): number;
|
|
9
|
+
get averageLatency(): number;
|
|
10
|
+
connect(dataReceived: DataReceived<TDataType>): void;
|
|
11
|
+
disconnect(): void;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=NullObservableQueryConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NullObservableQueryConnection.d.ts","sourceRoot":"","sources":["../../../queries/NullObservableQueryConnection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C,qBAAa,6BAA6B,CAAC,SAAS,CAAE,YAAW,0BAA0B,CAAC,SAAS,CAAC;IAQtF,QAAQ,CAAC,YAAY,EAAE,SAAS;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC;IAAtF,YAAqB,YAAY,EAAE,SAAS,EAAW,MAAM,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,YAAA,EACrF;IAGD,IAAI,eAAe,IAAI,MAAM,CAE5B;IAGD,IAAI,cAAc,IAAI,MAAM,CAE3B;IAGD,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,SAAS,CAAC,QAE5C;IAID,UAAU,SACT;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NullObservableQueryConnection.js","sources":["../../../queries/NullObservableQueryConnection.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 { DataReceived } from './ObservableQueryConnection';\nimport { IObservableQueryConnection } from './IObservableQueryConnection';\nimport { QueryResult } from './QueryResult';\n\n/**\n * Represents a {@link IObservableQueryConnection} when for instance one can't establish a connection.\n */\n\nexport class NullObservableQueryConnection<TDataType> implements IObservableQueryConnection<TDataType> {\n /**\n * Initializes a new instance of the {@link NullObservableQueryConnection} class.\n * @param {TDataType} defaultValue The default value to serve.\n * @param {QueryResult<TDataType>} result Optional result to serve instead of an empty one. Supply it when the\n * subscription failed for a reason the subscriber must be able to see — client-side validation in particular,\n * which would otherwise be indistinguishable from a query that simply has no data yet.\n */\n constructor(readonly defaultValue: TDataType, readonly result?: QueryResult<TDataType>) {\n }\n\n /** @inheritdoc */\n get lastPingLatency(): number {\n return 0;\n }\n\n /** @inheritdoc */\n get averageLatency(): number {\n return 0;\n }\n\n /** @inheritdoc */\n connect(dataReceived: DataReceived<TDataType>) {\n dataReceived(this.result ?? QueryResult.empty(this.defaultValue));\n }\n\n /** @inheritdoc */\n /* eslint-disable @typescript-eslint/no-empty-function */\n disconnect() {\n }\n}\n"],"names":["NullObservableQueryConnection","result","defaultValue","lastPingLatency","averageLatency","connect","dataReceived","QueryResult","empty","disconnect"],"mappings":";;;;AAAA;AACA;AAMA;;AAEC,IAEM,MAAMA,6BAAAA,CAAAA;;;AACT;;;;;;AAMC,QACD,YAAY,YAAgC,EAAWC,MAA+B,CAAE;aAAnEC,YAAAA,GAAAA,YAAAA;aAAkCD,MAAAA,GAAAA,MAAAA;AACvD,IAAA;uBAGA,IAAIE,eAAAA,GAA0B;QAC1B,OAAO,CAAA;AACX,IAAA;uBAGA,IAAIC,cAAAA,GAAyB;QACzB,OAAO,CAAA;AACX,IAAA;uBAGAC,OAAAA,CAAQC,YAAqC,EAAE;QAC3CA,YAAAA,CAAa,IAAI,CAACL,MAAM,IAAIM,wBAAYC,KAAK,CAAC,IAAI,CAACN,YAAY,CAAA,CAAA;AACnE,IAAA;AAEA,iFAEAO,UAAAA,GAAa,CACb;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"NullObservableQueryConnection.js","sources":["../../../queries/NullObservableQueryConnection.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 { DataReceived } from './ObservableQueryConnection.js';\nimport { IObservableQueryConnection } from './IObservableQueryConnection.js';\nimport { QueryResult } from './QueryResult.js';\n\n/**\n * Represents a {@link IObservableQueryConnection} when for instance one can't establish a connection.\n */\n\nexport class NullObservableQueryConnection<TDataType> implements IObservableQueryConnection<TDataType> {\n /**\n * Initializes a new instance of the {@link NullObservableQueryConnection} class.\n * @param {TDataType} defaultValue The default value to serve.\n * @param {QueryResult<TDataType>} result Optional result to serve instead of an empty one. Supply it when the\n * subscription failed for a reason the subscriber must be able to see — client-side validation in particular,\n * which would otherwise be indistinguishable from a query that simply has no data yet.\n */\n constructor(readonly defaultValue: TDataType, readonly result?: QueryResult<TDataType>) {\n }\n\n /** @inheritdoc */\n get lastPingLatency(): number {\n return 0;\n }\n\n /** @inheritdoc */\n get averageLatency(): number {\n return 0;\n }\n\n /** @inheritdoc */\n connect(dataReceived: DataReceived<TDataType>) {\n dataReceived(this.result ?? QueryResult.empty(this.defaultValue));\n }\n\n /** @inheritdoc */\n /* eslint-disable @typescript-eslint/no-empty-function */\n disconnect() {\n }\n}\n"],"names":["NullObservableQueryConnection","result","defaultValue","lastPingLatency","averageLatency","connect","dataReceived","QueryResult","empty","disconnect"],"mappings":";;;;AAAA;AACA;AAMA;;AAEC,IAEM,MAAMA,6BAAAA,CAAAA;;;AACT;;;;;;AAMC,QACD,YAAY,YAAgC,EAAWC,MAA+B,CAAE;aAAnEC,YAAAA,GAAAA,YAAAA;aAAkCD,MAAAA,GAAAA,MAAAA;AACvD,IAAA;uBAGA,IAAIE,eAAAA,GAA0B;QAC1B,OAAO,CAAA;AACX,IAAA;uBAGA,IAAIC,cAAAA,GAAyB;QACzB,OAAO,CAAA;AACX,IAAA;uBAGAC,OAAAA,CAAQC,YAAqC,EAAE;QAC3CA,YAAAA,CAAa,IAAI,CAACL,MAAM,IAAIM,wBAAYC,KAAK,CAAC,IAAI,CAACN,YAAY,CAAA,CAAA;AACnE,IAAA;AAEA,iFAEAO,UAAAA,GAAa,CACb;AACJ;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IObservableQueryConnection } from './IObservableQueryConnection.js';
|
|
2
|
+
import { IReconnectPolicy } from './IReconnectPolicy.js';
|
|
3
|
+
import { QueryResult } from './QueryResult.js';
|
|
4
|
+
export type DataReceived<TDataType> = (data: QueryResult<TDataType>) => void;
|
|
5
|
+
export declare class ObservableQueryConnection<TDataType> implements IObservableQueryConnection<TDataType> {
|
|
6
|
+
private readonly _microservice;
|
|
7
|
+
private readonly _reconnectPolicy;
|
|
8
|
+
private _socket;
|
|
9
|
+
private _disconnected;
|
|
10
|
+
private _unauthorized;
|
|
11
|
+
private _url;
|
|
12
|
+
private _pingInterval?;
|
|
13
|
+
private _pingIntervalMs;
|
|
14
|
+
private _lastPingSentTime?;
|
|
15
|
+
private _lastPongLatency;
|
|
16
|
+
private _latencySamples;
|
|
17
|
+
private _connectionStartTime?;
|
|
18
|
+
constructor(url: URL, _microservice: string, pingIntervalMs?: number, _reconnectPolicy?: IReconnectPolicy);
|
|
19
|
+
dispose(): void;
|
|
20
|
+
get lastPingLatency(): number;
|
|
21
|
+
get averageLatency(): number;
|
|
22
|
+
connect(dataReceived: DataReceived<TDataType>, queryArguments?: object): void;
|
|
23
|
+
disconnect(): void;
|
|
24
|
+
private startPinging;
|
|
25
|
+
private stopPinging;
|
|
26
|
+
private sendPing;
|
|
27
|
+
private handleMessage;
|
|
28
|
+
private handleUnauthorized;
|
|
29
|
+
private handlePong;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=ObservableQueryConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservableQueryConnection.d.ts","sourceRoot":"","sources":["../../../queries/ObservableQueryConnection.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,MAAM,MAAM,YAAY,CAAC,SAAS,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;AAK7E,qBAAa,yBAAyB,CAAC,SAAS,CAAE,YAAW,0BAA0B,CAAC,SAAS,CAAC;IAoBxE,OAAO,CAAC,QAAQ,CAAC,aAAa;IAA0C,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAlB/H,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,aAAa,CAAC,CAAiC;IACvD,OAAO,CAAC,eAAe,CAAiB;IACxC,OAAO,CAAC,iBAAiB,CAAC,CAAS;IACnC,OAAO,CAAC,gBAAgB,CAAa;IACrC,OAAO,CAAC,eAAe,CAAgB;IACvC,OAAO,CAAC,oBAAoB,CAAC,CAAS;IAStC,YAAY,GAAG,EAAE,GAAG,EAAmB,aAAa,EAAE,MAAM,EAAE,cAAc,GAAE,MAAc,EAAmB,gBAAgB,GAAE,gBAAwC,EAaxK;IAKD,OAAO,SAEN;IAKD,IAAI,eAAe,IAAI,MAAM,CAE5B;IAKD,IAAI,cAAc,IAAI,MAAM,CAM3B;IAGD,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,cAAc,CAAC,EAAE,MAAM,QA4CrE;IAGD,UAAU,SAWT;IAED,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,QAAQ;IAchB,OAAO,CAAC,aAAa;IAgCrB,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,UAAU;CAYrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservableQueryConnection.js","sources":["../../../queries/ObservableQueryConnection.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 { Globals } from '../Globals';\nimport { IObservableQueryConnection } from './IObservableQueryConnection';\nimport { IReconnectPolicy } from './IReconnectPolicy';\nimport { ReconnectPolicy } from './ReconnectPolicy';\nimport { QueryResult } from './QueryResult';\nimport { WebSocketMessage, WebSocketMessageType } from './WebSocketMessage';\n\nexport type DataReceived<TDataType> = (data: QueryResult<TDataType>) => void;\n\n/**\n * Represents the connection for an observable query.\n */\nexport class ObservableQueryConnection<TDataType> implements IObservableQueryConnection<TDataType> {\n\n private _socket!: WebSocket;\n private _disconnected = false;\n private _unauthorized = false;\n private _url: string;\n private _pingInterval?: ReturnType<typeof setInterval>;\n private _pingIntervalMs: number = 10000;\n private _lastPingSentTime?: number;\n private _lastPongLatency: number = 0;\n private _latencySamples: number[] = [];\n private _connectionStartTime?: number;\n\n /**\n * Initializes a new instance of the {@link ObservableQueryConnection<TDataType>} class.\n * @param {Url} url The fully qualified Url.\n * @param {string} _microservice The microservice name.\n * @param {number} pingIntervalMs The ping interval in milliseconds (default: 10000).\n * @param {IReconnectPolicy} reconnectPolicy The reconnect policy to use (default: {@link ReconnectPolicy}).\n */\n constructor(url: URL, private readonly _microservice: string, pingIntervalMs: number = 10000, private readonly _reconnectPolicy: IReconnectPolicy = new ReconnectPolicy()) {\n this._pingIntervalMs = pingIntervalMs;\n const secure = url.protocol?.indexOf('https') === 0 || false;\n\n this._url = `${secure ? 'wss' : 'ws'}://${url.host}${url.pathname}${url.search}`;\n if (this._microservice?.length > 0) {\n const microserviceParam = `${Globals.microserviceWSQueryArgument}=${this._microservice}`;\n if (this._url.indexOf('?') > 0) {\n this._url = `${this._url}&${microserviceParam}`;\n } else {\n this._url = `${this._url}?${microserviceParam}`;\n }\n }\n }\n\n /**\n * Disposes the connection.\n */\n dispose() {\n this.disconnect();\n }\n\n /**\n * Gets the latency of the last ping/pong sequence in milliseconds.\n */\n get lastPingLatency(): number {\n return this._lastPongLatency;\n }\n\n /**\n * Gets the average latency since the connection started in milliseconds.\n */\n get averageLatency(): number {\n if (this._latencySamples.length === 0) {\n return 0;\n }\n const sum = this._latencySamples.reduce((acc, val) => acc + val, 0);\n return sum / this._latencySamples.length;\n }\n\n /** @inheritdoc */\n connect(dataReceived: DataReceived<TDataType>, queryArguments?: object) {\n let url = this._url;\n if (queryArguments) {\n if (url.indexOf('?') < 0) {\n url = `${url}?`;\n } else {\n url = `${url}&`;\n }\n const query = Object.keys(queryArguments).map(key => `${key}=${queryArguments[key]}`).join('&');\n url = `${url}${query}`;\n }\n\n const connectSocket = () => {\n this._socket = new WebSocket(url);\n this._socket.onopen = () => {\n if (this._disconnected) return;\n console.log(`Connection for '${url}' established`);\n this._reconnectPolicy.reset();\n this._connectionStartTime = Date.now();\n this.startPinging();\n };\n this._socket.onclose = () => {\n if (this._disconnected || this._unauthorized) return;\n console.log(`Unexpected connection closed for route '${url}'`);\n this.stopPinging();\n this._reconnectPolicy.schedule(connectSocket, url);\n };\n this._socket.onerror = (error) => {\n if (this._disconnected || this._unauthorized) return;\n console.log(`Error with connection for '${url}' - ${error}`);\n this.stopPinging();\n this._reconnectPolicy.schedule(connectSocket, url);\n };\n this._socket.onmessage = (ev) => {\n if (this._disconnected) {\n console.log('Received message after closing connection');\n return;\n }\n this.handleMessage(ev.data, dataReceived);\n };\n };\n\n if (this._disconnected || this._unauthorized) return;\n connectSocket();\n }\n\n /** @inheritdoc */\n disconnect() {\n if (this._disconnected) {\n return;\n }\n console.log(`Disconnecting '${this._url}'`);\n this._disconnected = true;\n this._reconnectPolicy.cancel();\n this.stopPinging();\n this._socket?.close();\n console.log(`Connection for '${this._url}' closed`);\n this._socket = undefined!;\n }\n\n private startPinging() {\n this.stopPinging();\n this._pingInterval = setInterval(() => {\n this.sendPing();\n }, this._pingIntervalMs);\n }\n\n private stopPinging() {\n if (this._pingInterval) {\n clearInterval(this._pingInterval);\n this._pingInterval = undefined;\n }\n }\n\n private sendPing() {\n if (this._disconnected || !this._socket || this._socket.readyState !== WebSocket.OPEN) {\n return;\n }\n\n this._lastPingSentTime = Date.now();\n const pingMessage: WebSocketMessage = {\n type: WebSocketMessageType.Ping,\n timestamp: this._lastPingSentTime\n };\n\n this._socket.send(JSON.stringify(pingMessage));\n }\n\n private handleMessage(rawData: string, dataReceived: DataReceived<TDataType>) {\n try {\n const message = JSON.parse(rawData) as WebSocketMessage;\n\n // Handle messages based on type\n if (message.type === WebSocketMessageType.Pong) {\n this.handlePong(message);\n } else if (message.type === WebSocketMessageType.Data || !message.type) {\n // For new-style messages (type === 'Data') the query result is wrapped in message.data.\n // For legacy/backward-compatible messages (no type) the entire message IS the query result.\n const data = message.type === WebSocketMessageType.Data ? message.data : message;\n const result = data as QueryResult<TDataType>;\n\n if (result?.isAuthorized === false) {\n this.handleUnauthorized(result, dataReceived);\n return;\n }\n\n dataReceived(result);\n }\n } catch (error) {\n console.error('Error parsing WebSocket message:', error);\n }\n }\n\n /**\n * Handles the terminal result the server sends when the caller is no longer authorized for the query it is\n * subscribed to. The subscription is over for good, so the result is delivered and the automatic reconnect is\n * suppressed — reconnecting would re-subscribe, be denied again, and loop.\n * @param {QueryResult<TDataType>} result The unauthorized result to deliver.\n * @param {DataReceived<TDataType>} dataReceived Callback that receives the result.\n */\n private handleUnauthorized(result: QueryResult<TDataType>, dataReceived: DataReceived<TDataType>) {\n console.warn(`Connection for '${this._url}' was ended by the server - no longer authorized`);\n this._unauthorized = true;\n this.stopPinging();\n this._reconnectPolicy.cancel();\n dataReceived(result);\n this._socket?.close();\n }\n\n private handlePong(message: WebSocketMessage) {\n if (message.timestamp && this._lastPingSentTime) {\n const latency = Date.now() - message.timestamp;\n this._lastPongLatency = latency;\n this._latencySamples.push(latency);\n\n // Keep only the last 100 samples for average calculation\n if (this._latencySamples.length > 100) {\n this._latencySamples.shift();\n }\n }\n }\n}\n"],"names":["ObservableQueryConnection","_socket","_disconnected","_unauthorized","_url","_pingInterval","_pingIntervalMs","_lastPingSentTime","_lastPongLatency","_latencySamples","_connectionStartTime","url","_microservice","pingIntervalMs","_reconnectPolicy","ReconnectPolicy","secure","protocol","indexOf","host","pathname","search","length","microserviceParam","Globals","microserviceWSQueryArgument","dispose","disconnect","lastPingLatency","averageLatency","sum","reduce","acc","val","connect","dataReceived","queryArguments","query","Object","keys","map","key","join","connectSocket","WebSocket","onopen","console","log","reset","Date","now","startPinging","onclose","stopPinging","schedule","onerror","error","onmessage","ev","handleMessage","data","cancel","close","undefined","setInterval","sendPing","clearInterval","readyState","OPEN","pingMessage","type","WebSocketMessageType","Ping","timestamp","send","JSON","stringify","rawData","message","parse","Pong","handlePong","Data","result","isAuthorized","handleUnauthorized","warn","latency","push","shift"],"mappings":";;;;;;AAAA;AACA;AAWA;;AAEC,IACM,MAAMA,yBAAAA,CAAAA;;;IAEDC,OAAAA;AACAC,IAAAA,aAAAA,GAAgB,KAAA;AAChBC,IAAAA,aAAAA,GAAgB,KAAA;IAChBC,IAAAA;IACAC,aAAAA;AACAC,IAAAA,eAAAA,GAA0B,KAAA;IAC1BC,iBAAAA;AACAC,IAAAA,gBAAAA,GAA2B,CAAA;AAC3BC,IAAAA,eAAAA,GAA4B,EAAE;IAC9BC,oBAAAA;AAER;;;;;;AAMC,QACD,WAAA,CAAYC,GAAQ,EAAmBC,aAAqB,EAAEC,cAAAA,GAAyB,KAAK,EAAmBC,gBAAAA,GAAqC,IAAIC,iCAAiB,CAAE;aAApIH,aAAAA,GAAAA,aAAAA;aAAwEE,gBAAAA,GAAAA,gBAAAA;QAC3G,IAAI,CAACR,eAAe,GAAGO,cAAAA;AACvB,QAAA,MAAMG,SAASL,GAAAA,CAAIM,QAAQ,EAAEC,OAAAA,CAAQ,aAAa,CAAA,IAAK,KAAA;AAEvD,QAAA,IAAI,CAACd,IAAI,GAAG,CAAA,EAAGY,MAAAA,GAAS,QAAQ,IAAA,CAAK,GAAG,EAAEL,GAAAA,CAAIQ,IAAI,CAAA,EAAGR,GAAAA,CAAIS,QAAQ,CAAA,EAAGT,GAAAA,CAAIU,MAAM,CAAA,CAAE;AAChF,QAAA,IAAI,IAAI,CAACT,aAAa,EAAEU,SAAS,CAAA,EAAG;YAChC,MAAMC,iBAAAA,GAAoB,CAAA,EAAGC,eAAAA,CAAQC,2BAA2B,CAAC,CAAC,EAAE,IAAI,CAACb,aAAa,CAAA,CAAE;AACxF,YAAA,IAAI,IAAI,CAACR,IAAI,CAACc,OAAO,CAAC,OAAO,CAAA,EAAG;gBAC5B,IAAI,CAACd,IAAI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|
|
1
|
+
{"version":3,"file":"ObservableQueryConnection.js","sources":["../../../queries/ObservableQueryConnection.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 { Globals } from '../Globals.js';\nimport { IObservableQueryConnection } from './IObservableQueryConnection.js';\nimport { IReconnectPolicy } from './IReconnectPolicy.js';\nimport { ReconnectPolicy } from './ReconnectPolicy.js';\nimport { QueryResult } from './QueryResult.js';\nimport { WebSocketMessage, WebSocketMessageType } from './WebSocketMessage.js';\n\nexport type DataReceived<TDataType> = (data: QueryResult<TDataType>) => void;\n\n/**\n * Represents the connection for an observable query.\n */\nexport class ObservableQueryConnection<TDataType> implements IObservableQueryConnection<TDataType> {\n\n private _socket!: WebSocket;\n private _disconnected = false;\n private _unauthorized = false;\n private _url: string;\n private _pingInterval?: ReturnType<typeof setInterval>;\n private _pingIntervalMs: number = 10000;\n private _lastPingSentTime?: number;\n private _lastPongLatency: number = 0;\n private _latencySamples: number[] = [];\n private _connectionStartTime?: number;\n\n /**\n * Initializes a new instance of the {@link ObservableQueryConnection<TDataType>} class.\n * @param {Url} url The fully qualified Url.\n * @param {string} _microservice The microservice name.\n * @param {number} pingIntervalMs The ping interval in milliseconds (default: 10000).\n * @param {IReconnectPolicy} reconnectPolicy The reconnect policy to use (default: {@link ReconnectPolicy}).\n */\n constructor(url: URL, private readonly _microservice: string, pingIntervalMs: number = 10000, private readonly _reconnectPolicy: IReconnectPolicy = new ReconnectPolicy()) {\n this._pingIntervalMs = pingIntervalMs;\n const secure = url.protocol?.indexOf('https') === 0 || false;\n\n this._url = `${secure ? 'wss' : 'ws'}://${url.host}${url.pathname}${url.search}`;\n if (this._microservice?.length > 0) {\n const microserviceParam = `${Globals.microserviceWSQueryArgument}=${this._microservice}`;\n if (this._url.indexOf('?') > 0) {\n this._url = `${this._url}&${microserviceParam}`;\n } else {\n this._url = `${this._url}?${microserviceParam}`;\n }\n }\n }\n\n /**\n * Disposes the connection.\n */\n dispose() {\n this.disconnect();\n }\n\n /**\n * Gets the latency of the last ping/pong sequence in milliseconds.\n */\n get lastPingLatency(): number {\n return this._lastPongLatency;\n }\n\n /**\n * Gets the average latency since the connection started in milliseconds.\n */\n get averageLatency(): number {\n if (this._latencySamples.length === 0) {\n return 0;\n }\n const sum = this._latencySamples.reduce((acc, val) => acc + val, 0);\n return sum / this._latencySamples.length;\n }\n\n /** @inheritdoc */\n connect(dataReceived: DataReceived<TDataType>, queryArguments?: object) {\n let url = this._url;\n if (queryArguments) {\n if (url.indexOf('?') < 0) {\n url = `${url}?`;\n } else {\n url = `${url}&`;\n }\n const query = Object.keys(queryArguments).map(key => `${key}=${queryArguments[key]}`).join('&');\n url = `${url}${query}`;\n }\n\n const connectSocket = () => {\n this._socket = new WebSocket(url);\n this._socket.onopen = () => {\n if (this._disconnected) return;\n console.log(`Connection for '${url}' established`);\n this._reconnectPolicy.reset();\n this._connectionStartTime = Date.now();\n this.startPinging();\n };\n this._socket.onclose = () => {\n if (this._disconnected || this._unauthorized) return;\n console.log(`Unexpected connection closed for route '${url}'`);\n this.stopPinging();\n this._reconnectPolicy.schedule(connectSocket, url);\n };\n this._socket.onerror = (error) => {\n if (this._disconnected || this._unauthorized) return;\n console.log(`Error with connection for '${url}' - ${error}`);\n this.stopPinging();\n this._reconnectPolicy.schedule(connectSocket, url);\n };\n this._socket.onmessage = (ev) => {\n if (this._disconnected) {\n console.log('Received message after closing connection');\n return;\n }\n this.handleMessage(ev.data, dataReceived);\n };\n };\n\n if (this._disconnected || this._unauthorized) return;\n connectSocket();\n }\n\n /** @inheritdoc */\n disconnect() {\n if (this._disconnected) {\n return;\n }\n console.log(`Disconnecting '${this._url}'`);\n this._disconnected = true;\n this._reconnectPolicy.cancel();\n this.stopPinging();\n this._socket?.close();\n console.log(`Connection for '${this._url}' closed`);\n this._socket = undefined!;\n }\n\n private startPinging() {\n this.stopPinging();\n this._pingInterval = setInterval(() => {\n this.sendPing();\n }, this._pingIntervalMs);\n }\n\n private stopPinging() {\n if (this._pingInterval) {\n clearInterval(this._pingInterval);\n this._pingInterval = undefined;\n }\n }\n\n private sendPing() {\n if (this._disconnected || !this._socket || this._socket.readyState !== WebSocket.OPEN) {\n return;\n }\n\n this._lastPingSentTime = Date.now();\n const pingMessage: WebSocketMessage = {\n type: WebSocketMessageType.Ping,\n timestamp: this._lastPingSentTime\n };\n\n this._socket.send(JSON.stringify(pingMessage));\n }\n\n private handleMessage(rawData: string, dataReceived: DataReceived<TDataType>) {\n try {\n const message = JSON.parse(rawData) as WebSocketMessage;\n\n // Handle messages based on type\n if (message.type === WebSocketMessageType.Pong) {\n this.handlePong(message);\n } else if (message.type === WebSocketMessageType.Data || !message.type) {\n // For new-style messages (type === 'Data') the query result is wrapped in message.data.\n // For legacy/backward-compatible messages (no type) the entire message IS the query result.\n const data = message.type === WebSocketMessageType.Data ? message.data : message;\n const result = data as QueryResult<TDataType>;\n\n if (result?.isAuthorized === false) {\n this.handleUnauthorized(result, dataReceived);\n return;\n }\n\n dataReceived(result);\n }\n } catch (error) {\n console.error('Error parsing WebSocket message:', error);\n }\n }\n\n /**\n * Handles the terminal result the server sends when the caller is no longer authorized for the query it is\n * subscribed to. The subscription is over for good, so the result is delivered and the automatic reconnect is\n * suppressed — reconnecting would re-subscribe, be denied again, and loop.\n * @param {QueryResult<TDataType>} result The unauthorized result to deliver.\n * @param {DataReceived<TDataType>} dataReceived Callback that receives the result.\n */\n private handleUnauthorized(result: QueryResult<TDataType>, dataReceived: DataReceived<TDataType>) {\n console.warn(`Connection for '${this._url}' was ended by the server - no longer authorized`);\n this._unauthorized = true;\n this.stopPinging();\n this._reconnectPolicy.cancel();\n dataReceived(result);\n this._socket?.close();\n }\n\n private handlePong(message: WebSocketMessage) {\n if (message.timestamp && this._lastPingSentTime) {\n const latency = Date.now() - message.timestamp;\n this._lastPongLatency = latency;\n this._latencySamples.push(latency);\n\n // Keep only the last 100 samples for average calculation\n if (this._latencySamples.length > 100) {\n this._latencySamples.shift();\n }\n }\n }\n}\n"],"names":["ObservableQueryConnection","_socket","_disconnected","_unauthorized","_url","_pingInterval","_pingIntervalMs","_lastPingSentTime","_lastPongLatency","_latencySamples","_connectionStartTime","url","_microservice","pingIntervalMs","_reconnectPolicy","ReconnectPolicy","secure","protocol","indexOf","host","pathname","search","length","microserviceParam","Globals","microserviceWSQueryArgument","dispose","disconnect","lastPingLatency","averageLatency","sum","reduce","acc","val","connect","dataReceived","queryArguments","query","Object","keys","map","key","join","connectSocket","WebSocket","onopen","console","log","reset","Date","now","startPinging","onclose","stopPinging","schedule","onerror","error","onmessage","ev","handleMessage","data","cancel","close","undefined","setInterval","sendPing","clearInterval","readyState","OPEN","pingMessage","type","WebSocketMessageType","Ping","timestamp","send","JSON","stringify","rawData","message","parse","Pong","handlePong","Data","result","isAuthorized","handleUnauthorized","warn","latency","push","shift"],"mappings":";;;;;;AAAA;AACA;AAWA;;AAEC,IACM,MAAMA,yBAAAA,CAAAA;;;IAEDC,OAAAA;AACAC,IAAAA,aAAAA,GAAgB,KAAA;AAChBC,IAAAA,aAAAA,GAAgB,KAAA;IAChBC,IAAAA;IACAC,aAAAA;AACAC,IAAAA,eAAAA,GAA0B,KAAA;IAC1BC,iBAAAA;AACAC,IAAAA,gBAAAA,GAA2B,CAAA;AAC3BC,IAAAA,eAAAA,GAA4B,EAAE;IAC9BC,oBAAAA;AAER;;;;;;AAMC,QACD,WAAA,CAAYC,GAAQ,EAAmBC,aAAqB,EAAEC,cAAAA,GAAyB,KAAK,EAAmBC,gBAAAA,GAAqC,IAAIC,iCAAiB,CAAE;aAApIH,aAAAA,GAAAA,aAAAA;aAAwEE,gBAAAA,GAAAA,gBAAAA;QAC3G,IAAI,CAACR,eAAe,GAAGO,cAAAA;AACvB,QAAA,MAAMG,SAASL,GAAAA,CAAIM,QAAQ,EAAEC,OAAAA,CAAQ,aAAa,CAAA,IAAK,KAAA;AAEvD,QAAA,IAAI,CAACd,IAAI,GAAG,CAAA,EAAG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,QAAA,IAAIA,QAAQL,SAAS,IAAI,IAAI,CAAClE,iBAAiB,EAAE;AAC7C,YAAA,MAAMgF,OAAAA,GAAUtC,IAAAA,CAAKC,GAAG,EAAA,GAAK4B,QAAQL,SAAS;YAC9C,IAAI,CAACjE,gBAAgB,GAAG+E,OAAAA;AACxB,YAAA,IAAI,CAAC9E,eAAe,CAAC+E,IAAI,CAACD,OAAAA,CAAAA;;AAG1B,YAAA,IAAI,IAAI,CAAC9E,eAAe,CAACa,MAAM,GAAG,GAAA,EAAK;gBACnC,IAAI,CAACb,eAAe,CAACgF,KAAK,EAAA;AAC9B,YAAA;AACJ,QAAA;AACJ,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IObservableQueryConnection } from './IObservableQueryConnection.js';
|
|
2
|
+
export declare const SSE_SUBSCRIBE_ROUTE = "/.cratis/queries/sse/subscribe";
|
|
3
|
+
export declare const SSE_UNSUBSCRIBE_ROUTE = "/.cratis/queries/sse/unsubscribe";
|
|
4
|
+
export interface QueryConnectionDescriptor {
|
|
5
|
+
route: string;
|
|
6
|
+
queryName: string;
|
|
7
|
+
origin: string;
|
|
8
|
+
apiBasePath: string;
|
|
9
|
+
microservice: string;
|
|
10
|
+
args?: object;
|
|
11
|
+
}
|
|
12
|
+
export declare function createObservableQueryConnection<TDataType>(descriptor: QueryConnectionDescriptor): IObservableQueryConnection<TDataType>;
|
|
13
|
+
//# sourceMappingURL=ObservableQueryConnectionFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservableQueryConnectionFactory.d.ts","sourceRoot":"","sources":["../../../queries/ObservableQueryConnectionFactory.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAW7E,eAAO,MAAM,mBAAmB,mCAAmC,CAAC;AAKpE,eAAO,MAAM,qBAAqB,qCAAqC,CAAC;AAOxE,MAAM,WAAW,yBAAyB;IAEtC,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IAErB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAiBD,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,UAAU,EAAE,yBAAyB,GAAG,0BAA0B,CAAC,SAAS,CAAC,CAUvI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservableQueryConnectionFactory.js","sources":["../../../queries/ObservableQueryConnectionFactory.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 { Globals } from '../Globals';\nimport { joinPaths } from '../joinPaths';\nimport { UrlHelpers } from '../UrlHelpers';\nimport { IObservableQueryConnection } from './IObservableQueryConnection';\nimport { ObservableQueryConnection } from './ObservableQueryConnection';\nimport { QueryTransportMethod } from './QueryTransportMethod';\nimport { ServerSentEventQueryConnection, SSE_HUB_ROUTE } from './ServerSentEventQueryConnection';\nimport { ServerSentEventHubConnection } from './ServerSentEventHubConnection';\nimport { WebSocketHubConnection } from './WebSocketHubConnection';\nimport { MultiplexedObservableQueryConnection, WS_HUB_ROUTE, getOrCreateMultiplexer } from './ObservableQueryMultiplexer';\n\n/**\n * The SSE subscribe POST endpoint route.\n */\nexport const SSE_SUBSCRIBE_ROUTE = '/.cratis/queries/sse/subscribe';\n\n/**\n * The SSE unsubscribe POST endpoint route.\n */\nexport const SSE_UNSUBSCRIBE_ROUTE = '/.cratis/queries/sse/unsubscribe';\n\n/**\n * Describes what the factory needs to know about a query in order to create\n * the right connection. Transport details are intentionally absent — the\n * factory reads those from {@link Globals}.\n */\nexport interface QueryConnectionDescriptor {\n /** The route template (e.g. `/api/accounts/debit/all-accounts`). */\n route: string;\n /** Fully-qualified backend query name used by hub transports. */\n queryName: string;\n /** Origin base URL (e.g. `http://localhost:5000`). */\n origin: string;\n /** API base path prefix. */\n apiBasePath: string;\n /** Microservice identifier. */\n microservice: string;\n /** Route/query arguments for the current subscription. */\n args?: object;\n}\n\n/**\n * Single entry-point for creating observable query connections.\n *\n * The transport is chosen as a 2x2 matrix of (direct | hub) x (WebSocket | SSE):\n *\n * | | Direct (per-query URL) | Hub (centralized endpoint) |\n * |----------------|-------------------------------|-------------------------------|\n * | **WebSocket** | ObservableQueryConnection | MultiplexedObservableQueryConnection |\n * | **SSE** | ServerSentEventQueryConnection | MultiplexedObservableQueryConnection |\n *\n * In multiplexed mode, both transports share the same multiplexer — it creates either\n * WebSocket or SSE connections depending on the transport setting.\n *\n * {@link ObservableQueryFor} never needs to know which transport is in use.\n */\nexport function createObservableQueryConnection<TDataType>(descriptor: QueryConnectionDescriptor): IObservableQueryConnection<TDataType> {\n const isSSE = Globals.queryTransportMethod === QueryTransportMethod.ServerSentEvents;\n\n if (Globals.queryDirectMode) {\n return isSSE\n ? createDirectSSEConnection<TDataType>(descriptor)\n : createDirectWebSocketConnection<TDataType>(descriptor);\n }\n\n return createMultiplexedConnection<TDataType>(descriptor, isSSE);\n}\n\n// ---- Direct mode: one connection per query, hitting the query's own URL ----\n\nfunction buildDirectUrl(descriptor: QueryConnectionDescriptor): URL {\n const { route } = UrlHelpers.replaceRouteParameters(descriptor.route, descriptor.args as object);\n const actualRoute = joinPaths(descriptor.apiBasePath, route);\n return UrlHelpers.createUrlFrom(descriptor.origin, descriptor.apiBasePath, actualRoute);\n}\n\nfunction createDirectWebSocketConnection<TDataType>(descriptor: QueryConnectionDescriptor): IObservableQueryConnection<TDataType> {\n return new ObservableQueryConnection<TDataType>(buildDirectUrl(descriptor), descriptor.microservice);\n}\n\nfunction createDirectSSEConnection<TDataType>(descriptor: QueryConnectionDescriptor): IObservableQueryConnection<TDataType> {\n return new ServerSentEventQueryConnection<TDataType>(buildDirectUrl(descriptor));\n}\n\n// ---- Multiplexed mode: centralized endpoint, multiple queries share connections ----\n\n/**\n * Maximum number of SSE hub connections that fits safely within the HTTP/1.1 browser\n * per-origin connection limit (typically 6 for Chrome/Firefox). Each SSE EventSource\n * occupies one persistent connection slot indefinitely. Exceeding this cap blocks the\n * subscribe/unsubscribe POST requests that share the same pool, causing queries to hang.\n * Servers configured for HTTP/2 do not have this restriction.\n */\nconst MAX_SAFE_SSE_CONNECTIONS = 4;\n\nfunction createMultiplexedConnection<TDataType>(descriptor: QueryConnectionDescriptor, isSSE: boolean): IObservableQueryConnection<TDataType> {\n const transport = isSSE ? 'sse' : 'ws';\n const requestedCount = Globals.queryConnectionCount;\n const effectiveCount = isSSE ? Math.min(requestedCount, MAX_SAFE_SSE_CONNECTIONS) : requestedCount;\n\n if (isSSE && requestedCount > MAX_SAFE_SSE_CONNECTIONS) {\n console.warn(\n `[Arc] queryConnectionCount (${requestedCount}) exceeds the safe limit for SSE transport (${MAX_SAFE_SSE_CONNECTIONS}). ` +\n `HTTP/1.1 browsers allow at most 6 concurrent connections per origin; ` +\n `using more SSE connections blocks subscribe/unsubscribe requests, causing queries to hang. ` +\n `Capping at ${MAX_SAFE_SSE_CONNECTIONS}. Enable HTTP/2 on your server to use a higher connection count.`\n );\n }\n\n const cacheKey = `${requestedCount}|${transport}|${descriptor.origin}|${descriptor.apiBasePath}|${descriptor.microservice}`;\n\n const multiplexer = getOrCreateMultiplexer(() => {\n if (isSSE) {\n const sseRoute = joinPaths(descriptor.apiBasePath, SSE_HUB_ROUTE);\n const sseUrl = UrlHelpers.createUrlFrom(descriptor.origin, descriptor.apiBasePath, sseRoute);\n const subscribeRoute = joinPaths(descriptor.apiBasePath, SSE_SUBSCRIBE_ROUTE);\n const subscribeUrl = UrlHelpers.createUrlFrom(descriptor.origin, descriptor.apiBasePath, subscribeRoute);\n const unsubscribeRoute = joinPaths(descriptor.apiBasePath, SSE_UNSUBSCRIBE_ROUTE);\n const unsubscribeUrl = UrlHelpers.createUrlFrom(descriptor.origin, descriptor.apiBasePath, unsubscribeRoute);\n return new ServerSentEventHubConnection(\n sseUrl.toString(),\n subscribeUrl.toString(),\n unsubscribeUrl.toString(),\n descriptor.microservice,\n );\n } else {\n const hubRoute = joinPaths(descriptor.apiBasePath, WS_HUB_ROUTE);\n const hubUrl = UrlHelpers.createUrlFrom(descriptor.origin, descriptor.apiBasePath, hubRoute);\n const secure = hubUrl.protocol?.indexOf('https') === 0;\n const wsUrl = `${secure ? 'wss' : 'ws'}://${hubUrl.host}${hubUrl.pathname}${hubUrl.search}`;\n return new WebSocketHubConnection(wsUrl, descriptor.microservice);\n }\n }, cacheKey, effectiveCount);\n\n return new MultiplexedObservableQueryConnection<TDataType>(multiplexer, descriptor.queryName);\n}\n"],"names":["SSE_SUBSCRIBE_ROUTE","SSE_UNSUBSCRIBE_ROUTE","createObservableQueryConnection","descriptor","isSSE","Globals","queryTransportMethod","QueryTransportMethod","ServerSentEvents","queryDirectMode","createDirectSSEConnection","createDirectWebSocketConnection","createMultiplexedConnection","buildDirectUrl","route","UrlHelpers","replaceRouteParameters","args","actualRoute","joinPaths","apiBasePath","createUrlFrom","origin","ObservableQueryConnection","microservice","ServerSentEventQueryConnection","MAX_SAFE_SSE_CONNECTIONS","transport","requestedCount","queryConnectionCount","effectiveCount","Math","min","console","warn","cacheKey","multiplexer","getOrCreateMultiplexer","sseRoute","SSE_HUB_ROUTE","sseUrl","subscribeRoute","subscribeUrl","unsubscribeRoute","unsubscribeUrl","ServerSentEventHubConnection","toString","hubRoute","WS_HUB_ROUTE","hubUrl","secure","protocol","indexOf","wsUrl","host","pathname","search","WebSocketHubConnection","MultiplexedObservableQueryConnection","queryName"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAaA;;IAGO,MAAMA,mBAAAA,GAAsB;AAEnC;;IAGO,MAAMC,qBAAAA,GAAwB;AAsBrC;;;;;;;;;;;;;;IAeO,SAASC,+BAAAA,CAA2CC,UAAqC,EAAA;AAC5F,IAAA,MAAMC,KAAAA,GAAQC,eAAAA,CAAQC,oBAAoB,KAAKC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AA,CAAOM,QAAQ,EAAA,EACfJ,YAAAA,CAAaI,QAAQ,EAAA,EACrBF,cAAAA,CAAeE,QAAQ,EAAA,EACvB3C,UAAAA,CAAWqB,YAAY,CAAA;QAE/B,CAAA,MAAO;AACH,YAAA,MAAMuB,QAAAA,GAAW5B,mBAAAA,CAAUhB,UAAAA,CAAWiB,WAAW,EAAE4B,uCAAAA,CAAAA;YACnD,MAAMC,MAAAA,GAASlC,sBAAWM,aAAa,CAAClB,WAAWmB,MAAM,EAAEnB,UAAAA,CAAWiB,WAAW,EAAE2B,QAAAA,CAAAA;AACnF,YAAA,MAAMG,MAAAA,GAASD,MAAAA,CAAOE,QAAQ,EAAEC,QAAQ,OAAA,CAAA,KAAa,CAAA;AACrD,YAAA,MAAMC,KAAAA,GAAQ,CAAA,EAAGH,MAAAA,GAAS,KAAA,GAAQ,KAAK,GAAG,EAAED,MAAAA,CAAOK,IAAI,GAAGL,MAAAA,CAAOM,QAAQ,CAAA,EAAGN,MAAAA,CAAOO,MAAM,CAAA,CAAE;AAC3F,YAAA,OAAO,IAAIC,6CAAAA,CAAuBJ,KAAAA,EAAOlD,UAAAA,CAAWqB,YAAY,CAAA;AACpE,QAAA;AACJ,IAAA,CAAA,EAAGW,QAAAA,EAAUL,cAAAA,CAAAA;AAEb,IAAA,OAAO,IAAI4B,+DAAAA,CAAgDtB,WAAAA,EAAajC,UAAAA,CAAWwD,SAAS,CAAA;AAChG;;;;"}
|
|
1
|
+
{"version":3,"file":"ObservableQueryConnectionFactory.js","sources":["../../../queries/ObservableQueryConnectionFactory.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 { Globals } from '../Globals.js';\nimport { joinPaths } from '../joinPaths.js';\nimport { UrlHelpers } from '../UrlHelpers.js';\nimport { IObservableQueryConnection } from './IObservableQueryConnection.js';\nimport { ObservableQueryConnection } from './ObservableQueryConnection.js';\nimport { QueryTransportMethod } from './QueryTransportMethod.js';\nimport { ServerSentEventQueryConnection, SSE_HUB_ROUTE } from './ServerSentEventQueryConnection.js';\nimport { ServerSentEventHubConnection } from './ServerSentEventHubConnection.js';\nimport { WebSocketHubConnection } from './WebSocketHubConnection.js';\nimport { MultiplexedObservableQueryConnection, WS_HUB_ROUTE, getOrCreateMultiplexer } from './ObservableQueryMultiplexer.js';\n\n/**\n * The SSE subscribe POST endpoint route.\n */\nexport const SSE_SUBSCRIBE_ROUTE = '/.cratis/queries/sse/subscribe';\n\n/**\n * The SSE unsubscribe POST endpoint route.\n */\nexport const SSE_UNSUBSCRIBE_ROUTE = '/.cratis/queries/sse/unsubscribe';\n\n/**\n * Describes what the factory needs to know about a query in order to create\n * the right connection. Transport details are intentionally absent — the\n * factory reads those from {@link Globals}.\n */\nexport interface QueryConnectionDescriptor {\n /** The route template (e.g. `/api/accounts/debit/all-accounts`). */\n route: string;\n /** Fully-qualified backend query name used by hub transports. */\n queryName: string;\n /** Origin base URL (e.g. `http://localhost:5000`). */\n origin: string;\n /** API base path prefix. */\n apiBasePath: string;\n /** Microservice identifier. */\n microservice: string;\n /** Route/query arguments for the current subscription. */\n args?: object;\n}\n\n/**\n * Single entry-point for creating observable query connections.\n *\n * The transport is chosen as a 2x2 matrix of (direct | hub) x (WebSocket | SSE):\n *\n * | | Direct (per-query URL) | Hub (centralized endpoint) |\n * |----------------|-------------------------------|-------------------------------|\n * | **WebSocket** | ObservableQueryConnection | MultiplexedObservableQueryConnection |\n * | **SSE** | ServerSentEventQueryConnection | MultiplexedObservableQueryConnection |\n *\n * In multiplexed mode, both transports share the same multiplexer — it creates either\n * WebSocket or SSE connections depending on the transport setting.\n *\n * {@link ObservableQueryFor} never needs to know which transport is in use.\n */\nexport function createObservableQueryConnection<TDataType>(descriptor: QueryConnectionDescriptor): IObservableQueryConnection<TDataType> {\n const isSSE = Globals.queryTransportMethod === QueryTransportMethod.ServerSentEvents;\n\n if (Globals.queryDirectMode) {\n return isSSE\n ? createDirectSSEConnection<TDataType>(descriptor)\n : createDirectWebSocketConnection<TDataType>(descriptor);\n }\n\n return createMultiplexedConnection<TDataType>(descriptor, isSSE);\n}\n\n// ---- Direct mode: one connection per query, hitting the query's own URL ----\n\nfunction buildDirectUrl(descriptor: QueryConnectionDescriptor): URL {\n const { route } = UrlHelpers.replaceRouteParameters(descriptor.route, descriptor.args as object);\n const actualRoute = joinPaths(descriptor.apiBasePath, route);\n return UrlHelpers.createUrlFrom(descriptor.origin, descriptor.apiBasePath, actualRoute);\n}\n\nfunction createDirectWebSocketConnection<TDataType>(descriptor: QueryConnectionDescriptor): IObservableQueryConnection<TDataType> {\n return new ObservableQueryConnection<TDataType>(buildDirectUrl(descriptor), descriptor.microservice);\n}\n\nfunction createDirectSSEConnection<TDataType>(descriptor: QueryConnectionDescriptor): IObservableQueryConnection<TDataType> {\n return new ServerSentEventQueryConnection<TDataType>(buildDirectUrl(descriptor));\n}\n\n// ---- Multiplexed mode: centralized endpoint, multiple queries share connections ----\n\n/**\n * Maximum number of SSE hub connections that fits safely within the HTTP/1.1 browser\n * per-origin connection limit (typically 6 for Chrome/Firefox). Each SSE EventSource\n * occupies one persistent connection slot indefinitely. Exceeding this cap blocks the\n * subscribe/unsubscribe POST requests that share the same pool, causing queries to hang.\n * Servers configured for HTTP/2 do not have this restriction.\n */\nconst MAX_SAFE_SSE_CONNECTIONS = 4;\n\nfunction createMultiplexedConnection<TDataType>(descriptor: QueryConnectionDescriptor, isSSE: boolean): IObservableQueryConnection<TDataType> {\n const transport = isSSE ? 'sse' : 'ws';\n const requestedCount = Globals.queryConnectionCount;\n const effectiveCount = isSSE ? Math.min(requestedCount, MAX_SAFE_SSE_CONNECTIONS) : requestedCount;\n\n if (isSSE && requestedCount > MAX_SAFE_SSE_CONNECTIONS) {\n console.warn(\n `[Arc] queryConnectionCount (${requestedCount}) exceeds the safe limit for SSE transport (${MAX_SAFE_SSE_CONNECTIONS}). ` +\n `HTTP/1.1 browsers allow at most 6 concurrent connections per origin; ` +\n `using more SSE connections blocks subscribe/unsubscribe requests, causing queries to hang. ` +\n `Capping at ${MAX_SAFE_SSE_CONNECTIONS}. Enable HTTP/2 on your server to use a higher connection count.`\n );\n }\n\n const cacheKey = `${requestedCount}|${transport}|${descriptor.origin}|${descriptor.apiBasePath}|${descriptor.microservice}`;\n\n const multiplexer = getOrCreateMultiplexer(() => {\n if (isSSE) {\n const sseRoute = joinPaths(descriptor.apiBasePath, SSE_HUB_ROUTE);\n const sseUrl = UrlHelpers.createUrlFrom(descriptor.origin, descriptor.apiBasePath, sseRoute);\n const subscribeRoute = joinPaths(descriptor.apiBasePath, SSE_SUBSCRIBE_ROUTE);\n const subscribeUrl = UrlHelpers.createUrlFrom(descriptor.origin, descriptor.apiBasePath, subscribeRoute);\n const unsubscribeRoute = joinPaths(descriptor.apiBasePath, SSE_UNSUBSCRIBE_ROUTE);\n const unsubscribeUrl = UrlHelpers.createUrlFrom(descriptor.origin, descriptor.apiBasePath, unsubscribeRoute);\n return new ServerSentEventHubConnection(\n sseUrl.toString(),\n subscribeUrl.toString(),\n unsubscribeUrl.toString(),\n descriptor.microservice,\n );\n } else {\n const hubRoute = joinPaths(descriptor.apiBasePath, WS_HUB_ROUTE);\n const hubUrl = UrlHelpers.createUrlFrom(descriptor.origin, descriptor.apiBasePath, hubRoute);\n const secure = hubUrl.protocol?.indexOf('https') === 0;\n const wsUrl = `${secure ? 'wss' : 'ws'}://${hubUrl.host}${hubUrl.pathname}${hubUrl.search}`;\n return new WebSocketHubConnection(wsUrl, descriptor.microservice);\n }\n }, cacheKey, effectiveCount);\n\n return new MultiplexedObservableQueryConnection<TDataType>(multiplexer, descriptor.queryName);\n}\n"],"names":["SSE_SUBSCRIBE_ROUTE","SSE_UNSUBSCRIBE_ROUTE","createObservableQueryConnection","descriptor","isSSE","Globals","queryTransportMethod","QueryTransportMethod","ServerSentEvents","queryDirectMode","createDirectSSEConnection","createDirectWebSocketConnection","createMultiplexedConnection","buildDirectUrl","route","UrlHelpers","replaceRouteParameters","args","actualRoute","joinPaths","apiBasePath","createUrlFrom","origin","ObservableQueryConnection","microservice","ServerSentEventQueryConnection","MAX_SAFE_SSE_CONNECTIONS","transport","requestedCount","queryConnectionCount","effectiveCount","Math","min","console","warn","cacheKey","multiplexer","getOrCreateMultiplexer","sseRoute","SSE_HUB_ROUTE","sseUrl","subscribeRoute","subscribeUrl","unsubscribeRoute","unsubscribeUrl","ServerSentEventHubConnection","toString","hubRoute","WS_HUB_ROUTE","hubUrl","secure","protocol","indexOf","wsUrl","host","pathname","search","WebSocketHubConnection","MultiplexedObservableQueryConnection","queryName"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAaA;;IAGO,MAAMA,mBAAAA,GAAsB;AAEnC;;IAGO,MAAMC,qBAAAA,GAAwB;AAsBrC;;;;;;;;;;;;;;IAeO,SAASC,+BAAAA,CAA2CC,UAAqC,EAAA;AAC5F,IAAA,MAAMC,KAAAA,GAAQC,eAAAA,CAAQC,oBAAoB,KAAKC,0CAAqBC,gBAAgB;IAEpF,IAAIH,eAAAA,CAAQI,eAAe,EAAE;QACzB,OAAOL,KAAAA,GACDM,yBAAAA,CAAqCP,UAAAA,CAAAA,GACrCQ,+BAAAA,CAA2CR,UAAAA,CAAAA;AACrD,IAAA;AAEA,IAAA,OAAOS,4BAAuCT,UAAAA,EAAYC,KAAAA,CAAAA;AAC9D;AAEA;AAEA,SAASS,eAAeV,UAAqC,EAAA;IACzD,MAAM,EAAEW,KAAK,EAAE,GAAGC,qBAAAA,CAAWC,sBAAsB,CAACb,UAAAA,CAAWW,KAAK,EAAEX,UAAAA,CAAWc,IAAI,CAAA;AACrF,IAAA,MAAMC,WAAAA,GAAcC,mBAAAA,CAAUhB,UAAAA,CAAWiB,WAAW,EAAEN,KAAAA,CAAAA;IACtD,OAAOC,qBAAAA,CAAWM,aAAa,CAAClB,UAAAA,CAAWmB,MAAM,EAAEnB,UAAAA,CAAWiB,WAAW,EAAEF,WAAAA,CAAAA;AAC/E;AAEA,SAASP,g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AAM,CAAA,CAAE;AAC3F,YAAA,OAAO,IAAIC,6CAAAA,CAAuBJ,KAAAA,EAAOlD,UAAAA,CAAWqB,YAAY,CAAA;AACpE,QAAA;AACJ,IAAA,CAAA,EAAGW,QAAAA,EAAUL,cAAAA,CAAAA;AAEb,IAAA,OAAO,IAAI4B,+DAAAA,CAAgDtB,WAAAA,EAAajC,UAAAA,CAAWwD,SAAS,CAAA;AAChG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IObservableQueryConnection } from './IObservableQueryConnection.js';
|
|
2
|
+
import { DataReceived } from './ObservableQueryConnection.js';
|
|
3
|
+
export declare class ObservableQueryConnectionPool<TDataType> {
|
|
4
|
+
private readonly _factory;
|
|
5
|
+
private readonly _slots;
|
|
6
|
+
constructor(size: number, _factory: () => IObservableQueryConnection<TDataType>);
|
|
7
|
+
acquire(dataReceived: DataReceived<TDataType>, queryArguments?: object): () => void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=ObservableQueryConnectionPool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservableQueryConnectionPool.d.ts","sourceRoot":"","sources":["../../../queries/ObservableQueryConnectionPool.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAuB9D,qBAAa,6BAA6B,CAAC,SAAS;IAU5C,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAT7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IAOpC,YACI,IAAI,EAAE,MAAM,EACK,QAAQ,EAAE,MAAM,0BAA0B,CAAC,SAAS,CAAC,EAGzE;IASD,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,IAAI,CAalF;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservableQueryConnectionPool.js","sources":["../../../queries/ObservableQueryConnectionPool.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 { IObservableQueryConnection } from './IObservableQueryConnection';\nimport { DataReceived } from './ObservableQueryConnection';\n\n/**\n * Tracks the number of active subscribers assigned to each pool slot.\n */\ninterface PoolSlot {\n queryCount: number;\n}\n\n/**\n * Represents a pool of observable query connection factories distributed round-robin across N slots.\n *\n * Each call to {@link acquire} picks the slot with the fewest active queries (falling back to\n * round-robin when counts are equal) and creates a fresh connection for that subscriber via the\n * provided factory. The connection is a dedicated instance per subscriber; the pool only tracks\n * slot utilization so future multiplexed transports (e.g. WebSocket) can share connections\n * across a fixed number of physical hub connections.\n *\n * When {@link size} is 1 (the default), all queries are counted against a single slot — the\n * natural behavior for a single multiplexed connection.\n *\n * @template TDataType The type of data received from the connections.\n */\nexport class ObservableQueryConnectionPool<TDataType> {\n private readonly _slots: PoolSlot[];\n\n /**\n * Initializes a new {@link ObservableQueryConnectionPool}.\n * @param {number} size Number of logical slots (hub connections) in the pool.\n * @param {() => IObservableQueryConnection<TDataType>} factory Factory that produces a new connection instance per subscriber.\n */\n constructor(\n size: number,\n private readonly _factory: () => IObservableQueryConnection<TDataType>\n ) {\n this._slots = Array.from({ length: Math.max(1, size) }, () => ({ queryCount: 0 }));\n }\n\n /**\n * Picks the least-loaded pool slot, creates a fresh connection via the factory, and starts\n * delivering data to the provided callback.\n * @param {DataReceived<TDataType>} dataReceived Callback invoked for each message.\n * @param {object} queryArguments Arguments forwarded to the connection.\n * @returns A cleanup function that decrements the slot counter and disconnects the connection.\n */\n acquire(dataReceived: DataReceived<TDataType>, queryArguments?: object): () => void {\n // Pick the slot with the fewest active queries.\n const slot = this._slots.reduce((min, current) => current.queryCount < min.queryCount ? current : min, this._slots[0]);\n slot.queryCount++;\n\n // Each subscriber gets its own dedicated connection instance.\n const connection = this._factory();\n connection.connect(dataReceived, queryArguments);\n\n return () => {\n connection.disconnect();\n slot.queryCount = Math.max(0, slot.queryCount - 1);\n };\n }\n}\n"],"names":["ObservableQueryConnectionPool","_slots","size","_factory","Array","from","length","Math","max","queryCount","acquire","dataReceived","queryArguments","slot","reduce","min","current","connection","connect","disconnect"],"mappings":";;AAAA;AACA;AAYA;;;;;;;;;;;;;AAaC,IACM,MAAMA,6BAAAA,CAAAA;;IACQC,MAAAA;AAEjB;;;;AAIC,QACD,WAAA,CACIC,IAAY,EACKC,QAAqD,CACxE;aADmBA,QAAAA,GAAAA,QAAAA;AAEjB,QAAA,IAAI,CAACF,MAAM,GAAGG,KAAAA,CAAMC,IAAI,CAAC;YAAEC,MAAAA,EAAQC,IAAAA,CAAKC,GAAG,CAAC,CAAA,EAAGN,IAAAA;AAAM,SAAA,EAAG,KAAO;gBAAEO,UAAAA,EAAY;aAAE,CAAA,CAAA;AACnF,IAAA;AAEA;;;;;;AAMC,QACDC,OAAAA,CAAQC,YAAqC,EAAEC,cAAuB,EAAc;;QAEhF,MAAMC,IAAAA,GAAO,IAAI,CAACZ,MAAM,CAACa,MAAM,CAAC,CAACC,GAAAA,EAAKC,OAAAA,GAAYA,OAAAA,CAAQP,UAAU,GAAGM,GAAAA,CAAIN,UAAU,GAAGO,OAAAA,GAAUD,KAAK,IAAI,CAACd,MAAM,CAAC,CAAA,CAAE,CAAA;AACrHY,QAAAA,IAAAA,CAAKJ,UAAU,EAAA;;QAGf,MAAMQ,UAAAA,GAAa,IAAI,CAACd,QAAQ,EAAA;QAChCc,UAAAA,CAAWC,OAAO,CAACP,YAAAA,EAAcC,cAAAA,CAAAA;QAEjC,OAAO,IAAA;AACHK,YAAAA,UAAAA,CAAWE,UAAU,EAAA;YACrBN,IAAAA,CAAKJ,UAAU,GAAGF,IAAAA,CAAKC,GAAG,CAAC,CAAA,EAAGK,IAAAA,CAAKJ,UAAU,GAAG,CAAA,CAAA;AACpD,QAAA,CAAA;AACJ,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"ObservableQueryConnectionPool.js","sources":["../../../queries/ObservableQueryConnectionPool.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 { IObservableQueryConnection } from './IObservableQueryConnection.js';\nimport { DataReceived } from './ObservableQueryConnection.js';\n\n/**\n * Tracks the number of active subscribers assigned to each pool slot.\n */\ninterface PoolSlot {\n queryCount: number;\n}\n\n/**\n * Represents a pool of observable query connection factories distributed round-robin across N slots.\n *\n * Each call to {@link acquire} picks the slot with the fewest active queries (falling back to\n * round-robin when counts are equal) and creates a fresh connection for that subscriber via the\n * provided factory. The connection is a dedicated instance per subscriber; the pool only tracks\n * slot utilization so future multiplexed transports (e.g. WebSocket) can share connections\n * across a fixed number of physical hub connections.\n *\n * When {@link size} is 1 (the default), all queries are counted against a single slot — the\n * natural behavior for a single multiplexed connection.\n *\n * @template TDataType The type of data received from the connections.\n */\nexport class ObservableQueryConnectionPool<TDataType> {\n private readonly _slots: PoolSlot[];\n\n /**\n * Initializes a new {@link ObservableQueryConnectionPool}.\n * @param {number} size Number of logical slots (hub connections) in the pool.\n * @param {() => IObservableQueryConnection<TDataType>} factory Factory that produces a new connection instance per subscriber.\n */\n constructor(\n size: number,\n private readonly _factory: () => IObservableQueryConnection<TDataType>\n ) {\n this._slots = Array.from({ length: Math.max(1, size) }, () => ({ queryCount: 0 }));\n }\n\n /**\n * Picks the least-loaded pool slot, creates a fresh connection via the factory, and starts\n * delivering data to the provided callback.\n * @param {DataReceived<TDataType>} dataReceived Callback invoked for each message.\n * @param {object} queryArguments Arguments forwarded to the connection.\n * @returns A cleanup function that decrements the slot counter and disconnects the connection.\n */\n acquire(dataReceived: DataReceived<TDataType>, queryArguments?: object): () => void {\n // Pick the slot with the fewest active queries.\n const slot = this._slots.reduce((min, current) => current.queryCount < min.queryCount ? current : min, this._slots[0]);\n slot.queryCount++;\n\n // Each subscriber gets its own dedicated connection instance.\n const connection = this._factory();\n connection.connect(dataReceived, queryArguments);\n\n return () => {\n connection.disconnect();\n slot.queryCount = Math.max(0, slot.queryCount - 1);\n };\n }\n}\n"],"names":["ObservableQueryConnectionPool","_slots","size","_factory","Array","from","length","Math","max","queryCount","acquire","dataReceived","queryArguments","slot","reduce","min","current","connection","connect","disconnect"],"mappings":";;AAAA;AACA;AAYA;;;;;;;;;;;;;AAaC,IACM,MAAMA,6BAAAA,CAAAA;;IACQC,MAAAA;AAEjB;;;;AAIC,QACD,WAAA,CACIC,IAAY,EACKC,QAAqD,CACxE;aADmBA,QAAAA,GAAAA,QAAAA;AAEjB,QAAA,IAAI,CAACF,MAAM,GAAGG,KAAAA,CAAMC,IAAI,CAAC;YAAEC,MAAAA,EAAQC,IAAAA,CAAKC,GAAG,CAAC,CAAA,EAAGN,IAAAA;AAAM,SAAA,EAAG,KAAO;gBAAEO,UAAAA,EAAY;aAAE,CAAA,CAAA;AACnF,IAAA;AAEA;;;;;;AAMC,QACDC,OAAAA,CAAQC,YAAqC,EAAEC,cAAuB,EAAc;;QAEhF,MAAMC,IAAAA,GAAO,IAAI,CAACZ,MAAM,CAACa,MAAM,CAAC,CAACC,GAAAA,EAAKC,OAAAA,GAAYA,OAAAA,CAAQP,UAAU,GAAGM,GAAAA,CAAIN,UAAU,GAAGO,OAAAA,GAAUD,KAAK,IAAI,CAACd,MAAM,CAAC,CAAA,CAAE,CAAA;AACrHY,QAAAA,IAAAA,CAAKJ,UAAU,EAAA;;QAGf,MAAMQ,UAAAA,GAAa,IAAI,CAACd,QAAQ,EAAA;QAChCc,UAAAA,CAAWC,OAAO,CAACP,YAAAA,EAAcC,cAAAA,CAAAA;QAEjC,OAAO,IAAA;AACHK,YAAAA,UAAAA,CAAWE,UAAU,EAAA;YACrBN,IAAAA,CAAKJ,UAAU,GAAGF,IAAAA,CAAKC,GAAG,CAAC,CAAA,EAAGK,IAAAA,CAAKJ,UAAU,GAAG,CAAA,CAAA;AACpD,QAAA,CAAA;AACJ,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { QueryInstanceCache } from './QueryInstanceCache.js';
|
|
3
|
+
import { ObservableQueryMultiplexer } from './ObservableQueryMultiplexer.js';
|
|
4
|
+
import { IObservableQueryDiagnostics } from './IObservableQueryDiagnostics.js';
|
|
5
|
+
import { ObservableQueryDiagnosticsSnapshot, TransportDiagnostics } from './ObservableQueryDiagnosticsSnapshot.js';
|
|
6
|
+
export declare class ObservableQueryDiagnostics implements IObservableQueryDiagnostics {
|
|
7
|
+
private readonly _cache;
|
|
8
|
+
private readonly _getMultiplexer;
|
|
9
|
+
private readonly _getTransportConfig;
|
|
10
|
+
private readonly _snapshots;
|
|
11
|
+
private readonly _ownersByKey;
|
|
12
|
+
constructor(_cache: QueryInstanceCache, _getMultiplexer: () => ObservableQueryMultiplexer | undefined, _getTransportConfig: () => TransportDiagnostics);
|
|
13
|
+
get snapshots$(): Observable<ObservableQueryDiagnosticsSnapshot>;
|
|
14
|
+
getSnapshot(): ObservableQueryDiagnosticsSnapshot;
|
|
15
|
+
beginTracking(cacheKey: string, owner: string): void;
|
|
16
|
+
endTracking(cacheKey: string): void;
|
|
17
|
+
private _buildMultiplexerDiagnostics;
|
|
18
|
+
private _createSnapshot;
|
|
19
|
+
private _publishSnapshot;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ObservableQueryDiagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservableQueryDiagnostics.d.ts","sourceRoot":"","sources":["../../../queries/ObservableQueryDiagnostics.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAW,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EACH,kCAAkC,EAElC,oBAAoB,EAGvB,MAAM,yCAAyC,CAAC;AAMjD,qBAAa,0BAA2B,YAAW,2BAA2B;IAWtE,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAZxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAqD;IAChF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA6B;IAQ1D,YACqB,MAAM,EAAE,kBAAkB,EAC1B,eAAe,EAAE,MAAM,0BAA0B,GAAG,SAAS,EAC7D,mBAAmB,EAAE,MAAM,oBAAoB,EAChE;IAKJ,IAAI,UAAU,IAAI,UAAU,CAAC,kCAAkC,CAAC,CAE/D;IAGD,WAAW,IAAI,kCAAkC,CAIhD;IAGD,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAGnD;IAGD,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAGlC;IAED,OAAO,CAAC,4BAA4B;IAwBpC,OAAO,CAAC,eAAe;IAkCvB,OAAO,CAAC,gBAAgB;CAG3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservableQueryDiagnostics.js","sources":["../../../queries/ObservableQueryDiagnostics.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 { Observable, Subject } from 'rxjs';\nimport { QueryInstanceCache } from './QueryInstanceCache';\nimport { ObservableQueryMultiplexer } from './ObservableQueryMultiplexer';\nimport { IObservableQueryDiagnostics } from './IObservableQueryDiagnostics';\nimport {\n ObservableQueryDiagnosticsSnapshot,\n MultiplexerDiagnostics,\n TransportDiagnostics,\n HealthDiagnostics,\n OwnershipDiagnostics,\n} from './ObservableQueryDiagnosticsSnapshot';\n\n/**\n * Implements the {@link IObservableQueryDiagnostics} contract by collecting live state from\n * the {@link QueryInstanceCache} and the shared {@link ObservableQueryMultiplexer}.\n */\nexport class ObservableQueryDiagnostics implements IObservableQueryDiagnostics {\n private readonly _snapshots = new Subject<ObservableQueryDiagnosticsSnapshot>();\n private readonly _ownersByKey = new Map<string, string>();\n\n /**\n * Initializes a new instance of {@link ObservableQueryDiagnostics}.\n * @param _cache The {@link QueryInstanceCache} whose state will be reflected.\n * @param _getMultiplexer Factory that returns the current shared multiplexer, or {@code undefined}.\n * @param _getTransportConfig Factory that returns the current transport diagnostics.\n */\n constructor(\n private readonly _cache: QueryInstanceCache,\n private readonly _getMultiplexer: () => ObservableQueryMultiplexer | undefined,\n private readonly _getTransportConfig: () => TransportDiagnostics,\n ) {}\n\n /**\n * Stream of diagnostics snapshots.\n */\n get snapshots$(): Observable<ObservableQueryDiagnosticsSnapshot> {\n return this._snapshots.asObservable();\n }\n\n /** @inheritdoc */\n getSnapshot(): ObservableQueryDiagnosticsSnapshot {\n const snapshot = this._createSnapshot();\n this._publishSnapshot(snapshot);\n return snapshot;\n }\n\n /** @inheritdoc */\n beginTracking(cacheKey: string, owner: string): void {\n this._ownersByKey.set(cacheKey, owner);\n this._publishSnapshot(this._createSnapshot());\n }\n\n /** @inheritdoc */\n endTracking(cacheKey: string): void {\n this._ownersByKey.delete(cacheKey);\n this._publishSnapshot(this._createSnapshot());\n }\n\n private _buildMultiplexerDiagnostics(): MultiplexerDiagnostics {\n const mux = this._getMultiplexer();\n if (!mux) {\n return {\n isConnected: false,\n configuredConnectionCount: 0,\n effectiveConnectionCount: 0,\n activeConnectionCount: 0,\n connections: [],\n };\n }\n\n const connections = mux.getConnectionsSnapshot();\n const activeConnectionCount = connections.filter(c => c.isConnected).length;\n\n return {\n isConnected: activeConnectionCount > 0,\n configuredConnectionCount: connections.length,\n effectiveConnectionCount: connections.length,\n activeConnectionCount,\n connections,\n };\n }\n\n private _createSnapshot(): ObservableQueryDiagnosticsSnapshot {\n const transport = this._getTransportConfig();\n const multiplexer = this._buildMultiplexerDiagnostics();\n const cache = this._cache.getDiagnosticsSnapshot();\n\n const ownersByQueryKey: Record<string, string> = {};\n const queriesByOwner: Record<string, string[]> = {};\n\n for (const [key, owner] of this._ownersByKey) {\n ownersByQueryKey[key] = owner;\n if (!queriesByOwner[owner]) {\n queriesByOwner[owner] = [];\n }\n queriesByOwner[owner].push(key);\n }\n\n const ownership: OwnershipDiagnostics = { ownersByQueryKey, queriesByOwner };\n\n const disconnectedQueryCount = multiplexer.connections.filter(c => !c.isConnected).length;\n const health: HealthDiagnostics = {\n allQueriesConnected: multiplexer.isConnected && cache.healthy,\n disconnectedQueryCount,\n };\n\n return {\n health,\n transport,\n multiplexer,\n cache,\n ownership,\n timestamp: new Date().toISOString(),\n };\n }\n\n private _publishSnapshot(snapshot: ObservableQueryDiagnosticsSnapshot): void {\n this._snapshots.next(snapshot);\n }\n}\n"],"names":["ObservableQueryDiagnostics","_snapshots","Subject","_ownersByKey","Map","_cache","_getMultiplexer","_getTransportConfig","snapshots$","asObservable","getSnapshot","snapshot","_createSnapshot","_publishSnapshot","beginTracking","cacheKey","owner","set","endTracking","delete","_buildMultiplexerDiagnostics","mux","isConnected","configuredConnectionCount","effectiveConnectionCount","activeConnectionCount","connections","getConnectionsSnapshot","filter","c","length","transport","multiplexer","cache","getDiagnosticsSnapshot","ownersByQueryKey","queriesByOwner","key","push","ownership","disconnectedQueryCount","health","allQueriesConnected","healthy","timestamp","Date","toISOString","next"],"mappings":";;;;AAAA;AACA;AAcA;;;AAGC,IACM,MAAMA,0BAAAA,CAAAA;;;;AACQC,IAAAA,UAAAA,GAAa,IAAIC,YAAAA,EAAAA;AACjBC,IAAAA,YAAAA,GAAe,IAAIC,GAAAA,EAAAA;AAEpC;;;;;QAMA,WAAA,CACI,MAA2C,EAC3C,eAA8E,EAC9E,mBAAgE,CAClE;aAHmBC,MAAAA,GAAAA,MAAAA;aACAC,eAAAA,GAAAA,eAAAA;aACAC,mBAAAA,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YACAK,SAAAA,EAAW,IAAIC,OAAOC,WAAW;AACrC,SAAA;AACJ,IAAA;AAEQjC,IAAAA,gBAAAA,CAAiBF,QAA4C,EAAQ;AACzE,QAAA,IAAI,CAACV,UAAU,CAAC8C,IAAI,CAACpC,QAAAA,CAAAA;AACzB,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"ObservableQueryDiagnostics.js","sources":["../../../queries/ObservableQueryDiagnostics.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 { Observable, Subject } from 'rxjs';\nimport { QueryInstanceCache } from './QueryInstanceCache.js';\nimport { ObservableQueryMultiplexer } from './ObservableQueryMultiplexer.js';\nimport { IObservableQueryDiagnostics } from './IObservableQueryDiagnostics.js';\nimport {\n ObservableQueryDiagnosticsSnapshot,\n MultiplexerDiagnostics,\n TransportDiagnostics,\n HealthDiagnostics,\n OwnershipDiagnostics,\n} from './ObservableQueryDiagnosticsSnapshot.js';\n\n/**\n * Implements the {@link IObservableQueryDiagnostics} contract by collecting live state from\n * the {@link QueryInstanceCache} and the shared {@link ObservableQueryMultiplexer}.\n */\nexport class ObservableQueryDiagnostics implements IObservableQueryDiagnostics {\n private readonly _snapshots = new Subject<ObservableQueryDiagnosticsSnapshot>();\n private readonly _ownersByKey = new Map<string, string>();\n\n /**\n * Initializes a new instance of {@link ObservableQueryDiagnostics}.\n * @param _cache The {@link QueryInstanceCache} whose state will be reflected.\n * @param _getMultiplexer Factory that returns the current shared multiplexer, or {@code undefined}.\n * @param _getTransportConfig Factory that returns the current transport diagnostics.\n */\n constructor(\n private readonly _cache: QueryInstanceCache,\n private readonly _getMultiplexer: () => ObservableQueryMultiplexer | undefined,\n private readonly _getTransportConfig: () => TransportDiagnostics,\n ) {}\n\n /**\n * Stream of diagnostics snapshots.\n */\n get snapshots$(): Observable<ObservableQueryDiagnosticsSnapshot> {\n return this._snapshots.asObservable();\n }\n\n /** @inheritdoc */\n getSnapshot(): ObservableQueryDiagnosticsSnapshot {\n const snapshot = this._createSnapshot();\n this._publishSnapshot(snapshot);\n return snapshot;\n }\n\n /** @inheritdoc */\n beginTracking(cacheKey: string, owner: string): void {\n this._ownersByKey.set(cacheKey, owner);\n this._publishSnapshot(this._createSnapshot());\n }\n\n /** @inheritdoc */\n endTracking(cacheKey: string): void {\n this._ownersByKey.delete(cacheKey);\n this._publishSnapshot(this._createSnapshot());\n }\n\n private _buildMultiplexerDiagnostics(): MultiplexerDiagnostics {\n const mux = this._getMultiplexer();\n if (!mux) {\n return {\n isConnected: false,\n configuredConnectionCount: 0,\n effectiveConnectionCount: 0,\n activeConnectionCount: 0,\n connections: [],\n };\n }\n\n const connections = mux.getConnectionsSnapshot();\n const activeConnectionCount = connections.filter(c => c.isConnected).length;\n\n return {\n isConnected: activeConnectionCount > 0,\n configuredConnectionCount: connections.length,\n effectiveConnectionCount: connections.length,\n activeConnectionCount,\n connections,\n };\n }\n\n private _createSnapshot(): ObservableQueryDiagnosticsSnapshot {\n const transport = this._getTransportConfig();\n const multiplexer = this._buildMultiplexerDiagnostics();\n const cache = this._cache.getDiagnosticsSnapshot();\n\n const ownersByQueryKey: Record<string, string> = {};\n const queriesByOwner: Record<string, string[]> = {};\n\n for (const [key, owner] of this._ownersByKey) {\n ownersByQueryKey[key] = owner;\n if (!queriesByOwner[owner]) {\n queriesByOwner[owner] = [];\n }\n queriesByOwner[owner].push(key);\n }\n\n const ownership: OwnershipDiagnostics = { ownersByQueryKey, queriesByOwner };\n\n const disconnectedQueryCount = multiplexer.connections.filter(c => !c.isConnected).length;\n const health: HealthDiagnostics = {\n allQueriesConnected: multiplexer.isConnected && cache.healthy,\n disconnectedQueryCount,\n };\n\n return {\n health,\n transport,\n multiplexer,\n cache,\n ownership,\n timestamp: new Date().toISOString(),\n };\n }\n\n private _publishSnapshot(snapshot: ObservableQueryDiagnosticsSnapshot): void {\n this._snapshots.next(snapshot);\n }\n}\n"],"names":["ObservableQueryDiagnostics","_snapshots","Subject","_ownersByKey","Map","_cache","_getMultiplexer","_getTransportConfig","snapshots$","asObservable","getSnapshot","snapshot","_createSnapshot","_publishSnapshot","beginTracking","cacheKey","owner","set","endTracking","delete","_buildMultiplexerDiagnostics","mux","isConnected","configuredConnectionCount","effectiveConnectionCount","activeConnectionCount","connections","getConnectionsSnapshot","filter","c","length","transport","multiplexer","cache","getDiagnosticsSnapshot","ownersByQueryKey","queriesByOwner","key","push","ownership","disconnectedQueryCount","health","allQueriesConnected","healthy","timestamp","Date","toISOString","next"],"mappings":";;;;AAAA;AACA;AAcA;;;AAGC,IACM,MAAMA,0BAAAA,CAAAA;;;;AACQC,IAAAA,UAAAA,GAAa,IAAIC,YAAAA,EAAAA;AACjBC,IAAAA,YAAAA,GAAe,IAAIC,GAAAA,EAAAA;AAEpC;;;;;QAMA,WAAA,CACI,MAA2C,EAC3C,eAA8E,EAC9E,mBAAgE,CAClE;aAHmBC,MAAAA,GAAAA,MAAAA;aACAC,eAAAA,GAAAA,eAAAA;aACAC,mBAAAA,GAAAA,mBAAAA;AAClB,IAAA;AAEH;;AAEC,QACD,IAAIC,UAAAA,GAA6D;AAC7D,QAAA,OAAO,IAAI,CAACP,UAAU,CAACQ,YAAY,EAAA;AACvC,IAAA;AAEA,uBACAC,WAAAA,GAAkD;QAC9C,MAAMC,QAAAA,GAAW,IAAI,CAACC,eAAe,EAAA;QACrC,IAAI,CAACC,gBAAgB,CAACF,QAAAA,CAAAA;QACtB,OAAOA,QAAAA;AACX,IAAA;AAEA,uBACAG,aAAAA,CAAcC,QAAgB,EAAEC,KAAa,EAAQ;AACjD,QAAA,IAAI,CAACb,YAAY,CAACc,GAAG,CAACF,QAAAA,EAAUC,KAAAA,CAAAA;AAChC,QAAA,IAAI,CAACH,gBAAgB,CAAC,IAAI,CAACD,eAAe,EAAA,CAAA;AAC9C,IAAA;uBAGAM,WAAAA,CAAYH,QAAgB,EAAQ;AAChC,QAAA,IAAI,CAACZ,YAAY,CAACgB,M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A,CAAM,EAAE;gBACxBoB,cAAc,CAACpB,KAAAA,CAAM,GAAG,EAAE;AAC9B,YAAA;AACAoB,YAAAA,cAAc,CAACpB,KAAAA,CAAM,CAACsB,IAAI,CAACD,GAAAA,CAAAA;AAC/B,QAAA;AAEA,QAAA,MAAME,SAAAA,GAAkC;AAAEJ,YAAAA,gBAAAA;AAAkBC,YAAAA;AAAe,SAAA;AAE3E,QAAA,MAAMI,sBAAAA,GAAyBR,WAAAA,CAAYN,WAAW,CAACE,MAAM,CAACC,CAAAA,CAAAA,GAAK,CAACA,CAAAA,CAAEP,WAAW,CAAA,CAAEQ,MAAM;AACzF,QAAA,MAAMW,MAAAA,GAA4B;AAC9BC,YAAAA,mBAAAA,EAAqBV,WAAAA,CAAYV,WAAW,IAAIW,KAAAA,CAAMU,OAAO;AAC7DH,YAAAA;AACJ,SAAA;QAEA,OAAO;AACHC,YAAAA,MAAAA;AACAV,YAAAA,SAAAA;AACAC,YAAAA,WAAAA;AACAC,YAAAA,KAAAA;AACAM,YAAAA,SAAAA;YACAK,SAAAA,EAAW,IAAIC,OAAOC,WAAW;AACrC,SAAA;AACJ,IAAA;AAEQjC,IAAAA,gBAAAA,CAAiBF,QAA4C,EAAQ;AACzE,QAAA,IAAI,CAACV,UAAU,CAAC8C,IAAI,CAACpC,QAAAA,CAAAA;AACzB,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface MultiplexerConnectionState {
|
|
2
|
+
index: number;
|
|
3
|
+
isConnected: boolean;
|
|
4
|
+
queryCount: number;
|
|
5
|
+
}
|
|
6
|
+
export interface MultiplexerDiagnostics {
|
|
7
|
+
isConnected: boolean;
|
|
8
|
+
configuredConnectionCount: number;
|
|
9
|
+
effectiveConnectionCount: number;
|
|
10
|
+
activeConnectionCount: number;
|
|
11
|
+
connections: MultiplexerConnectionState[];
|
|
12
|
+
}
|
|
13
|
+
export interface CacheEntryDiagnostics {
|
|
14
|
+
key: string;
|
|
15
|
+
queryName: string;
|
|
16
|
+
subscriberCount: number;
|
|
17
|
+
listenerCount: number;
|
|
18
|
+
subscribed: boolean;
|
|
19
|
+
hasResult: boolean;
|
|
20
|
+
estimatedBytes: number;
|
|
21
|
+
}
|
|
22
|
+
export interface CacheDiagnostics {
|
|
23
|
+
healthy: boolean;
|
|
24
|
+
entryCount: number;
|
|
25
|
+
estimatedBytes: number;
|
|
26
|
+
entries: CacheEntryDiagnostics[];
|
|
27
|
+
}
|
|
28
|
+
export interface TransportDiagnostics {
|
|
29
|
+
queryTransportMethod: string;
|
|
30
|
+
queryDirectMode: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface HealthDiagnostics {
|
|
33
|
+
allQueriesConnected: boolean;
|
|
34
|
+
disconnectedQueryCount: number;
|
|
35
|
+
}
|
|
36
|
+
export interface OwnershipDiagnostics {
|
|
37
|
+
ownersByQueryKey: Record<string, string>;
|
|
38
|
+
queriesByOwner: Record<string, string[]>;
|
|
39
|
+
}
|
|
40
|
+
export interface ObservableQueryDiagnosticsSnapshot {
|
|
41
|
+
health: HealthDiagnostics;
|
|
42
|
+
transport: TransportDiagnostics;
|
|
43
|
+
multiplexer: MultiplexerDiagnostics;
|
|
44
|
+
cache: CacheDiagnostics;
|
|
45
|
+
ownership: OwnershipDiagnostics;
|
|
46
|
+
timestamp: string;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=ObservableQueryDiagnosticsSnapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservableQueryDiagnosticsSnapshot.d.ts","sourceRoot":"","sources":["../../../queries/ObservableQueryDiagnosticsSnapshot.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,0BAA0B;IAEvC,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,EAAE,OAAO,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;CACtB;AAKD,MAAM,WAAW,sBAAsB;IAEnC,WAAW,EAAE,OAAO,CAAC;IAErB,yBAAyB,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
+
import { ObservableQuerySubscription } from './ObservableQuerySubscription.js';
|
|
3
|
+
import type { QueryValidator } from './QueryValidator.js';
|
|
4
|
+
import type { Constructor } from '@cratis/fundamentals';
|
|
5
|
+
import { QueryResult } from './QueryResult.js';
|
|
6
|
+
import { Sorting } from './Sorting.js';
|
|
7
|
+
import { Paging } from './Paging.js';
|
|
8
|
+
import type { GetHttpHeaders } from '../GetHttpHeaders.js';
|
|
9
|
+
import type { ParameterDescriptor } from '../reflection/ParameterDescriptor.js';
|
|
10
|
+
import type { QueryHttpMethod } from './QueryHttpMethod.js';
|
|
11
|
+
export declare abstract class ObservableQueryFor<TDataType, TParameters = object> implements IObservableQueryFor<TDataType, TParameters> {
|
|
12
|
+
readonly modelType: Constructor;
|
|
13
|
+
readonly enumerable: boolean;
|
|
14
|
+
private _microservice;
|
|
15
|
+
private _apiBasePath;
|
|
16
|
+
private _origin;
|
|
17
|
+
private _connection?;
|
|
18
|
+
private _httpHeadersCallback;
|
|
19
|
+
private _httpMethod?;
|
|
20
|
+
abstract readonly route: string;
|
|
21
|
+
abstract readonly defaultValue: TDataType;
|
|
22
|
+
readonly roles: string[];
|
|
23
|
+
readonly validation?: QueryValidator<any>;
|
|
24
|
+
readonly queryName?: string;
|
|
25
|
+
abstract readonly parameterDescriptors: ParameterDescriptor[];
|
|
26
|
+
abstract get requiredRequestParameters(): string[];
|
|
27
|
+
sorting: Sorting;
|
|
28
|
+
paging: Paging;
|
|
29
|
+
constructor(modelType: Constructor, enumerable: boolean);
|
|
30
|
+
dispose(): void;
|
|
31
|
+
setMicroservice(microservice: string): void;
|
|
32
|
+
setApiBasePath(apiBasePath: string): void;
|
|
33
|
+
setOrigin(origin: string): void;
|
|
34
|
+
setHttpHeadersCallback(callback: GetHttpHeaders): void;
|
|
35
|
+
setHttpMethod(method: QueryHttpMethod): void;
|
|
36
|
+
subscribe(callback: OnNextResult<QueryResult<TDataType>>, args?: TParameters): ObservableQuerySubscription<TDataType>;
|
|
37
|
+
perform(args?: TParameters): Promise<QueryResult<TDataType>>;
|
|
38
|
+
private validateArguments;
|
|
39
|
+
private buildQueryArguments;
|
|
40
|
+
private deserializeResult;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=ObservableQueryFor.d.ts.map
|