@cratis/arc 20.54.5 → 20.55.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/dist/cjs/Globals.js +21 -8
- package/dist/cjs/Globals.js.map +1 -1
- package/dist/cjs/UrlHelpers.js +46 -13
- package/dist/cjs/UrlHelpers.js.map +1 -1
- package/dist/cjs/commands/Command.js +50 -38
- package/dist/cjs/commands/Command.js.map +1 -1
- package/dist/cjs/commands/CommandResult.js +58 -36
- package/dist/cjs/commands/CommandResult.js.map +1 -1
- package/dist/cjs/commands/CommandResults.js +24 -22
- package/dist/cjs/commands/CommandResults.js.map +1 -1
- package/dist/cjs/commands/CommandValidator.js +10 -2
- package/dist/cjs/commands/CommandValidator.js.map +1 -1
- package/dist/cjs/commands/index.js +2 -2
- package/dist/cjs/commands/index.js.map +1 -1
- package/dist/cjs/deepEqual.js +9 -9
- package/dist/cjs/deepEqual.js.map +1 -1
- package/dist/cjs/identity/IIdentityProvider.js +5 -1
- package/dist/cjs/identity/IIdentityProvider.js.map +1 -1
- package/dist/cjs/identity/IdentityProvider.js +44 -22
- package/dist/cjs/identity/IdentityProvider.js.map +1 -1
- package/dist/cjs/identity/index.js +2 -1
- package/dist/cjs/identity/index.js.map +1 -1
- package/dist/cjs/index.js +1 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/joinPaths.js +2 -0
- package/dist/cjs/joinPaths.js.map +1 -1
- package/dist/cjs/messaging/IMessenger.js +5 -1
- package/dist/cjs/messaging/IMessenger.js.map +1 -1
- package/dist/cjs/messaging/Message.js +10 -2
- package/dist/cjs/messaging/Message.js.map +1 -1
- package/dist/cjs/messaging/Messenger.js +15 -10
- package/dist/cjs/messaging/Messenger.js.map +1 -1
- package/dist/cjs/messaging/index.js +2 -1
- package/dist/cjs/messaging/index.js.map +1 -1
- package/dist/cjs/queries/HubConnectionKeepAlive.js +41 -6
- package/dist/cjs/queries/HubConnectionKeepAlive.js.map +1 -1
- package/dist/cjs/queries/IQueryProvider.js +5 -1
- package/dist/cjs/queries/IQueryProvider.js.map +1 -1
- package/dist/cjs/queries/NullObservableQueryConnection.js +13 -7
- package/dist/cjs/queries/NullObservableQueryConnection.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnection.js +43 -31
- package/dist/cjs/queries/ObservableQueryConnection.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnectionFactory.js +36 -14
- package/dist/cjs/queries/ObservableQueryConnectionFactory.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryConnectionPool.js +37 -6
- package/dist/cjs/queries/ObservableQueryConnectionPool.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryDiagnostics.js +29 -14
- package/dist/cjs/queries/ObservableQueryDiagnostics.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryFor.js +57 -31
- package/dist/cjs/queries/ObservableQueryFor.js.map +1 -1
- package/dist/cjs/queries/ObservableQueryMultiplexer.js +109 -51
- package/dist/cjs/queries/ObservableQueryMultiplexer.js.map +1 -1
- package/dist/cjs/queries/ObservableQuerySubscription.js +12 -3
- package/dist/cjs/queries/ObservableQuerySubscription.js.map +1 -1
- package/dist/cjs/queries/Paging.js +20 -6
- package/dist/cjs/queries/Paging.js.map +1 -1
- package/dist/cjs/queries/PagingInfo.js +23 -7
- package/dist/cjs/queries/PagingInfo.js.map +1 -1
- package/dist/cjs/queries/QueryFor.js +42 -24
- package/dist/cjs/queries/QueryFor.js.map +1 -1
- package/dist/cjs/queries/QueryInstanceCache.js +149 -37
- package/dist/cjs/queries/QueryInstanceCache.js.map +1 -1
- package/dist/cjs/queries/QueryProvider.js +13 -3
- package/dist/cjs/queries/QueryProvider.js.map +1 -1
- package/dist/cjs/queries/QueryResult.js +39 -33
- package/dist/cjs/queries/QueryResult.js.map +1 -1
- package/dist/cjs/queries/QueryResultWithState.js +26 -4
- package/dist/cjs/queries/QueryResultWithState.js.map +1 -1
- package/dist/cjs/queries/QueryTransportMethod.js +15 -5
- package/dist/cjs/queries/QueryTransportMethod.js.map +1 -1
- package/dist/cjs/queries/QueryValidator.js +10 -2
- package/dist/cjs/queries/QueryValidator.js.map +1 -1
- package/dist/cjs/queries/ReconnectPolicy.js +27 -6
- package/dist/cjs/queries/ReconnectPolicy.js.map +1 -1
- package/dist/cjs/queries/ServerSentEventHubConnection.js +107 -61
- package/dist/cjs/queries/ServerSentEventHubConnection.js.map +1 -1
- package/dist/cjs/queries/ServerSentEventQueryConnection.js +31 -23
- package/dist/cjs/queries/ServerSentEventQueryConnection.js.map +1 -1
- package/dist/cjs/queries/SortDirection.js +18 -6
- package/dist/cjs/queries/SortDirection.js.map +1 -1
- package/dist/cjs/queries/Sorting.js +16 -4
- package/dist/cjs/queries/Sorting.js.map +1 -1
- package/dist/cjs/queries/SortingActions.js +15 -4
- package/dist/cjs/queries/SortingActions.js.map +1 -1
- package/dist/cjs/queries/SortingActionsForObservableQuery.js +16 -4
- package/dist/cjs/queries/SortingActionsForObservableQuery.js.map +1 -1
- package/dist/cjs/queries/SortingActionsForQuery.js +16 -4
- package/dist/cjs/queries/SortingActionsForQuery.js.map +1 -1
- package/dist/cjs/queries/ValidateRequestArguments.js +13 -9
- package/dist/cjs/queries/ValidateRequestArguments.js.map +1 -1
- package/dist/cjs/queries/WebSocketHubConnection.js +98 -52
- package/dist/cjs/queries/WebSocketHubConnection.js.map +1 -1
- package/dist/cjs/queries/WebSocketMessage.js +18 -6
- package/dist/cjs/queries/WebSocketMessage.js.map +1 -1
- package/dist/cjs/queries/index.js +6 -18
- package/dist/cjs/queries/index.js.map +1 -1
- package/dist/cjs/reflection/ParameterDescriptor.js +11 -2
- package/dist/cjs/reflection/ParameterDescriptor.js.map +1 -1
- package/dist/cjs/reflection/ParametersHelper.js +11 -3
- package/dist/cjs/reflection/ParametersHelper.js.map +1 -1
- package/dist/cjs/reflection/PropertyDescriptor.js +11 -2
- package/dist/cjs/reflection/PropertyDescriptor.js.map +1 -1
- package/dist/cjs/reflection/index.js +2 -1
- package/dist/cjs/reflection/index.js.map +1 -1
- package/dist/cjs/validation/PropertyRule.js +23 -5
- package/dist/cjs/validation/PropertyRule.js.map +1 -1
- package/dist/cjs/validation/PropertyValidator.js +25 -6
- package/dist/cjs/validation/PropertyValidator.js.map +1 -1
- package/dist/cjs/validation/RuleBuilder.js +22 -4
- package/dist/cjs/validation/RuleBuilder.js.map +1 -1
- package/dist/cjs/validation/RuleBuilderExtensions.js +95 -13
- package/dist/cjs/validation/RuleBuilderExtensions.js.map +1 -1
- package/dist/cjs/validation/ValidationResult.js +6 -2
- package/dist/cjs/validation/ValidationResult.js.map +1 -1
- package/dist/cjs/validation/ValidationResultSeverity.js +21 -7
- package/dist/cjs/validation/ValidationResultSeverity.js.map +1 -1
- package/dist/cjs/validation/Validator.js +32 -9
- package/dist/cjs/validation/Validator.js.map +1 -1
- package/dist/cjs/validation/index.js +3 -5
- package/dist/cjs/validation/index.js.map +1 -1
- package/dist/cjs/validation/rules/ComparisonRules.js +46 -20
- package/dist/cjs/validation/rules/ComparisonRules.js.map +1 -1
- package/dist/cjs/validation/rules/EmailRule.js +12 -4
- package/dist/cjs/validation/rules/EmailRule.js.map +1 -1
- package/dist/cjs/validation/rules/LengthRules.js +39 -19
- package/dist/cjs/validation/rules/LengthRules.js.map +1 -1
- package/dist/cjs/validation/rules/NotEmptyRule.js +20 -6
- package/dist/cjs/validation/rules/NotEmptyRule.js.map +1 -1
- package/dist/cjs/validation/rules/PhoneRule.js +12 -4
- package/dist/cjs/validation/rules/PhoneRule.js.map +1 -1
- package/dist/cjs/validation/rules/RegexRule.js +15 -6
- package/dist/cjs/validation/rules/RegexRule.js.map +1 -1
- package/dist/cjs/validation/rules/UrlRule.js +12 -4
- package/dist/cjs/validation/rules/UrlRule.js.map +1 -1
- package/dist/esm/Globals.js +20 -8
- package/dist/esm/Globals.js.map +1 -1
- package/dist/esm/UrlHelpers.d.ts.map +1 -1
- package/dist/esm/UrlHelpers.js +46 -13
- package/dist/esm/UrlHelpers.js.map +1 -1
- package/dist/esm/commands/Command.d.ts.map +1 -1
- package/dist/esm/commands/Command.js +50 -38
- package/dist/esm/commands/Command.js.map +1 -1
- package/dist/esm/commands/CommandResult.d.ts.map +1 -1
- package/dist/esm/commands/CommandResult.js +58 -36
- package/dist/esm/commands/CommandResult.js.map +1 -1
- package/dist/esm/commands/CommandResults.d.ts.map +1 -1
- package/dist/esm/commands/CommandResults.js +24 -22
- package/dist/esm/commands/CommandResults.js.map +1 -1
- package/dist/esm/commands/CommandValidator.d.ts.map +1 -1
- package/dist/esm/commands/CommandValidator.js +10 -2
- package/dist/esm/commands/CommandValidator.js.map +1 -1
- package/dist/esm/commands/for_Command/CommandWithRouteParams.d.ts.map +1 -1
- package/dist/esm/commands/for_Command/SomeCommand.d.ts.map +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_with_validator.d.ts.map +1 -1
- package/dist/esm/commands/index.js +3 -1
- package/dist/esm/commands/index.js.map +1 -1
- package/dist/esm/deepEqual.d.ts.map +1 -1
- package/dist/esm/deepEqual.js +9 -9
- package/dist/esm/deepEqual.js.map +1 -1
- package/dist/esm/given.d.ts.map +1 -1
- package/dist/esm/helpers/fetchHelper.d.ts.map +1 -1
- package/dist/esm/identity/IIdentityProvider.d.ts.map +1 -1
- package/dist/esm/identity/IIdentityProvider.js +5 -1
- package/dist/esm/identity/IIdentityProvider.js.map +1 -1
- package/dist/esm/identity/IdentityProvider.d.ts.map +1 -1
- package/dist/esm/identity/IdentityProvider.js +44 -22
- package/dist/esm/identity/IdentityProvider.js.map +1 -1
- package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.d.ts.map +1 -1
- package/dist/esm/identity/index.js +3 -0
- package/dist/esm/identity/index.js.map +1 -1
- package/dist/esm/joinPaths.js +2 -0
- package/dist/esm/joinPaths.js.map +1 -1
- package/dist/esm/messaging/IMessenger.d.ts.map +1 -1
- package/dist/esm/messaging/IMessenger.js +5 -1
- package/dist/esm/messaging/IMessenger.js.map +1 -1
- package/dist/esm/messaging/Message.d.ts.map +1 -1
- package/dist/esm/messaging/Message.js +10 -2
- package/dist/esm/messaging/Message.js.map +1 -1
- package/dist/esm/messaging/Messenger.d.ts.map +1 -1
- package/dist/esm/messaging/Messenger.js +15 -10
- package/dist/esm/messaging/Messenger.js.map +1 -1
- package/dist/esm/messaging/for_Messenger/when_scoping_messages.js.map +1 -1
- package/dist/esm/messaging/index.js +3 -0
- package/dist/esm/messaging/index.js.map +1 -1
- package/dist/esm/queries/HubConnectionKeepAlive.d.ts.map +1 -1
- package/dist/esm/queries/HubConnectionKeepAlive.js +41 -6
- package/dist/esm/queries/HubConnectionKeepAlive.js.map +1 -1
- package/dist/esm/queries/IQueryProvider.d.ts.map +1 -1
- package/dist/esm/queries/IQueryProvider.js +5 -1
- package/dist/esm/queries/IQueryProvider.js.map +1 -1
- package/dist/esm/queries/NullObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/NullObservableQueryConnection.js +13 -7
- package/dist/esm/queries/NullObservableQueryConnection.js.map +1 -1
- package/dist/esm/queries/ObservableQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryConnection.js +43 -31
- package/dist/esm/queries/ObservableQueryConnection.js.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionFactory.js +36 -14
- package/dist/esm/queries/ObservableQueryConnectionFactory.js.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionPool.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryConnectionPool.js +37 -6
- package/dist/esm/queries/ObservableQueryConnectionPool.js.map +1 -1
- package/dist/esm/queries/ObservableQueryDiagnostics.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryDiagnostics.js +29 -14
- package/dist/esm/queries/ObservableQueryDiagnostics.js.map +1 -1
- package/dist/esm/queries/ObservableQueryFor.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryFor.js +57 -31
- package/dist/esm/queries/ObservableQueryFor.js.map +1 -1
- package/dist/esm/queries/ObservableQueryMultiplexer.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQueryMultiplexer.js +109 -51
- package/dist/esm/queries/ObservableQueryMultiplexer.js.map +1 -1
- package/dist/esm/queries/ObservableQuerySubscription.d.ts.map +1 -1
- package/dist/esm/queries/ObservableQuerySubscription.js +12 -3
- package/dist/esm/queries/ObservableQuerySubscription.js.map +1 -1
- package/dist/esm/queries/Paging.d.ts.map +1 -1
- package/dist/esm/queries/Paging.js +20 -6
- package/dist/esm/queries/Paging.js.map +1 -1
- package/dist/esm/queries/PagingInfo.d.ts.map +1 -1
- package/dist/esm/queries/PagingInfo.js +23 -7
- package/dist/esm/queries/PagingInfo.js.map +1 -1
- package/dist/esm/queries/QueryFor.d.ts.map +1 -1
- package/dist/esm/queries/QueryFor.js +42 -24
- package/dist/esm/queries/QueryFor.js.map +1 -1
- package/dist/esm/queries/QueryInstanceCache.d.ts.map +1 -1
- package/dist/esm/queries/QueryInstanceCache.js +149 -37
- package/dist/esm/queries/QueryInstanceCache.js.map +1 -1
- package/dist/esm/queries/QueryProvider.d.ts.map +1 -1
- package/dist/esm/queries/QueryProvider.js +13 -3
- package/dist/esm/queries/QueryProvider.js.map +1 -1
- package/dist/esm/queries/QueryResult.d.ts.map +1 -1
- package/dist/esm/queries/QueryResult.js +39 -33
- package/dist/esm/queries/QueryResult.js.map +1 -1
- package/dist/esm/queries/QueryResultWithState.d.ts.map +1 -1
- package/dist/esm/queries/QueryResultWithState.js +26 -4
- package/dist/esm/queries/QueryResultWithState.js.map +1 -1
- package/dist/esm/queries/QueryTransportMethod.js +13 -5
- package/dist/esm/queries/QueryTransportMethod.js.map +1 -1
- package/dist/esm/queries/QueryValidator.d.ts.map +1 -1
- package/dist/esm/queries/QueryValidator.js +10 -2
- package/dist/esm/queries/QueryValidator.js.map +1 -1
- package/dist/esm/queries/ReconnectPolicy.d.ts.map +1 -1
- package/dist/esm/queries/ReconnectPolicy.js +27 -6
- package/dist/esm/queries/ReconnectPolicy.js.map +1 -1
- package/dist/esm/queries/ServerSentEventHubConnection.d.ts.map +1 -1
- package/dist/esm/queries/ServerSentEventHubConnection.js +107 -61
- package/dist/esm/queries/ServerSentEventHubConnection.js.map +1 -1
- package/dist/esm/queries/ServerSentEventQueryConnection.d.ts.map +1 -1
- package/dist/esm/queries/ServerSentEventQueryConnection.js +31 -23
- package/dist/esm/queries/ServerSentEventQueryConnection.js.map +1 -1
- package/dist/esm/queries/SortDirection.js +16 -6
- package/dist/esm/queries/SortDirection.js.map +1 -1
- package/dist/esm/queries/Sorting.d.ts.map +1 -1
- package/dist/esm/queries/Sorting.js +16 -4
- package/dist/esm/queries/Sorting.js.map +1 -1
- package/dist/esm/queries/SortingActions.d.ts.map +1 -1
- package/dist/esm/queries/SortingActions.js +15 -4
- package/dist/esm/queries/SortingActions.js.map +1 -1
- package/dist/esm/queries/SortingActionsForObservableQuery.d.ts.map +1 -1
- package/dist/esm/queries/SortingActionsForObservableQuery.js +16 -4
- package/dist/esm/queries/SortingActionsForObservableQuery.js.map +1 -1
- package/dist/esm/queries/SortingActionsForQuery.d.ts.map +1 -1
- package/dist/esm/queries/SortingActionsForQuery.js +16 -4
- package/dist/esm/queries/SortingActionsForQuery.js.map +1 -1
- package/dist/esm/queries/ValidateRequestArguments.js +13 -9
- package/dist/esm/queries/ValidateRequestArguments.js.map +1 -1
- package/dist/esm/queries/WebSocketHubConnection.d.ts.map +1 -1
- package/dist/esm/queries/WebSocketHubConnection.js +97 -52
- package/dist/esm/queries/WebSocketHubConnection.js.map +1 -1
- package/dist/esm/queries/WebSocketMessage.js +16 -6
- package/dist/esm/queries/WebSocketMessage.js.map +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_with_websocket.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.d.ts.map +1 -1
- package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts.map +1 -1
- package/dist/esm/queries/for_QueryFor/given/TestQueries.d.ts.map +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_with_validator.d.ts.map +1 -1
- package/dist/esm/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.d.ts.map +1 -1
- package/dist/esm/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.d.ts.map +1 -1
- package/dist/esm/queries/index.js +3 -1
- package/dist/esm/queries/index.js.map +1 -1
- package/dist/esm/reflection/ParameterDescriptor.d.ts.map +1 -1
- package/dist/esm/reflection/ParameterDescriptor.js +11 -2
- package/dist/esm/reflection/ParameterDescriptor.js.map +1 -1
- package/dist/esm/reflection/ParametersHelper.d.ts.map +1 -1
- package/dist/esm/reflection/ParametersHelper.js +11 -3
- package/dist/esm/reflection/ParametersHelper.js.map +1 -1
- package/dist/esm/reflection/PropertyDescriptor.d.ts.map +1 -1
- package/dist/esm/reflection/PropertyDescriptor.js +11 -2
- package/dist/esm/reflection/PropertyDescriptor.js.map +1 -1
- package/dist/esm/reflection/index.js +3 -0
- package/dist/esm/reflection/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/validation/PropertyRule.d.ts.map +1 -1
- package/dist/esm/validation/PropertyRule.js +23 -5
- package/dist/esm/validation/PropertyRule.js.map +1 -1
- package/dist/esm/validation/PropertyValidator.d.ts.map +1 -1
- package/dist/esm/validation/PropertyValidator.js +25 -6
- package/dist/esm/validation/PropertyValidator.js.map +1 -1
- package/dist/esm/validation/RuleBuilder.d.ts.map +1 -1
- package/dist/esm/validation/RuleBuilder.js +22 -4
- package/dist/esm/validation/RuleBuilder.js.map +1 -1
- package/dist/esm/validation/RuleBuilderExtensions.js +95 -13
- package/dist/esm/validation/RuleBuilderExtensions.js.map +1 -1
- package/dist/esm/validation/ValidationResult.d.ts.map +1 -1
- package/dist/esm/validation/ValidationResult.js +6 -2
- package/dist/esm/validation/ValidationResult.js.map +1 -1
- package/dist/esm/validation/ValidationResultSeverity.js +19 -7
- package/dist/esm/validation/ValidationResultSeverity.js.map +1 -1
- package/dist/esm/validation/Validator.d.ts.map +1 -1
- package/dist/esm/validation/Validator.js +32 -9
- package/dist/esm/validation/Validator.js.map +1 -1
- package/dist/esm/validation/index.js +3 -0
- package/dist/esm/validation/index.js.map +1 -1
- package/dist/esm/validation/rules/ComparisonRules.d.ts.map +1 -1
- package/dist/esm/validation/rules/ComparisonRules.js +46 -20
- package/dist/esm/validation/rules/ComparisonRules.js.map +1 -1
- package/dist/esm/validation/rules/EmailRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/EmailRule.js +12 -4
- package/dist/esm/validation/rules/EmailRule.js.map +1 -1
- package/dist/esm/validation/rules/LengthRules.d.ts.map +1 -1
- package/dist/esm/validation/rules/LengthRules.js +39 -19
- package/dist/esm/validation/rules/LengthRules.js.map +1 -1
- package/dist/esm/validation/rules/NotEmptyRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/NotEmptyRule.js +20 -6
- package/dist/esm/validation/rules/NotEmptyRule.js.map +1 -1
- package/dist/esm/validation/rules/PhoneRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/PhoneRule.js +12 -4
- package/dist/esm/validation/rules/PhoneRule.js.map +1 -1
- package/dist/esm/validation/rules/RegexRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/RegexRule.js +15 -6
- package/dist/esm/validation/rules/RegexRule.js.map +1 -1
- package/dist/esm/validation/rules/UrlRule.d.ts.map +1 -1
- package/dist/esm/validation/rules/UrlRule.js +12 -4
- package/dist/esm/validation/rules/UrlRule.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/GetHttpHeaders.d.ts +0 -2
- package/dist/cjs/GetHttpHeaders.d.ts.map +0 -1
- package/dist/cjs/Globals.d.ts +0 -21
- package/dist/cjs/Globals.d.ts.map +0 -1
- package/dist/cjs/ICanBeConfigured.d.ts +0 -8
- package/dist/cjs/ICanBeConfigured.d.ts.map +0 -1
- package/dist/cjs/UrlHelpers.d.ts +0 -9
- package/dist/cjs/UrlHelpers.d.ts.map +0 -1
- package/dist/cjs/commands/Command.d.ts +0 -45
- package/dist/cjs/commands/Command.d.ts.map +0 -1
- package/dist/cjs/commands/CommandResult.d.ts +0 -49
- package/dist/cjs/commands/CommandResult.d.ts.map +0 -1
- package/dist/cjs/commands/CommandResults.d.ts +0 -23
- package/dist/cjs/commands/CommandResults.d.ts.map +0 -1
- package/dist/cjs/commands/CommandValidator.d.ts +0 -6
- package/dist/cjs/commands/CommandValidator.d.ts.map +0 -1
- package/dist/cjs/commands/ICommand.d.ts +0 -21
- package/dist/cjs/commands/ICommand.d.ts.map +0 -1
- package/dist/cjs/commands/ICommandResult.d.ts +0 -15
- package/dist/cjs/commands/ICommandResult.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/CommandWithRouteParams.d.ts +0 -16
- package/dist/cjs/commands/for_Command/CommandWithRouteParams.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/SomeCommand.d.ts +0 -14
- package/dist/cjs/commands/for_Command/SomeCommand.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/given/a_command.d.ts +0 -12
- package/dist/cjs/commands/for_Command/given/a_command.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/given/a_command_with_validator.d.ts +0 -33
- package/dist/cjs/commands/for_Command/given/a_command_with_validator.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_clearing_the_command.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_clearing_the_command.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_constructing_command.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_constructing_command.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_origin.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_origin.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/and_command_route_not_found.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/and_command_route_not_found.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_allowed_severity_warning.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_allowed_severity_warning.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failing.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failing.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_passing.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_client_validation_passing.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_command_properties.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_command_properties.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_custom_http_headers.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_custom_http_headers.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_empty_required_string_property.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_empty_required_string_property.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_microservice_header.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_microservice_header.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_missing_required_property.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_missing_required_property.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_null_required_property.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_null_required_property.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_route_parameters.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_route_parameters.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_executing/with_successful_response.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_executing/with_successful_response.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_property_has_changed_and_we_revert.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_property_has_changed_and_we_revert.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/does_not_update_initial_values.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/does_not_update_initial_values.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/with_client_validation_failure.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/with_client_validation_failure.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/with_client_validation_passing.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/with_client_validation_passing.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/with_empty_required_string_property.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/with_empty_required_string_property.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/with_null_required_property.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/with_null_required_property.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/with_required_property_missing.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/with_required_property_missing.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/with_route_parameters.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/with_route_parameters.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/with_successful_response.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/with_successful_response.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating/with_validation_errors.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating/with_validation_errors.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating_client_side/with_client_validation_failure.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating_client_side/with_client_validation_failure.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating_client_side/with_client_validation_passing.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating_client_side/with_client_validation_passing.d.ts.map +0 -1
- package/dist/cjs/commands/for_Command/when_validating_client_side/with_required_property_missing.d.ts +0 -2
- package/dist/cjs/commands/for_Command/when_validating_client_side/with_required_property_missing.d.ts.map +0 -1
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts +0 -2
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts.map +0 -1
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts +0 -2
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts.map +0 -1
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts +0 -2
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts.map +0 -1
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts +0 -2
- package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts.map +0 -1
- package/dist/cjs/commands/for_CommandResult/when_constructing_with_primitive_response.d.ts +0 -2
- package/dist/cjs/commands/for_CommandResult/when_constructing_with_primitive_response.d.ts.map +0 -1
- package/dist/cjs/commands/index.d.ts +0 -8
- package/dist/cjs/commands/index.d.ts.map +0 -1
- package/dist/cjs/deepEqual.d.ts +0 -2
- package/dist/cjs/deepEqual.d.ts.map +0 -1
- package/dist/cjs/given.d.ts +0 -5
- package/dist/cjs/given.d.ts.map +0 -1
- package/dist/cjs/helpers/fetchHelper.d.ts +0 -7
- package/dist/cjs/helpers/fetchHelper.d.ts.map +0 -1
- package/dist/cjs/identity/IIdentity.d.ts +0 -10
- package/dist/cjs/identity/IIdentity.d.ts.map +0 -1
- package/dist/cjs/identity/IIdentityProvider.d.ts +0 -6
- package/dist/cjs/identity/IIdentityProvider.d.ts.map +0 -1
- package/dist/cjs/identity/IdentityProvider.d.ts +0 -20
- package/dist/cjs/identity/IdentityProvider.d.ts.map +0 -1
- package/dist/cjs/identity/IdentityProviderResult.d.ts +0 -7
- package/dist/cjs/identity/IdentityProviderResult.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/given/an_identity_provider.d.ts +0 -12
- package/dist/cjs/identity/for_IdentityProvider/given/an_identity_provider.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_roles.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_roles.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_getting_current/without_roles.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_getting_current/without_roles.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_origin_set.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_origin_set.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_unauthorized_response.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_unauthorized_response.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_setting_api_base_path.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_setting_api_base_path.d.ts.map +0 -1
- package/dist/cjs/identity/for_IdentityProvider/when_setting_origin.d.ts +0 -2
- package/dist/cjs/identity/for_IdentityProvider/when_setting_origin.d.ts.map +0 -1
- package/dist/cjs/identity/index.d.ts +0 -5
- package/dist/cjs/identity/index.d.ts.map +0 -1
- package/dist/cjs/index.d.ts +0 -14
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/joinPaths.d.ts +0 -2
- package/dist/cjs/joinPaths.d.ts.map +0 -1
- package/dist/cjs/messaging/IMessenger.d.ts +0 -10
- package/dist/cjs/messaging/IMessenger.d.ts.map +0 -1
- package/dist/cjs/messaging/Message.d.ts +0 -7
- package/dist/cjs/messaging/Message.d.ts.map +0 -1
- package/dist/cjs/messaging/Messenger.d.ts +0 -20
- package/dist/cjs/messaging/Messenger.d.ts.map +0 -1
- package/dist/cjs/messaging/for_Messenger/when_scoping_messages.d.ts +0 -2
- package/dist/cjs/messaging/for_Messenger/when_scoping_messages.d.ts.map +0 -1
- package/dist/cjs/messaging/index.d.ts +0 -4
- package/dist/cjs/messaging/index.d.ts.map +0 -1
- package/dist/cjs/queries/ChangeSet.d.ts +0 -6
- package/dist/cjs/queries/ChangeSet.d.ts.map +0 -1
- package/dist/cjs/queries/HubConnectionKeepAlive.d.ts +0 -12
- package/dist/cjs/queries/HubConnectionKeepAlive.d.ts.map +0 -1
- package/dist/cjs/queries/IChangeStreamFor.d.ts +0 -4
- package/dist/cjs/queries/IChangeStreamFor.d.ts.map +0 -1
- package/dist/cjs/queries/IObservableQueryConnection.d.ts +0 -8
- package/dist/cjs/queries/IObservableQueryConnection.d.ts.map +0 -1
- package/dist/cjs/queries/IObservableQueryDiagnostics.d.ts +0 -9
- package/dist/cjs/queries/IObservableQueryDiagnostics.d.ts.map +0 -1
- package/dist/cjs/queries/IObservableQueryFor.d.ts +0 -14
- package/dist/cjs/queries/IObservableQueryFor.d.ts.map +0 -1
- package/dist/cjs/queries/IObservableQueryHubConnection.d.ts +0 -12
- package/dist/cjs/queries/IObservableQueryHubConnection.d.ts.map +0 -1
- package/dist/cjs/queries/IQuery.d.ts +0 -10
- package/dist/cjs/queries/IQuery.d.ts.map +0 -1
- package/dist/cjs/queries/IQueryFor.d.ts +0 -13
- package/dist/cjs/queries/IQueryFor.d.ts.map +0 -1
- package/dist/cjs/queries/IQueryProvider.d.ts +0 -6
- package/dist/cjs/queries/IQueryProvider.d.ts.map +0 -1
- package/dist/cjs/queries/IQueryResult.d.ts +0 -17
- package/dist/cjs/queries/IQueryResult.d.ts.map +0 -1
- package/dist/cjs/queries/IReconnectPolicy.d.ts +0 -8
- package/dist/cjs/queries/IReconnectPolicy.d.ts.map +0 -1
- package/dist/cjs/queries/NullObservableQueryConnection.d.ts +0 -11
- package/dist/cjs/queries/NullObservableQueryConnection.d.ts.map +0 -1
- package/dist/cjs/queries/ObservableQueryConnection.d.ts +0 -29
- package/dist/cjs/queries/ObservableQueryConnection.d.ts.map +0 -1
- package/dist/cjs/queries/ObservableQueryConnectionFactory.d.ts +0 -13
- package/dist/cjs/queries/ObservableQueryConnectionFactory.d.ts.map +0 -1
- package/dist/cjs/queries/ObservableQueryConnectionPool.d.ts +0 -9
- package/dist/cjs/queries/ObservableQueryConnectionPool.d.ts.map +0 -1
- package/dist/cjs/queries/ObservableQueryDiagnostics.d.ts +0 -21
- package/dist/cjs/queries/ObservableQueryDiagnostics.d.ts.map +0 -1
- package/dist/cjs/queries/ObservableQueryDiagnosticsSnapshot.d.ts +0 -48
- package/dist/cjs/queries/ObservableQueryDiagnosticsSnapshot.d.ts.map +0 -1
- package/dist/cjs/queries/ObservableQueryFor.d.ts +0 -37
- package/dist/cjs/queries/ObservableQueryFor.d.ts.map +0 -1
- package/dist/cjs/queries/ObservableQueryMultiplexer.d.ts +0 -33
- package/dist/cjs/queries/ObservableQueryMultiplexer.d.ts.map +0 -1
- package/dist/cjs/queries/ObservableQuerySubscription.d.ts +0 -7
- package/dist/cjs/queries/ObservableQuerySubscription.d.ts.map +0 -1
- package/dist/cjs/queries/Paging.d.ts +0 -8
- package/dist/cjs/queries/Paging.d.ts.map +0 -1
- package/dist/cjs/queries/PagingInfo.d.ts +0 -9
- package/dist/cjs/queries/PagingInfo.d.ts.map +0 -1
- package/dist/cjs/queries/QueryFor.d.ts +0 -34
- package/dist/cjs/queries/QueryFor.d.ts.map +0 -1
- package/dist/cjs/queries/QueryInstanceCache.d.ts +0 -39
- package/dist/cjs/queries/QueryInstanceCache.d.ts.map +0 -1
- package/dist/cjs/queries/QueryProvider.d.ts +0 -13
- package/dist/cjs/queries/QueryProvider.d.ts.map +0 -1
- package/dist/cjs/queries/QueryResult.d.ts +0 -53
- package/dist/cjs/queries/QueryResult.d.ts.map +0 -1
- package/dist/cjs/queries/QueryResultWithState.d.ts +0 -24
- package/dist/cjs/queries/QueryResultWithState.d.ts.map +0 -1
- package/dist/cjs/queries/QueryTransportMethod.d.ts +0 -5
- package/dist/cjs/queries/QueryTransportMethod.d.ts.map +0 -1
- package/dist/cjs/queries/QueryValidator.d.ts +0 -6
- package/dist/cjs/queries/QueryValidator.d.ts.map +0 -1
- package/dist/cjs/queries/ReconnectPolicy.d.ts +0 -15
- package/dist/cjs/queries/ReconnectPolicy.d.ts.map +0 -1
- package/dist/cjs/queries/ServerSentEventHubConnection.d.ts +0 -41
- package/dist/cjs/queries/ServerSentEventHubConnection.d.ts.map +0 -1
- package/dist/cjs/queries/ServerSentEventQueryConnection.d.ts +0 -14
- package/dist/cjs/queries/ServerSentEventQueryConnection.d.ts.map +0 -1
- package/dist/cjs/queries/SortDirection.d.ts +0 -6
- package/dist/cjs/queries/SortDirection.d.ts.map +0 -1
- package/dist/cjs/queries/Sorting.d.ts +0 -9
- package/dist/cjs/queries/Sorting.d.ts.map +0 -1
- package/dist/cjs/queries/SortingActions.d.ts +0 -10
- package/dist/cjs/queries/SortingActions.d.ts.map +0 -1
- package/dist/cjs/queries/SortingActionsForObservableQuery.d.ts +0 -10
- package/dist/cjs/queries/SortingActionsForObservableQuery.d.ts.map +0 -1
- package/dist/cjs/queries/SortingActionsForQuery.d.ts +0 -10
- package/dist/cjs/queries/SortingActionsForQuery.d.ts.map +0 -1
- package/dist/cjs/queries/ValidateRequestArguments.d.ts +0 -2
- package/dist/cjs/queries/ValidateRequestArguments.d.ts.map +0 -1
- package/dist/cjs/queries/WebSocketHubConnection.d.ts +0 -58
- package/dist/cjs/queries/WebSocketHubConnection.d.ts.map +0 -1
- package/dist/cjs/queries/WebSocketMessage.d.ts +0 -11
- package/dist/cjs/queries/WebSocketMessage.d.ts.map +0 -1
- package/dist/cjs/queries/for_HubConnectionKeepAlive/behavior.d.ts +0 -2
- package/dist/cjs/queries/for_HubConnectionKeepAlive/behavior.d.ts.map +0 -1
- package/dist/cjs/queries/for_HubConnectionKeepAlive/when_started_with_custom_idle_threshold/respects_threshold.d.ts +0 -2
- package/dist/cjs/queries/for_HubConnectionKeepAlive/when_started_with_custom_idle_threshold/respects_threshold.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts +0 -9
- package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.d.ts +0 -21
- package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnection/when_constructing.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnection/when_constructing.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnection/when_receiving_data_message_with_type.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnection/when_receiving_data_message_with_type.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnection/when_receiving_legacy_data_message.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnection/when_receiving_legacy_data_message.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.d.ts +0 -9
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_sse_transport.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_sse_transport.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_websocket_transport.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_websocket_transport.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_exceeding_safe_limit.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_exceeding_safe_limit.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_within_safe_limit.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_within_safe_limit.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport_and_high_connection_count.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport_and_high_connection_count.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_least_loaded_slot_is_chosen.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_least_loaded_slot_is_chosen.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_size_is_zero.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_size_is_zero.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_single_slot/and_one_subscriber.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_single_slot/and_one_subscriber.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryDiagnostics/when_tracking_owners.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryDiagnostics/when_tracking_owners.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/given/TestQueries.d.ts +0 -53
- package/dist/cjs/queries/for_ObservableQueryFor/given/TestQueries.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts +0 -10
- package/dist/cjs/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_disposing.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_disposing.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partially_missing_required_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partially_missing_required_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_microservice.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_microservice.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_origin.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_setting_origin.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_and_sse_transport.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_and_sse_transport.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_disabled_and_sse_transport.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_disabled_and_sse_transport.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_enabled.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_enabled.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_multiple_required_route_parameters.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_multiple_required_route_parameters.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_null_or_undefined_args.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_null_or_undefined_args.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_route_and_query_args.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_route_and_query_args.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_stale_descriptor_backed_instance_property.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_stale_descriptor_backed_instance_property.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_partially_missing_required_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_partially_missing_required_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_changed_cache_key.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_changed_cache_key.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_new_cache_key.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_new_cache_key.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_an_explicit_size.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_an_explicit_size.d.ts.map +0 -1
- package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_the_same_cache_key.d.ts +0 -2
- package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_the_same_cache_key.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/given/TestQueries.d.ts +0 -57
- package/dist/cjs/queries/for_QueryFor/given/TestQueries.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/given/a_query_for.d.ts +0 -11
- package/dist/cjs/queries/for_QueryFor/given/a_query_for.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/given/a_query_with_validator.d.ts +0 -35
- package/dist/cjs/queries/for_QueryFor/given/a_query_with_validator.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_constructing.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_constructing.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_constructing_enumerable.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_constructing_enumerable.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_abort_controller.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_abort_controller.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_parameter_descriptor_values.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_parameter_descriptor_values.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_fetch_error.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_fetch_error.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_paging.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_paging.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_partially_missing_required_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_partially_missing_required_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_sorting.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_sorting.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_setting_api_base_path.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_setting_api_base_path.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_setting_microservice.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_setting_microservice.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryFor/when_setting_origin.d.ts +0 -2
- package/dist/cjs/queries/for_QueryFor/when_setting_origin.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_acquiring/after_release.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_acquiring/after_release.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_empty_arguments_object.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_empty_arguments_object.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_same_arguments_different_order.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_same_arguments_different_order.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/without_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/without_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_deferring_dispose/with_cancellation_before_timeout.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_deferring_dispose/with_cancellation_before_timeout.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_deferring_dispose/without_cancellation.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_deferring_dispose/without_cancellation.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/an_empty_cache.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/an_empty_cache.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/with_active_subscriptions.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/with_active_subscriptions.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/with_pending_deferred_cleanup.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/with_pending_deferred_cleanup.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_getting_last_result/with_no_result_stored.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_getting_last_result/with_no_result_stored.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_getting_last_result/with_stored_result.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_getting_last_result/with_stored_result.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_getting_or_creating/with_existing_entry.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_getting_or_creating/with_existing_entry.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_getting_or_creating/with_new_entry.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_getting_or_creating/with_new_entry.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/a_key_that_does_not_exist.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/a_key_that_does_not_exist.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/one_of_two_subscribers.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/one_of_two_subscribers.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/the_only_subscriber.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/the_only_subscriber.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/after_timeout_elapses.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/after_timeout_elapses.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/before_timeout_elapses.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/before_timeout_elapses.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_a_result.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_a_result.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_changed_data.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_changed_data.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_identical_data_as_previous_result.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_identical_data_as_previous_result.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/without_previous_result.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/without_previous_result.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_active_subscriptions.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_active_subscriptions.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_no_subscriptions.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_no_subscriptions.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_pending_deferred_cleanup.d.ts +0 -2
- package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_pending_deferred_cleanup.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_enumerable.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_enumerable.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_non_enumerable.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_non_enumerable.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResult/when_data_is_single_item_for_enumerable/and_it_is_an_array.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResult/when_data_is_single_item_for_enumerable/and_it_is_an_array.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_empty/with_null_default_value.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_empty/with_null_default_value.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_empty/with_undefined_default_value.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_empty/with_undefined_default_value.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_from_query_result/with_null_data.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_from_query_result/with_null_data.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_from_query_result/with_undefined_data.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_from_query_result/with_undefined_data.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_null_default_value.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_null_default_value.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_undefined_default_value.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_undefined_default_value.d.ts.map +0 -1
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_valid_default_value.d.ts +0 -2
- package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_valid_default_value.d.ts.map +0 -1
- package/dist/cjs/queries/for_ReconnectPolicy/when_canceling/with_pending_timer.d.ts +0 -2
- package/dist/cjs/queries/for_ReconnectPolicy/when_canceling/with_pending_timer.d.ts.map +0 -1
- package/dist/cjs/queries/for_ReconnectPolicy/when_cancelling/with_pending_timer.d.ts +0 -2
- package/dist/cjs/queries/for_ReconnectPolicy/when_cancelling/with_pending_timer.d.ts.map +0 -1
- package/dist/cjs/queries/for_ReconnectPolicy/when_resetting/after_scheduling.d.ts +0 -2
- package/dist/cjs/queries/for_ReconnectPolicy/when_resetting/after_scheduling.d.ts.map +0 -1
- package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/delay_is_capped_at_max.d.ts +0 -2
- package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/delay_is_capped_at_max.d.ts.map +0 -1
- package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/first_attempt.d.ts +0 -2
- package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/first_attempt.d.ts.map +0 -1
- package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_reached/abandons_reconnect.d.ts +0 -2
- package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_reached/abandons_reconnect.d.ts.map +0 -1
- package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_rescheduled_before_first_fires/cancels_previous_timer.d.ts +0 -2
- package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_rescheduled_before_first_fires/cancels_previous_timer.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.d.ts +0 -21
- package/dist/cjs/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_connect_timeout_fires/triggers_reconnect.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_connect_timeout_fires/triggers_reconnect.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_disposing/cleans_up_resources.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_disposing/cleans_up_resources.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_keep_alive_is_idle/triggers_reconnect.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_keep_alive_is_idle/triggers_reconnect.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_reconnecting/after_error.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_reconnecting/after_error.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/and_subscribe_post_fails.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/and_subscribe_post_fails.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/queues_until_connected.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/queues_until_connected.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/sends_subscribe_post.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/sends_subscribe_post.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_unsubscribing/nulls_event_source_handlers_before_closing.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_unsubscribing/nulls_event_source_handlers_before_closing.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_unsubscribing/the_only_query.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventHubConnection/when_unsubscribing/the_only_query.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_connecting/with_query_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_connecting/with_query_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_connecting/without_event_source_available.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_connecting/without_event_source_available.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_disconnecting/after_connecting.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_disconnecting/after_connecting.d.ts.map +0 -1
- package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_disconnecting/before_message_arrives.d.ts +0 -2
- package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_disconnecting/before_message_arrives.d.ts.map +0 -1
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_empty_string_value.d.ts +0 -2
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_empty_string_value.d.ts.map +0 -1
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_missing_property.d.ts +0 -2
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_missing_property.d.ts.map +0 -1
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_no_required_arguments.d.ts +0 -2
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_no_required_arguments.d.ts.map +0 -1
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_null_value.d.ts +0 -2
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_null_value.d.ts.map +0 -1
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_numeric_zero_value.d.ts +0 -2
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_numeric_zero_value.d.ts.map +0 -1
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_undefined_value.d.ts +0 -2
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_undefined_value.d.ts.map +0 -1
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_valid_string_value.d.ts +0 -2
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_valid_string_value.d.ts.map +0 -1
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/without_arguments_object.d.ts +0 -2
- package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/without_arguments_object.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.d.ts +0 -23
- package/dist/cjs/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketHubConnection/when_disposing/cleans_up_resources.d.ts +0 -2
- package/dist/cjs/queries/for_WebSocketHubConnection/when_disposing/cleans_up_resources.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketHubConnection/when_keep_alive_is_idle/sends_a_ping.d.ts +0 -2
- package/dist/cjs/queries/for_WebSocketHubConnection/when_keep_alive_is_idle/sends_a_ping.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketHubConnection/when_receiving_a_message/resets_keep_alive_timer.d.ts +0 -2
- package/dist/cjs/queries/for_WebSocketHubConnection/when_receiving_a_message/resets_keep_alive_timer.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.d.ts +0 -2
- package/dist/cjs/queries/for_WebSocketHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketHubConnection/when_reconnecting/after_unexpected_close.d.ts +0 -2
- package/dist/cjs/queries/for_WebSocketHubConnection/when_reconnecting/after_unexpected_close.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketHubConnection/when_reconnecting/resubscribes_all_queries.d.ts +0 -2
- package/dist/cjs/queries/for_WebSocketHubConnection/when_reconnecting/resubscribes_all_queries.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketHubConnection/when_subscribing/to_a_query.d.ts +0 -2
- package/dist/cjs/queries/for_WebSocketHubConnection/when_subscribing/to_a_query.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketHubConnection/when_unsubscribing/nulls_socket_handlers_before_closing.d.ts +0 -2
- package/dist/cjs/queries/for_WebSocketHubConnection/when_unsubscribing/nulls_socket_handlers_before_closing.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketHubConnection/when_unsubscribing/the_only_query.d.ts +0 -2
- package/dist/cjs/queries/for_WebSocketHubConnection/when_unsubscribing/the_only_query.d.ts.map +0 -1
- package/dist/cjs/queries/for_WebSocketMessage/when_creating_messages.d.ts +0 -2
- package/dist/cjs/queries/for_WebSocketMessage/when_creating_messages.d.ts.map +0 -1
- package/dist/cjs/queries/index.d.ts +0 -39
- package/dist/cjs/queries/index.d.ts.map +0 -1
- package/dist/cjs/reflection/IHaveParameters.d.ts +0 -5
- package/dist/cjs/reflection/IHaveParameters.d.ts.map +0 -1
- package/dist/cjs/reflection/ParameterDescriptor.d.ts +0 -8
- package/dist/cjs/reflection/ParameterDescriptor.d.ts.map +0 -1
- package/dist/cjs/reflection/ParametersHelper.d.ts +0 -5
- package/dist/cjs/reflection/ParametersHelper.d.ts.map +0 -1
- package/dist/cjs/reflection/PropertyDescriptor.d.ts +0 -8
- package/dist/cjs/reflection/PropertyDescriptor.d.ts.map +0 -1
- package/dist/cjs/reflection/index.d.ts +0 -5
- package/dist/cjs/reflection/index.d.ts.map +0 -1
- package/dist/cjs/validation/IValidationRule.d.ts +0 -5
- package/dist/cjs/validation/IValidationRule.d.ts.map +0 -1
- package/dist/cjs/validation/PropertyRule.d.ts +0 -11
- package/dist/cjs/validation/PropertyRule.d.ts.map +0 -1
- package/dist/cjs/validation/PropertyValidator.d.ts +0 -11
- package/dist/cjs/validation/PropertyValidator.d.ts.map +0 -1
- package/dist/cjs/validation/RuleBuilder.d.ts +0 -11
- package/dist/cjs/validation/RuleBuilder.d.ts.map +0 -1
- package/dist/cjs/validation/RuleBuilderExtensions.d.ts +0 -32
- package/dist/cjs/validation/RuleBuilderExtensions.d.ts.map +0 -1
- package/dist/cjs/validation/ValidationResult.d.ts +0 -9
- package/dist/cjs/validation/ValidationResult.d.ts.map +0 -1
- package/dist/cjs/validation/ValidationResultSeverity.d.ts +0 -7
- package/dist/cjs/validation/ValidationResultSeverity.d.ts.map +0 -1
- package/dist/cjs/validation/Validator.d.ts +0 -11
- package/dist/cjs/validation/Validator.d.ts.map +0 -1
- package/dist/cjs/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts +0 -2
- package/dist/cjs/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts.map +0 -1
- package/dist/cjs/validation/for_Validator/when_using_custom_error_message.d.ts +0 -2
- package/dist/cjs/validation/for_Validator/when_using_custom_error_message.d.ts.map +0 -1
- package/dist/cjs/validation/for_Validator/when_validating/with_all_rules_passing.d.ts +0 -2
- package/dist/cjs/validation/for_Validator/when_validating/with_all_rules_passing.d.ts.map +0 -1
- package/dist/cjs/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts +0 -2
- package/dist/cjs/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts.map +0 -1
- package/dist/cjs/validation/for_Validator/when_validating/with_one_rule_failing.d.ts +0 -2
- package/dist/cjs/validation/for_Validator/when_validating/with_one_rule_failing.d.ts.map +0 -1
- package/dist/cjs/validation/index.d.ts +0 -14
- package/dist/cjs/validation/index.d.ts.map +0 -1
- package/dist/cjs/validation/rules/ComparisonRules.d.ts +0 -22
- package/dist/cjs/validation/rules/ComparisonRules.d.ts.map +0 -1
- package/dist/cjs/validation/rules/EmailRule.d.ts +0 -7
- package/dist/cjs/validation/rules/EmailRule.d.ts.map +0 -1
- package/dist/cjs/validation/rules/LengthRules.d.ts +0 -18
- package/dist/cjs/validation/rules/LengthRules.d.ts.map +0 -1
- package/dist/cjs/validation/rules/NotEmptyRule.d.ts +0 -10
- package/dist/cjs/validation/rules/NotEmptyRule.d.ts.map +0 -1
- package/dist/cjs/validation/rules/PhoneRule.d.ts +0 -7
- package/dist/cjs/validation/rules/PhoneRule.d.ts.map +0 -1
- package/dist/cjs/validation/rules/RegexRule.d.ts +0 -7
- package/dist/cjs/validation/rules/RegexRule.d.ts.map +0 -1
- package/dist/cjs/validation/rules/UrlRule.d.ts +0 -7
- package/dist/cjs/validation/rules/UrlRule.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts +0 -2
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts +0 -2
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts +0 -2
- package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts +0 -2
- package/dist/cjs/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts +0 -2
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts +0 -2
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts +0 -2
- package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts +0 -2
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts +0 -2
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts +0 -2
- package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts +0 -2
- package/dist/cjs/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts +0 -2
- package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts +0 -2
- package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts +0 -2
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts +0 -2
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts +0 -2
- package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts +0 -2
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts +0 -2
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts +0 -2
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts +0 -2
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts +0 -2
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts +0 -2
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts +0 -2
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts.map +0 -1
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts +0 -2
- package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyRule.d.ts","sourceRoot":"","sources":["../../../validation/PropertyRule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,8BAAsB,YAAY,CAAC,CAAC,EAAE,SAAS,CAAE,YAAW,eAAe,CAAC,CAAC,CAAC;IAStE,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,SAAS;IARnE,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"PropertyRule.d.ts","sourceRoot":"","sources":["../../../validation/PropertyRule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,8BAAsB,YAAY,CAAC,CAAC,EAAE,SAAS,CAAE,YAAW,eAAe,CAAC,CAAC,CAAC;IAStE,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,SAAS;IARnE,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;IAO/B,YACuB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,SAAS,EAC/D,mBAAmB,EAAE,MAAM,EAG9B;IAOD,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAGjC;IAGD,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAW9D;IAQD,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,GAAG,OAAO,CAAC;CACtE"}
|
|
@@ -1,21 +1,39 @@
|
|
|
1
1
|
import { ValidationResult } from './ValidationResult.js';
|
|
2
2
|
import { ValidationResultSeverity } from './ValidationResultSeverity.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
5
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
6
|
+
/**
|
|
7
|
+
* Base class for property-based validation rules.
|
|
8
|
+
* @template T The type being validated.
|
|
9
|
+
* @template TProperty The type of the property being validated.
|
|
10
|
+
*/ class PropertyRule {
|
|
5
11
|
propertyAccessor;
|
|
6
12
|
errorMessage;
|
|
7
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Initializes a new instance of the {@link PropertyRule} class.
|
|
15
|
+
* @param propertyAccessor Function to access the property value from the instance.
|
|
16
|
+
* @param defaultErrorMessage The default error message if validation fails.
|
|
17
|
+
*/ constructor(propertyAccessor, defaultErrorMessage){
|
|
8
18
|
this.propertyAccessor = propertyAccessor;
|
|
9
19
|
this.errorMessage = defaultErrorMessage;
|
|
10
20
|
}
|
|
11
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Set a custom error message for this rule.
|
|
23
|
+
* @param message The custom error message.
|
|
24
|
+
* @returns This rule instance for chaining.
|
|
25
|
+
*/ withMessage(message) {
|
|
12
26
|
this.errorMessage = message;
|
|
13
27
|
return this;
|
|
14
28
|
}
|
|
15
|
-
validate(instance, propertyName) {
|
|
29
|
+
/** @inheritdoc */ validate(instance, propertyName) {
|
|
16
30
|
const value = this.propertyAccessor(instance);
|
|
17
31
|
if (!this.isValid(value, instance)) {
|
|
18
|
-
return [
|
|
32
|
+
return [
|
|
33
|
+
new ValidationResult(ValidationResultSeverity.Error, this.errorMessage.replace('{PropertyName}', propertyName), [
|
|
34
|
+
propertyName
|
|
35
|
+
], null)
|
|
36
|
+
];
|
|
19
37
|
}
|
|
20
38
|
return [];
|
|
21
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyRule.js","sources":["../../../validation/PropertyRule.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 { IValidationRule } from './IValidationRule';\nimport { ValidationResult } from './ValidationResult';\nimport { ValidationResultSeverity } from './ValidationResultSeverity';\n\n/**\n * Base class for property-based validation rules.\n * @template T The type being validated.\n * @template TProperty The type of the property being validated.\n */\nexport abstract class PropertyRule<T, TProperty> implements IValidationRule<T> {\n protected errorMessage: string;\n\n /**\n * Initializes a new instance of the {@link PropertyRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param defaultErrorMessage The default error message if validation fails.\n */\n constructor(\n protected readonly propertyAccessor: (instance: T) => TProperty,\n defaultErrorMessage: string\n ) {\n this.errorMessage = defaultErrorMessage;\n }\n\n /**\n * Set a custom error message for this rule.\n * @param message The custom error message.\n * @returns This rule instance for chaining.\n */\n withMessage(message: string): this {\n this.errorMessage = message;\n return this;\n }\n\n /** @inheritdoc */\n validate(instance: T, propertyName: string): ValidationResult[] {\n const value = this.propertyAccessor(instance);\n if (!this.isValid(value, instance)) {\n return [new ValidationResult(\n ValidationResultSeverity.Error,\n this.errorMessage.replace('{PropertyName}', propertyName),\n [propertyName],\n null\n )];\n }\n return [];\n }\n\n /**\n * Determine if the property value is valid.\n * @param value The property value.\n * @param instance The instance being validated.\n * @returns True if valid, false otherwise.\n */\n protected abstract isValid(value: TProperty, instance: T): boolean;\n}\n"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PropertyRule.js","sources":["../../../validation/PropertyRule.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 { IValidationRule } from './IValidationRule';\nimport { ValidationResult } from './ValidationResult';\nimport { ValidationResultSeverity } from './ValidationResultSeverity';\n\n/**\n * Base class for property-based validation rules.\n * @template T The type being validated.\n * @template TProperty The type of the property being validated.\n */\nexport abstract class PropertyRule<T, TProperty> implements IValidationRule<T> {\n protected errorMessage: string;\n\n /**\n * Initializes a new instance of the {@link PropertyRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param defaultErrorMessage The default error message if validation fails.\n */\n constructor(\n protected readonly propertyAccessor: (instance: T) => TProperty,\n defaultErrorMessage: string\n ) {\n this.errorMessage = defaultErrorMessage;\n }\n\n /**\n * Set a custom error message for this rule.\n * @param message The custom error message.\n * @returns This rule instance for chaining.\n */\n withMessage(message: string): this {\n this.errorMessage = message;\n return this;\n }\n\n /** @inheritdoc */\n validate(instance: T, propertyName: string): ValidationResult[] {\n const value = this.propertyAccessor(instance);\n if (!this.isValid(value, instance)) {\n return [new ValidationResult(\n ValidationResultSeverity.Error,\n this.errorMessage.replace('{PropertyName}', propertyName),\n [propertyName],\n null\n )];\n }\n return [];\n }\n\n /**\n * Determine if the property value is valid.\n * @param value The property value.\n * @param instance The instance being validated.\n * @returns True if valid, false otherwise.\n */\n protected abstract isValid(value: TProperty, instance: T): boolean;\n}\n"],"names":["PropertyRule","errorMessage","propertyAccessor","defaultErrorMessage","withMessage","message","validate","instance","propertyName","value","isValid","ValidationResult","ValidationResultSeverity","Error","replace"],"mappings":";;;AAAA;AACA;AAMA;;;;AAIC,IACM,MAAeA,YAAAA,CAAAA;;IACRC,YAAAA;AAEV;;;;AAIC,QACD,WAAA,CACuBC,gBAA4C,EAC/DC,mBAA2B,CAC7B;aAFqBD,gBAAAA,GAAAA,gBAAAA;QAGnB,IAAI,CAACD,YAAY,GAAGE,mBAAAA;AACxB,IAAA;AAEA;;;;QAKAC,WAAAA,CAAYC,OAAe,EAAQ;QAC/B,IAAI,CAACJ,YAAY,GAAGI,OAAAA;AACpB,QAAA,OAAO,IAAI;AACf,IAAA;AAEA,uBACAC,QAAAA,CAASC,QAAW,EAAEC,YAAoB,EAAsB;AAC5D,QAAA,MAAMC,KAAAA,GAAQ,IAAI,CAACP,gBAAgB,CAACK,QAAAA,CAAAA;AACpC,QAAA,IAAI,CAAC,IAAI,CAACG,OAAO,CAACD,OAAOF,QAAAA,CAAAA,EAAW;YAChC,OAAO;gBAAC,IAAII,gBAAAA,CACRC,wBAAAA,CAAyBC,KAAK,EAC9B,IAAI,CAACZ,YAAY,CAACa,OAAO,CAAC,gBAAA,EAAkBN,YAAAA,CAAAA,EAC5C;AAACA,oBAAAA;iBAAa,EACd,IAAA;AACF,aAAA;AACN,QAAA;AACA,QAAA,OAAO,EAAE;AACb,IAAA;AASJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyValidator.d.ts","sourceRoot":"","sources":["../../../validation/PropertyValidator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAMtD,qBAAa,iBAAiB,CAAC,CAAC;IAOhB,QAAQ,CAAC,YAAY,EAAE,MAAM;IANzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;
|
|
1
|
+
{"version":3,"file":"PropertyValidator.d.ts","sourceRoot":"","sources":["../../../validation/PropertyValidator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAMtD,qBAAa,iBAAiB,CAAC,CAAC;IAOhB,QAAQ,CAAC,YAAY,EAAE,MAAM;IANzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAMnD,YAAqB,YAAY,EAAE,MAAM,EACxC;IAMD,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,CAEtC;IAOD,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,gBAAgB,EAAE,CAOxC;IAOD,OAAO,CAAC,QAAQ,EAAE,CAAC,GAAG,OAAO,CAE5B;CACJ"}
|
|
@@ -1,21 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* Represents a validator for a specific property.
|
|
5
|
+
* @template T The type being validated.
|
|
6
|
+
*/ class PropertyValidator {
|
|
2
7
|
propertyName;
|
|
3
8
|
_rules = [];
|
|
4
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the {@link PropertyValidator} class.
|
|
11
|
+
* @param propertyName The name of the property being validated.
|
|
12
|
+
*/ constructor(propertyName){
|
|
5
13
|
this.propertyName = propertyName;
|
|
6
14
|
}
|
|
7
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Add a validation rule to this property validator.
|
|
17
|
+
* @param rule The rule to add.
|
|
18
|
+
*/ addRule(rule) {
|
|
8
19
|
this._rules.push(rule);
|
|
9
20
|
}
|
|
10
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Validate the property value.
|
|
23
|
+
* @param instance The instance being validated.
|
|
24
|
+
* @returns An array of validation results, empty if valid.
|
|
25
|
+
*/ validate(instance) {
|
|
11
26
|
const results = [];
|
|
12
|
-
for (const rule of this._rules)
|
|
27
|
+
for (const rule of this._rules){
|
|
13
28
|
const ruleResults = rule.validate(instance, this.propertyName);
|
|
14
29
|
results.push(...ruleResults);
|
|
15
30
|
}
|
|
16
31
|
return results;
|
|
17
32
|
}
|
|
18
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Gets whether or not the property is valid.
|
|
35
|
+
* @param instance The instance being validated.
|
|
36
|
+
* @returns True if valid, false otherwise.
|
|
37
|
+
*/ isValid(instance) {
|
|
19
38
|
return this.validate(instance).length === 0;
|
|
20
39
|
}
|
|
21
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyValidator.js","sources":["../../../validation/PropertyValidator.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 { IValidationRule } from './IValidationRule';\nimport { ValidationResult } from './ValidationResult';\n\n/**\n * Represents a validator for a specific property.\n * @template T The type being validated.\n */\nexport class PropertyValidator<T> {\n private readonly _rules: IValidationRule<T>[] = [];\n\n /**\n * Initializes a new instance of the {@link PropertyValidator} class.\n * @param propertyName The name of the property being validated.\n */\n constructor(readonly propertyName: string) {\n }\n\n /**\n * Add a validation rule to this property validator.\n * @param rule The rule to add.\n */\n addRule(rule: IValidationRule<T>): void {\n this._rules.push(rule);\n }\n\n /**\n * Validate the property value.\n * @param instance The instance being validated.\n * @returns An array of validation results, empty if valid.\n */\n validate(instance: T): ValidationResult[] {\n const results: ValidationResult[] = [];\n for (const rule of this._rules) {\n const ruleResults = rule.validate(instance, this.propertyName);\n results.push(...ruleResults);\n }\n return results;\n }\n\n /**\n * Gets whether or not the property is valid.\n * @param instance The instance being validated.\n * @returns True if valid, false otherwise.\n */\n isValid(instance: T): boolean {\n return this.validate(instance).length === 0;\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PropertyValidator.js","sources":["../../../validation/PropertyValidator.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 { IValidationRule } from './IValidationRule';\nimport { ValidationResult } from './ValidationResult';\n\n/**\n * Represents a validator for a specific property.\n * @template T The type being validated.\n */\nexport class PropertyValidator<T> {\n private readonly _rules: IValidationRule<T>[] = [];\n\n /**\n * Initializes a new instance of the {@link PropertyValidator} class.\n * @param propertyName The name of the property being validated.\n */\n constructor(readonly propertyName: string) {\n }\n\n /**\n * Add a validation rule to this property validator.\n * @param rule The rule to add.\n */\n addRule(rule: IValidationRule<T>): void {\n this._rules.push(rule);\n }\n\n /**\n * Validate the property value.\n * @param instance The instance being validated.\n * @returns An array of validation results, empty if valid.\n */\n validate(instance: T): ValidationResult[] {\n const results: ValidationResult[] = [];\n for (const rule of this._rules) {\n const ruleResults = rule.validate(instance, this.propertyName);\n results.push(...ruleResults);\n }\n return results;\n }\n\n /**\n * Gets whether or not the property is valid.\n * @param instance The instance being validated.\n * @returns True if valid, false otherwise.\n */\n isValid(instance: T): boolean {\n return this.validate(instance).length === 0;\n }\n}\n"],"names":["PropertyValidator","_rules","propertyName","addRule","rule","push","validate","instance","results","ruleResults","isValid","length"],"mappings":"AAAA;AACA;AAKA;;;AAGC,IACM,MAAMA,iBAAAA,CAAAA;;AACQC,IAAAA,MAAAA,GAA+B,EAAE;AAElD;;;QAIA,WAAA,CAAY,YAA6B,CAAE;aAAtBC,YAAAA,GAAAA,YAAAA;AACrB,IAAA;AAEA;;;QAIAC,OAAAA,CAAQC,IAAwB,EAAQ;AACpC,QAAA,IAAI,CAACH,MAAM,CAACI,IAAI,CAACD,IAAAA,CAAAA;AACrB,IAAA;AAEA;;;;QAKAE,QAAAA,CAASC,QAAW,EAAsB;AACtC,QAAA,MAAMC,UAA8B,EAAE;AACtC,QAAA,KAAK,MAAMJ,IAAAA,IAAQ,IAAI,CAACH,MAAM,CAAE;AAC5B,YAAA,MAAMQ,cAAcL,IAAAA,CAAKE,QAAQ,CAACC,QAAAA,EAAU,IAAI,CAACL,YAAY,CAAA;AAC7DM,YAAAA,OAAAA,CAAQH,IAAI,CAAA,GAAII,WAAAA,CAAAA;AACpB,QAAA;QACA,OAAOD,OAAAA;AACX,IAAA;AAEA;;;;QAKAE,OAAAA,CAAQH,QAAW,EAAW;AAC1B,QAAA,OAAO,IAAI,CAACD,QAAQ,CAACC,QAAAA,CAAAA,CAAUI,MAAM,KAAK,CAAA;AAC9C,IAAA;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleBuilder.d.ts","sourceRoot":"","sources":["../../../validation/RuleBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQpD,qBAAa,WAAW,CAAC,CAAC,EAAE,SAAS;IAS7B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IATtC,OAAO,CAAC,QAAQ,CAAC,CAAqB;
|
|
1
|
+
{"version":3,"file":"RuleBuilder.d.ts","sourceRoot":"","sources":["../../../validation/RuleBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQpD,qBAAa,WAAW,CAAC,CAAC,EAAE,SAAS;IAS7B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IATtC,OAAO,CAAC,QAAQ,CAAC,CAAqB;IAOtC,YACqB,iBAAiB,EAAE,iBAAiB,CAAC,CAAC,CAAC,EACvC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,SAAS,EAEjE;IAOD,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,EAAE,SAAS,CAAC,CAI3D;IAOD,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC,EAAE,SAAS,CAAC,CAKtD;CACJ"}
|
|
@@ -1,19 +1,37 @@
|
|
|
1
1
|
import { PropertyRule } from './PropertyRule.js';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* Represents a builder for creating validation rules for a property.
|
|
7
|
+
* @template T The type being validated.
|
|
8
|
+
* @template TProperty The type of the property being validated.
|
|
9
|
+
*/ class RuleBuilder {
|
|
4
10
|
propertyValidator;
|
|
5
11
|
_propertyAccessor;
|
|
6
12
|
lastRule;
|
|
7
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Initializes a new instance of the {@link RuleBuilder} class.
|
|
15
|
+
* @param propertyValidator The property validator to add rules to.
|
|
16
|
+
* @param _propertyAccessor Function to access the property value.
|
|
17
|
+
*/ constructor(propertyValidator, _propertyAccessor){
|
|
8
18
|
this.propertyValidator = propertyValidator;
|
|
9
19
|
this._propertyAccessor = _propertyAccessor;
|
|
10
20
|
}
|
|
11
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Add a custom validation rule.
|
|
23
|
+
* @param rule The validation rule to add.
|
|
24
|
+
* @returns The rule builder for chaining.
|
|
25
|
+
*/ addRule(rule) {
|
|
12
26
|
this.propertyValidator.addRule(rule);
|
|
13
27
|
this.lastRule = rule;
|
|
14
28
|
return this;
|
|
15
29
|
}
|
|
16
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Set a custom error message for the last added rule.
|
|
32
|
+
* @param message The custom error message.
|
|
33
|
+
* @returns The rule builder for chaining.
|
|
34
|
+
*/ withMessage(message) {
|
|
17
35
|
if (this.lastRule && this.lastRule instanceof PropertyRule) {
|
|
18
36
|
this.lastRule.withMessage(message);
|
|
19
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleBuilder.js","sources":["../../../validation/RuleBuilder.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 { PropertyValidator } from './PropertyValidator';\nimport { IValidationRule } from './IValidationRule';\nimport { PropertyRule } from './PropertyRule';\n\n/**\n * Represents a builder for creating validation rules for a property.\n * @template T The type being validated.\n * @template TProperty The type of the property being validated.\n */\nexport class RuleBuilder<T, TProperty> {\n private lastRule?: IValidationRule<T>;\n\n /**\n * Initializes a new instance of the {@link RuleBuilder} class.\n * @param propertyValidator The property validator to add rules to.\n * @param _propertyAccessor Function to access the property value.\n */\n constructor(\n private readonly propertyValidator: PropertyValidator<T>,\n private readonly _propertyAccessor: (instance: T) => TProperty\n ) {\n }\n\n /**\n * Add a custom validation rule.\n * @param rule The validation rule to add.\n * @returns The rule builder for chaining.\n */\n addRule(rule: IValidationRule<T>): RuleBuilder<T, TProperty> {\n this.propertyValidator.addRule(rule);\n this.lastRule = rule;\n return this;\n }\n\n /**\n * Set a custom error message for the last added rule.\n * @param message The custom error message.\n * @returns The rule builder for chaining.\n */\n withMessage(message: string): RuleBuilder<T, TProperty> {\n if (this.lastRule && this.lastRule instanceof PropertyRule) {\n this.lastRule.withMessage(message);\n }\n return this;\n }\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"RuleBuilder.js","sources":["../../../validation/RuleBuilder.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 { PropertyValidator } from './PropertyValidator';\nimport { IValidationRule } from './IValidationRule';\nimport { PropertyRule } from './PropertyRule';\n\n/**\n * Represents a builder for creating validation rules for a property.\n * @template T The type being validated.\n * @template TProperty The type of the property being validated.\n */\nexport class RuleBuilder<T, TProperty> {\n private lastRule?: IValidationRule<T>;\n\n /**\n * Initializes a new instance of the {@link RuleBuilder} class.\n * @param propertyValidator The property validator to add rules to.\n * @param _propertyAccessor Function to access the property value.\n */\n constructor(\n private readonly propertyValidator: PropertyValidator<T>,\n private readonly _propertyAccessor: (instance: T) => TProperty\n ) {\n }\n\n /**\n * Add a custom validation rule.\n * @param rule The validation rule to add.\n * @returns The rule builder for chaining.\n */\n addRule(rule: IValidationRule<T>): RuleBuilder<T, TProperty> {\n this.propertyValidator.addRule(rule);\n this.lastRule = rule;\n return this;\n }\n\n /**\n * Set a custom error message for the last added rule.\n * @param message The custom error message.\n * @returns The rule builder for chaining.\n */\n withMessage(message: string): RuleBuilder<T, TProperty> {\n if (this.lastRule && this.lastRule instanceof PropertyRule) {\n this.lastRule.withMessage(message);\n }\n return this;\n }\n}\n"],"names":["RuleBuilder","lastRule","_propertyAccessor","propertyValidator","addRule","rule","withMessage","message","PropertyRule"],"mappings":";;AAAA;AACA;AAMA;;;;AAIC,IACM,MAAMA,WAAAA,CAAAA;;;IACDC,QAAAA;AAER;;;;AAIC,QACD,YACI,iBAAwD,EACvCC,iBAA6C,CAChE;aAFmBC,iBAAAA,GAAAA,iBAAAA;aACAD,iBAAAA,GAAAA,iBAAAA;AAErB,IAAA;AAEA;;;;QAKAE,OAAAA,CAAQC,IAAwB,EAA6B;AACzD,QAAA,IAAI,CAACF,iBAAiB,CAACC,OAAO,CAACC,IAAAA,CAAAA;QAC/B,IAAI,CAACJ,QAAQ,GAAGI,IAAAA;AAChB,QAAA,OAAO,IAAI;AACf,IAAA;AAEA;;;;QAKAC,WAAAA,CAAYC,OAAe,EAA6B;QACpD,IAAI,IAAI,CAACN,QAAQ,IAAI,IAAI,CAACA,QAAQ,YAAYO,YAAAA,EAAc;AACxD,YAAA,IAAI,CAACP,QAAQ,CAACK,WAAW,CAACC,OAAAA,CAAAA;AAC9B,QAAA;AACA,QAAA,OAAO,IAAI;AACf,IAAA;AACJ;;;;"}
|
|
@@ -7,58 +7,140 @@ import { UrlRule } from './rules/UrlRule.js';
|
|
|
7
7
|
import { RegexRule } from './rules/RegexRule.js';
|
|
8
8
|
import { GreaterThanRule, GreaterThanOrEqualRule, LessThanRule, LessThanOrEqualRule } from './rules/ComparisonRules.js';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
11
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
12
|
+
/**
|
|
13
|
+
* Extension methods for {@link RuleBuilder} to add validation rules in a fluent manner.
|
|
14
|
+
*/ /**
|
|
15
|
+
* Add a rule that the property must not be empty (not null, undefined, empty string, or empty array).
|
|
16
|
+
* @template T The type being validated.
|
|
17
|
+
* @template TProperty The type of the property.
|
|
18
|
+
* @param this The rule builder instance.
|
|
19
|
+
* @returns The rule builder for chaining.
|
|
20
|
+
*/ function notEmpty() {
|
|
11
21
|
const propertyAccessor = this._propertyAccessor;
|
|
12
22
|
return this.addRule(new NotEmptyRule(propertyAccessor));
|
|
13
23
|
}
|
|
14
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Add a rule that the property must not be null or undefined.
|
|
26
|
+
* @template T The type being validated.
|
|
27
|
+
* @template TProperty The type of the property.
|
|
28
|
+
* @param this The rule builder instance.
|
|
29
|
+
* @returns The rule builder for chaining.
|
|
30
|
+
*/ function notNull() {
|
|
15
31
|
const propertyAccessor = this._propertyAccessor;
|
|
16
32
|
return this.addRule(new NotNullRule(propertyAccessor));
|
|
17
33
|
}
|
|
18
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Add a rule that the string property must have at least the specified length.
|
|
36
|
+
* @template T The type being validated.
|
|
37
|
+
* @param this The rule builder instance.
|
|
38
|
+
* @param length The minimum length.
|
|
39
|
+
* @returns The rule builder for chaining.
|
|
40
|
+
*/ function minLength(length) {
|
|
19
41
|
const propertyAccessor = this._propertyAccessor;
|
|
20
42
|
return this.addRule(new MinLengthRule(propertyAccessor, length));
|
|
21
43
|
}
|
|
22
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Add a rule that the string property must have at most the specified length.
|
|
46
|
+
* @template T The type being validated.
|
|
47
|
+
* @param this The rule builder instance.
|
|
48
|
+
* @param length The maximum length.
|
|
49
|
+
* @returns The rule builder for chaining.
|
|
50
|
+
*/ function maxLength(length) {
|
|
23
51
|
const propertyAccessor = this._propertyAccessor;
|
|
24
52
|
return this.addRule(new MaxLengthRule(propertyAccessor, length));
|
|
25
53
|
}
|
|
26
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Add a rule that the string property must have a length between min and max.
|
|
56
|
+
* @template T The type being validated.
|
|
57
|
+
* @param this The rule builder instance.
|
|
58
|
+
* @param min The minimum length.
|
|
59
|
+
* @param max The maximum length.
|
|
60
|
+
* @returns The rule builder for chaining.
|
|
61
|
+
*/ function length(min, max) {
|
|
27
62
|
const propertyAccessor = this._propertyAccessor;
|
|
28
63
|
return this.addRule(new LengthRule(propertyAccessor, min, max));
|
|
29
64
|
}
|
|
30
|
-
|
|
65
|
+
/**
|
|
66
|
+
* Add a rule that the string property must be a valid email address.
|
|
67
|
+
* @template T The type being validated.
|
|
68
|
+
* @param this The rule builder instance.
|
|
69
|
+
* @returns The rule builder for chaining.
|
|
70
|
+
*/ function emailAddress() {
|
|
31
71
|
const propertyAccessor = this._propertyAccessor;
|
|
32
72
|
return this.addRule(new EmailRule(propertyAccessor));
|
|
33
73
|
}
|
|
34
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Add a rule that the string property must be a valid phone number.
|
|
76
|
+
* @template T The type being validated.
|
|
77
|
+
* @param this The rule builder instance.
|
|
78
|
+
* @returns The rule builder for chaining.
|
|
79
|
+
*/ function phone() {
|
|
35
80
|
const propertyAccessor = this._propertyAccessor;
|
|
36
81
|
return this.addRule(new PhoneRule(propertyAccessor));
|
|
37
82
|
}
|
|
38
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Add a rule that the string property must be a valid URL.
|
|
85
|
+
* @template T The type being validated.
|
|
86
|
+
* @param this The rule builder instance.
|
|
87
|
+
* @returns The rule builder for chaining.
|
|
88
|
+
*/ function url() {
|
|
39
89
|
const propertyAccessor = this._propertyAccessor;
|
|
40
90
|
return this.addRule(new UrlRule(propertyAccessor));
|
|
41
91
|
}
|
|
42
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Add a rule that the string property must match the specified regular expression.
|
|
94
|
+
* @template T The type being validated.
|
|
95
|
+
* @param this The rule builder instance.
|
|
96
|
+
* @param pattern The regular expression pattern.
|
|
97
|
+
* @param errorMessage Optional error message.
|
|
98
|
+
* @returns The rule builder for chaining.
|
|
99
|
+
*/ function matches(pattern, errorMessage) {
|
|
43
100
|
const propertyAccessor = this._propertyAccessor;
|
|
44
101
|
return this.addRule(new RegexRule(propertyAccessor, pattern, errorMessage));
|
|
45
102
|
}
|
|
46
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Add a rule that the number property must be greater than the specified value.
|
|
105
|
+
* @template T The type being validated.
|
|
106
|
+
* @param this The rule builder instance.
|
|
107
|
+
* @param threshold The value to compare against.
|
|
108
|
+
* @returns The rule builder for chaining.
|
|
109
|
+
*/ function greaterThan(threshold) {
|
|
47
110
|
const propertyAccessor = this._propertyAccessor;
|
|
48
111
|
return this.addRule(new GreaterThanRule(propertyAccessor, threshold));
|
|
49
112
|
}
|
|
50
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Add a rule that the number property must be greater than or equal to the specified value.
|
|
115
|
+
* @template T The type being validated.
|
|
116
|
+
* @param this The rule builder instance.
|
|
117
|
+
* @param threshold The value to compare against.
|
|
118
|
+
* @returns The rule builder for chaining.
|
|
119
|
+
*/ function greaterThanOrEqual(threshold) {
|
|
51
120
|
const propertyAccessor = this._propertyAccessor;
|
|
52
121
|
return this.addRule(new GreaterThanOrEqualRule(propertyAccessor, threshold));
|
|
53
122
|
}
|
|
54
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Add a rule that the number property must be less than the specified value.
|
|
125
|
+
* @template T The type being validated.
|
|
126
|
+
* @param this The rule builder instance.
|
|
127
|
+
* @param threshold The value to compare against.
|
|
128
|
+
* @returns The rule builder for chaining.
|
|
129
|
+
*/ function lessThan(threshold) {
|
|
55
130
|
const propertyAccessor = this._propertyAccessor;
|
|
56
131
|
return this.addRule(new LessThanRule(propertyAccessor, threshold));
|
|
57
132
|
}
|
|
58
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Add a rule that the number property must be less than or equal to the specified value.
|
|
135
|
+
* @template T The type being validated.
|
|
136
|
+
* @param this The rule builder instance.
|
|
137
|
+
* @param threshold The value to compare against.
|
|
138
|
+
* @returns The rule builder for chaining.
|
|
139
|
+
*/ function lessThanOrEqual(threshold) {
|
|
59
140
|
const propertyAccessor = this._propertyAccessor;
|
|
60
141
|
return this.addRule(new LessThanOrEqualRule(propertyAccessor, threshold));
|
|
61
142
|
}
|
|
143
|
+
// Add the extension methods to the RuleBuilder prototype
|
|
62
144
|
RuleBuilder.prototype.notEmpty = notEmpty;
|
|
63
145
|
RuleBuilder.prototype.notNull = notNull;
|
|
64
146
|
RuleBuilder.prototype.minLength = minLength;
|
|
@@ -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":[],"mappings":";;;;;;;;;SAuBgB,QAAQ,GAAA;AACpB,IAAA,MAAM,gBAAgB,GAAI,IAAqE,CAAC,iBAAiB;IACjH,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,YAAY,CAAI,gBAAgB,CAAC,CAAC;AAC9D;SASgB,OAAO,GAAA;AACnB,IAAA,MAAM,gBAAgB,GAAI,IAAqE,CAAC,iBAAiB;IACjH,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,WAAW,CAAI,gBAAgB,CAAC,CAAC;AAC7D;AASM,SAAU,SAAS,CAAkC,MAAc,EAAA;AACrE,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,aAAa,CAAI,gBAAgB,EAAE,MAAM,CAAC,CAAC;AACvE;AASM,SAAU,SAAS,CAAkC,MAAc,EAAA;AACrE,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,aAAa,CAAI,gBAAgB,EAAE,MAAM,CAAC,CAAC;AACvE;AAUM,SAAU,MAAM,CAAkC,GAAW,EAAE,GAAW,EAAA;AAC5E,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,UAAU,CAAI,gBAAgB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACtE;SAQgB,YAAY,GAAA;AACxB,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;IAC9G,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,SAAS,CAAI,gBAAgB,CAAC,CAAC;AAC3D;SAQgB,KAAK,GAAA;AACjB,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;IAC9G,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,SAAS,CAAI,gBAAgB,CAAC,CAAC;AAC3D;SAQgB,GAAG,GAAA;AACf,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;IAC9G,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,OAAO,CAAI,gBAAgB,CAAC,CAAC;AACzD;AAUM,SAAU,OAAO,CAAkC,OAAe,EAAE,YAAqB,EAAA;AAC3F,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,SAAS,CAAI,gBAAgB,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;AAClF;AASM,SAAU,WAAW,CAAkC,SAAiB,EAAA;AAC1E,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,eAAe,CAAI,gBAAgB,EAAE,SAAS,CAAC,CAAC;AAC5E;AASM,SAAU,kBAAkB,CAAkC,SAAiB,EAAA;AACjF,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,sBAAsB,CAAI,gBAAgB,EAAE,SAAS,CAAC,CAAC;AACnF;AASM,SAAU,QAAQ,CAAkC,SAAiB,EAAA;AACvE,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,YAAY,CAAI,gBAAgB,EAAE,SAAS,CAAC,CAAC;AACzE;AASM,SAAU,eAAe,CAAkC,SAAiB,EAAA;AAC9E,IAAA,MAAM,gBAAgB,GAAI,IAAkE,CAAC,iBAAiB;AAC9G,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,mBAAmB,CAAI,gBAAgB,EAAE,SAAS,CAAC,CAAC;AAChF;AAGA,WAAW,CAAC,SAAS,CAAC,QAAQ,GAAG,QAAQ;AACzC,WAAW,CAAC,SAAS,CAAC,OAAO,GAAG,OAAO;AACtC,WAAW,CAAC,SAAwD,CAAC,SAAS,GAAG,SAAS;AAC1F,WAAW,CAAC,SAAwD,CAAC,SAAS,GAAG,SAAS;AAC1F,WAAW,CAAC,SAAkD,CAAC,MAAM,GAAG,MAAM;AAC9E,WAAW,CAAC,SAA8D,CAAC,YAAY,GAAG,YAAY;AACtG,WAAW,CAAC,SAAgD,CAAC,KAAK,GAAG,KAAK;AAC1E,WAAW,CAAC,SAA4C,CAAC,GAAG,GAAG,GAAG;AAClE,WAAW,CAAC,SAAoD,CAAC,OAAO,GAAG,OAAO;AAClF,WAAW,CAAC,SAA4D,CAAC,WAAW,GAAG,WAAW;AAClG,WAAW,CAAC,SAA0E,CAAC,kBAAkB,GAAG,kBAAkB;AAC9H,WAAW,CAAC,SAAsD,CAAC,QAAQ,GAAG,QAAQ;AACtF,WAAW,CAAC,SAAoE,CAAC,eAAe,GAAG,eAAe;;;;"}
|
|
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,YAAAA,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,WAAAA,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,cAAiBR,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,cAAiBV,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,UAAAA,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,SAAAA,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,SAAAA,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,OAAAA,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,SAAAA,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,gBAAmB1B,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,uBAA0B5B,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,aAAgB9B,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,oBAAuBhC,gBAAAA,EAAkByB,SAAAA,CAAAA,CAAAA;AACrE;AAEA;AACAQ,WAAAA,CAAYC,SAAS,CAACnC,QAAQ,GAAGA,QAAAA;AACjCkC,WAAAA,CAAYC,SAAS,CAAC9B,OAAO,GAAGA,OAAAA;AAC/B6B,WAAAA,CAAYC,SAAS,CAAgD5B,SAAS,GAAGA,SAAAA;AACjF2B,WAAAA,CAAYC,SAAS,CAAgDzB,SAAS,GAAGA,SAAAA;AACjFwB,WAAAA,CAAYC,SAAS,CAA0C3B,MAAM,GAAGA,MAAAA;AACxE0B,WAAAA,CAAYC,SAAS,CAAsDpB,YAAY,GAAGA,YAAAA;AAC1FmB,WAAAA,CAAYC,SAAS,CAAwClB,KAAK,GAAGA,KAAAA;AACrEiB,WAAAA,CAAYC,SAAS,CAAoChB,GAAG,GAAGA,GAAAA;AAC/De,WAAAA,CAAYC,SAAS,CAA4Cd,OAAO,GAAGA,OAAAA;AAC3Ea,WAAAA,CAAYC,SAAS,CAAoDV,WAAW,GAAGA,WAAAA;AACvFS,WAAAA,CAAYC,SAAS,CAAkEP,kBAAkB,GAAGA,kBAAAA;AAC5GM,WAAAA,CAAYC,SAAS,CAA8CL,QAAQ,GAAGA,QAAAA;AAC9EI,WAAAA,CAAYC,SAAS,CAA4DH,eAAe,GAAGA,eAAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationResult.d.ts","sourceRoot":"","sources":["../../../validation/ValidationResult.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAOtE,qBAAa,gBAAgB;IACb,QAAQ,CAAC,QAAQ,EAAE,wBAAwB;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,GAAG;
|
|
1
|
+
{"version":3,"file":"ValidationResult.d.ts","sourceRoot":"","sources":["../../../validation/ValidationResult.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAOtE,qBAAa,gBAAgB;IACb,QAAQ,CAAC,QAAQ,EAAE,wBAAwB;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,GAAG;IAAlI,YAAqB,QAAQ,EAAE,wBAAwB,EAAW,OAAO,EAAE,MAAM,EAAW,OAAO,EAAE,MAAM,EAAE,EAAW,KAAK,EAAE,GAAG,EACjI;CACJ"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */ /**
|
|
4
|
+
* Represents a validation error with a message for one or more members.
|
|
5
|
+
*/ class ValidationResult {
|
|
2
6
|
severity;
|
|
3
7
|
message;
|
|
4
8
|
members;
|
|
5
9
|
state;
|
|
6
|
-
constructor(severity, message, members, state)
|
|
10
|
+
constructor(severity, message, members, state){
|
|
7
11
|
this.severity = severity;
|
|
8
12
|
this.message = message;
|
|
9
13
|
this.members = members;
|
|
@@ -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 { 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 constructor(readonly severity: ValidationResultSeverity, readonly message: string, readonly members: string[], readonly state: any) {\n }\n}\n\n\n"],"names":[],"mappings":"
|
|
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 { 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 constructor(readonly severity: ValidationResultSeverity, readonly message: string, readonly members: string[], readonly state: any) {\n }\n}\n\n\n"],"names":["ValidationResult","severity","members","message","state"],"mappings":"AAAA;AACA;AAIA;;AAIC,IACM,MAAMA,gBAAAA,CAAAA;;;;;IACT,WAAA,CAAqBC,QAAkC,EAAE,OAAwB,EAAWC,OAAiB,EAAE,KAAmB,CAAE;aAA/GD,QAAAA,GAAAA,QAAAA;aAA6CE,OAAAA,GAAAA,OAAAA;aAA0BD,OAAAA,GAAAA,OAAAA;aAA4BE,KAAAA,GAAAA,KAAAA;AACxH,IAAA;AACJ;;;;"}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* Holds the values for severity of a validation result.
|
|
5
|
+
*/ var ValidationResultSeverity = /*#__PURE__*/ function(ValidationResultSeverity) {
|
|
6
|
+
/**
|
|
7
|
+
* The validation result is unknown.
|
|
8
|
+
*/ ValidationResultSeverity[ValidationResultSeverity["Unknown"] = 0] = "Unknown";
|
|
9
|
+
/**
|
|
10
|
+
* The validation result is a warning.
|
|
11
|
+
*/ ValidationResultSeverity[ValidationResultSeverity["Information"] = 1] = "Information";
|
|
12
|
+
/**
|
|
13
|
+
* The validation result is a warning.
|
|
14
|
+
*/ ValidationResultSeverity[ValidationResultSeverity["Warning"] = 2] = "Warning";
|
|
15
|
+
/**
|
|
16
|
+
* The validation result is an error.
|
|
17
|
+
*/ ValidationResultSeverity[ValidationResultSeverity["Error"] = 3] = "Error";
|
|
18
|
+
return ValidationResultSeverity;
|
|
19
|
+
}({});
|
|
8
20
|
|
|
9
21
|
export { ValidationResultSeverity };
|
|
10
22
|
//# sourceMappingURL=ValidationResultSeverity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationResultSeverity.js","sources":["../../../validation/ValidationResultSeverity.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\n/**\n * Holds the values for severity of a validation result.\n */\nexport enum ValidationResultSeverity {\n\n /**\n * The validation result is unknown.\n */\n Unknown = 0,\n\n /**\n * The validation result is a warning.\n */\n Information = 1,\n\n /**\n * The validation result is a warning.\n */\n Warning = 2,\n\n /**\n * The validation result is an error.\n */\n Error = 3\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ValidationResultSeverity.js","sources":["../../../validation/ValidationResultSeverity.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\n/**\n * Holds the values for severity of a validation result.\n */\nexport enum ValidationResultSeverity {\n\n /**\n * The validation result is unknown.\n */\n Unknown = 0,\n\n /**\n * The validation result is a warning.\n */\n Information = 1,\n\n /**\n * The validation result is a warning.\n */\n Warning = 2,\n\n /**\n * The validation result is an error.\n */\n Error = 3\n}\n"],"names":["ValidationResultSeverity"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,wBAAAA,iBAAAA,SAAAA,wBAAAA,EAAAA;AAER;;AAEC,QAAA,wBAAA,CAAA,wBAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AAGD;;AAEC,QAAA,wBAAA,CAAA,wBAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,GAAA,aAAA;AAGD;;AAEC,QAAA,wBAAA,CAAA,wBAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AAGD;;AAEC,QAAA,wBAAA,CAAA,wBAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAA;AAnBOA,IAAAA,OAAAA,wBAAAA;AAqBX,CAAA,CAAA,EAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Validator.d.ts","sourceRoot":"","sources":["../../../validation/Validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAM5C,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;
|
|
1
|
+
{"version":3,"file":"Validator.d.ts","sourceRoot":"","sources":["../../../validation/Validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAM5C,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,9 +1,19 @@
|
|
|
1
1
|
import { PropertyValidator } from './PropertyValidator.js';
|
|
2
2
|
import { RuleBuilder } from './RuleBuilder.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
5
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
6
|
+
/**
|
|
7
|
+
* Represents a validator for a type that builds validation rules programmatically.
|
|
8
|
+
* @template T The type being validated.
|
|
9
|
+
*/ class Validator {
|
|
5
10
|
_propertyValidators = new Map();
|
|
6
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Define validation rules for a property.
|
|
13
|
+
* @template TProperty The type of the property.
|
|
14
|
+
* @param propertyAccessor Function to access the property from the instance.
|
|
15
|
+
* @returns A rule builder for the property.
|
|
16
|
+
*/ ruleFor(propertyAccessor) {
|
|
7
17
|
const propertyName = this.getPropertyName(propertyAccessor);
|
|
8
18
|
let propertyValidator = this._propertyValidators.get(propertyName);
|
|
9
19
|
if (!propertyValidator) {
|
|
@@ -12,24 +22,37 @@ class Validator {
|
|
|
12
22
|
}
|
|
13
23
|
return new RuleBuilder(propertyValidator, propertyAccessor);
|
|
14
24
|
}
|
|
15
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Validate an instance.
|
|
27
|
+
* @param instance The instance to validate.
|
|
28
|
+
* @returns An array of validation results, empty if valid.
|
|
29
|
+
*/ validate(instance) {
|
|
16
30
|
const results = [];
|
|
17
|
-
for (const propertyValidator of this._propertyValidators.values())
|
|
31
|
+
for (const propertyValidator of this._propertyValidators.values()){
|
|
18
32
|
const propertyResults = propertyValidator.validate(instance);
|
|
19
33
|
results.push(...propertyResults);
|
|
20
34
|
}
|
|
21
35
|
return results;
|
|
22
36
|
}
|
|
23
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Gets whether or not the instance is valid.
|
|
39
|
+
* @param instance The instance to validate.
|
|
40
|
+
* @returns True if valid, false otherwise.
|
|
41
|
+
*/ get isValid() {
|
|
24
42
|
return true;
|
|
25
43
|
}
|
|
26
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Gets whether or not a specific instance is valid.
|
|
46
|
+
* @param instance The instance to validate.
|
|
47
|
+
* @returns True if valid, false otherwise.
|
|
48
|
+
*/ isValidFor(instance) {
|
|
27
49
|
return this.validate(instance).length === 0;
|
|
28
50
|
}
|
|
29
51
|
getPropertyName(propertyAccessor) {
|
|
52
|
+
// Create a proxy to capture property access
|
|
30
53
|
const propertyNames = [];
|
|
31
54
|
const proxy = new Proxy({}, {
|
|
32
|
-
get(_target, prop) {
|
|
55
|
+
get (_target, prop) {
|
|
33
56
|
if (typeof prop === 'string') {
|
|
34
57
|
propertyNames.push(prop);
|
|
35
58
|
}
|
|
@@ -38,8 +61,8 @@ class Validator {
|
|
|
38
61
|
});
|
|
39
62
|
try {
|
|
40
63
|
propertyAccessor(proxy);
|
|
41
|
-
}
|
|
42
|
-
|
|
64
|
+
} catch {
|
|
65
|
+
// Ignore errors - we're just capturing the property name
|
|
43
66
|
}
|
|
44
67
|
return propertyNames[0] || 'unknown';
|
|
45
68
|
}
|