@cratis/arc 22.25.0 → 22.26.1
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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerSentEventHubConnection.js","sources":["../../../queries/ServerSentEventHubConnection.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 type { IObservableQueryHubConnection } from './IObservableQueryHubConnection';\nimport type { DataReceived } from './ObservableQueryConnection';\nimport { HubConnectionKeepAlive } from './HubConnectionKeepAlive';\nimport type { IReconnectPolicy } from './IReconnectPolicy';\nimport { ReconnectPolicy } from './ReconnectPolicy';\nimport { QueryResult } from './QueryResult';\nimport {\n type HubMessage,\n HubMessageType,\n type SubscriptionRequest,\n} from './WebSocketHubConnection';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\ninterface ActiveSubscription {\n request: SubscriptionRequest;\n callback: DataReceived<any>;\n revision: number;\n}\n\n/**\n * How many keep-alive intervals of silence are tolerated before the connection is considered dead.\n *\n * The server guarantees a message every interval, so this is pure slack for latency and jitter.\n * It must stay above 1 — a threshold at or below the server's own cadence makes the client and\n * server timers race, and the client tears down connections the server considers healthy.\n */\nconst IDLE_THRESHOLD_FACTOR = 2;\n\n/**\n * A multiplexed SSE hub connection that uses EventSource for server→client streaming\n * and fetch POST requests for client→server subscribe/unsubscribe commands.\n *\n * Protocol:\n * 1. Open EventSource to the SSE hub endpoint.\n * 2. Server sends a {@link HubMessageType.Connected} message with the connection identifier.\n * 3. Client sends POST to subscribe/unsubscribe endpoints using the connection identifier.\n * 4. Server streams {@link HubMessageType.QueryResult} messages tagged with queryId.\n * 5. When EventSource closes, server cleans up all subscriptions for this connection.\n */\nexport class ServerSentEventHubConnection implements IObservableQueryHubConnection {\n private _eventSource?: EventSource;\n private _connectionId?: string;\n private _disconnected = false;\n private _subscriptions: Map<string, ActiveSubscription> = new Map();\n private _pendingSubscriptions: Map<string, ActiveSubscription> = new Map();\n private _lastPongLatency: number = 0;\n private _latencySamples: number[] = [];\n private _connectTimeoutTimer?: ReturnType<typeof setTimeout>;\n private _nextRevision = 0;\n private _supportsSubscriptionRevisions = false;\n private readonly _keepAlive: HubConnectionKeepAlive;\n\n /**\n * Initializes a new instance of {@link ServerSentEventHubConnection}.\n * @param {string} _sseUrl The SSE hub endpoint URL (e.g. `http://localhost:5000/.cratis/queries/sse`).\n * @param {string} _subscribeUrl The subscribe POST endpoint URL.\n * @param {string} _unsubscribeUrl The unsubscribe POST endpoint URL.\n * @param {string} _microservice The microservice name to pass as a query argument.\n * @param {number} keepAliveIntervalMs The keep-alive cadence to assume until the server advertises\n * its own on the {@link HubMessageType.Connected} message (default: 30 000 ms). The connection is\n * considered stale after {@link IDLE_THRESHOLD_FACTOR} times this without any server message.\n * @param {number} _connectTimeoutMs How long to wait for the {@link HubMessageType.Connected}\n * message after the HTTP connection opens before giving up and retrying (default: 15 000 ms).\n * @param {IReconnectPolicy} _policy The reconnect policy to use (default: {@link ReconnectPolicy}).\n */\n constructor(\n private readonly _sseUrl: string,\n private readonly _subscribeUrl: string,\n private readonly _unsubscribeUrl: string,\n private readonly _microservice: string,\n keepAliveIntervalMs: number = 30000,\n private readonly _connectTimeoutMs: number = 15000,\n private readonly _policy: IReconnectPolicy = new ReconnectPolicy(),\n ) {\n // SSE is server→client only: the client cannot send pings. Instead we watch for\n // inactivity — if the server stops sending messages (including its own keep-alive\n // pings) for the entire idle threshold, the connection is stale and we reconnect.\n //\n // The server guarantees a message at least every keep-alive interval, so the threshold\n // only has to absorb network latency, timer jitter and server-side scheduling hiccups.\n // A hard TCP drop surfaces immediately through `onerror`, so this watchdog only needs to\n // catch silent black-holes — that makes a generous tolerance strictly better than a tight\n // one, which would tear down healthy connections.\n //\n // The interval below is only the starting assumption; the server advertises its real\n // cadence on the Connected message and {@link handleConnected} reconfigures from it.\n this._keepAlive = new HubConnectionKeepAlive(\n keepAliveIntervalMs,\n () => {\n if (!this._disconnected && this._subscriptions.size > 0) {\n console.warn(\n 'SSE hub: no messages received; reconnecting',\n this._keepAlive.idleThresholdMs,\n this._sseUrl,\n );\n this.reconnect();\n }\n },\n keepAliveIntervalMs * IDLE_THRESHOLD_FACTOR,\n );\n }\n\n /** @inheritdoc */\n get queryCount(): number {\n return this._subscriptions.size;\n }\n\n /** @inheritdoc */\n get isConnected(): boolean {\n return (\n this._connectionId !== undefined &&\n this._eventSource?.readyState === EventSource.OPEN\n );\n }\n\n /** @inheritdoc */\n get lastPingLatency(): number {\n return this._lastPongLatency;\n }\n\n /** @inheritdoc */\n get averageLatency(): number {\n if (this._latencySamples.length === 0) return 0;\n return (\n this._latencySamples.reduce((a, b) => a + b, 0) / this._latencySamples.length\n );\n }\n\n /** @inheritdoc */\n subscribe(\n queryId: string,\n request: SubscriptionRequest,\n callback: DataReceived<any>,\n ): void {\n const sub: ActiveSubscription = {\n request,\n callback,\n revision: this.getNextRevision(),\n };\n this._subscriptions.set(queryId, sub);\n\n this.ensureConnected();\n\n if (this._connectionId) {\n this.sendSubscribe(queryId, sub);\n } else {\n // Not yet connected, queue for when Connected message arrives.\n this._pendingSubscriptions.set(queryId, sub);\n }\n }\n\n /** @inheritdoc */\n unsubscribe(queryId: string): void {\n const subscription = this._subscriptions.get(queryId);\n this._subscriptions.delete(queryId);\n this._pendingSubscriptions.delete(queryId);\n\n if (this._connectionId && subscription) {\n this.sendUnsubscribe(queryId, subscription.revision);\n }\n\n if (this._subscriptions.size === 0) {\n this.close();\n }\n }\n\n /** @inheritdoc */\n dispose(): void {\n this._disconnected = true;\n this._subscriptions.clear();\n this._pendingSubscriptions.clear();\n this._policy.cancel();\n this._keepAlive.stop();\n this.clearConnectTimeout();\n this.detachAndCloseEventSource();\n this._connectionId = undefined;\n }\n\n private detachAndCloseEventSource(): void {\n const eventSource = this._eventSource;\n if (!eventSource) return;\n\n eventSource.onopen = null;\n eventSource.onmessage = null;\n eventSource.onerror = null;\n eventSource.close();\n\n if (this._eventSource === eventSource) {\n this._eventSource = undefined;\n }\n }\n\n private ensureConnected(): void {\n if (this._disconnected) {\n this._disconnected = false;\n }\n\n if (this._eventSource && this._eventSource.readyState !== EventSource.CLOSED) {\n return;\n }\n\n // An immediate subscription can win while a back-off callback is pending. Cancel that callback before\n // opening, and let openEventSource perform the same live-source guard for already-queued callbacks.\n this._policy.cancel();\n this.openEventSource();\n }\n\n private close(): void {\n this._disconnected = true;\n this._policy.cancel();\n this._keepAlive.stop();\n this.clearConnectTimeout();\n this.detachAndCloseEventSource();\n this._connectionId = undefined;\n }\n\n private openEventSource(): void {\n if (this._eventSource && this._eventSource.readyState !== EventSource.CLOSED) {\n return;\n }\n\n this._policy.cancel();\n let url = this._sseUrl;\n if (this._microservice?.length > 0) {\n const param = `${Globals.microserviceWSQueryArgument}=${encodeURIComponent(this._microservice)}`;\n url += (url.includes('?') ? '&' : '?') + param;\n }\n\n this._connectionId = undefined;\n this._supportsSubscriptionRevisions = false;\n const eventSource = Globals.eventSourceFactory\n ? Globals.eventSourceFactory(url)\n : new EventSource(url);\n this._eventSource = eventSource;\n\n eventSource.onopen = () => {\n if (this._disconnected || this._eventSource !== eventSource) return;\n console.log('SSE hub connection established', url);\n this._policy.reset();\n this._keepAlive.start();\n\n // If the server does not send a Connected message within the timeout, the\n // connection is broken. Close and retry via the reconnect policy.\n this.clearConnectTimeout();\n this._connectTimeoutTimer = setTimeout(() => {\n if (\n !this._disconnected &&\n this._eventSource === eventSource &&\n !this._connectionId\n ) {\n console.warn(\n 'SSE hub: no Connected message within timeout; retrying',\n this._connectTimeoutMs,\n url,\n );\n this.reconnect();\n }\n }, this._connectTimeoutMs);\n };\n\n eventSource.onmessage = (event: MessageEvent) => {\n if (this._disconnected || this._eventSource !== eventSource) return;\n this._keepAlive.recordActivity();\n this.handleMessage(event.data as string);\n };\n\n eventSource.onerror = () => {\n if (this._disconnected || this._eventSource !== eventSource) return;\n console.warn('SSE hub connection error', url);\n this.reconnect();\n };\n }\n\n private reconnect(): void {\n this._keepAlive.stop();\n this.clearConnectTimeout();\n\n // Detach before closing so callbacks already queued by the retired source are inert.\n this.detachAndCloseEventSource();\n this._connectionId = undefined;\n\n // Move all active subscriptions to pending so they re-subscribe when\n // the next Connected message arrives after the managed reconnect.\n for (const [queryId, sub] of this._subscriptions) {\n this._pendingSubscriptions.set(queryId, sub);\n }\n\n if (this._subscriptions.size === 0) return;\n\n this._policy.schedule(() => {\n if (!this._disconnected && this._subscriptions.size > 0) {\n this.ensureConnected();\n }\n }, this._sseUrl);\n }\n\n private clearConnectTimeout(): void {\n if (this._connectTimeoutTimer !== undefined) {\n clearTimeout(this._connectTimeoutTimer);\n this._connectTimeoutTimer = undefined;\n }\n }\n\n private handleMessage(rawData: string): void {\n try {\n const message = JSON.parse(rawData) as HubMessage;\n\n switch (message.type) {\n case HubMessageType.Connected:\n this.handleConnected(message);\n break;\n case HubMessageType.QueryResult:\n this.handleQueryResult(message);\n break;\n case HubMessageType.Ping:\n // Server-sent keep-alive ping — activity already recorded in onmessage.\n break;\n case HubMessageType.Unauthorized:\n if (this.isMessageForCurrentSubscription(message)) {\n console.warn('SSE hub: query unauthorized', message.queryId);\n this.handleUnauthorized(message);\n }\n break;\n case HubMessageType.Error:\n if (this.isMessageForCurrentSubscription(message)) {\n console.error(\n 'SSE hub: query error',\n message.queryId,\n message.payload,\n );\n }\n break;\n }\n } catch (error) {\n console.error('SSE hub: error parsing message', error);\n }\n }\n\n private handleConnected(message: HubMessage): void {\n const connectionId = message.payload as string;\n const connectionIdChanged = this._connectionId !== connectionId;\n this._connectionId = connectionId;\n this._supportsSubscriptionRevisions =\n message.supportsSubscriptionRevisions === true;\n console.log('SSE hub: connected', this._connectionId);\n\n // Connected message arrived — cancel the connect timeout.\n this.clearConnectTimeout();\n\n this.applyServerKeepAliveInterval(message.keepAliveIntervalMs);\n\n // The active collection is authoritative. A previous connection's subscribe POST may\n // still be in flight, so relying only on pending subscriptions can orphan a query when\n // the server assigns a new connection ID before that POST completes.\n if (connectionIdChanged) {\n for (const [queryId, subscription] of this._subscriptions) {\n this.sendSubscribe(queryId, subscription);\n }\n }\n this._pendingSubscriptions.clear();\n }\n\n /**\n * Align the idle watchdog with the keep-alive cadence the server actually runs on.\n *\n * Without this the client assumes the default interval, so a server configured with a longer\n * interval — or with keep-alive switched off entirely — would look silent and be reconnected\n * on a loop even though it is perfectly healthy.\n * @param {number | undefined} serverIntervalMs The interval advertised by the server, if any.\n */\n private applyServerKeepAliveInterval(serverIntervalMs?: number): void {\n if (serverIntervalMs === undefined) return;\n\n // Keep-alive disabled server-side: silence is expected, so watching for it would guarantee\n // an endless reconnect loop. Hard drops still surface through `onerror`.\n if (serverIntervalMs <= 0) {\n this._keepAlive.stop();\n return;\n }\n\n this._keepAlive.reconfigure(\n serverIntervalMs,\n serverIntervalMs * IDLE_THRESHOLD_FACTOR,\n );\n }\n\n private handleQueryResult(message: HubMessage): void {\n if (!message.queryId) return;\n\n const sub = this._subscriptions.get(message.queryId);\n if (!sub || !this.isMessageForCurrentSubscription(message)) return;\n\n const result = message.payload as QueryResult<any>;\n sub.callback(result);\n }\n\n private handleUnauthorized(message: HubMessage): void {\n if (!message.queryId) return;\n\n const sub = this._subscriptions.get(message.queryId);\n if (!sub || !this.isMessageForCurrentSubscription(message)) return;\n\n this._subscriptions.delete(message.queryId);\n this._pendingSubscriptions.delete(message.queryId);\n sub.callback(QueryResult.unauthorized());\n }\n\n private sendSubscribe(\n queryId: string,\n subscription: ActiveSubscription,\n attempt: number = 0,\n ): void {\n if (!this._connectionId || this._disconnected) return;\n\n // Capture the connection ID and subscription instance so retries can detect whether\n // either has been replaced while this request is in flight.\n const connectionId = this._connectionId;\n\n const body: {\n connectionId: string;\n queryId: string;\n request: SubscriptionRequest;\n revision?: number;\n } = {\n connectionId,\n queryId,\n request: subscription.request,\n };\n if (this._supportsSubscriptionRevisions) {\n body.revision = subscription.revision;\n }\n\n const customHeaders = Globals.httpHeadersCallback?.() ?? {};\n\n // Maximum number of subscribe retries before falling back to a full SSE reconnect.\n // In a round-robin load-balanced deployment the subscribe POST may land on a different\n // backend instance than the one holding the SSE connection. Retrying gives the load\n // balancer the chance to route a subsequent attempt to the correct instance without\n // tearing down the SSE connection unnecessarily. With N backend instances at most\n // N-1 retries are needed, so 3 retries covers deployments with up to 4 replicas.\n const maxRetries = 3;\n const retryDelayMs = 200;\n\n fetch(this._subscribeUrl, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...customHeaders },\n body: JSON.stringify(body),\n })\n .then((response) => {\n if (!response.ok) {\n if (\n !this.isCurrentSubscription(queryId, subscription, connectionId)\n ) {\n console.warn(\n 'SSE hub: subscribe POST returned a failure for an obsolete connection or subscription; ignoring',\n queryId,\n response.status,\n );\n } else if (attempt < maxRetries) {\n setTimeout(\n () => {\n if (\n this.isCurrentSubscription(\n queryId,\n subscription,\n connectionId,\n )\n ) {\n this.sendSubscribe(\n queryId,\n subscription,\n attempt + 1,\n );\n }\n },\n retryDelayMs * (attempt + 1),\n );\n } else {\n console.warn(\n 'SSE hub: subscribe POST failed after retries; reconnecting',\n queryId,\n response.status,\n attempt + 1,\n );\n this.reconnect();\n }\n }\n })\n .catch((error) => {\n if (!this.isCurrentSubscription(queryId, subscription, connectionId)) {\n console.warn(\n 'SSE hub: subscribe POST failed for an obsolete connection or subscription; ignoring',\n queryId,\n error,\n );\n } else if (attempt < maxRetries) {\n setTimeout(\n () => {\n if (\n this.isCurrentSubscription(\n queryId,\n subscription,\n connectionId,\n )\n ) {\n this.sendSubscribe(queryId, subscription, attempt + 1);\n }\n },\n retryDelayMs * (attempt + 1),\n );\n } else {\n console.error(\n 'SSE hub: subscribe POST failed after retries; reconnecting',\n queryId,\n attempt + 1,\n error,\n );\n this.reconnect();\n }\n });\n }\n\n private isMessageForCurrentSubscription(message: HubMessage): boolean {\n if (!message.queryId) return false;\n\n const subscription = this._subscriptions.get(message.queryId);\n if (!subscription) return false;\n\n if (!this._supportsSubscriptionRevisions) {\n return message.revision === undefined;\n }\n\n return (\n this.isValidRevision(message.revision) &&\n message.revision === subscription.revision\n );\n }\n\n private isCurrentSubscription(\n queryId: string,\n subscription: ActiveSubscription,\n connectionId: string,\n ): boolean {\n return (\n !this._disconnected &&\n this._connectionId === connectionId &&\n this._subscriptions.get(queryId) === subscription\n );\n }\n\n private getNextRevision(): number {\n if (this._nextRevision >= Number.MAX_SAFE_INTEGER) {\n throw new RangeError(\n 'SSE hub subscription revision exhausted the safe integer range',\n );\n }\n\n return ++this._nextRevision;\n }\n\n private isValidRevision(revision: number | undefined): revision is number {\n return revision !== undefined && Number.isSafeInteger(revision) && revision > 0;\n }\n\n private sendUnsubscribe(queryId: string, revision: number): void {\n if (!this._connectionId) return;\n\n const body: {\n connectionId: string;\n queryId: string;\n revision?: number;\n } = {\n connectionId: this._connectionId,\n queryId,\n };\n if (this._supportsSubscriptionRevisions) {\n body.revision = revision;\n }\n\n const customHeaders = Globals.httpHeadersCallback?.() ?? {};\n\n fetch(this._unsubscribeUrl, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...customHeaders },\n body: JSON.stringify(body),\n }).catch((error) => {\n console.error('SSE hub: unsubscribe POST failed', queryId, error);\n });\n }\n}\n"],"names":["IDLE_THRESHOLD_FACTOR","ServerSentEventHubConnection","_eventSource","_connectionId","_disconnected","_subscriptions","Map","_pendingSubscriptions","_lastPongLatency","_latencySamples","_connectTimeoutTimer","_nextRevision","_supportsSubscriptionRevisions","_keepAlive","_subscribeUrl","_unsubscribeUrl","keepAliveIntervalMs","_connectTimeoutMs","_policy","ReconnectPolicy","_sseUrl","_microservice","HubConnectionKeepAlive","size","console","warn","idleThresholdMs","reconnect","queryCount","isConnected","undefined","readyState","EventSource","OPEN","lastPingLatency","averageLatency","length","reduce","a","b","subscribe","queryId","request","callback","sub","revision","getNextRevision","set","ensureConnected","sendSubscribe","unsubscribe","subscription","get","delete","sendUnsubscribe","close","dispose","clear","cancel","stop","clearConnectTimeout","detachAndCloseEventSource","eventSource","onopen","onmessage","onerror","CLOSED","openEventSource","url","param","Globals","microserviceWSQueryArgument","encodeURIComponent","includes","eventSourceFactory","log","reset","start","setTimeout","event","recordActivity","handleMessage","data","schedule","clearTimeout","rawData","message","JSON","parse","type","HubMessageType","Connected","handleConnected","QueryResult","handleQueryResult","Ping","Unauthorized","isMessageForCurrentSubscription","handleUnauthorized","Error","error","payload","connectionId","connectionIdChanged","supportsSubscriptionRevisions","applyServerKeepAliveInterval","serverIntervalMs","reconfigure","result","unauthorized","attempt","body","customHeaders","httpHeadersCallback","maxRetries","retryDelayMs","fetch","method","headers","stringify","then","response","ok","isCurrentSubscription","status","catch","isValidRevision","Number","MAX_SAFE_INTEGER","RangeError","isSafeInteger"],"mappings":";;;;;;;;AAAA;AACA;AAuBA;;;;;;AAMC,IACD,MAAMA,qBAAAA,GAAwB,CAAA;AAE9B;;;;;;;;;;AAUC,IACM,MAAMC,4BAAAA,CAAAA;;;;;;;IACDC,YAAAA;IACAC,aAAAA;AACAC,IAAAA,aAAAA,GAAgB,KAAA;AAChBC,IAAAA,cAAAA,GAAkD,IAAIC,GAAAA,EAAAA;AACtDC,IAAAA,qBAAAA,GAAyD,IAAID,GAAAA,EAAAA;AAC7DE,IAAAA,gBAAAA,GAA2B,CAAA;AAC3BC,IAAAA,eAAAA,GAA4B,EAAE;IAC9BC,oBAAAA;AACAC,IAAAA,aAAAA,GAAgB,CAAA;AAChBC,IAAAA,8BAAAA,GAAiC,KAAA;IACxBC,UAAAA;AAEjB;;;;;;;;;;;;QAaA,WAAA,CACI,OAAgC,EACfC,aAAqB,EACrBC,eAAuB,EACxC,aAAsC,EACtCC,mBAAAA,GAA8B,KAAK,EAClBC,iBAAAA,GAA4B,KAAK,EAClD,OAAiBC,GAA4B,IAAIC,+BAAAA,EAAiB,CACpE;aAPmBC,OAAAA,GAAAA,OAAAA;aACAN,aAAAA,GAAAA,aAAAA;aACAC,eAAAA,GAAAA,eAAAA;aACAM,aAAAA,GAAAA,aAAAA;aAEAJ,iBAAAA,GAAAA,iBAAAA;aACAC,OAAAA,GAAAA,OAAAA;;;;;;;;;;;;;AAcjB,QAAA,IAAI,CAACL,UAAU,GAAG,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,KAAAA,GAAAA;YACN5E,OAAAA,CAAQ4E,KAAK,CAAC,kCAAA,EAAoC3D,OAAAA,EAAS2D,KAAAA,CAAAA;AAC/D,QAAA,CAAA,CAAA;AACJ,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"ServerSentEventHubConnection.js","sources":["../../../queries/ServerSentEventHubConnection.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 type { IObservableQueryHubConnection } from './IObservableQueryHubConnection.js';\nimport type { DataReceived } from './ObservableQueryConnection.js';\nimport { HubConnectionKeepAlive } from './HubConnectionKeepAlive.js';\nimport type { IReconnectPolicy } from './IReconnectPolicy.js';\nimport { ReconnectPolicy } from './ReconnectPolicy.js';\nimport { QueryResult } from './QueryResult.js';\nimport {\n type HubMessage,\n HubMessageType,\n type SubscriptionRequest,\n} from './WebSocketHubConnection.js';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\ninterface ActiveSubscription {\n request: SubscriptionRequest;\n callback: DataReceived<any>;\n revision: number;\n}\n\n/**\n * How many keep-alive intervals of silence are tolerated before the connection is considered dead.\n *\n * The server guarantees a message every interval, so this is pure slack for latency and jitter.\n * It must stay above 1 — a threshold at or below the server's own cadence makes the client and\n * server timers race, and the client tears down connections the server considers healthy.\n */\nconst IDLE_THRESHOLD_FACTOR = 2;\n\n/**\n * A multiplexed SSE hub connection that uses EventSource for server→client streaming\n * and fetch POST requests for client→server subscribe/unsubscribe commands.\n *\n * Protocol:\n * 1. Open EventSource to the SSE hub endpoint.\n * 2. Server sends a {@link HubMessageType.Connected} message with the connection identifier.\n * 3. Client sends POST to subscribe/unsubscribe endpoints using the connection identifier.\n * 4. Server streams {@link HubMessageType.QueryResult} messages tagged with queryId.\n * 5. When EventSource closes, server cleans up all subscriptions for this connection.\n */\nexport class ServerSentEventHubConnection implements IObservableQueryHubConnection {\n private _eventSource?: EventSource;\n private _connectionId?: string;\n private _disconnected = false;\n private _subscriptions: Map<string, ActiveSubscription> = new Map();\n private _pendingSubscriptions: Map<string, ActiveSubscription> = new Map();\n private _lastPongLatency: number = 0;\n private _latencySamples: number[] = [];\n private _connectTimeoutTimer?: ReturnType<typeof setTimeout>;\n private _nextRevision = 0;\n private _supportsSubscriptionRevisions = false;\n private readonly _keepAlive: HubConnectionKeepAlive;\n\n /**\n * Initializes a new instance of {@link ServerSentEventHubConnection}.\n * @param {string} _sseUrl The SSE hub endpoint URL (e.g. `http://localhost:5000/.cratis/queries/sse`).\n * @param {string} _subscribeUrl The subscribe POST endpoint URL.\n * @param {string} _unsubscribeUrl The unsubscribe POST endpoint URL.\n * @param {string} _microservice The microservice name to pass as a query argument.\n * @param {number} keepAliveIntervalMs The keep-alive cadence to assume until the server advertises\n * its own on the {@link HubMessageType.Connected} message (default: 30 000 ms). The connection is\n * considered stale after {@link IDLE_THRESHOLD_FACTOR} times this without any server message.\n * @param {number} _connectTimeoutMs How long to wait for the {@link HubMessageType.Connected}\n * message after the HTTP connection opens before giving up and retrying (default: 15 000 ms).\n * @param {IReconnectPolicy} _policy The reconnect policy to use (default: {@link ReconnectPolicy}).\n */\n constructor(\n private readonly _sseUrl: string,\n private readonly _subscribeUrl: string,\n private readonly _unsubscribeUrl: string,\n private readonly _microservice: string,\n keepAliveIntervalMs: number = 30000,\n private readonly _connectTimeoutMs: number = 15000,\n private readonly _policy: IReconnectPolicy = new ReconnectPolicy(),\n ) {\n // SSE is server→client only: the client cannot send pings. Instead we watch for\n // inactivity — if the server stops sending messages (including its own keep-alive\n // pings) for the entire idle threshold, the connection is stale and we reconnect.\n //\n // The server guarantees a message at least every keep-alive interval, so the threshold\n // only has to absorb network latency, timer jitter and server-side scheduling hiccups.\n // A hard TCP drop surfaces immediately through `onerror`, so this watchdog only needs to\n // catch silent black-holes — that makes a generous tolerance strictly better than a tight\n // one, which would tear down healthy connections.\n //\n // The interval below is only the starting assumption; the server advertises its real\n // cadence on the Connected message and {@link handleConnected} reconfigures from it.\n this._keepAlive = new HubConnectionKeepAlive(\n keepAliveIntervalMs,\n () => {\n if (!this._disconnected && this._subscriptions.size > 0) {\n console.warn(\n 'SSE hub: no messages received; reconnecting',\n this._keepAlive.idleThresholdMs,\n this._sseUrl,\n );\n this.reconnect();\n }\n },\n keepAliveIntervalMs * IDLE_THRESHOLD_FACTOR,\n );\n }\n\n /** @inheritdoc */\n get queryCount(): number {\n return this._subscriptions.size;\n }\n\n /** @inheritdoc */\n get isConnected(): boolean {\n return (\n this._connectionId !== undefined &&\n this._eventSource?.readyState === EventSource.OPEN\n );\n }\n\n /** @inheritdoc */\n get lastPingLatency(): number {\n return this._lastPongLatency;\n }\n\n /** @inheritdoc */\n get averageLatency(): number {\n if (this._latencySamples.length === 0) return 0;\n return (\n this._latencySamples.reduce((a, b) => a + b, 0) / this._latencySamples.length\n );\n }\n\n /** @inheritdoc */\n subscribe(\n queryId: string,\n request: SubscriptionRequest,\n callback: DataReceived<any>,\n ): void {\n const sub: ActiveSubscription = {\n request,\n callback,\n revision: this.getNextRevision(),\n };\n this._subscriptions.set(queryId, sub);\n\n this.ensureConnected();\n\n if (this._connectionId) {\n this.sendSubscribe(queryId, sub);\n } else {\n // Not yet connected, queue for when Connected message arrives.\n this._pendingSubscriptions.set(queryId, sub);\n }\n }\n\n /** @inheritdoc */\n unsubscribe(queryId: string): void {\n const subscription = this._subscriptions.get(queryId);\n this._subscriptions.delete(queryId);\n this._pendingSubscriptions.delete(queryId);\n\n if (this._connectionId && subscription) {\n this.sendUnsubscribe(queryId, subscription.revision);\n }\n\n if (this._subscriptions.size === 0) {\n this.close();\n }\n }\n\n /** @inheritdoc */\n dispose(): void {\n this._disconnected = true;\n this._subscriptions.clear();\n this._pendingSubscriptions.clear();\n this._policy.cancel();\n this._keepAlive.stop();\n this.clearConnectTimeout();\n this.detachAndCloseEventSource();\n this._connectionId = undefined;\n }\n\n private detachAndCloseEventSource(): void {\n const eventSource = this._eventSource;\n if (!eventSource) return;\n\n eventSource.onopen = null;\n eventSource.onmessage = null;\n eventSource.onerror = null;\n eventSource.close();\n\n if (this._eventSource === eventSource) {\n this._eventSource = undefined;\n }\n }\n\n private ensureConnected(): void {\n if (this._disconnected) {\n this._disconnected = false;\n }\n\n if (this._eventSource && this._eventSource.readyState !== EventSource.CLOSED) {\n return;\n }\n\n // An immediate subscription can win while a back-off callback is pending. Cancel that callback before\n // opening, and let openEventSource perform the same live-source guard for already-queued callbacks.\n this._policy.cancel();\n this.openEventSource();\n }\n\n private close(): void {\n this._disconnected = true;\n this._policy.cancel();\n this._keepAlive.stop();\n this.clearConnectTimeout();\n this.detachAndCloseEventSource();\n this._connectionId = undefined;\n }\n\n private openEventSource(): void {\n if (this._eventSource && this._eventSource.readyState !== EventSource.CLOSED) {\n return;\n }\n\n this._policy.cancel();\n let url = this._sseUrl;\n if (this._microservice?.length > 0) {\n const param = `${Globals.microserviceWSQueryArgument}=${encodeURIComponent(this._microservice)}`;\n url += (url.includes('?') ? '&' : '?') + param;\n }\n\n this._connectionId = undefined;\n this._supportsSubscriptionRevisions = false;\n const eventSource = Globals.eventSourceFactory\n ? Globals.eventSourceFactory(url)\n : new EventSource(url);\n this._eventSource = eventSource;\n\n eventSource.onopen = () => {\n if (this._disconnected || this._eventSource !== eventSource) return;\n console.log('SSE hub connection established', url);\n this._policy.reset();\n this._keepAlive.start();\n\n // If the server does not send a Connected message within the timeout, the\n // connection is broken. Close and retry via the reconnect policy.\n this.clearConnectTimeout();\n this._connectTimeoutTimer = setTimeout(() => {\n if (\n !this._disconnected &&\n this._eventSource === eventSource &&\n !this._connectionId\n ) {\n console.warn(\n 'SSE hub: no Connected message within timeout; retrying',\n this._connectTimeoutMs,\n url,\n );\n this.reconnect();\n }\n }, this._connectTimeoutMs);\n };\n\n eventSource.onmessage = (event: MessageEvent) => {\n if (this._disconnected || this._eventSource !== eventSource) return;\n this._keepAlive.recordActivity();\n this.handleMessage(event.data as string);\n };\n\n eventSource.onerror = () => {\n if (this._disconnected || this._eventSource !== eventSource) return;\n console.warn('SSE hub connection error', url);\n this.reconnect();\n };\n }\n\n private reconnect(): void {\n this._keepAlive.stop();\n this.clearConnectTimeout();\n\n // Detach before closing so callbacks already queued by the retired source are inert.\n this.detachAndCloseEventSource();\n this._connectionId = undefined;\n\n // Move all active subscriptions to pending so they re-subscribe when\n // the next Connected message arrives after the managed reconnect.\n for (const [queryId, sub] of this._subscriptions) {\n this._pendingSubscriptions.set(queryId, sub);\n }\n\n if (this._subscriptions.size === 0) return;\n\n this._policy.schedule(() => {\n if (!this._disconnected && this._subscriptions.size > 0) {\n this.ensureConnected();\n }\n }, this._sseUrl);\n }\n\n private clearConnectTimeout(): void {\n if (this._connectTimeoutTimer !== undefined) {\n clearTimeout(this._connectTimeoutTimer);\n this._connectTimeoutTimer = undefined;\n }\n }\n\n private handleMessage(rawData: string): void {\n try {\n const message = JSON.parse(rawData) as HubMessage;\n\n switch (message.type) {\n case HubMessageType.Connected:\n this.handleConnected(message);\n break;\n case HubMessageType.QueryResult:\n this.handleQueryResult(message);\n break;\n case HubMessageType.Ping:\n // Server-sent keep-alive ping — activity already recorded in onmessage.\n break;\n case HubMessageType.Unauthorized:\n if (this.isMessageForCurrentSubscription(message)) {\n console.warn('SSE hub: query unauthorized', message.queryId);\n this.handleUnauthorized(message);\n }\n break;\n case HubMessageType.Error:\n if (this.isMessageForCurrentSubscription(message)) {\n console.error(\n 'SSE hub: query error',\n message.queryId,\n message.payload,\n );\n }\n break;\n }\n } catch (error) {\n console.error('SSE hub: error parsing message', error);\n }\n }\n\n private handleConnected(message: HubMessage): void {\n const connectionId = message.payload as string;\n const connectionIdChanged = this._connectionId !== connectionId;\n this._connectionId = connectionId;\n this._supportsSubscriptionRevisions =\n message.supportsSubscriptionRevisions === true;\n console.log('SSE hub: connected', this._connectionId);\n\n // Connected message arrived — cancel the connect timeout.\n this.clearConnectTimeout();\n\n this.applyServerKeepAliveInterval(message.keepAliveIntervalMs);\n\n // The active collection is authoritative. A previous connection's subscribe POST may\n // still be in flight, so relying only on pending subscriptions can orphan a query when\n // the server assigns a new connection ID before that POST completes.\n if (connectionIdChanged) {\n for (const [queryId, subscription] of this._subscriptions) {\n this.sendSubscribe(queryId, subscription);\n }\n }\n this._pendingSubscriptions.clear();\n }\n\n /**\n * Align the idle watchdog with the keep-alive cadence the server actually runs on.\n *\n * Without this the client assumes the default interval, so a server configured with a longer\n * interval — or with keep-alive switched off entirely — would look silent and be reconnected\n * on a loop even though it is perfectly healthy.\n * @param {number | undefined} serverIntervalMs The interval advertised by the server, if any.\n */\n private applyServerKeepAliveInterval(serverIntervalMs?: number): void {\n if (serverIntervalMs === undefined) return;\n\n // Keep-alive disabled server-side: silence is expected, so watching for it would guarantee\n // an endless reconnect loop. Hard drops still surface through `onerror`.\n if (serverIntervalMs <= 0) {\n this._keepAlive.stop();\n return;\n }\n\n this._keepAlive.reconfigure(\n serverIntervalMs,\n serverIntervalMs * IDLE_THRESHOLD_FACTOR,\n );\n }\n\n private handleQueryResult(message: HubMessage): void {\n if (!message.queryId) return;\n\n const sub = this._subscriptions.get(message.queryId);\n if (!sub || !this.isMessageForCurrentSubscription(message)) return;\n\n const result = message.payload as QueryResult<any>;\n sub.callback(result);\n }\n\n private handleUnauthorized(message: HubMessage): void {\n if (!message.queryId) return;\n\n const sub = this._subscriptions.get(message.queryId);\n if (!sub || !this.isMessageForCurrentSubscription(message)) return;\n\n this._subscriptions.delete(message.queryId);\n this._pendingSubscriptions.delete(message.queryId);\n sub.callback(QueryResult.unauthorized());\n }\n\n private sendSubscribe(\n queryId: string,\n subscription: ActiveSubscription,\n attempt: number = 0,\n ): void {\n if (!this._connectionId || this._disconnected) return;\n\n // Capture the connection ID and subscription instance so retries can detect whether\n // either has been replaced while this request is in flight.\n const connectionId = this._connectionId;\n\n const body: {\n connectionId: string;\n queryId: string;\n request: SubscriptionRequest;\n revision?: number;\n } = {\n connectionId,\n queryId,\n request: subscription.request,\n };\n if (this._supportsSubscriptionRevisions) {\n body.revision = subscription.revision;\n }\n\n const customHeaders = Globals.httpHeadersCallback?.() ?? {};\n\n // Maximum number of subscribe retries before falling back to a full SSE reconnect.\n // In a round-robin load-balanced deployment the subscribe POST may land on a different\n // backend instance than the one holding the SSE connection. Retrying gives the load\n // balancer the chance to route a subsequent attempt to the correct instance without\n // tearing down the SSE connection unnecessarily. With N backend instances at most\n // N-1 retries are needed, so 3 retries covers deployments with up to 4 replicas.\n const maxRetries = 3;\n const retryDelayMs = 200;\n\n fetch(this._subscribeUrl, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...customHeaders },\n body: JSON.stringify(body),\n })\n .then((response) => {\n if (!response.ok) {\n if (\n !this.isCurrentSubscription(queryId, subscription, connectionId)\n ) {\n console.warn(\n 'SSE hub: subscribe POST returned a failure for an obsolete connection or subscription; ignoring',\n queryId,\n response.status,\n );\n } else if (attempt < maxRetries) {\n setTimeout(\n () => {\n if (\n this.isCurrentSubscription(\n queryId,\n subscription,\n connectionId,\n )\n ) {\n this.sendSubscribe(\n queryId,\n subscription,\n attempt + 1,\n );\n }\n },\n retryDelayMs * (attempt + 1),\n );\n } else {\n console.warn(\n 'SSE hub: subscribe POST failed after retries; reconnecting',\n queryId,\n response.status,\n attempt + 1,\n );\n this.reconnect();\n }\n }\n })\n .catch((error) => {\n if (!this.isCurrentSubscription(queryId, subscription, connectionId)) {\n console.warn(\n 'SSE hub: subscribe POST failed for an obsolete connection or subscription; ignoring',\n queryId,\n error,\n );\n } else if (attempt < maxRetries) {\n setTimeout(\n () => {\n if (\n this.isCurrentSubscription(\n queryId,\n subscription,\n connectionId,\n )\n ) {\n this.sendSubscribe(queryId, subscription, attempt + 1);\n }\n },\n retryDelayMs * (attempt + 1),\n );\n } else {\n console.error(\n 'SSE hub: subscribe POST failed after retries; reconnecting',\n queryId,\n attempt + 1,\n error,\n );\n this.reconnect();\n }\n });\n }\n\n private isMessageForCurrentSubscription(message: HubMessage): boolean {\n if (!message.queryId) return false;\n\n const subscription = this._subscriptions.get(message.queryId);\n if (!subscription) return false;\n\n if (!this._supportsSubscriptionRevisions) {\n return message.revision === undefined;\n }\n\n return (\n this.isValidRevision(message.revision) &&\n message.revision === subscription.revision\n );\n }\n\n private isCurrentSubscription(\n queryId: string,\n subscription: ActiveSubscription,\n connectionId: string,\n ): boolean {\n return (\n !this._disconnected &&\n this._connectionId === connectionId &&\n this._subscriptions.get(queryId) === subscription\n );\n }\n\n private getNextRevision(): number {\n if (this._nextRevision >= Number.MAX_SAFE_INTEGER) {\n throw new RangeError(\n 'SSE hub subscription revision exhausted the safe integer range',\n );\n }\n\n return ++this._nextRevision;\n }\n\n private isValidRevision(revision: number | undefined): revision is number {\n return revision !== undefined && Number.isSafeInteger(revision) && revision > 0;\n }\n\n private sendUnsubscribe(queryId: string, revision: number): void {\n if (!this._connectionId) return;\n\n const body: {\n connectionId: string;\n queryId: string;\n revision?: number;\n } = {\n connectionId: this._connectionId,\n queryId,\n };\n if (this._supportsSubscriptionRevisions) {\n body.revision = revision;\n }\n\n const customHeaders = Globals.httpHeadersCallback?.() ?? {};\n\n fetch(this._unsubscribeUrl, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...customHeaders },\n body: JSON.stringify(body),\n }).catch((error) => {\n console.error('SSE hub: unsubscribe POST failed', queryId, error);\n });\n }\n}\n"],"names":["IDLE_THRESHOLD_FACTOR","ServerSentEventHubConnection","_eventSource","_connectionId","_disconnected","_subscriptions","Map","_pendingSubscriptions","_lastPongLatency","_latencySamples","_connectTimeoutTimer","_nextRevision","_supportsSubscriptionRevisions","_keepAlive","_subscribeUrl","_unsubscribeUrl","keepAliveIntervalMs","_connectTimeoutMs","_policy","ReconnectPolicy","_sseUrl","_microservice","HubConnectionKeepAlive","size","console","warn","idleThresholdMs","reconnect","queryCount","isConnected","undefined","readyState","EventSource","OPEN","lastPingLatency","averageLatency","length","reduce","a","b","subscribe","queryId","request","callback","sub","revision","getNextRevision","set","ensureConnected","sendSubscribe","unsubscribe","subscription","get","delete","sendUnsubscribe","close","dispose","clear","cancel","stop","clearConnectTimeout","detachAndCloseEventSource","eventSource","onopen","onmessage","onerror","CLOSED","openEventSource","url","param","Globals","microserviceWSQueryArgument","encodeURIComponent","includes","eventSourceFactory","log","reset","start","setTimeout","event","recordActivity","handleMessage","data","schedule","clearTimeout","rawData","message","JSON","parse","type","HubMessageType","Connected","handleConnected","QueryResult","handleQueryResult","Ping","Unauthorized","isMessageForCurrentSubscription","handleUnauthorized","Error","error","payload","connectionId","connectionIdChanged","supportsSubscriptionRevisions","applyServerKeepAliveInterval","serverIntervalMs","reconfigure","result","unauthorized","attempt","body","customHeaders","httpHeadersCallback","maxRetries","retryDelayMs","fetch","method","headers","stringify","then","response","ok","isCurrentSubscription","status","catch","isValidRevision","Number","MAX_SAFE_INTEGER","RangeError","isSafeInteger"],"mappings":";;;;;;;;AAAA;AACA;AAuBA;;;;;;AAMC,IACD,MAAMA,qBAAAA,GAAwB,CAAA;AAE9B;;;;;;;;;;AAUC,IACM,MAAMC,4BAAAA,CAAAA;;;;;;;IACDC,YAAAA;IACAC,aAAAA;AACAC,IAAAA,aAAAA,GAAgB,KAAA;AAChBC,IAAAA,cAAAA,GAAkD,IAAIC,GAAAA,EAAAA;AACtDC,IAAAA,qBAAAA,GAAyD,IAAID,GAAAA,EAAAA;AAC7DE,IAAAA,gBAAAA,GAA2B,CAAA;AAC3BC,IAAAA,eAAAA,GAA4B,EAAE;IAC9BC,oBAAAA;AACAC,IAAAA,aAAAA,GAAgB,CAAA;AAChBC,IAAAA,8BAAAA,GAAiC,KAAA;IACxBC,UAAAA;AAEjB;;;;;;;;;;;;QAaA,WAAA,CACI,OAAgC,EACfC,aAAqB,EACrBC,eAAuB,EACxC,aAAsC,EACtCC,mBAAAA,GAA8B,KAAK,EAClBC,iBAAAA,GAA4B,KAAK,EAClD,OAAiBC,GAA4B,IAAIC,+BAAAA,EAAiB,CACpE;aAPmBC,OAAAA,GAAAA,OAAAA;aACAN,aAAAA,G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MAAA;YACRC,OAAAA,EAAS;gBAAE,cAAA,EAAgB,kBAAA;AAAoB,gBAAA,GAAGN;AAAc,aAAA;YAChED,IAAAA,EAAMxB,IAAAA,CAAKgC,SAAS,CAACR,IAAAA;SACzB,CAAA,CAAGc,KAAK,CAAC,CAACzB,KAAAA,GAAAA;YACN5E,OAAAA,CAAQ4E,KAAK,CAAC,kCAAA,EAAoC3D,OAAAA,EAAS2D,KAAAA,CAAAA;AAC/D,QAAA,CAAA,CAAA;AACJ,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IObservableQueryConnection } from './IObservableQueryConnection.js';
|
|
2
|
+
import { DataReceived } from './ObservableQueryConnection.js';
|
|
3
|
+
export declare const SSE_HUB_ROUTE = "/.cratis/queries/sse";
|
|
4
|
+
export declare class ServerSentEventQueryConnection<TDataType> implements IObservableQueryConnection<TDataType> {
|
|
5
|
+
private readonly _url;
|
|
6
|
+
private _eventSource?;
|
|
7
|
+
private _disconnected;
|
|
8
|
+
private _unauthorized;
|
|
9
|
+
readonly lastPingLatency: number;
|
|
10
|
+
readonly averageLatency: number;
|
|
11
|
+
constructor(_url: URL);
|
|
12
|
+
connect(dataReceived: DataReceived<TDataType>, queryArguments?: object): void;
|
|
13
|
+
disconnect(): void;
|
|
14
|
+
private handleUnauthorized;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ServerSentEventQueryConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerSentEventQueryConnection.d.ts","sourceRoot":"","sources":["../../../queries/ServerSentEventQueryConnection.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAM9D,eAAO,MAAM,aAAa,yBAAyB,CAAC;AAWpD,qBAAa,8BAA8B,CAAC,SAAS,CAAE,YAAW,0BAA0B,CAAC,SAAS,CAAC;IAevF,OAAO,CAAC,QAAQ,CAAC,IAAI;IAdjC,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,aAAa,CAAS;IAG9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAK;IAGrC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAK;IAMpC,YAA6B,IAAI,EAAE,GAAG,EAAI;IAG1C,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAyC5E;IAGD,UAAU,IAAI,IAAI,CAKjB;IAaD,OAAO,CAAC,kBAAkB;CAO7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerSentEventQueryConnection.js","sources":["../../../queries/ServerSentEventQueryConnection.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 { DataReceived } from './ObservableQueryConnection';\nimport { QueryResult } from './QueryResult';\n\n/**\n * The SSE demultiplexer route used when connecting through the multiplexed observable query endpoint.\n */\nexport const SSE_HUB_ROUTE = '/.cratis/queries/sse';\n\n/**\n * Represents a direct Server-Sent Events (SSE) connection for a single observable query.\n *\n * In direct mode the URL points to the per-query endpoint (e.g. `/api/queries/latest`).\n * The backend detects the `Accept: text/event-stream` header and streams results directly.\n *\n * The caller (typically {@link createObservableQueryConnection}) decides which URL to use;\n * this class is transport-agnostic beyond being SSE.\n */\nexport class ServerSentEventQueryConnection<TDataType> implements IObservableQueryConnection<TDataType> {\n private _eventSource?: EventSource;\n private _disconnected = false;\n private _unauthorized = false;\n\n /** @inheritdoc */\n readonly lastPingLatency: number = 0;\n\n /** @inheritdoc */\n readonly averageLatency: number = 0;\n\n /**\n * Initializes a new instance of {@link ServerSentEventQueryConnection}.\n * @param {URL} url The fully qualified URL of the SSE endpoint (including query parameters).\n */\n constructor(private readonly _url: URL) {}\n\n /** @inheritdoc */\n connect(dataReceived: DataReceived<TDataType>, queryArguments?: object): void {\n if (this._disconnected || this._unauthorized) return;\n\n // Guard against environments where EventSource is not available (e.g. Node.js, SSR)\n // and no custom factory has been supplied to substitute it.\n if (!Globals.eventSourceFactory && typeof EventSource === 'undefined') {\n return;\n }\n\n let url = this._url.toString();\n if (queryArguments) {\n const separator = url.includes('?') ? '&' : '?';\n const query = Object.entries(queryArguments)\n .filter(([, value]) => value !== undefined && value !== null)\n .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`)\n .join('&');\n if (query) {\n url = `${url}${separator}${query}`;\n }\n }\n\n this._eventSource = Globals.eventSourceFactory ? Globals.eventSourceFactory(url) : new EventSource(url);\n\n this._eventSource.onmessage = (event: MessageEvent) => {\n if (this._disconnected) return;\n try {\n const result = JSON.parse(event.data as string) as QueryResult<TDataType>;\n if ((result as unknown as { isAuthorized?: boolean })?.isAuthorized === false) {\n this.handleUnauthorized(url, result, dataReceived);\n return;\n }\n dataReceived(result);\n } catch (error) {\n console.error('SSE: error parsing message', error);\n }\n };\n\n this._eventSource.onerror = () => {\n if (this._disconnected || this._unauthorized) return;\n console.warn(`SSE: connection error for '${url}', EventSource will retry automatically.`);\n };\n }\n\n /** @inheritdoc */\n disconnect(): void {\n if (this._disconnected) return;\n this._disconnected = true;\n this._eventSource?.close();\n this._eventSource = undefined;\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.\n *\n * Unlike a WebSocket, an `EventSource` re-establishes a stream the server ended - the server closing its response\n * is precisely the signal the browser retries on, roughly every three seconds. Each retry re-runs the whole query\n * pipeline server side just to be denied again, so the stream is only actually terminal if this client closes it.\n * @param {string} url The stream url, for diagnostics.\n * @param {QueryResult<TDataType>} result The unauthorized result to deliver.\n * @param {DataReceived<TDataType>} dataReceived Callback that receives the result.\n */\n private handleUnauthorized(url: string, result: QueryResult<TDataType>, dataReceived: DataReceived<TDataType>): void {\n console.warn(`SSE: stream for '${url}' was ended by the server - no longer authorized`);\n this._unauthorized = true;\n this._eventSource?.close();\n this._eventSource = undefined;\n dataReceived(result);\n }\n}\n"],"names":["SSE_HUB_ROUTE","ServerSentEventQueryConnection","_eventSource","_disconnected","_unauthorized","lastPingLatency","averageLatency","_url","connect","dataReceived","queryArguments","Globals","eventSourceFactory","EventSource","url","toString","separator","includes","query","Object","entries","filter","value","undefined","map","key","encodeURIComponent","String","join","onmessage","event","result","JSON","parse","data","isAuthorized","handleUnauthorized","error","console","onerror","warn","disconnect","close"],"mappings":";;;;AAAA;AACA;AAOA;;IAGO,MAAMA,aAAAA,GAAgB;AAE7B;;;;;;;;AAQC,IACM,MAAMC,8BAAAA,CAAAA;;IACDC,YAAAA;AACAC,IAAAA,aAAAA,GAAgB,KAAA;AAChBC,IAAAA,aAAAA,GAAgB,KAAA;uBAGxB,eAASC,GAA0B,CAAA;uBAGnC,cAASC,GAAyB,CAAA;AAElC;;;QAIA,WAAA,CAAY,IAA0B,CAAE;aAAXC,IAAAA,GAAAA,IAAAA;AAAY,IAAA;AAEzC,uBACAC,OAAAA,CAAQC,YAAqC,EAAEC,cAAuB,EAAQ;AAC1E,QAAA,IAAI,IAAI,CAACP,aAAa,IAAI,IAAI,CAACC,aAAa,EAAE;;;AAI9C,QAAA,IAAI,CAACO,eAAAA,CAAQC,kBAAkB,IAAI,OAAOC,gBAAgB,WAAA,EAAa;AACnE,YAAA;AACJ,QAAA;AAEA,QAAA,IAAIC,GAAAA,GAAM,IAAI,CAACP,IAAI,CAACQ,QAAQ,EAAA;AAC5B,QAAA,IAAIL,cAAAA,EAAgB;AAChB,YAAA,MAAMM,SAAAA,GAAYF,GAAAA,CAAIG,QAAQ,CAAC,OAAO,GAAA,GAAM,GAAA;AAC5C,YAAA,MAAMC,KAAAA,GAAQC,MAAAA,CAAOC,OAAO,CAACV,gBACxBW,MAAM,CAAC,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AAI,CAACpC,aAAa,IAAI,IAAI,CAACC,aAAa,EAAE;AAC9CkC,YAAAA,OAAAA,CAAQE,IAAI,CAAC,CAAC,2BAA2B,EAAE1B,GAAAA,CAAI,wCAAwC,CAAC,CAAA;AAC5F,QAAA,CAAA;AACJ,IAAA;AAEA,uBACA2B,UAAAA,GAAmB;QACf,IAAI,IAAI,CAACtC,aAAa,EAAE;QACxB,IAAI,CAACA,aAAa,GAAG,IAAA;QACrB,IAAI,CAACD,YAAY,EAAEwC,KAAAA,EAAAA;QACnB,IAAI,CAACxC,YAAY,GAAGqB,SAAAA;AACxB,IAAA;AAEA;;;;;;;;;;AAUC,QACD,kBAAQa,CAAmBtB,GAAW,EAAEiB,MAA8B,EAAEtB,YAAqC,EAAQ;AACjH6B,QAAAA,OAAAA,CAAQE,IAAI,CAAC,CAAC,iBAAiB,EAAE1B,GAAAA,CAAI,gDAAgD,CAAC,CAAA;QACtF,IAAI,CAACV,aAAa,GAAG,IAAA;QACrB,IAAI,CAACF,YAAY,EAAEwC,KAAAA,EAAAA;QACnB,IAAI,CAACxC,YAAY,GAAGqB,SAAAA;QACpBd,YAAAA,CAAasB,MAAAA,CAAAA;AACjB,IAAA;AACJ;;;"}
|
|
1
|
+
{"version":3,"file":"ServerSentEventQueryConnection.js","sources":["../../../queries/ServerSentEventQueryConnection.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 { DataReceived } from './ObservableQueryConnection.js';\nimport { QueryResult } from './QueryResult.js';\n\n/**\n * The SSE demultiplexer route used when connecting through the multiplexed observable query endpoint.\n */\nexport const SSE_HUB_ROUTE = '/.cratis/queries/sse';\n\n/**\n * Represents a direct Server-Sent Events (SSE) connection for a single observable query.\n *\n * In direct mode the URL points to the per-query endpoint (e.g. `/api/queries/latest`).\n * The backend detects the `Accept: text/event-stream` header and streams results directly.\n *\n * The caller (typically {@link createObservableQueryConnection}) decides which URL to use;\n * this class is transport-agnostic beyond being SSE.\n */\nexport class ServerSentEventQueryConnection<TDataType> implements IObservableQueryConnection<TDataType> {\n private _eventSource?: EventSource;\n private _disconnected = false;\n private _unauthorized = false;\n\n /** @inheritdoc */\n readonly lastPingLatency: number = 0;\n\n /** @inheritdoc */\n readonly averageLatency: number = 0;\n\n /**\n * Initializes a new instance of {@link ServerSentEventQueryConnection}.\n * @param {URL} url The fully qualified URL of the SSE endpoint (including query parameters).\n */\n constructor(private readonly _url: URL) {}\n\n /** @inheritdoc */\n connect(dataReceived: DataReceived<TDataType>, queryArguments?: object): void {\n if (this._disconnected || this._unauthorized) return;\n\n // Guard against environments where EventSource is not available (e.g. Node.js, SSR)\n // and no custom factory has been supplied to substitute it.\n if (!Globals.eventSourceFactory && typeof EventSource === 'undefined') {\n return;\n }\n\n let url = this._url.toString();\n if (queryArguments) {\n const separator = url.includes('?') ? '&' : '?';\n const query = Object.entries(queryArguments)\n .filter(([, value]) => value !== undefined && value !== null)\n .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`)\n .join('&');\n if (query) {\n url = `${url}${separator}${query}`;\n }\n }\n\n this._eventSource = Globals.eventSourceFactory ? Globals.eventSourceFactory(url) : new EventSource(url);\n\n this._eventSource.onmessage = (event: MessageEvent) => {\n if (this._disconnected) return;\n try {\n const result = JSON.parse(event.data as string) as QueryResult<TDataType>;\n if ((result as unknown as { isAuthorized?: boolean })?.isAuthorized === false) {\n this.handleUnauthorized(url, result, dataReceived);\n return;\n }\n dataReceived(result);\n } catch (error) {\n console.error('SSE: error parsing message', error);\n }\n };\n\n this._eventSource.onerror = () => {\n if (this._disconnected || this._unauthorized) return;\n console.warn(`SSE: connection error for '${url}', EventSource will retry automatically.`);\n };\n }\n\n /** @inheritdoc */\n disconnect(): void {\n if (this._disconnected) return;\n this._disconnected = true;\n this._eventSource?.close();\n this._eventSource = undefined;\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.\n *\n * Unlike a WebSocket, an `EventSource` re-establishes a stream the server ended - the server closing its response\n * is precisely the signal the browser retries on, roughly every three seconds. Each retry re-runs the whole query\n * pipeline server side just to be denied again, so the stream is only actually terminal if this client closes it.\n * @param {string} url The stream url, for diagnostics.\n * @param {QueryResult<TDataType>} result The unauthorized result to deliver.\n * @param {DataReceived<TDataType>} dataReceived Callback that receives the result.\n */\n private handleUnauthorized(url: string, result: QueryResult<TDataType>, dataReceived: DataReceived<TDataType>): void {\n console.warn(`SSE: stream for '${url}' was ended by the server - no longer authorized`);\n this._unauthorized = true;\n this._eventSource?.close();\n this._eventSource = undefined;\n dataReceived(result);\n }\n}\n"],"names":["SSE_HUB_ROUTE","ServerSentEventQueryConnection","_eventSource","_disconnected","_unauthorized","lastPingLatency","averageLatency","_url","connect","dataReceived","queryArguments","Globals","eventSourceFactory","EventSource","url","toString","separator","includes","query","Object","entries","filter","value","undefined","map","key","encodeURIComponent","String","join","onmessage","event","result","JSON","parse","data","isAuthorized","handleUnauthorized","error","console","onerror","warn","disconnect","close"],"mappings":";;;;AAAA;AACA;AAOA;;IAGO,MAAMA,aAAAA,GAAgB;AAE7B;;;;;;;;AAQC,IACM,MAAMC,8BAAAA,CAAAA;;IACDC,YAAAA;AACAC,IAAAA,aAAAA,GAAgB,KAAA;AAChBC,IAAAA,aAAAA,GAAgB,KAAA;uBAGxB,eAASC,GAA0B,CAAA;uBAGnC,cAASC,GAAyB,CAAA;AAElC;;;QAIA,WAAA,CAAY,IAA0B,CAAE;aAAXC,IAAAA,GAAAA,IAAAA;AAAY,IAAA;AAEzC,uBACAC,OAAAA,CAAQC,YAAqC,EAAEC,cAAuB,EAAQ;AAC1E,QAAA,IAAI,IAAI,CAACP,aAAa,IAAI,IAAI,CAACC,aAAa,EAAE;;;AAI9C,QAAA,IAAI,CAACO,eAAAA,CAAQC,kBAAkB,IAAI,OAAOC,gBAAgB,WAAA,EAA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AAI;CACjB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SortDirection } from './SortDirection.js';
|
|
2
|
+
export declare class Sorting {
|
|
3
|
+
readonly field: string;
|
|
4
|
+
readonly direction: SortDirection;
|
|
5
|
+
static none: Sorting;
|
|
6
|
+
constructor(field: string, direction: SortDirection);
|
|
7
|
+
get hasSorting(): boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Sorting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sorting.d.ts","sourceRoot":"","sources":["../../../queries/Sorting.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKnD,qBAAa,OAAO;IAYJ,QAAQ,CAAC,KAAK,EAAE,MAAM;IAAE,QAAQ,CAAC,SAAS,EAAE,aAAa;IAPrE,MAAM,CAAC,IAAI,EAAE,OAAO,CAA4C;IAOhE,YAAqB,KAAK,EAAE,MAAM,EAAW,SAAS,EAAE,aAAa,EACpE;IAKD,IAAI,UAAU,IAAI,OAAO,CAExB;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sorting.js","sources":["../../../queries/Sorting.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 { SortDirection } from './SortDirection';\n\n/**\n * Represents sorting for a query.\n */\nexport class Sorting {\n\n /**\n * No sorting.\n */\n static none: Sorting = new Sorting('', SortDirection.ascending);\n\n /**\n * Initializes a new instance of the {@link Sorting} class.\n * @param {string} field The field to sort by.\n * @param {SortDirection} direction The {@link SortDirection} to sort by.\n */\n constructor(readonly field: string, readonly direction: SortDirection) {\n }\n\n /**\n * Gets whether sorting is enabled.\n */\n get hasSorting(): boolean {\n return this.field !== '';\n }\n}"],"names":["Sorting","none","SortDirection","ascending","direction","field","hasSorting"],"mappings":";;;;AAAA;AACA;AAIA;;AAEC,IACM,MAAMA,OAAAA,CAAAA;;;AAET;;AAEC,QACD,OAAOC,IAAAA,GAAgB,IAAID,QAAQ,EAAA,EAAIE,2BAAAA,CAAcC,SAAS,CAAA;AAE9D;;;;AAIC,QACD,YAAY,KAAsB,EAAWC,SAAwB,CAAE;aAAlDC,KAAAA,GAAAA,KAAAA;aAAwBD,SAAAA,GAAAA,SAAAA;AAC7C,IAAA;AAEA;;AAEC,QACD,IAAIE,UAAAA,GAAsB;QACtB,OAAO,IAAI,CAACD,KAAK,KAAK,EAAA;AAC1B,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"Sorting.js","sources":["../../../queries/Sorting.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 { SortDirection } from './SortDirection.js';\n\n/**\n * Represents sorting for a query.\n */\nexport class Sorting {\n\n /**\n * No sorting.\n */\n static none: Sorting = new Sorting('', SortDirection.ascending);\n\n /**\n * Initializes a new instance of the {@link Sorting} class.\n * @param {string} field The field to sort by.\n * @param {SortDirection} direction The {@link SortDirection} to sort by.\n */\n constructor(readonly field: string, readonly direction: SortDirection) {\n }\n\n /**\n * Gets whether sorting is enabled.\n */\n get hasSorting(): boolean {\n return this.field !== '';\n }\n}"],"names":["Sorting","none","SortDirection","ascending","direction","field","hasSorting"],"mappings":";;;;AAAA;AACA;AAIA;;AAEC,IACM,MAAMA,OAAAA,CAAAA;;;AAET;;AAEC,QACD,OAAOC,IAAAA,GAAgB,IAAID,QAAQ,EAAA,EAAIE,2BAAAA,CAAcC,SAAS,CAAA;AAE9D;;;;AAIC,QACD,YAAY,KAAsB,EAAWC,SAAwB,CAAE;aAAlDC,KAAAA,GAAAA,KAAAA;aAAwBD,SAAAA,GAAAA,SAAAA;AAC7C,IAAA;AAEA;;AAEC,QACD,IAAIE,UAAAA,GAAsB;QACtB,OAAO,IAAI,CAACD,KAAK,KAAK,EAAA;AAC1B,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Sorting } from './Sorting.js';
|
|
2
|
+
export declare class SortingActions {
|
|
3
|
+
readonly field: string;
|
|
4
|
+
private readonly _ascending;
|
|
5
|
+
private readonly _descending;
|
|
6
|
+
constructor(field: string);
|
|
7
|
+
get ascending(): Sorting;
|
|
8
|
+
get descending(): Sorting;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=SortingActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortingActions.d.ts","sourceRoot":"","sources":["../../../queries/SortingActions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC,qBAAa,cAAc;IAQX,QAAQ,CAAC,KAAK,EAAE,MAAM;IAPlC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAU;IACrC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAU;IAMtC,YAAqB,KAAK,EAAE,MAAM,EAGjC;IAKD,IAAI,SAAS,IAAI,OAAO,CAEvB;IAKD,IAAI,UAAU,IAAI,OAAO,CAExB;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortingActions.js","sources":["../../../queries/SortingActions.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 { SortDirection } from './SortDirection';\nimport { Sorting } from './Sorting';\n\n/**\n * Represents sorting for a query.\n */\nexport class SortingActions {\n private readonly _ascending: Sorting;\n private readonly _descending: Sorting;\n\n /**\n * Initializes a new instance of {@link SortingActions}.\n * @param {string} field The field that the sorting represents.\n */\n constructor(readonly field: string) { \n this._ascending = new Sorting(this.field, SortDirection.ascending);\n this._descending = new Sorting(this.field, SortDirection.descending);\n }\n\n /**\n * Returns ascending sort for the field.\n */\n get ascending(): Sorting {\n return this._ascending;\n }\n\n /**\n * Returns ascending sort for the field.\n */\n get descending(): Sorting {\n return this._descending;\n }\n}\n"],"names":["SortingActions","_ascending","_descending","field","Sorting","SortDirection","ascending","descending"],"mappings":";;;;;AAAA;AACA;AAKA;;AAEC,IACM,MAAMA,cAAAA,CAAAA;;IACQC,UAAAA;IACAC,WAAAA;AAEjB;;;QAIA,WAAA,CAAY,KAAsB,CAAE;aAAfC,KAAAA,GAAAA,KAAAA;QACjB,IAAI,CAACF,UAAU,GAAG,IAAIG,eAAAA,CAAQ,IAAI,CAACD,KAAK,EAAEE,2BAAAA,CAAcC,SAAS,CAAA;QACjE,IAAI,CAACJ,WAAW,GAAG,IAAIE,eAAAA,CAAQ,IAAI,CAACD,KAAK,EAAEE,2BAAAA,CAAcE,UAAU,CAAA;AACvE,IAAA;AAEA;;AAEE,SACF,IAAID,SAAAA,GAAqB;QACrB,OAAO,IAAI,CAACL,UAAU;AAC1B,IAAA;AAEA;;AAEE,SACF,IAAIM,UAAAA,GAAsB;QACtB,OAAO,IAAI,CAACL,WAAW;AAC3B,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"SortingActions.js","sources":["../../../queries/SortingActions.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 { SortDirection } from './SortDirection.js';\nimport { Sorting } from './Sorting.js';\n\n/**\n * Represents sorting for a query.\n */\nexport class SortingActions {\n private readonly _ascending: Sorting;\n private readonly _descending: Sorting;\n\n /**\n * Initializes a new instance of {@link SortingActions}.\n * @param {string} field The field that the sorting represents.\n */\n constructor(readonly field: string) { \n this._ascending = new Sorting(this.field, SortDirection.ascending);\n this._descending = new Sorting(this.field, SortDirection.descending);\n }\n\n /**\n * Returns ascending sort for the field.\n */\n get ascending(): Sorting {\n return this._ascending;\n }\n\n /**\n * Returns ascending sort for the field.\n */\n get descending(): Sorting {\n return this._descending;\n }\n}\n"],"names":["SortingActions","_ascending","_descending","field","Sorting","SortDirection","ascending","descending"],"mappings":";;;;;AAAA;AACA;AAKA;;AAEC,IACM,MAAMA,cAAAA,CAAAA;;IACQC,UAAAA;IACAC,WAAAA;AAEjB;;;QAIA,WAAA,CAAY,KAAsB,CAAE;aAAfC,KAAAA,GAAAA,KAAAA;QACjB,IAAI,CAACF,UAAU,GAAG,IAAIG,eAAAA,CAAQ,IAAI,CAACD,KAAK,EAAEE,2BAAAA,CAAcC,SAAS,CAAA;QACjE,IAAI,CAACJ,WAAW,GAAG,IAAIE,eAAAA,CAAQ,IAAI,CAACD,KAAK,EAAEE,2BAAAA,CAAcE,UAAU,CAAA;AACvE,IAAA;AAEA;;AAEE,SACF,IAAID,SAAAA,GAAqB;QACrB,OAAO,IAAI,CAACL,UAAU;AAC1B,IAAA;AAEA;;AAEE,SACF,IAAIM,UAAAA,GAAsB;QACtB,OAAO,IAAI,CAACL,WAAW;AAC3B,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IObservableQueryFor } from './IObservableQueryFor.js';
|
|
2
|
+
import { Sorting } from './Sorting.js';
|
|
3
|
+
export declare class SortingActionsForObservableQuery<TDataType, TArguments = object> {
|
|
4
|
+
readonly field: string;
|
|
5
|
+
readonly query: IObservableQueryFor<TDataType, TArguments>;
|
|
6
|
+
constructor(field: string, query: IObservableQueryFor<TDataType, TArguments>);
|
|
7
|
+
ascending(): Sorting;
|
|
8
|
+
descending(): Sorting;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=SortingActionsForObservableQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortingActionsForObservableQuery.d.ts","sourceRoot":"","sources":["../../../queries/SortingActionsForObservableQuery.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC,qBAAa,gCAAgC,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM;IAO5D,QAAQ,CAAC,KAAK,EAAE,MAAM;IAAE,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC,SAAS,EAAE,UAAU,CAAC;IAA9F,YAAqB,KAAK,EAAE,MAAM,EAAW,KAAK,EAAE,mBAAmB,CAAC,SAAS,EAAE,UAAU,CAAC,EAC7F;IAKD,SAAS,IAAI,OAAO,CAGnB;IAKD,UAAU,IAAI,OAAO,CAGpB;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortingActionsForObservableQuery.js","sources":["../../../queries/SortingActionsForObservableQuery.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 { IObservableQueryFor } from './IObservableQueryFor';\nimport { SortDirection } from './SortDirection';\nimport { Sorting } from './Sorting';\n\n/**\n * Represents sorting for an observable query.\n */\nexport class SortingActionsForObservableQuery<TDataType, TArguments = object> {\n\n /**\n * Initializes a new instance of {@link SortingActionsForQuery}.\n * @param {string} field The field that the sorting represents.\n * @param {IQueryFor<TDataType, TArguments>} query The query that holds the field.\n */\n constructor(readonly field: string, readonly query: IObservableQueryFor<TDataType, TArguments>) {\n }\n\n /**\n * Instructs query to sort ascending for the field.\n */\n ascending(): Sorting {\n this.query.sorting = new Sorting(this.field, SortDirection.ascending);\n return this.query.sorting;\n }\n\n /**\n * Instructs query to sort ascending for the field.\n */\n descending(): Sorting {\n this.query.sorting = new Sorting(this.field, SortDirection.descending);\n return this.query.sorting;\n }\n}\n"],"names":["SortingActionsForObservableQuery","query","field","ascending","sorting","Sorting","SortDirection","descending"],"mappings":";;;;;AAAA;AACA;AAMA;;AAEC,IACM,MAAMA,gCAAAA,CAAAA;;;AAET;;;;AAIC,QACD,YAAY,KAAsB,EAAWC,KAAiD,CAAE;aAA3EC,KAAAA,GAAAA,KAAAA;aAAwBD,KAAAA,GAAAA,KAAAA;AAC7C,IAAA;AAEA;;AAEE,SACFE,SAAAA,GAAqB;AACjB,QAAA,IAAI,CAACF,KAAK,CAACG,OAAO,GAAG,IAAIC,eAAAA,CAAQ,IAAI,CAACH,KAAK,EAAEI,2BAAAA,CAAcH,SAAS,CAAA;AACpE,QAAA,OAAO,IAAI,CAACF,KAAK,CAACG,OAAO;AAC7B,IAAA;AAEA;;AAEE,SACFG,UAAAA,GAAsB;AAClB,QAAA,IAAI,CAACN,KAAK,CAACG,OAAO,GAAG,IAAIC,eAAAA,CAAQ,IAAI,CAACH,KAAK,EAAEI,2BAAAA,CAAcC,UAAU,CAAA;AACrE,QAAA,OAAO,IAAI,CAACN,KAAK,CAACG,OAAO;AAC7B,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"SortingActionsForObservableQuery.js","sources":["../../../queries/SortingActionsForObservableQuery.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 { IObservableQueryFor } from './IObservableQueryFor.js';\nimport { SortDirection } from './SortDirection.js';\nimport { Sorting } from './Sorting.js';\n\n/**\n * Represents sorting for an observable query.\n */\nexport class SortingActionsForObservableQuery<TDataType, TArguments = object> {\n\n /**\n * Initializes a new instance of {@link SortingActionsForQuery}.\n * @param {string} field The field that the sorting represents.\n * @param {IQueryFor<TDataType, TArguments>} query The query that holds the field.\n */\n constructor(readonly field: string, readonly query: IObservableQueryFor<TDataType, TArguments>) {\n }\n\n /**\n * Instructs query to sort ascending for the field.\n */\n ascending(): Sorting {\n this.query.sorting = new Sorting(this.field, SortDirection.ascending);\n return this.query.sorting;\n }\n\n /**\n * Instructs query to sort ascending for the field.\n */\n descending(): Sorting {\n this.query.sorting = new Sorting(this.field, SortDirection.descending);\n return this.query.sorting;\n }\n}\n"],"names":["SortingActionsForObservableQuery","query","field","ascending","sorting","Sorting","SortDirection","descending"],"mappings":";;;;;AAAA;AACA;AAMA;;AAEC,IACM,MAAMA,gCAAAA,CAAAA;;;AAET;;;;AAIC,QACD,YAAY,KAAsB,EAAWC,KAAiD,CAAE;aAA3EC,KAAAA,GAAAA,KAAAA;aAAwBD,KAAAA,GAAAA,KAAAA;AAC7C,IAAA;AAEA;;AAEE,SACFE,SAAAA,GAAqB;AACjB,QAAA,IAAI,CAACF,KAAK,CAACG,OAAO,GAAG,IAAIC,eAAAA,CAAQ,IAAI,CAACH,KAAK,EAAEI,2BAAAA,CAAcH,SAAS,CAAA;AACpE,QAAA,OAAO,IAAI,CAACF,KAAK,CAACG,OAAO;AAC7B,IAAA;AAEA;;AAEE,SACFG,UAAAA,GAAsB;AAClB,QAAA,IAAI,CAACN,KAAK,CAACG,OAAO,GAAG,IAAIC,eAAAA,CAAQ,IAAI,CAACH,KAAK,EAAEI,2BAAAA,CAAcC,UAAU,CAAA;AACrE,QAAA,OAAO,IAAI,CAACN,KAAK,CAACG,OAAO;AAC7B,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IQueryFor } from './IQueryFor.js';
|
|
2
|
+
import { Sorting } from './Sorting.js';
|
|
3
|
+
export declare class SortingActionsForQuery<TDataType, TArguments = object> {
|
|
4
|
+
readonly field: string;
|
|
5
|
+
readonly query: IQueryFor<TDataType, TArguments>;
|
|
6
|
+
constructor(field: string, query: IQueryFor<TDataType, TArguments>);
|
|
7
|
+
ascending(): Sorting;
|
|
8
|
+
descending(): Sorting;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=SortingActionsForQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortingActionsForQuery.d.ts","sourceRoot":"","sources":["../../../queries/SortingActionsForQuery.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC,qBAAa,sBAAsB,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM;IAOlD,QAAQ,CAAC,KAAK,EAAE,MAAM;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC;IAApF,YAAqB,KAAK,EAAE,MAAM,EAAW,KAAK,EAAE,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC,EACnF;IAKD,SAAS,IAAI,OAAO,CAGnB;IAKD,UAAU,IAAI,OAAO,CAGpB;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortingActionsForQuery.js","sources":["../../../queries/SortingActionsForQuery.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { IQueryFor } from './IQueryFor';\nimport { SortDirection } from './SortDirection';\nimport { Sorting } from './Sorting';\n\n/**\n * Represents sorting for a query.\n */\nexport class SortingActionsForQuery<TDataType, TArguments = object> {\n\n /**\n * Initializes a new instance of {@link SortingActionsForQuery}.\n * @param {string} field The field that the sorting represents.\n * @param {IQueryFor<TDataType, TArguments>} query The query that holds the field.\n */\n constructor(readonly field: string, readonly query: IQueryFor<TDataType, TArguments>) { \n }\n\n /**\n * Instructs query to sort ascending for the field.\n */\n ascending(): Sorting {\n this.query.sorting = new Sorting(this.field, SortDirection.ascending);\n return this.query.sorting;\n }\n\n /**\n * Instructs query to sort ascending for the field.\n */\n descending(): Sorting {\n this.query.sorting = new Sorting(this.field, SortDirection.descending);\n return this.query.sorting;\n }\n}\n"],"names":["SortingActionsForQuery","query","field","ascending","sorting","Sorting","SortDirection","descending"],"mappings":";;;;;AAAA;AACA;AAMA;;AAEC,IACM,MAAMA,sBAAAA,CAAAA;;;AAET;;;;AAIC,QACD,YAAY,KAAsB,EAAWC,KAAuC,CAAE;aAAjEC,KAAAA,GAAAA,KAAAA;aAAwBD,KAAAA,GAAAA,KAAAA;AAC7C,IAAA;AAEA;;AAEE,SACFE,SAAAA,GAAqB;AACjB,QAAA,IAAI,CAACF,KAAK,CAACG,OAAO,GAAG,IAAIC,eAAAA,CAAQ,IAAI,CAACH,KAAK,EAAEI,2BAAAA,CAAcH,SAAS,CAAA;AACpE,QAAA,OAAO,IAAI,CAACF,KAAK,CAACG,OAAO;AAC7B,IAAA;AAEA;;AAEE,SACFG,UAAAA,GAAsB;AAClB,QAAA,IAAI,CAACN,KAAK,CAACG,OAAO,GAAG,IAAIC,eAAAA,CAAQ,IAAI,CAACH,KAAK,EAAEI,2BAAAA,CAAcC,UAAU,CAAA;AACrE,QAAA,OAAO,IAAI,CAACN,KAAK,CAACG,OAAO;AAC7B,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"SortingActionsForQuery.js","sources":["../../../queries/SortingActionsForQuery.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { IQueryFor } from './IQueryFor.js';\nimport { SortDirection } from './SortDirection.js';\nimport { Sorting } from './Sorting.js';\n\n/**\n * Represents sorting for a query.\n */\nexport class SortingActionsForQuery<TDataType, TArguments = object> {\n\n /**\n * Initializes a new instance of {@link SortingActionsForQuery}.\n * @param {string} field The field that the sorting represents.\n * @param {IQueryFor<TDataType, TArguments>} query The query that holds the field.\n */\n constructor(readonly field: string, readonly query: IQueryFor<TDataType, TArguments>) { \n }\n\n /**\n * Instructs query to sort ascending for the field.\n */\n ascending(): Sorting {\n this.query.sorting = new Sorting(this.field, SortDirection.ascending);\n return this.query.sorting;\n }\n\n /**\n * Instructs query to sort ascending for the field.\n */\n descending(): Sorting {\n this.query.sorting = new Sorting(this.field, SortDirection.descending);\n return this.query.sorting;\n }\n}\n"],"names":["SortingActionsForQuery","query","field","ascending","sorting","Sorting","SortDirection","descending"],"mappings":";;;;;AAAA;AACA;AAMA;;AAEC,IACM,MAAMA,sBAAAA,CAAAA;;;AAET;;;;AAIC,QACD,YAAY,KAAsB,EAAWC,KAAuC,CAAE;aAAjEC,KAAAA,GAAAA,KAAAA;aAAwBD,KAAAA,GAAAA,KAAAA;AAC7C,IAAA;AAEA;;AAEE,SACFE,SAAAA,GAAqB;AACjB,QAAA,IAAI,CAACF,KAAK,CAACG,OAAO,GAAG,IAAIC,eAAAA,CAAQ,IAAI,CAACH,KAAK,EAAEI,2BAAAA,CAAcH,SAAS,CAAA;AACpE,QAAA,OAAO,IAAI,CAACF,KAAK,CAACG,OAAO;AAC7B,IAAA;AAEA;;AAEE,SACFG,UAAAA,GAAsB;AAClB,QAAA,IAAI,CAACN,KAAK,CAACG,OAAO,GAAG,IAAIC,eAAAA,CAAQ,IAAI,CAACH,KAAK,EAAEI,2BAAAA,CAAcC,UAAU,CAAA;AACrE,QAAA,OAAO,IAAI,CAACN,KAAK,CAACG,OAAO;AAC7B,IAAA;AACJ;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidateRequestArguments.d.ts","sourceRoot":"","sources":["../../../queries/ValidateRequestArguments.ts"],"names":[],"mappings":"AAUA,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,EAAE,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAyBnI"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { DataReceived } from './ObservableQueryConnection.js';
|
|
2
|
+
import type { IReconnectPolicy } from './IReconnectPolicy.js';
|
|
3
|
+
export declare enum HubMessageType {
|
|
4
|
+
Subscribe = "Subscribe",
|
|
5
|
+
Unsubscribe = "Unsubscribe",
|
|
6
|
+
QueryResult = "QueryResult",
|
|
7
|
+
Unauthorized = "Unauthorized",
|
|
8
|
+
Error = "Error",
|
|
9
|
+
Ping = "Ping",
|
|
10
|
+
Pong = "Pong",
|
|
11
|
+
Connected = "Connected"
|
|
12
|
+
}
|
|
13
|
+
export interface HubMessage {
|
|
14
|
+
type: HubMessageType;
|
|
15
|
+
queryId?: string;
|
|
16
|
+
revision?: number;
|
|
17
|
+
supportsSubscriptionRevisions?: boolean;
|
|
18
|
+
payload?: any;
|
|
19
|
+
timestamp?: number;
|
|
20
|
+
keepAliveIntervalMs?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface SubscriptionRequest {
|
|
23
|
+
queryName: string;
|
|
24
|
+
arguments?: Record<string, string | null>;
|
|
25
|
+
page?: number;
|
|
26
|
+
pageSize?: number;
|
|
27
|
+
sortBy?: string;
|
|
28
|
+
sortDirection?: string;
|
|
29
|
+
transferMode?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare class WebSocketHubConnection {
|
|
32
|
+
private readonly _url;
|
|
33
|
+
private readonly _microservice;
|
|
34
|
+
private readonly _policy;
|
|
35
|
+
private _socket?;
|
|
36
|
+
private _disconnected;
|
|
37
|
+
private _subscriptions;
|
|
38
|
+
private readonly _keepAlive;
|
|
39
|
+
private _lastPingSentTime?;
|
|
40
|
+
private _lastPongLatency;
|
|
41
|
+
private _latencySamples;
|
|
42
|
+
private _nextRevision;
|
|
43
|
+
private _supportsSubscriptionRevisions;
|
|
44
|
+
private _reconnectPending;
|
|
45
|
+
constructor(_url: string, _microservice: string, pingIntervalMs?: number, _policy?: IReconnectPolicy);
|
|
46
|
+
get queryCount(): number;
|
|
47
|
+
get isConnected(): boolean;
|
|
48
|
+
get lastPingLatency(): number;
|
|
49
|
+
get averageLatency(): number;
|
|
50
|
+
subscribe(queryId: string, request: SubscriptionRequest, callback: DataReceived<any>): void;
|
|
51
|
+
unsubscribe(queryId: string): void;
|
|
52
|
+
dispose(): void;
|
|
53
|
+
private ensureConnected;
|
|
54
|
+
private close;
|
|
55
|
+
private openSocket;
|
|
56
|
+
private cancelPendingReconnect;
|
|
57
|
+
private detachAndCloseSocket;
|
|
58
|
+
private sendAllSubscriptions;
|
|
59
|
+
private sendSubscribeMessage;
|
|
60
|
+
private sendMessage;
|
|
61
|
+
private handleMessage;
|
|
62
|
+
private handleConnected;
|
|
63
|
+
private handleQueryResult;
|
|
64
|
+
private handleUnauthorized;
|
|
65
|
+
private isMessageForCurrentSubscription;
|
|
66
|
+
private isValidRevision;
|
|
67
|
+
private getNextRevision;
|
|
68
|
+
private handlePong;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=WebSocketHubConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebSocketHubConnection.d.ts","sourceRoot":"","sources":["../../../queries/WebSocketHubConnection.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAU9D,oBAAY,cAAc;IACtB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B;AAKD,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAKD,MAAM,WAAW,mBAAmB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAkBD,qBAAa,sBAAsB;IAoB3B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAtB5B,OAAO,CAAC,OAAO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