@cratis/arc 20.54.4 → 20.54.7

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 (1021) hide show
  1. package/dist/cjs/Globals.js +21 -8
  2. package/dist/cjs/Globals.js.map +1 -1
  3. package/dist/cjs/UrlHelpers.js +46 -13
  4. package/dist/cjs/UrlHelpers.js.map +1 -1
  5. package/dist/cjs/commands/Command.js +50 -38
  6. package/dist/cjs/commands/Command.js.map +1 -1
  7. package/dist/cjs/commands/CommandResult.js +58 -36
  8. package/dist/cjs/commands/CommandResult.js.map +1 -1
  9. package/dist/cjs/commands/CommandResults.js +24 -22
  10. package/dist/cjs/commands/CommandResults.js.map +1 -1
  11. package/dist/cjs/commands/CommandValidator.js +10 -2
  12. package/dist/cjs/commands/CommandValidator.js.map +1 -1
  13. package/dist/cjs/commands/index.js +2 -2
  14. package/dist/cjs/commands/index.js.map +1 -1
  15. package/dist/cjs/deepEqual.js +9 -9
  16. package/dist/cjs/deepEqual.js.map +1 -1
  17. package/dist/cjs/identity/IIdentityProvider.js +5 -1
  18. package/dist/cjs/identity/IIdentityProvider.js.map +1 -1
  19. package/dist/cjs/identity/IdentityProvider.js +44 -22
  20. package/dist/cjs/identity/IdentityProvider.js.map +1 -1
  21. package/dist/cjs/identity/index.js +2 -1
  22. package/dist/cjs/identity/index.js.map +1 -1
  23. package/dist/cjs/index.js +1 -4
  24. package/dist/cjs/index.js.map +1 -1
  25. package/dist/cjs/joinPaths.js +2 -0
  26. package/dist/cjs/joinPaths.js.map +1 -1
  27. package/dist/cjs/messaging/IMessenger.js +5 -1
  28. package/dist/cjs/messaging/IMessenger.js.map +1 -1
  29. package/dist/cjs/messaging/Message.js +10 -2
  30. package/dist/cjs/messaging/Message.js.map +1 -1
  31. package/dist/cjs/messaging/Messenger.js +15 -10
  32. package/dist/cjs/messaging/Messenger.js.map +1 -1
  33. package/dist/cjs/messaging/index.js +2 -1
  34. package/dist/cjs/messaging/index.js.map +1 -1
  35. package/dist/cjs/queries/HubConnectionKeepAlive.js +41 -6
  36. package/dist/cjs/queries/HubConnectionKeepAlive.js.map +1 -1
  37. package/dist/cjs/queries/IQueryProvider.js +5 -1
  38. package/dist/cjs/queries/IQueryProvider.js.map +1 -1
  39. package/dist/cjs/queries/NullObservableQueryConnection.js +13 -7
  40. package/dist/cjs/queries/NullObservableQueryConnection.js.map +1 -1
  41. package/dist/cjs/queries/ObservableQueryConnection.js +43 -31
  42. package/dist/cjs/queries/ObservableQueryConnection.js.map +1 -1
  43. package/dist/cjs/queries/ObservableQueryConnectionFactory.js +36 -14
  44. package/dist/cjs/queries/ObservableQueryConnectionFactory.js.map +1 -1
  45. package/dist/cjs/queries/ObservableQueryConnectionPool.js +37 -6
  46. package/dist/cjs/queries/ObservableQueryConnectionPool.js.map +1 -1
  47. package/dist/cjs/queries/ObservableQueryDiagnostics.js +29 -14
  48. package/dist/cjs/queries/ObservableQueryDiagnostics.js.map +1 -1
  49. package/dist/cjs/queries/ObservableQueryFor.js +57 -31
  50. package/dist/cjs/queries/ObservableQueryFor.js.map +1 -1
  51. package/dist/cjs/queries/ObservableQueryMultiplexer.js +109 -51
  52. package/dist/cjs/queries/ObservableQueryMultiplexer.js.map +1 -1
  53. package/dist/cjs/queries/ObservableQuerySubscription.js +12 -3
  54. package/dist/cjs/queries/ObservableQuerySubscription.js.map +1 -1
  55. package/dist/cjs/queries/Paging.js +20 -6
  56. package/dist/cjs/queries/Paging.js.map +1 -1
  57. package/dist/cjs/queries/PagingInfo.js +23 -7
  58. package/dist/cjs/queries/PagingInfo.js.map +1 -1
  59. package/dist/cjs/queries/QueryFor.js +42 -24
  60. package/dist/cjs/queries/QueryFor.js.map +1 -1
  61. package/dist/cjs/queries/QueryInstanceCache.js +149 -37
  62. package/dist/cjs/queries/QueryInstanceCache.js.map +1 -1
  63. package/dist/cjs/queries/QueryProvider.js +13 -3
  64. package/dist/cjs/queries/QueryProvider.js.map +1 -1
  65. package/dist/cjs/queries/QueryResult.js +39 -33
  66. package/dist/cjs/queries/QueryResult.js.map +1 -1
  67. package/dist/cjs/queries/QueryResultWithState.js +26 -4
  68. package/dist/cjs/queries/QueryResultWithState.js.map +1 -1
  69. package/dist/cjs/queries/QueryTransportMethod.js +15 -5
  70. package/dist/cjs/queries/QueryTransportMethod.js.map +1 -1
  71. package/dist/cjs/queries/QueryValidator.js +10 -2
  72. package/dist/cjs/queries/QueryValidator.js.map +1 -1
  73. package/dist/cjs/queries/ReconnectPolicy.js +27 -6
  74. package/dist/cjs/queries/ReconnectPolicy.js.map +1 -1
  75. package/dist/cjs/queries/ServerSentEventHubConnection.js +107 -61
  76. package/dist/cjs/queries/ServerSentEventHubConnection.js.map +1 -1
  77. package/dist/cjs/queries/ServerSentEventQueryConnection.js +31 -23
  78. package/dist/cjs/queries/ServerSentEventQueryConnection.js.map +1 -1
  79. package/dist/cjs/queries/SortDirection.js +18 -6
  80. package/dist/cjs/queries/SortDirection.js.map +1 -1
  81. package/dist/cjs/queries/Sorting.js +16 -4
  82. package/dist/cjs/queries/Sorting.js.map +1 -1
  83. package/dist/cjs/queries/SortingActions.js +15 -4
  84. package/dist/cjs/queries/SortingActions.js.map +1 -1
  85. package/dist/cjs/queries/SortingActionsForObservableQuery.js +16 -4
  86. package/dist/cjs/queries/SortingActionsForObservableQuery.js.map +1 -1
  87. package/dist/cjs/queries/SortingActionsForQuery.js +16 -4
  88. package/dist/cjs/queries/SortingActionsForQuery.js.map +1 -1
  89. package/dist/cjs/queries/ValidateRequestArguments.js +13 -9
  90. package/dist/cjs/queries/ValidateRequestArguments.js.map +1 -1
  91. package/dist/cjs/queries/WebSocketHubConnection.js +98 -52
  92. package/dist/cjs/queries/WebSocketHubConnection.js.map +1 -1
  93. package/dist/cjs/queries/WebSocketMessage.js +18 -6
  94. package/dist/cjs/queries/WebSocketMessage.js.map +1 -1
  95. package/dist/cjs/queries/index.js +6 -18
  96. package/dist/cjs/queries/index.js.map +1 -1
  97. package/dist/cjs/reflection/ParameterDescriptor.js +11 -2
  98. package/dist/cjs/reflection/ParameterDescriptor.js.map +1 -1
  99. package/dist/cjs/reflection/ParametersHelper.js +11 -3
  100. package/dist/cjs/reflection/ParametersHelper.js.map +1 -1
  101. package/dist/cjs/reflection/PropertyDescriptor.js +11 -2
  102. package/dist/cjs/reflection/PropertyDescriptor.js.map +1 -1
  103. package/dist/cjs/reflection/index.js +2 -1
  104. package/dist/cjs/reflection/index.js.map +1 -1
  105. package/dist/cjs/validation/PropertyRule.js +23 -5
  106. package/dist/cjs/validation/PropertyRule.js.map +1 -1
  107. package/dist/cjs/validation/PropertyValidator.js +25 -6
  108. package/dist/cjs/validation/PropertyValidator.js.map +1 -1
  109. package/dist/cjs/validation/RuleBuilder.js +22 -4
  110. package/dist/cjs/validation/RuleBuilder.js.map +1 -1
  111. package/dist/cjs/validation/RuleBuilderExtensions.js +95 -13
  112. package/dist/cjs/validation/RuleBuilderExtensions.js.map +1 -1
  113. package/dist/cjs/validation/ValidationResult.js +6 -2
  114. package/dist/cjs/validation/ValidationResult.js.map +1 -1
  115. package/dist/cjs/validation/ValidationResultSeverity.js +21 -7
  116. package/dist/cjs/validation/ValidationResultSeverity.js.map +1 -1
  117. package/dist/cjs/validation/Validator.js +32 -9
  118. package/dist/cjs/validation/Validator.js.map +1 -1
  119. package/dist/cjs/validation/index.js +3 -5
  120. package/dist/cjs/validation/index.js.map +1 -1
  121. package/dist/cjs/validation/rules/ComparisonRules.js +46 -20
  122. package/dist/cjs/validation/rules/ComparisonRules.js.map +1 -1
  123. package/dist/cjs/validation/rules/EmailRule.js +12 -4
  124. package/dist/cjs/validation/rules/EmailRule.js.map +1 -1
  125. package/dist/cjs/validation/rules/LengthRules.js +39 -19
  126. package/dist/cjs/validation/rules/LengthRules.js.map +1 -1
  127. package/dist/cjs/validation/rules/NotEmptyRule.js +20 -6
  128. package/dist/cjs/validation/rules/NotEmptyRule.js.map +1 -1
  129. package/dist/cjs/validation/rules/PhoneRule.js +12 -4
  130. package/dist/cjs/validation/rules/PhoneRule.js.map +1 -1
  131. package/dist/cjs/validation/rules/RegexRule.js +15 -6
  132. package/dist/cjs/validation/rules/RegexRule.js.map +1 -1
  133. package/dist/cjs/validation/rules/UrlRule.js +12 -4
  134. package/dist/cjs/validation/rules/UrlRule.js.map +1 -1
  135. package/dist/esm/Globals.js +20 -8
  136. package/dist/esm/Globals.js.map +1 -1
  137. package/dist/esm/UrlHelpers.d.ts.map +1 -1
  138. package/dist/esm/UrlHelpers.js +46 -13
  139. package/dist/esm/UrlHelpers.js.map +1 -1
  140. package/dist/esm/commands/Command.d.ts.map +1 -1
  141. package/dist/esm/commands/Command.js +50 -38
  142. package/dist/esm/commands/Command.js.map +1 -1
  143. package/dist/esm/commands/CommandResult.d.ts.map +1 -1
  144. package/dist/esm/commands/CommandResult.js +58 -36
  145. package/dist/esm/commands/CommandResult.js.map +1 -1
  146. package/dist/esm/commands/CommandResults.d.ts.map +1 -1
  147. package/dist/esm/commands/CommandResults.js +24 -22
  148. package/dist/esm/commands/CommandResults.js.map +1 -1
  149. package/dist/esm/commands/CommandValidator.d.ts.map +1 -1
  150. package/dist/esm/commands/CommandValidator.js +10 -2
  151. package/dist/esm/commands/CommandValidator.js.map +1 -1
  152. package/dist/esm/commands/for_Command/CommandWithRouteParams.d.ts.map +1 -1
  153. package/dist/esm/commands/for_Command/SomeCommand.d.ts.map +1 -1
  154. package/dist/esm/commands/for_Command/given/a_command.d.ts.map +1 -1
  155. package/dist/esm/commands/for_Command/given/a_command_with_validator.d.ts.map +1 -1
  156. package/dist/esm/commands/index.js +3 -1
  157. package/dist/esm/commands/index.js.map +1 -1
  158. package/dist/esm/deepEqual.d.ts.map +1 -1
  159. package/dist/esm/deepEqual.js +9 -9
  160. package/dist/esm/deepEqual.js.map +1 -1
  161. package/dist/esm/given.d.ts.map +1 -1
  162. package/dist/esm/helpers/fetchHelper.d.ts.map +1 -1
  163. package/dist/esm/identity/IIdentityProvider.d.ts.map +1 -1
  164. package/dist/esm/identity/IIdentityProvider.js +5 -1
  165. package/dist/esm/identity/IIdentityProvider.js.map +1 -1
  166. package/dist/esm/identity/IdentityProvider.d.ts.map +1 -1
  167. package/dist/esm/identity/IdentityProvider.js +44 -22
  168. package/dist/esm/identity/IdentityProvider.js.map +1 -1
  169. package/dist/esm/identity/for_IdentityProvider/given/an_identity_provider.d.ts.map +1 -1
  170. package/dist/esm/identity/index.js +3 -0
  171. package/dist/esm/identity/index.js.map +1 -1
  172. package/dist/esm/joinPaths.js +2 -0
  173. package/dist/esm/joinPaths.js.map +1 -1
  174. package/dist/esm/messaging/IMessenger.d.ts.map +1 -1
  175. package/dist/esm/messaging/IMessenger.js +5 -1
  176. package/dist/esm/messaging/IMessenger.js.map +1 -1
  177. package/dist/esm/messaging/Message.d.ts.map +1 -1
  178. package/dist/esm/messaging/Message.js +10 -2
  179. package/dist/esm/messaging/Message.js.map +1 -1
  180. package/dist/esm/messaging/Messenger.d.ts.map +1 -1
  181. package/dist/esm/messaging/Messenger.js +15 -10
  182. package/dist/esm/messaging/Messenger.js.map +1 -1
  183. package/dist/esm/messaging/for_Messenger/when_scoping_messages.js.map +1 -1
  184. package/dist/esm/messaging/index.js +3 -0
  185. package/dist/esm/messaging/index.js.map +1 -1
  186. package/dist/esm/queries/HubConnectionKeepAlive.d.ts.map +1 -1
  187. package/dist/esm/queries/HubConnectionKeepAlive.js +41 -6
  188. package/dist/esm/queries/HubConnectionKeepAlive.js.map +1 -1
  189. package/dist/esm/queries/IQueryProvider.d.ts.map +1 -1
  190. package/dist/esm/queries/IQueryProvider.js +5 -1
  191. package/dist/esm/queries/IQueryProvider.js.map +1 -1
  192. package/dist/esm/queries/NullObservableQueryConnection.d.ts.map +1 -1
  193. package/dist/esm/queries/NullObservableQueryConnection.js +13 -7
  194. package/dist/esm/queries/NullObservableQueryConnection.js.map +1 -1
  195. package/dist/esm/queries/ObservableQueryConnection.d.ts.map +1 -1
  196. package/dist/esm/queries/ObservableQueryConnection.js +43 -31
  197. package/dist/esm/queries/ObservableQueryConnection.js.map +1 -1
  198. package/dist/esm/queries/ObservableQueryConnectionFactory.js +36 -14
  199. package/dist/esm/queries/ObservableQueryConnectionFactory.js.map +1 -1
  200. package/dist/esm/queries/ObservableQueryConnectionPool.d.ts.map +1 -1
  201. package/dist/esm/queries/ObservableQueryConnectionPool.js +37 -6
  202. package/dist/esm/queries/ObservableQueryConnectionPool.js.map +1 -1
  203. package/dist/esm/queries/ObservableQueryDiagnostics.d.ts.map +1 -1
  204. package/dist/esm/queries/ObservableQueryDiagnostics.js +29 -14
  205. package/dist/esm/queries/ObservableQueryDiagnostics.js.map +1 -1
  206. package/dist/esm/queries/ObservableQueryFor.d.ts.map +1 -1
  207. package/dist/esm/queries/ObservableQueryFor.js +57 -31
  208. package/dist/esm/queries/ObservableQueryFor.js.map +1 -1
  209. package/dist/esm/queries/ObservableQueryMultiplexer.d.ts.map +1 -1
  210. package/dist/esm/queries/ObservableQueryMultiplexer.js +109 -51
  211. package/dist/esm/queries/ObservableQueryMultiplexer.js.map +1 -1
  212. package/dist/esm/queries/ObservableQuerySubscription.d.ts.map +1 -1
  213. package/dist/esm/queries/ObservableQuerySubscription.js +12 -3
  214. package/dist/esm/queries/ObservableQuerySubscription.js.map +1 -1
  215. package/dist/esm/queries/Paging.d.ts.map +1 -1
  216. package/dist/esm/queries/Paging.js +20 -6
  217. package/dist/esm/queries/Paging.js.map +1 -1
  218. package/dist/esm/queries/PagingInfo.d.ts.map +1 -1
  219. package/dist/esm/queries/PagingInfo.js +23 -7
  220. package/dist/esm/queries/PagingInfo.js.map +1 -1
  221. package/dist/esm/queries/QueryFor.d.ts.map +1 -1
  222. package/dist/esm/queries/QueryFor.js +42 -24
  223. package/dist/esm/queries/QueryFor.js.map +1 -1
  224. package/dist/esm/queries/QueryInstanceCache.d.ts.map +1 -1
  225. package/dist/esm/queries/QueryInstanceCache.js +149 -37
  226. package/dist/esm/queries/QueryInstanceCache.js.map +1 -1
  227. package/dist/esm/queries/QueryProvider.d.ts.map +1 -1
  228. package/dist/esm/queries/QueryProvider.js +13 -3
  229. package/dist/esm/queries/QueryProvider.js.map +1 -1
  230. package/dist/esm/queries/QueryResult.d.ts.map +1 -1
  231. package/dist/esm/queries/QueryResult.js +39 -33
  232. package/dist/esm/queries/QueryResult.js.map +1 -1
  233. package/dist/esm/queries/QueryResultWithState.d.ts.map +1 -1
  234. package/dist/esm/queries/QueryResultWithState.js +26 -4
  235. package/dist/esm/queries/QueryResultWithState.js.map +1 -1
  236. package/dist/esm/queries/QueryTransportMethod.js +13 -5
  237. package/dist/esm/queries/QueryTransportMethod.js.map +1 -1
  238. package/dist/esm/queries/QueryValidator.d.ts.map +1 -1
  239. package/dist/esm/queries/QueryValidator.js +10 -2
  240. package/dist/esm/queries/QueryValidator.js.map +1 -1
  241. package/dist/esm/queries/ReconnectPolicy.d.ts.map +1 -1
  242. package/dist/esm/queries/ReconnectPolicy.js +27 -6
  243. package/dist/esm/queries/ReconnectPolicy.js.map +1 -1
  244. package/dist/esm/queries/ServerSentEventHubConnection.d.ts.map +1 -1
  245. package/dist/esm/queries/ServerSentEventHubConnection.js +107 -61
  246. package/dist/esm/queries/ServerSentEventHubConnection.js.map +1 -1
  247. package/dist/esm/queries/ServerSentEventQueryConnection.d.ts.map +1 -1
  248. package/dist/esm/queries/ServerSentEventQueryConnection.js +31 -23
  249. package/dist/esm/queries/ServerSentEventQueryConnection.js.map +1 -1
  250. package/dist/esm/queries/SortDirection.js +16 -6
  251. package/dist/esm/queries/SortDirection.js.map +1 -1
  252. package/dist/esm/queries/Sorting.d.ts.map +1 -1
  253. package/dist/esm/queries/Sorting.js +16 -4
  254. package/dist/esm/queries/Sorting.js.map +1 -1
  255. package/dist/esm/queries/SortingActions.d.ts.map +1 -1
  256. package/dist/esm/queries/SortingActions.js +15 -4
  257. package/dist/esm/queries/SortingActions.js.map +1 -1
  258. package/dist/esm/queries/SortingActionsForObservableQuery.d.ts.map +1 -1
  259. package/dist/esm/queries/SortingActionsForObservableQuery.js +16 -4
  260. package/dist/esm/queries/SortingActionsForObservableQuery.js.map +1 -1
  261. package/dist/esm/queries/SortingActionsForQuery.d.ts.map +1 -1
  262. package/dist/esm/queries/SortingActionsForQuery.js +16 -4
  263. package/dist/esm/queries/SortingActionsForQuery.js.map +1 -1
  264. package/dist/esm/queries/ValidateRequestArguments.js +13 -9
  265. package/dist/esm/queries/ValidateRequestArguments.js.map +1 -1
  266. package/dist/esm/queries/WebSocketHubConnection.d.ts.map +1 -1
  267. package/dist/esm/queries/WebSocketHubConnection.js +97 -52
  268. package/dist/esm/queries/WebSocketHubConnection.js.map +1 -1
  269. package/dist/esm/queries/WebSocketMessage.js +16 -6
  270. package/dist/esm/queries/WebSocketMessage.js.map +1 -1
  271. package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts.map +1 -1
  272. package/dist/esm/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.d.ts.map +1 -1
  273. package/dist/esm/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.d.ts.map +1 -1
  274. package/dist/esm/queries/for_ObservableQueryFor/given/TestQueries.d.ts.map +1 -1
  275. package/dist/esm/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts.map +1 -1
  276. package/dist/esm/queries/for_QueryFor/given/TestQueries.d.ts.map +1 -1
  277. package/dist/esm/queries/for_QueryFor/given/a_query_for.d.ts.map +1 -1
  278. package/dist/esm/queries/for_QueryFor/given/a_query_with_validator.d.ts.map +1 -1
  279. package/dist/esm/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.d.ts.map +1 -1
  280. package/dist/esm/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.d.ts.map +1 -1
  281. package/dist/esm/queries/index.js +3 -1
  282. package/dist/esm/queries/index.js.map +1 -1
  283. package/dist/esm/reflection/ParameterDescriptor.d.ts.map +1 -1
  284. package/dist/esm/reflection/ParameterDescriptor.js +11 -2
  285. package/dist/esm/reflection/ParameterDescriptor.js.map +1 -1
  286. package/dist/esm/reflection/ParametersHelper.d.ts.map +1 -1
  287. package/dist/esm/reflection/ParametersHelper.js +11 -3
  288. package/dist/esm/reflection/ParametersHelper.js.map +1 -1
  289. package/dist/esm/reflection/PropertyDescriptor.d.ts.map +1 -1
  290. package/dist/esm/reflection/PropertyDescriptor.js +11 -2
  291. package/dist/esm/reflection/PropertyDescriptor.js.map +1 -1
  292. package/dist/esm/reflection/index.js +3 -0
  293. package/dist/esm/reflection/index.js.map +1 -1
  294. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  295. package/dist/esm/validation/PropertyRule.d.ts.map +1 -1
  296. package/dist/esm/validation/PropertyRule.js +23 -5
  297. package/dist/esm/validation/PropertyRule.js.map +1 -1
  298. package/dist/esm/validation/PropertyValidator.d.ts.map +1 -1
  299. package/dist/esm/validation/PropertyValidator.js +25 -6
  300. package/dist/esm/validation/PropertyValidator.js.map +1 -1
  301. package/dist/esm/validation/RuleBuilder.d.ts.map +1 -1
  302. package/dist/esm/validation/RuleBuilder.js +22 -4
  303. package/dist/esm/validation/RuleBuilder.js.map +1 -1
  304. package/dist/esm/validation/RuleBuilderExtensions.js +95 -13
  305. package/dist/esm/validation/RuleBuilderExtensions.js.map +1 -1
  306. package/dist/esm/validation/ValidationResult.d.ts.map +1 -1
  307. package/dist/esm/validation/ValidationResult.js +6 -2
  308. package/dist/esm/validation/ValidationResult.js.map +1 -1
  309. package/dist/esm/validation/ValidationResultSeverity.js +19 -7
  310. package/dist/esm/validation/ValidationResultSeverity.js.map +1 -1
  311. package/dist/esm/validation/Validator.d.ts.map +1 -1
  312. package/dist/esm/validation/Validator.js +32 -9
  313. package/dist/esm/validation/Validator.js.map +1 -1
  314. package/dist/esm/validation/index.js +3 -0
  315. package/dist/esm/validation/index.js.map +1 -1
  316. package/dist/esm/validation/rules/ComparisonRules.d.ts.map +1 -1
  317. package/dist/esm/validation/rules/ComparisonRules.js +46 -20
  318. package/dist/esm/validation/rules/ComparisonRules.js.map +1 -1
  319. package/dist/esm/validation/rules/EmailRule.d.ts.map +1 -1
  320. package/dist/esm/validation/rules/EmailRule.js +12 -4
  321. package/dist/esm/validation/rules/EmailRule.js.map +1 -1
  322. package/dist/esm/validation/rules/LengthRules.d.ts.map +1 -1
  323. package/dist/esm/validation/rules/LengthRules.js +39 -19
  324. package/dist/esm/validation/rules/LengthRules.js.map +1 -1
  325. package/dist/esm/validation/rules/NotEmptyRule.d.ts.map +1 -1
  326. package/dist/esm/validation/rules/NotEmptyRule.js +20 -6
  327. package/dist/esm/validation/rules/NotEmptyRule.js.map +1 -1
  328. package/dist/esm/validation/rules/PhoneRule.d.ts.map +1 -1
  329. package/dist/esm/validation/rules/PhoneRule.js +12 -4
  330. package/dist/esm/validation/rules/PhoneRule.js.map +1 -1
  331. package/dist/esm/validation/rules/RegexRule.d.ts.map +1 -1
  332. package/dist/esm/validation/rules/RegexRule.js +15 -6
  333. package/dist/esm/validation/rules/RegexRule.js.map +1 -1
  334. package/dist/esm/validation/rules/UrlRule.d.ts.map +1 -1
  335. package/dist/esm/validation/rules/UrlRule.js +12 -4
  336. package/dist/esm/validation/rules/UrlRule.js.map +1 -1
  337. package/package.json +1 -1
  338. package/dist/cjs/GetHttpHeaders.d.ts +0 -2
  339. package/dist/cjs/GetHttpHeaders.d.ts.map +0 -1
  340. package/dist/cjs/Globals.d.ts +0 -21
  341. package/dist/cjs/Globals.d.ts.map +0 -1
  342. package/dist/cjs/ICanBeConfigured.d.ts +0 -8
  343. package/dist/cjs/ICanBeConfigured.d.ts.map +0 -1
  344. package/dist/cjs/UrlHelpers.d.ts +0 -9
  345. package/dist/cjs/UrlHelpers.d.ts.map +0 -1
  346. package/dist/cjs/commands/Command.d.ts +0 -45
  347. package/dist/cjs/commands/Command.d.ts.map +0 -1
  348. package/dist/cjs/commands/CommandResult.d.ts +0 -49
  349. package/dist/cjs/commands/CommandResult.d.ts.map +0 -1
  350. package/dist/cjs/commands/CommandResults.d.ts +0 -23
  351. package/dist/cjs/commands/CommandResults.d.ts.map +0 -1
  352. package/dist/cjs/commands/CommandValidator.d.ts +0 -6
  353. package/dist/cjs/commands/CommandValidator.d.ts.map +0 -1
  354. package/dist/cjs/commands/ICommand.d.ts +0 -21
  355. package/dist/cjs/commands/ICommand.d.ts.map +0 -1
  356. package/dist/cjs/commands/ICommandResult.d.ts +0 -15
  357. package/dist/cjs/commands/ICommandResult.d.ts.map +0 -1
  358. package/dist/cjs/commands/for_Command/CommandWithRouteParams.d.ts +0 -16
  359. package/dist/cjs/commands/for_Command/CommandWithRouteParams.d.ts.map +0 -1
  360. package/dist/cjs/commands/for_Command/SomeCommand.d.ts +0 -14
  361. package/dist/cjs/commands/for_Command/SomeCommand.d.ts.map +0 -1
  362. package/dist/cjs/commands/for_Command/given/a_command.d.ts +0 -12
  363. package/dist/cjs/commands/for_Command/given/a_command.d.ts.map +0 -1
  364. package/dist/cjs/commands/for_Command/given/a_command_with_validator.d.ts +0 -33
  365. package/dist/cjs/commands/for_Command/given/a_command_with_validator.d.ts.map +0 -1
  366. package/dist/cjs/commands/for_Command/when_clearing_the_command.d.ts +0 -2
  367. package/dist/cjs/commands/for_Command/when_clearing_the_command.d.ts.map +0 -1
  368. package/dist/cjs/commands/for_Command/when_constructing_command.d.ts +0 -2
  369. package/dist/cjs/commands/for_Command/when_constructing_command.d.ts.map +0 -1
  370. package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts +0 -2
  371. package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_api_base_path.d.ts.map +0 -1
  372. package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_origin.d.ts +0 -2
  373. package/dist/cjs/commands/for_Command/when_constructing_command_with_globals_origin.d.ts.map +0 -1
  374. package/dist/cjs/commands/for_Command/when_executing/and_command_route_not_found.d.ts +0 -2
  375. package/dist/cjs/commands/for_Command/when_executing/and_command_route_not_found.d.ts.map +0 -1
  376. package/dist/cjs/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts +0 -2
  377. package/dist/cjs/commands/for_Command/when_executing/and_fetch_throws_exception.d.ts.map +0 -1
  378. package/dist/cjs/commands/for_Command/when_executing/with_allowed_severity_warning.d.ts +0 -2
  379. package/dist/cjs/commands/for_Command/when_executing/with_allowed_severity_warning.d.ts.map +0 -1
  380. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failing.d.ts +0 -2
  381. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failing.d.ts.map +0 -1
  382. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts +0 -2
  383. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.d.ts.map +0 -1
  384. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_passing.d.ts +0 -2
  385. package/dist/cjs/commands/for_Command/when_executing/with_client_validation_passing.d.ts.map +0 -1
  386. package/dist/cjs/commands/for_Command/when_executing/with_command_properties.d.ts +0 -2
  387. package/dist/cjs/commands/for_Command/when_executing/with_command_properties.d.ts.map +0 -1
  388. package/dist/cjs/commands/for_Command/when_executing/with_custom_http_headers.d.ts +0 -2
  389. package/dist/cjs/commands/for_Command/when_executing/with_custom_http_headers.d.ts.map +0 -1
  390. package/dist/cjs/commands/for_Command/when_executing/with_empty_required_string_property.d.ts +0 -2
  391. package/dist/cjs/commands/for_Command/when_executing/with_empty_required_string_property.d.ts.map +0 -1
  392. package/dist/cjs/commands/for_Command/when_executing/with_microservice_header.d.ts +0 -2
  393. package/dist/cjs/commands/for_Command/when_executing/with_microservice_header.d.ts.map +0 -1
  394. package/dist/cjs/commands/for_Command/when_executing/with_missing_required_property.d.ts +0 -2
  395. package/dist/cjs/commands/for_Command/when_executing/with_missing_required_property.d.ts.map +0 -1
  396. package/dist/cjs/commands/for_Command/when_executing/with_null_required_property.d.ts +0 -2
  397. package/dist/cjs/commands/for_Command/when_executing/with_null_required_property.d.ts.map +0 -1
  398. package/dist/cjs/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts +0 -2
  399. package/dist/cjs/commands/for_Command/when_executing/with_origin_and_api_base_path.d.ts.map +0 -1
  400. package/dist/cjs/commands/for_Command/when_executing/with_route_parameters.d.ts +0 -2
  401. package/dist/cjs/commands/for_Command/when_executing/with_route_parameters.d.ts.map +0 -1
  402. package/dist/cjs/commands/for_Command/when_executing/with_successful_response.d.ts +0 -2
  403. package/dist/cjs/commands/for_Command/when_executing/with_successful_response.d.ts.map +0 -1
  404. package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts +0 -2
  405. package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_different_from_initial_value.d.ts.map +0 -1
  406. package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts +0 -2
  407. package/dist/cjs/commands/for_Command/when_property_changed_value_that_is_same_as_initial_value.d.ts.map +0 -1
  408. package/dist/cjs/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts +0 -2
  409. package/dist/cjs/commands/for_Command/when_property_changes_and_initial_value_is_undefined.d.ts.map +0 -1
  410. package/dist/cjs/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts +0 -2
  411. package/dist/cjs/commands/for_Command/when_property_changes_and_there_is_a_callback.d.ts.map +0 -1
  412. package/dist/cjs/commands/for_Command/when_property_has_changed_and_we_revert.d.ts +0 -2
  413. package/dist/cjs/commands/for_Command/when_property_has_changed_and_we_revert.d.ts.map +0 -1
  414. package/dist/cjs/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts +0 -2
  415. package/dist/cjs/commands/for_Command/when_setting_initial_values_after_property_changed.d.ts.map +0 -1
  416. package/dist/cjs/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts +0 -2
  417. package/dist/cjs/commands/for_Command/when_validating/and_fetch_throws_exception.d.ts.map +0 -1
  418. package/dist/cjs/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts +0 -2
  419. package/dist/cjs/commands/for_Command/when_validating/and_validation_endpoint_not_found.d.ts.map +0 -1
  420. package/dist/cjs/commands/for_Command/when_validating/does_not_update_initial_values.d.ts +0 -2
  421. package/dist/cjs/commands/for_Command/when_validating/does_not_update_initial_values.d.ts.map +0 -1
  422. package/dist/cjs/commands/for_Command/when_validating/with_client_validation_failure.d.ts +0 -2
  423. package/dist/cjs/commands/for_Command/when_validating/with_client_validation_failure.d.ts.map +0 -1
  424. package/dist/cjs/commands/for_Command/when_validating/with_client_validation_passing.d.ts +0 -2
  425. package/dist/cjs/commands/for_Command/when_validating/with_client_validation_passing.d.ts.map +0 -1
  426. package/dist/cjs/commands/for_Command/when_validating/with_empty_required_string_property.d.ts +0 -2
  427. package/dist/cjs/commands/for_Command/when_validating/with_empty_required_string_property.d.ts.map +0 -1
  428. package/dist/cjs/commands/for_Command/when_validating/with_null_required_property.d.ts +0 -2
  429. package/dist/cjs/commands/for_Command/when_validating/with_null_required_property.d.ts.map +0 -1
  430. package/dist/cjs/commands/for_Command/when_validating/with_required_property_missing.d.ts +0 -2
  431. package/dist/cjs/commands/for_Command/when_validating/with_required_property_missing.d.ts.map +0 -1
  432. package/dist/cjs/commands/for_Command/when_validating/with_route_parameters.d.ts +0 -2
  433. package/dist/cjs/commands/for_Command/when_validating/with_route_parameters.d.ts.map +0 -1
  434. package/dist/cjs/commands/for_Command/when_validating/with_successful_response.d.ts +0 -2
  435. package/dist/cjs/commands/for_Command/when_validating/with_successful_response.d.ts.map +0 -1
  436. package/dist/cjs/commands/for_Command/when_validating/with_validation_errors.d.ts +0 -2
  437. package/dist/cjs/commands/for_Command/when_validating/with_validation_errors.d.ts.map +0 -1
  438. package/dist/cjs/commands/for_Command/when_validating_client_side/with_client_validation_failure.d.ts +0 -2
  439. package/dist/cjs/commands/for_Command/when_validating_client_side/with_client_validation_failure.d.ts.map +0 -1
  440. package/dist/cjs/commands/for_Command/when_validating_client_side/with_client_validation_passing.d.ts +0 -2
  441. package/dist/cjs/commands/for_Command/when_validating_client_side/with_client_validation_passing.d.ts.map +0 -1
  442. package/dist/cjs/commands/for_Command/when_validating_client_side/with_required_property_missing.d.ts +0 -2
  443. package/dist/cjs/commands/for_Command/when_validating_client_side/with_required_property_missing.d.ts.map +0 -1
  444. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts +0 -2
  445. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_has_exceptions.d.ts.map +0 -1
  446. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts +0 -2
  447. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_invalid.d.ts.map +0 -1
  448. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts +0 -2
  449. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_successful.d.ts.map +0 -1
  450. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts +0 -2
  451. package/dist/cjs/commands/for_CommandResult/when_chaining_callbacks/and_result_is_unauthorized.d.ts.map +0 -1
  452. package/dist/cjs/commands/for_CommandResult/when_constructing_with_primitive_response.d.ts +0 -2
  453. package/dist/cjs/commands/for_CommandResult/when_constructing_with_primitive_response.d.ts.map +0 -1
  454. package/dist/cjs/commands/index.d.ts +0 -8
  455. package/dist/cjs/commands/index.d.ts.map +0 -1
  456. package/dist/cjs/deepEqual.d.ts +0 -2
  457. package/dist/cjs/deepEqual.d.ts.map +0 -1
  458. package/dist/cjs/given.d.ts +0 -5
  459. package/dist/cjs/given.d.ts.map +0 -1
  460. package/dist/cjs/helpers/fetchHelper.d.ts +0 -7
  461. package/dist/cjs/helpers/fetchHelper.d.ts.map +0 -1
  462. package/dist/cjs/identity/IIdentity.d.ts +0 -10
  463. package/dist/cjs/identity/IIdentity.d.ts.map +0 -1
  464. package/dist/cjs/identity/IIdentityProvider.d.ts +0 -6
  465. package/dist/cjs/identity/IIdentityProvider.d.ts.map +0 -1
  466. package/dist/cjs/identity/IdentityProvider.d.ts +0 -20
  467. package/dist/cjs/identity/IdentityProvider.d.ts.map +0 -1
  468. package/dist/cjs/identity/IdentityProviderResult.d.ts +0 -7
  469. package/dist/cjs/identity/IdentityProviderResult.d.ts.map +0 -1
  470. package/dist/cjs/identity/for_IdentityProvider/given/an_identity_provider.d.ts +0 -12
  471. package/dist/cjs/identity/for_IdentityProvider/given/an_identity_provider.d.ts.map +0 -1
  472. package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_roles.d.ts +0 -2
  473. package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_roles.d.ts.map +0 -1
  474. package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts +0 -2
  475. package/dist/cjs/identity/for_IdentityProvider/when_getting_current/with_type_safe_details.d.ts.map +0 -1
  476. package/dist/cjs/identity/for_IdentityProvider/when_getting_current/without_roles.d.ts +0 -2
  477. package/dist/cjs/identity/for_IdentityProvider/when_getting_current/without_roles.d.ts.map +0 -1
  478. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts +0 -2
  479. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.d.ts.map +0 -1
  480. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts +0 -2
  481. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.d.ts.map +0 -1
  482. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_origin_set.d.ts +0 -2
  483. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_origin_set.d.ts.map +0 -1
  484. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts +0 -2
  485. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_type_safe_details.d.ts.map +0 -1
  486. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_unauthorized_response.d.ts +0 -2
  487. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/with_unauthorized_response.d.ts.map +0 -1
  488. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts +0 -2
  489. package/dist/cjs/identity/for_IdentityProvider/when_refreshing/without_api_base_path.d.ts.map +0 -1
  490. package/dist/cjs/identity/for_IdentityProvider/when_setting_api_base_path.d.ts +0 -2
  491. package/dist/cjs/identity/for_IdentityProvider/when_setting_api_base_path.d.ts.map +0 -1
  492. package/dist/cjs/identity/for_IdentityProvider/when_setting_origin.d.ts +0 -2
  493. package/dist/cjs/identity/for_IdentityProvider/when_setting_origin.d.ts.map +0 -1
  494. package/dist/cjs/identity/index.d.ts +0 -5
  495. package/dist/cjs/identity/index.d.ts.map +0 -1
  496. package/dist/cjs/index.d.ts +0 -14
  497. package/dist/cjs/index.d.ts.map +0 -1
  498. package/dist/cjs/joinPaths.d.ts +0 -2
  499. package/dist/cjs/joinPaths.d.ts.map +0 -1
  500. package/dist/cjs/messaging/IMessenger.d.ts +0 -10
  501. package/dist/cjs/messaging/IMessenger.d.ts.map +0 -1
  502. package/dist/cjs/messaging/Message.d.ts +0 -7
  503. package/dist/cjs/messaging/Message.d.ts.map +0 -1
  504. package/dist/cjs/messaging/Messenger.d.ts +0 -20
  505. package/dist/cjs/messaging/Messenger.d.ts.map +0 -1
  506. package/dist/cjs/messaging/for_Messenger/when_scoping_messages.d.ts +0 -2
  507. package/dist/cjs/messaging/for_Messenger/when_scoping_messages.d.ts.map +0 -1
  508. package/dist/cjs/messaging/index.d.ts +0 -4
  509. package/dist/cjs/messaging/index.d.ts.map +0 -1
  510. package/dist/cjs/queries/ChangeSet.d.ts +0 -6
  511. package/dist/cjs/queries/ChangeSet.d.ts.map +0 -1
  512. package/dist/cjs/queries/HubConnectionKeepAlive.d.ts +0 -12
  513. package/dist/cjs/queries/HubConnectionKeepAlive.d.ts.map +0 -1
  514. package/dist/cjs/queries/IChangeStreamFor.d.ts +0 -4
  515. package/dist/cjs/queries/IChangeStreamFor.d.ts.map +0 -1
  516. package/dist/cjs/queries/IObservableQueryConnection.d.ts +0 -8
  517. package/dist/cjs/queries/IObservableQueryConnection.d.ts.map +0 -1
  518. package/dist/cjs/queries/IObservableQueryDiagnostics.d.ts +0 -9
  519. package/dist/cjs/queries/IObservableQueryDiagnostics.d.ts.map +0 -1
  520. package/dist/cjs/queries/IObservableQueryFor.d.ts +0 -14
  521. package/dist/cjs/queries/IObservableQueryFor.d.ts.map +0 -1
  522. package/dist/cjs/queries/IObservableQueryHubConnection.d.ts +0 -12
  523. package/dist/cjs/queries/IObservableQueryHubConnection.d.ts.map +0 -1
  524. package/dist/cjs/queries/IQuery.d.ts +0 -10
  525. package/dist/cjs/queries/IQuery.d.ts.map +0 -1
  526. package/dist/cjs/queries/IQueryFor.d.ts +0 -13
  527. package/dist/cjs/queries/IQueryFor.d.ts.map +0 -1
  528. package/dist/cjs/queries/IQueryProvider.d.ts +0 -6
  529. package/dist/cjs/queries/IQueryProvider.d.ts.map +0 -1
  530. package/dist/cjs/queries/IQueryResult.d.ts +0 -17
  531. package/dist/cjs/queries/IQueryResult.d.ts.map +0 -1
  532. package/dist/cjs/queries/IReconnectPolicy.d.ts +0 -8
  533. package/dist/cjs/queries/IReconnectPolicy.d.ts.map +0 -1
  534. package/dist/cjs/queries/NullObservableQueryConnection.d.ts +0 -11
  535. package/dist/cjs/queries/NullObservableQueryConnection.d.ts.map +0 -1
  536. package/dist/cjs/queries/ObservableQueryConnection.d.ts +0 -29
  537. package/dist/cjs/queries/ObservableQueryConnection.d.ts.map +0 -1
  538. package/dist/cjs/queries/ObservableQueryConnectionFactory.d.ts +0 -13
  539. package/dist/cjs/queries/ObservableQueryConnectionFactory.d.ts.map +0 -1
  540. package/dist/cjs/queries/ObservableQueryConnectionPool.d.ts +0 -9
  541. package/dist/cjs/queries/ObservableQueryConnectionPool.d.ts.map +0 -1
  542. package/dist/cjs/queries/ObservableQueryDiagnostics.d.ts +0 -21
  543. package/dist/cjs/queries/ObservableQueryDiagnostics.d.ts.map +0 -1
  544. package/dist/cjs/queries/ObservableQueryDiagnosticsSnapshot.d.ts +0 -48
  545. package/dist/cjs/queries/ObservableQueryDiagnosticsSnapshot.d.ts.map +0 -1
  546. package/dist/cjs/queries/ObservableQueryFor.d.ts +0 -37
  547. package/dist/cjs/queries/ObservableQueryFor.d.ts.map +0 -1
  548. package/dist/cjs/queries/ObservableQueryMultiplexer.d.ts +0 -33
  549. package/dist/cjs/queries/ObservableQueryMultiplexer.d.ts.map +0 -1
  550. package/dist/cjs/queries/ObservableQuerySubscription.d.ts +0 -7
  551. package/dist/cjs/queries/ObservableQuerySubscription.d.ts.map +0 -1
  552. package/dist/cjs/queries/Paging.d.ts +0 -8
  553. package/dist/cjs/queries/Paging.d.ts.map +0 -1
  554. package/dist/cjs/queries/PagingInfo.d.ts +0 -9
  555. package/dist/cjs/queries/PagingInfo.d.ts.map +0 -1
  556. package/dist/cjs/queries/QueryFor.d.ts +0 -34
  557. package/dist/cjs/queries/QueryFor.d.ts.map +0 -1
  558. package/dist/cjs/queries/QueryInstanceCache.d.ts +0 -39
  559. package/dist/cjs/queries/QueryInstanceCache.d.ts.map +0 -1
  560. package/dist/cjs/queries/QueryProvider.d.ts +0 -13
  561. package/dist/cjs/queries/QueryProvider.d.ts.map +0 -1
  562. package/dist/cjs/queries/QueryResult.d.ts +0 -53
  563. package/dist/cjs/queries/QueryResult.d.ts.map +0 -1
  564. package/dist/cjs/queries/QueryResultWithState.d.ts +0 -24
  565. package/dist/cjs/queries/QueryResultWithState.d.ts.map +0 -1
  566. package/dist/cjs/queries/QueryTransportMethod.d.ts +0 -5
  567. package/dist/cjs/queries/QueryTransportMethod.d.ts.map +0 -1
  568. package/dist/cjs/queries/QueryValidator.d.ts +0 -6
  569. package/dist/cjs/queries/QueryValidator.d.ts.map +0 -1
  570. package/dist/cjs/queries/ReconnectPolicy.d.ts +0 -15
  571. package/dist/cjs/queries/ReconnectPolicy.d.ts.map +0 -1
  572. package/dist/cjs/queries/ServerSentEventHubConnection.d.ts +0 -41
  573. package/dist/cjs/queries/ServerSentEventHubConnection.d.ts.map +0 -1
  574. package/dist/cjs/queries/ServerSentEventQueryConnection.d.ts +0 -14
  575. package/dist/cjs/queries/ServerSentEventQueryConnection.d.ts.map +0 -1
  576. package/dist/cjs/queries/SortDirection.d.ts +0 -6
  577. package/dist/cjs/queries/SortDirection.d.ts.map +0 -1
  578. package/dist/cjs/queries/Sorting.d.ts +0 -9
  579. package/dist/cjs/queries/Sorting.d.ts.map +0 -1
  580. package/dist/cjs/queries/SortingActions.d.ts +0 -10
  581. package/dist/cjs/queries/SortingActions.d.ts.map +0 -1
  582. package/dist/cjs/queries/SortingActionsForObservableQuery.d.ts +0 -10
  583. package/dist/cjs/queries/SortingActionsForObservableQuery.d.ts.map +0 -1
  584. package/dist/cjs/queries/SortingActionsForQuery.d.ts +0 -10
  585. package/dist/cjs/queries/SortingActionsForQuery.d.ts.map +0 -1
  586. package/dist/cjs/queries/ValidateRequestArguments.d.ts +0 -2
  587. package/dist/cjs/queries/ValidateRequestArguments.d.ts.map +0 -1
  588. package/dist/cjs/queries/WebSocketHubConnection.d.ts +0 -58
  589. package/dist/cjs/queries/WebSocketHubConnection.d.ts.map +0 -1
  590. package/dist/cjs/queries/WebSocketMessage.d.ts +0 -11
  591. package/dist/cjs/queries/WebSocketMessage.d.ts.map +0 -1
  592. package/dist/cjs/queries/for_HubConnectionKeepAlive/behavior.d.ts +0 -2
  593. package/dist/cjs/queries/for_HubConnectionKeepAlive/behavior.d.ts.map +0 -1
  594. package/dist/cjs/queries/for_HubConnectionKeepAlive/when_started_with_custom_idle_threshold/respects_threshold.d.ts +0 -2
  595. package/dist/cjs/queries/for_HubConnectionKeepAlive/when_started_with_custom_idle_threshold/respects_threshold.d.ts.map +0 -1
  596. package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts +0 -9
  597. package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection.d.ts.map +0 -1
  598. package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.d.ts +0 -21
  599. package/dist/cjs/queries/for_ObservableQueryConnection/given/an_observable_query_connection_with_websocket.d.ts.map +0 -1
  600. package/dist/cjs/queries/for_ObservableQueryConnection/when_constructing.d.ts +0 -2
  601. package/dist/cjs/queries/for_ObservableQueryConnection/when_constructing.d.ts.map +0 -1
  602. package/dist/cjs/queries/for_ObservableQueryConnection/when_receiving_data_message_with_type.d.ts +0 -2
  603. package/dist/cjs/queries/for_ObservableQueryConnection/when_receiving_data_message_with_type.d.ts.map +0 -1
  604. package/dist/cjs/queries/for_ObservableQueryConnection/when_receiving_legacy_data_message.d.ts +0 -2
  605. package/dist/cjs/queries/for_ObservableQueryConnection/when_receiving_legacy_data_message.d.ts.map +0 -1
  606. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.d.ts +0 -9
  607. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/given/a_descriptor.d.ts.map +0 -1
  608. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_sse_transport.d.ts +0 -2
  609. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_sse_transport.d.ts.map +0 -1
  610. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_websocket_transport.d.ts +0 -2
  611. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_direct_mode_and_websocket_transport.d.ts.map +0 -1
  612. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport.d.ts +0 -2
  613. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport.d.ts.map +0 -1
  614. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_exceeding_safe_limit.d.ts +0 -2
  615. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_exceeding_safe_limit.d.ts.map +0 -1
  616. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_within_safe_limit.d.ts +0 -2
  617. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_sse_transport_and_connection_count_within_safe_limit.d.ts.map +0 -1
  618. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport.d.ts +0 -2
  619. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport.d.ts.map +0 -1
  620. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport_and_high_connection_count.d.ts +0 -2
  621. package/dist/cjs/queries/for_ObservableQueryConnectionFactory/when_creating/with_hub_mode_and_websocket_transport_and_high_connection_count.d.ts.map +0 -1
  622. package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_least_loaded_slot_is_chosen.d.ts +0 -2
  623. package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_least_loaded_slot_is_chosen.d.ts.map +0 -1
  624. package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_size_is_zero.d.ts +0 -2
  625. package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_multiple_slots/and_size_is_zero.d.ts.map +0 -1
  626. package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_single_slot/and_one_subscriber.d.ts +0 -2
  627. package/dist/cjs/queries/for_ObservableQueryConnectionPool/when_acquiring/with_single_slot/and_one_subscriber.d.ts.map +0 -1
  628. package/dist/cjs/queries/for_ObservableQueryDiagnostics/when_tracking_owners.d.ts +0 -2
  629. package/dist/cjs/queries/for_ObservableQueryDiagnostics/when_tracking_owners.d.ts.map +0 -1
  630. package/dist/cjs/queries/for_ObservableQueryFor/given/TestQueries.d.ts +0 -53
  631. package/dist/cjs/queries/for_ObservableQueryFor/given/TestQueries.d.ts.map +0 -1
  632. package/dist/cjs/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts +0 -10
  633. package/dist/cjs/queries/for_ObservableQueryFor/given/an_observable_query_for.d.ts.map +0 -1
  634. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing.d.ts +0 -2
  635. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing.d.ts.map +0 -1
  636. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts +0 -2
  637. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_enumerable.d.ts.map +0 -1
  638. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts +0 -2
  639. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_api_base_path.d.ts.map +0 -1
  640. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts +0 -2
  641. package/dist/cjs/queries/for_ObservableQueryFor/when_constructing_with_globals_origin.d.ts.map +0 -1
  642. package/dist/cjs/queries/for_ObservableQueryFor/when_disposing.d.ts +0 -2
  643. package/dist/cjs/queries/for_ObservableQueryFor/when_disposing.d.ts.map +0 -1
  644. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts +0 -2
  645. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_enumerable_query.d.ts.map +0 -1
  646. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts +0 -2
  647. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_invalid_arguments.d.ts.map +0 -1
  648. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts +0 -2
  649. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_paging.d.ts.map +0 -1
  650. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts +0 -2
  651. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +0 -1
  652. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +0 -2
  653. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +0 -1
  654. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partially_missing_required_arguments.d.ts +0 -2
  655. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_partially_missing_required_arguments.d.ts.map +0 -1
  656. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +0 -2
  657. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +0 -1
  658. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts +0 -2
  659. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_sorting.d.ts.map +0 -1
  660. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts +0 -2
  661. package/dist/cjs/queries/for_ObservableQueryFor/when_performing/with_valid_arguments.d.ts.map +0 -1
  662. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts +0 -2
  663. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_api_base_path.d.ts.map +0 -1
  664. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_microservice.d.ts +0 -2
  665. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_microservice.d.ts.map +0 -1
  666. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_origin.d.ts +0 -2
  667. package/dist/cjs/queries/for_ObservableQueryFor/when_setting_origin.d.ts.map +0 -1
  668. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_and_sse_transport.d.ts +0 -2
  669. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_and_sse_transport.d.ts.map +0 -1
  670. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_disabled_and_sse_transport.d.ts +0 -2
  671. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_disabled_and_sse_transport.d.ts.map +0 -1
  672. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_enabled.d.ts +0 -2
  673. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_direct_mode_enabled.d.ts.map +0 -1
  674. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts +0 -2
  675. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_enumerable_query.d.ts.map +0 -1
  676. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_multiple_required_route_parameters.d.ts +0 -2
  677. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_multiple_required_route_parameters.d.ts.map +0 -1
  678. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_null_or_undefined_args.d.ts +0 -2
  679. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_null_or_undefined_args.d.ts.map +0 -1
  680. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_route_and_query_args.d.ts +0 -2
  681. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_sse_transport_and_route_and_query_args.d.ts.map +0 -1
  682. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_stale_descriptor_backed_instance_property.d.ts +0 -2
  683. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_hub_mode_and_stale_descriptor_backed_instance_property.d.ts.map +0 -1
  684. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts +0 -2
  685. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_invalid_arguments.d.ts.map +0 -1
  686. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts +0 -2
  687. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_paging.d.ts.map +0 -1
  688. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_partially_missing_required_arguments.d.ts +0 -2
  689. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_partially_missing_required_arguments.d.ts.map +0 -1
  690. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts +0 -2
  691. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_route_and_query_args.d.ts.map +0 -1
  692. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts +0 -2
  693. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_sorting.d.ts.map +0 -1
  694. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts +0 -2
  695. package/dist/cjs/queries/for_ObservableQueryFor/when_subscribing/with_valid_arguments.d.ts.map +0 -1
  696. package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_changed_cache_key.d.ts +0 -2
  697. package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_changed_cache_key.d.ts.map +0 -1
  698. package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_new_cache_key.d.ts +0 -2
  699. package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_a_new_cache_key.d.ts.map +0 -1
  700. package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_an_explicit_size.d.ts +0 -2
  701. package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_an_explicit_size.d.ts.map +0 -1
  702. package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_the_same_cache_key.d.ts +0 -2
  703. package/dist/cjs/queries/for_ObservableQueryMultiplexer/when_getting_or_creating/with_the_same_cache_key.d.ts.map +0 -1
  704. package/dist/cjs/queries/for_QueryFor/given/TestQueries.d.ts +0 -57
  705. package/dist/cjs/queries/for_QueryFor/given/TestQueries.d.ts.map +0 -1
  706. package/dist/cjs/queries/for_QueryFor/given/a_query_for.d.ts +0 -11
  707. package/dist/cjs/queries/for_QueryFor/given/a_query_for.d.ts.map +0 -1
  708. package/dist/cjs/queries/for_QueryFor/given/a_query_with_validator.d.ts +0 -35
  709. package/dist/cjs/queries/for_QueryFor/given/a_query_with_validator.d.ts.map +0 -1
  710. package/dist/cjs/queries/for_QueryFor/when_constructing.d.ts +0 -2
  711. package/dist/cjs/queries/for_QueryFor/when_constructing.d.ts.map +0 -1
  712. package/dist/cjs/queries/for_QueryFor/when_constructing_enumerable.d.ts +0 -2
  713. package/dist/cjs/queries/for_QueryFor/when_constructing_enumerable.d.ts.map +0 -1
  714. package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts +0 -2
  715. package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_api_base_path.d.ts.map +0 -1
  716. package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts +0 -2
  717. package/dist/cjs/queries/for_QueryFor/when_constructing_with_globals_origin.d.ts.map +0 -1
  718. package/dist/cjs/queries/for_QueryFor/when_performing/with_abort_controller.d.ts +0 -2
  719. package/dist/cjs/queries/for_QueryFor/when_performing/with_abort_controller.d.ts.map +0 -1
  720. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts +0 -2
  721. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failing.d.ts.map +0 -1
  722. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts +0 -2
  723. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.d.ts.map +0 -1
  724. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts +0 -2
  725. package/dist/cjs/queries/for_QueryFor/when_performing/with_client_validation_passing.d.ts.map +0 -1
  726. package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_parameter_descriptor_values.d.ts +0 -2
  727. package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_parameter_descriptor_values.d.ts.map +0 -1
  728. package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts +0 -2
  729. package/dist/cjs/queries/for_QueryFor/when_performing/with_enumerable_query.d.ts.map +0 -1
  730. package/dist/cjs/queries/for_QueryFor/when_performing/with_fetch_error.d.ts +0 -2
  731. package/dist/cjs/queries/for_QueryFor/when_performing/with_fetch_error.d.ts.map +0 -1
  732. package/dist/cjs/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts +0 -2
  733. package/dist/cjs/queries/for_QueryFor/when_performing/with_invalid_arguments.d.ts.map +0 -1
  734. package/dist/cjs/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts +0 -2
  735. package/dist/cjs/queries/for_QueryFor/when_performing/with_json_parse_error.d.ts.map +0 -1
  736. package/dist/cjs/queries/for_QueryFor/when_performing/with_paging.d.ts +0 -2
  737. package/dist/cjs/queries/for_QueryFor/when_performing/with_paging.d.ts.map +0 -1
  738. package/dist/cjs/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts +0 -2
  739. package/dist/cjs/queries/for_QueryFor/when_performing/with_parameter_descriptor_values.d.ts.map +0 -1
  740. package/dist/cjs/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts +0 -2
  741. package/dist/cjs/queries/for_QueryFor/when_performing/with_partial_parameter_descriptor_values.d.ts.map +0 -1
  742. package/dist/cjs/queries/for_QueryFor/when_performing/with_partially_missing_required_arguments.d.ts +0 -2
  743. package/dist/cjs/queries/for_QueryFor/when_performing/with_partially_missing_required_arguments.d.ts.map +0 -1
  744. package/dist/cjs/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts +0 -2
  745. package/dist/cjs/queries/for_QueryFor/when_performing/with_query_without_required_parameters.d.ts.map +0 -1
  746. package/dist/cjs/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts +0 -2
  747. package/dist/cjs/queries/for_QueryFor/when_performing/with_route_parameters_and_unused_parameters.d.ts.map +0 -1
  748. package/dist/cjs/queries/for_QueryFor/when_performing/with_sorting.d.ts +0 -2
  749. package/dist/cjs/queries/for_QueryFor/when_performing/with_sorting.d.ts.map +0 -1
  750. package/dist/cjs/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts +0 -2
  751. package/dist/cjs/queries/for_QueryFor/when_performing/with_valid_arguments.d.ts.map +0 -1
  752. package/dist/cjs/queries/for_QueryFor/when_setting_api_base_path.d.ts +0 -2
  753. package/dist/cjs/queries/for_QueryFor/when_setting_api_base_path.d.ts.map +0 -1
  754. package/dist/cjs/queries/for_QueryFor/when_setting_microservice.d.ts +0 -2
  755. package/dist/cjs/queries/for_QueryFor/when_setting_microservice.d.ts.map +0 -1
  756. package/dist/cjs/queries/for_QueryFor/when_setting_origin.d.ts +0 -2
  757. package/dist/cjs/queries/for_QueryFor/when_setting_origin.d.ts.map +0 -1
  758. package/dist/cjs/queries/for_QueryInstanceCache/when_acquiring/after_release.d.ts +0 -2
  759. package/dist/cjs/queries/for_QueryInstanceCache/when_acquiring/after_release.d.ts.map +0 -1
  760. package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_arguments.d.ts +0 -2
  761. package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_arguments.d.ts.map +0 -1
  762. package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_empty_arguments_object.d.ts +0 -2
  763. package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_empty_arguments_object.d.ts.map +0 -1
  764. package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_same_arguments_different_order.d.ts +0 -2
  765. package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/with_same_arguments_different_order.d.ts.map +0 -1
  766. package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/without_arguments.d.ts +0 -2
  767. package/dist/cjs/queries/for_QueryInstanceCache/when_building_key/without_arguments.d.ts.map +0 -1
  768. package/dist/cjs/queries/for_QueryInstanceCache/when_deferring_dispose/with_cancellation_before_timeout.d.ts +0 -2
  769. package/dist/cjs/queries/for_QueryInstanceCache/when_deferring_dispose/with_cancellation_before_timeout.d.ts.map +0 -1
  770. package/dist/cjs/queries/for_QueryInstanceCache/when_deferring_dispose/without_cancellation.d.ts +0 -2
  771. package/dist/cjs/queries/for_QueryInstanceCache/when_deferring_dispose/without_cancellation.d.ts.map +0 -1
  772. package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/an_empty_cache.d.ts +0 -2
  773. package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/an_empty_cache.d.ts.map +0 -1
  774. package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/with_active_subscriptions.d.ts +0 -2
  775. package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/with_active_subscriptions.d.ts.map +0 -1
  776. package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/with_pending_deferred_cleanup.d.ts +0 -2
  777. package/dist/cjs/queries/for_QueryInstanceCache/when_disposing/with_pending_deferred_cleanup.d.ts.map +0 -1
  778. package/dist/cjs/queries/for_QueryInstanceCache/when_getting_last_result/with_no_result_stored.d.ts +0 -2
  779. package/dist/cjs/queries/for_QueryInstanceCache/when_getting_last_result/with_no_result_stored.d.ts.map +0 -1
  780. package/dist/cjs/queries/for_QueryInstanceCache/when_getting_last_result/with_stored_result.d.ts +0 -2
  781. package/dist/cjs/queries/for_QueryInstanceCache/when_getting_last_result/with_stored_result.d.ts.map +0 -1
  782. package/dist/cjs/queries/for_QueryInstanceCache/when_getting_or_creating/with_existing_entry.d.ts +0 -2
  783. package/dist/cjs/queries/for_QueryInstanceCache/when_getting_or_creating/with_existing_entry.d.ts.map +0 -1
  784. package/dist/cjs/queries/for_QueryInstanceCache/when_getting_or_creating/with_new_entry.d.ts +0 -2
  785. package/dist/cjs/queries/for_QueryInstanceCache/when_getting_or_creating/with_new_entry.d.ts.map +0 -1
  786. package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/a_key_that_does_not_exist.d.ts +0 -2
  787. package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/a_key_that_does_not_exist.d.ts.map +0 -1
  788. package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/one_of_two_subscribers.d.ts +0 -2
  789. package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/one_of_two_subscribers.d.ts.map +0 -1
  790. package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/the_only_subscriber.d.ts +0 -2
  791. package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/the_only_subscriber.d.ts.map +0 -1
  792. package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/after_timeout_elapses.d.ts +0 -2
  793. package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/after_timeout_elapses.d.ts.map +0 -1
  794. package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/before_timeout_elapses.d.ts +0 -2
  795. package/dist/cjs/queries/for_QueryInstanceCache/when_releasing/with_retention_timeout/before_timeout_elapses.d.ts.map +0 -1
  796. package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_a_result.d.ts +0 -2
  797. package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_a_result.d.ts.map +0 -1
  798. package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_changed_data.d.ts +0 -2
  799. package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_changed_data.d.ts.map +0 -1
  800. package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_identical_data_as_previous_result.d.ts +0 -2
  801. package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/with_identical_data_as_previous_result.d.ts.map +0 -1
  802. package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/without_previous_result.d.ts +0 -2
  803. package/dist/cjs/queries/for_QueryInstanceCache/when_setting_last_result/without_previous_result.d.ts.map +0 -1
  804. package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_active_subscriptions.d.ts +0 -2
  805. package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_active_subscriptions.d.ts.map +0 -1
  806. package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_no_subscriptions.d.ts +0 -2
  807. package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_no_subscriptions.d.ts.map +0 -1
  808. package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_pending_deferred_cleanup.d.ts +0 -2
  809. package/dist/cjs/queries/for_QueryInstanceCache/when_tearing_down_all_subscriptions/with_pending_deferred_cleanup.d.ts.map +0 -1
  810. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts +0 -2
  811. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_an_array_with_items.d.ts.map +0 -1
  812. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts +0 -2
  813. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_defined_instance.d.ts.map +0 -1
  814. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts +0 -2
  815. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_empty_array.d.ts.map +0 -1
  816. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_enumerable.d.ts +0 -2
  817. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_enumerable.d.ts.map +0 -1
  818. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_non_enumerable.d.ts +0 -2
  819. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_null_for_non_enumerable.d.ts.map +0 -1
  820. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts +0 -2
  821. package/dist/cjs/queries/for_QueryResult/when_asking_has_data/and_it_is_undefined.d.ts.map +0 -1
  822. package/dist/cjs/queries/for_QueryResult/when_data_is_single_item_for_enumerable/and_it_is_an_array.d.ts +0 -2
  823. package/dist/cjs/queries/for_QueryResult/when_data_is_single_item_for_enumerable/and_it_is_an_array.d.ts.map +0 -1
  824. package/dist/cjs/queries/for_QueryResultWithState/when_creating_empty/with_null_default_value.d.ts +0 -2
  825. package/dist/cjs/queries/for_QueryResultWithState/when_creating_empty/with_null_default_value.d.ts.map +0 -1
  826. package/dist/cjs/queries/for_QueryResultWithState/when_creating_empty/with_undefined_default_value.d.ts +0 -2
  827. package/dist/cjs/queries/for_QueryResultWithState/when_creating_empty/with_undefined_default_value.d.ts.map +0 -1
  828. package/dist/cjs/queries/for_QueryResultWithState/when_creating_from_query_result/with_null_data.d.ts +0 -2
  829. package/dist/cjs/queries/for_QueryResultWithState/when_creating_from_query_result/with_null_data.d.ts.map +0 -1
  830. package/dist/cjs/queries/for_QueryResultWithState/when_creating_from_query_result/with_undefined_data.d.ts +0 -2
  831. package/dist/cjs/queries/for_QueryResultWithState/when_creating_from_query_result/with_undefined_data.d.ts.map +0 -1
  832. package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_null_default_value.d.ts +0 -2
  833. package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_null_default_value.d.ts.map +0 -1
  834. package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_undefined_default_value.d.ts +0 -2
  835. package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_undefined_default_value.d.ts.map +0 -1
  836. package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_valid_default_value.d.ts +0 -2
  837. package/dist/cjs/queries/for_QueryResultWithState/when_creating_initial/with_valid_default_value.d.ts.map +0 -1
  838. package/dist/cjs/queries/for_ReconnectPolicy/when_canceling/with_pending_timer.d.ts +0 -2
  839. package/dist/cjs/queries/for_ReconnectPolicy/when_canceling/with_pending_timer.d.ts.map +0 -1
  840. package/dist/cjs/queries/for_ReconnectPolicy/when_cancelling/with_pending_timer.d.ts +0 -2
  841. package/dist/cjs/queries/for_ReconnectPolicy/when_cancelling/with_pending_timer.d.ts.map +0 -1
  842. package/dist/cjs/queries/for_ReconnectPolicy/when_resetting/after_scheduling.d.ts +0 -2
  843. package/dist/cjs/queries/for_ReconnectPolicy/when_resetting/after_scheduling.d.ts.map +0 -1
  844. package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/delay_is_capped_at_max.d.ts +0 -2
  845. package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/delay_is_capped_at_max.d.ts.map +0 -1
  846. package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/first_attempt.d.ts +0 -2
  847. package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_not_reached/first_attempt.d.ts.map +0 -1
  848. package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_reached/abandons_reconnect.d.ts +0 -2
  849. package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_max_attempts_reached/abandons_reconnect.d.ts.map +0 -1
  850. package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_rescheduled_before_first_fires/cancels_previous_timer.d.ts +0 -2
  851. package/dist/cjs/queries/for_ReconnectPolicy/when_scheduling/and_rescheduled_before_first_fires/cancels_previous_timer.d.ts.map +0 -1
  852. package/dist/cjs/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.d.ts +0 -21
  853. package/dist/cjs/queries/for_ServerSentEventHubConnection/given/a_server_sent_event_hub_connection.d.ts.map +0 -1
  854. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_connect_timeout_fires/triggers_reconnect.d.ts +0 -2
  855. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_connect_timeout_fires/triggers_reconnect.d.ts.map +0 -1
  856. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_disposing/cleans_up_resources.d.ts +0 -2
  857. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_disposing/cleans_up_resources.d.ts.map +0 -1
  858. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_keep_alive_is_idle/triggers_reconnect.d.ts +0 -2
  859. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_keep_alive_is_idle/triggers_reconnect.d.ts.map +0 -1
  860. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.d.ts +0 -2
  861. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.d.ts.map +0 -1
  862. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_reconnecting/after_error.d.ts +0 -2
  863. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_reconnecting/after_error.d.ts.map +0 -1
  864. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/and_subscribe_post_fails.d.ts +0 -2
  865. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/and_subscribe_post_fails.d.ts.map +0 -1
  866. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/queues_until_connected.d.ts +0 -2
  867. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/queues_until_connected.d.ts.map +0 -1
  868. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/sends_subscribe_post.d.ts +0 -2
  869. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_subscribing/sends_subscribe_post.d.ts.map +0 -1
  870. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_unsubscribing/nulls_event_source_handlers_before_closing.d.ts +0 -2
  871. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_unsubscribing/nulls_event_source_handlers_before_closing.d.ts.map +0 -1
  872. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_unsubscribing/the_only_query.d.ts +0 -2
  873. package/dist/cjs/queries/for_ServerSentEventHubConnection/when_unsubscribing/the_only_query.d.ts.map +0 -1
  874. package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_connecting/with_query_arguments.d.ts +0 -2
  875. package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_connecting/with_query_arguments.d.ts.map +0 -1
  876. package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_connecting/without_event_source_available.d.ts +0 -2
  877. package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_connecting/without_event_source_available.d.ts.map +0 -1
  878. package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_disconnecting/after_connecting.d.ts +0 -2
  879. package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_disconnecting/after_connecting.d.ts.map +0 -1
  880. package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_disconnecting/before_message_arrives.d.ts +0 -2
  881. package/dist/cjs/queries/for_ServerSentEventQueryConnection/when_disconnecting/before_message_arrives.d.ts.map +0 -1
  882. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_empty_string_value.d.ts +0 -2
  883. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_empty_string_value.d.ts.map +0 -1
  884. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_missing_property.d.ts +0 -2
  885. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_missing_property.d.ts.map +0 -1
  886. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_no_required_arguments.d.ts +0 -2
  887. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_no_required_arguments.d.ts.map +0 -1
  888. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_null_value.d.ts +0 -2
  889. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_null_value.d.ts.map +0 -1
  890. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_numeric_zero_value.d.ts +0 -2
  891. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_numeric_zero_value.d.ts.map +0 -1
  892. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_undefined_value.d.ts +0 -2
  893. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_undefined_value.d.ts.map +0 -1
  894. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_valid_string_value.d.ts +0 -2
  895. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/with_valid_string_value.d.ts.map +0 -1
  896. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/without_arguments_object.d.ts +0 -2
  897. package/dist/cjs/queries/for_ValidateRequestArguments/when_validating_arguments/without_arguments_object.d.ts.map +0 -1
  898. package/dist/cjs/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.d.ts +0 -23
  899. package/dist/cjs/queries/for_WebSocketHubConnection/given/a_web_socket_hub_connection.d.ts.map +0 -1
  900. package/dist/cjs/queries/for_WebSocketHubConnection/when_disposing/cleans_up_resources.d.ts +0 -2
  901. package/dist/cjs/queries/for_WebSocketHubConnection/when_disposing/cleans_up_resources.d.ts.map +0 -1
  902. package/dist/cjs/queries/for_WebSocketHubConnection/when_keep_alive_is_idle/sends_a_ping.d.ts +0 -2
  903. package/dist/cjs/queries/for_WebSocketHubConnection/when_keep_alive_is_idle/sends_a_ping.d.ts.map +0 -1
  904. package/dist/cjs/queries/for_WebSocketHubConnection/when_receiving_a_message/resets_keep_alive_timer.d.ts +0 -2
  905. package/dist/cjs/queries/for_WebSocketHubConnection/when_receiving_a_message/resets_keep_alive_timer.d.ts.map +0 -1
  906. package/dist/cjs/queries/for_WebSocketHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.d.ts +0 -2
  907. package/dist/cjs/queries/for_WebSocketHubConnection/when_receiving_unauthorized/notifies_subscriber_and_removes_subscription.d.ts.map +0 -1
  908. package/dist/cjs/queries/for_WebSocketHubConnection/when_reconnecting/after_unexpected_close.d.ts +0 -2
  909. package/dist/cjs/queries/for_WebSocketHubConnection/when_reconnecting/after_unexpected_close.d.ts.map +0 -1
  910. package/dist/cjs/queries/for_WebSocketHubConnection/when_reconnecting/resubscribes_all_queries.d.ts +0 -2
  911. package/dist/cjs/queries/for_WebSocketHubConnection/when_reconnecting/resubscribes_all_queries.d.ts.map +0 -1
  912. package/dist/cjs/queries/for_WebSocketHubConnection/when_subscribing/to_a_query.d.ts +0 -2
  913. package/dist/cjs/queries/for_WebSocketHubConnection/when_subscribing/to_a_query.d.ts.map +0 -1
  914. package/dist/cjs/queries/for_WebSocketHubConnection/when_unsubscribing/nulls_socket_handlers_before_closing.d.ts +0 -2
  915. package/dist/cjs/queries/for_WebSocketHubConnection/when_unsubscribing/nulls_socket_handlers_before_closing.d.ts.map +0 -1
  916. package/dist/cjs/queries/for_WebSocketHubConnection/when_unsubscribing/the_only_query.d.ts +0 -2
  917. package/dist/cjs/queries/for_WebSocketHubConnection/when_unsubscribing/the_only_query.d.ts.map +0 -1
  918. package/dist/cjs/queries/for_WebSocketMessage/when_creating_messages.d.ts +0 -2
  919. package/dist/cjs/queries/for_WebSocketMessage/when_creating_messages.d.ts.map +0 -1
  920. package/dist/cjs/queries/index.d.ts +0 -39
  921. package/dist/cjs/queries/index.d.ts.map +0 -1
  922. package/dist/cjs/reflection/IHaveParameters.d.ts +0 -5
  923. package/dist/cjs/reflection/IHaveParameters.d.ts.map +0 -1
  924. package/dist/cjs/reflection/ParameterDescriptor.d.ts +0 -8
  925. package/dist/cjs/reflection/ParameterDescriptor.d.ts.map +0 -1
  926. package/dist/cjs/reflection/ParametersHelper.d.ts +0 -5
  927. package/dist/cjs/reflection/ParametersHelper.d.ts.map +0 -1
  928. package/dist/cjs/reflection/PropertyDescriptor.d.ts +0 -8
  929. package/dist/cjs/reflection/PropertyDescriptor.d.ts.map +0 -1
  930. package/dist/cjs/reflection/index.d.ts +0 -5
  931. package/dist/cjs/reflection/index.d.ts.map +0 -1
  932. package/dist/cjs/validation/IValidationRule.d.ts +0 -5
  933. package/dist/cjs/validation/IValidationRule.d.ts.map +0 -1
  934. package/dist/cjs/validation/PropertyRule.d.ts +0 -11
  935. package/dist/cjs/validation/PropertyRule.d.ts.map +0 -1
  936. package/dist/cjs/validation/PropertyValidator.d.ts +0 -11
  937. package/dist/cjs/validation/PropertyValidator.d.ts.map +0 -1
  938. package/dist/cjs/validation/RuleBuilder.d.ts +0 -11
  939. package/dist/cjs/validation/RuleBuilder.d.ts.map +0 -1
  940. package/dist/cjs/validation/RuleBuilderExtensions.d.ts +0 -32
  941. package/dist/cjs/validation/RuleBuilderExtensions.d.ts.map +0 -1
  942. package/dist/cjs/validation/ValidationResult.d.ts +0 -9
  943. package/dist/cjs/validation/ValidationResult.d.ts.map +0 -1
  944. package/dist/cjs/validation/ValidationResultSeverity.d.ts +0 -7
  945. package/dist/cjs/validation/ValidationResultSeverity.d.ts.map +0 -1
  946. package/dist/cjs/validation/Validator.d.ts +0 -11
  947. package/dist/cjs/validation/Validator.d.ts.map +0 -1
  948. package/dist/cjs/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts +0 -2
  949. package/dist/cjs/validation/for_Validator/when_defining_multiple_rules_for_same_property.d.ts.map +0 -1
  950. package/dist/cjs/validation/for_Validator/when_using_custom_error_message.d.ts +0 -2
  951. package/dist/cjs/validation/for_Validator/when_using_custom_error_message.d.ts.map +0 -1
  952. package/dist/cjs/validation/for_Validator/when_validating/with_all_rules_passing.d.ts +0 -2
  953. package/dist/cjs/validation/for_Validator/when_validating/with_all_rules_passing.d.ts.map +0 -1
  954. package/dist/cjs/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts +0 -2
  955. package/dist/cjs/validation/for_Validator/when_validating/with_multiple_rules_failing.d.ts.map +0 -1
  956. package/dist/cjs/validation/for_Validator/when_validating/with_one_rule_failing.d.ts +0 -2
  957. package/dist/cjs/validation/for_Validator/when_validating/with_one_rule_failing.d.ts.map +0 -1
  958. package/dist/cjs/validation/index.d.ts +0 -14
  959. package/dist/cjs/validation/index.d.ts.map +0 -1
  960. package/dist/cjs/validation/rules/ComparisonRules.d.ts +0 -22
  961. package/dist/cjs/validation/rules/ComparisonRules.d.ts.map +0 -1
  962. package/dist/cjs/validation/rules/EmailRule.d.ts +0 -7
  963. package/dist/cjs/validation/rules/EmailRule.d.ts.map +0 -1
  964. package/dist/cjs/validation/rules/LengthRules.d.ts +0 -18
  965. package/dist/cjs/validation/rules/LengthRules.d.ts.map +0 -1
  966. package/dist/cjs/validation/rules/NotEmptyRule.d.ts +0 -10
  967. package/dist/cjs/validation/rules/NotEmptyRule.d.ts.map +0 -1
  968. package/dist/cjs/validation/rules/PhoneRule.d.ts +0 -7
  969. package/dist/cjs/validation/rules/PhoneRule.d.ts.map +0 -1
  970. package/dist/cjs/validation/rules/RegexRule.d.ts +0 -7
  971. package/dist/cjs/validation/rules/RegexRule.d.ts.map +0 -1
  972. package/dist/cjs/validation/rules/UrlRule.d.ts +0 -7
  973. package/dist/cjs/validation/rules/UrlRule.d.ts.map +0 -1
  974. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts +0 -2
  975. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_empty_string.d.ts.map +0 -1
  976. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts +0 -2
  977. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_invalid_email.d.ts.map +0 -1
  978. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts +0 -2
  979. package/dist/cjs/validation/rules/for_EmailRule/when_validating/with_valid_email.d.ts.map +0 -1
  980. package/dist/cjs/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts +0 -2
  981. package/dist/cjs/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.d.ts.map +0 -1
  982. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts +0 -2
  983. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.d.ts.map +0 -1
  984. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts +0 -2
  985. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.d.ts.map +0 -1
  986. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts +0 -2
  987. package/dist/cjs/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.d.ts.map +0 -1
  988. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts +0 -2
  989. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +0 -1
  990. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts +0 -2
  991. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +0 -1
  992. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts +0 -2
  993. package/dist/cjs/validation/rules/for_LengthRule/when_validating/with_string_within_range.d.ts.map +0 -1
  994. package/dist/cjs/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts +0 -2
  995. package/dist/cjs/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.d.ts.map +0 -1
  996. package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts +0 -2
  997. package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.d.ts.map +0 -1
  998. package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts +0 -2
  999. package/dist/cjs/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.d.ts.map +0 -1
  1000. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts +0 -2
  1001. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.d.ts.map +0 -1
  1002. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts +0 -2
  1003. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.d.ts.map +0 -1
  1004. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts +0 -2
  1005. package/dist/cjs/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.d.ts.map +0 -1
  1006. package/dist/cjs/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts +0 -2
  1007. package/dist/cjs/validation/rules/for_NotEmptyRule/when_setting_custom_message.d.ts.map +0 -1
  1008. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts +0 -2
  1009. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.d.ts.map +0 -1
  1010. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts +0 -2
  1011. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.d.ts.map +0 -1
  1012. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts +0 -2
  1013. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.d.ts.map +0 -1
  1014. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts +0 -2
  1015. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_null_value.d.ts.map +0 -1
  1016. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts +0 -2
  1017. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.d.ts.map +0 -1
  1018. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts +0 -2
  1019. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.d.ts.map +0 -1
  1020. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts +0 -2
  1021. package/dist/cjs/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"NotEmptyRule.js","sources":["../../../../validation/rules/NotEmptyRule.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a value is not null, undefined, or empty.\n * @template T The type being validated.\n */\nexport class NotEmptyRule<T> extends PropertyRule<T, unknown> {\n /**\n * Initializes a new instance of the {@link NotEmptyRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => unknown) {\n super(propertyAccessor, \"'{PropertyName}' must not be empty.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: unknown): boolean {\n if (value === null || value === undefined) {\n return false;\n }\n if (typeof value === 'string' && value.trim() === '') {\n return false;\n }\n if (Array.isArray(value) && value.length === 0) {\n return false;\n }\n return true;\n }\n}\n\n/**\n * Validation rule that checks if a value is not null or undefined.\n * @template T The type being validated.\n */\nexport class NotNullRule<T> extends PropertyRule<T, unknown> {\n /**\n * Initializes a new instance of the {@link NotNullRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => unknown) {\n super(propertyAccessor, \"'{PropertyName}' must not be empty.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: unknown): boolean {\n return value !== null && value !== undefined;\n }\n}\n"],"names":["PropertyRule"],"mappings":";;;;AASM,MAAO,YAAgB,SAAQA,yBAAwB,CAAA;AAKzD,IAAA,WAAA,CAAY,gBAA0C,EAAA;AAClD,QAAA,KAAK,CAAC,gBAAgB,EAAE,qCAAqC,CAAC;IAClE;AAGU,IAAA,OAAO,CAAC,KAAc,EAAA;QAC5B,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;AACvC,YAAA,OAAO,KAAK;QAChB;AACA,QAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;AAClD,YAAA,OAAO,KAAK;QAChB;AACA,QAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AAC5C,YAAA,OAAO,KAAK;QAChB;AACA,QAAA,OAAO,IAAI;IACf;AACH;AAMK,MAAO,WAAe,SAAQA,yBAAwB,CAAA;AAKxD,IAAA,WAAA,CAAY,gBAA0C,EAAA;AAClD,QAAA,KAAK,CAAC,gBAAgB,EAAE,qCAAqC,CAAC;IAClE;AAGU,IAAA,OAAO,CAAC,KAAc,EAAA;AAC5B,QAAA,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;IAChD;AACH;;;;;"}
