@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 { DEFAULT_PAGINATION as e } from "../dsl/pagination.es.js";
2
+ import { all as t } from "./condition.es.js";
3
+ //#region src/legacy/queryable.ts
4
+ function n(e) {
5
+ if (e === null) throw TypeError("condition cannot be null.");
6
+ return { condition: e ?? t() };
7
+ }
8
+ function r({ condition: e, projection: t, sort: r } = {}) {
9
+ return {
10
+ ...n(e),
11
+ projection: t,
12
+ sort: r
13
+ };
14
+ }
15
+ function i({ condition: t, projection: r, sort: i, limit: a = e.size } = {}) {
16
+ return {
17
+ ...n(t),
18
+ projection: r,
19
+ sort: i,
20
+ limit: a
21
+ };
22
+ }
23
+ function a({ condition: t, projection: r, sort: i, pagination: a = { ...e } } = {}) {
24
+ return {
25
+ ...n(t),
26
+ projection: r,
27
+ sort: i,
28
+ pagination: a
29
+ };
30
+ }
31
+ //#endregion
32
+ export { i as listQuery, a as pagedQuery, r as singleQuery };
33
+
34
+ //# sourceMappingURL=queryable.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryable.es.js","names":["queryCondition","condition","all","singleQuery","listQuery","DEFAULT_PAGINATION","pagedQuery"],"sources":["../../src/legacy/queryable.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 { all, type ConditionCapable } from './condition.js';\nimport type { SortCapable } from '../dsl/sort.js';\nimport { DEFAULT_PAGINATION, type Pagination } from '../dsl/pagination.js';\nimport type { ProjectionCapable } from '../dsl/projection.js';\n\n/**\n * A query that filters with a `Condition`, the only query model Wow before\n * 8.11 understands.\n *\n * @deprecated Use FilterQueryable instead. Removed in v10.\n */\nexport interface Queryable<FIELDS extends string = string>\n extends\n ConditionCapable<FIELDS>,\n ProjectionCapable<FIELDS>,\n SortCapable<FIELDS> {}\n\n/**\n * The Condition-based body of a `single` query, for Wow 8.10 servers; build\n * it with this entry's `singleQuery()`.\n *\n * @deprecated Use FilterSingleQuery instead. Removed in v10.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface SingleQuery<\n FIELDS extends string = string,\n> extends Queryable<FIELDS> {}\n\n/**\n * The Condition-based body of a `list` or `listStream` query, for Wow 8.10\n * servers; build it with this entry's `listQuery()`.\n *\n * @deprecated Use FilterListQuery instead. Removed in v10.\n */\nexport interface ListQuery<\n FIELDS extends string = string,\n> extends Queryable<FIELDS> {\n /** The most rows to return. `listQuery()` defaults it to `DEFAULT_PAGINATION.size`. */\n limit?: number;\n}\n\n/**\n * The Condition-based body of a `paged` query, for Wow 8.10 servers; build it\n * with this entry's `pagedQuery()`.\n *\n * @deprecated Use FilterPagedQuery instead. Removed in v10.\n */\nexport interface PagedQuery<\n FIELDS extends string = string,\n> extends Queryable<FIELDS> {\n /** Which page. `pagedQuery()` defaults it to `DEFAULT_PAGINATION`. */\n pagination?: Pagination;\n}\n\nfunction queryCondition<FIELDS extends string>(\n condition: ConditionCapable<FIELDS>['condition'] | undefined,\n): ConditionCapable<FIELDS> {\n if (condition === null) {\n throw new TypeError('condition cannot be null.');\n }\n return { condition: condition ?? all() };\n}\n\n/**\n * Builds a Condition-based `single` query body. The condition defaults to\n * `all()`.\n *\n * @deprecated Use singleQuery from `@ahoo-wang/wow-client` with a filter instead. Removed in v10.\n */\nexport function singleQuery<FIELDS extends string = string>({\n condition,\n projection,\n sort,\n}: Partial<SingleQuery<FIELDS>> = {}): SingleQuery<FIELDS> {\n return { ...queryCondition(condition), projection, sort };\n}\n\n/**\n * Builds a Condition-based `list` query body. The condition defaults to\n * `all()` and the limit to `DEFAULT_PAGINATION.size`.\n *\n * @deprecated Use listQuery from `@ahoo-wang/wow-client` with a filter instead. Removed in v10.\n */\nexport function listQuery<FIELDS extends string = string>({\n condition,\n projection,\n sort,\n limit = DEFAULT_PAGINATION.size,\n}: Partial<ListQuery<FIELDS>> = {}): ListQuery<FIELDS> {\n return { ...queryCondition(condition), projection, sort, limit };\n}\n\n/**\n * Builds a Condition-based `paged` query body. The condition defaults to\n * `all()` and the pagination to a copy of `DEFAULT_PAGINATION`.\n *\n * @deprecated Use pagedQuery from `@ahoo-wang/wow-client` with a filter instead. Removed in v10.\n */\nexport function pagedQuery<FIELDS extends string = string>({\n condition,\n projection,\n sort,\n pagination = { ...DEFAULT_PAGINATION },\n}: Partial<PagedQuery<FIELDS>> = {}): PagedQuery<FIELDS> {\n return { ...queryCondition(condition), projection, sort, pagination };\n}\n"],"mappings":";;;AAmEA,SAASA,EACP,GAC0B;CAC1B,IAAIC,MAAc,MAChB,MAAU,UAAU,2BAA2B;CAEjD,OAAO,EAAE,WAAWA,KAAaC,EAAI,EAAE;AACzC;AAQA,SAAgBC,EAA4C,EAC1D,cACA,eACA,YACgC,CAAC,GAAwB;CACzD,OAAO;EAAE,GAAGH,EAAeC,CAAS;EAAG;EAAY;CAAK;AAC1D;AAQA,SAAgBG,EAA0C,EACxD,cACA,eACA,SACA,WAAQC,EAAmB,SACG,CAAC,GAAsB;CACrD,OAAO;EAAE,GAAGL,EAAeC,CAAS;EAAG;EAAY;EAAM;CAAM;AACjE;AAQA,SAAgBK,EAA2C,EACzD,cACA,eACA,SACA,gBAAa,EAAE,GAAGD,EAAmB,MACN,CAAC,GAAuB;CACvD,OAAO;EAAE,GAAGL,EAAeC,CAAS;EAAG;EAAY;EAAM;CAAW;AACtE"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./legacy/operator.cjs"),t=require("./legacy/condition.cjs"),n=require("./legacy/queryable.cjs"),r=require("./legacy/locale/en_US.cjs"),i=require("./legacy/locale/zh_CN.cjs");exports.ConditionOptionKey=t.ConditionOptionKey,exports.EMPTY_VALUE_OPERATORS=e.EMPTY_VALUE_OPERATORS,exports.LOGICAL_OPERATORS=e.LOGICAL_OPERATORS,exports.Operator=e.Operator,exports.active=t.active,exports.aggregateId=t.aggregateId,exports.aggregateIds=t.aggregateIds,exports.all=t.all,exports.allIn=t.allIn,exports.and=t.and,exports.beforeToday=t.beforeToday,exports.between=t.between,exports.contains=t.contains,exports.dateOptions=t.dateOptions,exports.deleted=t.deleted,exports.earlierDays=t.earlierDays,exports.elemMatch=t.elemMatch,exports.en_US=r.en_US,exports.endsWith=t.endsWith,exports.eq=t.eq,exports.exists=t.exists,exports.gt=t.gt,exports.gte=t.gte,exports.id=t.id,exports.ids=t.ids,exports.ignoreCaseOptions=t.ignoreCaseOptions,exports.isFalse=t.isFalse,exports.isIn=t.isIn,exports.isNull=t.isNull,exports.isTrue=t.isTrue,exports.isValidateCondition=t.isValidateCondition,exports.lastMonth=t.lastMonth,exports.lastWeek=t.lastWeek,exports.listQuery=n.listQuery,exports.lt=t.lt,exports.lte=t.lte,exports.match=t.match,exports.ne=t.ne,exports.nextWeek=t.nextWeek,exports.nor=t.nor,exports.notIn=t.notIn,exports.notNull=t.notNull,exports.or=t.or,exports.ownerId=t.ownerId,exports.pagedQuery=n.pagedQuery,exports.raw=t.raw,exports.recentDays=t.recentDays,exports.singleQuery=n.singleQuery,exports.spaceId=t.spaceId,exports.startsWith=t.startsWith,exports.tenantId=t.tenantId,exports.thisMonth=t.thisMonth,exports.thisWeek=t.thisWeek,exports.today=t.today,exports.tomorrow=t.tomorrow,exports.zh_CN=i.zh_CN;
@@ -0,0 +1,6 @@
1
+ import { EMPTY_VALUE_OPERATORS as e, LOGICAL_OPERATORS as t, Operator as n } from "./legacy/operator.es.js";
2
+ import { ConditionOptionKey as r, active as i, aggregateId as a, aggregateIds as o, all as s, allIn as c, and as l, beforeToday as u, between as d, contains as f, dateOptions as p, deleted as m, earlierDays as h, elemMatch as g, endsWith as _, eq as v, exists as y, gt as b, gte as x, id as S, ids as C, ignoreCaseOptions as w, isFalse as T, isIn as E, isNull as D, isTrue as O, isValidateCondition as k, lastMonth as A, lastWeek as j, lt as M, lte as N, match as P, ne as F, nextWeek as I, nor as L, notIn as R, notNull as z, or as B, ownerId as V, raw as H, recentDays as U, spaceId as W, startsWith as G, tenantId as K, thisMonth as q, thisWeek as J, today as Y, tomorrow as X } from "./legacy/condition.es.js";
3
+ import { listQuery as Z, pagedQuery as Q, singleQuery as $ } from "./legacy/queryable.es.js";
4
+ import { en_US as ee } from "./legacy/locale/en_US.es.js";
5
+ import { zh_CN as te } from "./legacy/locale/zh_CN.es.js";
6
+ export { r as ConditionOptionKey, e as EMPTY_VALUE_OPERATORS, t as LOGICAL_OPERATORS, n as Operator, i as active, a as aggregateId, o as aggregateIds, s as all, c as allIn, l as and, u as beforeToday, d as between, f as contains, p as dateOptions, m as deleted, h as earlierDays, g as elemMatch, ee as en_US, _ as endsWith, v as eq, y as exists, b as gt, x as gte, S as id, C as ids, w as ignoreCaseOptions, T as isFalse, E as isIn, D as isNull, O as isTrue, k as isValidateCondition, A as lastMonth, j as lastWeek, Z as listQuery, M as lt, N as lte, P as match, F as ne, I as nextWeek, L as nor, R as notIn, z as notNull, B as or, V as ownerId, Q as pagedQuery, H as raw, U as recentDays, $ as singleQuery, W as spaceId, G as startsWith, K as tenantId, q as thisMonth, J as thisWeek, Y as today, X as tomorrow, te as zh_CN };
@@ -0,0 +1,2 @@
1
+ var e=Object.freeze({}),t=Object.freeze([`*`]);exports.EMPTY_ABAC_TAGS=e,exports.WILDCARD_ABAC_TAG_VALUES=t;
2
+ //# sourceMappingURL=abac.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abac.cjs","names":["EMPTY_ABAC_TAGS","WILDCARD_ABAC_TAG_VALUES"],"sources":["../../src/model/abac.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/** The key of an ABAC tag, such as `dept` or `role`; never blank. */\nexport type AbacTagKey = string;\n/**\n * The values of an ABAC tag. An empty list is no tag, and `['*']` matches\n * every value; see {@link WILDCARD_ABAC_TAG_VALUES}.\n */\nexport type AbacTagValue = string[];\n/**\n * Attribute-based access control tags of a principal or a resource, by key:\n * `{ dept: ['eng', 'pm'], role: ['admin'] }`. No tags is a public resource.\n */\nexport type AbacTags = Record<AbacTagKey, AbacTagValue>;\n/** No tags. Frozen: copy it before adding one. */\nexport const EMPTY_ABAC_TAGS: Readonly<AbacTags> = Object.freeze({});\n/** The tag values that match any value. Frozen: copy it before changing it. */\nexport const WILDCARD_ABAC_TAG_VALUES: readonly string[] = Object.freeze(['*']);\n\n/** Something that carries ABAC tags; wow-api's `AbacTaggable`. */\nexport interface AbacTaggable {\n /** The tags, by key. */\n tags: AbacTags;\n}\n\n/**\n * A command that applies ABAC tags; wow-api's `ApplyAbacTags`. The server\n * refuses a blank tag key. {@link ApplyResourceTags} is the built-in one.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface ApplyAbacTags extends AbacTaggable {}\n\n/**\n * The event that ABAC tags were applied; wow-api's `AbacTagsApplied`, which\n * consumers read to refresh authorization caches.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface AbacTagsApplied extends AbacTaggable {}\n"],"mappings":"AAyBA,IAAaA,EAAsC,OAAO,OAAO,CAAC,CAAC,EAEtDC,EAA8C,OAAO,OAAO,CAAC,GAAG,CAAC"}
@@ -0,0 +1,33 @@
1
+ /** The key of an ABAC tag, such as `dept` or `role`; never blank. */
2
+ export type AbacTagKey = string;
3
+ /**
4
+ * The values of an ABAC tag. An empty list is no tag, and `['*']` matches
5
+ * every value; see {@link WILDCARD_ABAC_TAG_VALUES}.
6
+ */
7
+ export type AbacTagValue = string[];
8
+ /**
9
+ * Attribute-based access control tags of a principal or a resource, by key:
10
+ * `{ dept: ['eng', 'pm'], role: ['admin'] }`. No tags is a public resource.
11
+ */
12
+ export type AbacTags = Record<AbacTagKey, AbacTagValue>;
13
+ /** No tags. Frozen: copy it before adding one. */
14
+ export declare const EMPTY_ABAC_TAGS: Readonly<AbacTags>;
15
+ /** The tag values that match any value. Frozen: copy it before changing it. */
16
+ export declare const WILDCARD_ABAC_TAG_VALUES: readonly string[];
17
+ /** Something that carries ABAC tags; wow-api's `AbacTaggable`. */
18
+ export interface AbacTaggable {
19
+ /** The tags, by key. */
20
+ tags: AbacTags;
21
+ }
22
+ /**
23
+ * A command that applies ABAC tags; wow-api's `ApplyAbacTags`. The server
24
+ * refuses a blank tag key. {@link ApplyResourceTags} is the built-in one.
25
+ */
26
+ export interface ApplyAbacTags extends AbacTaggable {
27
+ }
28
+ /**
29
+ * The event that ABAC tags were applied; wow-api's `AbacTagsApplied`, which
30
+ * consumers read to refresh authorization caches.
31
+ */
32
+ export interface AbacTagsApplied extends AbacTaggable {
33
+ }
@@ -0,0 +1,33 @@
1
+ /** The key of an ABAC tag, such as `dept` or `role`; never blank. */
2
+ export type AbacTagKey = string;
3
+ /**
4
+ * The values of an ABAC tag. An empty list is no tag, and `['*']` matches
5
+ * every value; see {@link WILDCARD_ABAC_TAG_VALUES}.
6
+ */
7
+ export type AbacTagValue = string[];
8
+ /**
9
+ * Attribute-based access control tags of a principal or a resource, by key:
10
+ * `{ dept: ['eng', 'pm'], role: ['admin'] }`. No tags is a public resource.
11
+ */
12
+ export type AbacTags = Record<AbacTagKey, AbacTagValue>;
13
+ /** No tags. Frozen: copy it before adding one. */
14
+ export declare const EMPTY_ABAC_TAGS: Readonly<AbacTags>;
15
+ /** The tag values that match any value. Frozen: copy it before changing it. */
16
+ export declare const WILDCARD_ABAC_TAG_VALUES: readonly string[];
17
+ /** Something that carries ABAC tags; wow-api's `AbacTaggable`. */
18
+ export interface AbacTaggable {
19
+ /** The tags, by key. */
20
+ tags: AbacTags;
21
+ }
22
+ /**
23
+ * A command that applies ABAC tags; wow-api's `ApplyAbacTags`. The server
24
+ * refuses a blank tag key. {@link ApplyResourceTags} is the built-in one.
25
+ */
26
+ export interface ApplyAbacTags extends AbacTaggable {
27
+ }
28
+ /**
29
+ * The event that ABAC tags were applied; wow-api's `AbacTagsApplied`, which
30
+ * consumers read to refresh authorization caches.
31
+ */
32
+ export interface AbacTagsApplied extends AbacTaggable {
33
+ }
@@ -0,0 +1,6 @@
1
+ //#region src/model/abac.ts
2
+ var e = Object.freeze({}), t = Object.freeze(["*"]);
3
+ //#endregion
4
+ export { e as EMPTY_ABAC_TAGS, t as WILDCARD_ABAC_TAG_VALUES };
5
+
6
+ //# sourceMappingURL=abac.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abac.es.js","names":["EMPTY_ABAC_TAGS","WILDCARD_ABAC_TAG_VALUES"],"sources":["../../src/model/abac.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/** The key of an ABAC tag, such as `dept` or `role`; never blank. */\nexport type AbacTagKey = string;\n/**\n * The values of an ABAC tag. An empty list is no tag, and `['*']` matches\n * every value; see {@link WILDCARD_ABAC_TAG_VALUES}.\n */\nexport type AbacTagValue = string[];\n/**\n * Attribute-based access control tags of a principal or a resource, by key:\n * `{ dept: ['eng', 'pm'], role: ['admin'] }`. No tags is a public resource.\n */\nexport type AbacTags = Record<AbacTagKey, AbacTagValue>;\n/** No tags. Frozen: copy it before adding one. */\nexport const EMPTY_ABAC_TAGS: Readonly<AbacTags> = Object.freeze({});\n/** The tag values that match any value. Frozen: copy it before changing it. */\nexport const WILDCARD_ABAC_TAG_VALUES: readonly string[] = Object.freeze(['*']);\n\n/** Something that carries ABAC tags; wow-api's `AbacTaggable`. */\nexport interface AbacTaggable {\n /** The tags, by key. */\n tags: AbacTags;\n}\n\n/**\n * A command that applies ABAC tags; wow-api's `ApplyAbacTags`. The server\n * refuses a blank tag key. {@link ApplyResourceTags} is the built-in one.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface ApplyAbacTags extends AbacTaggable {}\n\n/**\n * The event that ABAC tags were applied; wow-api's `AbacTagsApplied`, which\n * consumers read to refresh authorization caches.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface AbacTagsApplied extends AbacTaggable {}\n"],"mappings":";AAyBA,IAAaA,IAAsC,OAAO,OAAO,CAAC,CAAC,GAEtDC,IAA8C,OAAO,OAAO,CAAC,GAAG,CAAC"}
@@ -0,0 +1,2 @@
1
+ var e=function(e){return e.MAP=`MAP`,e.STRING=`STRING`,e}({});exports.MessageHeaderSqlType=e;
2
+ //# sourceMappingURL=bi.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bi.cjs","names":["MessageHeaderSqlType","\"MAP\"","\"STRING\""],"sources":["../../src/model/bi.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\n/**\n * How the BI sync script of a Wow server before 8.1 stores message headers\n * in ClickHouse; the `wow.MessageHeaderSqlType` schema of those servers'\n * OpenAPI documents, which generated code names. Wow 8.1 and later always\n * use `Map(String, String)` and no longer have it.\n */\nexport enum MessageHeaderSqlType {\n /** `Map(String, String)` */\n MAP = 'MAP',\n /** `String` */\n STRING = 'STRING',\n}\n"],"mappings":"AAmBA,IAAYA,EAAL,SAAA,EAAA,OAEL,GAAAC,IAAA,MAEA,EAAAC,OAAA,UACF,EAAA,CAAA,CAAA"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * How the BI sync script of a Wow server before 8.1 stores message headers
3
+ * in ClickHouse; the `wow.MessageHeaderSqlType` schema of those servers'
4
+ * OpenAPI documents, which generated code names. Wow 8.1 and later always
5
+ * use `Map(String, String)` and no longer have it.
6
+ */
7
+ export declare enum MessageHeaderSqlType {
8
+ /** `Map(String, String)` */
9
+ MAP = "MAP",
10
+ /** `String` */
11
+ STRING = "STRING"
12
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * How the BI sync script of a Wow server before 8.1 stores message headers
3
+ * in ClickHouse; the `wow.MessageHeaderSqlType` schema of those servers'
4
+ * OpenAPI documents, which generated code names. Wow 8.1 and later always
5
+ * use `Map(String, String)` and no longer have it.
6
+ */
7
+ export declare enum MessageHeaderSqlType {
8
+ /** `Map(String, String)` */
9
+ MAP = "MAP",
10
+ /** `String` */
11
+ STRING = "STRING"
12
+ }
@@ -0,0 +1,8 @@
1
+ //#region src/model/bi.ts
2
+ var e = /* @__PURE__ */ function(e) {
3
+ return e.MAP = "MAP", e.STRING = "STRING", e;
4
+ }({});
5
+ //#endregion
6
+ export { e as MessageHeaderSqlType };
7
+
8
+ //# sourceMappingURL=bi.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bi.es.js","names":["MessageHeaderSqlType","\"MAP\"","\"STRING\""],"sources":["../../src/model/bi.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\n/**\n * How the BI sync script of a Wow server before 8.1 stores message headers\n * in ClickHouse; the `wow.MessageHeaderSqlType` schema of those servers'\n * OpenAPI documents, which generated code names. Wow 8.1 and later always\n * use `Map(String, String)` and no longer have it.\n */\nexport enum MessageHeaderSqlType {\n /** `Map(String, String)` */\n MAP = 'MAP',\n /** `String` */\n STRING = 'STRING',\n}\n"],"mappings":";AAmBA,IAAYA,IAAL,yBAAA,GAAA;QAEL,EAAAC,MAAA,OAEA,EAAAC,SAAA;AACF,EAAA,CAAA,CAAA"}
@@ -0,0 +1,2 @@
1
+ var e=function(e){return e.SENT=`SENT`,e.PROCESSED=`PROCESSED`,e.SNAPSHOT=`SNAPSHOT`,e.PROJECTED=`PROJECTED`,e.EVENT_HANDLED=`EVENT_HANDLED`,e.SAGA_HANDLED=`SAGA_HANDLED`,e}({});exports.CommandStage=e;
2
+ //# sourceMappingURL=command.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.cjs","names":["CommandStage","\"SENT\"","\"PROCESSED\"","\"SNAPSHOT\"","\"PROJECTED\"","\"EVENT_HANDLED\"","\"SAGA_HANDLED\""],"sources":["../../src/model/command.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 type { ErrorInfo } from '../error/errorInfo.js';\nimport type { Identifier } from './common.js';\nimport type { FunctionInfoCapable } from './function.js';\nimport type {\n AggregateId,\n AggregateIdCapable,\n AggregateNameCapable,\n} from './modeling.js';\nimport type { NamedBoundedContext } from './naming.js';\n\n/**\n * Command identifier interface\n *\n * Represents the unique identifier for a command.\n */\nexport interface CommandId {\n commandId: string;\n}\n\n/**\n * Wait command identifier capable interface\n *\n * Represents the identifier of the command being waited for.\n */\nexport interface WaitCommandIdCapable {\n waitCommandId: string;\n}\n\n/**\n * Request identifier interface\n *\n * Represents the unique identifier for a request, used for idempotency control.\n */\nexport interface RequestId {\n requestId: string;\n}\n\n/**\n * Command execution stage enum\n *\n * Represents the different stages of command execution lifecycle.\n */\nexport enum CommandStage {\n /**\n * When the command is published to the command bus/queue, a completion signal is generated.\n */\n SENT = 'SENT',\n\n /**\n * When the command is processed by the aggregate root, a completion signal is generated.\n */\n PROCESSED = 'PROCESSED',\n\n /**\n * When the snapshot is generated, a completion signal is generated.\n */\n SNAPSHOT = 'SNAPSHOT',\n\n /**\n * When the events generated by the command are *projected*, a completion signal is generated.\n */\n PROJECTED = 'PROJECTED',\n\n /**\n * When the events generated by the command are processed by *event handlers*, a completion signal is generated.\n */\n EVENT_HANDLED = 'EVENT_HANDLED',\n\n /**\n * When the events generated by the command are processed by *Saga*, a completion signal is generated.\n */\n SAGA_HANDLED = 'SAGA_HANDLED',\n}\n\n/**\n * Command stage capable interface\n *\n * Represents an object that has a command execution stage.\n */\nexport interface CommandStageCapable {\n stage: CommandStage;\n}\n\n/**\n * Command result capable interface\n *\n * Represents an object that contains command execution results.\n */\nexport interface CommandResultCapable {\n result: Record<string, unknown>;\n}\n\n/**\n * Signal time capable interface\n *\n * Represents an object that has a signal time (timestamp).\n */\nexport interface SignalTimeCapable {\n signalTime: number;\n}\n\n/**\n * Nullable aggregate version capable interface\n *\n * Represents an object that may have an aggregate version for optimistic concurrency control.\n */\nexport interface NullableAggregateVersionCapable {\n /**\n * Aggregate root version number\n * - When command processing succeeds, this is the version number after the aggregate root has completed command processing\n * - When command validation fails at the command gateway, this is null\n * - When command execution fails in the command handler, this is the current version number of the aggregate root\n */\n aggregateVersion?: number;\n}\n\n/**\n * Represents a signal that waits for command execution completion.\n *\n * This interface combines multiple capabilities to provide comprehensive information\n * about a command that is being waited upon, including identification, timing,\n * execution results, and error information.\n *\n * It extends several interfaces to aggregate different aspects of command execution:\n * - Identifier: Provides unique identification\n * - WaitCommandIdCapable: Contains the ID of the command being waited for\n * - CommandId: Contains the command ID\n * - AggregateIdCapable: Provides the aggregate ID associated with the command\n * - NullableAggregateVersionCapable: Contains optional aggregate version for concurrency control\n * - ErrorInfo: Contains error information if command execution failed\n * - SignalTimeCapable: Provides timestamp information\n * - CommandResultCapable: Contains the actual command execution result\n * - FunctionInfoCapable: Provides information about the function that processed the command\n */\nexport interface WaitSignal\n extends\n Identifier,\n WaitCommandIdCapable,\n CommandId,\n AggregateIdCapable,\n NullableAggregateVersionCapable,\n ErrorInfo,\n SignalTimeCapable,\n CommandResultCapable,\n FunctionInfoCapable {}\n\n/**\n * Command execution result interface\n *\n * Represents the result of a command execution, containing information about:\n * - Command identification (commandId, requestId)\n * - Execution context (bounded context, aggregate information)\n * - Execution status and errors\n * - Timing information (signalTime)\n * - Version tracking (aggregateVersion)\n */\nexport interface CommandResult\n extends\n Identifier,\n WaitCommandIdCapable,\n CommandStageCapable,\n NamedBoundedContext,\n AggregateNameCapable,\n AggregateId,\n CommandId,\n RequestId,\n ErrorInfo,\n FunctionInfoCapable,\n CommandResultCapable,\n SignalTimeCapable,\n NullableAggregateVersionCapable {}\n\n/**\n * Several results of one command, one per stage; the\n * `wow.command.CommandResultArray` schema with which Wow's OpenAPI document\n * describes the `text/event-stream` answer of a command route. Generated code\n * names it; `CommandClient.sendAndWaitStream` yields the results one by one.\n */\nexport type CommandResultArray = CommandResult[];\n"],"mappings":"AAuDA,IAAYA,EAAL,SAAA,EAAA,OAIL,GAAAC,KAAA,OAKA,EAAAC,UAAA,YAKA,EAAAC,SAAA,WAKA,EAAAC,UAAA,YAKA,EAAAC,cAAA,gBAKA,EAAAC,aAAA,gBACF,EAAA,CAAA,CAAA"}
@@ -0,0 +1,137 @@
1
+ import { ErrorInfo } from '../error/errorInfo.cjs';
2
+ import { Identifier } from './common.cjs';
3
+ import { FunctionInfoCapable } from './function.cjs';
4
+ import { AggregateId, AggregateIdCapable, AggregateNameCapable } from './modeling.cjs';
5
+ import { NamedBoundedContext } from './naming.cjs';
6
+ /**
7
+ * Command identifier interface
8
+ *
9
+ * Represents the unique identifier for a command.
10
+ */
11
+ export interface CommandId {
12
+ commandId: string;
13
+ }
14
+ /**
15
+ * Wait command identifier capable interface
16
+ *
17
+ * Represents the identifier of the command being waited for.
18
+ */
19
+ export interface WaitCommandIdCapable {
20
+ waitCommandId: string;
21
+ }
22
+ /**
23
+ * Request identifier interface
24
+ *
25
+ * Represents the unique identifier for a request, used for idempotency control.
26
+ */
27
+ export interface RequestId {
28
+ requestId: string;
29
+ }
30
+ /**
31
+ * Command execution stage enum
32
+ *
33
+ * Represents the different stages of command execution lifecycle.
34
+ */
35
+ export declare enum CommandStage {
36
+ /**
37
+ * When the command is published to the command bus/queue, a completion signal is generated.
38
+ */
39
+ SENT = "SENT",
40
+ /**
41
+ * When the command is processed by the aggregate root, a completion signal is generated.
42
+ */
43
+ PROCESSED = "PROCESSED",
44
+ /**
45
+ * When the snapshot is generated, a completion signal is generated.
46
+ */
47
+ SNAPSHOT = "SNAPSHOT",
48
+ /**
49
+ * When the events generated by the command are *projected*, a completion signal is generated.
50
+ */
51
+ PROJECTED = "PROJECTED",
52
+ /**
53
+ * When the events generated by the command are processed by *event handlers*, a completion signal is generated.
54
+ */
55
+ EVENT_HANDLED = "EVENT_HANDLED",
56
+ /**
57
+ * When the events generated by the command are processed by *Saga*, a completion signal is generated.
58
+ */
59
+ SAGA_HANDLED = "SAGA_HANDLED"
60
+ }
61
+ /**
62
+ * Command stage capable interface
63
+ *
64
+ * Represents an object that has a command execution stage.
65
+ */
66
+ export interface CommandStageCapable {
67
+ stage: CommandStage;
68
+ }
69
+ /**
70
+ * Command result capable interface
71
+ *
72
+ * Represents an object that contains command execution results.
73
+ */
74
+ export interface CommandResultCapable {
75
+ result: Record<string, unknown>;
76
+ }
77
+ /**
78
+ * Signal time capable interface
79
+ *
80
+ * Represents an object that has a signal time (timestamp).
81
+ */
82
+ export interface SignalTimeCapable {
83
+ signalTime: number;
84
+ }
85
+ /**
86
+ * Nullable aggregate version capable interface
87
+ *
88
+ * Represents an object that may have an aggregate version for optimistic concurrency control.
89
+ */
90
+ export interface NullableAggregateVersionCapable {
91
+ /**
92
+ * Aggregate root version number
93
+ * - When command processing succeeds, this is the version number after the aggregate root has completed command processing
94
+ * - When command validation fails at the command gateway, this is null
95
+ * - When command execution fails in the command handler, this is the current version number of the aggregate root
96
+ */
97
+ aggregateVersion?: number;
98
+ }
99
+ /**
100
+ * Represents a signal that waits for command execution completion.
101
+ *
102
+ * This interface combines multiple capabilities to provide comprehensive information
103
+ * about a command that is being waited upon, including identification, timing,
104
+ * execution results, and error information.
105
+ *
106
+ * It extends several interfaces to aggregate different aspects of command execution:
107
+ * - Identifier: Provides unique identification
108
+ * - WaitCommandIdCapable: Contains the ID of the command being waited for
109
+ * - CommandId: Contains the command ID
110
+ * - AggregateIdCapable: Provides the aggregate ID associated with the command
111
+ * - NullableAggregateVersionCapable: Contains optional aggregate version for concurrency control
112
+ * - ErrorInfo: Contains error information if command execution failed
113
+ * - SignalTimeCapable: Provides timestamp information
114
+ * - CommandResultCapable: Contains the actual command execution result
115
+ * - FunctionInfoCapable: Provides information about the function that processed the command
116
+ */
117
+ export interface WaitSignal extends Identifier, WaitCommandIdCapable, CommandId, AggregateIdCapable, NullableAggregateVersionCapable, ErrorInfo, SignalTimeCapable, CommandResultCapable, FunctionInfoCapable {
118
+ }
119
+ /**
120
+ * Command execution result interface
121
+ *
122
+ * Represents the result of a command execution, containing information about:
123
+ * - Command identification (commandId, requestId)
124
+ * - Execution context (bounded context, aggregate information)
125
+ * - Execution status and errors
126
+ * - Timing information (signalTime)
127
+ * - Version tracking (aggregateVersion)
128
+ */
129
+ export interface CommandResult extends Identifier, WaitCommandIdCapable, CommandStageCapable, NamedBoundedContext, AggregateNameCapable, AggregateId, CommandId, RequestId, ErrorInfo, FunctionInfoCapable, CommandResultCapable, SignalTimeCapable, NullableAggregateVersionCapable {
130
+ }
131
+ /**
132
+ * Several results of one command, one per stage; the
133
+ * `wow.command.CommandResultArray` schema with which Wow's OpenAPI document
134
+ * describes the `text/event-stream` answer of a command route. Generated code
135
+ * names it; `CommandClient.sendAndWaitStream` yields the results one by one.
136
+ */
137
+ export type CommandResultArray = CommandResult[];
@@ -0,0 +1,137 @@
1
+ import { ErrorInfo } from '../error/errorInfo.js';
2
+ import { Identifier } from './common.js';
3
+ import { FunctionInfoCapable } from './function.js';
4
+ import { AggregateId, AggregateIdCapable, AggregateNameCapable } from './modeling.js';
5
+ import { NamedBoundedContext } from './naming.js';
6
+ /**
7
+ * Command identifier interface
8
+ *
9
+ * Represents the unique identifier for a command.
10
+ */
11
+ export interface CommandId {
12
+ commandId: string;
13
+ }
14
+ /**
15
+ * Wait command identifier capable interface
16
+ *
17
+ * Represents the identifier of the command being waited for.
18
+ */
19
+ export interface WaitCommandIdCapable {
20
+ waitCommandId: string;
21
+ }
22
+ /**
23
+ * Request identifier interface
24
+ *
25
+ * Represents the unique identifier for a request, used for idempotency control.
26
+ */
27
+ export interface RequestId {
28
+ requestId: string;
29
+ }
30
+ /**
31
+ * Command execution stage enum
32
+ *
33
+ * Represents the different stages of command execution lifecycle.
34
+ */
35
+ export declare enum CommandStage {
36
+ /**
37
+ * When the command is published to the command bus/queue, a completion signal is generated.
38
+ */
39
+ SENT = "SENT",
40
+ /**
41
+ * When the command is processed by the aggregate root, a completion signal is generated.
42
+ */
43
+ PROCESSED = "PROCESSED",
44
+ /**
45
+ * When the snapshot is generated, a completion signal is generated.
46
+ */
47
+ SNAPSHOT = "SNAPSHOT",
48
+ /**
49
+ * When the events generated by the command are *projected*, a completion signal is generated.
50
+ */
51
+ PROJECTED = "PROJECTED",
52
+ /**
53
+ * When the events generated by the command are processed by *event handlers*, a completion signal is generated.
54
+ */
55
+ EVENT_HANDLED = "EVENT_HANDLED",
56
+ /**
57
+ * When the events generated by the command are processed by *Saga*, a completion signal is generated.
58
+ */
59
+ SAGA_HANDLED = "SAGA_HANDLED"
60
+ }
61
+ /**
62
+ * Command stage capable interface
63
+ *
64
+ * Represents an object that has a command execution stage.
65
+ */
66
+ export interface CommandStageCapable {
67
+ stage: CommandStage;
68
+ }
69
+ /**
70
+ * Command result capable interface
71
+ *
72
+ * Represents an object that contains command execution results.
73
+ */
74
+ export interface CommandResultCapable {
75
+ result: Record<string, unknown>;
76
+ }
77
+ /**
78
+ * Signal time capable interface
79
+ *
80
+ * Represents an object that has a signal time (timestamp).
81
+ */
82
+ export interface SignalTimeCapable {
83
+ signalTime: number;
84
+ }
85
+ /**
86
+ * Nullable aggregate version capable interface
87
+ *
88
+ * Represents an object that may have an aggregate version for optimistic concurrency control.
89
+ */
90
+ export interface NullableAggregateVersionCapable {
91
+ /**
92
+ * Aggregate root version number
93
+ * - When command processing succeeds, this is the version number after the aggregate root has completed command processing
94
+ * - When command validation fails at the command gateway, this is null
95
+ * - When command execution fails in the command handler, this is the current version number of the aggregate root
96
+ */
97
+ aggregateVersion?: number;
98
+ }
99
+ /**
100
+ * Represents a signal that waits for command execution completion.
101
+ *
102
+ * This interface combines multiple capabilities to provide comprehensive information
103
+ * about a command that is being waited upon, including identification, timing,
104
+ * execution results, and error information.
105
+ *
106
+ * It extends several interfaces to aggregate different aspects of command execution:
107
+ * - Identifier: Provides unique identification
108
+ * - WaitCommandIdCapable: Contains the ID of the command being waited for
109
+ * - CommandId: Contains the command ID
110
+ * - AggregateIdCapable: Provides the aggregate ID associated with the command
111
+ * - NullableAggregateVersionCapable: Contains optional aggregate version for concurrency control
112
+ * - ErrorInfo: Contains error information if command execution failed
113
+ * - SignalTimeCapable: Provides timestamp information
114
+ * - CommandResultCapable: Contains the actual command execution result
115
+ * - FunctionInfoCapable: Provides information about the function that processed the command
116
+ */
117
+ export interface WaitSignal extends Identifier, WaitCommandIdCapable, CommandId, AggregateIdCapable, NullableAggregateVersionCapable, ErrorInfo, SignalTimeCapable, CommandResultCapable, FunctionInfoCapable {
118
+ }
119
+ /**
120
+ * Command execution result interface
121
+ *
122
+ * Represents the result of a command execution, containing information about:
123
+ * - Command identification (commandId, requestId)
124
+ * - Execution context (bounded context, aggregate information)
125
+ * - Execution status and errors
126
+ * - Timing information (signalTime)
127
+ * - Version tracking (aggregateVersion)
128
+ */
129
+ export interface CommandResult extends Identifier, WaitCommandIdCapable, CommandStageCapable, NamedBoundedContext, AggregateNameCapable, AggregateId, CommandId, RequestId, ErrorInfo, FunctionInfoCapable, CommandResultCapable, SignalTimeCapable, NullableAggregateVersionCapable {
130
+ }
131
+ /**
132
+ * Several results of one command, one per stage; the
133
+ * `wow.command.CommandResultArray` schema with which Wow's OpenAPI document
134
+ * describes the `text/event-stream` answer of a command route. Generated code
135
+ * names it; `CommandClient.sendAndWaitStream` yields the results one by one.
136
+ */
137
+ export type CommandResultArray = CommandResult[];
@@ -0,0 +1,8 @@
1
+ //#region src/model/command.ts
2
+ var e = /* @__PURE__ */ function(e) {
3
+ return e.SENT = "SENT", e.PROCESSED = "PROCESSED", e.SNAPSHOT = "SNAPSHOT", e.PROJECTED = "PROJECTED", e.EVENT_HANDLED = "EVENT_HANDLED", e.SAGA_HANDLED = "SAGA_HANDLED", e;
4
+ }({});
5
+ //#endregion
6
+ export { e as CommandStage };
7
+
8
+ //# sourceMappingURL=command.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.es.js","names":["CommandStage","\"SENT\"","\"PROCESSED\"","\"SNAPSHOT\"","\"PROJECTED\"","\"EVENT_HANDLED\"","\"SAGA_HANDLED\""],"sources":["../../src/model/command.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 type { ErrorInfo } from '../error/errorInfo.js';\nimport type { Identifier } from './common.js';\nimport type { FunctionInfoCapable } from './function.js';\nimport type {\n AggregateId,\n AggregateIdCapable,\n AggregateNameCapable,\n} from './modeling.js';\nimport type { NamedBoundedContext } from './naming.js';\n\n/**\n * Command identifier interface\n *\n * Represents the unique identifier for a command.\n */\nexport interface CommandId {\n commandId: string;\n}\n\n/**\n * Wait command identifier capable interface\n *\n * Represents the identifier of the command being waited for.\n */\nexport interface WaitCommandIdCapable {\n waitCommandId: string;\n}\n\n/**\n * Request identifier interface\n *\n * Represents the unique identifier for a request, used for idempotency control.\n */\nexport interface RequestId {\n requestId: string;\n}\n\n/**\n * Command execution stage enum\n *\n * Represents the different stages of command execution lifecycle.\n */\nexport enum CommandStage {\n /**\n * When the command is published to the command bus/queue, a completion signal is generated.\n */\n SENT = 'SENT',\n\n /**\n * When the command is processed by the aggregate root, a completion signal is generated.\n */\n PROCESSED = 'PROCESSED',\n\n /**\n * When the snapshot is generated, a completion signal is generated.\n */\n SNAPSHOT = 'SNAPSHOT',\n\n /**\n * When the events generated by the command are *projected*, a completion signal is generated.\n */\n PROJECTED = 'PROJECTED',\n\n /**\n * When the events generated by the command are processed by *event handlers*, a completion signal is generated.\n */\n EVENT_HANDLED = 'EVENT_HANDLED',\n\n /**\n * When the events generated by the command are processed by *Saga*, a completion signal is generated.\n */\n SAGA_HANDLED = 'SAGA_HANDLED',\n}\n\n/**\n * Command stage capable interface\n *\n * Represents an object that has a command execution stage.\n */\nexport interface CommandStageCapable {\n stage: CommandStage;\n}\n\n/**\n * Command result capable interface\n *\n * Represents an object that contains command execution results.\n */\nexport interface CommandResultCapable {\n result: Record<string, unknown>;\n}\n\n/**\n * Signal time capable interface\n *\n * Represents an object that has a signal time (timestamp).\n */\nexport interface SignalTimeCapable {\n signalTime: number;\n}\n\n/**\n * Nullable aggregate version capable interface\n *\n * Represents an object that may have an aggregate version for optimistic concurrency control.\n */\nexport interface NullableAggregateVersionCapable {\n /**\n * Aggregate root version number\n * - When command processing succeeds, this is the version number after the aggregate root has completed command processing\n * - When command validation fails at the command gateway, this is null\n * - When command execution fails in the command handler, this is the current version number of the aggregate root\n */\n aggregateVersion?: number;\n}\n\n/**\n * Represents a signal that waits for command execution completion.\n *\n * This interface combines multiple capabilities to provide comprehensive information\n * about a command that is being waited upon, including identification, timing,\n * execution results, and error information.\n *\n * It extends several interfaces to aggregate different aspects of command execution:\n * - Identifier: Provides unique identification\n * - WaitCommandIdCapable: Contains the ID of the command being waited for\n * - CommandId: Contains the command ID\n * - AggregateIdCapable: Provides the aggregate ID associated with the command\n * - NullableAggregateVersionCapable: Contains optional aggregate version for concurrency control\n * - ErrorInfo: Contains error information if command execution failed\n * - SignalTimeCapable: Provides timestamp information\n * - CommandResultCapable: Contains the actual command execution result\n * - FunctionInfoCapable: Provides information about the function that processed the command\n */\nexport interface WaitSignal\n extends\n Identifier,\n WaitCommandIdCapable,\n CommandId,\n AggregateIdCapable,\n NullableAggregateVersionCapable,\n ErrorInfo,\n SignalTimeCapable,\n CommandResultCapable,\n FunctionInfoCapable {}\n\n/**\n * Command execution result interface\n *\n * Represents the result of a command execution, containing information about:\n * - Command identification (commandId, requestId)\n * - Execution context (bounded context, aggregate information)\n * - Execution status and errors\n * - Timing information (signalTime)\n * - Version tracking (aggregateVersion)\n */\nexport interface CommandResult\n extends\n Identifier,\n WaitCommandIdCapable,\n CommandStageCapable,\n NamedBoundedContext,\n AggregateNameCapable,\n AggregateId,\n CommandId,\n RequestId,\n ErrorInfo,\n FunctionInfoCapable,\n CommandResultCapable,\n SignalTimeCapable,\n NullableAggregateVersionCapable {}\n\n/**\n * Several results of one command, one per stage; the\n * `wow.command.CommandResultArray` schema with which Wow's OpenAPI document\n * describes the `text/event-stream` answer of a command route. Generated code\n * names it; `CommandClient.sendAndWaitStream` yields the results one by one.\n */\nexport type CommandResultArray = CommandResult[];\n"],"mappings":";AAuDA,IAAYA,IAAL,yBAAA,GAAA;QAIL,EAAAC,OAAA,QAKA,EAAAC,YAAA,aAKA,EAAAC,WAAA,YAKA,EAAAC,YAAA,aAKA,EAAAC,gBAAA,iBAKA,EAAAC,eAAA;AACF,EAAA,CAAA,CAAA"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Represents an identifiable entity with a unique identifier.
3
+ */
4
+ export interface Identifier {
5
+ /**
6
+ * Represents a unique identifier for the implementing entity.
7
+ *
8
+ * This identifier is crucial for distinguishing between different instances of the same type and
9
+ * is often used in operations that require a unique reference to a specific entity, such as database lookups,
10
+ * state management, and event handling.
11
+ */
12
+ id: string;
13
+ }
14
+ /**
15
+ * Interface for version information.
16
+ */
17
+ export interface Version {
18
+ version: number;
19
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Represents an identifiable entity with a unique identifier.
3
+ */
4
+ export interface Identifier {
5
+ /**
6
+ * Represents a unique identifier for the implementing entity.
7
+ *
8
+ * This identifier is crucial for distinguishing between different instances of the same type and
9
+ * is often used in operations that require a unique reference to a specific entity, such as database lookups,
10
+ * state management, and event handling.
11
+ */
12
+ id: string;
13
+ }
14
+ /**
15
+ * Interface for version information.
16
+ */
17
+ export interface Version {
18
+ version: number;
19
+ }
@@ -0,0 +1,2 @@
1
+ var e=function(e){return e.COMMAND=`COMMAND`,e.ERROR=`ERROR`,e.EVENT=`EVENT`,e.SOURCING=`SOURCING`,e.STATE_EVENT=`STATE_EVENT`,e}({});exports.FunctionKind=e;
2
+ //# sourceMappingURL=function.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.cjs","names":["FunctionKind","\"COMMAND\"","\"ERROR\"","\"EVENT\"","\"SOURCING\"","\"STATE_EVENT\""],"sources":["../../src/model/function.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 type { Named, NamedBoundedContext } from './naming.js';\n\n/**\n * Function kind enum\n *\n * Represents the different types of functions in the system.\n */\nexport enum FunctionKind {\n /**\n * Command function kind\n */\n COMMAND = 'COMMAND',\n\n /**\n * Error function kind\n */\n ERROR = 'ERROR',\n\n /**\n * Event function kind\n */\n EVENT = 'EVENT',\n\n /**\n * Sourcing function kind\n */\n SOURCING = 'SOURCING',\n\n /**\n * State event function kind\n */\n STATE_EVENT = 'STATE_EVENT',\n}\n\n/**\n * Interface for function information.\n */\nexport interface FunctionInfo extends NamedBoundedContext, Named {\n functionKind: FunctionKind;\n processorName: string;\n}\n\n/**\n * Interface for objects that have function information.\n */\nexport interface FunctionInfoCapable {\n function: FunctionInfo;\n}\n"],"mappings":"AAoBA,IAAYA,EAAL,SAAA,EAAA,OAIL,GAAAC,QAAA,UAKA,EAAAC,MAAA,QAKA,EAAAC,MAAA,QAKA,EAAAC,SAAA,WAKA,EAAAC,YAAA,eACF,EAAA,CAAA,CAAA"}
@@ -0,0 +1,41 @@
1
+ import { Named, NamedBoundedContext } from './naming.cjs';
2
+ /**
3
+ * Function kind enum
4
+ *
5
+ * Represents the different types of functions in the system.
6
+ */
7
+ export declare enum FunctionKind {
8
+ /**
9
+ * Command function kind
10
+ */
11
+ COMMAND = "COMMAND",
12
+ /**
13
+ * Error function kind
14
+ */
15
+ ERROR = "ERROR",
16
+ /**
17
+ * Event function kind
18
+ */
19
+ EVENT = "EVENT",
20
+ /**
21
+ * Sourcing function kind
22
+ */
23
+ SOURCING = "SOURCING",
24
+ /**
25
+ * State event function kind
26
+ */
27
+ STATE_EVENT = "STATE_EVENT"
28
+ }
29
+ /**
30
+ * Interface for function information.
31
+ */
32
+ export interface FunctionInfo extends NamedBoundedContext, Named {
33
+ functionKind: FunctionKind;
34
+ processorName: string;
35
+ }
36
+ /**
37
+ * Interface for objects that have function information.
38
+ */
39
+ export interface FunctionInfoCapable {
40
+ function: FunctionInfo;
41
+ }