@cratis/arc 18.5.0 → 18.6.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.
Files changed (1050) hide show
  1. package/commands/Command.ts +18 -1
  2. package/commands/CommandValidator.ts +9 -7
  3. package/commands/for_Command/CommandWithRouteParams.ts +0 -2
  4. package/commands/for_Command/SomeCommand.ts +0 -2
  5. package/commands/for_Command/given/a_command_with_validator.ts +55 -0
  6. package/commands/for_Command/when_executing/with_client_validation_failing.ts +69 -0
  7. package/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.ts +29 -0
  8. package/commands/for_Command/when_executing/with_client_validation_passing.ts +63 -0
  9. package/commands/for_Command/when_executing/with_route_parameters.ts +1 -0
  10. package/commands/for_Command/when_validating/with_client_validation_failure.ts +26 -0
  11. package/commands/for_Command/when_validating/with_client_validation_passing.ts +77 -0
  12. package/commands/for_Command/when_validating/with_required_property_missing.ts +28 -0
  13. package/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.ts +1 -0
  14. package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.ts +1 -0
  15. package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.ts +1 -0
  16. package/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.ts +1 -0
  17. package/dist/cjs/commands/Command.d.ts +1 -1
  18. package/dist/cjs/commands/Command.d.ts.map +1 -1
  19. package/dist/cjs/commands/Command.js +13 -0
  20. package/dist/cjs/commands/Command.js.map +1 -1
  21. package/dist/cjs/commands/CommandValidator.d.ts +3 -6
  22. package/dist/cjs/commands/CommandValidator.d.ts.map +1 -1
  23. package/dist/cjs/commands/CommandValidator.js +5 -3
  24. package/dist/cjs/commands/CommandValidator.js.map +1 -1
  25. package/dist/cjs/commands/for_Command/CommandWithRouteParams.d.ts +16 -0
  26. package/dist/cjs/commands/for_Command/CommandWithRouteParams.d.ts.map +1 -0
  27. package/dist/cjs/commands/for_Command/SomeCommand.d.ts +14 -0
  28. package/dist/cjs/commands/for_Command/SomeCommand.d.ts.map +1 -0
  29. package/dist/cjs/commands/for_Command/given/a_command.d.ts +12 -0
  30. package/dist/cjs/commands/for_Command/given/a_command.d.ts.map +1 -0
  31. package/dist/cjs/commands/for_Command/given/a_command_with_validator.d.ts +33 -0
  32. package/dist/cjs/commands/for_Command/given/a_command_with_validator.d.ts.map +1 -0
  33. package/dist/cjs/commands/for_Command/when_clearing_the_command.d.ts +2 -0
  34. package/dist/cjs/commands/for_Command/when_clearing_the_command.d.ts.map +1 -0
  35. package/dist/cjs/commands/for_Command/when_constructing_command.d.ts +2 -0
  36. package/dist/cjs/commands/for_Command/when_constructing_command.d.ts.map +1 -0
  37. package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts +2 -0
  38. package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts.map +1 -0
  39. package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_origin.d.ts +2 -0
  40. package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_origin.d.ts.map +1 -0
  41. package/dist/cjs/commands/for_Command/when_executing/and_command_route_not_found.d.ts +2 -0
  42. package/dist/cjs/commands/for_Command/when_executing/and_command_route_not_found.d.ts.map +1 -0
  43. package/dist/cjs/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts +2 -0
  44. package/dist/cjs/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts.map +1 -0
  45. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failing.d.ts +2 -0
  46. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failing.d.ts.map +1 -0
  47. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts +2 -0
  48. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts.map +1 -0
  49. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_passing.d.ts +2 -0
  50. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_passing.d.ts.map +1 -0
  51. package/dist/cjs/commands/for_Command/when_executing/with_command_properties.d.ts +2 -0
  52. package/dist/cjs/commands/for_Command/when_executing/with_command_properties.d.ts.map +1 -0
  53. package/dist/cjs/commands/for_Command/when_executing/with_custom_http_headers.d.ts +2 -0
  54. package/dist/cjs/commands/for_Command/when_executing/with_custom_http_headers.d.ts.map +1 -0
  55. package/dist/cjs/commands/for_Command/when_executing/with_microservice_header.d.ts +2 -0
  56. package/dist/cjs/commands/for_Command/when_executing/with_microservice_header.d.ts.map +1 -0
  57. package/dist/cjs/commands/for_Command/when_executing/with_missing_required_property.d.ts +2 -0
  58. package/dist/cjs/commands/for_Command/when_executing/with_missing_required_property.d.ts.map +1 -0
  59. package/dist/cjs/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts +2 -0
  60. package/dist/cjs/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts.map +1 -0
  61. package/dist/cjs/commands/for_Command/when_executing/with_route_parameters.d.ts +2 -0
  62. package/dist/cjs/commands/for_Command/when_executing/with_route_parameters.d.ts.map +1 -0
  63. package/dist/cjs/commands/for_Command/when_executing/with_successful_response.d.ts +2 -0
  64. package/dist/cjs/commands/for_Command/when_executing/with_successful_response.d.ts.map +1 -0
  65. package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts +2 -0
  66. package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts.map +1 -0
  67. package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts +2 -0
  68. package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts.map +1 -0
  69. package/dist/cjs/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts +2 -0
  70. package/dist/cjs/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts.map +1 -0
  71. package/dist/cjs/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts +2 -0
  72. package/dist/cjs/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts.map +1 -0
  73. package/dist/cjs/commands/for_Command/when_property_has_changed_and_we_revert.d.ts +2 -0
  74. package/dist/cjs/commands/for_Command/when_property_has_changed_and_we_revert.d.ts.map +1 -0
  75. package/dist/cjs/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts +2 -0
  76. package/dist/cjs/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts.map +1 -0
  77. package/dist/cjs/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts +2 -0
  78. package/dist/cjs/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts.map +1 -0
  79. package/dist/cjs/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts +2 -0
  80. package/dist/cjs/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts.map +1 -0
  81. package/dist/cjs/commands/for_Command/when_validating/does_not_update_initial_values.d.ts +2 -0
  82. package/dist/cjs/commands/for_Command/when_validating/does_not_update_initial_values.d.ts.map +1 -0
  83. package/dist/cjs/commands/for_Command/when_validating/with_client_validation_failure.d.ts +2 -0
  84. package/dist/cjs/commands/for_Command/when_validating/with_client_validation_failure.d.ts.map +1 -0
  85. package/dist/cjs/commands/for_Command/when_validating/with_client_validation_passing.d.ts +2 -0
  86. package/dist/cjs/commands/for_Command/when_validating/with_client_validation_passing.d.ts.map +1 -0
  87. package/dist/cjs/commands/for_Command/when_validating/with_required_property_missing.d.ts +2 -0
  88. package/dist/cjs/commands/for_Command/when_validating/with_required_property_missing.d.ts.map +1 -0
  89. package/dist/cjs/commands/for_Command/when_validating/with_successful_response.d.ts +2 -0
  90. package/dist/cjs/commands/for_Command/when_validating/with_successful_response.d.ts.map +1 -0
  91. package/dist/cjs/commands/for_Command/when_validating/with_validation_errors.d.ts +2 -0
  92. package/dist/cjs/commands/for_Command/when_validating/with_validation_errors.d.ts.map +1 -0
  93. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts +2 -0
  94. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts.map +1 -0
  95. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts +2 -0
  96. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts.map +1 -0
  97. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts +2 -0
  98. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts.map +1 -0
  99. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts +2 -0
  100. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts.map +1 -0
  101. package/dist/cjs/identity/for_IdentityProvider/given/an_identity_provider.d.ts +12 -0
  102. package/dist/cjs/identity/for_IdentityProvider/given/an_identity_provider.d.ts.map +1 -0
  103. package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts +2 -0
  104. package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts.map +1 -0
  105. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts +2 -0
  106. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts.map +1 -0
  107. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts +2 -0
  108. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts.map +1 -0
  109. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts +2 -0
  110. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts.map +1 -0
  111. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts +2 -0
  112. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts.map +1 -0
  113. package/dist/cjs/identity/for_IdentityProvider/when_setting_api_base_path.d.ts +2 -0
  114. package/dist/cjs/identity/for_IdentityProvider/when_setting_api_base_path.d.ts.map +1 -0
  115. package/dist/cjs/identity/for_IdentityProvider/when_setting_origin.d.ts +2 -0
  116. package/dist/cjs/identity/for_IdentityProvider/when_setting_origin.d.ts.map +1 -0
  117. package/dist/cjs/queries/QueryFor.d.ts +2 -0
  118. package/dist/cjs/queries/QueryFor.d.ts.map +1 -1
  119. package/dist/cjs/queries/QueryFor.js +25 -0
  120. package/dist/cjs/queries/QueryFor.js.map +1 -1
  121. package/dist/cjs/queries/QueryValidator.d.ts +6 -0
  122. package/dist/cjs/queries/QueryValidator.d.ts.map +1 -0
  123. package/dist/cjs/queries/QueryValidator.js +12 -0
  124. package/dist/cjs/queries/QueryValidator.js.map +1 -0
  125. package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts +10 -0
  126. package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts.map +1 -0
  127. package/dist/cjs/queries/for_ObservableQueryConnection/when_constructing.d.ts +2 -0
  128. package/dist/cjs/queries/for_ObservableQueryConnection/when_constructing.d.ts.map +1 -0
  129. package/dist/cjs/queries/for_ObservableQueryFor/given/TestQueries.d.ts +42 -0
  130. package/dist/cjs/queries/for_ObservableQueryFor/given/TestQueries.d.ts.map +1 -0
  131. package/dist/cjs/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts +9 -0
  132. package/dist/cjs/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts.map +1 -0
  133. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing.d.ts +2 -0
  134. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing.d.ts.map +1 -0
  135. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts +2 -0
  136. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts.map +1 -0
  137. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts +2 -0
  138. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts.map +1 -0
  139. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts +2 -0
  140. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts.map +1 -0
  141. package/dist/cjs/queries/for_ObservableQueryFor/when_disposing.d.ts +2 -0
  142. package/dist/cjs/queries/for_ObservableQueryFor/when_disposing.d.ts.map +1 -0
  143. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts +2 -0
  144. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts.map +1 -0
  145. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts +2 -0
  146. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts.map +1 -0
  147. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts +2 -0
  148. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts.map +1 -0
  149. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts +2 -0
  150. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +1 -0
  151. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +2 -0
  152. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +1 -0
  153. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +2 -0
  154. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +1 -0
  155. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts +2 -0
  156. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts.map +1 -0
  157. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts +2 -0
  158. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts.map +1 -0
  159. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts +2 -0
  160. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts.map +1 -0
  161. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_microservice.d.ts +2 -0
  162. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_microservice.d.ts.map +1 -0
  163. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_origin.d.ts +2 -0
  164. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_origin.d.ts.map +1 -0
  165. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts +2 -0
  166. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts.map +1 -0
  167. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts +2 -0
  168. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts.map +1 -0
  169. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts +2 -0
  170. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts.map +1 -0
  171. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts +2 -0
  172. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts.map +1 -0
  173. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts +2 -0
  174. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts.map +1 -0
  175. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts +2 -0
  176. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts.map +1 -0
  177. package/dist/cjs/queries/for_QueryFor/given/TestQueries.d.ts +37 -0
  178. package/dist/cjs/queries/for_QueryFor/given/TestQueries.d.ts.map +1 -0
  179. package/dist/cjs/queries/for_QueryFor/given/a_query_for.d.ts +9 -0
  180. package/dist/cjs/queries/for_QueryFor/given/a_query_for.d.ts.map +1 -0
  181. package/dist/cjs/queries/for_QueryFor/given/a_query_with_validator.d.ts +35 -0
  182. package/dist/cjs/queries/for_QueryFor/given/a_query_with_validator.d.ts.map +1 -0
  183. package/dist/cjs/queries/for_QueryFor/when_constructing.d.ts +2 -0
  184. package/dist/cjs/queries/for_QueryFor/when_constructing.d.ts.map +1 -0
  185. package/dist/cjs/queries/for_QueryFor/when_constructing_enumerable.d.ts +2 -0
  186. package/dist/cjs/queries/for_QueryFor/when_constructing_enumerable.d.ts.map +1 -0
  187. package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts +2 -0
  188. package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts.map +1 -0
  189. package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts +2 -0
  190. package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts.map +1 -0
  191. package/dist/cjs/queries/for_QueryFor/when_performing/with_abort_controller.d.ts +2 -0
  192. package/dist/cjs/queries/for_QueryFor/when_performing/with_abort_controller.d.ts.map +1 -0
  193. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts +2 -0
  194. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts.map +1 -0
  195. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts +2 -0
  196. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts.map +1 -0
  197. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts +2 -0
  198. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts.map +1 -0
  199. package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts +2 -0
  200. package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts.map +1 -0
  201. package/dist/cjs/queries/for_QueryFor/when_performing/with_fetch_error.d.ts +2 -0
  202. package/dist/cjs/queries/for_QueryFor/when_performing/with_fetch_error.d.ts.map +1 -0
  203. package/dist/cjs/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts +2 -0
  204. package/dist/cjs/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts.map +1 -0
  205. package/dist/cjs/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts +2 -0
  206. package/dist/cjs/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts.map +1 -0
  207. package/dist/cjs/queries/for_QueryFor/when_performing/with_paging.d.ts +2 -0
  208. package/dist/cjs/queries/for_QueryFor/when_performing/with_paging.d.ts.map +1 -0
  209. package/dist/cjs/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts +2 -0
  210. package/dist/cjs/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +1 -0
  211. package/dist/cjs/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +2 -0
  212. package/dist/cjs/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +1 -0
  213. package/dist/cjs/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts +2 -0
  214. package/dist/cjs/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts.map +1 -0
  215. package/dist/cjs/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +2 -0
  216. package/dist/cjs/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +1 -0
  217. package/dist/cjs/queries/for_QueryFor/when_performing/with_sorting.d.ts +2 -0
  218. package/dist/cjs/queries/for_QueryFor/when_performing/with_sorting.d.ts.map +1 -0
  219. package/dist/cjs/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts +2 -0
  220. package/dist/cjs/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts.map +1 -0
  221. package/dist/cjs/queries/for_QueryFor/when_setting_api_base_path.d.ts +2 -0
  222. package/dist/cjs/queries/for_QueryFor/when_setting_api_base_path.d.ts.map +1 -0
  223. package/dist/cjs/queries/for_QueryFor/when_setting_microservice.d.ts +2 -0
  224. package/dist/cjs/queries/for_QueryFor/when_setting_microservice.d.ts.map +1 -0
  225. package/dist/cjs/queries/for_QueryFor/when_setting_origin.d.ts +2 -0
  226. package/dist/cjs/queries/for_QueryFor/when_setting_origin.d.ts.map +1 -0
  227. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts +2 -0
  228. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts.map +1 -0
  229. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts +2 -0
  230. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts.map +1 -0
  231. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts +2 -0
  232. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts.map +1 -0
  233. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts +2 -0
  234. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts.map +1 -0
  235. package/dist/cjs/queries/for_WebSocketMessage/when_creating_messages.d.ts +2 -0
  236. package/dist/cjs/queries/for_WebSocketMessage/when_creating_messages.d.ts.map +1 -0
  237. package/dist/cjs/queries/index.d.ts +1 -0
  238. package/dist/cjs/queries/index.d.ts.map +1 -1
  239. package/dist/cjs/queries/index.js +2 -0
  240. package/dist/cjs/queries/index.js.map +1 -1
  241. package/dist/cjs/validation/IValidationRule.d.ts +5 -0
  242. package/dist/cjs/validation/IValidationRule.d.ts.map +1 -0
  243. package/dist/cjs/validation/PropertyRule.d.ts +11 -0
  244. package/dist/cjs/validation/PropertyRule.d.ts.map +1 -0
  245. package/dist/cjs/validation/PropertyRule.js +27 -0
  246. package/dist/cjs/validation/PropertyRule.js.map +1 -0
  247. package/dist/cjs/validation/PropertyValidator.d.ts +11 -0
  248. package/dist/cjs/validation/PropertyValidator.d.ts.map +1 -0
  249. package/dist/cjs/validation/PropertyValidator.js +26 -0
  250. package/dist/cjs/validation/PropertyValidator.js.map +1 -0
  251. package/dist/cjs/validation/RuleBuilder.d.ts +11 -0
  252. package/dist/cjs/validation/RuleBuilder.d.ts.map +1 -0
  253. package/dist/cjs/validation/RuleBuilder.js +27 -0
  254. package/dist/cjs/validation/RuleBuilder.js.map +1 -0
  255. package/dist/cjs/validation/RuleBuilderExtensions.d.ts +28 -0
  256. package/dist/cjs/validation/RuleBuilderExtensions.d.ts.map +1 -0
  257. package/dist/cjs/validation/RuleBuilderExtensions.js +77 -0
  258. package/dist/cjs/validation/RuleBuilderExtensions.js.map +1 -0
  259. package/dist/cjs/validation/Validator.d.ts +8 -1
  260. package/dist/cjs/validation/Validator.d.ts.map +1 -1
  261. package/dist/cjs/validation/Validator.js +41 -0
  262. package/dist/cjs/validation/Validator.js.map +1 -1
  263. package/dist/cjs/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts +2 -0
  264. package/dist/cjs/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts.map +1 -0
  265. package/dist/cjs/validation/for_Validator/when_using_custom_error_message.d.ts +2 -0
  266. package/dist/cjs/validation/for_Validator/when_using_custom_error_message.d.ts.map +1 -0
  267. package/dist/cjs/validation/for_Validator/when_validating/with_all_rules_passing.d.ts +2 -0
  268. package/dist/cjs/validation/for_Validator/when_validating/with_all_rules_passing.d.ts.map +1 -0
  269. package/dist/cjs/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts +2 -0
  270. package/dist/cjs/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts.map +1 -0
  271. package/dist/cjs/validation/for_Validator/when_validating/with_one_rule_failing.d.ts +2 -0
  272. package/dist/cjs/validation/for_Validator/when_validating/with_one_rule_failing.d.ts.map +1 -0
  273. package/dist/cjs/validation/index.d.ts +11 -0
  274. package/dist/cjs/validation/index.d.ts.map +1 -1
  275. package/dist/cjs/validation/index.js +39 -0
  276. package/dist/cjs/validation/index.js.map +1 -1
  277. package/dist/cjs/validation/rules/ComparisonRules.d.ts +22 -0
  278. package/dist/cjs/validation/rules/ComparisonRules.d.ts.map +1 -0
  279. package/dist/cjs/validation/rules/ComparisonRules.js +62 -0
  280. package/dist/cjs/validation/rules/ComparisonRules.js.map +1 -0
  281. package/dist/cjs/validation/rules/EmailRule.d.ts +7 -0
  282. package/dist/cjs/validation/rules/EmailRule.d.ts.map +1 -0
  283. package/dist/cjs/validation/rules/EmailRule.js +19 -0
  284. package/dist/cjs/validation/rules/EmailRule.js.map +1 -0
  285. package/dist/cjs/validation/rules/LengthRules.d.ts +18 -0
  286. package/dist/cjs/validation/rules/LengthRules.d.ts.map +1 -0
  287. package/dist/cjs/validation/rules/LengthRules.js +50 -0
  288. package/dist/cjs/validation/rules/LengthRules.js.map +1 -0
  289. package/dist/cjs/validation/rules/NotEmptyRule.d.ts +10 -0
  290. package/dist/cjs/validation/rules/NotEmptyRule.d.ts.map +1 -0
  291. package/dist/cjs/validation/rules/NotEmptyRule.js +33 -0
  292. package/dist/cjs/validation/rules/NotEmptyRule.js.map +1 -0
  293. package/dist/cjs/validation/rules/RegexRule.d.ts +7 -0
  294. package/dist/cjs/validation/rules/RegexRule.d.ts.map +1 -0
  295. package/dist/cjs/validation/rules/RegexRule.js +20 -0
  296. package/dist/cjs/validation/rules/RegexRule.js.map +1 -0
  297. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts +2 -0
  298. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts.map +1 -0
  299. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts +2 -0
  300. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts.map +1 -0
  301. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts +2 -0
  302. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts.map +1 -0
  303. package/dist/cjs/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts +2 -0
  304. package/dist/cjs/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts.map +1 -0
  305. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts +2 -0
  306. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts.map +1 -0
  307. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts +2 -0
  308. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts.map +1 -0
  309. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts +2 -0
  310. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts.map +1 -0
  311. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts +2 -0
  312. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +1 -0
  313. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts +2 -0
  314. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +1 -0
  315. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts +2 -0
  316. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts.map +1 -0
  317. package/dist/cjs/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts +2 -0
  318. package/dist/cjs/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts.map +1 -0
  319. package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts +2 -0
  320. package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts.map +1 -0
  321. package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts +2 -0
  322. package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +1 -0
  323. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts +2 -0
  324. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts.map +1 -0
  325. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts +2 -0
  326. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts.map +1 -0
  327. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts +2 -0
  328. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +1 -0
  329. package/dist/cjs/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts +2 -0
  330. package/dist/cjs/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts.map +1 -0
  331. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts +2 -0
  332. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts.map +1 -0
  333. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts +2 -0
  334. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts.map +1 -0
  335. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts +2 -0
  336. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts.map +1 -0
  337. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts +2 -0
  338. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts.map +1 -0
  339. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts +2 -0
  340. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts.map +1 -0
  341. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts +2 -0
  342. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts.map +1 -0
  343. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts +2 -0
  344. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts.map +1 -0
  345. package/dist/esm/commands/Command.d.ts +1 -1
  346. package/dist/esm/commands/Command.d.ts.map +1 -1
  347. package/dist/esm/commands/Command.js +13 -0
  348. package/dist/esm/commands/Command.js.map +1 -1
  349. package/dist/esm/commands/CommandValidator.d.ts +3 -6
  350. package/dist/esm/commands/CommandValidator.d.ts.map +1 -1
  351. package/dist/esm/commands/CommandValidator.js +5 -3
  352. package/dist/esm/commands/CommandValidator.js.map +1 -1
  353. package/dist/esm/commands/for_Command/CommandWithRouteParams.d.ts +16 -0
  354. package/dist/esm/commands/for_Command/CommandWithRouteParams.d.ts.map +1 -0
  355. package/dist/esm/commands/for_Command/CommandWithRouteParams.js +21 -0
  356. package/dist/esm/commands/for_Command/CommandWithRouteParams.js.map +1 -0
  357. package/dist/esm/commands/for_Command/SomeCommand.d.ts +14 -0
  358. package/dist/esm/commands/for_Command/SomeCommand.d.ts.map +1 -0
  359. package/dist/esm/commands/for_Command/SomeCommand.js +21 -0
  360. package/dist/esm/commands/for_Command/SomeCommand.js.map +1 -0
  361. package/dist/esm/commands/for_Command/given/a_command.d.ts +12 -0
  362. package/dist/esm/commands/for_Command/given/a_command.d.ts.map +1 -0
  363. package/dist/esm/commands/for_Command/given/a_command.js +17 -0
  364. package/dist/esm/commands/for_Command/given/a_command.js.map +1 -0
  365. package/dist/esm/commands/for_Command/given/a_command_with_validator.d.ts +33 -0
  366. package/dist/esm/commands/for_Command/given/a_command_with_validator.d.ts.map +1 -0
  367. package/dist/esm/commands/for_Command/given/a_command_with_validator.js +38 -0
  368. package/dist/esm/commands/for_Command/given/a_command_with_validator.js.map +1 -0
  369. package/dist/esm/commands/for_Command/when_clearing_the_command.d.ts +2 -0
  370. package/dist/esm/commands/for_Command/when_clearing_the_command.d.ts.map +1 -0
  371. package/dist/esm/commands/for_Command/when_clearing_the_command.js +13 -0
  372. package/dist/esm/commands/for_Command/when_clearing_the_command.js.map +1 -0
  373. package/dist/esm/commands/for_Command/when_constructing_command.d.ts +2 -0
  374. package/dist/esm/commands/for_Command/when_constructing_command.d.ts.map +1 -0
  375. package/dist/esm/commands/for_Command/when_constructing_command.js +34 -0
  376. package/dist/esm/commands/for_Command/when_constructing_command.js.map +1 -0
  377. package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts +2 -0
  378. package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts.map +1 -0
  379. package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.js +20 -0
  380. package/dist/esm/commands/for_Command/when_constructing_command_with_globals_api_base_path.js.map +1 -0
  381. package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.d.ts +2 -0
  382. package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.d.ts.map +1 -0
  383. package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.js +20 -0
  384. package/dist/esm/commands/for_Command/when_constructing_command_with_globals_origin.js.map +1 -0
  385. package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.d.ts +2 -0
  386. package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.d.ts.map +1 -0
  387. package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.js +18 -0
  388. package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.js.map +1 -0
  389. package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts +2 -0
  390. package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts.map +1 -0
  391. package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.js +16 -0
  392. package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.js.map +1 -0
  393. package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.d.ts +2 -0
  394. package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.d.ts.map +1 -0
  395. package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.js +52 -0
  396. package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.js.map +1 -0
  397. package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts +2 -0
  398. package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts.map +1 -0
  399. package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.js +19 -0
  400. package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.js.map +1 -0
  401. package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.d.ts +2 -0
  402. package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.d.ts.map +1 -0
  403. package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.js +49 -0
  404. package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.js.map +1 -0
  405. package/dist/esm/commands/for_Command/when_executing/with_command_properties.d.ts +2 -0
  406. package/dist/esm/commands/for_Command/when_executing/with_command_properties.d.ts.map +1 -0
  407. package/dist/esm/commands/for_Command/when_executing/with_command_properties.js +32 -0
  408. package/dist/esm/commands/for_Command/when_executing/with_command_properties.js.map +1 -0
  409. package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.d.ts +2 -0
  410. package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.d.ts.map +1 -0
  411. package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.js +54 -0
  412. package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.js.map +1 -0
  413. package/dist/esm/commands/for_Command/when_executing/with_microservice_header.d.ts +2 -0
  414. package/dist/esm/commands/for_Command/when_executing/with_microservice_header.d.ts.map +1 -0
  415. package/dist/esm/commands/for_Command/when_executing/with_microservice_header.js +40 -0
  416. package/dist/esm/commands/for_Command/when_executing/with_microservice_header.js.map +1 -0
  417. package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.d.ts +2 -0
  418. package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.d.ts.map +1 -0
  419. package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.js +24 -0
  420. package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.js.map +1 -0
  421. package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts +2 -0
  422. package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts.map +1 -0
  423. package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.js +46 -0
  424. package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.js.map +1 -0
  425. package/dist/esm/commands/for_Command/when_executing/with_route_parameters.d.ts +2 -0
  426. package/dist/esm/commands/for_Command/when_executing/with_route_parameters.d.ts.map +1 -0
  427. package/dist/esm/commands/for_Command/when_executing/with_route_parameters.js +51 -0
  428. package/dist/esm/commands/for_Command/when_executing/with_route_parameters.js.map +1 -0
  429. package/dist/esm/commands/for_Command/when_executing/with_successful_response.d.ts +2 -0
  430. package/dist/esm/commands/for_Command/when_executing/with_successful_response.d.ts.map +1 -0
  431. package/dist/esm/commands/for_Command/when_executing/with_successful_response.js +39 -0
  432. package/dist/esm/commands/for_Command/when_executing/with_successful_response.js.map +1 -0
  433. package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts +2 -0
  434. package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts.map +1 -0
  435. package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.js +11 -0
  436. package/dist/esm/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.js.map +1 -0
  437. package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts +2 -0
  438. package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts.map +1 -0
  439. package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.js +11 -0
  440. package/dist/esm/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.js.map +1 -0
  441. package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts +2 -0
  442. package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts.map +1 -0
  443. package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.js +8 -0
  444. package/dist/esm/commands/for_Command/when_property_changes_and_initial_value_is_undefined.js.map +1 -0
  445. package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts +2 -0
  446. package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts.map +1 -0
  447. package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.js +10 -0
  448. package/dist/esm/commands/for_Command/when_property_changes_and_there_is_a_callback.js.map +1 -0
  449. package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.d.ts +2 -0
  450. package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.d.ts.map +1 -0
  451. package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.js +11 -0
  452. package/dist/esm/commands/for_Command/when_property_has_changed_and_we_revert.js.map +1 -0
  453. package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts +2 -0
  454. package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts.map +1 -0
  455. package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.js +12 -0
  456. package/dist/esm/commands/for_Command/when_setting_initial_values_after_property_changed.js.map +1 -0
  457. package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts +2 -0
  458. package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts.map +1 -0
  459. package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.js +16 -0
  460. package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.js.map +1 -0
  461. package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts +2 -0
  462. package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts.map +1 -0
  463. package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.js +18 -0
  464. package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.js.map +1 -0
  465. package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.d.ts +2 -0
  466. package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.d.ts.map +1 -0
  467. package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.js +31 -0
  468. package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.js.map +1 -0
  469. package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.d.ts +2 -0
  470. package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.d.ts.map +1 -0
  471. package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.js +18 -0
  472. package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.js.map +1 -0
  473. package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.d.ts +2 -0
  474. package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.d.ts.map +1 -0
  475. package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.js +56 -0
  476. package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.js.map +1 -0
  477. package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.d.ts +2 -0
  478. package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.d.ts.map +1 -0
  479. package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.js +21 -0
  480. package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.js.map +1 -0
  481. package/dist/esm/commands/for_Command/when_validating/with_successful_response.d.ts +2 -0
  482. package/dist/esm/commands/for_Command/when_validating/with_successful_response.d.ts.map +1 -0
  483. package/dist/esm/commands/for_Command/when_validating/with_successful_response.js +37 -0
  484. package/dist/esm/commands/for_Command/when_validating/with_successful_response.js.map +1 -0
  485. package/dist/esm/commands/for_Command/when_validating/with_validation_errors.d.ts +2 -0
  486. package/dist/esm/commands/for_Command/when_validating/with_validation_errors.d.ts.map +1 -0
  487. package/dist/esm/commands/for_Command/when_validating/with_validation_errors.js +37 -0
  488. package/dist/esm/commands/for_Command/when_validating/with_validation_errors.js.map +1 -0
  489. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts +2 -0
  490. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts.map +1 -0
  491. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.js +48 -0
  492. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.js.map +1 -0
  493. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts +2 -0
  494. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts.map +1 -0
  495. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.js +47 -0
  496. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.js.map +1 -0
  497. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts +2 -0
  498. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts.map +1 -0
  499. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.js +37 -0
  500. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.js.map +1 -0
  501. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts +2 -0
  502. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts.map +1 -0
  503. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.js +37 -0
  504. package/dist/esm/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.js.map +1 -0
  505. package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.d.ts +2 -0
  506. package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.d.ts.map +1 -0
  507. package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.js +17 -0
  508. package/dist/esm/for_UrlHelpers/when_building_query_params/with_additional_parameters.js.map +1 -0
  509. package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.d.ts +2 -0
  510. package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.d.ts.map +1 -0
  511. package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.js +11 -0
  512. package/dist/esm/for_UrlHelpers/when_building_query_params/with_empty_parameters.js.map +1 -0
  513. package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.d.ts +2 -0
  514. package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.d.ts.map +1 -0
  515. package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.js +16 -0
  516. package/dist/esm/for_UrlHelpers/when_building_query_params/with_null_and_undefined_values.js.map +1 -0
  517. package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.d.ts +2 -0
  518. package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.d.ts.map +1 -0
  519. package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.js +15 -0
  520. package/dist/esm/for_UrlHelpers/when_building_query_params/with_unused_parameters_only.js.map +1 -0
  521. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.d.ts +2 -0
  522. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.d.ts.map +1 -0
  523. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.js +23 -0
  524. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.js.map +1 -0
  525. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.d.ts +2 -0
  526. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.d.ts.map +1 -0
  527. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.js +35 -0
  528. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.js.map +1 -0
  529. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.d.ts +2 -0
  530. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.d.ts.map +1 -0
  531. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.js +42 -0
  532. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.js.map +1 -0
  533. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.d.ts +2 -0
  534. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.d.ts.map +1 -0
  535. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.js +23 -0
  536. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.js.map +1 -0
  537. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.d.ts +2 -0
  538. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.d.ts.map +1 -0
  539. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.js +23 -0
  540. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.js.map +1 -0
  541. package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.d.ts +2 -0
  542. package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.d.ts.map +1 -0
  543. package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.js +26 -0
  544. package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.js.map +1 -0
  545. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.d.ts +2 -0
  546. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.d.ts.map +1 -0
  547. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.js +15 -0
  548. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_all_parameters_used_in_route.js.map +1 -0
  549. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.d.ts +2 -0
  550. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.d.ts.map +1 -0
  551. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.js +13 -0
  552. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_no_parameters.js.map +1 -0
  553. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.d.ts +2 -0
  554. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.d.ts.map +1 -0
  555. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.js +17 -0
  556. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_unused_parameters.js.map +1 -0
  557. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.d.ts +2 -0
  558. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.d.ts.map +1 -0
  559. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.js +14 -0
  560. package/dist/esm/for_UrlHelpers/when_replacing_route_parameters/with_url_encoded_values.js.map +1 -0
  561. package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.d.ts +12 -0
  562. package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.d.ts.map +1 -0
  563. package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.js +18 -0
  564. package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.js.map +1 -0
  565. package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts +2 -0
  566. package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts.map +1 -0
  567. package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.js +34 -0
  568. package/dist/esm/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.js.map +1 -0
  569. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts +2 -0
  570. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts.map +1 -0
  571. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.js +24 -0
  572. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.js.map +1 -0
  573. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts +2 -0
  574. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts.map +1 -0
  575. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.js +29 -0
  576. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.js.map +1 -0
  577. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts +2 -0
  578. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts.map +1 -0
  579. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.js +35 -0
  580. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.js.map +1 -0
  581. package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts +2 -0
  582. package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts.map +1 -0
  583. package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.js +28 -0
  584. package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.js.map +1 -0
  585. package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.d.ts +2 -0
  586. package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.d.ts.map +1 -0
  587. package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.js +15 -0
  588. package/dist/esm/identity/for_IdentityProvider/when_setting_api_base_path.js.map +1 -0
  589. package/dist/esm/identity/for_IdentityProvider/when_setting_origin.d.ts +2 -0
  590. package/dist/esm/identity/for_IdentityProvider/when_setting_origin.d.ts.map +1 -0
  591. package/dist/esm/identity/for_IdentityProvider/when_setting_origin.js +15 -0
  592. package/dist/esm/identity/for_IdentityProvider/when_setting_origin.js.map +1 -0
  593. package/dist/esm/queries/QueryFor.d.ts +2 -0
  594. package/dist/esm/queries/QueryFor.d.ts.map +1 -1
  595. package/dist/esm/queries/QueryFor.js +25 -0
  596. package/dist/esm/queries/QueryFor.js.map +1 -1
  597. package/dist/esm/queries/QueryValidator.d.ts +6 -0
  598. package/dist/esm/queries/QueryValidator.d.ts.map +1 -0
  599. package/dist/esm/queries/QueryValidator.js +10 -0
  600. package/dist/esm/queries/QueryValidator.js.map +1 -0
  601. package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts +10 -0
  602. package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts.map +1 -0
  603. package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.js +19 -0
  604. package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.js.map +1 -0
  605. package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.d.ts +2 -0
  606. package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.d.ts.map +1 -0
  607. package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.js +11 -0
  608. package/dist/esm/queries/for_ObservableQueryConnection/when_constructing.js.map +1 -0
  609. package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.d.ts +42 -0
  610. package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.d.ts.map +1 -0
  611. package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.js +60 -0
  612. package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.js.map +1 -0
  613. package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts +9 -0
  614. package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts.map +1 -0
  615. package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.js +14 -0
  616. package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.js.map +1 -0
  617. package/dist/esm/queries/for_ObservableQueryFor/when_constructing.d.ts +2 -0
  618. package/dist/esm/queries/for_ObservableQueryFor/when_constructing.d.ts.map +1 -0
  619. package/dist/esm/queries/for_ObservableQueryFor/when_constructing.js +37 -0
  620. package/dist/esm/queries/for_ObservableQueryFor/when_constructing.js.map +1 -0
  621. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts +2 -0
  622. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts.map +1 -0
  623. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.js +14 -0
  624. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_enumerable.js.map +1 -0
  625. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts +2 -0
  626. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts.map +1 -0
  627. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.js +20 -0
  628. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.js.map +1 -0
  629. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts +2 -0
  630. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts.map +1 -0
  631. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.js +20 -0
  632. package/dist/esm/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.js.map +1 -0
  633. package/dist/esm/queries/for_ObservableQueryFor/when_disposing.d.ts +2 -0
  634. package/dist/esm/queries/for_ObservableQueryFor/when_disposing.d.ts.map +1 -0
  635. package/dist/esm/queries/for_ObservableQueryFor/when_disposing.js +19 -0
  636. package/dist/esm/queries/for_ObservableQueryFor/when_disposing.js.map +1 -0
  637. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts +2 -0
  638. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts.map +1 -0
  639. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.js +53 -0
  640. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.js.map +1 -0
  641. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts +2 -0
  642. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts.map +1 -0
  643. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.js +15 -0
  644. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.js.map +1 -0
  645. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts +2 -0
  646. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts.map +1 -0
  647. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.js +49 -0
  648. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_paging.js.map +1 -0
  649. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts +2 -0
  650. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +1 -0
  651. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.js +58 -0
  652. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.js.map +1 -0
  653. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +2 -0
  654. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +1 -0
  655. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.js +56 -0
  656. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.js.map +1 -0
  657. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +2 -0
  658. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +1 -0
  659. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.js +60 -0
  660. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.js.map +1 -0
  661. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts +2 -0
  662. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts.map +1 -0
  663. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.js +50 -0
  664. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_sorting.js.map +1 -0
  665. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts +2 -0
  666. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts.map +1 -0
  667. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.js +68 -0
  668. package/dist/esm/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.js.map +1 -0
  669. package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts +2 -0
  670. package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts.map +1 -0
  671. package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.js +11 -0
  672. package/dist/esm/queries/for_ObservableQueryFor/when_setting_api_base_path.js.map +1 -0
  673. package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.d.ts +2 -0
  674. package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.d.ts.map +1 -0
  675. package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.js +11 -0
  676. package/dist/esm/queries/for_ObservableQueryFor/when_setting_microservice.js.map +1 -0
  677. package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.d.ts +2 -0
  678. package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.d.ts.map +1 -0
  679. package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.js +11 -0
  680. package/dist/esm/queries/for_ObservableQueryFor/when_setting_origin.js.map +1 -0
  681. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts +2 -0
  682. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts.map +1 -0
  683. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.js +24 -0
  684. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.js.map +1 -0
  685. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts +2 -0
  686. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts.map +1 -0
  687. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.js +27 -0
  688. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.js.map +1 -0
  689. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts +2 -0
  690. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts.map +1 -0
  691. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.js +26 -0
  692. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_paging.js.map +1 -0
  693. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts +2 -0
  694. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts.map +1 -0
  695. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.js +45 -0
  696. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.js.map +1 -0
  697. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts +2 -0
  698. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts.map +1 -0
  699. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.js +27 -0
  700. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_sorting.js.map +1 -0
  701. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts +2 -0
  702. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts.map +1 -0
  703. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.js +24 -0
  704. package/dist/esm/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.js.map +1 -0
  705. package/dist/esm/queries/for_QueryFor/given/TestQueries.d.ts +37 -0
  706. package/dist/esm/queries/for_QueryFor/given/TestQueries.d.ts.map +1 -0
  707. package/dist/esm/queries/for_QueryFor/given/TestQueries.js +56 -0
  708. package/dist/esm/queries/for_QueryFor/given/TestQueries.js.map +1 -0
  709. package/dist/esm/queries/for_QueryFor/given/a_query_for.d.ts +9 -0
  710. package/dist/esm/queries/for_QueryFor/given/a_query_for.d.ts.map +1 -0
  711. package/dist/esm/queries/for_QueryFor/given/a_query_for.js +14 -0
  712. package/dist/esm/queries/for_QueryFor/given/a_query_for.js.map +1 -0
  713. package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.d.ts +35 -0
  714. package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.d.ts.map +1 -0
  715. package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.js +35 -0
  716. package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.js.map +1 -0
  717. package/dist/esm/queries/for_QueryFor/when_constructing.d.ts +2 -0
  718. package/dist/esm/queries/for_QueryFor/when_constructing.d.ts.map +1 -0
  719. package/dist/esm/queries/for_QueryFor/when_constructing.js +37 -0
  720. package/dist/esm/queries/for_QueryFor/when_constructing.js.map +1 -0
  721. package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.d.ts +2 -0
  722. package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.d.ts.map +1 -0
  723. package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.js +14 -0
  724. package/dist/esm/queries/for_QueryFor/when_constructing_enumerable.js.map +1 -0
  725. package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts +2 -0
  726. package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts.map +1 -0
  727. package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.js +20 -0
  728. package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_api_base_path.js.map +1 -0
  729. package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts +2 -0
  730. package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts.map +1 -0
  731. package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.js +20 -0
  732. package/dist/esm/queries/for_QueryFor/when_constructing_with_globals_origin.js.map +1 -0
  733. package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.d.ts +2 -0
  734. package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.d.ts.map +1 -0
  735. package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.js +57 -0
  736. package/dist/esm/queries/for_QueryFor/when_performing/with_abort_controller.js.map +1 -0
  737. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts +2 -0
  738. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts.map +1 -0
  739. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.js +44 -0
  740. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.js.map +1 -0
  741. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts +2 -0
  742. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts.map +1 -0
  743. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.js +18 -0
  744. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.js.map +1 -0
  745. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts +2 -0
  746. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts.map +1 -0
  747. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.js +47 -0
  748. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.js.map +1 -0
  749. package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts +2 -0
  750. package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts.map +1 -0
  751. package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.js +51 -0
  752. package/dist/esm/queries/for_QueryFor/when_performing/with_enumerable_query.js.map +1 -0
  753. package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.d.ts +2 -0
  754. package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.d.ts.map +1 -0
  755. package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.js +36 -0
  756. package/dist/esm/queries/for_QueryFor/when_performing/with_fetch_error.js.map +1 -0
  757. package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts +2 -0
  758. package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts.map +1 -0
  759. package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.js +19 -0
  760. package/dist/esm/queries/for_QueryFor/when_performing/with_invalid_arguments.js.map +1 -0
  761. package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts +2 -0
  762. package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts.map +1 -0
  763. package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.js +34 -0
  764. package/dist/esm/queries/for_QueryFor/when_performing/with_json_parse_error.js.map +1 -0
  765. package/dist/esm/queries/for_QueryFor/when_performing/with_paging.d.ts +2 -0
  766. package/dist/esm/queries/for_QueryFor/when_performing/with_paging.d.ts.map +1 -0
  767. package/dist/esm/queries/for_QueryFor/when_performing/with_paging.js +52 -0
  768. package/dist/esm/queries/for_QueryFor/when_performing/with_paging.js.map +1 -0
  769. package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts +2 -0
  770. package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +1 -0
  771. package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.js +58 -0
  772. package/dist/esm/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.js.map +1 -0
  773. package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +2 -0
  774. package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +1 -0
  775. package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.js +56 -0
  776. package/dist/esm/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.js.map +1 -0
  777. package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts +2 -0
  778. package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts.map +1 -0
  779. package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.js +48 -0
  780. package/dist/esm/queries/for_QueryFor/when_performing/with_query_without_required_parameters.js.map +1 -0
  781. package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +2 -0
  782. package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +1 -0
  783. package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.js +60 -0
  784. package/dist/esm/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.js.map +1 -0
  785. package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.d.ts +2 -0
  786. package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.d.ts.map +1 -0
  787. package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.js +82 -0
  788. package/dist/esm/queries/for_QueryFor/when_performing/with_sorting.js.map +1 -0
  789. package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts +2 -0
  790. package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts.map +1 -0
  791. package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.js +73 -0
  792. package/dist/esm/queries/for_QueryFor/when_performing/with_valid_arguments.js.map +1 -0
  793. package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.d.ts +2 -0
  794. package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.d.ts.map +1 -0
  795. package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.js +12 -0
  796. package/dist/esm/queries/for_QueryFor/when_setting_api_base_path.js.map +1 -0
  797. package/dist/esm/queries/for_QueryFor/when_setting_microservice.d.ts +2 -0
  798. package/dist/esm/queries/for_QueryFor/when_setting_microservice.d.ts.map +1 -0
  799. package/dist/esm/queries/for_QueryFor/when_setting_microservice.js +12 -0
  800. package/dist/esm/queries/for_QueryFor/when_setting_microservice.js.map +1 -0
  801. package/dist/esm/queries/for_QueryFor/when_setting_origin.d.ts +2 -0
  802. package/dist/esm/queries/for_QueryFor/when_setting_origin.d.ts.map +1 -0
  803. package/dist/esm/queries/for_QueryFor/when_setting_origin.js +12 -0
  804. package/dist/esm/queries/for_QueryFor/when_setting_origin.js.map +1 -0
  805. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts +2 -0
  806. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts.map +1 -0
  807. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.js +21 -0
  808. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.js.map +1 -0
  809. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts +2 -0
  810. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts.map +1 -0
  811. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.js +21 -0
  812. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.js.map +1 -0
  813. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts +2 -0
  814. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts.map +1 -0
  815. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.js +21 -0
  816. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.js.map +1 -0
  817. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts +2 -0
  818. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts.map +1 -0
  819. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.js +21 -0
  820. package/dist/esm/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.js.map +1 -0
  821. package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.d.ts +2 -0
  822. package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.d.ts.map +1 -0
  823. package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.js +53 -0
  824. package/dist/esm/queries/for_WebSocketMessage/when_creating_messages.js.map +1 -0
  825. package/dist/esm/queries/index.d.ts +1 -0
  826. package/dist/esm/queries/index.d.ts.map +1 -1
  827. package/dist/esm/queries/index.js +1 -0
  828. package/dist/esm/queries/index.js.map +1 -1
  829. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  830. package/dist/esm/validation/IValidationRule.d.ts +5 -0
  831. package/dist/esm/validation/IValidationRule.d.ts.map +1 -0
  832. package/dist/esm/validation/IValidationRule.js +2 -0
  833. package/dist/esm/validation/IValidationRule.js.map +1 -0
  834. package/dist/esm/validation/PropertyRule.d.ts +11 -0
  835. package/dist/esm/validation/PropertyRule.d.ts.map +1 -0
  836. package/dist/esm/validation/PropertyRule.js +25 -0
  837. package/dist/esm/validation/PropertyRule.js.map +1 -0
  838. package/dist/esm/validation/PropertyValidator.d.ts +11 -0
  839. package/dist/esm/validation/PropertyValidator.d.ts.map +1 -0
  840. package/dist/esm/validation/PropertyValidator.js +24 -0
  841. package/dist/esm/validation/PropertyValidator.js.map +1 -0
  842. package/dist/esm/validation/RuleBuilder.d.ts +11 -0
  843. package/dist/esm/validation/RuleBuilder.d.ts.map +1 -0
  844. package/dist/esm/validation/RuleBuilder.js +25 -0
  845. package/dist/esm/validation/RuleBuilder.js.map +1 -0
  846. package/dist/esm/validation/RuleBuilderExtensions.d.ts +28 -0
  847. package/dist/esm/validation/RuleBuilderExtensions.d.ts.map +1 -0
  848. package/dist/esm/validation/RuleBuilderExtensions.js +65 -0
  849. package/dist/esm/validation/RuleBuilderExtensions.js.map +1 -0
  850. package/dist/esm/validation/Validator.d.ts +8 -1
  851. package/dist/esm/validation/Validator.d.ts.map +1 -1
  852. package/dist/esm/validation/Validator.js +41 -0
  853. package/dist/esm/validation/Validator.js.map +1 -1
  854. package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts +2 -0
  855. package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts.map +1 -0
  856. package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.js +20 -0
  857. package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.js.map +1 -0
  858. package/dist/esm/validation/for_Validator/when_using_custom_error_message.d.ts +2 -0
  859. package/dist/esm/validation/for_Validator/when_using_custom_error_message.d.ts.map +1 -0
  860. package/dist/esm/validation/for_Validator/when_using_custom_error_message.js +19 -0
  861. package/dist/esm/validation/for_Validator/when_using_custom_error_message.js.map +1 -0
  862. package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.d.ts +2 -0
  863. package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.d.ts.map +1 -0
  864. package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.js +21 -0
  865. package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.js.map +1 -0
  866. package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts +2 -0
  867. package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts.map +1 -0
  868. package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.js +24 -0
  869. package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.js.map +1 -0
  870. package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.d.ts +2 -0
  871. package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.d.ts.map +1 -0
  872. package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.js +24 -0
  873. package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.js.map +1 -0
  874. package/dist/esm/validation/index.d.ts +11 -0
  875. package/dist/esm/validation/index.d.ts.map +1 -1
  876. package/dist/esm/validation/index.js +10 -0
  877. package/dist/esm/validation/index.js.map +1 -1
  878. package/dist/esm/validation/rules/ComparisonRules.d.ts +22 -0
  879. package/dist/esm/validation/rules/ComparisonRules.d.ts.map +1 -0
  880. package/dist/esm/validation/rules/ComparisonRules.js +57 -0
  881. package/dist/esm/validation/rules/ComparisonRules.js.map +1 -0
  882. package/dist/esm/validation/rules/EmailRule.d.ts +7 -0
  883. package/dist/esm/validation/rules/EmailRule.d.ts.map +1 -0
  884. package/dist/esm/validation/rules/EmailRule.js +17 -0
  885. package/dist/esm/validation/rules/EmailRule.js.map +1 -0
  886. package/dist/esm/validation/rules/LengthRules.d.ts +18 -0
  887. package/dist/esm/validation/rules/LengthRules.d.ts.map +1 -0
  888. package/dist/esm/validation/rules/LengthRules.js +46 -0
  889. package/dist/esm/validation/rules/LengthRules.js.map +1 -0
  890. package/dist/esm/validation/rules/NotEmptyRule.d.ts +10 -0
  891. package/dist/esm/validation/rules/NotEmptyRule.d.ts.map +1 -0
  892. package/dist/esm/validation/rules/NotEmptyRule.js +30 -0
  893. package/dist/esm/validation/rules/NotEmptyRule.js.map +1 -0
  894. package/dist/esm/validation/rules/RegexRule.d.ts +7 -0
  895. package/dist/esm/validation/rules/RegexRule.d.ts.map +1 -0
  896. package/dist/esm/validation/rules/RegexRule.js +18 -0
  897. package/dist/esm/validation/rules/RegexRule.js.map +1 -0
  898. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts +2 -0
  899. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts.map +1 -0
  900. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.js +15 -0
  901. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.js.map +1 -0
  902. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts +2 -0
  903. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts.map +1 -0
  904. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.js +15 -0
  905. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.js.map +1 -0
  906. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts +2 -0
  907. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts.map +1 -0
  908. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.js +15 -0
  909. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.js.map +1 -0
  910. package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts +2 -0
  911. package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts.map +1 -0
  912. package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.js +15 -0
  913. package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.js.map +1 -0
  914. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts +2 -0
  915. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts.map +1 -0
  916. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.js +15 -0
  917. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.js.map +1 -0
  918. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts +2 -0
  919. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts.map +1 -0
  920. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.js +15 -0
  921. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.js.map +1 -0
  922. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts +2 -0
  923. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts.map +1 -0
  924. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.js +18 -0
  925. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.js.map +1 -0
  926. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts +2 -0
  927. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +1 -0
  928. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.js +15 -0
  929. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.js.map +1 -0
  930. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts +2 -0
  931. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +1 -0
  932. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.js +15 -0
  933. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.js.map +1 -0
  934. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts +2 -0
  935. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts.map +1 -0
  936. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.js +15 -0
  937. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.js.map +1 -0
  938. package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts +2 -0
  939. package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts.map +1 -0
  940. package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.js +15 -0
  941. package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.js.map +1 -0
  942. package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts +2 -0
  943. package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts.map +1 -0
  944. package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.js +15 -0
  945. package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.js.map +1 -0
  946. package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts +2 -0
  947. package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +1 -0
  948. package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.js +18 -0
  949. package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.js.map +1 -0
  950. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts +2 -0
  951. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts.map +1 -0
  952. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.js +15 -0
  953. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.js.map +1 -0
  954. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts +2 -0
  955. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts.map +1 -0
  956. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.js +15 -0
  957. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.js.map +1 -0
  958. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts +2 -0
  959. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +1 -0
  960. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.js +18 -0
  961. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.js.map +1 -0
  962. package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts +2 -0
  963. package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts.map +1 -0
  964. package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.js +17 -0
  965. package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.js.map +1 -0
  966. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts +2 -0
  967. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts.map +1 -0
  968. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.js +15 -0
  969. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.js.map +1 -0
  970. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts +2 -0
  971. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts.map +1 -0
  972. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.js +15 -0
  973. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.js.map +1 -0
  974. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts +2 -0
  975. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts.map +1 -0
  976. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.js +15 -0
  977. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.js.map +1 -0
  978. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts +2 -0
  979. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts.map +1 -0
  980. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.js +25 -0
  981. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.js.map +1 -0
  982. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts +2 -0
  983. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts.map +1 -0
  984. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.js +19 -0
  985. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.js.map +1 -0
  986. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts +2 -0
  987. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts.map +1 -0
  988. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.js +15 -0
  989. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.js.map +1 -0
  990. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts +2 -0
  991. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts.map +1 -0
  992. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.js +15 -0
  993. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.js.map +1 -0
  994. package/package.json +1 -1
  995. package/queries/QueryFor.ts +29 -0
  996. package/queries/QueryValidator.ts +19 -0
  997. package/queries/for_ObservableQueryFor/when_performing/with_paging.ts +0 -4
  998. package/queries/for_QueryFor/given/a_query_with_validator.ts +54 -0
  999. package/queries/for_QueryFor/when_performing/with_abort_controller.ts +1 -1
  1000. package/queries/for_QueryFor/when_performing/with_client_validation_failing.ts +63 -0
  1001. package/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.ts +28 -0
  1002. package/queries/for_QueryFor/when_performing/with_client_validation_passing.ts +64 -0
  1003. package/queries/for_QueryFor/when_performing/with_query_without_required_parameters.ts +0 -4
  1004. package/queries/for_QueryFor/when_performing/with_sorting.ts +1 -1
  1005. package/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.ts +1 -1
  1006. package/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.ts +1 -1
  1007. package/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.ts +1 -1
  1008. package/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.ts +1 -1
  1009. package/queries/index.ts +1 -0
  1010. package/validation/IValidationRule.ts +18 -0
  1011. package/validation/PropertyRule.ts +59 -0
  1012. package/validation/PropertyValidator.ts +51 -0
  1013. package/validation/RuleBuilder.ts +49 -0
  1014. package/validation/RuleBuilderExtensions.ts +176 -0
  1015. package/validation/Validator.ts +74 -4
  1016. package/validation/for_Validator/when_defining_multiple_rules_for_same_property.ts +32 -0
  1017. package/validation/for_Validator/when_using_custom_error_message.ts +30 -0
  1018. package/validation/for_Validator/when_validating/with_all_rules_passing.ts +34 -0
  1019. package/validation/for_Validator/when_validating/with_multiple_rules_failing.ts +38 -0
  1020. package/validation/for_Validator/when_validating/with_one_rule_failing.ts +38 -0
  1021. package/validation/index.ts +11 -0
  1022. package/validation/rules/ComparisonRules.ts +96 -0
  1023. package/validation/rules/EmailRule.ts +28 -0
  1024. package/validation/rules/LengthRules.ts +74 -0
  1025. package/validation/rules/NotEmptyRule.ts +51 -0
  1026. package/validation/rules/RegexRule.ts +28 -0
  1027. package/validation/rules/for_EmailRule/when_validating/with_empty_string.ts +25 -0
  1028. package/validation/rules/for_EmailRule/when_validating/with_invalid_email.ts +25 -0
  1029. package/validation/rules/for_EmailRule/when_validating/with_valid_email.ts +25 -0
  1030. package/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.ts +25 -0
  1031. package/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.ts +25 -0
  1032. package/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.ts +25 -0
  1033. package/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.ts +29 -0
  1034. package/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.ts +25 -0
  1035. package/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.ts +25 -0
  1036. package/validation/rules/for_LengthRule/when_validating/with_string_within_range.ts +25 -0
  1037. package/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.ts +25 -0
  1038. package/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.ts +25 -0
  1039. package/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.ts +29 -0
  1040. package/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.ts +25 -0
  1041. package/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.ts +25 -0
  1042. package/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.ts +29 -0
  1043. package/validation/rules/for_NotEmptyRule/when_setting_custom_message.ts +27 -0
  1044. package/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.ts +25 -0
  1045. package/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.ts +25 -0
  1046. package/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.ts +25 -0
  1047. package/validation/rules/for_NotEmptyRule/when_validating/with_null_value.ts +38 -0
  1048. package/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.ts +30 -0
  1049. package/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.ts +25 -0
  1050. package/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.ts +25 -0
