@ahoo-wang/wow-client 9.2.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +291 -0
  3. package/README.zh-CN.md +267 -0
  4. package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorate.cjs +1 -0
  5. package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorate.es.js +9 -0
  6. package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateMetadata.cjs +1 -0
  7. package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateMetadata.es.js +6 -0
  8. package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateParam.cjs +1 -0
  9. package/dist/_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/decorateParam.es.js +8 -0
  10. package/dist/client/bindMethods.cjs +2 -0
  11. package/dist/client/bindMethods.cjs.map +1 -0
  12. package/dist/client/bindMethods.d.cts +13 -0
  13. package/dist/client/bindMethods.d.ts +13 -0
  14. package/dist/client/bindMethods.es.js +19 -0
  15. package/dist/client/bindMethods.es.js.map +1 -0
  16. package/dist/client/command/commandClient.cjs +2 -0
  17. package/dist/client/command/commandClient.cjs.map +1 -0
  18. package/dist/client/command/commandClient.d.cts +67 -0
  19. package/dist/client/command/commandClient.d.ts +67 -0
  20. package/dist/client/command/commandClient.es.js +38 -0
  21. package/dist/client/command/commandClient.es.js.map +1 -0
  22. package/dist/client/command/commandHeaders.cjs +2 -0
  23. package/dist/client/command/commandHeaders.cjs.map +1 -0
  24. package/dist/client/command/commandHeaders.d.cts +75 -0
  25. package/dist/client/command/commandHeaders.d.ts +75 -0
  26. package/dist/client/command/commandHeaders.es.js +31 -0
  27. package/dist/client/command/commandHeaders.es.js.map +1 -0
  28. package/dist/client/command/commandRequest.cjs +2 -0
  29. package/dist/client/command/commandRequest.cjs.map +1 -0
  30. package/dist/client/command/commandRequest.d.cts +180 -0
  31. package/dist/client/command/commandRequest.d.ts +180 -0
  32. package/dist/client/command/commandRequest.es.js +31 -0
  33. package/dist/client/command/commandRequest.es.js.map +1 -0
  34. package/dist/client/command/commandResult.d.cts +15 -0
  35. package/dist/client/command/commandResult.d.ts +15 -0
  36. package/dist/client/command/index.d.cts +5 -0
  37. package/dist/client/command/index.d.ts +5 -0
  38. package/dist/client/command/types.d.cts +71 -0
  39. package/dist/client/command/types.d.ts +71 -0
  40. package/dist/client/metadata/index.d.cts +2 -0
  41. package/dist/client/metadata/index.d.ts +2 -0
  42. package/dist/client/metadata/wowMetadata.d.cts +48 -0
  43. package/dist/client/metadata/wowMetadata.d.ts +48 -0
  44. package/dist/client/metadata/wowMetadataClient.cjs +2 -0
  45. package/dist/client/metadata/wowMetadataClient.cjs.map +1 -0
  46. package/dist/client/metadata/wowMetadataClient.d.cts +23 -0
  47. package/dist/client/metadata/wowMetadataClient.d.ts +23 -0
  48. package/dist/client/metadata/wowMetadataClient.es.js +25 -0
  49. package/dist/client/metadata/wowMetadataClient.es.js.map +1 -0
  50. package/dist/client/query/descriptor/descriptorEndpoints.cjs +2 -0
  51. package/dist/client/query/descriptor/descriptorEndpoints.cjs.map +1 -0
  52. package/dist/client/query/descriptor/descriptorEndpoints.d.cts +29 -0
  53. package/dist/client/query/descriptor/descriptorEndpoints.d.ts +29 -0
  54. package/dist/client/query/descriptor/descriptorEndpoints.es.js +69 -0
  55. package/dist/client/query/descriptor/descriptorEndpoints.es.js.map +1 -0
  56. package/dist/client/query/descriptor/endpointPaths.cjs +2 -0
  57. package/dist/client/query/descriptor/endpointPaths.cjs.map +1 -0
  58. package/dist/client/query/descriptor/endpointPaths.d.cts +4 -0
  59. package/dist/client/query/descriptor/endpointPaths.d.ts +4 -0
  60. package/dist/client/query/descriptor/endpointPaths.es.js +9 -0
  61. package/dist/client/query/descriptor/endpointPaths.es.js.map +1 -0
  62. package/dist/client/query/descriptor/index.d.cts +2 -0
  63. package/dist/client/query/descriptor/index.d.ts +2 -0
  64. package/dist/client/query/descriptor/queryDescriptorApi.d.cts +58 -0
  65. package/dist/client/query/descriptor/queryDescriptorApi.d.ts +58 -0
  66. package/dist/client/query/descriptor/queryDescriptorClient.cjs +2 -0
  67. package/dist/client/query/descriptor/queryDescriptorClient.cjs.map +1 -0
  68. package/dist/client/query/descriptor/queryDescriptorClient.d.cts +61 -0
  69. package/dist/client/query/descriptor/queryDescriptorClient.d.ts +61 -0
  70. package/dist/client/query/descriptor/queryDescriptorClient.es.js +20 -0
  71. package/dist/client/query/descriptor/queryDescriptorClient.es.js.map +1 -0
  72. package/dist/client/query/event/domainEventStream.cjs +2 -0
  73. package/dist/client/query/event/domainEventStream.cjs.map +1 -0
  74. package/dist/client/query/event/domainEventStream.d.cts +105 -0
  75. package/dist/client/query/event/domainEventStream.d.ts +105 -0
  76. package/dist/client/query/event/domainEventStream.es.js +23 -0
  77. package/dist/client/query/event/domainEventStream.es.js.map +1 -0
  78. package/dist/client/query/event/endpointPaths.cjs +2 -0
  79. package/dist/client/query/event/endpointPaths.cjs.map +1 -0
  80. package/dist/client/query/event/endpointPaths.d.cts +8 -0
  81. package/dist/client/query/event/endpointPaths.d.ts +8 -0
  82. package/dist/client/query/event/endpointPaths.es.js +13 -0
  83. package/dist/client/query/event/endpointPaths.es.js.map +1 -0
  84. package/dist/client/query/event/eventStreamQueryApi.d.cts +29 -0
  85. package/dist/client/query/event/eventStreamQueryApi.d.ts +29 -0
  86. package/dist/client/query/event/eventStreamQueryClient.cjs +2 -0
  87. package/dist/client/query/event/eventStreamQueryClient.cjs.map +1 -0
  88. package/dist/client/query/event/eventStreamQueryClient.d.cts +190 -0
  89. package/dist/client/query/event/eventStreamQueryClient.d.ts +190 -0
  90. package/dist/client/query/event/eventStreamQueryClient.es.js +160 -0
  91. package/dist/client/query/event/eventStreamQueryClient.es.js.map +1 -0
  92. package/dist/client/query/event/index.d.cts +3 -0
  93. package/dist/client/query/event/index.d.ts +3 -0
  94. package/dist/client/query/factory.cjs +2 -0
  95. package/dist/client/query/factory.cjs.map +1 -0
  96. package/dist/client/query/factory.d.cts +165 -0
  97. package/dist/client/query/factory.d.ts +165 -0
  98. package/dist/client/query/factory.es.js +45 -0
  99. package/dist/client/query/factory.es.js.map +1 -0
  100. package/dist/client/query/index.d.cts +6 -0
  101. package/dist/client/query/index.d.ts +6 -0
  102. package/dist/client/query/queryApi.d.cts +68 -0
  103. package/dist/client/query/queryApi.d.ts +68 -0
  104. package/dist/client/query/requests.d.cts +24 -0
  105. package/dist/client/query/requests.d.ts +24 -0
  106. package/dist/client/query/snapshot/endpointPaths.cjs +2 -0
  107. package/dist/client/query/snapshot/endpointPaths.cjs.map +1 -0
  108. package/dist/client/query/snapshot/endpointPaths.d.cts +12 -0
  109. package/dist/client/query/snapshot/endpointPaths.d.ts +12 -0
  110. package/dist/client/query/snapshot/endpointPaths.es.js +17 -0
  111. package/dist/client/query/snapshot/endpointPaths.es.js.map +1 -0
  112. package/dist/client/query/snapshot/index.d.cts +3 -0
  113. package/dist/client/query/snapshot/index.d.ts +3 -0
  114. package/dist/client/query/snapshot/snapshot.cjs +2 -0
  115. package/dist/client/query/snapshot/snapshot.cjs.map +1 -0
  116. package/dist/client/query/snapshot/snapshot.d.cts +51 -0
  117. package/dist/client/query/snapshot/snapshot.d.ts +51 -0
  118. package/dist/client/query/snapshot/snapshot.es.js +20 -0
  119. package/dist/client/query/snapshot/snapshot.es.js.map +1 -0
  120. package/dist/client/query/snapshot/snapshotQueryApi.d.cts +101 -0
  121. package/dist/client/query/snapshot/snapshotQueryApi.d.ts +101 -0
  122. package/dist/client/query/snapshot/snapshotQueryClient.cjs +2 -0
  123. package/dist/client/query/snapshot/snapshotQueryClient.cjs.map +1 -0
  124. package/dist/client/query/snapshot/snapshotQueryClient.d.cts +369 -0
  125. package/dist/client/query/snapshot/snapshotQueryClient.d.ts +369 -0
  126. package/dist/client/query/snapshot/snapshotQueryClient.es.js +239 -0
  127. package/dist/client/query/snapshot/snapshotQueryClient.es.js.map +1 -0
  128. package/dist/client/query/state/endpointPaths.cjs +2 -0
  129. package/dist/client/query/state/endpointPaths.cjs.map +1 -0
  130. package/dist/client/query/state/endpointPaths.d.cts +10 -0
  131. package/dist/client/query/state/endpointPaths.d.ts +10 -0
  132. package/dist/client/query/state/endpointPaths.es.js +14 -0
  133. package/dist/client/query/state/endpointPaths.es.js.map +1 -0
  134. package/dist/client/query/state/index.d.cts +4 -0
  135. package/dist/client/query/state/index.d.ts +4 -0
  136. package/dist/client/query/state/loadOwnerStateAggregateApi.d.cts +36 -0
  137. package/dist/client/query/state/loadOwnerStateAggregateApi.d.ts +36 -0
  138. package/dist/client/query/state/loadOwnerStateAggregateClient.cjs +2 -0
  139. package/dist/client/query/state/loadOwnerStateAggregateClient.cjs.map +1 -0
  140. package/dist/client/query/state/loadOwnerStateAggregateClient.d.cts +58 -0
  141. package/dist/client/query/state/loadOwnerStateAggregateClient.d.ts +58 -0
  142. package/dist/client/query/state/loadOwnerStateAggregateClient.es.js +56 -0
  143. package/dist/client/query/state/loadOwnerStateAggregateClient.es.js.map +1 -0
  144. package/dist/client/query/state/loadStateAggregateApi.d.cts +37 -0
  145. package/dist/client/query/state/loadStateAggregateApi.d.ts +37 -0
  146. package/dist/client/query/state/loadStateAggregateClient.cjs +2 -0
  147. package/dist/client/query/state/loadStateAggregateClient.cjs.map +1 -0
  148. package/dist/client/query/state/loadStateAggregateClient.d.cts +62 -0
  149. package/dist/client/query/state/loadStateAggregateClient.d.ts +62 -0
  150. package/dist/client/query/state/loadStateAggregateClient.es.js +65 -0
  151. package/dist/client/query/state/loadStateAggregateClient.es.js.map +1 -0
  152. package/dist/client/routing.cjs +2 -0
  153. package/dist/client/routing.cjs.map +1 -0
  154. package/dist/client/routing.d.cts +47 -0
  155. package/dist/client/routing.d.ts +47 -0
  156. package/dist/client/routing.es.js +8 -0
  157. package/dist/client/routing.es.js.map +1 -0
  158. package/dist/dsl/aggregation/admit.cjs +2 -0
  159. package/dist/dsl/aggregation/admit.cjs.map +1 -0
  160. package/dist/dsl/aggregation/admit.d.cts +6 -0
  161. package/dist/dsl/aggregation/admit.d.ts +6 -0
  162. package/dist/dsl/aggregation/admit.es.js +142 -0
  163. package/dist/dsl/aggregation/admit.es.js.map +1 -0
  164. package/dist/dsl/aggregation/builders.cjs +2 -0
  165. package/dist/dsl/aggregation/builders.cjs.map +1 -0
  166. package/dist/dsl/aggregation/builders.d.cts +309 -0
  167. package/dist/dsl/aggregation/builders.d.ts +309 -0
  168. package/dist/dsl/aggregation/builders.es.js +188 -0
  169. package/dist/dsl/aggregation/builders.es.js.map +1 -0
  170. package/dist/dsl/aggregation/derived.cjs +2 -0
  171. package/dist/dsl/aggregation/derived.cjs.map +1 -0
  172. package/dist/dsl/aggregation/derived.d.cts +33 -0
  173. package/dist/dsl/aggregation/derived.d.ts +33 -0
  174. package/dist/dsl/aggregation/derived.es.js +31 -0
  175. package/dist/dsl/aggregation/derived.es.js.map +1 -0
  176. package/dist/dsl/aggregation/expressionTrees.cjs +2 -0
  177. package/dist/dsl/aggregation/expressionTrees.cjs.map +1 -0
  178. package/dist/dsl/aggregation/expressionTrees.d.cts +10 -0
  179. package/dist/dsl/aggregation/expressionTrees.d.ts +10 -0
  180. package/dist/dsl/aggregation/expressionTrees.es.js +44 -0
  181. package/dist/dsl/aggregation/expressionTrees.es.js.map +1 -0
  182. package/dist/dsl/aggregation/having.cjs +2 -0
  183. package/dist/dsl/aggregation/having.cjs.map +1 -0
  184. package/dist/dsl/aggregation/having.d.cts +94 -0
  185. package/dist/dsl/aggregation/having.d.ts +94 -0
  186. package/dist/dsl/aggregation/having.es.js +62 -0
  187. package/dist/dsl/aggregation/having.es.js.map +1 -0
  188. package/dist/dsl/aggregation/index.d.cts +4 -0
  189. package/dist/dsl/aggregation/index.d.ts +4 -0
  190. package/dist/dsl/aggregation/sort.cjs +2 -0
  191. package/dist/dsl/aggregation/sort.cjs.map +1 -0
  192. package/dist/dsl/aggregation/sort.d.cts +7 -0
  193. package/dist/dsl/aggregation/sort.d.ts +7 -0
  194. package/dist/dsl/aggregation/sort.es.js +10 -0
  195. package/dist/dsl/aggregation/sort.es.js.map +1 -0
  196. package/dist/dsl/aggregation/types.cjs +2 -0
  197. package/dist/dsl/aggregation/types.cjs.map +1 -0
  198. package/dist/dsl/aggregation/types.d.cts +608 -0
  199. package/dist/dsl/aggregation/types.d.ts +608 -0
  200. package/dist/dsl/aggregation/types.es.js +37 -0
  201. package/dist/dsl/aggregation/types.es.js.map +1 -0
  202. package/dist/dsl/cursorQuery.cjs +2 -0
  203. package/dist/dsl/cursorQuery.cjs.map +1 -0
  204. package/dist/dsl/cursorQuery.d.cts +69 -0
  205. package/dist/dsl/cursorQuery.d.ts +69 -0
  206. package/dist/dsl/cursorQuery.es.js +19 -0
  207. package/dist/dsl/cursorQuery.es.js.map +1 -0
  208. package/dist/dsl/deletionState.cjs +2 -0
  209. package/dist/dsl/deletionState.cjs.map +1 -0
  210. package/dist/dsl/deletionState.d.cts +19 -0
  211. package/dist/dsl/deletionState.d.ts +19 -0
  212. package/dist/dsl/deletionState.es.js +8 -0
  213. package/dist/dsl/deletionState.es.js.map +1 -0
  214. package/dist/dsl/descriptor.cjs +2 -0
  215. package/dist/dsl/descriptor.cjs.map +1 -0
  216. package/dist/dsl/descriptor.d.cts +629 -0
  217. package/dist/dsl/descriptor.d.ts +629 -0
  218. package/dist/dsl/descriptor.es.js +37 -0
  219. package/dist/dsl/descriptor.es.js.map +1 -0
  220. package/dist/dsl/documents.d.cts +8 -0
  221. package/dist/dsl/documents.d.ts +8 -0
  222. package/dist/dsl/field.cjs +2 -0
  223. package/dist/dsl/field.cjs.map +1 -0
  224. package/dist/dsl/field.d.cts +2 -0
  225. package/dist/dsl/field.d.ts +2 -0
  226. package/dist/dsl/field.es.js +10 -0
  227. package/dist/dsl/field.es.js.map +1 -0
  228. package/dist/dsl/filter/builders.cjs +2 -0
  229. package/dist/dsl/filter/builders.cjs.map +1 -0
  230. package/dist/dsl/filter/builders.d.cts +962 -0
  231. package/dist/dsl/filter/builders.d.ts +962 -0
  232. package/dist/dsl/filter/builders.es.js +289 -0
  233. package/dist/dsl/filter/builders.es.js.map +1 -0
  234. package/dist/dsl/filter/datePattern.cjs +2 -0
  235. package/dist/dsl/filter/datePattern.cjs.map +1 -0
  236. package/dist/dsl/filter/datePattern.d.cts +8 -0
  237. package/dist/dsl/filter/datePattern.d.ts +8 -0
  238. package/dist/dsl/filter/datePattern.es.js +100 -0
  239. package/dist/dsl/filter/datePattern.es.js.map +1 -0
  240. package/dist/dsl/filter/index.d.cts +3 -0
  241. package/dist/dsl/filter/index.d.ts +3 -0
  242. package/dist/dsl/filter/operator.cjs +2 -0
  243. package/dist/dsl/filter/operator.cjs.map +1 -0
  244. package/dist/dsl/filter/operator.d.cts +113 -0
  245. package/dist/dsl/filter/operator.d.ts +113 -0
  246. package/dist/dsl/filter/operator.es.js +14 -0
  247. package/dist/dsl/filter/operator.es.js.map +1 -0
  248. package/dist/dsl/filter/scope.cjs +2 -0
  249. package/dist/dsl/filter/scope.cjs.map +1 -0
  250. package/dist/dsl/filter/scope.d.cts +15 -0
  251. package/dist/dsl/filter/scope.d.ts +15 -0
  252. package/dist/dsl/filter/scope.es.js +32 -0
  253. package/dist/dsl/filter/scope.es.js.map +1 -0
  254. package/dist/dsl/filter/types.d.cts +274 -0
  255. package/dist/dsl/filter/types.d.ts +274 -0
  256. package/dist/dsl/filter/validate.cjs +2 -0
  257. package/dist/dsl/filter/validate.cjs.map +1 -0
  258. package/dist/dsl/filter/validate.d.cts +18 -0
  259. package/dist/dsl/filter/validate.d.ts +18 -0
  260. package/dist/dsl/filter/validate.es.js +56 -0
  261. package/dist/dsl/filter/validate.es.js.map +1 -0
  262. package/dist/dsl/pagination.cjs +2 -0
  263. package/dist/dsl/pagination.cjs.map +1 -0
  264. package/dist/dsl/pagination.d.cts +28 -0
  265. package/dist/dsl/pagination.d.ts +28 -0
  266. package/dist/dsl/pagination.es.js +15 -0
  267. package/dist/dsl/pagination.es.js.map +1 -0
  268. package/dist/dsl/projection.cjs +2 -0
  269. package/dist/dsl/projection.cjs.map +1 -0
  270. package/dist/dsl/projection.d.cts +27 -0
  271. package/dist/dsl/projection.d.ts +27 -0
  272. package/dist/dsl/projection.es.js +12 -0
  273. package/dist/dsl/projection.es.js.map +1 -0
  274. package/dist/dsl/queryable.cjs +2 -0
  275. package/dist/dsl/queryable.cjs.map +1 -0
  276. package/dist/dsl/queryable.d.cts +101 -0
  277. package/dist/dsl/queryable.d.ts +101 -0
  278. package/dist/dsl/queryable.es.js +40 -0
  279. package/dist/dsl/queryable.es.js.map +1 -0
  280. package/dist/dsl/sort.cjs +2 -0
  281. package/dist/dsl/sort.cjs.map +1 -0
  282. package/dist/dsl/sort.d.cts +33 -0
  283. package/dist/dsl/sort.d.ts +33 -0
  284. package/dist/dsl/sort.es.js +21 -0
  285. package/dist/dsl/sort.es.js.map +1 -0
  286. package/dist/dsl.cjs +1 -0
  287. package/dist/dsl.d.cts +23 -0
  288. package/dist/dsl.d.ts +23 -0
  289. package/dist/dsl.es.js +14 -0
  290. package/dist/error/errorInfo.cjs +2 -0
  291. package/dist/error/errorInfo.cjs.map +1 -0
  292. package/dist/error/errorInfo.d.cts +139 -0
  293. package/dist/error/errorInfo.d.ts +139 -0
  294. package/dist/error/errorInfo.es.js +32 -0
  295. package/dist/error/errorInfo.es.js.map +1 -0
  296. package/dist/error/headers.cjs +2 -0
  297. package/dist/error/headers.cjs.map +1 -0
  298. package/dist/error/headers.d.cts +38 -0
  299. package/dist/error/headers.d.ts +38 -0
  300. package/dist/error/headers.es.js +10 -0
  301. package/dist/error/headers.es.js.map +1 -0
  302. package/dist/error/index.d.cts +21 -0
  303. package/dist/error/index.d.ts +21 -0
  304. package/dist/error/queryErrorCodes.cjs +2 -0
  305. package/dist/error/queryErrorCodes.cjs.map +1 -0
  306. package/dist/error/queryErrorCodes.d.cts +199 -0
  307. package/dist/error/queryErrorCodes.d.ts +199 -0
  308. package/dist/error/queryErrorCodes.es.js +53 -0
  309. package/dist/error/queryErrorCodes.es.js.map +1 -0
  310. package/dist/error/wowError.cjs +2 -0
  311. package/dist/error/wowError.cjs.map +1 -0
  312. package/dist/error/wowError.d.cts +99 -0
  313. package/dist/error/wowError.d.ts +99 -0
  314. package/dist/error/wowError.es.js +53 -0
  315. package/dist/error/wowError.es.js.map +1 -0
  316. package/dist/index.cjs +1 -0
  317. package/dist/index.d.cts +17 -0
  318. package/dist/index.d.ts +17 -0
  319. package/dist/index.es.js +34 -0
  320. package/dist/legacy/condition.cjs +2 -0
  321. package/dist/legacy/condition.cjs.map +1 -0
  322. package/dist/legacy/condition.d.cts +517 -0
  323. package/dist/legacy/condition.d.ts +517 -0
  324. package/dist/legacy/condition.es.js +338 -0
  325. package/dist/legacy/condition.es.js.map +1 -0
  326. package/dist/legacy/index.d.cts +16 -0
  327. package/dist/legacy/index.d.ts +16 -0
  328. package/dist/legacy/locale/en_US.cjs +2 -0
  329. package/dist/legacy/locale/en_US.cjs.map +1 -0
  330. package/dist/legacy/locale/en_US.d.cts +7 -0
  331. package/dist/legacy/locale/en_US.d.ts +7 -0
  332. package/dist/legacy/locale/en_US.es.js +50 -0
  333. package/dist/legacy/locale/en_US.es.js.map +1 -0
  334. package/dist/legacy/locale/operatorLocale.d.cts +10 -0
  335. package/dist/legacy/locale/operatorLocale.d.ts +10 -0
  336. package/dist/legacy/locale/zh_CN.cjs +2 -0
  337. package/dist/legacy/locale/zh_CN.cjs.map +1 -0
  338. package/dist/legacy/locale/zh_CN.d.cts +7 -0
  339. package/dist/legacy/locale/zh_CN.d.ts +7 -0
  340. package/dist/legacy/locale/zh_CN.es.js +50 -0
  341. package/dist/legacy/locale/zh_CN.es.js.map +1 -0
  342. package/dist/legacy/operator.cjs +2 -0
  343. package/dist/legacy/operator.cjs.map +1 -0
  344. package/dist/legacy/operator.d.cts +218 -0
  345. package/dist/legacy/operator.d.ts +218 -0
  346. package/dist/legacy/operator.es.js +25 -0
  347. package/dist/legacy/operator.es.js.map +1 -0
  348. package/dist/legacy/queryable.cjs +2 -0
  349. package/dist/legacy/queryable.cjs.map +1 -0
  350. package/dist/legacy/queryable.d.cts +61 -0
  351. package/dist/legacy/queryable.d.ts +61 -0
  352. package/dist/legacy/queryable.es.js +34 -0
  353. package/dist/legacy/queryable.es.js.map +1 -0
  354. package/dist/legacy.cjs +1 -0
  355. package/dist/legacy.es.js +6 -0
  356. package/dist/model/abac.cjs +2 -0
  357. package/dist/model/abac.cjs.map +1 -0
  358. package/dist/model/abac.d.cts +33 -0
  359. package/dist/model/abac.d.ts +33 -0
  360. package/dist/model/abac.es.js +6 -0
  361. package/dist/model/abac.es.js.map +1 -0
  362. package/dist/model/bi.cjs +2 -0
  363. package/dist/model/bi.cjs.map +1 -0
  364. package/dist/model/bi.d.cts +12 -0
  365. package/dist/model/bi.d.ts +12 -0
  366. package/dist/model/bi.es.js +8 -0
  367. package/dist/model/bi.es.js.map +1 -0
  368. package/dist/model/command.cjs +2 -0
  369. package/dist/model/command.cjs.map +1 -0
  370. package/dist/model/command.d.cts +137 -0
  371. package/dist/model/command.d.ts +137 -0
  372. package/dist/model/command.es.js +8 -0
  373. package/dist/model/command.es.js.map +1 -0
  374. package/dist/model/common.d.cts +19 -0
  375. package/dist/model/common.d.ts +19 -0
  376. package/dist/model/function.cjs +2 -0
  377. package/dist/model/function.cjs.map +1 -0
  378. package/dist/model/function.d.cts +41 -0
  379. package/dist/model/function.d.ts +41 -0
  380. package/dist/model/function.es.js +8 -0
  381. package/dist/model/function.es.js.map +1 -0
  382. package/dist/model/index.d.cts +22 -0
  383. package/dist/model/index.d.ts +22 -0
  384. package/dist/model/messaging.d.cts +5 -0
  385. package/dist/model/messaging.d.ts +5 -0
  386. package/dist/model/modeling.d.cts +145 -0
  387. package/dist/model/modeling.d.ts +145 -0
  388. package/dist/model/naming.d.cts +27 -0
  389. package/dist/model/naming.d.ts +27 -0
  390. package/dist/transport/endpoints.cjs +2 -0
  391. package/dist/transport/endpoints.cjs.map +1 -0
  392. package/dist/transport/endpoints.d.cts +79 -0
  393. package/dist/transport/endpoints.d.ts +79 -0
  394. package/dist/transport/endpoints.es.js +14 -0
  395. package/dist/transport/endpoints.es.js.map +1 -0
  396. package/dist/transport/eventStreams.cjs +2 -0
  397. package/dist/transport/eventStreams.cjs.map +1 -0
  398. package/dist/transport/eventStreams.d.cts +23 -0
  399. package/dist/transport/eventStreams.d.ts +23 -0
  400. package/dist/transport/eventStreams.es.js +22 -0
  401. package/dist/transport/eventStreams.es.js.map +1 -0
  402. package/dist/transport/index.d.cts +1 -0
  403. package/dist/transport/index.d.ts +1 -0
  404. package/package.json +110 -0