1
+ {"version":3,"file":"NotEmptyRule.js","sources":["../../../../validation/rules/NotEmptyRule.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a value is not null, undefined, or empty.\n * @template T The type being validated.\n */\nexport class NotEmptyRule<T> extends PropertyRule<T, unknown> {\n /**\n * Initializes a new instance of the {@link NotEmptyRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => unknown) {\n super(propertyAccessor, \"'{PropertyName}' must not be empty.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: unknown): boolean {\n if (value === null || value === undefined) {\n return false;\n }\n if (typeof value === 'string' && value.trim() === '') {\n return false;\n }\n if (Array.isArray(value) && value.length === 0) {\n return false;\n }\n return true;\n }\n}\n\n/**\n * Validation rule that checks if a value is not null or undefined.\n * @template T The type being validated.\n */\nexport class NotNullRule<T> extends PropertyRule<T, unknown> {\n /**\n * Initializes a new instance of the {@link NotNullRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => unknown) {\n super(propertyAccessor, \"'{PropertyName}' must not be empty.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: unknown): boolean {\n return value !== null && value !== undefined;\n }\n}\n"],"names":["NotEmptyRule","PropertyRule","propertyAccessor","isValid","value","undefined","trim","Array","isArray","length","NotNullRule"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,YAAAA,SAAwBC,yBAAAA,CAAAA;AACjC;;;QAIA,WAAA,CAAYC,gBAA0C,CAAE;AACpD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,qCAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAc,EAAW;QACvC,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,EAAW;YACvC,OAAO,KAAA;AACX,QAAA;AACA,QAAA,IAAI,OAAOD,KAAAA,KAAU,QAAA,IAAYA,KAAAA,CAAME,IAAI,OAAO,EAAA,EAAI;YAClD,OAAO,KAAA;AACX,QAAA;AACA,QAAA,IAAIC,MAAMC,OAAO,CAACJ,UAAUA,KAAAA,CAAMK,MAAM,KAAK,CAAA,EAAG;YAC5C,OAAO,KAAA;AACX,QAAA;QACA,OAAO,IAAA;AACX,IAAA;AACJ;AAEA;;;IAIO,MAAMC,WAAAA,SAAuBT,yBAAAA,CAAAA;AAChC;;;QAIA,WAAA,CAAYC,gBAA0C,CAAE;AACpD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,qCAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAc,EAAW;QACvC,OAAOA,KAAAA,KAAU,QAAQA,KAAAA,KAAUC,SAAAA;AACvC,IAAA;AACJ;;;;;"}
@@ -2,14 +2,22 @@
2
2
 
3
3
  var PropertyRule = require('../PropertyRule.js');
4
4
 
5
- class PhoneRule extends PropertyRule.PropertyRule {
5
+ // Copyright (c) Cratis. All rights reserved.
6
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
7
+ /**
8
+ * Validation rule that checks if a string matches a phone number pattern.
9
+ * @template T The type being validated.
10
+ */ class PhoneRule extends PropertyRule.PropertyRule {
6
11
  static phoneRegex = /^[\d\s()+-]+$/;
7
- constructor(propertyAccessor) {
12
+ /**
13
+ * Initializes a new instance of the {@link PhoneRule} class.
14
+ * @param propertyAccessor Function to access the property value from the instance.
15
+ */ constructor(propertyAccessor){
8
16
  super(propertyAccessor, "'{PropertyName}' is not a valid phone number.");
9
17
  }
10
- isValid(value) {
18
+ /** @inheritdoc */ isValid(value) {
11
19
  if (value === null || value === undefined || value === '') {
12
- return true;
20
+ return true; // Use NotNull/NotEmpty for null checks
13
21
  }
14
22
  return PhoneRule.phoneRegex.test(value);
15
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneRule.js","sources":["../../../../validation/rules/PhoneRule.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a string matches a phone number pattern.\n * @template T The type being validated.\n */\nexport class PhoneRule<T> extends PropertyRule<T, string> {\n private static readonly phoneRegex = /^[\\d\\s()+-]+$/;\n\n /**\n * Initializes a new instance of the {@link PhoneRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => string) {\n super(propertyAccessor, \"'{PropertyName}' is not a valid phone number.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return PhoneRule.phoneRegex.test(value);\n }\n}\n"],"names":["PropertyRule"],"mappings":";;;;AASM,MAAO,SAAa,SAAQA,yBAAuB,CAAA;AAC7C,IAAA,OAAgB,UAAU,GAAG,eAAe;AAMpD,IAAA,WAAA,CAAY,gBAAyC,EAAA;AACjD,QAAA,KAAK,CAAC,gBAAgB,EAAE,+CAA+C,CAAC;IAC5E;AAGU,IAAA,OAAO,CAAC,KAAa,EAAA;AAC3B,QAAA,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,EAAE;AACvD,YAAA,OAAO,IAAI;QACf;QACA,OAAO,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;IAC3C;;;;;"}
1
+ {"version":3,"file":"PhoneRule.js","sources":["../../../../validation/rules/PhoneRule.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a string matches a phone number pattern.\n * @template T The type being validated.\n */\nexport class PhoneRule<T> extends PropertyRule<T, string> {\n private static readonly phoneRegex = /^[\\d\\s()+-]+$/;\n\n /**\n * Initializes a new instance of the {@link PhoneRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => string) {\n super(propertyAccessor, \"'{PropertyName}' is not a valid phone number.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return PhoneRule.phoneRegex.test(value);\n }\n}\n"],"names":["PhoneRule","PropertyRule","phoneRegex","propertyAccessor","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,SAAAA,SAAqBC,yBAAAA,CAAAA;AAC9B,IAAA,OAAwBC,aAAa,eAAA;AAErC;;;QAIA,WAAA,CAAYC,gBAAyC,CAAE;AACnD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,+CAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOL,SAAAA,CAAUE,UAAU,CAACK,IAAI,CAACF,KAAAA,CAAAA;AACrC,IAAA;AACJ;;;;"}
@@ -2,15 +2,24 @@
2
2
 
3
3
  var PropertyRule = require('../PropertyRule.js');
4
4
 
5
- class RegexRule extends PropertyRule.PropertyRule {
5
+ // Copyright (c) Cratis. All rights reserved.
6
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
7
+ /**
8
+ * Validation rule that checks if a value matches a regular expression.
9
+ * @template T The type being validated.
10
+ */ class RegexRule extends PropertyRule.PropertyRule {
6
11
  pattern;
7
- constructor(propertyAccessor, pattern, errorMessage) {
8
- super(propertyAccessor, errorMessage || "'{PropertyName}' is not in the correct format.");
9
- this.pattern = pattern;
12
+ /**
13
+ * Initializes a new instance of the {@link RegexRule} class.
14
+ * @param propertyAccessor Function to access the property value from the instance.
15
+ * @param pattern The regular expression pattern to match.
16
+ * @param errorMessage Optional error message.
17
+ */ constructor(propertyAccessor, pattern, errorMessage){
18
+ super(propertyAccessor, errorMessage || "'{PropertyName}' is not in the correct format."), this.pattern = pattern;
10
19
  }
11
- isValid(value) {
20
+ /** @inheritdoc */ isValid(value) {
12
21
  if (value === null || value === undefined || value === '') {
13
- return true;
22
+ return true; // Use NotNull/NotEmpty for null checks
14
23
  }
15
24
  return this.pattern.test(value);
16
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RegexRule.js","sources":["../../../../validation/rules/RegexRule.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a value matches a regular expression.\n * @template T The type being validated.\n */\nexport class RegexRule<T> extends PropertyRule<T, string> {\n /**\n * Initializes a new instance of the {@link RegexRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param pattern The regular expression pattern to match.\n * @param errorMessage Optional error message.\n */\n constructor(propertyAccessor: (instance: T) => string, private readonly pattern: RegExp, errorMessage?: string) {\n super(propertyAccessor, errorMessage || \"'{PropertyName}' is not in the correct format.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return this.pattern.test(value);\n }\n}\n"],"names":["PropertyRule"],"mappings":";;;;AASM,MAAO,SAAa,SAAQA,yBAAuB,CAAA;AAOmB,IAAA,OAAA;AAAxE,IAAA,WAAA,CAAY,gBAAyC,EAAmB,OAAe,EAAE,YAAqB,EAAA;AAC1G,QAAA,KAAK,CAAC,gBAAgB,EAAE,YAAY,IAAI,gDAAgD,CAAC;QADrB,IAAA,CAAA,OAAO,GAAP,OAAO;IAE/E;AAGU,IAAA,OAAO,CAAC,KAAa,EAAA;AAC3B,QAAA,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,EAAE;AACvD,YAAA,OAAO,IAAI;QACf;QACA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;IACnC;AACH;;;;"}
1
+ {"version":3,"file":"RegexRule.js","sources":["../../../../validation/rules/RegexRule.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a value matches a regular expression.\n * @template T The type being validated.\n */\nexport class RegexRule<T> extends PropertyRule<T, string> {\n /**\n * Initializes a new instance of the {@link RegexRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n * @param pattern The regular expression pattern to match.\n * @param errorMessage Optional error message.\n */\n constructor(propertyAccessor: (instance: T) => string, private readonly pattern: RegExp, errorMessage?: string) {\n super(propertyAccessor, errorMessage || \"'{PropertyName}' is not in the correct format.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return this.pattern.test(value);\n }\n}\n"],"names":["RegexRule","PropertyRule","propertyAccessor","errorMessage","pattern","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,SAAAA,SAAqBC,yBAAAA,CAAAA;;AAC9B;;;;;AAKC,QACD,YAAYC,gBAAyC,EAAE,OAAgC,EAAEC,YAAqB,CAAE;AAC5G,QAAA,KAAK,CAACD,gBAAAA,EAAkBC,YAAAA,IAAgB,gDAAA,CAAA,EAAA,IAAA,CAD4BC,OAAAA,GAAAA,OAAAA;AAExE,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAO,IAAI,CAACF,OAAO,CAACI,IAAI,CAACF,KAAAA,CAAAA;AAC7B,IAAA;AACJ;;;;"}
@@ -2,14 +2,22 @@
2
2
 
3
3
  var PropertyRule = require('../PropertyRule.js');
4
4
 
5
- class UrlRule extends PropertyRule.PropertyRule {
5
+ // Copyright (c) Cratis. All rights reserved.
6
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
7
+ /**
8
+ * Validation rule that checks if a string is a valid URL.
9
+ * @template T The type being validated.
10
+ */ class UrlRule extends PropertyRule.PropertyRule {
6
11
  static urlRegex = /^https?:\/\/.+/i;
7
- constructor(propertyAccessor) {
12
+ /**
13
+ * Initializes a new instance of the {@link UrlRule} class.
14
+ * @param propertyAccessor Function to access the property value from the instance.
15
+ */ constructor(propertyAccessor){
8
16
  super(propertyAccessor, "'{PropertyName}' is not a valid URL.");
9
17
  }
10
- isValid(value) {
18
+ /** @inheritdoc */ isValid(value) {
11
19
  if (value === null || value === undefined || value === '') {
12
- return true;
20
+ return true; // Use NotNull/NotEmpty for null checks
13
21
  }
14
22
  return UrlRule.urlRegex.test(value);
15
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UrlRule.js","sources":["../../../../validation/rules/UrlRule.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a string is a valid URL.\n * @template T The type being validated.\n */\nexport class UrlRule<T> extends PropertyRule<T, string> {\n private static readonly urlRegex = /^https?:\\/\\/.+/i;\n\n /**\n * Initializes a new instance of the {@link UrlRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => string) {\n super(propertyAccessor, \"'{PropertyName}' is not a valid URL.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return UrlRule.urlRegex.test(value);\n }\n}\n"],"names":["PropertyRule"],"mappings":";;;;AASM,MAAO,OAAW,SAAQA,yBAAuB,CAAA;AAC3C,IAAA,OAAgB,QAAQ,GAAG,iBAAiB;AAMpD,IAAA,WAAA,CAAY,gBAAyC,EAAA;AACjD,QAAA,KAAK,CAAC,gBAAgB,EAAE,sCAAsC,CAAC;IACnE;AAGU,IAAA,OAAO,CAAC,KAAa,EAAA;AAC3B,QAAA,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,EAAE;AACvD,YAAA,OAAO,IAAI;QACf;QACA,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;IACvC;;;;;"}
1
+ {"version":3,"file":"UrlRule.js","sources":["../../../../validation/rules/UrlRule.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PropertyRule } from '../PropertyRule';\n\n/**\n * Validation rule that checks if a string is a valid URL.\n * @template T The type being validated.\n */\nexport class UrlRule<T> extends PropertyRule<T, string> {\n private static readonly urlRegex = /^https?:\\/\\/.+/i;\n\n /**\n * Initializes a new instance of the {@link UrlRule} class.\n * @param propertyAccessor Function to access the property value from the instance.\n */\n constructor(propertyAccessor: (instance: T) => string) {\n super(propertyAccessor, \"'{PropertyName}' is not a valid URL.\");\n }\n\n /** @inheritdoc */\n protected isValid(value: string): boolean {\n if (value === null || value === undefined || value === '') {\n return true; // Use NotNull/NotEmpty for null checks\n }\n return UrlRule.urlRegex.test(value);\n }\n}\n"],"names":["UrlRule","PropertyRule","urlRegex","propertyAccessor","isValid","value","undefined","test"],"mappings":";;;;AAAA;AACA;AAIA;;;IAIO,MAAMA,OAAAA,SAAmBC,yBAAAA,CAAAA;AAC5B,IAAA,OAAwBC,WAAW,iBAAA;AAEnC;;;QAIA,WAAA,CAAYC,gBAAyC,CAAE;AACnD,QAAA,KAAK,CAACA,gBAAAA,EAAkB,sCAAA,CAAA;AAC5B,IAAA;AAEA,uBACUC,OAAAA,CAAQC,KAAa,EAAW;AACtC,QAAA,IAAIA,KAAAA,KAAU,IAAA,IAAQA,KAAAA,KAAUC,SAAAA,IAAaD,UAAU,EAAA,EAAI;AACvD,YAAA,OAAO;AACX,QAAA;AACA,QAAA,OAAOL,OAAAA,CAAQE,QAAQ,CAACK,IAAI,CAACF,KAAAA,CAAAA;AACjC,IAAA;AACJ;;;;"}
@@ -1,10 +1,22 @@
1
1
  import { QueryTransportMethod } from './queries/QueryTransportMethod.js';
2
2
 
3
- var ObservableQueryTransferMode;
4
- (function (ObservableQueryTransferMode) {
5
- ObservableQueryTransferMode["Delta"] = "delta";
6
- ObservableQueryTransferMode["Full"] = "full";
7
- })(ObservableQueryTransferMode || (ObservableQueryTransferMode = {}));
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ /**
6
+ * Defines the transfer mode used for observable query subscriptions.
7
+ *
8
+ * - {@link ObservableQueryTransferMode.Delta} (default): Only the items that changed since
9
+ * the previous update (added, replaced, removed) are exposed via {@code useChangeStream}.
10
+ * The full collection state is still maintained internally by {@code useObservableQuery}.
11
+ *
12
+ * - {@link ObservableQueryTransferMode.Full}: Every update delivers the complete current
13
+ * collection. The change set returned by {@code useChangeStream} treats the entire new
14
+ * collection as {@code added} and the previous collection as {@code removed}.
15
+ */ var ObservableQueryTransferMode = /*#__PURE__*/ function(ObservableQueryTransferMode) {
16
+ /** Compute and expose only the items that changed since the previous update (default). */ ObservableQueryTransferMode["Delta"] = "delta";
17
+ /** Expose the full collection on every update. */ ObservableQueryTransferMode["Full"] = "full";
18
+ return ObservableQueryTransferMode;
19
+ }({});
8
20
  const Globals = {
9
21
  microservice: '',
10
22
  apiBasePath: '',
@@ -14,9 +26,9 @@ const Globals = {
14
26
  queryTransportMethod: QueryTransportMethod.WebSocket,
15
27
  queryConnectionCount: 1,
16
28
  queryDirectMode: false,
17
- observableQueryTransferMode: ObservableQueryTransferMode.Delta,
18
- httpHeadersCallback: () => ({}),
19
- queryCacheRetentionMs: 30_000,
29
+ observableQueryTransferMode: "delta",
30
+ httpHeadersCallback: ()=>({}),
31
+ queryCacheRetentionMs: 30_000
20
32
  };
21
33
 
22
34
  export { Globals, ObservableQueryTransferMode };
@@ -1 +1 @@
1
- {"version":3,"file":"Globals.js","sources":["../../Globals.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { GetHttpHeaders } from './GetHttpHeaders';\nimport { QueryTransportMethod } from './queries/QueryTransportMethod';\n\n/**\n * Defines the transfer mode used for observable query subscriptions.\n *\n * - {@link ObservableQueryTransferMode.Delta} (default): Only the items that changed since\n * the previous update (added, replaced, removed) are exposed via {@code useChangeStream}.\n * The full collection state is still maintained internally by {@code useObservableQuery}.\n *\n * - {@link ObservableQueryTransferMode.Full}: Every update delivers the complete current\n * collection. The change set returned by {@code useChangeStream} treats the entire new\n * collection as {@code added} and the previous collection as {@code removed}.\n */\nexport enum ObservableQueryTransferMode {\n /** Compute and expose only the items that changed since the previous update (default). */\n Delta = 'delta',\n /** Expose the full collection on every update. */\n Full = 'full',\n}\n\nexport interface IGlobals {\n microservice: string;\n apiBasePath: string;\n origin: string;\n microserviceHttpHeader: string;\n microserviceWSQueryArgument: string;\n queryTransportMethod: QueryTransportMethod;\n /**\n * Number of hub connections maintained for observable queries.\n * When greater than one, queries are distributed across the pool round-robin.\n * Only applies when {@link queryTransportMethod} is a centralized hub transport.\n * Defaults to 1.\n */\n queryConnectionCount: number;\n /**\n * When true, observable queries connect directly to the per-query WebSocket URL\n * instead of routing through the centralized hub endpoint.\n * Defaults to false (use the centralized hub).\n */\n queryDirectMode: boolean;\n /**\n * Controls how observable query updates are transferred and exposed.\n * {@link ObservableQueryTransferMode.Delta} (default) computes per-update deltas;\n * {@link ObservableQueryTransferMode.Full} delivers the whole collection on every update.\n */\n observableQueryTransferMode: ObservableQueryTransferMode;\n /**\n * Callback that returns custom HTTP headers to include in hub transport requests\n * (e.g. SSE subscribe/unsubscribe POST calls).\n */\n httpHeadersCallback: GetHttpHeaders;\n /**\n * How long in milliseconds to retain a query cache entry after the last subscriber\n * releases it before evicting the subscription and the cached data.\n *\n * A non-zero value allows a user navigating away and back quickly to see cached\n * data immediately instead of waiting for a fresh server round-trip. The entry is\n * still evicted once the window expires, so memory is eventually reclaimed.\n *\n * Defaults to 30 000 ms (30 seconds). Set to 0 to restore the previous\n * immediate-eviction behaviour.\n */\n queryCacheRetentionMs: number;\n}\n\nexport const Globals: IGlobals = {\n microservice: '',\n apiBasePath: '',\n origin: '',\n microserviceHttpHeader: 'x-cratis-microservice',\n microserviceWSQueryArgument: 'x-cratis-microservice',\n queryTransportMethod: QueryTransportMethod.WebSocket,\n queryConnectionCount: 1,\n queryDirectMode: false,\n observableQueryTransferMode: ObservableQueryTransferMode.Delta,\n httpHeadersCallback: () => ({}),\n queryCacheRetentionMs: 30_000,\n};"],"names":[],"mappings":";;IAiBY;AAAZ,CAAA,UAAY,2BAA2B,EAAA;AAEnC,IAAA,2BAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AAEf,IAAA,2BAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACjB,CAAC,EALW,2BAA2B,KAA3B,2BAA2B,GAAA,EAAA,CAAA,CAAA;AAoDhC,MAAM,OAAO,GAAa;AAC7B,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,WAAW,EAAE,EAAE;AACf,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,sBAAsB,EAAE,uBAAuB;AAC/C,IAAA,2BAA2B,EAAE,uBAAuB;IACpD,oBAAoB,EAAE,oBAAoB,CAAC,SAAS;AACpD,IAAA,oBAAoB,EAAE,CAAC;AACvB,IAAA,eAAe,EAAE,KAAK;IACtB,2BAA2B,EAAE,2BAA2B,CAAC,KAAK;AAC9D,IAAA,mBAAmB,EAAE,OAAO,EAAE,CAAC;AAC/B,IAAA,qBAAqB,EAAE,MAAM;;;;;"}
1
+ {"version":3,"file":"Globals.js","sources":["../../Globals.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { GetHttpHeaders } from './GetHttpHeaders';\nimport { QueryTransportMethod } from './queries/QueryTransportMethod';\n\n/**\n * Defines the transfer mode used for observable query subscriptions.\n *\n * - {@link ObservableQueryTransferMode.Delta} (default): Only the items that changed since\n * the previous update (added, replaced, removed) are exposed via {@code useChangeStream}.\n * The full collection state is still maintained internally by {@code useObservableQuery}.\n *\n * - {@link ObservableQueryTransferMode.Full}: Every update delivers the complete current\n * collection. The change set returned by {@code useChangeStream} treats the entire new\n * collection as {@code added} and the previous collection as {@code removed}.\n */\nexport enum ObservableQueryTransferMode {\n /** Compute and expose only the items that changed since the previous update (default). */\n Delta = 'delta',\n /** Expose the full collection on every update. */\n Full = 'full',\n}\n\nexport interface IGlobals {\n microservice: string;\n apiBasePath: string;\n origin: string;\n microserviceHttpHeader: string;\n microserviceWSQueryArgument: string;\n queryTransportMethod: QueryTransportMethod;\n /**\n * Number of hub connections maintained for observable queries.\n * When greater than one, queries are distributed across the pool round-robin.\n * Only applies when {@link queryTransportMethod} is a centralized hub transport.\n * Defaults to 1.\n */\n queryConnectionCount: number;\n /**\n * When true, observable queries connect directly to the per-query WebSocket URL\n * instead of routing through the centralized hub endpoint.\n * Defaults to false (use the centralized hub).\n */\n queryDirectMode: boolean;\n /**\n * Controls how observable query updates are transferred and exposed.\n * {@link ObservableQueryTransferMode.Delta} (default) computes per-update deltas;\n * {@link ObservableQueryTransferMode.Full} delivers the whole collection on every update.\n */\n observableQueryTransferMode: ObservableQueryTransferMode;\n /**\n * Callback that returns custom HTTP headers to include in hub transport requests\n * (e.g. SSE subscribe/unsubscribe POST calls).\n */\n httpHeadersCallback: GetHttpHeaders;\n /**\n * How long in milliseconds to retain a query cache entry after the last subscriber\n * releases it before evicting the subscription and the cached data.\n *\n * A non-zero value allows a user navigating away and back quickly to see cached\n * data immediately instead of waiting for a fresh server round-trip. The entry is\n * still evicted once the window expires, so memory is eventually reclaimed.\n *\n * Defaults to 30 000 ms (30 seconds). Set to 0 to restore the previous\n * immediate-eviction behaviour.\n */\n queryCacheRetentionMs: number;\n}\n\nexport const Globals: IGlobals = {\n microservice: '',\n apiBasePath: '',\n origin: '',\n microserviceHttpHeader: 'x-cratis-microservice',\n microserviceWSQueryArgument: 'x-cratis-microservice',\n queryTransportMethod: QueryTransportMethod.WebSocket,\n queryConnectionCount: 1,\n queryDirectMode: false,\n observableQueryTransferMode: ObservableQueryTransferMode.Delta,\n httpHeadersCallback: () => ({}),\n queryCacheRetentionMs: 30_000,\n};"],"names":["ObservableQueryTransferMode","Globals","microservice","apiBasePath","origin","microserviceHttpHeader","microserviceWSQueryArgument","queryTransportMethod","QueryTransportMethod","WebSocket","queryConnectionCount","queryDirectMode","observableQueryTransferMode","httpHeadersCallback","queryCacheRetentionMs"],"mappings":";;AAAA;AACA;AAKA;;;;;;;;;;IAWO,IAAKA,2BAAAA,iBAAAA,SAAAA,2BAAAA,EAAAA;+FACgF,2BAAA,CAAA,OAAA,CAAA,GAAA,OAAA;uDAExC,2BAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAHxCA,IAAAA,OAAAA,2BAAAA;AAKX,CAAA,CAAA,EAAA;MA+CYC,OAAAA,GAAoB;IAC7BC,YAAAA,EAAc,EAAA;IACdC,WAAAA,EAAa,EAAA;IACbC,MAAAA,EAAQ,EAAA;IACRC,sBAAAA,EAAwB,uBAAA;IACxBC,2BAAAA,EAA6B,uBAAA;AAC7BC,IAAAA,oBAAAA,EAAsBC,qBAAqBC,SAAS;IACpDC,oBAAAA,EAAsB,CAAA;IACtBC,eAAAA,EAAiB,KAAA;IACjBC,2BAA2B,EAAA,OAAA;IAC3BC,mBAAAA,EAAqB,KAAO,EAAC,CAAA;IAC7BC,qBAAAA,EAAuB;AAC3B;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"UrlHelpers.d.ts","sourceRoot":"","sources":["../../UrlHelpers.ts"],"names":[],"mappings":"AAeA,qBAAa,UAAU;IAQnB,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG;IAe7E,MAAM,CAAC,sBAAsB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;KAAE;IAkC/H,MAAM,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,eAAe;CAuBzH"}
1
+ {"version":3,"file":"UrlHelpers.d.ts","sourceRoot":"","sources":["../../UrlHelpers.ts"],"names":[],"mappings":"AAeA,qBAAa,UAAU;IAQnB,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,CAM5E;IASD,MAAM,CAAC,sBAAsB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;KAAE,CAyB9H;IASD,MAAM,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,eAAe,CAsBrH;CACJ"}
@@ -1,23 +1,48 @@
1
- function formatQueryValue(value) {
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
+ * Format a single query / route parameter value into a string the .NET TypeConverter
5
+ * infrastructure can round-trip. Date values are emitted as ISO 8601 so DateTimeOffset
6
+ * binding succeeds; everything else falls back to the JS String coercion.
7
+ */ function formatQueryValue(value) {
2
8
  if (value instanceof Date) {
3
9
  return value.toISOString();
4
10
  }
5
11
  return String(value);
6
12
  }
7
13
  class UrlHelpers {
8
- static createUrlFrom(origin, apiBasePath, route) {
14
+ /**
15
+ * Creates a URL from the given origin, API base path, and route.
16
+ * @param origin The origin of the request. If not provided, it defaults to the current document's origin.
17
+ * @param apiBasePath The base path for the API.
18
+ * @param route The specific route for the request.
19
+ * @returns The constructed URL.
20
+ */ static createUrlFrom(origin, apiBasePath, route) {
9
21
  if ((!origin || origin.length === 0) && typeof document !== 'undefined') {
10
22
  origin = document.location?.origin ?? '';
11
23
  }
12
24
  return new URL(route, `${origin}${apiBasePath}`);
13
25
  }
14
- static replaceRouteParameters(route, parameters) {
26
+ /**
27
+ * Replaces route parameters in the route template with values from the parameters object.
28
+ * Returns both the updated route and the parameters that were not used in the route.
29
+ * @param route The route template with placeholders like {paramName}.
30
+ * @param parameters The parameters to replace in the route.
31
+ * @returns An object containing the updated route and unused parameters.
32
+ */ static replaceRouteParameters(route, parameters) {
15
33
  if (!parameters) {
16
- return { route, unusedParameters: {} };
34
+ return {
35
+ route,
36
+ unusedParameters: {}
37
+ };
17
38
  }
18
39
  let result = route;
19
- const unusedParameters = { ...parameters };
20
- for (const [key, value] of Object.entries(parameters)) {
40
+ const unusedParameters = {
41
+ ...parameters
42
+ };
43
+ for (const [key, value] of Object.entries(parameters)){
44
+ // Array values cannot be encoded as a single route segment — leave them as unused so
45
+ // they are serialized as repeated query string parameters (e.g. ?ids=1&ids=2&ids=3).
21
46
  if (Array.isArray(value)) {
22
47
  continue;
23
48
  }
@@ -28,24 +53,32 @@ class UrlHelpers {
28
53
  result = newRoute;
29
54
  }
30
55
  }
31
- return { route: result, unusedParameters };
56
+ return {
57
+ route: result,
58
+ unusedParameters
59
+ };
32
60
  }
33
- static buildQueryParams(unusedParameters, additionalParams) {
61
+ /**
62
+ * Builds URLSearchParams from the given parameters and additional query parameters.
63
+ * Array values are serialized as repeated key=value pairs (e.g. ?ids=1&ids=2&ids=3).
64
+ * @param unusedParameters Parameters that were not used in route replacement.
65
+ * @param additionalParams Additional query parameters to include.
66
+ * @returns URLSearchParams containing all parameters.
67
+ */ static buildQueryParams(unusedParameters, additionalParams) {
34
68
  const queryParams = new URLSearchParams();
35
- for (const [key, value] of Object.entries(unusedParameters)) {
69
+ for (const [key, value] of Object.entries(unusedParameters)){
36
70
  if (value !== undefined && value !== null) {
37
71
  if (Array.isArray(value)) {
38
- for (const item of value) {
72
+ for (const item of value){
39
73
  queryParams.append(key, formatQueryValue(item));
40
74
  }
41
- }
42
- else {
75
+ } else {
43
76
  queryParams.set(key, formatQueryValue(value));
44
77
  }
45
78
  }
46
79
  }
47
80
  if (additionalParams) {
48
- for (const [key, value] of Object.entries(additionalParams)) {
81
+ for (const [key, value] of Object.entries(additionalParams)){
49
82
  queryParams.set(key, formatQueryValue(value));
50
83
  }
51
84
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UrlHelpers.js","sources":["../../UrlHelpers.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * Format a single query / route parameter value into a string the .NET TypeConverter\n * infrastructure can round-trip. Date values are emitted as ISO 8601 so DateTimeOffset\n * binding succeeds; everything else falls back to the JS String coercion.\n */\nfunction formatQueryValue(value: unknown): string {\n if (value instanceof Date) {\n return value.toISOString();\n }\n return String(value);\n}\n\nexport class UrlHelpers {\n /**\n * Creates a URL from the given origin, API base path, and route.\n * @param origin The origin of the request. If not provided, it defaults to the current document's origin.\n * @param apiBasePath The base path for the API.\n * @param route The specific route for the request.\n * @returns The constructed URL.\n */\n static createUrlFrom(origin: string, apiBasePath: string, route: string): URL {\n if ((!origin || origin.length === 0) && typeof document !== 'undefined') {\n origin = document.location?.origin ?? '';\n }\n\n return new URL(route, `${origin}${apiBasePath}`);\n }\n\n /**\n * Replaces route parameters in the route template with values from the parameters object.\n * Returns both the updated route and the parameters that were not used in the route.\n * @param route The route template with placeholders like {paramName}.\n * @param parameters The parameters to replace in the route.\n * @returns An object containing the updated route and unused parameters.\n */\n static replaceRouteParameters<T extends object>(route: string, parameters?: T): { route: string; unusedParameters: Partial<T> } {\n if (!parameters) {\n return { route, unusedParameters: {} };\n }\n\n let result = route;\n const unusedParameters: Partial<T> = { ...parameters };\n\n for (const [key, value] of Object.entries(parameters)) {\n // Array values cannot be encoded as a single route segment — leave them as unused so\n // they are serialized as repeated query string parameters (e.g. ?ids=1&ids=2&ids=3).\n if (Array.isArray(value)) {\n continue;\n }\n\n const pattern = new RegExp(`\\\\{${key}\\\\}`, 'gi');\n const newRoute = result.replace(pattern, encodeURIComponent(formatQueryValue(value)));\n\n if (newRoute !== result) {\n delete unusedParameters[key as keyof T];\n result = newRoute;\n }\n }\n\n return { route: result, unusedParameters };\n }\n\n /**\n * Builds URLSearchParams from the given parameters and additional query parameters.\n * Array values are serialized as repeated key=value pairs (e.g. ?ids=1&ids=2&ids=3).\n * @param unusedParameters Parameters that were not used in route replacement.\n * @param additionalParams Additional query parameters to include.\n * @returns URLSearchParams containing all parameters.\n */\n static buildQueryParams(unusedParameters: object, additionalParams?: Record<string, string | number>): URLSearchParams {\n const queryParams = new URLSearchParams();\n\n for (const [key, value] of Object.entries(unusedParameters)) {\n if (value !== undefined && value !== null) {\n if (Array.isArray(value)) {\n for (const item of value) {\n queryParams.append(key, formatQueryValue(item));\n }\n } else {\n queryParams.set(key, formatQueryValue(value));\n }\n }\n }\n\n if (additionalParams) {\n for (const [key, value] of Object.entries(additionalParams)) {\n queryParams.set(key, formatQueryValue(value));\n }\n }\n\n return queryParams;\n }\n}\n"],"names":[],"mappings":"AAQA,SAAS,gBAAgB,CAAC,KAAc,EAAA;AACpC,IAAA,IAAI,KAAK,YAAY,IAAI,EAAE;AACvB,QAAA,OAAO,KAAK,CAAC,WAAW,EAAE;IAC9B;AACA,IAAA,OAAO,MAAM,CAAC,KAAK,CAAC;AACxB;MAEa,UAAU,CAAA;AAQnB,IAAA,OAAO,aAAa,CAAC,MAAc,EAAE,WAAmB,EAAE,KAAa,EAAA;AACnE,QAAA,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,KAAK,OAAO,QAAQ,KAAK,WAAW,EAAE;YACrE,MAAM,GAAG,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE;QAC5C;QAEA,OAAO,IAAI,GAAG,CAAC,KAAK,EAAE,CAAA,EAAG,MAAM,CAAA,EAAG,WAAW,CAAA,CAAE,CAAC;IACpD;AASA,IAAA,OAAO,sBAAsB,CAAmB,KAAa,EAAE,UAAc,EAAA;QACzE,IAAI,CAAC,UAAU,EAAE;AACb,YAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE,EAAE;QAC1C;QAEA,IAAI,MAAM,GAAG,KAAK;AAClB,QAAA,MAAM,gBAAgB,GAAe,EAAE,GAAG,UAAU,EAAE;AAEtD,QAAA,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;AAGnD,YAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACtB;YACJ;YAEA,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,CAAA,GAAA,EAAM,GAAG,CAAA,GAAA,CAAK,EAAE,IAAI,CAAC;AAChD,YAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;AAErF,YAAA,IAAI,QAAQ,KAAK,MAAM,EAAE;AACrB,gBAAA,OAAO,gBAAgB,CAAC,GAAc,CAAC;gBACvC,MAAM,GAAG,QAAQ;YACrB;QACJ;AAEA,QAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE;IAC9C;AASA,IAAA,OAAO,gBAAgB,CAAC,gBAAwB,EAAE,gBAAkD,EAAA;AAChG,QAAA,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE;AAEzC,QAAA,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE;YACzD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE;AACvC,gBAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AACtB,oBAAA,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;wBACtB,WAAW,CAAC,MAAM,CAAC,GAAG,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;oBACnD;gBACJ;qBAAO;oBACH,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;gBACjD;YACJ;QACJ;QAEA,IAAI,gBAAgB,EAAE;AAClB,YAAA,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE;gBACzD,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;YACjD;QACJ;AAEA,QAAA,OAAO,WAAW;IACtB;AACH;;;;"}
1
+ {"version":3,"file":"UrlHelpers.js","sources":["../../UrlHelpers.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * Format a single query / route parameter value into a string the .NET TypeConverter\n * infrastructure can round-trip. Date values are emitted as ISO 8601 so DateTimeOffset\n * binding succeeds; everything else falls back to the JS String coercion.\n */\nfunction formatQueryValue(value: unknown): string {\n if (value instanceof Date) {\n return value.toISOString();\n }\n return String(value);\n}\n\nexport class UrlHelpers {\n /**\n * Creates a URL from the given origin, API base path, and route.\n * @param origin The origin of the request. If not provided, it defaults to the current document's origin.\n * @param apiBasePath The base path for the API.\n * @param route The specific route for the request.\n * @returns The constructed URL.\n */\n static createUrlFrom(origin: string, apiBasePath: string, route: string): URL {\n if ((!origin || origin.length === 0) && typeof document !== 'undefined') {\n origin = document.location?.origin ?? '';\n }\n\n return new URL(route, `${origin}${apiBasePath}`);\n }\n\n /**\n * Replaces route parameters in the route template with values from the parameters object.\n * Returns both the updated route and the parameters that were not used in the route.\n * @param route The route template with placeholders like {paramName}.\n * @param parameters The parameters to replace in the route.\n * @returns An object containing the updated route and unused parameters.\n */\n static replaceRouteParameters<T extends object>(route: string, parameters?: T): { route: string; unusedParameters: Partial<T> } {\n if (!parameters) {\n return { route, unusedParameters: {} };\n }\n\n let result = route;\n const unusedParameters: Partial<T> = { ...parameters };\n\n for (const [key, value] of Object.entries(parameters)) {\n // Array values cannot be encoded as a single route segment — leave them as unused so\n // they are serialized as repeated query string parameters (e.g. ?ids=1&ids=2&ids=3).\n if (Array.isArray(value)) {\n continue;\n }\n\n const pattern = new RegExp(`\\\\{${key}\\\\}`, 'gi');\n const newRoute = result.replace(pattern, encodeURIComponent(formatQueryValue(value)));\n\n if (newRoute !== result) {\n delete unusedParameters[key as keyof T];\n result = newRoute;\n }\n }\n\n return { route: result, unusedParameters };\n }\n\n /**\n * Builds URLSearchParams from the given parameters and additional query parameters.\n * Array values are serialized as repeated key=value pairs (e.g. ?ids=1&ids=2&ids=3).\n * @param unusedParameters Parameters that were not used in route replacement.\n * @param additionalParams Additional query parameters to include.\n * @returns URLSearchParams containing all parameters.\n */\n static buildQueryParams(unusedParameters: object, additionalParams?: Record<string, string | number>): URLSearchParams {\n const queryParams = new URLSearchParams();\n\n for (const [key, value] of Object.entries(unusedParameters)) {\n if (value !== undefined && value !== null) {\n if (Array.isArray(value)) {\n for (const item of value) {\n queryParams.append(key, formatQueryValue(item));\n }\n } else {\n queryParams.set(key, formatQueryValue(value));\n }\n }\n }\n\n if (additionalParams) {\n for (const [key, value] of Object.entries(additionalParams)) {\n queryParams.set(key, formatQueryValue(value));\n }\n }\n\n return queryParams;\n }\n}\n"],"names":["formatQueryValue","value","Date","toISOString","String","UrlHelpers","createUrlFrom","origin","apiBasePath","route","length","document","location","URL","replaceRouteParameters","parameters","unusedParameters","result","key","Object","entries","Array","isArray","pattern","RegExp","newRoute","replace","encodeURIComponent","buildQueryParams","additionalParams","queryParams","URLSearchParams","undefined","item","append","set"],"mappings":"AAAA;AACA;AAEA;;;;IAKA,SAASA,iBAAiBC,KAAc,EAAA;AACpC,IAAA,IAAIA,iBAAiBC,IAAAA,EAAM;AACvB,QAAA,OAAOD,MAAME,WAAW,EAAA;AAC5B,IAAA;AACA,IAAA,OAAOC,MAAAA,CAAOH,KAAAA,CAAAA;AAClB;AAEO,MAAMI,UAAAA,CAAAA;AACT;;;;;;AAMA,OACA,OAAOC,aAAAA,CAAcC,MAAc,EAAEC,WAAmB,EAAEC,KAAa,EAAO;QAC1E,IAAK,CAAA,CAACF,MAAAA,IAAUA,MAAAA,CAAOG,MAAM,KAAK,CAAA,KAAM,OAAOC,QAAAA,KAAa,WAAA,EAAa;YACrEJ,MAAAA,GAASI,QAAAA,CAASC,QAAQ,EAAEL,MAAAA,IAAU,EAAA;AAC1C,QAAA;AAEA,QAAA,OAAO,IAAIM,GAAAA,CAAIJ,KAAAA,EAAO,CAAA,EAAGF,SAASC,WAAAA,CAAAA,CAAa,CAAA;AACnD,IAAA;AAEA;;;;;;AAMC,QACD,OAAOM,sBAAAA,CAAyCL,KAAa,EAAEM,UAAc,EAAmD;AAC5H,QAAA,IAAI,CAACA,UAAAA,EAAY;YACb,OAAO;AAAEN,gBAAAA,KAAAA;AAAOO,gBAAAA,gBAAAA,EAAkB;AAAG,aAAA;AACzC,QAAA;AAEA,QAAA,IAAIC,MAAAA,GAASR,KAAAA;AACb,QAAA,MAAMO,gBAAAA,GAA+B;AAAE,YAAA,GAAGD;AAAW,SAAA;QAErD,KAAK,MAAM,CAACG,GAAAA,EAAKjB,KAAAA,CAAM,IAAIkB,MAAAA,CAAOC,OAAO,CAACL,UAAAA,CAAAA,CAAa;;;YAGnD,IAAIM,KAAAA,CAAMC,OAAO,CAACrB,KAAAA,CAAAA,EAAQ;AACtB,gBAAA;AACJ,YAAA;YAEA,MAAMsB,OAAAA,GAAU,IAAIC,MAAAA,CAAO,CAAC,GAAG,EAAEN,GAAAA,CAAI,GAAG,CAAC,EAAE,IAAA,CAAA;AAC3C,YAAA,MAAMO,WAAWR,MAAAA,CAAOS,OAAO,CAACH,OAAAA,EAASI,mBAAmB3B,gBAAAA,CAAiBC,KAAAA,CAAAA,CAAAA,CAAAA;AAE7E,YAAA,IAAIwB,aAAaR,MAAAA,EAAQ;gBACrB,OAAOD,gBAAgB,CAACE,GAAAA,CAAe;gBACvCD,MAAAA,GAASQ,QAAAA;AACb,YAAA;AACJ,QAAA;QAEA,OAAO;YAAEhB,KAAAA,EAAOQ,MAAAA;AAAQD,YAAAA;AAAiB,SAAA;AAC7C,IAAA;AAEA;;;;;;AAMC,QACD,OAAOY,gBAAAA,CAAiBZ,gBAAwB,EAAEa,gBAAkD,EAAmB;AACnH,QAAA,MAAMC,cAAc,IAAIC,eAAAA,EAAAA;QAExB,KAAK,MAAM,CAACb,GAAAA,EAAKjB,KAAAA,CAAM,IAAIkB,MAAAA,CAAOC,OAAO,CAACJ,gBAAAA,CAAAA,CAAmB;YACzD,IAAIf,KAAAA,KAAU+B,SAAAA,IAAa/B,KAAAA,KAAU,IAAA,EAAM;gBACvC,IAAIoB,KAAAA,CAAMC,OAAO,CAACrB,KAAAA,CAAAA,EAAQ;oBACtB,KAAK,MAAMgC,QAAQhC,KAAAA,CAAO;wBACtB6B,WAAAA,CAAYI,MAAM,CAAChB,GAAAA,EAAKlB,gBAAAA,CAAiBiC,IAAAA,CAAAA,CAAAA;AAC7C,oBAAA;gBACJ,CAAA,MAAO;oBACHH,WAAAA,CAAYK,GAAG,CAACjB,GAAAA,EAAKlB,gBAAAA,CAAiBC,KAAAA,CAAAA,CAAAA;AAC1C,gBAAA;AACJ,YAAA;AACJ,QAAA;AAEA,QAAA,IAAI4B,gBAAAA,EAAkB;YAClB,KAAK,MAAM,CAACX,GAAAA,EAAKjB,KAAAA,CAAM,IAAIkB,MAAAA,CAAOC,OAAO,CAACS,gBAAAA,CAAAA,CAAmB;gBACzDC,WAAAA,CAAYK,GAAG,CAACjB,GAAAA,EAAKlB,gBAAAA,CAAiBC,KAAAA,CAAAA,CAAAA;AAC1C,YAAA;AACJ,QAAA;QAEA,OAAO6B,WAAAA;AACX,IAAA;AACJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../../commands/Command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAkB,MAAM,sBAAsB,CAAC;AAInE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAUlF,8BAAsB,OAAO,CAAC,eAAe,GAAG,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAE,YAAW,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAsBzH,QAAQ,CAAC,aAAa,EAAE,WAAW;IAAW,QAAQ,CAAC,yBAAyB,EAAE,OAAO;IArBrG,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,oBAAoB,CAAiB;IAC7C,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEhC,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAE5C,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;IAC5D,QAAQ,KAAK,iBAAiB,IAAI,MAAM,EAAE,CAAC;IAE3C,OAAO,CAAC,cAAc,CAAc;IACpC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAkB;gBAOf,aAAa,EAAE,WAAW,YAAS,EAAW,yBAAyB,EAAE,OAAO;IAQrG,eAAe,CAAC,YAAY,EAAE,MAAM;IAKpC,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAKzC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAK/B,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAKhD,OAAO,CAAC,eAAe,CAAC,EAAE,wBAAwB,EAAE,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IA2BvH,QAAQ,IAAI,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAwB1D,kBAAkB,IAAI,aAAa,CAAC,gBAAgB,CAAC;IAcrD,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,0BAA0B;IAkBlC,OAAO,CAAC,iCAAiC;IAUzC,OAAO,CAAC,YAAY;YAuBN,cAAc;IA+B5B,KAAK,IAAI,IAAI;IAUb,gBAAgB,CAAC,MAAM,EAAE,eAAe;IAYxC,iCAAiC;IAWjC,aAAa,IAAI,IAAI;IAQrB,IAAI,UAAU,YAEb;IAGD,eAAe,CAAC,QAAQ,EAAE,MAAM;IAehC,iBAAiB,CAAC,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM;IAO5D,OAAO,CAAC,gBAAgB;CAM3B"}
1
+ {"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../../commands/Command.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAkB,MAAM,sBAAsB,CAAC;AAInE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAUlF,8BAAsB,OAAO,CAAC,eAAe,GAAG,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAE,YAAW,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAsBzH,QAAQ,CAAC,aAAa,EAAE,WAAW;IAAW,QAAQ,CAAC,yBAAyB,EAAE,OAAO;IArBrG,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,oBAAoB,CAAiB;IAC7C,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEhC,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAE5C,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;IAC5D,QAAQ,KAAK,iBAAiB,IAAI,MAAM,EAAE,CAAC;IAE3C,OAAO,CAAC,cAAc,CAAc;IACpC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAkB;IAOpC,YAAqB,aAAa,EAAE,WAAW,YAAS,EAAW,yBAAyB,EAAE,OAAO,EAKpG;IAGD,eAAe,CAAC,YAAY,EAAE,MAAM,QAEnC;IAGD,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAExC;IAGD,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE9B;IAGD,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAErD;IAGK,OAAO,CAAC,eAAe,CAAC,EAAE,wBAAwB,EAAE,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAwB5H;IAGK,QAAQ,IAAI,OAAO,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAqBzD;IAGD,kBAAkB,IAAI,aAAa,CAAC,gBAAgB,CAAC,CAYpD;IAED,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,0BAA0B;IAkBlC,OAAO,CAAC,iCAAiC;IAUzC,OAAO,CAAC,YAAY;YAuBN,cAAc;IA+B5B,KAAK,IAAI,IAAI,CAOZ;IAGD,gBAAgB,CAAC,MAAM,EAAE,eAAe,QASvC;IAGD,iCAAiC,SAQhC;IAGD,aAAa,IAAI,IAAI,CAKpB;IAGD,IAAI,UAAU,YAEb;IAGD,eAAe,CAAC,QAAQ,EAAE,MAAM,QAY/B;IAGD,iBAAiB,CAAC,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,QAK3D;IAED,OAAO,CAAC,gBAAgB;CAM3B"}
@@ -6,39 +6,47 @@ import { UrlHelpers } from '../UrlHelpers.js';
6
6
  import { ValidationResult } from '../validation/ValidationResult.js';
7
7
  import { ValidationResultSeverity } from '../validation/ValidationResultSeverity.js';
8
8
 
9
- class Command {
9
+ // Copyright (c) Cratis. All rights reserved.
10
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
11
+ /**
12
+ * Represents an implementation of {@link ICommand} that works with HTTP fetch.
13
+ */ class Command {
10
14
  _responseType;
11
15
  _isResponseTypeEnumerable;
12
16
  _microservice;
13
17
  _apiBasePath;
14
18
  _origin;
15
19
  _httpHeadersCallback;
16
- validation;
17
- roles = [];
20
+ /* eslint-disable @typescript-eslint/no-explicit-any */ validation;
21
+ /* eslint-enable @typescript-eslint/no-explicit-any */ roles = [];
18
22
  _initialValues = {};
19
23
  _hasChanges = false;
20
24
  _callbacks = [];
21
- constructor(_responseType = Object, _isResponseTypeEnumerable) {
25
+ /**
26
+ * Initializes a new instance of the {@link Command<,>} class.
27
+ * @param _responseType Type of response.
28
+ * @param _isResponseTypeEnumerable Whether or not the response type is enumerable.
29
+ */ constructor(_responseType = Object, _isResponseTypeEnumerable){
22
30
  this._responseType = _responseType;
23
31
  this._isResponseTypeEnumerable = _isResponseTypeEnumerable;
24
32
  this._microservice = Globals.microservice ?? '';
25
33
  this._apiBasePath = Globals.apiBasePath ?? '';
26
34
  this._origin = Globals.origin ?? '';
27
- this._httpHeadersCallback = () => ({});
35
+ this._httpHeadersCallback = ()=>({});
28
36
  }
29
- setMicroservice(microservice) {
37
+ /** @inheritdoc */ setMicroservice(microservice) {
30
38
  this._microservice = microservice;
31
39
  }
32
- setApiBasePath(apiBasePath) {
40
+ /** @inheritdoc */ setApiBasePath(apiBasePath) {
33
41
  this._apiBasePath = apiBasePath;
34
42
  }
35
- setOrigin(origin) {
43
+ /** @inheritdoc */ setOrigin(origin) {
36
44
  this._origin = origin;
37
45
  }
38
- setHttpHeadersCallback(callback) {
46
+ /** @inheritdoc */ setHttpHeadersCallback(callback) {
39
47
  this._httpHeadersCallback = callback;
40
48
  }
41
- async execute(allowedSeverity, ignoreWarnings) {
49
+ /** @inheritdoc */ async execute(allowedSeverity, ignoreWarnings) {
42
50
  const clientValidationErrors = this.validation?.validate(this) || [];
43
51
  const filteredClientErrors = this.filterValidationResultsBySeverity(clientValidationErrors, allowedSeverity, ignoreWarnings);
44
52
  if (filteredClientErrors.length > 0) {
@@ -59,7 +67,7 @@ class Command {
59
67
  this.setInitialValuesFromCurrentValues();
60
68
  return result;
61
69
  }
62
- async validate() {
70
+ /** @inheritdoc */ async validate() {
63
71
  const clientValidationErrors = this.validation?.validate(this) || [];
64
72
  if (clientValidationErrors.length > 0) {
65
73
  return CommandResult.validationFailed(clientValidationErrors);
@@ -77,7 +85,7 @@ class Command {
77
85
  actualRoute = `${actualRoute}/validate`;
78
86
  return this.performRequest(actualRoute, 'Command validation endpoint not found at route', 'Error during validation call');
79
87
  }
80
- validateClientSide() {
88
+ /** @inheritdoc */ validateClientSide() {
81
89
  const clientValidationErrors = this.validation?.validate(this) || [];
82
90
  if (clientValidationErrors.length > 0) {
83
91
  return CommandResult.validationFailed(clientValidationErrors);
@@ -90,7 +98,7 @@ class Command {
90
98
  }
91
99
  buildPayload() {
92
100
  const payload = {};
93
- this.propertyDescriptors.forEach(propertyDescriptor => {
101
+ this.propertyDescriptors.forEach((propertyDescriptor)=>{
94
102
  const property = propertyDescriptor.name;
95
103
  payload[property] = this[property];
96
104
  });
@@ -98,11 +106,13 @@ class Command {
98
106
  }
99
107
  validateRequiredProperties() {
100
108
  const validationErrors = [];
101
- this.propertyDescriptors.forEach(propertyDescriptor => {
109
+ this.propertyDescriptors.forEach((propertyDescriptor)=>{
102
110
  if (!propertyDescriptor.isOptional && !this.requestParameters.includes(propertyDescriptor.name)) {
103
111
  const value = this[propertyDescriptor.name];
104
112
  if (value === undefined || value === null) {
105
- validationErrors.push(new ValidationResult(ValidationResultSeverity.Error, `${propertyDescriptor.name} is required`, [propertyDescriptor.name], null));
113
+ validationErrors.push(new ValidationResult(ValidationResultSeverity.Error, `${propertyDescriptor.name} is required`, [
114
+ propertyDescriptor.name
115
+ ], null));
106
116
  }
107
117
  }
108
118
  });
@@ -110,12 +120,12 @@ class Command {
110
120
  }
111
121
  filterValidationResultsBySeverity(validationResults, allowedSeverity, ignoreWarnings) {
112
122
  if (ignoreWarnings === true) {
113
- return validationResults.filter(result => result.severity === ValidationResultSeverity.Error);
123
+ return validationResults.filter((result)=>result.severity === ValidationResultSeverity.Error);
114
124
  }
115
125
  if (allowedSeverity === undefined) {
116
- return validationResults.filter(result => result.severity === ValidationResultSeverity.Error);
126
+ return validationResults.filter((result)=>result.severity === ValidationResultSeverity.Error);
117
127
  }
118
- return validationResults.filter(result => result.severity > allowedSeverity);
128
+ return validationResults.filter((result)=>result.severity > allowedSeverity);
119
129
  }
120
130
  buildHeaders(allowedSeverity, ignoreWarnings) {
121
131
  const customHeaders = this._httpHeadersCallback?.() ?? {};
@@ -147,25 +157,28 @@ class Command {
147
157
  body: JsonSerializer.serialize(payload)
148
158
  });
149
159
  if (response.status === 404) {
150
- return CommandResult.failed([`${notFoundMessage} '${actualRoute}'`]);
160
+ return CommandResult.failed([
161
+ `${notFoundMessage} '${actualRoute}'`
162
+ ]);
151
163
  }
152
164
  const result = await response.json();
153
165
  return new CommandResult(result, this._responseType, this._isResponseTypeEnumerable);
154
- }
155
- catch (ex) {
156
- return CommandResult.failed([`${errorMessage}: ${ex}`]);
166
+ } catch (ex) {
167
+ return CommandResult.failed([
168
+ `${errorMessage}: ${ex}`
169
+ ]);
157
170
  }
158
171
  }
159
- clear() {
160
- this.propertyDescriptors.forEach(propertyDescriptor => {
172
+ /** @inheritdoc */ clear() {
173
+ this.propertyDescriptors.forEach((propertyDescriptor)=>{
161
174
  const property = propertyDescriptor.name;
162
175
  this[property] = undefined;
163
176
  });
164
177
  this._initialValues = {};
165
178
  this._hasChanges = false;
166
179
  }
167
- setInitialValues(values) {
168
- this.propertyDescriptors.forEach(propertyDescriptor => {
180
+ /** @inheritdoc */ setInitialValues(values) {
181
+ this.propertyDescriptors.forEach((propertyDescriptor)=>{
169
182
  const property = propertyDescriptor.name;
170
183
  if (Object.prototype.hasOwnProperty.call(values, property)) {
171
184
  this._initialValues[property] = values[property];
@@ -174,8 +187,8 @@ class Command {
174
187
  });
175
188
  this.updateHasChanges();
176
189
  }
177
- setInitialValuesFromCurrentValues() {
178
- this.propertyDescriptors.forEach(propertyDescriptor => {
190
+ /** @inheritdoc */ setInitialValuesFromCurrentValues() {
191
+ this.propertyDescriptors.forEach((propertyDescriptor)=>{
179
192
  const property = propertyDescriptor.name;
180
193
  if (this[property]) {
181
194
  this._initialValues[property] = this[property];
@@ -183,36 +196,35 @@ class Command {
183
196
  });
184
197
  this.updateHasChanges();
185
198
  }
186
- revertChanges() {
187
- this.propertyDescriptors.forEach(propertyDescriptor => {
199
+ /** @inheritdoc */ revertChanges() {
200
+ this.propertyDescriptors.forEach((propertyDescriptor)=>{
188
201
  const property = propertyDescriptor.name;
189
202
  this[property] = this._initialValues[property];
190
203
  });
191
204
  }
192
- get hasChanges() {
205
+ /** @inheritdoc */ get hasChanges() {
193
206
  return this._hasChanges;
194
207
  }
195
- propertyChanged(property) {
208
+ /** @inheritdoc */ propertyChanged(property) {
196
209
  this.updateHasChanges();
197
- this._callbacks.forEach(callbackContainer => {
210
+ this._callbacks.forEach((callbackContainer)=>{
198
211
  const callback = callbackContainer.callback.deref();
199
212
  const thisArg = callbackContainer.thisArg.deref();
200
213
  if (callback && thisArg) {
201
214
  callback.call(thisArg, property);
202
- }
203
- else {
204
- this._callbacks = this._callbacks.filter(_ => _.callback !== callbackContainer.callback);
215
+ } else {
216
+ this._callbacks = this._callbacks.filter((_)=>_.callback !== callbackContainer.callback);
205
217
  }
206
218
  });
207
219
  }
208
- onPropertyChanged(callback, thisArg) {
220
+ /** @inheritdoc */ onPropertyChanged(callback, thisArg) {
209
221
  this._callbacks.push({
210
222
  callback: new WeakRef(callback),
211
223
  thisArg: new WeakRef(thisArg)
212
224
  });
213
225
  }
214
226
  updateHasChanges() {
215
- this._hasChanges = this.propertyDescriptors.some(propertyDescriptor => {
227
+ this._hasChanges = this.propertyDescriptors.some((propertyDescriptor)=>{
216
228
  const property = propertyDescriptor.name;
217
229
  return this[property] !== this._initialValues[property];
218
230
  });