@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,63 @@
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 { QueryFor } from '../../QueryFor';
5
+ import { QueryValidator } from '../../QueryValidator';
6
+ import { QueryResult } from '../../QueryResult';
7
+ import { ParameterDescriptor } from '../../../reflection/ParameterDescriptor';
8
+ import '../../../validation/RuleBuilderExtensions';
9
+
10
+ interface TestParams {
11
+ minAge: number;
12
+ }
13
+
14
+ class TestQueryValidator extends QueryValidator<TestParams> {
15
+ constructor() {
16
+ super();
17
+ this.ruleFor(q => q.minAge).greaterThanOrEqual(0);
18
+ }
19
+ }
20
+
21
+ class TestQuery extends QueryFor<string, TestParams> {
22
+ readonly route = '/test';
23
+ readonly validation = new TestQueryValidator();
24
+ readonly parameterDescriptors: ParameterDescriptor[] = [];
25
+ defaultValue = '';
26
+ parameters: TestParams = { minAge: -1 };
27
+
28
+ constructor() {
29
+ super(String, false);
30
+ }
31
+
32
+ get requiredRequestParameters(): string[] {
33
+ return [];
34
+ }
35
+ }
36
+
37
+ describe("when performing with client validation failing", () => {
38
+ let query: TestQuery;
39
+ let result: QueryResult<string>;
40
+
41
+ beforeEach(async () => {
42
+ query = new TestQuery();
43
+ query.parameters = { minAge: -5 };
44
+
45
+ result = await query.perform(query.parameters);
46
+ });
47
+
48
+ it("should_not_be_success", () => {
49
+ result.isSuccess.should.be.false;
50
+ });
51
+
52
+ it("should_not_be_valid", () => {
53
+ result.isValid.should.be.false;
54
+ });
55
+
56
+ it("should_have_validation_results", () => {
57
+ result.validationResults.should.not.be.empty;
58
+ });
59
+
60
+ it("should_have_error_for_minAge", () => {
61
+ result.validationResults.some(r => r.members.includes('minAge')).should.be.true;
62
+ });
63
+ });
@@ -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 { a_query_with_validator } from '../given/a_query_with_validator';
5
+ import { given } from '../../../given';
6
+ import { QueryResult } from '../../QueryResult';
7
+
8
+ describe("when performing with client validation failure and custom message", given(a_query_with_validator, context => {
9
+ let result: QueryResult<object>;
10
+
11
+ beforeEach(async () => {
12
+ // Set invalid search term (too short)
13
+ context.query.parameters = { searchTerm: 'ab', minAge: 25 };
14
+
15
+ // Perform should validate client-side and not call the server
16
+ result = await context.query.perform(context.query.parameters);
17
+ });
18
+
19
+ afterEach(() => {
20
+ context.fetchStub.restore();
21
+ });
22
+
23
+ it("should_not_call_server", () => context.fetchStub.called.should.be.false);
24
+ it("should_return_invalid_result", () => result.isValid.should.be.false);
25
+ it("should_have_validation_error", () => result.validationResults.length.should.equal(1));
26
+ it("should_have_custom_error_message", () => result.validationResults[0].message.should.equal('Search term must be at least 3 characters'));
27
+ it("should_have_error_for_searchTerm_property", () => result.validationResults[0].members[0].should.equal('searchTerm'));
28
+ }));
@@ -0,0 +1,64 @@
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 { QueryFor } from '../../QueryFor';
5
+ import { QueryValidator } from '../../QueryValidator';
6
+ import { ParameterDescriptor } from '../../../reflection/ParameterDescriptor';
7
+ import '../../../validation/RuleBuilderExtensions';
8
+ import sinon from 'sinon';
9
+ import { createFetchHelper } from '../../../helpers/fetchHelper';
10
+
11
+ interface TestParams {
12
+ minAge: number;
13
+ }
14
+
15
+ class TestQueryValidator extends QueryValidator<TestParams> {
16
+ constructor() {
17
+ super();
18
+ this.ruleFor(q => q.minAge).greaterThanOrEqual(0);
19
+ }
20
+ }
21
+
22
+ class TestQuery extends QueryFor<string, TestParams> {
23
+ readonly route = '/test';
24
+ readonly validation = new TestQueryValidator();
25
+ readonly parameterDescriptors: ParameterDescriptor[] = [];
26
+ defaultValue = '';
27
+ parameters: TestParams = { minAge: 0 };
28
+
29
+ constructor() {
30
+ super(String, false);
31
+ }
32
+
33
+ get requiredRequestParameters(): string[] {
34
+ return [];
35
+ }
36
+ }
37
+
38
+ describe("when performing with client validation passing", () => {
39
+ let query: TestQuery;
40
+ let fetchStub: sinon.SinonStub;
41
+ let fetchHelper: { stubFetch: () => sinon.SinonStub; restore: () => void };
42
+
43
+ beforeEach(() => {
44
+ query = new TestQuery();
45
+ query.setOrigin('http://localhost');
46
+ query.parameters = { minAge: 18 };
47
+
48
+ fetchHelper = createFetchHelper();
49
+ fetchStub = fetchHelper.stubFetch();
50
+ fetchStub.resolves({
51
+ ok: true,
52
+ json: async () => ({ data: 'result', isSuccess: true, isValid: true })
53
+ } as Response);
54
+ });
55
+
56
+ afterEach(() => {
57
+ fetchHelper.restore();
58
+ });
59
+
60
+ it("should_call_server", async () => {
61
+ await query.perform(query.parameters);
62
+ fetchStub.should.have.been.called;
63
+ });
64
+ });
@@ -30,10 +30,6 @@ describe('with query without required parameters', given(a_query_for, context =>
30
30
  };
31
31
 
32
32
  beforeEach(async () => {
33
- // Setup fetch mock - restore any existing stub first
34
- if ((global.fetch as sinon.SinonStub)?.restore) {
35
- (global.fetch as sinon.SinonStub).restore();
36
- }
37
33
  fetchHelper = createFetchHelper();
38
34
  fetchStub = fetchHelper.stubFetch();
39
35
  fetchStub.resolves({
@@ -50,7 +50,7 @@ describe('with sorting', given(a_query_for, context => {
50
50
  });
51
51
 
52
52
  afterEach(() => {
53
- fetchStub.restore();
53
+ fetchHelper.restore();
54
54
  });
55
55
 
56
56
  it('should call fetch with URL including sorting parameters', () => {
@@ -17,7 +17,7 @@ describe("when asking has data and it is an array with items", () => {
17
17
  totalItems: 0,
18
18
  totalPages: 0,
19
19
  page: 0,
20
- items: 0
20
+ size: 0
21
21
  },
22
22
  validationResults: [],
23
23
  data: [{}, {}]
@@ -17,7 +17,7 @@ describe("when asking has data and it is defined instance", () => {
17
17
  totalItems: 0,
18
18
  totalPages: 0,
19
19
  page: 0,
20
- items: 0
20
+ size: 0
21
21
  },
22
22
  validationResults: [],
23
23
  data: {}
@@ -17,7 +17,7 @@ describe("when asking has data and it is empty array", () => {
17
17
  totalItems: 0,
18
18
  totalPages: 0,
19
19
  page: 0,
20
- items: 0
20
+ size: 0
21
21
  },
22
22
  validationResults: [],
23
23
  data: []
@@ -17,7 +17,7 @@ describe("when asking has data and it is undefined", () => {
17
17
  totalItems: 0,
18
18
  totalPages: 0,
19
19
  page: 0,
20
- items: 0
20
+ size: 0
21
21
  },
22
22
  validationResults: [],
23
23
  data:undefined
package/queries/index.ts CHANGED
@@ -20,3 +20,4 @@ export * from './ObservableQuerySubscription';
20
20
  export * from './WebSocketMessage';
21
21
  export * from './IQueryProvider';
22
22
  export * from './QueryProvider';
23
+ export * from './QueryValidator';
@@ -0,0 +1,18 @@
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 { ValidationResult } from './ValidationResult';
5
+
6
+ /**
7
+ * Defines a validation rule that can be applied to a property.
8
+ * @template T The type being validated.
9
+ */
10
+ export interface IValidationRule<T> {
11
+ /**
12
+ * Validate the given value.
13
+ * @param instance The instance being validated.
14
+ * @param propertyName The name of the property being validated.
15
+ * @returns An array of validation results, empty if valid.
16
+ */
17
+ validate(instance: T, propertyName: string): ValidationResult[];
18
+ }
@@ -0,0 +1,59 @@
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 { IValidationRule } from './IValidationRule';
5
+ import { ValidationResult } from './ValidationResult';
6
+ import { ValidationResultSeverity } from './ValidationResultSeverity';
7
+
8
+ /**
9
+ * Base class for property-based validation rules.
10
+ * @template T The type being validated.
11
+ * @template TProperty The type of the property being validated.
12
+ */
13
+ export abstract class PropertyRule<T, TProperty> implements IValidationRule<T> {
14
+ protected errorMessage: string;
15
+
16
+ /**
17
+ * Initializes a new instance of the {@link PropertyRule} class.
18
+ * @param propertyAccessor Function to access the property value from the instance.
19
+ * @param defaultErrorMessage The default error message if validation fails.
20
+ */
21
+ constructor(
22
+ protected readonly propertyAccessor: (instance: T) => TProperty,
23
+ defaultErrorMessage: string
24
+ ) {
25
+ this.errorMessage = defaultErrorMessage;
26
+ }
27
+
28
+ /**
29
+ * Set a custom error message for this rule.
30
+ * @param message The custom error message.
31
+ * @returns This rule instance for chaining.
32
+ */
33
+ withMessage(message: string): this {
34
+ this.errorMessage = message;
35
+ return this;
36
+ }
37
+
38
+ /** @inheritdoc */
39
+ validate(instance: T, propertyName: string): ValidationResult[] {
40
+ const value = this.propertyAccessor(instance);
41
+ if (!this.isValid(value, instance)) {
42
+ return [new ValidationResult(
43
+ ValidationResultSeverity.Error,
44
+ this.errorMessage.replace('{PropertyName}', propertyName),
45
+ [propertyName],
46
+ null
47
+ )];
48
+ }
49
+ return [];
50
+ }
51
+
52
+ /**
53
+ * Determine if the property value is valid.
54
+ * @param value The property value.
55
+ * @param instance The instance being validated.
56
+ * @returns True if valid, false otherwise.
57
+ */
58
+ protected abstract isValid(value: TProperty, instance: T): boolean;
59
+ }
@@ -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 { IValidationRule } from './IValidationRule';
5
+ import { ValidationResult } from './ValidationResult';
6
+
7
+ /**
8
+ * Represents a validator for a specific property.
9
+ * @template T The type being validated.
10
+ */
11
+ export class PropertyValidator<T> {
12
+ private readonly _rules: IValidationRule<T>[] = [];
13
+
14
+ /**
15
+ * Initializes a new instance of the {@link PropertyValidator} class.
16
+ * @param propertyName The name of the property being validated.
17
+ */
18
+ constructor(readonly propertyName: string) {
19
+ }
20
+
21
+ /**
22
+ * Add a validation rule to this property validator.
23
+ * @param rule The rule to add.
24
+ */
25
+ addRule(rule: IValidationRule<T>): void {
26
+ this._rules.push(rule);
27
+ }
28
+
29
+ /**
30
+ * Validate the property value.
31
+ * @param instance The instance being validated.
32
+ * @returns An array of validation results, empty if valid.
33
+ */
34
+ validate(instance: T): ValidationResult[] {
35
+ const results: ValidationResult[] = [];
36
+ for (const rule of this._rules) {
37
+ const ruleResults = rule.validate(instance, this.propertyName);
38
+ results.push(...ruleResults);
39
+ }
40
+ return results;
41
+ }
42
+
43
+ /**
44
+ * Gets whether or not the property is valid.
45
+ * @param instance The instance being validated.
46
+ * @returns True if valid, false otherwise.
47
+ */
48
+ isValid(instance: T): boolean {
49
+ return this.validate(instance).length === 0;
50
+ }
51
+ }
@@ -0,0 +1,49 @@
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 { PropertyValidator } from './PropertyValidator';
5
+ import { IValidationRule } from './IValidationRule';
6
+ import { PropertyRule } from './PropertyRule';
7
+
8
+ /**
9
+ * Represents a builder for creating validation rules for a property.
10
+ * @template T The type being validated.
11
+ * @template TProperty The type of the property being validated.
12
+ */
13
+ export class RuleBuilder<T, TProperty> {
14
+ private lastRule?: IValidationRule<T>;
15
+
16
+ /**
17
+ * Initializes a new instance of the {@link RuleBuilder} class.
18
+ * @param propertyValidator The property validator to add rules to.
19
+ * @param _propertyAccessor Function to access the property value.
20
+ */
21
+ constructor(
22
+ private readonly propertyValidator: PropertyValidator<T>,
23
+ private readonly _propertyAccessor: (instance: T) => TProperty
24
+ ) {
25
+ }
26
+
27
+ /**
28
+ * Add a custom validation rule.
29
+ * @param rule The validation rule to add.
30
+ * @returns The rule builder for chaining.
31
+ */
32
+ addRule(rule: IValidationRule<T>): RuleBuilder<T, TProperty> {
33
+ this.propertyValidator.addRule(rule);
34
+ this.lastRule = rule;
35
+ return this;
36
+ }
37
+
38
+ /**
39
+ * Set a custom error message for the last added rule.
40
+ * @param message The custom error message.
41
+ * @returns The rule builder for chaining.
42
+ */
43
+ withMessage(message: string): RuleBuilder<T, TProperty> {
44
+ if (this.lastRule && this.lastRule instanceof PropertyRule) {
45
+ this.lastRule.withMessage(message);
46
+ }
47
+ return this;
48
+ }
49
+ }
@@ -0,0 +1,176 @@
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 { RuleBuilder } from './RuleBuilder';
5
+ import { NotEmptyRule, NotNullRule } from './rules/NotEmptyRule';
6
+ import { MinLengthRule, MaxLengthRule, LengthRule } from './rules/LengthRules';
7
+ import { EmailRule } from './rules/EmailRule';
8
+ import { RegexRule } from './rules/RegexRule';
9
+ import { GreaterThanRule, GreaterThanOrEqualRule, LessThanRule, LessThanOrEqualRule } from './rules/ComparisonRules';
10
+
11
+ /**
12
+ * Extension methods for {@link RuleBuilder} to add validation rules in a fluent manner.
13
+ */
14
+
15
+ /**
16
+ * Add a rule that the property must not be empty (not null, undefined, empty string, or empty array).
17
+ * @template T The type being validated.
18
+ * @template TProperty The type of the property.
19
+ * @param this The rule builder instance.
20
+ * @returns The rule builder for chaining.
21
+ */
22
+ export function notEmpty<T, TProperty>(this: RuleBuilder<T, TProperty>): RuleBuilder<T, TProperty> {
23
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => TProperty })._propertyAccessor;
24
+ return this.addRule(new NotEmptyRule<T>(propertyAccessor));
25
+ }
26
+
27
+ /**
28
+ * Add a rule that the property must not be null or undefined.
29
+ * @template T The type being validated.
30
+ * @template TProperty The type of the property.
31
+ * @param this The rule builder instance.
32
+ * @returns The rule builder for chaining.
33
+ */
34
+ export function notNull<T, TProperty>(this: RuleBuilder<T, TProperty>): RuleBuilder<T, TProperty> {
35
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => TProperty })._propertyAccessor;
36
+ return this.addRule(new NotNullRule<T>(propertyAccessor));
37
+ }
38
+
39
+ /**
40
+ * Add a rule that the string property must have at least the specified length.
41
+ * @template T The type being validated.
42
+ * @param this The rule builder instance.
43
+ * @param length The minimum length.
44
+ * @returns The rule builder for chaining.
45
+ */
46
+ export function minLength<T>(this: RuleBuilder<T, string>, length: number): RuleBuilder<T, string> {
47
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;
48
+ return this.addRule(new MinLengthRule<T>(propertyAccessor, length));
49
+ }
50
+
51
+ /**
52
+ * Add a rule that the string property must have at most the specified length.
53
+ * @template T The type being validated.
54
+ * @param this The rule builder instance.
55
+ * @param length The maximum length.
56
+ * @returns The rule builder for chaining.
57
+ */
58
+ export function maxLength<T>(this: RuleBuilder<T, string>, length: number): RuleBuilder<T, string> {
59
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;
60
+ return this.addRule(new MaxLengthRule<T>(propertyAccessor, length));
61
+ }
62
+
63
+ /**
64
+ * Add a rule that the string property must have a length between min and max.
65
+ * @template T The type being validated.
66
+ * @param this The rule builder instance.
67
+ * @param min The minimum length.
68
+ * @param max The maximum length.
69
+ * @returns The rule builder for chaining.
70
+ */
71
+ export function length<T>(this: RuleBuilder<T, string>, min: number, max: number): RuleBuilder<T, string> {
72
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;
73
+ return this.addRule(new LengthRule<T>(propertyAccessor, min, max));
74
+ }
75
+
76
+ /**
77
+ * Add a rule that the string property must be a valid email address.
78
+ * @template T The type being validated.
79
+ * @param this The rule builder instance.
80
+ * @returns The rule builder for chaining.
81
+ */
82
+ export function emailAddress<T>(this: RuleBuilder<T, string>): RuleBuilder<T, string> {
83
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;
84
+ return this.addRule(new EmailRule<T>(propertyAccessor));
85
+ }
86
+
87
+ /**
88
+ * Add a rule that the string property must match the specified regular expression.
89
+ * @template T The type being validated.
90
+ * @param this The rule builder instance.
91
+ * @param pattern The regular expression pattern.
92
+ * @param errorMessage Optional error message.
93
+ * @returns The rule builder for chaining.
94
+ */
95
+ export function matches<T>(this: RuleBuilder<T, string>, pattern: RegExp, errorMessage?: string): RuleBuilder<T, string> {
96
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => string })._propertyAccessor;
97
+ return this.addRule(new RegexRule<T>(propertyAccessor, pattern, errorMessage));
98
+ }
99
+
100
+ /**
101
+ * Add a rule that the number property must be greater than the specified value.
102
+ * @template T The type being validated.
103
+ * @param this The rule builder instance.
104
+ * @param threshold The value to compare against.
105
+ * @returns The rule builder for chaining.
106
+ */
107
+ export function greaterThan<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {
108
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;
109
+ return this.addRule(new GreaterThanRule<T>(propertyAccessor, threshold));
110
+ }
111
+
112
+ /**
113
+ * Add a rule that the number property must be greater than or equal to the specified value.
114
+ * @template T The type being validated.
115
+ * @param this The rule builder instance.
116
+ * @param threshold The value to compare against.
117
+ * @returns The rule builder for chaining.
118
+ */
119
+ export function greaterThanOrEqual<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {
120
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;
121
+ return this.addRule(new GreaterThanOrEqualRule<T>(propertyAccessor, threshold));
122
+ }
123
+
124
+ /**
125
+ * Add a rule that the number property must be less than the specified value.
126
+ * @template T The type being validated.
127
+ * @param this The rule builder instance.
128
+ * @param threshold The value to compare against.
129
+ * @returns The rule builder for chaining.
130
+ */
131
+ export function lessThan<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {
132
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;
133
+ return this.addRule(new LessThanRule<T>(propertyAccessor, threshold));
134
+ }
135
+
136
+ /**
137
+ * Add a rule that the number property must be less than or equal to the specified value.
138
+ * @template T The type being validated.
139
+ * @param this The rule builder instance.
140
+ * @param threshold The value to compare against.
141
+ * @returns The rule builder for chaining.
142
+ */
143
+ export function lessThanOrEqual<T>(this: RuleBuilder<T, number>, threshold: number): RuleBuilder<T, number> {
144
+ const propertyAccessor = (this as unknown as { _propertyAccessor: (instance: T) => number })._propertyAccessor;
145
+ return this.addRule(new LessThanOrEqualRule<T>(propertyAccessor, threshold));
146
+ }
147
+
148
+ // Add the extension methods to the RuleBuilder prototype
149
+ RuleBuilder.prototype.notEmpty = notEmpty;
150
+ RuleBuilder.prototype.notNull = notNull;
151
+ (RuleBuilder.prototype as unknown as { minLength: typeof minLength }).minLength = minLength;
152
+ (RuleBuilder.prototype as unknown as { maxLength: typeof maxLength }).maxLength = maxLength;
153
+ (RuleBuilder.prototype as unknown as { length: typeof length }).length = length;
154
+ (RuleBuilder.prototype as unknown as { emailAddress: typeof emailAddress }).emailAddress = emailAddress;
155
+ (RuleBuilder.prototype as unknown as { matches: typeof matches }).matches = matches;
156
+ (RuleBuilder.prototype as unknown as { greaterThan: typeof greaterThan }).greaterThan = greaterThan;
157
+ (RuleBuilder.prototype as unknown as { greaterThanOrEqual: typeof greaterThanOrEqual }).greaterThanOrEqual = greaterThanOrEqual;
158
+ (RuleBuilder.prototype as unknown as { lessThan: typeof lessThan }).lessThan = lessThan;
159
+ (RuleBuilder.prototype as unknown as { lessThanOrEqual: typeof lessThanOrEqual }).lessThanOrEqual = lessThanOrEqual;
160
+
161
+ // Extend the RuleBuilder interface to include these methods
162
+ declare module './RuleBuilder' {
163
+ interface RuleBuilder<T, TProperty> {
164
+ notEmpty(): RuleBuilder<T, TProperty>;
165
+ notNull(): RuleBuilder<T, TProperty>;
166
+ minLength(length: number): RuleBuilder<T, TProperty>;
167
+ maxLength(length: number): RuleBuilder<T, TProperty>;
168
+ length(min: number, max: number): RuleBuilder<T, TProperty>;
169
+ emailAddress(): RuleBuilder<T, TProperty>;
170
+ matches(pattern: RegExp, errorMessage?: string): RuleBuilder<T, TProperty>;
171
+ greaterThan(threshold: number): RuleBuilder<T, TProperty>;
172
+ greaterThanOrEqual(threshold: number): RuleBuilder<T, TProperty>;
173
+ lessThan(threshold: number): RuleBuilder<T, TProperty>;
174
+ lessThanOrEqual(threshold: number): RuleBuilder<T, TProperty>;
175
+ }
176
+ }
@@ -1,15 +1,85 @@
1
1
  // Copyright (c) Cratis. All rights reserved.
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
 
4
+ import { ValidationResult } from './ValidationResult';
5
+ import { PropertyValidator } from './PropertyValidator';
6
+ import { RuleBuilder } from './RuleBuilder';
7
+
4
8
  /**
5
- * Represents a validator.
9
+ * Represents a validator for a type that builds validation rules programmatically.
10
+ * @template T The type being validated.
6
11
  */
7
- export class Validator {
12
+ export class Validator<T = object> {
13
+ private readonly _propertyValidators = new Map<string, PropertyValidator<T>>();
14
+
15
+ /**
16
+ * Define validation rules for a property.
17
+ * @template TProperty The type of the property.
18
+ * @param propertyAccessor Function to access the property from the instance.
19
+ * @returns A rule builder for the property.
20
+ */
21
+ ruleFor<TProperty>(propertyAccessor: (instance: T) => TProperty): RuleBuilder<T, TProperty> {
22
+ const propertyName = this.getPropertyName(propertyAccessor);
23
+ let propertyValidator = this._propertyValidators.get(propertyName);
24
+
25
+ if (!propertyValidator) {
26
+ propertyValidator = new PropertyValidator<T>(propertyName);
27
+ this._propertyValidators.set(propertyName, propertyValidator);
28
+ }
29
+
30
+ return new RuleBuilder<T, TProperty>(propertyValidator, propertyAccessor);
31
+ }
32
+
33
+ /**
34
+ * Validate an instance.
35
+ * @param instance The instance to validate.
36
+ * @returns An array of validation results, empty if valid.
37
+ */
38
+ validate(instance: T): ValidationResult[] {
39
+ const results: ValidationResult[] = [];
40
+ for (const propertyValidator of this._propertyValidators.values()) {
41
+ const propertyResults = propertyValidator.validate(instance);
42
+ results.push(...propertyResults);
43
+ }
44
+ return results;
45
+ }
8
46
 
9
47
  /**
10
- * Gets whether or not is valid.
48
+ * Gets whether or not the instance is valid.
49
+ * @param instance The instance to validate.
50
+ * @returns True if valid, false otherwise.
11
51
  */
12
- get isValid() {
52
+ get isValid(): boolean {
13
53
  return true;
14
54
  }
55
+
56
+ /**
57
+ * Gets whether or not a specific instance is valid.
58
+ * @param instance The instance to validate.
59
+ * @returns True if valid, false otherwise.
60
+ */
61
+ isValidFor(instance: T): boolean {
62
+ return this.validate(instance).length === 0;
63
+ }
64
+
65
+ private getPropertyName<TProperty>(propertyAccessor: (instance: T) => TProperty): string {
66
+ // Create a proxy to capture property access
67
+ const propertyNames: string[] = [];
68
+ const proxy = new Proxy({} as Record<string, unknown>, {
69
+ get(_target, prop) {
70
+ if (typeof prop === 'string') {
71
+ propertyNames.push(prop);
72
+ }
73
+ return undefined;
74
+ }
75
+ });
76
+
77
+ try {
78
+ propertyAccessor(proxy as T);
79
+ } catch {
80
+ // Ignore errors - we're just capturing the property name
81
+ }
82
+
83
+ return propertyNames[0] || 'unknown';
84
+ }
15
85
  }