@@ -0,0 +1,34 @@
1
+ import { FilterOperator as e, SearchMode as t, StringComparison as n, TimeUnit as r } from "./dsl/filter/operator.es.js";
2
+ import { AGGREGATION_LIMITS as i, AggregationDatePart as a, AggregationDateUnit as o, AggregationExpressionOperator as s, AggregationExpressionType as c, AggregationFunction as l, AggregationGroupType as u, AggregationMetricType as d, ComparisonOperator as f, DateDiffUnit as p, DerivedExpressionType as m, HavingExpressionType as h } from "./dsl/aggregation/types.es.js";
3
+ import { DeletionState as g } from "./dsl/deletionState.es.js";
4
+ import { filter as _ } from "./dsl/filter/builders.es.js";
5
+ import { SortDirection as v, asc as y, desc as b } from "./dsl/sort.es.js";
6
+ import { aggregation as x } from "./dsl/aggregation/builders.es.js";
7
+ import { projection as S } from "./dsl/projection.es.js";
8
+ import { DEFAULT_PAGINATION as C, pagination as w } from "./dsl/pagination.es.js";
9
+ import { DEFAULT_CURSOR_SIZE as T, MAX_CURSOR_SIZE as E, MAX_CURSOR_SORT_FIELDS as D, cursorQuery as O } from "./dsl/cursorQuery.es.js";
10
+ import { listQuery as k, pagedList as A, pagedQuery as j, singleQuery as M } from "./dsl/queryable.es.js";
11
+ import { PagingMode as N, QueryConstraintTypes as P, QueryFieldRoles as F, QueryModels as I, QueryValueKind as L, QueryValueTypes as R, SensitivityLevel as z } from "./dsl/descriptor.es.js";
12
+ import { ErrorCodes as B, RecoverableType as V } from "./error/errorInfo.es.js";
13
+ import { WowHeaders as H } from "./error/headers.es.js";
14
+ import { WowError as U, isErrorInfo as W, toWowError as G } from "./error/wowError.es.js";
15
+ import { CommandStage as K } from "./model/command.es.js";
16
+ import { COMMAND_STREAM_ENDPOINT as q, QUERY_STREAM_ENDPOINT as J } from "./transport/endpoints.es.js";
17
+ import { CommandClient as Y } from "./client/command/commandClient.es.js";
18
+ import { CommandHeaders as X } from "./client/command/commandHeaders.es.js";
19
+ import { EMPTY_ABAC_TAGS as Z, WILDCARD_ABAC_TAG_VALUES as Q } from "./model/abac.es.js";
20
+ import { MessageHeaderSqlType as $ } from "./model/bi.es.js";
21
+ import { FunctionKind as ee } from "./model/function.es.js";
22
+ import { commandHeaders as te, waitStrategy as ne } from "./client/command/commandRequest.es.js";
23
+ import { WowMetadataClient as re } from "./client/metadata/wowMetadataClient.es.js";
24
+ import { DomainEventStreamMetadataFields as ie } from "./client/query/event/domainEventStream.es.js";
25
+ import { EventStreamQueryClient as ae } from "./client/query/event/eventStreamQueryClient.es.js";
26
+ import { SnapshotMetadataFields as oe } from "./client/query/snapshot/snapshot.es.js";
27
+ import { SnapshotQueryClient as se } from "./client/query/snapshot/snapshotQueryClient.es.js";
28
+ import { LoadStateAggregateClient as ce } from "./client/query/state/loadStateAggregateClient.es.js";
29
+ import { LoadOwnerStateAggregateClient as le } from "./client/query/state/loadOwnerStateAggregateClient.es.js";
30
+ import { QueryDescriptorClient as ue } from "./client/query/descriptor/queryDescriptorClient.es.js";
31
+ import { QueryClientFactory as de } from "./client/query/factory.es.js";
32
+ import { ResourceAttributionPathSpec as fe } from "./client/routing.es.js";
33
+ import { QueryErrorCodes as pe } from "./error/queryErrorCodes.es.js";
34
+ export { i as AGGREGATION_LIMITS, a as AggregationDatePart, o as AggregationDateUnit, s as AggregationExpressionOperator, c as AggregationExpressionType, l as AggregationFunction, u as AggregationGroupType, d as AggregationMetricType, q as COMMAND_STREAM_ENDPOINT, Y as CommandClient, X as CommandHeaders, K as CommandStage, f as ComparisonOperator, T as DEFAULT_CURSOR_SIZE, C as DEFAULT_PAGINATION, p as DateDiffUnit, g as DeletionState, m as DerivedExpressionType, ie as DomainEventStreamMetadataFields, Z as EMPTY_ABAC_TAGS, B as ErrorCodes, ae as EventStreamQueryClient, e as FilterOperator, ee as FunctionKind, h as HavingExpressionType, le as LoadOwnerStateAggregateClient, ce as LoadStateAggregateClient, E as MAX_CURSOR_SIZE, D as MAX_CURSOR_SORT_FIELDS, $ as MessageHeaderSqlType, N as PagingMode, J as QUERY_STREAM_ENDPOINT, de as QueryClientFactory, P as QueryConstraintTypes, ue as QueryDescriptorClient, pe as QueryErrorCodes, F as QueryFieldRoles, I as QueryModels, L as QueryValueKind, R as QueryValueTypes, V as RecoverableType, fe as ResourceAttributionPathSpec, t as SearchMode, z as SensitivityLevel, oe as SnapshotMetadataFields, se as SnapshotQueryClient, v as SortDirection, n as StringComparison, r as TimeUnit, Q as WILDCARD_ABAC_TAG_VALUES, U as WowError, H as WowHeaders, re as WowMetadataClient, x as aggregation, y as asc, te as commandHeaders, O as cursorQuery, b as desc, _ as filter, W as isErrorInfo, k as listQuery, A as pagedList, j as pagedQuery, w as pagination, S as projection, M as singleQuery, G as toWowError, ne as waitStrategy };
@@ -0,0 +1,2 @@
1
+ const e=require("../dsl/deletionState.cjs"),t=require("./operator.cjs");function n(e){return!!e}var r=class{static{this.IGNORE_CASE_OPTION_KEY=`ignoreCase`}static{this.ZONE_ID_OPTION_KEY=`zoneId`}static{this.DATE_PATTERN_OPTION_KEY=`datePattern`}};function i(e){if(e!==void 0)return{ignoreCase:e}}function a(e,t){if(e===void 0&&t===void 0)return;let n={};return e!==void 0&&(n.datePattern=e),t!==void 0&&(n.zoneId=t),n}function o(...e){if(e.length===0)return v();if(e.length===1)return n(e[0])?e[0]:v();let r=[];return e.forEach(e=>{e?.operator!==t.Operator.ALL&&n(e)&&(e.operator===t.Operator.AND&&e.children?r.push(...e.children):r.push(e))}),r.length===0?v():{operator:t.Operator.AND,children:r}}function s(...e){let r=e?.filter(e=>n(e));return r.length===0?v():{operator:t.Operator.OR,children:r}}function c(...e){return e.length===0?v():{operator:t.Operator.NOR,children:e}}function l(e){return{operator:t.Operator.ID,value:e}}function u(e){return{operator:t.Operator.IDS,value:e}}function d(e){return{operator:t.Operator.AGGREGATE_ID,value:e}}function f(e){return{operator:t.Operator.AGGREGATE_IDS,value:e}}function p(e){return{operator:t.Operator.TENANT_ID,value:e}}function m(e){return{operator:t.Operator.OWNER_ID,value:e}}function h(e){return{operator:t.Operator.SPACE_ID,value:e}}function g(e){return{operator:t.Operator.DELETED,value:e}}function _(){return g(e.DeletionState.ACTIVE)}function v(){return{operator:t.Operator.ALL}}function y(e,n){return{field:e,operator:t.Operator.EQ,value:n}}function b(e,n){return{field:e,operator:t.Operator.NE,value:n}}function x(e,n){return{field:e,operator:t.Operator.GT,value:n}}function S(e,n){return{field:e,operator:t.Operator.LT,value:n}}function C(e,n){return{field:e,operator:t.Operator.GTE,value:n}}function w(e,n){return{field:e,operator:t.Operator.LTE,value:n}}function T(e,n,r){let a=i(r);return{field:e,operator:t.Operator.CONTAINS,value:n,options:a}}function E(e,...n){return{field:e,operator:t.Operator.IN,value:n}}function D(e,...n){return{field:e,operator:t.Operator.NOT_IN,value:n}}function O(e,n,r){return{field:e,operator:t.Operator.BETWEEN,value:[n,r]}}function k(e,...n){return{field:e,operator:t.Operator.ALL_IN,value:n}}function A(e,n,r){let a=i(r);return{field:e,operator:t.Operator.STARTS_WITH,value:n,options:a}}function j(e,n){return{field:e,operator:t.Operator.MATCH,value:n}}function M(e,n,r){let a=i(r);return{field:e,operator:t.Operator.ENDS_WITH,value:n,options:a}}function N(e,n){return{field:e,operator:t.Operator.ELEM_MATCH,children:[n]}}function P(e){return{field:e,operator:t.Operator.NULL}}function F(e){return{field:e,operator:t.Operator.NOT_NULL}}function I(e){return{field:e,operator:t.Operator.TRUE}}function L(e){return{field:e,operator:t.Operator.FALSE}}function R(e,n=!0){return{field:e,operator:t.Operator.EXISTS,value:n}}function z(e,n,r){let i=a(n,r);return{field:e,operator:t.Operator.TODAY,options:i}}function B(e,n,r,i){let o=a(r,i);return{field:e,operator:t.Operator.BEFORE_TODAY,value:n,options:o}}function V(e,n,r){let i=a(n,r);return{field:e,operator:t.Operator.TOMORROW,options:i}}function H(e,n,r){let i=a(n,r);return{field:e,operator:t.Operator.THIS_WEEK,options:i}}function U(e,n,r){let i=a(n,r);return{field:e,operator:t.Operator.NEXT_WEEK,options:i}}function W(e,n,r){let i=a(n,r);return{field:e,operator:t.Operator.LAST_WEEK,options:i}}function G(e,n,r){let i=a(n,r);return{field:e,operator:t.Operator.THIS_MONTH,options:i}}function K(e,n,r){let i=a(n,r);return{field:e,operator:t.Operator.LAST_MONTH,options:i}}function q(e,n,r,i){let o=a(r,i);return{field:e,operator:t.Operator.RECENT_DAYS,value:n,options:o}}function J(e,n,r,i){let o=a(r,i);return{field:e,operator:t.Operator.EARLIER_DAYS,value:n,options:o}}function Y(e){return{operator:t.Operator.RAW,value:e}}exports.ConditionOptionKey=r,exports.active=_,exports.aggregateId=d,exports.aggregateIds=f,exports.all=v,exports.allIn=k,exports.and=o,exports.beforeToday=B,exports.between=O,exports.contains=T,exports.dateOptions=a,exports.deleted=g,exports.earlierDays=J,exports.elemMatch=N,exports.endsWith=M,exports.eq=y,exports.exists=R,exports.gt=x,exports.gte=C,exports.id=l,exports.ids=u,exports.ignoreCaseOptions=i,exports.isFalse=L,exports.isIn=E,exports.isNull=P,exports.isTrue=I,exports.isValidateCondition=n,exports.lastMonth=K,exports.lastWeek=W,exports.lt=S,exports.lte=w,exports.match=j,exports.ne=b,exports.nextWeek=U,exports.nor=c,exports.notIn=D,exports.notNull=F,exports.or=s,exports.ownerId=m,exports.raw=Y,exports.recentDays=q,exports.spaceId=h,exports.startsWith=A,exports.tenantId=p,exports.thisMonth=G,exports.thisWeek=H,exports.today=z,exports.tomorrow=V;
2
+ //# sourceMappingURL=condition.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"condition.cjs","names":["Operator","DeletionState","require_deletionState","require_operator","isValidateCondition","condition","ConditionOptionKey","ignoreCaseOptions","ignoreCase","dateOptions","datePattern","zoneId","options","and","conditions","all","andChildren","or","validateConditions","nor","id","ids","aggregateId","aggregateIds","tenantId","ownerId","spaceId","deleted","active","eq","ne","gt","lt","gte","lte","contains","isIn","value","notIn","between","start","end","allIn","startsWith","match","endsWith","elemMatch","isNull","notNull","isTrue","isFalse","exists","today","beforeToday","time","tomorrow","thisWeek","nextWeek","lastWeek","thisMonth","lastMonth","recentDays","days","earlierDays","raw"],"sources":["../../src/legacy/condition.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DeletionState } from '../dsl/deletionState.js';\nimport { Operator } from './operator.js';\n\n/**\n * Helper function to detect condition is validate or not\n *\n * @param condition - Condition\n * @returns If condition is validate return true, otherwise return false\n * @deprecated Use FilterExpression and filter.* instead. Removed in v10.\n */\nexport function isValidateCondition(\n condition: Condition | undefined | null,\n): condition is Condition {\n return !!condition;\n}\n\n/**\n * Condition option keys enumeration\n *\n * Defines standard option keys used in query conditions for special handling.\n *\n * @deprecated Use FilterExpression and filter.* instead. Removed in v10.\n */\nexport class ConditionOptionKey {\n /**\n * Ignore case option key for string comparisons\n */\n static readonly IGNORE_CASE_OPTION_KEY = 'ignoreCase';\n\n /**\n * Time zone ID option key for date operations\n */\n static readonly ZONE_ID_OPTION_KEY = 'zoneId';\n\n /**\n * Date pattern option key for date formatting\n */\n static readonly DATE_PATTERN_OPTION_KEY = 'datePattern';\n}\n\n/**\n * Condition options interface\n *\n * Represents additional options that can be applied to query conditions,\n * such as case sensitivity, date patterns, and time zones.\n *\n * @deprecated Use FilterExpression and filter.* instead. Removed in v10.\n */\nexport interface ConditionOptions {\n /**\n * Whether to ignore case in string comparisons\n */\n ignoreCase?: boolean;\n\n /**\n * Date pattern for date formatting\n */\n datePattern?: string;\n\n /**\n * Time zone ID for date operations\n */\n zoneId?: string;\n\n /**\n * Additional custom options\n */\n [key: string]: any;\n}\n\n/**\n * Helper function to create condition options with ignoreCase flag.\n *\n * @param ignoreCase - Whether to ignore case\n * @returns Condition options or undefined if ignoreCase is undefined\n * @deprecated Use StringComparison with filter.* instead. Removed in v10.\n */\nexport function ignoreCaseOptions(\n ignoreCase?: boolean,\n): ConditionOptions | undefined {\n if (typeof ignoreCase === 'undefined') {\n return undefined;\n }\n return { ignoreCase };\n}\n\n/**\n * Helper function to create condition options with date pattern and zone ID.\n *\n * @param datePattern - Date pattern\n * @param zoneId - Time zone ID\n * @returns Condition options or undefined if both parameters are undefined\n * @deprecated Pass RelativeTimeFilterOptions to filter.* instead.\n * Removed in v10.\n */\nexport function dateOptions(\n datePattern?: string,\n zoneId?: string,\n): ConditionOptions | undefined {\n if (typeof datePattern === 'undefined' && typeof zoneId === 'undefined') {\n return undefined;\n }\n const options: ConditionOptions = {};\n if (typeof datePattern !== 'undefined') {\n options.datePattern = datePattern;\n }\n if (typeof zoneId !== 'undefined') {\n options.zoneId = zoneId;\n }\n return options;\n}\n\n/**\n * Interface for query conditions.\n *\n * When `operator` is `AND` or `OR` or `NOR`, `children` cannot be empty.\n *\n * @deprecated Use FilterExpression instead. Removed in v10.\n */\nexport interface Condition<FIELDS extends string = string> {\n /**\n * Field name for the condition\n */\n field?: FIELDS;\n\n /**\n * Operator for the condition\n */\n operator?: Operator;\n\n /**\n * Value for the condition\n */\n value?: any;\n\n /**\n * Child conditions for logical operators (AND, OR, NOR)\n */\n children?: Condition<FIELDS>[];\n\n /**\n * Additional options for the condition\n */\n options?: ConditionOptions;\n}\n\n/**\n * Interface for objects that have a condition.\n *\n * @deprecated Use FilterCapable instead. Removed in v10.\n */\nexport interface ConditionCapable<FIELDS extends string = string> {\n /** @deprecated Use filter instead. Removed in v10. */\n condition: Condition<FIELDS>;\n}\n\n/**\n * Creates an AND condition with the specified conditions.\n *\n * This function combines multiple conditions using the logical AND operator.\n * It provides optimizations such as returning the condition directly when\n * only one is provided, and flattening nested AND conditions.\n *\n * @param conditions - Conditions to combine with AND. If empty, returns an ALL condition.\n * If exactly one, returns that condition directly.\n * If multiple, combines them into an AND condition with flattening optimization.\n * @returns A condition with AND operator or an optimized condition based on the input\n * @deprecated Use filter.and instead. Removed in v10.\n */\nexport function and<FIELDS extends string = string>(\n ...conditions: Array<Condition<FIELDS> | undefined | null>\n): Condition<FIELDS> {\n if (conditions.length === 0) {\n return all();\n }\n if (conditions.length === 1) {\n return isValidateCondition(conditions[0]) ? conditions[0] : all();\n }\n const andChildren: Condition<FIELDS>[] = [];\n conditions.forEach(condition => {\n if (\n condition?.operator === Operator.ALL ||\n !isValidateCondition(condition)\n ) {\n return;\n }\n if (condition.operator === Operator.AND && condition.children) {\n andChildren.push(...condition.children);\n } else {\n andChildren.push(condition);\n }\n });\n if (andChildren.length === 0) {\n return all();\n }\n return { operator: Operator.AND, children: andChildren };\n}\n\n/**\n * Creates an OR condition with the specified conditions.\n *\n * @param conditions - Conditions to combine with OR\n * @returns A condition with OR operator\n * @deprecated Use filter.or instead. Removed in v10.\n */\nexport function or<FIELDS extends string = string>(\n ...conditions: Array<Condition<FIELDS> | undefined | null>\n): Condition<FIELDS> {\n const validateConditions = conditions?.filter(condition =>\n isValidateCondition(condition),\n );\n if (validateConditions.length === 0) {\n return all();\n }\n return { operator: Operator.OR, children: validateConditions };\n}\n\n/**\n * Creates a NOR condition with the specified conditions.\n *\n * @param conditions - Conditions to combine with NOR\n * @returns A condition with NOR operator\n * @deprecated Use filter.nor instead. Removed in v10.\n */\nexport function nor<FIELDS extends string = string>(\n ...conditions: Condition<FIELDS>[]\n): Condition<FIELDS> {\n if (conditions.length === 0) {\n return all();\n }\n return { operator: Operator.NOR, children: conditions };\n}\n\n/**\n * Creates an ID condition with the specified value.\n *\n * @param value - The ID value to match\n * @returns A condition with ID operator\n * @deprecated Use filter.id instead. Removed in v10.\n */\nexport function id<FIELDS extends string = string>(\n value: string,\n): Condition<FIELDS> {\n return { operator: Operator.ID, value: value };\n}\n\n/**\n * Creates an IDS condition with the specified values.\n *\n * @param value - The ID values to match\n * @returns A condition with IDS operator\n * @deprecated Use filter.ids instead. Removed in v10.\n */\nexport function ids<FIELDS extends string = string>(\n value: string[],\n): Condition<FIELDS> {\n return { operator: Operator.IDS, value: value };\n}\n\n/**\n * Creates an AGGREGATE_ID condition with the specified value.\n *\n * @param value - The aggregate ID value to match\n * @returns A condition with AGGREGATE_ID operator\n * @deprecated Use filter.aggregateId instead. Removed in v10.\n */\nexport function aggregateId<FIELDS extends string = string>(\n value: string,\n): Condition<FIELDS> {\n return { operator: Operator.AGGREGATE_ID, value: value };\n}\n\n/**\n * Creates an AGGREGATE_IDS condition with the specified values.\n *\n * @param value - The aggregate ID values to match\n * @returns A condition with AGGREGATE_IDS operator\n * @deprecated Use filter.aggregateIds instead. Removed in v10.\n */\nexport function aggregateIds<FIELDS extends string = string>(\n value: string[],\n): Condition<FIELDS> {\n return { operator: Operator.AGGREGATE_IDS, value: value };\n}\n\n/**\n * Creates a TENANT_ID condition with the specified value.\n *\n * @param value - The tenant ID value to match\n * @returns A condition with TENANT_ID operator\n * @deprecated Use filter.tenantId instead. Removed in v10.\n */\nexport function tenantId<FIELDS extends string = string>(\n value: string,\n): Condition<FIELDS> {\n return { operator: Operator.TENANT_ID, value: value };\n}\n\n/**\n * Creates an OWNER_ID condition with the specified value.\n *\n * @param value - The owner ID value to match\n * @returns A condition with OWNER_ID operator\n * @deprecated Use filter.ownerId instead. Removed in v10.\n */\nexport function ownerId<FIELDS extends string = string>(\n value: string,\n): Condition<FIELDS> {\n return { operator: Operator.OWNER_ID, value: value };\n}\n\n/**\n * Creates a SPACE_ID condition with the specified value.\n *\n * @param value - The space ID value to match\n * @returns A condition with SPACE_ID operator\n * @deprecated Use filter.spaceId instead. Removed in v10.\n */\nexport function spaceId<FIELDS extends string = string>(\n value: string,\n): Condition<FIELDS> {\n return { operator: Operator.SPACE_ID, value: value };\n}\n\n/**\n * Creates a DELETED condition with the specified value.\n *\n * @param value - The deletion state value to match\n * @returns A condition with DELETED operator\n * @deprecated Use filter.deletion instead. Removed in v10.\n */\nexport function deleted<FIELDS extends string = string>(\n value: DeletionState,\n): Condition<FIELDS> {\n return { operator: Operator.DELETED, value: value };\n}\n\n/**\n * Creates an ACTIVE deletion state condition.\n *\n * @returns A condition with DELETED operator set to ACTIVE\n * @deprecated Use filter.deletion(DeletionState.ACTIVE) instead.\n * Removed in v10.\n */\nexport function active<FIELDS extends string = string>(): Condition<FIELDS> {\n return deleted(DeletionState.ACTIVE);\n}\n\n/**\n * Creates an ALL condition.\n *\n * @returns A condition with ALL operator\n * @deprecated Use filter.matchAll instead. Removed in v10.\n */\nexport function all<FIELDS extends string = string>(): Condition<FIELDS> {\n return {\n operator: Operator.ALL,\n };\n}\n\n/**\n * Creates an EQ (equals) condition with the specified field and value.\n *\n * @param field - The field name to compare\n * @param value - The value to compare against\n * @returns A condition with EQ operator\n * @deprecated Use filter.eq instead. Removed in v10.\n */\nexport function eq<FIELDS extends string = string>(\n field: FIELDS,\n value: any,\n): Condition<FIELDS> {\n return { field, operator: Operator.EQ, value };\n}\n\n/**\n * Creates a NE (not equals) condition with the specified field and value.\n *\n * @param field - The field name to compare\n * @param value - The value to compare against\n * @returns A condition with NE operator\n * @deprecated Use filter.ne instead. Removed in v10.\n */\nexport function ne<FIELDS extends string = string>(\n field: FIELDS,\n value: any,\n): Condition<FIELDS> {\n return { field, operator: Operator.NE, value };\n}\n\n/**\n * Creates a GT (greater than) condition with the specified field and value.\n *\n * @param field - The field name to compare\n * @param value - The value to compare against\n * @returns A condition with GT operator\n * @deprecated Use filter.gt instead. Removed in v10.\n */\nexport function gt<FIELDS extends string = string>(\n field: FIELDS,\n value: any,\n): Condition<FIELDS> {\n return { field, operator: Operator.GT, value };\n}\n\n/**\n * Creates a LT (less than) condition with the specified field and value.\n *\n * @param field - The field name to compare\n * @param value - The value to compare against\n * @returns A condition with LT operator\n * @deprecated Use filter.lt instead. Removed in v10.\n */\nexport function lt<FIELDS extends string = string>(\n field: FIELDS,\n value: any,\n): Condition<FIELDS> {\n return { field, operator: Operator.LT, value };\n}\n\n/**\n * Creates a GTE (greater than or equal) condition with the specified field and value.\n *\n * @param field - The field name to compare\n * @param value - The value to compare against\n * @returns A condition with GTE operator\n * @deprecated Use filter.gte instead. Removed in v10.\n */\nexport function gte<FIELDS extends string = string>(\n field: FIELDS,\n value: any,\n): Condition<FIELDS> {\n return { field, operator: Operator.GTE, value };\n}\n\n/**\n * Creates a LTE (less than or equal) condition with the specified field and value.\n *\n * @param field - The field name to compare\n * @param value - The value to compare against\n * @returns A condition with LTE operator\n * @deprecated Use filter.lte instead. Removed in v10.\n */\nexport function lte<FIELDS extends string = string>(\n field: FIELDS,\n value: any,\n): Condition<FIELDS> {\n return { field, operator: Operator.LTE, value };\n}\n\n/**\n * Creates a CONTAINS condition with the specified field and value.\n *\n * @param field - The field name to search in\n * @param value - The value to search for\n * @param ignoreCase - Whether to ignore case in the search\n * @returns A condition with CONTAINS operator\n * @deprecated Use filter.contains instead. Removed in v10.\n */\nexport function contains<FIELDS extends string = string>(\n field: FIELDS,\n value: any,\n ignoreCase?: boolean,\n): Condition<FIELDS> {\n const options: Record<string, any> | undefined =\n ignoreCaseOptions(ignoreCase);\n return { field, operator: Operator.CONTAINS, value, options };\n}\n\n/**\n * Creates an IN condition with the specified field and values.\n *\n * @param field - The field name to compare\n * @param value - The values to compare against\n * @returns A condition with IN operator\n * @deprecated Use filter.isIn instead. Removed in v10.\n */\nexport function isIn<FIELDS extends string = string>(\n field: FIELDS,\n ...value: any[]\n): Condition<FIELDS> {\n return { field, operator: Operator.IN, value };\n}\n\n/**\n * Creates a NOT_IN condition with the specified field and values.\n *\n * @param field - The field name to compare\n * @param value - The values to compare against\n * @returns A condition with NOT_IN operator\n * @deprecated Use filter.notIn instead. Removed in v10.\n */\nexport function notIn<FIELDS extends string = string>(\n field: FIELDS,\n ...value: any[]\n): Condition<FIELDS> {\n return { field, operator: Operator.NOT_IN, value };\n}\n\n/**\n * Creates a BETWEEN condition with the specified field and range.\n *\n * @param field - The field name to compare\n * @param start - The start value of the range\n * @param end - The end value of the range\n * @returns A condition with BETWEEN operator\n * @deprecated Use filter.between instead. Removed in v10.\n */\nexport function between<FIELDS extends string = string>(\n field: FIELDS,\n start: any,\n end: any,\n): Condition<FIELDS> {\n return { field, operator: Operator.BETWEEN, value: [start, end] };\n}\n\n/**\n * Creates an ALL_IN condition with the specified field and values.\n *\n * @param field - The field name to compare\n * @param value - The values to compare against\n * @returns A condition with ALL_IN operator\n * @deprecated Use filter.containsAll instead. Removed in v10.\n */\nexport function allIn<FIELDS extends string = string>(\n field: FIELDS,\n ...value: any[]\n): Condition<FIELDS> {\n return { field, operator: Operator.ALL_IN, value };\n}\n\n/**\n * Creates a STARTS_WITH condition with the specified field and value.\n *\n * @param field - The field name to compare\n * @param value - The value to compare against\n * @param ignoreCase - Whether to ignore case in the comparison\n * @returns A condition with STARTS_WITH operator\n * @deprecated Use filter.startsWith instead. Removed in v10.\n */\nexport function startsWith<FIELDS extends string = string>(\n field: FIELDS,\n value: any,\n ignoreCase?: boolean,\n): Condition<FIELDS> {\n const options: Record<string, any> | undefined =\n ignoreCaseOptions(ignoreCase);\n return { field, operator: Operator.STARTS_WITH, value, options };\n}\n\n/**\n * Creates a MATCH condition for full-text search.\n *\n * @param field - The field name to search\n * @param value - The search keywords\n * @returns A condition with MATCH operator\n * @deprecated Use filter.search instead. Removed in v10.\n */\nexport function match<FIELDS extends string = string>(\n field: FIELDS,\n value: string,\n): Condition<FIELDS> {\n return { field, operator: Operator.MATCH, value };\n}\n\n/**\n * Creates an ENDS_WITH condition with the specified field and value.\n *\n * @param field - The field name to compare\n * @param value - The value to compare against\n * @param ignoreCase - Whether to ignore case in the comparison\n * @returns A condition with ENDS_WITH operator\n * @deprecated Use filter.endsWith instead. Removed in v10.\n */\nexport function endsWith<FIELDS extends string = string>(\n field: FIELDS,\n value: any,\n ignoreCase?: boolean,\n): Condition<FIELDS> {\n const options: Record<string, any> | undefined =\n ignoreCaseOptions(ignoreCase);\n return { field, operator: Operator.ENDS_WITH, value, options };\n}\n\n/**\n * Creates an ELEM_MATCH condition with the specified field and child condition.\n *\n * @param field - The field name to match elements in\n * @param value - The condition to match elements against\n * @returns A condition with ELEM_MATCH operator\n * @deprecated Use filter.elementMatch instead. Removed in v10.\n */\nexport function elemMatch<FIELDS extends string = string>(\n field: FIELDS,\n value: Condition<FIELDS>,\n): Condition<FIELDS> {\n return { field, operator: Operator.ELEM_MATCH, children: [value] };\n}\n\n/**\n * Creates a NULL condition with the specified field.\n *\n * @param field - The field name to check\n * @returns A condition with NULL operator\n * @deprecated Use filter.isNull instead. Removed in v10.\n */\nexport function isNull<FIELDS extends string = string>(\n field: FIELDS,\n): Condition<FIELDS> {\n return { field, operator: Operator.NULL };\n}\n\n/**\n * Creates a NOT_NULL condition with the specified field.\n *\n * @param field - The field name to check\n * @returns A condition with NOT_NULL operator\n * @deprecated Use filter.isNotNull instead. Removed in v10.\n */\nexport function notNull<FIELDS extends string = string>(\n field: FIELDS,\n): Condition<FIELDS> {\n return { field, operator: Operator.NOT_NULL };\n}\n\n/**\n * Creates a TRUE condition with the specified field.\n *\n * @param field - The field name to check\n * @returns A condition with TRUE operator\n * @deprecated Use filter.eq(field, true) instead. Removed in v10.\n */\nexport function isTrue<FIELDS extends string = string>(\n field: FIELDS,\n): Condition<FIELDS> {\n return { field, operator: Operator.TRUE };\n}\n\n/**\n * Creates a FALSE condition with the specified field.\n *\n * @param field - The field name to check\n * @returns A condition with FALSE operator\n * @deprecated Use filter.eq(field, false) instead. Removed in v10.\n */\nexport function isFalse<FIELDS extends string = string>(\n field: FIELDS,\n): Condition<FIELDS> {\n return { field, operator: Operator.FALSE };\n}\n\n/**\n * Creates an EXISTS condition with the specified field and existence flag.\n *\n * @param field - The field name to check\n * @param exists - Whether the field should exist (default: true)\n * @returns A condition with EXISTS operator\n * @deprecated Use filter.exists or filter.notExists instead. Removed in v10.\n */\nexport function exists<FIELDS extends string = string>(\n field: FIELDS,\n exists: boolean = true,\n): Condition<FIELDS> {\n return { field, operator: Operator.EXISTS, value: exists };\n}\n\n/**\n * Creates a TODAY condition with the specified field.\n *\n * @param field - The field name to check\n * @param datePattern - The date pattern to use\n * @param zoneId - The time zone ID to use\n * @returns A condition with TODAY operator\n * @deprecated Use filter.today instead. Removed in v10.\n */\nexport function today<FIELDS extends string = string>(\n field: FIELDS,\n datePattern?: string,\n zoneId?: string,\n): Condition<FIELDS> {\n const options = dateOptions(datePattern, zoneId);\n return { field, operator: Operator.TODAY, options };\n}\n\n/**\n * Creates a BEFORE_TODAY condition with the specified field and time.\n *\n * @param field - The field name to check\n * @param time - The time to compare against\n * @param datePattern - The date pattern to use\n * @param zoneId - The time zone ID to use\n * @returns A condition with BEFORE_TODAY operator\n * @deprecated Use filter.beforeToday instead. Removed in v10.\n */\nexport function beforeToday<FIELDS extends string = string>(\n field: FIELDS,\n time: any,\n datePattern?: string,\n zoneId?: string,\n): Condition<FIELDS> {\n const options = dateOptions(datePattern, zoneId);\n return { field, operator: Operator.BEFORE_TODAY, value: time, options };\n}\n\n/**\n * Creates a TOMORROW condition with the specified field.\n *\n * @param field - The field name to check\n * @param datePattern - The date pattern to use\n * @param zoneId - The time zone ID to use\n * @returns A condition with TOMORROW operator\n * @deprecated Use filter.tomorrow instead. Removed in v10.\n */\nexport function tomorrow<FIELDS extends string = string>(\n field: FIELDS,\n datePattern?: string,\n zoneId?: string,\n): Condition<FIELDS> {\n const options = dateOptions(datePattern, zoneId);\n return { field, operator: Operator.TOMORROW, options };\n}\n\n/**\n * Creates a THIS_WEEK condition with the specified field.\n *\n * @param field - The field name to check\n * @param datePattern - The date pattern to use\n * @param zoneId - The time zone ID to use\n * @returns A condition with THIS_WEEK operator\n * @deprecated Use filter.thisWeek instead. Removed in v10.\n */\nexport function thisWeek<FIELDS extends string = string>(\n field: FIELDS,\n datePattern?: string,\n zoneId?: string,\n): Condition<FIELDS> {\n const options = dateOptions(datePattern, zoneId);\n return { field, operator: Operator.THIS_WEEK, options };\n}\n\n/**\n * Creates a NEXT_WEEK condition with the specified field.\n *\n * @param field - The field name to check\n * @param datePattern - The date pattern to use\n * @param zoneId - The time zone ID to use\n * @returns A condition with NEXT_WEEK operator\n * @deprecated Use filter.nextWeek instead. Removed in v10.\n */\nexport function nextWeek<FIELDS extends string = string>(\n field: FIELDS,\n datePattern?: string,\n zoneId?: string,\n): Condition<FIELDS> {\n const options = dateOptions(datePattern, zoneId);\n return { field, operator: Operator.NEXT_WEEK, options };\n}\n\n/**\n * Creates a LAST_WEEK condition with the specified field.\n *\n * @param field - The field name to check\n * @param datePattern - The date pattern to use\n * @param zoneId - The time zone ID to use\n * @returns A condition with LAST_WEEK operator\n * @deprecated Use filter.lastWeek instead. Removed in v10.\n */\nexport function lastWeek<FIELDS extends string = string>(\n field: FIELDS,\n datePattern?: string,\n zoneId?: string,\n): Condition<FIELDS> {\n const options = dateOptions(datePattern, zoneId);\n return { field, operator: Operator.LAST_WEEK, options };\n}\n\n/**\n * Creates a THIS_MONTH condition with the specified field.\n *\n * @param field - The field name to check\n * @param datePattern - The date pattern to use\n * @param zoneId - The time zone ID to use\n * @returns A condition with THIS_MONTH operator\n * @deprecated Use filter.thisMonth instead. Removed in v10.\n */\nexport function thisMonth<FIELDS extends string = string>(\n field: FIELDS,\n datePattern?: string,\n zoneId?: string,\n): Condition<FIELDS> {\n const options = dateOptions(datePattern, zoneId);\n return { field, operator: Operator.THIS_MONTH, options };\n}\n\n/**\n * Creates a LAST_MONTH condition with the specified field.\n *\n * @param field - The field name to check\n * @param datePattern - The date pattern to use\n * @param zoneId - The time zone ID to use\n * @returns A condition with LAST_MONTH operator\n * @deprecated Use filter.lastMonth instead. Removed in v10.\n */\nexport function lastMonth<FIELDS extends string = string>(\n field: FIELDS,\n datePattern?: string,\n zoneId?: string,\n): Condition<FIELDS> {\n const options = dateOptions(datePattern, zoneId);\n return { field, operator: Operator.LAST_MONTH, options };\n}\n\n/**\n * Creates a RECENT_DAYS condition with the specified field and number of days.\n *\n * @param field - The field name to check\n * @param days - The number of recent days to include\n * @param datePattern - The date pattern to use\n * @param zoneId - The time zone ID to use\n * @returns A condition with RECENT_DAYS operator\n * @deprecated Use filter.recentDays instead. Removed in v10.\n */\nexport function recentDays<FIELDS extends string = string>(\n field: FIELDS,\n days: number,\n datePattern?: string,\n zoneId?: string,\n): Condition<FIELDS> {\n const options = dateOptions(datePattern, zoneId);\n return { field, operator: Operator.RECENT_DAYS, value: days, options };\n}\n\n/**\n * Creates an EARLIER_DAYS condition with the specified field and number of days.\n *\n * @param field - The field name to check\n * @param days - The number of days to look back\n * @param datePattern - The date pattern to use\n * @param zoneId - The time zone ID to use\n * @returns A condition with EARLIER_DAYS operator\n * @deprecated Use filter.earlierDays instead. Removed in v10.\n */\nexport function earlierDays<FIELDS extends string = string>(\n field: FIELDS,\n days: number,\n datePattern?: string,\n zoneId?: string,\n): Condition<FIELDS> {\n const options = dateOptions(datePattern, zoneId);\n return { field, operator: Operator.EARLIER_DAYS, value: days, options };\n}\n\n/**\n * Creates a RAW condition with the specified raw value.\n *\n * @param raw - The raw condition value\n * @returns A condition with RAW operator\n * @deprecated RAW has no FilterExpression replacement, and current Wow refuses\n * it: the operator was removed in Wow #2999. It is kept for servers older than\n * that, which the Condition API exists to reach and which still accept it.\n * Against a current server this condition is answered with a 400.\n * Removed in v10.\n */\nexport function raw<FIELDS extends string = string>(\n raw: any,\n): Condition<FIELDS> {\n return { operator: Operator.RAW, value: raw };\n}\n"],"mappings":"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"}
@@ -0,0 +1,517 @@
1
+ import { DeletionState } from '../dsl/deletionState.cjs';
2
+ import { Operator } from './operator.cjs';
3
+ /**
4
+ * Helper function to detect condition is validate or not
5
+ *
6
+ * @param condition - Condition
7
+ * @returns If condition is validate return true, otherwise return false
8
+ * @deprecated Use FilterExpression and filter.* instead. Removed in v10.
9
+ */
10
+ export declare function isValidateCondition(condition: Condition | undefined | null): condition is Condition;
11
+ /**
12
+ * Condition option keys enumeration
13
+ *
14
+ * Defines standard option keys used in query conditions for special handling.
15
+ *
16
+ * @deprecated Use FilterExpression and filter.* instead. Removed in v10.
17
+ */
18
+ export declare class ConditionOptionKey {
19
+ /**
20
+ * Ignore case option key for string comparisons
21
+ */
22
+ static readonly IGNORE_CASE_OPTION_KEY = "ignoreCase";
23
+ /**
24
+ * Time zone ID option key for date operations
25
+ */
26
+ static readonly ZONE_ID_OPTION_KEY = "zoneId";
27
+ /**
28
+ * Date pattern option key for date formatting
29
+ */
30
+ static readonly DATE_PATTERN_OPTION_KEY = "datePattern";
31
+ }
32
+ /**
33
+ * Condition options interface
34
+ *
35
+ * Represents additional options that can be applied to query conditions,
36
+ * such as case sensitivity, date patterns, and time zones.
37
+ *
38
+ * @deprecated Use FilterExpression and filter.* instead. Removed in v10.
39
+ */
40
+ export interface ConditionOptions {
41
+ /**
42
+ * Whether to ignore case in string comparisons
43
+ */
44
+ ignoreCase?: boolean;
45
+ /**
46
+ * Date pattern for date formatting
47
+ */
48
+ datePattern?: string;
49
+ /**
50
+ * Time zone ID for date operations
51
+ */
52
+ zoneId?: string;
53
+ /**
54
+ * Additional custom options
55
+ */
56
+ [key: string]: any;
57
+ }
58
+ /**
59
+ * Helper function to create condition options with ignoreCase flag.
60
+ *
61
+ * @param ignoreCase - Whether to ignore case
62
+ * @returns Condition options or undefined if ignoreCase is undefined
63
+ * @deprecated Use StringComparison with filter.* instead. Removed in v10.
64
+ */
65
+ export declare function ignoreCaseOptions(ignoreCase?: boolean): ConditionOptions | undefined;
66
+ /**
67
+ * Helper function to create condition options with date pattern and zone ID.
68
+ *
69
+ * @param datePattern - Date pattern
70
+ * @param zoneId - Time zone ID
71
+ * @returns Condition options or undefined if both parameters are undefined
72
+ * @deprecated Pass RelativeTimeFilterOptions to filter.* instead.
73
+ * Removed in v10.
74
+ */
75
+ export declare function dateOptions(datePattern?: string, zoneId?: string): ConditionOptions | undefined;
76
+ /**
77
+ * Interface for query conditions.
78
+ *
79
+ * When `operator` is `AND` or `OR` or `NOR`, `children` cannot be empty.
80
+ *
81
+ * @deprecated Use FilterExpression instead. Removed in v10.
82
+ */
83
+ export interface Condition<FIELDS extends string = string> {
84
+ /**
85
+ * Field name for the condition
86
+ */
87
+ field?: FIELDS;
88
+ /**
89
+ * Operator for the condition
90
+ */
91
+ operator?: Operator;
92
+ /**
93
+ * Value for the condition
94
+ */
95
+ value?: any;
96
+ /**
97
+ * Child conditions for logical operators (AND, OR, NOR)
98
+ */
99
+ children?: Condition<FIELDS>[];
100
+ /**
101
+ * Additional options for the condition
102
+ */
103
+ options?: ConditionOptions;
104
+ }
105
+ /**
106
+ * Interface for objects that have a condition.
107
+ *
108
+ * @deprecated Use FilterCapable instead. Removed in v10.
109
+ */
110
+ export interface ConditionCapable<FIELDS extends string = string> {
111
+ /** @deprecated Use filter instead. Removed in v10. */
112
+ condition: Condition<FIELDS>;
113
+ }
114
+ /**
115
+ * Creates an AND condition with the specified conditions.
116
+ *
117
+ * This function combines multiple conditions using the logical AND operator.
118
+ * It provides optimizations such as returning the condition directly when
119
+ * only one is provided, and flattening nested AND conditions.
120
+ *
121
+ * @param conditions - Conditions to combine with AND. If empty, returns an ALL condition.
122
+ * If exactly one, returns that condition directly.
123
+ * If multiple, combines them into an AND condition with flattening optimization.
124
+ * @returns A condition with AND operator or an optimized condition based on the input
125
+ * @deprecated Use filter.and instead. Removed in v10.
126
+ */
127
+ export declare function and<FIELDS extends string = string>(...conditions: Array<Condition<FIELDS> | undefined | null>): Condition<FIELDS>;
128
+ /**
129
+ * Creates an OR condition with the specified conditions.
130
+ *
131
+ * @param conditions - Conditions to combine with OR
132
+ * @returns A condition with OR operator
133
+ * @deprecated Use filter.or instead. Removed in v10.
134
+ */
135
+ export declare function or<FIELDS extends string = string>(...conditions: Array<Condition<FIELDS> | undefined | null>): Condition<FIELDS>;
136
+ /**
137
+ * Creates a NOR condition with the specified conditions.
138
+ *
139
+ * @param conditions - Conditions to combine with NOR
140
+ * @returns A condition with NOR operator
141
+ * @deprecated Use filter.nor instead. Removed in v10.
142
+ */
143
+ export declare function nor<FIELDS extends string = string>(...conditions: Condition<FIELDS>[]): Condition<FIELDS>;
144
+ /**
145
+ * Creates an ID condition with the specified value.
146
+ *
147
+ * @param value - The ID value to match
148
+ * @returns A condition with ID operator
149
+ * @deprecated Use filter.id instead. Removed in v10.
150
+ */
151
+ export declare function id<FIELDS extends string = string>(value: string): Condition<FIELDS>;
152
+ /**
153
+ * Creates an IDS condition with the specified values.
154
+ *
155
+ * @param value - The ID values to match
156
+ * @returns A condition with IDS operator
157
+ * @deprecated Use filter.ids instead. Removed in v10.
158
+ */
159
+ export declare function ids<FIELDS extends string = string>(value: string[]): Condition<FIELDS>;
160
+ /**
161
+ * Creates an AGGREGATE_ID condition with the specified value.
162
+ *
163
+ * @param value - The aggregate ID value to match
164
+ * @returns A condition with AGGREGATE_ID operator
165
+ * @deprecated Use filter.aggregateId instead. Removed in v10.
166
+ */
167
+ export declare function aggregateId<FIELDS extends string = string>(value: string): Condition<FIELDS>;
168
+ /**
169
+ * Creates an AGGREGATE_IDS condition with the specified values.
170
+ *
171
+ * @param value - The aggregate ID values to match
172
+ * @returns A condition with AGGREGATE_IDS operator
173
+ * @deprecated Use filter.aggregateIds instead. Removed in v10.
174
+ */
175
+ export declare function aggregateIds<FIELDS extends string = string>(value: string[]): Condition<FIELDS>;
176
+ /**
177
+ * Creates a TENANT_ID condition with the specified value.
178
+ *
179
+ * @param value - The tenant ID value to match
180
+ * @returns A condition with TENANT_ID operator
181
+ * @deprecated Use filter.tenantId instead. Removed in v10.
182
+ */
183
+ export declare function tenantId<FIELDS extends string = string>(value: string): Condition<FIELDS>;
184
+ /**
185
+ * Creates an OWNER_ID condition with the specified value.
186
+ *
187
+ * @param value - The owner ID value to match
188
+ * @returns A condition with OWNER_ID operator
189
+ * @deprecated Use filter.ownerId instead. Removed in v10.
190
+ */
191
+ export declare function ownerId<FIELDS extends string = string>(value: string): Condition<FIELDS>;
192
+ /**
193
+ * Creates a SPACE_ID condition with the specified value.
194
+ *
195
+ * @param value - The space ID value to match
196
+ * @returns A condition with SPACE_ID operator
197
+ * @deprecated Use filter.spaceId instead. Removed in v10.
198
+ */
199
+ export declare function spaceId<FIELDS extends string = string>(value: string): Condition<FIELDS>;
200
+ /**
201
+ * Creates a DELETED condition with the specified value.
202
+ *
203
+ * @param value - The deletion state value to match
204
+ * @returns A condition with DELETED operator
205
+ * @deprecated Use filter.deletion instead. Removed in v10.
206
+ */
207
+ export declare function deleted<FIELDS extends string = string>(value: DeletionState): Condition<FIELDS>;
208
+ /**
209
+ * Creates an ACTIVE deletion state condition.
210
+ *
211
+ * @returns A condition with DELETED operator set to ACTIVE
212
+ * @deprecated Use filter.deletion(DeletionState.ACTIVE) instead.
213
+ * Removed in v10.
214
+ */
215
+ export declare function active<FIELDS extends string = string>(): Condition<FIELDS>;
216
+ /**
217
+ * Creates an ALL condition.
218
+ *
219
+ * @returns A condition with ALL operator
220
+ * @deprecated Use filter.matchAll instead. Removed in v10.
221
+ */
222
+ export declare function all<FIELDS extends string = string>(): Condition<FIELDS>;
223
+ /**
224
+ * Creates an EQ (equals) condition with the specified field and value.
225
+ *
226
+ * @param field - The field name to compare
227
+ * @param value - The value to compare against
228
+ * @returns A condition with EQ operator
229
+ * @deprecated Use filter.eq instead. Removed in v10.
230
+ */
231
+ export declare function eq<FIELDS extends string = string>(field: FIELDS, value: any): Condition<FIELDS>;
232
+ /**
233
+ * Creates a NE (not equals) condition with the specified field and value.
234
+ *
235
+ * @param field - The field name to compare
236
+ * @param value - The value to compare against
237
+ * @returns A condition with NE operator
238
+ * @deprecated Use filter.ne instead. Removed in v10.
239
+ */
240
+ export declare function ne<FIELDS extends string = string>(field: FIELDS, value: any): Condition<FIELDS>;
241
+ /**
242
+ * Creates a GT (greater than) condition with the specified field and value.
243
+ *
244
+ * @param field - The field name to compare
245
+ * @param value - The value to compare against
246
+ * @returns A condition with GT operator
247
+ * @deprecated Use filter.gt instead. Removed in v10.
248
+ */
249
+ export declare function gt<FIELDS extends string = string>(field: FIELDS, value: any): Condition<FIELDS>;
250
+ /**
251
+ * Creates a LT (less than) condition with the specified field and value.
252
+ *
253
+ * @param field - The field name to compare
254
+ * @param value - The value to compare against
255
+ * @returns A condition with LT operator
256
+ * @deprecated Use filter.lt instead. Removed in v10.
257
+ */
258
+ export declare function lt<FIELDS extends string = string>(field: FIELDS, value: any): Condition<FIELDS>;
259
+ /**
260
+ * Creates a GTE (greater than or equal) condition with the specified field and value.
261
+ *
262
+ * @param field - The field name to compare
263
+ * @param value - The value to compare against
264
+ * @returns A condition with GTE operator
265
+ * @deprecated Use filter.gte instead. Removed in v10.
266
+ */
267
+ export declare function gte<FIELDS extends string = string>(field: FIELDS, value: any): Condition<FIELDS>;
268
+ /**
269
+ * Creates a LTE (less than or equal) condition with the specified field and value.
270
+ *
271
+ * @param field - The field name to compare
272
+ * @param value - The value to compare against
273
+ * @returns A condition with LTE operator
274
+ * @deprecated Use filter.lte instead. Removed in v10.
275
+ */
276
+ export declare function lte<FIELDS extends string = string>(field: FIELDS, value: any): Condition<FIELDS>;
277
+ /**
278
+ * Creates a CONTAINS condition with the specified field and value.
279
+ *
280
+ * @param field - The field name to search in
281
+ * @param value - The value to search for
282
+ * @param ignoreCase - Whether to ignore case in the search
283
+ * @returns A condition with CONTAINS operator
284
+ * @deprecated Use filter.contains instead. Removed in v10.
285
+ */
286
+ export declare function contains<FIELDS extends string = string>(field: FIELDS, value: any, ignoreCase?: boolean): Condition<FIELDS>;
287
+ /**
288
+ * Creates an IN condition with the specified field and values.
289
+ *
290
+ * @param field - The field name to compare
291
+ * @param value - The values to compare against
292
+ * @returns A condition with IN operator
293
+ * @deprecated Use filter.isIn instead. Removed in v10.
294
+ */
295
+ export declare function isIn<FIELDS extends string = string>(field: FIELDS, ...value: any[]): Condition<FIELDS>;
296
+ /**
297
+ * Creates a NOT_IN condition with the specified field and values.
298
+ *
299
+ * @param field - The field name to compare
300
+ * @param value - The values to compare against
301
+ * @returns A condition with NOT_IN operator
302
+ * @deprecated Use filter.notIn instead. Removed in v10.
303
+ */
304
+ export declare function notIn<FIELDS extends string = string>(field: FIELDS, ...value: any[]): Condition<FIELDS>;
305
+ /**
306
+ * Creates a BETWEEN condition with the specified field and range.
307
+ *
308
+ * @param field - The field name to compare
309
+ * @param start - The start value of the range
310
+ * @param end - The end value of the range
311
+ * @returns A condition with BETWEEN operator
312
+ * @deprecated Use filter.between instead. Removed in v10.
313
+ */
314
+ export declare function between<FIELDS extends string = string>(field: FIELDS, start: any, end: any): Condition<FIELDS>;
315
+ /**
316
+ * Creates an ALL_IN condition with the specified field and values.
317
+ *
318
+ * @param field - The field name to compare
319
+ * @param value - The values to compare against
320
+ * @returns A condition with ALL_IN operator
321
+ * @deprecated Use filter.containsAll instead. Removed in v10.
322
+ */
323
+ export declare function allIn<FIELDS extends string = string>(field: FIELDS, ...value: any[]): Condition<FIELDS>;
324
+ /**
325
+ * Creates a STARTS_WITH condition with the specified field and value.
326
+ *
327
+ * @param field - The field name to compare
328
+ * @param value - The value to compare against
329
+ * @param ignoreCase - Whether to ignore case in the comparison
330
+ * @returns A condition with STARTS_WITH operator
331
+ * @deprecated Use filter.startsWith instead. Removed in v10.
332
+ */
333
+ export declare function startsWith<FIELDS extends string = string>(field: FIELDS, value: any, ignoreCase?: boolean): Condition<FIELDS>;
334
+ /**
335
+ * Creates a MATCH condition for full-text search.
336
+ *
337
+ * @param field - The field name to search
338
+ * @param value - The search keywords
339
+ * @returns A condition with MATCH operator
340
+ * @deprecated Use filter.search instead. Removed in v10.
341
+ */
342
+ export declare function match<FIELDS extends string = string>(field: FIELDS, value: string): Condition<FIELDS>;
343
+ /**
344
+ * Creates an ENDS_WITH condition with the specified field and value.
345
+ *
346
+ * @param field - The field name to compare
347
+ * @param value - The value to compare against
348
+ * @param ignoreCase - Whether to ignore case in the comparison
349
+ * @returns A condition with ENDS_WITH operator
350
+ * @deprecated Use filter.endsWith instead. Removed in v10.
351
+ */
352
+ export declare function endsWith<FIELDS extends string = string>(field: FIELDS, value: any, ignoreCase?: boolean): Condition<FIELDS>;
353
+ /**
354
+ * Creates an ELEM_MATCH condition with the specified field and child condition.
355
+ *
356
+ * @param field - The field name to match elements in
357
+ * @param value - The condition to match elements against
358
+ * @returns A condition with ELEM_MATCH operator
359
+ * @deprecated Use filter.elementMatch instead. Removed in v10.
360
+ */
361
+ export declare function elemMatch<FIELDS extends string = string>(field: FIELDS, value: Condition<FIELDS>): Condition<FIELDS>;
362
+ /**
363
+ * Creates a NULL condition with the specified field.
364
+ *
365
+ * @param field - The field name to check
366
+ * @returns A condition with NULL operator
367
+ * @deprecated Use filter.isNull instead. Removed in v10.
368
+ */
369
+ export declare function isNull<FIELDS extends string = string>(field: FIELDS): Condition<FIELDS>;
370
+ /**
371
+ * Creates a NOT_NULL condition with the specified field.
372
+ *
373
+ * @param field - The field name to check
374
+ * @returns A condition with NOT_NULL operator
375
+ * @deprecated Use filter.isNotNull instead. Removed in v10.
376
+ */
377
+ export declare function notNull<FIELDS extends string = string>(field: FIELDS): Condition<FIELDS>;
378
+ /**
379
+ * Creates a TRUE condition with the specified field.
380
+ *
381
+ * @param field - The field name to check
382
+ * @returns A condition with TRUE operator
383
+ * @deprecated Use filter.eq(field, true) instead. Removed in v10.
384
+ */
385
+ export declare function isTrue<FIELDS extends string = string>(field: FIELDS): Condition<FIELDS>;
386
+ /**
387
+ * Creates a FALSE condition with the specified field.
388
+ *
389
+ * @param field - The field name to check
390
+ * @returns A condition with FALSE operator
391
+ * @deprecated Use filter.eq(field, false) instead. Removed in v10.
392
+ */
393
+ export declare function isFalse<FIELDS extends string = string>(field: FIELDS): Condition<FIELDS>;
394
+ /**
395
+ * Creates an EXISTS condition with the specified field and existence flag.
396
+ *
397
+ * @param field - The field name to check
398
+ * @param exists - Whether the field should exist (default: true)
399
+ * @returns A condition with EXISTS operator
400
+ * @deprecated Use filter.exists or filter.notExists instead. Removed in v10.
401
+ */
402
+ export declare function exists<FIELDS extends string = string>(field: FIELDS, exists?: boolean): Condition<FIELDS>;
403
+ /**
404
+ * Creates a TODAY condition with the specified field.
405
+ *
406
+ * @param field - The field name to check
407
+ * @param datePattern - The date pattern to use
408
+ * @param zoneId - The time zone ID to use
409
+ * @returns A condition with TODAY operator
410
+ * @deprecated Use filter.today instead. Removed in v10.
411
+ */
412
+ export declare function today<FIELDS extends string = string>(field: FIELDS, datePattern?: string, zoneId?: string): Condition<FIELDS>;
413
+ /**
414
+ * Creates a BEFORE_TODAY condition with the specified field and time.
415
+ *
416
+ * @param field - The field name to check
417
+ * @param time - The time to compare against
418
+ * @param datePattern - The date pattern to use
419
+ * @param zoneId - The time zone ID to use
420
+ * @returns A condition with BEFORE_TODAY operator
421
+ * @deprecated Use filter.beforeToday instead. Removed in v10.
422
+ */
423
+ export declare function beforeToday<FIELDS extends string = string>(field: FIELDS, time: any, datePattern?: string, zoneId?: string): Condition<FIELDS>;
424
+ /**
425
+ * Creates a TOMORROW condition with the specified field.
426
+ *
427
+ * @param field - The field name to check
428
+ * @param datePattern - The date pattern to use
429
+ * @param zoneId - The time zone ID to use
430
+ * @returns A condition with TOMORROW operator
431
+ * @deprecated Use filter.tomorrow instead. Removed in v10.
432
+ */
433
+ export declare function tomorrow<FIELDS extends string = string>(field: FIELDS, datePattern?: string, zoneId?: string): Condition<FIELDS>;
434
+ /**
435
+ * Creates a THIS_WEEK condition with the specified field.
436
+ *
437
+ * @param field - The field name to check
438
+ * @param datePattern - The date pattern to use
439
+ * @param zoneId - The time zone ID to use
440
+ * @returns A condition with THIS_WEEK operator
441
+ * @deprecated Use filter.thisWeek instead. Removed in v10.
442
+ */
443
+ export declare function thisWeek<FIELDS extends string = string>(field: FIELDS, datePattern?: string, zoneId?: string): Condition<FIELDS>;
444
+ /**
445
+ * Creates a NEXT_WEEK condition with the specified field.
446
+ *
447
+ * @param field - The field name to check
448
+ * @param datePattern - The date pattern to use
449
+ * @param zoneId - The time zone ID to use
450
+ * @returns A condition with NEXT_WEEK operator
451
+ * @deprecated Use filter.nextWeek instead. Removed in v10.
452
+ */
453
+ export declare function nextWeek<FIELDS extends string = string>(field: FIELDS, datePattern?: string, zoneId?: string): Condition<FIELDS>;
454
+ /**
455
+ * Creates a LAST_WEEK condition with the specified field.
456
+ *
457
+ * @param field - The field name to check
458
+ * @param datePattern - The date pattern to use
459
+ * @param zoneId - The time zone ID to use
460
+ * @returns A condition with LAST_WEEK operator
461
+ * @deprecated Use filter.lastWeek instead. Removed in v10.
462
+ */
463
+ export declare function lastWeek<FIELDS extends string = string>(field: FIELDS, datePattern?: string, zoneId?: string): Condition<FIELDS>;
464
+ /**
465
+ * Creates a THIS_MONTH condition with the specified field.
466
+ *
467
+ * @param field - The field name to check
468
+ * @param datePattern - The date pattern to use
469
+ * @param zoneId - The time zone ID to use
470
+ * @returns A condition with THIS_MONTH operator
471
+ * @deprecated Use filter.thisMonth instead. Removed in v10.
472
+ */
473
+ export declare function thisMonth<FIELDS extends string = string>(field: FIELDS, datePattern?: string, zoneId?: string): Condition<FIELDS>;
474
+ /**
475
+ * Creates a LAST_MONTH condition with the specified field.
476
+ *
477
+ * @param field - The field name to check
478
+ * @param datePattern - The date pattern to use
479
+ * @param zoneId - The time zone ID to use
480
+ * @returns A condition with LAST_MONTH operator
481
+ * @deprecated Use filter.lastMonth instead. Removed in v10.
482
+ */
483
+ export declare function lastMonth<FIELDS extends string = string>(field: FIELDS, datePattern?: string, zoneId?: string): Condition<FIELDS>;
484
+ /**
485
+ * Creates a RECENT_DAYS condition with the specified field and number of days.
486
+ *
487
+ * @param field - The field name to check
488
+ * @param days - The number of recent days to include
489
+ * @param datePattern - The date pattern to use
490
+ * @param zoneId - The time zone ID to use
491
+ * @returns A condition with RECENT_DAYS operator
492
+ * @deprecated Use filter.recentDays instead. Removed in v10.
493
+ */
494
+ export declare function recentDays<FIELDS extends string = string>(field: FIELDS, days: number, datePattern?: string, zoneId?: string): Condition<FIELDS>;
495
+ /**
496
+ * Creates an EARLIER_DAYS condition with the specified field and number of days.
497
+ *
498
+ * @param field - The field name to check
499
+ * @param days - The number of days to look back
500
+ * @param datePattern - The date pattern to use
501
+ * @param zoneId - The time zone ID to use
502
+ * @returns A condition with EARLIER_DAYS operator
503
+ * @deprecated Use filter.earlierDays instead. Removed in v10.
504
+ */
505
+ export declare function earlierDays<FIELDS extends string = string>(field: FIELDS, days: number, datePattern?: string, zoneId?: string): Condition<FIELDS>;
506
+ /**
507
+ * Creates a RAW condition with the specified raw value.
508
+ *
509
+ * @param raw - The raw condition value
510
+ * @returns A condition with RAW operator
511
+ * @deprecated RAW has no FilterExpression replacement, and current Wow refuses
512
+ * it: the operator was removed in Wow #2999. It is kept for servers older than
513
+ * that, which the Condition API exists to reach and which still accept it.
514
+ * Against a current server this condition is answered with a 400.
515
+ * Removed in v10.
516
+ */
517
+ export declare function raw<FIELDS extends string = string>(raw: any): Condition<FIELDS>;