@@ -0,0 +1,32 @@
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
+ import { Validator } from '../Validator';
5
+ import '../RuleBuilderExtensions';
6
+
7
+ interface TestType {
8
+ name: string;
9
+ }
10
+
11
+ describe("when defining multiple rules for same property", () => {
12
+ let validator: Validator<TestType>;
13
+ let instance: TestType;
14
+ let results: ReturnType<typeof validator.validate>;
15
+
16
+ beforeEach(() => {
17
+ validator = new Validator<TestType>();
18
+ validator.ruleFor(t => t.name).notEmpty().minLength(3);
19
+
20
+ instance = { name: 'ab' };
21
+
22
+ results = validator.validate(instance);
23
+ });
24
+
25
+ it("should_return_one_validation_error", () => {
26
+ results.should.have.lengthOf(1);
27
+ });
28
+
29
+ it("should_have_error_for_min_length", () => {
30
+ results[0].message.should.include('3');
31
+ });
32
+ });
@@ -0,0 +1,30 @@
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
+ import { Validator } from '../Validator';
5
+ import '../RuleBuilderExtensions';
6
+
7
+ interface TestType {
8
+ email: string;
9
+ }
10
+
11
+ describe("when using custom error message", () => {
12
+ let validator: Validator<TestType>;
13
+ let instance: TestType;
14
+ let customMessage: string;
15
+ let results: ReturnType<typeof validator.validate>;
16
+
17
+ beforeEach(() => {
18
+ customMessage = 'Email is required';
19
+ validator = new Validator<TestType>();
20
+ validator.ruleFor(t => t.email).notEmpty().withMessage(customMessage);
21
+
22
+ instance = { email: '' };
23
+
24
+ results = validator.validate(instance);
25
+ });
26
+
27
+ it("should_use_custom_error_message", () => {
28
+ results[0].message.should.equal(customMessage);
29
+ });
30
+ });
@@ -0,0 +1,34 @@
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
+ import { Validator } from '../../Validator';
5
+ import '../../RuleBuilderExtensions';
6
+
7
+ interface TestType {
8
+ name: string;
9
+ age: number;
10
+ }
11
+
12
+ describe("when validating with all rules passing", () => {
13
+ let validator: Validator<TestType>;
14
+ let instance: TestType;
15
+ let results: ReturnType<typeof validator.validate>;
16
+
17
+ beforeEach(() => {
18
+ validator = new Validator<TestType>();
19
+ validator.ruleFor(t => t.name).notEmpty();
20
+ validator.ruleFor(t => t.age).greaterThanOrEqual(18);
21
+
22
+ instance = { name: 'John', age: 25 };
23
+
24
+ results = validator.validate(instance);
25
+ });
26
+
27
+ it("should_return_no_validation_errors", () => {
28
+ results.should.be.empty;
29
+ });
30
+
31
+ it("should_indicate_instance_is_valid", () => {
32
+ validator.isValidFor(instance).should.be.true;
33
+ });
34
+ });
@@ -0,0 +1,38 @@
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
+ import { Validator } from '../../Validator';
5
+ import '../../RuleBuilderExtensions';
6
+
7
+ interface TestType {
8
+ name: string;
9
+ age: number;
10
+ }
11
+
12
+ describe("when validating with multiple rules failing", () => {
13
+ let validator: Validator<TestType>;
14
+ let instance: TestType;
15
+ let results: ReturnType<typeof validator.validate>;
16
+
17
+ beforeEach(() => {
18
+ validator = new Validator<TestType>();
19
+ validator.ruleFor(t => t.name).notEmpty();
20
+ validator.ruleFor(t => t.age).greaterThanOrEqual(18);
21
+
22
+ instance = { name: '', age: 15 };
23
+
24
+ results = validator.validate(instance);
25
+ });
26
+
27
+ it("should_return_two_validation_errors", () => {
28
+ results.should.have.lengthOf(2);
29
+ });
30
+
31
+ it("should_have_error_for_name_property", () => {
32
+ results.some(r => r.members.includes('name')).should.be.true;
33
+ });
34
+
35
+ it("should_have_error_for_age_property", () => {
36
+ results.some(r => r.members.includes('age')).should.be.true;
37
+ });
38
+ });
@@ -0,0 +1,38 @@
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
+ import { Validator } from '../../Validator';
5
+ import '../../RuleBuilderExtensions';
6
+
7
+ interface TestType {
8
+ name: string;
9
+ age: number;
10
+ }
11
+
12
+ describe("when validating with one rule failing", () => {
13
+ let validator: Validator<TestType>;
14
+ let instance: TestType;
15
+ let results: ReturnType<typeof validator.validate>;
16
+
17
+ beforeEach(() => {
18
+ validator = new Validator<TestType>();
19
+ validator.ruleFor(t => t.name).notEmpty();
20
+ validator.ruleFor(t => t.age).greaterThanOrEqual(18);
21
+
22
+ instance = { name: '', age: 25 };
23
+
24
+ results = validator.validate(instance);
25
+ });
26
+
27
+ it("should_return_one_validation_error", () => {
28
+ results.should.have.lengthOf(1);
29
+ });
30
+
31
+ it("should_indicate_instance_is_not_valid", () => {
32
+ validator.isValidFor(instance).should.be.false;
33
+ });
34
+
35
+ it("should_have_error_for_name_property", () => {
36
+ results[0].members.should.include('name');
37
+ });
38
+ });
@@ -3,3 +3,14 @@
3
3
 
