@cratis/arc 22.25.0 → 22.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Globals.ts +5 -5
- package/ICanBeConfigured.ts +1 -1
- package/commands/Command.ts +10 -10
- package/commands/CommandResult.ts +2 -2
- package/commands/CommandResults.ts +4 -4
- package/commands/CommandValidator.ts +2 -2
- package/commands/ICommand.ts +4 -4
- package/commands/ICommandResult.ts +1 -1
- package/commands/for_Command/CommandWithRouteParams.ts +2 -2
- package/commands/for_Command/SomeCommand.ts +2 -2
- package/commands/for_Command/given/a_command.ts +2 -2
- package/commands/for_Command/given/a_command_with_validator.ts +5 -5
- package/commands/for_Command/when_clearing_the_command.ts +1 -1
- package/commands/for_Command/when_constructing_command.ts +4 -4
- package/commands/for_Command/when_constructing_command_with_globals_api_base_path.ts +4 -4
- package/commands/for_Command/when_constructing_command_with_globals_origin.ts +4 -4
- package/commands/for_Command/when_executing/and_command_route_not_found.ts +3 -3
- package/commands/for_Command/when_executing/and_fetch_throws_exception.ts +3 -3
- package/commands/for_Command/when_executing/with_allowed_severity_warning.ts +3 -3
- package/commands/for_Command/when_executing/with_client_validation_failing.ts +5 -5
- package/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.ts +3 -3
- package/commands/for_Command/when_executing/with_client_validation_passing.ts +5 -5
- package/commands/for_Command/when_executing/with_command_properties.ts +2 -2
- package/commands/for_Command/when_executing/with_custom_http_headers.ts +3 -3
- package/commands/for_Command/when_executing/with_declared_blocking_severity.ts +5 -5
- package/commands/for_Command/when_executing/with_empty_required_string_property.ts +3 -3
- package/commands/for_Command/when_executing/with_microservice_header.ts +3 -3
- package/commands/for_Command/when_executing/with_missing_required_property.ts +3 -3
- package/commands/for_Command/when_executing/with_null_required_property.ts +3 -3
- package/commands/for_Command/when_executing/with_origin_and_api_base_path.ts +3 -3
- package/commands/for_Command/when_executing/with_route_parameters.ts +3 -3
- package/commands/for_Command/when_executing/with_successful_response.ts +3 -3
- package/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.ts +1 -1
- package/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.ts +1 -1
- package/commands/for_Command/when_property_changes_and_initial_value_is_undefined.ts +1 -1
- package/commands/for_Command/when_property_changes_and_there_is_a_callback.ts +1 -1
- package/commands/for_Command/when_property_has_changed_and_we_revert.ts +1 -1
- package/commands/for_Command/when_setting_initial_values_after_property_changed.ts +1 -1
- package/commands/for_Command/when_validating/and_fetch_throws_exception.ts +3 -3
- package/commands/for_Command/when_validating/and_validation_endpoint_not_found.ts +3 -3
- package/commands/for_Command/when_validating/does_not_update_initial_values.ts +2 -2
- package/commands/for_Command/when_validating/with_client_validation_failure.ts +3 -3
- package/commands/for_Command/when_validating/with_client_validation_passing.ts +6 -6
- package/commands/for_Command/when_validating/with_empty_required_string_property.ts +3 -3
- package/commands/for_Command/when_validating/with_null_required_property.ts +3 -3
- package/commands/for_Command/when_validating/with_required_property_missing.ts +3 -3
- package/commands/for_Command/when_validating/with_route_parameters.ts +3 -3
- package/commands/for_Command/when_validating/with_successful_response.ts +3 -3
- package/commands/for_Command/when_validating/with_validation_errors.ts +3 -3
- package/commands/for_Command/when_validating_client_side/with_client_validation_failure.ts +3 -3
- package/commands/for_Command/when_validating_client_side/with_client_validation_passing.ts +6 -6
- package/commands/for_Command/when_validating_client_side/with_required_property_missing.ts +3 -3
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.ts +1 -1
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.ts +3 -3
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.ts +1 -1
- package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.ts +1 -1
- package/commands/for_CommandResult/when_constructing_from_a_server_result_with_a_constraint_violation.ts +3 -3
- package/commands/for_CommandResult/when_constructing_from_a_server_result_with_reasons.ts +3 -3
- package/commands/for_CommandResult/when_constructing_with_primitive_response.ts +1 -1
- package/commands/for_CommandResult/when_creating_a_validation_failed_result.ts +4 -4
- package/commands/index.ts +7 -7
- package/dist/cjs/EventSourceFactory.d.ts +2 -0
- package/dist/cjs/EventSourceFactory.d.ts.map +1 -0
- package/dist/cjs/GetHttpHeaders.d.ts +2 -0
- package/dist/cjs/GetHttpHeaders.d.ts.map +1 -0
- package/dist/cjs/Globals.d.ts +27 -0
- package/dist/cjs/Globals.d.ts.map +1 -0
- package/dist/cjs/Globals.js.map +1 -1
- package/dist/cjs/ICanBeConfigured.d.ts +8 -0
- package/dist/cjs/ICanBeConfigured.d.ts.map +1 -0
- package/dist/cjs/UrlHelpers.d.ts +9 -0
- package/dist/cjs/UrlHelpers.d.ts.map +1 -0
- package/dist/cjs/commands/Command.d.ts +46 -0
- package/dist/cjs/commands/Command.d.ts.map +1 -0
- package/dist/cjs/commands/Command.js.map +1 -1
- package/dist/cjs/commands/CommandResult.d.ts +51 -0
- package/dist/cjs/commands/CommandResult.d.ts.map +1 -0
- package/dist/cjs/commands/CommandResult.js.map +1 -1
- package/dist/cjs/commands/CommandResults.d.ts +23 -0
- package/dist/cjs/commands/CommandResults.d.ts.map +1 -0
- package/dist/cjs/commands/CommandResults.js.map +1 -1
- package/dist/cjs/commands/CommandValidator.d.ts +6 -0
- package/dist/cjs/commands/CommandValidator.d.ts.map +1 -0
- package/dist/cjs/commands/CommandValidator.js.map +1 -1
- package/dist/cjs/commands/ICommand.d.ts +21 -0
- package/dist/cjs/commands/ICommand.d.ts.map +1 -0
- package/dist/cjs/commands/ICommandResult.d.ts +15 -0
- package/dist/cjs/commands/ICommandResult.d.ts.map +1 -0
- package/dist/cjs/commands/index.d.ts +8 -0
- package/dist/cjs/commands/index.d.ts.map +1 -0
- package/dist/cjs/commands/index.js.map +1 -1
- package/dist/cjs/deepEqual.d.ts +2 -0
- package/dist/cjs/deepEqual.d.ts.map +1 -0
- package/dist/cjs/given.d.ts +5 -0
- package/dist/cjs/given.d.ts.map +1 -0
- package/dist/cjs/helpers/fetchHelper.d.ts +7 -0
- package/dist/cjs/helpers/fetchHelper.d.ts.map +1 -0
- package/dist/cjs/identity/IIdentity.d.ts +10 -0
- package/dist/cjs/identity/IIdentity.d.ts.map +1 -0
- package/dist/cjs/identity/IIdentityProvider.d.ts +6 -0
- package/dist/cjs/identity/IIdentityProvider.d.ts.map +1 -0
- package/dist/cjs/identity/IIdentityProvider.js.map +1 -1
- package/dist/cjs/identity/IdentityProvider.d.ts +20 -0
- package/dist/cjs/identity/IdentityProvider.d.ts.map +1 -0
- package/dist/cjs/identity/IdentityProvider.js.map +1 -1
- package/dist/cjs/identity/IdentityProviderResult.d.ts +7 -0
- package/dist/cjs/identity/IdentityProviderResult.d.ts.map +1 -0
- package/dist/cjs/identity/deserializeIdentityDetails.d.ts +3 -0
- package/dist/cjs/identity/deserializeIdentityDetails.d.ts.map +1 -0
- package/dist/cjs/identity/index.d.ts +6 -0
- package/dist/cjs/identity/index.d.ts.map +1 -0
- package/dist/cjs/identity/index.js.map +1 -1
- package/dist/cjs/index.d.ts +15 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/joinPaths.d.ts +2 -0
- package/dist/cjs/joinPaths.d.ts.map +1 -0
- package/dist/cjs/messaging/IMessenger.d.ts +10 -0
- package/dist/cjs/messaging/IMessenger.d.ts.map +1 -0
- package/dist/cjs/messaging/Message.d.ts +7 -0
- package/dist/cjs/messaging/Message.d.ts.map +1 -0
- package/dist/cjs/messaging/Messenger.d.ts +20 -0
- package/dist/cjs/messaging/Messenger.d.ts.map +1 -0
- package/dist/cjs/messaging/Messenger.js.map +1 -1
- package/dist/cjs/messaging/index.d.ts +4 -0
- package/dist/cjs/messaging/index.d.ts.map +1 -0
- package/dist/cjs/messaging/index.js.map +1 -1
- package/dist/cjs/queries/ChangeSet.d.ts +6 -0
- package/dist/cjs/queries/ChangeSet.d.ts.map +1 -0
- package/dist/cjs/queries/HubConnectionKeepAlive.d.ts +14 -0
- package/dist/cjs/queries/HubConnectionKeepAlive.d.ts.map +1 -0
- package/dist/cjs/queries/IChangeStreamFor.d.ts +4 -0
- package/dist/cjs/queries/IChangeStreamFor.d.ts.map +1 -0
- package/dist/cjs/queries/IObservableQueryConnection.d.ts +8 -0
- package/dist/cjs/queries/IObservableQueryConnection.d.ts.map +1 -0
- package/dist/cjs/queries/IObservableQueryDiagnostics.d.ts +9 -0
- package/dist/cjs/queries/IObservableQueryDiagnostics.d.ts.map +1 -0
- package/dist/cjs/queries/IObservableQueryFor.d.ts +14 -0
- package/dist/cjs/queries/IObservableQueryFor.d.ts.map +1 -0
- package/dist/cjs/queries/IObservableQueryHubConnection.d.ts +12 -0
- package/dist/cjs/queries/IObservableQueryHubConnection.d.ts.map +1 -0
- package/dist/cjs/queries/IQuery.d.ts +12 -0
- package/dist/cjs/queries/IQuery.d.ts.map +1 -0
- package/dist/cjs/queries/IQueryFor.d.ts +13 -0
- package/dist/cjs/queries/IQueryFor.d.ts.map +1 -0
- package/dist/cjs/queries/IQueryProvider.d.ts +6 -0
- package/dist/cjs/queries/IQueryProvider.d.ts.map +1 -0
- package/dist/cjs/queries/IQueryProvider.js.map +1 -1
- package/dist/cjs/queries/IQueryResult.d.ts +18 -0
- package/dist/cjs/queries/IQueryResult.d.ts.map +1 -0
- package/dist/cjs/queries/IReconnectPolicy.d.ts +8 -0
- package/dist/cjs/queries/IReconnectPolicy.d.ts.map +1 -0
- package/dist/cjs/queries/NullObservableQueryConnection.d.ts +13 -0
- package/dist/cjs/queries/NullObservableQueryConnection.d.ts.map +1 -0
- package/dist/cjs/queries/NullObservableQueryConnection.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnection.d.ts +31 -0
- package/dist/cjs/queries/ObservableQueryConnection.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryConnection.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnectionFactory.d.ts +13 -0
- package/dist/cjs/queries/ObservableQueryConnectionFactory.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryConnectionFactory.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnectionPool.d.ts +9 -0
- package/dist/cjs/queries/ObservableQueryConnectionPool.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryConnectionPool.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryDiagnostics.d.ts +21 -0
- package/dist/cjs/queries/ObservableQueryDiagnostics.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryDiagnostics.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryDiagnosticsSnapshot.d.ts +48 -0
- package/dist/cjs/queries/ObservableQueryDiagnosticsSnapshot.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryFor.d.ts +42 -0
- package/dist/cjs/queries/ObservableQueryFor.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryFor.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryMultiplexer.d.ts +33 -0
- package/dist/cjs/queries/ObservableQueryMultiplexer.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQueryMultiplexer.js.map +1 -1
- package/dist/cjs/queries/ObservableQuerySubscription.d.ts +7 -0
- package/dist/cjs/queries/ObservableQuerySubscription.d.ts.map +1 -0
- package/dist/cjs/queries/ObservableQuerySubscription.js.map +1 -1
- package/dist/cjs/queries/Paging.d.ts +8 -0
- package/dist/cjs/queries/Paging.d.ts.map +1 -0
- package/dist/cjs/queries/PagingInfo.d.ts +9 -0
- package/dist/cjs/queries/PagingInfo.d.ts.map +1 -0
- package/dist/cjs/queries/QueryFor.d.ts +37 -0
- package/dist/cjs/queries/QueryFor.d.ts.map +1 -0
- package/dist/cjs/queries/QueryFor.js.map +1 -1
- package/dist/cjs/queries/QueryHttpMethod.d.ts +6 -0
- package/dist/cjs/queries/QueryHttpMethod.d.ts.map +1 -0
- package/dist/cjs/queries/QueryHttpMethodResolver.d.ts +14 -0
- package/dist/cjs/queries/QueryHttpMethodResolver.d.ts.map +1 -0
- package/dist/cjs/queries/QueryHttpMethodResolver.js.map +1 -1
- package/dist/cjs/queries/QueryHttpRequest.d.ts +21 -0
- package/dist/cjs/queries/QueryHttpRequest.d.ts.map +1 -0
- package/dist/cjs/queries/QueryHttpRequest.js.map +1 -1
- package/dist/cjs/queries/QueryInstanceCache.d.ts +40 -0
- package/dist/cjs/queries/QueryInstanceCache.d.ts.map +1 -0
- package/dist/cjs/queries/QueryInstanceCache.js.map +1 -1
- package/dist/cjs/queries/QueryProvider.d.ts +13 -0
- package/dist/cjs/queries/QueryProvider.d.ts.map +1 -0
- package/dist/cjs/queries/QueryProvider.js.map +1 -1
- package/dist/cjs/queries/QueryResult.d.ts +62 -0
- package/dist/cjs/queries/QueryResult.d.ts.map +1 -0
- package/dist/cjs/queries/QueryResult.js.map +1 -1
- package/dist/cjs/queries/QueryResultWithState.d.ts +24 -0
- package/dist/cjs/queries/QueryResultWithState.d.ts.map +1 -0
- package/dist/cjs/queries/QueryResultWithState.js.map +1 -1
- package/dist/cjs/queries/QueryTransportMethod.d.ts +5 -0
- package/dist/cjs/queries/QueryTransportMethod.d.ts.map +1 -0
- package/dist/cjs/queries/QueryValidator.d.ts +6 -0
- package/dist/cjs/queries/QueryValidator.d.ts.map +1 -0
- package/dist/cjs/queries/QueryValidator.js.map +1 -1
- package/dist/cjs/queries/ReconnectPolicy.d.ts +15 -0
- package/dist/cjs/queries/ReconnectPolicy.d.ts.map +1 -0
- package/dist/cjs/queries/ReconnectPolicy.js.map +1 -1
- package/dist/cjs/queries/ServerSentEventHubConnection.d.ts +49 -0
- package/dist/cjs/queries/ServerSentEventHubConnection.d.ts.map +1 -0
- package/dist/cjs/queries/ServerSentEventHubConnection.js.map +1 -1
- package/dist/cjs/queries/ServerSentEventQueryConnection.d.ts +16 -0
- package/dist/cjs/queries/ServerSentEventQueryConnection.d.ts.map +1 -0
- package/dist/cjs/queries/ServerSentEventQueryConnection.js.map +1 -1
- package/dist/cjs/queries/SortDirection.d.ts +6 -0
- package/dist/cjs/queries/SortDirection.d.ts.map +1 -0
- package/dist/cjs/queries/Sorting.d.ts +9 -0
- package/dist/cjs/queries/Sorting.d.ts.map +1 -0
- package/dist/cjs/queries/Sorting.js.map +1 -1
- package/dist/cjs/queries/SortingActions.d.ts +10 -0
- package/dist/cjs/queries/SortingActions.d.ts.map +1 -0
- package/dist/cjs/queries/SortingActions.js.map +1 -1
- package/dist/cjs/queries/SortingActionsForObservableQuery.d.ts +10 -0
- package/dist/cjs/queries/SortingActionsForObservableQuery.d.ts.map +1 -0
- package/dist/cjs/queries/SortingActionsForObservableQuery.js.map +1 -1
- package/dist/cjs/queries/SortingActionsForQuery.d.ts +10 -0
- package/dist/cjs/queries/SortingActionsForQuery.d.ts.map +1 -0
- package/dist/cjs/queries/SortingActionsForQuery.js.map +1 -1
- package/dist/cjs/queries/ValidateRequestArguments.d.ts +2 -0
- package/dist/cjs/queries/ValidateRequestArguments.d.ts.map +1 -0
- package/dist/cjs/queries/WebSocketHubConnection.d.ts +70 -0
- package/dist/cjs/queries/WebSocketHubConnection.d.ts.map +1 -0
- package/dist/cjs/queries/WebSocketHubConnection.js.map +1 -1
- package/dist/cjs/queries/WebSocketMessage.d.ts +11 -0
- package/dist/cjs/queries/WebSocketMessage.d.ts.map +1 -0
- package/dist/cjs/queries/deserializeQueryModel.d.ts +5 -0
- package/dist/cjs/queries/deserializeQueryModel.d.ts.map +1 -0
- package/dist/cjs/queries/index.d.ts +44 -0
- package/dist/cjs/queries/index.d.ts.map +1 -0
- package/dist/cjs/queries/index.js.map +1 -1
- package/dist/cjs/queries/isAbortError.d.ts +2 -0
- package/dist/cjs/queries/isAbortError.d.ts.map +1 -0
- package/dist/cjs/queries/reconcileQueryData.d.ts +2 -0
- package/dist/cjs/queries/reconcileQueryData.d.ts.map +1 -0
- package/dist/cjs/queries/reconcileQueryData.js.map +1 -1
- package/dist/cjs/reflection/IHaveParameters.d.ts +5 -0
- package/dist/cjs/reflection/IHaveParameters.d.ts.map +1 -0
- package/dist/cjs/reflection/ParameterDescriptor.d.ts +8 -0
- package/dist/cjs/reflection/ParameterDescriptor.d.ts.map +1 -0
- package/dist/cjs/reflection/ParametersHelper.d.ts +5 -0
- package/dist/cjs/reflection/ParametersHelper.d.ts.map +1 -0
- package/dist/cjs/reflection/ParametersHelper.js.map +1 -1
- package/dist/cjs/reflection/PropertyDescriptor.d.ts +8 -0
- package/dist/cjs/reflection/PropertyDescriptor.d.ts.map +1 -0
- package/dist/cjs/reflection/index.d.ts +5 -0
- package/dist/cjs/reflection/index.d.ts.map +1 -0
- package/dist/cjs/reflection/index.js.map +1 -1
- package/dist/cjs/validation/IValidationRule.d.ts +5 -0
- package/dist/cjs/validation/IValidationRule.d.ts.map +1 -0
- package/dist/cjs/validation/PropertyRule.d.ts +11 -0
- package/dist/cjs/validation/PropertyRule.d.ts.map +1 -0
- package/dist/cjs/validation/PropertyRule.js.map +1 -1
- package/dist/cjs/validation/PropertyValidator.d.ts +11 -0
- package/dist/cjs/validation/PropertyValidator.d.ts.map +1 -0
- package/dist/cjs/validation/PropertyValidator.js.map +1 -1
- package/dist/cjs/validation/RuleBuilder.d.ts +11 -0
- package/dist/cjs/validation/RuleBuilder.d.ts.map +1 -0
- package/dist/cjs/validation/RuleBuilder.js.map +1 -1
- package/dist/cjs/validation/RuleBuilderExtensions.d.ts +32 -0
- package/dist/cjs/validation/RuleBuilderExtensions.d.ts.map +1 -0
- package/dist/cjs/validation/RuleBuilderExtensions.js.map +1 -1
- package/dist/cjs/validation/ValidationResult.d.ts +12 -0
- package/dist/cjs/validation/ValidationResult.d.ts.map +1 -0
- package/dist/cjs/validation/ValidationResult.js.map +1 -1
- package/dist/cjs/validation/ValidationResultReason.d.ts +10 -0
- package/dist/cjs/validation/ValidationResultReason.d.ts.map +1 -0
- package/dist/cjs/validation/ValidationResultSeverity.d.ts +7 -0
- package/dist/cjs/validation/ValidationResultSeverity.d.ts.map +1 -0
- package/dist/cjs/validation/Validator.d.ts +11 -0
- package/dist/cjs/validation/Validator.d.ts.map +1 -0
- package/dist/cjs/validation/Validator.js.map +1 -1
- package/dist/cjs/validation/index.d.ts +15 -0
- package/dist/cjs/validation/index.d.ts.map +1 -0
- package/dist/cjs/validation/index.js.map +1 -1
- package/dist/cjs/validation/rules/ComparisonRules.d.ts +22 -0
- package/dist/cjs/validation/rules/ComparisonRules.d.ts.map +1 -0
- package/dist/cjs/validation/rules/ComparisonRules.js.map +1 -1
- package/dist/cjs/validation/rules/EmailRule.d.ts +7 -0
- package/dist/cjs/validation/rules/EmailRule.d.ts.map +1 -0
- package/dist/cjs/validation/rules/EmailRule.js.map +1 -1
- package/dist/cjs/validation/rules/LengthRules.d.ts +18 -0
- package/dist/cjs/validation/rules/LengthRules.d.ts.map +1 -0
- package/dist/cjs/validation/rules/LengthRules.js.map +1 -1
- package/dist/cjs/validation/rules/NotEmptyRule.d.ts +10 -0
- package/dist/cjs/validation/rules/NotEmptyRule.d.ts.map +1 -0
- package/dist/cjs/validation/rules/NotEmptyRule.js.map +1 -1
- package/dist/cjs/validation/rules/PhoneRule.d.ts +7 -0
- package/dist/cjs/validation/rules/PhoneRule.d.ts.map +1 -0
- package/dist/cjs/validation/rules/PhoneRule.js.map +1 -1
- package/dist/cjs/validation/rules/RegexRule.d.ts +7 -0
- package/dist/cjs/validation/rules/RegexRule.d.ts.map +1 -0
- package/dist/cjs/validation/rules/RegexRule.js.map +1 -1
- package/dist/cjs/validation/rules/UrlRule.d.ts +7 -0
- package/dist/cjs/validation/rules/UrlRule.d.ts.map +1 -0
- package/dist/cjs/validation/rules/UrlRule.js.map +1 -1
- package/dist/esm/Globals.d.ts +5 -5
- package/dist/esm/Globals.d.ts.map +1 -1
- package/dist/esm/Globals.js.map +1 -1
- package/dist/esm/ICanBeConfigured.d.ts +1 -1
- package/dist/esm/ICanBeConfigured.d.ts.map +1 -1
- package/dist/esm/commands/Command.d.ts +6 -6
- package/dist/esm/commands/Command.d.ts.map +1 -1
- package/dist/esm/commands/Command.js.map +1 -1
- package/dist/esm/commands/CommandResult.d.ts +2 -2
- package/dist/esm/commands/CommandResult.d.ts.map +1 -1
- package/dist/esm/commands/CommandResult.js.map +1 -1
- package/dist/esm/commands/CommandResults.d.ts +4 -4
- package/dist/esm/commands/CommandResults.d.ts.map +1 -1
- package/dist/esm/commands/CommandResults.js.map +1 -1
- package/dist/esm/commands/CommandValidator.d.ts +2 -2
- package/dist/esm/commands/CommandValidator.d.ts.map +1 -1
- package/dist/esm/commands/CommandValidator.js.map +1 -1
- package/dist/esm/commands/ICommand.d.ts +4 -4
- package/dist/esm/commands/ICommand.d.ts.map +1 -1
- package/dist/esm/commands/ICommandResult.d.ts +1 -1
- package/dist/esm/commands/ICommandResult.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/CommandWithRouteParams.d.ts +2 -2
- package/dist/esm/commands/for_Command/CommandWithRouteParams.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/CommandWithRouteParams.js +2 -2
- package/dist/esm/commands/for_Command/CommandWithRouteParams.js.map +1 -1
- package/dist/esm/commands/for_Command/SomeCommand.d.ts +2 -2
- package/dist/esm/commands/for_Command/SomeCommand.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/SomeCommand.js +2 -2
- package/dist/esm/commands/for_Command/SomeCommand.js.map +1 -1
- package/dist/esm/commands/for_Command/given/a_command.d.ts +1 -1
- package/dist/esm/commands/for_Command/given/a_command.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/given/a_command.js +2 -2
- package/dist/esm/commands/for_Command/given/a_command.js.map +1 -1
- package/dist/esm/commands/for_Command/given/a_command_with_validator.d.ts +4 -4
- package/dist/esm/commands/for_Command/given/a_command_with_validator.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/given/a_command_with_validator.js +4 -4
- package/dist/esm/commands/for_Command/given/a_command_with_validator.js.map +1 -1
- package/dist/esm/commands/for_Command/when_clearing_the_command.js +1 -1
- package/dist/esm/commands/for_Command/when_clearing_the_command.js.map +1 -1
- package/dist/esm/commands/for_Command/when_constructing_command.js +4 -4
- package/dist/esm/commands/for_Command/when_constructing_command.js.map +1 -1
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.js +4 -4
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.js.map +1 -1
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.js +4 -4
- package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_allowed_severity_warning.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_allowed_severity_warning.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.d.ts +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.d.ts +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.js +4 -4
- package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_command_properties.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_command_properties.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_declared_blocking_severity.js +4 -4
- package/dist/esm/commands/for_Command/when_executing/with_declared_blocking_severity.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_empty_required_string_property.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_empty_required_string_property.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_microservice_header.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_microservice_header.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_null_required_property.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_null_required_property.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_route_parameters.js +3 -3
- package/dist/esm/commands/for_Command/when_executing/with_route_parameters.js.map +1 -1
- package/dist/esm/commands/for_Command/when_executing/with_successful_response.js +2 -2
- package/dist/esm/commands/for_Command/when_executing/with_successful_response.js.map +1 -1
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.js +1 -1
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.js.map +1 -1
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.js +1 -1
- package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.js.map +1 -1
- package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.js +1 -1
- package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.js.map +1 -1
- package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.js +1 -1
- package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.js.map +1 -1
- package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.js +1 -1
- package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.js.map +1 -1
- package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.js +1 -1
- package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.d.ts +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.js +4 -4
- package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_empty_required_string_property.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_empty_required_string_property.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_null_required_property.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_null_required_property.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_route_parameters.js +3 -3
- package/dist/esm/commands/for_Command/when_validating/with_route_parameters.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_successful_response.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_successful_response.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating/with_validation_errors.js +2 -2
- package/dist/esm/commands/for_Command/when_validating/with_validation_errors.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_failure.js +2 -2
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_failure.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_passing.d.ts +1 -1
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_passing.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_passing.js +4 -4
- package/dist/esm/commands/for_Command/when_validating_client_side/with_client_validation_passing.js.map +1 -1
- package/dist/esm/commands/for_Command/when_validating_client_side/with_required_property_missing.js +2 -2
- package/dist/esm/commands/for_Command/when_validating_client_side/with_required_property_missing.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.js +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.js +3 -3
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.js +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.js +1 -1
- package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_constructing_from_a_server_result_with_a_constraint_violation.js +3 -3
- package/dist/esm/commands/for_CommandResult/when_constructing_from_a_server_result_with_a_constraint_violation.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_constructing_from_a_server_result_with_reasons.js +3 -3
- package/dist/esm/commands/for_CommandResult/when_constructing_from_a_server_result_with_reasons.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_constructing_with_primitive_response.js +1 -1
- package/dist/esm/commands/for_CommandResult/when_constructing_with_primitive_response.js.map +1 -1
- package/dist/esm/commands/for_CommandResult/when_creating_a_validation_failed_result.js +4 -4
- package/dist/esm/commands/for_CommandResult/when_creating_a_validation_failed_result.js.map +1 -1
- package/dist/esm/commands/index.d.ts +7 -7
- package/dist/esm/commands/index.d.ts.map +1 -1
- package/dist/esm/commands/index.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_array_values.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_array_values.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_date_values.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_date_values.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_mixed_array_and_scalar_values.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_mixed_array_and_scalar_values.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.js +1 -1
- package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.js +1 -1
- package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.js +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_array_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_array_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.js +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.js.map +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.js +1 -1
- package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.js.map +1 -1
- package/dist/esm/identity/IIdentityProvider.d.ts +1 -1
- package/dist/esm/identity/IIdentityProvider.d.ts.map +1 -1
- package/dist/esm/identity/IIdentityProvider.js.map +1 -1
- package/dist/esm/identity/IdentityProvider.d.ts +3 -3
- package/dist/esm/identity/IdentityProvider.d.ts.map +1 -1
- package/dist/esm/identity/IdentityProvider.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.js +2 -2
- package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_a_details_type_that_declares_no_fields.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_a_details_type_that_declares_no_fields.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_roles.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_roles.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/without_roles.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_getting_current/without_roles.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.js +4 -4
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_origin_set.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_origin_set.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_unauthorized_response.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_unauthorized_response.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.js +4 -4
- package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/when_setting_origin.js +3 -3
- package/dist/esm/identity/for_IdentityProvider/when_setting_origin.js.map +1 -1
- package/dist/esm/identity/index.d.ts +5 -5
- package/dist/esm/identity/index.d.ts.map +1 -1
- package/dist/esm/identity/index.js.map +1 -1
- package/dist/esm/index.d.ts +12 -12
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/messaging/Messenger.d.ts +1 -1
- package/dist/esm/messaging/Messenger.d.ts.map +1 -1
- package/dist/esm/messaging/Messenger.js.map +1 -1
- package/dist/esm/messaging/for_Messenger/when_scoping_messages.js +1 -1
- package/dist/esm/messaging/for_Messenger/when_scoping_messages.js.map +1 -1
- package/dist/esm/messaging/index.d.ts +3 -3
- package/dist/esm/messaging/index.d.ts.map +1 -1
- package/dist/esm/messaging/index.js.map +1 -1
- package/dist/esm/queries/IChangeStreamFor.d.ts +1 -1
- package/dist/esm/queries/IChangeStreamFor.d.ts.map +1 -1
- package/dist/esm/queries/IObservableQueryConnection.d.ts +1 -1
- package/dist/esm/queries/IObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/IObservableQueryDiagnostics.d.ts +1 -1
- package/dist/esm/queries/IObservableQueryDiagnostics.d.ts.map +1 -1
- package/dist/esm/queries/IObservableQueryFor.d.ts +4 -4
- package/dist/esm/queries/IObservableQueryFor.d.ts.map +1 -1
- package/dist/esm/queries/IObservableQueryHubConnection.d.ts +2 -2
- package/dist/esm/queries/IObservableQueryHubConnection.d.ts.map +1 -1
- package/dist/esm/queries/IQuery.d.ts +4 -4
- package/dist/esm/queries/IQuery.d.ts.map +1 -1
- package/dist/esm/queries/IQueryFor.d.ts +3 -3
- package/dist/esm/queries/IQueryFor.d.ts.map +1 -1
- package/dist/esm/queries/IQueryProvider.d.ts +1 -1
- package/dist/esm/queries/IQueryProvider.d.ts.map +1 -1
- package/dist/esm/queries/IQueryProvider.js.map +1 -1
- package/dist/esm/queries/IQueryResult.d.ts +3 -3
- package/dist/esm/queries/IQueryResult.d.ts.map +1 -1
- package/dist/esm/queries/NullObservableQueryConnection.d.ts +3 -3
- package/dist/esm/queries/NullObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/NullObservableQueryConnection.js.map +1 -1
- package/dist/esm/queries/ObservableQueryConnection.d.ts +3 -3
- package/dist/esm/queries/ObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryConnection.js.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionFactory.d.ts +1 -1
- package/dist/esm/queries/ObservableQueryConnectionFactory.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionFactory.js.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionPool.d.ts +2 -2
- package/dist/esm/queries/ObservableQueryConnectionPool.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionPool.js.map +1 -1
- package/dist/esm/queries/ObservableQueryDiagnostics.d.ts +4 -4
- package/dist/esm/queries/ObservableQueryDiagnostics.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryDiagnostics.js.map +1 -1
- package/dist/esm/queries/ObservableQueryFor.d.ts +9 -9
- package/dist/esm/queries/ObservableQueryFor.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryFor.js.map +1 -1
- package/dist/esm/queries/ObservableQueryMultiplexer.d.ts +4 -4
- package/dist/esm/queries/ObservableQueryMultiplexer.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryMultiplexer.js.map +1 -1
- package/dist/esm/queries/ObservableQuerySubscription.d.ts +1 -1
- package/dist/esm/queries/ObservableQuerySubscription.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQuerySubscription.js.map +1 -1
- package/dist/esm/queries/QueryFor.d.ts +8 -8
- package/dist/esm/queries/QueryFor.d.ts.map +1 -1
- package/dist/esm/queries/QueryFor.js.map +1 -1
- package/dist/esm/queries/QueryHttpMethodResolver.d.ts +1 -1
- package/dist/esm/queries/QueryHttpMethodResolver.d.ts.map +1 -1
- package/dist/esm/queries/QueryHttpMethodResolver.js.map +1 -1
- package/dist/esm/queries/QueryHttpRequest.d.ts +3 -3
- package/dist/esm/queries/QueryHttpRequest.d.ts.map +1 -1
- package/dist/esm/queries/QueryHttpRequest.js.map +1 -1
- package/dist/esm/queries/QueryInstanceCache.d.ts +2 -2
- package/dist/esm/queries/QueryInstanceCache.d.ts.map +1 -1
- package/dist/esm/queries/QueryInstanceCache.js.map +1 -1
- package/dist/esm/queries/QueryProvider.d.ts +3 -3
- package/dist/esm/queries/QueryProvider.d.ts.map +1 -1
- package/dist/esm/queries/QueryProvider.js.map +1 -1
- package/dist/esm/queries/QueryResult.d.ts +4 -4
- package/dist/esm/queries/QueryResult.d.ts.map +1 -1
- package/dist/esm/queries/QueryResult.js.map +1 -1
- package/dist/esm/queries/QueryResultWithState.d.ts +4 -4
- package/dist/esm/queries/QueryResultWithState.d.ts.map +1 -1
- package/dist/esm/queries/QueryResultWithState.js.map +1 -1
- package/dist/esm/queries/QueryValidator.d.ts +2 -2
- package/dist/esm/queries/QueryValidator.d.ts.map +1 -1
- package/dist/esm/queries/QueryValidator.js.map +1 -1
- package/dist/esm/queries/ReconnectPolicy.d.ts +1 -1
- package/dist/esm/queries/ReconnectPolicy.d.ts.map +1 -1
- package/dist/esm/queries/ReconnectPolicy.js.map +1 -1
- package/dist/esm/queries/ServerSentEventHubConnection.d.ts +4 -4
- package/dist/esm/queries/ServerSentEventHubConnection.d.ts.map +1 -1
- package/dist/esm/queries/ServerSentEventHubConnection.js.map +1 -1
- package/dist/esm/queries/ServerSentEventQueryConnection.d.ts +2 -2
- package/dist/esm/queries/ServerSentEventQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/ServerSentEventQueryConnection.js.map +1 -1
- package/dist/esm/queries/Sorting.d.ts +1 -1
- package/dist/esm/queries/Sorting.d.ts.map +1 -1
- package/dist/esm/queries/Sorting.js.map +1 -1
- package/dist/esm/queries/SortingActions.d.ts +1 -1
- package/dist/esm/queries/SortingActions.d.ts.map +1 -1
- package/dist/esm/queries/SortingActions.js.map +1 -1
- package/dist/esm/queries/SortingActionsForObservableQuery.d.ts +2 -2
- package/dist/esm/queries/SortingActionsForObservableQuery.d.ts.map +1 -1
- package/dist/esm/queries/SortingActionsForObservableQuery.js.map +1 -1
- package/dist/esm/queries/SortingActionsForQuery.d.ts +2 -2
- package/dist/esm/queries/SortingActionsForQuery.d.ts.map +1 -1
- package/dist/esm/queries/SortingActionsForQuery.js.map +1 -1
- package/dist/esm/queries/WebSocketHubConnection.d.ts +2 -2
- package/dist/esm/queries/WebSocketHubConnection.d.ts.map +1 -1
- package/dist/esm/queries/WebSocketHubConnection.js.map +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/behavior.js +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/behavior.js.map +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_running.js +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_running.js.map +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_stopped.js +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_stopped.js.map +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_started_with_custom_idle_threshold/respects_threshold.js +1 -1
- package/dist/esm/queries/for_HubConnectionKeepAlive/when_started_with_custom_idle_threshold/respects_threshold.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_a_reconnect_policy.d.ts +2 -2
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_a_reconnect_policy.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_a_reconnect_policy.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_a_reconnect_policy.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.d.ts +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.js +2 -2
- package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_data_message_with_type.js +3 -3
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_data_message_with_type.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_legacy_data_message.js +2 -2
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_legacy_data_message.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.js +3 -3
- package/dist/esm/queries/for_ObservableQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.d.ts +2 -2
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_sse_transport.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_sse_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_websocket_transport.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_websocket_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport.js +7 -7
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_exceeding_safe_limit.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_exceeding_safe_limit.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_within_safe_limit.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_within_safe_limit.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport_and_high_connection_count.js +6 -6
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport_and_high_connection_count.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_least_loaded_slot_is_chosen.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_least_loaded_slot_is_chosen.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_size_is_zero.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_size_is_zero.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_single_slot/and_one_subscriber.js +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionPool/when_acquiring/with_single_slot/and_one_subscriber.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryDiagnostics/when_tracking_owners.js +1 -1
- package/dist/esm/queries/for_ObservableQueryDiagnostics/when_tracking_owners.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.d.ts +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.js +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_with_validator.d.ts +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_with_validator.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_with_validator.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_with_validator.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing.js +5 -5
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_disposing.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_disposing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_a_not_ready_result.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_a_not_ready_result.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_client_validation_failing.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_client_validation_failing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partially_missing_required_arguments.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partially_missing_required_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.js +5 -5
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_has_a_calendar_collection.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_has_a_calendar_collection.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_type_is_a_primitive_collection.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_type_is_a_primitive_collection.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.js +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.js +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.js +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_failing.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_failing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_passing.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_passing.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_and_sse_transport.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_and_sse_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_disabled_and_sse_transport.js +7 -7
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_disabled_and_sse_transport.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_enabled.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_enabled.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_multiple_required_route_parameters.js +6 -6
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_multiple_required_route_parameters.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_null_or_undefined_args.js +6 -6
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_null_or_undefined_args.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_route_and_query_args.js +6 -6
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_route_and_query_args.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_stale_descriptor_backed_instance_property.js +6 -6
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_stale_descriptor_backed_instance_property.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_partially_missing_required_arguments.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_partially_missing_required_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.js +3 -3
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.js +4 -4
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.js +2 -2
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_web_socket_hub_payload_without_readiness.js +6 -6
- package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_web_socket_hub_payload_without_readiness.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_changed_cache_key.js +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_changed_cache_key.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_new_cache_key.js +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_new_cache_key.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_an_explicit_size.js +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_an_explicit_size.js.map +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_the_same_cache_key.js +1 -1
- package/dist/esm/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_the_same_cache_key.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/TestQueries.d.ts +2 -2
- package/dist/esm/queries/for_QueryFor/given/TestQueries.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/TestQueries.js +2 -2
- package/dist/esm/queries/for_QueryFor/given/TestQueries.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_for.d.ts +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_for.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_for.js +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_for.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.d.ts +4 -4
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.js +4 -4
- package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_constructing.js +5 -5
- package/dist/esm/queries/for_QueryFor/when_constructing.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_a_nullish_transport_rejection.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_a_nullish_transport_rejection.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_an_aborted_request.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_an_aborted_request.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.js +2 -2
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_parameter_descriptor_values.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_parameter_descriptor_values.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.js +2 -2
- package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_paging.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_performing/with_paging.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_partially_missing_required_arguments.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_partially_missing_required_arguments.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_http_method.js +4 -4
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_http_method.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.js +5 -5
- package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.js +3 -3
- package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.js +2 -2
- package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_setting_microservice.js +2 -2
- package/dist/esm/queries/for_QueryFor/when_setting_microservice.js.map +1 -1
- package/dist/esm/queries/for_QueryFor/when_setting_origin.js +2 -2
- package/dist/esm/queries/for_QueryFor/when_setting_origin.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_acquiring/after_release.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_acquiring/after_release.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_arguments.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_arguments.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_empty_arguments_object.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_empty_arguments_object.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_same_arguments_different_order.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/with_same_arguments_different_order.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/without_arguments.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_building_key/without_arguments.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_deferring_dispose/with_cancellation_before_timeout.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_deferring_dispose/with_cancellation_before_timeout.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_deferring_dispose/without_cancellation.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_deferring_dispose/without_cancellation.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/an_empty_cache.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/an_empty_cache.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/with_active_subscriptions.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/with_active_subscriptions.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/with_pending_deferred_cleanup.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_disposing/with_pending_deferred_cleanup.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_last_result/with_no_result_stored.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_last_result/with_no_result_stored.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_last_result/with_stored_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_last_result/with_stored_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_or_creating/with_existing_entry.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_or_creating/with_existing_entry.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_or_creating/with_new_entry.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_getting_or_creating/with_new_entry.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/a_key_that_does_not_exist.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/a_key_that_does_not_exist.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/one_of_two_subscribers.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/one_of_two_subscribers.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/the_only_subscriber.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/the_only_subscriber.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/after_timeout_elapses.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/after_timeout_elapses.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/before_timeout_elapses.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/before_timeout_elapses.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_partially_changed_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_partially_changed_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_re_delivered_identical_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_re_delivered_identical_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_a_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_changed_data.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_changed_data.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_identical_data_as_previous_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_identical_data_as_previous_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_only_readiness_changed.js +3 -3
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/with_only_readiness_changed.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/without_previous_result.js +2 -2
- package/dist/esm/queries/for_QueryInstanceCache/when_setting_last_result/without_previous_result.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_active_subscriptions.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_active_subscriptions.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_no_subscriptions.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_no_subscriptions.js.map +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_pending_deferred_cleanup.js +1 -1
- package/dist/esm/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_pending_deferred_cleanup.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_enumerable.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_enumerable.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_non_enumerable.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_non_enumerable.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result/with_readiness_false.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result/with_readiness_false.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result/without_readiness.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result/without_readiness.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result_with_a_constraint_violation.js +3 -3
- package/dist/esm/queries/for_QueryResult/when_constructing_from_a_server_result_with_a_constraint_violation.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_creating_a_validation_failed_result.js +4 -4
- package/dist/esm/queries/for_QueryResult/when_creating_a_validation_failed_result.js.map +1 -1
- package/dist/esm/queries/for_QueryResult/when_data_is_single_item_for_enumerable/and_it_is_an_array.js +1 -1
- package/dist/esm/queries/for_QueryResult/when_data_is_single_item_for_enumerable/and_it_is_an_array.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_empty/with_null_default_value.js +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_empty/with_null_default_value.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_empty/with_undefined_default_value.js +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_empty/with_undefined_default_value.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_null_data.js +2 -2
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_null_data.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_readiness_false.js +2 -2
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_readiness_false.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_undefined_data.js +2 -2
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/with_undefined_data.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/without_readiness.js +2 -2
- package/dist/esm/queries/for_QueryResultWithState/when_creating_from_query_result/without_readiness.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_null_default_value.js +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_null_default_value.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_undefined_default_value.js +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_undefined_default_value.js.map +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_valid_default_value.js +1 -1
- package/dist/esm/queries/for_QueryResultWithState/when_creating_initial/with_valid_default_value.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_canceling/with_pending_timer.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_canceling/with_pending_timer.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_cancelling/with_pending_timer.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_cancelling/with_pending_timer.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_resetting/after_scheduling.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_resetting/after_scheduling.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/delay_is_capped_at_max.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/delay_is_capped_at_max.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/first_attempt.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/first_attempt.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_reached/abandons_reconnect.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_reached/abandons_reconnect.js.map +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_rescheduled_before_first_fires/cancels_previous_timer.js +1 -1
- package/dist/esm/queries/for_ReconnectPolicy/when_scheduling/and_rescheduled_before_first_fires/cancels_previous_timer.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.d.ts +2 -2
- package/dist/esm/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.d.ts.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.js +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_a_retired_event_source_fires/ignores_connected_and_error_callbacks.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_a_retired_event_source_fires/ignores_connected_and_error_callbacks.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connect_timeout_fires/triggers_reconnect.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connect_timeout_fires/triggers_reconnect.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_replaced.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_replaced.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_unsubscribed.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_unsubscribed.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_is_rejected.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_is_rejected.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_returns_non_ok.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_returns_non_ok.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_disposing/cleans_up_resources.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_disposing/cleans_up_resources.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_keep_alive_is_idle/triggers_reconnect.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_keep_alive_is_idle/triggers_reconnect.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_reconnecting/after_error.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_reconnecting/after_error.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_reconnecting/and_an_immediate_open_wins_the_backoff_race.js +2 -2
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_reconnecting/and_an_immediate_open_wins_the_backoff_race.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_replacing_a_subscription/ignores_messages_from_the_retired_generation.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_replacing_a_subscription/ignores_messages_from_the_retired_generation.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_server_advertises_a_longer_keep_alive_interval/does_not_reconnect_at_the_assumed_threshold.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_server_advertises_a_longer_keep_alive_interval/does_not_reconnect_at_the_assumed_threshold.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_server_reports_keep_alive_disabled/never_reconnects_from_idle.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_server_reports_keep_alive_disabled/never_reconnects_from_idle.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/and_subscribe_post_fails.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/and_subscribe_post_fails.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/queues_until_connected.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/queues_until_connected.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/sends_subscribe_post.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/sends_subscribe_post.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/uses_custom_event_source_factory.js +4 -4
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscribing/uses_custom_event_source_factory.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscription_revisions_are_not_advertised/uses_legacy_protocol.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_subscription_revisions_are_not_advertised/uses_legacy_protocol.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_unsubscribing/nulls_event_source_handlers_before_closing.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_unsubscribing/nulls_event_source_handlers_before_closing.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_unsubscribing/the_only_query.js +3 -3
- package/dist/esm/queries/for_ServerSentEventHubConnection/when_unsubscribing/the_only_query.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/with_custom_event_source_factory.js +2 -2
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/with_custom_event_source_factory.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/with_query_arguments.js +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/with_query_arguments.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/without_event_source_available.js +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_connecting/without_event_source_available.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_disconnecting/after_connecting.js +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_disconnecting/after_connecting.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_disconnecting/before_message_arrives.js +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_disconnecting/before_message_arrives.js.map +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.js +1 -1
- package/dist/esm/queries/for_ServerSentEventQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_empty_string_value.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_empty_string_value.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_missing_property.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_missing_property.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_no_required_arguments.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_no_required_arguments.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_null_value.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_null_value.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_numeric_zero_value.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_numeric_zero_value.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_undefined_value.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_undefined_value.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_valid_string_value.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/with_valid_string_value.js.map +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/without_arguments_object.js +1 -1
- package/dist/esm/queries/for_ValidateRequestArguments/when_validating_arguments/without_arguments_object.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.d.ts +2 -2
- package/dist/esm/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.d.ts.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.js +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_disposing/cleans_up_resources.js +2 -2
- package/dist/esm/queries/for_WebSocketHubConnection/when_disposing/cleans_up_resources.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_keep_alive_is_idle/sends_a_ping.js +4 -4
- package/dist/esm/queries/for_WebSocketHubConnection/when_keep_alive_is_idle/sends_a_ping.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_receiving_a_message/resets_keep_alive_timer.js +4 -4
- package/dist/esm/queries/for_WebSocketHubConnection/when_receiving_a_message/resets_keep_alive_timer.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/after_unexpected_close.js +2 -2
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/after_unexpected_close.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/ignores_a_pending_reconnect_and_stale_socket_callbacks.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/ignores_a_pending_reconnect_and_stale_socket_callbacks.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/replaces_a_closing_socket_safely.js +2 -2
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/replaces_a_closing_socket_safely.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/resubscribes_all_queries.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_reconnecting/resubscribes_all_queries.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_replacing_a_subscription/ignores_stale_result_unauthorized_and_error.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_replacing_a_subscription/ignores_stale_result_unauthorized_and_error.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_subscribing/to_a_query.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_subscribing/to_a_query.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_subscription_revisions_are_supported/upgrades_active_subscriptions_to_strict_mode.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_subscription_revisions_are_supported/upgrades_active_subscriptions_to_strict_mode.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/nulls_socket_handlers_before_closing.js +2 -2
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/nulls_socket_handlers_before_closing.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/the_only_query.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/the_only_query.js.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/with_revision_support_not_advertised.js +3 -3
- package/dist/esm/queries/for_WebSocketHubConnection/when_unsubscribing/with_revision_support_not_advertised.js.map +1 -1
- package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.js +1 -1
- package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.js.map +1 -1
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_get_method.js +4 -4
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_get_method.js.map +1 -1
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_query_method.js +4 -4
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_query_method.js.map +1 -1
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_query_method_and_paging_and_sorting.js +5 -5
- package/dist/esm/queries/for_buildQueryHttpRequest/when_building/with_query_method_and_paging_and_sorting.js.map +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_models.js +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_models.js.map +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_numbers.js +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_numbers.js.map +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_strings.js +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_strings.js.map +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_non_array_as_a_collection.js +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_non_array_as_a_collection.js.map +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_single_string.js +1 -1
- package/dist/esm/queries/for_deserializeQueryModel/when_deserializing_a_single_string.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/options.d.ts +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/options.d.ts.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/options.js +2 -2
- package/dist/esm/queries/for_executeQueryHttpRequest/options.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver.js +5 -5
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver_and_an_explicit_override.js +5 -5
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver_and_an_explicit_override.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_after_query_was_found_unsupported.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_after_query_was_found_unsupported.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_a_network_failure.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_a_network_failure.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_aborted_request.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_aborted_request.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_application_error.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_application_error.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_multiple_backends.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_multiple_backends.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_supported.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_supported.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_unsupported.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_unsupported.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_get_method.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_get_method.js.map +1 -1
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_query_method_and_server_rejecting_the_verb.js +4 -4
- package/dist/esm/queries/for_executeQueryHttpRequest/when_performing/with_query_method_and_server_rejecting_the_verb.js.map +1 -1
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url.js +2 -2
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url.js.map +1 -1
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url_and_a_custom_method.js +2 -2
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url_and_a_custom_method.js.map +1 -1
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_short_url.js +2 -2
- package/dist/esm/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_short_url.js.map +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_items_are_added_or_removed/reuses_the_surviving_items.js +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_items_are_added_or_removed/reuses_the_surviving_items.js.map +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_one_item_changed/only_the_changed_item_gets_a_new_reference.js +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_one_item_changed/only_the_changed_item_gets_a_new_reference.js.map +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_reconciling_an_unchanged_collection/preserves_all_references.js +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_reconciling_an_unchanged_collection/preserves_all_references.js.map +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_reconciling_non_collection_payloads/compares_by_value.js +1 -1
- package/dist/esm/queries/for_reconcileQueryData/when_reconciling_non_collection_payloads/compares_by_value.js.map +1 -1
- package/dist/esm/queries/index.d.ts +43 -43
- package/dist/esm/queries/index.d.ts.map +1 -1
- package/dist/esm/queries/index.js.map +1 -1
- package/dist/esm/queries/reconcileQueryData.js.map +1 -1
- package/dist/esm/reflection/IHaveParameters.d.ts +1 -1
- package/dist/esm/reflection/IHaveParameters.d.ts.map +1 -1
- package/dist/esm/reflection/ParametersHelper.d.ts +1 -1
- package/dist/esm/reflection/ParametersHelper.d.ts.map +1 -1
- package/dist/esm/reflection/ParametersHelper.js.map +1 -1
- package/dist/esm/reflection/index.d.ts +4 -4
- package/dist/esm/reflection/index.d.ts.map +1 -1
- package/dist/esm/reflection/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/validation/IValidationRule.d.ts +1 -1
- package/dist/esm/validation/IValidationRule.d.ts.map +1 -1
- package/dist/esm/validation/PropertyRule.d.ts +2 -2
- package/dist/esm/validation/PropertyRule.d.ts.map +1 -1
- package/dist/esm/validation/PropertyRule.js.map +1 -1
- package/dist/esm/validation/PropertyValidator.d.ts +2 -2
- package/dist/esm/validation/PropertyValidator.d.ts.map +1 -1
- package/dist/esm/validation/PropertyValidator.js.map +1 -1
- package/dist/esm/validation/RuleBuilder.d.ts +2 -2
- package/dist/esm/validation/RuleBuilder.d.ts.map +1 -1
- package/dist/esm/validation/RuleBuilder.js.map +1 -1
- package/dist/esm/validation/RuleBuilderExtensions.d.ts +2 -2
- package/dist/esm/validation/RuleBuilderExtensions.d.ts.map +1 -1
- package/dist/esm/validation/RuleBuilderExtensions.js.map +1 -1
- package/dist/esm/validation/ValidationResult.d.ts +2 -2
- package/dist/esm/validation/ValidationResult.d.ts.map +1 -1
- package/dist/esm/validation/ValidationResult.js.map +1 -1
- package/dist/esm/validation/Validator.d.ts +2 -2
- package/dist/esm/validation/Validator.d.ts.map +1 -1
- package/dist/esm/validation/Validator.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts +1 -1
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts.map +1 -1
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.js +2 -2
- package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.d.ts +1 -1
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.d.ts.map +1 -1
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.js +2 -2
- package/dist/esm/validation/for_Validator/when_using_custom_error_message.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.d.ts +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.d.ts.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.js +2 -2
- package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.js +2 -2
- package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.js.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.d.ts +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.d.ts.map +1 -1
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.js +2 -2
- package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.js.map +1 -1
- package/dist/esm/validation/index.d.ts +14 -14
- package/dist/esm/validation/index.d.ts.map +1 -1
- package/dist/esm/validation/index.js.map +1 -1
- package/dist/esm/validation/rules/ComparisonRules.d.ts +1 -1
- package/dist/esm/validation/rules/ComparisonRules.d.ts.map +1 -1
- package/dist/esm/validation/rules/ComparisonRules.js.map +1 -1
- package/dist/esm/validation/rules/EmailRule.d.ts +1 -1
- package/dist/esm/validation/rules/EmailRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/EmailRule.js.map +1 -1
- package/dist/esm/validation/rules/LengthRules.d.ts +1 -1
- package/dist/esm/validation/rules/LengthRules.d.ts.map +1 -1
- package/dist/esm/validation/rules/LengthRules.js.map +1 -1
- package/dist/esm/validation/rules/NotEmptyRule.d.ts +1 -1
- package/dist/esm/validation/rules/NotEmptyRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/NotEmptyRule.js.map +1 -1
- package/dist/esm/validation/rules/PhoneRule.d.ts +1 -1
- package/dist/esm/validation/rules/PhoneRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/PhoneRule.js.map +1 -1
- package/dist/esm/validation/rules/RegexRule.d.ts +1 -1
- package/dist/esm/validation/rules/RegexRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/RegexRule.js.map +1 -1
- package/dist/esm/validation/rules/UrlRule.d.ts +1 -1
- package/dist/esm/validation/rules/UrlRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/UrlRule.js.map +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.js +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.js.map +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.js +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.js.map +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.js +1 -1
- package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.js.map +1 -1
- package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.js +1 -1
- package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.js.map +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.js +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.js.map +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.js +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.js.map +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.js +1 -1
- package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.js.map +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.js +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.js.map +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.js +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.js.map +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.js +1 -1
- package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.js.map +1 -1
- package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.js +1 -1
- package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.js.map +1 -1
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.js +1 -1
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.js.map +1 -1
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.js +1 -1
- package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.js.map +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.js +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.js.map +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.js +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.js.map +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.js +1 -1
- package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.js +2 -2
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.js +2 -2
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.js.map +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.js +1 -1
- package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.js.map +1 -1
- package/for_UrlHelpers/when_building_query_params/with_additional_parameters.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_array_values.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_date_values.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_empty_parameters.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_mixed_array_and_scalar_values.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.ts +1 -1
- package/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/with_empty_origin.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/with_relative_route.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/with_valid_parameters.ts +1 -1
- package/for_UrlHelpers/when_creating_url_from/without_document_object.ts +1 -1
- package/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.ts +1 -1
- package/for_UrlHelpers/when_replacing_route_parameters/with_array_parameters.ts +1 -1
- package/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.ts +1 -1
- package/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.ts +1 -1
- package/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.ts +1 -1
- package/identity/IIdentityProvider.ts +1 -1
- package/identity/IdentityProvider.ts +8 -8
- package/identity/for_IdentityProvider/given/an_identity_provider.ts +2 -2
- package/identity/for_IdentityProvider/when_getting_current/with_a_details_type_that_declares_no_fields.ts +3 -3
- package/identity/for_IdentityProvider/when_getting_current/with_roles.ts +3 -3
- package/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.ts +3 -3
- package/identity/for_IdentityProvider/when_getting_current/without_roles.ts +3 -3
- package/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.ts +3 -3
- package/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.ts +4 -4
- package/identity/for_IdentityProvider/when_refreshing/with_origin_set.ts +3 -3
- package/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.ts +3 -3
- package/identity/for_IdentityProvider/when_refreshing/with_unauthorized_response.ts +4 -4
- package/identity/for_IdentityProvider/when_refreshing/without_api_base_path.ts +4 -4
- package/identity/for_IdentityProvider/when_setting_api_base_path.ts +3 -3
- package/identity/for_IdentityProvider/when_setting_origin.ts +3 -3
- package/identity/index.ts +5 -5
- package/index.ts +12 -12
- package/messaging/Messenger.ts +2 -2
- package/messaging/for_Messenger/when_scoping_messages.ts +1 -1
- package/messaging/index.ts +3 -3
- package/package.json +58 -22
- package/queries/IChangeStreamFor.ts +1 -1
- package/queries/IObservableQueryConnection.ts +1 -1
- package/queries/IObservableQueryDiagnostics.ts +1 -1
- package/queries/IObservableQueryFor.ts +4 -4
- package/queries/IObservableQueryHubConnection.ts +2 -2
- package/queries/IQuery.ts +4 -4
- package/queries/IQueryFor.ts +3 -3
- package/queries/IQueryProvider.ts +1 -1
- package/queries/IQueryResult.ts +3 -3
- package/queries/NullObservableQueryConnection.ts +3 -3
- package/queries/ObservableQueryConnection.ts +6 -6
- package/queries/ObservableQueryConnectionFactory.ts +10 -10
- package/queries/ObservableQueryConnectionPool.ts +2 -2
- package/queries/ObservableQueryDiagnostics.ts +4 -4
- package/queries/ObservableQueryFor.ts +19 -19
- package/queries/ObservableQueryMultiplexer.ts +6 -6
- package/queries/ObservableQuerySubscription.ts +1 -1
- package/queries/QueryFor.ts +13 -13
- package/queries/QueryHttpMethodResolver.ts +1 -1
- package/queries/QueryHttpRequest.ts +8 -8
- package/queries/QueryInstanceCache.ts +3 -3
- package/queries/QueryProvider.ts +3 -3
- package/queries/QueryResult.ts +5 -5
- package/queries/QueryResultWithState.ts +4 -4
- package/queries/QueryValidator.ts +2 -2
- package/queries/ReconnectPolicy.ts +1 -1
- package/queries/ServerSentEventHubConnection.ts +8 -8
- package/queries/ServerSentEventQueryConnection.ts +4 -4
- package/queries/Sorting.ts +1 -1
- package/queries/SortingActions.ts +2 -2
- package/queries/SortingActionsForObservableQuery.ts +3 -3
- package/queries/SortingActionsForQuery.ts +3 -3
- package/queries/WebSocketHubConnection.ts +6 -6
- package/queries/for_HubConnectionKeepAlive/behavior.ts +1 -1
- package/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_running.ts +1 -1
- package/queries/for_HubConnectionKeepAlive/when_reconfiguring/while_stopped.ts +1 -1
- package/queries/for_HubConnectionKeepAlive/when_started_with_custom_idle_threshold/respects_threshold.ts +1 -1
- package/queries/for_ObservableQueryConnection/given/an_observable_query_connection.ts +1 -1
- package/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_a_reconnect_policy.ts +2 -2
- package/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.ts +1 -1
- package/queries/for_ObservableQueryConnection/when_constructing.ts +2 -2
- package/queries/for_ObservableQueryConnection/when_receiving_data_message_with_type.ts +4 -4
- package/queries/for_ObservableQueryConnection/when_receiving_legacy_data_message.ts +3 -3
- package/queries/for_ObservableQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.ts +4 -4
- package/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.ts +3 -3
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_sse_transport.ts +7 -7
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_websocket_transport.ts +7 -7
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport.ts +8 -8
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_exceeding_safe_limit.ts +7 -7
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_within_safe_limit.ts +7 -7
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport.ts +7 -7
- package/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport_and_high_connection_count.ts +7 -7
- package/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_least_loaded_slot_is_chosen.ts +3 -3
- package/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_size_is_zero.ts +3 -3
- package/queries/for_ObservableQueryConnectionPool/when_acquiring/with_single_slot/and_one_subscriber.ts +3 -3
- package/queries/for_ObservableQueryDiagnostics/when_tracking_owners.ts +1 -1
- package/queries/for_ObservableQueryFor/given/TestQueries.ts +2 -2
- package/queries/for_ObservableQueryFor/given/an_observable_query_for.ts +1 -1
- package/queries/for_ObservableQueryFor/given/an_observable_query_with_validator.ts +4 -4
- package/queries/for_ObservableQueryFor/when_constructing.ts +5 -5
- package/queries/for_ObservableQueryFor/when_constructing_enumerable.ts +4 -4
- package/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.ts +4 -4
- package/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.ts +4 -4
- package/queries/for_ObservableQueryFor/when_disposing.ts +2 -2
- package/queries/for_ObservableQueryFor/when_performing/with_a_not_ready_result.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_client_validation_failing.ts +3 -3
- package/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.ts +3 -3
- package/queries/for_ObservableQueryFor/when_performing/with_paging.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_partially_missing_required_arguments.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.ts +4 -4
- package/queries/for_ObservableQueryFor/when_performing/with_sorting.ts +5 -5
- package/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.ts +4 -4
- package/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_has_a_calendar_collection.ts +8 -8
- package/queries/for_ObservableQueryFor/when_receiving_a_result/and_the_model_type_is_a_primitive_collection.ts +7 -7
- package/queries/for_ObservableQueryFor/when_setting_api_base_path.ts +1 -1
- package/queries/for_ObservableQueryFor/when_setting_microservice.ts +1 -1
- package/queries/for_ObservableQueryFor/when_setting_origin.ts +1 -1
- package/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_failing.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_client_validation_passing.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_and_sse_transport.ts +5 -5
- package/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_disabled_and_sse_transport.ts +8 -8
- package/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_enabled.ts +4 -4
- package/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_multiple_required_route_parameters.ts +7 -7
- package/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_null_or_undefined_args.ts +7 -7
- package/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_route_and_query_args.ts +7 -7
- package/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_stale_descriptor_backed_instance_property.ts +7 -7
- package/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_paging.ts +4 -4
- package/queries/for_ObservableQueryFor/when_subscribing/with_partially_missing_required_arguments.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.ts +4 -4
- package/queries/for_ObservableQueryFor/when_subscribing/with_sorting.ts +5 -5
- package/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.ts +3 -3
- package/queries/for_ObservableQueryFor/when_subscribing/with_web_socket_hub_payload_without_readiness.ts +7 -7
- package/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_changed_cache_key.ts +2 -2
- package/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_new_cache_key.ts +2 -2
- package/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_an_explicit_size.ts +2 -2
- package/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_the_same_cache_key.ts +2 -2
- package/queries/for_QueryFor/given/TestQueries.ts +2 -2
- package/queries/for_QueryFor/given/a_query_for.ts +1 -1
- package/queries/for_QueryFor/given/a_query_with_validator.ts +5 -5
- package/queries/for_QueryFor/when_constructing.ts +5 -5
- package/queries/for_QueryFor/when_constructing_enumerable.ts +4 -4
- package/queries/for_QueryFor/when_constructing_with_globals_api_base_path.ts +4 -4
- package/queries/for_QueryFor/when_constructing_with_globals_origin.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_a_nullish_transport_rejection.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_abort_controller.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_an_aborted_request.ts +3 -3
- package/queries/for_QueryFor/when_performing/with_client_validation_failing.ts +5 -5
- package/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.ts +3 -3
- package/queries/for_QueryFor/when_performing/with_client_validation_passing.ts +5 -5
- package/queries/for_QueryFor/when_performing/with_enumerable_parameter_descriptor_values.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_enumerable_query.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_fetch_error.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_invalid_arguments.ts +3 -3
- package/queries/for_QueryFor/when_performing/with_json_parse_error.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_paging.ts +5 -5
- package/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_partially_missing_required_arguments.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_query_http_method.ts +5 -5
- package/queries/for_QueryFor/when_performing/with_query_without_required_parameters.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.ts +4 -4
- package/queries/for_QueryFor/when_performing/with_sorting.ts +6 -6
- package/queries/for_QueryFor/when_performing/with_valid_arguments.ts +4 -4
- package/queries/for_QueryFor/when_setting_api_base_path.ts +2 -2
- package/queries/for_QueryFor/when_setting_microservice.ts +2 -2
- package/queries/for_QueryFor/when_setting_origin.ts +2 -2
- package/queries/for_QueryInstanceCache/when_acquiring/after_release.ts +1 -1
- package/queries/for_QueryInstanceCache/when_building_key/with_arguments.ts +1 -1
- package/queries/for_QueryInstanceCache/when_building_key/with_empty_arguments_object.ts +1 -1
- package/queries/for_QueryInstanceCache/when_building_key/with_same_arguments_different_order.ts +1 -1
- package/queries/for_QueryInstanceCache/when_building_key/without_arguments.ts +1 -1
- package/queries/for_QueryInstanceCache/when_deferring_dispose/with_cancellation_before_timeout.ts +1 -1
- package/queries/for_QueryInstanceCache/when_deferring_dispose/without_cancellation.ts +1 -1
- package/queries/for_QueryInstanceCache/when_disposing/an_empty_cache.ts +1 -1
- package/queries/for_QueryInstanceCache/when_disposing/with_active_subscriptions.ts +1 -1
- package/queries/for_QueryInstanceCache/when_disposing/with_pending_deferred_cleanup.ts +1 -1
- package/queries/for_QueryInstanceCache/when_getting_last_result/with_no_result_stored.ts +1 -1
- package/queries/for_QueryInstanceCache/when_getting_last_result/with_stored_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_getting_or_creating/with_existing_entry.ts +1 -1
- package/queries/for_QueryInstanceCache/when_getting_or_creating/with_new_entry.ts +1 -1
- package/queries/for_QueryInstanceCache/when_releasing/a_key_that_does_not_exist.ts +1 -1
- package/queries/for_QueryInstanceCache/when_releasing/one_of_two_subscribers.ts +1 -1
- package/queries/for_QueryInstanceCache/when_releasing/the_only_subscriber.ts +1 -1
- package/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/after_timeout_elapses.ts +1 -1
- package/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/before_timeout_elapses.ts +1 -1
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_a_partially_changed_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_a_re_delivered_identical_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_a_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_changed_data.ts +2 -2
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_identical_data_as_previous_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_setting_last_result/with_only_readiness_changed.ts +3 -3
- package/queries/for_QueryInstanceCache/when_setting_last_result/without_previous_result.ts +2 -2
- package/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_active_subscriptions.ts +1 -1
- package/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_no_subscriptions.ts +1 -1
- package/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_pending_deferred_cleanup.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_enumerable.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_non_enumerable.ts +1 -1
- package/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.ts +1 -1
- package/queries/for_QueryResult/when_constructing_from_a_server_result/with_readiness_false.ts +1 -1
- package/queries/for_QueryResult/when_constructing_from_a_server_result/without_readiness.ts +1 -1
- package/queries/for_QueryResult/when_constructing_from_a_server_result_with_a_constraint_violation.ts +3 -3
- package/queries/for_QueryResult/when_creating_a_validation_failed_result.ts +4 -4
- package/queries/for_QueryResult/when_data_is_single_item_for_enumerable/and_it_is_an_array.ts +1 -1
- package/queries/for_QueryResultWithState/when_creating_empty/with_null_default_value.ts +1 -1
- package/queries/for_QueryResultWithState/when_creating_empty/with_undefined_default_value.ts +1 -1
- package/queries/for_QueryResultWithState/when_creating_from_query_result/with_null_data.ts +2 -2
- package/queries/for_QueryResultWithState/when_creating_from_query_result/with_readiness_false.ts +2 -2
- package/queries/for_QueryResultWithState/when_creating_from_query_result/with_undefined_data.ts +2 -2
- package/queries/for_QueryResultWithState/when_creating_from_query_result/without_readiness.ts +3 -3
- package/queries/for_QueryResultWithState/when_creating_initial/with_null_default_value.ts +1 -1
- package/queries/for_QueryResultWithState/when_creating_initial/with_undefined_default_value.ts +1 -1
- package/queries/for_QueryResultWithState/when_creating_initial/with_valid_default_value.ts +1 -1
- package/queries/for_ReconnectPolicy/when_canceling/with_pending_timer.ts +1 -1
- package/queries/for_ReconnectPolicy/when_cancelling/with_pending_timer.ts +1 -1
- package/queries/for_ReconnectPolicy/when_resetting/after_scheduling.ts +1 -1
- package/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/delay_is_capped_at_max.ts +1 -1
- package/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/first_attempt.ts +1 -1
- package/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_reached/abandons_reconnect.ts +1 -1
- package/queries/for_ReconnectPolicy/when_scheduling/and_rescheduled_before_first_fires/cancels_previous_timer.ts +1 -1
- package/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.ts +2 -2
- package/queries/for_ServerSentEventHubConnection/when_a_retired_event_source_fires/ignores_connected_and_error_callbacks.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_connect_timeout_fires/triggers_reconnect.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_replaced.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_query_is_unsubscribed.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_is_rejected.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_connection_changes_while_subscribe_is_in_flight/and_the_stale_request_returns_non_ok.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_disposing/cleans_up_resources.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_keep_alive_is_idle/triggers_reconnect.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_reconnecting/after_error.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_reconnecting/and_an_immediate_open_wins_the_backoff_race.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_replacing_a_subscription/ignores_messages_from_the_retired_generation.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_server_advertises_a_longer_keep_alive_interval/does_not_reconnect_at_the_assumed_threshold.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_server_reports_keep_alive_disabled/never_reconnects_from_idle.ts +4 -4
- package/queries/for_ServerSentEventHubConnection/when_subscribing/and_subscribe_post_fails.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_subscribing/queues_until_connected.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_subscribing/sends_subscribe_post.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_subscribing/uses_custom_event_source_factory.ts +5 -5
- package/queries/for_ServerSentEventHubConnection/when_subscription_revisions_are_not_advertised/uses_legacy_protocol.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_unsubscribing/nulls_event_source_handlers_before_closing.ts +3 -3
- package/queries/for_ServerSentEventHubConnection/when_unsubscribing/the_only_query.ts +3 -3
- package/queries/for_ServerSentEventQueryConnection/when_connecting/with_custom_event_source_factory.ts +4 -4
- package/queries/for_ServerSentEventQueryConnection/when_connecting/with_query_arguments.ts +2 -2
- package/queries/for_ServerSentEventQueryConnection/when_connecting/without_event_source_available.ts +2 -2
- package/queries/for_ServerSentEventQueryConnection/when_disconnecting/after_connecting.ts +2 -2
- package/queries/for_ServerSentEventQueryConnection/when_disconnecting/before_message_arrives.ts +1 -1
- package/queries/for_ServerSentEventQueryConnection/when_receiving_unauthorized/terminates_without_reconnecting.ts +2 -2
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_empty_string_value.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_missing_property.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_no_required_arguments.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_null_value.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_numeric_zero_value.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_undefined_value.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/with_valid_string_value.ts +1 -1
- package/queries/for_ValidateRequestArguments/when_validating_arguments/without_arguments_object.ts +1 -1
- package/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_disposing/cleans_up_resources.ts +2 -2
- package/queries/for_WebSocketHubConnection/when_keep_alive_is_idle/sends_a_ping.ts +4 -4
- package/queries/for_WebSocketHubConnection/when_receiving_a_message/resets_keep_alive_timer.ts +4 -4
- package/queries/for_WebSocketHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.ts +4 -4
- package/queries/for_WebSocketHubConnection/when_reconnecting/after_unexpected_close.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_reconnecting/ignores_a_pending_reconnect_and_stale_socket_callbacks.ts +4 -4
- package/queries/for_WebSocketHubConnection/when_reconnecting/replaces_a_closing_socket_safely.ts +2 -2
- package/queries/for_WebSocketHubConnection/when_reconnecting/resubscribes_all_queries.ts +4 -4
- package/queries/for_WebSocketHubConnection/when_replacing_a_subscription/ignores_stale_result_unauthorized_and_error.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_subscribing/to_a_query.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_subscription_revisions_are_supported/upgrades_active_subscriptions_to_strict_mode.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_unsubscribing/nulls_socket_handlers_before_closing.ts +2 -2
- package/queries/for_WebSocketHubConnection/when_unsubscribing/the_only_query.ts +3 -3
- package/queries/for_WebSocketHubConnection/when_unsubscribing/with_revision_support_not_advertised.ts +3 -3
- package/queries/for_WebSocketMessage/when_creating_messages.ts +1 -1
- package/queries/for_buildQueryHttpRequest/when_building/with_get_method.ts +4 -4
- package/queries/for_buildQueryHttpRequest/when_building/with_query_method.ts +4 -4
- package/queries/for_buildQueryHttpRequest/when_building/with_query_method_and_paging_and_sorting.ts +5 -5
- package/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_models.ts +1 -1
- package/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_numbers.ts +1 -1
- package/queries/for_deserializeQueryModel/when_deserializing_a_collection_of_strings.ts +1 -1
- package/queries/for_deserializeQueryModel/when_deserializing_a_non_array_as_a_collection.ts +1 -1
- package/queries/for_deserializeQueryModel/when_deserializing_a_single_string.ts +1 -1
- package/queries/for_executeQueryHttpRequest/options.ts +3 -3
- package/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver.ts +5 -5
- package/queries/for_executeQueryHttpRequest/when_performing/with_a_resolver_and_an_explicit_override.ts +5 -5
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_after_query_was_found_unsupported.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_a_network_failure.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_aborted_request.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_an_application_error.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_multiple_backends.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_supported.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_auto_and_query_unsupported.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_get_method.ts +4 -4
- package/queries/for_executeQueryHttpRequest/when_performing/with_query_method_and_server_rejecting_the_verb.ts +4 -4
- package/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url.ts +2 -2
- package/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_long_url_and_a_custom_method.ts +2 -2
- package/queries/for_lengthBasedQueryHttpMethod/when_resolving/with_a_short_url.ts +2 -2
- package/queries/for_reconcileQueryData/when_items_are_added_or_removed/reuses_the_surviving_items.ts +1 -1
- package/queries/for_reconcileQueryData/when_one_item_changed/only_the_changed_item_gets_a_new_reference.ts +1 -1
- package/queries/for_reconcileQueryData/when_reconciling_an_unchanged_collection/preserves_all_references.ts +1 -1
- package/queries/for_reconcileQueryData/when_reconciling_non_collection_payloads/compares_by_value.ts +1 -1
- package/queries/index.ts +43 -43
- package/queries/reconcileQueryData.ts +1 -1
- package/reflection/IHaveParameters.ts +1 -1
- package/reflection/ParametersHelper.ts +1 -1
- package/reflection/index.ts +4 -4
- package/validation/IValidationRule.ts +1 -1
- package/validation/PropertyRule.ts +3 -3
- package/validation/PropertyValidator.ts +2 -2
- package/validation/RuleBuilder.ts +3 -3
- package/validation/RuleBuilderExtensions.ts +9 -9
- package/validation/ValidationResult.ts +2 -2
- package/validation/Validator.ts +3 -3
- package/validation/for_Validator/when_defining_multiple_rules_for_same_property.ts +2 -2
- package/validation/for_Validator/when_using_custom_error_message.ts +2 -2
- package/validation/for_Validator/when_validating/with_all_rules_passing.ts +2 -2
- package/validation/for_Validator/when_validating/with_multiple_rules_failing.ts +2 -2
- package/validation/for_Validator/when_validating/with_one_rule_failing.ts +2 -2
- package/validation/index.ts +14 -14
- package/validation/rules/ComparisonRules.ts +1 -1
- package/validation/rules/EmailRule.ts +1 -1
- package/validation/rules/LengthRules.ts +1 -1
- package/validation/rules/NotEmptyRule.ts +1 -1
- package/validation/rules/PhoneRule.ts +1 -1
- package/validation/rules/RegexRule.ts +1 -1
- package/validation/rules/UrlRule.ts +1 -1
- package/validation/rules/for_EmailRule/when_validating/with_empty_string.ts +1 -1
- package/validation/rules/for_EmailRule/when_validating/with_invalid_email.ts +1 -1
- package/validation/rules/for_EmailRule/when_validating/with_valid_email.ts +1 -1
- package/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.ts +1 -1
- package/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.ts +1 -1
- package/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.ts +1 -1
- package/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.ts +1 -1
- package/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.ts +1 -1
- package/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.ts +1 -1
- package/validation/rules/for_LengthRule/when_validating/with_string_within_range.ts +1 -1
- package/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.ts +1 -1
- package/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.ts +1 -1
- package/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.ts +1 -1
- package/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.ts +1 -1
- package/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.ts +1 -1
- package/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_setting_custom_message.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_validating/with_null_value.ts +2 -2
- package/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.ts +2 -2
- package/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.ts +1 -1
- package/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleBuilderExtensions.js","sources":["../../../validation/RuleBuilderExtensions.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 { RuleBuilder } from './RuleBuilder';\nimport { NotEmptyRule, NotNullRule } from './rules/NotEmptyRule';\nimport { MinLengthRule, MaxLengthRule, LengthRule } from './rules/LengthRules';\nimport { EmailRule } from './rules/EmailRule';\nimport { PhoneRule } from './rules/PhoneRule';\nimport { UrlRule } from './rules/UrlRule';\nimport { RegexRule } from './rules/RegexRule';\nimport { GreaterThanRule, GreaterThanOrEqualRule, LessThanRule, LessThanOrEqualRule } from './rules/ComparisonRules';\n\n/**\n * Extension methods for {@link RuleBuilder} to add validation rules in a fluent manner.\n */\n\n/**\n * Add a rule that the property must not be empty (not null, undefined, empty string, or empty array).\n * @template T The type being validated.\n * @template TProperty The type of the property.\n * @param this The rule builder instance.\n * @returns The rule builder for chaining.\n */\nexport function notEmpty<T, TProperty>(this: RuleBuilder<T, TProperty>): RuleBuilder<T, TProperty> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => TProperty })._propertyAccessor;\n return this.addRule(new NotEmptyRule<T>(propertyAccessor));\n}\n\n/**\n * Add a rule that the property must not be null or undefined.\n * @template T The type being validated.\n * @template TProperty The type of the property.\n * @param this The rule builder instance.\n * @returns The rule builder for chaining.\n */\nexport function notNull<T, TProperty>(this: RuleBuilder<T, TProperty>): RuleBuilder<T, TProperty> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => TProperty })._propertyAccessor;\n return this.addRule(new NotNullRule<T>(propertyAccessor));\n}\n\n/**\n * Add a rule that the string property must have at least the specified length.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param length The minimum length.\n * @returns The rule builder for chaining.\n */\nexport function minLength<T>(this: RuleBuilder<T, string>, length: number): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new MinLengthRule<T>(propertyAccessor, length));\n}\n\n/**\n * Add a rule that the string property must have at most the specified length.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param length The maximum length.\n * @returns The rule builder for chaining.\n */\nexport function maxLength<T>(this: RuleBuilder<T, string>, length: number): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new MaxLengthRule<T>(propertyAccessor, length));\n}\n\n/**\n * Add a rule that the string property must have a length between min and max.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param min The minimum length.\n * @param max The maximum length.\n * @returns The rule builder for chaining.\n */\nexport function length<T>(this: RuleBuilder<T, string>, min: number, max: number): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new LengthRule<T>(propertyAccessor, min, max));\n}\n\n/**\n * Add a rule that the string property must be a valid email address.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @returns The rule builder for chaining.\n */\nexport function emailAddress<T>(this: RuleBuilder<T, string>): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new EmailRule<T>(propertyAccessor));\n}\n\n/**\n * Add a rule that the string property must be a valid phone number.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @returns The rule builder for chaining.\n */\nexport function phone<T>(this: RuleBuilder<T, string>): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new PhoneRule<T>(propertyAccessor));\n}\n\n/**\n * Add a rule that the string property must be a valid URL.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @returns The rule builder for chaining.\n */\nexport function url<T>(this: RuleBuilder<T, string>): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new UrlRule<T>(propertyAccessor));\n}\n\n/**\n * Add a rule that the string property must match the specified regular expression.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param pattern The regular expression pattern.\n * @param errorMessage Optional error message.\n * @returns The rule builder for chaining.\n */\nexport function matches<T>(this: RuleBuilder<T, string>, pattern: RegExp, errorMessage?: string): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new RegexRule<T>(propertyAccessor, pattern, errorMessage));\n}\n\n/**\n * Add a rule that the number property must be greater than the specified value.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param threshold The value to compare against.\n * @returns The rule builder for chaining.\n */\nexport function greaterThan<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;\n return this.addRule(new GreaterThanRule<T>(propertyAccessor, threshold));\n}\n\n/**\n * Add a rule that the number property must be greater than or equal to the specified value.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param threshold The value to compare against.\n * @returns The rule builder for chaining.\n */\nexport function greaterThanOrEqual<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;\n return this.addRule(new GreaterThanOrEqualRule<T>(propertyAccessor, threshold));\n}\n\n/**\n * Add a rule that the number property must be less than the specified value.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param threshold The value to compare against.\n * @returns The rule builder for chaining.\n */\nexport function lessThan<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;\n return this.addRule(new LessThanRule<T>(propertyAccessor, threshold));\n}\n\n/**\n * Add a rule that the number property must be less than or equal to the specified value.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param threshold The value to compare against.\n * @returns The rule builder for chaining.\n */\nexport function lessThanOrEqual<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;\n return this.addRule(new LessThanOrEqualRule<T>(propertyAccessor, threshold));\n}\n\n// Add the extension methods to the RuleBuilder prototype\nRuleBuilder.prototype.notEmpty = notEmpty;\nRuleBuilder.prototype.notNull = notNull;\n(RuleBuilder.prototype as unknown as { minLength: typeof minLength }).minLength = minLength;\n(RuleBuilder.prototype as unknown as { maxLength: typeof maxLength }).maxLength = maxLength;\n(RuleBuilder.prototype as unknown as { length: typeof length }).length = length;\n(RuleBuilder.prototype as unknown as { emailAddress: typeof emailAddress }).emailAddress = emailAddress;\n(RuleBuilder.prototype as unknown as { phone: typeof phone }).phone = phone;\n(RuleBuilder.prototype as unknown as { url: typeof url }).url = url;\n(RuleBuilder.prototype as unknown as { matches: typeof matches }).matches = matches;\n(RuleBuilder.prototype as unknown as { greaterThan: typeof greaterThan }).greaterThan = greaterThan;\n(RuleBuilder.prototype as unknown as { greaterThanOrEqual: typeof greaterThanOrEqual }).greaterThanOrEqual = greaterThanOrEqual;\n(RuleBuilder.prototype as unknown as { lessThan: typeof lessThan }).lessThan = lessThan;\n(RuleBuilder.prototype as unknown as { lessThanOrEqual: typeof lessThanOrEqual }).lessThanOrEqual = lessThanOrEqual;\n\n// Extend the RuleBuilder interface to include these methods\ndeclare module './RuleBuilder' {\n interface RuleBuilder<T, TProperty> {\n notEmpty(): RuleBuilder<T, TProperty>;\n notNull(): RuleBuilder<T, TProperty>;\n minLength(length: number): RuleBuilder<T, TProperty>;\n maxLength(length: number): RuleBuilder<T, TProperty>;\n length(min: number, max: number): RuleBuilder<T, TProperty>;\n emailAddress(): RuleBuilder<T, TProperty>;\n phone(): RuleBuilder<T, TProperty>;\n url(): RuleBuilder<T, TProperty>;\n matches(pattern: RegExp, errorMessage?: string): RuleBuilder<T, TProperty>;\n greaterThan(threshold: number): RuleBuilder<T, TProperty>;\n greaterThanOrEqual(threshold: number): RuleBuilder<T, TProperty>;\n lessThan(threshold: number): RuleBuilder<T, TProperty>;\n lessThanOrEqual(threshold: number): RuleBuilder<T, TProperty>;\n }\n}\n"],"names":["notEmpty","propertyAccessor","_propertyAccessor","addRule","NotEmptyRule","notNull","NotNullRule","minLength","length","MinLengthRule","maxLength","MaxLengthRule","min","max","LengthRule","emailAddress","EmailRule","phone","PhoneRule","url","UrlRule","matches","pattern","errorMessage","RegexRule","greaterThan","threshold","GreaterThanRule","greaterThanOrEqual","GreaterThanOrEqualRule","lessThan","LessThanRule","lessThanOrEqual","LessThanOrEqualRule","RuleBuilder","prototype"],"mappings":";;;;;;;;;;;AAAA;AACA;AAWA;;;;;;;;AAUC,IACM,SAASA,QAAAA,GAAAA;AACZ,IAAA,MAAMC,gBAAAA,GAAoB,IAAI,CAAkEC,iBAAiB;AACjH,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIC,yBAAAA,CAAgBH,gBAAAA,CAAAA,CAAAA;AAC5C;AAEA;;;;;;AAMC,IACM,SAASI,OAAAA,GAAAA;AACZ,IAAA,MAAMJ,gBAAAA,GAAoB,IAAI,CAAkEC,iBAAiB;AACjH,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIG,wBAAAA,CAAeL,gBAAAA,CAAAA,CAAAA;AAC3C;AAEA;;;;;;IAOO,SAASM,SAAAA,CAA2CC,MAAc,EAAA;AACrE,IAAA,MAAMP,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIM,0BAAiBR,gBAAAA,EAAkBO,MAAAA,CAAAA,CAAAA;AAC/D;AAEA;;;;;;IAOO,SAASE,SAAAA,CAA2CF,MAAc,EAAA;AACrE,IAAA,MAAMP,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIQ,0BAAiBV,gBAAAA,EAAkBO,MAAAA,CAAAA,CAAAA;AAC/D;AAEA;;;;;;;AAOC,IACM,SAASA,MAAAA,CAAwCI,GAAW,EAAEC,GAAW,EAAA;AAC5E,IAAA,MAAMZ,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIW,sBAAAA,CAAcb,kBAAkBW,GAAAA,EAAKC,GAAAA,CAAAA,CAAAA;AACjE;AAEA;;;;;AAKC,IACM,SAASE,YAAAA,GAAAA;AACZ,IAAA,MAAMd,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIa,mBAAAA,CAAaf,gBAAAA,CAAAA,CAAAA;AACzC;AAEA;;;;;AAKC,IACM,SAASgB,KAAAA,GAAAA;AACZ,IAAA,MAAMhB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIe,mBAAAA,CAAajB,gBAAAA,CAAAA,CAAAA;AACzC;AAEA;;;;;AAKC,IACM,SAASkB,GAAAA,GAAAA;AACZ,IAAA,MAAMlB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIiB,eAAAA,CAAWnB,gBAAAA,CAAAA,CAAAA;AACvC;AAEA;;;;;;;AAOC,IACM,SAASoB,OAAAA,CAAyCC,OAAe,EAAEC,YAAqB,EAAA;AAC3F,IAAA,MAAMtB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIqB,mBAAAA,CAAavB,kBAAkBqB,OAAAA,EAASC,YAAAA,CAAAA,CAAAA;AACpE;AAEA;;;;;;IAOO,SAASE,WAAAA,CAA6CC,SAAiB,EAAA;AAC1E,IAAA,MAAMzB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIwB,gCAAmB1B,gBAAAA,EAAkByB,SAAAA,CAAAA,CAAAA;AACjE;AAEA;;;;;;IAOO,SAASE,kBAAAA,CAAoDF,SAAiB,EAAA;AACjF,IAAA,MAAMzB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAI0B,uCAA0B5B,gBAAAA,EAAkByB,SAAAA,CAAAA,CAAAA;AACxE;AAEA;;;;;;IAOO,SAASI,QAAAA,CAA0CJ,SAAiB,EAAA;AACvE,IAAA,MAAMzB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAI4B,6BAAgB9B,gBAAAA,EAAkByB,SAAAA,CAAAA,CAAAA;AAC9D;AAEA;;;;;;IAOO,SAASM,eAAAA,CAAiDN,SAAiB,EAAA;AAC9E,IAAA,MAAMzB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAI8B,oCAAuBhC,gBAAAA,EAAkByB,SAAAA,CAAAA,CAAAA;AACrE;AAEA;AACAQ,uBAAAA,CAAYC,SAAS,CAACnC,QAAQ,GAAGA,QAAAA;AACjCkC,uBAAAA,CAAYC,SAAS,CAAC9B,OAAO,GAAGA,OAAAA;AAC/B6B,uBAAAA,CAAYC,SAAS,CAAgD5B,SAAS,GAAGA,SAAAA;AACjF2B,uBAAAA,CAAYC,SAAS,CAAgDzB,SAAS,GAAGA,SAAAA;AACjFwB,uBAAAA,CAAYC,SAAS,CAA0C3B,MAAM,GAAGA,MAAAA;AACxE0B,uBAAAA,CAAYC,SAAS,CAAsDpB,YAAY,GAAGA,YAAAA;AAC1FmB,uBAAAA,CAAYC,SAAS,CAAwClB,KAAK,GAAGA,KAAAA;AACrEiB,uBAAAA,CAAYC,SAAS,CAAoChB,GAAG,GAAGA,GAAAA;AAC/De,uBAAAA,CAAYC,SAAS,CAA4Cd,OAAO,GAAGA,OAAAA;AAC3Ea,uBAAAA,CAAYC,SAAS,CAAoDV,WAAW,GAAGA,WAAAA;AACvFS,uBAAAA,CAAYC,SAAS,CAAkEP,kBAAkB,GAAGA,kBAAAA;AAC5GM,uBAAAA,CAAYC,SAAS,CAA8CL,QAAQ,GAAGA,QAAAA;AAC9EI,uBAAAA,CAAYC,SAAS,CAA4DH,eAAe,GAAGA,eAAAA;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"RuleBuilderExtensions.js","sources":["../../../validation/RuleBuilderExtensions.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 { RuleBuilder } from './RuleBuilder.js';\nimport { NotEmptyRule, NotNullRule } from './rules/NotEmptyRule.js';\nimport { MinLengthRule, MaxLengthRule, LengthRule } from './rules/LengthRules.js';\nimport { EmailRule } from './rules/EmailRule.js';\nimport { PhoneRule } from './rules/PhoneRule.js';\nimport { UrlRule } from './rules/UrlRule.js';\nimport { RegexRule } from './rules/RegexRule.js';\nimport { GreaterThanRule, GreaterThanOrEqualRule, LessThanRule, LessThanOrEqualRule } from './rules/ComparisonRules.js';\n\n/**\n * Extension methods for {@link RuleBuilder} to add validation rules in a fluent manner.\n */\n\n/**\n * Add a rule that the property must not be empty (not null, undefined, empty string, or empty array).\n * @template T The type being validated.\n * @template TProperty The type of the property.\n * @param this The rule builder instance.\n * @returns The rule builder for chaining.\n */\nexport function notEmpty<T, TProperty>(this: RuleBuilder<T, TProperty>): RuleBuilder<T, TProperty> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => TProperty })._propertyAccessor;\n return this.addRule(new NotEmptyRule<T>(propertyAccessor));\n}\n\n/**\n * Add a rule that the property must not be null or undefined.\n * @template T The type being validated.\n * @template TProperty The type of the property.\n * @param this The rule builder instance.\n * @returns The rule builder for chaining.\n */\nexport function notNull<T, TProperty>(this: RuleBuilder<T, TProperty>): RuleBuilder<T, TProperty> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => TProperty })._propertyAccessor;\n return this.addRule(new NotNullRule<T>(propertyAccessor));\n}\n\n/**\n * Add a rule that the string property must have at least the specified length.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param length The minimum length.\n * @returns The rule builder for chaining.\n */\nexport function minLength<T>(this: RuleBuilder<T, string>, length: number): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new MinLengthRule<T>(propertyAccessor, length));\n}\n\n/**\n * Add a rule that the string property must have at most the specified length.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param length The maximum length.\n * @returns The rule builder for chaining.\n */\nexport function maxLength<T>(this: RuleBuilder<T, string>, length: number): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new MaxLengthRule<T>(propertyAccessor, length));\n}\n\n/**\n * Add a rule that the string property must have a length between min and max.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param min The minimum length.\n * @param max The maximum length.\n * @returns The rule builder for chaining.\n */\nexport function length<T>(this: RuleBuilder<T, string>, min: number, max: number): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new LengthRule<T>(propertyAccessor, min, max));\n}\n\n/**\n * Add a rule that the string property must be a valid email address.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @returns The rule builder for chaining.\n */\nexport function emailAddress<T>(this: RuleBuilder<T, string>): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new EmailRule<T>(propertyAccessor));\n}\n\n/**\n * Add a rule that the string property must be a valid phone number.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @returns The rule builder for chaining.\n */\nexport function phone<T>(this: RuleBuilder<T, string>): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new PhoneRule<T>(propertyAccessor));\n}\n\n/**\n * Add a rule that the string property must be a valid URL.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @returns The rule builder for chaining.\n */\nexport function url<T>(this: RuleBuilder<T, string>): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new UrlRule<T>(propertyAccessor));\n}\n\n/**\n * Add a rule that the string property must match the specified regular expression.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param pattern The regular expression pattern.\n * @param errorMessage Optional error message.\n * @returns The rule builder for chaining.\n */\nexport function matches<T>(this: RuleBuilder<T, string>, pattern: RegExp, errorMessage?: string): RuleBuilder<T, string> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;\n return this.addRule(new RegexRule<T>(propertyAccessor, pattern, errorMessage));\n}\n\n/**\n * Add a rule that the number property must be greater than the specified value.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param threshold The value to compare against.\n * @returns The rule builder for chaining.\n */\nexport function greaterThan<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;\n return this.addRule(new GreaterThanRule<T>(propertyAccessor, threshold));\n}\n\n/**\n * Add a rule that the number property must be greater than or equal to the specified value.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param threshold The value to compare against.\n * @returns The rule builder for chaining.\n */\nexport function greaterThanOrEqual<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;\n return this.addRule(new GreaterThanOrEqualRule<T>(propertyAccessor, threshold));\n}\n\n/**\n * Add a rule that the number property must be less than the specified value.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param threshold The value to compare against.\n * @returns The rule builder for chaining.\n */\nexport function lessThan<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;\n return this.addRule(new LessThanRule<T>(propertyAccessor, threshold));\n}\n\n/**\n * Add a rule that the number property must be less than or equal to the specified value.\n * @template T The type being validated.\n * @param this The rule builder instance.\n * @param threshold The value to compare against.\n * @returns The rule builder for chaining.\n */\nexport function lessThanOrEqual<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {\n const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;\n return this.addRule(new LessThanOrEqualRule<T>(propertyAccessor, threshold));\n}\n\n// Add the extension methods to the RuleBuilder prototype\nRuleBuilder.prototype.notEmpty = notEmpty;\nRuleBuilder.prototype.notNull = notNull;\n(RuleBuilder.prototype as unknown as { minLength: typeof minLength }).minLength = minLength;\n(RuleBuilder.prototype as unknown as { maxLength: typeof maxLength }).maxLength = maxLength;\n(RuleBuilder.prototype as unknown as { length: typeof length }).length = length;\n(RuleBuilder.prototype as unknown as { emailAddress: typeof emailAddress }).emailAddress = emailAddress;\n(RuleBuilder.prototype as unknown as { phone: typeof phone }).phone = phone;\n(RuleBuilder.prototype as unknown as { url: typeof url }).url = url;\n(RuleBuilder.prototype as unknown as { matches: typeof matches }).matches = matches;\n(RuleBuilder.prototype as unknown as { greaterThan: typeof greaterThan }).greaterThan = greaterThan;\n(RuleBuilder.prototype as unknown as { greaterThanOrEqual: typeof greaterThanOrEqual }).greaterThanOrEqual = greaterThanOrEqual;\n(RuleBuilder.prototype as unknown as { lessThan: typeof lessThan }).lessThan = lessThan;\n(RuleBuilder.prototype as unknown as { lessThanOrEqual: typeof lessThanOrEqual }).lessThanOrEqual = lessThanOrEqual;\n\n// Extend the RuleBuilder interface to include these methods\ndeclare module './RuleBuilder.js' {\n interface RuleBuilder<T, TProperty> {\n notEmpty(): RuleBuilder<T, TProperty>;\n notNull(): RuleBuilder<T, TProperty>;\n minLength(length: number): RuleBuilder<T, TProperty>;\n maxLength(length: number): RuleBuilder<T, TProperty>;\n length(min: number, max: number): RuleBuilder<T, TProperty>;\n emailAddress(): RuleBuilder<T, TProperty>;\n phone(): RuleBuilder<T, TProperty>;\n url(): RuleBuilder<T, TProperty>;\n matches(pattern: RegExp, errorMessage?: string): RuleBuilder<T, TProperty>;\n greaterThan(threshold: number): RuleBuilder<T, TProperty>;\n greaterThanOrEqual(threshold: number): RuleBuilder<T, TProperty>;\n lessThan(threshold: number): RuleBuilder<T, TProperty>;\n lessThanOrEqual(threshold: number): RuleBuilder<T, TProperty>;\n }\n}\n"],"names":["notEmpty","propertyAccessor","_propertyAccessor","addRule","NotEmptyRule","notNull","NotNullRule","minLength","length","MinLengthRule","maxLength","MaxLengthRule","min","max","LengthRule","emailAddress","EmailRule","phone","PhoneRule","url","UrlRule","matches","pattern","errorMessage","RegexRule","greaterThan","threshold","GreaterThanRule","greaterThanOrEqual","GreaterThanOrEqualRule","lessThan","LessThanRule","lessThanOrEqual","LessThanOrEqualRule","RuleBuilder","prototype"],"mappings":";;;;;;;;;;;AAAA;AACA;AAWA;;;;;;;;AAUC,IACM,SAASA,QAAAA,GAAAA;AACZ,IAAA,MAAMC,gBAAAA,GAAoB,IAAI,CAAkEC,iBAAiB;AACjH,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIC,yBAAAA,CAAgBH,gBAAAA,CAAAA,CAAAA;AAC5C;AAEA;;;;;;AAMC,IACM,SAASI,OAAAA,GAAAA;AACZ,IAAA,MAAMJ,gBAAAA,GAAoB,IAAI,CAAkEC,iBAAiB;AACjH,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIG,wBAAAA,CAAeL,gBAAAA,CAAAA,CAAAA;AAC3C;AAEA;;;;;;IAOO,SAASM,SAAAA,CAA2CC,MAAc,EAAA;AACrE,IAAA,MAAMP,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIM,0BAAiBR,gBAAAA,EAAkBO,MAAAA,CAAAA,CAAAA;AAC/D;AAEA;;;;;;IAOO,SAASE,SAAAA,CAA2CF,MAAc,EAAA;AACrE,IAAA,MAAMP,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIQ,0BAAiBV,gBAAAA,EAAkBO,MAAAA,CAAAA,CAAAA;AAC/D;AAEA;;;;;;;AAOC,IACM,SAASA,MAAAA,CAAwCI,GAAW,EAAEC,GAAW,EAAA;AAC5E,IAAA,MAAMZ,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIW,sBAAAA,CAAcb,kBAAkBW,GAAAA,EAAKC,GAAAA,CAAAA,CAAAA;AACjE;AAEA;;;;;AAKC,IACM,SAASE,YAAAA,GAAAA;AACZ,IAAA,MAAMd,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIa,mBAAAA,CAAaf,gBAAAA,CAAAA,CAAAA;AACzC;AAEA;;;;;AAKC,IACM,SAASgB,KAAAA,GAAAA;AACZ,IAAA,MAAMhB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIe,mBAAAA,CAAajB,gBAAAA,CAAAA,CAAAA;AACzC;AAEA;;;;;AAKC,IACM,SAASkB,GAAAA,GAAAA;AACZ,IAAA,MAAMlB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIiB,eAAAA,CAAWnB,gBAAAA,CAAAA,CAAAA;AACvC;AAEA;;;;;;;AAOC,IACM,SAASoB,OAAAA,CAAyCC,OAAe,EAAEC,YAAqB,EAAA;AAC3F,IAAA,MAAMtB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIqB,mBAAAA,CAAavB,kBAAkBqB,OAAAA,EAASC,YAAAA,CAAAA,CAAAA;AACpE;AAEA;;;;;;IAOO,SAASE,WAAAA,CAA6CC,SAAiB,EAAA;AAC1E,IAAA,MAAMzB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAIwB,gCAAmB1B,gBAAAA,EAAkByB,SAAAA,CAAAA,CAAAA;AACjE;AAEA;;;;;;IAOO,SAASE,kBAAAA,CAAoDF,SAAiB,EAAA;AACjF,IAAA,MAAMzB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAI0B,uCAA0B5B,gBAAAA,EAAkByB,SAAAA,CAAAA,CAAAA;AACxE;AAEA;;;;;;IAOO,SAASI,QAAAA,CAA0CJ,SAAiB,EAAA;AACvE,IAAA,MAAMzB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAI4B,6BAAgB9B,gBAAAA,EAAkByB,SAAAA,CAAAA,CAAAA;AAC9D;AAEA;;;;;;IAOO,SAASM,eAAAA,CAAiDN,SAAiB,EAAA;AAC9E,IAAA,MAAMzB,gBAAAA,GAAoB,IAAI,CAA+DC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAACC,OAAO,CAAC,IAAI8B,oCAAuBhC,gBAAAA,EAAkByB,SAAAA,CAAAA,CAAAA;AACrE;AAEA;AACAQ,uBAAAA,CAAYC,SAAS,CAACnC,QAAQ,GAAGA,QAAAA;AACjCkC,uBAAAA,CAAYC,SAAS,CAAC9B,OAAO,GAAGA,OAAAA;AAC/B6B,uBAAAA,CAAYC,SAAS,CAAgD5B,SAAS,GAAGA,SAAAA;AACjF2B,uBAAAA,CAAYC,SAAS,CAAgDzB,SAAS,GAAGA,SAAAA;AACjFwB,uBAAAA,CAAYC,SAAS,CAA0C3B,MAAM,GAAGA,MAAAA;AACxE0B,uBAAAA,CAAYC,SAAS,CAAsDpB,YAAY,GAAGA,YAAAA;AAC1FmB,uBAAAA,CAAYC,SAAS,CAAwClB,KAAK,GAAGA,KAAAA;AACrEiB,uBAAAA,CAAYC,SAAS,CAAoChB,GAAG,GAAGA,GAAAA;AAC/De,uBAAAA,CAAYC,SAAS,CAA4Cd,OAAO,GAAGA,OAAAA;AAC3Ea,uBAAAA,CAAYC,SAAS,CAAoDV,WAAW,GAAGA,WAAAA;AACvFS,uBAAAA,CAAYC,SAAS,CAAkEP,kBAAkB,GAAGA,kBAAAA;AAC5GM,uBAAAA,CAAYC,SAAS,CAA8CL,QAAQ,GAAGA,QAAAA;AAC9EI,uBAAAA,CAAYC,SAAS,CAA4DH,eAAe,GAAGA,eAAAA;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ValidationResultReason } from './ValidationResultReason.js';
|
|
2
|
+
import { ValidationResultSeverity } from './ValidationResultSeverity.js';
|
|
3
|
+
export declare class ValidationResult {
|
|
4
|
+
readonly severity: ValidationResultSeverity;
|
|
5
|
+
readonly message: string;
|
|
6
|
+
readonly members: string[];
|
|
7
|
+
readonly state: any;
|
|
8
|
+
readonly reason: ValidationResultReason;
|
|
9
|
+
readonly reasonDetail?: string | undefined;
|
|
10
|
+
constructor(severity: ValidationResultSeverity, message: string, members: string[], state: any, reason?: ValidationResultReason, reasonDetail?: string | undefined);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ValidationResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidationResult.d.ts","sourceRoot":"","sources":["../../../validation/ValidationResult.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAOzE,qBAAa,gBAAgB;IAarB,QAAQ,CAAC,QAAQ,EAAE,wBAAwB;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE;IAC1B,QAAQ,CAAC,KAAK,EAAE,GAAG;IACnB,QAAQ,CAAC,MAAM,EAAE,sBAAsB;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM;IANlC,YACa,QAAQ,EAAE,wBAAwB,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EAAE,EACjB,KAAK,EAAE,GAAG,EACV,MAAM,GAAE,sBAAoD,EAC5D,YAAY,CAAC,EAAE,MAAM,YAAA,EACjC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationResult.js","sources":["../../../validation/ValidationResult.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 { ValidationResultReason } from './ValidationResultReason';\nimport { ValidationResultSeverity } from './ValidationResultSeverity';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/**\n * Represents a validation error with a message for one or more members.\n */\nexport class ValidationResult {\n /**\n * Initializes a new instance of the {@link ValidationResult} class.\n * @param severity The severity of the result.\n * @param message The message. A developer diagnostic when {@link reason} is anything but `rule`.\n * @param members The members the result is attributed to.\n * @param state State associated with the result - the rule author's, carried straight through.\n * @param reason What composed the result. Defaults to `rule`, meaning an authored rule rejected the input.\n * @param reasonDetail Which specific thing within {@link reason} produced the result - the name of the violated\n * constraint for `constraintViolation`, for instance. Undefined when the reason carries no finer identity.\n * Branch on this rather than matching {@link message}, which is prose and free to change.\n */\n constructor(\n readonly severity: ValidationResultSeverity,\n readonly message: string,\n readonly members: string[],\n readonly state: any,\n readonly reason: ValidationResultReason = ValidationResultReason.Rule,\n readonly reasonDetail?: string) {\n }\n}\n"],"names":["ValidationResult","reason","ValidationResultReason","Rule","reasonDetail","severity","message","members","state"],"mappings":";;;;AAAA;AACA;AAKA;;AAIC,IACM,MAAMA,gBAAAA,CAAAA;;;;;;;AACT;;;;;;;;;;QAWA,WAAA,CACI,QAA2C,EAC3C,OAAwB,EACxB,OAA0B,EAC1B,KAAmB,EACnB,MAASC,GAAiCC,6CAAAA,CAAuBC,IAAI,EAC5DC,YAAqB,CAAE;aALvBC,QAAAA,GAAAA,QAAAA;aACAC,OAAAA,GAAAA,OAAAA;aACAC,OAAAA,GAAAA,OAAAA;aACAC,KAAAA,GAAAA,KAAAA;aACAP,MAAAA,GAAAA,MAAAA;aACAG,YAAAA,GAAAA,YAAAA;AACb,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"ValidationResult.js","sources":["../../../validation/ValidationResult.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 { ValidationResultReason } from './ValidationResultReason.js';\nimport { ValidationResultSeverity } from './ValidationResultSeverity.js';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/**\n * Represents a validation error with a message for one or more members.\n */\nexport class ValidationResult {\n /**\n * Initializes a new instance of the {@link ValidationResult} class.\n * @param severity The severity of the result.\n * @param message The message. A developer diagnostic when {@link reason} is anything but `rule`.\n * @param members The members the result is attributed to.\n * @param state State associated with the result - the rule author's, carried straight through.\n * @param reason What composed the result. Defaults to `rule`, meaning an authored rule rejected the input.\n * @param reasonDetail Which specific thing within {@link reason} produced the result - the name of the violated\n * constraint for `constraintViolation`, for instance. Undefined when the reason carries no finer identity.\n * Branch on this rather than matching {@link message}, which is prose and free to change.\n */\n constructor(\n readonly severity: ValidationResultSeverity,\n readonly message: string,\n readonly members: string[],\n readonly state: any,\n readonly reason: ValidationResultReason = ValidationResultReason.Rule,\n readonly reasonDetail?: string) {\n }\n}\n"],"names":["ValidationResult","reason","ValidationResultReason","Rule","reasonDetail","severity","message","members","state"],"mappings":";;;;AAAA;AACA;AAKA;;AAIC,IACM,MAAMA,gBAAAA,CAAAA;;;;;;;AACT;;;;;;;;;;QAWA,WAAA,CACI,QAA2C,EAC3C,OAAwB,EACxB,OAA0B,EAC1B,KAAmB,EACnB,MAASC,GAAiCC,6CAAAA,CAAuBC,IAAI,EAC5DC,YAAqB,CAAE;aALvBC,QAAAA,GAAAA,QAAAA;aACAC,OAAAA,GAAAA,OAAAA;aACAC,OAAAA,GAAAA,OAAAA;aACAC,KAAAA,GAAAA,KAAAA;aACAP,MAAAA,GAAAA,MAAAA;aACAG,YAAAA,GAAAA,YAAAA;AACb,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const ValidationResultReason: {
|
|
2
|
+
readonly Rule: 'rule';
|
|
3
|
+
readonly ConcurrencyViolation: 'concurrencyViolation';
|
|
4
|
+
readonly ConstraintViolation: 'constraintViolation';
|
|
5
|
+
readonly ValidatorFailed: 'validatorFailed';
|
|
6
|
+
readonly DependencyUnavailable: 'dependencyUnavailable';
|
|
7
|
+
readonly MalformedRequest: 'malformedRequest';
|
|
8
|
+
};
|
|
9
|
+
export type ValidationResultReason = string;
|
|
10
|
+
//# sourceMappingURL=ValidationResultReason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidationResultReason.d.ts","sourceRoot":"","sources":["../../../validation/ValidationResultReason.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,sBAAsB;aAK/B,IAAI,EAAE,MAAM;aAKZ,oBAAoB,EAAE,sBAAsB;aAK5C,mBAAmB,EAAE,qBAAqB;aAM1C,eAAe,EAAE,iBAAiB;aAMlC,qBAAqB,EAAE,uBAAuB;aAM9C,gBAAgB,EAAE,kBAAkB;CAC9B,CAAC;AAKX,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidationResultSeverity.d.ts","sourceRoot":"","sources":["../../../validation/ValidationResultSeverity.ts"],"names":[],"mappings":"AAMA,oBAAY,wBAAwB;IAKhC,OAAO,IAAI;IAKX,WAAW,IAAI;IAKf,OAAO,IAAI;IAKX,KAAK,IAAI;CACZ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ValidationResult } from './ValidationResult.js';
|
|
2
|
+
import { RuleBuilder } from './RuleBuilder.js';
|
|
3
|
+
export declare class Validator<T = object> {
|
|
4
|
+
private readonly _propertyValidators;
|
|
5
|
+
ruleFor<TProperty>(propertyAccessor: (instance: T) => TProperty): RuleBuilder<T, TProperty>;
|
|
6
|
+
validate(instance: T): ValidationResult[];
|
|
7
|
+
get isValid(): boolean;
|
|
8
|
+
isValidFor(instance: T): boolean;
|
|
9
|
+
private getPropertyName;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=Validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Validator.d.ts","sourceRoot":"","sources":["../../../validation/Validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C,qBAAa,SAAS,CAAC,CAAC,GAAG,MAAM;IAC7B,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA2C;IAQ/E,OAAO,CAAC,SAAS,EAAE,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,SAAS,GAAG,WAAW,CAAC,CAAC,EAAE,SAAS,CAAC,CAU1F;IAOD,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,gBAAgB,EAAE,CAOxC;IAOD,IAAI,OAAO,IAAI,OAAO,CAErB;IAOD,UAAU,CAAC,QAAQ,EAAE,CAAC,GAAG,OAAO,CAE/B;IAED,OAAO,CAAC,eAAe;CAoB1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Validator.js","sources":["../../../validation/Validator.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 { ValidationResult } from './ValidationResult';\nimport { PropertyValidator } from './PropertyValidator';\nimport { RuleBuilder } from './RuleBuilder';\n\n/**\n * Represents a validator for a type that builds validation rules programmatically.\n * @template T The type being validated.\n */\nexport class Validator<T = object> {\n private readonly _propertyValidators = new Map<string, PropertyValidator<T>>();\n\n /**\n * Define validation rules for a property.\n * @template TProperty The type of the property.\n * @param propertyAccessor Function to access the property from the instance.\n * @returns A rule builder for the property.\n */\n ruleFor<TProperty>(propertyAccessor: (instance: T) => TProperty): RuleBuilder<T, TProperty> {\n const propertyName = this.getPropertyName(propertyAccessor);\n let propertyValidator = this._propertyValidators.get(propertyName);\n \n if (!propertyValidator) {\n propertyValidator = new PropertyValidator<T>(propertyName);\n this._propertyValidators.set(propertyName, propertyValidator);\n }\n\n return new RuleBuilder<T, TProperty>(propertyValidator, propertyAccessor);\n }\n\n /**\n * Validate an instance.\n * @param instance The instance to validate.\n * @returns An array of validation results, empty if valid.\n */\n validate(instance: T): ValidationResult[] {\n const results: ValidationResult[] = [];\n for (const propertyValidator of this._propertyValidators.values()) {\n const propertyResults = propertyValidator.validate(instance);\n results.push(...propertyResults);\n }\n return results;\n }\n\n /**\n * Gets whether or not the instance is valid.\n * @param instance The instance to validate.\n * @returns True if valid, false otherwise.\n */\n get isValid(): boolean {\n return true;\n }\n\n /**\n * Gets whether or not a specific instance is valid.\n * @param instance The instance to validate.\n * @returns True if valid, false otherwise.\n */\n isValidFor(instance: T): boolean {\n return this.validate(instance).length === 0;\n }\n\n private getPropertyName<TProperty>(propertyAccessor: (instance: T) => TProperty): string {\n // Create a proxy to capture property access\n const propertyNames: string[] = [];\n const proxy = new Proxy({} as Record<string, unknown>, {\n get(_target, prop) {\n if (typeof prop === 'string') {\n propertyNames.push(prop);\n }\n return undefined;\n }\n });\n\n try {\n propertyAccessor(proxy as T);\n } catch {\n // Ignore errors - we're just capturing the property name\n }\n\n return propertyNames[0] || 'unknown';\n }\n}\n"],"names":["Validator","_propertyValidators","Map","ruleFor","propertyAccessor","propertyName","getPropertyName","propertyValidator","get","PropertyValidator","set","RuleBuilder","validate","instance","results","values","propertyResults","push","isValid","isValidFor","length","propertyNames","proxy","Proxy","_target","prop","undefined"],"mappings":";;;;;AAAA;AACA;AAMA;;;AAGC,IACM,MAAMA,SAAAA,CAAAA;AACQC,IAAAA,mBAAAA,GAAsB,IAAIC,GAAAA,EAAAA;AAE3C;;;;;QAMAC,OAAAA,CAAmBC,gBAA4C,EAA6B;AACxF,QAAA,MAAMC,YAAAA,GAAe,IAAI,CAACC,eAAe,CAACF,gBAAAA,CAAAA;AAC1C,QAAA,IAAIG,oBAAoB,IAAI,CAACN,mBAAmB,CAACO,GAAG,CAACH,YAAAA,CAAAA;AAErD,QAAA,IAAI,CAACE,iBAAAA,EAAmB;AACpBA,YAAAA,iBAAAA,GAAoB,IAAIE,mCAAAA,CAAqBJ,YAAAA,CAAAA;AAC7C,YAAA,IAAI,CAACJ,mBAAmB,CAACS,GAAG,CAACL,YAAAA,EAAcE,iBAAAA,CAAAA;AAC/C,QAAA;QAEA,OAAO,IAAII,wBAA0BJ,iBAAAA,EAAmBH,gBAAAA,CAAAA;AAC5D,IAAA;AAEA;;;;QAKAQ,QAAAA,CAASC,QAAW,EAAsB;AACtC,QAAA,MAAMC,UAA8B,EAAE;AACtC,QAAA,KAAK,MAAMP,iBAAAA,IAAqB,IAAI,CAACN,mBAAmB,CAACc,MAAM,EAAA,CAAI;YAC/D,MAAMC,eAAAA,GAAkBT,iBAAAA,CAAkBK,QAAQ,CAACC,QAAAA,CAAAA;AACnDC,YAAAA,OAAAA,CAAQG,IAAI,CAAA,GAAID,eAAAA,CAAAA;AACpB,QAAA;QACA,OAAOF,OAAAA;AACX,IAAA;AAEA;;;;AAIC,QACD,IAAII,OAAAA,GAAmB;QACnB,OAAO,IAAA;AACX,IAAA;AAEA;;;;QAKAC,UAAAA,CAAWN,QAAW,EAAW;AAC7B,QAAA,OAAO,IAAI,CAACD,QAAQ,CAACC,QAAAA,CAAAA,CAAUO,MAAM,KAAK,CAAA;AAC9C,IAAA;AAEQd,IAAAA,eAAAA,CAA2BF,gBAA4C,EAAU;;AAErF,QAAA,MAAMiB,gBAA0B,EAAE;AAClC,QAAA,MAAMC,KAAAA,GAAQ,IAAIC,KAAAA,CAAM,EAAC,EAA8B;YACnDf,GAAAA,CAAAA,CAAIgB,OAAO,EAAEC,IAAI,EAAA;gBACb,IAAI,OAAOA,SAAS,QAAA,EAAU;AAC1BJ,oBAAAA,aAAAA,CAAcJ,IAAI,CAACQ,IAAAA,CAAAA;AACvB,gBAAA;gBACA,OAAOC,SAAAA;AACX,YAAA;AACJ,SAAA,CAAA;QAEA,IAAI;YACAtB,gBAAAA,CAAiBkB,KAAAA,CAAAA;AACrB,QAAA,CAAA,CAAE,OAAM;;AAER,QAAA;QAEA,OAAOD,aAAa,CAAC,CAAA,CAAE,IAAI,SAAA;AAC/B,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"Validator.js","sources":["../../../validation/Validator.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 { ValidationResult } from './ValidationResult.js';\nimport { PropertyValidator } from './PropertyValidator.js';\nimport { RuleBuilder } from './RuleBuilder.js';\n\n/**\n * Represents a validator for a type that builds validation rules programmatically.\n * @template T The type being validated.\n */\nexport class Validator<T = object> {\n private readonly _propertyValidators = new Map<string, PropertyValidator<T>>();\n\n /**\n * Define validation rules for a property.\n * @template TProperty The type of the property.\n * @param propertyAccessor Function to access the property from the instance.\n * @returns A rule builder for the property.\n */\n ruleFor<TProperty>(propertyAccessor: (instance: T) => TProperty): RuleBuilder<T, TProperty> {\n const propertyName = this.getPropertyName(propertyAccessor);\n let propertyValidator = this._propertyValidators.get(propertyName);\n \n if (!propertyValidator) {\n propertyValidator = new PropertyValidator<T>(propertyName);\n this._propertyValidators.set(propertyName, propertyValidator);\n }\n\n return new RuleBuilder<T, TProperty>(propertyValidator, propertyAccessor);\n }\n\n /**\n * Validate an instance.\n * @param instance The instance to validate.\n * @returns An array of validation results, empty if valid.\n */\n validate(instance: T): ValidationResult[] {\n const results: ValidationResult[] = [];\n for (const propertyValidator of this._propertyValidators.values()) {\n const propertyResults = propertyValidator.validate(instance);\n results.push(...propertyResults);\n }\n return results;\n }\n\n /**\n * Gets whether or not the instance is valid.\n * @param instance The instance to validate.\n * @returns True if valid, false otherwise.\n */\n get isValid(): boolean {\n return true;\n }\n\n /**\n * Gets whether or not a specific instance is valid.\n * @param instance The instance to validate.\n * @returns True if valid, false otherwise.\n */\n isValidFor(instance: T): boolean {\n return this.validate(instance).length === 0;\n }\n\n private getPropertyName<TProperty>(propertyAccessor: (instance: T) => TProperty): string {\n // Create a proxy to capture property access\n const propertyNames: string[] = [];\n const proxy = new Proxy({} as Record<string, unknown>, {\n get(_target, prop) {\n if (typeof prop === 'string') {\n propertyNames.push(prop);\n }\n return undefined;\n }\n });\n\n try {\n propertyAccessor(proxy as T);\n } catch {\n // Ignore errors - we're just capturing the property name\n }\n\n return propertyNames[0] || 'unknown';\n }\n}\n"],"names":["Validator","_propertyValidators","Map","ruleFor","propertyAccessor","propertyName","getPropertyName","propertyValidator","get","PropertyValidator","set","RuleBuilder","validate","instance","results","values","propertyResults","push","isValid","isValidFor","length","propertyNames","proxy","Proxy","_target","prop","undefined"],"mappings":";;;;;AAAA;AACA;AAMA;;;AAGC,IACM,MAAMA,SAAAA,CAAAA;AACQC,IAAAA,mBAAAA,GAAsB,IAAIC,GAAAA,EAAAA;AAE3C;;;;;QAMAC,OAAAA,CAAmBC,gBAA4C,EAA6B;AACxF,QAAA,MAAMC,YAAAA,GAAe,IAAI,CAACC,eAAe,CAACF,gBAAAA,CAAAA;AAC1C,QAAA,IAAIG,oBAAoB,IAAI,CAACN,mBAAmB,CAACO,GAAG,CAACH,YAAAA,CAAAA;AAErD,QAAA,IAAI,CAACE,iBAAAA,EAAmB;AACpBA,YAAAA,iBAAAA,GAAoB,IAAIE,mCAAAA,CAAqBJ,YAAAA,CAAAA;AAC7C,YAAA,IAAI,CAACJ,mBAAmB,CAACS,GAAG,CAACL,YAAAA,EAAcE,iBAAAA,CAAAA;AAC/C,QAAA;QAEA,OAAO,IAAII,wBAA0BJ,iBAAAA,EAAmBH,gBAAAA,CAAAA;AAC5D,IAAA;AAEA;;;;QAKAQ,QAAAA,CAASC,QAAW,EAAsB;AACtC,QAAA,MAAMC,UAA8B,EAAE;AACtC,QAAA,KAAK,MAAMP,iBAAAA,IAAqB,IAAI,CAACN,mBAAmB,CAACc,MAAM,EAAA,CAAI;YAC/D,MAAMC,eAAAA,GAAkBT,iBAAAA,CAAkBK,QAAQ,CAACC,QAAAA,CAAAA;AACnDC,YAAAA,OAAAA,CAAQG,IAAI,CAAA,GAAID,eAAAA,CAAAA;AACpB,QAAA;QACA,OAAOF,OAAAA;AACX,IAAA;AAEA;;;;AAIC,QACD,IAAII,OAAAA,GAAmB;QACnB,OAAO,IAAA;AACX,IAAA;AAEA;;;;QAKAC,UAAAA,CAAWN,QAAW,EAAW;AAC7B,QAAA,OAAO,IAAI,CAACD,QAAQ,CAACC,QAAAA,CAAAA,CAAUO,MAAM,KAAK,CAAA;AAC9C,IAAA;AAEQd,IAAAA,eAAAA,CAA2BF,gBAA4C,EAAU;;AAErF,QAAA,MAAMiB,gBAA0B,EAAE;AAClC,QAAA,MAAMC,KAAAA,GAAQ,IAAIC,KAAAA,CAAM,EAAC,EAA8B;YACnDf,GAAAA,CAAAA,CAAIgB,OAAO,EAAEC,IAAI,EAAA;gBACb,IAAI,OAAOA,SAAS,QAAA,EAAU;AAC1BJ,oBAAAA,aAAAA,CAAcJ,IAAI,CAACQ,IAAAA,CAAAA;AACvB,gBAAA;gBACA,OAAOC,SAAAA;AACX,YAAA;AACJ,SAAA,CAAA;QAEA,IAAI;YACAtB,gBAAAA,CAAiBkB,KAAAA,CAAAA;AACrB,QAAA,CAAA,CAAE,OAAM;;AAER,QAAA;QAEA,OAAOD,aAAa,CAAC,CAAA,CAAE,IAAI,SAAA;AAC/B,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './Validator.js';
|
|
2
|
+
export * from './ValidationResult.js';
|
|
3
|
+
export * from './ValidationResultReason.js';
|
|
4
|
+
export * from './ValidationResultSeverity.js';
|
|
5
|
+
export * from './IValidationRule.js';
|
|
6
|
+
export * from './PropertyValidator.js';
|
|
7
|
+
export * from './PropertyRule.js';
|
|
8
|
+
export * from './RuleBuilder.js';
|
|
9
|
+
export * from './RuleBuilderExtensions.js';
|
|
10
|
+
export * from './rules/NotEmptyRule.js';
|
|
11
|
+
export * from './rules/LengthRules.js';
|
|
12
|
+
export * from './rules/EmailRule.js';
|
|
13
|
+
export * from './rules/RegexRule.js';
|
|
14
|
+
export * from './rules/ComparisonRules.js';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../validation/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../validation/index.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\nexport * from './Validator';\nexport * from './ValidationResult';\nexport * from './ValidationResultReason';\nexport * from './ValidationResultSeverity';\nexport * from './IValidationRule';\nexport * from './PropertyValidator';\nexport * from './PropertyRule';\nexport * from './RuleBuilder';\nexport * from './RuleBuilderExtensions';\nexport * from './rules/NotEmptyRule';\nexport * from './rules/LengthRules';\nexport * from './rules/EmailRule';\nexport * from './rules/RegexRule';\nexport * from './rules/ComparisonRules';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../validation/index.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\nexport * from './Validator.js';\nexport * from './ValidationResult.js';\nexport * from './ValidationResultReason.js';\nexport * from './ValidationResultSeverity.js';\nexport * from './IValidationRule.js';\nexport * from './PropertyValidator.js';\nexport * from './PropertyRule.js';\nexport * from './RuleBuilder.js';\nexport * from './RuleBuilderExtensions.js';\nexport * from './rules/NotEmptyRule.js';\nexport * from './rules/LengthRules.js';\nexport * from './rules/EmailRule.js';\nexport * from './rules/RegexRule.js';\nexport * from './rules/ComparisonRules.js';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PropertyRule } from '../PropertyRule.js';
|
|
2
|
+
export declare class GreaterThanRule<T> extends PropertyRule<T, number> {
|
|
3
|
+
private readonly threshold;
|
|
4
|
+
constructor(propertyAccessor: (instance: T) => number, threshold: number);
|
|
5
|
+
protected isValid(value: number): boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class GreaterThanOrEqualRule<T> extends PropertyRule<T, number> {
|
|
8
|
+
private readonly threshold;
|
|
9
|
+
constructor(propertyAccessor: (instance: T) => number, threshold: number);
|
|
10
|
+
protected isValid(value: number): boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class LessThanRule<T> extends PropertyRule<T, number> {
|
|
13
|
+
private readonly threshold;
|
|
14
|
+
constructor(propertyAccessor: (instance: T) => number, threshold: number);
|
|
15
|
+
protected isValid(value: number): boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class LessThanOrEqualRule<T> extends PropertyRule<T, number> {
|
|
18
|
+
private readonly threshold;
|
|
19
|
+
constructor(propertyAccessor: (instance: T) => number, threshold: number);
|
|
20
|
+
protected isValid(value: number): boolean;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ComparisonRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComparisonRules.d.ts","sourceRoot":"","sources":["../../../../validation/rules/ComparisonRules.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,qBAAa,eAAe,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IAMJ,OAAO,CAAC,QAAQ,CAAC,SAAS;IAAjF,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAAmB,SAAS,EAAE,MAAM,EAExF;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ;AAMD,qBAAa,sBAAsB,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IAMX,OAAO,CAAC,QAAQ,CAAC,SAAS;IAAjF,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAAmB,SAAS,EAAE,MAAM,EAExF;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ;AAMD,qBAAa,YAAY,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IAMD,OAAO,CAAC,QAAQ,CAAC,SAAS;IAAjF,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAAmB,SAAS,EAAE,MAAM,EAExF;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ;AAMD,qBAAa,mBAAmB,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IAMR,OAAO,CAAC,QAAQ,CAAC,SAAS;IAAjF,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAAmB,SAAS,EAAE,MAAM,EAExF;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComparisonRules.js","sources":["../../../../validation/rules/ComparisonRules.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 { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a number is greater than a specified value.\n * @template T The type being validated.\n */\nexport class GreaterThanRule<T> extends PropertyRule<T, number> {\n /**\n * Initializes a new instance of the {@link GreaterThanRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param threshold The value that the property must be greater than.\n */\n constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {\n super(propertyAccessor, `'{PropertyName}' must be greater than ${threshold}.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: number): boolean {\n if (value === null || value === undefined) {\n return true;\n }\n return value > this.threshold;\n }\n}\n\n/**\n * Validation rule that checks if a number is greater than or equal to a specified value.\n * @template T The type being validated.\n */\nexport class GreaterThanOrEqualRule<T> extends PropertyRule<T, number> {\n /**\n * Initializes a new instance of the {@link GreaterThanOrEqualRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param threshold The value that the property must be greater than or equal to.\n */\n constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {\n super(propertyAccessor, `'{PropertyName}' must be greater than or equal to ${threshold}.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: number): boolean {\n if (value === null || value === undefined) {\n return true;\n }\n return value >= this.threshold;\n }\n}\n\n/**\n * Validation rule that checks if a number is less than a specified value.\n * @template T The type being validated.\n */\nexport class LessThanRule<T> extends PropertyRule<T, number> {\n /**\n * Initializes a new instance of the {@link LessThanRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param threshold The value that the property must be less than.\n */\n constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {\n super(propertyAccessor, `'{PropertyName}' must be less than ${threshold}.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: number): boolean {\n if (value === null || value === undefined) {\n return true;\n }\n return value < this.threshold;\n }\n}\n\n/**\n * Validation rule that checks if a number is less than or equal to a specified value.\n * @template T The type being validated.\n */\nexport class LessThanOrEqualRule<T> extends PropertyRule<T, number> {\n /**\n * Initializes a new instance of the {@link LessThanOrEqualRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param threshold The value that the property must be less than or equal to.\n */\n constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {\n super(propertyAccessor, `'{PropertyName}' must be less than or equal to ${threshold}.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: number): boolean {\n if (value === null || value === undefined) {\n return true;\n }\n return value <= this.threshold;\n }\n}\n"],"names":["GreaterThanRule","PropertyRule","propertyAccessor","threshold","isValid","value","undefined","GreaterThanOrEqualRule","LessThanRule","LessThanOrEqualRule"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,eAAAA,SAA2BC,yBAAAA,CAAAA;;AACpC;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBC,SAAiB,CAAE;QACvF,KAAK,CAACD,kBAAkB,CAAC,sCAAsC,EAAEC,SAAAA,CAAU,CAAC,CAAC,CAAA,EAAA,IAAA,CADTA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,IAAA;AACX,QAAA;QACA,OAAOD,KAAAA,GAAQ,IAAI,CAACF,SAAS;AACjC,IAAA;AACJ;AAEA;;;IAIO,MAAMI,sBAAAA,SAAkCN,yBAAAA,CAAAA;;AAC3C;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBC,SAAiB,CAAE;QACvF,KAAK,CAACD,kBAAkB,CAAC,kDAAkD,EAAEC,SAAAA,CAAU,CAAC,CAAC,CAAA,EAAA,IAAA,CADrBA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,IAAA;AACX,QAAA;QACA,OAAOD,KAAAA,IAAS,IAAI,CAACF,SAAS;AAClC,IAAA;AACJ;AAEA;;;IAIO,MAAMK,YAAAA,SAAwBP,yBAAAA,CAAAA;;AACjC;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBC,SAAiB,CAAE;QACvF,KAAK,CAACD,kBAAkB,CAAC,mCAAmC,EAAEC,SAAAA,CAAU,CAAC,CAAC,CAAA,EAAA,IAAA,CADNA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,IAAA;AACX,QAAA;QACA,OAAOD,KAAAA,GAAQ,IAAI,CAACF,SAAS;AACjC,IAAA;AACJ;AAEA;;;IAIO,MAAMM,mBAAAA,SAA+BR,yBAAAA,CAAAA;;AACxC;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBC,SAAiB,CAAE;QACvF,KAAK,CAACD,kBAAkB,CAAC,+CAA+C,EAAEC,SAAAA,CAAU,CAAC,CAAC,CAAA,EAAA,IAAA,CADlBA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,IAAA;AACX,QAAA;QACA,OAAOD,KAAAA,IAAS,IAAI,CAACF,SAAS;AAClC,IAAA;AACJ;;;;;"}
|
|
1
|
+
{"version":3,"file":"ComparisonRules.js","sources":["../../../../validation/rules/ComparisonRules.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 { PropertyRule } from '../PropertyRule.js';\n\n/**\n * Validation rule that checks if a number is greater than a specified value.\n * @template T The type being validated.\n */\nexport class GreaterThanRule<T> extends PropertyRule<T, number> {\n /**\n * Initializes a new instance of the {@link GreaterThanRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param threshold The value that the property must be greater than.\n */\n constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {\n super(propertyAccessor, `'{PropertyName}' must be greater than ${threshold}.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: number): boolean {\n if (value === null || value === undefined) {\n return true;\n }\n return value > this.threshold;\n }\n}\n\n/**\n * Validation rule that checks if a number is greater than or equal to a specified value.\n * @template T The type being validated.\n */\nexport class GreaterThanOrEqualRule<T> extends PropertyRule<T, number> {\n /**\n * Initializes a new instance of the {@link GreaterThanOrEqualRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param threshold The value that the property must be greater than or equal to.\n */\n constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {\n super(propertyAccessor, `'{PropertyName}' must be greater than or equal to ${threshold}.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: number): boolean {\n if (value === null || value === undefined) {\n return true;\n }\n return value >= this.threshold;\n }\n}\n\n/**\n * Validation rule that checks if a number is less than a specified value.\n * @template T The type being validated.\n */\nexport class LessThanRule<T> extends PropertyRule<T, number> {\n /**\n * Initializes a new instance of the {@link LessThanRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param threshold The value that the property must be less than.\n */\n constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {\n super(propertyAccessor, `'{PropertyName}' must be less than ${threshold}.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: number): boolean {\n if (value === null || value === undefined) {\n return true;\n }\n return value < this.threshold;\n }\n}\n\n/**\n * Validation rule that checks if a number is less than or equal to a specified value.\n * @template T The type being validated.\n */\nexport class LessThanOrEqualRule<T> extends PropertyRule<T, number> {\n /**\n * Initializes a new instance of the {@link LessThanOrEqualRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param threshold The value that the property must be less than or equal to.\n */\n constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {\n super(propertyAccessor, `'{PropertyName}' must be less than or equal to ${threshold}.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: number): boolean {\n if (value === null || value === undefined) {\n return true;\n }\n return value <= this.threshold;\n }\n}\n"],"names":["GreaterThanRule","PropertyRule","propertyAccessor","threshold","isValid","value","undefined","GreaterThanOrEqualRule","LessThanRule","LessThanOrEqualRule"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,eAAAA,SAA2BC,yBAAAA,CAAAA;;AACpC;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBC,SAAiB,CAAE;QACvF,KAAK,CAACD,kBAAkB,CAAC,sCAAsC,EAAEC,SAAAA,CAAU,CAAC,CAAC,CAAA,EAAA,IAAA,CADTA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,IAAA;AACX,QAAA;QACA,OAAOD,KAAAA,GAAQ,IAAI,CAACF,SAAS;AACjC,IAAA;AACJ;AAEA;;;IAIO,MAAMI,sBAAAA,SAAkCN,yBAAAA,CAAAA;;AAC3C;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBC,SAAiB,CAAE;QACvF,KAAK,CAACD,kBAAkB,CAAC,kDAAkD,EAAEC,SAAAA,CAAU,CAAC,CAAC,CAAA,EAAA,IAAA,CADrBA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,IAAA;AACX,QAAA;QACA,OAAOD,KAAAA,IAAS,IAAI,CAACF,SAAS;AAClC,IAAA;AACJ;AAEA;;;IAIO,MAAMK,YAAAA,SAAwBP,yBAAAA,CAAAA;;AACjC;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBC,SAAiB,CAAE;QACvF,KAAK,CAACD,kBAAkB,CAAC,mCAAmC,EAAEC,SAAAA,CAAU,CAAC,CAAC,CAAA,EAAA,IAAA,CADNA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,IAAA;AACX,QAAA;QACA,OAAOD,KAAAA,GAAQ,IAAI,CAACF,SAAS;AACjC,IAAA;AACJ;AAEA;;;IAIO,MAAMM,mBAAAA,SAA+BR,yBAAAA,CAAAA;;AACxC;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBC,SAAiB,CAAE;QACvF,KAAK,CAACD,kBAAkB,CAAC,+CAA+C,EAAEC,SAAAA,CAAU,CAAC,CAAC,CAAA,EAAA,IAAA,CADlBA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,IAAA;AACX,QAAA;QACA,OAAOD,KAAAA,IAAS,IAAI,CAACF,SAAS;AAClC,IAAA;AACJ;;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropertyRule } from '../PropertyRule.js';
|
|
2
|
+
export declare class EmailRule<T> extends PropertyRule<T, string> {
|
|
3
|
+
private static readonly emailRegex;
|
|
4
|
+
constructor(propertyAccessor: (instance: T) => string);
|
|
5
|
+
protected isValid(value: string): boolean;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=EmailRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailRule.d.ts","sourceRoot":"","sources":["../../../../validation/rules/EmailRule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,qBAAa,SAAS,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IACrD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAgC;IAMlE,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAEpD;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailRule.js","sources":["../../../../validation/rules/EmailRule.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 { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a string matches an email pattern.\n * @template T The type being validated.\n */\nexport class EmailRule<T> extends PropertyRule<T, string> {\n private static readonly emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n /**\n * Initializes a new instance of the {@link EmailRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => string) {\n super(propertyAccessor, \"'{PropertyName}' is not a valid email address.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return EmailRule.emailRegex.test(value);\n }\n}\n"],"names":["EmailRule","PropertyRule","emailRegex","propertyAccessor","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,SAAAA,SAAqBC,yBAAAA,CAAAA;AAC9B,IAAA,OAAwBC,aAAa,4BAAA;AAErC;;;QAIA,WAAA,CAAYC,gBAAyC,CAAE;AACnD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,gDAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOL,SAAAA,CAAUE,UAAU,CAACK,IAAI,CAACF,KAAAA,CAAAA;AACrC,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"EmailRule.js","sources":["../../../../validation/rules/EmailRule.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 { PropertyRule } from '../PropertyRule.js';\n\n/**\n * Validation rule that checks if a string matches an email pattern.\n * @template T The type being validated.\n */\nexport class EmailRule<T> extends PropertyRule<T, string> {\n private static readonly emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n /**\n * Initializes a new instance of the {@link EmailRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => string) {\n super(propertyAccessor, \"'{PropertyName}' is not a valid email address.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return EmailRule.emailRegex.test(value);\n }\n}\n"],"names":["EmailRule","PropertyRule","emailRegex","propertyAccessor","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,SAAAA,SAAqBC,yBAAAA,CAAAA;AAC9B,IAAA,OAAwBC,aAAa,4BAAA;AAErC;;;QAIA,WAAA,CAAYC,gBAAyC,CAAE;AACnD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,gDAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOL,SAAAA,CAAUE,UAAU,CAACK,IAAI,CAACF,KAAAA,CAAAA;AACrC,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PropertyRule } from '../PropertyRule.js';
|
|
2
|
+
export declare class MinLengthRule<T> extends PropertyRule<T, string> {
|
|
3
|
+
private readonly minLength;
|
|
4
|
+
constructor(propertyAccessor: (instance: T) => string, minLength: number);
|
|
5
|
+
protected isValid(value: string): boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class MaxLengthRule<T> extends PropertyRule<T, string> {
|
|
8
|
+
private readonly maxLength;
|
|
9
|
+
constructor(propertyAccessor: (instance: T) => string, maxLength: number);
|
|
10
|
+
protected isValid(value: string): boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class LengthRule<T> extends PropertyRule<T, string> {
|
|
13
|
+
private readonly min;
|
|
14
|
+
private readonly max;
|
|
15
|
+
constructor(propertyAccessor: (instance: T) => string, min: number, max: number);
|
|
16
|
+
protected isValid(value: string): boolean;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=LengthRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LengthRules.d.ts","sourceRoot":"","sources":["../../../../validation/rules/LengthRules.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,qBAAa,aAAa,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IAMF,OAAO,CAAC,QAAQ,CAAC,SAAS;IAAjF,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAAmB,SAAS,EAAE,MAAM,EAExF;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ;AAMD,qBAAa,aAAa,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IAMF,OAAO,CAAC,QAAQ,CAAC,SAAS;IAAjF,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAAmB,SAAS,EAAE,MAAM,EAExF;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ;AAMD,qBAAa,UAAU,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IAOC,OAAO,CAAC,QAAQ,CAAC,GAAG;IAAU,OAAO,CAAC,QAAQ,CAAC,GAAG;IAAzG,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAAmB,GAAG,EAAE,MAAM,EAAmB,GAAG,EAAE,MAAM,EAEhH;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LengthRules.js","sources":["../../../../validation/rules/LengthRules.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 { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a string has a minimum length.\n * @template T The type being validated.\n */\nexport class MinLengthRule<T> extends PropertyRule<T, string> {\n /**\n * Initializes a new instance of the {@link MinLengthRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param minLength The minimum length required.\n */\n constructor(propertyAccessor: (instance: T) => string, private readonly minLength: number) {\n super(propertyAccessor, `'{PropertyName}' must be at least ${minLength} characters.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined) {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return value.length >= this.minLength;\n }\n}\n\n/**\n * Validation rule that checks if a string has a maximum length.\n * @template T The type being validated.\n */\nexport class MaxLengthRule<T> extends PropertyRule<T, string> {\n /**\n * Initializes a new instance of the {@link MaxLengthRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param maxLength The maximum length allowed.\n */\n constructor(propertyAccessor: (instance: T) => string, private readonly maxLength: number) {\n super(propertyAccessor, `'{PropertyName}' must be at most ${maxLength} characters.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined) {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return value.length <= this.maxLength;\n }\n}\n\n/**\n * Validation rule that checks if a string has an exact length.\n * @template T The type being validated.\n */\nexport class LengthRule<T> extends PropertyRule<T, string> {\n /**\n * Initializes a new instance of the {@link LengthRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param min The minimum length required.\n * @param max The maximum length allowed.\n */\n constructor(propertyAccessor: (instance: T) => string, private readonly min: number, private readonly max: number) {\n super(propertyAccessor, `'{PropertyName}' must be between ${min} and ${max} characters.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined) {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return value.length >= this.min && value.length <= this.max;\n }\n}\n"],"names":["MinLengthRule","PropertyRule","propertyAccessor","minLength","isValid","value","undefined","length","MaxLengthRule","maxLength","LengthRule","min","max"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,aAAAA,SAAyBC,yBAAAA,CAAAA;;AAClC;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBC,SAAiB,CAAE;QACvF,KAAK,CAACD,kBAAkB,CAAC,kCAAkC,EAAEC,SAAAA,CAAU,YAAY,CAAC,CAAA,EAAA,IAAA,CADhBA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;AACvC,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOD,KAAAA,CAAME,MAAM,IAAI,IAAI,CAACJ,SAAS;AACzC,IAAA;AACJ;AAEA;;;IAIO,MAAMK,aAAAA,SAAyBP,yBAAAA,CAAAA;;AAClC;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBO,SAAiB,CAAE;QACvF,KAAK,CAACP,kBAAkB,CAAC,iCAAiC,EAAEO,SAAAA,CAAU,YAAY,CAAC,CAAA,EAAA,IAAA,CADfA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUL,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;AACvC,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOD,KAAAA,CAAME,MAAM,IAAI,IAAI,CAACE,SAAS;AACzC,IAAA;AACJ;AAEA;;;IAIO,MAAMC,UAAAA,SAAsBT,yBAAAA,CAAAA;;;AAC/B;;;;;QAMA,WAAA,CAAYC,gBAAyC,EAAmBS,GAAW,EAAmBC,GAAW,CAAE;AAC/G,QAAA,KAAK,CAACV,gBAAAA,EAAkB,CAAC,iCAAiC,EAAES,GAAAA,CAAI,KAAK,EAAEC,GAAAA,CAAI,YAAY,CAAC,CAAA,EAAA,IAAA,CADpBD,GAAAA,GAAAA,UAA8BC,GAAAA,GAAAA,GAAAA;AAEtG,IAAA;AAEA,uBACUR,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;AACvC,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOD,KAAAA,CAAME,MAAM,IAAI,IAAI,CAACI,GAAG,IAAIN,KAAAA,CAAME,MAAM,IAAI,IAAI,CAACK,GAAG;AAC/D,IAAA;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"LengthRules.js","sources":["../../../../validation/rules/LengthRules.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 { PropertyRule } from '../PropertyRule.js';\n\n/**\n * Validation rule that checks if a string has a minimum length.\n * @template T The type being validated.\n */\nexport class MinLengthRule<T> extends PropertyRule<T, string> {\n /**\n * Initializes a new instance of the {@link MinLengthRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param minLength The minimum length required.\n */\n constructor(propertyAccessor: (instance: T) => string, private readonly minLength: number) {\n super(propertyAccessor, `'{PropertyName}' must be at least ${minLength} characters.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined) {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return value.length >= this.minLength;\n }\n}\n\n/**\n * Validation rule that checks if a string has a maximum length.\n * @template T The type being validated.\n */\nexport class MaxLengthRule<T> extends PropertyRule<T, string> {\n /**\n * Initializes a new instance of the {@link MaxLengthRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param maxLength The maximum length allowed.\n */\n constructor(propertyAccessor: (instance: T) => string, private readonly maxLength: number) {\n super(propertyAccessor, `'{PropertyName}' must be at most ${maxLength} characters.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined) {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return value.length <= this.maxLength;\n }\n}\n\n/**\n * Validation rule that checks if a string has an exact length.\n * @template T The type being validated.\n */\nexport class LengthRule<T> extends PropertyRule<T, string> {\n /**\n * Initializes a new instance of the {@link LengthRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param min The minimum length required.\n * @param max The maximum length allowed.\n */\n constructor(propertyAccessor: (instance: T) => string, private readonly min: number, private readonly max: number) {\n super(propertyAccessor, `'{PropertyName}' must be between ${min} and ${max} characters.`);\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined) {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return value.length >= this.min && value.length <= this.max;\n }\n}\n"],"names":["MinLengthRule","PropertyRule","propertyAccessor","minLength","isValid","value","undefined","length","MaxLengthRule","maxLength","LengthRule","min","max"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,aAAAA,SAAyBC,yBAAAA,CAAAA;;AAClC;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBC,SAAiB,CAAE;QACvF,KAAK,CAACD,kBAAkB,CAAC,kCAAkC,EAAEC,SAAAA,CAAU,YAAY,CAAC,CAAA,EAAA,IAAA,CADhBA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;AACvC,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOD,KAAAA,CAAME,MAAM,IAAI,IAAI,CAACJ,SAAS;AACzC,IAAA;AACJ;AAEA;;;IAIO,MAAMK,aAAAA,SAAyBP,yBAAAA,CAAAA;;AAClC;;;;AAIC,QACD,WAAA,CAAYC,gBAAyC,EAAmBO,SAAiB,CAAE;QACvF,KAAK,CAACP,kBAAkB,CAAC,iCAAiC,EAAEO,SAAAA,CAAU,YAAY,CAAC,CAAA,EAAA,IAAA,CADfA,SAAAA,GAAAA,SAAAA;AAExE,IAAA;AAEA,uBACUL,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;AACvC,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOD,KAAAA,CAAME,MAAM,IAAI,IAAI,CAACE,SAAS;AACzC,IAAA;AACJ;AAEA;;;IAIO,MAAMC,UAAAA,SAAsBT,yBAAAA,CAAAA;;;AAC/B;;;;;QAMA,WAAA,CAAYC,gBAAyC,EAAmBS,GAAW,EAAmBC,GAAW,CAAE;AAC/G,QAAA,KAAK,CAACV,gBAAAA,EAAkB,CAAC,iCAAiC,EAAES,GAAAA,CAAI,KAAK,EAAEC,GAAAA,CAAI,YAAY,CAAC,CAAA,EAAA,IAAA,CADpBD,GAAAA,GAAAA,UAA8BC,GAAAA,GAAAA,GAAAA;AAEtG,IAAA;AAEA,uBACUR,OAAAA,CAAQC,KAAa,EAAW;QACtC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;AACvC,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOD,KAAAA,CAAME,MAAM,IAAI,IAAI,CAACI,GAAG,IAAIN,KAAAA,CAAME,MAAM,IAAI,IAAI,CAACK,GAAG;AAC/D,IAAA;AACJ;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropertyRule } from '../PropertyRule.js';
|
|
2
|
+
export declare class NotEmptyRule<T> extends PropertyRule<T, unknown> {
|
|
3
|
+
constructor(propertyAccessor: (instance: T) => unknown);
|
|
4
|
+
protected isValid(value: unknown): boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class NotNullRule<T> extends PropertyRule<T, unknown> {
|
|
7
|
+
constructor(propertyAccessor: (instance: T) => unknown);
|
|
8
|
+
protected isValid(value: unknown): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=NotEmptyRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotEmptyRule.d.ts","sourceRoot":"","sources":["../../../../validation/rules/NotEmptyRule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,qBAAa,YAAY,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC;IAKzD,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,EAErD;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAWzC;CACJ;AAMD,qBAAa,WAAW,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC;IAKxD,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,EAErD;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEzC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotEmptyRule.js","sources":["../../../../validation/rules/NotEmptyRule.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 { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a value is not null, undefined, or empty.\n * @template T The type being validated.\n */\nexport class NotEmptyRule<T> extends PropertyRule<T, unknown> {\n /**\n * Initializes a new instance of the {@link NotEmptyRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => unknown) {\n super(propertyAccessor, \"'{PropertyName}' must not be empty.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: unknown): boolean {\n if (value === null || value === undefined) {\n return false;\n }\n if (typeof value === 'string' && value.trim() === '') {\n return false;\n }\n if (Array.isArray(value) && value.length === 0) {\n return false;\n }\n return true;\n }\n}\n\n/**\n * Validation rule that checks if a value is not null or undefined.\n * @template T The type being validated.\n */\nexport class NotNullRule<T> extends PropertyRule<T, unknown> {\n /**\n * Initializes a new instance of the {@link NotNullRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => unknown) {\n super(propertyAccessor, \"'{PropertyName}' must not be empty.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: unknown): boolean {\n return value !== null && value !== undefined;\n }\n}\n"],"names":["NotEmptyRule","PropertyRule","propertyAccessor","isValid","value","undefined","trim","Array","isArray","length","NotNullRule"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,YAAAA,SAAwBC,yBAAAA,CAAAA;AACjC;;;QAIA,WAAA,CAAYC,gBAA0C,CAAE;AACpD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,qCAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAc,EAAW;QACvC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,KAAA;AACX,QAAA;AACA,QAAA,IAAI,OAAOD,KAAAA,KAAU,QAAA,IAAYA,KAAAA,CAAME,IAAI,OAAO,EAAA,EAAI;YAClD,OAAO,KAAA;AACX,QAAA;AACA,QAAA,IAAIC,MAAMC,OAAO,CAACJ,UAAUA,KAAAA,CAAMK,MAAM,KAAK,CAAA,EAAG;YAC5C,OAAO,KAAA;AACX,QAAA;QACA,OAAO,IAAA;AACX,IAAA;AACJ;AAEA;;;IAIO,MAAMC,WAAAA,SAAuBT,yBAAAA,CAAAA;AAChC;;;QAIA,WAAA,CAAYC,gBAA0C,CAAE;AACpD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,qCAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAc,EAAW;QACvC,OAAOA,KAAAA,KAAU,QAAQA,KAAAA,KAAUC,SAAAA;AACvC,IAAA;AACJ;;;"}
|
|
1
|
+
{"version":3,"file":"NotEmptyRule.js","sources":["../../../../validation/rules/NotEmptyRule.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 { PropertyRule } from '../PropertyRule.js';\n\n/**\n * Validation rule that checks if a value is not null, undefined, or empty.\n * @template T The type being validated.\n */\nexport class NotEmptyRule<T> extends PropertyRule<T, unknown> {\n /**\n * Initializes a new instance of the {@link NotEmptyRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => unknown) {\n super(propertyAccessor, \"'{PropertyName}' must not be empty.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: unknown): boolean {\n if (value === null || value === undefined) {\n return false;\n }\n if (typeof value === 'string' && value.trim() === '') {\n return false;\n }\n if (Array.isArray(value) && value.length === 0) {\n return false;\n }\n return true;\n }\n}\n\n/**\n * Validation rule that checks if a value is not null or undefined.\n * @template T The type being validated.\n */\nexport class NotNullRule<T> extends PropertyRule<T, unknown> {\n /**\n * Initializes a new instance of the {@link NotNullRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => unknown) {\n super(propertyAccessor, \"'{PropertyName}' must not be empty.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: unknown): boolean {\n return value !== null && value !== undefined;\n }\n}\n"],"names":["NotEmptyRule","PropertyRule","propertyAccessor","isValid","value","undefined","trim","Array","isArray","length","NotNullRule"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,YAAAA,SAAwBC,yBAAAA,CAAAA;AACjC;;;QAIA,WAAA,CAAYC,gBAA0C,CAAE;AACpD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,qCAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAc,EAAW;QACvC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,KAAA;AACX,QAAA;AACA,QAAA,IAAI,OAAOD,KAAAA,KAAU,QAAA,IAAYA,KAAAA,CAAME,IAAI,OAAO,EAAA,EAAI;YAClD,OAAO,KAAA;AACX,QAAA;AACA,QAAA,IAAIC,MAAMC,OAAO,CAACJ,UAAUA,KAAAA,CAAMK,MAAM,KAAK,CAAA,EAAG;YAC5C,OAAO,KAAA;AACX,QAAA;QACA,OAAO,IAAA;AACX,IAAA;AACJ;AAEA;;;IAIO,MAAMC,WAAAA,SAAuBT,yBAAAA,CAAAA;AAChC;;;QAIA,WAAA,CAAYC,gBAA0C,CAAE;AACpD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,qCAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAc,EAAW;QACvC,OAAOA,KAAAA,KAAU,QAAQA,KAAAA,KAAUC,SAAAA;AACvC,IAAA;AACJ;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropertyRule } from '../PropertyRule.js';
|
|
2
|
+
export declare class PhoneRule<T> extends PropertyRule<T, string> {
|
|
3
|
+
private static readonly phoneRegex;
|
|
4
|
+
constructor(propertyAccessor: (instance: T) => string);
|
|
5
|
+
protected isValid(value: string): boolean;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=PhoneRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhoneRule.d.ts","sourceRoot":"","sources":["../../../../validation/rules/PhoneRule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,qBAAa,SAAS,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IACrD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAMrD,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAEpD;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneRule.js","sources":["../../../../validation/rules/PhoneRule.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 { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a string matches a phone number pattern.\n * @template T The type being validated.\n */\nexport class PhoneRule<T> extends PropertyRule<T, string> {\n private static readonly phoneRegex = /^[\\d\\s()+-]+$/;\n\n /**\n * Initializes a new instance of the {@link PhoneRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => string) {\n super(propertyAccessor, \"'{PropertyName}' is not a valid phone number.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return PhoneRule.phoneRegex.test(value);\n }\n}\n"],"names":["PhoneRule","PropertyRule","phoneRegex","propertyAccessor","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,SAAAA,SAAqBC,yBAAAA,CAAAA;AAC9B,IAAA,OAAwBC,aAAa,eAAA;AAErC;;;QAIA,WAAA,CAAYC,gBAAyC,CAAE;AACnD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,+CAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOL,SAAAA,CAAUE,UAAU,CAACK,IAAI,CAACF,KAAAA,CAAAA;AACrC,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"PhoneRule.js","sources":["../../../../validation/rules/PhoneRule.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 { PropertyRule } from '../PropertyRule.js';\n\n/**\n * Validation rule that checks if a string matches a phone number pattern.\n * @template T The type being validated.\n */\nexport class PhoneRule<T> extends PropertyRule<T, string> {\n private static readonly phoneRegex = /^[\\d\\s()+-]+$/;\n\n /**\n * Initializes a new instance of the {@link PhoneRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => string) {\n super(propertyAccessor, \"'{PropertyName}' is not a valid phone number.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return PhoneRule.phoneRegex.test(value);\n }\n}\n"],"names":["PhoneRule","PropertyRule","phoneRegex","propertyAccessor","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,SAAAA,SAAqBC,yBAAAA,CAAAA;AAC9B,IAAA,OAAwBC,aAAa,eAAA;AAErC;;;QAIA,WAAA,CAAYC,gBAAyC,CAAE;AACnD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,+CAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOL,SAAAA,CAAUE,UAAU,CAACK,IAAI,CAACF,KAAAA,CAAAA;AACrC,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropertyRule } from '../PropertyRule.js';
|
|
2
|
+
export declare class RegexRule<T> extends PropertyRule<T, string> {
|
|
3
|
+
private readonly pattern;
|
|
4
|
+
constructor(propertyAccessor: (instance: T) => string, pattern: RegExp, errorMessage?: string);
|
|
5
|
+
protected isValid(value: string): boolean;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=RegexRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegexRule.d.ts","sourceRoot":"","sources":["../../../../validation/rules/RegexRule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,qBAAa,SAAS,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IAOE,OAAO,CAAC,QAAQ,CAAC,OAAO;IAA/E,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAAmB,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAE7G;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegexRule.js","sources":["../../../../validation/rules/RegexRule.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 { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a value matches a regular expression.\n * @template T The type being validated.\n */\nexport class RegexRule<T> extends PropertyRule<T, string> {\n /**\n * Initializes a new instance of the {@link RegexRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param pattern The regular expression pattern to match.\n * @param errorMessage Optional error message.\n */\n constructor(propertyAccessor: (instance: T) => string, private readonly pattern: RegExp, errorMessage?: string) {\n super(propertyAccessor, errorMessage || \"'{PropertyName}' is not in the correct format.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return this.pattern.test(value);\n }\n}\n"],"names":["RegexRule","PropertyRule","propertyAccessor","errorMessage","pattern","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,SAAAA,SAAqBC,yBAAAA,CAAAA;;AAC9B;;;;;AAKC,QACD,YAAYC,gBAAyC,EAAE,OAAgC,EAAEC,YAAqB,CAAE;AAC5G,QAAA,KAAK,CAACD,gBAAAA,EAAkBC,YAAAA,IAAgB,gDAAA,CAAA,EAAA,IAAA,CAD4BC,OAAAA,GAAAA,OAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAO,IAAI,CAACF,OAAO,CAACI,IAAI,CAACF,KAAAA,CAAAA;AAC7B,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"RegexRule.js","sources":["../../../../validation/rules/RegexRule.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 { PropertyRule } from '../PropertyRule.js';\n\n/**\n * Validation rule that checks if a value matches a regular expression.\n * @template T The type being validated.\n */\nexport class RegexRule<T> extends PropertyRule<T, string> {\n /**\n * Initializes a new instance of the {@link RegexRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param pattern The regular expression pattern to match.\n * @param errorMessage Optional error message.\n */\n constructor(propertyAccessor: (instance: T) => string, private readonly pattern: RegExp, errorMessage?: string) {\n super(propertyAccessor, errorMessage || \"'{PropertyName}' is not in the correct format.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return this.pattern.test(value);\n }\n}\n"],"names":["RegexRule","PropertyRule","propertyAccessor","errorMessage","pattern","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,SAAAA,SAAqBC,yBAAAA,CAAAA;;AAC9B;;;;;AAKC,QACD,YAAYC,gBAAyC,EAAE,OAAgC,EAAEC,YAAqB,CAAE;AAC5G,QAAA,KAAK,CAACD,gBAAAA,EAAkBC,YAAAA,IAAgB,gDAAA,CAAA,EAAA,IAAA,CAD4BC,OAAAA,GAAAA,OAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAO,IAAI,CAACF,OAAO,CAACI,IAAI,CAACF,KAAAA,CAAAA;AAC7B,IAAA;AACJ;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropertyRule } from '../PropertyRule.js';
|
|
2
|
+
export declare class UrlRule<T> extends PropertyRule<T, string> {
|
|
3
|
+
private static readonly urlRegex;
|
|
4
|
+
constructor(propertyAccessor: (instance: T) => string);
|
|
5
|
+
protected isValid(value: string): boolean;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=UrlRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UrlRule.d.ts","sourceRoot":"","sources":["../../../../validation/rules/UrlRule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,qBAAa,OAAO,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;IACnD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAqB;IAMrD,YAAY,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,EAEpD;IAGD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKxC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UrlRule.js","sources":["../../../../validation/rules/UrlRule.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 { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a string is a valid URL.\n * @template T The type being validated.\n */\nexport class UrlRule<T> extends PropertyRule<T, string> {\n private static readonly urlRegex = /^https?:\\/\\/.+/i;\n\n /**\n * Initializes a new instance of the {@link UrlRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => string) {\n super(propertyAccessor, \"'{PropertyName}' is not a valid URL.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return UrlRule.urlRegex.test(value);\n }\n}\n"],"names":["UrlRule","PropertyRule","urlRegex","propertyAccessor","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,OAAAA,SAAmBC,yBAAAA,CAAAA;AAC5B,IAAA,OAAwBC,WAAW,iBAAA;AAEnC;;;QAIA,WAAA,CAAYC,gBAAyC,CAAE;AACnD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,sCAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOL,OAAAA,CAAQE,QAAQ,CAACK,IAAI,CAACF,KAAAA,CAAAA;AACjC,IAAA;AACJ;;"}
|
|
1
|
+
{"version":3,"file":"UrlRule.js","sources":["../../../../validation/rules/UrlRule.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 { PropertyRule } from '../PropertyRule.js';\n\n/**\n * Validation rule that checks if a string is a valid URL.\n * @template T The type being validated.\n */\nexport class UrlRule<T> extends PropertyRule<T, string> {\n private static readonly urlRegex = /^https?:\\/\\/.+/i;\n\n /**\n * Initializes a new instance of the {@link UrlRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => string) {\n super(propertyAccessor, \"'{PropertyName}' is not a valid URL.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return UrlRule.urlRegex.test(value);\n }\n}\n"],"names":["UrlRule","PropertyRule","urlRegex","propertyAccessor","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,OAAAA,SAAmBC,yBAAAA,CAAAA;AAC5B,IAAA,OAAwBC,WAAW,iBAAA;AAEnC;;;QAIA,WAAA,CAAYC,gBAAyC,CAAE;AACnD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,sCAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOL,OAAAA,CAAQE,QAAQ,CAACK,IAAI,CAACF,KAAAA,CAAAA;AACjC,IAAA;AACJ;;"}
|
package/dist/esm/Globals.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { GetHttpHeaders } from './GetHttpHeaders';
|
|
2
|
-
import { EventSourceFactory } from './EventSourceFactory';
|
|
3
|
-
import { QueryTransportMethod } from './queries/QueryTransportMethod';
|
|
4
|
-
import { QueryHttpMethod } from './queries/QueryHttpMethod';
|
|
5
|
-
import { QueryHttpMethodResolver } from './queries/QueryHttpMethodResolver';
|
|
1
|
+
import { GetHttpHeaders } from './GetHttpHeaders.js';
|
|
2
|
+
import { EventSourceFactory } from './EventSourceFactory.js';
|
|
3
|
+
import { QueryTransportMethod } from './queries/QueryTransportMethod.js';
|
|
4
|
+
import { QueryHttpMethod } from './queries/QueryHttpMethod.js';
|
|
5
|
+
import { QueryHttpMethodResolver } from './queries/QueryHttpMethodResolver.js';
|
|
6
6
|
export declare enum ObservableQueryTransferMode {
|
|
7
7
|
Delta = "delta",
|
|
8
8
|
Full = "full"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Globals.d.ts","sourceRoot":"","sources":["../../Globals.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Globals.d.ts","sourceRoot":"","sources":["../../Globals.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAa/E,oBAAY,2BAA2B;IAEnC,KAAK,UAAU;IAEf,IAAI,SAAS;CAChB;AAED,MAAM,WAAW,QAAQ;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,EAAE,MAAM,CAAC;IAC/B,2BAA2B,EAAE,MAAM,CAAC;IACpC,oBAAoB,EAAE,oBAAoB,CAAC;IAM3C,eAAe,EAAE,eAAe,CAAC;IAMjC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAOlD,oBAAoB,EAAE,MAAM,CAAC;IAM7B,eAAe,EAAE,OAAO,CAAC;IAMzB,2BAA2B,EAAE,2BAA2B,CAAC;IAKzD,mBAAmB,EAAE,cAAc,CAAC;IAOpC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAYxC,qBAAqB,EAAE,MAAM,CAAC;CACjC;AAED,eAAO,MAAM,OAAO,EAAE,QAarB,CAAC"}
|
package/dist/esm/Globals.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Globals.js","sources":["../../Globals.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 { GetHttpHeaders } from './GetHttpHeaders';\nimport { EventSourceFactory } from './EventSourceFactory';\nimport { QueryTransportMethod } from './queries/QueryTransportMethod';\nimport { QueryHttpMethod } from './queries/QueryHttpMethod';\nimport { QueryHttpMethodResolver } from './queries/QueryHttpMethodResolver';\n\n/**\n * Defines the transfer mode used for observable query subscriptions.\n *\n * - {@link ObservableQueryTransferMode.Delta} (default): Only the items that changed since\n * the previous update (added, replaced, removed) are exposed via {@code useChangeStream}.\n * The full collection state is still maintained internally by {@code useObservableQuery}.\n *\n * - {@link ObservableQueryTransferMode.Full}: Every update delivers the complete current\n * collection. The change set returned by {@code useChangeStream} treats the entire new\n * collection as {@code added} and the previous collection as {@code removed}.\n */\nexport enum ObservableQueryTransferMode {\n /** Compute and expose only the items that changed since the previous update (default). */\n Delta = 'delta',\n /** Expose the full collection on every update. */\n Full = 'full',\n}\n\nexport interface IGlobals {\n microservice: string;\n apiBasePath: string;\n origin: string;\n microserviceHttpHeader: string;\n microserviceWSQueryArgument: string;\n queryTransportMethod: QueryTransportMethod;\n /**\n * The HTTP method used to perform non-streaming queries. Defaults to {@link QueryHttpMethod.Get}.\n * Set to {@link QueryHttpMethod.Query} to carry arguments in a JSON request body (RFC 10008)\n * instead of the URL query string. Individual queries can override this via {@code setHttpMethod}.\n */\n queryHttpMethod: QueryHttpMethod;\n /**\n * Optional per-query policy for choosing the query HTTP method from the request (e.g. by URL length).\n * Consulted only when a query has no explicit method set via {@code setHttpMethod}; it takes\n * precedence over {@link queryHttpMethod}. See {@link lengthBasedQueryHttpMethod} for a built-in.\n */\n queryHttpMethodResolver?: QueryHttpMethodResolver;\n /**\n * Number of hub connections maintained for observable queries.\n * When greater than one, queries are distributed across the pool round-robin.\n * Only applies when {@link queryTransportMethod} is a centralized hub transport.\n * Defaults to 1.\n */\n queryConnectionCount: number;\n /**\n * When true, observable queries connect directly to the per-query WebSocket URL\n * instead of routing through the centralized hub endpoint.\n * Defaults to false (use the centralized hub).\n */\n queryDirectMode: boolean;\n /**\n * Controls how observable query updates are transferred and exposed.\n * {@link ObservableQueryTransferMode.Delta} (default) computes per-update deltas;\n * {@link ObservableQueryTransferMode.Full} delivers the whole collection on every update.\n */\n observableQueryTransferMode: ObservableQueryTransferMode;\n /**\n * Callback that returns custom HTTP headers to include in hub transport requests\n * (e.g. SSE subscribe/unsubscribe POST calls).\n */\n httpHeadersCallback: GetHttpHeaders;\n /**\n * Optional factory used to create the {@link EventSource} instances that back SSE\n * observable query connections. Falls back to the global {@link EventSource}\n * constructor when not set — override it to supply a custom SSE client (e.g. a\n * native implementation on React Native, where the global constructor is unavailable).\n */\n eventSourceFactory?: EventSourceFactory;\n /**\n * How long in milliseconds to retain a query cache entry after the last subscriber\n * releases it before evicting the subscription and the cached data.\n *\n * A non-zero value allows a user navigating away and back quickly to see cached\n * data immediately instead of waiting for a fresh server round-trip. The entry is\n * still evicted once the window expires, so memory is eventually reclaimed.\n *\n * Defaults to 30 000 ms (30 seconds). Set to 0 to restore the previous\n * immediate-eviction behaviour.\n */\n queryCacheRetentionMs: number;\n}\n\nexport const Globals: IGlobals = {\n microservice: '',\n apiBasePath: '',\n origin: '',\n microserviceHttpHeader: 'x-cratis-microservice',\n microserviceWSQueryArgument: 'x-cratis-microservice',\n queryTransportMethod: QueryTransportMethod.WebSocket,\n queryHttpMethod: QueryHttpMethod.Get,\n queryConnectionCount: 1,\n queryDirectMode: false,\n observableQueryTransferMode: ObservableQueryTransferMode.Delta,\n httpHeadersCallback: () => ({}),\n queryCacheRetentionMs: 30_000,\n};"],"names":["ObservableQueryTransferMode","Globals","microservice","apiBasePath","origin","microserviceHttpHeader","microserviceWSQueryArgument","queryTransportMethod","QueryTransportMethod","WebSocket","queryHttpMethod","QueryHttpMethod","Get","queryConnectionCount","queryDirectMode","observableQueryTransferMode","httpHeadersCallback","queryCacheRetentionMs"],"mappings":";;;AAAA;AACA;AAQA;;;;;;;;;;IAWO,IAAKA,2BAAAA,iBAAAA,SAAAA,2BAAAA,EAAAA;+FACgF,2BAAA,CAAA,OAAA,CAAA,GAAA,OAAA;uDAExC,2BAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAHxCA,IAAAA,OAAAA,2BAAAA;AAKX,CAAA,CAAA,EAAA;MAkEYC,OAAAA,GAAoB;IAC7BC,YAAAA,EAAc,EAAA;IACdC,WAAAA,EAAa,EAAA;IACbC,MAAAA,EAAQ,EAAA;IACRC,sBAAAA,EAAwB,uBAAA;IACxBC,2BAAAA,EAA6B,uBAAA;AAC7BC,IAAAA,oBAAAA,EAAsBC,qBAAqBC,SAAS;AACpDC,IAAAA,eAAAA,EAAiBC,gBAAgBC,GAAG;IACpCC,oBAAAA,EAAsB,CAAA;IACtBC,eAAAA,EAAiB,KAAA;IACjBC,2BAA2B,EAAA,OAAA;IAC3BC,mBAAAA,EAAqB,KAAO,EAAC,CAAA;IAC7BC,qBAAAA,EAAuB;AAC3B;;"}
|
|
1
|
+
{"version":3,"file":"Globals.js","sources":["../../Globals.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 { GetHttpHeaders } from './GetHttpHeaders.js';\nimport { EventSourceFactory } from './EventSourceFactory.js';\nimport { QueryTransportMethod } from './queries/QueryTransportMethod.js';\nimport { QueryHttpMethod } from './queries/QueryHttpMethod.js';\nimport { QueryHttpMethodResolver } from './queries/QueryHttpMethodResolver.js';\n\n/**\n * Defines the transfer mode used for observable query subscriptions.\n *\n * - {@link ObservableQueryTransferMode.Delta} (default): Only the items that changed since\n * the previous update (added, replaced, removed) are exposed via {@code useChangeStream}.\n * The full collection state is still maintained internally by {@code useObservableQuery}.\n *\n * - {@link ObservableQueryTransferMode.Full}: Every update delivers the complete current\n * collection. The change set returned by {@code useChangeStream} treats the entire new\n * collection as {@code added} and the previous collection as {@code removed}.\n */\nexport enum ObservableQueryTransferMode {\n /** Compute and expose only the items that changed since the previous update (default). */\n Delta = 'delta',\n /** Expose the full collection on every update. */\n Full = 'full',\n}\n\nexport interface IGlobals {\n microservice: string;\n apiBasePath: string;\n origin: string;\n microserviceHttpHeader: string;\n microserviceWSQueryArgument: string;\n queryTransportMethod: QueryTransportMethod;\n /**\n * The HTTP method used to perform non-streaming queries. Defaults to {@link QueryHttpMethod.Get}.\n * Set to {@link QueryHttpMethod.Query} to carry arguments in a JSON request body (RFC 10008)\n * instead of the URL query string. Individual queries can override this via {@code setHttpMethod}.\n */\n queryHttpMethod: QueryHttpMethod;\n /**\n * Optional per-query policy for choosing the query HTTP method from the request (e.g. by URL length).\n * Consulted only when a query has no explicit method set via {@code setHttpMethod}; it takes\n * precedence over {@link queryHttpMethod}. See {@link lengthBasedQueryHttpMethod} for a built-in.\n */\n queryHttpMethodResolver?: QueryHttpMethodResolver;\n /**\n * Number of hub connections maintained for observable queries.\n * When greater than one, queries are distributed across the pool round-robin.\n * Only applies when {@link queryTransportMethod} is a centralized hub transport.\n * Defaults to 1.\n */\n queryConnectionCount: number;\n /**\n * When true, observable queries connect directly to the per-query WebSocket URL\n * instead of routing through the centralized hub endpoint.\n * Defaults to false (use the centralized hub).\n */\n queryDirectMode: boolean;\n /**\n * Controls how observable query updates are transferred and exposed.\n * {@link ObservableQueryTransferMode.Delta} (default) computes per-update deltas;\n * {@link ObservableQueryTransferMode.Full} delivers the whole collection on every update.\n */\n observableQueryTransferMode: ObservableQueryTransferMode;\n /**\n * Callback that returns custom HTTP headers to include in hub transport requests\n * (e.g. SSE subscribe/unsubscribe POST calls).\n */\n httpHeadersCallback: GetHttpHeaders;\n /**\n * Optional factory used to create the {@link EventSource} instances that back SSE\n * observable query connections. Falls back to the global {@link EventSource}\n * constructor when not set — override it to supply a custom SSE client (e.g. a\n * native implementation on React Native, where the global constructor is unavailable).\n */\n eventSourceFactory?: EventSourceFactory;\n /**\n * How long in milliseconds to retain a query cache entry after the last subscriber\n * releases it before evicting the subscription and the cached data.\n *\n * A non-zero value allows a user navigating away and back quickly to see cached\n * data immediately instead of waiting for a fresh server round-trip. The entry is\n * still evicted once the window expires, so memory is eventually reclaimed.\n *\n * Defaults to 30 000 ms (30 seconds). Set to 0 to restore the previous\n * immediate-eviction behaviour.\n */\n queryCacheRetentionMs: number;\n}\n\nexport const Globals: IGlobals = {\n microservice: '',\n apiBasePath: '',\n origin: '',\n microserviceHttpHeader: 'x-cratis-microservice',\n microserviceWSQueryArgument: 'x-cratis-microservice',\n queryTransportMethod: QueryTransportMethod.WebSocket,\n queryHttpMethod: QueryHttpMethod.Get,\n queryConnectionCount: 1,\n queryDirectMode: false,\n observableQueryTransferMode: ObservableQueryTransferMode.Delta,\n httpHeadersCallback: () => ({}),\n queryCacheRetentionMs: 30_000,\n};"],"names":["ObservableQueryTransferMode","Globals","microservice","apiBasePath","origin","microserviceHttpHeader","microserviceWSQueryArgument","queryTransportMethod","QueryTransportMethod","WebSocket","queryHttpMethod","QueryHttpMethod","Get","queryConnectionCount","queryDirectMode","observableQueryTransferMode","httpHeadersCallback","queryCacheRetentionMs"],"mappings":";;;AAAA;AACA;AAQA;;;;;;;;;;IAWO,IAAKA,2BAAAA,iBAAAA,SAAAA,2BAAAA,EAAAA;+FACgF,2BAAA,CAAA,OAAA,CAAA,GAAA,OAAA;uDAExC,2BAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAHxCA,IAAAA,OAAAA,2BAAAA;AAKX,CAAA,CAAA,EAAA;MAkEYC,OAAAA,GAAoB;IAC7BC,YAAAA,EAAc,EAAA;IACdC,WAAAA,EAAa,EAAA;IACbC,MAAAA,EAAQ,EAAA;IACRC,sBAAAA,EAAwB,uBAAA;IACxBC,2BAAAA,EAA6B,uBAAA;AAC7BC,IAAAA,oBAAAA,EAAsBC,qBAAqBC,SAAS;AACpDC,IAAAA,eAAAA,EAAiBC,gBAAgBC,GAAG;IACpCC,oBAAAA,EAAsB,CAAA;IACtBC,eAAAA,EAAiB,KAAA;IACjBC,2BAA2B,EAAA,OAAA;IAC3BC,mBAAAA,EAAqB,KAAO,EAAC,CAAA;IAC7BC,qBAAAA,EAAuB;AAC3B;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICanBeConfigured.d.ts","sourceRoot":"","sources":["../../ICanBeConfigured.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ICanBeConfigured.d.ts","sourceRoot":"","sources":["../../ICanBeConfigured.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAKrD,MAAM,WAAW,gBAAgB;IAK7B,eAAe,CAAC,YAAY,EAAE,MAAM,OAAE;IAMtC,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAM1C,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAMhC,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;CAC1D"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ICommand, PropertyChanged } from './ICommand';
|
|
2
|
-
import { CommandResult } from "./CommandResult";
|
|
3
|
-
import { CommandValidator } from './CommandValidator';
|
|
1
|
+
import { ICommand, PropertyChanged } from './ICommand.js';
|
|
2
|
+
import { CommandResult } from "./CommandResult.js";
|
|
3
|
+
import { CommandValidator } from './CommandValidator.js';
|
|
4
4
|
import { Constructor } from '@cratis/fundamentals';
|
|
5
|
-
import { GetHttpHeaders } from '../GetHttpHeaders';
|
|
6
|
-
import { PropertyDescriptor } from '../reflection/PropertyDescriptor';
|
|
7
|
-
import { ValidationResultSeverity } from '../validation/ValidationResultSeverity';
|
|
5
|
+
import { GetHttpHeaders } from '../GetHttpHeaders.js';
|
|
6
|
+
import { PropertyDescriptor } from '../reflection/PropertyDescriptor.js';
|
|
7
|
+
import { ValidationResultSeverity } from '../validation/ValidationResultSeverity.js';
|
|
8
8
|
export declare abstract class Command<TCommandContent = object, TCommandResponse = object> implements ICommand<TCommandContent, TCommandResponse> {
|
|
9
9
|
readonly _responseType: Constructor;
|
|
10
10
|
readonly _isResponseTypeEnumerable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../../commands/Command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../../commands/Command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAkB,MAAM,sBAAsB,CAAC;AAInE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAUrF,8BAAsB,OAAO,CAAC,eAAe,GAAG,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAE,YAAW,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAwBzH,QAAQ,CAAC,aAAa,EAAE,WAAW;IAAW,QAAQ,CAAC,yBAAyB,EAAE,OAAO;IAvBrG,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,oBAAoB,CAAiB;IAC7C,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEhC,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAE5C,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAE9B,QAAQ,CAAC,yBAAyB,CAAC,EAAE,wBAAwB,CAAC;IAC9D,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;IAC5D,QAAQ,KAAK,iBAAiB,IAAI,MAAM,EAAE,CAAC;IAE3C,OAAO,CAAC,cAAc,CAAc;IACpC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAkB;IAOpC,YAAqB,aAAa,EAAE,WAAW,YAAS,EAAW,yBAAyB,EAAE,OAAO,EAKpG;IAGD,eAAe,CAAC,YAAY,EAAE,MAAM,QAEnC;IAGD,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAExC;IAGD,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE9B;IAGD,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAErD;IAGK,OAAO,CAAC,eAAe,CAAC,EAAE,wBAAwB,EAAE,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAwB5H;IAGK,QAAQ,IAAI,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CA2BzD;IAGD,kBAAkB,IAAI,aAAa,CAAC,gBAAgB,CAAC,CAkBpD;IAED,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,0BAA0B;IAkBlC,OAAO,CAAC,iCAAiC;IAczC,OAAO,CAAC,YAAY;YAuBN,cAAc;IA+B5B,KAAK,IAAI,IAAI,CAOZ;IAGD,gBAAgB,CAAC,MAAM,EAAE,eAAe,QASvC;IAGD,iCAAiC,SAQhC;IAGD,aAAa,IAAI,IAAI,CAKpB;IAGD,IAAI,UAAU,YAEb;IAGD,eAAe,CAAC,QAAQ,EAAE,MAAM,QAY/B;IAGD,iBAAiB,CAAC,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,QAK3D;IAED,OAAO,CAAC,gBAAgB;CAM3B"}
|