4
4
  export * from './Validator';
5
5
  export * from './ValidationResult';
6
+ export * from './ValidationResultSeverity';
7
+ export * from './IValidationRule';
8
+ export * from './PropertyValidator';
9
+ export * from './PropertyRule';
10
+ export * from './RuleBuilder';
11
+ export * from './RuleBuilderExtensions';
12
+ export * from './rules/NotEmptyRule';
13
+ export * from './rules/LengthRules';
14
+ export * from './rules/EmailRule';
15
+ export * from './rules/RegexRule';
16
+ export * from './rules/ComparisonRules';
@@ -0,0 +1,96 @@
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
+ import { PropertyRule } from '../PropertyRule';
5
+
6
+ /**
7
+ * Validation rule that checks if a number is greater than a specified value.
8
+ * @template T The type being validated.
9
+ */
10
+ export class GreaterThanRule<T> extends PropertyRule<T, number> {
11
+ /**
12
+ * Initializes a new instance of the {@link GreaterThanRule} class.
13
+ * @param propertyAccessor Function to access the property value from the instance.
14
+ * @param threshold The value that the property must be greater than.
15
+ */
16
+ constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {
17
+ super(propertyAccessor, `'{PropertyName}' must be greater than ${threshold}.`);
18
+ }
19
+
20
+ /** @inheritdoc */
21
+ protected isValid(value: number): boolean {
22
+ if (value === null || value === undefined) {
23
+ return true;
24
+ }
25
+ return value > this.threshold;
26
+ }
27
+ }
28
+
29
+ /**
30
+ * Validation rule that checks if a number is greater than or equal to a specified value.
31
+ * @template T The type being validated.
32
+ */
33
+ export class GreaterThanOrEqualRule<T> extends PropertyRule<T, number> {
34
+ /**
35
+ * Initializes a new instance of the {@link GreaterThanOrEqualRule} class.
36
+ * @param propertyAccessor Function to access the property value from the instance.
37
+ * @param threshold The value that the property must be greater than or equal to.
38
+ */
39
+ constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {
40
+ super(propertyAccessor, `'{PropertyName}' must be greater than or equal to ${threshold}.`);
41
+ }
42
+
43
+ /** @inheritdoc */
44
+ protected isValid(value: number): boolean {
45
+ if (value === null || value === undefined) {
46
+ return true;
47
+ }
48
+ return value >= this.threshold;
49
+ }
50
+ }
51
+
52
+ /**
53
+ * Validation rule that checks if a number is less than a specified value.
54
+ * @template T The type being validated.
55
+ */
56
+ export class LessThanRule<T> extends PropertyRule<T, number> {
57
+ /**
58
+ * Initializes a new instance of the {@link LessThanRule} class.
59
+ * @param propertyAccessor Function to access the property value from the instance.
60
+ * @param threshold The value that the property must be less than.
61
+ */
62
+ constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {
63
+ super(propertyAccessor, `'{PropertyName}' must be less than ${threshold}.`);
64
+ }
65
+
66
+ /** @inheritdoc */
67
+ protected isValid(value: number): boolean {
68
+ if (value === null || value === undefined) {
69
+ return true;
70
+ }
71
+ return value < this.threshold;
72
+ }
73
+ }
74
+
75
+ /**
76
+ * Validation rule that checks if a number is less than or equal to a specified value.
77
+ * @template T The type being validated.
78
+ */
79
+ export class LessThanOrEqualRule<T> extends PropertyRule<T, number> {
80
+ /**
81
+ * Initializes a new instance of the {@link LessThanOrEqualRule} class.
82
+ * @param propertyAccessor Function to access the property value from the instance.
83
+ * @param threshold The value that the property must be less than or equal to.
84
+ */
85
+ constructor(propertyAccessor: (instance: T) => number, private readonly threshold: number) {
86
+ super(propertyAccessor, `'{PropertyName}' must be less than or equal to ${threshold}.`);
87
+ }
88
+
89
+ /** @inheritdoc */
90
+ protected isValid(value: number): boolean {
91
+ if (value === null || value === undefined) {
92
+ return true;
93
+ }
94
+ return value <= this.threshold;
95
+ }
96
+ }
@@ -0,0 +1,28 @@
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
+ import { PropertyRule } from '../PropertyRule';
5
+
6
+ /**
7
+ * Validation rule that checks if a string matches an email pattern.
8
+ * @template T The type being validated.
9
+ */
10
+ export class EmailRule<T> extends PropertyRule<T, string> {
11
+ private static readonly emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
12
+
13
+ /**
14
+ * Initializes a new instance of the {@link EmailRule} class.
15
+ * @param propertyAccessor Function to access the property value from the instance.
16
+ */
17
+ constructor(propertyAccessor: (instance: T) => string) {
18
+ super(propertyAccessor, "'{PropertyName}' is not a valid email address.");
19
+ }
20
+
21
+ /** @inheritdoc */
22
+ protected isValid(value: string): boolean {
23
+ if (value === null || value === undefined || value === '') {
24
+ return true; // Use NotNull/NotEmpty for null checks
25
+ }
26
+ return EmailRule.emailRegex.test(value);
27
+ }
28
+ }
@@ -0,0 +1,74 @@
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
+ import { PropertyRule } from '../PropertyRule';
5
+
6
+ /**
7
+ * Validation rule that checks if a string has a minimum length.
8
+ * @template T The type being validated.
9
+ */
10
+ export class MinLengthRule<T> extends PropertyRule<T, string> {
11
+ /**
12
+ * Initializes a new instance of the {@link MinLengthRule} class.
13
+ * @param propertyAccessor Function to access the property value from the instance.
14
+ * @param minLength The minimum length required.
15
+ */
16
+ constructor(propertyAccessor: (instance: T) => string, private readonly minLength: number) {
17
+ super(propertyAccessor, `'{PropertyName}' must be at least ${minLength} characters.`);
18
+ }
19
+
20
+ /** @inheritdoc */
21
+ protected isValid(value: string): boolean {
22
+ if (value === null || value === undefined) {
23
+ return true; // Use NotNull/NotEmpty for null checks
24
+ }
25
+ return value.length >= this.minLength;
26
+ }
27
+ }
28
+
29
+ /**
30
+ * Validation rule that checks if a string has a maximum length.
31
+ * @template T The type being validated.
32
+ */
33
+ export class MaxLengthRule<T> extends PropertyRule<T, string> {
34
+ /**
35
+ * Initializes a new instance of the {@link MaxLengthRule} class.
36
+ * @param propertyAccessor Function to access the property value from the instance.
37
+ * @param maxLength The maximum length allowed.
38
+ */
39
+ constructor(propertyAccessor: (instance: T) => string, private readonly maxLength: number) {
40
+ super(propertyAccessor, `'{PropertyName}' must be at most ${maxLength} characters.`);
41
+ }
42
+
43
+ /** @inheritdoc */
44
+ protected isValid(value: string): boolean {
45
+ if (value === null || value === undefined) {
46
+ return true; // Use NotNull/NotEmpty for null checks
47
+ }
48
+ return value.length <= this.maxLength;
49
+ }
50
+ }
51
+
52
+ /**
53
+ * Validation rule that checks if a string has an exact length.
54
+ * @template T The type being validated.
55
+ */
56
+ export class LengthRule<T> extends PropertyRule<T, string> {
57
+ /**
58
+ * Initializes a new instance of the {@link LengthRule} class.
59
+ * @param propertyAccessor Function to access the property value from the instance.
60
+ * @param min The minimum length required.
61
+ * @param max The maximum length allowed.
62
+ */
63
+ constructor(propertyAccessor: (instance: T) => string, private readonly min: number, private readonly max: number) {
64
+ super(propertyAccessor, `'{PropertyName}' must be between ${min} and ${max} characters.`);
65
+ }
66
+
67
+ /** @inheritdoc */
68
+ protected isValid(value: string): boolean {
69
+ if (value === null || value === undefined) {
70
+ return true; // Use NotNull/NotEmpty for null checks
71
+ }
72
+ return value.length >= this.min && value.length <= this.max;
73
+ }
74
+ }
@@ -0,0 +1,51 @@
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
+ import { PropertyRule } from '../PropertyRule';
5
+
6
+ /**
7
+ * Validation rule that checks if a value is not null, undefined, or empty.
8
+ * @template T The type being validated.
9
+ */
10
+ export class NotEmptyRule<T> extends PropertyRule<T, unknown> {
11
+ /**
12
+ * Initializes a new instance of the {@link NotEmptyRule} class.
13
+ * @param propertyAccessor Function to access the property value from the instance.
14
+ */
15
+ constructor(propertyAccessor: (instance: T) => unknown) {
16
+ super(propertyAccessor, "'{PropertyName}' must not be empty.");
17
+ }
18
+
19
+ /** @inheritdoc */
20
+ protected isValid(value: unknown): boolean {
21
+ if (value === null || value === undefined) {
22
+ return false;
23
+ }
24
+ if (typeof value === 'string' && value.trim() === '') {
25
+ return false;
26
+ }
27
+ if (Array.isArray(value) && value.length === 0) {
28
+ return false;
29
+ }
30
+ return true;
31
+ }
32
+ }
33
+
34
+ /**
35
+ * Validation rule that checks if a value is not null or undefined.
36
+ * @template T The type being validated.
37
+ */
38
+ export class NotNullRule<T> extends PropertyRule<T, unknown> {
39
+ /**
40
+ * Initializes a new instance of the {@link NotNullRule} class.
41
+ * @param propertyAccessor Function to access the property value from the instance.
42
+ */
43
+ constructor(propertyAccessor: (instance: T) => unknown) {
44
+ super(propertyAccessor, "'{PropertyName}' must not be empty.");
45
+ }
46
+
47
+ /** @inheritdoc */
48
+ protected isValid(value: unknown): boolean {
49
+ return value !== null && value !== undefined;
50
+ }
51
+ }
@@ -0,0 +1,28 @@
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
+ import { PropertyRule } from '../PropertyRule';
5
+
6
+ /**
7
+ * Validation rule that checks if a value matches a regular expression.
8
+ * @template T The type being validated.
9
+ */
10
+ export class RegexRule<T> extends PropertyRule<T, string> {
11
+ /**
12
+ * Initializes a new instance of the {@link RegexRule} class.
13
+ * @param propertyAccessor Function to access the property value from the instance.
14
+ * @param pattern The regular expression pattern to match.
15
+ * @param errorMessage Optional error message.
16
+ */
17
+ constructor(propertyAccessor: (instance: T) => string, private readonly pattern: RegExp, errorMessage?: string) {
18
+ super(propertyAccessor, errorMessage || "'{PropertyName}' is not in the correct format.");
19
+ }
20
+
21
+ /** @inheritdoc */
22
+ protected isValid(value: string): boolean {
23
+ if (value === null || value === undefined || value === '') {
24
+ return true; // Use NotNull/NotEmpty for null checks
25
+ }
26
+ return this.pattern.test(value);
27
+ }
28
+ }
@@ -0,0 +1,25 @@
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
+ import { EmailRule } from '../../EmailRule';
5
+
6
+ interface TestType {
7
+ value: string;
8
+ }
9
+
10
+ describe("when validating with empty string", () => {
11
+ let rule: EmailRule<TestType>;
12
+ let instance: TestType;
13
+ let results: ReturnType<typeof rule.validate>;
14
+
15
+ beforeEach(() => {
16
+ rule = new EmailRule<TestType>(t => t.value);
17
+ instance = { value: '' };
18
+
19
+ results = rule.validate(instance, 'value');
20
+ });
21
+
22
+ it("should_return_no_validation_errors", () => {
23
+ results.should.be.empty;
24
+ });
25
+ });
@@ -0,0 +1,25 @@
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
+ import { EmailRule } from '../../EmailRule';
5
+
6
+ interface TestType {
7
+ value: string;
8
+ }
9
+
10
+ describe("when validating with invalid email", () => {
11
+ let rule: EmailRule<TestType>;
12
+ let instance: TestType;
13
+ let results: ReturnType<typeof rule.validate>;
14
+
15
+ beforeEach(() => {
16
+ rule = new EmailRule<TestType>(t => t.value);
17
+ instance = { value: 'notanemail' };
18
+
19
+ results = rule.validate(instance, 'value');
20
+ });
21
+
22
+ it("should_return_one_validation_error", () => {
23
+ results.should.have.lengthOf(1);
24
+ });
25
+ });
@@ -0,0 +1,25 @@
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
+ import { EmailRule } from '../../EmailRule';
5
+
6
+ interface TestType {
7
+ value: string;
8
+ }
9
+
10
+ describe("when validating with valid email", () => {
11
+ let rule: EmailRule<TestType>;
12
+ let instance: TestType;
13
+ let results: ReturnType<typeof rule.validate>;
14
+
15
+ beforeEach(() => {
16
+ rule = new EmailRule<TestType>(t => t.value);
17
+ instance = { value: 'test@example.com' };
18
+
19
+ results = rule.validate(instance, 'value');
20
+ });
21
+
22
+ it("should_return_no_validation_errors", () => {
23
+ results.should.be.empty;
24
+ });
25
+ });
@@ -0,0 +1,25 @@
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
+ import { GreaterThanOrEqualRule } from '../../ComparisonRules';
5
+
6
+ interface TestType {
7
+ value: number;
8
+ }
9
+
10
+ describe("when validating with value equal to threshold", () => {
11
+ let rule: GreaterThanOrEqualRule<TestType>;
12
+ let instance: TestType;
13
+ let results: ReturnType<typeof rule.validate>;
14
+
15
+ beforeEach(() => {
16
+ rule = new GreaterThanOrEqualRule<TestType>(t => t.value, 18);
17
+ instance = { value: 18 };
18
+
19
+ results = rule.validate(instance, 'value');
20
+ });
21
+
22
+ it("should_return_no_validation_errors", () => {
23
+ results.should.be.empty;
24
+ });
25
+ });
@@ -0,0 +1,25 @@
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
+ import { GreaterThanRule } from '../../ComparisonRules';
5
+
6
+ interface TestType {
7
+ value: number;
8
+ }
9
+
10
+ describe("when validating with value equal to threshold", () => {
11
+ let rule: GreaterThanRule<TestType>;
12
+ let instance: TestType;
13
+ let results: ReturnType<typeof rule.validate>;
14
+
15
+ beforeEach(() => {
16
+ rule = new GreaterThanRule<TestType>(t => t.value, 18);
17
+ instance = { value: 18 };
18
+
19
+ results = rule.validate(instance, 'value');
20
+ });
21
+
22
+ it("should_return_one_validation_error", () => {
23
+ results.should.have.lengthOf(1);
24
+ });
25
+ });
@@ -0,0 +1,25 @@
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
+ import { GreaterThanRule } from '../../ComparisonRules';
5
+
6
+ interface TestType {
7
+ value: number;
8
+ }
9
+
10
+ describe("when validating with value greater than threshold", () => {
11
+ let rule: GreaterThanRule<TestType>;
12
+ let instance: TestType;
13
+ let results: ReturnType<typeof rule.validate>;
14
+
15
+ beforeEach(() => {
16
+ rule = new GreaterThanRule<TestType>(t => t.value, 18);
17
+ instance = { value: 25 };
18
+
19
+ results = rule.validate(instance, 'value');
20
+ });
21
+
22
+ it("should_return_no_validation_errors", () => {
23
+ results.should.be.empty;
24
+ });
25
+ });
@@ -0,0 +1,29 @@
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
+ import { GreaterThanRule } from '../../ComparisonRules';
5
+
6
+ interface TestType {
7
+ value: number;
8
+ }
9
+
10
+ describe("when validating with value less than threshold", () => {
11
+ let rule: GreaterThanRule<TestType>;
12
+ let instance: TestType;
13
+ let results: ReturnType<typeof rule.validate>;
14
+
15
+ beforeEach(() => {
16
+ rule = new GreaterThanRule<TestType>(t => t.value, 18);
17
+ instance = { value: 15 };
18
+
19
+ results = rule.validate(instance, 'value');
20
+ });
21
+
22
+ it("should_return_one_validation_error", () => {
23
+ results.should.have.lengthOf(1);
24
+ });
25
+
26
+ it("should_include_threshold_in_message", () => {
27
+ results[0].message.should.include('18');
28
+ });
29
+ });